UNPKG

iobroker.lovelace

Version:

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

3 lines 10.5 kB
/*! For license information please see chunk.8455fed20710aa633419.js.LICENSE.txt */ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[2815],{49075:function(n,t,e){"use strict";e.d(t,{S:function(){return a},B:function(){return u}});e(65233);var r=e(51644),o=e(26110),i=e(84938),a={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(n){n&&this.ensureRipple(),this.hasRipple()&&(this._ripple.holdDown=n)},_createRipple:function(){var n=i.o._createRipple();return n.id="ink",n.setAttribute("center",""),n.classList.add("circle"),n}},u=[r.P,o.a,i.o,a]},84938:function(n,t,e){"use strict";e.d(t,{o:function(){return i}});e(65233),e(60748);var r=e(51644),o=e(87156),i={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},_downHandler:function(n){r.$._downHandler.call(this,n),this.pressed&&this.ensureRipple(n)},ensureRipple:function(n){if(!this.hasRipple()){this._ripple=this._createRipple(),this._ripple.noink=this.noink;var t=this._rippleContainer||this.root;if(t&&(0,o.vz)(t).appendChild(this._ripple),n){var e=(0,o.vz)(this._rippleContainer||this),r=(0,o.vz)(n).rootTarget;e.deepContains(r)&&this._ripple.uiDownAction(n)}}},getRipple:function(){return this.ensureRipple(),this._ripple},hasRipple:function(){return Boolean(this._ripple)},_createRipple:function(){return document.createElement("paper-ripple")},_noinkChanged:function(n){this.hasRipple()&&(this._ripple.noink=n)}}},25782:function(n,t,e){"use strict";e(65233),e(65660),e(47686),e(97968);var r,o,i,a=e(9672),u=e(50856),c=e(33760);(0,a.k)({_template:(0,u.d)(r||(o=['\n <style include="paper-item-shared-styles"></style>\n <style>\n :host {\n @apply --layout-horizontal;\n @apply --layout-center;\n @apply --paper-font-subhead;\n\n @apply --paper-item;\n @apply --paper-icon-item;\n }\n\n .content-icon {\n @apply --layout-horizontal;\n @apply --layout-center;\n\n width: var(--paper-item-icon-width, 56px);\n @apply --paper-item-icon;\n }\n </style>\n\n <div id="contentIcon" class="content-icon">\n <slot name="item-icon"></slot>\n </div>\n <slot></slot>\n'],i||(i=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}})))),is:"paper-icon-item",behaviors:[c.U]})},91107:function(n,t,e){"use strict";function r(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=n&&("undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"]);if(null==e)return;var r,o,i=[],a=!0,u=!1;try{for(e=e.call(n);!(a=(r=e.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}(n,t)||s(n,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.")}()}function o(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function i(n,t,e){return(i=a()?Reflect.construct:function(n,t,e){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(n,r));return e&&u(o,e.prototype),o}).apply(null,arguments)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}function u(n,t){return(u=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function c(n){return function(n){if(Array.isArray(n))return l(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||s(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(n,t){if(n){if("string"==typeof n)return l(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(n,t):void 0}}function l(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function f(n){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}e.d(t,{Ud:function(){return w}});var p=Symbol("Comlink.proxy"),d=Symbol("Comlink.endpoint"),y=Symbol("Comlink.releaseProxy"),h=Symbol("Comlink.thrown"),v=function(n){return"object"===f(n)&&null!==n||"function"==typeof n},m=new Map([["proxy",{canHandle:function(n){return v(n)&&n[p]},serialize:function(n){var t=new MessageChannel,e=t.port1,r=t.port2;return b(n,e),[r,[r]]},deserialize:function(n){return n.start(),w(n)}}],["throw",{canHandle:function(n){return v(n)&&h in n},serialize:function(n){var t=n.value;return[t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[]]},deserialize:function(n){if(n.isError)throw Object.assign(new Error(n.value.message),n.value);throw n.value}}]]);function b(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:self;t.addEventListener("message",(function e(a){if(a&&a.data){var u,s=Object.assign({path:[]},a.data),l=s.id,f=s.type,p=s.path,d=(a.data.argumentList||[]).map(j);try{var y=p.slice(0,-1).reduce((function(n,t){return n[t]}),n),v=p.reduce((function(n,t){return n[t]}),n);switch(f){case"GET":u=v;break;case"SET":y[p.slice(-1)[0]]=j(a.data.value),u=!0;break;case"APPLY":u=v.apply(y,d);break;case"CONSTRUCT":var m;u=A(i(v,c(d)));break;case"ENDPOINT":var w=new MessageChannel,S=w.port1,E=w.port2;b(n,E),u=k(S,[S]);break;case"RELEASE":u=void 0;break;default:return}}catch(m){u=o({value:m},h,0)}Promise.resolve(u).catch((function(n){return o({value:n},h,0)})).then((function(n){var o=r(C(n),2),i=o[0],a=o[1];t.postMessage(Object.assign(Object.assign({},i),{id:l}),a),"RELEASE"===f&&(t.removeEventListener("message",e),g(t))}))}})),t.start&&t.start()}function g(n){(function(n){return"MessagePort"===n.constructor.name})(n)&&n.close()}function w(n,t){return E(n,[],t)}function S(n){if(n)throw new Error("Proxy has been released and is not useable")}function E(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=!1,i=new Proxy(e,{get:function(e,r){if(S(o),r===y)return function(){return O(n,{type:"RELEASE",path:t.map((function(n){return n.toString()}))}).then((function(){g(n),o=!0}))};if("then"===r){if(0===t.length)return{then:function(){return i}};var a=O(n,{type:"GET",path:t.map((function(n){return n.toString()}))}).then(j);return a.then.bind(a)}return E(n,[].concat(c(t),[r]))},set:function(e,i,a){S(o);var u=r(C(a),2),s=u[0],l=u[1];return O(n,{type:"SET",path:[].concat(c(t),[i]).map((function(n){return n.toString()})),value:s},l).then(j)},apply:function(e,i,a){S(o);var u=t[t.length-1];if(u===d)return O(n,{type:"ENDPOINT"}).then(j);if("bind"===u)return E(n,t.slice(0,-1));var c=r(_(a),2),s=c[0],l=c[1];return O(n,{type:"APPLY",path:t.map((function(n){return n.toString()})),argumentList:s},l).then(j)},construct:function(e,i){S(o);var a=r(_(i),2),u=a[0],c=a[1];return O(n,{type:"CONSTRUCT",path:t.map((function(n){return n.toString()})),argumentList:u},c).then(j)}});return i}function _(n){var t,e=n.map(C);return[e.map((function(n){return n[0]})),(t=e.map((function(n){return n[1]})),Array.prototype.concat.apply([],t))]}var R=new WeakMap;function k(n,t){return R.set(n,t),n}function A(n){return Object.assign(n,o({},p,!0))}function C(n){var t,e=function(n,t){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=s(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return a=n.done,n},e:function(n){u=!0,i=n},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}(m);try{for(e.s();!(t=e.n()).done;){var o=r(t.value,2),i=o[0],a=o[1];if(a.canHandle(n)){var u=r(a.serialize(n),2);return[{type:"HANDLER",name:i,value:u[0]},u[1]]}}}catch(c){e.e(c)}finally{e.f()}return[{type:"RAW",value:n},R.get(n)||[]]}function j(n){switch(n.type){case"HANDLER":return m.get(n.name).deserialize(n.value);case"RAW":return n.value}}function O(n,t,e){return new Promise((function(r){var o=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");n.addEventListener("message",(function t(e){e.data&&e.data.id&&e.data.id===o&&(n.removeEventListener("message",t),r(e.data))})),n.start&&n.start(),n.postMessage(Object.assign({id:o},t),e)}))}},98626:function(n,t,e){"use strict";function r(n){return new Promise((function(t,e){n.oncomplete=n.onsuccess=function(){return t(n.result)},n.onabort=n.onerror=function(){return e(n.error)}}))}function o(n,t){var e=indexedDB.open(n);e.onupgradeneeded=function(){return e.result.createObjectStore(t)};var o=r(e);return function(n,e){return o.then((function(r){return e(r.transaction(t,n).objectStore(t))}))}}var i;function a(){return i||(i=o("keyval-store","keyval")),i}function u(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a();return t("readonly",(function(t){return r(t.get(n))}))}function c(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a();return e("readwrite",(function(e){return e.put(t,n),r(e.transaction)}))}function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a();return n("readwrite",(function(n){return n.clear(),r(n.transaction)}))}e.d(t,{ZH:function(){return s},MT:function(){return o},U2:function(){return u},RV:function(){return r},t8:function(){return c}})},19967:function(n,t,e){"use strict";e.d(t,{Xe:function(){return r.Xe},pX:function(){return r.pX},XM:function(){return r.XM}});var r=e(55122)}}]); //# sourceMappingURL=chunk.8455fed20710aa633419.js.map