"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[79819],{72294:function(r,e,t){t.a(r,async function(r,o){try{t.r(e);var n,i,a,c=t(28430),s=t(57567),f=t(25979),u=t(12463),h=t(16472),g=t(15697),l=t(41324),d=t(57527),v=t(51209),p=(t(53384),t(41247),t(77280)),y=r([p]);p=(y.then?(await y)():y)[0];var _=function(r){var e=document.createElement("hui-error-badge");return e.setConfig(r),e},A=function(r){return{type:"error",error:r}},w=function(r){function e(){return(0,s.A)(this,e),(0,h.A)(this,e,arguments)}return(0,u.A)(e,r),(0,f.A)(e,[{key:"setConfig",value:function(r){this._config=r}},{key:"_viewDetail",value:function(){var r,e;if(this._config.origConfig)try{e=(0,l.dump)(this._config.origConfig)}catch(t){e="[Error dumping ".concat(this._config.origConfig,"]")}(0,p.showAlertDialog)(this,{title:null===(r=this._config)||void 0===r?void 0:r.error,warning:!0,text:e?(0,d.qy)(n||(n=(0,c.A)(["<pre>","</pre>"])),e):""})}},{key:"render",value:function(){return this._config?(0,d.qy)(i||(i=(0,c.A)([' <ha-badge class="error" @click=',' type="button" label="Error"> <ha-svg-icon slot="icon" .path=','></ha-svg-icon> <div class="content">',"</div> </ha-badge> "])),this._viewDetail,"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",this._config.error):d.s6}}])}(d.WF);w.styles=(0,d.AH)(a||(a=(0,c.A)(["ha-badge{--badge-color:var(--error-color);--ha-card-border-color:var(--error-color)}.content{text-overflow:ellipsis;white-space:nowrap;max-width:100px;overflow:hidden}pre{font-family:var(--ha-font-family-code);white-space:break-spaces;user-select:text}"]))),(0,g.Cg)([(0,v.wk)()],w.prototype,"_config",void 0),w=(0,g.Cg)([(0,v.EM)("hui-error-badge")],w),t.d(e,{HuiErrorBadge:function(){return w},createErrorBadgeConfig:function(){return A},createErrorBadgeElement:function(){return _}}),o()}catch(b){o(b)}})}}]);
//# sourceMappingURL=79819.d7541eeb51631397.js.map