"use strict";var y=Object.create;var r=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var v=Object.getPrototypeOf;var P=Object.prototype.hasOwnProperty;var d=(e,o)=>r(e,"name",{value:o,configurable:true});var W=(e,o)=>{for(var t in o)r(e,t,{get:o[t],enumerable:true})};var i=(e,o,t,n)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let s of h(o))if(!P.call(e,s)&&s!==t)r(e,s,{get:()=>o[s],enumerable:!(n=b(o,s))||n.enumerable})}return e};var p=(e,o,t)=>(t=e!=null?y(v(e)):{},i(o||!e||!e.__esModule?r(t,"default",{value:e,enumerable:true}):t,e));var w=e=>i(r({},"__esModule",{value:true}),e);var M={};W(M,{default:()=>I});module.exports=w(M);var u=require("react/jsx-runtime");var m=require("mobx-react");var c=require("react");var a=require("react-intl");var g=p(require("react-jss"));var f=p(require("../FullscreenLoader"));const L=(0,a.defineMessages)({loading:{id:"service.webviewLoader.loading",defaultMessage:"Loading {service}"}});const C=d(e=>({component:{background:e.colorWebviewLoaderBackground,padding:20,width:"auto",margin:[0,"auto"],borderRadius:6}}),"styles");class l extends c.Component{render(){const{classes:o,name:t,loaded:n=false,intl:s}=this.props;return(0,u.jsx)(f.default,{className:o.component,title:s.formatMessage(L.loading,{service:t}),loaded:n})}}d(l,"WebviewLoader");var I=(0,a.injectIntl)((0,g.default)(C,{injectTheme:true})((0,m.observer)(l)));
