{"version":3,"file":"Src_Scripts_components_welcome-screen_js.477c1bd14f7cabc9c863.js","sources":["webpack://haveselskabet/./Src/Scripts/components/welcome-screen.js"],"sourcesContent":["export default class WelcomeScreen {\n constructor(elm, args) {\n elm.querySelectorAll('a').forEach(x => x.addEventListener('click', () => {\n elm.closeWelcomeScreen();\n }))\n\n elm.querySelector('.welcome-screen__close').onclick = () => {\n elm.closeWelcomeScreen();\n }\n\n elm.closeWelcomeScreen = function () {\n elm.style.maxHeight = elm.getBoundingClientRect().height + 'px';\n requestAnimationFrame(() => {\n elm.style.maxHeight = '0px';\n\n setTimeout(() => {\n document.body.classList.remove('welcome-screen-active')\n elm.classList.add('welcome-screen--closed');\n document.body.classList.remove('static-header')\n }, 300)\n });\n\n document.cookie = \"show-welcome=false;\"\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;;A;;A","sourceRoot":""}