UNPKG

iobroker.lovelace

Version:

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

3 lines 11.2 kB
/*! For license information please see chunk.4c91485302b38845fdf2.js.LICENSE.txt */ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[9046],{18601:function(t,n,e){"use strict";e.d(n,{qN:function(){return r.q},Wg:function(){return y}});var r=e(78220);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n,e){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,e){var r=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=s(t)););return t}(t,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(e):o.value}})(t,n,e||t)}function f(t,n){return(f=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function a(t){var n=function(){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(t){return!1}}();return function(){var e,r=s(t);if(n){var o=s(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return l(this,e)}}function l(t,n){return!n||"object"!==o(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&f(t,n)}(l,t);var n,e,r,o=a(l);function l(){return i(this,l),o.apply(this,arguments)}return n=l,(e=[{key:"click",value:function(){this.formElement&&(this.formElement.focus(),this.formElement.click())}},{key:"setAriaLabel",value:function(t){this.formElement&&this.formElement.setAttribute("aria-label",t)}},{key:"firstUpdated",value:function(){var t=this;c(s(l.prototype),"firstUpdated",this).call(this),this.shadowRoot&&this.mdcRoot.addEventListener("change",(function(n){t.dispatchEvent(new Event("change",n))}))}}])&&u(n.prototype,e),r&&u(n,r),l}(r.H);y.shadowRootOptions={mode:"open",delegatesFocus:!0}},98626:function(t,n,e){"use strict";function r(t){return new Promise((function(n,e){t.oncomplete=t.onsuccess=function(){return n(t.result)},t.onabort=t.onerror=function(){return e(t.error)}}))}function o(t,n){var e=indexedDB.open(t);e.onupgradeneeded=function(){return e.result.createObjectStore(n)};var o=r(e);return function(t,e){return o.then((function(r){return e(r.transaction(n,t).objectStore(n))}))}}var i;function u(){return i||(i=o("keyval-store","keyval")),i}function c(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u();return n("readonly",(function(n){return r(n.get(t))}))}function f(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u();return e("readwrite",(function(e){return e.put(n,t),r(e.transaction)}))}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u();return t("readwrite",(function(t){return t.clear(),r(t.transaction)}))}e.d(n,{ZH:function(){return a},MT:function(){return o},U2:function(){return c},RV:function(){return r},t8:function(){return f}})},78389:function(t,n,e){"use strict";e.d(n,{s:function(){return j}});var r=e(99602),o=e(55122),i=e(57724);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(t)||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 f(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function a(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,n,e){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,e){var r=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=v(t)););return t}(t,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(e):o.value}})(t,n,e||t)}function s(t,n){return(s=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function y(t){var n=function(){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(t){return!1}}();return function(){var e,r=v(t);if(n){var o=v(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return p(this,e)}}function p(t,n){return!n||"object"!==u(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,n){if(t){if("string"==typeof t)return h(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?h(t,n):void 0}}function h(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var b=function t(n,e){var r,o,i=n.N;if(void 0===i)return!1;var u,c=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=d(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,u=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==e.return||e.return()}finally{if(c)throw i}}}}(i);try{for(c.s();!(u=c.n()).done;){var f=u.value;null===(o=(r=f).O)||void 0===o||o.call(r,e,!1),t(f,e)}}catch(a){c.e(a)}finally{c.f()}return!0},m=function(t){var n,e;do{if(void 0===(n=t.M))break;(e=n.N).delete(t),t=n}while(0===(null==e?void 0:e.size))},g=function(t){for(var n;n=t.M;t=n){var e=n.N;if(void 0===e)n.N=e=new Set;else if(e.has(t))break;e.add(t),S(n)}};function w(t){void 0!==this.N?(m(this),this.M=t,g(this)):this.M=t}function O(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.H,o=this.N;if(void 0!==o&&0!==o.size)if(n)if(Array.isArray(r))for(var i=e;i<r.length;i++)b(r[i],!1),m(r[i]);else null!=r&&(b(r,!1),m(r));else b(this,t)}var S=function(t){var n,e,r,i;t.type==o.pX.CHILD&&(null!==(n=(r=t).P)&&void 0!==n||(r.P=O),null!==(e=(i=t).Q)&&void 0!==e||(i.Q=w))},j=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&s(t,n)}(p,t);var n,e,o,u=y(p);function p(){var t;return f(this,p),(t=u.apply(this,arguments)).isConnected=!0,t.ut=r.Jb,t.N=void 0,t}return n=p,(e=[{key:"T",value:function(t,n,e){l(v(p.prototype),"T",this).call(this,t,n,e),g(this)}},{key:"O",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.at(t),n&&(b(this,t),m(this))}},{key:"at",value:function(t){var n,e;t!==this.isConnected&&(t?(this.isConnected=!0,this.ut!==r.Jb&&(this.setValue(this.ut),this.ut=r.Jb),null===(n=this.reconnected)||void 0===n||n.call(this)):(this.isConnected=!1,null===(e=this.disconnected)||void 0===e||e.call(this)))}},{key:"S",value:function(t,n){if(!this.isConnected)throw Error("AsyncDirective ".concat(this.constructor.name," was rendered while its tree was disconnected."));return l(v(p.prototype),"S",this).call(this,t,n)}},{key:"setValue",value:function(t){if(this.isConnected)if((0,i.OR)(this.Σdt))this.Σdt.I(t,this);else{var n=c(this.Σdt.H);n[this.Σct]=t,this.Σdt.I(n,this,0)}else this.ut=t}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}])&&a(n.prototype,e),o&&a(n,o),p}(o.Xe)},57724:function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.d(n,{E_:function(){return d},i9:function(){return p},_Y:function(){return a},pt:function(){return i},OR:function(){return c},hN:function(){return u},ws:function(){return v},fk:function(){return l},hl:function(){return y}});var o=e(99602).Vm.et,i=function(t){return null===t||"object"!=r(t)&&"function"!=typeof t},u=function(t,n){var e,r;return void 0===n?void 0!==(null===(e=t)||void 0===e?void 0:e._$litType$):(null===(r=t)||void 0===r?void 0:r._$litType$)===n},c=function(t){return void 0===t.strings},f=function(){return document.createComment("")},a=function(t,n,e){var r,i=t.A.parentNode,u=void 0===n?t.B:n.A;if(void 0===e){var c=i.insertBefore(f(),u),a=i.insertBefore(f(),u);e=new o(c,a,t,t.options)}else{var l=e.B.nextSibling,s=e.M!==t;if(s&&(null===(r=e.Q)||void 0===r||r.call(e,t),e.M=t),l!==u||s)for(var y=e.A;y!==l;){var p=y.nextSibling;i.insertBefore(y,u),y=p}}return e},l=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;return t.I(n,e),t},s={},y=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return t.H=n},p=function(t){return t.H},v=function(t){var n;null===(n=t.P)||void 0===n||n.call(t,!1,!0);for(var e=t.A,r=t.B.nextSibling;e!==r;){var o=e.nextSibling;e.remove(),e=o}},d=function(t){t.R()}},19967:function(t,n,e){"use strict";e.d(n,{Xe:function(){return r.Xe},pX:function(){return r.pX},XM:function(){return r.XM}});var r=e(55122)},76666:function(t,n,e){"use strict";e.d(n,{$:function(){return r.$}});var r=e(81471)},82816:function(t,n,e){"use strict";e.d(n,{o:function(){return r.o}});var r=e(49629)},92483:function(t,n,e){"use strict";e.d(n,{V:function(){return r.V}});var r=e(79865)}}]); //# sourceMappingURL=chunk.4c91485302b38845fdf2.js.map