1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[64409],{4409:(e,o,s)=>{s.r(o),s.d(o,{default:()=>t});class t extends window.PluginBaseClass{static #e=this.options={topLevelLinksSelector:".main-navigation-link",showBarClass:"js-show-bar",navScroller:'[data-zen-nav-scroller="true"]',scrollContainer:".main-navigation-menu",dropdownSelector:".dropdown-menu.js-dropdown",flyoutSelector:".dropdown-menu.js-flyout"};init(){this._navbarPlugin=window.PluginManager.getPluginInstanceFromElement(this.el,"Navbar"),this._topLevelLinks=this.el.querySelectorAll(`${this.options.topLevelLinksSelector}`),this._registerEvents()}_registerEvents(){this._topLevelLinks.forEach(e=>{e.addEventListener("touchstart",()=>{this._toggleNavbarClass(e,!0)}),e.addEventListener("touchmove",this._onTouchMove.bind(this),{passive:!0}),e.addEventListener("keydown",o=>{["Enter"].includes(o.key)&&this._toggleNavbarClass(e,!0)}),e.addEventListener("show.bs.dropdown",o=>{let s=o.target.closest(".dropdown")?.querySelector(this.options.dropdownSelector);s&&this._onDropdownShow(e,s)}),e.addEventListener("hide.bs.dropdown",()=>{this._toggleNavbarClass(e,!1)})}),this._navbarPlugin.$emitter.subscribe("showDropdown",this._onShowDropdown.bind(this))}_onDropdownShow(e,o){this._hasMenuScroller()&&(o.style.left=`${e.offsetLeft-e.closest(this.options.scrollContainer).scrollLeft}px`)}_toggleNavbarClass(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;e.classList.toggle(this.options.showBarClass,o)}_onShowDropdown(){this._topLevelLinks.forEach(e=>{e.blur()})}_onTouchMove(){"function"==typeof this._navbarPlugin._closeAllDropdowns&&this._navbarPlugin._closeAllDropdowns()}_hasMenuScroller(){return!!this.el.closest(this.options.navScroller)}}}}]);
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.