UNPKG

iobroker.lovelace

Version:

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

3 lines 13.9 kB
/*! For license information please see chunk.c5350eadc426439a6d6b.js.LICENSE.txt */ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[3763],{83763:function(r,e,t){"use strict";function c(r){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}t.d(e,{D:function(){return L}});function i(r,e,t,i){var n,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"===("undefined"==typeof Reflect?"undefined":c(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(r,e,t,i);else for(var s=r.length-1;s>=0;s--)(n=r[s])&&(a=(o<3?n(a):o>3?n(e,t,a):n(e,t))||a);return o>3&&a&&Object.defineProperty(e,t,a),a}Object.create;Object.create;var n,o,a,s,l=t(55704),p=t(38103),u=t(81471),d=t(49629),f=t(79865);function m(r){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function y(r,e){return e||(e=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(e)}}))}function g(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function h(r,e){for(var t=0;t<e.length;t++){var c=e[t];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}function b(r,e,t){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(r,e,t){var c=function(r,e){for(;!Object.prototype.hasOwnProperty.call(r,e)&&null!==(r=w(r)););return r}(r,e);if(c){var i=Object.getOwnPropertyDescriptor(c,e);return i.get?i.get.call(t):i.value}})(r,e,t||r)}function _(r,e){return(_=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function v(r){var e=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(r){return!1}}();return function(){var t,c=w(r);if(e){var i=w(this).constructor;t=Reflect.construct(c,arguments,i)}else t=c.apply(this,arguments);return k(this,t)}}function k(r,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r):e}function w(r){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}var O,j=function(r){!function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&_(r,e)}(p,r);var e,t,c,i=v(p);function p(){var r;return g(this,p),(r=i.apply(this,arguments)).indeterminate=!1,r.progress=0,r.density=0,r.closed=!1,r}return e=p,(t=[{key:"open",value:function(){this.closed=!1}},{key:"close",value:function(){this.closed=!0}},{key:"render",value:function(){var r={"mdc-circular-progress--closed":this.closed,"mdc-circular-progress--indeterminate":this.indeterminate},e=48+4*this.density,t={width:"".concat(e,"px"),height:"".concat(e,"px")};return(0,l.dy)(n||(n=y(['\n <div\n class="mdc-circular-progress ','"\n style="','"\n role="progressbar"\n aria-label="','"\n aria-valuemin="0"\n aria-valuemax="1"\n aria-valuenow="','">\n ',"\n ","\n </div>"])),(0,u.$)(r),(0,f.V)(t),(0,d.o)(this.ariaLabel),(0,d.o)(this.indeterminate?void 0:this.progress),this.renderDeterminateContainer(),this.renderIndeterminateContainer())}},{key:"renderDeterminateContainer",value:function(){var r=48+4*this.density,e=r/2,t=this.density>=-3?18+11*this.density/6:12.5+5*(this.density+3)/4,c=6.2831852*t,i=(1-this.progress)*c,n=this.density>=-3?4+this.density*(1/3):3+(this.density+3)*(1/6);return(0,l.dy)(o||(o=y(['\n <div class="mdc-circular-progress__determinate-container">\n <svg class="mdc-circular-progress__determinate-circle-graphic"\n viewBox="0 0 '," ",'">\n <circle class="mdc-circular-progress__determinate-track"\n cx="','" cy="','" r="','"\n stroke-width="','"></circle>\n <circle class="mdc-circular-progress__determinate-circle"\n cx="','" cy="','" r="','"\n stroke-dasharray="','"\n stroke-dashoffset="','"\n stroke-width="','"></circle>\n </svg>\n </div>'])),r,r,e,e,t,n,e,e,t,6.2831852*t,i,n)}},{key:"renderIndeterminateContainer",value:function(){return(0,l.dy)(a||(a=y(['\n <div class="mdc-circular-progress__indeterminate-container">\n <div class="mdc-circular-progress__spinner-layer">\n ',"\n </div>\n </div>"])),this.renderIndeterminateSpinnerLayer())}},{key:"renderIndeterminateSpinnerLayer",value:function(){var r=48+4*this.density,e=r/2,t=this.density>=-3?18+11*this.density/6:12.5+5*(this.density+3)/4,c=6.2831852*t,i=.5*c,n=this.density>=-3?4+this.density*(1/3):3+(this.density+3)*(1/6);return(0,l.dy)(s||(s=y(['\n <div class="mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left">\n <svg class="mdc-circular-progress__indeterminate-circle-graphic"\n viewBox="0 0 '," ",'">\n <circle cx="','" cy="','" r="','"\n stroke-dasharray="','"\n stroke-dashoffset="','"\n stroke-width="','"></circle>\n </svg>\n </div>\n <div class="mdc-circular-progress__gap-patch">\n <svg class="mdc-circular-progress__indeterminate-circle-graphic"\n viewBox="0 0 '," ",'">\n <circle cx="','" cy="','" r="','"\n stroke-dasharray="','"\n stroke-dashoffset="','"\n stroke-width="','"></circle>\n </svg>\n </div>\n <div class="mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right">\n <svg class="mdc-circular-progress__indeterminate-circle-graphic"\n viewBox="0 0 '," ",'">\n <circle cx="','" cy="','" r="','"\n stroke-dasharray="','"\n stroke-dashoffset="','"\n stroke-width="','"></circle>\n </svg>\n </div>'])),r,r,e,e,t,c,i,n,r,r,e,e,t,c,i,.8*n,r,r,e,e,t,c,i,n)}},{key:"update",value:function(r){b(w(p.prototype),"update",this).call(this,r),r.has("progress")&&(this.progress>1&&(this.progress=1),this.progress<0&&(this.progress=0))}}])&&h(e.prototype,t),c&&h(e,c),p}(l.oi);i([(0,l.Cb)({type:Boolean,reflect:!0})],j.prototype,"indeterminate",void 0),i([(0,l.Cb)({type:Number,reflect:!0})],j.prototype,"progress",void 0),i([(0,l.Cb)({type:Number,reflect:!0})],j.prototype,"density",void 0),i([(0,l.Cb)({type:Boolean,reflect:!0})],j.prototype,"closed",void 0),i([p.L,(0,l.Cb)({type:String,attribute:"aria-label"})],j.prototype,"ariaLabel",void 0);var x,S,z=(0,l.iv)(O||(x=[".mdc-circular-progress__determinate-circle,.mdc-circular-progress__indeterminate-circle-graphic{stroke:#6200ee;stroke:var(--mdc-theme-primary, #6200ee)}.mdc-circular-progress__determinate-track{stroke:transparent}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:transparent}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}:host{display:inline-flex}.mdc-circular-progress__determinate-track{stroke:transparent;stroke:var(--mdc-circular-progress-track-color, transparent)}"],S||(S=x.slice(0)),O=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(S)}}))));function R(r){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function P(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function C(r,e){return(C=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function B(r){var e=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(r){return!1}}();return function(){var t,c=D(r);if(e){var i=D(this).constructor;t=Reflect.construct(c,arguments,i)}else t=c.apply(this,arguments);return E(this,t)}}function E(r,e){return!e||"object"!==R(e)&&"function"!=typeof e?function(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r):e}function D(r){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}var L=function(r){!function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&C(r,e)}(t,r);var e=B(t);function t(){return P(this,t),e.apply(this,arguments)}return t}(j);L.styles=z,L=i([(0,l.Mo)("mwc-circular-progress")],L)}}]); //# sourceMappingURL=chunk.c5350eadc426439a6d6b.js.map