"use strict";var N=Object.create;var r=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var B=Object.getPrototypeOf;var C=Object.prototype.hasOwnProperty;var g=(s,e)=>r(s,"name",{value:e,configurable:true});var I=(s,e)=>{for(var t in e)r(s,t,{get:e[t],enumerable:true})};var f=(s,e,t,o)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let a of y(e))if(!C.call(s,a)&&a!==t)r(s,a,{get:()=>e[a],enumerable:!(o=c(e,a))||o.enumerable})}return s};var v=(s,e,t)=>(t=s!=null?N(B(s)):{},f(e||!s||!s.__esModule?r(t,"default",{value:s,enumerable:true}):t,s));var x=s=>f(r({},"__esModule",{value:true}),s);var _=(s,e,t,o)=>{var a=o>1?void 0:o?c(e,t):e;for(var d=s.length-1,p;d>=0;d--)if(p=s[d])a=(o?p(e,t,a):p(a))||a;if(o&&a)r(e,t,a);return a};var w={};I(w,{default:()=>P});module.exports=x(w);var i=require("react/jsx-runtime");var M=require("mobx-react");var b=require("react");var m=require("react-intl");var h=require("react-router-dom");var k=v(require("../../ui/Infobox"));var u=v(require("../../ui/button"));const l=(0,m.defineMessages)({headline:{id:"settings.service.error.headline",defaultMessage:"Error"},goBack:{id:"settings.service.error.goBack",defaultMessage:"Back to services"},availableServices:{id:"settings.service.form.availableServices",defaultMessage:"Available services"},errorMessage:{id:"settings.service.error.message",defaultMessage:"Could not load service recipe."}});let n=class extends b.Component{render(){const{intl:e}=this.props;return(0,i.jsxs)("div",{className:"settings__main",children:[(0,i.jsxs)("div",{className:"settings__header",children:[(0,i.jsx)("span",{className:"settings__header-item",children:(0,i.jsx)(h.Link,{to:"/settings/recipes",children:e.formatMessage(l.availableServices)})}),(0,i.jsx)("span",{className:"separator"}),(0,i.jsx)("span",{className:"settings__header-item",children:e.formatMessage(l.headline)})]}),(0,i.jsx)("div",{className:"settings__body",children:(0,i.jsx)(k.default,{type:"danger",icon:"alert",children:e.formatMessage(l.errorMessage)})}),(0,i.jsx)("div",{className:"settings__controls",children:(0,i.jsx)(u.default,{label:e.formatMessage(l.goBack),htmlForm:"form",onClick:()=>window.history.back()})})]})}};g(n,"ServiceError");n=_([M.observer],n);var P=(0,m.injectIntl)(n);
