1import{D as l}from"./details-disclosure.js";import{O as u}from"./_constants.js";import{t as h}from"./_analytics.js";class c extends l{constructor(){super(),this.header=document.querySelector(".header-wrapper"),this.hoverDelay=350,this.isHovered=!1,this.hoverTimeout=null,this.trackNavigationClicks(this)}onHover(){this.isHovered=!0,this.hoverTimeout&&clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.isHovered&&(this.mainDetailsToggle.open=!0)},u)}onHoverLeave(){this.isHovered=!1,this.hoverTimeout&&clearTimeout(this.hoverTimeout),this.mainDetailsToggle.open=!1}onToggle(){this.header&&(this.header.preventHide=this.mainDetailsToggle.open,document.documentElement.style.getPropertyValue("--header-bottom-position-desktop")===""&&document.documentElement.style.setProperty("--header-bottom-position-desktop",`${Math.floor(this.header.getBoundingClientRect().bottom)}px`))}trackNavigationClicks(m){m.querySelectorAll(".header__inline-menu a, .mega-menu__link").forEach(e=>{e.addEventListener("click",()=>{var r,s,a;const o=e.textContent.trim(),n=((s=(r=e.closest("details"))==null?void 0:r.querySelector("summary"))==null?void 0:s.textContent.trim())||"",i=(a=e.closest("ul"))==null?void 0:a.previousElementSibling,t=(i==null?void 0:i.classList.contains("mega-menu__link--level-2"))?{navigation_tier_1:n,navigation_tier_2:i.textContent.trim(),navigation_tier_3:o}:n?{navigation_tier_1:n,navigation_tier_2:o,navigation_tier_3:""}:{navigation_tier_1:o,navigation_tier_2:"",navigation_tier_3:""};t.menu_location="header",t.menu_type="desktop",t.link_type=e.classList.contains("mega-menu__promotion__text")?"image":"text",t.link_url=e.href,h("menu_navigation",t)})})}}customElements.get("header-menu")||customElements.define("header-menu",c);
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.