{"version":3,"file":"ScrollLightDot.eRFLwphp.mjs","names":["useRef","useEffect","_jsx","useRef","_jsx","__esmMin","init_npm_react_18_3_1","ce","init_jsx_runtime","c","de","init_framer_BWzg2IRg","addPropertyControls","ControlType","useTransform","useScroll","init_framer_motion_1EwlFBEG","withScrollFillLine","Component","props","lineRef","scrollTargetRef","line","node","bestTarget","lineHeight","scrollYProgress","scaleY","init_ScrollFillLine","withScrollLightDot","litColor","dimColor","glowColor","glowSize","style","rest","targetRef","backgroundColor","boxShadow","scale","init_ScrollLightDot"],"sources":["https:/framerusercontent.com/modules/hji2NliD3pqpaPL0ADat/Vzq4NWdhDmu7V4x2OsWh/ScrollFillLine.js","https:/framerusercontent.com/modules/viiMZsAjZuyaHN5zrQKr/epXlXmMyxWPhLZIBPnLJ/ScrollLightDot.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{useScroll,useTransform}from\"framer-motion\";// User request: Create a new Framer code override file that exports a single override named `withScrollFillLine` to fill a vertical timeline line based on scroll progress.\nexport function withScrollFillLine(Component){return function WithScrollFillLine(props){const lineRef=useRef(null);const scrollTargetRef=useRef(null);useEffect(()=>{const line=lineRef.current;if(!line)return;let node=line.parentElement;let bestTarget=line;const lineHeight=line.getBoundingClientRect().height;while(node){const rect=node.getBoundingClientRect();const hasMeaningfulHeight=rect.height>Math.max(lineHeight*1.2,lineHeight+40);if(hasMeaningfulHeight){bestTarget=node;}node=node.parentElement;}scrollTargetRef.current=bestTarget;},[]);const{scrollYProgress}=useScroll({target:scrollTargetRef,offset:[\"start 85%\",\"end 15%\"]});const scaleY=useTransform(scrollYProgress,[0,1],[0,1]);return /*#__PURE__*/_jsx(Component,{...props,ref:lineRef,style:{...props.style,transformOrigin:\"top\",scaleY}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollFillLine\":{\"type\":\"reactHoc\",\"name\":\"withScrollFillLine\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollFillLine.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useScroll,useTransform}from\"framer-motion\";// User request: create an override that lights timeline dots based on scroll progress with tunable colors/glow.\nexport function withScrollLightDot(Component){return function WithScrollLightDot(props){const{litColor=\"rgb(167, 255, 0)\",dimColor=\"rgba(190, 194, 201, 0.25)\",glowColor=\"rgba(167, 255, 0, 0.6)\",glowSize=16,style,...rest}=props;const targetRef=useRef(null);const{scrollYProgress}=useScroll({target:targetRef,offset:[\"start 60%\",\"start 45%\"]});const backgroundColor=useTransform(scrollYProgress,[0,1],[dimColor,litColor]);const boxShadow=useTransform(scrollYProgress,[0,1],[`0 0 0px rgba(0, 0, 0, 0)`,`0 0 ${glowSize}px ${glowColor}`]);const scale=useTransform(scrollYProgress,[0,1],[.85,1]);return /*#__PURE__*/_jsx(Component,{...rest,ref:targetRef,style:{...style,backgroundColor,boxShadow,scale}});};}addPropertyControls(withScrollLightDot,{litColor:{type:ControlType.Color,defaultValue:\"rgb(167, 255, 0)\"},dimColor:{type:ControlType.Color,defaultValue:\"rgba(190, 194, 201, 0.25)\"},glowColor:{type:ControlType.Color,defaultValue:\"rgba(167, 255, 0, 0.6)\"},glowSize:{type:ControlType.Number,defaultValue:16,min:0,max:60,unit:\"px\",step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollLightDot\":{\"type\":\"reactHoc\",\"name\":\"withScrollLightDot\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollLightDot.map"],"mappings":"A,yOACA,SAAgBiB,EAAmBC,EAAU,CAAC,OAAO,SAA4BC,EAAM,CAAC,IAAMC,EAAQpB,EAAO,IAAI,EAAQqB,EAAgBrB,EAAO,IAAI,EAAEC,MAAc,CAAC,IAAMqB,EAAKF,EAAQ,QAAQ,GAAG,CA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