1var module_249634969549=function(){const header=document.querySelector(".header-menu-section"),navItems=document.querySelectorAll(".header-nav .hs-menu-wrapper > ul > li.hs-item-has-children"),megaMenu=document.getElementById("megaMenu"),menuContents=document.querySelectorAll(".menu-content");let hideTimeout;function openMegaMenu(item){clearTimeout(hideTimeout);const menuType=item.getAttribute("data-menu");header.classList.add("mega-open"),megaMenu.classList.add("active"),menuContents.forEach(content=>{content.classList.toggle("active",content.getAttribute("data-content")===menuType)}),navItems.forEach(i=>{i.querySelector("a")?.setAttribute("aria-expanded","false")}),item.querySelector("a")?.setAttribute("aria-expanded","true")}function closeMegaMenu(){header.classList.remove("mega-open"),megaMenu.classList.remove("active"),navItems.forEach(i=>{i.querySelector("a")?.setAttribute("aria-expanded","false")})}navItems.forEach(item=>{item.addEventListener("mouseenter",()=>openMegaMenu(item)),item.addEventListener("focusin",()=>openMegaMenu(item)),item.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),openMegaMenu(item)),"Escape"===e.key&&(closeMegaMenu(),item.querySelector("a")?.focus())})}),header.addEventListener("mouseleave",()=>{hideTimeout=setTimeout(closeMegaMenu,200)}),header.addEventListener("mouseenter",()=>{clearTimeout(hideTimeout)}),document.addEventListener("focusin",e=>{header.contains(e.target)||closeMegaMenu()}),document.querySelectorAll(".header-nav .hs-menu-wrapper li a").forEach(link=>{" "!==link.innerHTML.trim()&&""!==link.textContent.trim()||(link.setAttribute("tabindex","-1"),link.setAttribute("aria-hidden","true"))})}(); 2//# sourceURL=https://24443783.fs1.hubspotusercontent-na3.net/hubfs/24443783/hub_generated/module_assets/1/249634969549/1777590391850/module_mega-menu.js
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.