{"version":3,"file":"TimelineIndicator.BbPuFOZu.mjs","names":[],"sources":["https:/framerusercontent.com/modules/UD5E9iZeqqvEmuO9buHW/nZnA9zoaMbfSBTFkU4xP/TimelineIndicator.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useScroll,useSpring,useTransform}from\"framer-motion\";export default function ScrollTimelineIndicator(props){const{width,height,trackColor,fillColor,lineWidth,radius,stiffness,damping,mass,topOffset,bottomOffset}=props;const{scrollYProgress}=useScroll();// Spring-based progress for smooth motion with subtle bounce\nconst smoothProgress=useSpring(scrollYProgress,{stiffness,damping,mass,restDelta:5e-4});// Convert 0..1 progress into percentage height\nconst fillHeight=useTransform(smoothProgress,[0,1],[`${topOffset}%`,`${100-bottomOffset}%`]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width,height,display:\"flex\",justifyContent:\"center\",alignItems:\"stretch\",overflow:\"visible\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,bottom:0,width:lineWidth,background:trackColor,borderRadius:radius}}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,width:lineWidth,height:fillHeight,background:fillColor,borderRadius:radius,transformOrigin:\"top center\",willChange:\"height\"}})]});}ScrollTimelineIndicator.defaultProps={width:20,height:300,trackColor:\"#F5F5F5\",fillColor:\"#229386\",lineWidth:4,radius:999,stiffness:180,damping:26,mass:.9,topOffset:0,bottomOffset:0};addPropertyControls(ScrollTimelineIndicator,{trackColor:{type:ControlType.Color,title:\"Track\",defaultValue:\"#F5F5F5\"},fillColor:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#229386\"},lineWidth:{type:ControlType.Number,title:\"Line\",defaultValue:4,min:1,max:20,step:1,unit:\"px\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:999,min:0,max:999,step:1},stiffness:{type:ControlType.Number,title:\"Stiffness\",defaultValue:180,min:50,max:500,step:1},damping:{type:ControlType.Number,title:\"Damping\",defaultValue:26,min:1,max:80,step:1},mass:{type:ControlType.Number,title:\"Mass\",defaultValue:.9,min:.1,max:5,step:.1},topOffset:{type:ControlType.Number,title:\"Top %\",defaultValue:0,min:0,max:30,step:1},bottomOffset:{type:ControlType.Number,title:\"Bottom %\",defaultValue:0,min:0,max:30,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollTimelineIndicator\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TimelineIndicator.map"],"mappings":"yOAAgL,SAAwB,EAAwB,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,aAAW,YAAU,YAAU,SAAO,YAAU,UAAQ,OAAK,YAAU,gBAAc,EAAW,CAAC,mBAAiB,GAAW,CAEjX,EAAW,EADI,EAAU,EAAgB,CAAC,YAAU,UAAQ,OAAK,UAAU,KAAK,CAAC,CAC1C,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAU,GAAG,GAAG,IAAI,EAAa,GAAG,CAAC,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,QAAM,SAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,UAAU,SAAS,UAAU,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,OAAO,EAAE,MAAM,EAAU,WAAW,EAAW,aAAa,EAAO,CAAC,CAAC,CAAc,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,MAAM,EAAU,OAAO,EAAW,WAAW,EAAU,aAAa,EAAO,gBAAgB,aAAa,WAAW,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,kBAFvgB,IAAoD,IAAmE,CAEkZ,EAAwB,aAAa,CAAC,MAAM,GAAG,OAAO,IAAI,WAAW,UAAU,UAAU,UAA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