{"version":3,"sources":["hello-elementor-child.min.js"],"names":["factory","define","amd","Menu","this","initializeEvents","prototype","animateShortMenu","animateMainMenu","self","setTimeout","openToolboxNavigation","shortMenu","document","querySelector","insertAdjacentHTML","menuItems","querySelectorAll","blackBackground","forEach","list","addEventListener","classList","add","style","left","offsetLeft","width","offsetWidth","remove","mainMenu","menuToggle","innerHTML","burger","megamenu","event","classHidden","classOpened","contains","toolboxTreeFirstItem","click","burgerToggle","getElementById","checked","Form","jQuery","ready","$","select2"],"mappings":"CAAA,SAAWA,GACW,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAOD,GACpDA,IAFJ,CAGG,WAAe,aAEH,SAAPG,IACAC,KAAKC,mBAETF,EAAKG,UAAUD,iBAAmB,WAC9BD,KAAKG,mBACLH,KAAKI,kBACL,IAAIC,EAAOL,KACXM,WAAW,WACPD,EAAKE,yBACN,MAGPR,EAAKG,UAAUC,iBAAmB,WAC9B,IAAIK,EAAYC,SAASC,cAAc,kBAGvCF,EAAUG,mBAAmB,cAFd,wCAIf,IAAIC,EAAYJ,EAAUK,iBAAiB,uBACvCC,EAAkBL,SAASC,cAAc,yBAE7CE,EAAUG,QAAQ,SAAUC,GACxBA,EAAKC,iBAAiB,YAAa,WAC/BH,EAAgBI,UAAUC,IAAI,UAC9BL,EAAgBM,MAAMC,KAAOL,EAAKM,WAAa,KAC/CR,EAAgBM,MAAMG,MAAQP,EAAKQ,YAAc,OAErDR,EAAKC,iBAAiB,WAAY,WAC9BH,EAAgBI,UAAUO,OAAO,eAI7C1B,EAAKG,UAAUE,gBAAkB,WAC7B,IAAIsB,EAAWjB,SAASC,cAAc,qBACtC,GAAIgB,EAAU,CACV,IAAIC,EAAaD,EAAShB,cAAc,0BACpCiB,IACAA,EAAWC,WAAa,mUAUhC,IAAIC,EAASpB,SAASC,cAAc,WAChCoB,EAAWJ,EAAShB,cAAc,kCACtCmB,EAAOZ,iBAAiB,QAAS,SAAUc,GACvC,IAAIC,EAAc,YACdC,EAAc,UACdH,EAASZ,UAAUgB,SAASF,IAC5B1B,WAAW,WACPoB,EAASR,UAAUO,OAAOQ,IAC3B,KACHH,EAASZ,UAAUO,OAAOO,KAE1BN,EAASR,UAAUC,IAAIc,GACvBH,EAASZ,UAAUC,IAAIa,OAKnCjC,EAAKG,UAAUK,sBAAwB,WACnC,IAAI4B,EAAuB1B,SAASC,cAAc,yBAC9CyB,GACAA,EAAqBC,SAI7B3B,SAASQ,iBAAiB,mBAAoB,WAC1CX,WAAW,WACP,IAAI+B,EAAe5B,SAAS6B,eAAe,UACxCD,IACCA,EAAaE,SAAU,IAE5B,OAGI,SAAPC,IACAxC,KAAKC,mBAGTuC,EAAKtC,UAAUD,iBAAmB,WAEPQ,SAASC,cAAc,2BAE1C+B,OAAOhC,UAAUiC,MAAM,SAASC,GAC5BA,EAAE,0BAA0BC,aAKxCnC,SAASQ,iBAAiB,mBAAoB,WAC1C,IAAIlB,EACJ,IAAIyC","file":"hello-elementor-child.min.js","sourcesContent":["(function (factory) {\n typeof define === 'function' && define.amd ? define(factory) :\n factory();\n})((function () { 'use strict';\n\n var Menu = function Menu() {\n this.initializeEvents();\n };\n Menu.prototype.initializeEvents = function initializeEvents () {\n this.animateShortMenu();\n this.animateMainMenu();\n var self = this;\n setTimeout(function () {\n self.openToolboxNavigation();\n }, 1000);\n };\n\n Menu.prototype.animateShortMenu = function animateShortMenu () {\n var shortMenu = document.querySelector('#short-menu ul');\n var codeMenu = '
';\n\n shortMenu.insertAdjacentHTML(\"beforebegin\", codeMenu);\n\n var menuItems = shortMenu.querySelectorAll('li:not(:last-child)');\n var blackBackground = document.querySelector('nav .ago-bg-item-menu');\n\n menuItems.forEach(function (list) {\n list.addEventListener('mouseover', function () {\n blackBackground.classList.add('active');\n blackBackground.style.left = list.offsetLeft + 'px';\n blackBackground.style.width = list.offsetWidth + 'px';\n });\n list.addEventListener('mouseout', function () {\n blackBackground.classList.remove('active');\n });\n });\n };\n Menu.prototype.animateMainMenu = function animateMainMenu () {\n var mainMenu = document.querySelector('#main-burger-menu');\n if (mainMenu) {\n var menuToggle = mainMenu.querySelector('.elementor-menu-toggle');\n if (menuToggle) {\n menuToggle.innerHTML += \"
\" +\n \" \" +\n \" \" +\n \"
\";\n }\n }\n var burger = document.querySelector('.burger');\n var megamenu = mainMenu.querySelector('.elementor-nav-menu__container');\n burger.addEventListener(\"click\", function (event) {\n var classHidden = 'is-hidden';\n var classOpened = 'is-open';\n if (megamenu.classList.contains(classHidden)) {\n setTimeout(function() {\n mainMenu.classList.remove(classOpened);\n }, 300);\n megamenu.classList.remove(classHidden);\n } else {\n mainMenu.classList.add(classOpened);\n megamenu.classList.add(classHidden);\n }\n });\n };\n\n Menu.prototype.openToolboxNavigation = function openToolboxNavigation () {\n var toolboxTreeFirstItem = document.querySelector('.jaofiletree > li > a');\n if (toolboxTreeFirstItem) {\n toolboxTreeFirstItem.click();\n }\n };\n\n document.addEventListener(\"DOMContentLoaded\", function() {\n setTimeout(function () {\n var burgerToggle = document.getElementById('toggle');\n if(burgerToggle) {\n burgerToggle.checked = false;\n }\n }, 100);\n });\n\n var Form = function Form() {\n this.initializeEvents();\n };\n\n Form.prototype.initializeEvents = function initializeEvents () {\n // Add select2 JS to department selectbox\n var selectDepartment = document.querySelector('#form-field-department');\n if(selectDepartment) {\n jQuery(document).ready(function($) {\n $('#form-field-department').select2();\n });\n }\n };\n\n document.addEventListener('DOMContentLoaded', function () {\n new Menu();\n new Form();\n });\n\n}));\n//# sourceMappingURL=hello-elementor-child.min.js.map\n"]}