iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
4 lines • 11.2 kB
JavaScript
/*! For license information please see 26023.85a4c2219766aae5.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["26023"],{27323:function(t,e,r){r.d(e,{O:()=>p});r(71695),r(47021);var n=r(9065),i=r(1105),o=r(57243),a=r(50778),s=r(35359),l=r(20552),d=r(91928);let c,f,h=t=>t;const u={fromAttribute(t){return null!==t&&(""===t||t)},toAttribute(t){return"boolean"==typeof t?t?"":null:t}};class p extends i.P{constructor(){super(...arguments),this.rows=2,this.cols=20,this.charCounter=!1}render(){const t=this.charCounter&&-1!==this.maxLength,e=t&&"internal"===this.charCounter,r=t&&!e,n=!!this.helper||!!this.validationMessage||r,i={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--end-aligned":this.endAligned,"mdc-text-field--with-internal-counter":e};return(0,o.dy)(c||(c=h` <label class="mdc-text-field mdc-text-field--textarea ${0}"> ${0} ${0} ${0} ${0} ${0} </label> ${0} `),(0,s.$)(i),this.renderRipple(),this.outlined?this.renderOutline():this.renderLabel(),this.renderInput(),this.renderCharCounter(e),this.renderLineRipple(),this.renderHelperText(n,r))}renderInput(){const t=this.label?"label":void 0,e=-1===this.minLength?void 0:this.minLength,r=-1===this.maxLength?void 0:this.maxLength,n=this.autocapitalize?this.autocapitalize:void 0;return(0,o.dy)(f||(f=h` <textarea aria-labelledby="${0}" class="mdc-text-field__input" .value="${0}" rows="${0}" cols="${0}" ?disabled="${0}" placeholder="${0}" ?required="${0}" ?readonly="${0}" minlength="${0}" maxlength="${0}" name="${0}" inputmode="${0}" autocapitalize="${0}" ="${0}" ="${0}">
</textarea>`),(0,l.o)(t),(0,d.a)(this.value),this.rows,this.cols,this.disabled,this.placeholder,this.required,this.readOnly,(0,l.o)(e),(0,l.o)(r),(0,l.o)(""===this.name?void 0:this.name),(0,l.o)(this.inputMode),(0,l.o)(n),this.handleInputChange,this.onInputBlur)}}(0,n.__decorate)([(0,a.IO)("textarea")],p.prototype,"formElement",void 0),(0,n.__decorate)([(0,a.Cb)({type:Number})],p.prototype,"rows",void 0),(0,n.__decorate)([(0,a.Cb)({type:Number})],p.prototype,"cols",void 0),(0,n.__decorate)([(0,a.Cb)({converter:u})],p.prototype,"charCounter",void 0)},88540:function(t,e,r){r.d(e,{W:()=>i});let n;const i=(0,r(57243).iv)(n||(n=(t=>t)`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`))},78344:function(t){var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}},87265:function(t,e,r){var n=r(61896),i=String,o=TypeError;t.exports=function(t){if(void 0===t||n(t))return t;throw new o(i(t)+" is not an object or undefined")}},87038:function(t,e,r){var n=r(59069),i=TypeError;t.exports=function(t){if("Uint8Array"===n(t))return t;throw new i("Argument is not an Uint8Array")}},15419:function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e+"+/",n=e+"-_",i=function(t){for(var e={},r=0;r<64;r++)e[t.charAt(r)]=r;return e};t.exports={i2c:r,c2i:i(r),i2cUrl:n,c2iUrl:i(n)}},93474:function(t){var e=TypeError;t.exports=function(t){var r=t&&t.alphabet;if(void 0===r||"base64"===r||"base64url"===r)return r||"base64";throw new e("Incorrect `alphabet` option")}},86256:function(t,e,r){var n=r(88045),i=r(72616),o=r(95011),a=RangeError;t.exports=function(t){var e=i(o(this)),r="",s=n(t);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(r+=e);return r}},35638:function(t,e,r){var n=r(72878);t.exports=n(1..valueOf)},47057:function(t,e,r){var n=r(1569),i=r(72878),o=r(87265),a=r(78344),s=r(39129),l=r(15419),d=r(93474),c=r(38511),f=l.c2i,h=l.c2iUrl,u=n.SyntaxError,p=n.TypeError,v=i("".charAt),g=function(t,e){for(var r=t.length;e<r;e++){var n=v(t,e);if(" "!==n&&"\t"!==n&&"\n"!==n&&"\f"!==n&&"\r"!==n)break}return e},b=function(t,e,r){var n=t.length;n<4&&(t+=2===n?"AA":"A");var i=(e[v(t,0)]<<18)+(e[v(t,1)]<<12)+(e[v(t,2)]<<6)+e[v(t,3)],o=[i>>16&255,i>>8&255,255&i];if(2===n){if(r&&0!==o[1])throw new u("Extra bits");return[o[0]]}if(3===n){if(r&&0!==o[2])throw new u("Extra bits");return[o[0],o[1]]}return o},x=function(t,e,r){for(var n=e.length,i=0;i<n;i++)t[r+i]=e[i];return r+n};t.exports=function(t,e,r,n){a(t),o(e);var i="base64"===d(e)?f:h,l=e?e.lastChunkHandling:void 0;if(void 0===l&&(l="loose"),"loose"!==l&&"strict"!==l&&"stop-before-partial"!==l)throw new p("Incorrect `lastChunkHandling` option");r&&c(r.buffer);var w=r||[],y=0,m=0,_="",k=0;if(n)for(;;){if((k=g(t,k))===t.length){if(_.length>0){if("stop-before-partial"===l)break;if("loose"!==l)throw new u("Missing padding");if(1===_.length)throw new u("Malformed padding: exactly one additional character");y=x(w,b(_,i,!1),y)}m=t.length;break}var A=v(t,k);if(++k,"="===A){if(_.length<2)throw new u("Padding is too early");if(k=g(t,k),2===_.length){if(k===t.length){if("stop-before-partial"===l)break;throw new u("Malformed padding: only one =")}"="===v(t,k)&&(++k,k=g(t,k))}if(k<t.length)throw new u("Unexpected character after padding");y=x(w,b(_,i,"strict"===l),y),m=t.length;break}if(!s(i,A))throw new u("Unexpected character");var $=n-y;if(1===$&&2===_.length||2===$&&3===_.length)break;if(4===(_+=A).length&&(y=x(w,b(_,i,!1),y),_="",m=k,y===n))break}return{bytes:w,read:m,written:y}}},35303:function(t,e,r){var n=r(1569),i=r(72878),o=n.Uint8Array,a=n.SyntaxError,s=n.parseInt,l=Math.min,d=/[^\da-f]/i,c=i(d.exec),f=i("".slice);t.exports=function(t,e){var r=t.length;if(r%2!=0)throw new a("String should be an even number of characters");for(var n=e?l(e.length,r/2):r/2,i=e||new o(n),h=0,u=0;u<n;){var p=f(t,h,h+=2);if(c(d,p))throw new a("String should only contain hex characters");i[u++]=s(p,16)}return{bytes:i,read:h}}},49278:function(t,e,r){var n=r(40810),i=r(72878),o=r(88045),a=r(35638),s=r(86256),l=r(29660),d=RangeError,c=String,f=Math.floor,h=i(s),u=i("".slice),p=i(1..toFixed),v=function(t,e,r){return 0===e?r:e%2==1?v(t,e-1,r*t):v(t*t,e/2,r)},g=function(t,e,r){for(var n=-1,i=r;++n<6;)i+=e*t[n],t[n]=i%1e7,i=f(i/1e7)},b=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=f(n/e),n=n%e*1e7},x=function(t){for(var e=6,r="";--e>=0;)if(""!==r||0===e||0!==t[e]){var n=c(t[e]);r=""===r?n:r+h("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}))},{toFixed:function(t){var e,r,n,i,s=a(this),l=o(t),f=[0,0,0,0,0,0],p="",w="0";if(l<0||l>20)throw new d("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(p="-",s=-s),s>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(s*v(2,69,1))-69)<0?s*v(2,-e,1):s/v(2,e,1),r*=4503599627370496,(e=52-e)>0){for(g(f,0,r),n=l;n>=7;)g(f,1e7,0),n-=7;for(g(f,v(10,n,1),0),n=e-1;n>=23;)b(f,1<<23),n-=23;b(f,1<<n),g(f,1,1),b(f,2),w=x(f)}else g(f,0,r),g(f,1<<-e,0),w=x(f)+h("0",l);return w=l>0?p+((i=w.length)<=l?"0."+h("0",l-i)+w:u(w,0,i-l)+"."+u(w,i-l)):p+w}})},92789:function(t,e,r){r(13492)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},21917:function(t,e,r){var n=r(40810),i=r(1569),o=r(47057),a=r(87038);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromBase64:function(t){a(this);var e=o(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:e.read,written:e.written}}})},56193:function(t,e,r){var n=r(40810),i=r(1569),o=r(78344),a=r(87038),s=r(38511),l=r(35303);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromHex:function(t){a(this),o(t),s(this.buffer);var e=l(t,this).read;return{read:e,written:e/2}}})},25020:function(t,e,r){var n=r(40810),i=r(1569),o=r(72878),a=r(87265),s=r(87038),l=r(38511),d=r(15419),c=r(93474),f=d.i2c,h=d.i2cUrl,u=o("".charAt);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toBase64:function(){var t=s(this),e=arguments.length?a(arguments[0]):void 0,r="base64"===c(e)?f:h,n=!!e&&!!e.omitPadding;l(this.buffer);for(var i,o="",d=0,p=t.length,v=function(t){return u(r,i>>6*t&63)};d+2<p;d+=3)i=(t[d]<<16)+(t[d+1]<<8)+t[d+2],o+=v(3)+v(2)+v(1)+v(0);return d+2===p?(i=(t[d]<<16)+(t[d+1]<<8),o+=v(3)+v(2)+v(1)+(n?"":"=")):d+1===p&&(i=t[d]<<16,o+=v(3)+v(2)+(n?"":"==")),o}})},86913:function(t,e,r){var n=r(40810),i=r(1569),o=r(72878),a=r(87038),s=r(38511),l=o(1..toString);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toHex:function(){a(this),s(this.buffer);for(var t="",e=0,r=this.length;e<r;e++){var n=l(this[e],16);t+=1===n.length?"0"+n:n}return t}})},1231:function(t,e,r){r.d(e,{B:()=>d});var n=r(9065),i=r(50778),o=(r(71695),r(47021),r(57243));class a extends o.oi{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}(0,n.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0})],a.prototype,"inset",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0,attribute:"inset-start"})],a.prototype,"insetStart",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0,attribute:"inset-end"})],a.prototype,"insetEnd",void 0);let s;const l=(0,o.iv)(s||(s=(t=>t)`:host{box-sizing:border-box;color:var(--md-divider-color,var(--md-sys-color-outline-variant,#cac4d0));display:flex;height:var(--md-divider-thickness,1px);width:100%}:host([inset-start]),:host([inset]){padding-inline-start:16px}:host([inset-end]),:host([inset]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%} {:host::before{background:CanvasText}}`));let d=class extends a{};d.styles=[l],d=(0,n.__decorate)([(0,i.Mo)("md-divider")],d)},91583:function(t,e,r){r.d(e,{r:()=>s});r(52247),r(71695),r(47021);var n=r(2841),i=r(45779),o=r(53232);const a=(t,e,r)=>{const n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},s=(0,i.XM)(class extends i.Xe{constructor(t){if(super(t),t.type!==i.pX.CHILD)throw Error("repeat() can only be used in text expressions")}ct(t,e,r){let n;void 0===r?r=e:void 0!==e&&(n=e);const i=[],o=[];let a=0;for(const s of t)i[a]=n?n(s,a):a,o[a]=r(s,a),a++;return{values:o,keys:i}}render(t,e,r){return this.ct(t,e,r).values}update(t,[e,r,i]){var s;const l=(0,o.i9)(t),{values:d,keys:c}=this.ct(e,r,i);if(!Array.isArray(l))return this.ut=c,d;const f=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],h=[];let u,p,v=0,g=l.length-1,b=0,x=d.length-1;for(;v<=g&&b<=x;)if(null===l[v])v++;else if(null===l[g])g--;else if(f[v]===c[b])h[b]=(0,o.fk)(l[v],d[b]),v++,b++;else if(f[g]===c[x])h[x]=(0,o.fk)(l[g],d[x]),g--,x--;else if(f[v]===c[x])h[x]=(0,o.fk)(l[v],d[x]),(0,o._Y)(t,h[x+1],l[v]),v++,x--;else if(f[g]===c[b])h[b]=(0,o.fk)(l[g],d[b]),(0,o._Y)(t,l[v],l[g]),g--,b++;else if(void 0===u&&(u=a(c,b,x),p=a(f,v,g)),u.has(f[v]))if(u.has(f[g])){const e=p.get(c[b]),r=void 0!==e?l[e]:null;if(null===r){const e=(0,o._Y)(t,l[v]);(0,o.fk)(e,d[b]),h[b]=e}else h[b]=(0,o.fk)(r,d[b]),(0,o._Y)(t,l[v],r),l[e]=null;b++}else(0,o.ws)(l[g]),g--;else(0,o.ws)(l[v]),v++;for(;b<=x;){const e=(0,o._Y)(t,h[x+1]);(0,o.fk)(e,d[b]),h[b++]=e}for(;v<=g;){const t=l[v++];null!==t&&(0,o.ws)(t)}return this.ut=c,(0,o.hl)(t,h),n.Jb}})}}]);
//# sourceMappingURL=26023.85a4c2219766aae5.js.map