{"version":3,"file":"ScrollProgressLine.DFK0DtiR.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/cUpvyjYcmoqtXPGikmEg/WnYcUmfDzlIoQwlws4K9/ScrollProgressLine.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useScroll,useSpring,useReducedMotion}from\"framer-motion\";/**\n * A vertical line that draws itself as its own area scrolls through the viewport.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ScrollProgressLine(props){const{color=\"#044BD9\",trackColor=\"rgba(4, 75, 217, 0.12)\",thickness=3}=props;const ref=useRef(null);const isStatic=useIsStaticRenderer();const reduce=useReducedMotion();const{scrollYProgress}=useScroll({target:ref,offset:[\"start 75%\",\"end 55%\"]});const scaleY=useSpring(scrollYProgress,{stiffness:140,damping:30,mass:.4});const done=isStatic||reduce;return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"50%\",top:0,bottom:0,width:thickness,marginLeft:-thickness/2,background:trackColor,borderRadius:thickness}}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",left:\"50%\",top:0,bottom:0,width:thickness,marginLeft:-thickness/2,background:color,borderRadius:thickness,transformOrigin:\"top\",scaleY:done?1:scaleY}})]});}addPropertyControls(ScrollProgressLine,{color:{type:ControlType.Color,defaultValue:\"#044BD9\"},trackColor:{type:ControlType.Color,defaultValue:\"rgba(4, 75, 217, 0.12)\"},thickness:{type:ControlType.Number,defaultValue:3,min:1,max:12,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollProgressLine\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"fram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