{"version":3,"file":"Animated_Flow_Paths.DivAzj6M.mjs","names":["React.useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/J9fgd41Nkkwg4mtBWOQo/FwvXC79VoTgPKEfK4qDj/Animated_Flow_Paths.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useMotionValue,useTransform,animate}from\"framer-motion\";/**\n * Animated Flow Paths Component\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function AnimatedFlowPaths(props){const{pathColor,shimmerColor,speed,strokeWidth,pathCount,leftImage,rightImages,leftIconSize,rightIconSize,iconGap,shimmerLength,curvature,direction,loopDelay,orientation,animationType}=props;const spacing=80;const isVertical=orientation===\"vertical\";const actualSpeed=6-speed;const progressMotionValue=useMotionValue(0);const[currentAnimation,setCurrentAnimation]=React.useState(null);const iconPadding=Math.max(leftIconSize,rightIconSize)+iconGap+20;const calculateHeight=count=>{return iconPadding*2+count*70;};const calculateVerticalWidth=count=>{return iconPadding*2+count*80;};const horizontalHeight=calculateHeight(pathCount);const verticalWidth=calculateVerticalWidth(pathCount);const centerY=horizontalHeight/2;const generatePath=(index,total)=>{const maxSpread=(total-1)*spacing/2;const offset=index*spacing-maxSpread;if(isVertical){const centerX=verticalWidth/2;const startY=iconPadding;const endY=200-iconPadding+40;const cp1Y=startY+30*curvature;const cp1X=centerX+offset*.2*curvature;const cp2Y=endY-40*curvature;const cp2X=centerX+offset*.8*curvature;return`M ${centerX},${startY} C ${cp1X},${cp1Y} ${cp2X},${cp2Y} ${centerX+offset},${endY}`;}else{const startX=iconPadding+40;const endX=600-iconPadding-40;const cp1X=startX+120*curvature;const cp1Y=centerY+offset*.2*curvature;const cp2X=endX-150*curvature;const cp2Y=centerY+offset*.8*curvature;return`M ${startX},${centerY} C ${cp1X},${cp1Y} ${cp2X},${cp2Y} ${endX},${centerY+offset}`;}};const databaseIcon=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='dbGrad' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%230081FB' /%3E%3Cstop offset='100%25' style='stop-color:%230064E0' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='50' cy='20' rx='35' ry='12' fill='%233B95FF'/%3E%3Cpath d='M 15,20 L 15,70 Q 15,85 50,85 Q 85,85 85,70 L 85,20' fill='url(%23dbGrad)' stroke='%233B95FF' stroke-width='2'/%3E%3Cellipse cx='50' cy='20' rx='35' ry='12' fill='none' stroke='%233B95FF' stroke-width='2'/%3E%3Cellipse cx='50' cy='40' rx='35' ry='12' fill='none' stroke='%233B95FF' stroke-width='2' opacity='0.7'/%3E%3Cellipse cx='50' cy='60' rx='35' ry='12' fill='none' stroke='%233B95FF' stroke-width='2' opacity='0.5'/%3E%3C/svg%3E\";const defaultRightIcons=[\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='25' cy='25' r='20' fill='%236B7280'/%3E%3Ccircle cx='75' cy='25' r='20' fill='%236B7280'/%3E%3Ccircle cx='25' cy='75' r='20' fill='%236B7280'/%3E%3Ccircle cx='75' cy='75' r='20' fill='%236B7280'/%3E%3C/svg%3E\",\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%236B7280' d='M50,10 L65,35 L90,40 L70,60 L75,85 L50,72 L25,85 L30,60 L10,40 L35,35 Z'/%3E%3C/svg%3E\",\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%236B7280' d='M50,15 A25,25 0 0,1 75,40 L75,60 A25,25 0 0,1 50,85 L30,85 L30,60 L30,40 A25,25 0 0,1 50,15 Z'/%3E%3C/svg%3E\",\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='15' fill='%236B7280'/%3E%3Ccircle cx='30' cy='50' r='12' fill='%236B7280'/%3E%3Ccircle cx='70' cy='50' r='12' fill='%236B7280'/%3E%3Ccircle cx='50' cy='70' r='15' fill='%236B7280'/%3E%3C/svg%3E\"];const viewBox=isVertical?`0 0 ${verticalWidth} 240`:`0 0 600 ${horizontalHeight}`;const easingMap={smooth:[.95,.04,.44,1],linear:\"linear\",easeInOut:[.42,0,.58,1],bounce:[.68,-.55,.265,1.55]};const selectedEasing=easingMap[animationType]||easingMap.smooth;React.useEffect(()=>{const runAnimation=()=>{if(currentAnimation){currentAnimation.stop();}setCurrentAnimation(animate(0,1,{duration:actualSpeed,ease:selectedEasing,repeat:Infinity,repeatType:\"loop\",repeatDelay:loopDelay,onUpdate:latest=>{progressMotionValue.set(latest);}}));};runAnimation();return()=>{if(currentAnimation){currentAnimation.stop();}};},[actualSpeed,loopDelay,animationType]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:\"transparent\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\"},children:/*#__PURE__*/_jsxs(\"svg\",{width:\"100%\",height:\"100%\",viewBox:viewBox,preserveAspectRatio:\"xMidYMid meet\",children:[Array.from({length:pathCount}).map((_,i)=>/*#__PURE__*/_jsx(\"path\",{d:generatePath(i,pathCount),fill:\"none\",stroke:pathColor,strokeWidth:strokeWidth,strokeLinecap:\"round\"},`path-${i}`)),Array.from({length:pathCount}).map((_,i)=>/*#__PURE__*/_jsx(ShimmerPath,{path:generatePath(i,pathCount),shimmerColor:shimmerColor,strokeWidth:strokeWidth,shimmerLength:shimmerLength,direction:direction,progressMotionValue:progressMotionValue},`shimmer-${i}`)),isVertical?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"image\",{href:leftImage||databaseIcon,x:verticalWidth/2-leftIconSize/2,y:iconPadding-iconGap-leftIconSize,width:leftIconSize,height:leftIconSize,preserveAspectRatio:\"xMidYMid meet\"}),Array.from({length:pathCount}).map((_,i)=>{const centerX=verticalWidth/2;const maxSpread=(pathCount-1)*spacing/2;const xOffset=i*spacing-maxSpread;const imageUrl=rightImages[i]||defaultRightIcons[i%defaultRightIcons.length];return /*#__PURE__*/_jsx(\"image\",{href:imageUrl,x:centerX+xOffset-rightIconSize/2,y:200-iconPadding+40+iconGap,width:rightIconSize,height:rightIconSize,preserveAspectRatio:\"xMidYMid meet\"},`end-icon-${i}`);})]}):/*#__PURE__*/_jsx(_Fragment,{})]})});}function ShimmerPath({path,shimmerColor,strokeWidth,shimmerLength,direction,progressMotionValue}){const reverse=direction===\"reverse\";const start=100+shimmerLength+shimmerLength;const end=shimmerLength;const strokeDashoffsetTransform=useTransform(progressMotionValue,[0,1],reverse?[end,start]:[start,end]);const opacity=useTransform(progressMotionValue,value=>{const lowerThreshold=.01;const upperThreshold=1-lowerThreshold;if(value<=lowerThreshold){return value/lowerThreshold;}else if(value>=upperThreshold){return(1-value)/lowerThreshold;}else{return 1;}});return /*#__PURE__*/_jsx(motion.path,{d:path,fill:\"none\",stroke:shimmerColor,strokeWidth:strokeWidth,strokeLinecap:\"round\",strokeDasharray:`${shimmerLength} 100`,pathLength:100,style:{strokeDashoffset:strokeDashoffsetTransform,opacity:opacity}});}AnimatedFlowPaths.defaultProps={width:600,height:300};addPropertyControls(AnimatedFlowPaths,{orientation:{type:ControlType.Enum,title:\"Layout\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"Horizontal\",\"Vertical\"],defaultValue:\"horizontal\",displaySegmentedControl:true},pathCount:{type:ControlType.Number,title:\"Paths\",defaultValue:4,min:1,max:10,step:1,displayStepper:true},direction:{type:ControlType.Enum,title:\"Flow Direction\",options:[\"default\",\"reverse\"],optionTitles:[\"Forward\",\"Reverse\"],defaultValue:\"default\",displaySegmentedControl:true},animationType:{type:ControlType.Enum,title:\"Animation Style\",options:[\"smooth\",\"linear\",\"easeInOut\",\"bounce\"],optionTitles:[\"Smooth\",\"Linear\",\"Ease In Out\",\"Bounce\"],defaultValue:\"smooth\"},speed:{type:ControlType.Number,title:\"Speed\",description:\"1 = slowest, 5 = fastest\",defaultValue:3.5,min:1,max:5,step:.1,displayStepper:true},loopDelay:{type:ControlType.Number,title:\"Loop Delay\",defaultValue:.8,min:.1,max:5,step:.1,displayStepper:true},leftImage:{type:ControlType.Image,title:\"Start Icon\"},leftIconSize:{type:ControlType.Number,title:\"Start Icon Size\",defaultValue:48,min:16,max:100,step:4},rightImages:{type:ControlType.Array,title:\"End Icons\",propertyControl:{type:ControlType.Image},defaultValue:[],maxCount:10},rightIconSize:{type:ControlType.Number,title:\"End Icon Size\",defaultValue:40,min:16,max:100,step:4},iconGap:{type:ControlType.Number,title:\"Icon Gap\",defaultValue:20,min:0,max:60,step:4},pathColor:{type:ControlType.Color,title:\"Path Color\",defaultValue:\"#E5E7EB\"},shimmerColor:{type:ControlType.Color,title:\"Shimmer Color\",defaultValue:\"#3B82F6\"},shimmerLength:{type:ControlType.Number,title:\"Shimmer Length\",defaultValue:20,min:10,max:100,step:5,unit:\"%\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:2,min:1,max:10,step:.5},curvature:{type:ControlType.Number,title:\"Curvature\",description:\"0.1 = straight, 2.0 = curved\",defaultValue:1.3,min:.1,max:2,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedFlowPaths\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Animated_Flow_Paths.map"],"mappings":"uQAKG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,YAAU,eAAa,QAAM,cAAY,YAAU,YAAU,cAAY,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