iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 12.5 kB
JavaScript
/*! For license information please see 68273.6a1023e879c9cd1b.js.LICENSE.txt */
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[68273],{35370:function(t,e,r){var s=r(26198);t.exports=function(t,e,r){for(var n=0,i=arguments.length>2?r:s(e),a=new t(i);i>n;)a[n]=e[n++];return a}},77957:function(t,e,r){var s=r(76080),n=r(79504),i=r(47055),a=r(48981),o=r(56969),l=r(26198),u=r(2360),c=r(35370),d=Array,h=n([].push);t.exports=function(t,e,r,n){for(var f,v,p,m=a(t),b=i(m),g=s(e,r),w=u(null),x=l(b),y=0;x>y;y++)p=b[y],(v=o(g(p,y,m)))in w?h(w[v],p):w[v]=[p];if(n&&(f=n(m))!==d)for(v in w)w[v]=c(f,w[v]);return w}},46058:function(t,e,r){var s=r(46518),n=r(77957),i=r(6469);s({target:"Array",proto:!0},{group:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),i("group")},88696:function(t,e,r){r.a(t,async function(t,s){try{r.d(e,{P:function(){return l}});var n=r(69235),i=(r(3362),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(62953),r(37540)),a=r(42017),o=t([n]);n=(o.then?(await o)():o)[0];class l{handleChanges(t){var e;this.value=null===(e=this.callback)||void 0===e?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}target(t){return u(this,t)}constructor(t,{target:e,config:r,callback:s,skipInitial:n}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(null!=e?e:t),this.l=r,this.o=null!=n?n:this.o,this.callback=s,window.ResizeObserver?(this.u=new ResizeObserver(t=>{this.handleChanges(t),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const u=(0,a.u$)(class extends i.Kq{render(t,e){}update(t,[e,r]){this.controller=e,this.part=t,this.observe=r,!1===r?(e.unobserve(t.element),this.observing=!1):!1===this.observing&&(e.observe(t.element),this.observing=!0)}disconnected(){var t;null!==(t=this.controller)&&void 0!==t&&t.unobserve(this.part.element),this.observing=!1}reconnected(){var t;!1!==this.observe&&!1===this.observing&&(null!==(t=this.controller)&&void 0!==t&&t.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}});s()}catch(l){s(l)}})},75275:function(t,e,r){var s=r(40445),n=r(67576),i=(r(89463),r(62953),r(5124)),a=r(76482);const o=["focusin","focusout","pointerdown"];class l extends i.WF{get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){var e,r;if(!t[u]){switch(t.type){default:return;case"focusin":this.visible=null!==(e=null===(r=this.control)||void 0===r?void 0:r.matches(":focus-visible"))&&void 0!==e&&e;break;case"focusout":case"pointerdown":this.visible=!1}t[u]=!0}}onControlChange(t,e){if(!i.S$)for(const r of o)null==t||t.removeEventListener(r,this),null==e||e.addEventListener(r,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new a.i(this,this.onControlChange.bind(this))}}(0,s.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const u=Symbol("handledByFocusRing");let c;const d=(0,i.AH)(c||(c=(t=>t)`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2,0,0,1);box-sizing:border-box;color:var(--md-focus-ring-color,var(--md-sys-color-secondary,#625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));inset:calc(-1*var(--md-focus-ring-outward-offset,2px));outline:var(--md-focus-ring-width,3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border:var(--md-focus-ring-width,3px) solid currentColor;inset:var(--md-focus-ring-inward-offset,0px)} outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}} outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}} inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}} inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}}{:host{animation:none}}`));let h=class extends l{};h.styles=[d],h=(0,s.Cg)([(0,n.EM)("md-focus-ring")],h)},1024:function(t,e,r){r.d(e,{n:function(){return u}});r(89463),r(27495),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(25440),r(62953);var s=r(5124);r(74423);const n=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],i=n.map(o);function a(t){return i.includes(t)}function o(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function u(t){var e;if(s.S$)return t;class r extends t{attributeChangedCallback(t,e,r){if(!a(t))return void super.attributeChangedCallback(t,e,r);if(this[l].has(t))return;this[l].add(t),this.removeAttribute(t),this[l].delete(t);const s=d(t);null===r?delete this.dataset[s]:this.dataset[s]=r,this.requestUpdate(d(t),e)}getAttribute(t){return a(t)?super.getAttribute(c(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),a(t)&&(super.removeAttribute(c(t)),this.requestUpdate())}constructor(){super(...arguments),this[e]=new Set}}return e=l,function(t){for(const e of n){const r=o(e),s=c(r),n=d(r);t.createProperty(e,{attribute:r,noAccessor:!0}),t.createProperty(Symbol(s),{attribute:s,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){var t;return null!==(t=this.dataset[n])&&void 0!==t?t:null},set(t){var r;const s=null!==(r=this.dataset[n])&&void 0!==r?r:null;t!==s&&(null===t?delete this.dataset[n]:this.dataset[n]=t,this.requestUpdate(e,s))}})}}(r),r}function c(t){return`data-${t}`}function d(t){return t.replace(/-\w/,t=>t[1].toUpperCase())}},71970:function(t,e,r){var s=r(40445),n=r(67576),i=r(91382),a=r(96245);let o=class extends i.n{};o.styles=[a.R],o=(0,s.Cg)([(0,n.EM)("md-ripple")],o)},95192:function(t,e,r){r.d(e,{IU:function(){return u},Jt:function(){return o},Yd:function(){return s},hZ:function(){return l},y$:function(){return n}});r(44114),r(18111),r(7588),r(61701),r(3362),r(62953);function s(t){return new Promise((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)})}function n(t,e){let r;return(n,i)=>(()=>{if(r)return r;const n=indexedDB.open(t);return n.onupgradeneeded=()=>n.result.createObjectStore(e),r=s(n),r.then(t=>{t.onclose=()=>r=void 0},()=>{}),r})().then(t=>i(t.transaction(e,n).objectStore(e)))}let i;function a(){return i||(i=n("keyval-store","keyval")),i}function o(t,e=a()){return e("readonly",e=>s(e.get(t)))}function l(t,e,r=a()){return r("readwrite",r=>(r.put(e,t),s(r.transaction)))}function u(t=a()){return t("readwrite",t=>(t.clear(),s(t.transaction)))}},37540:function(t,e,r){r.d(e,{Kq:function(){return d}});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(62953);var s=r(63937),n=r(42017);const i=(t,e)=>{const r=t._$AN;if(void 0===r)return!1;for(const n of r){var s;null!==(s=n._$AO)&&void 0!==s&&s.call(n,e,!1),i(n,e)}return!0},a=t=>{let e,r;do{var s;if(void 0===(e=t._$AM))break;r=e._$AN,r.delete(t),t=e}while(0===(null===(s=r)||void 0===s?void 0:s.size))},o=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(void 0===r)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),c(e)}};function l(t){void 0!==this._$AN?(a(this),this._$AM=t,o(this)):this._$AM=t}function u(t,e=!1,r=0){const s=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(s))for(let o=r;o<s.length;o++)i(s[o],!1),a(s[o]);else null!=s&&(i(s,!1),a(s));else i(this,t)}const c=t=>{var e,r;t.type==n.OA.CHILD&&(null!==(e=t._$AP)&&void 0!==e||(t._$AP=u),null!==(r=t._$AQ)&&void 0!==r||(t._$AQ=l))};class d extends n.WL{_$AT(t,e,r){super._$AT(t,e,r),o(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,s;t!==this.isConnected&&(this.isConnected=t,t?null===(r=this.reconnected)||void 0===r||r.call(this):null===(s=this.disconnected)||void 0===s||s.call(this)),e&&(i(this,t),a(this))}setValue(t){if((0,s.Rt)(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(){}constructor(){super(...arguments),this._$AN=void 0}}},75751:function(t,e,r){r.d(e,{u:function(){return o}});r(16280),r(45367),r(92731),r(62953);var s=r(5055),n=r(42017),i=r(63937);const a=(t,e,r)=>{const s=new Map;for(let n=e;n<=r;n++)s.set(t[n],n);return s},o=(0,n.u$)(class extends n.WL{dt(t,e,r){let s;void 0===r?r=e:void 0!==e&&(s=e);const n=[],i=[];let a=0;for(const o of t)n[a]=s?s(o,a):a,i[a]=r(o,a),a++;return{values:i,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){var o;const l=(0,i.cN)(t),{values:u,keys:c}=this.dt(e,r,n);if(!Array.isArray(l))return this.ut=c,u;const d=null!==(o=this.ut)&&void 0!==o?o:this.ut=[],h=[];let f,v,p=0,m=l.length-1,b=0,g=u.length-1;for(;p<=m&&b<=g;)if(null===l[p])p++;else if(null===l[m])m--;else if(d[p]===c[b])h[b]=(0,i.lx)(l[p],u[b]),p++,b++;else if(d[m]===c[g])h[g]=(0,i.lx)(l[m],u[g]),m--,g--;else if(d[p]===c[g])h[g]=(0,i.lx)(l[p],u[g]),(0,i.Dx)(t,h[g+1],l[p]),p++,g--;else if(d[m]===c[b])h[b]=(0,i.lx)(l[m],u[b]),(0,i.Dx)(t,l[p],l[m]),m--,b++;else if(void 0===f&&(f=a(c,b,g),v=a(d,p,m)),f.has(d[p]))if(f.has(d[m])){const e=v.get(c[b]),r=void 0!==e?l[e]:null;if(null===r){const e=(0,i.Dx)(t,l[p]);(0,i.lx)(e,u[b]),h[b]=e}else h[b]=(0,i.lx)(r,u[b]),(0,i.Dx)(t,l[p],r),l[e]=null;b++}else(0,i.KO)(l[m]),m--;else(0,i.KO)(l[p]),p++;for(;b<=g;){const e=(0,i.Dx)(t,h[g+1]);(0,i.lx)(e,u[b]),h[b++]=e}for(;p<=m;){const t=l[p++];null!==t&&(0,i.KO)(t)}return this.ut=c,(0,i.mY)(t,h),s.c0}constructor(t){if(super(t),t.type!==n.OA.CHILD)throw Error("repeat() can only be used in text expressions")}})}}]);