"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["50462"],{47981:function(a,t,o){o.a(a,async function(a,s){try{o.r(t);o(62953);var e=o(40445),i=o(96196),l=o(77845),n=o(1087),h=o(18350),r=(o(93444),o(72554)),p=o(10763),d=o(14503),c=a([h,r,p]);[h,r,p]=c.then?(await c)():c;let _,m,u=a=>a;class g extends i.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(){var a;return this._params?(0,i.qy)(_||(_=u` <ha-dialog .hass="${0}" .open="${0}" @closed="${0}" header-title="${0}"> <p> ${0} </p> <ha-yaml-editor .hass="${0}" .defaultValue="${0}" read-only></ha-yaml-editor> <ha-dialog-footer slot="footer"> <ha-button slot="secondaryAction" appearance="plain" @click="${0}"> ${0} </ha-button> <ha-button slot="primaryAction" @click="${0}"> ${0} </ha-button> </ha-dialog-footer> </ha-dialog> `),this.hass,this._open,this._dialogClosed,this.hass.localize(`ui.panel.config.${this._params.domain}.editor.paste_confirm.title`),this.hass.localize(`ui.panel.config.${this._params.domain}.editor.paste_confirm.text`),this.hass,null===(a=this._params)||void 0===a?void 0:a.pastedConfig,this._handleAppend,this.hass.localize("ui.common.append"),this._handleReplace,this.hass.localize("ui.common.replace")):i.s6}_handleReplace(){var a;null===(a=this._params)||void 0===a||a.onReplace(),this.closeDialog()}_handleAppend(){var a;null===(a=this._params)||void 0===a||a.onAppend(),this.closeDialog()}static get styles(){return[d.RF,d.nA,(0,i.AH)(m||(m=u`h3{margin:0;font-size:inherit;font-weight:inherit}`))]}constructor(...a){super(...a),this._open=!1}}(0,e.Cg)([(0,l.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,e.Cg)([(0,l.wk)()],g.prototype,"_open",void 0),(0,e.Cg)([(0,l.wk)()],g.prototype,"_params",void 0),g=(0,e.Cg)([(0,l.EM)("ha-dialog-paste-replace")],g),s()}catch(_){s(_)}})}}]);
//# sourceMappingURL=50462.7081a94997e585d0.js.map