iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 2.47 kB
JavaScript
export const __rspack_esm_id=33306;export const __rspack_esm_ids=[33306];export const __webpack_modules__={54706(e,s,t){t.d(s,{E:()=>i});t(74423),t(18111),t(13579);var r=t(62826),o=t(22441);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(){void 0===this.__unsubs&&this.isConnected&&void 0!==this.hass&&!this.hassSubscribeRequiredHostProps?.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(e,s,t){t.r(s),t.d(s,{profileSections:()=>c});var r=t(62826),o=t(22441),i=t(324),a=t(54706);const c=[{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 n 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(4801),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(66716),t.e(19990),t.e(54937),t.e(26092),t.e(19112),t.e(30002),t.e(89747),t.e(52487),t.e(63452),t.e(99100)]).then(t.bind(t,39517))},security:{tag:"ha-profile-section-security",load:()=>Promise.all([t.e(4801),t.e(39763),t.e(32450),t.e(46095),t.e(34995),t.e(29487),t.e(51662),t.e(54204),t.e(39352)]).then(t.bind(t,77867))}}}}}(0,r.Cg)([(0,o.MZ)({attribute:!1})],n.prototype,"hass",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean})],n.prototype,"narrow",void 0),n=(0,r.Cg)([(0,o.EM)("ha-panel-profile")],n)}};