{"version":3,"file":"TimeLine.CmoGjvuj.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/7BV5KZ2FZ0poWinj7Sr8/hcfNtZfyhwJ2mVQuOOra/TimeLine.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useRef,useEffect}from\"react\";import{useScroll,useTransform,motion}from\"framer-motion\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useStore=createStore({scrollProgress:0});export function withSectionScroll(Component){return props=>{const ref=useRef(null);const[_,setStore]=useStore();const{scrollYProgress}=useScroll({target:ref,offset:[\"start center\",\"end center\"]});useEffect(()=>{return scrollYProgress.on(\"change\",latest=>{setStore({scrollProgress:latest});});},[scrollYProgress]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});};}export function withAnimatedTimelineLine(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store]=useStore();const currentHeight=`${Math.max(0,Math.min(100,store.scrollProgress*100))}%`;return /*#__PURE__*/_jsx(Component,{...props,ref:ref,className:`${props.className||\"\"} timeline-line`,style:{...props.style,height:currentHeight}});});}export function withAgendaItemFocus(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const itemRef=useRef(null);const{scrollYProgress}=useScroll({target:itemRef,offset:[\"start 65%\",\"start 45%\"]});const opacity=useTransform(scrollYProgress,[0,1],[.5,1]);return /*#__PURE__*/_jsx(motion.div,{ref:itemRef,style:{...props.style,opacity:opacity},children:/*#__PURE__*/_jsx(Component,{...props,ref:ref,className:`${props.className||\"\"} agenda-item`,style:{...props.style,opacity:1}})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withAgendaItemFocus\":{\"type\":\"reactHoc\",\"name\":\"withAgendaItemFocus\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSectionScroll\":{\"type\":\"reactHoc\",\"name\":\"withSectionScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAnimatedTimelineLine\":{\"type\":\"reactHoc\",\"name\":\"withAnimatedTimelineL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