"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["50462"],{47981:function(a,e,t){t.a(a,async function(a,i){try{t.r(e);var n,o,s=t(72153),l=t(44734),h=t(43080),r=t(69683),c=t(6454),p=(t(28706),t(40445)),d=t(96196),u=t(77845),f=t(1087),g=t(18350),m=t(72554),v=t(10763),_=t(14503),y=a([g,v]);[g,v]=y.then?(await y)():y;var k=function(a){function e(){var a;(0,l.A)(this,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return(a=(0,r.A)(this,e,[].concat(i)))._opened=!1,a}return(0,c.A)(e,a),(0,h.A)(e,[{key:"showDialog",value:function(a){this._opened=!0,this._params=a}},{key:"closeDialog",value:function(){return this._opened&&(0,f.r)(this,"dialog-closed",{dialog:this.localName}),this._opened=!1,!0}},{key:"render",value:function(){var a;return this._opened?(0,d.qy)(n||(n=(0,s.A)([' <ha-dialog open @closed="','" .heading="','"> <p> ',' </p> <ha-yaml-editor .hass="','" .defaultValue="','" read-only></ha-yaml-editor> <div slot="primaryAction"> <ha-button appearance="plain" @click="','"> ',' </ha-button> <ha-button @click="','"> '," </ha-button> </div> </ha-dialog> "])),this.closeDialog,(0,m.l)(this.hass,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")),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")):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[_.RF,_.nA,(0,d.AH)(o||(o=(0,s.A)(["h3{margin:0;font-size:inherit;font-weight:inherit}div[slot=primaryAction]{display:flex;gap:var(--ha-space-2)}"])))]}}])}(d.WF);(0,p.Cg)([(0,u.MZ)({attribute:!1})],k.prototype,"hass",void 0),(0,p.Cg)([(0,u.wk)()],k.prototype,"_opened",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),i()}catch(A){i(A)}})}}]);
//# sourceMappingURL=50462.1ef47d61a61590c8.js.map