export const __rspack_esm_id="38260";export const __rspack_esm_ids=["38260"];export const __webpack_modules__={50655(r,e,o){o.a(r,async function(r,t){try{o.r(e),o.d(e,{HuiErrorBadge:()=>_,createErrorBadgeConfig:()=>h,createErrorBadgeElement:()=>d});var i=o(62826),a=o(53289),c=o(96196),n=o(97735),s=(o(24671),o(67094),o(33963)),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{max-width:100px;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,n.wk)()],_.prototype,"_config",void 0),_=(0,i.Cg)([(0,n.EM)("hui-error-badge")],_),t()}catch(r){t(r)}})}};
//# sourceMappingURL=38260.6488a634d2539415.js.map