supervisor/supervisor/api/panel/frontend_es5/1028.ed91bed4e208ccab.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

10 lines
13 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see 1028.ed91bed4e208ccab.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["1028"],{36723:function(t,e,i){i.d(e,{O:function(){return v}});i(26847),i(27530);var o=i(73742),a=i(94068),l=i(59048),s=i(7616),d=i(31733),r=i(25191),n=i(96480);let h,p,u=t=>t;const c={fromAttribute(t){return null!==t&&(""===t||t)},toAttribute(t){return"boolean"==typeof t?t?"":null:t}};class v extends a.P{render(){const t=this.charCounter&&-1!==this.maxLength,e=t&&"internal"===this.charCounter,i=t&&!e,o=!!this.helper||!!this.validationMessage||i,a={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--end-aligned":this.endAligned,"mdc-text-field--with-internal-counter":e};return(0,l.dy)(h||(h=u` <label class="mdc-text-field mdc-text-field--textarea ${0}"> ${0} ${0} ${0} ${0} ${0} </label> ${0} `),(0,d.$)(a),this.renderRipple(),this.outlined?this.renderOutline():this.renderLabel(),this.renderInput(),this.renderCharCounter(e),this.renderLineRipple(),this.renderHelperText(o,i))}renderInput(){const t=this.label?"label":void 0,e=-1===this.minLength?void 0:this.minLength,i=-1===this.maxLength?void 0:this.maxLength,o=this.autocapitalize?this.autocapitalize:void 0;return(0,l.dy)(p||(p=u` <textarea aria-labelledby="${0}" class="mdc-text-field__input" .value="${0}" rows="${0}" cols="${0}" ?disabled="${0}" placeholder="${0}" ?required="${0}" ?readonly="${0}" minlength="${0}" maxlength="${0}" name="${0}" inputmode="${0}" autocapitalize="${0}" @input="${0}" @blur="${0}">
</textarea>`),(0,r.o)(t),(0,n.a)(this.value),this.rows,this.cols,this.disabled,this.placeholder,this.required,this.readOnly,(0,r.o)(e),(0,r.o)(i),(0,r.o)(""===this.name?void 0:this.name),(0,r.o)(this.inputMode),(0,r.o)(o),this.handleInputChange,this.onInputBlur)}constructor(){super(...arguments),this.rows=2,this.cols=20,this.charCounter=!1}}(0,o.__decorate)([(0,s.IO)("textarea")],v.prototype,"formElement",void 0),(0,o.__decorate)([(0,s.Cb)({type:Number})],v.prototype,"rows",void 0),(0,o.__decorate)([(0,s.Cb)({type:Number})],v.prototype,"cols",void 0),(0,o.__decorate)([(0,s.Cb)({converter:c})],v.prototype,"charCounter",void 0)},31254:function(t,e,i){i.d(e,{W:function(){return a}});let o;const a=(0,i(59048).iv)(o||(o=(t=>t)`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`))},22534:function(t,e,i){i(26847),i(27530);var o=i(73742),a=i(59048),l=i(7616);let s,d,r=t=>t;class n extends a.oi{render(){return(0,a.dy)(s||(s=r`<slot></slot>`))}constructor(...t){super(...t),this.disabled=!1}}n.styles=(0,a.iv)(d||(d=r`:host{display:block;color:var(--mdc-text-field-label-ink-color,rgba(0,0,0,.6));font-size:.75rem;padding-left:16px;padding-right:16px;padding-inline-start:16px;padding-inline-end:16px;letter-spacing:var(
--mdc-typography-caption-letter-spacing,
.0333333333em
);line-height:normal}:host([disabled]){color:var(--mdc-text-field-disabled-ink-color,rgba(0,0,0,.6))}`)),(0,o.__decorate)([(0,l.Cb)({type:Boolean,reflect:!0})],n.prototype,"disabled",void 0),n=(0,o.__decorate)([(0,l.Mo)("ha-input-helper-text")],n)},97929:function(t,e,i){i.a(t,async function(t,e){try{i(26847),i(81738),i(6989),i(1455),i(27530);var o=i(73742),a=i(59048),l=i(7616),s=i(39884),d=i(95814),r=i(72953),n=(i(81777),i(37492),i(22534),t([r]));r=(n.then?(await n)():n)[0];let h,p,u,c,v=t=>t;const m="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",b="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";class x extends a.oi{render(){var t,e,i,o;return(0,a.dy)(h||(h=v` ${0} <div class="layout horizontal"> <ha-button size="small" appearance="filled" @click="${0}" .disabled="${0}"> ${0} <ha-svg-icon slot="end" .path="${0}"></ha-svg-icon> </ha-button> </div> ${0} `),this._items.map((t,e)=>{var i,o,l;const s=""+(this.itemIndex?` ${e+1}`:"");return(0,a.dy)(p||(p=v` <div class="layout horizontal center-center row"> <ha-textfield .suffix="${0}" .prefix="${0}" .type="${0}" .autocomplete="${0}" .disabled="${0}" dialogInitialFocus="${0}" .index="${0}" class="flex-auto" .label="${0}" .value="${0}" ?data-last="${0}" @input="${0}" @keydown="${0}"></ha-textfield> <ha-icon-button .disabled="${0}" .index="${0}" slot="navigationIcon" .label="${0}" @click="${0}" .path="${0}"></ha-icon-button> </div> `),this.inputSuffix,this.inputPrefix,this.inputType,this.autocomplete,this.disabled,e,e,""+(this.label?`${this.label}${s}`:""),t,e===this._items.length-1,this._editItem,this._keyDown,this.disabled,e,null!==(i=null!==(o=this.removeLabel)&&void 0!==o?o:null===(l=this.hass)||void 0===l?void 0:l.localize("ui.common.remove"))&&void 0!==i?i:"Remove",this._removeItem,m)}),this._addItem,this.disabled,null!==(t=null!==(e=this.addLabel)&&void 0!==e?e:this.label?null===(i=this.hass)||void 0===i?void 0:i.localize("ui.components.multi-textfield.add_item",{item:this.label}):null===(o=this.hass)||void 0===o?void 0:o.localize("ui.common.add"))&&void 0!==t?t:"Add",b,this.helper?(0,a.dy)(u||(u=v`<ha-input-helper-text .disabled="${0}">${0}</ha-input-helper-text>`),this.disabled,this.helper):a.Ld)}get _items(){var t;return null!==(t=this.value)&&void 0!==t?t:[]}async _addItem(){var t;const e=[...this._items,""];this._fireChanged(e),await this.updateComplete;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("ha-textfield[data-last]");null==i||i.focus()}async _editItem(t){const e=t.target.index,i=[...this._items];i[e]=t.target.value,this._fireChanged(i)}async _keyDown(t){"Enter"===t.key&&(t.stopPropagation(),this._addItem())}async _removeItem(t){const e=t.target.index,i=[...this._items];i.splice(e,1),this._fireChanged(i)}_fireChanged(t){this.value=t,(0,s.B)(this,"value-changed",{value:t})}static get styles(){return[d.Qx,(0,a.iv)(c||(c=v`.row{margin-bottom:8px}ha-textfield{display:block}ha-icon-button{display:block}`))]}constructor(...t){super(...t),this.disabled=!1,this.itemIndex=!1}}(0,o.__decorate)([(0,l.Cb)({attribute:!1})],x.prototype,"hass",void 0),(0,o.__decorate)([(0,l.Cb)({attribute:!1})],x.prototype,"value",void 0),(0,o.__decorate)([(0,l.Cb)({type:Boolean})],x.prototype,"disabled",void 0),(0,o.__decorate)([(0,l.Cb)()],x.prototype,"label",void 0),(0,o.__decorate)([(0,l.Cb)({attribute:!1})],x.prototype,"helper",void 0),(0,o.__decorate)([(0,l.Cb)({attribute:!1})],x.prototype,"inputType",void 0),(0,o.__decorate)([(0,l.Cb)({attribute:!1})],x.prototype,"inputSuffix",void 0),(0,o.__decorate)([(0,l.Cb)({attribute:!1})],x.prototype,"inputPrefix",void 0),(0,o.__decorate)([(0,l.Cb)({attribute:!1})],x.prototype,"autocomplete",void 0),(0,o.__decorate)([(0,l.Cb)({attribute:!1})],x.prototype,"addLabel",void 0),(0,o.__decorate)([(0,l.Cb)({attribute:!1})],x.prototype,"removeLabel",void 0),(0,o.__decorate)([(0,l.Cb)({attribute:"item-index",type:Boolean})],x.prototype,"itemIndex",void 0),x=(0,o.__decorate)([(0,l.Mo)("ha-multi-textfield")],x),e()}catch(h){e(h)}})},26326:function(t,e,i){i.a(t,async function(t,o){try{i.r(e),i.d(e,{HaTextSelector:function(){return f}});i(26847),i(1455),i(27530);var a=i(73742),l=i(59048),s=i(7616),d=i(45332),r=i(39884),n=(i(81777),i(97929)),h=(i(3333),i(37492),t([n]));n=(h.then?(await h)():h)[0];let p,u,c,v,m,b,x=t=>t;const _="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",y="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";class f extends l.oi{async focus(){var t;await this.updateComplete,null===(t=this.renderRoot.querySelector("ha-textarea, ha-textfield"))||void 0===t||t.focus()}render(){var t,e,i,o,a,s,r,n,h,b,f,$,g,C,w;return null!==(t=this.selector.text)&&void 0!==t&&t.multiple?(0,l.dy)(p||(p=x` <ha-multi-textfield .hass="${0}" .value="${0}" .disabled="${0}" .label="${0}" .inputType="${0}" .inputSuffix="${0}" .inputPrefix="${0}" .helper="${0}" .autocomplete="${0}" @value-changed="${0}"> </ha-multi-textfield> `),this.hass,(0,d.r)(null!==(b=this.value)&&void 0!==b?b:[]),this.disabled,this.label,null===(f=this.selector.text)||void 0===f?void 0:f.type,null===($=this.selector.text)||void 0===$?void 0:$.suffix,null===(g=this.selector.text)||void 0===g?void 0:g.prefix,this.helper,null===(C=this.selector.text)||void 0===C?void 0:C.autocomplete,this._handleChange):null!==(e=this.selector.text)&&void 0!==e&&e.multiline?(0,l.dy)(u||(u=x`<ha-textarea .name="${0}" .label="${0}" .placeholder="${0}" .value="${0}" .helper="${0}" helperPersistent .disabled="${0}" @input="${0}" autocapitalize="none" .autocomplete="${0}" spellcheck="false" .required="${0}" autogrow></ha-textarea>`),this.name,this.label,this.placeholder,this.value||"",this.helper,this.disabled,this._handleChange,null===(w=this.selector.text)||void 0===w?void 0:w.autocomplete,this.required):(0,l.dy)(c||(c=x`<ha-textfield .name="${0}" .value="${0}" .placeholder="${0}" .helper="${0}" helperPersistent .disabled="${0}" .type="${0}" @input="${0}" @change="${0}" .label="${0}" .prefix="${0}" .suffix="${0}" .required="${0}" .autocomplete="${0}"></ha-textfield> ${0}`),this.name,this.value||"",this.placeholder||"",this.helper,this.disabled,this._unmaskedPassword?"text":null===(i=this.selector.text)||void 0===i?void 0:i.type,this._handleChange,this._handleChange,this.label||"",null===(o=this.selector.text)||void 0===o?void 0:o.prefix,"password"===(null===(a=this.selector.text)||void 0===a?void 0:a.type)?(0,l.dy)(v||(v=x`<div style="width:24px"></div>`)):null===(s=this.selector.text)||void 0===s?void 0:s.suffix,this.required,null===(r=this.selector.text)||void 0===r?void 0:r.autocomplete,"password"===(null===(n=this.selector.text)||void 0===n?void 0:n.type)?(0,l.dy)(m||(m=x`<ha-icon-button .label="${0}" @click="${0}" .path="${0}"></ha-icon-button>`),(null===(h=this.hass)||void 0===h?void 0:h.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?y:_):"")}_toggleUnmaskedPassword(){this._unmaskedPassword=!this._unmaskedPassword}_handleChange(t){var e,i;t.stopPropagation();let o=null!==(e=null===(i=t.detail)||void 0===i?void 0:i.value)&&void 0!==e?e:t.target.value;this.value!==o&&((""===o||Array.isArray(o)&&0===o.length)&&!this.required&&(o=void 0),(0,r.B)(this,"value-changed",{value:o}))}constructor(...t){super(...t),this.disabled=!1,this.required=!0,this._unmaskedPassword=!1}}f.styles=(0,l.iv)(b||(b=x`:host{display:block;position:relative}ha-textarea,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,s.Cb)({attribute:!1})],f.prototype,"hass",void 0),(0,a.__decorate)([(0,s.Cb)()],f.prototype,"value",void 0),(0,a.__decorate)([(0,s.Cb)()],f.prototype,"name",void 0),(0,a.__decorate)([(0,s.Cb)()],f.prototype,"label",void 0),(0,a.__decorate)([(0,s.Cb)()],f.prototype,"placeholder",void 0),(0,a.__decorate)([(0,s.Cb)()],f.prototype,"helper",void 0),(0,a.__decorate)([(0,s.Cb)({attribute:!1})],f.prototype,"selector",void 0),(0,a.__decorate)([(0,s.Cb)({type:Boolean})],f.prototype,"disabled",void 0),(0,a.__decorate)([(0,s.Cb)({type:Boolean})],f.prototype,"required",void 0),(0,a.__decorate)([(0,s.SB)()],f.prototype,"_unmaskedPassword",void 0),f=(0,a.__decorate)([(0,s.Mo)("ha-selector-text")],f),o()}catch(p){o(p)}})},3333:function(t,e,i){i(26847),i(27530);var o=i(73742),a=i(36723),l=i(16880),s=i(31254),d=i(59048),r=i(7616);let n;class h extends a.O{updated(t){super.updated(t),this.autogrow&&t.has("value")&&(this.mdcRoot.dataset.value=this.value+'="')}constructor(...t){super(...t),this.autogrow=!1}}h.styles=[l.W,s.W,(0,d.iv)(n||(n=(t=>t)`:host([autogrow]) .mdc-text-field{position:relative;min-height:74px;min-width:178px;max-height:200px}:host([autogrow]) .mdc-text-field:after{content:attr(data-value);margin-top:23px;margin-bottom:9px;line-height:var(--ha-line-height-normal);min-height:42px;padding:0px 32px 0 16px;letter-spacing:var(
--mdc-typography-subtitle1-letter-spacing,
.009375em
);visibility:hidden;white-space:pre-wrap}:host([autogrow]) .mdc-text-field__input{position:absolute;height:calc(100% - 32px)}:host([autogrow]) .mdc-text-field.mdc-text-field--no-label:after{margin-top:16px;margin-bottom:16px}.mdc-floating-label{inset-inline-start:16px!important;inset-inline-end:initial!important;transform-origin:var(--float-start) top}@media only screen and (min-width:459px){:host([mobile-multiline]) .mdc-text-field__input{white-space:nowrap;max-height:16px}}`))],(0,o.__decorate)([(0,r.Cb)({type:Boolean,reflect:!0})],h.prototype,"autogrow",void 0),h=(0,o.__decorate)([(0,r.Mo)("ha-textarea")],h)}}]);
//# sourceMappingURL=1028.ed91bed4e208ccab.js.map