UNPKG

iobroker.lovelace

Version:

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

3 lines 9.27 kB
/*! For license information please see 39388.98e2e30ac5a4dae4.js.LICENSE.txt */ "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["39388"],{93958:function(t,e,s){s.d(e,{F:()=>p});s(71695),s(40251),s(47021);var n=s(9065),i=s(50778),r=s(92444),o=s(76688);let c=class extends r.A{};c.styles=[o.W],c=(0,n.__decorate)([(0,i.Mo)("mwc-checkbox")],c);var l=s(57243),a=s(35359),d=s(65703);let h,u,f,_=t=>t;class p extends d.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(),s=this.graphic&&"control"!==this.graphic&&!this.left?this.renderGraphic():(0,l.dy)(h||(h=_``)),n=this.hasMeta&&this.left?this.renderMeta():(0,l.dy)(u||(u=_``)),i=this.renderRipple();return(0,l.dy)(f||(f=_` ${0} ${0} ${0} <span class="${0}"> <mwc-checkbox reducedTouchTarget tabindex="${0}" .checked="${0}" ?disabled="${0}" @change="${0}"> </mwc-checkbox> </span> ${0} ${0}`),i,s,this.left?"":e,(0,a.$)(t),this.tabindex,this.selected,this.disabled,this.onChange,this.left?e:"",n)}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,n.__decorate)([(0,i.IO)("slot")],p.prototype,"slotElement",void 0),(0,n.__decorate)([(0,i.IO)("mwc-checkbox")],p.prototype,"checkboxElement",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean})],p.prototype,"left",void 0),(0,n.__decorate)([(0,i.Cb)({type:String,reflect:!0})],p.prototype,"graphic",void 0)},97536:function(t,e,s){s.d(e,{W:()=>i});let n;const i=(0,s(57243).iv)(n||(n=(t=>t)`:host(:not([twoline])){height:56px}:host(:not([left])) .mdc-deprecated-list-item__meta{height:40px;width:40px}`))},63434:function(t,e,s){var n=s(40810),i=s(12360),r=s(13053),o=s(88045),c=s(35709);n({target:"Array",proto:!0},{at:function(t){var e=i(this),s=r(e),n=o(t),c=n>=0?n:s+n;return c<0||c>=s?void 0:e[c]}}),c("at")},96829:function(t,e,s){var n=s(40810),i=s(72878),r=s(95011),o=s(88045),c=s(72616),l=s(29660),a=i("".charAt);n({target:"String",proto:!0,forced:l((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=c(r(this)),s=e.length,n=o(t),i=n>=0?n:s+n;return i<0||i>=s?void 0:a(e,i)}})},14503:function(t,e,s){s.d(e,{Z:()=>n});s(63721),s(88230),s(52247),s(71695),s(40251),s(47021);function n(t){var e,s,n,r=2;for("undefined"!=typeof Symbol&&(s=Symbol.asyncIterator,n=Symbol.iterator);r--;){if(s&&null!=(e=t[s]))return e.call(t);if(n&&null!=(e=t[n]))return new i(e.call(t));s="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function i(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return i=function(t){this.s=t,this.n=t.next},i.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var s=this.s.return;return void 0===s?Promise.resolve({value:t,done:!0}):e(s.apply(this.s,arguments))},throw:function(t){var s=this.s.return;return void 0===s?Promise.reject(t):e(s.apply(this.s,arguments))}},new i(t)}},1231:function(t,e,s){s.d(e,{B:()=>a});var n=s(9065),i=s(50778),r=(s(71695),s(47021),s(57243));class o extends r.oi{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}(0,n.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0})],o.prototype,"inset",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0,attribute:"inset-start"})],o.prototype,"insetStart",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0,attribute:"inset-end"})],o.prototype,"insetEnd",void 0);let c;const l=(0,r.iv)(c||(c=(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%}@media(forced-colors:active){:host::before{background:CanvasText}}`));let a=class extends o{};a.styles=[l],a=(0,n.__decorate)([(0,i.Mo)("md-divider")],a)},27608:function(t,e,s){s.d(e,{MT:()=>i,RV:()=>n,U2:()=>c,ZH:()=>a,t8:()=>l});s(71695),s(92745),s(9359),s(31526),s(70104),s(40251),s(47021);function n(t){return new Promise(((e,s)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>s(t.error)}))}function i(t,e){const s=indexedDB.open(t);s.onupgradeneeded=()=>s.result.createObjectStore(e);const i=n(s);return(t,s)=>i.then((n=>s(n.transaction(e,t).objectStore(e))))}let r;function o(){return r||(r=i("keyval-store","keyval")),r}function c(t,e=o()){return e("readonly",(e=>n(e.get(t))))}function l(t,e,s=o()){return s("readwrite",(s=>(s.put(e,t),n(s.transaction))))}function a(t=o()){return t("readwrite",(t=>(t.clear(),n(t.transaction))))}},1714:function(t,e,s){s.d(e,{sR:()=>h});s(71695),s(92519),s(42179),s(89256),s(24931),s(88463),s(57449),s(19814),s(47021);var n=s(53232),i=s(45779);const r=(t,e)=>{var s,n;const i=t._$AN;if(void 0===i)return!1;for(const o of i)null===(n=(s=o)._$AO)||void 0===n||n.call(s,e,!1),r(o,e);return!0},o=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===(null==s?void 0:s.size))},c=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),d(e)}};function l(t){void 0!==this._$AN?(o(this),this._$AM=t,c(this)):this._$AM=t}function a(t,e=!1,s=0){const n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(e)if(Array.isArray(n))for(let c=s;c<n.length;c++)r(n[c],!1),o(n[c]);else null!=n&&(r(n,!1),o(n));else r(this,t)}const d=t=>{var e,s,n,r;t.type==i.pX.CHILD&&(null!==(e=(n=t)._$AP)&&void 0!==e||(n._$AP=a),null!==(s=(r=t)._$AQ)&&void 0!==s||(r._$AQ=l))};class h extends i.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,n;t!==this.isConnected&&(this.isConnected=t,t?null===(s=this.reconnected)||void 0===s||s.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),e&&(r(this,t),o(this))}setValue(t){if((0,n.OR)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}},91583:function(t,e,s){s.d(e,{r:()=>c});s(52247),s(71695),s(47021);var n=s(2841),i=s(45779),r=s(53232);const o=(t,e,s)=>{const n=new Map;for(let i=e;i<=s;i++)n.set(t[i],i);return n},c=(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,s){let n;void 0===s?s=e:void 0!==e&&(n=e);const i=[],r=[];let o=0;for(const c of t)i[o]=n?n(c,o):o,r[o]=s(c,o),o++;return{values:r,keys:i}}render(t,e,s){return this.ct(t,e,s).values}update(t,[e,s,i]){var c;const l=(0,r.i9)(t),{values:a,keys:d}=this.ct(e,s,i);if(!Array.isArray(l))return this.ut=d,a;const h=null!==(c=this.ut)&&void 0!==c?c:this.ut=[],u=[];let f,_,p=0,v=l.length-1,$=0,y=a.length-1;for(;p<=v&&$<=y;)if(null===l[p])p++;else if(null===l[v])v--;else if(h[p]===d[$])u[$]=(0,r.fk)(l[p],a[$]),p++,$++;else if(h[v]===d[y])u[y]=(0,r.fk)(l[v],a[y]),v--,y--;else if(h[p]===d[y])u[y]=(0,r.fk)(l[p],a[y]),(0,r._Y)(t,u[y+1],l[p]),p++,y--;else if(h[v]===d[$])u[$]=(0,r.fk)(l[v],a[$]),(0,r._Y)(t,l[p],l[v]),v--,$++;else if(void 0===f&&(f=o(d,$,y),_=o(h,p,v)),f.has(h[p]))if(f.has(h[v])){const e=_.get(d[$]),s=void 0!==e?l[e]:null;if(null===s){const e=(0,r._Y)(t,l[p]);(0,r.fk)(e,a[$]),u[$]=e}else u[$]=(0,r.fk)(s,a[$]),(0,r._Y)(t,l[p],s),l[e]=null;$++}else(0,r.ws)(l[v]),v--;else(0,r.ws)(l[p]),p++;for(;$<=y;){const e=(0,r._Y)(t,u[y+1]);(0,r.fk)(e,a[$]),u[$++]=e}for(;p<=v;){const t=l[p++];null!==t&&(0,r.ws)(t)}return this.ut=d,(0,r.hl)(t,u),n.Jb}})},94571:function(t,e,s){s.d(e,{C:()=>u});s(71695),s(9359),s(1331),s(40251),s(47021);var n=s(2841),i=s(53232),r=s(1714);s(14503);class o{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class c{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}var l=s(45779);const a=t=>!(0,i.pt)(t)&&"function"==typeof t.then,d=1073741823;class h extends r.sR{constructor(){super(...arguments),this._$C_t=d,this._$Cwt=[],this._$Cq=new o(this),this._$CK=new c}render(...t){var e;return null!==(e=t.find((t=>!a(t))))&&void 0!==e?e:n.Jb}update(t,e){const s=this._$Cwt;let i=s.length;this._$Cwt=e;const r=this._$Cq,o=this._$CK;this.isConnected||this.disconnected();for(let n=0;n<e.length&&!(n>this._$C_t);n++){const t=e[n];if(!a(t))return this._$C_t=n,t;n<i&&t===s[n]||(this._$C_t=d,i=0,Promise.resolve(t).then((async e=>{for(;o.get();)await o.get();const s=r.deref();if(void 0!==s){const n=s._$Cwt.indexOf(t);n>-1&&n<s._$C_t&&(s._$C_t=n,s.setValue(e))}})))}return n.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const u=(0,l.XM)(h)}}]); //# sourceMappingURL=39388.98e2e30ac5a4dae4.js.map