iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
9 lines • 13.8 kB
JavaScript
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[6509],{7998:e=>{"use strict";e.exports=JSON.parse('{"version":"5.6.55","parts":[{"file":"8f7750e029a6ef516f402ba2a18f770d535730f8"},{"start":"airp","file":"13eee1e899d282159a04ba352d1ed4feb53e5f28"},{"start":"application-","file":"5e09d9e60767da8826acfa939fc7a192c3017fdc"},{"start":"badge-account-horizontal-","file":"091c6419ea09577a2cd23f58a2d444da902922bd"},{"start":"beer","file":"c75f23577c68209caf2ee6d8abfa1e47f9fdd346"},{"start":"border-r","file":"4a163a7cb39874ec5e31fef5a16822d472ea9d75"},{"start":"camera-","file":"75c6554ce6c38218565310f31e330d29e610be14"},{"start":"cart-arrow-r","file":"526db7af6ed90ba5e29e520e8420886a387c6ec1"},{"start":"cir","file":"10f097705a1a3a9e15a4d5304588fcbf49e9cb1b"},{"start":"cog-o","file":"14893756d8a87eee5c25262d8d2cce84e343e9f7"},{"start":"cp","file":"43533c5a4e97f2dad8a4430e8fb2e998b77180e8"},{"start":"desktop-t","file":"d7593366adef7e12c6f7beb0125ae03250a623c1"},{"start":"earth-box-p","file":"897116495125bd02c7b5c74768fca0e4ef075556"},{"start":"eve","file":"25914e849cb9677609c2e17666c7dc8787276fec"},{"start":"file-download-","file":"393c2a9700198fd5d6ee360fec426dca07b824c1"},{"start":"flask-o","file":"21c916bdafa6c4bc802eb2f067d52eb43d46d63c"},{"start":"format-letter-e","file":"71adf4da7cf052ce2f72aafb39b5038640ae7eff"},{"start":"gh","file":"b52d69de085a5028ae417fc032b8fa962b929b2c"},{"start":"hand-wash-","file":"0fbcf56d8b33b97ba907a4aebeb8399bd200c71d"},{"start":"horizontal-rotate-co","file":"aaf1ddc91d8dc645b638d1cead1c3928be0d4ae2"},{"start":"ju","file":"5792fc856cff1ad97388d397c924b547dc5773ba"},{"start":"las","file":"8a4e57c53b91f036efd825ee3924ccb927394462"},{"start":"map-marker-m","file":"faf56ee66495fe62e00e421005abe5f362a15d5e"},{"start":"microsoft-xbox-controller-m","file":"cb9dda8c3ba589951ab20cae22899eee3f75aaa2"},{"start":"noo","file":"8d79d67bba34d4662998ebd3221a6f49f72d0cbd"},{"start":"pan-t","file":"5ff2e52aedaa0c398ec4a745219c00ac5b56c564"},{"start":"pig","file":"996e32533891ce2fcc2ed79a3fc3953057539e7c"},{"start":"qq","file":"8a9a74c567094a8e0c21288a4eaa28bdd315a3ac"},{"start":"roller-skate-","file":"855d84169183b3d513e65652ebd4619fbdacbfb0"},{"start":"set-c","file":"51836c70496c6d380859ef075c18363fac468891"},{"start":"skype-","file":"a64604d28b67e989f14df4cdd5fa33c18babb0e6"},{"start":"spotlight-","file":"fa89d8e056827e5e5a45002258155fdf636dba89"},{"start":"table-ro","file":"820c478bf9e136168cc68b98852a5ee1c6f57975"},{"start":"to","file":"d7a1decb8941bb6b39a53b22cf5d660c89acc059"},{"start":"upload-network-","file":"9bb9aae327973cf8230a9817e1e48eb6767d0601"},{"start":"water-well-","file":"b107c580b29fb39e4bfad9c85db944ac4d3297b4"},{"start":"wrap-","file":"0ec45795e55edbd7f9644bd3fa1943780d99a94d"}]}')},16509:(e,t,r)=>{"use strict";r(63207);var i=r(15652),a=(r(52039),r(95285)),n=r(99468),o=r(38346),s=r(47181);function c(){c=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 a=t.placement;if(t.kind===i&&("static"===a||"prototype"===a)){var n="static"===a?e:r;this.defineClassElement(n,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=[],a={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,a)}),this),e.forEach((function(e){if(!f(e))return r.push(e);var t=this.decorateElement(e,a);r.push(t.element),r.push.apply(r,t.extras),i.push.apply(i,t.finishers)}),this),!t)return{elements:r,finishers:i};var n=this.decorateConstructor(r,t);return i.push.apply(i,n.finishers),n.finishers=i,n},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=[],a=e.decorators,n=a.length-1;n>=0;n--){var o=t[e.placement];o.splice(o.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,a[n])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&i.push(c.finisher);var d=c.extras;if(d){for(var l=0;l<d.length;l++)this.addElementPlacement(d[l],t);r.push.apply(r,d)}}return{element:e,finishers:i,extras:r}},decorateConstructor:function(e,t){for(var r=[],i=t.length-1;i>=0;i--){var a=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,t[i])(a)||a);if(void 0!==n.finisher&&r.push(n.finisher),void 0!==n.elements){e=n.elements;for(var o=0;o<e.length-1;o++)for(var s=o+1;s<e.length;s++)if(e[o].key===e[s].key&&e[o].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[o].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&&Symbol.iterator in Object(e))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=u(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 a=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var n={kind:t,key:r,placement:i,descriptor:Object.assign({},a)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(a,"get","The property descriptor of a field descriptor"),this.disallowProperty(a,"set","The property descriptor of a field descriptor"),this.disallowProperty(a,"value","The property descriptor of a field descriptor"),n.initializer=e.initializer),n},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:p(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=p(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 d(e){var t,r=u(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 l(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function f(e){return e.decorators&&e.decorators.length}function h(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function p(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 u(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}const b={},v={};(0,n.Do)();const y=(0,o.D)((()=>(0,n.vj)(v)),2e3),w={};!function(e,t,r,i){var a=c();if(i)for(var n=0;n<i.length;n++)a=i[n](a);var o=t((function(e){a.initializeInstanceElements(e,s.elements)}),r),s=a.decorateClass(function(e){for(var t=[],r=function(e){return"method"===e.kind&&e.key===n.key&&e.placement===n.placement},i=0;i<e.length;i++){var a,n=e[i];if("method"===n.kind&&(a=t.find(r)))if(h(n.descriptor)||h(a.descriptor)){if(f(n)||f(a))throw new ReferenceError("Duplicated methods ("+n.key+") can't be decorated.");a.descriptor=n.descriptor}else{if(f(n)){if(f(a))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+n.key+").");a.decorators=n.decorators}l(n,a)}else t.push(n)}return t}(o.d.map(d)),e);a.initializeClassElements(o.F,s.elements),a.runClassFinishers(o.F,s.finishers)}([(0,i.Mo)("ha-icon")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,i.Cb)()],key:"icon",value:void 0},{kind:"field",decorators:[(0,i.sz)()],key:"_path",value:void 0},{kind:"field",decorators:[(0,i.sz)()],key:"_viewBox",value:void 0},{kind:"field",decorators:[(0,i.sz)()],key:"_legacy",value:()=>!1},{kind:"method",key:"updated",value:function(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(!n.hL.includes(e)){if(e in a.w){const t=a.w[e];return void(t&&this._setCustomPath(t(i)))}return void(this._legacy=!0)}if(this._legacy=!1,i in b){const t=b[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,s.B)(this,"write_log",{level:"warning",message:r})}if(i in w)return void(this._path=w[i]);try{r=await(0,n.q7)(i)}catch(d){r=void 0}if(r)return this._path=r,void(w[i]=r);const o=(0,n.g$)(i);if(o in v)return void this._setPath(v[o],i);const c=fetch(`/static/mdi/${o}.json`).then((e=>e.json()));v[o]=c,this._setPath(c,i),y()}},{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],w[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:()=>a});const i=window;"customIconsets"in i||(i.customIconsets={});const a=i.customIconsets},99468:(e,t,r)=>{"use strict";r.d(t,{hL:()=>o,q7:()=>c,g$:()=>d,vj:()=>l,Do:()=>f});var i=r(60942),a=r(58993);const n=new a.yh("hass-icon-db","mdi-icon-store"),o=["mdi","hass","hassio","hademo"];let s=[];const c=e=>new Promise(((t,r)=>{if(s.push([e,t,r]),s.length>1)return;const i=[];n._withIDBStore("readonly",(e=>{for(const[t,r]of s)i.push([r,e.get(t)]);s=[]})).then((()=>{for(const[e,t]of i)e(t.result)})).catch((()=>{for(const[,,e]of s)e();s=[]}))})),d=e=>{let t;for(const r of i.X.parts){if(void 0!==r.start&&e<r.start)break;t=r}return t.file},l=async e=>{const t=Object.keys(e),r=await Promise.all(Object.values(e));n._withIDBStore("readwrite",(i=>{r.forEach(((r,a)=>{Object.entries(r).forEach((([e,t])=>{i.put(t,e)})),delete e[t[a]]}))}))},f=()=>{(0,a.U2)("_version",n).then((e=>{e?e!==i.X.version&&(0,a.ZH)(n).then((()=>(0,a.t8)("_version",i.X.version,n))):(0,a.t8)("_version",i.X.version,n)}))}},60942:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});const i=r(7998)}}]);
//# sourceMappingURL=chunk.16d5035ed60ef35bf1e9.js.map