supervisor/supervisor/api/panel/frontend_es5/2080.0e3baaaa6c1431bd.js
github-actions[bot] 0513ea0438
Update frontend to version 20250806.0 (#5810)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-07 11:10:34 +02:00

3 lines
34 KiB
JavaScript

/*! For license information please see 2080.0e3baaaa6c1431bd.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["2080"],{74463:function(e,t,i){i.a(e,async function(e,t){try{i(39710),i(26847),i(2394),i(18574),i(81738),i(94814),i(22960),i(6989),i(87799),i(56389),i(27530);var a=i(73742),o=i(59048),n=i(7616),r=i(43893),s=i(40142),l=i(74266),d=(i(63752),i(53166),i(37492),i(56161),i(20287),i(56730)),c=(i(59346),e([l,s]));[l,s]=c.then?(await c)():c;let p,h,u,m,g,f,y,b,v,_,k,w,$,x,C,z,A,T,L=e=>e;const H="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",P="M20.5,11H19V7C19,5.89 18.1,5 17,5H13V3.5A2.5,2.5 0 0,0 10.5,1A2.5,2.5 0 0,0 8,3.5V5H4A2,2 0 0,0 2,7V10.8H3.5C5,10.8 6.2,12 6.2,13.5C6.2,15 5,16.2 3.5,16.2H2V20A2,2 0 0,0 4,22H7.8V20.5C7.8,19 9,17.8 10.5,17.8C12,17.8 13.2,19 13.2,20.5V22H17A2,2 0 0,0 19,20V16H20.5A2.5,2.5 0 0,0 23,13.5A2.5,2.5 0 0,0 20.5,11Z",I=e=>{const t=[];return e.includes("ssl")&&t.push({slug:"ssl",name:"SSL",checked:!1}),e.includes("share")&&t.push({slug:"share",name:"Share",checked:!1}),e.includes("media")&&t.push({slug:"media",name:"Media",checked:!1}),e.includes("addons/local")&&t.push({slug:"addons/local",name:"Local add-ons",checked:!1}),t.sort((e,t)=>e.name>t.name?1:-1)},M=e=>e.map(e=>({slug:e.slug,name:e.name,version:e.version,checked:!1})).sort((e,t)=>e.name>t.name?1:-1);class Z extends o.oi{willUpdate(e){var t,i,a,o;(super.willUpdate(e),this.hasUpdated)||(this.folders=I(this.backup?this.backup.folders:["ssl","share","media","addons/local"]),this.addons=M(this.backup?this.backup.addons:null===(t=this.supervisor)||void 0===t?void 0:t.addon.addons),this.backupType=(null===(i=this.backup)||void 0===i?void 0:i.type)||"full",this.backupName=(null===(a=this.backup)||void 0===a?void 0:a.name)||"",this.backupHasPassword=(null===(o=this.backup)||void 0===o?void 0:o.protected)||!1)}focus(){var e;null===(e=this._focusTarget)||void 0===e||e.focus()}render(){var e,t,i,a,n,r,s,c,z,A,T,I,M;if(!this.onboarding&&!this.supervisor)return o.Ld;const Z="partial"===this.backupType?this._getSection("folders"):void 0,V="partial"===this.backupType?this._getSection("addons"):void 0;return(0,o.dy)(p||(p=L` ${0} ${0} ${0} ${0} ${0} ${0} `),this.backup?(0,o.dy)(h||(h=L`<div class="details"> ${0} (${0})<br> ${0} </div>`),"full"===this.backup.type?null===(e=this.supervisor)||void 0===e?void 0:e.localize("backup.full_backup"):null===(t=this.supervisor)||void 0===t?void 0:t.localize("backup.partial_backup"),Math.ceil(10*this.backup.size)/10+" MB",this.hass?(0,l.o0)(new Date(this.backup.date),this.hass.locale,this.hass.config):this.backup.date):(0,o.dy)(u||(u=L`<ha-textfield name="backupName" .label="${0}" .value="${0}" @change="${0}"> </ha-textfield>`),null===(i=this.supervisor)||void 0===i?void 0:i.localize("backup.name"),this.backupName,this._handleTextValueChanged),this.backup&&"full"!==this.backup.type?"":(0,o.dy)(m||(m=L`<div class="sub-header"> ${0} </div> <div class="backup-types"> <ha-formfield .label="${0}"> <ha-radio @change="${0}" value="full" name="backupType" .checked="${0}"> </ha-radio> </ha-formfield> <ha-formfield .label="${0}"> <ha-radio @change="${0}" value="partial" name="backupType" .checked="${0}"> </ha-radio> </ha-formfield> </div>`),this.backup?null===(n=this.supervisor)||void 0===n?void 0:n.localize("backup.select_type"):null===(a=this.supervisor)||void 0===a?void 0:a.localize("backup.type"),null===(r=this.supervisor)||void 0===r?void 0:r.localize("backup.full_backup"),this._handleRadioValueChanged,"full"===this.backupType,null===(s=this.supervisor)||void 0===s?void 0:s.localize("backup.partial_backup"),this._handleRadioValueChanged,"partial"===this.backupType),"partial"===this.backupType?(0,o.dy)(g||(g=L`<div class="partial-picker"> ${0} ${0} ${0} </div> `),!this.backup||this.backup.homeassistant?(0,o.dy)(f||(f=L`<ha-formfield .label="${0}"> <ha-checkbox .checked="${0}" .disabled="${0}" @change="${0}"> </ha-checkbox> </ha-formfield>`),(0,o.dy)(y||(y=L`<supervisor-formfield-label label="Home Assistant" .iconPath="${0}" .version="${0}"> </supervisor-formfield-label>`),d.T,this.backup?this.backup.homeassistant:null===(c=this.hass)||void 0===c?void 0:c.config.version),this.onboarding||this.homeAssistant,this.onboarding,this._toggleHomeAssistant):"",null!=Z&&Z.templates.length?(0,o.dy)(b||(b=L` <ha-formfield .label="${0}"> <ha-checkbox @change="${0}" .checked="${0}" .indeterminate="${0}" .section="${0}"> </ha-checkbox> </ha-formfield> <div class="section-content">${0}</div> `),(0,o.dy)(v||(v=L`<supervisor-formfield-label .label="${0}" .iconPath="${0}"> </supervisor-formfield-label>`),null===(z=this.supervisor)||void 0===z?void 0:z.localize("backup.folders"),H),this._toggleSection,Z.checked,Z.indeterminate,"folders",Z.templates):"",null!=V&&V.templates.length?(0,o.dy)(_||(_=L` <ha-formfield .label="${0}"> <ha-checkbox @change="${0}" .checked="${0}" .indeterminate="${0}" .section="${0}"> </ha-checkbox> </ha-formfield> <div class="section-content">${0}</div> `),(0,o.dy)(k||(k=L`<supervisor-formfield-label .label="${0}" .iconPath="${0}"> </supervisor-formfield-label>`),null===(A=this.supervisor)||void 0===A?void 0:A.localize("backup.addons"),P),this._toggleSection,V.checked,V.indeterminate,"addons",V.templates):""):"","partial"!==this.backupType||this.backup&&!this.backupHasPassword?"":(0,o.dy)(w||(w=L`<hr>`)),this.backup?"":(0,o.dy)($||($=L`<ha-formfield class="password" .label="${0}"> <ha-checkbox .checked="${0}" @change="${0}"> </ha-checkbox> </ha-formfield>`),null===(T=this.supervisor)||void 0===T?void 0:T.localize("backup.password_protection"),this.backupHasPassword,this._toggleHasPassword),this.backupHasPassword?(0,o.dy)(x||(x=L` <ha-password-field .label="${0}" name="backupPassword" .value="${0}" @change="${0}"> </ha-password-field> ${0} `),null===(I=this.supervisor)||void 0===I?void 0:I.localize("backup.password"),this.backupPassword,this._handleTextValueChanged,this.backup?"":(0,o.dy)(C||(C=L`<ha-password-field .label="${0}" name="confirmBackupPassword" .value="${0}" @change="${0}"> </ha-password-field>`),null===(M=this.supervisor)||void 0===M?void 0:M.localize("backup.confirm_password"),this.confirmBackupPassword,this._handleTextValueChanged)):"")}_toggleHomeAssistant(){this.homeAssistant=!this.homeAssistant}backupDetails(){var e,t;const i={};if(!this.backup&&this.hass&&(i.name=this.backupName||(0,s.p6)(new Date,this.hass.locale,this.hass.config)),this.backupHasPassword&&(i.password=this.backupPassword,this.backup||(i.confirm_password=this.confirmBackupPassword)),"full"===this.backupType)return i;const a=null===(e=this.addons)||void 0===e?void 0:e.filter(e=>e.checked).map(e=>e.slug),o=null===(t=this.folders)||void 0===t?void 0:t.filter(e=>e.checked).map(e=>e.slug);return null!=a&&a.length&&(i.addons=a),null!=o&&o.length&&(i.folders=o),i.homeassistant=this.onboarding||this.homeAssistant,i}_getSection(e){var t;const i=[],a="addons"===e?new Map(null===(t=this.supervisor)||void 0===t?void 0:t.addon.addons.map(e=>[e.slug,e])):void 0;let n=0;this[e].forEach(t=>{var s;i.push((0,o.dy)(z||(z=L`<ha-formfield .label="${0}"> <ha-checkbox .item="${0}" .checked="${0}" .section="${0}" @change="${0}"> </ha-checkbox> </ha-formfield>`),(0,o.dy)(A||(A=L`<supervisor-formfield-label .label="${0}" .iconPath="${0}" .imageUrl="${0}" .version="${0}"> </supervisor-formfield-label>`),t.name,"addons"===e?P:H,"addons"===e&&!this.onboarding&&this.hass&&(0,r.I)(this.hass.config.version,0,105)&&null!=a&&null!==(s=a.get(t.slug))&&void 0!==s&&s.icon?`/api/hassio/addons/${t.slug}/icon`:void 0,t.version),t,t.checked,e,this._updateSectionEntry)),t.checked&&n++});const s=n===this[e].length;return{templates:i,checked:s,indeterminate:!s&&0!==n}}_handleRadioValueChanged(e){const t=e.currentTarget;this[t.name]=t.value}_handleTextValueChanged(e){const t=e.currentTarget;this[t.name]=t.value}_toggleHasPassword(){this.backupHasPassword=!this.backupHasPassword}_toggleSection(e){const t=e.currentTarget.section;this[t]=("addons"===t?this.addons:this.folders).map(t=>Object.assign(Object.assign({},t),{},{checked:e.currentTarget.checked}))}_updateSectionEntry(e){const t=e.currentTarget.item,i=e.currentTarget.section;this[i]=this[i].map(i=>i.slug===t.slug?Object.assign(Object.assign({},i),{},{checked:e.currentTarget.checked}):i)}constructor(...e){super(...e),this.backupType="full",this.homeAssistant=!1,this.backupHasPassword=!1,this.onboarding=!1,this.backupName="",this.backupPassword="",this.confirmBackupPassword=""}}Z.styles=(0,o.iv)(T||(T=L`.partial-picker ha-formfield{display:block}.partial-picker ha-checkbox{--mdc-checkbox-touch-target-size:32px}.partial-picker{display:block;margin:0px -6px}supervisor-formfield-label{display:inline-flex;align-items:center}hr{border-color:var(--divider-color);border-bottom:none;margin:16px 0}.details{color:var(--secondary-text-color)}.section-content{display:flex;flex-direction:column;margin-left:30px;margin-inline-start:30px;margin-inline-end:initial}ha-formfield.password{display:block;margin:0 -14px -16px}.backup-types{display:flex;margin-left:-13px;margin-inline-start:-13px;margin-inline-end:initial}.sub-header{margin-top:8px}`)),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"hass",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"supervisor",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"backup",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"backupType",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"folders",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"addons",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"homeAssistant",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"backupHasPassword",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],Z.prototype,"onboarding",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"backupName",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"backupPassword",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],Z.prototype,"confirmBackupPassword",void 0),(0,a.__decorate)([(0,n.IO)("ha-textfield, ha-radio, ha-checkbox",!0)],Z.prototype,"_focusTarget",void 0),Z=(0,a.__decorate)([(0,n.Mo)("supervisor-backup-content")],Z),t()}catch(p){t(p)}})},59346:function(e,t,i){var a=i(73742),o=i(59048),n=i(7616);i(993);let r,s,l,d,c,p=e=>e;class h extends o.oi{render(){return(0,o.dy)(r||(r=p` ${0} <span class="label">${0}</span> ${0} `),this.imageUrl?(0,o.dy)(s||(s=p`<img loading="lazy" alt="" src="${0}" class="icon">`),this.imageUrl):this.iconPath?(0,o.dy)(l||(l=p`<ha-svg-icon .path="${0}" class="icon"></ha-svg-icon>`),this.iconPath):"",this.label,this.version?(0,o.dy)(d||(d=p`<span class="version">(${0})</span>`),this.version):"")}}h.styles=(0,o.iv)(c||(c=p`:host{display:flex;align-items:center}.label{margin-right:4px;margin-inline-end:4px;margin-inline-start:initial}.version{color:var(--secondary-text-color)}.icon{max-height:22px;max-width:22px;margin-right:8px;margin-inline-end:8px;margin-inline-start:initial}`)),(0,a.__decorate)([(0,n.Cb)({type:String})],h.prototype,"label",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],h.prototype,"imageUrl",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],h.prototype,"iconPath",void 0),(0,a.__decorate)([(0,n.Cb)({type:String})],h.prototype,"version",void 0),h=(0,a.__decorate)([(0,n.Mo)("supervisor-formfield-label")],h)},3416:function(e,t,i){i.d(t,{a:function(){return f}});i(26847),i(1455),i(27530);var a=i(73742),o=i(27241),n={ROOT:"mdc-form-field"},r={LABEL_SELECTOR:".mdc-form-field > label"},s=function(e){function t(i){var o=e.call(this,(0,a.__assign)((0,a.__assign)({},t.defaultAdapter),i))||this;return o.click=function(){o.handleClick()},o}return(0,a.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return n},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return r},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){e.adapter.deactivateInputRipple()})},t}(o.K),l=i(64765),d=i(8471),c=i(78320),p=i(59048),h=i(7616),u=i(31733);let m,g=e=>e;class f extends l.H{createAdapter(){return{registerInteractionHandler:(e,t)=>{this.labelEl.addEventListener(e,t)},deregisterInteractionHandler:(e,t)=>{this.labelEl.removeEventListener(e,t)},activateInputRipple:async()=>{const e=this.input;if(e instanceof d.Wg){const t=await e.ripple;t&&t.startPress()}},deactivateInputRipple:async()=>{const e=this.input;if(e instanceof d.Wg){const t=await e.ripple;t&&t.endPress()}}}}get input(){var e,t;return null!==(t=null===(e=this.slottedInputs)||void 0===e?void 0:e[0])&&void 0!==t?t:null}render(){const e={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return(0,p.dy)(m||(m=g` <div class="mdc-form-field ${0}"> <slot></slot> <label class="mdc-label" @click="${0}">${0}</label> </div>`),(0,u.$)(e),this._labelClick,this.label)}click(){this._labelClick()}_labelClick(){const e=this.input;e&&(e.focus(),e.click())}constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=s}}(0,a.__decorate)([(0,h.Cb)({type:Boolean})],f.prototype,"alignEnd",void 0),(0,a.__decorate)([(0,h.Cb)({type:Boolean})],f.prototype,"spaceBetween",void 0),(0,a.__decorate)([(0,h.Cb)({type:Boolean})],f.prototype,"nowrap",void 0),(0,a.__decorate)([(0,h.Cb)({type:String}),(0,c.P)(async function(e){var t;null===(t=this.input)||void 0===t||t.setAttribute("aria-label",e)})],f.prototype,"label",void 0),(0,a.__decorate)([(0,h.IO)(".mdc-form-field")],f.prototype,"mdcRoot",void 0),(0,a.__decorate)([(0,h.NH)({slot:"",flatten:!0,selector:"*"})],f.prototype,"slottedInputs",void 0),(0,a.__decorate)([(0,h.IO)("label")],f.prototype,"labelEl",void 0)},24196:function(e,t,i){i.d(t,{W:function(){return o}});let a;const o=(0,i(59048).iv)(a||(a=(e=>e)`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{margin-left:auto;margin-right:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{margin-left:0;margin-right:auto}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}.mdc-form-field--space-between>label[dir=rtl],[dir=rtl] .mdc-form-field--space-between>label{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}::slotted(mwc-switch){margin-right:10px}::slotted(mwc-switch[dir=rtl]),[dir=rtl] ::slotted(mwc-switch){margin-left:10px}`))},40142:function(e,t,i){i.a(e,async function(e,a){try{i.d(t,{WB:function(){return p},p6:function(){return d}});i(81738),i(29981);var o=i(62229),n=i(28105),r=i(67563),s=i(34743),l=e([o,s]);[o,s]=l.then?(await l)():l;(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"long",month:"long",day:"numeric",timeZone:(0,s.f)(e.time_zone,t)}));const d=(e,t,i)=>c(t,i.time_zone).format(e),c=(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",timeZone:(0,s.f)(e.time_zone,t)})),p=((0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"short",day:"numeric",timeZone:(0,s.f)(e.time_zone,t)})),(e,t,i)=>{var a,o,n,s;const l=h(t,i.time_zone);if(t.date_format===r.t6.language||t.date_format===r.t6.system)return l.format(e);const d=l.formatToParts(e),c=null===(a=d.find(e=>"literal"===e.type))||void 0===a?void 0:a.value,p=null===(o=d.find(e=>"day"===e.type))||void 0===o?void 0:o.value,u=null===(n=d.find(e=>"month"===e.type))||void 0===n?void 0:n.value,m=null===(s=d.find(e=>"year"===e.type))||void 0===s?void 0:s.value,g=d[d.length-1];let f="literal"===(null==g?void 0:g.type)?null==g?void 0:g.value:"";"bg"===t.language&&t.date_format===r.t6.YMD&&(f="");return{[r.t6.DMY]:`${p}${c}${u}${c}${m}${f}`,[r.t6.MDY]:`${u}${c}${p}${c}${m}${f}`,[r.t6.YMD]:`${m}${c}${u}${c}${p}${f}`}[t.date_format]}),h=(0,n.Z)((e,t)=>{const i=e.date_format===r.t6.system?void 0:e.language;return e.date_format===r.t6.language||(e.date_format,r.t6.system),new Intl.DateTimeFormat(i,{year:"numeric",month:"numeric",day:"numeric",timeZone:(0,s.f)(e.time_zone,t)})});(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{day:"numeric",month:"short",timeZone:(0,s.f)(e.time_zone,t)})),(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{month:"long",year:"numeric",timeZone:(0,s.f)(e.time_zone,t)})),(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{month:"long",timeZone:(0,s.f)(e.time_zone,t)})),(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",timeZone:(0,s.f)(e.time_zone,t)})),(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"long",timeZone:(0,s.f)(e.time_zone,t)})),(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"short",timeZone:(0,s.f)(e.time_zone,t)}));a()}catch(d){a(d)}})},74266:function(e,t,i){i.a(e,async function(e,a){try{i.d(t,{o0:function(){return p}});var o=i(62229),n=i(28105),r=i(40142),s=i(45691),l=i(34743),d=i(23648),c=e([o,r,s,l]);[o,r,s,l]=c.then?(await c)():c;const p=(e,t,i)=>h(t,i.time_zone).format(e),h=(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:(0,d.y)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,d.y)(e)?"h12":"h23",timeZone:(0,l.f)(e.time_zone,t)}));(0,n.Z)(()=>new Intl.DateTimeFormat(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})),(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"short",day:"numeric",hour:(0,d.y)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,d.y)(e)?"h12":"h23",timeZone:(0,l.f)(e.time_zone,t)})),(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{month:"short",day:"numeric",hour:(0,d.y)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,d.y)(e)?"h12":"h23",timeZone:(0,l.f)(e.time_zone,t)})),(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:(0,d.y)(e)?"numeric":"2-digit",minute:"2-digit",second:"2-digit",hourCycle:(0,d.y)(e)?"h12":"h23",timeZone:(0,l.f)(e.time_zone,t)}));a()}catch(p){a(p)}})},45691:function(e,t,i){i.a(e,async function(e,a){try{i.d(t,{Vu:function(){return p},Zs:function(){return g},mr:function(){return d},xO:function(){return u}});var o=i(62229),n=i(28105),r=i(34743),s=i(23648),l=e([o,r]);[o,r]=l.then?(await l)():l;const d=(e,t,i)=>c(t,i.time_zone).format(e),c=(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{hour:"numeric",minute:"2-digit",hourCycle:(0,s.y)(e)?"h12":"h23",timeZone:(0,r.f)(e.time_zone,t)})),p=(e,t,i)=>h(t,i.time_zone).format(e),h=(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{hour:(0,s.y)(e)?"numeric":"2-digit",minute:"2-digit",second:"2-digit",hourCycle:(0,s.y)(e)?"h12":"h23",timeZone:(0,r.f)(e.time_zone,t)})),u=(e,t,i)=>m(t,i.time_zone).format(e),m=(0,n.Z)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"long",hour:(0,s.y)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,s.y)(e)?"h12":"h23",timeZone:(0,r.f)(e.time_zone,t)})),g=(e,t,i)=>f(t,i.time_zone).format(e),f=(0,n.Z)((e,t)=>new Intl.DateTimeFormat("en-GB",{hour:"numeric",minute:"2-digit",hour12:!1,timeZone:(0,r.f)(e.time_zone,t)}));a()}catch(d){a(d)}})},34743:function(e,t,i){i.a(e,async function(e,a){try{i.d(t,{f:function(){return h}});var o,n,r,s=i(62229),l=i(67563),d=e([s]);s=(d.then?(await d)():d)[0];const c=null===(o=Intl.DateTimeFormat)||void 0===o||null===(n=(r=o.call(Intl)).resolvedOptions)||void 0===n?void 0:n.call(r).timeZone,p=null!=c?c:"UTC",h=(e,t)=>e===l.c_.local&&c?p:t;a()}catch(c){a(c)}})},23648:function(e,t,i){i.d(t,{y:function(){return n}});i(39710),i(56389);var a=i(28105),o=i(67563);const n=(0,a.Z)(e=>{if(e.time_format===o.zt.language||e.time_format===o.zt.system){const t=e.time_format===o.zt.language?e.language:void 0;return new Date("January 1, 2023 22:00:00").toLocaleString(t).includes("10")}return e.time_format===o.zt.am_pm})},12942:function(e,t,i){i.r(t);i(26847),i(27530);var a=i(73742),o=i(59048),n=i(7616),r=i(31733),s=i(39884);i(81777),i(993);let l,d,c,p,h=e=>e;const u={info:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z",warning:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16",error:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",success:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"};class m extends o.oi{render(){return(0,o.dy)(l||(l=h` <div class="issue-type ${0}" role="alert"> <div class="icon ${0}"> <slot name="icon"> <ha-svg-icon .path="${0}"></ha-svg-icon> </slot> </div> <div class="${0}"> <div class="main-content"> ${0} <slot></slot> </div> <div class="action"> <slot name="action"> ${0} </slot> </div> </div> </div> `),(0,r.$)({[this.alertType]:!0}),this.title?"":"no-title",u[this.alertType],(0,r.$)({content:!0,narrow:this.narrow}),this.title?(0,o.dy)(d||(d=h`<div class="title">${0}</div>`),this.title):o.Ld,this.dismissable?(0,o.dy)(c||(c=h`<ha-icon-button @click="${0}" label="Dismiss alert" .path="${0}"></ha-icon-button>`),this._dismissClicked,"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"):o.Ld)}_dismissClicked(){(0,s.B)(this,"alert-dismissed-clicked")}constructor(...e){super(...e),this.title="",this.alertType="info",this.dismissable=!1,this.narrow=!1}}m.styles=(0,o.iv)(p||(p=h`.issue-type{position:relative;padding:8px;display:flex}.issue-type::after{position:absolute;top:0;right:0;bottom:0;left:0;opacity:.12;pointer-events:none;content:"";border-radius:4px}.icon{z-index:1}.icon.no-title{align-self:center}.content{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:var(--float-start)}.content.narrow{flex-direction:column;align-items:flex-end}.action{z-index:1;width:min-content;--mdc-theme-primary:var(--primary-text-color)}.main-content{overflow-wrap:anywhere;word-break:break-word;margin-left:8px;margin-right:0;margin-inline-start:8px;margin-inline-end:0}.title{margin-top:2px;font-weight:var(--ha-font-weight-bold)}.action ha-icon-button{--mdc-theme-primary:var(--primary-text-color);--mdc-icon-button-size:36px}.issue-type.info>.icon{color:var(--info-color)}.issue-type.info::after{background-color:var(--info-color)}.issue-type.warning>.icon{color:var(--warning-color)}.issue-type.warning::after{background-color:var(--warning-color)}.issue-type.error>.icon{color:var(--error-color)}.issue-type.error::after{background-color:var(--error-color)}.issue-type.success>.icon{color:var(--success-color)}.issue-type.success::after{background-color:var(--success-color)}:host ::slotted(ul){margin:0;padding-inline-start:20px}`)),(0,a.__decorate)([(0,n.Cb)()],m.prototype,"title",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:"alert-type"})],m.prototype,"alertType",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],m.prototype,"dismissable",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],m.prototype,"narrow",void 0),m=(0,a.__decorate)([(0,n.Mo)("ha-alert")],m)},53166:function(e,t,i){i(26847),i(27530);var a=i(73742),o=i(3416),n=i(24196),r=i(59048),s=i(7616),l=i(31733),d=i(39884);let c,p,h=e=>e;class u extends o.a{render(){const e={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return(0,r.dy)(c||(c=h` <div class="mdc-form-field ${0}"> <slot></slot> <label class="mdc-label" @click="${0}"> <slot name="label">${0}</slot> </label> </div>`),(0,l.$)(e),this._labelClick,this.label)}_labelClick(){const e=this.input;if(e&&(e.focus(),!e.disabled))switch(e.tagName){case"HA-CHECKBOX":e.checked=!e.checked,(0,d.B)(e,"change");break;case"HA-RADIO":e.checked=!0,(0,d.B)(e,"change");break;default:e.click()}}constructor(...e){super(...e),this.disabled=!1}}u.styles=[n.W,(0,r.iv)(p||(p=h`:host(:not([alignEnd])) ::slotted(ha-switch){margin-right:10px;margin-inline-end:10px;margin-inline-start:inline}.mdc-form-field{align-items:var(--ha-formfield-align-items,center);gap:4px}.mdc-form-field>label{direction:var(--direction);margin-inline-start:0;margin-inline-end:auto;padding:0}:host([disabled]) label{color:var(--disabled-text-color)}`))],(0,a.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0})],u.prototype,"disabled",void 0),u=(0,a.__decorate)([(0,s.Mo)("ha-formfield")],u)},56161:function(e,t,i){i(26847),i(27530);var a=i(73742),o=i(59048),n=i(7616);i(81777),i(37492);let r,s,l,d=e=>e;class c extends o.oi{render(){var e;return(0,o.dy)(r||(r=d`<ha-textfield .invalid="${0}" .errorMessage="${0}" .icon="${0}" .iconTrailing="${0}" .autocomplete="${0}" .autocorrect="${0}" .inputSpellcheck="${0}" .value="${0}" .placeholder="${0}" .label="${0}" .disabled="${0}" .required="${0}" .minLength="${0}" .maxLength="${0}" .outlined="${0}" .helper="${0}" .validateOnInitialRender="${0}" .validationMessage="${0}" .autoValidate="${0}" .pattern="${0}" .size="${0}" .helperPersistent="${0}" .charCounter="${0}" .endAligned="${0}" .prefix="${0}" .name="${0}" .inputMode="${0}" .readOnly="${0}" .autocapitalize="${0}" .type="${0}" .suffix="${0}" @input="${0}" @change="${0}"></ha-textfield> <ha-icon-button .label="${0}" @click="${0}" .path="${0}"></ha-icon-button>`),this.invalid,this.errorMessage,this.icon,this.iconTrailing,this.autocomplete,this.autocorrect,this.inputSpellcheck,this.value,this.placeholder,this.label,this.disabled,this.required,this.minLength,this.maxLength,this.outlined,this.helper,this.validateOnInitialRender,this.validationMessage,this.autoValidate,this.pattern,this.size,this.helperPersistent,this.charCounter,this.endAligned,this.prefix,this.name,this.inputMode,this.readOnly,this.autocapitalize,this._unmaskedPassword?"text":"password",(0,o.dy)(s||(s=d`<div style="width:24px"></div>`)),this._handleInputEvent,this._handleChangeEvent,(null===(e=this.hass)||void 0===e?void 0:e.localize(this._unmaskedPassword?"ui.components.selectors.text.hide_password":"ui.components.selectors.text.show_password"))||(this._unmaskedPassword?"Hide password":"Show password"),this._toggleUnmaskedPassword,this._unmaskedPassword?"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z":"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z")}focus(){this._textField.focus()}checkValidity(){return this._textField.checkValidity()}reportValidity(){return this._textField.reportValidity()}setCustomValidity(e){return this._textField.setCustomValidity(e)}layout(){return this._textField.layout()}_toggleUnmaskedPassword(){this._unmaskedPassword=!this._unmaskedPassword}_handleInputEvent(e){this.value=e.target.value}_handleChangeEvent(e){this.value=e.target.value,this._reDispatchEvent(e)}_reDispatchEvent(e){const t=new Event(e.type,e);this.dispatchEvent(t)}constructor(...e){super(...e),this.icon=!1,this.iconTrailing=!1,this.value="",this.placeholder="",this.label="",this.disabled=!1,this.required=!1,this.minLength=-1,this.maxLength=-1,this.outlined=!1,this.helper="",this.validateOnInitialRender=!1,this.validationMessage="",this.autoValidate=!1,this.pattern="",this.size=null,this.helperPersistent=!1,this.charCounter=!1,this.endAligned=!1,this.prefix="",this.suffix="",this.name="",this.readOnly=!1,this.autocapitalize="",this._unmaskedPassword=!1}}c.styles=(0,o.iv)(l||(l=d`:host{display:block;position:relative}ha-textfield{width:100%}ha-icon-button{position:absolute;top:8px;right:8px;inset-inline-start:initial;inset-inline-end:8px;--mdc-icon-button-size:40px;--mdc-icon-size:20px;color:var(--secondary-text-color);direction:var(--direction)}`)),(0,a.__decorate)([(0,n.Cb)({attribute:!1})],c.prototype,"hass",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],c.prototype,"invalid",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:"error-message"})],c.prototype,"errorMessage",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],c.prototype,"icon",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],c.prototype,"iconTrailing",void 0),(0,a.__decorate)([(0,n.Cb)()],c.prototype,"autocomplete",void 0),(0,a.__decorate)([(0,n.Cb)()],c.prototype,"autocorrect",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:"input-spellcheck"})],c.prototype,"inputSpellcheck",void 0),(0,a.__decorate)([(0,n.Cb)({type:String})],c.prototype,"value",void 0),(0,a.__decorate)([(0,n.Cb)({type:String})],c.prototype,"placeholder",void 0),(0,a.__decorate)([(0,n.Cb)({type:String})],c.prototype,"label",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean,reflect:!0})],c.prototype,"disabled",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],c.prototype,"required",void 0),(0,a.__decorate)([(0,n.Cb)({type:Number})],c.prototype,"minLength",void 0),(0,a.__decorate)([(0,n.Cb)({type:Number})],c.prototype,"maxLength",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean,reflect:!0})],c.prototype,"outlined",void 0),(0,a.__decorate)([(0,n.Cb)({type:String})],c.prototype,"helper",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],c.prototype,"validateOnInitialRender",void 0),(0,a.__decorate)([(0,n.Cb)({type:String})],c.prototype,"validationMessage",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],c.prototype,"autoValidate",void 0),(0,a.__decorate)([(0,n.Cb)({type:String})],c.prototype,"pattern",void 0),(0,a.__decorate)([(0,n.Cb)({type:Number})],c.prototype,"size",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],c.prototype,"helperPersistent",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],c.prototype,"charCounter",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],c.prototype,"endAligned",void 0),(0,a.__decorate)([(0,n.Cb)({type:String})],c.prototype,"prefix",void 0),(0,a.__decorate)([(0,n.Cb)({type:String})],c.prototype,"suffix",void 0),(0,a.__decorate)([(0,n.Cb)({type:String})],c.prototype,"name",void 0),(0,a.__decorate)([(0,n.Cb)({type:String,attribute:"input-mode"})],c.prototype,"inputMode",void 0),(0,a.__decorate)([(0,n.Cb)({type:Boolean})],c.prototype,"readOnly",void 0),(0,a.__decorate)([(0,n.Cb)({attribute:!1,type:String})],c.prototype,"autocapitalize",void 0),(0,a.__decorate)([(0,n.SB)()],c.prototype,"_unmaskedPassword",void 0),(0,a.__decorate)([(0,n.IO)("ha-textfield")],c.prototype,"_textField",void 0),(0,a.__decorate)([(0,n.hO)({passive:!0})],c.prototype,"_handleInputEvent",null),(0,a.__decorate)([(0,n.hO)({passive:!0})],c.prototype,"_handleChangeEvent",null),c=(0,a.__decorate)([(0,n.Mo)("ha-password-field")],c)},20287:function(e,t,i){var a=i(73742),o=i(94626),n=i(89994),r=i(59048),s=i(7616);let l;class d extends o.J{}d.styles=[n.W,(0,r.iv)(l||(l=(e=>e)`:host{--mdc-theme-secondary:var(--primary-color)}`))],d=(0,a.__decorate)([(0,s.Mo)("ha-radio")],d)},56730:function(e,t,i){i.d(t,{T:function(){return a}});const a="m12.151 1.5882c-.3262 0-.6523.1291-.8996.3867l-8.3848 8.7354c-.0619.0644-.1223.1368-.1807.2154-.0588.0789-.1151.1638-.1688.2534-.2593.4325-.4552.9749-.5232 1.4555-.0026.018-.0076.0369-.0094.0548-.0121.0987-.0184.1944-.0184.2857v8.0124a1.2731 1.2731 0 001.2731 1.2731h7.8313l-3.4484-3.593a1.7399 1.7399 0 111.0803-1.125l2.6847 2.7972v-10.248a1.7399 1.7399 0 111.5276-0v7.187l2.6702-2.782a1.7399 1.7399 0 111.0566 1.1505l-3.7269 3.8831v2.7299h8.174a1.2471 1.2471 0 001.2471-1.2471v-8.0375c0-.0912-.0059-.1868-.0184-.2855-.0603-.4935-.2636-1.0617-.5326-1.5105-.0537-.0896-.1101-.1745-.1684-.253-.0588-.079-.1191-.1513-.181-.2158l-8.3848-8.7363c-.2473-.2577-.5735-.3866-.8995-.3864"}}]);
//# sourceMappingURL=2080.0e3baaaa6c1431bd.js.map