"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[47389],{45919:function(a,t,o){o.a(a,async function(a,e){try{o.r(t);var i,n,s=o(28430),l=o(57567),r=o(25979),h=o(12463),c=o(16472),p=(o(28706),o(15697)),d=o(57527),u=o(51209),f=o(148),_=o(98747),g=(o(90507),o(73651)),m=o(35436),v=o(76730),y=a([_,g,m]);[_,g,m]=y.then?(await y)():y;var k=function(a){function t(){var a;(0,l.A)(this,t);for(var o=arguments.length,e=new Array(o),i=0;i<o;i++)e[i]=arguments[i];return(a=(0,c.A)(this,t,[].concat(e)))._open=!1,a}return(0,h.A)(t,a),(0,r.A)(t,[{key:"showDialog",value:function(a){this._open=!0,this._params=a}},{key:"closeDialog",value:function(){this._open=!1}},{key:"_dialogClosed",value:function(){this._params=void 0,(0,f.r)(this,"dialog-closed",{dialog:this.localName})}},{key:"render",value:function(){var a;return this._params?(0,d.qy)(i||(i=(0,s.A)([" <ha-dialog .open="," @closed="," header-title=","> <p> "," </p> <ha-yaml-editor .defaultValue=",' read-only></ha-yaml-editor> <ha-dialog-footer slot="footer"> <ha-button slot="secondaryAction" appearance="plain" @click=',"> ",' </ha-button> <ha-button slot="primaryAction" @click=',"> "," </ha-button> </ha-dialog-footer> </ha-dialog> "])),this._open,this._dialogClosed,this.hass.localize("ui.panel.config.".concat(this._params.domain,".editor.paste_confirm.title")),this.hass.localize("ui.panel.config.".concat(this._params.domain,".editor.paste_confirm.text")),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")):d.s6}},{key:"_handleReplace",value:function(){var a;null===(a=this._params)||void 0===a||a.onReplace(),this.closeDialog()}},{key:"_handleAppend",value:function(){var a;null===(a=this._params)||void 0===a||a.onAppend(),this.closeDialog()}}],[{key:"styles",get:function(){return[v.RF,v.nA,(0,d.AH)(n||(n=(0,s.A)(["h3{font-size:inherit;font-weight:inherit;margin:0}"])))]}}])}(d.WF);(0,p.Cg)([(0,u.MZ)({attribute:!1})],k.prototype,"hass",void 0),(0,p.Cg)([(0,u.wk)()],k.prototype,"_open",void 0),(0,p.Cg)([(0,u.wk)()],k.prototype,"_params",void 0),k=(0,p.Cg)([(0,u.EM)("ha-dialog-paste-replace")],k),e()}catch(A){e(A)}})}}]);
//# sourceMappingURL=47389.1e33bd7826b84782.js.map