UNPKG

iobroker.lovelace

Version:

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

2 lines 11 kB
/*! For license information please see 66716.2836a0706c38de24.js.LICENSE.txt */ export const __rspack_esm_id=66716;export const __rspack_esm_ids=[66716];export const __webpack_modules__={77957(e,t,s){var a=s(76080),i=s(79504),r=s(47055),o=s(48981),n=s(56969),l=s(26198),c=s(2360),d=s(35370),h=Array,p=i([].push);e.exports=function(e,t,s,i){for(var v,u,b,m=o(e),y=r(m),f=a(t,s),_=c(null),g=l(y),$=0;g>$;$++)b=y[$],(u=n(f(b,$,m)))in _?p(_[u],b):_[u]=[b];if(i&&(v=i(m))!==h)for(u in _)_[u]=d(v,_[u]);return _}},46058(e,t,s){var a=s(46518),i=s(77957),r=s(6469);a({target:"Array",proto:!0},{group:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r("group")},88696(e,t,s){s.d(t,{P:()=>r});s(17642),s(58004),s(33853),s(45876),s(32475),s(15024),s(31698);var a=s(37540),i=s(42017);class r{handleChanges(e){this.value=this.callback?.(e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(e){this.t.add(e),this.u.observe(e,this.l),this.i=!0,this.h.requestUpdate()}unobserve(e){this.t.delete(e),this.u.unobserve(e)}disconnect(){this.u.disconnect()}target(e){return o(this,e)}constructor(e,{target:t,config:s,callback:a,skipInitial:i}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,null!==t&&this.t.add(t??e),this.l=s,this.o=i??this.o,this.callback=a,window.ResizeObserver?(this.u=new ResizeObserver(e=>{this.handleChanges(e),this.h.requestUpdate()}),e.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const o=(0,i.u$)(class extends a.Kq{render(e,t){}update(e,[t,s]){this.controller=t,this.part=e,this.observe=s,!1===s?(t.unobserve(e.element),this.observing=!1):!1===this.observing&&(t.observe(e.element),this.observing=!0)}disconnected(){this.controller?.unobserve(this.part.element),this.observing=!1}reconnected(){!1!==this.observe&&!1===this.observing&&(this.controller?.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}})},96229(e,t,s){s.d(t,{k:()=>n});var a=s(62826),i=(s(73535),s(5124)),r=s(22441),o=s(99591);class n extends o.v{get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&(this.disabled||this.softDisabled)}getContainerClasses(){return{...super.getContainerClasses(),disabled:!this.href&&(this.disabled||this.softDisabled),elevated:this.elevated,link:!!this.href}}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?i.qy` <a class="primary action" id="link" aria-label="${t||i.s6}" href="${this.href}" download="${this.download||i.s6}" target="${this.target||i.s6}">${e}</a> `:i.qy` <button class="primary action" id="button" aria-label="${t||i.s6}" aria-disabled="${this.softDisabled||i.s6}" ?disabled="${this.disabled&&!this.alwaysFocusable}" type="button">${e}</button> `}renderOutline(){return this.elevated?i.qy`<md-elevation part="elevation"></md-elevation>`:super.renderOutline()}constructor(){super(...arguments),this.elevated=!1,this.href="",this.download="",this.target=""}}(0,a.Cg)([(0,r.MZ)({type:Boolean})],n.prototype,"elevated",void 0),(0,a.Cg)([(0,r.MZ)()],n.prototype,"href",void 0),(0,a.Cg)([(0,r.MZ)()],n.prototype,"download",void 0),(0,a.Cg)([(0,r.MZ)()],n.prototype,"target",void 0)},26069(e,t,s){s.d(t,{R:()=>a});const a=s(5124).AH`:host{--_container-height:var(--md-assist-chip-container-height, 32px);--_disabled-label-text-color:var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity:var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color:var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation:var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color:var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color:var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation:var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity:var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation:var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation:var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation:var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color:var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color:var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color:var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity:var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color:var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font:var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height:var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size:var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight:var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color:var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color:var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity:var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color:var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity:var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color:var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color:var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width:var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color:var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity:var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color:var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color:var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color:var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size:var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color:var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start:var(--md-assist-chip-container-shape-start-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end:var(--md-assist-chip-container-shape-start-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end:var(--md-assist-chip-container-shape-end-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start:var(--md-assist-chip-container-shape-end-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space:var(--md-assist-chip-leading-space, 16px);--_trailing-space:var(--md-assist-chip-trailing-space, 16px);--_icon-label-space:var(--md-assist-chip-icon-label-space, 8px);--_with-leading-icon-leading-space:var(--md-assist-chip-with-leading-icon-leading-space, 8px)}@media(forced-colors:active){.link .outline{border-color:ActiveText}}`},95192(e,t,s){s.d(t,{IU:()=>c,Jt:()=>n,Yd:()=>a,hZ:()=>l,y$:()=>i});s(44114),s(18111),s(7588),s(61701);function a(e){return new Promise((t,s)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>s(e.error)})}function i(e,t){let s;return(i,r)=>(()=>{if(s)return s;const i=indexedDB.open(e);return i.onupgradeneeded=()=>i.result.createObjectStore(t),s=a(i),s.then(e=>{e.onclose=()=>s=void 0},()=>{}),s})().then(e=>r(e.transaction(t,i).objectStore(t)))}let r;function o(){return r||(r=i("keyval-store","keyval")),r}function n(e,t=o()){return t("readonly",t=>a(t.get(e)))}function l(e,t,s=o()){return s("readwrite",s=>(s.put(t,e),a(s.transaction)))}function c(e=o()){return e("readwrite",e=>(e.clear(),a(e.transaction)))}},37540(e,t,s){s.d(t,{Kq:()=>h});s(17642),s(58004),s(33853),s(45876),s(32475),s(15024),s(31698);var a=s(63937),i=s(42017);const r=(e,t)=>{const s=e._$AN;if(void 0===s)return!1;for(const e of s)e._$AO?.(t,!1),r(e,t);return!0},o=e=>{let t,s;do{if(void 0===(t=e._$AM))break;s=t._$AN,s.delete(e),e=t}while(0===s?.size)},n=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(void 0===s)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),d(t)}};function l(e){void 0!==this._$AN?(o(this),this._$AM=e,n(this)):this._$AM=e}function c(e,t=!1,s=0){const a=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(a))for(let e=s;e<a.length;e++)r(a[e],!1),o(a[e]);else null!=a&&(r(a,!1),o(a));else r(this,e)}const d=e=>{e.type==i.OA.CHILD&&(e._$AP??=c,e._$AQ??=l)};class h extends i.WL{_$AT(e,t,s){super._$AT(e,t,s),n(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(r(this,e),o(this))}setValue(e){if((0,a.Rt)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}constructor(){super(...arguments),this._$AN=void 0}}},89784(e,t,s){s.d(t,{W:()=>n});s(74423),s(18111),s(18237),s(17642),s(58004),s(33853),s(45876),s(32475),s(15024),s(31698);var a=s(5055),i=s(42017);const r="important",o=" !"+r,n=(0,i.u$)(class extends i.WL{render(e){return Object.keys(e).reduce((t,s)=>{const a=e[s];return null==a?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${a};`},"")}update(e,[t]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?s.removeProperty(e):s[e]=null);for(const e in t){const a=t[e];if(null!=a){this.ft.add(e);const t="string"==typeof a&&a.endsWith(o);e.includes("-")||t?s.setProperty(e,t?a.slice(0,-11):a,t?r:""):s[e]=a}}return a.c0}constructor(e){if(super(e),e.type!==i.OA.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})}};