iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
4 lines • 7.41 kB
JavaScript
/*! For license information please see 23633.2e48e72b50b8a16a.js.LICENSE.txt */
export const __webpack_ids__=["23633"];export const __webpack_modules__={27323:function(t,e,r){r.d(e,{O:()=>c});var n=r(9065),i=r(1105),o=r(57243),a=r(15093),s=r(35359),l=r(20552),h=r(91928);const d={fromAttribute:t=>null!==t&&(""===t||t),toAttribute:t=>"boolean"==typeof t?t?"":null:t};class c 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 o.dy` <label class="mdc-text-field mdc-text-field--textarea ${(0,s.$)(i)}"> ${this.renderRipple()} ${this.outlined?this.renderOutline():this.renderLabel()} ${this.renderInput()} ${this.renderCharCounter(e)} ${this.renderLineRipple()} </label> ${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 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)(n)}" ="${this.handleInputChange}" ="${this.onInputBlur}">
</textarea>`}}(0,n.__decorate)([(0,a.IO)("textarea")],c.prototype,"formElement",void 0),(0,n.__decorate)([(0,a.Cb)({type:Number})],c.prototype,"rows",void 0),(0,n.__decorate)([(0,a.Cb)({type:Number})],c.prototype,"cols",void 0),(0,n.__decorate)([(0,a.Cb)({converter:d})],c.prototype,"charCounter",void 0)},88540:function(t,e,r){r.d(e,{W:()=>n});const n=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 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")}},47057:function(t,e,r){var n=r(1569),i=r(72878),o=r(87265),a=r(78344),s=r(39129),l=r(15419),h=r(93474),d=r(38511),c=l.c2i,u=l.c2iUrl,f=n.SyntaxError,p=n.TypeError,g=i("".charAt),b=function(t,e){for(var r=t.length;e<r;e++){var n=g(t,e);if(" "!==n&&"\t"!==n&&"\n"!==n&&"\f"!==n&&"\r"!==n)break}return e},v=function(t,e,r){var n=t.length;n<4&&(t+=2===n?"AA":"A");var i=(e[g(t,0)]<<18)+(e[g(t,1)]<<12)+(e[g(t,2)]<<6)+e[g(t,3)],o=[i>>16&255,i>>8&255,255&i];if(2===n){if(r&&0!==o[1])throw new f("Extra bits");return[o[0]]}if(3===n){if(r&&0!==o[2])throw new f("Extra bits");return[o[0],o[1]]}return o},w=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"===h(e)?c: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&&d(r.buffer);var x=r||[],y=0,m=0,A="",$=0;if(n)for(;;){if(($=b(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");y=w(x,v(A,i,!1),y)}m=t.length;break}var _=g(t,$);if(++$,"="===_){if(A.length<2)throw new f("Padding is too early");if($=b(t,$),2===A.length){if($===t.length){if("stop-before-partial"===l)break;throw new f("Malformed padding: only one =")}"="===g(t,$)&&(++$,$=b(t,$))}if($<t.length)throw new f("Unexpected character after padding");y=w(x,v(A,i,"strict"===l),y),m=t.length;break}if(!s(i,_))throw new f("Unexpected character");var U=n-y;if(1===U&&2===A.length||2===U&&3===A.length)break;if(4===(A+=_).length&&(y=w(x,v(A,i,!1),y),A="",m=$,y===n))break}return{bytes:x,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,h=/[^\da-f]/i,d=i(h.exec),c=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),u=0,f=0;f<n;){var p=c(t,u,u+=2);if(d(h,p))throw new a("String should only contain hex characters");i[f++]=s(p,16)}return{bytes:i,read:u}}},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),h=r(15419),d=r(93474),c=h.i2c,u=h.i2cUrl,f=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"===d(e)?c:u,n=!!e&&!!e.omitPadding;l(this.buffer);for(var i,o="",h=0,p=t.length,g=function(t){return f(r,i>>6*t&63)};h+2<p;h+=3)i=(t[h]<<16)+(t[h+1]<<8)+t[h+2],o+=g(3)+g(2)+g(1)+g(0);return h+2===p?(i=(t[h]<<16)+(t[h+1]<<8),o+=g(3)+g(2)+g(1)+(n?"":"=")):h+1===p&&(i=t[h]<<16,o+=g(3)+g(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}})},27608:function(t,e,r){r.d(e,{MT:()=>i,RV:()=>n,U2:()=>s,ZH:()=>h,t8:()=>l});r(92745),r(9359),r(31526),r(70104);function n(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function i(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const i=n(r);return(t,r)=>i.then((n=>r(n.transaction(e,t).objectStore(e))))}let o;function a(){return o||(o=i("keyval-store","keyval")),o}function s(t,e=a()){return e("readonly",(e=>n(e.get(t))))}function l(t,e,r=a()){return r("readwrite",(r=>(r.put(e,t),n(r.transaction))))}function h(t=a()){return t("readwrite",(t=>(t.clear(),n(t.transaction))))}}};
//# sourceMappingURL=23633.2e48e72b50b8a16a.js.map