/*! For license information please see 31745.110bd94e9ea0b9db.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["31745"],{9270:function(t,e,o){o.d(e,{T:function(){return r}});o(16280);function r(t,e,o){if(void 0!==e)return function(t,e,o){const r=t.constructor;if(!o){const t=`__${e}`;if(!(o=r.getPropertyDescriptor(e,t)))throw new Error("@ariaProperty must be used after a @property decorator")}const n=o;let a="";if(!n.set)throw new Error(`@ariaProperty requires a setter for ${e}`);if(t.dispatchWizEvent)return o;const i={configurable:!0,enumerable:!0,set(t){if(""===a){const t=r.getPropertyOptions(e);a="string"==typeof t.attribute?t.attribute:e}this.hasAttribute(a)&&this.removeAttribute(a),n.set.call(this,t)}};return n.get&&(i.get=function(){return n.get.call(this)}),i}(t,e,o);throw new Error("@ariaProperty only supports TypeScript Decorators")}},90409:function(t,e,o){o.d(e,{A:function(){return r}});o(18111),o(61701);function r(t){const e=t.split(":").map(Number);return 3600*e[0]+60*e[1]+e[2]}},21018:function(t,e,o){o.a(t,async function(t,r){try{o.d(e,{YH:function(){return h},hZ:function(){return l},ww:function(){return u}});o(3362),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(62953);var n=o(67066),a=o(34128),i=t([n]);n=(i.then?(await i)():i)[0];const s=new Set(["error","entity"]),c={"entity-filter":()=>o.e("4994").then(o.bind(o,95417)),"state-label":()=>o.e("52396").then(o.bind(o,22087)),"power-total":()=>Promise.all([o.e("92610"),o.e("77183"),o.e("90529")]).then(o.bind(o,12150)),"gas-total":()=>Promise.all([o.e("92610"),o.e("77183"),o.e("55737")]).then(o.bind(o,70346)),"water-total":()=>Promise.all([o.e("92610"),o.e("77183"),o.e("40203")]).then(o.bind(o,61844))},l=t=>(0,a.Vd)("badge",t,s,c,void 0,"entity"),h=t=>(0,a.Ue)("badge",t,s,c,void 0,"entity"),u=t=>(0,a.gh)(t,"badge",s,c);r()}catch(s){r(s)}})},28019:function(t,e,o){o.a(t,async function(t,r){try{o.r(e);o(3362),o(62953);var n=o(40445),a=o(96196),i=o(77845),s=o(99774),c=o(29994),l=t([c]);c=(l.then?(await l)():l)[0];let h,u=t=>t;class p extends a.WF{willUpdate(t){if(this.hasUpdated){if(t.has("hass")){const e=t.get("hass");e&&e.localize!==this.hass.localize&&this._setLovelace()}}else this._setup()}async _setup(){await this.hass.loadFragmentTranslation("lovelace"),this._setLovelace()}render(){return this._lovelace?(0,a.qy)(h||(h=u` <hui-root .hass="${0}" .narrow="${0}" .lovelace="${0}" .route="${0}" .panel="${0}" no-edit></hui-root> `),this.hass,this.narrow,this._lovelace,this.route,this.panel):a.s6}_setLovelace(){const t={views:[{type:"panel",cards:[{type:"empty-state",content_only:!0,icon:"mdi:lock",title:this.hass.localize("ui.panel.notfound.no_access_title"),content:this.hass.localize("ui.panel.notfound.no_access_content"),buttons:[{text:this.hass.localize("ui.panel.notfound.no_access_go_to_profile"),tap_action:{action:"navigate",navigation_path:"/profile/general"}}]}]}]};this._lovelace={config:t,rawConfig:t,editMode:!1,urlPath:s.Oi,mode:"generated",locale:this.hass.locale,enableFullEditMode:()=>{},saveConfig:async()=>{},deleteConfig:async()=>{},setEditMode:()=>{},showToast:()=>{}}}constructor(...t){super(...t),this.narrow=!1}}(0,n.Cg)([(0,i.MZ)({attribute:!1})],p.prototype,"hass",void 0),(0,n.Cg)([(0,i.MZ)({type:Boolean})],p.prototype,"narrow",void 0),(0,n.Cg)([(0,i.MZ)({attribute:!1})],p.prototype,"route",void 0),(0,n.Cg)([(0,i.MZ)({attribute:!1})],p.prototype,"panel",void 0),(0,n.Cg)([(0,i.wk)()],p.prototype,"_lovelace",void 0),p=(0,n.Cg)([(0,i.EM)("ha-panel-notfound")],p),r()}catch(h){r(h)}})},71786:function(t,e,o){o(62953);var r=o(77845),n=o(9395),a=o(12754);let i;var s=(0,o(96196).AH)(i||(i=(t=>t)`:host{--color:var(--wa-color-surface-border);--width:var(--wa-border-width-s);--spacing:var(--wa-space-m)}:host(:not([orientation=vertical])){display:block;border-top:solid var(--width) var(--color);margin:var(--spacing) 0}:host([orientation=vertical]){display:inline-block;height:100%;border-inline-start:solid var(--width) var(--color);margin:0 var(--spacing);min-block-size:1lh}`)),c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h=(t,e,o,r)=>{for(var n,a=r>1?void 0:r?l(e,o):e,i=t.length-1;i>=0;i--)(n=t[i])&&(a=(r?n(e,o,a):n(a))||a);return r&&a&&c(e,o,a),a};let u=class extends a.A{connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.orientation)}constructor(){super(...arguments),this.orientation="horizontal"}};u.css=s,h([(0,r.MZ)({reflect:!0})],u.prototype,"orientation",2),h([(0,n.w)("orientation")],u.prototype,"handleVerticalChange",1),u=h([(0,r.EM)("wa-divider")],u)}}]);
//# sourceMappingURL=31745.110bd94e9ea0b9db.js.map