{
"version": 3,
"sources": ["../../../views/pages/home.ts"],
"sourcesContent": ["const root = document.querySelector('div.wrapper')\n\n// Section Actions\nconst sections = document.querySelectorAll('section')\nconst sectionObserver = new IntersectionObserver(\n entries => {\n entries.forEach(entry => {\n entry.target.classList.toggle('is-visible', entry.isIntersecting)\n if (entry.isIntersecting) sectionObserver.unobserve(entry.target)\n })\n },\n {\n root,\n rootMargin: '0px 0px 20px 0px',\n }\n)\nsections.forEach(section => {\n sectionObserver.observe(section)\n})\n\n// const breaks = document.querySelectorAll('section.storybook li.story h2')\n// breaks.forEach(breakElement => {\n// const text = (breakElement as HTMLElement).innerText\n// const newText = text.replace(/:/g, ':\\n')\n// ;(breakElement as HTMLElement).innerHTML = newText.replace(/\\n/g, '
')\n// })\n\n// // Video Actions\n// const heroVideo = document.getElementById('heroVideo') as HTMLVideoElement\n\n// const loadVideo = () => {\n// heroVideo.innerHTML =\n// ''\n// // if (window.innerWidth < 768) {\n// // heroVideo.innerHTML =\n// // ''\n// // } else {\n// // heroVideo.innerHTML =\n// // ''\n// // }\n// heroVideo.load()\n\n// heroVideo.removeEventListener('canplay', loadVideo)\n// }\n// loadVideo()\n\n// const videoObserver = new IntersectionObserver(\n// entries => {\n// entries.forEach(entry => {\n// if (!entry.isIntersecting) {\n// heroVideo.pause()\n// } else {\n// heroVideo.play()\n// }\n// })\n// },\n// {\n// root,\n// threshold: 0.75,\n// }\n// )\n// videoObserver.observe(heroVideo)\n\n// const muteSound = () => {\n// if (heroVideo.muted) {\n// heroVideo.muted = false\n// } else {\n// heroVideo.muted = true\n// }\n// }\n// const btnHideVideo = document.getElementById('hideVideo') as HTMLButtonElement\n\n// const shutdownVideo = () => {\n// const div = btnHideVideo.parentElement as HTMLDivElement\n// heroVideo.muted = true\n// div.classList.add('hide')\n\n// setTimeout(() => {\n// heroVideo.removeEventListener('click', muteSound)\n// heroVideo.removeEventListener('ended', shutdownVideo)\n// btnHideVideo.removeEventListener('click', shutdownVideo)\n\n// videoObserver.unobserve(heroVideo)\n\n// div.remove()\n// }, 1000)\n// }\n\n// // heroVideo.addEventListener('canplay', loadVideo)\n// heroVideo.addEventListener('click', muteSound)\n// heroVideo.addEventListener('ended', shutdownVideo)\n// btnHideVideo.addEventListener('click', shutdownVideo)\n"],
"mappings": "mBAAA,IAAMA,EAAO,SAAS,cAAc,aAAa,EAG3CC,EAAW,SAAS,iBAAiB,SAAS,EAC9CC,EAAkB,IAAI,qBACxBC,GAAW,CACPA,EAAQ,QAAQC,GAAS,CACrBA,EAAM,OAAO,UAAU,OAAO,aAAcA,EAAM,cAAc,EAC5DA,EAAM,gBAAgBF,EAAgB,UAAUE,EAAM,MAAM,CACpE,CAAC,CACL,EACA,CACI,KAAAJ,EACA,WAAY,kBAChB,CACJ,EACAC,EAAS,QAAQI,GAAW,CACxBH,EAAgB,QAAQG,CAAO,CACnC,CAAC",
"names": ["root", "sections", "sectionObserver", "entries", "entry", "section"]
}