{"version":3,"file":"ConnectorLine.D2RG5UXj.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/vqbLoeTRVoyuWQsDXjG6/lhPORJz5Xmatw2FY2ApX/ConnectorLine.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,useInView,useReducedMotion}from\"framer-motion\";/**\n * A horizontal line with evenly spaced nodes (one per column) that draws itself\n * from left to right when it scrolls into view, lighting each node as it passes.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ConnectorLine(props){const{nodes=3,color=\"#044BD9\",trackColor=\"rgba(4, 75, 217, 0.15)\",duration=1.4}=props;const ref=useRef(null);const inView=useInView(ref,{once:true,amount:.8});const isStatic=useIsStaticRenderer();const reduce=useReducedMotion();const on=isStatic||reduce||inView;const xs=Array.from({length:nodes},(_,i)=>(i+.5)/nodes*100);const first=xs[0],last=xs[xs.length-1];return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 100 20\",preserveAspectRatio:\"none\",style:{position:\"absolute\",inset:0,overflow:\"visible\"},children:[/*#__PURE__*/_jsx(\"line\",{x1:first,y1:10,x2:last,y2:10,stroke:trackColor,strokeWidth:2,vectorEffect:\"non-scaling-stroke\"}),/*#__PURE__*/_jsx(motion.line,{x1:first,y1:10,x2:last,y2:10,stroke:color,strokeWidth:2,vectorEffect:\"non-scaling-stroke\",initial:{pathLength:isStatic||reduce?1:0},animate:{pathLength:on?1:0},transition:{duration,ease:[.2,.7,.2,1]}})]}),xs.map((x,i)=>/*#__PURE__*/_jsx(motion.div,{initial:{scale:isStatic||reduce?1:.4,backgroundColor:isStatic||reduce?color:\"#FFFFFF\"},animate:on?{scale:1,backgroundColor:color}:{},transition:{delay:duration*i/Math.max(1,nodes-1),duration:.35},style:{position:\"absolute\",left:`${x}%`,top:\"50%\",width:14,height:14,marginLeft:-7,marginTop:-7,borderRadius:14,border:`2px solid ${color}`,boxSizing:\"border-box\",boxShadow:\"0 4px 15px rgba(4, 75, 217, 0.25)\"}},i))]});}addPropertyControls(ConnectorLine,{nodes:{type:ControlType.Number,defaultValue:3,min:2,max:6,step:1,displayStepper:true},color:{type:ControlType.Color,defaultValue:\"#044BD9\"},trackColor:{type:ControlType.Color,defaultValue:\"rgba(4, 75, 217, 0.15)\"},duration:{type:ControlType.Number,defaultValue:1.4,min:.3,max:4,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ConnectorLine\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ConnectorLine.map"],"mappings":"wPAMG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,EAAE,QAAM,UAAU,aAAW,yBAAyB,WAAS,KAAK,EAAY,EAAIA,EAAO,IAAI,EAAQ,EAAO,EAAU,EAAI,CAAC,KAAK,GAAK,OAAO,EAAE,CAAC,EAAQ,EAAS,EAAoB,EAAQ,EAAO,EAAiB,EAAQ,EAAG,GAAU,GAAQ,EAAa,EAAG,MAAM,KAAK,CAAC,OAAO,CAAK,GAAG,EAAE,KAAK,EAAE,IAAI,EAAM,GAAG,EAAQ,EAAM,EAAG,GAAG,EAAK,EAAG,EAAG,OAAO,GAAG,OAAoB,EAAM,MAAM,CAAK,MAAI,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,MAAM,OAAO,OAAO,MAAM,EAAE,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,aAAa,oBAAo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