export const __rspack_esm_id=47389;export const __rspack_esm_ids=[47389];export const __webpack_modules__={68300(a,o,t){t.a(a,async function(a,e){try{t.r(o);var i=t(15697),s=t(57527),l=t(79224),n=t(148),p=t(98747),h=(t(90507),t(73651)),r=t(35436),c=t(76730),d=a([p,h,r]);[p,h,r]=d.then?(await d)():d;class _ extends s.WF{showDialog(a){this._open=!0,this._params=a}closeDialog(){this._open=!1}_dialogClosed(){this._params=void 0,(0,n.r)(this,"dialog-closed",{dialog:this.localName})}render(){return this._params?s.qy` <ha-dialog .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 .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> `:s.s6}_handleReplace(){this._params?.onReplace(),this.closeDialog()}_handleAppend(){this._params?.onAppend(),this.closeDialog()}static get styles(){return[c.RF,c.nA,s.AH`h3{font-size:inherit;font-weight:inherit;margin:0}`]}constructor(...a){super(...a),this._open=!1}}(0,i.Cg)([(0,l.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,i.Cg)([(0,l.wk)()],_.prototype,"_open",void 0),(0,i.Cg)([(0,l.wk)()],_.prototype,"_params",void 0),_=(0,i.Cg)([(0,l.EM)("ha-dialog-paste-replace")],_),e()}catch(a){e(a)}})}};
//# sourceMappingURL=47389.be27d04d8bf6e827.js.map