UNPKG

iobroker.lovelace

Version:

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

5 lines 10.3 kB
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["65804"],{17170:function(e,t,r){r.a(e,(async function(e,n){try{r.r(t),r.d(t,{HaSpinner:()=>p});var o=r(61701),i=r(72621),s=(r(71695),r(47021),r(97677)),a=r(43580),l=r(57243),c=r(50778),d=e([s]);s=(d.then?(await d)():d)[0];let h,u=e=>e,p=(0,o.Z)([(0,c.Mo)("ha-spinner")],(function(e,t){class r extends t{constructor(...t){super(...t),e(this)}}return{F:r,d:[{kind:"field",decorators:[(0,c.Cb)()],key:"size",value:void 0},{kind:"method",key:"updated",value:function(e){if((0,i.Z)(r,"updated",this,3)([e]),e.has("size"))switch(this.size){case"tiny":this.style.setProperty("--ha-spinner-size","16px");break;case"small":this.style.setProperty("--ha-spinner-size","28px");break;case"medium":this.style.setProperty("--ha-spinner-size","48px");break;case"large":this.style.setProperty("--ha-spinner-size","68px");break;case void 0:this.style.removeProperty("--ha-progress-ring-size")}}},{kind:"field",static:!0,key:"styles",value(){return[a.Z,(0,l.iv)(h||(h=u`:host{--indicator-color:var( --ha-spinner-indicator-color, var(--primary-color) );--track-color:var(--ha-spinner-divider-color, var(--divider-color));--track-width:4px;--speed:3.5s;font-size:var(--ha-spinner-size, 48px)}`))]}}]}}),s.Z);n()}catch(h){n(h)}}))},16485:function(e,t,r){r.a(e,(async function(e,t){try{r(71695),r(92745),r(40251),r(47021);var n=r(61449),o=r(40574),i=r(30532),s=r(41674),a=r(49722),l=r(76632),c=r(7884),d=r(35185),h=r(65401),u=r(44180),p=r(49447);const e=async()=>{const e=(0,u.sS)(),t=[];(0,i.shouldPolyfill)()&&await Promise.all([r.e("80210"),r.e("74055")]).then(r.bind(r,98133)),(0,a.shouldPolyfill)()&&await Promise.all([r.e("2142"),r.e("75297"),r.e("80210"),r.e("60251")]).then(r.bind(r,59095)),(0,n.shouldPolyfill)(e)&&t.push(Promise.all([r.e("2142"),r.e("75297"),r.e("68250")]).then(r.bind(r,80561)).then((()=>(0,p.H)()))),(0,h.shouldPolyfill)()&&t.push(Promise.all([r.e("2142"),r.e("75297"),r.e("65578")]).then(r.bind(r,97995))),(0,o.shouldPolyfill)(e)&&t.push(Promise.all([r.e("2142"),r.e("75297"),r.e("59826")]).then(r.bind(r,31514))),(0,s.shouldPolyfill)(e)&&t.push(Promise.all([r.e("2142"),r.e("75297"),r.e("23649")]).then(r.bind(r,93840))),(0,l.shouldPolyfill)(e)&&t.push(Promise.all([r.e("2142"),r.e("75297"),r.e("42831")]).then(r.bind(r,29559))),(0,c.shouldPolyfill)(e)&&t.push(Promise.all([r.e("2142"),r.e("75297"),r.e("57377")]).then(r.bind(r,39030)).then((()=>r.e("61236").then(r.t.bind(r,4121,23))))),(0,d.shouldPolyfill)(e)&&t.push(Promise.all([r.e("2142"),r.e("75297"),r.e("13870")]).then(r.bind(r,74546))),0!==t.length&&await Promise.all(t).then((()=>(0,p.n)(e)))};await e(),t()}catch(m){t(m)}}),1)},48734:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{P5:()=>p,Ve:()=>f});var o=r(16485),i=(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=(i.then?(await i)():i)[0];const a=new Set,l=new Map;let c,d="ltr",h="en";const u="undefined"!=typeof MutationObserver&&"undefined"!=typeof document&&void 0!==document.documentElement;if(u){const v=new MutationObserver(m);d=document.documentElement.dir||"ltr",h=document.documentElement.lang||navigator.language,v.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function p(...e){e.map((e=>{const t=e.$code.toLowerCase();l.has(t)?l.set(t,Object.assign(Object.assign({},l.get(t)),e)):l.set(t,e),c||(c=e)})),m()}function m(){u&&(d=document.documentElement.dir||"ltr",h=document.documentElement.lang||navigator.language),[...a.keys()].map((e=>{"function"==typeof e.requestUpdate&&e.requestUpdate()}))}class f{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){a.add(this.host)}hostDisconnected(){a.delete(this.host)}dir(){return`${this.host.dir||d}`.toLowerCase()}lang(){return`${this.host.lang||h}`.toLowerCase()}getTranslationData(e){var t,r;const n=new Intl.Locale(e.replace(/_/g,"-")),o=null==n?void 0:n.language.toLowerCase(),i=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:i,primary:l.get(`${o}-${i}`),secondary:l.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&&c&&c[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(!c||!c[e])return console.error(`No translation found for: ${String(e)}`),String(e);o=c[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),i=r(15073),s=r(81048),a=r(31027),l=r(57243),c=e([i]);i=(c.then?(await c)():c)[0];let h,u=e=>e;var d=class extends a.P{constructor(){super(...arguments),this.localize=new i.V(this)}render(){return(0,l.dy)(h||(h=u` <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(h){n(h)}}))},31027:function(e,t,r){r.d(t,{P:()=>a});r(71695),r(9359),r(31526),r(46692),r(47021);var n,o=r(52812),i=r(57243),s=r(50778),a=class extends i.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)",i=o;"version"in t&&t.version&&(o=" v"+t.version),"version"in n&&n.version&&(i=" v"+n.version),o&&i&&o===i||console.warn(`Attempted to register <${e}>${o}, but <${e}>${i} 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,a.version="2.20.1",a.dependencies={},(0,o.u2)([(0,s.Cb)()],a.prototype,"dir",2),(0,o.u2)([(0,s.Cb)()],a.prototype,"lang",2)},15073:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{V:()=>a});var o=r(21262),i=r(48734),s=e([i,o]);[i,o]=s.then?(await s)():s;var a=class extends i.Ve{};(0,i.P5)(o.K),n()}catch(l){n(l)}}))},21262:function(e,t,r){r.a(e,(async function(e,n){try{r.d(t,{K:()=>a});var o=r(48734),i=e([o]);o=(i.then?(await i)():i)[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 a=s;n()}catch(l){n(l)}}))},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:()=>p,Ko:()=>y,ac:()=>v,ih:()=>u,qx:()=>g,u2:()=>m});r(63721),r(52247),r(71695),r(40251),r(47021);var n=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,d=e=>{throw TypeError(e)},h=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&h(e,r,t[r]);if(a)for(var r of a(t))c.call(t,r)&&h(e,r,t[r]);return e},p=(e,t)=>o(e,s(t)),m=(e,t,r,o)=>{for(var s,a=o>1?void 0:o?i(t,r):t,l=e.length-1;l>=0;l--)(s=e[l])&&(a=(o?s(t,r,a):s(a))||a);return o&&a&&n(t,r,a),a},f=(e,t,r)=>t.has(e)||d("Cannot "+r),v=(e,t,r)=>(f(e,t,"read from private field"),r?r.call(e):t.get(e)),y=(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),g=(e,t,r,n)=>(f(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),i=(r(64699),r(15073)),s=r(21262),a=(r(81048),r(31027),r(52812),e([i,s,o]));[i,s,o]=a.then?(await a)():a,n()}catch(l){n(l)}}))},43580:function(e,t,r){r.d(t,{Z:()=>n.D});var n=r(64699);r(52812)}}]); //# sourceMappingURL=65804.f4b6e5a70f65b2d3.js.map