UNPKG

iobroker.javascript

Version:
1 lines 1.02 kB
import{$t as e,Hn as t,Qt as n,Un as r,Xn as i,Xt as a,Yt as o,Zt as s,bt as c,f as l,jn as u,yr as d,zt as f}from"./_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-CxICLr5Z.js";d();var p={title:e=>({background:e.palette.error.main,color:e.palette.error.contrastText,"&>h2":{color:e.palette.error.contrastText}})},m=class extends i.Component{constructor(...e){super(...e),u(this,`handleOk`,()=>{this.props.onClose()})}render(){return r(o,{open:!0,maxWidth:`sm`,fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":`alert-dialog-title`,"aria-describedby":`alert-dialog-description`,children:[t(e,{sx:p.title,id:`alert-dialog-title`,children:this.props.title||l.t(`Error`)}),t(s,{children:t(n,{id:`alert-dialog-description`,children:this.props.text||l.t(`Unknown error!`)})}),t(a,{children:t(f,{variant:`contained`,onClick:()=>this.handleOk(),color:`primary`,autoFocus:!0,startIcon:t(c,{}),children:l.t(`Ok`)})})]})}};export{m as t};