1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[45895],{5895(e,t,i){i.r(t),i.d(t,{default:()=>n});var s=i(4632),o=i(4335);class n extends o.A{static #e=this.options={debounceTime:200,navItemSelector:".nav-item",topLevelLinksSelector:".main-navigation-link",ariaCurrentPageSelector:".nav-item-{id}-link",activeClass:"active",pathIdList:[]};init(){this._topLevelLinks=this.el.querySelectorAll(`${this.options.topLevelLinksSelector}`),this._registerEvents(),this._isMouseOver=!1}_registerEvents(){let e=s.A.isTouchDevice()?"touchstart":"mouseenter",t=s.A.isTouchDevice()?"touchstart":"mouseleave",i=s.A.isTouchDevice()?"touchstart":"click";this.el.addEventListener("mouseleave",this._closeAllDropdowns.bind(this)),this.el.addEventListener("focusout",this._restoreFocusAfterBtnClose.bind(this)),this._topLevelLinks.forEach(s=>{s.addEventListener(e,this._toggleNavbar.bind(this,s)),s.addEventListener(t,this._toggleNavbar.bind(this,s)),null!==s.getAttribute("href")&&s.addEventListener(i,this._navigateToLinkOnClick.bind(this,s))}),window.addEventListener("load",()=>{this._setCurrentPage()})}_toggleNavbar(e,t){let i=window.bootstrap.Dropdown.getOrCreateInstance(e);"mouseenter"===t.type?(this._isMouseOver=!0,this._debounce(()=>{this._isMouseOver&&(this._closeAllDropdowns(),i?._menu&&!i._menu.classList.contains("show")&&(i.show(),e.blur()),this.$emitter.publish("showDropdown"))},this.options.debounceTime)):"mouseleave"===t.type&&(this._isMouseOver=!1)}_closeAllDropdowns(){Array.from(this._topLevelLinks).map(e=>window.bootstrap.Dropdown.getInstance(e)).forEach(e=>{e?._menu&&e._menu.classList.contains("show")&&e.hide()}),this.$emitter.publish("closeAllDropdowns")}_navigateToLinkOnClick(e,t){if("click"===t.type&&0!==t.pageX&&e.classList.contains("dropdown-toggle")){if("_blank"===e.target){window.open(e.href,"_blank","noopener, noreferrer");return}this._navigateTo(e.href)}}_debounce(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];this._clearDebounce(),this._debouncer=setTimeout(e.bind(this,...i),this.options.debounceTime)}_clearDebounce(){clearTimeout(this._debouncer)}_setCurrentPage(){if(window.activeNavigationId){let e=this.options.ariaCurrentPageSelector.replace("{id}",window.activeNavigationId),t=this.el.querySelector(e);t&&(t.setAttribute("aria-current","page"),t.classList.add(this.options.activeClass))}(window.activeNavigationPathIdList||this.options.pathIdList||[]).forEach(e=>{let t=this.options.ariaCurrentPageSelector.replace("{id}",e),i=this.el.querySelector(t);i&&i.classList.add(this.options.activeClass)})}_navigateTo(e){window.location.href=e}_restoreFocusAfterBtnClose(e){if(e.relatedTarget||e.target.matches(this.options.topLevelLinksSelector))return;let t=e.target.closest(this.options.navItemSelector)?.querySelector(this.options.topLevelLinksSelector);t&&window.focusHandler.setFocus(t)}}}}]);
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.