iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 3.48 kB
JavaScript
export const __webpack_ids__=["12864"];export const __webpack_modules__={6736:function(e,s,t){t.d(s,{f:()=>n});var i=t(44249),o=t(72621),r=(t(9359),t(52924),t(15093));const n=e=>(0,i.Z)(null,(function(e,s){class t extends s{constructor(...s){super(...s),e(this)}}return{F:t,d:[{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",key:"hassSubscribeRequiredHostProps",value:void 0},{kind:"field",key:"__unsubs",value:void 0},{kind:"method",key:"connectedCallback",value:function(){(0,o.Z)(t,"connectedCallback",this,3)([]),this._checkSubscribed()}},{kind:"method",key:"disconnectedCallback",value:function(){if((0,o.Z)(t,"disconnectedCallback",this,3)([]),this.__unsubs){for(;this.__unsubs.length;){const e=this.__unsubs.pop();e instanceof Promise?e.then((e=>e())):e()}this.__unsubs=void 0}}},{kind:"method",key:"updated",value:function(e){if((0,o.Z)(t,"updated",this,3)([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()}},{kind:"method",key:"hassSubscribe",value:function(){return[]}},{kind:"method",key:"_checkSubscribed",value:function(){void 0===this.__unsubs&&this.isConnected&&void 0!==this.hass&&!this.hassSubscribeRequiredHostProps?.some((e=>void 0===this[e]))&&(this.__unsubs=this.hassSubscribe())}}]}}),e)},52230:function(e,s,t){t.r(s),t.d(s,{profileSections:()=>d});var i=t(44249),o=t(72621),r=t(15093),n=t(24312),a=t(6736);const d=[{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"},{path:"/profile/security",translationKey:"ui.panel.profile.tabs.security",iconPath:"M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z"}];(0,i.Z)([(0,r.Mo)("ha-panel-profile")],(function(e,s){class i extends s{constructor(...s){super(...s),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"field",key:"routerOptions",value:()=>({defaultPage:"general",routes:{general:{tag:"ha-profile-section-general",load:()=>Promise.all([t.e("46379"),t.e("66031"),t.e("72206"),t.e("91552"),t.e("25618"),t.e("78456"),t.e("41258"),t.e("56898"),t.e("35671"),t.e("42950"),t.e("83895"),t.e("7010"),t.e("39291"),t.e("95080"),t.e("10355"),t.e("77759")]).then(t.bind(t,28585))},security:{tag:"ha-profile-section-security",load:()=>Promise.all([t.e("46379"),t.e("66031"),t.e("72206"),t.e("91552"),t.e("25618"),t.e("78456"),t.e("56898"),t.e("42950"),t.e("19854"),t.e("10355"),t.e("7698")]).then(t.bind(t,6393))}}})},{kind:"method",key:"updatePageEl",value:function(e){e.route=this.routeTail,e.hass=this.hass,e.narrow=this.narrow}},{kind:"method",key:"firstUpdated",value:function(e){(0,o.Z)(i,"firstUpdated",this,3)([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)")}}]}}),(0,a.f)(n.n))}};
//# sourceMappingURL=12864.0139a1d24e2482aa.js.map