UNPKG

iobroker.lovelace

Version:

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

2 lines 9.45 kB
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["65186"],{68107:function(e,t,r){var n=r(40810),o=r(73994),a=r(63983),s=r(71998),i=r(4576);n({target:"Iterator",proto:!0,real:!0},{every:function(e){s(this),a(e);var t=i(this),r=0;return!o(t,(function(t,n){if(!e(t,r++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},48734:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{P5:()=>f,Ve:()=>m});var o=r(16485),a=(r(71695),r(9359),r(70104),r(19423),r(19134),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814),r(97003),r(47021),e([o]));o=(a.then?(await a)():a)[0];const i=new Set,c=new Map;let l,d="ltr",u="en";const h="undefined"!=typeof MutationObserver&&"undefined"!=typeof document&&void 0!==document.documentElement;if(h){const v=new MutationObserver(p);d=document.documentElement.dir||"ltr",u=document.documentElement.lang||navigator.language,v.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function f(...e){e.map((e=>{const t=e.$code.toLowerCase();c.has(t)?c.set(t,Object.assign(Object.assign({},c.get(t)),e)):c.set(t,e),l||(l=e)})),p()}function p(){h&&(d=document.documentElement.dir||"ltr",u=document.documentElement.lang||navigator.language),[...i.keys()].map((e=>{"function"==typeof e.requestUpdate&&e.requestUpdate()}))}class m{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){i.add(this.host)}hostDisconnected(){i.delete(this.host)}dir(){return`${this.host.dir||d}`.toLowerCase()}lang(){return`${this.host.lang||u}`.toLowerCase()}getTranslationData(e){var t,r;const n=new Intl.Locale(e.replace(/_/g,"-")),o=null==n?void 0:n.language.toLowerCase(),a=null!==(r=null===(t=null==n?void 0:n.region)||void 0===t?void 0:t.toLowerCase())&&void 0!==r?r:"";return{locale:n,language:o,region:a,primary:c.get(`${o}-${a}`),secondary:c.get(o)}}exists(e,t){var r;const{primary:n,secondary:o}=this.getTranslationData(null!==(r=t.lang)&&void 0!==r?r:this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[e]||o&&o[e]||t.includeFallback&&l&&l[e])}term(e,...t){const{primary:r,secondary:n}=this.getTranslationData(this.lang());let o;if(r&&r[e])o=r[e];else if(n&&n[e])o=n[e];else{if(!l||!l[e])return console.error(`No translation found for: ${String(e)}`),String(e);o=l[e]}return"function"==typeof o?o(...t):o}date(e,t){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),t).format(e)}number(e,t){return e=Number(e),isNaN(e)?"":new Intl.NumberFormat(this.lang(),t).format(e)}relativeTime(e,t,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(e,t)}}n()}catch(s){n(s)}}))},68783:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{A:()=>d});r(71695),r(47021);var o=r(64699),a=r(15073),s=r(81048),i=r(31027),c=r(57243),l=e([a]);a=(l.then?(await l)():l)[0];let u,h=e=>e;var d=class extends i.P{constructor(){super(...arguments),this.localize=new a.V(this)}render(){return(0,c.dy)(u||(u=h` <svg part="base" class="spinner" role="progressbar" aria-label="${0}"> <circle class="spinner__track"></circle> <circle class="spinner__indicator"></circle> </svg> `),this.localize.term("loading"))}};d.styles=[s.N,o.D],n()}catch(u){n(u)}}))},31027:function(e,t,r){r.d(t,{P:()=>i});r(71695),r(9359),r(31526),r(46692),r(47021);var n,o=r(52812),a=r(57243),s=r(50778),i=class extends a.oi{constructor(){super(),(0,o.Ko)(this,n,!1),this.initialReflectedProperties=new Map,Object.entries(this.constructor.dependencies).forEach((([e,t])=>{this.constructor.define(e,t)}))}emit(e,t){const r=new CustomEvent(e,(0,o.ih)({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(r),r}static define(e,t=this,r={}){const n=customElements.get(e);if(!n){try{customElements.define(e,t,r)}catch(s){customElements.define(e,class extends t{},r)}return}let o=" (unknown version)",a=o;"version"in t&&t.version&&(o=" v"+t.version),"version"in n&&n.version&&(a=" v"+n.version),o&&a&&o===a||console.warn(`Attempted to register <${e}>${o}, but <${e}>${a} has already been registered.`)}attributeChangedCallback(e,t,r){(0,o.ac)(this,n)||(this.constructor.elementProperties.forEach(((e,t)=>{e.reflect&&null!=this[t]&&this.initialReflectedProperties.set(t,this[t])})),(0,o.qx)(this,n,!0)),super.attributeChangedCallback(e,t,r)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach(((t,r)=>{e.has(r)&&null==this[r]&&(this[r]=t)}))}};n=new WeakMap,i.version="2.20.1",i.dependencies={},(0,o.u2)([(0,s.Cb)()],i.prototype,"dir",2),(0,o.u2)([(0,s.Cb)()],i.prototype,"lang",2)},15073:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{V:()=>i});var o=r(21262),a=r(48734),s=e([a,o]);[a,o]=s.then?(await s)():s;var i=class extends a.Ve{};(0,a.P5)(o.K),n()}catch(c){n(c)}}))},21262:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{K:()=>i});var o=r(48734),a=e([o]);o=(a.then?(await a)():a)[0];var s={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(e,t)=>`Go to slide ${e} of ${t}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:e=>0===e?"No options selected":1===e?"1 option selected":`${e} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:e=>`Slide ${e}`,toggleColorFormat:"Toggle color format"};(0,o.P5)(s);var i=s;n()}catch(c){n(c)}}))},64699:function(e,t,r){r.d(t,{D:()=>o});let n;var o=(0,r(57243).iv)(n||(n=(e=>e)`:host{--track-width:2px;--track-color:rgb(128 128 128 / 25%);--indicator-color:var(--sl-color-primary-600);--speed:2s;display:inline-flex;width:1em;height:1em;flex:none}.spinner{flex:1 1 auto;height:100%;width:100%}.spinner__indicator,.spinner__track{fill:none;stroke-width:var(--track-width);r:calc(0.5em - var(--track-width)/ 2);cx:0.5em;cy:0.5em;transform-origin:50% 50%}.spinner__track{stroke:var(--track-color);transform-origin:0% 0%}.spinner__indicator{stroke:var(--indicator-color);stroke-linecap:round;stroke-dasharray:150% 75%;animation:spin var(--speed) linear infinite}@keyframes spin{0%{transform:rotate(0deg);stroke-dasharray:0.05em,3em}50%{transform:rotate(450deg);stroke-dasharray:1.375em,1.375em}100%{transform:rotate(1080deg);stroke-dasharray:0.05em,3em}}`))},52812:function(e,t,r){r.d(t,{EZ:()=>f,Ko:()=>g,ac:()=>v,ih:()=>h,qx:()=>b,u2:()=>p});r(63721),r(52247),r(71695),r(40251),r(47021);var n=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=e=>{throw TypeError(e)},u=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&u(e,r,t[r]);if(i)for(var r of i(t))l.call(t,r)&&u(e,r,t[r]);return e},f=(e,t)=>o(e,s(t)),p=(e,t,r,o)=>{for(var s,i=o>1?void 0:o?a(t,r):t,c=e.length-1;c>=0;c--)(s=e[c])&&(i=(o?s(t,r,i):s(i))||i);return o&&i&&n(t,r,i),i},m=(e,t,r)=>t.has(e)||d("Cannot "+r),v=(e,t,r)=>(m(e,t,"read from private field"),r?r.call(e):t.get(e)),g=(e,t,r)=>t.has(e)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),b=(e,t,r,n)=>(m(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r)},81048:function(e,t,r){r.d(t,{N:()=>o});let n;var o=(0,r(57243).iv)(n||(n=(e=>e)`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`))},97677:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{Z:()=>o.A});var o=r(68783),a=(r(64699),r(15073)),s=r(21262),i=(r(81048),r(31027),r(52812),e([a,s,o]));[a,s,o]=i.then?(await i)():i,n()}catch(c){n(c)}}))},43580:function(e,t,r){r.d(t,{Z:()=>n.D});var n=r(64699);r(52812)},62212:function(e,t,r){r.d(t,{B:()=>a,_:()=>o});r(52247);var n=r(98330);const o=(e,t,r,o,a={unsubGrace:!0})=>{if(e[t])return e[t];let s,i,c=0,l=(0,n.M)();const d=()=>{if(!r)throw new Error("Collection does not support refresh");return r(e).then((e=>l.setState(e,!0)))},u=()=>d().catch((t=>{if(e.connected)throw t})),h=()=>{i=void 0,s&&s.then((e=>{e()})),l.clearState(),e.removeEventListener("ready",d),e.removeEventListener("disconnected",f)},f=()=>{i&&(clearTimeout(i),h())};return e[t]={get state(){return l.state},refresh:d,subscribe(t){c++,1===c&&(()=>{if(void 0!==i)return clearTimeout(i),void(i=void 0);o&&(s=o(e,l)),r&&(e.addEventListener("ready",u),u()),e.addEventListener("disconnected",f)})();const n=l.subscribe(t);return void 0!==l.state&&setTimeout((()=>t(l.state)),0),()=>{n(),c--,c||(a.unsubGrace?i=setTimeout(h,5e3):h())}}},e[t]},a=(e,t,r,n,a)=>o(n,e,t,r).subscribe(a)},98330:function(e,t,r){r.d(t,{M:()=>n});r(92745),r(19423),r(40251);const n=e=>{let t=[];function r(r,n){e=n?r:Object.assign(Object.assign({},e),r);let o=t;for(let t=0;t<o.length;t++)o[t](e)}return{get state(){return e},action(t){function n(e){r(e,!1)}return function(){let r=[e];for(let e=0;e<arguments.length;e++)r.push(arguments[e]);let o=t.apply(this,r);if(null!=o)return o instanceof Promise?o.then(n):n(o)}},setState:r,clearState(){e=void 0},subscribe(e){return t.push(e),()=>{!function(e){let r=[];for(let n=0;n<t.length;n++)t[n]===e?e=null:r.push(t[n]);t=r}(e)}}}}}}]); //# sourceMappingURL=65186.bc579191d177e1ab.js.map