supervisor/supervisor/api/panel/frontend_es5/1533.187d1d4bd5a99136.js
github-actions[bot] 2078044062
Autoupdate frontend to version 20250205.0 (#5543)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-06 17:34:18 +01:00

18 lines
13 KiB
JavaScript

/*! For license information please see 1533.187d1d4bd5a99136.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["1533"],{32517:function(t,e,i){var s=i(1569),r=i(85779),n=i(27803),o=i(31126),a=i(29660),l=s.RegExp,d=l.prototype;r&&a((function(){var t=!0;try{l(".","d")}catch(a){t=!1}var e={},i="",s=t?"dgimsy":"gimsy",r=function(t,s){Object.defineProperty(e,t,{get:function(){return i+=s,!0}})},n={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(n.hasIndices="d"),n)r(o,n[o]);return Object.getOwnPropertyDescriptor(d,"flags").get.call(e)!==s||i!==s}))&&n(d,"flags",{configurable:!0,get:o})},78755:function(t,e,i){i.d(e,{g:()=>_});var s=i(9065),r=i(50778),n=(i(71695),i(19423),i(47021),i(57618),i(26499),i(23111),i(57243)),o=i(35359),a=i(79840),l=i(13823),d=i(64840);let c,m,h,u,p,g,f,v,y=t=>t;const b=(0,l.T)(n.oi);class x extends b{constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem((0,n.dy)(c||(c=y` <md-item> <div slot="container"> ${0} ${0} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${0} </md-item> `),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(t){const e="link"===this.type;let i;switch(this.type){case"link":i=(0,a.i0)(m||(m=y`a`));break;case"button":i=(0,a.i0)(h||(h=y`button`));break;default:i=(0,a.i0)(u||(u=y`li`))}const s="text"!==this.type,r=e&&this.target?this.target:n.Ld;return(0,a.dy)(p||(p=y`
<${0}
id="item"
tabindex="${0}"
?disabled=${0}
role="listitem"
aria-selected=${0}
aria-checked=${0}
aria-expanded=${0}
aria-haspopup=${0}
class="list-item ${0}"
href=${0}
target=${0}
@focus=${0}
>${0}</${0}>
`),i,this.isDisabled||!s?-1:0,this.isDisabled,this.ariaSelected||n.Ld,this.ariaChecked||n.Ld,this.ariaExpanded||n.Ld,this.ariaHasPopup||n.Ld,(0,o.$)(this.getRenderClasses()),this.href||n.Ld,r,this.onFocus,t,i)}renderRipple(){return"text"===this.type?n.Ld:(0,n.dy)(g||(g=y` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.isDisabled)}renderFocusRing(){return"text"===this.type?n.Ld:(0,n.dy)(f||(f=y` <md-focus-ring @visibility-changed="${0}" part="focus-ring" for="item" inward></md-focus-ring>`),this.onFocusRingVisibilityChanged)}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return(0,n.dy)(v||(v=y` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `))}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,d.oh)())}focus(){var t;null===(t=this.listItemRoot)||void 0===t||t.focus()}}x.shadowRootOptions=Object.assign(Object.assign({},n.oi.shadowRootOptions),{},{delegatesFocus:!0}),(0,s.__decorate)([(0,r.Cb)({type:Boolean,reflect:!0})],x.prototype,"disabled",void 0),(0,s.__decorate)([(0,r.Cb)({reflect:!0})],x.prototype,"type",void 0),(0,s.__decorate)([(0,r.Cb)({type:Boolean,attribute:"md-list-item",reflect:!0})],x.prototype,"isListItem",void 0),(0,s.__decorate)([(0,r.Cb)()],x.prototype,"href",void 0),(0,s.__decorate)([(0,r.Cb)()],x.prototype,"target",void 0),(0,s.__decorate)([(0,r.IO)(".list-item")],x.prototype,"listItemRoot",void 0);let C;const w=(0,n.iv)(C||(C=(t=>t)`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}@media(forced-colors:active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`));let _=class extends x{};_.styles=[w],_=(0,s.__decorate)([(0,r.Mo)("md-list-item")],_)},623:function(t,e,i){i.d(e,{j:()=>u});var s=i(9065),r=i(50778),n=(i(85601),i(71695),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(47021),i(57243)),o=i(7750);let a,l=t=>t;const d=new Set(Object.values(o.E));class c extends n.oi{get items(){return this.listController.items}constructor(){super(),this.listController=new o.g({isItem:t=>t.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:t=>{t.tabIndex=-1},activateItem:t=>{t.tabIndex=0},isNavigableKey:t=>d.has(t),isActivatable:t=>!t.disabled&&"text"!==t.type}),this.internals=this.attachInternals(),n.sk||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}render(){return(0,n.dy)(a||(a=l` <slot @deactivate-items="${0}" @request-activation="${0}" @slotchange="${0}"> </slot> `),this.listController.onDeactivateItems,this.listController.onRequestActivation,this.listController.onSlotchange)}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}}(0,s.__decorate)([(0,r.NH)({flatten:!0})],c.prototype,"slotItems",void 0);let m;const h=(0,n.iv)(m||(m=(t=>t)`:host{background:var(--md-list-container-color,var(--md-sys-color-surface,#fef7ff));color:unset;display:flex;flex-direction:column;outline:0;padding:8px 0;position:relative}`));let u=class extends c{};u.styles=[h],u=(0,s.__decorate)([(0,r.Mo)("md-list")],u)},74760:function(t,e,i){i.d(e,{D:()=>o});i(95078),i(23669),i(69235),i(12385),i(19134),i(5740),i(11740),i(44495),i(97003),i(32114);var s=i(76808),r=i(53907),n=i(18112);function o(t,e){var i;const o=()=>(0,r.L)(null==e?void 0:e.in,NaN),g=null!==(i=null==e?void 0:e.additionalDigits)&&void 0!==i?i:2,f=function(t){const e={},i=t.split(a.dateTimeDelimiter);let s;if(i.length>2)return e;/:/.test(i[0])?s=i[0]:(e.date=i[0],s=i[1],a.timeZoneDelimiter.test(e.date)&&(e.date=t.split(a.timeZoneDelimiter)[0],s=t.substr(e.date.length,t.length)));if(s){const t=a.timezone.exec(s);t?(e.time=s.replace(t[1],""),e.timezone=t[1]):e.time=s}return e}(t);let v;if(f.date){const t=function(t,e){const i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),s=t.match(i);if(!s)return{year:NaN,restDateString:""};const r=s[1]?parseInt(s[1]):null,n=s[2]?parseInt(s[2]):null;return{year:null===n?r:100*n,restDateString:t.slice((s[1]||s[2]).length)}}(f.date,g);v=function(t,e){if(null===e)return new Date(NaN);const i=t.match(l);if(!i)return new Date(NaN);const s=!!i[4],r=m(i[1]),n=m(i[2])-1,o=m(i[3]),a=m(i[4]),d=m(i[5])-1;if(s)return function(t,e,i){return e>=1&&e<=53&&i>=0&&i<=6}(0,a,d)?function(t,e,i){const s=new Date(0);s.setUTCFullYear(t,0,4);const r=s.getUTCDay()||7,n=7*(e-1)+i+1-r;return s.setUTCDate(s.getUTCDate()+n),s}(e,a,d):new Date(NaN);{const t=new Date(0);return function(t,e,i){return e>=0&&e<=11&&i>=1&&i<=(u[e]||(p(t)?29:28))}(e,n,o)&&function(t,e){return e>=1&&e<=(p(t)?366:365)}(e,r)?(t.setUTCFullYear(e,n,Math.max(r,o)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!v||isNaN(+v))return o();const y=+v;let b,x=0;if(f.time&&(x=function(t){const e=t.match(d);if(!e)return NaN;const i=h(e[1]),r=h(e[2]),n=h(e[3]);if(!function(t,e,i){if(24===t)return 0===e&&0===i;return i>=0&&i<60&&e>=0&&e<60&&t>=0&&t<25}(i,r,n))return NaN;return i*s.vh+r*s.yJ+1e3*n}(f.time),isNaN(x)))return o();if(!f.timezone){const t=new Date(y+x),i=(0,n.Q)(0,null==e?void 0:e.in);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}return b=function(t){if("Z"===t)return 0;const e=t.match(c);if(!e)return 0;const i="+"===e[1]?-1:1,r=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;if(!function(t,e){return e>=0&&e<=59}(0,n))return NaN;return i*(r*s.vh+n*s.yJ)}(f.timezone),isNaN(b)?o():(0,n.Q)(y+x+b,null==e?void 0:e.in)}const a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,d=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function m(t){return t?parseInt(t):1}function h(t){return t&&parseFloat(t.replace(",","."))||0}const u=[31,null,31,30,31,30,31,31,30,31,30,31];function p(t){return t%400==0||t%4==0&&t%100!=0}},94277:function(t,e,i){i.d(e,{UE:()=>s});i(71695),i(40251),i(39527),i(41360),i(47021);const s="NOT_RUNNING"},31050:function(t,e,i){i.d(e,{C:()=>h});i(71695),i(40251),i(39527),i(67670),i(47021);var s=i(2841),r=i(53232),n=i(1714);i(63721),i(88230),i(52247);class o{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class a{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}var l=i(45779);const d=t=>!(0,r.pt)(t)&&"function"==typeof t.then,c=1073741823;class m extends n.sR{constructor(){super(...arguments),this._$C_t=c,this._$Cwt=[],this._$Cq=new o(this),this._$CK=new a}render(...t){var e;return null!==(e=t.find((t=>!d(t))))&&void 0!==e?e:s.Jb}update(t,e){const i=this._$Cwt;let r=i.length;this._$Cwt=e;const n=this._$Cq,o=this._$CK;this.isConnected||this.disconnected();for(let s=0;s<e.length&&!(s>this._$C_t);s++){const t=e[s];if(!d(t))return this._$C_t=s,t;s<r&&t===i[s]||(this._$C_t=c,r=0,Promise.resolve(t).then((async e=>{for(;o.get();)await o.get();const i=n.deref();if(void 0!==i){const s=i._$Cwt.indexOf(t);s>-1&&s<i._$C_t&&(i._$C_t=s,i.setValue(e))}})))}return s.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const h=(0,l.XM)(m)}}]);
//# sourceMappingURL=1533.187d1d4bd5a99136.js.map