{"version":3,"file":"Datafast_Scroll_tracking.CGTafiCf.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/wbSgHgYB6HQBisaTZLC7/XIUpZhCnuE8gGHjZXnGw/Datafast_Scroll_tracking.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export default function DatafastTracker(){const trackedSections=useRef(new Set);useEffect(()=>{const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting&&entry.intersectionRatio>=.5){const sectionId=entry.target.id;// Only track each section once per session\nif(sectionId&&!trackedSections.current.has(sectionId)){trackedSections.current.add(sectionId);// Track the scroll milestone\nconst datafast=window.datafast;if(datafast){datafast(`scroll_${sectionId}`,{section:sectionId,scroll_depth:Math.round(entry.intersectionRatio*100)});}}}});},{threshold:.5});// Find all sections with IDs (your Framer scroll sections)\nconst sections=document.querySelectorAll(\"[id]\");sections.forEach(section=>{if(section.id){observer.observe(section);}});return()=>observer.disconnect();},[]);// This component doesn't render anything visible\nreturn /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DatafastTracker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Datafast_Scroll_tracking.map"],"mappings":"uIAA+E,SAAwB,GAAiB,CAAC,IAAM,EAAgBA,EAAO,IAAI,IAAI,CAI9J,OAJ+J,MAAc,CAAC,IAAM,EAAS,IAAI,qBAAqB,GAAS,CAAC,EAAQ,QAAQ,GAAO,CAAC,GAAG,EAAM,gBAAgB,EAAM,mBAAmB,GAAG,CAAC,IAAM,EAAU,EAAM,OAAO,GAC3U,GAAG,GAAW,CAAC,EAAgB,QAAQ,IAAI,EAAU,CAAC,CAAC,EAAgB,QAAQ,IAAI,EAAU,CAC7F,IAAM,EAAS,EAAO,SAAY,GAAU,EAAS,UAAU,IAAY,CAAC,QAAQ,EAAU,aAAa,KAAK,MAAM,EAAM,kBAAkB,IAAI,CAAC,CAAC,IAAM,EAAG,CAAC,UAAU,GAAG,CAAC,CACnD,OAA1G,SAAS,iBAAiB,OAAO,CAAU,QAAQ,GAAS,CAAI,EAAQ,IAAI,EAAS,QAAQ,EAAQ,EAAI,KAAW,EAAS,YAAY,EAAG,EAAE,CAAC,CAC1I,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,CAAC,CAAC,sBAJb,IAAoC"}