"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["23060"],{35167:function(a,t,s){s.a(a,async function(a,i){try{s.r(t);s(3362),s(62953);var o=s(40445),e=s(96196),n=s(77845),l=s(1087),c=(s(43661),s(17308),s(72554)),h=(s(2846),s(67094),s(14503)),p=a([c]);c=(p.then?(await p)():p)[0];let d,r,u=a=>a;const g="M18,11V12.5C21.19,12.5 23.09,16.05 21.33,18.71L20.24,17.62C21.06,15.96 19.85,14 18,14V15.5L15.75,13.25L18,11M18,22V20.5C14.81,20.5 12.91,16.95 14.67,14.29L15.76,15.38C14.94,17.04 16.15,19 18,19V17.5L20.25,19.75L18,22M19,3H18V1H16V3H8V1H6V3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H14C13.36,20.45 12.86,19.77 12.5,19H5V8H19V10.59C19.71,10.7 20.39,10.94 21,11.31V5A2,2 0 0,0 19,3Z",m="M10,9A1,1 0 0,1 11,8A1,1 0 0,1 12,9V13.47L13.21,13.6L18.15,15.79C18.68,16.03 19,16.56 19,17.14V21.5C18.97,22.32 18.32,22.97 17.5,23H11C10.62,23 10.26,22.85 10,22.57L5.1,18.37L5.84,17.6C6.03,17.39 6.3,17.28 6.58,17.28H6.8L10,19V9M11,5A4,4 0 0,1 15,9C15,10.5 14.2,11.77 13,12.46V11.24C13.61,10.69 14,9.89 14,9A3,3 0 0,0 11,6A3,3 0 0,0 8,9C8,9.89 8.39,10.69 9,11.24V12.46C7.8,11.77 7,10.5 7,9A4,4 0 0,1 11,5Z";class _ extends e.WF{showDialog(a){this._opened=!0,this._params=a}closeDialog(){return this._opened=!1,!0}_dialogClosed(){var a;null!==(a=this._params)&&void 0!==a&&a.cancel&&this._params.cancel(),this._params=void 0,(0,l.r)(this,"dialog-closed",{dialog:this.localName})}render(){return this._params?(0,e.qy)(d||(d=u` <ha-dialog .hass="${0}" .open="${0}" header-title="${0}" @closed="${0}"> <ha-md-list innerRole="listbox" itemRoles="option" .innerAriaLabel="${0}" rootTabbable> <ha-md-list-item @click="${0}" type="button" .disabled="${0}"> <ha-svg-icon slot="start" .path="${0}"></ha-svg-icon> <span slot="headline"> ${0} </span> <span slot="supporting-text"> ${0} </span> <ha-icon-next slot="end"></ha-icon-next> </ha-md-list-item> <ha-md-list-item @click="${0}" type="button"> <ha-svg-icon slot="start" .path="${0}"></ha-svg-icon> <span slot="headline"> ${0} </span> <span slot="supporting-text"> ${0} </span> <ha-icon-next slot="end"></ha-icon-next> </ha-md-list-item> </ha-md-list> </ha-dialog> `),this.hass,this._opened,this.hass.localize("ui.panel.config.backup.dialogs.new.title"),this._dialogClosed,this.hass.localize("ui.panel.config.backup.dialogs.new.options"),this._automatic,!this._params.config.create_backup.password,g,this.hass.localize("ui.panel.config.backup.dialogs.new.automatic.title"),this.hass.localize("ui.panel.config.backup.dialogs.new.automatic.description"),this._manual,m,this.hass.localize("ui.panel.config.backup.dialogs.new.manual.title"),this.hass.localize("ui.panel.config.backup.dialogs.new.manual.description")):e.s6}async _manual(){var a,t;null===(a=(t=this._params).submit)||void 0===a||a.call(t,"manual"),this.closeDialog()}async _automatic(){var a,t;null===(a=(t=this._params).submit)||void 0===a||a.call(t,"automatic"),this.closeDialog()}static get styles(){return[h.RF,h.nA,(0,e.AH)(r||(r=u`ha-dialog{--dialog-content-padding:0}ha-md-list{background:0 0}ha-icon-next{width:24px}`))]}constructor(...a){super(...a),this._opened=!1}}(0,o.Cg)([(0,n.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,o.Cg)([(0,n.wk)()],_.prototype,"_opened",void 0),(0,o.Cg)([(0,n.wk)()],_.prototype,"_params",void 0),_=(0,o.Cg)([(0,n.EM)("ha-dialog-new-backup")],_),i()}catch(d){i(d)}})}}]);
//# sourceMappingURL=23060.3e20d01cd4a6bf94.js.map