{"version":3,"file":"front_page.b35d5d3a.js","mappings":"ibAKA,MAAMA,EAAyBC,SAASC,cAAc,sBACtD,GAAIF,EAAwB,CACH,IAAIG,EAAAA,GAAgBH,EAAwB,CAAC,GAErDI,MACjB,CAGA,MAAMC,EAAeJ,SAASC,cAAc,kBAC5C,GAAIG,EAAc,CACjB,MAAMC,EAAsBC,IAC3BA,EAAQC,KAAKC,IACRA,EAAMC,eACTL,EAAaM,UAAUC,OAAO,UAE9BP,EAAaM,UAAUE,IAAI,SAC5B,GACC,EAGH,QAA2C,IAAhCC,OAAOC,qBAAsC,CACvD,MAAMC,EAAaf,SAASC,cAAc,SAGpCe,EAAW,IAAIF,qBAAqBT,EAD1B,CAAEY,UAAW,KAGV,OAAfF,GACHC,EAASE,QAAQH,EAEnB,CACD,C","sources":["webpack:///./assets/js/front_page.js"],"sourcesContent":["import '../css/front_page.scss';\n\nimport * as bootstrap from 'bootstrap';\n\n// danish link modal with vanilla js\nconst danishLinkModalContent = document.querySelector('#danish-link-modal');\nif (danishLinkModalContent) {\n\tconst danishLinkModal = new bootstrap.Modal(danishLinkModalContent, {});\n\n\tdanishLinkModal.show();\n}\n\n// Intersection Observer API navbar\nconst navContainer = document.querySelector('.nav-container');\nif (navContainer) {\n\tconst handleIntersection = (entries) => {\n\t\tentries.map((entry) => {\n\t\t\tif (entry.isIntersecting) {\n\t\t\t\tnavContainer.classList.remove('sticky');\n\t\t\t} else {\n\t\t\t\tnavContainer.classList.add('sticky');\n\t\t\t}\n\t\t});\n\t}\n\n\tif (typeof window.IntersectionObserver !== 'undefined') {\n\t\tconst heroBanner = document.querySelector('#hero');\n\n\t\tconst options = { threshold: 0.5 };\n\t\tconst observer = new IntersectionObserver(handleIntersection, options);\n\n\t\tif (heroBanner !== null) {\n\t\t\tobserver.observe(heroBanner);\n\t\t}\n\t}\n}\n"],"names":["danishLinkModalContent","document","querySelector","bootstrap","show","navContainer","handleIntersection","entries","map","entry","isIntersecting","classList","remove","add","window","IntersectionObserver","heroBanner","observer","threshold","observe"],"sourceRoot":""}