1var A=Object.defineProperty;var y=(c,s,i)=>s in c?A(c,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[s]=i;var l=(c,s,i)=>y(c,typeof s!="symbol"?s+"":s,i);import{C as v}from"./main-scipts-CJTdcIum.js";const n=class n extends v{constructor(i){super(i);l(this,"initRetries");n.menuUl=this.element.querySelector("ul.menu"),n.offCanvasToggle=document.body.querySelector("button.js-nav-offcanvas-toggle"),this.initRetries=0,this.initializeWithRetry()}initializeWithRetry(){window.HeaderOverlay?this.bindUIActions():this.initRetries<n.MAX_RETRIES?(this.initRetries++,setTimeout(()=>this.initializeWithRetry(),n.RETRY_DELAY)):console.warn("HeaderOverlay not available after maximum retries")}bindUIActions(){n.menuUl&&(this.initSubMenuBreadcrumbs(),this.bindOffCanvasToggle(),this.bindMenuAnchors(),this.bindCloseButtons(),this.bindAllAnchorClickTracking())}bindOffCanvasToggle(){var i;(i=n.offCanvasToggle)==null||i.addEventListener("click",()=>{var r,e,a;document.body.classList.toggle("nav-offcanvas-is-active");const t=document.body.classList.contains("nav-offcanvas-is-active");(r=n.offCanvasToggle)==null||r.setAttribute("aria-expanded",t.toString()),t?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden"),t?(e=window.HeaderOverlay)==null||e.open():(a=window.HeaderOverlay)==null||a.close()})}bindMenuAnchors(){var t;Array.from(((t=n.menuUl)==null?void 0:t.querySelectorAll("li.menu-item > a"))??[]).forEach(r=>{const e=r.parentElement,a=e==null?void 0:e.querySelector("ul");a&&(r.setAttribute("aria-haspopup","true"),r.setAttribute("aria-expanded",e!=null&&e.classList.contains("open")?"true":"false"),r.addEventListener("click",o=>{var u,f,b;if(o.preventDefault(),!e||!a)return;const d=r.getAttribute("aria-expanded")==="true";r.setAttribute("aria-expanded",d?"false":"true"),Array.from(((u=e.parentElement)==null?void 0:u.children)??[]).forEach(h=>{h!==e&&h.classList[d?"remove":"add"]("hidden")}),d?(f=window.HeaderOverlay)==null||f.close():(b=window.HeaderOverlay)==null||b.open()}))})}bindCloseButtons(){var t;Array.from(((t=n.menuUl)==null?void 0:t.querySelectorAll(".sub-menu-top > button"))??[]).forEach(r=>{r.addEventListener("click",()=>{var e,a;(a=(e=r.closest(".menu-item"))==null?void 0:e.querySelector(':scope > a[aria-haspopup="true"]'))==null||a.setAttribute("aria-expanded","false")})})}static closeAll(){var t,r;document.body.classList.remove("nav-offcanvas-is-active"),document.body.classList.remove("overflow-hidden"),(t=n.offCanvasToggle)==null||t.setAttribute("aria-expanded","false"),Array.from(((r=n.menuUl)==null?void 0:r.querySelectorAll('li.menu-item > a[aria-haspopup="true"]'))??[]).forEach(e=>{e.setAttribute("aria-expanded","false")})}initSubMenuBreadcrumbs(){var i;(i=n.menuUl)==null||i.querySelectorAll('li.menu-item > a[aria-haspopup="true"]').forEach(t=>{const r=t.parentElement;if(!r)return;const e=window.HeaderOverlay.getParents(r,"li.menu-item").filter(o=>o instanceof HTMLLIElement);e&&e.sort((o,d)=>{const m=Number(o.getAttribute("data-depth")??0),u=Number(d.getAttribute("data-depth")??0);return m-u});const a=t.parentElement.querySelector(".sub-menu-wrapper > .sub-menu-top > ul.sub-menu-breadcrumbs")??null;a&&e&&(e.forEach(o=>{window.HeaderOverlay.addItemToBreadcrumbs(o,a,!1)}),window.HeaderOverlay.addItemToBreadcrumbs(t.parentElement,a,!0))})}bindAllAnchorClickTracking(){if(!n.menuUl)return;n.menuUl.querySelectorAll("a").forEach(t=>{t.addEventListener("click",r=>this.handleAnchorClickTracking(r,t))})}handleAnchorClickTracking(i,t){window.NavPrimary&&typeof window.NavPrimary.trackGtmEvent=="function"&&window.NavPrimary.trackGtmEvent(t)}};l(n,"menuUl"),l(n,"offCanvasToggle"),l(n,"MAX_RETRIES",10),l(n,"RETRY_DELAY",100);let p=n;export{p as default};
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.