iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 2.6 kB
JavaScript
;(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[33306],{54706:function(e,s,t){t.d(s,{E:function(){return i}});t(74423),t(18111),t(13579),t(3362),t(62953);var r=t(40445),o=t(67576);const i=e=>{class s extends e{connectedCallback(){super.connectedCallback(),this._checkSubscribed()}disconnectedCallback(){if(super.disconnectedCallback(),this.__unsubs){for(;this.__unsubs.length;){const e=this.__unsubs.pop();e instanceof Promise?e.then(e=>e()):e()}this.__unsubs=void 0}}updated(e){if(super.updated(e),e.has("hass"))this._checkSubscribed();else if(this.hassSubscribeRequiredHostProps)for(const s of e.keys())if(this.hassSubscribeRequiredHostProps.includes(s))return void this._checkSubscribed()}hassSubscribe(){return[]}_checkSubscribed(){var e;void 0!==this.__unsubs||!this.isConnected||void 0===this.hass||null!==(e=this.hassSubscribeRequiredHostProps)&&void 0!==e&&e.some(e=>void 0===this[e])||(this.__unsubs=this.hassSubscribe())}}return(0,r.Cg)([(0,o.MZ)({attribute:!1})],s.prototype,"hass",void 0),s}},62337:function(e,s,t){t.r(s),t.d(s,{profileSections:function(){return n}});t(3362),t(62953);var r=t(40445),o=t(67576),i=t(324),a=t(54706);const n=[{path:"/profile/general",translationKey:"ui.panel.profile.tabs.general",iconPath:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"}];class c extends((0,a.E)(i.a)){updatePageEl(e){e.route=this.routeTail,e.hass=this.hass,e.narrow=this.narrow}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--app-header-background-color","var(--sidebar-background-color)"),this.style.setProperty("--app-header-text-color","var(--sidebar-text-color)"),this.style.setProperty("--app-header-border-bottom","1px solid var(--divider-color)")}constructor(...e){super(...e),this.narrow=!1,this.routerOptions={defaultPage:"general",routes:{general:{tag:"ha-profile-section-general",load:()=>Promise.all([t.e(72850),t.e(39763),t.e(32450),t.e(46095),t.e(7305),t.e(92769),t.e(34995),t.e(3283),t.e(83113),t.e(81034),t.e(43459),t.e(58125),t.e(62574),t.e(26092),t.e(39005),t.e(19112),t.e(30002),t.e(89747),t.e(98129),t.e(4091),t.e(59465)]).then(t.bind(t,39517))},security:{tag:"ha-profile-section-security",load:()=>Promise.all([t.e(72850),t.e(39763),t.e(32450),t.e(46095),t.e(34995),t.e(29487),t.e(51662),t.e(62574),t.e(70744)]).then(t.bind(t,77867))}}}}}(0,r.Cg)([(0,o.MZ)({attribute:!1})],c.prototype,"hass",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean})],c.prototype,"narrow",void 0),c=(0,r.Cg)([(0,o.EM)("ha-panel-profile")],c)}}]);