{"version":3,"file":"TimeLine.eJwN4y-9.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","de","init_jsx_runtime","J","c","ce","useScroll","motion","init_framer_motion_DhsWWWsN","useTransform","createStore","init_store_js__1_0","withSectionScroll","ref","_","setStore","useStore","scrollYProgress","latest","Component","props","withAnimatedTimelineLine","store","currentHeight","withAgendaItemFocus","itemRef","opacity","init_TimeLine"],"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\":\"withAnimatedTimelineLine\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TimeLine.map"],"mappings":"A,oPAAuQ,SAAgBc,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAMC,EAAIf,EAAO,IAAI,EAAO,CAACgB,EAAEC,GAAUC,EAAS,EAAO,CAAC,mBAAiBV,EAAU,CAAC,OAAOO,EAAI,OAAO,CAAC,eAAe,YAAY,CAAC,CAAC,EAAuH,OAArHR,MAAsBY,EAAgB,GAAG,SAAS,GAAQ,CAACF,EAAS,CAAC,eAAeG,CAAM,CAAC,CAAE,CAAC,EAAI,CAACD,CAAe,CAAC,EAAsB,gBAAKE,EAAU,CAAC,GAAGC,EAAU,KAAG,CAAC,CAAE,CAAE,CAAC,SAAgBC,EAAyB,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAACC,GAAON,EAAS,EAAQO,EAAc,GAAG,KAAK,IAAI,EAAE,KAAK,IAAI,IAAID,EAAM,eAAe,GAAG,CAAC,EAAE,GAAG,MAAoB,gBAAKH,EAAU,CAAC,GAAGC,EAAU,MAAI,UAAU,GAAGA,EAAM,WAAW,GAAG,gBAAgB,MAAM,CAAC,GAAGA,EAAM,MAAM,OAAOG,CAAa,CAAC,CAAC,CAAE,CAAC,CAAE,CAAC,SAAgBC,EAAoB,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAM,CAAC,IAAMC,EAAQ3B,EAAO,IAAI,EAAO,CAAC,mBAAiBQ,EAAU,CAAC,OAAOmB,EAAQ,OAAO,CAAC,YAAY,WAAW,CAAC,CAAC,EAAQC,EAAQj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