iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
17 lines • 25.5 kB
JavaScript
/*! For license information please see 88854.a0dc05340f3d01cd.js.LICENSE.txt */
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[88854],{35370:function(t,e,i){var r=i(26198);t.exports=function(t,e,i){for(var s=0,a=arguments.length>2?i:r(e),o=new t(a);a>s;)o[s]=e[s++];return o}},48345:function(t,e,i){var r=i(72805);(0,i(94644).exportTypedArrayStaticMethod)("from",i(43251),r)},65686:function(t,e,i){i.a(t,async function(t,r){try{i.d(e,{A:function(){return y}});i(62953);var s=i(5124),a=i(67576),o=i(89784),n=i(717),l=i(17060),c=i(42320),d=t([l]);l=(d.then?(await d)():d)[0];let p,f,v,g=t=>t;var u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,m=(t,e,i,r)=>{for(var s,a=r>1?void 0:r?h(e,i):e,o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r?s(e,i,a):s(a))||a);return r&&a&&u(e,i,a),a};let y=class extends n.A{updated(t){if(super.updated(t),t.has("value")){const t=parseFloat(getComputedStyle(this.indicator).getPropertyValue("r")),e=2*Math.PI*t,i=e-this.value/100*e;this.indicatorOffset=`${i}px`}}render(){return(0,s.qy)(p||(p=g` <div part="base" class="progress-ring" role="progressbar" aria-label="${0}" aria-describedby="label" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${0}" style="${0}"> <svg class="image"> <circle part="track" class="track"></circle> <circle part="indicator" class="indicator" style="${0}"></circle> </svg> <slot id="label" part="label" class="label"></slot> </div> `),this.label.length>0?this.label:this.localize.term("progress"),this.value,(0,o.W)({"--percentage":this.value/100}),(0,o.W)({"stroke-dashoffset":this.indicatorOffset}))}constructor(){super(...arguments),this.localize=new l.c(this),this.value=0,this.label=""}};y.css=c.A,m([(0,a.P)(".indicator")],y.prototype,"indicator",2),m([(0,a.wk)()],y.prototype,"indicatorOffset",2),m([(0,a.MZ)({type:Number,reflect:!0})],y.prototype,"value",2),m([(0,a.MZ)()],y.prototype,"label",2),y=m([(0,a.EM)("wa-progress-ring")],y),null===(f=(v=y).disableWarning)||void 0===f||f.call(v,"change-in-update"),r()}catch(p){r(p)}})},42320:function(t,e,i){i.d(e,{A:function(){return s}});let r;var s=(0,i(5124).AH)(r||(r=(t=>t)`:host{--size:8rem;--track-width:0.25em;--track-color:var(--wa-color-neutral-fill-normal);--indicator-width:var(--track-width);--indicator-color:var(--wa-color-brand-fill-loud);--indicator-transition-duration:0.35s;display:inline-flex}.progress-ring{display:inline-flex;align-items:center;justify-content:center;position:relative}.image{width:var(--size);height:var(--size);rotate:-90deg;transform-origin:50% 50%}.indicator,.track{--radius:calc(var(--size) / 2 - max(var(--track-width), var(--indicator-width)) * 0.5);--circumference:calc(var(--radius) * 2 * 3.141592654);fill:none;r:var(--radius);cx:calc(var(--size)/ 2);cy:calc(var(--size)/ 2)}.track{stroke:var(--track-color);stroke-width:var(--track-width)}.indicator{stroke:var(--indicator-color);stroke-width:var(--indicator-width);stroke-linecap:round;transition-property:stroke-dashoffset;transition-duration:var(--indicator-transition-duration);stroke-dasharray:var(--circumference) var(--circumference);stroke-dashoffset:calc(var(--circumference) - var(--percentage) * var(--circumference))}.label{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;user-select:none;-webkit-user-select:none}`))},75275:function(t,e,i){var r=i(40445),s=i(67576),a=(i(89463),i(62953),i(5124)),o=i(76482);const n=["focusin","focusout","pointerdown"];class l extends a.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,i;if(!t[c]){switch(t.type){default:return;case"focusin":this.visible=null!==(e=null===(i=this.control)||void 0===i?void 0:i.matches(":focus-visible"))&&void 0!==e&&e;break;case"focusout":case"pointerdown":this.visible=!1}t[c]=!0}}onControlChange(t,e){if(!a.S$)for(const i of n)null==t||t.removeEventListener(i,this),null==e||e.addEventListener(i,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 o.i(this,this.onControlChange.bind(this))}}(0,r.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const c=Symbol("handledByFocusRing");let d;const u=(0,a.AH)(d||(d=(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=[u],h=(0,r.Cg)([(0,s.EM)("md-focus-ring")],h)},1024:function(t,e,i){i.d(e,{n:function(){return c}});i(89463),i(27495),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(25440),i(62953);var r=i(5124);i(74423);const s=["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"],a=s.map(n);function o(t){return a.includes(t)}function n(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function c(t){var e;if(r.S$)return t;class i extends t{attributeChangedCallback(t,e,i){if(!o(t))return void super.attributeChangedCallback(t,e,i);if(this[l].has(t))return;this[l].add(t),this.removeAttribute(t),this[l].delete(t);const r=u(t);null===i?delete this.dataset[r]:this.dataset[r]=i,this.requestUpdate(u(t),e)}getAttribute(t){return o(t)?super.getAttribute(d(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),o(t)&&(super.removeAttribute(d(t)),this.requestUpdate())}constructor(){super(...arguments),this[e]=new Set}}return e=l,function(t){for(const e of s){const i=n(e),r=d(i),s=u(i);t.createProperty(e,{attribute:i,noAccessor:!0}),t.createProperty(Symbol(r),{attribute:r,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){var t;return null!==(t=this.dataset[s])&&void 0!==t?t:null},set(t){var i;const r=null!==(i=this.dataset[s])&&void 0!==i?i:null;t!==r&&(null===t?delete this.dataset[s]:this.dataset[s]=t,this.requestUpdate(e,r))}})}}(i),i}function d(t){return`data-${t}`}function u(t){return t.replace(/-\w/,t=>t[1].toUpperCase())}},25423:function(t,e,i){i.d(e,{U:function(){return s},Z:function(){return a}});i(44114),i(62953);var r=i(27525);const s={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class a{get items(){const t=this.getPossibleItems(),e=[];for(const i of t){if(this.isItem(i)){e.push(i);continue}const t=i.item;t&&this.isItem(t)&&e.push(t)}return e}activateNextItem(){const t=this.items,e=(0,r.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,r.wm)(t,e,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const t=this.items,e=(0,r.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,r.u9)(t,e,this.isActivatable,this.wrapNavigation())}constructor(t){this.handleKeydown=t=>{const e=t.key;if(t.defaultPrevented||!this.isNavigableKey(e))return;const i=this.items;if(!i.length)return;const a=(0,r.A6)(i,this.isActivatable);t.preventDefault();const o=this.isRtl(),n=o?s.ArrowRight:s.ArrowLeft,l=o?s.ArrowLeft:s.ArrowRight;let c=null;switch(e){case s.ArrowDown:case l:c=(0,r.wm)(i,a,this.isActivatable,this.wrapNavigation());break;case s.ArrowUp:case n:c=(0,r.u9)(i,a,this.isActivatable,this.wrapNavigation());break;case s.Home:c=(0,r.zT)(i,this.isActivatable);break;case s.End:c=(0,r.RZ)(i,this.isActivatable)}c&&a&&a.item!==c&&(a.item.tabIndex=-1)},this.onDeactivateItems=()=>{const t=this.items;for(const e of t)this.deactivateItem(e)},this.onRequestActivation=t=>{this.onDeactivateItems();const e=t.target;this.activateItem(e),e.focus()},this.onSlotchange=()=>{const t=this.items;let e=!1;for(const r of t){!(!r.disabled&&r.tabIndex>-1)||e?r.tabIndex=-1:(e=!0,r.tabIndex=0)}if(e)return;const i=(0,r.c7)(t,this.isActivatable);i&&(i.tabIndex=0)};const{isItem:e,getPossibleItems:i,isRtl:a,deactivateItem:o,activateItem:n,isNavigableKey:l,isActivatable:c,wrapNavigation:d}=t;this.isItem=e,this.getPossibleItems=i,this.isRtl=a,this.deactivateItem=o,this.activateItem=n,this.isNavigableKey=l,this.isActivatable=c,this.wrapNavigation=null!=d?d:()=>!0}}},27525:function(t,e,i){i.d(e,{A6:function(){return o},Ex:function(){return l},RN:function(){return u},RZ:function(){return s},c7:function(){return n},cG:function(){return h},u9:function(){return d},ub:function(){return a},wm:function(){return c},zT:function(){return r}});i(62953);function r(t,e=m){const i=n(t,e);return i&&(i.tabIndex=0,i.focus()),i}function s(t,e=m){const i=l(t,e);return i&&(i.tabIndex=0,i.focus()),i}function a(t,e=m){const i=o(t,e);return i&&(i.item.tabIndex=-1),i}function o(t,e=m){for(let i=0;i<t.length;i++){const r=t[i];if(0===r.tabIndex&&e(r))return{item:r,index:i}}return null}function n(t,e=m){for(const i of t)if(e(i))return i;return null}function l(t,e=m){for(let i=t.length-1;i>=0;i--){const r=t[i];if(e(r))return r}return null}function c(t,e,i=m,s=!0){if(e){const r=function(t,e,i=m,r=!0){for(let s=1;s<t.length;s++){const a=(s+e)%t.length;if(a<e&&!r)return null;const o=t[a];if(i(o))return o}return t[e]?t[e]:null}(t,e.index,i,s);return r&&(r.tabIndex=0,r.focus()),r}return r(t,i)}function d(t,e,i=m,r=!0){if(e){const s=function(t,e,i=m,r=!0){for(let s=1;s<t.length;s++){const a=(e-s+t.length)%t.length;if(a>e&&!r)return null;const o=t[a];if(i(o))return o}return t[e]?t[e]:null}(t,e.index,i,r);return s&&(s.tabIndex=0,s.focus()),s}return s(t,i)}function u(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function h(){return new Event("request-activation",{bubbles:!0,composed:!0})}function m(t){return!t.disabled}},11245:function(t,e,i){i.d(e,{R:function(){return s}});let r;const s=(0,i(5124).AH)(r||(r=(t=>t)`:host{background:var(--md-list-container-color,var(--md-sys-color-surface,#fef7ff));color:unset;display:flex;flex-direction:column;outline:0;padding:8px 0;position:relative}`))},49838:function(t,e,i){i.d(e,{B:function(){return d}});i(93775),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(62953);var r=i(40445),s=i(5124),a=i(67576),o=i(25423);let n,l=t=>t;const c=new Set(Object.values(o.U));class d extends s.WF{get items(){return this.listController.items}render(){return(0,s.qy)(n||(n=l` <slot -items="${0}" -activation="${0}" ="${0}"> </slot> `),this.listController.onDeactivateItems,this.listController.onRequestActivation,this.listController.onSlotchange)}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}constructor(){super(),this.listController=new o.Z({isItem:t=>t.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:t=>{t.tabIndex=-1},activateItem:t=>{t.tabIndex=0},isNavigableKey:t=>c.has(t),isActivatable:t=>!t.disabled&&"text"!==t.type}),this.internals=this.attachInternals(),s.S$||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}}(0,r.Cg)([(0,a.KN)({flatten:!0})],d.prototype,"slotItems",void 0)},82553:function(t,e,i){i.d(e,{R:function(){return s}});let r;const s=(0,i(5124).AH)(r||(r=(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))}{.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`))},58168:function(t,e,i){i.d(e,{n:function(){return $}});i(62953);var r=i(40445),s=(i(75275),i(67576)),a=(i(27495),i(5124));let o,n=t=>t;class l extends a.WF{render(){return(0,a.qy)(o||(o=n` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" ="${0}"></slot> <slot class="default-slot" ="${0}"></slot> <slot name="headline" ="${0}"></slot> <slot name="supporting-text" ="${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(c(i)&&(e+=1),e>1){t=!0;break}this.multiline=t}constructor(){super(...arguments),this.multiline=!1}}function c(t){for(const i of t.assignedNodes({flatten:!0})){var e;const t=i.nodeType===Node.ELEMENT_NODE,r=i.nodeType===Node.TEXT_NODE&&(null===(e=i.textContent)||void 0===e?void 0:e.match(/\S/));if(t||r)return!0}return!1}(0,r.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],l.prototype,"multiline",void 0),(0,r.Cg)([(0,s.YG)(".text slot")],l.prototype,"textSlots",void 0);let d;const u=(0,a.AH)(d||(d=(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 h=class extends l{};h.styles=[u],h=(0,r.Cg)([(0,s.EM)("md-item")],h);i(71970);var m=i(6412),p=i(7872),f=i(1024),v=i(27525);let g,y,b,x,w,C,k,A,I=t=>t;const R=(0,f.n)(a.WF);class $ extends R{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem((0,a.qy)(g||(g=I` <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,p.eu)(y||(y=I`a`));break;case"button":i=(0,p.eu)(b||(b=I`button`));break;default:i=(0,p.eu)(x||(x=I`li`))}const r="text"!==this.type,s=e&&this.target?this.target:a.s6;return(0,p.qy)(w||(w=I`
<${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}
=${0}
>${0}</${0}>
`),i,this.isDisabled||!r?-1:0,this.isDisabled,this.ariaSelected||a.s6,this.ariaChecked||a.s6,this.ariaExpanded||a.s6,this.ariaHasPopup||a.s6,(0,m.H)(this.getRenderClasses()),this.href||a.s6,s,this.onFocus,t,i)}renderRipple(){return"text"===this.type?a.s6:(0,a.qy)(C||(C=I` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.isDisabled)}renderFocusRing(){return"text"===this.type?a.s6:(0,a.qy)(k||(k=I` <md-focus-ring -changed="${0}" part="focus-ring" for="item" inward></md-focus-ring>`),this.onFocusRingVisibilityChanged)}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return(0,a.qy)(A||(A=I` <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,v.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=""}}$.shadowRootOptions=Object.assign(Object.assign({},a.WF.shadowRootOptions),{},{delegatesFocus:!0}),(0,r.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],$.prototype,"disabled",void 0),(0,r.Cg)([(0,s.MZ)({reflect:!0})],$.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],$.prototype,"isListItem",void 0),(0,r.Cg)([(0,s.MZ)()],$.prototype,"href",void 0),(0,r.Cg)([(0,s.MZ)()],$.prototype,"target",void 0),(0,r.Cg)([(0,s.P)(".list-item")],$.prototype,"listItemRoot",void 0)},71970:function(t,e,i){var r=i(40445),s=i(67576),a=i(91382),o=i(96245);let n=class extends a.n{};n.styles=[o.R],n=(0,r.Cg)([(0,s.EM)("md-ripple")],n)},89784:function(t,e,i){i.d(e,{W:function(){return n}});i(16280),i(74423),i(72712),i(18111),i(18237),i(27495),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(25440),i(62953);var r=i(5055),s=i(42017);const a="important",o=" !"+a,n=(0,s.u$)(class extends s.WL{render(t){return Object.keys(t).reduce((e,i)=>{const r=t[i];return null==r?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const r of this.ft)null==e[r]&&(this.ft.delete(r),r.includes("-")?i.removeProperty(r):i[r]=null);for(const r in e){const t=e[r];if(null!=t){this.ft.add(r);const e="string"==typeof t&&t.endsWith(o);r.includes("-")||e?i.setProperty(r,e?t.slice(0,-11):t,e?a:""):i[r]=t}}return r.c0}constructor(t){var e;if(super(t),t.type!==s.OA.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})}}]);