{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Pcvc2e7yoviqH7dFXQNQ/5tx31QwODTi9H7BqMVVI/Vision_Reveal.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import gsap from\"gsap\";import{ScrollTrigger}from\"gsap/ScrollTrigger\";import SplitType from\"split-type\";gsap.registerPlugin(ScrollTrigger);export function TextReveal(){const textRef=React.useRef(null);React.useEffect(()=>{const textElement=textRef.current;if(!textElement)return;const paragraphs=textElement.querySelectorAll(\"h1, h2, h3, h4, h5, h6, p\");const splitText=new SplitType(paragraphs,{types:\"lines\"});const filledLines=Array.from(splitText.lines).filter(line=>line.textContent.trim()!==\"\");// Individual Line Animation\ngsap.to(filledLines,{backgroundPosition:\"-100% 0%\",duration:1,stagger:1.5,ease:\"linear\",scrollTrigger:{trigger:textElement,scrub:5,start:\"top bottom-=62%\",end:\"bottom top+=30%\",markers:false}});filledLines.forEach(line=>{line.style.background=\"linear-gradient(to left, rgb(0, 0, 0) 50%, rgb(229, 229, 229) 50%)\";line.style.backgroundSize=\"200% 100%\";line.style.color=\"transparent\";line.style.backgroundClip=\"text\";line.style.webkitBackgroundClip=\"text\";line.style.display=\"inline-block\";line.style.whiteSpace=\"pre-wrap\";});},[]);return{ref:textRef};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withTextReveal(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...TextReveal(props)});};}withTextReveal.displayName=\"TextReveal\";\nexport const __FramerMetadata__ = {\"exports\":{\"withTextReveal\":{\"type\":\"reactHoc\",\"name\":\"withTextReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TextReveal\":{\"type\":\"override\",\"name\":\"TextReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Vision_Reveal.map"],
  "mappings": "yJAA8KA,EAAK,eAAeC,CAAa,EAAS,SAASC,GAAY,CAAC,IAAMC,EAAcC,EAAO,IAAI,EAAE,OAAMC,EAAU,IAAI,CAAC,IAAMC,EAAYH,EAAQ,QAAQ,GAAG,CAACG,EAAY,OAAO,IAAMC,EAAWD,EAAY,iBAAiB,2BAA2B,EAAQE,EAAU,IAAIC,EAAUF,EAAW,CAAC,MAAM,OAAO,CAAC,EAAQG,EAAY,MAAM,KAAKF,EAAU,KAAK,EAAE,OAAOG,GAAMA,EAAK,YAAY,KAAK,IAAI,EAAE,EACzjBX,EAAK,GAAGU,EAAY,CAAC,mBAAmB,WAAW,SAAS,EAAE,QAAQ,IAAI,KAAK,SAAS,cAAc,CAAC,QAAQJ,EAAY,MAAM,EAAE,MAAM,kBAAkB,IAAI,kBAAkB,QAAQ,EAAK,CAAC,CAAC,EAAEI,EAAY,QAAQC,GAAM,CAACA,EAAK,MAAM,WAAW,qEAAqEA,EAAK,MAAM,eAAe,YAAYA,EAAK,MAAM,MAAM,cAAcA,EAAK,MAAM,eAAe,OAAOA,EAAK,MAAM,qBAAqB,OAAOA,EAAK,MAAM,QAAQ,eAAeA,EAAK,MAAM,WAAW,UAAW,CAAC,CAAE,EAAE,CAAC,CAAC,EAAQ,CAAC,IAAIR,CAAO,CAAE,CAA2J,SAASS,EAAeC,EAAE,CAAC,OAAOC,IAAQC,EAA+BC,CAAuC,EAASC,EAAKJ,EAAE,CAAC,GAAGC,EAAM,GAAGZ,EAAWY,CAAK,CAAC,CAAC,EAAI,CAACF,EAAe,YAAY",
  "names": ["i", "Ft", "TextReveal", "textRef", "pe", "ue", "textElement", "paragraphs", "splitText", "j", "filledLines", "line", "withTextReveal", "C", "props", "re", "DataObserverContext", "p"]
}
