1(self.webpackChunkf7frontend=self.webpackChunkf7frontend||[]).push([["page-header"],{1993:()=>{const e=document.querySelector(".page-header");new class{constructor(e){this.element=e,this.navigation=this.element.querySelector(".navigation"),this.primaryHeader=this.element.querySelector(".page-header__primary"),this.secondaryHeader=this.element.querySelector(".page-header__secondary"),this.mobileToggles=this.navigation.querySelectorAll(".navigation__toggle"),this.classes={compact:"page-header--compact",fixed:"page-header--fixed",visible:"page-header--visible",nav_open:"navigation--open",overflow:"navigation__menu-list--overflow"},this.initMobileMenu(),this.initLinkAction(),this.initMegaMenuClose(),this.initScrollBehaviour(),this.initMenuListScrollListener(),this.escListener=e=>this.closeOnEsc(e)}initMobileMenu(){this.mobileToggles.forEach((e=>{const t=e.getAttribute("aria-controls");e.addEventListener("click",(()=>{if(this.mobileToggles.forEach((e=>{e.setAttribute("aria-expanded",!1)})),this.navigation.classList.contains(this.classes.nav_open))return this.navigation.getAttribute("data-open")!==t?(this.navigation.setAttribute("data-open",t),void e.setAttribute("aria-expanded",!0)):(this.closeNavigation(),document.removeEventListener("keydown",this.escListener,!1),document.body.style.overflow="",void(document.body.style.paddingRight=""));const i=document.documentElement.clientWidth,s=window.innerWidth-i;document.body.style.overflow="hidden",document.body.style.paddingRight=s+"px",this.element.classList.contains(this.classes.fixed)||(this.element.classList.add(this.classes.fixed),this.forceFixed=!0),this.navigation.classList.add(this.classes.nav_open),this.navigation.setAttribute("data-open",t),e.setAttribute("aria-expanded",!0),document.addEventListener("keydown",this.escListener,!1)}),!1)}));const e=this.element.querySelector(".navigation__meta"),t=e.querySelector(".meta-lang-menu__trigger");null!=t&&t.addEventListener("click",(t=>{t.preventDefault(),e.classList.toggle("navigation__meta--open")}))}initLinkAction(){this.navLinks=this.navigation.querySelectorAll(".navigation__menu-item-link"),this.navLinks.forEach((e=>{"true"!==e.getAttribute("aria-haspopup")?null==e.getAttribute("data-level")||e.addEventListener("click",(t=>{t.preventDefault();const i=e.getAttribute("data-level"),s=e.closest(`.navigation__menu-wrapper[data-level="${i}"]`),n=s.querySelector(".navigation__menu-item--visible").querySelector(".navigation__menu-item-link");this.reset(s),n.focus()}),!1):e.addEventListener("click",(t=>{const i=e.getAttribute("data-level");if(window.matchMedia("(min-width: 992px)").matches&&i>4)return;t.preventDefault();const s=e.closest(".navigation__menu-wrapper"),n=e.closest(".navigation__menu-item"),a=e.getAttribute("aria-controls"),o=this.navigation.querySelector(`#${a}`),r=o.querySelector(".navigation__menu-item--back-parent > .navigation__menu-item-link");if("true"===e.getAttribute("aria-expanded"))return void(1===parseInt(s.dataset.level)?(document.removeEventListener("keydown",this.escListener,!1),this.closeNavigation()):this.reset(s));this.reset(s),s.classList.add("navigation__menu-wrapper--covered"),n.classList.add("navigation__menu-item--visible"),o.classList.add("navigation__menu-wrapper--visible"),o.setAttribute("aria-hidden",!1),e.setAttribute("aria-expanded",!0);const l=o.querySelector(".navigation__menu-list");this.checkScrollPos(l),1===parseInt(s.dataset.level)&&document.addEventListener("keydown",this.escListener,!1),this.navigation.classList.contains(this.classes.nav_open)||s.addEventListener("animationend",(()=>{this.navigation.classList.add(this.classes.nav_open)}),{once:!0}),r.focus()}),!1)}))}initMegaMenuClose(){this.closeButtons=this.navigation.querySelectorAll(".navigation__menu-close"),this.closeButtons.forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.closeNavigation(),document.removeEventListener("keydown",this.escListener,!1)}),!1)}))}closeNavigation(){this.forceFixed&&(this.element.classList.remove(this.classes.fixed),this.forceFixed=!1),this.navigation.setAttribute("closing",""),this.navigation.addEventListener("animationend",(()=>{this.navigation.removeAttribute("data-open"),this.navigation.removeAttribute("closing"),this.navigation.classList.remove(this.classes.nav_open),this.mobileToggles.forEac
1h((e=>{e.setAttribute("aria-expanded",!1)})),this.reset()}),{once:!0})}closeOnEsc(e){"Escape"==e.key&&(this.closeNavigation(),document.removeEventListener("keydown",this.escListener,!1))}reset(e){void 0===e&&(e=this.navigation.querySelector('.navigation__menu-wrapper[data-level="1"]'));const t=e.querySelectorAll(".navigation__menu-wrapper--visible"),i=e.querySelectorAll(".navigation__menu-item--visible"),s=e.querySelectorAll('.navigation__menu-item-link[aria-expanded="true"]'),n=e.querySelectorAll(".navigation__menu-wrapper--covered");e.classList.remove("navigation__menu-wrapper--covered"),n.forEach((e=>{e.classList.remove("navigation__menu-wrapper--covered")})),t.forEach((e=>{e.classList.remove("navigation__menu-wrapper--visible"),e.setAttribute("aria-hidden",!0)})),i.forEach((e=>{e.classList.remove("navigation__menu-item--visible")})),s.forEach((e=>{e.setAttribute("aria-expanded",!1)}))}initScrollBehaviour(){let e=0,t=this.primaryHeader.offsetTop,i=this.element.offsetTop;const s=(window.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0),n=document.querySelector(":root");s>i&&this.element.classList.add(this.classes.fixed),new ResizeObserver((()=>{t=this.primaryHeader.offsetTop,i=this.element.offsetTop})).observe(document.body),window.addEventListener("scroll",(()=>{document.body.scrollTop>t||document.documentElement.scrollTop>t?this.element.classList.add(this.classes.compact):this.element.classList.remove(this.classes.compact),document.body.scrollTop>i||document.documentElement.scrollTop>i?this.element.classList.add(this.classes.fixed):this.element.classList.remove(this.classes.fixed);const s=window.pageYOffset||document.documentElement.scrollTop;if(s-e>20){let e;this.element.classList.remove(this.classes.visible),e=window.matchMedia("(min-width: 992px)").matches?getComputedStyle(this.primaryHeader).getPropertyValue("--_primary-height"):0,n.style.setProperty("--ph-height",e)}else s-e<-20&&(this.element.classList.add(this.classes.visible),n.style.setProperty("--ph-height",`${this.element.offsetHeight}px`));e=s<=0?0:s}),!1)}initMenuListScrollListener(){this.element.querySelectorAll(".navigation__menu-list").forEach((e=>{e.addEventListener("scroll",(()=>{this.checkScrollPos(e)}),!1)}))}checkScrollPos(e){const t=e.scrollTop,i=e.scrollHeight-e.offsetHeight;0!==t?e.classList.add(this.classes.overflow+"-top"):e.classList.remove(this.classes.overflow+"-top"),t!==i?e.classList.add(this.classes.overflow+"-bottom"):e.classList.remove(this.classes.overflow+"-bottom")}}(e)},2550:()=>{}},e=>{var t=t=>e(e.s=t);t(1993),t(2550)}]);
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.