1class NavDropdown extends HTMLElement{connectedCallback(){this.abortController=new AbortController,this.summary=this.querySelector("summary"),this.detail=this.querySelector("details"),this.detail.dataset.hover==="true"&&this.hoverMenu(),this.menuDetailsHandler()}menuDetailsHandler(){document.addEventListener("click",evt=>{this.detail.hasAttribute("open")&&!this.detail.contains(evt.target)?(this.detail.removeAttribute("open"),this.summary.setAttribute("aria-expanded","false")):this.detail.hasAttribute("open")?this.summary.setAttribute("aria-expanded","false"):this.summary.setAttribute("aria-expanded","true")},{signal:this.abortController.signal})}hoverMenu(){const summaryLink=this.summary.dataset.link;this.summary.addEventListener("click",e=>{e.preventDefault(),this.detail.hasAttribute("open")?window.location.href=summaryLink:(this.detail.setAttribute("open",""),this.detail.setAttribute("aria-expanded","true"))},{signal:this.abortController.signal}),this.detail.addEventListener("focusout",e=>{this.detail.contains(e.relatedTarget)||(this.detail.removeAttribute("open"),this.detail.setAttribute("aria-expanded","false"))},{signal:this.abortController.signal}),this.detail.addEventListener("keydown",e=>{e.key==="Escape"&&this.detail.hasAttribute("open")&&(this.detail.removeAttribute("open"),this.detail.setAttribute("aria-expanded","false"),this.summary.focus())},{signal:this.abortController.signal}),this.detail.addEventListener("mouseover",()=>{this.detail.hasAttribute("open")||(this.detail.setAttribute("open",""),this.detail.setAttribute("aria-expanded","true"))},{signal:this.abortController.signal}),this.detail.addEventListener("mouseleave",()=>{this.detail.hasAttribute("open")&&(this.detail.removeAttribute("open"),this.detail.setAttribute("aria-expanded","false"))},{signal:this.abortController.signal})}disconnectedCallback(){this.abortController.abort()}}customElements.define("nav-dropdown",NavDropdown); 2//# sourceMappingURL=/cdn/shop/t/40/assets/nav-dropdown.js.map?v=161891049847192907061789141427
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.