UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

18 lines 105 kB
export const __webpack_ids__=["96540"];export const __webpack_modules__={95262:function(e,t,i){function a(e){return null==e||Array.isArray(e)?e:[e]}i.d(t,{r:()=>a})},19631:function(e,t,i){i.d(t,{Bt:()=>s,T8:()=>l});var a=i(88977),o=i(20382);const n=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],s=e=>e.first_weekday===o.FS.language?"weekInfo"in Intl.Locale.prototype?new Intl.Locale(e.language).weekInfo.firstDay%7:(0,a.L)(e.language)%7:n.includes(e.first_weekday)?n.indexOf(e.first_weekday):1,l=e=>{const t=s(e);return n[t]}},94947:function(e,t,i){i.a(e,(async function(e,a){try{i.d(t,{G:()=>d});var o=i(16485),n=i(27486),s=i(27046),l=e([o,s]);[o,s]=l.then?(await l)():l;const r=(0,n.Z)((e=>new Intl.RelativeTimeFormat(e.language,{numeric:"auto"}))),d=(e,t,i,a=!0)=>{const o=(0,s.W)(e,i,t);return a?r(t).format(o.value,o.unit):Intl.NumberFormat(t.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};a()}catch(e){a(e)}}))},31146:function(e,t,i){i.d(t,{i:()=>o});const a=(0,i(93826).P)((e=>{history.replaceState({scrollPosition:e},"")}),300),o=e=>t=>({kind:"method",placement:"prototype",key:t.key,descriptor:{set(e){a(e),this[`__${String(t.key)}`]=e},get(){return this[`__${String(t.key)}`]||history.state?.scrollPosition},enumerable:!0,configurable:!0},finisher(i){const a=i.prototype.connectedCallback;i.prototype.connectedCallback=function(){a.call(this);const i=this[t.key];i&&this.updateComplete.then((()=>{const t=this.renderRoot.querySelector(e);t&&setTimeout((()=>{t.scrollTop=i}),0)}))}}})},97547:function(e,t,i){i.a(e,(async function(e,a){try{i.d(t,{c:()=>g,computeStateDisplay:()=>f});var o=i(96194),n=i(20382),s=i(54363),l=i(46467),r=i(64214),d=i(33570),c=i(50602),h=i(87974),u=i(73850),p=e([s,c,l,d,r]);[s,c,l,d,r]=p.then?(await p)():p;const f=(e,t,i,a,o,n,s)=>{const l=n?.[t.entity_id];return g(e,i,a,o,l,t.entity_id,t.attributes,void 0!==s?s:t.state)},g=(e,t,i,a,p,f,g,v)=>{if(v===o.lz||v===o.nZ)return e(`state.default.${v}`);const m=(0,u.M)(f),y="counter"===m||"number"===m||"input_number"===m;if((0,c.sJ)(g,"sensor"===m?i:[])||y){if("duration"===g.device_class&&g.unit_of_measurement&&s.a_.includes(g.unit_of_measurement))try{return(0,s.LU)(t,v,g.unit_of_measurement,p?.display_precision)}catch(e){}if("monetary"===g.device_class)try{return(0,c.uf)(v,t,{style:"currency",currency:g.unit_of_measurement,minimumFractionDigits:2,...(0,c.l4)({state:v,attributes:g},p)})}catch(e){}const i=(0,c.uf)(v,t,(0,c.l4)({state:v,attributes:g},p)),a=p?.translation_key&&e(`component.${p.platform}.entity.${m}.${p.translation_key}.unit_of_measurement`)||g.unit_of_measurement;return a?`${i}${(0,h.L)(a,t)}${a}`:i}if(["date","input_datetime","time"].includes(m))try{const e=v.split(" ");if(2===e.length)return(0,r.o0)(new Date(e.join("T")),{...t,time_zone:n.c_.local},a);if(1===e.length){if(v.includes("-"))return(0,l.p6)(new Date(`${v}T00:00`),{...t,time_zone:n.c_.local},a);if(v.includes(":")){const e=new Date;return(0,d.mr)(new Date(`${e.toISOString().split("T")[0]}T${v}`),{...t,time_zone:n.c_.local},a)}}return v}catch(e){return v}if(["button","conversation","event","image","input_button","notify","scene","stt","tag","tts","wake_word","datetime"].includes(m)||"sensor"===m&&"timestamp"===g.device_class)try{return(0,r.o0)(new Date(v),t,a)}catch(e){return v}return p?.translation_key&&e(`component.${p.platform}.entity.${m}.${p.translation_key}.state.${v}`)||g.device_class&&e(`component.${m}.entity_component.${g.device_class}.state.${v}`)||e(`component.${m}.entity_component._.state.${v}`)||v};a()}catch(e){a(e)}}))},94369:function(e,t,i){i.a(e,(async function(e,a){try{i.d(t,{u:()=>l});var o=i(16485),n=i(27486),s=e([o]);o=(s.then?(await s)():s)[0];const l=(e,t)=>{try{return r(t)?.of(e)??e}catch{return e}},r=(0,n.Z)((e=>new Intl.DisplayNames(e.language,{type:"language",fallback:"code"})));a()}catch(e){a(e)}}))},87733:function(e,t,i){i.d(t,{f:()=>a});const a=e=>e.charAt(0).toUpperCase()+e.slice(1)},27046:function(e,t,i){i.a(e,(async function(e,a){try{i.d(t,{W:()=>h});var o=i(13809),n=i(29558),s=i(94763),l=i(19631);const r=1e3,d=60,c=60*d;function h(e,t=Date.now(),i,a={}){const h={...u,...a||{}},p=(+e-+t)/r;if(Math.abs(p)<h.second)return{value:Math.round(p),unit:"second"};const f=p/d;if(Math.abs(f)<h.minute)return{value:Math.round(f),unit:"minute"};const g=p/c;if(Math.abs(g)<h.hour)return{value:Math.round(g),unit:"hour"};const v=new Date(e),m=new Date(t);v.setHours(0,0,0,0),m.setHours(0,0,0,0);const y=(0,o.j)(v,m);if(0===y)return{value:Math.round(g),unit:"hour"};if(Math.abs(y)<h.day)return{value:y,unit:"day"};const k=(0,l.Bt)(i),b=(0,n.z)(v,{weekStartsOn:k}),_=(0,n.z)(m,{weekStartsOn:k}),w=(0,s.p)(b,_);if(0===w)return{value:y,unit:"day"};if(Math.abs(w)<h.week)return{value:w,unit:"week"};const x=v.getFullYear()-m.getFullYear(),$=12*x+v.getMonth()-m.getMonth();return 0===$?{value:w,unit:"week"}:Math.abs($)<h.month||0===x?{value:$,unit:"month"}:{value:Math.round(x),unit:"year"}}const u={second:45,minute:45,hour:22,day:5,week:4,month:11};a()}catch(p){a(p)}}))},93826:function(e,t,i){i.d(t,{P:()=>a});const a=(e,t,i=!0,a=!0)=>{let o,n=0;const s=(...s)=>{const l=()=>{n=!1===i?0:Date.now(),o=void 0,e(...s)},r=Date.now();n||!1!==i||(n=r);const d=t-(r-n);d<=0||d>t?(o&&(clearTimeout(o),o=void 0),n=r,e(...s)):o||!1===a||(o=window.setTimeout(l,d))};return s.cancel=()=>{clearTimeout(o),o=void 0,n=0},s}},34273:function(e,t,i){var a=i(44249),o=i(72621),n=(i(9359),i(31526),i(22997),i(57243)),s=i(15093),l=i(5111),r=i(76525);(0,a.Z)([(0,s.Mo)("ha-button-menu")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",key:r.gA,value:void 0},{kind:"field",decorators:[(0,s.Cb)()],key:"corner",value:()=>"BOTTOM_START"},{kind:"field",decorators:[(0,s.Cb)({attribute:"menu-corner"})],key:"menuCorner",value:()=>"START"},{kind:"field",decorators:[(0,s.Cb)({type:Number})],key:"x",value:()=>null},{kind:"field",decorators:[(0,s.Cb)({type:Number})],key:"y",value:()=>null},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"multi",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"activatable",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"fixed",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({type:Boolean,attribute:"no-anchor"})],key:"noAnchor",value:()=>!1},{kind:"field",decorators:[(0,s.IO)("mwc-menu",!0)],key:"_menu",value:void 0},{kind:"get",key:"items",value:function(){return this._menu?.items}},{kind:"get",key:"selected",value:function(){return this._menu?.selected}},{kind:"method",key:"focus",value:function(){this._menu?.open?this._menu.focusItemAtIndex(0):this._triggerButton?.focus()}},{kind:"method",key:"render",value:function(){return n.dy` <div @click="${this._handleClick}"> <slot name="trigger" @slotchange="${this._setTriggerAria}"></slot> </div> <mwc-menu .corner="${this.corner}" .menuCorner="${this.menuCorner}" .fixed="${this.fixed}" .multi="${this.multi}" .activatable="${this.activatable}" .y="${this.y}" .x="${this.x}"> <slot></slot> </mwc-menu> `}},{kind:"method",key:"firstUpdated",value:function(e){(0,o.Z)(i,"firstUpdated",this,3)([e]),"rtl"===l.E.document.dir&&this.updateComplete.then((()=>{this.querySelectorAll("mwc-list-item").forEach((e=>{const t=document.createElement("style");t.innerHTML="span.material-icons:first-of-type { margin-left: var(--mdc-list-item-graphic-margin, 32px) !important; margin-right: 0px !important;}",e.shadowRoot.appendChild(t)}))}))}},{kind:"method",key:"_handleClick",value:function(){this.disabled||(this._menu.anchor=this.noAnchor?null:this,this._menu.show())}},{kind:"get",key:"_triggerButton",value:function(){return this.querySelector('ha-icon-button[slot="trigger"], mwc-button[slot="trigger"]')}},{kind:"method",key:"_setTriggerAria",value:function(){this._triggerButton&&(this._triggerButton.ariaHasPopup="menu")}},{kind:"field",static:!0,key:"styles",value:()=>n.iv`:host{display:inline-block;position:relative}::slotted([disabled]){color:var(--disabled-text-color)}`}]}}),n.oi)},54977:function(e,t,i){var a=i(44249),o=i(57243),n=i(15093);(0,a.Z)([(0,n.Mo)("ha-card")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)()],key:"header",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,reflect:!0})],key:"raised",value:()=>!1},{kind:"field",static:!0,key:"styles",value:()=>o.iv`:host{background:var(--ha-card-background,var(--card-background-color,#fff));-webkit-backdrop-filter:var(--ha-card-backdrop-filter,none);backdrop-filter:var(--ha-card-backdrop-filter,none);box-shadow:var(--ha-card-box-shadow,none);box-sizing:border-box;border-radius:var(--ha-card-border-radius,12px);border-width:var(--ha-card-border-width,1px);border-style:solid;border-color:var(--ha-card-border-color,var(--divider-color,#e0e0e0));color:var(--primary-text-color);display:block;transition:all .3s ease-out;position:relative}:host([raised]){border:none;box-shadow:var(--ha-card-box-shadow,0px 2px 1px -1px rgba(0,0,0,.2),0px 1px 1px 0px rgba(0,0,0,.14),0px 1px 3px 0px rgba(0,0,0,.12))}.card-header,:host ::slotted(.card-header){color:var(--ha-card-header-color,var(--primary-text-color));font-family:var(--ha-card-header-font-family, inherit);font-size:var(--ha-card-header-font-size, 24px);letter-spacing:-.012em;line-height:48px;padding:12px 16px 16px;display:block;margin-block-start:0px;margin-block-end:0px;font-weight:400}:host ::slotted(.card-content:not(:first-child)),slot:not(:first-child)::slotted(.card-content){padding-top:0px;margin-top:-8px}:host ::slotted(.card-content){padding:16px}:host ::slotted(.card-actions){border-top:1px solid var(--divider-color,#e8e8e8);padding:5px 16px}`},{kind:"method",key:"render",value:function(){return o.dy` ${this.header?o.dy`<h1 class="card-header">${this.header}</h1>`:o.Ld} <slot></slot> `}}]}}),o.oi)},75930:function(e,t,i){var a=i(44249),o=i(15093),n=i(57243),s=(i(59826),i(23334),i(37583),i(83166),i(87865)),l=i(72473);(0,a.Z)([(0,o.Mo)("ha-copy-textfield")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:"value"})],key:"value",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:"masked-value"})],key:"maskedValue",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:"label"})],key:"label",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_showMasked",value:()=>!0},{kind:"method",key:"render",value:function(){return n.dy` <div class="container"> <div class="textfield-container"> <ha-textfield .value="${this._showMasked&&this.maskedValue?this.maskedValue:this.value}" readonly="readonly" .suffix="${this.maskedValue?n.dy`<div style="width:24px"></div>`:n.Ld}" @click="${this._focusInput}"></ha-textfield> ${this.maskedValue?n.dy`<ha-icon-button class="toggle-unmasked" .label="${this.hass.localize("ui.common."+(this._showMasked?"show":"hide"))}" @click="${this._toggleMasked}" .path="${this._showMasked?"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"}"></ha-icon-button>`:n.Ld} </div> <ha-button @click="${this._copy}" unelevated> <ha-svg-icon slot="icon" .path="${"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"}"></ha-svg-icon> ${this.label||this.hass.localize("ui.common.copy")} </ha-button> </div> `}},{kind:"method",key:"_focusInput",value:function(e){e.currentTarget.select()}},{kind:"method",key:"_toggleMasked",value:function(){this._showMasked=!this._showMasked}},{kind:"method",key:"_copy",value:async function(){await(0,s.v)(this.value),(0,l.C)(this,{message:this.hass.localize("ui.common.copied_clipboard")})}},{kind:"field",static:!0,key:"styles",value:()=>n.iv`.container{display:flex;align-items:center;gap:8px;margin-top:8px}.textfield-container{position:relative;flex:1}.textfield-container ha-textfield{display:block}.toggle-unmasked{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)}`}]}}),n.oi)},54202:function(e,t,i){i.r(t),i.d(t,{HaIconButtonArrowPrev:()=>l});var a=i(44249),o=i(57243),n=i(15093),s=i(5111);i(23334);let l=(0,a.Z)([(0,n.Mo)("ha-icon-button-arrow-prev")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)()],key:"label",value:void 0},{kind:"field",decorators:[(0,n.SB)()],key:"_icon",value:()=>"rtl"===s.E.document.dir?"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z":"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"},{kind:"method",key:"render",value:function(){return o.dy` <ha-icon-button .disabled="${this.disabled}" .label="${this.label||this.hass?.localize("ui.common.back")||"Back"}" .path="${this._icon}"></ha-icon-button> `}}]}}),o.oi)},23334:function(e,t,i){i.r(t),i.d(t,{HaIconButton:()=>l});var a=i(44249),o=(i(74269),i(57243)),n=i(15093),s=i(20552);i(37583);let l=(0,a.Z)([(0,n.Mo)("ha-icon-button")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({type:Boolean,reflect:!0})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"path",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"label",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:String,attribute:"aria-haspopup"})],key:"ariaHasPopup",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:"hide-title",type:Boolean})],key:"hideTitle",value:()=>!1},{kind:"field",decorators:[(0,n.IO)("mwc-icon-button",!0)],key:"_button",value:void 0},{kind:"method",key:"focus",value:function(){this._button?.focus()}},{kind:"field",static:!0,key:"shadowRootOptions",value:()=>({mode:"open",delegatesFocus:!0})},{kind:"method",key:"render",value:function(){return o.dy` <mwc-icon-button aria-label="${(0,s.o)(this.label)}" title="${(0,s.o)(this.hideTitle?void 0:this.label)}" aria-haspopup="${(0,s.o)(this.ariaHasPopup)}" .disabled="${this.disabled}"> ${this.path?o.dy`<ha-svg-icon .path="${this.path}"></ha-svg-icon>`:o.dy`<slot></slot>`} </mwc-icon-button> `}},{kind:"field",static:!0,key:"styles",value:()=>o.iv`:host{display:inline-block;outline:0}:host([disabled]){pointer-events:none}mwc-icon-button{--mdc-theme-on-primary:currentColor;--mdc-theme-text-disabled-on-light:var(--disabled-text-color)}`}]}}),o.oi)},2790:function(e,t,i){i.a(e,(async function(e,a){try{i.d(t,{getLanguageOptions:()=>v});var o=i(44249),n=i(72621),s=i(16485),l=(i(9359),i(70104),i(57243)),r=i(15093),d=i(27486),c=i(36522),h=i(49976),u=i(94369),p=i(1416),f=i(67862),g=(i(7285),i(92824),e([s,u]));[s,u]=g.then?(await g)():g;const v=(e,t,i,a)=>{let o=[];if(t){const t=f.o.translations;o=e.map((e=>{let i=t[e]?.nativeName;if(!i)try{i=new Intl.DisplayNames(e,{type:"language",fallback:"code"}).of(e)}catch(t){i=e}return{value:e,label:i}}))}else a&&(o=e.map((e=>({value:e,label:(0,u.u)(e,a)}))));return!i&&a&&o.sort(((e,t)=>(0,p.fe)(e.label,t.label,a.language))),o};(0,o.Z)([(0,r.Mo)("ha-language-picker")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,r.Cb)()],key:"value",value:void 0},{kind:"field",decorators:[(0,r.Cb)()],key:"label",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Array})],key:"languages",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Boolean,reflect:!0})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"required",value:()=>!1},{kind:"field",decorators:[(0,r.Cb)({attribute:"native-name",type:Boolean})],key:"nativeName",value:()=>!1},{kind:"field",decorators:[(0,r.Cb)({attribute:"no-sort",type:Boolean})],key:"noSort",value:()=>!1},{kind:"field",decorators:[(0,r.Cb)({attribute:"inline-arrow",type:Boolean})],key:"inlineArrow",value:()=>!1},{kind:"field",decorators:[(0,r.SB)()],key:"_defaultLanguages",value:()=>[]},{kind:"field",decorators:[(0,r.IO)("ha-select")],key:"_select",value:void 0},{kind:"method",key:"firstUpdated",value:function(e){(0,n.Z)(i,"firstUpdated",this,3)([e]),this._computeDefaultLanguageOptions()}},{kind:"method",key:"updated",value:function(e){(0,n.Z)(i,"updated",this,3)([e]);const t=e.has("hass")&&this.hass&&e.get("hass")&&e.get("hass").locale.language!==this.hass.locale.language;if(e.has("languages")||e.has("value")||t){if(this._select.layoutOptions(),this._select.value!==this.value&&(0,c.B)(this,"value-changed",{value:this._select.value}),!this.value)return;const e=this._getLanguagesOptions(this.languages??this._defaultLanguages,this.nativeName,this.noSort,this.hass?.locale).findIndex((e=>e.value===this.value));-1===e&&(this.value=void 0),t&&this._select.select(e)}}},{kind:"field",key:"_getLanguagesOptions",value:()=>(0,d.Z)(v)},{kind:"method",key:"_computeDefaultLanguageOptions",value:function(){this._defaultLanguages=Object.keys(f.o.translations)}},{kind:"method",key:"render",value:function(){const e=this._getLanguagesOptions(this.languages??this._defaultLanguages,this.nativeName,this.noSort,this.hass?.locale),t=this.value??(this.required?e[0]?.value:this.value);return l.dy` <ha-select .label="${this.label??(this.hass?.localize("ui.components.language-picker.language")||"Language")}" .value="${t||""}" .required="${this.required}" .disabled="${this.disabled}" @selected="${this._changed}" @closed="${h.U}" fixedMenuPosition naturalMenuWidth .inlineArrow="${this.inlineArrow}"> ${0===e.length?l.dy`<ha-list-item value="">${this.hass?.localize("ui.components.language-picker.no_languages")||"No languages"}</ha-list-item>`:e.map((e=>l.dy` <ha-list-item .value="${e.value}">${e.label}</ha-list-item> `))} </ha-select> `}},{kind:"field",static:!0,key:"styles",value:()=>l.iv`ha-select{width:100%}`},{kind:"method",key:"_changed",value:function(e){const t=e.target;""!==t.value&&t.value!==this.value&&(this.value=t.value,(0,c.B)(this,"value-changed",{value:this.value}))}}]}}),l.oi);a()}catch(e){a(e)}}))},7285:function(e,t,i){i.d(t,{M:()=>d});var a=i(44249),o=i(72621),n=i(65703),s=i(46289),l=i(57243),r=i(15093);let d=(0,a.Z)([(0,r.Mo)("ha-list-item")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"method",key:"renderRipple",value:function(){return this.noninteractive?"":(0,o.Z)(i,"renderRipple",this,3)([])}},{kind:"get",static:!0,key:"styles",value:function(){return[s.W,l.iv`:host{padding-left:var(--mdc-list-side-padding-left,var(--mdc-list-side-padding,20px));padding-inline-start:var(--mdc-list-side-padding-left,var(--mdc-list-side-padding,20px));padding-right:var(--mdc-list-side-padding-right,var(--mdc-list-side-padding,20px));padding-inline-end:var(--mdc-list-side-padding-right,var(--mdc-list-side-padding,20px))}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:48px}span.material-icons:first-of-type{margin-inline-start:0px!important;margin-inline-end:var(--mdc-list-item-graphic-margin,16px)!important;direction:var(--direction)!important}span.material-icons:last-of-type{margin-inline-start:auto!important;margin-inline-end:0px!important;direction:var(--direction)!important}.mdc-deprecated-list-item__meta{display:var(--mdc-list-item-meta-display);align-items:center;flex-shrink:0}:host([graphic=icon]:not([twoline])) .mdc-deprecated-list-item__graphic{margin-inline-end:var(--mdc-list-item-graphic-margin,20px)!important}:host([multiline-secondary]){height:auto}:host([multiline-secondary]) .mdc-deprecated-list-item__text{padding:8px 0}:host([multiline-secondary]) .mdc-deprecated-list-item__secondary-text{text-overflow:initial;white-space:normal;overflow:auto;display:inline-block;margin-top:10px}:host([multiline-secondary]) .mdc-deprecated-list-item__primary-text{margin-top:10px}:host([multiline-secondary]) .mdc-deprecated-list-item__secondary-text::before{display:none}:host([multiline-secondary]) .mdc-deprecated-list-item__primary-text::before{display:none}:host([disabled]){color:var(--disabled-text-color)}:host([noninteractive]){pointer-events:unset}`,"rtl"===document.dir?l.iv`span.material-icons:first-of-type,span.material-icons:last-of-type{direction:rtl!important;--direction:rtl}`:l.iv``]}}]}}),n.K)},43344:function(e,t,i){var a=i(44249),o=i(72621),n=i(57243),s=i(15093),l=i(36522),r=i(83716);i(23334);(0,a.Z)([(0,s.Mo)("ha-menu-button")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"hassio",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_hasNotifications",value:()=>!1},{kind:"field",decorators:[(0,s.SB)()],key:"_show",value:()=>!1},{kind:"field",key:"_alwaysVisible",value:()=>!1},{kind:"field",key:"_attachNotifOnConnect",value:()=>!1},{kind:"field",key:"_unsubNotifications",value:void 0},{kind:"method",key:"connectedCallback",value:function(){(0,o.Z)(i,"connectedCallback",this,3)([]),this._attachNotifOnConnect&&(this._attachNotifOnConnect=!1,this._subscribeNotifications())}},{kind:"method",key:"disconnectedCallback",value:function(){(0,o.Z)(i,"disconnectedCallback",this,3)([]),this._unsubNotifications&&(this._attachNotifOnConnect=!0,this._unsubNotifications(),this._unsubNotifications=void 0)}},{kind:"method",key:"render",value:function(){if(!this._show)return n.Ld;const e=this._hasNotifications&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);return n.dy` <ha-icon-button .label="${this.hass.localize("ui.sidebar.sidebar_toggle")}" .path="${"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"}" @click="${this._toggleMenu}"></ha-icon-button> ${e?n.dy`<div class="dot"></div>`:""} `}},{kind:"method",key:"firstUpdated",value:function(e){(0,o.Z)(i,"firstUpdated",this,3)([e]),this.hassio&&(this._alwaysVisible=(Number(window.parent.frontendVersion)||0)<20190710)}},{kind:"method",key:"willUpdate",value:function(e){if((0,o.Z)(i,"willUpdate",this,3)([e]),!e.has("narrow")&&!e.has("hass"))return;const t=e.has("hass")?e.get("hass"):this.hass,a=(e.has("narrow")?e.get("narrow"):this.narrow)||"always_hidden"===t?.dockedSidebar,n=this.narrow||"always_hidden"===this.hass.dockedSidebar;this.hasUpdated&&a===n||(this._show=n||this._alwaysVisible,n?this._subscribeNotifications():this._unsubNotifications&&(this._unsubNotifications(),this._unsubNotifications=void 0))}},{kind:"method",key:"_subscribeNotifications",value:function(){if(this._unsubNotifications)throw new Error("Already subscribed");this._unsubNotifications=(0,r.r)(this.hass.connection,(e=>{this._hasNotifications=e.length>0}))}},{kind:"method",key:"_toggleMenu",value:function(){(0,l.B)(this,"hass-toggle-menu")}},{kind:"field",static:!0,key:"styles",value:()=>n.iv`:host{position:relative}.dot{pointer-events:none;position:absolute;background-color:var(--accent-color);width:12px;height:12px;top:9px;right:7px;inset-inline-end:7px;inset-inline-start:initial;border-radius:50%;border:2px solid var(--app-header-background-color)}`}]}}),n.oi)},34326:function(e,t,i){var a=i(44249),o=i(57243),n=i(15093);i(23334),i(83166);(0,a.Z)([(0,n.Mo)("ha-password-field")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"invalid",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:"error-message"})],key:"errorMessage",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"icon",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"iconTrailing",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)()],key:"autocomplete",value:void 0},{kind:"field",decorators:[(0,n.Cb)()],key:"autocorrect",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:"input-spellcheck"})],key:"inputSpellcheck",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"value",value:()=>""},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"placeholder",value:()=>""},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"label",value:()=>""},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,reflect:!0})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"required",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Number})],key:"minLength",value:()=>-1},{kind:"field",decorators:[(0,n.Cb)({type:Number})],key:"maxLength",value:()=>-1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,reflect:!0})],key:"outlined",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"helper",value:()=>""},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"validateOnInitialRender",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"validationMessage",value:()=>""},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"autoValidate",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"pattern",value:()=>""},{kind:"field",decorators:[(0,n.Cb)({type:Number})],key:"size",value:()=>null},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"helperPersistent",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"charCounter",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"endAligned",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"prefix",value:()=>""},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"suffix",value:()=>""},{kind:"field",decorators:[(0,n.Cb)({type:String})],key:"name",value:()=>""},{kind:"field",decorators:[(0,n.Cb)({type:String,attribute:"input-mode"})],key:"inputMode",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"readOnly",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({attribute:!1,type:String})],key:"autocapitalize",value:()=>""},{kind:"field",decorators:[(0,n.SB)()],key:"_unmaskedPassword",value:()=>!1},{kind:"field",decorators:[(0,n.IO)("ha-textfield")],key:"_textField",value:void 0},{kind:"method",key:"render",value:function(){return o.dy`<ha-textfield .invalid="${this.invalid}" .errorMessage="${this.errorMessage}" .icon="${this.icon}" .iconTrailing="${this.iconTrailing}" .autocomplete="${this.autocomplete}" .autocorrect="${this.autocorrect}" .inputSpellcheck="${this.inputSpellcheck}" .value="${this.value}" .placeholder="${this.placeholder}" .label="${this.label}" .disabled="${this.disabled}" .required="${this.required}" .minLength="${this.minLength}" .maxLength="${this.maxLength}" .outlined="${this.outlined}" .helper="${this.helper}" .validateOnInitialRender="${this.validateOnInitialRender}" .validationMessage="${this.validationMessage}" .autoValidate="${this.autoValidate}" .pattern="${this.pattern}" .size="${this.size}" .helperPersistent="${this.helperPersistent}" .charCounter="${this.charCounter}" .endAligned="${this.endAligned}" .prefix="${this.prefix}" .name="${this.name}" .inputMode="${this.inputMode}" .readOnly="${this.readOnly}" .autocapitalize="${this.autocapitalize}" .type="${this._unmaskedPassword?"text":"password"}" .suffix="${o.dy`<div style="width:24px"></div>`}" @input="${this._handleInputEvent}" @change="${this._handleChangeEvent}"></ha-textfield> <ha-icon-button .label="${this.hass?.localize(this._unmaskedPassword?"ui.components.selectors.text.hide_password":"ui.components.selectors.text.show_password")||(this._unmaskedPassword?"Hide password":"Show password")}" @click="${this._toggleUnmaskedPassword}" .path="${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"}"></ha-icon-button>`}},{kind:"method",key:"focus",value:function(){this._textField.focus()}},{kind:"method",key:"checkValidity",value:function(){return this._textField.checkValidity()}},{kind:"method",key:"reportValidity",value:function(){return this._textField.reportValidity()}},{kind:"method",key:"setCustomValidity",value:function(e){return this._textField.setCustomValidity(e)}},{kind:"method",key:"layout",value:function(){return this._textField.layout()}},{kind:"method",key:"_toggleUnmaskedPassword",value:function(){this._unmaskedPassword=!this._unmaskedPassword}},{kind:"method",decorators:[(0,n.hO)({passive:!0})],key:"_handleInputEvent",value:function(e){this.value=e.target.value}},{kind:"method",decorators:[(0,n.hO)({passive:!0})],key:"_handleChangeEvent",value:function(e){this.value=e.target.value,this._reDispatchEvent(e)}},{kind:"method",key:"_reDispatchEvent",value:function(e){const t=new Event(e.type,e);this.dispatchEvent(t)}},{kind:"field",static:!0,key:"styles",value:()=>o.iv`: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)}`}]}}),o.oi)},30043:function(e,t,i){var a=i(44249),o=i(72621),n=i(19799),s=i(23111),l=i(57243),r=i(15093);(0,a.Z)([(0,r.Mo)("ha-ripple")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",key:"attachableTouchController",value(){return new n.J(this,this._onTouchControlChange.bind(this))}},{kind:"method",key:"attach",value:function(e){(0,o.Z)(i,"attach",this,3)([e]),this.attachableTouchController.attach(e)}},{kind:"method",key:"detach",value:function(){(0,o.Z)(i,"detach",this,3)([]),this.attachableTouchController.detach()}},{kind:"field",key:"_handleTouchEnd",value(){return()=>{this.disabled||(0,o.Z)(i,"endPressAnimation",this,3)([])}}},{kind:"method",key:"_onTouchControlChange",value:function(e,t){e?.removeEventListener("touchend",this._handleTouchEnd),t?.addEventListener("touchend",this._handleTouchEnd)}},{kind:"field",static:!0,key:"styles",value(){return[...(0,o.Z)(i,"styles",this),l.iv`:host{--md-ripple-hover-opacity:var(--ha-ripple-hover-opacity, 0.08);--md-ripple-pressed-opacity:var(--ha-ripple-pressed-opacity, 0.12);--md-ripple-hover-color:var(
          --ha-ripple-hover-color,
          var(--ha-ripple-color, var(--secondary-text-color))
        );--md-ripple-pressed-color:var(
          --ha-ripple-pressed-color,
          var(--ha-ripple-color, var(--secondary-text-color))
        )}`]}}]}}),s.M)},92824:function(e,t,i){var a=i(44249),o=i(72621),n=i(60930),s=i(9714),l=i(57243),r=i(15093),d=i(22381),c=i(76320);i(23334);(0,a.Z)([(0,r.Mo)("ha-select")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"icon",value:()=>!1},{kind:"field",decorators:[(0,r.Cb)({type:Boolean,reflect:!0})],key:"clearable",value:()=>!1},{kind:"field",decorators:[(0,r.Cb)({attribute:"inline-arrow",type:Boolean})],key:"inlineArrow",value:()=>!1},{kind:"field",decorators:[(0,r.Cb)()],key:"options",value:void 0},{kind:"method",key:"render",value:function(){return l.dy` ${(0,o.Z)(i,"render",this,3)([])} ${this.clearable&&!this.required&&!this.disabled&&this.value?l.dy`<ha-icon-button label="clear" @click="${this._clearValue}" .path="${"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"}"></ha-icon-button>`:l.Ld} `}},{kind:"method",key:"renderLeadingIcon",value:function(){return this.icon?l.dy`<span class="mdc-select__icon"><slot name="icon"></slot></span>`:l.Ld}},{kind:"method",key:"connectedCallback",value:function(){(0,o.Z)(i,"connectedCallback",this,3)([]),window.addEventListener("translations-updated",this._translationsUpdated)}},{kind:"method",key:"firstUpdated",value:async function(){(0,o.Z)(i,"firstUpdated",this,3)([]),this.inlineArrow&&this.shadowRoot?.querySelector(".mdc-select__selected-text-container")?.classList.add("inline-arrow")}},{kind:"method",key:"updated",value:function(e){if((0,o.Z)(i,"updated",this,3)([e]),e.has("inlineArrow")){const e=this.shadowRoot?.querySelector(".mdc-select__selected-text-container");this.inlineArrow?e?.classList.add("inline-arrow"):e?.classList.remove("inline-arrow")}e.get("options")&&(this.layoutOptions(),this.selectByValue(this.value))}},{kind:"method",key:"disconnectedCallback",value:function(){(0,o.Z)(i,"disconnectedCallback",this,3)([]),window.removeEventListener("translations-updated",this._translationsUpdated)}},{kind:"method",key:"_clearValue",value:function(){!this.disabled&&this.value&&(this.valueSetDirectly=!0,this.select(-1),this.mdcFoundation.handleChange())}},{kind:"field",key:"_translationsUpdated",value(){return(0,d.D)((async()=>{await(0,c.y)(),this.layoutOptions()}),500)}},{kind:"field",static:!0,key:"styles",value:()=>[s.W,l.iv`:host([clearable]){position:relative}.mdc-select:not(.mdc-select--disabled) .mdc-select__icon{color:var(--secondary-text-color)}.mdc-select__anchor{width:var(--ha-select-min-width,200px)}.mdc-select--filled .mdc-select__anchor{height:var(--ha-select-height,56px)}.mdc-select--filled .mdc-floating-label{inset-inline-start:12px;inset-inline-end:initial;direction:var(--direction)}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{inset-inline-start:48px;inset-inline-end:initial;direction:var(--direction)}.mdc-select .mdc-select__anchor{padding-inline-start:12px;padding-inline-end:0px;direction:var(--direction)}.mdc-select__anchor .mdc-floating-label--float-above{transform-origin:var(--float-start)}.mdc-select__selected-text-container{padding-inline-end:var(--select-selected-text-padding-end,0px)}:host([clearable]) .mdc-select__selected-text-container{padding-inline-end:var(--select-selected-text-padding-end,12px)}ha-icon-button{position:absolute;top:10px;right:28px;--mdc-icon-button-size:36px;--mdc-icon-size:20px;color:var(--secondary-text-color);inset-inline-start:initial;inset-inline-end:28px;direction:var(--direction)}.inline-arrow{flex-grow:0}`]}]}}),n.K)},30509:function(e,t,i){var a=i(44249),o=i(57243),n=i(15093);(0,a.Z)([(0,n.Mo)("ha-settings-row")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({type:Boolean,reflect:!0})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,reflect:!0})],key:"slim",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,attribute:"three-line"})],key:"threeLine",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,attribute:"wrap-heading",reflect:!0})],key:"wrapHeading",value:()=>!1},{kind:"method",key:"render",value:function(){return o.dy` <div class="prefix-wrap"> <slot name="prefix"></slot> <div class="body" ?two-line="${!this.threeLine}" ?three-line="${this.threeLine}"> <slot name="heading"></slot> <div class="secondary"><slot name="description"></slot></div> </div> </div> <div class="content"><slot></slot></div> `}},{kind:"field",static:!0,key:"styles",value:()=>o.iv`:host{display:flex;padding:0 16px;align-content:normal;align-self:auto;align-items:center}.body{padding-top:8px;padding-bottom:8px;padding-left:0;padding-inline-start:0;padding-right:16px;padding-inline-end:16px;overflow:hidden;display:var(--layout-vertical_-_display,flex);flex-direction:var(--layout-vertical_-_flex-direction,column);justify-content:var(--layout-center-justified_-_justify-content,center);flex:var(--layout-flex_-_flex,1);flex-basis:var(--layout-flex_-_flex-basis,0.000000001px)}.body[three-line]{min-height:var(--paper-item-body-three-line-min-height,88px)}:host(:not([wrap-heading])) body>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.body>.secondary{display:block;padding-top:4px;font-family:var(
        --mdc-typography-body2-font-family,
        var(--mdc-typography-font-family, Roboto, sans-serif)
      );-webkit-font-smoothing:antialiased;font-size:var(--mdc-typography-body2-font-size, .875rem);font-weight:var(--mdc-typography-body2-font-weight,400);line-height:normal;color:var(--secondary-text-color)}.body[two-line]{min-height:calc(var(--paper-item-body-two-line-min-height,72px) - 16px);flex:1}.content{display:contents}:host(:not([narrow])) .content{display:var(--settings-row-content-display,flex);justify-content:flex-end;flex:1;padding:16px 0}.content ::slotted(*){width:var(--settings-row-content-width)}:host([narrow]){align-items:normal;flex-direction:column;border-top:1px solid var(--divider-color);padding-bottom:8px}::slotted(ha-switch){padding:16px 0}.secondary{white-space:normal}.prefix-wrap{display:var(--settings-row-prefix-display)}:host([narrow]) .prefix-wrap{display:flex;align-items:center}:host([slim]),:host([slim]) .content,:host([slim]) ::slotted(ha-switch){padding:0}:host([slim]) .body{min-height:0}`}]}}),o.oi)},17170:function(e,t,i){i.a(e,(async function(e,a){try{i.r(t),i.d(t,{HaSpinner:()=>h});var o=i(44249),n=i(72621),s=i(97677),l=i(43580),r=i(57243),d=i(15093),c=e([s]);s=(c.then?(await c)():c)[0];let h=(0,o.Z)([(0,d.Mo)("ha-spinner")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,d.Cb)()],key:"size",value:void 0},{kind:"method",key:"updated",value:function(e){if((0,n.Z)(i,"updated",this,3)([e]),e.has("size"))switch(this.size){case"tiny":this.style.setProperty("--ha-spinner-size","16px");break;case"small":this.style.setProperty("--ha-spinner-size","28px");break;case"medium":this.style.setProperty("--ha-spinner-size","48px");break;case"large":this.style.setProperty("--ha-spinner-size","68px");break;case void 0:this.style.removeProperty("--ha-progress-ring-size")}}},{kind:"field",static:!0,key:"styles",value:()=>[l.Z,r.iv`:host{--indicator-color:var(
          --ha-spinner-indicator-color,
          var(--primary-color)
        );--track-color:var(--ha-spinner-divider-color, var(--divider-color));--track-width:4px;--speed:3.5s;font-size:var(--ha-spinner-size, 48px)}`]}]}}),s.Z);a()}catch(e){a(e)}}))},37583:function(e,t,i){i.r(t),i.d(t,{HaSvgIcon:()=>s});var a=i(44249),o=i(57243),n=i(15093);let s=(0,a.Z)([(0,n.Mo)("ha-svg-icon")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)()],key:"path",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"secondaryPath",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"viewBox",value:void 0},{kind:"method",key:"render",value:function(){return o.YP` <svg viewBox="${this.viewBox||"0 0 24 24"}" preserveAspectRatio="xMidYMid meet" focusable="false" role="img" aria-hidden="true"> <g> ${this.path?o.YP`<path class="primary-path" d="${this.path}"></path>`:o.Ld} ${this.secondaryPath?o.YP`<path class="secondary-path" d="${this.secondaryPath}"></path>`:o.Ld} </g> </svg>`}},{kind:"field",static:!0,key:"styles",value:()=>o.iv`:host{display:var(--ha-icon-display,inline-flex);align-items:center;justify-content:center;position:relative;vertical-align:middle;fill:var(--icon-primary-color,currentcolor);width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}svg{width:100%;height:100%;pointer-events:none;display:block}path.primary-path{opacity:var(--icon-primary-opactity, 1)}path.secondary-path{fill:var(--icon-secondary-color,currentcolor);opacity:var(--icon-secondary-opactity, .5)}`}]}}),o.oi)},83166:function(e,t,i){var a=i(44249),o=i(72621),n=i(1105),s=i(33990),l=i(57243),r=i(15093),d=i(5111);(0,a.Z)([(0,r.Mo)("ha-textfield")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"invalid",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:"error-message"})],key:"errorMessage",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"icon",value:()=>!1},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"iconTrailing",value:()=>!1},{kind:"field",decorators:[(0,r.Cb)()],key:"autocomplete",value:void 0},{kind:"field",decorators:[(0,r.Cb)()],key:"autocorrect",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:"input-spellcheck"})],key:"inputSpellcheck",value:void 0},{kind:"field",decorators:[(0,r.IO)("input")],key:"formElement",value:void 0},{kind:"method",key:"updated",value:function(e){(0,o.Z)(i,"updated",this,3)([e]),(e.has("invalid")||e.has("errorMessage"))&&(this.setCustomValidity(this.invalid?this.errorMessage||this.validationMessage||"Invalid":""),(this.invalid||this.validateOnInitialRender||e.has("invalid")&&void 0!==e.get("invalid"))&&this.reportValidity()),e.has("autocomplete")&&(this.autocomplete?this.formElement.setAttribute("autocomplete",this.autocomplete):this.formElement.removeAttribute("autocomplete")),e.has("autocorrect")&&(this.autocorrect?this.formElement.setAttribute("autocorrect",this.autocorrect):this.formElement.removeAttribute("autocorrect")),e.has("inputSpellcheck")&&(this.inputSpellcheck?this.formElement.setAttribute("spellcheck",this.inputSpellcheck):this.formElement.removeAttribute("spellcheck"))}},{kind:"method",key:"renderIcon",value:function(e,t=!1){const i=t?"trailing":"leading";return l.dy` <span class="mdc-text-field__icon mdc-text-field__icon--${i}" tabindex="${t?1:-1}"> <slot name="${i}Icon"></slot> </span> `}},{kind:"field",static:!0,key:"styles",value:()=>[s.W,l.iv`.mdc-text-field__input{width:var(--ha-textfield-input-width,100%)}.mdc-text-field:not(.mdc-text-field--with-leading-icon){padding:var(--text-field-padding,0px 16px)}.mdc-text-field__affix--suffix{padding-left:var(--text-field-suffix-padding-left,12px);padding-right:var(--text-field-suffix-padding-right,0px);padding-inline-start:var(--text-field-suffix-padding-left,12px);padding-inline-end:var(--text-field-suffix-padding-right,0px);direction:ltr}.mdc-text-field--with-leading-icon{padding-inline-start:var(--text-field-suffix-padding-left,0px);padding-inline-end:var(--text-field-suffix-padding-right,16px);direction:var(--direction)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:var(--text-field-suffix-padding-left,0px);padding-right:var(--text-field-suffix-padding-right,0px);padding-inline-start:var(--text-field-suffix-padding-left,0px);padding-inline-end:var(--text-field-suffix-padding-right,0px)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:var(--secondary-text-color)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon{color:var(--secondary-text-color)}.mdc-text-field__icon--leading{margin-inline-start:16px;margin-inline-end:8px;direction:var(--direction)}.mdc-text-field__icon--trailing{padding:var(--textfield-icon-trailing-padding,12px)}.mdc-floating-label:not(.mdc-floating-label--float-above){text-overflow:ellipsis;width:inherit;padding-right:30px;padding-inline-end:30px;padding-inline-start:initial;box-sizing:border-box;direction:var(--direction)}input{text-align:var(--text-field-text-align,start)}input[type=color]{height:20px}::-ms-reveal{display:none}:host([no-spinner]) input::-webkit-inner-spin-button,:host([no-spinner]) input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=color]::-webkit-color-swatch-wrapper{padding:0}:host([no-spinner]) input[type=number]{-moz-appearance:textfield}.mdc-text-field__ripple{overflow:hidden}.mdc-text-field{overflow:var(--text-field-overflow)}.mdc-floating-label{inset-inline-start:16px!important;inset-inline-end:initial!important;transform-origin:var(--float-start);direction:var(--direction);text-align:var(--float-start)}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px - var(--text-field-suffix-padding-left,0px));inset-inline-start:calc(48px + var(--text-field-suffix-padding-left,0px))!important;inset-inline-end:initial!important;direction:var(--direction)}.mdc-text-field__input[type=number]{direction:var(--direction)}.mdc-text-field__affix--prefix{padding-right:var(--text-field-prefix-padding-right,2px);padding-inline-end:var(--text-field-prefix-padding-right,2px);padding-inline-start:initial}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix{color:var(--mdc-text-field-label-ink-color)}#helper-text ha-markdown{display:inline-block}`,"rtl"===d.E.document.dir?l.iv`.mdc-floating-label,.mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field__icon--leading,.mdc-text-field__input[type=number]{direction:rtl;--direction:rtl}`:l.iv``]}]}}),n.P)},95076:function(e,t,i){var a=i(44249),o=i(57243),n=i(15093);i(37583);(0,a.Z)([(0,n.Mo)("ha-tip")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"method",key:"render",value:function(){return this.hass?o.dy` <ha-svg-icon .path="${"M12,2A7,7 0 0,1 19,9C19,11.38 17.81,13.47 16,14.74V17A1,1 0 0,1 15,18H9A1,1 0 0,1 8,17V14.74C6.19,13.47 5,11.38 5,9A7,7 0 0,1 12,2M9,21V20H15V21A1,1 0 0,1 14,22H10A1,1 0 0,1 9,21M12,4A5,5 0 0,0 7,9C7,11.05 8.23,12.81 10,13.58V16H14V13.58C15.77,12.81 17,11.05 17,9A5,5 0 0,0 12,4Z"}"></ha-svg-icon> <span class="prefix">${this.hass.localize("ui.panel.config.tips.tip")}</span> <span class="text"><slot></slot></span> `:o.Ld}},{kind:"field",static:!0,key:"styles",value:()=>o.iv`:host{display:block;text-align:center}.text{direction:var(--direction);margin-left:2px;margin-inline-start:2px;margin-inline-end:initial;color:var(--secondary-text-color)}.prefix{font-weight:500}`}]}}),o.oi)},38495:function(e,t,i){i.d(t,{AI:()=>s,Dy:()=>f,GV:()=>u,I2:()=>o,PA:()=>d,SC:()=>r,Vg:()=>g,XT:()=>p,Xp:()=>n,_v:()=>l,af:()=>h,eP:()=>a,jZ:()=>c});const a=(e,t,i)=>"run-start"===t.type?e={init_options:i,stage:"ready",run:t.data,events:[t]}:e?((e="wake_word-start"===t.type?{...e,stage:"wake_word",wake_word:{...t.data,done:!1}}:"wake_word-end"===t.type?{...e,wake_word:{...e.wake_word,...t.data,done:!0}}:"stt-start"===t.type?{...e,stage:"stt",stt:{...t.data,done:!1}}:"stt-end"===t.type?{...e,stt:{...e.stt,...t.data,done:!0}}:"intent-start"===t.type?{...e,stage:"intent",intent:{...t.data,done:!1}}:"intent-end"===t.type?{...e,intent:{...e.intent,...t.data,done:!0}}:"tts-start"===t.type?{...e,stage:"tts",tts:{...t.data,done:!1}}:"tts-end"===t.type?{...e,tts:{...e.tts,...t.data,done:!0}}:"run-end"===t.type?{...e,stage:"done"}:"error"===t.type?{...e,stage:"error",error:t.data}:{...e}).events=[...e.events,t],e):void console.warn("Received unexpected event before receiving session",t),o=(e,t,i)=>{let o;const s=n(e,(e=>{o=a(o,e,i),"run-end"!==e.type&&"error"!==e.type||s.then((e=>e())),o&&t(o)}),i);return s},n=(e,t,i)=>e.connection.subscribeMessage(t,{...i,type:"assist_pipeline/run"}),s=(e,t)=>e.callWS({type:"assist_pipeline/pipeline_debug/list",pipeline_id:t}),l=(e,t,i)=>e.callWS({type:"assist_pipeline/pipeline_debug/get",pipeline_id:t,pipeline_run_id:i}),r=e=>e.callWS({type:"assist_pipeline/pipeline/list"}),d=(e,t)=>e.callWS({type:"assist_pipeline/pipeline/get",pipeline_id:t}),c=(e,t)=>e.callWS({type:"assist_pipeline/pipeline/create",...t}),h=(e,t,i)=>e.callWS({type:"assist_pipeline/pipeline/update",pipeline_id:t,...i}),u=(e,t)=>e.callWS({type:"assist_pipeline/pipeline/set_preferred",pipeline_id:t}),p=(e,t)=>e.callWS({type:"assist_pipeline/pipeline/delete",pipeline_id:t}),f=e=>e.callWS({type:"assist_pipeline/language/list"}),g=e=>e.callWS({type:"assist_pipeline/device/list"})},73007:function(e,t,i){i.d(t,{BG:()=>n,Nk:()=>s,n8:()=>o});i(92745),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814);var a=i(1416);const o=e=>e.callWS({type:"cloud/tts/info"}),n=e=>{const t=[];if(!e)return t;const i=new Set;for(const[a]of e.languages)i.has(a)||(i.add(a),t.push(a));return t},s=(e,t)=>{const i=[];if(!t)return i;for(const[a,o]of t.languages)a===e&&i.push(o);return i.sort(((e,t)=>(0,a.fe)(e,t)))}},37013:function(e,t,i){i.d(t,{ao:()=>o,cG:()=>n});var a=i(11257);const o=async e=>(0,a.h9)(fetch("/api/onboarding/cloud/login",{method:"POST",body:JSON.stringify(e)})),n=async e=>(0,a.h9)(fetch("/api/onboarding/cloud/forgot_password",{method:"POST",body:JSON.stringify({email:e})}))},83716:function(e,t,i){i.d(t,{r:()=>a});const a=(e,t)=>{const i=new o,a=e.subscribeMessage((e=>t(i.processMessage(e))),{type:"persistent_notification/subscribe"});return()=>{a.then((e=>e?.()))}};class o{constructor(){this.notifications=void 0,this.notifications={}}processMessage(e){if("removed"===e.type)for(const t of Object.keys(e.notifications))delete this.notifications[t];else this.notifications={...this.notifications,...e.notifications};return Object.values(this.notifications)}}},96950:function(e,t,i){i.d(t,{H:()=>a});const a=e=>e.callWS({type:"webhook/list"})},88991:function(e,t,i){i.a(e,(async function(e,a){try{i.d(t,{S:()=>r,ST:()=>c,n3:()=>d});var o=i(59847),n=i(81530),s=e([n]);n=(s.then?(await s)():s)[0];const l={alarm_control_panel:()=>i.e("62410").then(i.bind(i,80875)),automation:()=>i.e("98368").then(i.bind(i,13592)),camera:()=>i.e("11569").then(i.bind(i,17712)),climate:()=>Promise.all([i.e("41258"),i.e("21728")]).then(i.bind(i,5192)),configurator:()=>Promise.all([i.e("46379"),i.e("2981"),i.e("16649")]).then(i.bind(i,10080)),conversation:()=>Promise.all([i.e("46379"),i.e("51229"),i.e("59176")]).then(i.bind(i,93726)),counter:()=>i.e("25510").then(i.bind(i,32441)),cover:()=>i.e("78402").then(i.bind(i,72869)),date:()=>Promise.all([i.e("46379"),i.e("41258"),i.e("3561"),i.e("64836")]).then(i.bind(i,6560)),datetime:()=>Promise.all([i.e("46379"),i.e("41258"),i.e("3134"),i.e("3561"),i.e("74040")]).then(i.bind(i,11348)),fan:()=>i.e("88973").then(i.bind(i,54764)),group:()=>Promise.all([i.e("46379"),i.e("41258"),i.e("99287"),i.e("1916"),i.e("81407")]).then(i.bind(i,96771)),humidifier:()=>i.e("66881").then(i.bind(i,9198)),image:()=>i.e("89870").then(i.bind(i,37093)),input_boolean:()=>i.e("64783").then(i.bind(i,85742)),input_datetime:()=>Promise.all([i.e("46379"),i.e("41258"),i.e("3561"),i.e("73561")]).then(i.bind(i,68377)),lawn_mower:()=>i.e("49").then(i.bind(i,31650)),light:()=>i.e("55815").then(i.bind(i,59031)),lock:()=>i.e("51539").then(i.bind(i,1563)),media_player:()=>Promise.all([i.e("41258"),i.e("8656")]).then(i.bind(i,99091)),person:()=>Promise.all([i.e("35637"),i.e("49554"),i.e("73565")]).then(i.bind(i,86554)),remote:()=>Promise.all([i.e("41258"),i.e("2600")]).then(i.bind(i,92081)),script:()=>Promise.all([i.e("46379"),i.e("24199"),i.e("27506"),i.e("99287"),i.e("2981"),i.e("78823"),i.e("13395")]).then(i.bind(i,74358)),siren:()=>i.e("34404").then(i.bind(i,86534)),sun:()=>i.e("8373").then(i.bind(i,55421)),switch:()=>i.e("50728").then(i.bind(i,56985)),time:()=>Promise.all([i.e("46379"),i.e("41258"),i.e("3561"),i.e("52137")]).then(i.bind(i,16347)),timer:()=>i.e("14597").then(i.bind(i,42971)),update:()=>Promise.all([i.e("5080"),i.e("2981"),i.e("49016"),i.e("79195"),i.e("9524")]).then(i.bind(i,51077)),vacuum:()=>Promise.all([i.e("41258"),i.e("29453")]).then(i.bind(i,61372)),valve:()=>i.e("60455").then(i.bind(i,20973)),water_heater:()=>i.e("80518").then(i.bind(i,60054)),weather:()=>Promise.all([i.e("99287"),i.e("15722"),i.e("85078")]).then(i.bind(i,95818))},r=e=>{const t=(0,o.N)(e);return d(t)},d=e=>n.l.includes(e)?e:n.tm.includes(e)?"hidden":"default",c=e=>{e in l&&l[e]()};a()}catch(e){a(e)}}))},87979:function(e,t,i){var a=i(44249),o=i(57243),n=i(15093),s=i(31146),l=(i(54202),i(43344),i(28008));(0,a.Z)([(0,n.Mo)("hass-subpage")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,n.Cb)()],key:"header",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,attribute:"main-page"})],key:"mainPage",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:String,attribute:"back-path"})],key:"backPath",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"backCallback",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,reflect:!0})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"supervisor",value:()=>!1},{kind:"field",decorators:[(0,s.i)(".content")],key:"_savedScrollPos",value:void 0},{kind:"method",key:"render",value:function(){return o.dy` <div class="toolbar"> ${this.mainPage||history.state?.root?o.dy` <ha-menu-button .hassio="${this.supervisor}" .hass="${this.hass}" .narrow="${this.narrow}"></ha-menu-button> `:this.backPath?o.dy` <a href="${this.backPath}"> <ha-icon-button-arrow-prev .hass="${this.hass}"></ha-icon-button-arrow-prev> </a> `:o.dy` <ha-icon-button-arrow-prev .hass="${this.hass}" @click="${this._backTapped}"></ha-icon-button-arrow-prev> `} <div class="main-title"><slot name="header">${this.header}</slot></div> <slot name="toolbar-icon"></slot> </div> <div class="content ha-scrollbar" @scroll="${this._saveScrollPos}"> <slot></slot> </div> <div id="fab"> <slot name="fab"></slot> </div> `}},{kind:"method",decorators:[(0,n.hO)({passive:!0})],key:"_saveScrollPos",value:function(e){this._savedScrollPos=e.target.scrollTop}},{kind:"method",key:"_backTapped",value:function(){this.backCallback?this.backCallback():history.back()}},{kind:"get",static:!0,key:"styles",value:function(){return[l.$c,o.iv`:host{display:block;height:100%;background-color:var(--primary-background-color);overflow:hidden;position:relative}:host([narrow]){width:100%;position:fixed}.toolbar{display:flex;align-items:center;font-size:20px;height:var(--header-height);padding:8px 12px;background-color:var(--app-header-background-color);font-weight:400;color:var(--app-header-text-color,#fff);border-bottom:var(--app-header-border-bottom,none);box-sizing:border-box}@media (max-width:599px){.toolbar{padding:4px}}.toolbar a{color:var(--sidebar-text-color);text-decoration:none}::slotted([slot=toolbar-icon]),ha-icon-button-arrow-prev,ha-menu-button{pointer-events:auto;color:var(--sidebar-icon-color)}.main-title{margin:var(--margin-title);line-height:20px;min-width:0;flex-grow:1;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;padding-bottom:1px}.content{position:relative;width:100%;height:calc(100% - 1px - var(--header-height));overflow-y:auto;overflow:auto;-webkit-overflow-scrolling:touch}#fab{position:absolute;right:calc(16px + env(safe-area-inset-right));inset-inline-end:calc(16px + env(safe-area-inset-right));inset-inline-start:initial;bottom:calc(16px + env(safe-area-inset-bottom));z-index:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}:host([narrow]) #fab.tabs{bottom:calc(84px + env(safe-area-inset-bottom))}#fab[is-wide]{bottom:24px;right:24px;inset-inline-end:24px;inset-inline-start:initial}`]}}]}}),o.oi)},20312:function(e,t,i){i.a(e,(async function(e,t){try{var a=i(44249),o=(i(31622),i(57243)),n=i(15093),s=i(64214),l=i(36522),r=i(22381),d=(i(99426),i(34273),i(54977),i(7285),i(95076),i(94616)),c=i(76131),h=(i(87979),i(6736)),u=i(28008),p=(i(98241),i(14886),i(77229)),f=i(90044),g=i(83037),v=i(81182),m=e([p,f,g,s]);[p,f,g,s]=m.then?(await m)():m;const y="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8.46,11.88L9.87,10.47L12,12.59L14.12,10.47L15.53,11.88L13.41,14L15.53,16.12L14.12,17.53L12,15.41L9.88,17.53L8.47,16.12L10.59,14L8.46,11.88M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",k="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",b="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z";(0,a.Z)([(0,n.Mo)("cloud-account")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:"is-wide",type:Boolean})],key:"isWide",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"cloudStatus",value:void 0},{kind:"field",decorators:[(0,n.SB)()],key:"_subscription",value:void 0},{kind:"method",key:"render",value:function(){return o.dy` <hass-subpage .hass="${this.hass}" .narrow="${this.narrow}" header="ioBroker Cloud"> <ha-button-menu slot="toolbar-icon" @action="${this._handleMenuAction}"> <ha-icon-button slot="trigger" .label="${this.hass.localize("ui.common.menu")}" .path="${k}"></ha-icon-button> <ha-list-item graphic="icon"> ${this.hass.localize("ui.panel.config.cloud.account.reset_cloud_data")} <ha-svg-icon slot="graphic" .path="${y}"></ha-svg-icon> </ha-list-item> <ha-list-item graphic="icon"> ${this.hass.localize("ui.panel.config.cloud.account.download_support_package")} <ha-svg-icon slot="graphic" .path="${b}"></ha-svg-icon> </ha-list-item> </ha-button-menu> <div class="content"> <ha-config-section .isWide="${this.isWide}"> <span slot="header">ioBroker Cloud</span> <div slot="introduction"> <p> ${this.hass.localize("ui.panel.config.cloud.account.thank_you_note")} </p> </div> <ha-card outlined .header="${this.hass.localize("ui.panel.config.cloud.account.nabu_casa_account")}"> <div class="account-row"> <ha-list-item noninteractive twoline> ${this.cloudStatus.email.replace(/(\w{3})[\w.-]+@([\w.]+\w)/,"$1***@$2")} <span slot="secondary" class="wrap"> ${this._subscription?this._subscription.human_description.replace("{periodEnd}",this._subscription.plan_renewal_date?(0,s.o0)(new Date(1e3*this._subscription.plan_renewal_date),this.hass.locale,this.hass.config):""):this.hass.localize("ui.panel.config.cloud.account.fetching_subscription")} </span> </ha-list-item> </div> ${"connecting"===this.cloudStatus.cloud&&this.cloudStatus.cloud_last_disconnect_reason?o.dy` <ha-alert alert-type="warning" .title="${this.cloudStatus.cloud_last_disconnect_reason.reason}"></ha-alert> `:""} <div class="account-row"> <ha-list-item noninteractive> ${this.hass.localize("ui.panel.config.cloud.account.connection_status")}: ${"connected"===this.cloudStatus.cloud?this.hass.localize("ui.panel.config.cloud.account.connected"):"disconnected"===this.cloudStatus.cloud?this.hass.localize("ui.panel.config.cloud.account.not_connected"):this.hass.localize("ui.panel.config.cloud.account.connecting")} </ha-list-item> </div> <div class="card-actions"> <a href="https://account.nabucasa.com" target="_blank" rel="noreferrer"> <mwc-button> ${this.hass.localize("ui.panel.config.cloud.account.manage_account")} </mwc-button> </a> <mwc-button @click="${this._signOut}" class="warning"> ${this.hass.localize("ui.panel.config.cloud.account.sign_out")} </mwc-button> </div> </ha-card> </ha-config-section> <ha-config-section .isWide="${this.isWide}"> <span slot="header">${this.hass.localize("ui.panel.config.cloud.account.integrations")}</span> <div slot="introduction"> <p> ${this.hass.localize("ui.panel.config.cloud.account.integrations_introduction")} </p> <p> ${this.hass.localize("ui.panel.config.cloud.account.integrations_introduction2")} <a href="https://www.nabucasa.com" target="_blank" rel="noreferrer"> ${this.hass.localize("ui.panel.config.cloud.account.integrations_link_all_features")}</a>. </p> </div> <cloud-remote-pref .hass="${this.hass}" .narrow="${this.narrow}" .cloudStatus="${this.cloudStatus}"></cloud-remote-pref> <cloud-tts-pref .hass="${this.hass}" .cloudStatus="${this.cloudStatus}"></cloud-tts-pref> <cloud-ice-servers-pref .hass="${this.hass}" .cloudStatus="${this.cloudStatus}"></cloud-ice-servers-pref> <ha-tip .hass="${this.hass}"> <a href="/config/voice-assistants"> ${this.hass.localize("ui.panel.config.cloud.account.tip_moved_voice_assistants")} </a> </ha-tip> <cloud-webhooks .hass="${this.hass}" .narrow="${this.narrow}" .cloudStatus="${this.cloudStatus}"></cloud-webhooks> </ha-config-section> </div> </hass-subpage> `}},{kind:"method",key:"firstUpdated",value:function(){this._fetchSubscriptionInfo()}},{kind:"method",key:"hassSubscribe",value:function(){const e=(0,r.D)((()=>{this.cloudStatus&&!this.cloudStatus.google_registered&&(0,l.B)(this,"ha-refresh-cloud-status")}),1e4,!0);return[this.hass.connection.subscribeEvents((()=>{this.cloudStatus?.alexa_registered||(0,l.B)(this,"ha-refresh-cloud-status")}),"alexa_smart_home"),this.hass.connection.subscribeEvents(e,"google_assistant_command"),this.hass.connection.subscribeEvents(e,"google_assistant_query"),this.hass.connection.subscribeEvents(e,"google_assistant_sync")]}},{kind:"method",key:"_fetchSubscriptionInfo",value:async function(){this._subscription=await(0,d.De)(this.hass),this._subscription.provider&&this.cloudStatus&&"connected"!==this.cloudStatus.cloud&&(0,l.B)(this,"ha-refresh-cloud-status")}},{kind:"method",key:"_signOut",value:async function(){(0,c.showConfirmationDialog)(this,{text:this.hass.localize("ui.panel.config.cloud.account.sign_out_confirm"),confirmText:this.hass.localize("ui.common.yes"),dismissText:this.hass.localize("ui.common.no"),confirm:()=>this._logoutFromCloud()})}},{kind:"method",key:"_logoutFromCloud",value:async function(){await(0,d.VU)(this.hass),(0,l.B)(this,"ha-refresh-cloud-status")}},{kind:"method",key:"_handleMenuAction",value:function(e){switch(e.detail.index){case 0:this._deleteCloudData();break;case 1:this._downloadSupportPackage()}}},{kind:"method",key:"_deleteCloudData",value:async function(){if(await(0,c.showConfirmationDialog)(this,{title:this.hass.localize("ui.panel.config.cloud.account.reset_data_confirm_title"),text:this.hass.localize("ui.panel.config.cloud.account.reset_data_confirm_text"),confirmText:this.hass.localize("ui.panel.config.cloud.account.reset"),destructive:!0}))try{await(0,d.VU)(this.hass),await(0,d.dV)(this.hass)}catch(e){return void(0,c.showAlertDialog)(this,{title:this.hass.localize("ui.panel.config.cloud.account.reset_data_failed"),text:e?.message})}finally{(0,l.B)(this,"ha-refresh-cloud-status")}}},{kind:"method",key:"_downloadSupportPackage",value:async function(){(0,v.k)(this)}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,o.iv`[slot=introduction]{margin:-1em 0}[slot=introduction] a{color:var(--primary-color)}.content{padding-bottom:24px}.account-row{display:flex;padding:0 16px}.card-actions{display:flex;flex-direction:row-reverse;justify-content:space-between}mwc-button{align-self:center}.wrap{white-space:normal}.status{text-transform:capitalize;padding:16px}`]}}]}}),(0,h.f)(o.oi));t()}catch(e){t(e)}}))},14886:function(e,t,i){var a=i(44249),o=i(57243),n=i(15093),s=i(36522),l=(i(54977),i(23334),i(1888),i(94616)),r=i(72473);(0,a.Z)([(0,n.Mo)("cloud-ice-servers-pref")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"cloudStatus",value:void 0},{kind:"method",key:"render",value:function(){if(!this.cloudStatus)return o.Ld;const{cloud_ice_servers_enabled:e}=this.cloudStatus.prefs;return o.dy` <ha-card outlined header="${this.hass.localize("ui.panel.config.cloud.account.ice_servers.title")}"> <div class="header-actions"> <a href="https://www.nabucasa.com/config/webrtc/" target="_blank" rel="noreferrer" class="icon-link"> <ha-icon-button .label="${this.hass.localize("ui.panel.config.cloud.account.ice_servers.link_learn_how_it_works")}" .path="${"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"}"></ha-icon-button> </a> <ha-switch .checked="${e}" @change="${this._toggleCloudICEServersEnabledChanged}"></ha-switch> </div> <div class="card-content"> <p> ${this.hass.localize("ui.panel.config.cloud.account.ice_servers.info")} </p> </div> </ha-card> `}},{kind:"method",key:"_toggleCloudICEServersEnabledChanged",value:async function(e){const t=e.target;try{await(0,l.LV)(this.hass,{cloud_ice_servers_enabled:t.checked}),(0,s.B)(this,"ha-refresh-cloud-status")}catch(e){(0,r.C)(this,{message:e.message}),t.checked=!t.checked}}},{kind:"field",static:!0,key:"styles",value:()=>o.iv`a{color:var(--primary-color)}.header-actions{position:absolute;right:16px;inset-inline-end:16px;inset-inline-start:initial;top:24px;display:flex;flex-direction:row}.header-actions .icon-link{margin-top:-16px;margin-right:8px;margin-inline-end:8px;margin-inline-start:initial;direction:var(--direction);color:var(--secondary-text-color)}`}]}}),o.oi)},77229:function(e,t,i){i.a(e,(async function(e,t){try{var a=i(44249),o=i(57243),n=i(15093),s=i(36522),l=(i(99426),i(59826),i(54977),i(41307),i(30509),i(1888),i(46467)),r=i(94616),d=i(72473),c=i(30894),h=i(11225),u=(i(75930),e([l]));l=(u.then?(await u)():u)[0];const p="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z";(0,a.Z)([(0,n.Mo)("cloud-remote-pref")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"cloudStatus",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"method",key:"render",value:function(){if(!this.cloudStatus)return o.Ld;const{remote_enabled:e,remote_allow_remote_enable:t,strict_connection:i}=this.cloudStatus.prefs,{remote_connected:a,remote_domain:n,remote_certificate:s,remote_certificate_status:r}=this.cloudStatus;return s&&"ready"===r?o.dy` <ha-card outlined header="${this.hass.localize("ui.panel.config.cloud.account.remote.title")}"> <div class="header-actions"> <a href="https://www.nabucasa.com/config/remote/" target="_blank" rel="noreferrer" class="icon-link"> <ha-icon-button .label="${this.hass.localize("ui.panel.config.cloud.account.remote.link_learn_how_it_works")}" .path="${p}"></ha-icon-button> </a> <ha-switch .checked="${e}" @change="${this._toggleChanged}"></ha-switch> </div> <div class="card-content"> ${!a&&e?o.dy` <ha-alert .title="${this.hass.localize("ui.panel.config.cloud.account.remote.reconnecting")}"></ha-alert> `:"drop_connection"===i?o.dy`<ha-alert alert-type="warning" .title="${this.hass.localize("ui.panel.config.cloud.account.remote.drop_connection_warning_title")}">${this.hass.localize("ui.panel.config.cloud.account.remote.drop_connection_warning")}</ha-alert>`:o.Ld} <p> ${this.hass.localize("ui.panel.config.cloud.account.remote.info")} </p> ${a?o.Ld:o.dy` <p> ${this.hass.localize("ui.panel.config.cloud.account.remote.info_instance_will_be_available")} </p> `} <ha-copy-textfield .hass="${this.hass}" .value="${`https://${n}`}" .maskedValue="${(0,h.t)(`https://${n}`)}" .label="${this.hass.localize("ui.panel.config.common.copy_link")}"></ha-copy-textfield> <ha-expansion-panel outlined .header="${this.hass.localize("ui.panel.config.cloud.account.remote.security_options")}"> <ha-settings-row wrap-heading> <span slot="heading">${this.hass.localize("ui.panel.config.cloud.account.remote.external_activation")}</span> <span slot="description">${this.hass.localize("ui.panel.config.cloud.account.remote.external_activation_secondary")}</span> <ha-switch .checked="${t}" @change="${this._toggleAllowRemoteEnabledChanged}"></ha-switch> </ha-settings-row> <hr> <ha-settings-row .narrow="${this.narrow}"> <span slot="heading">${this.hass.localize("ui.panel.config.cloud.account.remote.certificate_info")}</span> <span slot="description">${this.cloudStatus.remote_certificate?this.hass.localize("ui.panel.config.cloud.account.remote.certificate_expire",{date:(0,l.p6)(new Date(this.cloudStatus.remote_certificate.expire_date),this.hass.locale,this.hass.config)}):o.Ld}</span> <ha-button @click="${this._openCertInfo}"> ${this.hass.localize("ui.panel.config.cloud.account.remote.more_info")} </ha-button> </ha-settings-row> </ha-expansion-panel> </div> </ha-card> `:o.dy` <ha-card outlined header="${this.hass.localize("ui.panel.config.cloud.account.remote.title")}"> <div class="preparing"> ${"error"===r?this.hass.localize("ui.panel.config.cloud.account.remote.cerificate_error"):"loading"===r?this.hass.localize("ui.panel.config.cloud.account.remote.cerificate_loading"):"loaded"===r?this.hass.localize("ui.panel.config.cloud.account.remote.cerificate_loaded"):this.hass.localize("ui.panel.config.cloud.account.remote.access_is_being_prepared")} </div> </ha-card> `}},{kind:"method",key:"_openCertInfo",value:function(){(0,c.G)(this,{certificateInfo:this.cloudStatus.remote_certificate})}},{kind:"method",key:"_toggleChanged",value:async function(e){const t=e.target;try{t.checked?await(0,r.dn)(this.hass):await(0,r.H9)(this.hass),(0,s.B)(this,"ha-refresh-cloud-status")}catch(e){(0,d.C)(this,{message:e.message}),t.checked=!t.checked}}},{kind:"method",key:"_toggleAllowRemoteEnabledChanged",value:async function(e){const t=e.target;try{await(0,r.LV)(this.hass,{remote_allow_remote_enable:t.checked}),(0,s.B)(this,"ha-refresh-cloud-status")}catch(e){(0,d.C)(this,{message:e.message}),t.checked=!t.checked}}},{kind:"field",static:!0,key:"styles",value:()=>o.iv`.preparing{padding:0 16px 16px}a{color:var(--primary-color)}.header-actions{position:absolute;right:16px;inset-inline-end:16px;inset-inline-start:initial;top:24px;display:flex;flex-direction:row}.header-actions .icon-link{margin-top:-16px;margin-right:8px;margin-inline-end:8px;margin-inline-start:initial;direction:var(--direction);color:var(--secondary-text-color)}.warning{font-weight:700;margin-bottom:1em}.break-word{overflow-wrap:break-word}.connection-status{position:absolute;right:24px;top:24px;inset-inline-end:24px;inset-inline-start:initial}.card-actions{display:flex}.card-actions a{text-decoration:none}ha-expansion-panel{margin-top:16px}ha-settings-row{padding:0;border-top:none!important}ha-expansion-panel{--expansion-panel-content-padding:0 16px;--expansion-panel-summary-padding:0 16px}ha-alert{display:block;margin-bottom:16px}hr{border:none;height:1px;background-color:var(--divider-color);margin:8px 0}`}]}}),o.oi);t()}catch(e){t(e)}}))},90044:function(e,t,i){i.a(e,(async function(e,t){try{var a=i(44249),o=i(72621),n=(i(9359),i(1331),i(70104),i(31622),i(87319),i(57243)),s=i(15093),l=i(27486),r=i(36522),d=(i(54977),i(92824),i(37583),i(1888),i(2790)),c=i(94616),h=i(73007),u=i(76131),p=i(98829),f=e([d]);d=(f.then?(await f)():f)[0];(0,a.Z)([(0,s.Mo)("cloud-tts-pref")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"cloudStatus",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"savingPreferences",value:()=>!1},{kind:"field",decorators:[(0,s.SB)()],key:"ttsInfo",value:void 0},{kind:"method",key:"render",value:function(){if(!this.cloudStatus||!this.ttsInfo)return n.Ld;const e=this.getLanguages(this.ttsInfo),t=this.cloudStatus.prefs.tts_default_voice,i=this.getSupportedVoices(t[0],this.ttsInfo);return n.dy` <ha-card outlined header="${this.hass.localize("ui.panel.config.cloud.account.tts.title")}"> <div class="card-content"> ${this.hass.localize("ui.panel.config.cloud.account.tts.description",{service:'"tts.cloud_say"'})} <br><br> <div class="row"> <ha-language-picker .hass="${this.hass}" .label="${this.hass.localize("ui.panel.config.cloud.account.tts.default_language")}" .disabled="${this.savingPreferences}" .value="${t[0]}" .languages="${e}" @value-changed="${this._handleLanguageChange}"> </ha-language-picker> <ha-select .label="${this.hass.localize("ui.panel.config.cloud.account.tts.default_voice")}" .disabled="${this.savingPreferences}" .value="${t[1]}" @selected="${this._handleVoiceChange}"> ${i.map((e=>n.dy`<mwc-list-item .value="${e}">${e}</mwc-list-item>`))} </ha-select> </div> </div> <div class="card-actions"> <mwc-button @click="${this._openTryDialog}"> ${this.hass.localize("ui.panel.config.cloud.account.tts.try")} </mwc-button> </div> </ha-card> `}},{kind:"method",key:"updated",value:function(e){e.has("cloudStatus")&&this.cloudStatus?.prefs.tts_default_voice?.[0]!==e.get("cloudStatus")?.prefs.tts_default_voice?.[0]&&this.renderRoot.querySelector("ha-select")?.layoutOptions()}},{kind:"method",key:"willUpdate",value:function(e){(0,o.Z)(i,"willUpdate",this,3)([e]),this.hasUpdated||(0,h.n8)(this.hass).then((e=>{this.ttsInfo=e})),e.has("cloudStatus")&&(this.savingPreferences=!1)}},{kind:"field",key:"getLanguages",value:()=>(0,l.Z)(h.BG)},{kind:"field",key:"getSupportedVoices",value:()=>(0,l.Z)(h.Nk)},{kind:"method",key:"_openTryDialog",value:function(){(0,p.k)(this,{defaultVoice:this.cloudStatus.prefs.tts_default_voice})}},{kind:"method",key:"_handleLanguageChange",value:async function(e){if(e.detail.value===this.cloudStatus.prefs.tts_default_voice[0])return;this.savingPreferences=!0;const t=e.detail.value,i=this.cloudStatus.prefs.tts_default_voice[1],a=this.getSupportedVoices(t,this.ttsInfo),o=a.find((e=>e===i))?i:a[0];try{await(0,c.LV)(this.hass,{tts_default_voice:[t,o]}),(0,r.B)(this,"ha-refresh-cloud-status")}catch(e){this.savingPreferences=!1,console.error(e),(0,u.showAlertDialog)(this,{text:`Unable to save default language. ${e}`,warning:!0})}}},{kind:"method",key:"_handleVoiceChange",value:async function(e){if(e.target.value===this.cloudStatus.prefs.tts_default_voice[1])return;this.savingPreferences=!0;const t=this.cloudStatus.prefs.tts_default_voice[0],i=e.target.value;try{await(0,c.LV)(this.hass,{tts_default_voice:[t,i]}),(0,r.B)(this,"ha-refresh-cloud-status")}catch(e){this.savingPreferences=!1,console.error(e),(0,u.showAlertDialog)(this,{text:`Unable to save default voice. ${e}`,warning:!0})}}},{kind:"field",static:!0,key:"styles",value:()=>n.iv`a{color:var(--primary-color)}.example{position:absolute;right:16px;inset-inline-end:16px;inset-inline-start:initial;top:16px}.row{display:flex}.row>*{flex:1;width:0}.row>:first-child{margin-right:8px;margin-inline-end:8px;margin-inline-start:initial}.row>:last-child{margin-left:8px;margin-inline-start:8px;margin-inline-end:initial}.card-actions{display:flex;flex-direction:row-reverse}`}]}}),n.oi);t()}catch(e){t(e)}}))},83037:function(e,t,i){i.a(e,(async function(e,t){try{var a=i(44249),o=i(72621),n=(i(9359),i(56475),i(1331),i(70104),i(57243)),s=i(15093),l=i(72344),r=(i(54977),i(17170)),d=(i(30509),i(1888),i(94616)),c=i(96950),h=i(28008),u=i(2141),p=e([r]);r=(p.then?(await p)():p)[0];(0,a.Z)([(0,s.Mo)("cloud-webhooks")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"cloudStatus",value:void 0},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,s.SB)()],key:"_cloudHooks",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_localHooks",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_progress",value:()=>[]},{kind:"method",key:"connectedCallback",value:function(){(0,o.Z)(i,"connectedCallback",this,3)([]),this._fetchData()}},{kind:"method",key:"render",value:function(){return n.dy` <ha-card outlined header="${this.hass.localize("ui.panel.config.cloud.account.webhooks.title")}"> <div class="card-content"> ${this.hass.localize("ui.panel.config.cloud.account.webhooks.info")} ${this.cloudStatus&&this._localHooks&&this._cloudHooks&&this.hass?0===this._localHooks.length?n.dy` <div class="body-text"> ${this.hass.localize("ui.panel.config.cloud.account.webhooks.no_hooks_yet")} <a href="/config/integrations">${this.hass.localize("ui.panel.config.cloud.account.webhooks.no_hooks_yet_link_integration")} </a> ${this.hass.localize("ui.panel.config.cloud.account.webhooks.no_hooks_yet2")} <a href="/config/automation/edit/new">${this.hass.localize("ui.panel.config.cloud.account.webhooks.no_hooks_yet_link_automation")}</a>. </div> `:this._localHooks.map((e=>n.dy` <ha-settings-row .narrow="${this.narrow}" .entry="${e}"> <span slot="heading"> ${e.name} ${e.domain!==e.name.toLowerCase()?` (${e.domain})`:""} </span> <span slot="description">${e.webhook_id}</span> ${this._progress.includes(e.webhook_id)?n.dy` <div class="progress"> <ha-spinner></ha-spinner> </div> `:this._cloudHooks[e.webhook_id]?n.dy` <mwc-button @click="${this._handleManageButton}"> ${this.hass.localize("ui.panel.config.cloud.account.webhooks.manage")} </mwc-button> `:n.dy`<ha-switch @click="${this._enableWebhook}"> </ha-switch>`} </ha-settings-row> `)):n.dy` <div class="body-text"> ${this.hass.localize("ui.panel.config.cloud.account.webhooks.loading")} </div> `} <div class="footer"> <a href="https://www.nabucasa.com/config/webhooks" target="_blank" rel="noreferrer"> ${this.hass.localize("ui.panel.config.cloud.account.webhooks.link_learn_more")} </a> </div> </div> </ha-card> `}},{kind:"method",key:"updated",value:function(e){(0,o.Z)(i,"updated",this,3)([e]),e.has("cloudStatus")&&this.cloudStatus&&(this._cloudHooks=this.cloudStatus.prefs.cloudhooks||{})}},{kind:"method",key:"_showDialog",value:function(e){const t=this._localHooks.find((t=>t.webhook_id===e)),i=this._cloudHooks[e];(0,u.Y)(this,{webhook:t,cloudhook:i,disableHook:()=>this._disableWebhook(e)})}},{kind:"method",key:"_handleManageButton",value:function(e){const t=e.currentTarget.parentElement.entry;this._showDialog(t.webhook_id)}},{kind:"method",key:"_enableWebhook",value:async function(e){const t=e.currentTarget.parentElement.entry;let i;this._progress=[...this._progress,t.webhook_id];try{i=await(0,d.AV)(this.hass,t.webhook_id)}catch(e){return void alert(e.message)}finally{this._progress=this._progress.filter((e=>e!==t.webhook_id))}this._cloudHooks={...this._cloudHooks,[t.webhook_id]:i},0===this._progress.length&&this._showDialog(t.webhook_id)}},{kind:"method",key:"_disableWebhook",value:async function(e){this._progress=[...this._progress,e];try{await(0,d.Mc)(this.hass,e)}catch(e){return void alert(`${this.hass.localize("ui.panel.config.cloud.account.webhooks.disable_hook_error_msg")} ${e.message}`)}finally{this._progress=this._progress.filter((t=>t!==e))}const{[e]:t,...i}=this._cloudHooks;this._cloudHooks=i}},{kind:"method",key:"_fetchData",value:async function(){if(!(0,l.p)(this.hass,"webhook"))return void(this._localHooks=[]);const e=await(0,c.H)(this.hass);this._localHooks=e.filter((e=>!e.local_only&&("mobile_app"!==e.domain||"Deleted Webhook"!==e.name)))}},{kind:"get",static:!0,key:"styles",value:function(){return[h.Qx,n.iv`.body-text{padding:8px 0}.webhook{display:flex;padding:4px 0}.progress{margin-right:16px;margin-inline-end:16px;margin-inline-start:initial;display:flex;flex-direction:column;justify-content:center}.footer{padding-top:16px}.body-text a,.footer a{color:var(--primary-color)}ha-settings-row{padding:0}`]}}]}}),n.oi);t()}catch(e){t(e)}}))},81182:function(e,t,i){i.d(t,{k:()=>n});var a=i(36522);const o=()=>Promise.all([i.e("7442"),i.e("2981"),i.e("69353")]).then(i.bind(i,64028)),n=e=>{(0,a.B)(e,"show-dialog",{dialogTag:"dialog-cloud-support-package",dialogImport:o,dialogParams:{}})}},98829:function(e,t,i){i.d(t,{k:()=>n});var a=i(36522);const o=()=>Promise.all([i.e("97983"),i.e("44727")]).then(i.bind(i,88529)),n=(e,t)=>{(0,a.B)(e,"show-dialog",{dialogTag:"dialog-cloud-try-tts",dialogImport:o,dialogParams:t})}},47873:function(e,t,i){i.d(t,{F:()=>o});var a=i(36522);const o=(e,t)=>new Promise((o=>{const n=t.closeDialog,s=t.logInHereAction;(0,a.B)(e,"show-dialog",{dialogTag:"dialog-cloud-already-connected",dialogImport:()=>Promise.all([i.e("97983"),i.e("58640"),i.e("39027")]).then(i.bind(i,94223)),dialogParams:{...t,closeDialog:()=>{n?.(),o(!1)},logInHereAction:()=>{s?.(),o(!0)}}})}))},30894:function(e,t,i){i.d(t,{G:()=>o});var a=i(36522);const o=(e,t)=>{(0,a.B)(e,"show-dialog",{dialogTag:"dialog-cloud-certificate",dialogImport:()=>Promise.all([i.e("97983"),i.e("87050")]).then(i.bind(i,51119)),dialogParams:t})}},2141:function(e,t,i){i.d(t,{Y:()=>o});var a=i(36522);const o=(e,t)=>{(0,a.B)(e,"show-dialog",{dialogTag:"dialog-manage-cloudhook",dialogImport:()=>Promise.all([i.e("97983"),i.e("25643")]).then(i.bind(i,92213)),dialogParams:t})}},34480:function(e,t,i){i.a(e,(async function(e,a){try{i.r(t);var o=i(44249),n=i(72621),s=i(15093),l=i(83523),r=i(24312),d=i(20312),c=i(19688),h=e([d,c]);[d,c]=h.then?(await h)():h;const u=["account","google-assistant","alexa"],p=["login","register","forgot-password"];(0,o.Z)([(0,s.Mo)("ha-config-cloud")],(function(e,t){class a extends t{constructor(...t){super(...t),e(this)}}return{F:a,d:[{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:"is-wide",type:Boolean})],key:"isWide",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"route",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"cloudStatus",value:void 0},{kind:"field",key:"routerOptions",value(){return{defaultPage:"login",showLoading:!0,initialLoad:()=>this._cloudStatusLoaded,beforeRender:e=>{if(this.cloudStatus.logged_in){if(!u.includes(e))return"account"}else if(!p.includes(e))return"login"},routes:{login:{tag:"cloud-login-panel"},register:{tag:"cloud-register",load:()=>i.e("13027").then(i.bind(i,81698))},"forgot-password":{tag:"cloud-forgot-password",load:()=>i.e("58705").then(i.bind(i,10685))},account:{tag:"cloud-account"}}}}},{kind:"field",decorators:[(0,s.SB)()],key:"_flashMessage",value:()=>""},{kind:"field",decorators:[(0,s.SB)()],key:"_loginEmail",value:()=>""},{kind:"field",key:"_resolveCloudStatusLoaded",value:void 0},{kind:"field",key:"_cloudStatusLoaded",value(){return new Promise((e=>{this._resolveCloudStatusLoaded=e}))}},{kind:"method",key:"firstUpdated",value:function(e){(0,n.Z)(a,"firstUpdated",this,3)([e]),this.addEventListener("cloud-done",(e=>{this._flashMessage=e.detail.flashMessage,(0,l.c)("/config/cloud/login")}))}},{kind:"method",key:"updated",value:function(e){if((0,n.Z)(a,"updated",this,3)([e]),e.has("cloudStatus")){const t=e.get("cloudStatus");void 0===t?this._resolveCloudStatusLoaded():t.logged_in!==this.cloudStatus.logged_in&&(0,l.c)(this.route.prefix,{replace:!0})}}},{kind:"method",key:"createElement",value:function(e){const t=(0,n.Z)(a,"createElement",this,3)([e]);return t.addEventListener("cloud-email-changed",(e=>{this._loginEmail=e.detail.value})),t.addEventListener("flash-message-changed",(e=>{this._flashMessage=e.detail.value})),t}},{kind:"method",key:"updatePageEl",value:function(e){this.cloudStatus&&!this.cloudStatus.logged_in&&u.includes(this._currentPage)||(e.hass=this.hass,e.email=this._loginEmail,e.isWide=this.isWide,e.narrow=this.narrow,e.cloudStatus=this.cloudStatus,e.flashMessage=this._flashMessage)}}]}}),r.n);a()}catch(e){a(e)}}))},19688:function(e,t,i){i.a(e,(async function(e,t){try{var a=i(44249),o=(i(2060),i(57243)),n=i(15093),s=i(36522),l=i(83523),r=(i(99426),i(54977),i(13928),i(7285),i(34273),i(94616)),d=i(76131),c=(i(87979),i(28008)),h=(i(98241),i(16798)),u=i(81182),p=e([h]);h=(p.then?(await p)():p)[0];const f="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8.46,11.88L9.87,10.47L12,12.59L14.12,10.47L15.53,11.88L13.41,14L15.53,16.12L14.12,17.53L12,15.41L9.88,17.53L8.47,16.12L10.59,14L8.46,11.88M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",g="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",v="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z";(0,a.Z)([(0,n.Mo)("cloud-login-panel")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:"is-wide",type:Boolean})],key:"isWide",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)()],key:"email",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"flashMessage",value:void 0},{kind:"field",decorators:[(0,n.IO)("cloud-login")],key:"_cloudLoginElement",value:void 0},{kind:"method",key:"render",value:function(){return o.dy` <hass-subpage .hass="${this.hass}" .narrow="${this.narrow}" header="ioBroker Cloud"> <ha-button-menu slot="toolbar-icon" @action="${this._handleMenuAction}"> <ha-icon-button slot="trigger" .label="${this.hass.localize("ui.common.menu")}" .path="${g}"></ha-icon-button> <ha-list-item graphic="icon"> ${this.hass.localize("ui.panel.config.cloud.account.reset_cloud_data")} <ha-svg-icon slot="graphic" .path="${f}"></ha-svg-icon> </ha-list-item> <ha-list-item graphic="icon"> ${this.hass.localize("ui.panel.config.cloud.account.download_support_package")} <ha-svg-icon slot="graphic" .path="${v}"></ha-svg-icon> </ha-list-item> </ha-button-menu> <div class="content"> <ha-config-section .isWide="${this.isWide}"> <span slot="header">ioBroker Cloud</span> <div slot="introduction"> <p> ${this.hass.localize("ui.panel.config.cloud.login.introduction")} </p> <p> ${this.hass.localize("ui.panel.config.cloud.login.introduction2")} <a href="https://www.nabucasa.com" target="_blank" rel="noreferrer"> Nabu Casa, Inc</a>${this.hass.localize("ui.panel.config.cloud.login.introduction2a")} </p> <p> ${this.hass.localize("ui.panel.config.cloud.login.introduction3")} </p> <p> <a href="https://www.nabucasa.com" target="_blank" rel="noreferrer"> ${this.hass.localize("ui.panel.config.cloud.login.learn_more_link")} </a> </p> </div> ${this.flashMessage?o.dy`<ha-alert dismissable @alert-dismissed-clicked="${this._dismissFlash}"> ${this.flashMessage} </ha-alert>`:""} <cloud-login .hass="${this.hass}" .email="${this.email}" .localize="${this.hass.localize}" @cloud-forgot-password="${this._handleForgotPassword}" check-connection></cloud-login> <ha-card outlined> <mwc-list> <ha-list-item @click="${this._handleRegister}" twoline hasMeta> ${this.hass.localize("ui.panel.config.cloud.login.start_trial")} <span slot="secondary"> ${this.hass.localize("ui.panel.config.cloud.login.trial_info")} </span> <ha-icon-next slot="meta"></ha-icon-next> </ha-list-item> </mwc-list> </ha-card> </ha-config-section> </div> </hass-subpage> `}},{kind:"method",key:"_handleForgotPassword",value:function(){this._dismissFlash(),(0,s.B)(this,"cloud-email-changed",{value:this._cloudLoginElement.emailField.value}),(0,l.c)("/config/cloud/forgot-password")}},{kind:"method",key:"_handleRegister",value:function(){this._dismissFlash(),(0,s.B)(this,"cloud-email-changed",{value:this._cloudLoginElement.emailField.value}),(0,l.c)("/config/cloud/register")}},{kind:"method",key:"_dismissFlash",value:function(){(0,s.B)(this,"flash-message-changed",{value:""})}},{kind:"method",key:"_handleMenuAction",value:function(e){switch(e.detail.index){case 0:this._deleteCloudData();break;case 1:this._downloadSupportPackage()}}},{kind:"method",key:"_deleteCloudData",value:async function(){if(await(0,d.showConfirmationDialog)(this,{title:this.hass.localize("ui.panel.config.cloud.account.reset_data_confirm_title"),text:this.hass.localize("ui.panel.config.cloud.account.reset_data_confirm_text"),confirmText:this.hass.localize("ui.panel.config.cloud.account.reset"),destructive:!0}))try{await(0,r.dV)(this.hass)}catch(e){return void(0,d.showAlertDialog)(this,{title:this.hass.localize("ui.panel.config.cloud.account.reset_data_failed"),text:e?.message})}finally{(0,s.B)(this,"ha-refresh-cloud-status")}}},{kind:"method",key:"_downloadSupportPackage",value:async function(){(0,u.k)(this)}},{kind:"get",static:!0,key:"styles",value:function(){return[c.Qx,o.iv`.content{padding-bottom:24px}[slot=introduction]{margin:-1em 0}[slot=introduction] a{color:var(--primary-color)}ha-card{overflow:hidden}ha-card .card-header{margin-bottom:-8px}h1{margin:0}`]}}]}}),o.oi);t()}catch(e){t(e)}}))},16798:function(e,t,i){i.a(e,(async function(e,t){try{var a=i(44249),o=(i(88972),i(57243)),n=i(15093),s=i(36522),l=i(29095),r=(i(99426),i(54977),i(59826),i(34326),i(83166),i(28008)),d=i(94616),c=i(12660),h=i(38495),u=i(47873),p=i(37013),f=e([l,c]);[l,c]=f.then?(await f)():f;(0,a.Z)([(0,n.Mo)("cloud-login")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,attribute:"check-connection"})],key:"checkConnection",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)()],key:"email",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"localize",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:"translation-key-panel"})],key:"translationKeyPanel",value:()=>"config.cloud"},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,attribute:"card-less"})],key:"cardLess",value:()=>!1},{kind:"field",decorators:[(0,n.IO)("#email",!0)],key:"emailField",value:void 0},{kind:"field",decorators:[(0,n.IO)("#password",!0)],key:"_passwordField",value:void 0},{kind:"field",decorators:[(0,n.SB)()],key:"_error",value:void 0},{kind:"field",decorators:[(0,n.SB)()],key:"_inProgress",value:()=>!1},{kind:"method",key:"render",value:function(){return this.cardLess?this._renderLoginForm():o.dy` <ha-card outlined .header="${this.localize(`ui.panel.${this.translationKeyPanel}.login.sign_in`)}"> ${this._renderLoginForm()} </ha-card> `}},{kind:"method",key:"_renderLoginForm",value:function(){return o.dy` <div class="card-content login-form"> ${this._error?o.dy`<ha-alert alert-type="error">${this._error}</ha-alert>`:o.Ld} <ha-textfield .label="${this.localize(`ui.panel.${this.translationKeyPanel}.login.email`)}" id="email" name="username" type="email" autocomplete="username" required .value="${this.email??""}" @keydown="${this._keyDown}" .disabled="${this._inProgress}" .validationMessage="${this.localize(`ui.panel.${this.translationKeyPanel}.login.email_error_msg`)}"></ha-textfield> <ha-password-field id="password" name="password" .label="${this.localize(`ui.panel.${this.translationKeyPanel}.login.password`)}" autocomplete="current-password" required minlength="8" @keydown="${this._keyDown}" .disabled="${this._inProgress}" .validationMessage="${this.localize(`ui.panel.${this.translationKeyPanel}.login.password_error_msg`)}"></ha-password-field> </div> <div class="card-actions"> <ha-button .disabled="${this._inProgress}" @click="${this._handleForgotPassword}"> ${this.localize(`ui.panel.${this.translationKeyPanel}.login.forgot_password`)} </ha-button> <ha-progress-button unelevated @click="${this._handleLogin}" .progress="${this._inProgress}">${this.localize(`ui.panel.${this.translationKeyPanel}.login.sign_in`)}</ha-progress-button> </div> `}},{kind:"method",key:"_keyDown",value:function(e){"Enter"===e.key&&this._handleLogin()}},{kind:"field",key:"_handleCloudLoginError",value(){return async(e,t,i,a)=>{const o=e&&e.body&&e.body.code;if("mfarequired"===o){const e=await(0,c.showPromptDialog)(this,{title:this.localize(`ui.panel.${this.translationKeyPanel}.login.totp_code_prompt_title`),inputLabel:this.localize(`ui.panel.${this.translationKeyPanel}.login.totp_code`),inputType:"text",defaultValue:"",confirmText:this.localize(`ui.panel.${this.translationKeyPanel}.login.submit`),dismissText:this.localize(`ui.panel.${this.translationKeyPanel}.login.cancel`)});if(null!==e&&""!==e)return this._login(t,i,a,e),"continue"}if("alreadyconnectederror"===o){const a=await(0,u.F)(this,{details:JSON.parse(e.body.message)});return a&&this._login(t,i,!1),a?"continue":"cancel"}if("PasswordChangeRequired"===o)return(0,c.showAlertDialog)(this,{title:this.localize(`ui.panel.${this.translationKeyPanel}.login.alert_password_change_required`)}),"password-change";if("usernotfound"!==o||t===t.toLowerCase())switch(o){case"UserNotConfirmed":return this.localize(`ui.panel.${this.translationKeyPanel}.login.alert_email_confirm_necessary`);case"mfarequired":return this.localize(`ui.panel.${this.translationKeyPanel}.login.alert_mfa_code_required`);case"mfaexpiredornotstarted":return this.localize(`ui.panel.${this.translationKeyPanel}.login.alert_mfa_expired_or_not_started`);case"invalidtotpcode":return this.localize(`ui.panel.${this.translationKeyPanel}.login.alert_totp_code_invalid`);default:return e&&e.body&&e.body.message?e.body.message:"Unknown error"}else this._login(t.toLowerCase(),i,a)}}},{kind:"field",key:"_login",value(){return async(e,t,i,a)=>{if(!t&&!a)throw new Error("Password or code required");try{if(this.hass){const o=await(0,d._Y)({hass:this.hass,email:e,...a?{code:a}:{password:t},check_connection:i});o.cloud_pipeline&&await(0,c.showConfirmationDialog)(this,{title:this.hass.localize("ui.panel.config.cloud.login.cloud_pipeline_title"),text:this.hass.localize("ui.panel.config.cloud.login.cloud_pipeline_text")})&&(0,h.GV)(this.hass,o.cloud_pipeline)}else await(0,p.ao)({email:e,...a?{code:a}:{password:t}});this.email="",(0,s.B)(this,"ha-refresh-cloud-status")}catch(a){const o=await this._handleCloudLoginError(a,e,t,i);if("cancel"===o)return this._inProgress=!1,this.email="",void(this._passwordField.value="");if("password-change"===o)return void this._handleForgotPassword();"continue"!==o&&(this._inProgress=!1,this._error=o)}}}},{kind:"method",key:"_handleLogin",value:async function(){if(!this._inProgress){if(!this.emailField.reportValidity())return void this.emailField.focus();if(!this._passwordField.reportValidity())return void this._passwordField.focus();this._inProgress=!0,this._login(this.emailField.value,this._passwordField.value,this.checkConnection)}}},{kind:"method",key:"_handleForgotPassword",value:function(){(0,s.B)(this,"cloud-forgot-password")}},{kind:"get",static:!0,key:"styles",value:function(){return[r.Qx,o.iv`ha-card{overflow:hidden}ha-card .card-header{margin-bottom:-8px}.card-actions{display:flex;justify-content:space-between;align-items:center}.login-form{display:flex;flex-direction:column}`]}}]}}),o.oi);t()}catch(e){t(e)}}))},98241:function(e,t,i){var a=i(44249),o=i(57243),n=i(15093),s=i(35359);(0,a.Z)([(0,n.Mo)("ha-config-section")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:"is-wide",type:Boolean})],key:"isWide",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"vertical",value:()=>!1},{kind:"field",decorators:[(0,n.Cb)({type:Boolean,attribute:"full-width"})],key:"fullWidth",value:()=>!1},{kind:"method",key:"render",value:function(){return o.dy` <div class="content ${(0,s.$)({narrow:!this.isWide,"full-width":this.fullWidth})}"> <div class="header"><slot name="header"></slot></div> <div class="together layout ${(0,s.$)({narrow:!this.isWide,vertical:this.vertical||!this.isWide,horizontal:!this.vertical&&this.isWide})}"> <div class="intro"><slot name="introduction"></slot></div> <div class="panel flex-auto"><slot></slot></div> </div> </div> `}},{kind:"field",static:!0,key:"styles",value:()=>o.iv`:host{display:block}.content{padding:28px 20px 0;max-width:1040px;margin:0 auto}.layout{display:flex}.horizontal{flex-direction:row}.vertical{flex-direction:column}.flex-auto{flex:1 1 auto}.header{font-family:var(--paper-font-headline_-_font-family);-webkit-font-smoothing:var(--paper-font-headline_-_-webkit-font-smoothing);font-size:var(--paper-font-headline_-_font-size);font-weight:var(--paper-font-headline_-_font-weight);letter-spacing:var(--paper-font-headline_-_letter-spacing);line-height:var(--paper-font-headline_-_line-height);opacity:var(--dark-primary-opacity)}.together{margin-top:var(--config-section-content-together-margin-top,32px)}.intro{font-family:var(--paper-font-subhead_-_font-family);-webkit-font-smoothing:var(--paper-font-subhead_-_-webkit-font-smoothing);font-weight:var(--paper-font-subhead_-_font-weight);line-height:var(--paper-font-subhead_-_line-height);width:100%;opacity:var(--dark-primary-opacity);font-size:14px;padding-bottom:20px}.horizontal .intro{max-width:400px;margin-right:40px;margin-inline-end:40px;margin-inline-start:initial}.panel{margin-top:-24px}.panel ::slotted(*){margin-top:24px;display:block}.narrow.content{max-width:640px}.narrow .together{margin-top:var(--config-section-narrow-content-together-margin-top,var(--config-section-content-together-margin-top,20px))}.narrow .intro{padding-bottom:20px;margin-right:0;margin-inline-end:0;margin-inline-start:initial;max-width:500px}.full-width{padding:0}.full-width .layout{flex-direction:column}`}]}}),o.oi)},52032:function(e,t,i){i.a(e,(async function(e,a){try{i.d(t,{w:()=>u});i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814);var o=i(35729),n=(i(83442),i(92263)),s=i(15367),l=i(56332),r=i(13888),d=(i(9427),i(40249)),c=e([o,n,s,l,r]);[o,n,s,l,r]=c.then?(await c)():c;const h=new Set(["conditional","icon","image","service-button","state-badge","state-icon","state-label"]),u=e=>("action-button"===e.type&&(e={...e,type:"service-button"}),(0,d.Tw)("element",e,h));a()}catch(e){a(e)}}))},16485:function(e,t,i){i.a(e,(async function(e,t){try{i(92745);var a=i(61449),o=i(40574),n=i(30532),s=i(41674),l=i(49722),r=i(76632),d=i(7884),c=i(35185),h=i(60933),u=i(44180),p=i(49447);const e=async()=>{const e=(0,u.sS)(),t=[];(0,n.shouldPolyfill)()&&await Promise.all([i.e("80210"),i.e("74055")]).then(i.bind(i,98133)),(0,l.shouldPolyfill)()&&await Promise.all([i.e("83895"),i.e("75297"),i.e("80210"),i.e("60251")]).then(i.bind(i,59095)),(0,a.shouldPolyfill)(e)&&t.push(Promise.all([i.e("83895"),i.e("75297"),i.e("68250")]).then(i.bind(i,80561)).then((()=>(0,p.H)()))),(0,h.shouldPolyfill)()&&t.push(Promise.all([i.e("83895"),i.e("75297"),i.e("65578")]).then(i.bind(i,97995))),(0,o.shouldPolyfill)(e)&&t.push(Promise.all([i.e("83895"),i.e("75297"),i.e("59826")]).then(i.bind(i,31514))),(0,s.shouldPolyfill)(e)&&t.push(Promise.all([i.e("83895"),i.e("75297"),i.e("23649")]).then(i.bind(i,93840))),(0,r.shouldPolyfill)(e)&&t.push(Promise.all([i.e("83895"),i.e("75297"),i.e("42831")]).then(i.bind(i,29559))),(0,d.shouldPolyfill)(e)&&t.push(Promise.all([i.e("83895"),i.e("75297"),i.e("57377")]).then(i.bind(i,39030)).then((()=>i.e("61236").then(i.t.bind(i,4121,23))))),(0,c.shouldPolyfill)(e)&&t.push(Promise.all([i.e("83895"),i.e("75297"),i.e("13870")]).then(i.bind(i,74546))),0!==t.length&&await Promise.all(t).then((()=>(0,p.n)(e)))};await e(),t()}catch(e){t(e)}}),1)},28008:function(e,t,i){i.d(t,{$c:()=>l,Qx:()=>n,k1:()=>o,yu:()=>s});var a=i(57243);const o=a.iv`button.link{background:0 0;color:inherit;border:none;padding:0;font:inherit;text-align:left;text-decoration:underline;cursor:pointer;outline:0}`,n=a.iv`:host{font-family:var(--paper-font-body1_-_font-family);-webkit-font-smoothing:var(--paper-font-body1_-_-webkit-font-smoothing);font-size:var(--paper-font-body1_-_font-size);font-weight:var(--paper-font-body1_-_font-weight);line-height:var(--paper-font-body1_-_line-height)}app-header div[sticky]{height:48px}app-toolbar [main-title]{margin-left:20px;margin-inline-start:20px;margin-inline-end:initial}h1{font-family:var(--paper-font-headline_-_font-family);-webkit-font-smoothing:var(--paper-font-headline_-_-webkit-font-smoothing);white-space:var(--paper-font-headline_-_white-space);overflow:var(--paper-font-headline_-_overflow);text-overflow:var(--paper-font-headline_-_text-overflow);font-size:var(--paper-font-headline_-_font-size);font-weight:var(--paper-font-headline_-_font-weight);line-height:var(--paper-font-headline_-_line-height)}h2{font-family:var(--paper-font-title_-_font-family);-webkit-font-smoothing:var(--paper-font-title_-_-webkit-font-smoothing);white-space:var(--paper-font-title_-_white-space);overflow:var(--paper-font-title_-_overflow);text-overflow:var(--paper-font-title_-_text-overflow);font-size:var(--paper-font-title_-_font-size);font-weight:var(--paper-font-title_-_font-weight);line-height:var(--paper-font-title_-_line-height)}h3{font-family:var(--paper-font-subhead_-_font-family);-webkit-font-smoothing:var(--paper-font-subhead_-_-webkit-font-smoothing);white-space:var(--paper-font-subhead_-_white-space);overflow:var(--paper-font-subhead_-_overflow);text-overflow:var(--paper-font-subhead_-_text-overflow);font-size:var(--paper-font-subhead_-_font-size);font-weight:var(--paper-font-subhead_-_font-weight);line-height:var(--paper-font-subhead_-_line-height)}a{color:var(--primary-color)}.secondary{color:var(--secondary-text-color)}.error{color:var(--error-color)}.warning{color:var(--error-color)}ha-button.warning,mwc-button.warning{--mdc-theme-primary:var(--error-color)}${o} .card-actions a{text-decoration:none}.card-actions .warning{--mdc-theme-primary:var(--error-color)}.layout.horizontal,.layout.vertical{display:flex}.layout.inline{display:inline-flex}.layout.horizontal{flex-direction:row}.layout.vertical{flex-direction:column}.layout.wrap{flex-wrap:wrap}.layout.no-wrap{flex-wrap:nowrap}.layout.center,.layout.center-center{align-items:center}.layout.bottom{align-items:flex-end}.layout.center-center,.layout.center-justified{justify-content:center}.flex{flex:1;flex-basis:0.000000001px}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.layout.justified{justify-content:space-between}`,s=a.iv`ha-dialog{--mdc-dialog-min-width:400px;--mdc-dialog-max-width:600px;--mdc-dialog-max-width:min(600px, 95vw);--justify-action-buttons:space-between}ha-dialog .form{color:var(--primary-text-color)}a{color:var(--primary-color)}@media all and (max-width:450px),all and (max-height:500px){ha-dialog{--mdc-dialog-min-width:calc(
        100vw - env(safe-area-inset-right) - env(safe-area-inset-left)
      );--mdc-dialog-max-width:calc(
        100vw - env(safe-area-inset-right) - env(safe-area-inset-left)
      );--mdc-dialog-min-height:100%;--mdc-dialog-max-height:100%;--vertical-align-dialog:flex-end;--ha-dialog-border-radius:0}}ha-button.warning,mwc-button.warning{--mdc-theme-primary:var(--error-color)}.error{color:var(--error-color)}`,l=a.iv`.ha-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.ha-scrollbar::-webkit-scrollbar-thumb{-webkit-border-radius:4px;border-radius:4px;background:var(--scrollbar-thumb-color)}.ha-scrollbar{overflow-y:auto;scrollbar-color:var(--scrollbar-thumb-color) transparent;scrollbar-width:thin}`;a.iv`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`},11225:function(e,t,i){function a(e){return e.endsWith(".ui.nabu.casa")?"https://•••••••••••••••••.ui.nabu.casa":e.replace(/(?<=:\/\/)[\w-]+|(?<=\.)[\w-]+/g,(e=>"•".repeat(e.length)))}i.d(t,{t:()=>a})}};
//# sourceMappingURL=96540.c26080960c276b55.js.map