iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 22 kB
JavaScript
/*! For license information please see 50408.349556fe0ac50ed4.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["50408"],{7162:function(e,t,i){i.d(t,{$4:()=>p,Ch:()=>u,Cs:()=>d,GB:()=>l,KC:()=>c,LE:()=>r,Ti:()=>o,YU:()=>s,d7:()=>n,kE:()=>h,wg:()=>a});i(9359),i(52924);const n=function(e,t){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:e,reason:t,itemPath:[e]}})};function o(){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"},l={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},c={ESCAPE:"Escape",SPACE:r.SPACE,ENTER:r.ENTER};function h(e){return Object.values(c).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 n=[];const o=e=>{n=e.composedPath()};t.addEventListener("md-contains",o),e.dispatchEvent(i),t.removeEventListener("md-contains",o);return n.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:()=>n,p:()=>o});i(61893),i(9359),i(56475),i(1331),i(70104),i(88044),i(81804);const n={INDEX:0,ITEM:1,TEXT:2};class o{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){var t;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=null!==(t=this.typeaheadRecords.find((e=>0===e[n.ITEM].tabIndex)))&&void 0!==t?t:null,this.lastActiveRecord&&(this.lastActiveRecord[n.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[n.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[n.INDEX]:-1,i=this.typeaheadRecords.length,o=e=>(e[n.INDEX]+i-t)%i,s=this.typeaheadRecords.filter((e=>!e[n.ITEM].disabled&&e[n.TEXT].startsWith(this.typaheadBuffer))).sort(((e,t)=>o(e)-o(t)));if(0===s.length)return clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[n.ITEM].tabIndex=-1),void this.endTypeahead();const a=1===this.typaheadBuffer.length;let r;var l;this.lastActiveRecord===s[0]&&a?r=null!==(l=s[1])&&void 0!==l?l:s[0]:r=s[0];this.lastActiveRecord&&(this.lastActiveRecord[n.ITEM].tabIndex=-1),this.lastActiveRecord=r,r[n.ITEM].tabIndex=0,r[n.ITEM].focus()}}},9235:function(e,t,i){i.d(t,{Ns:()=>p,pS:()=>E,v2:()=>C});i(67351),i(19083),i(71695),i(92745),i(9359),i(31526),i(40251),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(61006),i(47021);var n=i(9065),o=(i(54835),i(57618),i(57243)),s=i(50778),a=i(35359),r=i(69634),l=i(43921),c=i(7750),h=i(64840),d=i(7162);i(81804);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:n,positioning:o,xOffset:s,yOffset:a,disableBlockFlip:r,disableInlineFlip:l,repositionStrategy:c}=this.getProperties(),h=i.toLowerCase().trim(),d=n.toLowerCase().trim();if(!e||!t)return;const p=window.innerWidth,u=window.innerHeight,f=document.createElement("div");f.style.opacity="0",f.style.position="fixed",f.style.display="block",f.style.inset="0",document.body.appendChild(f);const m=f.getBoundingClientRect();f.remove();const v=window.innerHeight-m.bottom,y=window.innerWidth-m.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:o,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:o,windowInnerHeight:u,blockScrollbarHeight:v});T>i.blockOutOfBoundsCorrection&&(O=i.blockInset,T=i.blockOutOfBoundsCorrection,k=i.surfaceBlockProperty)}let{inlineInset:A,inlineOutOfBoundsCorrection:S,surfaceInlineProperty:x}=this.calculateInline({surfaceRect:g,anchorRect:E,anchorInline:I,surfaceInline:b,xOffset:s,positioning:o,isLTR:R,windowInnerWidth:p,inlineScrollbarWidth:y});if(S&&!l){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:o,isLTR:R,windowInnerWidth:p,inlineScrollbarWidth:y});Math.abs(S)>Math.abs(i.inlineOutOfBoundsCorrection)&&(A=i.inlineInset,S=i.inlineOutOfBoundsCorrection,x=i.surfaceInlineProperty)}"move"===c&&(O-=T,A-=S),this.surfaceStylesInternal={display:"block",opacity:"1",[k]:`${O}px`,[x]:`${A}px`},"resize"===c&&(T&&(this.surfaceStylesInternal.height=g.height-T+"px"),S&&(this.surfaceStylesInternal.width=g.width-S+"px")),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:t,anchorRect:i,anchorBlock:n,surfaceBlock:o,yOffset:s,positioning:a,windowInnerHeight:r,blockScrollbarHeight:l}=e,c="fixed"===a||"document"===a?1:0,h="document"===a?1:0,d="start"===o?1:0,p="end"===o?1:0,u=(n!==o?1:0)*i.height+s,f=d*i.top+p*(r-i.bottom-l);return{blockInset:c*f+h*(d*window.scrollY-p*window.scrollY)+u,blockOutOfBoundsCorrection:Math.abs(Math.min(0,r-f-u-t.height)),surfaceBlockProperty:"start"===o?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:t,surfaceInline:i,anchorInline:n,anchorRect:o,surfaceRect:s,xOffset:a,positioning:r,windowInnerWidth:l,inlineScrollbarWidth:c}=e,h="fixed"===r||"document"===r?1:0,d="document"===r?1:0,p=t?1:0,u=t?0:1,f="start"===i?1:0,m="end"===i?1:0,v=(n!==i?1:0)*o.width+a,y=p*(f*o.left+m*(l-o.right-c))+u*(f*(l-o.right-c)+m*o.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*(f*window.scrollX-m*window.scrollX)+u*(m*window.scrollX-f*window.scrollX)),inlineOutOfBoundsCorrection:Math.abs(Math.min(0,l-y-v-s.width)),surfaceInlineProperty:g}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let t=!1;for(const[s,a]of Object.entries(e))if(t=t||a!==this.lastValues[s],t)break;const i=this.lastValues.isOpen!==e.isOpen,n=!!e.anchorEl,o=!!e.surfaceEl;t&&n&&o&&(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;null!=e&&e.popover&&null!=e&&e.isConnected&&e.hidePopover()}}var f=i(12572);let m,v,y,g=e=>e;const E=200,w=new Set([c.E.ArrowDown,c.E.ArrowUp,c.E.Home,c.E.End]),b=new Set([c.E.ArrowLeft,c.E.ArrowRight,...w]);class C extends o.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=E,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,l.L7)(),this.listController=new c.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 b.has(e);return e===("rtl"===getComputedStyle(this).direction?c.E.ArrowLeft:c.E.ArrowRight)||w.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new f.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&&null!==(i=t)&&void 0!==i&&null!==(i=i.shadowRoot)&&void 0!==i&&i.activeElement;){var i;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()=>{var e,t;(this.open=!1,this.skipRestoreFocus)||(null===(e=this.lastFocusedElement)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e));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)},o.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(0,o.dy)(m||(m=g` <div class="menu ${0}" style="${0}" popover="${0}"> ${0} <div class="items"> <div class="item-padding"> ${0} </div> </div> </div> `),(0,a.$)(this.getSurfaceClasses()),(0,r.V)(this.menuPositionController.surfaceStyles),"popover"===this.positioning?"manual":o.Ld,this.renderElevation(),this.renderMenuItems())}renderMenuItems(){return(0,o.dy)(v||(v=g`<slot -menu="${0}" -items="${0}" -activation="${0}" -typeahead="${0}" -typeahead="${0}" -open-on-focusout="${0}" -on-focusout="${0}" ="${0}"></slot>`),this.onCloseMenu,this.onDeactivateItems,this.onRequestActivation,this.handleDeactivateTypeahead,this.handleActivateTypeahead,this.handleStayOpenOnFocusout,this.handleCloseOnFocusout,this.listController.onSlotchange)}renderElevation(){return(0,o.dy)(y||(y=g`<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 n=this.openCloseAnimationSignal.start(),o=e.offsetHeight,s="UP"===i,a=this.items,r=250/a.length,c=e.animate([{height:"0px"},{height:`${o}px`}],{duration:500,easing:l.Xt.EMPHASIZED}),h=t.animate([{transform:s?`translateY(-${o}px)`:""},{transform:""}],{duration:500,easing:l.Xt.EMPHASIZED}),d=e.animate([{opacity:0},{opacity:1}],50),p=[];for(let l=0;l<a.length;l++){const e=a[s?a.length-1-l:l],t=e.animate([{opacity:0},{opacity:1}],{duration:250,delay:r*l});e.classList.toggle("md-menu-hidden",!0),t.addEventListener("finish",(()=>{e.classList.toggle("md-menu-hidden",!1)})),p.push([e,t])}let u=e=>{};const f=new Promise((e=>{u=e}));return n.addEventListener("abort",(()=>{c.cancel(),h.cancel(),d.cancel(),p.forEach((([e,t])=>{e.classList.toggle("md-menu-hidden",!1),t.cancel()})),u(!0)})),c.addEventListener("finish",(()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),u(!1)})),await f}animateClose(){let e;const t=new Promise((t=>{e=t})),i=this.surfaceEl,n=this.slotEl;if(!i||!n)return e(!1),t;const o="UP"===this.openDirection;this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const s=this.openCloseAnimationSignal.start(),a=i.offsetHeight,r=this.items,c=150,h=50/r.length,d=i.animate([{height:`${a}px`},{height:.35*a+"px"}],{duration:c,easing:l.Xt.EMPHASIZED_ACCELERATE}),p=n.animate([{transform:""},{transform:o?`translateY(-${.65*a}px)`:""}],{duration:c,easing:l.Xt.EMPHASIZED_ACCELERATE}),u=i.animate([{opacity:1},{opacity:0}],{duration:50,delay:100}),f=[];for(let l=0;l<r.length;l++){const e=r[o?l:r.length-1-l],t=e.animate([{opacity:1},{opacity:0}],{duration:50,delay:50+h*l});t.addEventListener("finish",(()=>{e.classList.toggle("md-menu-hidden",!0)})),f.push([e,t])}return s.addEventListener("abort",(()=>{d.cancel(),p.cancel(),u.cancel(),f.forEach((([e,t])=>{t.cancel(),e.classList.toggle("md-menu-hidden",!1)})),e(!1)})),d.addEventListener("finish",(()=>{i.classList.toggle("animating",!1),f.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=>{var t;null===(t=e.close)||void 0===t||t.call(e)}))}show(){this.open=!0}activateNextItem(){var e;return null!==(e=this.listController.activateNextItem())&&void 0!==e?e:null}activatePreviousItem(){var e;return null!==(e=this.listController.activatePreviousItem())&&void 0!==e?e:null}reposition(){this.open&&this.menuPositionController.position()}}(0,n.__decorate)([(0,s.IO)(".menu")],C.prototype,"surfaceEl",void 0),(0,n.__decorate)([(0,s.IO)("slot")],C.prototype,"slotEl",void 0),(0,n.__decorate)([(0,s.Cb)()],C.prototype,"anchor",void 0),(0,n.__decorate)([(0,s.Cb)()],C.prototype,"positioning",void 0),(0,n.__decorate)([(0,s.Cb)({type:Boolean})],C.prototype,"quick",void 0),(0,n.__decorate)([(0,s.Cb)({type:Boolean,attribute:"has-overflow"})],C.prototype,"hasOverflow",void 0),(0,n.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0})],C.prototype,"open",void 0),(0,n.__decorate)([(0,s.Cb)({type:Number,attribute:"x-offset"})],C.prototype,"xOffset",void 0),(0,n.__decorate)([(0,s.Cb)({type:Number,attribute:"y-offset"})],C.prototype,"yOffset",void 0),(0,n.__decorate)([(0,s.Cb)({type:Boolean,attribute:"no-horizontal-flip"})],C.prototype,"noHorizontalFlip",void 0),(0,n.__decorate)([(0,s.Cb)({type:Boolean,attribute:"no-vertical-flip"})],C.prototype,"noVerticalFlip",void 0),(0,n.__decorate)([(0,s.Cb)({type:Number,attribute:"typeahead-delay"})],C.prototype,"typeaheadDelay",void 0),(0,n.__decorate)([(0,s.Cb)({attribute:"anchor-corner"})],C.prototype,"anchorCorner",void 0),(0,n.__decorate)([(0,s.Cb)({attribute:"menu-corner"})],C.prototype,"menuCorner",void 0),(0,n.__decorate)([(0,s.Cb)({type:Boolean,attribute:"stay-open-on-outside-click"})],C.prototype,"stayOpenOnOutsideClick",void 0),(0,n.__decorate)([(0,s.Cb)({type:Boolean,attribute:"stay-open-on-focusout"})],C.prototype,"stayOpenOnFocusout",void 0),(0,n.__decorate)([(0,s.Cb)({type:Boolean,attribute:"skip-restore-focus"})],C.prototype,"skipRestoreFocus",void 0),(0,n.__decorate)([(0,s.Cb)({attribute:"default-focus"})],C.prototype,"defaultFocus",void 0),(0,n.__decorate)([(0,s.Cb)({type:Boolean,attribute:"no-navigation-wrap"})],C.prototype,"noNavigationWrap",void 0),(0,n.__decorate)([(0,s.NH)({flatten:!0})],C.prototype,"slotItems",void 0),(0,n.__decorate)([(0,s.SB)()],C.prototype,"typeaheadActive",void 0)},53336:function(e,t,i){i.d(t,{xX:()=>l});var n=i(9065),o=i(50778),s=i(9235);let a;const r=(0,i(57243).iv)(a||(a=(e=>e)`: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} {.menu{border-style:solid;border-color:CanvasText;border-width:1px}}`));i(7162);let l=class extends s.v2{};l.styles=[r],l=(0,n.__decorate)([(0,o.Mo)("md-menu")],l)}}]);
//# sourceMappingURL=50408.349556fe0ac50ed4.js.map