UNPKG

iobroker.lovelace

Version:

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

17 lines 12.1 kB
/*! For license information please see 56404.29569764613a107c.js.LICENSE.txt */ "use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[56404],{48646:function(t,e,i){var s=i(69565),r=i(28551),o=i(1767),l=i(50851);t.exports=function(t,e){e&&"string"==typeof t||r(t);var i=l(t);return o(r(void 0!==i?s(i,t):t))}},78350:function(t,e,i){var s=i(46518),r=i(70259),o=i(79306),l=i(48981),a=i(26198),n=i(1469);s({target:"Array",proto:!0},{flatMap:function(t){var e,i=l(this),s=a(i);return o(t),e=n(i,0),r(e,i,i,s,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},30237:function(t,e,i){i(6469)("flatMap")},30531:function(t,e,i){var s=i(46518),r=i(69565),o=i(79306),l=i(28551),a=i(1767),n=i(48646),d=i(19462),m=i(9539),p=i(96395),c=i(30684),h=i(84549);var f=!p&&!c("flatMap",function(){}),y=!p&&!f&&h("flatMap",TypeError),u=p||f||y||function(){try{var t=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(t){return t});t.next(),t.return()}catch(e){return!0}}(),g=d(function(){for(var t,e,i=this.iterator,s=this.mapper;;){if(e=this.inner)try{if(!(t=l(r(e.next,e.iterator))).done)return t.value;this.inner=null}catch(o){m(i,"throw",o)}if(t=l(r(this.next,i)),this.done=!!t.done)return;try{this.inner=n(s(t.value,this.counter++),!1)}catch(o){m(i,"throw",o)}}});s({target:"Iterator",proto:!0,real:!0,forced:u},{flatMap:function(t){l(this);try{o(t)}catch(e){m(this,"throw",e)}return y?r(y,this,t):new g(a(this),{mapper:t,inner:null})}})},82553:function(t,e,i){i.d(e,{R:function(){return r}});let s;const r=(0,i(5124).AH)(s||(s=(t=>t)`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}@media(forced-colors:active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`))},58168:function(t,e,i){i.d(e,{n:function(){return M}});i(62953);var s=i(40445),r=(i(75275),i(67576)),o=(i(27495),i(5124));let l,a=t=>t;class n extends o.WF{render(){return(0,o.qy)(l||(l=a` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" @slotchange="${0}"></slot> <slot class="default-slot" @slotchange="${0}"></slot> <slot name="headline" @slotchange="${0}"></slot> <slot name="supporting-text" @slotchange="${0}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `),this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange)}handleTextSlotChange(){let t=!1,e=0;for(const i of this.textSlots)if(d(i)&&(e+=1),e>1){t=!0;break}this.multiline=t}constructor(){super(...arguments),this.multiline=!1}}function d(t){for(const i of t.assignedNodes({flatten:!0})){var e;const t=i.nodeType===Node.ELEMENT_NODE,s=i.nodeType===Node.TEXT_NODE&&(null===(e=i.textContent)||void 0===e?void 0:e.match(/\S/));if(t||s)return!0}return!1}(0,s.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],n.prototype,"multiline",void 0),(0,s.Cg)([(0,r.YG)(".text slot")],n.prototype,"textSlots",void 0);let m;const p=(0,o.AH)(m||(m=(t=>t)`:host{color:var(--md-sys-color-on-surface,#1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, .875rem);font-weight:var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}`));let c=class extends n{};c.styles=[p],c=(0,s.Cg)([(0,r.EM)("md-item")],c);i(71970);var h=i(6412),f=i(7872),y=i(1024),u=i(27525);let g,v,b,x,w,$,C,R,k=t=>t;const z=(0,y.n)(o.WF);class M extends z{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem((0,o.qy)(g||(g=k` <md-item> <div slot="container"> ${0} ${0} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${0} </md-item> `),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(t){const e="link"===this.type;let i;switch(this.type){case"link":i=(0,f.eu)(v||(v=k`a`));break;case"button":i=(0,f.eu)(b||(b=k`button`));break;default:i=(0,f.eu)(x||(x=k`li`))}const s="text"!==this.type,r=e&&this.target?this.target:o.s6;return(0,f.qy)(w||(w=k` <${0} id="item" tabindex="${0}" ?disabled=${0} role="listitem" aria-selected=${0} aria-checked=${0} aria-expanded=${0} aria-haspopup=${0} class="list-item ${0}" href=${0} target=${0} @focus=${0} >${0}</${0}> `),i,this.isDisabled||!s?-1:0,this.isDisabled,this.ariaSelected||o.s6,this.ariaChecked||o.s6,this.ariaExpanded||o.s6,this.ariaHasPopup||o.s6,(0,h.H)(this.getRenderClasses()),this.href||o.s6,r,this.onFocus,t,i)}renderRipple(){return"text"===this.type?o.s6:(0,o.qy)($||($=k` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.isDisabled)}renderFocusRing(){return"text"===this.type?o.s6:(0,o.qy)(C||(C=k` <md-focus-ring @visibility-changed="${0}" part="focus-ring" for="item" inward></md-focus-ring>`),this.onFocusRingVisibilityChanged)}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return(0,o.qy)(R||(R=k` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `))}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,u.cG)())}focus(){var t;null===(t=this.listItemRoot)||void 0===t||t.focus()}click(){this.listItemRoot?this.listItemRoot.click():super.click()}constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}}M.shadowRootOptions=Object.assign(Object.assign({},o.WF.shadowRootOptions),{},{delegatesFocus:!0}),(0,s.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],M.prototype,"disabled",void 0),(0,s.Cg)([(0,r.MZ)({reflect:!0})],M.prototype,"type",void 0),(0,s.Cg)([(0,r.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],M.prototype,"isListItem",void 0),(0,s.Cg)([(0,r.MZ)()],M.prototype,"href",void 0),(0,s.Cg)([(0,r.MZ)()],M.prototype,"target",void 0),(0,s.Cg)([(0,r.P)(".list-item")],M.prototype,"listItemRoot",void 0)},74985:function(t,e,i){i.d(e,{P:function(){return a}});i(88454),i(29452),i(62953);var s=i(5055),r=i(42017),o=i(63937);const l=t=>(0,o.ps)(t)?t._$litType$.h:t.strings,a=(0,r.u$)(class extends r.WL{render(t){return[t]}update(t,[e]){const i=(0,o.qb)(this.it)?l(this.it):null,r=(0,o.qb)(e)?l(e):null;if(null!==i&&(null===r||i!==r)){const e=(0,o.cN)(t).pop();let r=this.et.get(i);if(void 0===r){const t=document.createDocumentFragment();r=(0,s.XX)(s.s6,t),r.setConnected(!1),this.et.set(i,r)}(0,o.mY)(r,[e]),(0,o.Dx)(r,void 0,e)}if(null!==r){if(null===i||i!==r){const e=this.et.get(r);if(void 0!==e){const i=(0,o.cN)(e).pop();(0,o.Jz)(t),(0,o.Dx)(t,void 0,i),(0,o.mY)(t,[i])}}this.it=e}else this.it=void 0;return this.render(e)}constructor(t){super(t),this.et=new WeakMap}})}}]);