export const __rspack_esm_id="50462";export const __rspack_esm_ids=["50462"];export const __webpack_modules__={47981(a,e,t){t.a(a,async function(a,i){try{t.r(e);var s=t(62826),o=t(96196),n=t(44457),p=t(1087),h=t(18350),l=t(72554),r=t(10763),c=t(14503),d=a([h,r]);[h,r]=d.then?(await d)():d;class _ extends o.WF{showDialog(a){this._opened=!0,this._params=a}closeDialog(){return this._opened&&(0,p.r)(this,"dialog-closed",{dialog:this.localName}),this._opened=!1,!0}render(){return this._opened?o.qy` <ha-dialog open @closed="${this.closeDialog}" .heading="${(0,l.l)(this.hass,this.hass.localize(`ui.panel.config.${this._params.domain}.editor.paste_confirm.title`))}"> <p> ${this.hass.localize(`ui.panel.config.${this._params.domain}.editor.paste_confirm.text`)} </p> <ha-yaml-editor .hass="${this.hass}" .defaultValue="${this._params?.pastedConfig}" read-only></ha-yaml-editor> <div slot="primaryAction"> <ha-button appearance="plain" @click="${this._handleAppend}"> ${this.hass.localize("ui.common.append")} </ha-button> <ha-button @click="${this._handleReplace}"> ${this.hass.localize("ui.common.replace")} </ha-button> </div> </ha-dialog> `:o.s6}_handleReplace(){this._params?.onReplace(),this.closeDialog()}_handleAppend(){this._params?.onAppend(),this.closeDialog()}static get styles(){return[c.RF,c.nA,o.AH`h3{margin:0;font-size:inherit;font-weight:inherit}div[slot=primaryAction]{display:flex;gap:var(--ha-space-2)}`]}constructor(...a){super(...a),this._opened=!1}}(0,s.Cg)([(0,n.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,s.Cg)([(0,n.wk)()],_.prototype,"_opened",void 0),(0,s.Cg)([(0,n.wk)()],_.prototype,"_params",void 0),_=(0,s.Cg)([(0,n.EM)("ha-dialog-paste-replace")],_),i()}catch(a){i(a)}})}};
//# sourceMappingURL=50462.d0bf1a1bcba39349.js.map