export const __rspack_esm_id=69656;export const __rspack_esm_ids=[69656];export const __webpack_modules__={52835(e,o,t){t(18111),t(7588),e.exports=function e(o){return Object.freeze(o),Object.getOwnPropertyNames(o).forEach(function(t){!o.hasOwnProperty(t)||null===o[t]||"object"!=typeof o[t]&&"function"!=typeof o[t]||Object.isFrozen(o[t])||e(o[t])}),o}},84939(e,o,t){t.a(e,async function(e,i){try{t.r(o);var a=t(15697),s=t(52835),r=t.n(s),c=t(57527),n=t(79224),l=t(148),d=t(76730),h=t(31693),p=t(98747),_=(t(90507),t(73651)),g=e([h,p,_]);[h,p,_]=g.then?(await g)():g;class u extends c.WF{async showDialog(e){this._params=e,this._cardConfig=e.cardConfig,this._open=!0,Object.isFrozen(this._cardConfig)||(this._cardConfig=r()(this._cardConfig))}closeDialog(){this._open=!1}_dialogClosed(){this._open=!1,this._params=void 0,this._cardConfig=void 0,(0,l.r)(this,"dialog-closed",{dialog:this.localName})}render(){return this._params?c.qy` <ha-dialog .open=${this._open} header-title=${this.hass.localize("ui.panel.lovelace.cards.confirm_delete")} @closed=${this._dialogClosed}> <div> ${this._cardConfig?c.qy` <div class="element-preview"> <hui-card .hass=${this.hass} .config=${this._cardConfig} preview></hui-card> </div> `:""} </div> <ha-dialog-footer slot="footer"> <ha-button slot="secondaryAction" appearance="plain" @click=${this.closeDialog} autofocus> ${this.hass.localize("ui.common.cancel")} </ha-button> <ha-button slot="primaryAction" class="warning" @click=${this._delete}> ${this.hass.localize("ui.common.delete")} </ha-button> </ha-dialog-footer> </ha-dialog> `:c.s6}static get styles(){return[d.nA,c.AH`.element-preview{position:relative}hui-card{width:100%;max-width:500px;margin:4px auto;display:block}`]}_delete(){this._params?.deleteCard&&(this._params.deleteCard(),this.closeDialog())}constructor(...e){super(...e),this._open=!1}}(0,a.Cg)([(0,n.MZ)({attribute:!1})],u.prototype,"hass",void 0),(0,a.Cg)([(0,n.wk)()],u.prototype,"_params",void 0),(0,a.Cg)([(0,n.wk)()],u.prototype,"_open",void 0),(0,a.Cg)([(0,n.wk)()],u.prototype,"_cardConfig",void 0),u=(0,a.Cg)([(0,n.EM)("hui-dialog-delete-card")],u),t.d(o,{HuiDialogDeleteCard:()=>u}),i()}catch(e){i(e)}})}};
//# sourceMappingURL=69656.4919d12ebe124ed8.js.map