{"version":3,"file":"MegaMenu.min.js","sources":["MegaMenu.min.js"],"sourcesContent":["'use strict';\r\n\r\n$('a.megaMenuAnchorLink').click(function (event) {\r\n //var currentURL = window.location.href;\r\n var urlPathNoAnchor = this.getAttribute(\"href\").split(\"#\")[0];\r\n //the current page is the same with the mega menu item's anchor link\r\n if (window.location.pathname === urlPathNoAnchor)\r\n {\r\n event.preventDefault();\r\n //hide all accordion items first\r\n $(\".acc-title\").removeClass(\"active\");\r\n $(\".acc-content\").hide();\r\n\r\n var anchorSection = this.dataset.anchorid;\r\n if (anchorSection !== null && anchorSection !== \"\") {\r\n var label = document.getElementById(\"lbl\" + anchorSection);\r\n if (label !== null) {\r\n label.classList.add(\"active\");\r\n }\r\n var content = document.getElementById(\"content\" + anchorSection);\r\n if (content !== null) {\r\n content.style.display = \"block\";\r\n }\r\n //jump to new anchor link accordion item\r\n var url = location.href; \r\n location.href = \"#\" + anchorSection; \r\n history.replaceState(null, null, url);\r\n }\r\n }\r\n});"],"names":["$","click","event","urlPathNoAnchor","this","getAttribute","split","window","location","pathname","preventDefault","removeClass","hide","anchorSection","dataset","anchorid","label","document","getElementById","classList","add","content","style","display","url","href","history","replaceState"],"mappings":"AAAA,aAEAA,EAAE,sBAAsB,EAAEC,MAAM,SAAUC,GAEtC,IAAIC,EAAkBC,KAAKC,aAAa,MAAM,EAAEC,MAAM,GAAG,EAAE,GAEvDC,OAAOC,SAASC,WAAaN,IAE7BD,EAAMQ,eAAe,EAErBV,EAAE,YAAY,EAAEW,YAAY,QAAQ,EACpCX,EAAE,cAAc,EAAEY,KAAK,EAGD,QADlBC,EAAgBT,KAAKU,QAAQC,YACe,KAAlBF,IAEZ,QADVG,EAAQC,SAASC,eAAe,MAAQL,CAAa,IAErDG,EAAMG,UAAUC,IAAI,QAAQ,EAGhB,QADZC,EAAUJ,SAASC,eAAe,UAAYL,CAAa,KAE3DQ,EAAQC,MAAMC,QAAU,SAGxBC,EAAMhB,SAASiB,KACnBjB,SAASiB,KAAO,IAAMZ,EACtBa,QAAQC,aAAa,KAAM,KAAMH,CAAG,EAGhD,CAAC"}