1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[47970],{7970:(t,e,i)=>{i.r(e),i.d(e,{default:()=>n});var o=i(5206),s=i(4049),r=i(3266);class n extends window.PluginBaseClass{init(){this._debouncer=null,this._triggerEls=this.el.querySelectorAll("[".concat(this.options.triggerDataAttribute,"]")),this._dropdownEls=this.el.querySelectorAll("[".concat(this.options.dropdownIdDataAttribute,"]")),this._mainNavigationMenu=s.Z.querySelector(this.el,this.options.mainNavigationMenuSelector,!1),this.onBodyClick=this._onBodyClick.bind(this),this._touchmoved=!1,this._registerEvents()}_registerEvents(){let t=o.Z.isTouchDevice()?"touchend":"mouseenter",e=o.Z.isTouchDevice()?"touchstart":"mouseleave";r.Z.iterate(this._triggerEls,i=>{let o=s.Z.getDataAttribute(i,this.options.triggerDataAttribute);i.addEventListener("touchmove",this._isTouchMove.bind(this),{passive:!0}),"hover"===this.options.trigger?(i.addEventListener(t,this._openDropdownById.bind(this,o,i)),i.addEventListener(e,()=>this._debounce(this._closeAllDropdowns))):i.addEventListener("click",this._openDropdownById.bind(this,o,i)),i.addEventListener("keydown",t=>{"Escape"===t.code||27===t.keyCode?(this._debounce(this._closeAllDropdowns),n._stopEvent(t)):("Enter"===t.code||13===t.keyCode)&&(this._openDropdownById.bind(this,o,i,t,!0)(),n._stopEvent(t))})}),o.Z.isTouchDevice()||"hover"!==this.options.trigger||r.Z.iterate(this._dropdownEls,t=>{t.addEventListener("mousemove",()=>this._clearDebounce()),t.addEventListener("mouseleave",()=>this._debounce(this._closeAllDropdowns))}),this._mainNavigationMenu.addEventListener("scroll",this._closeAllDropdowns.bind(this))}_registerActiveEvents(){document.body.addEventListener("click",this.onBodyClick)}_unregisterActiveEvents(){document.body.removeEventListener("click",this._onBodyClick)}_openDropdown(t,e){this._isOpen(e)||(this._closeAllDropdowns(),t.classList.add(this.options.activeCls),e.classList.add(this.options.activeCls),this._hasMenuScroller()&&(t.style.left="".concat(e.offsetLeft-e.closest(".main-navigation-menu").scrollLeft,"px")),t.addEventListener("keydown",i=>{("Escape"===i.code||27===i.keyCode)&&(e.focus(),this._closeDropdown(t,e),n._stopEvent(i))}),this._registerActiveEvents()),this.$emitter.publish("openDropdown")}_closeDropdown(t,e){this._isOpen(e)&&(t.classList.remove(this.options.activeCls),e.classList.remove(this.options.activeCls)),this.$emitter.publish("closeDropdown")}_openDropdownById(t,e,i){if(this._touchmoved){this._touchmoved=!1;return}let o=this.el.querySelector("[".concat(this.options.dropdownIdDataAttribute,"='").concat(t,"']"));o&&this._debounce(this._openDropdown,o,e),this._isOpen(e)||n._stopEvent(i),this.$emitter.publish("openDropdownById")}_closeAllDropdowns(){let t=this.el.querySelectorAll("[".concat(this.options.dropdownIdDataAttribute,"]"));r.Z.iterate(t,t=>{let e=this._retrieveTriggerEl(t);this._closeDropdown(t,e)}),this._unregisterActiveEvents(),this.$emitter.publish("closeAllDropdowns")}_retrieveTriggerEl(t){let e=s.Z.getDataAttribute(t,this.options.dropdownIdDataAttribute,!1);return this.el.querySelector("[".concat(this.options.triggerDataAttribute,"='").concat(e,"']"))}_isOpen(t){return t.classList.contains(this.options.activeCls)}_isTouchMove(){this._touchmoved=!0}_hasMenuScroller(){return!!this.el.closest(this.options.navScroller)}_debounce(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];this._clearDebounce(),this._debouncer=setTimeout(t.bind(this,...i),this.options.debounceTime)}_clearDebounce(){clearTimeout(this._debouncer)}static _stopEvent(t){t&&t.cancelable&&(t.preventDefault(),t.stopImmediatePropagation())}_onBodyClick(t){t.target.closest("[".concat(this.options.triggerDataAttribute,"]"))||t.target.closest("[".concat(this.options.dropdownIdDataAttribute,"]"))||(this._closeAllDropdowns(),this.$emitter.publish("onBodyClick"))}}n.options={debounceTime:125,activeCls:"is-open",trigger:"hover",navScroller:".nav-main-scroller",mainNavigationMenuSelector:".main-navigation-menu",dropdownIdDataAttribute:"data-zen-dropdown-menu-id",triggerDataAttribute:"data-zen-dropdown-menu-trigger"}},5206:(t,e,i)=>{i.d(e,{Z:()=>o});class o{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return o.isIPhoneDevice()||o.isIPadDevice()}static isNativeWindowsBrowser(){return o.isIEBrowser()||o.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":o.isTouchDevice(),"is-ios":o.isIOSDevice(),"is-native-windows":o.isNativeWindowsBrowser(),"is-iphone":o.isIPhoneDevice(),"is-ipad":o.isIPadDevice(),"is-ie"
1:o.isIEBrowser(),"is-edge":o.isEdgeBrowser()}}}},4049:(t,e,i)=>{i.d(e,{Z:()=>s});var o=i(5140);class s{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!s.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!1===s.hasAttribute(t,e))throw Error('The required property "'.concat(e,'" does not exist!'));if("function"!=typeof t.getAttribute){if(i)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=e.replace(/^data(|-)/,""),n=o.Z.toLowerCamelCase(r,"-");if(!s.isNode(t)){if(i)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(i)throw Error("This node doesn't support the dataset attribute!");return}let a=t.dataset[n];if(void 0===a){if(i)throw Error('The required data attribute "'.concat(e,'" does not exist on ').concat(t,"!"));return a}return o.Z.parsePrimitive(a)}static querySelector(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!s.isNode(t))throw Error("The parent node is not a valid HTML Node!");let o=t.querySelector(e)||!1;if(i&&!1===o)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return o}static querySelectorAll(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!s.isNode(t))throw Error("The parent node is not a valid HTML Node!");let o=t.querySelectorAll(e);if(0===o.length&&(o=!1),i&&!1===o)throw Error('At least one item of "'.concat(e,'" must exist in parent node!'));return o}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return t.querySelectorAll('\n input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n select:not([tabindex^="-"]):not([disabled]),\n textarea:not([tabindex^="-"]):not([disabled]),\n button:not([tabindex^="-"]):not([disabled]),\n a[href]:not([tabindex^="-"]):not([disabled]),\n [tabindex]:not([tabindex^="-"]):not([disabled])\n ')}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}},3266:(t,e,i)=>{i.d(e,{Z:()=>o});class o{static iterate(t,e){if(t instanceof Map||Array.isArray(t))return t.forEach(e);if(t instanceof FormData){for(var i of t.entries())e(i[1],i[0]);return}if(t instanceof NodeList)return t.forEach(e);if(t instanceof HTMLCollection)return Array.from(t).forEach(e);if(t instanceof Object)return Object.keys(t).forEach(i=>{e(t[i],i)});throw Error("The element type ".concat(typeof t," is not iterable!"))}}},5140:(t,e,i)=>{i.d(e,{Z:()=>o});class o{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let i=o.toUpperCamelCase(t,e);return o.lcFirst(i)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>o.ucFirst(t.toLowerCase())).join(""):o.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}}}]);
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.