export const __rspack_esm_id="50462";export const __rspack_esm_ids=["50462"];export const __webpack_modules__={47981(a,t,o){o.a(a,async function(a,s){try{o.r(t);var e=o(62826),i=o(96196),h=o(97735),l=o(1087),n=o(18350),p=(o(93444),o(72554)),r=o(10763),c=o(14503),d=a([n,p,r]);[n,p,r]=d.then?(await d)():d;class _ extends i.WF{showDialog(a){this._open=!0,this._params=a}closeDialog(){this._open=!1}_dialogClosed(){this._params=void 0,(0,l.r)(this,"dialog-closed",{dialog:this.localName})}render(){return this._params?i.qy` <ha-dialog .hass="${this.hass}" .open="${this._open}" @closed="${this._dialogClosed}" header-title="${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> <ha-dialog-footer slot="footer"> <ha-button slot="secondaryAction" appearance="plain" @click="${this._handleAppend}"> ${this.hass.localize("ui.common.append")} </ha-button> <ha-button slot="primaryAction" @click="${this._handleReplace}"> ${this.hass.localize("ui.common.replace")} </ha-button> </ha-dialog-footer> </ha-dialog> `:i.s6}_handleReplace(){this._params?.onReplace(),this.closeDialog()}_handleAppend(){this._params?.onAppend(),this.closeDialog()}static get styles(){return[c.RF,c.nA,i.AH`h3{margin:0;font-size:inherit;font-weight:inherit}`]}constructor(...a){super(...a),this._open=!1}}(0,e.Cg)([(0,h.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,e.Cg)([(0,h.wk)()],_.prototype,"_open",void 0),(0,e.Cg)([(0,h.wk)()],_.prototype,"_params",void 0),_=(0,e.Cg)([(0,h.EM)("ha-dialog-paste-replace")],_),s()}catch(a){s(a)}})}};
//# sourceMappingURL=50462.525a949786c48670.js.map