https://sipspiritedbrands.com/cdn/shop/t/20/assets/header-details-…?v=152869848102972425831738164213
1class HeaderDetailsDisclosure extends DetailsDisclosure{#summaryLink;constructor(){super(),this.#summaryLink=this.querySelector("summary > a"),this.mainDetailsToggle.hasAttribute("open")||this.#disableSummaryLink(),this.mainDetailsToggle.addEventListener("mouseenter",()=>{document.querySelector("body").hasAttribute("header-details-disclosure-edit")||this.open()}),this.mainDetailsToggle.addEventListener("mouseleave",()=>{document.querySelector("body").hasAttribute("header-details-disclosure-edit")||this.close()})}open(){this.mainDetailsToggle.setAttribute("open",""),this.querySelector("summary").setAttribute("aria-expanded",!0),this.content.getBoundingClientRect().x+this.content.offsetWidth>window.innerWidth-30&&this.content.classList.add("is-left-aligned"),this.hasAttribute("adjust-mega-menu-height")&&this.#setContentHeight(36)}close(){this.mainDetailsToggle.removeAttribute("open"),this.mainDetailsToggle.querySelector("summary").setAttribute("aria-expanded",!1),this.content.classList.remove("is-left-aligned"),this.hasAttribute("adjust-mega-menu-height")&&this.#removeContentHeight()}onToggle(){this.panelAnimations||(this.panelAnimations=this.content.getAnimations()),this.contentAnimations||(this.contentAnimations=Array.from(this.querySelectorAll(".has-animation")).reduce((animations,element)=>{const animation=element.getAnimations();return[...animations,...animation]},[])),this.mainDetailsToggle.hasAttribute("open")?(this.#enableSummaryLink(),this.panelAnimations.forEach(animation=>animation.play()),this.contentAnimations.forEach(animation=>animation.play()),document.body.setAttribute("header-menu-open","")):(this.#disableSummaryLink(),this.panelAnimations.forEach(animation=>animation.cancel()),this.contentAnimations.forEach(animation=>animation.cancel()),document.body.removeAttribute("header-menu-open",""))}#setContentHeight(padding=0){const headerSection=document.querySelector(".js-header"),headerBottomBoundary=headerSection&&headerSection.getBoundingClientRect().bottom>0?headerSection.getBoundingClientRect().bottom:0,combinedPanelCutoff=Math.round(headerBottomBoundary+padding);this.content.offsetHeight>window.innerHeight-combinedPanelCutoff&&(this.content.style.setProperty("--header-elements-height",`${combinedPanelCutoff}px`),this.content.classList.add("has-height-control"))}#removeContentHeight(){this.content.classList.remove("has-height-control")}#summaryLinkListener(e){e.preventDefault()}#enableSummaryLink(){this.#summaryLink&&this.#summaryLink.removeEventListener("click",this.#summaryLinkListener)}#disableSummaryLink(){this.#summaryLink&&this.#summaryLink.addEventListener("click",this.#summaryLinkListener)}}customElements.define("header-details-disclosure",HeaderDetailsDisclosure); 2//# sourceMappingURL=/cdn/shop/t/20/assets/header-details-disclosure.js.map?v=152869848102972425831738164213
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.