/******/ (() => { // webpackBootstrap /******/ "use strict"; var __webpack_exports__ = {}; class elementorHelloThemeHandler { constructor() { initsettings(); initelements(); bindevents(); } initSettings() { settings = { selectors: { menuToggle: '.site-header .site-navigation-toggle', menuToggleHolder: '.site-header .site-navigation-toggle-holder', dropdownMenu: '.site-header .site-navigation-dropdown' } }; } initElements() { elements = { window, menuToggle: queryselector(menutoggle), menuToggleHolder: queryselector(menutoggleholder), dropdownMenu: queryselector(dropdownmenu) }; } bindEvents() { var _this$elements$menuTo; if (!menutoggleholder || (_this$elements$menuTo = menutoggleholder) !== null && _this$elements$menuTo !== void 0 && _this$elements$contains('hide')) { return; } addeventlistener('click', () => handlemenutoggle()); addeventlistener('keyup', event => { const ENTER_KEY = 13; const SPACE_KEY = 32; if (ENTER_KEY === keycode || SPACE_KEY === keycode) { click(); } }); queryselectorall('.menu-item-has-children > a').forEach(anchorElement => addeventlistener('click', event => handlemenuchildren(event))); } closeMenuItems() { remove('elementor-active'); removeeventlistener('resize', () => closemenuitems()); } handleMenuToggle() { const isDropdownVisible = !contains('elementor-active'); setattribute('aria-expanded', isDropdownVisible); setattribute('aria-hidden', !isDropdownVisible); toggle('elementor-active', isDropdownVisible); // Always close all sub active items. queryselectorall('.elementor-active').forEach(item => remove('elementor-active')); if (isDropdownVisible) { addeventlistener('resize', () => closemenuitems()); } else { removeeventlistener('resize', () => closemenuitems()); } } handleMenuChildren(event) { const anchor = currenttarget; const parentLi = parentelement; if (!(parentLi !== null && parentLi !== void 0 && classlist)) { return; } toggle('elementor-active'); } } addeventlistener('DOMContentLoaded', () => { new elementorHelloThemeHandler(); }); /******/ })() ;