{"version":3,"file":"GrowthGraph.C8oeWbmS.mjs","names":["useRef","useId","__esmMin","init_npm_react_18_3_1","ie","de","init_jsx_runtime","c","p","useInView","motion","init_framer_motion_DhsWWWsN","init_framer_DKtAEkcX","useIsStaticRenderer","addPropertyControls","ControlType","GrowthGraph","props","ref","isStatic","isInView","active","clipId","clampedStartHeight","startHeight","clampedEndHeight","endHeight","startY","endY","rise","curve","area","rules","index","transition","style","fillColor","lineColor","lineEndColor","showRules","x","ruleColor","useLineGradient","init_GrowthGraph"],"sources":["https:/framerusercontent.com/modules/GyHQInrDrgriSmwLGFGX/Dlu3pIIuYtN0MZsXEd0h/GrowthGraph.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useId,useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView}from\"framer-motion\";/**\n * Full-bleed animated exponential growth curve with clipped vertical rules.\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GrowthGraph(props){const{lineColor=\"#012BFF\",useLineGradient=false,lineEndColor=\"#09AEFF\",fillColor=\"rgba(1, 43, 255, 0.06)\",ruleColor=\"rgba(1, 43, 255, 0.12)\",startHeight=3.3,endHeight=100,duration=1.8,showRules=true,style}=props;const ref=useRef(null);const isStatic=useIsStaticRenderer();const isInView=useInView(ref,{once:false,amount:.2});const active=isStatic||isInView;const clipId=\"growth-\"+useId().replace(/:/g,\"\");const clampedStartHeight=Math.max(0,Math.min(100,startHeight));const clampedEndHeight=Math.max(0,Math.min(100,endHeight));const startY=120-clampedStartHeight/100*120;const endY=120-clampedEndHeight/100*120;const rise=startY-endY;const curve=`M0 ${startY} C64 ${startY} 124 ${startY-rise*.05} 178 ${startY-rise*.24} C236 ${startY-rise*.46} 278 ${startY-rise*.73} 320 ${endY}`;const area=curve+\" L320 120 L0 120 Z\";const rules=Array.from({length:101},(_,index)=>index*3.2);const transition={duration,ease:[.22,1,.36,1]};return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",...style},role:\"img\",\"aria-label\":\"Accelerating product growth curve\",children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 320 120\",width:\"100%\",height:\"100%\",preserveAspectRatio:\"none\",children:[/*#__PURE__*/_jsxs(\"defs\",{children:[/*#__PURE__*/_jsx(\"clipPath\",{id:clipId,children:/*#__PURE__*/_jsx(\"path\",{d:area})}),/*#__PURE__*/_jsxs(\"linearGradient\",{id:clipId+\"-fill\",x1:\"0\",y1:\"1\",x2:\"1\",y2:\"0\",children:[/*#__PURE__*/_jsx(\"stop\",{offset:\"0\",stopColor:fillColor,stopOpacity:\"0.18\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",stopColor:fillColor,stopOpacity:\"0.7\"})]}),/*#__PURE__*/_jsxs(\"linearGradient\",{id:clipId+\"-line\",x1:\"0\",y1:\"1\",x2:\"1\",y2:\"0\",children:[/*#__PURE__*/_jsx(\"stop\",{offset:\"0\",stopColor:lineColor}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",stopColor:lineEndColor})]})]}),/*#__PURE__*/_jsx(motion.path,{d:area,fill:`url(#${clipId}-fill)`,initial:isStatic?false:{opacity:0},animate:{opacity:active?1:0},transition:transition}),showRules&&/*#__PURE__*/_jsx(motion.g,{clipPath:`url(#${clipId})`,initial:isStatic?false:{opacity:0},animate:{opacity:active?1:0},transition:{...transition,delay:isStatic?0:.25},children:rules.map(x=>/*#__PURE__*/_jsx(\"line\",{x1:x,y1:\"0\",x2:x,y2:\"120\",stroke:ruleColor,strokeWidth:\"0.24\"},x))}),/*#__PURE__*/_jsx(motion.path,{d:curve,fill:\"none\",stroke:useLineGradient?`url(#${clipId}-line)`:lineColor,strokeWidth:\"0.72\",strokeLinecap:\"round\",initial:isStatic?false:{pathLength:0},animate:{pathLength:active?1:0},transition:transition})]})});}addPropertyControls(GrowthGraph,{lineColor:{type:ControlType.Color,title:\"Line Start\",defaultValue:\"#012BFF\"},useLineGradient:{type:ControlType.Boolean,title:\"Line Gradient\",defaultValue:false},lineEndColor:{type:ControlType.Color,title:\"Line End\",defaultValue:\"#09AEFF\",hidden:props=>!props.useLineGradient},fillColor:{type:ControlType.Color,title:\"Area\",defaultValue:\"rgba(1, 43, 255, 0.06)\"},ruleColor:{type:ControlType.Color,title:\"Rules\",defaultValue:\"rgba(1, 43, 255, 0.12)\"},startHeight:{type:ControlType.Number,title:\"Start Height\",defaultValue:3.3,min:0,max:100,step:1,unit:\"%\"},endHeight:{type:ControlType.Number,title:\"End Height\",defaultValue:100,min:0,max:100,step:1,unit:\"%\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1.8,min:.4,max:4,step:.1,unit:\"s\"},showRules:{type:ControlType.Boolean,title:\"Rules\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GrowthGraph\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GrowthGraph.map"],"mappings":"A,wPAIG,SAAwBgB,EAAY,EAAM,CAAC,GAAK,CAAC,YAAU,UAAU,kBAAgB,GAAM,eAAa,UAAU,YAAU,yBAAyB,YAAU,yBAAyB,cAAY,IAAI,YAAU,IAAI,WAAS,IAAI,YAAU,GAAK,SAAOC,EAAYC,EAAIlB,EAAO,IAAI,EAAQmB,EAASN,EAAoB,EAAQO,EAASX,EAAUS,EAAI,CAAC,KAAK,GAAM,OAAO,EAAE,CAAC,EAAQG,EAAOF,GAAUC,EAAeE,EAAO,UAAUrB,EAAM,CAAC,CAAC,QAAQ,KAAK,EAAE,EAAQsB,EAAmB,KAAK,IAAI,EAAE,KAAK,IAAI,IAAIC,CAAW,CAAC,E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