{ "version": 3, "sources": ["../../../views/pages/home.ts"], "sourcesContent": ["const root = document.querySelector('div.wrapper')\n\n// Section Actions\nconst sections = document.querySelectorAll('section.observe')\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 merchInfo = document.getElementById('merch-info')\n// const showPurchase = () => {\n// merchInfo?.parentElement?.classList.add('purchase')\n// }\n// document.addEventListener('click', _ => {\n// showPurchase()\n// document.removeEventListener('click', showPurchase)\n// })\n"], "mappings": "mBAAA,IAAMA,EAAO,SAAS,cAAc,aAAa,EAG3CC,EAAW,SAAS,iBAAiB,iBAAiB,EACtDC,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,mBAChB,CACJ,EACAC,EAAS,QAAQI,GAAW,CACxBH,EAAgB,QAAQG,CAAO,CACnC,CAAC", "names": ["root", "sections", "sectionObserver", "entries", "entry", "section"] }