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,MAAM,IAEtCD,EAAgBpG,iBAAiB,cAAc,KAC3CwF,EAAmBI,SAASU,OAAO,IAG/C,CACJ,G,GC7VIC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCrBAJ,EAAoBO,EAAKF,IACxB,IAAIG,EAASH,GAAUA,EAAOI,WAC7B,IAAOJ,EAAiB,QACxB,IAAM,EAEP,OADAL,EAAoBU,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdR,EAAoBU,EAAI,CAACN,EAASQ,KACjC,IAAI,IAAIjE,KAAOiE,EACXZ,EAAoBa,EAAED,EAAYjE,KAASqD,EAAoBa,EAAET,EAASzD,IAC5Ef,OAAOkF,eAAeV,EAASzD,EAAK,CAAEoE,YAAY,EAAMC,IAAKJ,EAAWjE,IAE1E,ECNDqD,EAAoBa,EAAI,CAACI,EAAKC,IAAUtF,OAAOuF,UAAUC,eAAeC,KAAKJ,EAAKC,G,0BCIlFrC,QAAQyC,IAAI,yB","sources":["webpack://ijalfauzi/./src/js/custom.js","webpack://ijalfauzi/webpack/bootstrap","webpack://ijalfauzi/webpack/runtime/compat get default export","webpack://ijalfauzi/webpack/runtime/define property getters","webpack://ijalfauzi/webpack/runtime/hasOwnProperty shorthand","webpack://ijalfauzi/./src/js/main.js"],"sourcesContent":["document.addEventListener('DOMContentLoaded', function() {\r\n // Mobile Navigation\r\n const navToggle = document.querySelector('[data-toggle-nav]');\r\n const mobileNav = document.querySelector('[data-mobile-nav]');\r\n let isMenuOpen = false;\r\n\r\n if (navToggle && mobileNav) {\r\n const toggleMenu = (event) => {\r\n if (event) {\r\n event.stopPropagation();\r\n }\r\n \r\n isMenuOpen = !isMenuOpen;\r\n mobileNav.classList.toggle('hidden');\r\n \r\n // Update icon\r\n navToggle.innerHTML = isMenuOpen \r\n ? ''\r\n : '';\r\n\r\n // Close search panel if open when opening mobile nav\r\n if (isMenuOpen && searchPanel && !searchPanel.classList.contains('hidden')) {\r\n searchPanel.classList.add('hidden');\r\n isSearchOpen = false;\r\n }\r\n };\r\n\r\n navToggle.addEventListener('click', toggleMenu);\r\n\r\n // Close mobile nav when clicking outside\r\n document.addEventListener('click', (e) => {\r\n if (isMenuOpen && \r\n !mobileNav.contains(e.target) && \r\n !navToggle.contains(e.target)) {\r\n toggleMenu();\r\n }\r\n });\r\n\r\n // Prevent clicks inside mobile nav from closing it\r\n mobileNav.addEventListener('click', (e) => {\r\n e.stopPropagation();\r\n });\r\n }\r\n\r\n // Search Functionality\r\n const searchToggle = document.querySelector('[data-search-toggle]');\r\n const searchPanel = document.querySelector('[data-search-panel]');\r\n const searchInput = document.querySelector('[data-search-input]');\r\n let isSearchOpen = false;\r\n \r\n if (searchToggle && searchPanel) {\r\n const toggleSearch = (event) => {\r\n if (event) {\r\n event.stopPropagation();\r\n }\r\n\r\n isSearchOpen = !isSearchOpen;\r\n searchPanel.classList.toggle('hidden');\r\n \r\n // Close mobile nav if open when opening search\r\n if (isSearchOpen && mobileNav && !mobileNav.classList.contains('hidden')) {\r\n isMenuOpen = false;\r\n mobileNav.classList.add('hidden');\r\n navToggle.innerHTML = '';\r\n }\r\n \r\n // Focus input when opening\r\n if (isSearchOpen && searchInput) {\r\n setTimeout(() => searchInput.focus(), 100);\r\n }\r\n };\r\n\r\n searchToggle.addEventListener('click', toggleSearch);\r\n\r\n // Close search panel when clicking outside\r\n document.addEventListener('click', (e) => {\r\n if (isSearchOpen && \r\n !searchPanel.contains(e.target) && \r\n !searchToggle.contains(e.target)) {\r\n toggleSearch();\r\n }\r\n });\r\n\r\n // Prevent clicks inside search panel from closing it\r\n searchPanel.addEventListener('click', (e) => {\r\n e.stopPropagation();\r\n });\r\n }\r\n\r\n // Initialize search forms\r\n const initSearchForms = () => {\r\n document.querySelectorAll('.search-form').forEach(form => {\r\n const searchInput = form.querySelector('[data-search-input]');\r\n const clearButton = form.querySelector('[data-clear-search]');\r\n const resultsContainer = form.querySelector('[data-search-results]');\r\n let searchTimeout;\r\n \r\n if (searchInput && resultsContainer) {\r\n searchInput.addEventListener('input', (e) => {\r\n const searchTerm = e.target.value.trim();\r\n \r\n if (clearButton) {\r\n clearButton.classList.toggle('hidden', !searchTerm);\r\n }\r\n \r\n clearTimeout(searchTimeout);\r\n \r\n if (!searchTerm) {\r\n resultsContainer.classList.add('hidden');\r\n return;\r\n }\r\n \r\n searchTimeout = setTimeout(() => {\r\n performSearch(searchTerm, resultsContainer);\r\n }, 300);\r\n });\r\n\r\n if (clearButton) {\r\n clearButton.addEventListener('click', () => {\r\n searchInput.value = '';\r\n searchInput.focus();\r\n resultsContainer.classList.add('hidden');\r\n clearButton.classList.add('hidden');\r\n });\r\n }\r\n }\r\n });\r\n };\r\n\r\n const performSearch = async (searchTerm, resultsContainer) => {\r\n try {\r\n resultsContainer.innerHTML = `\r\n
No results found
\r\nTry different keywords or check your spelling
\r\n\r\n ${result.excerpt}\r\n
\r\n ` : ''}\r\n