{"version":3,"file":"default-utils.js@_0.45.DIMnMURa.mjs","names":["__esmMin","init_jsx_runtime","c","p","motion","init_framer_motion_DhsWWWsN","init_framer_BWFVvmND","addPropertyControls","ControlType","Frame","init_OIjZRBmWDcIE2B6qgG1j","AnimatedLine","rest","props","isHorizontal","direction","gradient","accentColor","baseStyle","baseColor","pulseStyle","initial","animate","cycleLength","duration","totalSegments","cyclePause","initialDelay","sequenceIndex","overlapTime","repeatDelay","init_Animated_line","init_default_utils_js__0_45"],"sources":["https:/framerusercontent.com/modules/PHtKjRyYBKzR3VYWq4qV/Eak2MlVyFeYFUqlFg7mh/Animated_line.js","https:/framer.com/m/framer/default-utils.js@^0.45.0"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{Frame,addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";export function AnimatedLine(props){const{direction,duration,baseColor,accentColor,opacity,sequenceIndex,totalSegments,overlapTime,cyclePause,...rest}=props;const isHorizontal=direction===\"leftToRight\"||direction===\"rightToLeft\";// full-width/height flash bar; bright in the middle, soft edges\nconst gradient=isHorizontal?`linear-gradient(90deg, transparent 0%, ${accentColor} 92%, transparent 100%)`:`linear-gradient(180deg, transparent 0%, ${accentColor} 92%, transparent 100%)`;const baseStyle={position:\"absolute\",inset:0,backgroundColor:baseColor};const pulseStyle={position:\"absolute\",inset:0,backgroundImage:gradient,backgroundRepeat:\"no-repeat\",backgroundSize:\"100% 100%\",opacity,pointerEvents:\"none\"};// move the whole gradient bar fully across the line\nlet initial={};let animate={};if(isHorizontal){if(direction===\"leftToRight\"){initial={x:\"-100%\",y:\"0%\"}// fully off to the left\n;animate={x:[\"-100%\",\"100%\"],y:\"0%\"}// travel all the way to the right\n;}else{initial={x:\"100%\",y:\"0%\"};animate={x:[\"100%\",\"-100%\"],y:\"0%\"};}}else{if(direction===\"topToBottom\"){initial={y:\"-100%\",x:\"0%\"};animate={y:[\"-100%\",\"100%\"],x:\"0%\"};}else{initial={y:\"100%\",x:\"0%\"};animate={y:[\"100%\",\"-100%\"],x:\"0%\"};}}// sequencing: each side runs one after another, then pause\nconst segments=Math.max(totalSegments,1);const cycleLength=duration*segments+cyclePause;const initialDelay=sequenceIndex*duration-sequenceIndex*(duration*overlapTime);const repeatDelay=Math.max(cycleLength-duration,0);return /*#__PURE__*/_jsxs(Frame,{...rest,size:\"100%\",overflow:\"hidden\",background:\"none\",style:{position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:baseStyle}),/*#__PURE__*/_jsx(motion.div,{style:pulseStyle,initial:initial,animate:animate,transition:{duration,ease:\"linear\",repeat:Infinity,repeatType:\"loop\",delay:initialDelay,repeatDelay}})]});}// Framer controls\naddPropertyControls(AnimatedLine,{direction:{type:ControlType.Enum,title:\"Direction\",options:[\"leftToRight\",\"rightToLeft\",\"topToBottom\",\"bottomToTop\"],optionTitles:[\"Left → Right\",\"Right → Left\",\"Top → Bottom\",\"Bottom → Top\"],defaultValue:\"leftToRight\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:.4,min:.05,max:5,step:.05},baseColor:{type:ControlType.Color,title:\"Line\",defaultValue:\"#161B22\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#2563EB\"},opacity:{type:ControlType.Number,title:\"Glow\",defaultValue:1,min:0,max:1,step:.05},sequenceIndex:{type:ControlType.Number,title:\"Seq index\",defaultValue:0,min:0,max:10,step:1},totalSegments:{type:ControlType.Number,title:\"Total segs\",defaultValue:4,min:1,max:12,step:1},overlapTime:{type:ControlType.Number,title:\"Overlap percentage\",defaultValue:.3,min:0,max:1,step:.1},cyclePause:{type:ControlType.Number,title:\"Cycle pause\",defaultValue:.4,min:0,max:10,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"AnimatedLine\":{\"type\":\"reactComponent\",\"name\":\"AnimatedLine\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingUR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