export const __rspack_esm_id=79819;export const __rspack_esm_ids=[79819];export const __webpack_modules__={72294(r,e,o){o.a(r,async function(r,t){try{o.r(e);var i=o(15697),a=o(41324),c=o(57527),n=o(79224),s=(o(53384),o(41247),o(77280)),g=r([s]);s=(g.then?(await g)():g)[0];const l="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",d=r=>{const e=document.createElement("hui-error-badge");return e.setConfig(r),e},h=r=>({type:"error",error:r});class _ extends c.WF{setConfig(r){this._config=r}_viewDetail(){let r;if(this._config.origConfig)try{r=(0,a.dump)(this._config.origConfig)}catch(e){r=`[Error dumping ${this._config.origConfig}]`}(0,s.showAlertDialog)(this,{title:this._config?.error,warning:!0,text:r?c.qy`<pre>${r}</pre>`:""})}render(){return this._config?c.qy` <ha-badge class="error" @click=${this._viewDetail} type="button" label="Error"> <ha-svg-icon slot="icon" .path=${l}></ha-svg-icon> <div class="content">${this._config.error}</div> </ha-badge> `:c.s6}}_.styles=c.AH`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,i.Cg)([(0,n.wk)()],_.prototype,"_config",void 0),_=(0,i.Cg)([(0,n.EM)("hui-error-badge")],_),o.d(e,{HuiErrorBadge:()=>_},{createErrorBadgeConfig:h,createErrorBadgeElement:d}),t()}catch(r){t(r)}})}};
//# sourceMappingURL=79819.d907a5f4b2937e9a.js.map