export const __rspack_esm_id="70133";export const __rspack_esm_ids=["70133"];export const __webpack_modules__={34370(e,t,o){o(18111),o(7588),e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(o){!t.hasOwnProperty(o)||null===t[o]||"object"!=typeof t[o]&&"function"!=typeof t[o]||Object.isFrozen(t[o])||e(t[o])}),t}},79316(e,t,o){o.a(e,async function(e,i){try{o.r(t),o.d(t,{HuiDialogDeleteCard:()=>u});var a=o(62826),s=o(34370),r=o.n(s),c=o(96196),n=o(97735),l=o(1087),d=o(14503),h=o(46856),p=o(18350),_=(o(93444),o(72554)),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 .hass="${this.hass}" .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{margin:4px auto;max-width:500px;display:block;width:100%}`]}_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),i()}catch(e){i(e)}})}};
//# sourceMappingURL=70133.0a6ea075d9bc460a.js.map