1import{g as t}from"./getCurrentUrl-BQon3xeY.js";const n={cfg:{name:"navigationAside",selectors:{navigationAside:".c-navigationAside",navigationAsideItem:".c-navigationAside__link",toggle:".js-navigationAsideTrigger",content:".js-navigationAsideContent"},classes:{isActive:"is-active"},el:{$navigationAside:void 0},els:{$navigationAsideItems:void 0,$toggles:void 0}},setElements(){this.cfg.el.$navigationAside=document.querySelector(this.cfg.selectors.navigationAside),this.cfg.el.$navigationAside&&(this.cfg.els.$navigationAsideItems=[...this.cfg.el.$navigationAside.querySelectorAll(this.cfg.selectors.navigationAsideItem)]),this.cfg.els.$toggles=[...document.querySelectorAll(this.cfg.selectors.toggle)]},addAriaLabelsForMobile(){this.cfg.els.$toggles&&this.cfg.els.$toggles.forEach(e=>{window.matchMedia("(min-width: 1200px)").matches?(e.setAttribute("tabindex","-1"),e.setAttribute("aria-expanded",!0)):(e.removeAttribute("tabindex"),e.setAttribute("aria-expanded",!1),e.classList.remove("is-open"),e.nextElementSibling.matches(this.cfg.selectors.content)&&e.nextElementSibling.classList.remove("is-open"))})},toggleContent(){this.cfg.els.$toggles.forEach(e=>{e.addEventListener("click",()=>{e.getAttribute("aria-expanded")==="true"?(e.setAttribute("aria-expanded",!1),e.classList.remove("is-open"),e.nextElementSibling.matches(this.cfg.selectors.content)&&e.nextElementSibling.classList.remove("is-open")):(e.setAttribute("aria-expanded",!0),e.classList.add("is-open"),e.nextElementSibling.matches(this.cfg.selectors.content)&&e.nextElementSibling.classList.add("is-open"))})})},setActiveAsNavTrigger(e){e.parentNode.parentNode.parentNode.querySelector("".concat(this.cfg.selectors.toggle," .js-navigationAsideTextHolder")).innerText=e.innerText},handleActiveState(){this.cfg.els.$navigationAsideItems.forEach(e=>{e.href===t()&&(this.setActiveAsNavTrigger(e),e.classList.add(this.cfg.classes.isActive))})},init(){this.setElements(),this.handleActiveState(),this.addAriaLabelsForMobile(),this.cfg.els.$toggles&&this.toggleContent()}};export{n as default}; 2//# sourceMappingURL=navigationAside-DIChyez7.js.map
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.