"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["3934"],{57237:function(t,a,i){i.d(a,{d:function(){return o}});const o=t=>t.stopPropagation()},36961:function(t,a,i){i.d(a,{q:function(){return e}});var o;i(31436),i(74423),i(55081);const e=Boolean(globalThis.ElementInternals)&&(null===(o=globalThis.HTMLElement)||void 0===o||null===(o=o.prototype.attachInternals)||void 0===o?void 0:o.toString().includes("[native code]"))},64481:function(t,a,i){i.d(a,{D:function(){return e},J:function(){return r}});i(3362);let o=!1;try{o="true"===window.localStorage.getItem("disableViewTransition")}catch(n){}const e=t=>{o=t},r=t=>{if(!document.startViewTransition||o)return t(!1),Promise.resolve();let a=!1;try{return document.startViewTransition(()=>{a=!0,t(!0)}).finished}catch(i){return console.warn("View transition failed, falling back to direct execution.",i),a?Promise.reject(i):(t(!1),Promise.resolve())}}},34127:function(t,a,i){i.a(t,async function(t,a){try{i(62953);var o=i(40445),e=i(52630),r=i(96196),n=i(77845),l=t([e]);e=(l.then?(await l)():l)[0];let s,p=t=>t;class d extends e.A{static get styles(){return[e.A.styles,(0,r.AH)(s||(s=p`:host{--wa-tooltip-background-color:var(
            --ha-tooltip-background-color,
            var(--secondary-background-color)
          );--wa-tooltip-content-color:var(
            --ha-tooltip-text-color,
            var(--primary-text-color)
          );--wa-tooltip-font-family:var(
            --ha-tooltip-font-family,
            var(--ha-font-family-body)
          );--wa-tooltip-font-size:var(
            --ha-tooltip-font-size,
            var(--ha-font-size-s)
          );--wa-tooltip-font-weight:var(
            --ha-tooltip-font-weight,
            var(--ha-font-weight-normal)
          );--wa-tooltip-line-height:var(
            --ha-tooltip-line-height,
            var(--ha-line-height-condensed)
          );--wa-tooltip-padding:var(--ha-tooltip-padding, var(--ha-space-2));--wa-tooltip-border-radius:var(
            --ha-tooltip-border-radius,
            var(--ha-border-radius-sm)
          );--wa-tooltip-arrow-size:var(--ha-tooltip-arrow-size, 8px);--wa-tooltip-border-width:0px;--wa-z-index-tooltip:1000}`))]}constructor(...t){super(...t),this.showDelay=150,this.hideDelay=150}}(0,o.Cg)([(0,n.MZ)({attribute:"show-delay",type:Number})],d.prototype,"showDelay",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"hide-delay",type:Number})],d.prototype,"hideDelay",void 0),d=(0,o.Cg)([(0,n.EM)("ha-tooltip")],d),a()}catch(s){a(s)}})},91485:function(t,a,i){i.a(t,async function(t,o){try{i.d(a,{U:function(){return k}});i(3362),i(27495),i(62953);var e=i(40445),r=(i(54430),i(30006)),n=i(92070),l=i(96196),s=i(77845),p=i(94333),d=i(32288),h=i(22786),u=i(57237),c=i(26300),v=(i(67094),i(34127)),g=i(36961),b=t([r,c,v]);[r,c,v]=b.then?(await b)():b;let w,y,m,f,C=t=>t;const M="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",_="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",$="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 k extends l.WF{select(){var t;null===(t=this._input)||void 0===t||t.select()}setSelectionRange(t,a,i){var o;null===(o=this._input)||void 0===o||o.setSelectionRange(t,a,i)}setRangeText(t,a,i,o){var e;null===(e=this._input)||void 0===e||e.setRangeText(t,a,i,o)}showPicker(){var t;null===(t=this._input)||void 0===t||t.showPicker()}stepUp(){var t;null===(t=this._input)||void 0===t||t.stepUp()}stepDown(){var t;null===(t=this._input)||void 0===t||t.stepDown()}checkValidity(){var t,a;return!g.q||(null===(t=null===(a=this._input)||void 0===a?void 0:a.checkValidity())||void 0===t||t)}reportValidity(){const t=this.checkValidity();return this._invalid=!t,t}async firstUpdated(t){var a;(super.firstUpdated(t),this.insetLabel)||(await(null===(a=this._input)||void 0===a?void 0:a.updateComplete),this._syncStartSlotWidth())}render(){var t,a;const i=!this.label&&this._hasSlotController.test("label"),o=!this.hint&&this._hasSlotController.test("hint");return(0,l.qy)(w||(w=C` <wa-input .type="${0}" .value="${0}" .withClear="${0}" .placeholder="${0}" .readonly="${0}" .passwordToggle="${0}" .passwordVisible="${0}" .withoutSpinButtons="${0}" .required="${0}" .pattern="${0}" .minlength="${0}" .maxlength="${0}" .min="${0}" .max="${0}" .step="${0}" .autocapitalize="${0}" .autocorrect="${0}" .autocomplete="${0}" .autofocus="${0}" .enterkeyhint="${0}" .spellcheck="${0}" .inputmode="${0}" .name="${0}" .disabled="${0}" class="${0}" @input="${0}" @change="${0}" @blur="${0}" @wa-invalid="${0}" exportparts="base:wa-base, hint:wa-hint, input:wa-input"> ${0} <slot name="start" slot="start" @slotchange="${0}"> ${0} </slot> <slot name="end" slot="end"> ${0} </slot> <slot name="clear-icon" slot="clear-icon"> <ha-icon-button .path="${0}"></ha-icon-button> </slot> <slot name="show-password-icon" slot="show-password-icon"> <ha-icon-button @keydown="${0}" .path="${0}"></ha-icon-button> </slot> <slot name="hide-password-icon" slot="hide-password-icon"> <ha-icon-button @keydown="${0}" .path="${0}"></ha-icon-button> </slot> <div slot="hint" class="${0}" role="${0}" aria-live="polite"> ${0} </div> </wa-input> `),this.type,null!==(t=this.value)&&void 0!==t?t:null,this.withClear,this.placeholder,this.readonly,this.passwordToggle,this.passwordVisible,this.withoutSpinButtons,this.required,this.pattern,this.minlength,this.maxlength,this.min,this.max,this.step,this.autocapitalize||void 0,this.autocorrect?"on":"off",this.autocomplete,this.autofocus,this.enterkeyhint||void 0,this.spellcheck,this.inputmode||void 0,this.name,this.disabled,(0,p.H)({invalid:this.invalid||this._invalid,"label-raised":void 0!==this.value&&""!==this.value||this.label&&this.placeholder,"no-label":!this.label,"hint-hidden":!(this.hint||o||this.required||this._invalid||this.invalid)}),this._handleInput,this._handleChange,this._handleBlur,this._handleInvalid,this.label||i?(0,l.qy)(y||(y=C`<slot name="label" slot="label">${0}</slot>`),this._renderLabel(this.label,this.required)):l.s6,this._syncStartSlotWidth,this.renderStartDefault(),this.renderEndDefault(),M,u.d,_,u.d,$,(0,p.H)({error:this.invalid||this._invalid}),(0,d.J)(this.invalid||this._invalid?"alert":void 0),this._invalid||this.invalid?this.validationMessage||(null===(a=this._input)||void 0===a?void 0:a.validationMessage):this.hint||(o?(0,l.qy)(m||(m=C`<slot name="hint"></slot>`)):l.s6))}renderStartDefault(){return l.s6}renderEndDefault(){return l.s6}_handleInput(){var t,a,i;this.value=null!==(t=null===(a=this._input)||void 0===a?void 0:a.value)&&void 0!==t?t:void 0,this._invalid&&null!==(i=this._input)&&void 0!==i&&i.checkValidity()&&(this._invalid=!1)}_handleChange(){var t,a;this.value=null!==(t=null===(a=this._input)||void 0===a?void 0:a.value)&&void 0!==t?t:void 0}_handleBlur(){var t;this.autoValidate&&(this._invalid=!(null!==(t=this._input)&&void 0!==t&&t.checkValidity()))}_handleInvalid(){this._invalid=!0}constructor(...t){super(...t),this.appearance="material",this.type="text",this.label="",this.hint="",this.withClear=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.withoutSpinButtons=!1,this.required=!1,this.autocapitalize="",this.autocorrect=!1,this.autofocus=!1,this.enterkeyhint="",this.spellcheck=!0,this.inputmode="",this.disabled=!1,this.validationMessage="",this.autoValidate=!1,this.invalid=!1,this.insetLabel=!1,this._invalid=!1,this._hasSlotController=new n.X(this,"label","hint","input"),this._syncStartSlotWidth=()=>{var t,a;const i=null===(t=this._input)||void 0===t||null===(t=t.shadowRoot)||void 0===t?void 0:t.querySelector('[part~="start"]'),o=null!==(a=null==i?void 0:i.offsetWidth)&&void 0!==a?a:0;o>0&&!this.insetLabel?(this.style.setProperty("--start-slot-width",`calc(${o}px + var(--ha-space-1))`),this.style.setProperty("--input-padding-inline-start","var(--ha-space-1)")):(this.style.removeProperty("--start-slot-width"),this.style.removeProperty("--input-padding-inline-start"))},this._renderLabel=(0,h.A)((t,a)=>{if(!a)return t;let i=getComputedStyle(this).getPropertyValue("--ha-input-required-marker");return i||(i="*"),i.startsWith('"')&&i.endsWith('"')&&(i=i.slice(1,-1)),i?`${t}${i}`:t})}}k.shadowRootOptions={mode:"open",delegatesFocus:!0},k.styles=(0,l.AH)(f||(f=C`:host{display:flex;align-items:flex-start;padding-top:var(--ha-input-padding-top);padding-bottom:var(--ha-input-padding-bottom,var(--ha-space-2));text-align:var(--ha-input-text-align,start)}:host([appearance=outlined]){padding-bottom:var(--ha-input-padding-bottom)}wa-input{flex:1;min-width:0;--wa-transition-fast:var(--wa-transition-normal);position:relative}wa-input::part(label){position:absolute;top:0;font-weight:var(--ha-font-weight-normal);font-family:var(--ha-font-family-body);transition:all var(--wa-transition-normal) ease-in-out;color:var(--secondary-text-color);line-height:var(--ha-line-height-condensed);z-index:1;pointer-events:none;padding-inline-start:calc(var(--start-slot-width,0px) + var(--ha-space-4));padding-inline-end:var(--ha-space-4);padding-top:var(--ha-space-5);font-size:var(--ha-font-size-m)}:host([appearance=material]:focus-within) wa-input::part(label){color:var(--primary-color)}:host(:focus-within) wa-input.invalid::part(label),wa-input.invalid:not([disabled])::part(label){color:var(--ha-color-fill-danger-loud-resting)}:host(:focus-within) wa-input::part(label),:host([type=date]) wa-input::part(label),wa-input.label-raised::part(label){padding-top:var(--ha-space-3);font-size:var(--ha-font-size-xs)}wa-input::part(base){height:56px;background-color:var(--ha-color-form-background);border-top-left-radius:var(--ha-border-radius-sm);border-top-right-radius:var(--ha-border-radius-sm);border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square);border:none;padding:0 var(--ha-space-4);position:relative;transition:background-color var(--wa-transition-normal) ease-in-out}:host([appearance=outlined]) wa-input.no-label::part(base){height:32px;padding:0 var(--ha-space-2)}:host([appearance=outlined]) wa-input::part(base){border:1px solid var(--ha-color-border-neutral-quiet);background-color:var(--card-background-color);border-radius:var(--ha-border-radius-md);transition:border-color var(--wa-transition-normal) ease-in-out}:host([appearance=material]) ::part(base)::after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background-color:var(--ha-color-border-neutral-loud);transition:height var(--wa-transition-normal) ease-in-out,background-color var(--wa-transition-normal) ease-in-out}:host([appearance=material]:focus-within) wa-input::part(base)::after{height:2px;background-color:var(--primary-color)}:host([appearance=material]) wa-input.invalid:not([disabled])::part(base)::after,:host([appearance=material]:focus-within) wa-input.invalid::part(base)::after{background-color:var(--ha-color-border-danger-normal)}wa-input::part(input){padding-top:var(--ha-space-3);padding-inline-start:var(--input-padding-inline-start,0)}wa-input.no-label::part(input){padding-top:0}:host([type=color]) wa-input::part(input){padding-top:var(--ha-space-6);cursor:pointer}:host([type=color]) wa-input.no-label::part(input){padding:var(--ha-space-2)}:host([type=color]) wa-input.no-label::part(base){padding:0}wa-input::part(input)::placeholder{color:var(--ha-color-neutral-60)}:host(:focus-within) wa-input::part(base){outline:0}wa-input::part(base):hover{background-color:var(--ha-color-form-background-hover)}:host([appearance=outlined]) wa-input::part(base):hover{border-color:var(--ha-color-border-neutral-normal)}:host([appearance=outlined]:focus-within) wa-input::part(base){border-color:var(--primary-color)}wa-input:disabled::part(base){background-color:var(--ha-color-form-background-disabled)}wa-input:disabled::part(label){opacity:.5}wa-input::part(hint){min-height:var(--ha-space-5);margin-block-start:0;margin-inline-start:var(--ha-space-3);font-size:var(--ha-font-size-xs);display:flex;align-items:center;color:var(--ha-color-text-secondary)}wa-input.hint-hidden::part(hint){height:0;min-height:0}.error{color:var(--ha-color-on-danger-quiet)}wa-input::part(end){color:var(--ha-color-text-secondary)}:host([appearance=outlined]) wa-input.no-label{--ha-icon-button-size:24px;--mdc-icon-size:18px}`)),(0,e.Cg)([(0,s.MZ)({reflect:!0})],k.prototype,"appearance",void 0),(0,e.Cg)([(0,s.MZ)({reflect:!0})],k.prototype,"type",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"value",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"label",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"hint",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean,attribute:"with-clear"})],k.prototype,"withClear",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"placeholder",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean})],k.prototype,"readonly",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean,attribute:"password-toggle"})],k.prototype,"passwordToggle",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean,attribute:"password-visible"})],k.prototype,"passwordVisible",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean,attribute:"without-spin-buttons"})],k.prototype,"withoutSpinButtons",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],k.prototype,"required",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"pattern",void 0),(0,e.Cg)([(0,s.MZ)({type:Number})],k.prototype,"minlength",void 0),(0,e.Cg)([(0,s.MZ)({type:Number})],k.prototype,"maxlength",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"min",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"max",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"step",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"autocapitalize",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean})],k.prototype,"autocorrect",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"autocomplete",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean})],k.prototype,"autofocus",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"enterkeyhint",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean})],k.prototype,"spellcheck",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"inputmode",void 0),(0,e.Cg)([(0,s.MZ)()],k.prototype,"name",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean})],k.prototype,"disabled",void 0),(0,e.Cg)([(0,s.MZ)({attribute:"validation-message"})],k.prototype,"validationMessage",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean,attribute:"auto-validate"})],k.prototype,"autoValidate",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean})],k.prototype,"invalid",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean,attribute:"inset-label"})],k.prototype,"insetLabel",void 0),(0,e.Cg)([(0,s.wk)()],k.prototype,"_invalid",void 0),(0,e.Cg)([(0,s.P)("wa-input")],k.prototype,"_input",void 0),k=(0,e.Cg)([(0,s.EM)("ha-input")],k),o()}catch(w){o(w)}})},44191:function(t,a,i){i.d(a,{E:function(){return r}});i(3362),i(62953);var o=i(1087);const e=()=>Promise.all([i.e("39720"),i.e("69304")]).then(i.bind(i,81131)),r=(t,a)=>{(0,o.r)(t,"show-dialog",{dialogTag:"dialog-add-user",dialogImport:e,dialogParams:a})}},69235:function(t,a,i){i.a(t,async function(t,a){try{i(3362),i(62953);"function"!=typeof window.ResizeObserver&&(window.ResizeObserver=(await i.e("71055").then(i.bind(i,52370))).default),a()}catch(o){a(o)}},1)}}]);
//# sourceMappingURL=3934.76cdb3aa115d351f.js.map