UNPKG

iobroker.lovelace

Version:

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

3 lines 22.1 kB
/*! For license information please see 91552.55e809c56d890ed5.js.LICENSE.txt */ export const __webpack_ids__=["91552"];export const __webpack_modules__={73293:function(t,e,i){i.d(e,{Fn:()=>s,ku:()=>f});i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814);var s={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},d=new Set;d.add(s.BACKSPACE),d.add(s.ENTER),d.add(s.SPACEBAR),d.add(s.PAGE_UP),d.add(s.PAGE_DOWN),d.add(s.END),d.add(s.HOME),d.add(s.ARROW_LEFT),d.add(s.ARROW_UP),d.add(s.ARROW_RIGHT),d.add(s.ARROW_DOWN),d.add(s.DELETE),d.add(s.ESCAPE),d.add(s.TAB);var n=8,o=13,a=32,r=33,l=34,c=35,m=36,h=37,u=38,_=39,p=40,I=46,E=27,S=9,A=new Map;A.set(n,s.BACKSPACE),A.set(o,s.ENTER),A.set(a,s.SPACEBAR),A.set(r,s.PAGE_UP),A.set(l,s.PAGE_DOWN),A.set(c,s.END),A.set(m,s.HOME),A.set(h,s.ARROW_LEFT),A.set(u,s.ARROW_UP),A.set(_,s.ARROW_RIGHT),A.set(p,s.ARROW_DOWN),A.set(I,s.DELETE),A.set(E,s.ESCAPE),A.set(S,s.TAB);var x=new Set;function f(t){var e=t.key;if(d.has(e))return e;var i=A.get(t.keyCode);return i||s.UNKNOWN}x.add(s.PAGE_UP),x.add(s.PAGE_DOWN),x.add(s.END),x.add(s.HOME),x.add(s.ARROW_LEFT),x.add(s.ARROW_UP),x.add(s.ARROW_RIGHT),x.add(s.ARROW_DOWN)},1328:function(t,e,i){var s,d;i.d(e,{KT:()=>r,UX:()=>n,j2:()=>a});var n={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},o=((s={})[""+n.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",s[""+n.LIST_ITEM_CLASS]="mdc-list-item",s[""+n.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",s[""+n.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",s[""+n.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",s[""+n.ROOT]="mdc-list",(d={})[""+n.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",d[""+n.LIST_ITEM_CLASS]="mdc-deprecated-list-item",d[""+n.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",d[""+n.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",d[""+n.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",d[""+n.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",d[""+n.ROOT]="mdc-deprecated-list",d),a={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+n.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+n.LIST_ITEM_CLASS+" a,\n ."+o[n.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+o[n.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+n.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+n.LIST_ITEM_CLASS+" a,\n ."+n.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+n.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+o[n.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+o[n.LIST_ITEM_CLASS]+" a,\n ."+o[n.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+o[n.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},r={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300}},26625:function(t,e,i){i.d(e,{PV:()=>r,ZP:()=>m});i(92745),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814);var s=i(80573),d=i(73293),n=i(1328);const o=(t,e)=>t-e,a=["input","button","textarea","select"];function r(t){return t instanceof Set}const l=t=>{const e=t===n.KT.UNSET_INDEX?new Set:t;return r(e)?new Set(e):new Set([e])};class c extends s.K{constructor(t){super(Object.assign(Object.assign({},c.defaultAdapter),t)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=n.KT.UNSET_INDEX,this.focusedItemIndex_=n.KT.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return n.j2}static get numbers(){return n.KT}static get defaultAdapter(){return{focusItemAtIndex:()=>{},getFocusedElementIndex:()=>0,getListItemCount:()=>0,isFocusInsideList:()=>!1,isRootFocused:()=>!1,notifyAction:()=>{},notifySelected:()=>{},getSelectedStateForElementIndex:()=>!1,setDisabledStateForElementIndex:()=>{},getDisabledStateForElementIndex:()=>!1,setSelectedStateForElementIndex:()=>{},setActivatedStateForElementIndex:()=>{},setTabIndexForElementIndex:()=>{},setAttributeForElementIndex:()=>{},getAttributeForElementIndex:()=>null}}setWrapFocus(t){this.wrapFocus_=t}setMulti(t){this.isMulti_=t;const e=this.selectedIndex_;if(t){if(!r(e)){const t=e===n.KT.UNSET_INDEX;this.selectedIndex_=t?new Set:new Set([e])}}else if(r(e))if(e.size){const t=Array.from(e).sort(o);this.selectedIndex_=t[0]}else this.selectedIndex_=n.KT.UNSET_INDEX}setVerticalOrientation(t){this.isVertical_=t}setUseActivatedClass(t){this.useActivatedClass_=t}getSelectedIndex(){return this.selectedIndex_}setSelectedIndex(t){this.isIndexValid_(t)&&(this.isMulti_?this.setMultiSelectionAtIndex_(l(t)):this.setSingleSelectionAtIndex_(t))}handleFocusIn(t,e){e>=0&&this.adapter.setTabIndexForElementIndex(e,0)}handleFocusOut(t,e){e>=0&&this.adapter.setTabIndexForElementIndex(e,-1),setTimeout((()=>{this.adapter.isFocusInsideList()||this.setTabindexToFirstSelectedItem_()}),0)}handleKeydown(t,e,i){const s="ArrowLeft"===(0,d.ku)(t),n="ArrowUp"===(0,d.ku)(t),o="ArrowRight"===(0,d.ku)(t),a="ArrowDown"===(0,d.ku)(t),r="Home"===(0,d.ku)(t),l="End"===(0,d.ku)(t),c="Enter"===(0,d.ku)(t),m="Spacebar"===(0,d.ku)(t);if(this.adapter.isRootFocused())return void(n||l?(t.preventDefault(),this.focusLastElement()):(a||r)&&(t.preventDefault(),this.focusFirstElement()));let h,u=this.adapter.getFocusedElementIndex();if(!(-1===u&&(u=i,u<0))){if(this.isVertical_&&a||!this.isVertical_&&o)this.preventDefaultEvent(t),h=this.focusNextElement(u);else if(this.isVertical_&&n||!this.isVertical_&&s)this.preventDefaultEvent(t),h=this.focusPrevElement(u);else if(r)this.preventDefaultEvent(t),h=this.focusFirstElement();else if(l)this.preventDefaultEvent(t),h=this.focusLastElement();else if((c||m)&&e){const e=t.target;if(e&&"A"===e.tagName&&c)return;this.preventDefaultEvent(t),this.setSelectedIndexOnAction_(u,!0)}this.focusedItemIndex_=u,void 0!==h&&(this.setTabindexAtIndex_(h),this.focusedItemIndex_=h)}}handleSingleSelection(t,e,i){t!==n.KT.UNSET_INDEX&&(this.setSelectedIndexOnAction_(t,e,i),this.setTabindexAtIndex_(t),this.focusedItemIndex_=t)}focusNextElement(t){let e=t+1;if(e>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return t;e=0}return this.adapter.focusItemAtIndex(e),e}focusPrevElement(t){let e=t-1;if(e<0){if(!this.wrapFocus_)return t;e=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(e),e}focusFirstElement(){return this.adapter.focusItemAtIndex(0),0}focusLastElement(){const t=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(t),t}setEnabled(t,e){this.isIndexValid_(t)&&this.adapter.setDisabledStateForElementIndex(t,!e)}preventDefaultEvent(t){const e=`${t.target.tagName}`.toLowerCase();-1===a.indexOf(e)&&t.preventDefault()}setSingleSelectionAtIndex_(t,e=!0){this.selectedIndex_!==t&&(this.selectedIndex_!==n.KT.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),e&&this.adapter.setSelectedStateForElementIndex(t,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(t,!0),this.setAriaForSingleSelectionAtIndex_(t),this.selectedIndex_=t,this.adapter.notifySelected(t))}setMultiSelectionAtIndex_(t,e=!0){const i=((t,e)=>{const i=Array.from(t),s=Array.from(e),d={added:[],removed:[]},n=i.sort(o),a=s.sort(o);let r=0,l=0;for(;r<n.length||l<a.length;){const t=n[r],e=a[l];t!==e?void 0!==t&&(void 0===e||t<e)?(d.removed.push(t),r++):void 0!==e&&(void 0===t||e<t)&&(d.added.push(e),l++):(r++,l++)}return d})(l(this.selectedIndex_),t);if(i.removed.length||i.added.length){for(const t of i.removed)e&&this.adapter.setSelectedStateForElementIndex(t,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(t,!1);for(const t of i.added)e&&this.adapter.setSelectedStateForElementIndex(t,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(t,!0);this.selectedIndex_=t,this.adapter.notifySelected(t,i)}}setAriaForSingleSelectionAtIndex_(t){this.selectedIndex_===n.KT.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(t,n.j2.ARIA_CURRENT));const e=null!==this.ariaCurrentAttrValue_,i=e?n.j2.ARIA_CURRENT:n.j2.ARIA_SELECTED;this.selectedIndex_!==n.KT.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,i,"false");const s=e?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(t,i,s)}setTabindexAtIndex_(t){this.focusedItemIndex_===n.KT.UNSET_INDEX&&0!==t?this.adapter.setTabIndexForElementIndex(0,-1):this.focusedItemIndex_>=0&&this.focusedItemIndex_!==t&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(t,0)}setTabindexToFirstSelectedItem_(){let t=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==n.KT.UNSET_INDEX?t=this.selectedIndex_:r(this.selectedIndex_)&&this.selectedIndex_.size>0&&(t=Math.min(...this.selectedIndex_)),this.setTabindexAtIndex_(t)}isIndexValid_(t){if(t instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===t.size)return!0;{let e=!1;for(const i of t)if(e=this.isIndexInRange_(i),e)break;return e}}if("number"==typeof t){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return t===n.KT.UNSET_INDEX||this.isIndexInRange_(t)}return!1}isIndexInRange_(t){const e=this.adapter.getListItemCount();return t>=0&&t<e}setSelectedIndexOnAction_(t,e,i){if(this.adapter.getDisabledStateForElementIndex(t))return;let s=t;if(this.isMulti_&&(s=new Set([t])),this.isIndexValid_(s)){if(this.isMulti_)this.toggleMultiAtIndex(t,i,e);else if(e||i)this.setSingleSelectionAtIndex_(t,e);else{this.selectedIndex_===t&&this.setSingleSelectionAtIndex_(n.KT.UNSET_INDEX)}e&&this.adapter.notifyAction(t)}}toggleMultiAtIndex(t,e,i=!0){let s=!1;s=void 0===e?!this.adapter.getSelectedStateForElementIndex(t):e;const d=l(this.selectedIndex_);s?d.add(t):d.delete(t),this.setMultiSelectionAtIndex_(d,i)}}const m=c},2060:function(t,e,i){var s=i(9065),d=i(15093),n=(i(92745),i(9359),i(31526),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(87319),i(11911)),o=i(78611),a=i(44491),r=i(57243),l=i(20552),c=i(26625);const m=t=>t.hasAttribute("mwc-list-item");function h(){const t=this.itemsReadyResolver;this.itemsReady=new Promise((t=>this.itemsReadyResolver=t)),t()}class u extends n.H{constructor(){super(),this.mdcAdapter=null,this.mdcFoundationClass=c.ZP,this.activatable=!1,this.multi=!1,this.wrapFocus=!1,this.itemRoles=null,this.innerRole=null,this.innerAriaLabel=null,this.rootTabbable=!1,this.previousTabindex=null,this.noninteractive=!1,this.itemsReadyResolver=()=>{},this.itemsReady=Promise.resolve([]),this.items_=[];const t=function(t,e=50){let i;return function(s=!0){clearTimeout(i),i=setTimeout((()=>{t(s)}),e)}}(this.layout.bind(this));this.debouncedLayout=(e=!0)=>{h.call(this),t(e)}}async getUpdateComplete(){const t=await super.getUpdateComplete();return await this.itemsReady,t}get items(){return this.items_}updateItems(){var t;const e=null!==(t=this.assignedElements)&&void 0!==t?t:[],i=[];for(const t of e)m(t)&&(i.push(t),t._managingList=this),t.hasAttribute("divider")&&!t.hasAttribute("role")&&t.setAttribute("role","separator");this.items_=i;const s=new Set;if(this.items_.forEach(((t,e)=>{this.itemRoles?t.setAttribute("role",this.itemRoles):t.removeAttribute("role"),t.selected&&s.add(e)})),this.multi)this.select(s);else{const t=s.size?s.entries().next().value[1]:-1;this.select(t)}const d=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(d)}get selected(){const t=this.index;if(!(0,c.PV)(t))return-1===t?null:this.items[t];const e=[];for(const i of t)e.push(this.items[i]);return e}get index(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}render(){const t=null===this.innerRole?void 0:this.innerRole,e=null===this.innerAriaLabel?void 0:this.innerAriaLabel,i=this.rootTabbable?"0":"-1";return r.dy` <ul tabindex="${i}" role="${(0,l.o)(t)}" aria-label="${(0,l.o)(e)}" class="mdc-deprecated-list" @keydown="${this.onKeydown}" @focusin="${this.onFocusIn}" @focusout="${this.onFocusOut}" @request-selected="${this.onRequestSelected}" @list-item-rendered="${this.onListItemConnected}"> <slot></slot> ${this.renderPlaceholder()} </ul> `}renderPlaceholder(){var t;const e=null!==(t=this.assignedElements)&&void 0!==t?t:[];return void 0!==this.emptyMessage&&0===e.length?r.dy` <mwc-list-item noninteractive>${this.emptyMessage}</mwc-list-item> `:null}firstUpdated(){super.firstUpdated(),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}onFocusIn(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusIn(t,e)}}onFocusOut(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusOut(t,e)}}onKeydown(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t),i=t.target,s=m(i);this.mdcFoundation.handleKeydown(t,s,e)}}onRequestSelected(t){if(this.mdcFoundation){let e=this.getIndexOfTarget(t);if(-1===e&&(this.layout(),e=this.getIndexOfTarget(t),-1===e))return;if(this.items[e].disabled)return;const i=t.detail.selected,s=t.detail.source;this.mdcFoundation.handleSingleSelection(e,"interaction"===s,i),t.stopPropagation()}}getIndexOfTarget(t){const e=this.items,i=t.composedPath();for(const t of i){let i=-1;if((0,a.OE)(t)&&m(t)&&(i=e.indexOf(t)),-1!==i)return i}return-1}createAdapter(){return this.mdcAdapter={getListItemCount:()=>this.mdcRoot?this.items.length:0,getFocusedElementIndex:this.getFocusedItemIndex,getAttributeForElementIndex:(t,e)=>{if(!this.mdcRoot)return"";const i=this.items[t];return i?i.getAttribute(e):""},setAttributeForElementIndex:(t,e,i)=>{if(!this.mdcRoot)return;const s=this.items[t];s&&s.setAttribute(e,i)},focusItemAtIndex:t=>{const e=this.items[t];e&&e.focus()},setTabIndexForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.tabindex=e)},notifyAction:t=>{const e={bubbles:!0,composed:!0};e.detail={index:t};const i=new CustomEvent("action",e);this.dispatchEvent(i)},notifySelected:(t,e)=>{const i={bubbles:!0,composed:!0};i.detail={index:t,diff:e};const s=new CustomEvent("selected",i);this.dispatchEvent(s)},isFocusInsideList:()=>(0,a.WU)(this),isRootFocused:()=>{const t=this.mdcRoot;return t.getRootNode().activeElement===t},setDisabledStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.disabled=e)},getDisabledStateForElementIndex:t=>{const e=this.items[t];return!!e&&e.disabled},setSelectedStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.selected=e)},getSelectedStateForElementIndex:t=>{const e=this.items[t];return!!e&&e.selected},setActivatedStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.activated=e)}},this.mdcAdapter}selectUi(t,e=!1){const i=this.items[t];i&&(i.selected=!0,i.activated=e)}deselectUi(t){const e=this.items[t];e&&(e.selected=!1,e.activated=!1)}select(t){this.mdcFoundation&&this.mdcFoundation.setSelectedIndex(t)}toggle(t,e){this.multi&&this.mdcFoundation.toggleMultiAtIndex(t,e)}onListItemConnected(t){const e=t.target;this.layout(-1===this.items.indexOf(e))}layout(t=!0){t&&this.updateItems();const e=this.items[0];for(const t of this.items)t.tabindex=-1;e&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=e):e.tabindex=0),this.itemsReadyResolver()}getFocusedItemIndex(){if(!this.mdcRoot)return-1;if(!this.items.length)return-1;const t=(0,a.Mh)();if(!t.length)return-1;for(let e=t.length-1;e>=0;e--){const i=t[e];if(m(i))return this.items.indexOf(i)}return-1}focusItemAtIndex(t){for(const t of this.items)if(0===t.tabindex){t.tabindex=-1;break}this.items[t].tabindex=0,this.items[t].focus()}focus(){const t=this.mdcRoot;t&&t.focus()}blur(){const t=this.mdcRoot;t&&t.blur()}}(0,s.__decorate)([(0,d.Cb)({type:String})],u.prototype,"emptyMessage",void 0),(0,s.__decorate)([(0,d.IO)(".mdc-deprecated-list")],u.prototype,"mdcRoot",void 0),(0,s.__decorate)([(0,d.vZ)("",!0,"*")],u.prototype,"assignedElements",void 0),(0,s.__decorate)([(0,d.vZ)("",!0,'[tabindex="0"]')],u.prototype,"tabbableElements",void 0),(0,s.__decorate)([(0,d.Cb)({type:Boolean}),(0,o.P)((function(t){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(t)}))],u.prototype,"activatable",void 0),(0,s.__decorate)([(0,d.Cb)({type:Boolean}),(0,o.P)((function(t,e){this.mdcFoundation&&this.mdcFoundation.setMulti(t),void 0!==e&&this.layout()}))],u.prototype,"multi",void 0),(0,s.__decorate)([(0,d.Cb)({type:Boolean}),(0,o.P)((function(t){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(t)}))],u.prototype,"wrapFocus",void 0),(0,s.__decorate)([(0,d.Cb)({type:String}),(0,o.P)((function(t,e){void 0!==e&&this.updateItems()}))],u.prototype,"itemRoles",void 0),(0,s.__decorate)([(0,d.Cb)({type:String})],u.prototype,"innerRole",void 0),(0,s.__decorate)([(0,d.Cb)({type:String})],u.prototype,"innerAriaLabel",void 0),(0,s.__decorate)([(0,d.Cb)({type:Boolean})],u.prototype,"rootTabbable",void 0),(0,s.__decorate)([(0,d.Cb)({type:Boolean,reflect:!0}),(0,o.P)((function(t){var e,i;if(t){const t=null!==(i=null===(e=this.tabbableElements)||void 0===e?void 0:e[0])&&void 0!==i?i:null;this.previousTabindex=t,t&&t.setAttribute("tabindex","-1")}else!t&&this.previousTabindex&&(this.previousTabindex.setAttribute("tabindex","0"),this.previousTabindex=null)}))],u.prototype,"noninteractive",void 0);const _=r.iv`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4,0,0.2,1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, .009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));padding:var(--mdc-list-vertical-padding,8px) 0}.mdc-deprecated-list:focus{outline:0}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0,0,0,.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding,16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin,72px);margin-right:0;width:calc(100% - var(--mdc-list-inset-margin,72px))}.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]),[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]){margin-left:0;margin-right:var(--mdc-list-inset-margin,72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc(100% - var(--mdc-list-inset-margin,72px) - var(--mdc-list-side-padding,16px))}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size:20px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size:36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`;let p=class extends u{};p.styles=[_],p=(0,s.__decorate)([(0,d.Mo)("mwc-list")],p)}}; //# sourceMappingURL=91552.55e809c56d890ed5.js.map