"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[3663],{82706:function(t,a,o){o.a(t,async function(t,i){try{o.r(a);var s,e,l=o(28430),n=o(36854),r=o(98117),c=o(57567),h=o(25979),u=o(12463),p=o(16472),d=(o(28706),o(26099),o(3362),o(15697)),_=o(57527),g=o(51209),m=o(148),f=o(98747),v=(o(90507),o(73651)),y=t([f,v]);[f,v]=y.then?(await y)():y;var k=function(t){function a(){var t;(0,c.A)(this,a);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(t=(0,p.A)(this,a,[].concat(i)))._open=!1,t}return(0,u.A)(a,t),(0,h.A)(a,[{key:"showDialog",value:(o=(0,r.A)((0,n.A)().m(function t(a){return(0,n.A)().w(function(t){for(;;)switch(t.n){case 0:this._params=a,this._open=!0;case 1:return t.a(2)}},t,this)})),function(t){return o.apply(this,arguments)})},{key:"render",value:function(){return this._params?(0,_.qy)(s||(s=(0,l.A)([" <ha-dialog .open="," header-title=",' width="small" @closed=',"> <p>",'</p> <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.hass.localize("ui.dialogs.update_backup.title"),this._dialogClosed,this.hass.localize("ui.dialogs.update_backup.text"),this._no,this.hass.localize("ui.common.no"),this._yes,this.hass.localize("ui.dialogs.update_backup.create")):_.s6}},{key:"_no",value:function(){this._closeState="submitted",this._params.submit&&this._params.submit(!1),this.closeDialog()}},{key:"_yes",value:function(){this._closeState="submitted",this._params.submit&&this._params.submit(!0),this.closeDialog()}},{key:"closeDialog",value:function(){this._open=!1}},{key:"_dialogClosed",value:function(){var t,a;this._closeState||(null===(t=this._params)||void 0===t||null===(a=t.cancel)||void 0===a||a.call(t));this._closeState=void 0,this._params=void 0,this._open=!1,(0,m.r)(this,"dialog-closed",{dialog:this.localName})}}]);var o}(_.WF);k.styles=(0,_.AH)(e||(e=(0,l.A)(["p{color:var(--primary-text-color);margin:0}ha-dialog{--dialog-z-index:104}"]))),(0,d.Cg)([(0,g.MZ)({attribute:!1})],k.prototype,"hass",void 0),(0,d.Cg)([(0,g.wk)()],k.prototype,"_params",void 0),(0,d.Cg)([(0,g.wk)()],k.prototype,"_open",void 0),(0,d.Cg)([(0,g.wk)()],k.prototype,"_closeState",void 0),k=(0,d.Cg)([(0,g.EM)("dialog-update-backup")],k),i()}catch(b){i(b)}})}}]);
//# sourceMappingURL=3663.cb54c3e08eeefe13.js.map