UNPKG

iobroker.lovelace

Version:

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

4 lines 10.1 kB
/*! For license information please see 30751.9d77e592c66c3b48.js.LICENSE.txt */ export const __webpack_ids__=["30751"];export const __webpack_modules__={93958:function(t,e,r){r.d(e,{F:()=>d});var i=r(9065),n=r(15093),o=r(92444),s=r(76688);let a=class extends o.A{};a.styles=[s.W],a=(0,i.__decorate)([(0,n.Mo)("mwc-checkbox")],a);var l=r(57243),h=r(35359),c=r(65703);class d extends c.K{constructor(){super(...arguments),this.left=!1,this.graphic="control"}render(){const t={"mdc-deprecated-list-item__graphic":this.left,"mdc-deprecated-list-item__meta":!this.left},e=this.renderText(),r=this.graphic&&"control"!==this.graphic&&!this.left?this.renderGraphic():l.dy``,i=this.hasMeta&&this.left?this.renderMeta():l.dy``,n=this.renderRipple();return l.dy` ${n} ${r} ${this.left?"":e} <span class="${(0,h.$)(t)}"> <mwc-checkbox reducedTouchTarget tabindex="${this.tabindex}" .checked="${this.selected}" ?disabled="${this.disabled}" @change="${this.onChange}"> </mwc-checkbox> </span> ${this.left?e:""} ${i}`}async onChange(t){const e=t.target;this.selected===e.checked||(this._skipPropRequest=!0,this.selected=e.checked,await this.updateComplete,this._skipPropRequest=!1)}}(0,i.__decorate)([(0,n.IO)("slot")],d.prototype,"slotElement",void 0),(0,i.__decorate)([(0,n.IO)("mwc-checkbox")],d.prototype,"checkboxElement",void 0),(0,i.__decorate)([(0,n.Cb)({type:Boolean})],d.prototype,"left",void 0),(0,i.__decorate)([(0,n.Cb)({type:String,reflect:!0})],d.prototype,"graphic",void 0)},97536:function(t,e,r){r.d(e,{W:()=>i});const i=r(57243).iv`:host(:not([twoline])){height:56px}:host(:not([left])) .mdc-deprecated-list-item__meta{height:40px;width:40px}`},27323:function(t,e,r){r.d(e,{O:()=>d});var i=r(9065),n=r(1105),o=r(57243),s=r(15093),a=r(35359),l=r(20552),h=r(91928);const c={fromAttribute:t=>null!==t&&(""===t||t),toAttribute:t=>"boolean"==typeof t?t?"":null:t};class d extends n.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,i=!!this.helper||!!this.validationMessage||r,n={"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 o.dy` <label class="mdc-text-field mdc-text-field--textarea ${(0,a.$)(n)}"> ${this.renderRipple()} ${this.outlined?this.renderOutline():this.renderLabel()} ${this.renderInput()} ${this.renderCharCounter(e)} ${this.renderLineRipple()} </label> ${this.renderHelperText(i,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,i=this.autocapitalize?this.autocapitalize:void 0;return o.dy` <textarea aria-labelledby="${(0,l.o)(t)}" class="mdc-text-field__input" .value="${(0,h.a)(this.value)}" rows="${this.rows}" cols="${this.cols}" ?disabled="${this.disabled}" placeholder="${this.placeholder}" ?required="${this.required}" ?readonly="${this.readOnly}" minlength="${(0,l.o)(e)}" maxlength="${(0,l.o)(r)}" name="${(0,l.o)(""===this.name?void 0:this.name)}" inputmode="${(0,l.o)(this.inputMode)}" autocapitalize="${(0,l.o)(i)}" @input="${this.handleInputChange}" @blur="${this.onInputBlur}"> </textarea>`}}(0,i.__decorate)([(0,s.IO)("textarea")],d.prototype,"formElement",void 0),(0,i.__decorate)([(0,s.Cb)({type:Number})],d.prototype,"rows",void 0),(0,i.__decorate)([(0,s.Cb)({type:Number})],d.prototype,"cols",void 0),(0,i.__decorate)([(0,s.Cb)({converter:c})],d.prototype,"charCounter",void 0)},88540:function(t,e,r){r.d(e,{W:()=>i});const i=r(57243).iv`.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 i=r(61896),n=String,o=TypeError;t.exports=function(t){if(void 0===t||i(t))return t;throw new o(n(t)+" is not an object or undefined")}},87038:function(t,e,r){var i=r(59069),n=TypeError;t.exports=function(t){if("Uint8Array"===i(t))return t;throw new n("Argument is not an Uint8Array")}},15419:function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e+"+/",i=e+"-_",n=function(t){for(var e={},r=0;r<64;r++)e[t.charAt(r)]=r;return e};t.exports={i2c:r,c2i:n(r),i2cUrl:i,c2iUrl:n(i)}},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")}},47057:function(t,e,r){var i=r(1569),n=r(72878),o=r(87265),s=r(78344),a=r(39129),l=r(15419),h=r(93474),c=r(38511),d=l.c2i,u=l.c2iUrl,f=i.SyntaxError,p=i.TypeError,g=n("".charAt),v=function(t,e){for(var r=t.length;e<r;e++){var i=g(t,e);if(" "!==i&&"\t"!==i&&"\n"!==i&&"\f"!==i&&"\r"!==i)break}return e},b=function(t,e,r){var i=t.length;i<4&&(t+=2===i?"AA":"A");var n=(e[g(t,0)]<<18)+(e[g(t,1)]<<12)+(e[g(t,2)]<<6)+e[g(t,3)],o=[n>>16&255,n>>8&255,255&n];if(2===i){if(r&&0!==o[1])throw new f("Extra bits");return[o[0]]}if(3===i){if(r&&0!==o[2])throw new f("Extra bits");return[o[0],o[1]]}return o},y=function(t,e,r){for(var i=e.length,n=0;n<i;n++)t[r+n]=e[n];return r+i};t.exports=function(t,e,r,i){s(t),o(e);var n="base64"===h(e)?d:u,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 x=r||[],w=0,m=0,_="",$=0;if(i)for(;;){if(($=v(t,$))===t.length){if(_.length>0){if("stop-before-partial"===l)break;if("loose"!==l)throw new f("Missing padding");if(1===_.length)throw new f("Malformed padding: exactly one additional character");w=y(x,b(_,n,!1),w)}m=t.length;break}var A=g(t,$);if(++$,"="===A){if(_.length<2)throw new f("Padding is too early");if($=v(t,$),2===_.length){if($===t.length){if("stop-before-partial"===l)break;throw new f("Malformed padding: only one =")}"="===g(t,$)&&(++$,$=v(t,$))}if($<t.length)throw new f("Unexpected character after padding");w=y(x,b(_,n,"strict"===l),w),m=t.length;break}if(!a(n,A))throw new f("Unexpected character");var k=i-w;if(1===k&&2===_.length||2===k&&3===_.length)break;if(4===(_+=A).length&&(w=y(x,b(_,n,!1),w),_="",m=$,w===i))break}return{bytes:x,read:m,written:w}}},35303:function(t,e,r){var i=r(1569),n=r(72878),o=i.Uint8Array,s=i.SyntaxError,a=i.parseInt,l=Math.min,h=/[^\da-f]/i,c=n(h.exec),d=n("".slice);t.exports=function(t,e){var r=t.length;if(r%2!=0)throw new s("String should be an even number of characters");for(var i=e?l(e.length,r/2):r/2,n=e||new o(i),u=0,f=0;f<i;){var p=d(t,u,u+=2);if(c(h,p))throw new s("String should only contain hex characters");n[f++]=a(p,16)}return{bytes:n,read:u}}},21917:function(t,e,r){var i=r(40810),n=r(1569),o=r(47057),s=r(87038);n.Uint8Array&&i({target:"Uint8Array",proto:!0},{setFromBase64:function(t){s(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 i=r(40810),n=r(1569),o=r(78344),s=r(87038),a=r(38511),l=r(35303);n.Uint8Array&&i({target:"Uint8Array",proto:!0},{setFromHex:function(t){s(this),o(t),a(this.buffer);var e=l(t,this).read;return{read:e,written:e/2}}})},25020:function(t,e,r){var i=r(40810),n=r(1569),o=r(72878),s=r(87265),a=r(87038),l=r(38511),h=r(15419),c=r(93474),d=h.i2c,u=h.i2cUrl,f=o("".charAt);n.Uint8Array&&i({target:"Uint8Array",proto:!0},{toBase64:function(){var t=a(this),e=arguments.length?s(arguments[0]):void 0,r="base64"===c(e)?d:u,i=!!e&&!!e.omitPadding;l(this.buffer);for(var n,o="",h=0,p=t.length,g=function(t){return f(r,n>>6*t&63)};h+2<p;h+=3)n=(t[h]<<16)+(t[h+1]<<8)+t[h+2],o+=g(3)+g(2)+g(1)+g(0);return h+2===p?(n=(t[h]<<16)+(t[h+1]<<8),o+=g(3)+g(2)+g(1)+(i?"":"=")):h+1===p&&(n=t[h]<<16,o+=g(3)+g(2)+(i?"":"==")),o}})},86913:function(t,e,r){var i=r(40810),n=r(1569),o=r(72878),s=r(87038),a=r(38511),l=o(1..toString);n.Uint8Array&&i({target:"Uint8Array",proto:!0},{toHex:function(){s(this),a(this.buffer);for(var t="",e=0,r=this.length;e<r;e++){var i=l(this[e],16);t+=1===i.length?"0"+i:i}return t}})},11722:function(t,e,r){r.d(e,{l:()=>s});r(9359),r(68107);var i=r(2841),n=r(45779);const o={},s=(0,n.XM)(class extends n.Xe{constructor(){super(...arguments),this.st=o}render(t,e){return e()}update(t,[e,r]){if(Array.isArray(e)){if(Array.isArray(this.st)&&this.st.length===e.length&&e.every(((t,e)=>t===this.st[e])))return i.Jb}else if(this.st===e)return i.Jb;return this.st=Array.isArray(e)?Array.from(e):e,this.render(e,r)}})},91583:function(t,e,r){r.d(e,{r:()=>a});var i=r(2841),n=r(45779),o=r(53232);const s=(t,e,r)=>{const i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},a=(0,n.XM)(class extends n.Xe{constructor(t){if(super(t),t.type!==n.pX.CHILD)throw Error("repeat() can only be used in text expressions")}ct(t,e,r){let i;void 0===r?r=e:void 0!==e&&(i=e);const n=[],o=[];let s=0;for(const e of t)n[s]=i?i(e,s):s,o[s]=r(e,s),s++;return{values:o,keys:n}}render(t,e,r){return this.ct(t,e,r).values}update(t,[e,r,n]){var a;const l=(0,o.i9)(t),{values:h,keys:c}=this.ct(e,r,n);if(!Array.isArray(l))return this.ut=c,h;const d=null!==(a=this.ut)&&void 0!==a?a:this.ut=[],u=[];let f,p,g=0,v=l.length-1,b=0,y=h.length-1;for(;g<=v&&b<=y;)if(null===l[g])g++;else if(null===l[v])v--;else if(d[g]===c[b])u[b]=(0,o.fk)(l[g],h[b]),g++,b++;else if(d[v]===c[y])u[y]=(0,o.fk)(l[v],h[y]),v--,y--;else if(d[g]===c[y])u[y]=(0,o.fk)(l[g],h[y]),(0,o._Y)(t,u[y+1],l[g]),g++,y--;else if(d[v]===c[b])u[b]=(0,o.fk)(l[v],h[b]),(0,o._Y)(t,l[g],l[v]),v--,b++;else if(void 0===f&&(f=s(c,b,y),p=s(d,g,v)),f.has(d[g]))if(f.has(d[v])){const e=p.get(c[b]),r=void 0!==e?l[e]:null;if(null===r){const e=(0,o._Y)(t,l[g]);(0,o.fk)(e,h[b]),u[b]=e}else u[b]=(0,o.fk)(r,h[b]),(0,o._Y)(t,l[g],r),l[e]=null;b++}else(0,o.ws)(l[v]),v--;else(0,o.ws)(l[g]),g++;for(;b<=y;){const e=(0,o._Y)(t,u[y+1]);(0,o.fk)(e,h[b]),u[b++]=e}for(;g<=v;){const t=l[g++];null!==t&&(0,o.ws)(t)}return this.ut=c,(0,o.hl)(t,u),i.Jb}})}}; //# sourceMappingURL=30751.9d77e592c66c3b48.js.map