"use strict";var y=Object.create;var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var H=Object.getPrototypeOf;var P=Object.prototype.hasOwnProperty;var f=(n,e)=>s(n,"name",{value:e,configurable:true});var E=(n,e)=>{for(var t in e)s(n,t,{get:e[t],enumerable:true})};var c=(n,e,t,a)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let o of C(e))if(!P.call(n,o)&&o!==t)s(n,o,{get:()=>e[o],enumerable:!(a=l(e,o))||a.enumerable})}return n};var I=(n,e,t)=>(t=n!=null?y(H(n)):{},c(e||!n||!n.__esModule?s(t,"default",{value:n,enumerable:true}):t,n));var x=n=>c(s({},"__esModule",{value:true}),n);var g=(n,e,t,a)=>{var o=a>1?void 0:a?l(e,t):e;for(var m=n.length-1,p;m>=0;m--)if(p=n[m])o=(a?p(e,t,o):p(o))||o;if(a&&o)s(e,t,o);return o};var W={};E(W,{default:()=>R});module.exports=x(W);var i=require("react/jsx-runtime");var u=require("mobx-react");var M=require("react");var d=require("react-intl");var h=I(require("../../ui/button"));var v=require("../../ui/headline");const b=(0,d.defineMessages)({headline:{id:"service.disabledHandler.headline",defaultMessage:"{name} is disabled"},action:{id:"service.disabledHandler.action",defaultMessage:"Enable {name}"}});let r=class extends M.Component{render(){const{name:e,enable:t,intl:a}=this.props;return(0,i.jsxs)("div",{className:"services__info-layer",children:[(0,i.jsx)(v.H1,{children:a.formatMessage(b.headline,{name:e})}),(0,i.jsx)(h.default,{label:a.formatMessage(b.action,{name:e}),buttonType:"inverted",onClick:()=>t()})]})}};f(r,"ServiceDisabled");r=g([u.observer],r);var R=(0,d.injectIntl)(r);
