"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["628"],{94559:function(t,s,a){a.a(t,async function(t,o){try{a.r(s);a(3362),a(62953);var i=a(40445),e=a(96196),l=a(77845),h=a(1087),c=a(18350),n=(a(93444),a(72554)),p=t([c,n]);[c,n]=p.then?(await p)():p;let r,d,u=t=>t;class _ extends e.WF{async showDialog(t){this._params=t,this._open=!0}render(){return this._params?(0,e.qy)(r||(r=u` <ha-dialog .hass="${0}" .open="${0}" header-title="${0}" width="small" @closed="${0}"> <p>${0}</p> <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.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")):e.s6}_no(){this._closeState="submitted",this._params.submit&&this._params.submit(!1),this.closeDialog()}_yes(){this._closeState="submitted",this._params.submit&&this._params.submit(!0),this.closeDialog()}closeDialog(){this._open=!1}_dialogClosed(){var t,s;this._closeState||(null===(t=this._params)||void 0===t||null===(s=t.cancel)||void 0===s||s.call(t));this._closeState=void 0,this._params=void 0,this._open=!1,(0,h.r)(this,"dialog-closed",{dialog:this.localName})}constructor(...t){super(...t),this._open=!1}}_.styles=(0,e.AH)(d||(d=u`p{margin:0;color:var(--primary-text-color)}ha-dialog{--dialog-z-index:104}`)),(0,i.Cg)([(0,l.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,i.Cg)([(0,l.wk)()],_.prototype,"_params",void 0),(0,i.Cg)([(0,l.wk)()],_.prototype,"_open",void 0),(0,i.Cg)([(0,l.wk)()],_.prototype,"_closeState",void 0),_=(0,i.Cg)([(0,l.EM)("dialog-update-backup")],_),o()}catch(r){o(r)}})}}]);
//# sourceMappingURL=628.49b66985c3cf78a9.js.map