1var search=document.querySelector(".header__search"),searchInput=document.querySelector(".hs-search-field__input"),searchClose=document.querySelector(".header__search--close"),searchToggle=document.querySelector(".header__search--toggle"),header=document.querySelector(".header"),nav=document.querySelector(".header__navigation"),navToggle=document.querySelector(".header__navigation--toggle"),langSwitcher=document.querySelector(".header__language-switcher"),langToggle=document.querySelector(".header__language-switcher--toggle"),body=document.querySelector(".body-wrapper"),headerDynamicScroll=body.classList.contains("body-wrapper--header-dynamic_scroll_up"),headerTransparent=body.classList.contains("body-wrapper--header-transparent"),isHeaderFixed=body.classList.contains("body-wrapper--header-fixed");function closeAll(){document.querySelectorAll(".header__navigation, .header__language-switcher, .header__search").forEach(function(item){item.classList.remove("open")}),navToggle.classList.remove("header__navigation--close")}function toggleSearch(){search.classList.contains("open")?closeAll():(closeAll(),search.classList.toggle("open"))}function toggleNav(){if(nav.classList.contains("open"))return closeAll(),void(0==document.documentElement.scrollTop&&(body.classList.remove("scroll-transparent"),console.log("remove")));closeAll(),body.classList.add("scroll-transparent"),navToggle.classList.add("header__navigation--close"),nav.classList.toggle("open")}function toggleLang(){langSwitcher.classList.contains("open")?closeAll():(closeAll(),langSwitcher.classList.toggle("open"))}function handlerDynamicScroll(e){const oldSt=document.documentElement.scrollTop;setTimeout(()=>{const newSt=document.documentElement.scrollTop;oldSt<newSt&&body.classList.add("scroll-down"),oldSt>newSt&&body.classList.remove("scroll-down")},50)}function transparentScroll(e){if(!document.querySelector(".header__navigation").classList.contains("open")){document.documentElement.scrollTop;const headerHeight=header.clientHeight;setTimeout(()=>{document.documentElement.scrollTop>headerHeight?body.classList.add("scroll-transparent"):body.classList.remove("scroll-transparent")},50)}}searchToggle&&searchToggle.addEventListener("click",toggleSearch),searchClose&&searchClose.addEventListener("click",toggleSearch),navToggle&&navToggle.addEventListener("click",toggleNav),langToggle&&langToggle.addEventListener("click",toggleLang),headerDynamicScroll&&document.addEventListener("scroll",handlerDynamicScroll),headerTransparent&&document.addEventListener("scroll",transparentScroll);const btnsPopup=document.querySelectorAll("button[data-popupid]");function scrollToSection(sectionElement){const offsetY=isHeaderFixed?-header.offsetHeight:0,scrollToPos=sectionElement.getBoundingClientRect().top+window.pageYOffset+offsetY;window.scrollTo({top:scrollToPos,behavior:"smooth"})}function getSectionElement(hash){const sectionNum=hash.replace("#section-","");return document.querySelectorAll(".dnd-section")[sectionNum-1]}btnsPopup&&btnsPopup.forEach(function(item){item.addEventListener("click",function(){let dataPopup=this.dataset.popupid;const popup=document.getElementById(dataPopup);popup&&popup.classList.add("active")})}),document.querySelectorAll(".button, a.menu-link, .footer__menu a").forEach(link=>{link.addEventListener("click",event=>{if(link.hash){const sectionElement=getSectionElement(link.hash);if(sectionElement){`${window.location.origin}${window.location.pathname}`===event.currentTarget.href.split("#")[0].split("?")[0]&&(event.preventDefault(),scrollToSection(sectionElement))}}})});const hash=window.location.hash;if(hash){const sectionElement=getSectionElement(hash);sectionElement&&scrollToSection(sectionElement)} 2//# sourceURL=https://44665236.fs1.hubspotusercontent-na1.net/hubfs/44665236/hub_generated/template_assets/1/153267706209/1790810645274/template_main.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.