"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["21614"],{13469:function(e,r,t){t.a(e,async function(e,o){try{t.r(r),t.d(r,{HuiErrorHeadingBadge:function(){return v},createErrorHeadingBadgeConfig:function(){return _},createErrorHeadingBadgeElement:function(){return p}});var i=t(40445),n=t(53289),a=t(96196),s=t(77845),c=(t(24671),t(67094),t(33963)),g=e([c]);c=(g.then?(await g)():g)[0];let h,d,f,l=e=>e;const u="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",p=e=>{const r=document.createElement("hui-error-heading-badge");return r.setConfig(e),r},_=e=>({type:"error",error:e});class v extends a.WF{setConfig(e){this._config=e}_viewDetail(){var e;let r;if(this._config.origConfig)try{r=(0,n.dump)(this._config.origConfig)}catch(t){r=`[Error dumping ${this._config.origConfig}]`}(0,c.showAlertDialog)(this,{title:null===(e=this._config)||void 0===e?void 0:e.error,warning:!0,text:r?(0,a.qy)(h||(h=l`<pre>${0}</pre>`),r):""})}render(){return this._config?(0,a.qy)(d||(d=l` <ha-heading-badge class="error" @click="${0}" type="button" .title="${0}"> <ha-svg-icon slot="icon" .path="${0}"></ha-svg-icon> <span class="content">${0}</span> </ha-heading-badge> `),this._viewDetail,this._config.error,u,this._config.error):a.s6}}v.styles=(0,a.AH)(f||(f=l`ha-heading-badge{--icon-color:var(--error-color);color:var(--error-color)}.content{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pre{font-family:var(--ha-font-family-code);white-space:break-spaces;user-select:text}`)),(0,i.Cg)([(0,s.wk)()],v.prototype,"_config",void 0),v=(0,i.Cg)([(0,s.EM)("hui-error-heading-badge")],v),o()}catch(h){o(h)}})}}]);
//# sourceMappingURL=21614.96511c809f1a1b4b.js.map