supervisor/supervisor/api/panel/frontend_es5/7706.ceb17e5fb9bd7c4b.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

11 lines
17 KiB
JavaScript

"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["7706"],{35529:function(t,o,e){e.a(t,async function(t,r){try{e.r(o);e(26847),e(27530);var a=e(73742),i=e(59048),s=e(7616),n=(e(51869),e(73737)),l=t([n]);n=(l.then?(await l)():l)[0];let c,d,h=t=>t;class u extends i.oi{render(){return(0,i.dy)(c||(c=h` <hass-subpage .hass="${0}" .narrow="${0}" .route="${0}"> <update-available-card .hass="${0}" .supervisor="${0}" .route="${0}" .narrow="${0}" @update-complete="${0}"></update-available-card> </hass-subpage> `),this.hass,this.narrow,this.route,this.hass,this.supervisor,this.route,this.narrow,this._updateComplete)}_updateComplete(){history.back()}constructor(...t){super(...t),this.narrow=!1}}u.styles=(0,i.iv)(d||(d=h`hass-subpage{--app-header-background-color:var(--primary-background-color);--app-header-text-color:var(--sidebar-text-color)}update-available-card{margin:auto;margin-top:16px;margin-bottom:24px;max-width:600px}`)),(0,a.__decorate)([(0,s.Cb)({attribute:!1})],u.prototype,"hass",void 0),(0,a.__decorate)([(0,s.Cb)({attribute:!1})],u.prototype,"supervisor",void 0),(0,a.__decorate)([(0,s.Cb)({type:Boolean})],u.prototype,"narrow",void 0),(0,a.__decorate)([(0,s.Cb)({attribute:!1})],u.prototype,"route",void 0),u=(0,a.__decorate)([(0,s.Mo)("update-available-dashboard")],u),r()}catch(c){r(c)}})},78206:function(t,o,e){e.a(t,async function(t,o){try{e(26847),e(27530);var r=e(73742),a=e(59048),i=e(7616),s=e(31733),n=e(72953),l=e(6514),c=(e(993),t([n,l]));[n,l]=c.then?(await c)():c;let d,h,u,p,v,b,m=t=>t;const f="M2.2,16.06L3.88,12L2.2,7.94L6.26,6.26L7.94,2.2L12,3.88L16.06,2.2L17.74,6.26L21.8,7.94L20.12,12L21.8,16.06L17.74,17.74L16.06,21.8L12,20.12L7.94,21.8L6.26,17.74L2.2,16.06M13,17V15H11V17H13M13,13V7H11V13H13Z",g="M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z";class y extends a.oi{render(){const t=this.progress||this._result?"accent":this.appearance;return(0,a.dy)(d||(d=m` <ha-button .appearance="${0}" .disabled="${0}" .loading="${0}" .variant="${0}" class="${0}"> ${0} <slot>${0}</slot> </ha-button> ${0} `),t,this.disabled,this.progress,"success"===this._result?"success":"error"===this._result?"danger":this.variant,(0,s.$)({result:!!this._result,success:"success"===this._result,error:"error"===this._result}),this.iconPath?(0,a.dy)(h||(h=m`<ha-svg-icon .path="${0}" slot="start"></ha-svg-icon>`),this.iconPath):a.Ld,this.label,this._result?(0,a.dy)(u||(u=m` <div class="progress"> ${0} </div> `),"success"===this._result?(0,a.dy)(p||(p=m`<ha-svg-icon .path="${0}"></ha-svg-icon>`),g):"error"===this._result?(0,a.dy)(v||(v=m`<ha-svg-icon .path="${0}"></ha-svg-icon>`),f):a.Ld):a.Ld)}actionSuccess(){this._setResult("success")}actionError(){this._setResult("error")}_setResult(t){this._result=t,setTimeout(()=>{this._result=void 0},2e3)}constructor(...t){super(...t),this.disabled=!1,this.progress=!1,this.appearance="accent",this.variant="brand"}}y.styles=(0,a.iv)(b||(b=m`:host{outline:0;display:inline-block;position:relative}:host([progress]){pointer-events:none}.progress{bottom:0;display:flex;justify-content:center;align-items:center;position:absolute;top:0;width:100%}ha-button{width:100%}ha-button.result::part(caret),ha-button.result::part(end),ha-button.result::part(label),ha-button.result::part(spinner),ha-button.result::part(start){visibility:hidden}ha-svg-icon{color:var(--white-color)}`)),(0,r.__decorate)([(0,i.Cb)()],y.prototype,"label",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],y.prototype,"disabled",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0})],y.prototype,"progress",void 0),(0,r.__decorate)([(0,i.Cb)()],y.prototype,"appearance",void 0),(0,r.__decorate)([(0,i.Cb)({attribute:!1})],y.prototype,"iconPath",void 0),(0,r.__decorate)([(0,i.Cb)()],y.prototype,"variant",void 0),(0,r.__decorate)([(0,i.SB)()],y.prototype,"_result",void 0),y=(0,r.__decorate)([(0,i.Mo)("ha-progress-button")],y),o()}catch(d){o(d)}})},12942:function(t,o,e){e.r(o);e(26847),e(27530);var r=e(73742),a=e(59048),i=e(7616),s=e(31733),n=e(39884);e(81777),e(993);let l,c,d,h,u=t=>t;const p={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 v extends a.oi{render(){return(0,a.dy)(l||(l=u` <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,s.$)({[this.alertType]:!0}),this.title?"":"no-title",p[this.alertType],(0,s.$)({content:!0,narrow:this.narrow}),this.title?(0,a.dy)(c||(c=u`<div class="title">${0}</div>`),this.title):a.Ld,this.dismissable?(0,a.dy)(d||(d=u`<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"):a.Ld)}_dismissClicked(){(0,n.B)(this,"alert-dismissed-clicked")}constructor(...t){super(...t),this.title="",this.alertType="info",this.dismissable=!1,this.narrow=!1}}v.styles=(0,a.iv)(h||(h=u`.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,r.__decorate)([(0,i.Cb)()],v.prototype,"title",void 0),(0,r.__decorate)([(0,i.Cb)({attribute:"alert-type"})],v.prototype,"alertType",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],v.prototype,"dismissable",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],v.prototype,"narrow",void 0),v=(0,r.__decorate)([(0,i.Mo)("ha-alert")],v)},41037:function(t,o,e){e(26847),e(81738),e(22960),e(27530);var r=e(73742),a=e(59048),i=e(7616),s=e(88479);e(60115),e(39765);let n,l,c=t=>t;class d extends a.oi{get items(){var t;return null===(t=this._menu)||void 0===t?void 0:t.items}get selected(){var t;return null===(t=this._menu)||void 0===t?void 0:t.selected}focus(){var t,o;null!==(t=this._menu)&&void 0!==t&&t.open?this._menu.focusItemAtIndex(0):null===(o=this._triggerButton)||void 0===o||o.focus()}render(){return(0,a.dy)(n||(n=c` <div @click="${0}"> <slot name="trigger" @slotchange="${0}"></slot> </div> <ha-menu .corner="${0}" .menuCorner="${0}" .fixed="${0}" .multi="${0}" .activatable="${0}" .y="${0}" .x="${0}"> <slot></slot> </ha-menu> `),this._handleClick,this._setTriggerAria,this.corner,this.menuCorner,this.fixed,this.multi,this.activatable,this.y,this.x)}firstUpdated(t){super.firstUpdated(t),"rtl"===s.E.document.dir&&this.updateComplete.then(()=>{this.querySelectorAll("ha-list-item").forEach(t=>{const o=document.createElement("style");o.innerHTML="span.material-icons:first-of-type { margin-left: var(--mdc-list-item-graphic-margin, 32px) !important; margin-right: 0px !important;}",t.shadowRoot.appendChild(o)})})}_handleClick(){this.disabled||(this._menu.anchor=this.noAnchor?null:this,this._menu.show())}get _triggerButton(){return this.querySelector('ha-icon-button[slot="trigger"], ha-button[slot="trigger"]')}_setTriggerAria(){this._triggerButton&&(this._triggerButton.ariaHasPopup="menu")}constructor(...t){super(...t),this.corner="BOTTOM_START",this.menuCorner="START",this.x=null,this.y=null,this.multi=!1,this.activatable=!1,this.disabled=!1,this.fixed=!1,this.noAnchor=!1}}d.styles=(0,a.iv)(l||(l=c`:host{display:inline-block;position:relative}::slotted([disabled]){color:var(--disabled-text-color)}`)),(0,r.__decorate)([(0,i.Cb)()],d.prototype,"corner",void 0),(0,r.__decorate)([(0,i.Cb)({attribute:"menu-corner"})],d.prototype,"menuCorner",void 0),(0,r.__decorate)([(0,i.Cb)({type:Number})],d.prototype,"x",void 0),(0,r.__decorate)([(0,i.Cb)({type:Number})],d.prototype,"y",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],d.prototype,"multi",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],d.prototype,"activatable",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],d.prototype,"disabled",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],d.prototype,"fixed",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean,attribute:"no-anchor"})],d.prototype,"noAnchor",void 0),(0,r.__decorate)([(0,i.IO)("ha-menu",!0)],d.prototype,"_menu",void 0),d=(0,r.__decorate)([(0,i.Mo)("ha-button-menu")],d)},72953:function(t,o,e){e.a(t,async function(t,o){try{e(26847),e(27530),e(11807);var r=e(73742),a=e(71328),i=e(59048),s=e(7616),n=e(29171),l=t([a]);a=(l.then?(await l)():l)[0];let c,d=t=>t;class h extends a.Z{attachInternals(){const t=super.attachInternals();return Object.defineProperty(t,"states",{value:new n.C(this,t.states)}),t}static get styles(){return[a.Z.styles,(0,i.iv)(c||(c=d`.button{--wa-form-control-padding-inline:16px;--wa-font-weight-action:var(--ha-font-weight-medium);--wa-form-control-border-radius:var(
--ha-button-border-radius,
var(--border-radius-pill)
);--wa-form-control-height:var(
--ha-button-height,
var(--button-height, 40px)
);font-size:var(--ha-font-size-m);line-height:1}:host([size=small]) .button{--wa-form-control-height:var(
--ha-button-height,
var(--button-height, 32px)
);font-size:var(--wa-font-size-s, var(--ha-font-size-m))}:host([variant=brand]){--button-color-fill-normal-active:var(--ha-color-fill-primary-normal-active);--button-color-fill-normal-hover:var(--ha-color-fill-primary-normal-hover);--button-color-fill-loud-active:var(--ha-color-fill-primary-loud-active);--button-color-fill-loud-hover:var(--ha-color-fill-primary-loud-hover)}:host([variant=neutral]){--button-color-fill-normal-active:var(--ha-color-fill-neutral-normal-active);--button-color-fill-normal-hover:var(--ha-color-fill-neutral-normal-hover);--button-color-fill-loud-active:var(--ha-color-fill-neutral-loud-active);--button-color-fill-loud-hover:var(--ha-color-fill-neutral-loud-hover)}:host([variant=success]){--button-color-fill-normal-active:var(--ha-color-fill-success-normal-active);--button-color-fill-normal-hover:var(--ha-color-fill-success-normal-hover);--button-color-fill-loud-active:var(--ha-color-fill-success-loud-active);--button-color-fill-loud-hover:var(--ha-color-fill-success-loud-hover)}:host([variant=warning]){--button-color-fill-normal-active:var(--ha-color-fill-warning-normal-active);--button-color-fill-normal-hover:var(--ha-color-fill-warning-normal-hover);--button-color-fill-loud-active:var(--ha-color-fill-warning-loud-active);--button-color-fill-loud-hover:var(--ha-color-fill-warning-loud-hover)}:host([variant=danger]){--button-color-fill-normal-active:var(--ha-color-fill-danger-normal-active);--button-color-fill-normal-hover:var(--ha-color-fill-danger-normal-hover);--button-color-fill-loud-active:var(--ha-color-fill-danger-loud-active);--button-color-fill-loud-hover:var(--ha-color-fill-danger-loud-hover)}:host([appearance~=plain]) .button{color:var(--wa-color-on-normal)}:host([appearance~=plain]) .button.disabled{background-color:transparent;color:var(--ha-color-on-disabled-quiet)}:host([appearance~=outlined]) .button.disabled{background-color:transparent;color:var(--ha-color-on-disabled-quiet)}@media (hover:hover){:host([appearance~=filled]) .button:not(.disabled):not(.loading):hover{background-color:var(--button-color-fill-normal-hover)}:host([appearance~=accent]) .button:not(.disabled):not(.loading):hover{background-color:var(--button-color-fill-loud-hover)}:host([appearance~=plain]) .button:not(.disabled):not(.loading):hover{color:var(--wa-color-on-normal)}}:host([appearance~=filled]) .button:not(.disabled):not(.loading):active{background-color:var(--button-color-fill-normal-active)}:host([appearance~=filled]) .button.disabled{background-color:var(--ha-color-fill-disabled-normal-resting);color:var(--ha-color-on-disabled-normal)}:host([appearance~=accent]) .button{background-color:var(--wa-color-fill-loud,var(--wa-color-neutral-fill-loud))}:host([appearance~=accent]) .button:not(.disabled):not(.loading):active{background-color:var(--button-color-fill-loud-active)}:host([appearance~=accent]) .button.disabled{background-color:var(--ha-color-fill-disabled-loud-resting);color:var(--ha-color-on-disabled-loud)}:host([loading]){pointer-events:none}.button.disabled{opacity:1}`))]}constructor(...t){super(...t),this.variant="brand"}}h=(0,r.__decorate)([(0,s.Mo)("ha-button")],h),o()}catch(c){o(c)}})},64881:function(t,o,e){var r=e(73742),a=e(92560),i=e(84862),s=e(7616);class n extends a.Kh{}n.styles=i.W,n=(0,r.__decorate)([(0,s.Mo)("ha-list")],n)},39765:function(t,o,e){var r=e(73742),a=e(69287),i=e(70840),s=e(59048),n=e(7616),l=e(31733);e(64881);let c,d=t=>t;class h extends a.HB{get listElement(){return this.listElement_||(this.listElement_=this.renderRoot.querySelector("ha-list")),this.listElement_}renderList(){const t="menu"===this.innerRole?"menuitem":"option",o=this.renderListClasses();return(0,s.dy)(c||(c=d`<ha-list rootTabbable .innerAriaLabel="${0}" .innerRole="${0}" .multi="${0}" class="${0}" .itemRoles="${0}" .wrapFocus="${0}" .activatable="${0}" @action="${0}"> <slot></slot> </ha-list>`),this.innerAriaLabel,this.innerRole,this.multi,(0,l.$)(o),t,this.wrapFocus,this.activatable,this.onAction)}}h.styles=i.W,h=(0,r.__decorate)([(0,n.Mo)("ha-menu")],h)},86699:function(t,o,e){e(26847),e(27530);var r=e(73742),a=e(1516),i=e(82028),s=e(59048),n=e(7616),l=e(21202);let c;class d extends a.H{firstUpdated(){super.firstUpdated(),this.addEventListener("change",()=>{this.haptic&&(0,l.j)("light")})}constructor(...t){super(...t),this.haptic=!1}}d.styles=[i.W,(0,s.iv)(c||(c=(t=>t)`:host{--mdc-theme-secondary:var(--switch-checked-color)}.mdc-switch.mdc-switch--checked .mdc-switch__thumb{background-color:var(--switch-checked-button-color);border-color:var(--switch-checked-button-color)}.mdc-switch.mdc-switch--checked .mdc-switch__track{background-color:var(--switch-checked-track-color);border-color:var(--switch-checked-track-color)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb{background-color:var(--switch-unchecked-button-color);border-color:var(--switch-unchecked-button-color)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track{background-color:var(--switch-unchecked-track-color);border-color:var(--switch-unchecked-track-color)}`))],(0,r.__decorate)([(0,n.Cb)({type:Boolean})],d.prototype,"haptic",void 0),d=(0,r.__decorate)([(0,n.Mo)("ha-switch")],d)},21202:function(t,o,e){e.d(o,{j:function(){return a}});var r=e(39884);const a=t=>{(0,r.B)(window,"haptic",t)}},79340:function(t,o,e){e.d(o,{t:function(){return a},y:function(){return i}});e(1455);var r=e(43893);const a=async t=>{await t.callService("homeassistant","restart")},i=async(t,o)=>{(0,r.I)(t.config.version,2025,2,0)?await t.callWS({type:"hassio/update/core",backup:o}):(0,r.I)(t.config.version,2021,2,4)?await t.callWS({type:"supervisor/api",endpoint:"/core/update",method:"post",timeout:null,data:{backup:o}}):await t.callApi("POST","hassio/core/update",{backup:o})}},29171:function(t,o,e){e.d(o,{C:function(){return r}});e(26847),e(64455),e(67886),e(65451),e(46015),e(38334),e(94880),e(75643),e(29761),e(6202),e(27530);class r extends Set{add(t){super.add(t);const o=this._existing;if(o)try{o.add(t)}catch(e){o.add(`--${t}`)}else this._el.setAttribute(`state-${t}`,"");return this}delete(t){super.delete(t);const o=this._existing;return o?(o.delete(t),o.delete(`--${t}`)):this._el.removeAttribute(`state-${t}`),!0}has(t){return super.has(t)}clear(){for(const t of this)this.delete(t)}constructor(t,o=null){super(),this._existing=null,this._el=t,this._existing=o}}const a=CSSStyleSheet.prototype.replaceSync;Object.defineProperty(CSSStyleSheet.prototype,"replaceSync",{value:function(t){t=t.replace(/:state\(([^)]+)\)/g,":where(:state($1), :--$1, [state-$1])"),a.call(this,t)}})}}]);
//# sourceMappingURL=7706.ceb17e5fb9bd7c4b.js.map