UNPKG

iobroker.lovelace

Version:

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

9 lines 14.7 kB
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[6509],{7998:e=>{"use strict";e.exports=JSON.parse('{"version":"5.9.55","parts":[{"file":"f05151618da8500f3658c973a9784b6d4ffe61a4"},{"start":"airp","file":"a261c64f503f023327e5c68e7a953ed8e596b249"},{"start":"apple-keyboard-o","file":"5d32df34f2298d8df5f98471f040939ddb5d45fe"},{"start":"badge-account-","file":"cc64e696fc8d7488b4cf5cb8f1a68e655cf6bad6"},{"start":"beehive-ou","file":"ade2c91f5ab5c891a514ace7331ca888b7fbf96f"},{"start":"book-plu","file":"36e5c1c6321464098a41d9b112d726944e30ebfd"},{"start":"bus-st","file":"1810ed57718799bc18b00124fb08067ec93ecd4e"},{"start":"car-ou","file":"5deb9ee70f7384f2062e07c97131fd839074b5e2"},{"start":"chat-r","file":"730eb11e3e6f68122a571d4f803636b0b6c77bde"},{"start":"clock-time-si","file":"2d962f89670cfec5151f407ab903afeae9f4b36a"},{"start":"compare-","file":"2f0508e2559942ffa8574823266de6d0e3b0b7f7"},{"start":"cp","file":"77de0bc28473c03f2d52f406a024b7e4c43a8e5a"},{"start":"database-mi","file":"8a18a2409298adade013a31cc5da9797edc88fbd"},{"start":"dog","file":"b90fe062763e4c02e2c79aea4395d1c6701ca2dc"},{"start":"emoticon-o","file":"0fb930ddef088ad67ad40699e800080bca30e756"},{"start":"fan-p","file":"4ed115f13a2b29bcc056f54ad35d3ee21d9b6dd0"},{"start":"fin","file":"629e22a28c2cf265b64e37a8ca3638313a940a24"},{"start":"folder-star-o","file":"dab108c927434bfd7a7b1cff6467f81a5adb5e00"},{"start":"gamepad-circle-l","file":"39c619e8d9afdb191db099ff16895dd40d824ffa"},{"start":"google-f","file":"e489c379931883b9be0764803634b7a0f3f5482c"},{"start":"hear","file":"68b36f90f56b28e9cb267e8bff89f3441eb2c94a"},{"start":"i","file":"514f7d85b19d99c4e1c601213c5efed13129ffca"},{"start":"ki","file":"7afc6805d1661392f0476a8a6037789831938260"},{"start":"lightbulb-o","file":"8fc7de02c33506977a1978935cff989532a59892"},{"start":"mat","file":"6f67dadc04c1be88d3841532f91f74aa3cc4ef64"},{"start":"molecule-","file":"3267ba17782fd0ed7e43c807bb1c5d31f92bc6d4"},{"start":"newspaper-variant-multiple-","file":"5cd0623f9dcd6207fca93d7da58561c6e529f05d"},{"start":"page-layout-sidebar-r","file":"5d9470586f13a4b6a50486b306daefba4c23a0bf"},{"start":"phone-m","file":"08176ea3c48754f7c2bca5372863e6fb4606dd39"},{"start":"progress-clos","file":"0f1c10e294b5287064777b304f0f28cfb039b97a"},{"start":"reply-c","file":"c69066195a9599426f27a9f6b001f3ec6c9ad93f"},{"start":"scoreboard-","file":"9adc5f3a5052636259b5d76b8691b0de46b8be2b"},{"start":"shield-sy","file":"29b77c307cd8e04668ab8889b09bd5166c27ba80"},{"start":"sort-bool-descending-","file":"8a128dcc13f1d05c145f3b3cad19e5ff642dd903"},{"start":"sto","file":"393d9eba35d39c663365ae253a73dc4a969b9c2b"},{"start":"target-v","file":"b812f590a4f3f81ac854bbb9f30c113c671564e2"},{"start":"trackpad-","file":"54d85de2b0fc2406d8a2b818249d26bab1b2d278"},{"start":"vi","file":"c995c1a129f3e76fa4b0bd524982f4b7d3830425"},{"start":"weather-partly-s","file":"8eee36215fbf062cb2c84cba0cbf6b5042670db0"},{"start":"wr","file":"95a328bcf0c7ae6191c21e5c7338191418d336bd"}]}')},21164:(e,t,r)=>{"use strict";r.d(t,{n:()=>i});const i=(e,t)=>{const r=new Promise(((t,r)=>{setTimeout((()=>{r(`Timed out in ${e} ms.`)}),e)}));return Promise.race([t,r])}},16509:(e,t,r)=>{"use strict";r(63207);var i=r(50424),n=r(55358),o=r(47181),a=r(38346),s=r(95285),c=r(99468);r(52039);function f(){f=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(i){t.forEach((function(t){var n=t.placement;if(t.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var i=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!p(e))return r.push(e);var t=this.decorateElement(e,n);r.push(t.element),r.push.apply(r,t.extras),i.push.apply(i,t.finishers)}),this),!t)return{elements:r,finishers:i};var o=this.decorateConstructor(r,t);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,t,r){var i=t[e.placement];if(!r&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,t){for(var r=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,n[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&i.push(c.finisher);var f=c.extras;if(f){for(var l=0;l<f.length;l++)this.addElementPlacement(f[l],t);r.push.apply(r,f)}}return{element:e,finishers:i,extras:r}},decorateConstructor:function(e,t){for(var r=[],i=t.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[i])(n)||n);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:r}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){var t;if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this)},toElementDescriptor:function(e){var t=String(e.kind);if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var r=b(e.key),i=String(e.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:r,placement:i,descriptor:Object.assign({},n)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:h(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=String(e.kind);if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var r=h(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:r}},runClassFinishers:function(e,t){for(var r=0;r<t.length;r++){var i=(0,t[r])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,t,r){if(void 0!==e[t])throw new TypeError(r+" can't have a ."+t+" property.")}};return e}function l(e){var t,r=b(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:r,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function d(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function p(e){return e.decorators&&e.decorators.length}function u(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function h(e,t){var r=e[t];if(void 0!==r&&"function"!=typeof r)throw new TypeError("Expected '"+t+"' to be a function");return r}function b(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function v(e,t,r){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(i){var n=Object.getOwnPropertyDescriptor(i,t);return n.get?n.get.call(r):n.value}})(e,t,r||e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}const w={},g={};(0,c.Do)();const k=(0,a.D)((()=>(0,c.vj)(g)),2e3),E={};!function(e,t,r,i){var n=f();if(i)for(var o=0;o<i.length;o++)n=i[o](n);var a=t((function(e){n.initializeInstanceElements(e,s.elements)}),r),s=n.decorateClass(function(e){for(var t=[],r=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=t.find(r)))if(u(o.descriptor)||u(n.descriptor)){if(p(o)||p(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(p(o)){if(p(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}d(o,n)}else t.push(o)}return t}(a.d.map(l)),e);n.initializeClassElements(a.F,s.elements),n.runClassFinishers(a.F,s.finishers)}([(0,n.Mo)("ha-icon")],(function(e,t){class r extends t{constructor(...t){super(...t),e(this)}}return{F:r,d:[{kind:"field",decorators:[(0,n.Cb)()],key:"icon",value:void 0},{kind:"field",decorators:[(0,n.SB)()],key:"_path",value:void 0},{kind:"field",decorators:[(0,n.SB)()],key:"_viewBox",value:void 0},{kind:"field",decorators:[(0,n.SB)()],key:"_legacy",value:()=>!1},{kind:"method",key:"willUpdate",value:function(e){v(y(r.prototype),"willUpdate",this).call(this,e),e.has("icon")&&(this._path=void 0,this._viewBox=void 0,this._loadIcon())}},{kind:"method",key:"render",value:function(){return this.icon?this._legacy?i.dy`<iron-icon .icon=${this.icon}></iron-icon>`:i.dy`<ha-svg-icon .path=${this._path} .viewBox=${this._viewBox} ></ha-svg-icon>`:i.dy``}},{kind:"method",key:"_loadIcon",value:async function(){if(!this.icon)return;const[e,t]=this.icon.split(":",2);let r,i=t;if(!e||!i)return;if(!c.hL.includes(e)){if(e in s.w){const t=s.w[e];return void(t&&this._setCustomPath(t(i)))}return void(this._legacy=!0)}if(this._legacy=!1,i in w){const t=w[i];let r;t.newName?(r=`Icon ${e}:${i} was renamed to ${e}:${t.newName}, please change your config, it will be removed in version ${t.removeIn}.`,i=t.newName):r=`Icon ${e}:${i} was removed from MDI, please replace this icon with an other icon in your config, it will be removed in version ${t.removeIn}.`,console.warn(r),(0,o.B)(this,"write_log",{level:"warning",message:r})}if(i in E)return void(this._path=E[i]);try{r=await(0,c.q7)(i)}catch(e){r=void 0}if(r)return this._path=r,void(E[i]=r);const n=(0,c.g$)(i);if(n in g)return void this._setPath(g[n],i);const a=fetch(`/static/mdi/${n}.json`).then((e=>e.json()));g[n]=a,this._setPath(a,i),k()}},{kind:"method",key:"_setCustomPath",value:async function(e){const t=await e;this._path=t.path,this._viewBox=t.viewBox}},{kind:"method",key:"_setPath",value:async function(e,t){const r=await e;this._path=r[t],E[t]=r[t]}},{kind:"get",static:!0,key:"styles",value:function(){return i.iv` :host { fill: currentcolor; } `}}]}}),i.oi)},95285:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});const i=window;"customIconsets"in i||(i.customIconsets={});const n=i.customIconsets},99468:(e,t,r)=>{"use strict";r.d(t,{hL:()=>s,q7:()=>f,g$:()=>l,vj:()=>d,Do:()=>p});var i=r(98626),n=r(21164),o=r(60942);const a=(0,i.MT)("hass-icon-db","mdi-icon-store"),s=["mdi","hass","hassio","hademo"];let c=[];const f=e=>new Promise(((t,r)=>{c.push([e,t,r]),c.length>1||(0,n.n)(1e3,a("readonly",(e=>{for(const[t,r,n]of c)(0,i.RV)(e.get(t)).then((e=>r(e))).catch((e=>n(e)));c=[]}))).catch((e=>{for(const[,,t]of c)t(e);c=[]}))})),l=e=>{let t;for(const r of o.X.parts){if(void 0!==r.start&&e<r.start)break;t=r}return t.file},d=async e=>{const t=Object.keys(e),r=await Promise.all(Object.values(e));a("readwrite",(i=>{r.forEach(((r,n)=>{Object.entries(r).forEach((([e,t])=>{i.put(t,e)})),delete e[t[n]]}))}))},p=async()=>{const e=await(0,i.U2)("_version",a);e?e!==o.X.version&&(await(0,i.ZH)(a),(0,i.t8)("_version",o.X.version,a)):(0,i.t8)("_version",o.X.version,a)}},60942:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});const i=r(7998)}}]); //# sourceMappingURL=chunk.db58eb5f7b310487cf25.js.map