UNPKG

iobroker.lovelace

Version:

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

3 lines 21.4 kB
/*! For license information please see 50408.7344dd0da8090d1d.js.LICENSE.txt */ export const __webpack_ids__=["50408"];export const __webpack_modules__={7162:function(e,t,i){i.d(t,{$4:()=>p,Ch:()=>u,Cs:()=>d,GB:()=>c,KC:()=>l,LE:()=>r,Ti:()=>n,YU:()=>s,d7:()=>o,kE:()=>h,wg:()=>a});i(9359),i(52924);const o=function(e,t){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:e,reason:t,itemPath:[e]}})};function n(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function s(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const a=99387==i.j?{UP:"ArrowUp",DOWN:"ArrowDown",RIGHT:"ArrowRight",LEFT:"ArrowLeft"}:null,r={SPACE:"Space",ENTER:"Enter"},c={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},l={ESCAPE:"Escape",SPACE:r.SPACE,ENTER:r.ENTER};function h(e){return Object.values(l).some((t=>t===e))}function d(e){return Object.values(r).some((t=>t===e))}function p(e,t){const i=new Event("md-contains",{bubbles:!0,composed:!0});let o=[];const n=e=>{o=e.composedPath()};t.addEventListener("md-contains",n),e.dispatchEvent(i),t.removeEventListener("md-contains",n);return o.length>0}const u={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"}},12572:function(e,t,i){i.d(t,{D:()=>o,p:()=>n});i(9359),i(56475),i(1331),i(70104);const o={INDEX:0,ITEM:1,TEXT:2};class n{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=e=>{this.isTypingAhead?this.typeahead(e):this.beginTypeahead(e)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&("Space"===e.code||"Enter"===e.code||e.code.startsWith("Arrow")||"Escape"===e.code||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map(((e,t)=>[t,e,e.typeaheadText.trim().toLowerCase()])),this.lastActiveRecord=this.typeaheadRecords.find((e=>0===e[o.ITEM].tabIndex))??null,this.lastActiveRecord&&(this.lastActiveRecord[o.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),"Enter"===e.code||e.code.startsWith("Arrow")||"Escape"===e.code)return this.endTypeahead(),void(this.lastActiveRecord&&(this.lastActiveRecord[o.ITEM].tabIndex=-1));"Space"===e.code&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();const t=this.lastActiveRecord?this.lastActiveRecord[o.INDEX]:-1,i=this.typeaheadRecords.length,n=e=>(e[o.INDEX]+i-t)%i,s=this.typeaheadRecords.filter((e=>!e[o.ITEM].disabled&&e[o.TEXT].startsWith(this.typaheadBuffer))).sort(((e,t)=>n(e)-n(t)));if(0===s.length)return clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[o.ITEM].tabIndex=-1),void this.endTypeahead();const a=1===this.typaheadBuffer.length;let r;r=this.lastActiveRecord===s[0]&&a?s[1]??s[0]:s[0],this.lastActiveRecord&&(this.lastActiveRecord[o.ITEM].tabIndex=-1),this.lastActiveRecord=r,r[o.ITEM].tabIndex=0,r[o.ITEM].focus()}}},9235:function(e,t,i){i.d(t,{Ns:()=>p,pS:()=>f,v2:()=>g});i(67351),i(92745),i(9359),i(31526),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814);var o=i(9065),n=(i(54835),i(57618),i(57243)),s=i(15093),a=i(35359),r=i(69634),c=i(43921),l=i(7750),h=i(64840),d=i(7162);const p={END_START:"end-start",END_END:"end-end",START_START:"start-start",START_END:"start-end"};class u{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:t,anchorCorner:i,surfaceCorner:o,positioning:n,xOffset:s,yOffset:a,disableBlockFlip:r,disableInlineFlip:c,repositionStrategy:l}=this.getProperties(),h=i.toLowerCase().trim(),d=o.toLowerCase().trim();if(!e||!t)return;const p=window.innerWidth,u=window.innerHeight,m=document.createElement("div");m.style.opacity="0",m.style.position="fixed",m.style.display="block",m.style.inset="0",document.body.appendChild(m);const f=m.getBoundingClientRect();m.remove();const v=window.innerHeight-f.bottom,y=window.innerWidth-f.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const g=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),E=t.getSurfacePositionClientRect?t.getSurfacePositionClientRect():t.getBoundingClientRect(),[w,b]=d.split("-"),[C,I]=h.split("-"),R="ltr"===getComputedStyle(e).direction;let{blockInset:O,blockOutOfBoundsCorrection:T,surfaceBlockProperty:k}=this.calculateBlock({surfaceRect:g,anchorRect:E,anchorBlock:C,surfaceBlock:w,yOffset:a,positioning:n,windowInnerHeight:u,blockScrollbarHeight:v});if(T&&!r){const e="start"===w?"end":"start",t="start"===C?"end":"start",i=this.calculateBlock({surfaceRect:g,anchorRect:E,anchorBlock:t,surfaceBlock:e,yOffset:a,positioning:n,windowInnerHeight:u,blockScrollbarHeight:v});T>i.blockOutOfBoundsCorrection&&(O=i.blockInset,T=i.blockOutOfBoundsCorrection,k=i.surfaceBlockProperty)}let{inlineInset:A,inlineOutOfBoundsCorrection:_,surfaceInlineProperty:S}=this.calculateInline({surfaceRect:g,anchorRect:E,anchorInline:I,surfaceInline:b,xOffset:s,positioning:n,isLTR:R,windowInnerWidth:p,inlineScrollbarWidth:y});if(_&&!c){const e="start"===b?"end":"start",t="start"===I?"end":"start",i=this.calculateInline({surfaceRect:g,anchorRect:E,anchorInline:t,surfaceInline:e,xOffset:s,positioning:n,isLTR:R,windowInnerWidth:p,inlineScrollbarWidth:y});Math.abs(_)>Math.abs(i.inlineOutOfBoundsCorrection)&&(A=i.inlineInset,_=i.inlineOutOfBoundsCorrection,S=i.surfaceInlineProperty)}"move"===l&&(O-=T,A-=_),this.surfaceStylesInternal={display:"block",opacity:"1",[k]:`${O}px`,[S]:`${A}px`},"resize"===l&&(T&&(this.surfaceStylesInternal.height=g.height-T+"px"),_&&(this.surfaceStylesInternal.width=g.width-_+"px")),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:t,anchorRect:i,anchorBlock:o,surfaceBlock:n,yOffset:s,positioning:a,windowInnerHeight:r,blockScrollbarHeight:c}=e,l="fixed"===a||"document"===a?1:0,h="document"===a?1:0,d="start"===n?1:0,p="end"===n?1:0,u=(o!==n?1:0)*i.height+s,m=d*i.top+p*(r-i.bottom-c);return{blockInset:l*m+h*(d*window.scrollY-p*window.scrollY)+u,blockOutOfBoundsCorrection:Math.abs(Math.min(0,r-m-u-t.height)),surfaceBlockProperty:"start"===n?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:t,surfaceInline:i,anchorInline:o,anchorRect:n,surfaceRect:s,xOffset:a,positioning:r,windowInnerWidth:c,inlineScrollbarWidth:l}=e,h="fixed"===r||"document"===r?1:0,d="document"===r?1:0,p=t?1:0,u=t?0:1,m="start"===i?1:0,f="end"===i?1:0,v=(o!==i?1:0)*n.width+a,y=p*(m*n.left+f*(c-n.right-l))+u*(m*(c-n.right-l)+f*n.left);let g="start"===i?"inset-inline-start":"inset-inline-end";return"document"!==r&&"fixed"!==r||(g="start"===i&&t||"end"===i&&!t?"left":"right"),{inlineInset:h*y+v+d*(p*(m*window.scrollX-f*window.scrollX)+u*(f*window.scrollX-m*window.scrollX)),inlineOutOfBoundsCorrection:Math.abs(Math.min(0,c-y-v-s.width)),surfaceInlineProperty:g}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let t=!1;for(const[i,o]of Object.entries(e))if(t=t||o!==this.lastValues[i],t)break;const i=this.lastValues.isOpen!==e.isOpen,o=!!e.anchorEl,n=!!e.surfaceEl;t&&o&&n&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):i&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e?.popover&&e?.isConnected&&e.hidePopover()}}var m=i(12572);const f=200,v=new Set([l.E.ArrowDown,l.E.ArrowUp,l.E.Home,l.E.End]),y=new Set([l.E.ArrowLeft,l.E.ArrowRight,...v]);class g extends n.oi{get openDirection(){return"start"===this.menuCorner.split("-")[0]?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.noHorizontalFlip=!1,this.noVerticalFlip=!1,this.typeaheadDelay=f,this.anchorCorner=p.END_START,this.menuCorner=p.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=d.Ch.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=(0,c.L7)(),this.listController=new l.g({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return y.has(e);return e===("rtl"===getComputedStyle(this).direction?l.E.ArrowLeft:l.E.ArrowRight)||v.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new m.p((()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive}))),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new u(this,(()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:"popover"===this.positioning?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,disableBlockFlip:this.noVerticalFlip,disableInlineFlip:this.noHorizontalFlip,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&"popover"!==this.positioning?"move":"resize"}))),this.onWindowResize=()=>{this.isRepositioning||"document"!==this.positioning&&"fixed"!==this.positioning&&"popover"!==this.positioning||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{const t=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(t))return;if(e.relatedTarget){if((0,d.$4)(e.relatedTarget,this)||0!==this.pointerPath.length&&(0,d.$4)(e.relatedTarget,t))return}else if(this.pointerPath.includes(this))return;const i=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=i},this.onOpened=async()=>{this.lastFocusedElement=function(e=document){let t=e.activeElement;for(;t&&t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}();const e=this.items,t=(0,h.CL)(e);t&&this.defaultFocus!==d.Ch.NONE&&(t.item.tabIndex=-1);let i=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):i=!!await this.animateOpen(),this.defaultFocus){case d.Ch.FIRST_ITEM:const t=(0,h.B3)(e);t&&(t.tabIndex=0,t.focus(),await t.updateComplete);break;case d.Ch.LAST_ITEM:const i=(0,h.AW)(e);i&&(i.tabIndex=0,i.focus(),await i.updateComplete);break;case d.Ch.LIST_ROOT:this.focus();default:case d.Ch.NONE:}i||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{this.open=!1,this.skipRestoreFocus||this.lastFocusedElement?.focus?.(),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const t=e.composedPath();this.stayOpenOnOutsideClick||t.includes(this)||t.includes(this.anchorElement)||(this.open=!1)},n.sk||(this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout))}get items(){return this.listController.items}willUpdate(e){e.has("open")&&(this.open?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true"))}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has("positioning")&&"popover"===this.positioning&&!this.showPopover&&(this.positioning="fixed"),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return n.dy` <div class="menu ${(0,a.$)(this.getSurfaceClasses())}" style="${(0,r.V)(this.menuPositionController.surfaceStyles)}" popover="${"popover"===this.positioning?"manual":n.Ld}"> ${this.renderElevation()} <div class="items"> <div class="item-padding"> ${this.renderMenuItems()} </div> </div> </div> `}renderMenuItems(){return n.dy`<slot @close-menu="${this.onCloseMenu}" @deactivate-items="${this.onDeactivateItems}" @request-activation="${this.onRequestActivation}" @deactivate-typeahead="${this.handleDeactivateTypeahead}" @activate-typeahead="${this.handleActivateTypeahead}" @stay-open-on-focusout="${this.handleStayOpenOnFocusout}" @close-on-focusout="${this.handleCloseOnFocusout}" @slotchange="${this.listController.onSlotchange}"></slot>`}renderElevation(){return n.dy`<md-elevation part="elevation"></md-elevation>`}getSurfaceClasses(){return{open:this.open,fixed:"fixed"===this.positioning,"has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&(0,d.kE)(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const i=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const o=this.openCloseAnimationSignal.start(),n=e.offsetHeight,s="UP"===i,a=this.items,r=250/a.length,l=e.animate([{height:"0px"},{height:`${n}px`}],{duration:500,easing:c.Xt.EMPHASIZED}),h=t.animate([{transform:s?`translateY(-${n}px)`:""},{transform:""}],{duration:500,easing:c.Xt.EMPHASIZED}),d=e.animate([{opacity:0},{opacity:1}],50),p=[];for(let e=0;e<a.length;e++){const t=a[s?a.length-1-e:e],i=t.animate([{opacity:0},{opacity:1}],{duration:250,delay:r*e});t.classList.toggle("md-menu-hidden",!0),i.addEventListener("finish",(()=>{t.classList.toggle("md-menu-hidden",!1)})),p.push([t,i])}let u=e=>{};const m=new Promise((e=>{u=e}));return o.addEventListener("abort",(()=>{l.cancel(),h.cancel(),d.cancel(),p.forEach((([e,t])=>{e.classList.toggle("md-menu-hidden",!1),t.cancel()})),u(!0)})),l.addEventListener("finish",(()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),u(!1)})),await m}animateClose(){let e;const t=new Promise((t=>{e=t})),i=this.surfaceEl,o=this.slotEl;if(!i||!o)return e(!1),t;const n="UP"===this.openDirection;this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const s=this.openCloseAnimationSignal.start(),a=i.offsetHeight,r=this.items,l=150,h=50/r.length,d=i.animate([{height:`${a}px`},{height:.35*a+"px"}],{duration:l,easing:c.Xt.EMPHASIZED_ACCELERATE}),p=o.animate([{transform:""},{transform:n?`translateY(-${.65*a}px)`:""}],{duration:l,easing:c.Xt.EMPHASIZED_ACCELERATE}),u=i.animate([{opacity:1},{opacity:0}],{duration:50,delay:100}),m=[];for(let e=0;e<r.length;e++){const t=r[n?e:r.length-1-e],i=t.animate([{opacity:1},{opacity:0}],{duration:50,delay:50+h*e});i.addEventListener("finish",(()=>{t.classList.toggle("md-menu-hidden",!0)})),m.push([t,i])}return s.addEventListener("abort",(()=>{d.cancel(),p.cancel(),u.cancel(),m.forEach((([e,t])=>{t.cancel(),e.classList.toggle("md-menu-hidden",!1)})),e(!1)})),d.addEventListener("finish",(()=>{i.classList.toggle("animating",!1),m.forEach((([e])=>{e.classList.toggle("md-menu-hidden",!1)})),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)})),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1;this.slotItems.forEach((e=>{e.close?.()}))}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}(0,o.__decorate)([(0,s.IO)(".menu")],g.prototype,"surfaceEl",void 0),(0,o.__decorate)([(0,s.IO)("slot")],g.prototype,"slotEl",void 0),(0,o.__decorate)([(0,s.Cb)()],g.prototype,"anchor",void 0),(0,o.__decorate)([(0,s.Cb)()],g.prototype,"positioning",void 0),(0,o.__decorate)([(0,s.Cb)({type:Boolean})],g.prototype,"quick",void 0),(0,o.__decorate)([(0,s.Cb)({type:Boolean,attribute:"has-overflow"})],g.prototype,"hasOverflow",void 0),(0,o.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0})],g.prototype,"open",void 0),(0,o.__decorate)([(0,s.Cb)({type:Number,attribute:"x-offset"})],g.prototype,"xOffset",void 0),(0,o.__decorate)([(0,s.Cb)({type:Number,attribute:"y-offset"})],g.prototype,"yOffset",void 0),(0,o.__decorate)([(0,s.Cb)({type:Boolean,attribute:"no-horizontal-flip"})],g.prototype,"noHorizontalFlip",void 0),(0,o.__decorate)([(0,s.Cb)({type:Boolean,attribute:"no-vertical-flip"})],g.prototype,"noVerticalFlip",void 0),(0,o.__decorate)([(0,s.Cb)({type:Number,attribute:"typeahead-delay"})],g.prototype,"typeaheadDelay",void 0),(0,o.__decorate)([(0,s.Cb)({attribute:"anchor-corner"})],g.prototype,"anchorCorner",void 0),(0,o.__decorate)([(0,s.Cb)({attribute:"menu-corner"})],g.prototype,"menuCorner",void 0),(0,o.__decorate)([(0,s.Cb)({type:Boolean,attribute:"stay-open-on-outside-click"})],g.prototype,"stayOpenOnOutsideClick",void 0),(0,o.__decorate)([(0,s.Cb)({type:Boolean,attribute:"stay-open-on-focusout"})],g.prototype,"stayOpenOnFocusout",void 0),(0,o.__decorate)([(0,s.Cb)({type:Boolean,attribute:"skip-restore-focus"})],g.prototype,"skipRestoreFocus",void 0),(0,o.__decorate)([(0,s.Cb)({attribute:"default-focus"})],g.prototype,"defaultFocus",void 0),(0,o.__decorate)([(0,s.Cb)({type:Boolean,attribute:"no-navigation-wrap"})],g.prototype,"noNavigationWrap",void 0),(0,o.__decorate)([(0,s.NH)({flatten:!0})],g.prototype,"slotItems",void 0),(0,o.__decorate)([(0,s.SB)()],g.prototype,"typeaheadActive",void 0)},53336:function(e,t,i){i.d(t,{xX:()=>r});var o=i(9065),n=i(15093),s=i(9235);const a=i(57243).iv`:host{--md-elevation-level:var(--md-menu-container-elevation, 2);--md-elevation-shadow-color:var(--md-menu-container-shadow-color, var(--md-sys-color-shadow, #000));min-width:112px;color:unset;display:contents}md-focus-ring{--md-focus-ring-shape:var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px))}.menu{border-radius:var(--md-menu-container-shape,var(--md-sys-shape-corner-extra-small,4px));display:none;inset:auto;border:none;padding:0px;overflow:visible;background-color:rgba(0,0,0,0);color:inherit;opacity:0;z-index:20;position:absolute;user-select:none;max-height:inherit;height:inherit;min-width:inherit;max-width:inherit;scrollbar-width:inherit}.menu::backdrop{display:none}.fixed{position:fixed}.items{display:block;list-style-type:none;margin:0;outline:0;box-sizing:border-box;background-color:var(--md-menu-container-color,var(--md-sys-color-surface-container,#f3edf7));height:inherit;max-height:inherit;overflow:auto;min-width:inherit;max-width:inherit;border-radius:inherit;scrollbar-width:inherit}.item-padding{padding-block:8px}.has-overflow:not([popover]) .items{overflow:visible}.animating .items,.has-overflow.animating .items{overflow:hidden}.has-overflow.animating .items{pointer-events:none}.animating ::slotted(.md-menu-hidden){opacity:0}slot{display:block;height:inherit;max-height:inherit}::slotted(:is(md-divider,[role=separator])){margin:8px 0}@media(forced-colors:active){.menu{border-style:solid;border-color:CanvasText;border-width:1px}}`;i(7162);let r=class extends s.v2{};r.styles=[a],r=(0,o.__decorate)([(0,n.Mo)("md-menu")],r)}}; //# sourceMappingURL=50408.7344dd0da8090d1d.js.map