UNPKG

iobroker.lovelace

Version:

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

2 lines 5.56 kB
export const __webpack_ids__=["91382"];export const __webpack_modules__={53257:function(r,t,e){e.r(t),e.d(t,{HuiErrorCard:()=>f});var n=e(44249),i=e(76848),o=e(57243),a=e(15093);e(99426);let f=(0,n.Z)([(0,a.Mo)("hui-error-card")],(function(r,t){return{F:class extends t{constructor(...t){super(...t),r(this)}},d:[{kind:"field",key:"hass",value:void 0},{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"preview",value:()=>!1},{kind:"field",decorators:[(0,a.SB)()],key:"_config",value:void 0},{kind:"method",key:"getCardSize",value:function(){return 4}},{kind:"method",key:"setConfig",value:function(r){this._config=r}},{kind:"method",key:"render",value:function(){if(!this._config)return o.Ld;let r;if(this._config.origConfig)try{r=(0,i.dump)(this._config.origConfig)}catch(t){r=`[Error dumping ${this._config.origConfig}]`}return o.dy`<ha-alert alert-type="error" .title="${this._config.error}"> ${r?o.dy`<pre>${r}</pre>`:""} </ha-alert>`}},{kind:"field",static:!0,key:"styles",value:()=>o.iv`pre{font-family:var(--code-font-family, monospace);white-space:break-spaces;user-select:text}`}]}}),o.oi)},78344:function(r){var t=TypeError;r.exports=function(r){if("string"==typeof r)return r;throw new t("Argument is not a string")}},87265:function(r,t,e){var n=e(61896),i=String,o=TypeError;r.exports=function(r){if(void 0===r||n(r))return r;throw new o(i(r)+" is not an object or undefined")}},87038:function(r,t,e){var n=e(59069),i=TypeError;r.exports=function(r){if("Uint8Array"===n(r))return r;throw new i("Argument is not an Uint8Array")}},15419:function(r){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=t+"+/",n=t+"-_",i=function(r){for(var t={},e=0;e<64;e++)t[r.charAt(e)]=e;return t};r.exports={i2c:e,c2i:i(e),i2cUrl:n,c2iUrl:i(n)}},93474:function(r){var t=TypeError;r.exports=function(r){var e=r&&r.alphabet;if(void 0===e||"base64"===e||"base64url"===e)return e||"base64";throw new t("Incorrect `alphabet` option")}},47057:function(r,t,e){var n=e(1569),i=e(72878),o=e(87265),a=e(78344),f=e(39129),c=e(15419),s=e(93474),h=e(38511),u=c.c2i,l=c.c2iUrl,d=n.SyntaxError,g=n.TypeError,v=i("".charAt),p=function(r,t){for(var e=r.length;t<e;t++){var n=v(r,t);if(" "!==n&&"\t"!==n&&"\n"!==n&&"\f"!==n&&"\r"!==n)break}return t},w=function(r,t,e){var n=r.length;n<4&&(r+=2===n?"AA":"A");var i=(t[v(r,0)]<<18)+(t[v(r,1)]<<12)+(t[v(r,2)]<<6)+t[v(r,3)],o=[i>>16&255,i>>8&255,255&i];if(2===n){if(e&&0!==o[1])throw new d("Extra bits");return[o[0]]}if(3===n){if(e&&0!==o[2])throw new d("Extra bits");return[o[0],o[1]]}return o},y=function(r,t,e){for(var n=t.length,i=0;i<n;i++)r[e+i]=t[i];return e+n};r.exports=function(r,t,e,n){a(r),o(t);var i="base64"===s(t)?u:l,c=t?t.lastChunkHandling:void 0;if(void 0===c&&(c="loose"),"loose"!==c&&"strict"!==c&&"stop-before-partial"!==c)throw new g("Incorrect `lastChunkHandling` option");e&&h(e.buffer);var b=e||[],k=0,x=0,A="",m=0;if(n)for(;;){if((m=p(r,m))===r.length){if(A.length>0){if("stop-before-partial"===c)break;if("loose"!==c)throw new d("Missing padding");if(1===A.length)throw new d("Malformed padding: exactly one additional character");k=y(b,w(A,i,!1),k)}x=r.length;break}var U=v(r,m);if(++m,"="===U){if(A.length<2)throw new d("Padding is too early");if(m=p(r,m),2===A.length){if(m===r.length){if("stop-before-partial"===c)break;throw new d("Malformed padding: only one =")}"="===v(r,m)&&(++m,m=p(r,m))}if(m<r.length)throw new d("Unexpected character after padding");k=y(b,w(A,i,"strict"===c),k),x=r.length;break}if(!f(i,U))throw new d("Unexpected character");var _=n-k;if(1===_&&2===A.length||2===_&&3===A.length)break;if(4===(A+=U).length&&(k=y(b,w(A,i,!1),k),A="",x=m,k===n))break}return{bytes:b,read:x,written:k}}},35303:function(r,t,e){var n=e(1569),i=e(72878),o=n.Uint8Array,a=n.SyntaxError,f=n.parseInt,c=Math.min,s=/[^\da-f]/i,h=i(s.exec),u=i("".slice);r.exports=function(r,t){var e=r.length;if(e%2!=0)throw new a("String should be an even number of characters");for(var n=t?c(t.length,e/2):e/2,i=t||new o(n),l=0,d=0;d<n;){var g=u(r,l,l+=2);if(h(s,g))throw new a("String should only contain hex characters");i[d++]=f(g,16)}return{bytes:i,read:l}}},21917:function(r,t,e){var n=e(40810),i=e(1569),o=e(47057),a=e(87038);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromBase64:function(r){a(this);var t=o(r,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})},56193:function(r,t,e){var n=e(40810),i=e(1569),o=e(78344),a=e(87038),f=e(38511),c=e(35303);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromHex:function(r){a(this),o(r),f(this.buffer);var t=c(r,this).read;return{read:t,written:t/2}}})},25020:function(r,t,e){var n=e(40810),i=e(1569),o=e(72878),a=e(87265),f=e(87038),c=e(38511),s=e(15419),h=e(93474),u=s.i2c,l=s.i2cUrl,d=o("".charAt);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toBase64:function(){var r=f(this),t=arguments.length?a(arguments[0]):void 0,e="base64"===h(t)?u:l,n=!!t&&!!t.omitPadding;c(this.buffer);for(var i,o="",s=0,g=r.length,v=function(r){return d(e,i>>6*r&63)};s+2<g;s+=3)i=(r[s]<<16)+(r[s+1]<<8)+r[s+2],o+=v(3)+v(2)+v(1)+v(0);return s+2===g?(i=(r[s]<<16)+(r[s+1]<<8),o+=v(3)+v(2)+v(1)+(n?"":"=")):s+1===g&&(i=r[s]<<16,o+=v(3)+v(2)+(n?"":"==")),o}})},86913:function(r,t,e){var n=e(40810),i=e(1569),o=e(72878),a=e(87038),f=e(38511),c=o(1..toString);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toHex:function(){a(this),f(this.buffer);for(var r="",t=0,e=this.length;t<e;t++){var n=c(this[t],16);r+=1===n.length?"0"+n:n}return r}})}}; //# sourceMappingURL=91382.22c8ceabd1e3b807.js.map