UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

2 lines 4.86 kB
export const __webpack_ids__=["49775"];export const __webpack_modules__={75101:function(e,n,i){i.d(n,{$H:()=>t,DJ:()=>s,LZ:()=>a,Nn:()=>g,Ny:()=>f,Pk:()=>u,Q4:()=>r,RQ:()=>l,SO:()=>c,T0:()=>y,aR:()=>o,iJ:()=>_,pB:()=>d});i(9359),i(56475),i(1331);const t=(e,n)=>e.callWS({type:"config_entries/subentries/list",entry_id:n}),o=(e,n,i)=>e.callWS({type:"config_entries/subentries/delete",entry_id:n,subentry_id:i}),a=["migration_error","setup_error","setup_retry"],r=["not_loaded","loaded","setup_error","setup_retry"],s=(e,n,i)=>{const t={type:"config_entries/subscribe"};return i&&i.type&&(t.type_filter=i.type),e.connection.subscribeMessage((e=>n(e)),t)},d=(e,n)=>{const i={};return n&&(n.type&&(i.type_filter=n.type),n.domain&&(i.domain=n.domain)),e.callWS({type:"config_entries/get",...i})},l=(e,n)=>e.callWS({type:"config_entries/get_single",entry_id:n}),c=(e,n,i)=>e.callWS({type:"config_entries/update",entry_id:n,...i}),_=(e,n)=>e.callApi("DELETE",`config/config_entries/entry/${n}`),g=(e,n)=>e.callApi("POST",`config/config_entries/entry/${n}/reload`),f=(e,n)=>e.callWS({type:"config_entries/disable",entry_id:n,disabled_by:"user"}),y=(e,n)=>e.callWS({type:"config_entries/disable",entry_id:n,disabled_by:null}),u=(e,n)=>{if(!n)return e;const i=e.find((e=>e.entry_id===n));if(!i)return e;return[i,...e.filter((e=>e.entry_id!==n))]}},33349:function(e,n,i){i.r(n),i.d(n,{configTabs:()=>d});var t=i(44249),o=(i(75656),i(50100),i(18084),i(15093)),a=i(24312),r=i(83523),s=i(75101);const d=[{translationKey:"ui.panel.config.zwave_js.navigation.network",path:"/config/zwave_js/dashboard",iconPath:"M13,19H14A1,1 0 0,1 15,20H22V22H15A1,1 0 0,1 14,23H10A1,1 0 0,1 9,22H2V20H9A1,1 0 0,1 10,19H11V17H4A1,1 0 0,1 3,16V12A1,1 0 0,1 4,11H20A1,1 0 0,1 21,12V16A1,1 0 0,1 20,17H13V19M4,3H20A1,1 0 0,1 21,4V8A1,1 0 0,1 20,9H4A1,1 0 0,1 3,8V4A1,1 0 0,1 4,3M9,7H10V5H9V7M9,15H10V13H9V15M5,5V7H7V5H5M5,13V15H7V13H5Z"},{translationKey:"ui.panel.config.zwave_js.navigation.logs",path:"/config/zwave_js/logs",iconPath:"M18 7C16.9 7 16 7.9 16 9V15C16 16.1 16.9 17 18 17H20C21.1 17 22 16.1 22 15V11H20V15H18V9H22V7H18M2 7V17H8V15H4V7H2M11 7C9.9 7 9 7.9 9 9V15C9 16.1 9.9 17 11 17H13C14.1 17 15 16.1 15 15V9C15 7.9 14.1 7 13 7H11M11 9H13V15H11V9Z"}];(0,t.Z)([(0,o.Mo)("zwave_js-config-router")],(function(e,n){return{F:class extends n{constructor(...n){super(...n),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:"is-wide",type:Boolean})],key:"isWide",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"field",key:"_configEntry",value:()=>new URLSearchParams(window.location.search).get("config_entry")},{kind:"field",key:"routerOptions",value(){return{defaultPage:"dashboard",showLoading:!0,routes:{dashboard:{tag:"zwave_js-config-dashboard",load:()=>Promise.all([i.e("72206"),i.e("91552"),i.e("25618"),i.e("42950"),i.e("83895"),i.e("41103"),i.e("15014"),i.e("10355"),i.e("81083")]).then(i.bind(i,35843))},add:{tag:"zwave_js-add-node",load:()=>i.e("75914").then(i.bind(i,80184))},node_config:{tag:"zwave_js-node-config",load:()=>Promise.all([i.e("46379"),i.e("66031"),i.e("72206"),i.e("91552"),i.e("25618"),i.e("78456"),i.e("41258"),i.e("56898"),i.e("35671"),i.e("42950"),i.e("57934"),i.e("26304"),i.e("65570"),i.e("10355"),i.e("18973")]).then(i.bind(i,96919))},node_installer:{tag:"zwave_js-node-installer",load:()=>Promise.all([i.e("46379"),i.e("66031"),i.e("72206"),i.e("91552"),i.e("25618"),i.e("78456"),i.e("41258"),i.e("56898"),i.e("35671"),i.e("57934"),i.e("87579"),i.e("60635")]).then(i.bind(i,2547))},logs:{tag:"zwave_js-logs",load:()=>Promise.all([i.e("66031"),i.e("91552"),i.e("25618"),i.e("78456"),i.e("41258"),i.e("56898"),i.e("35671"),i.e("42950"),i.e("59969"),i.e("10355"),i.e("19520")]).then(i.bind(i,10376))},provisioned:{tag:"zwave_js-provisioned",load:()=>Promise.all([i.e("46379"),i.e("66031"),i.e("97983"),i.e("25618"),i.e("42950"),i.e("29570"),i.e("65505"),i.e("5080"),i.e("50408"),i.e("81465"),i.e("27024"),i.e("77756"),i.e("6900"),i.e("10355"),i.e("58529"),i.e("14560"),i.e("81441"),i.e("30340")]).then(i.bind(i,71782))}},initialLoad:()=>this._fetchConfigEntries()}}},{kind:"method",key:"updatePageEl",value:function(e){e.route=this.routeTail,e.hass=this.hass,e.isWide=this.isWide,e.narrow=this.narrow,e.configEntryId=this._configEntry;const n=new URLSearchParams(window.location.search);this._configEntry&&!n.has("config_entry")&&(n.append("config_entry",this._configEntry),(0,r.c)(`${this.routeTail.prefix}${this.routeTail.path}?${n.toString()}`,{replace:!0}))}},{kind:"method",key:"_fetchConfigEntries",value:async function(){if(this._configEntry)return;const e=await(0,s.pB)(this.hass,{domain:"zwave_js"});e.length&&(this._configEntry=e[0].entry_id)}}]}}),a.n)}}; //# sourceMappingURL=49775.4858c35b149f1ed6.js.map