export const __rspack_esm_id="70133";export const __rspack_esm_ids=["70133"];export const __webpack_modules__={34370(i,e,a){a(18111),a(7588),i.exports=function i(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(a){!e.hasOwnProperty(a)||null===e[a]||"object"!=typeof e[a]&&"function"!=typeof e[a]||Object.isFrozen(e[a])||i(e[a])}),e}},79316(i,e,a){a.a(i,async function(i,t){try{a.r(e),a.d(e,{HuiDialogDeleteCard:()=>_});var o=a(62826),s=a(34370),r=a.n(s),c=a(96196),n=a(44457),l=a(1087),d=a(14503),h=a(46856),p=a(18350),g=i([h,p]);[h,p]=g.then?(await g)():g;class _ extends c.WF{async showDialog(i){this._params=i,this._cardConfig=i.cardConfig,Object.isFrozen(this._cardConfig)||(this._cardConfig=r()(this._cardConfig))}closeDialog(){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 @closed="${this.closeDialog}" .heading="${this.hass.localize("ui.panel.lovelace.cards.confirm_delete")}"> <div> ${this._cardConfig?c.qy` <div class="element-preview"> <hui-card .hass="${this.hass}" .config="${this._cardConfig}" preview></hui-card> </div> `:""} </div> <ha-button appearance="plain" slot="primaryAction" @click="${this.closeDialog}" dialogInitialFocus> ${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> `: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())}}(0,o.Cg)([(0,n.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,o.Cg)([(0,n.wk)()],_.prototype,"_params",void 0),(0,o.Cg)([(0,n.wk)()],_.prototype,"_cardConfig",void 0),_=(0,o.Cg)([(0,n.EM)("hui-dialog-delete-card")],_),t()}catch(i){t(i)}})}};
//# sourceMappingURL=70133.18b5eed8349124e0.js.map