UNPKG

iobroker.lovelace

Version:

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

4 lines 8.5 kB
/*! For license information please see 60533.d69978210b352ecd.js.LICENSE.txt */ "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["60533"],{27323:function(t,r,e){e.d(r,{O:()=>p});e(71695),e(47021);var n=e(9065),i=e(1105),o=e(57243),a=e(50778),s=e(35359),l=e(20552),c=e(91928);let h,u,d=t=>t;const f={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,r=t&&"internal"===this.charCounter,e=t&&!r,n=!!this.helper||!!this.validationMessage||e,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":r};return(0,o.dy)(h||(h=d` <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(r),this.renderLineRipple(),this.renderHelperText(n,e))}renderInput(){const t=this.label?"label":void 0,r=-1===this.minLength?void 0:this.minLength,e=-1===this.maxLength?void 0:this.maxLength,n=this.autocapitalize?this.autocapitalize:void 0;return(0,o.dy)(u||(u=d` <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}" @input="${0}" @blur="${0}"> </textarea>`),(0,l.o)(t),(0,c.a)(this.value),this.rows,this.cols,this.disabled,this.placeholder,this.required,this.readOnly,(0,l.o)(r),(0,l.o)(e),(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:f})],p.prototype,"charCounter",void 0)},88540:function(t,r,e){e.d(r,{W:()=>i});let n;const i=(0,e(57243).iv)(n||(n=(t=>t)`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`))},78344:function(t){var r=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new r("Argument is not a string")}},87265:function(t,r,e){var n=e(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,r,e){var n=e(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 r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=r+"+/",n=r+"-_",i=function(t){for(var r={},e=0;e<64;e++)r[t.charAt(e)]=e;return r};t.exports={i2c:e,c2i:i(e),i2cUrl:n,c2iUrl:i(n)}},93474:function(t){var r=TypeError;t.exports=function(t){var e=t&&t.alphabet;if(void 0===e||"base64"===e||"base64url"===e)return e||"base64";throw new r("Incorrect `alphabet` option")}},96526:function(t,r,e){var n=e(1569),i=e(29660),o=e(72878),a=e(72616),s=e(36888).trim,l=e(91430),c=o("".charAt),h=n.parseFloat,u=n.Symbol,d=u&&u.iterator,f=1/h(l+"-0")!=-1/0||d&&!i((function(){h(Object(d))}));t.exports=f?function(t){var r=s(a(t)),e=h(r);return 0===e&&"-"===c(r,0)?-0:e}:h},72183:function(t,r,e){var n=e(36888).end,i=e(37588);t.exports=i("trimEnd")?function(){return n(this)}:"".trimEnd},47057:function(t,r,e){var n=e(1569),i=e(72878),o=e(87265),a=e(78344),s=e(39129),l=e(15419),c=e(93474),h=e(38511),u=l.c2i,d=l.c2iUrl,f=n.SyntaxError,p=n.TypeError,g=i("".charAt),v=function(t,r){for(var e=t.length;r<e;r++){var n=g(t,r);if(" "!==n&&"\t"!==n&&"\n"!==n&&"\f"!==n&&"\r"!==n)break}return r},b=function(t,r,e){var n=t.length;n<4&&(t+=2===n?"AA":"A");var i=(r[g(t,0)]<<18)+(r[g(t,1)]<<12)+(r[g(t,2)]<<6)+r[g(t,3)],o=[i>>16&255,i>>8&255,255&i];if(2===n){if(e&&0!==o[1])throw new f("Extra bits");return[o[0]]}if(3===n){if(e&&0!==o[2])throw new f("Extra bits");return[o[0],o[1]]}return o},m=function(t,r,e){for(var n=r.length,i=0;i<n;i++)t[e+i]=r[i];return e+n};t.exports=function(t,r,e,n){a(t),o(r);var i="base64"===c(r)?u:d,l=r?r.lastChunkHandling:void 0;if(void 0===l&&(l="loose"),"loose"!==l&&"strict"!==l&&"stop-before-partial"!==l)throw new p("Incorrect `lastChunkHandling` option");e&&h(e.buffer);var w=e||[],x=0,y=0,A="",$=0;if(n)for(;;){if(($=v(t,$))===t.length){if(A.length>0){if("stop-before-partial"===l)break;if("loose"!==l)throw new f("Missing padding");if(1===A.length)throw new f("Malformed padding: exactly one additional character");x=m(w,b(A,i,!1),x)}y=t.length;break}var U=g(t,$);if(++$,"="===U){if(A.length<2)throw new f("Padding is too early");if($=v(t,$),2===A.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");x=m(w,b(A,i,"strict"===l),x),y=t.length;break}if(!s(i,U))throw new f("Unexpected character");var E=n-x;if(1===E&&2===A.length||2===E&&3===A.length)break;if(4===(A+=U).length&&(x=m(w,b(A,i,!1),x),A="",y=$,x===n))break}return{bytes:w,read:y,written:x}}},35303:function(t,r,e){var n=e(1569),i=e(72878),o=n.Uint8Array,a=n.SyntaxError,s=n.parseInt,l=Math.min,c=/[^\da-f]/i,h=i(c.exec),u=i("".slice);t.exports=function(t,r){var e=t.length;if(e%2!=0)throw new a("String should be an even number of characters");for(var n=r?l(r.length,e/2):e/2,i=r||new o(n),d=0,f=0;f<n;){var p=u(t,d,d+=2);if(h(c,p))throw new a("String should only contain hex characters");i[f++]=s(p,16)}return{bytes:i,read:d}}},95078:function(t,r,e){var n=e(40810),i=e(96526);n({global:!0,forced:parseFloat!==i},{parseFloat:i})},52128:function(t,r,e){e(85284);var n=e(40810),i=e(72183);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},85284:function(t,r,e){var n=e(40810),i=e(72183);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},92789:function(t,r,e){e(13492)("Uint8",(function(t){return function(r,e,n){return t(this,r,e,n)}}))},21917:function(t,r,e){var n=e(40810),i=e(1569),o=e(47057),a=e(87038);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromBase64:function(t){a(this);var r=o(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:r.read,written:r.written}}})},56193:function(t,r,e){var n=e(40810),i=e(1569),o=e(78344),a=e(87038),s=e(38511),l=e(35303);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromHex:function(t){a(this),o(t),s(this.buffer);var r=l(t,this).read;return{read:r,written:r/2}}})},25020:function(t,r,e){var n=e(40810),i=e(1569),o=e(72878),a=e(87265),s=e(87038),l=e(38511),c=e(15419),h=e(93474),u=c.i2c,d=c.i2cUrl,f=o("".charAt);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toBase64:function(){var t=s(this),r=arguments.length?a(arguments[0]):void 0,e="base64"===h(r)?u:d,n=!!r&&!!r.omitPadding;l(this.buffer);for(var i,o="",c=0,p=t.length,g=function(t){return f(e,i>>6*t&63)};c+2<p;c+=3)i=(t[c]<<16)+(t[c+1]<<8)+t[c+2],o+=g(3)+g(2)+g(1)+g(0);return c+2===p?(i=(t[c]<<16)+(t[c+1]<<8),o+=g(3)+g(2)+g(1)+(n?"":"=")):c+1===p&&(i=t[c]<<16,o+=g(3)+g(2)+(n?"":"==")),o}})},86913:function(t,r,e){var n=e(40810),i=e(1569),o=e(72878),a=e(87038),s=e(38511),l=o(1..toString);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toHex:function(){a(this),s(this.buffer);for(var t="",r=0,e=this.length;r<e;r++){var n=l(this[r],16);t+=1===n.length?"0"+n:n}return t}})},27608:function(t,r,e){e.d(r,{MT:()=>i,RV:()=>n,U2:()=>s,ZH:()=>c,t8:()=>l});e(71695),e(92745),e(9359),e(31526),e(70104),e(40251),e(47021);function n(t){return new Promise(((r,e)=>{t.oncomplete=t.onsuccess=()=>r(t.result),t.onabort=t.onerror=()=>e(t.error)}))}function i(t,r){const e=indexedDB.open(t);e.onupgradeneeded=()=>e.result.createObjectStore(r);const i=n(e);return(t,e)=>i.then((n=>e(n.transaction(r,t).objectStore(r))))}let o;function a(){return o||(o=i("keyval-store","keyval")),o}function s(t,r=a()){return r("readonly",(r=>n(r.get(t))))}function l(t,r,e=a()){return e("readwrite",(e=>(e.put(r,t),n(e.transaction))))}function c(t=a()){return t("readwrite",(t=>(t.clear(),n(t.transaction))))}}}]); //# sourceMappingURL=60533.d69978210b352ecd.js.map