{"version":3,"file":"header_responsiveness.js","mappings":"AACAA,SAASC,iBAAiB,oBAAoB,WAE5C,MAAMC,EAAaF,SAASG,cAAc,wBACtCD,GACFA,EAAWD,iBAAiB,SAAS,WACnC,MAAMG,EAAcJ,SAASG,cAAc,iBACrCE,EAAgBH,EAAWC,cAAc,QAE3CC,GAAeC,IACbD,EAAYE,UAAUC,SAAS,WAEjCH,EAAYE,UAAUE,OAAO,UAC7BH,EAAcI,aAAa,IAAK,6MAKhCL,EAAYE,UAAUI,IAAI,UAC1BL,EAAcI,aAAa,IAAK,uHAItC,IAIF,MAAME,EAAkBX,SAASY,eAAe,oBAC5CD,GACFA,EAAgBV,iBAAiB,SAAS,SAASY,GACjDA,EAAEC,kBACF,MAAMC,EAAcf,SAASY,eAAe,wBACxCG,GACFA,EAAYT,UAAUU,OAAO,SAEjC,IAIFhB,SAASC,iBAAiB,SAAS,WACTD,SAASiB,iBAAiB,+CAClCC,SAAQC,IACjBA,EAAIb,UAAUC,SAAS,WAC1BY,EAAIb,UAAUI,IAAI,SACpB,GAEJ,GACF","sources":["webpack://trace_taiwan/./app/javascript/packs/header_responsiveness.js"],"sourcesContent":["// Header menu functionality\ndocument.addEventListener('DOMContentLoaded', function() {\n // Toggle menu hamburger button\n const toggleMenu = document.querySelector('#toggle-menu-options');\n if (toggleMenu) {\n toggleMenu.addEventListener('click', function() {\n const menuOptions = document.querySelector('#menu-options');\n const hamburgerIcon = toggleMenu.querySelector('path');\n \n if (menuOptions && hamburgerIcon) {\n if (menuOptions.classList.contains('hidden')) {\n // Open menu\n menuOptions.classList.remove('hidden');\n hamburgerIcon.setAttribute('d', \"M18.278 16.864a1 1 0 0 1-1.414 1.414l-4.829-4.828-4.828 4.828a1 \" +\n \"1 0 0 1-1.414-1.414l4.828-4.829-4.828-4.828a1 1 0 0 1 1.414-1.414l4.829 4.828 4.828-4.828a1\" +\n \"1 0 1 1 1.414 1.414l-4.828 4.829 4.828 4.828\");\n } else {\n // Close menu\n menuOptions.classList.add('hidden');\n hamburgerIcon.setAttribute('d', 'M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 ' +\n '1 0 2H4a1 1 0 0 1 0-2z');\n }\n }\n });\n }\n \n // Profile dropdown\n const profileDropdown = document.getElementById('profile-dropdown');\n if (profileDropdown) {\n profileDropdown.addEventListener('click', function(e) {\n e.stopPropagation();\n const dropdownDiv = document.getElementById('profile-dropdown-div');\n if (dropdownDiv) {\n dropdownDiv.classList.toggle('hidden');\n }\n });\n }\n\n // Close dropdowns when clicking outside\n document.addEventListener('click', function() {\n const dropdownOptions = document.querySelectorAll('#traces-dropdown-div, #profile-dropdown-div');\n dropdownOptions.forEach(ele => {\n if (!ele.classList.contains('hidden')) {\n ele.classList.add('hidden');\n }\n });\n });\n});\n"],"names":["document","addEventListener","toggleMenu","querySelector","menuOptions","hamburgerIcon","classList","contains","remove","setAttribute","add","profileDropdown","getElementById","e","stopPropagation","dropdownDiv","toggle","querySelectorAll","forEach","ele"],"sourceRoot":""}