"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["68624"],{28019:function(t,e,o){o.a(t,async function(t,a){try{o.r(e);o(3362),o(62953);var s=o(40445),n=o(96196),i=o(77845),l=o(99774),c=o(29994),h=t([c]);c=(h.then?(await h)():h)[0];let r,p=t=>t;class d extends n.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,n.qy)(r||(r=p` <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):n.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:l.Oi,mode:"generated",locale:this.hass.locale,enableFullEditMode:()=>{},saveConfig:async()=>{},deleteConfig:async()=>{},setEditMode:()=>{},showToast:()=>{}}}constructor(...t){super(...t),this.narrow=!1}}(0,s.Cg)([(0,i.MZ)({attribute:!1})],d.prototype,"hass",void 0),(0,s.Cg)([(0,i.MZ)({type:Boolean})],d.prototype,"narrow",void 0),(0,s.Cg)([(0,i.MZ)({attribute:!1})],d.prototype,"route",void 0),(0,s.Cg)([(0,i.MZ)({attribute:!1})],d.prototype,"panel",void 0),(0,s.Cg)([(0,i.wk)()],d.prototype,"_lovelace",void 0),d=(0,s.Cg)([(0,i.EM)("ha-panel-notfound")],d),a()}catch(r){a(r)}})}}]);
//# sourceMappingURL=68624.6fb2c19d4cdc80a3.js.map