https://vintagediamondring.com/cdn/shop/t/41/assets/header-details…?v=176612929968137023761739895339
1class HeaderDetailsDisclosure extends DetailsDisclosure{constructor(){super(),this._boundMouseEnterListener=this.mouseEnterListener.bind(this),this._boundMouseLeaveListener=this.mouseLeaveListener.bind(this)}connectedCallback(){this._summaryLink=this.querySelector("summary > a"),this.mainDetailsToggle.hasAttribute("open")||this._disableSummaryLink(),this.mainDetailsToggle.addEventListener("mouseenter",this._boundMouseEnterListener),this.mainDetailsToggle.addEventListener("mouseleave",this._boundMouseLeaveListener)}disconnectedCallback(){this.disableListeners()}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.animations||(this.animations=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")?(setTimeout(()=>{this._enableSummaryLink()},50),this.animations.forEach(animation=>animation.play()),this.contentAnimations.forEach(animation=>animation.play()),document.body.setAttribute("header-menu-open",""),this.classList.contains("mega")&&document.body.setAttribute("header-mega-menu-open","")):(this._disableSummaryLink(),this.animations.forEach(animation=>animation.cancel()),this.contentAnimations.forEach(animation=>animation.cancel()),document.body.removeAttribute("header-menu-open",""),this.classList.contains("mega")&&document.body.removeAttribute("header-mega-menu-open",""))}mouseEnterListener(){document.querySelector("body").hasAttribute("header-details-disclosure-edit")||this.open()}mouseLeaveListener(){document.querySelector("body").hasAttribute("header-details-disclosure-edit")||this.close()}disableListeners(){this.mainDetailsToggle.removeEventListener("mouseenter",this._boundMouseEnterListener),this.mainDetailsToggle.removeEventListener("mouseleave",this._boundMouseLeaveListener)}_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/41/assets/header-details-disclosure.js.map?v=176612929968137023761739895339
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.