{"version":3,"file":"main.js","mappings":"MACA,MAAMA,EAAyBC,SAASC,eAAe,uBACjDC,EAAiBF,SAASC,eAAe,qBAE3CF,GACFA,EAAuBI,iBAAiB,SAAS,WAC/CD,EAAeE,UAAUC,OAAO,WAE5BH,EAAeE,UAAUE,SAAS,WACpCN,SAASO,KAAKC,MAAMC,SAAW,SAE/BT,SAASO,KAAKC,MAAMC,SAAW,SAEnC,IAIF,MAAMC,EAA0BV,SAASC,eAAe,2BAClDU,EAAcX,SAASC,eAAe,QACtCW,EAAaZ,SAASC,eAAe,cACjBD,SAASa,cAAc,kCAG7CH,GACFA,EAAwBP,iBAAiB,SAAS,WAChDQ,EAAYP,UAAUC,OAAO,aAC/B,IAGEO,GACFA,EAAWT,iBAAiB,aAC5B,WACMQ,EAAYP,UAAUE,SAAS,eACjCK,EAAYP,UAAUU,OAAO,aAEjC,G","sources":["webpack://rkucustomerportal-frontend/./src/scripts/main.js"],"sourcesContent":["// Sidebar Toggle Mobile\nconst sidebarToggleBtnMobile = document.getElementById('sidebarToogleMobile');\nconst sidebarWrapper = document.getElementById('sidebarNavWrapper');\n\nif (sidebarToggleBtnMobile) {\n sidebarToggleBtnMobile.addEventListener('click', function() {\n sidebarWrapper.classList.toggle('is-open');\n\n if (sidebarWrapper.classList.contains('is-open')) {\n document.body.style.overflow = 'hidden';\n } else {\n document.body.style.overflow = 'visible';\n }\n });\n}\n\n// Sidebar Toggle Desktop\nconst sidebarToogleBtnDesktop = document.getElementById('sidebarToogleBtnDesktop');\nconst mainWrapper = document.getElementById('main');\nconst sidebarNav = document.getElementById('sidebarNav');\nconst sidebarNavSubMenu = document.querySelector('.sidebar-nav-wrapper .collapse');\n\n\nif (sidebarToogleBtnDesktop) {\n sidebarToogleBtnDesktop.addEventListener('click', function() {\n mainWrapper.classList.toggle('is-toggled');\n });\n}\n\nif (sidebarNav) {\n sidebarNav.addEventListener('mouseover', removeToggleClass)\n function removeToggleClass() {\n if (mainWrapper.classList.contains('is-toggled')) {\n mainWrapper.classList.remove('is-toggled');\n }\n }\n}\n\n"],"names":["sidebarToggleBtnMobile","document","getElementById","sidebarWrapper","addEventListener","classList","toggle","contains","body","style","overflow","sidebarToogleBtnDesktop","mainWrapper","sidebarNav","querySelector","remove"],"sourceRoot":""}