{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/YPq0Ip6B7SRMbnP8G7G5/5WVJBeUxfzfQk6dFesnk/CountUp.js"],
  "sourcesContent": ["// CountUp component for Framer with full property controls, using framer-motion spring animation and ref DOM update\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{useInView,useMotionValue,useSpring}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * CountUp (Framer)\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function CountUp(props){const{to,from,direction,delay,duration,className,startWhen,separator,onStart,onEnd,font,color,style,gradientText=false,gradientColors=[\"#40ffaa\",\"#4079ff\",\"#40ffaa\",\"#4079ff\",\"#40ffaa\"],gradientSpeed=8,gradientBorder=false}=props;const ref=useRef(null);const motionValue=useMotionValue(direction===\"down\"?to:from);// Calculate damping and stiffness based on duration\nconst damping=20+40*(1/Math.max(duration,.01));const stiffness=100*(1/Math.max(duration,.01));const springValue=useSpring(motionValue,{damping,stiffness});const isInView=useInView(ref,{once:true,margin:\"0px\"});// Set initial text content to the initial value based on direction\nuseEffect(()=>{if(ref.current){ref.current.textContent=String(direction===\"down\"?to:from);}},[from,to,direction]);// Start the animation when in view and startWhen is true\nuseEffect(()=>{if(isInView&&startWhen){if(typeof onStart===\"function\"){onStart();}const timeoutId=setTimeout(()=>{motionValue.set(direction===\"down\"?from:to);},delay*1e3);const durationTimeoutId=setTimeout(()=>{if(typeof onEnd===\"function\"){onEnd();}},delay*1e3+duration*1e3);return()=>{clearTimeout(timeoutId);clearTimeout(durationTimeoutId);};}},[isInView,startWhen,motionValue,direction,from,to,delay,onStart,onEnd,duration]);// Update text content with formatted number on spring value change\nuseEffect(()=>{const unsubscribe=springValue.on(\"change\",latest=>{if(ref.current){const options={useGrouping:!!separator,minimumFractionDigits:0,maximumFractionDigits:0};const formattedNumber=Intl.NumberFormat(\"en-US\",options).format(Number(latest.toFixed(0)));ref.current.textContent=separator?formattedNumber.replace(/,/g,separator):formattedNumber;}});return()=>unsubscribe();},[springValue,separator]);// Gradient text styles (applied only to the text span)\nconst gradientTextStyle={backgroundImage:`linear-gradient(to right, ${gradientColors.join(\", \")})`,backgroundSize:\"300% 100%\",backgroundClip:\"text\",WebkitBackgroundClip:\"text\",color:\"transparent\",WebkitTextFillColor:\"transparent\",animation:`gradientMove ${gradientSpeed}s linear infinite`,display:\"inline-block\",position:\"relative\",zIndex:2,minWidth:\"fit-content\",paddingRight:\"0.25em\",overflow:\"visible\"};// Border overlay (not covering text)\nconst overlayStyle={position:\"absolute\",top:0,left:0,right:0,bottom:0,border:`2px solid transparent`,borderRadius:\"1.25rem\",background:`linear-gradient(to right, ${gradientColors.join(\", \")}) border-box`,WebkitMask:\"linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0)\",WebkitMaskComposite:\"xor\",pointerEvents:\"none\",zIndex:0,animation:`gradientMove ${gradientSpeed}s linear infinite`,backgroundSize:\"300% 100%\"};// overlayBeforeStyle removed duplicate left/top keys\n// Keyframes for gradient animation\nconst gradientKeyframes=`@keyframes gradientMove {\n        0% { background-position: 0% 50%; }\n        50% { background-position: 100% 50%; }\n        100% { background-position: 0% 50%; }\n    }`;// Static preview for thumbnail\nif(RenderTarget.current()===RenderTarget.thumbnail){const content=direction===\"down\"?to:from;if(gradientText){return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"style\",{children:gradientKeyframes}),gradientBorder&&/*#__PURE__*/_jsx(\"div\",{style:overlayStyle}),/*#__PURE__*/_jsx(\"span\",{className:className,style:{...style,...font,...gradientTextStyle,width:\"fit-content\",minWidth:\"fit-content\"},children:content})]});}return /*#__PURE__*/_jsx(\"span\",{className:className,style:{...style,...font,color,width:\"max-content\",minWidth:\"max-content\",display:\"inline-block\"},children:content});}if(gradientText){return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"style\",{children:gradientKeyframes}),gradientBorder&&/*#__PURE__*/_jsx(\"div\",{style:overlayStyle}),/*#__PURE__*/_jsx(\"span\",{className:className,ref:ref,style:{...style,...font,...gradientTextStyle,width:\"fit-content\",minWidth:\"fit-content\"},\"aria-live\":\"polite\"})]});}return /*#__PURE__*/_jsx(\"span\",{className:className,ref:ref,style:{...style,...font,color,width:\"max-content\",minWidth:\"max-content\",display:\"inline-block\"},\"aria-live\":\"polite\"});}addPropertyControls(CountUp,{to:{type:ControlType.Number,title:\"To\",defaultValue:100,min:-1e6,max:1e6,step:1},from:{type:ControlType.Number,title:\"From\",defaultValue:0,min:-1e6,max:1e6,step:1},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"up\",\"down\"],optionTitles:[\"Up\",\"Down\"],defaultValue:\"up\",displaySegmentedControl:true},delay:{type:ControlType.Number,title:\"Delay (s)\",defaultValue:0,min:0,max:10,step:.1},duration:{type:ControlType.Number,title:\"Duration (s)\",defaultValue:2,min:.1,max:10,step:.1},className:{type:ControlType.String,title:\"Class Name\",defaultValue:\"\",placeholder:\"CSS class...\"},startWhen:{type:ControlType.Boolean,title:\"Start When In View\",defaultValue:true,enabledTitle:\"Start\",disabledTitle:\"Don't Start\"},separator:{type:ControlType.String,title:\"Separator\",defaultValue:\"\",placeholder:\",\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},onStart:{type:ControlType.EventHandler,title:\"On Start\"},onEnd:{type:ControlType.EventHandler,title:\"On End\"},gradientText:{type:ControlType.Boolean,title:\"Gradient Text\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},gradientColors:{type:ControlType.Array,title:\"Gradient Colors\",control:{type:ControlType.Color,defaultValue:\"#40ffaa\"},defaultValue:[\"#40ffaa\",\"#4079ff\",\"#40ffaa\",\"#4079ff\",\"#40ffaa\"],maxCount:6,hidden:({gradientText})=>!gradientText},gradientSpeed:{type:ControlType.Number,title:\"Gradient Speed\",defaultValue:8,min:1,max:20,step:.1,hidden:({gradientText})=>!gradientText},gradientBorder:{type:ControlType.Boolean,title:\"Show Border\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\",hidden:({gradientText})=>!gradientText}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CountUp\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CountUp.map"],
  "mappings": "sGAMkB,SAARA,EAAyBC,EAAM,CAAC,GAAK,CAAC,GAAAC,EAAG,KAAAC,EAAK,UAAAC,EAAU,MAAAC,EAAM,SAAAC,EAAS,UAAAC,EAAU,UAAAC,EAAU,UAAAC,EAAU,QAAAC,EAAQ,MAAAC,EAAM,KAAAC,EAAK,MAAAC,EAAM,MAAAC,EAAM,aAAAC,EAAa,GAAM,eAAAC,EAAe,CAAC,UAAU,UAAU,UAAU,UAAU,SAAS,EAAE,cAAAC,EAAc,EAAE,eAAAC,EAAe,EAAK,EAAEjB,EAAYkB,EAAIC,EAAO,IAAI,EAAQC,EAAYC,EAAelB,IAAY,OAAOF,EAAGC,CAAI,EAC5VoB,EAAQ,GAAG,IAAI,EAAE,KAAK,IAAIjB,EAAS,GAAG,GAASkB,EAAU,KAAK,EAAE,KAAK,IAAIlB,EAAS,GAAG,GAASmB,EAAYC,EAAUL,EAAY,CAAC,QAAAE,EAAQ,UAAAC,CAAS,CAAC,EAAQG,EAASC,EAAUT,EAAI,CAAC,KAAK,GAAK,OAAO,KAAK,CAAC,EAChNU,EAAU,IAAI,CAA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EAAE,QAAQ,CAAC,KAAKA,EAAY,aAAa,MAAM,UAAU,EAAE,MAAM,CAAC,KAAKA,EAAY,aAAa,MAAM,QAAQ,EAAE,aAAa,CAAC,KAAKA,EAAY,QAAQ,MAAM,gBAAgB,aAAa,GAAM,aAAa,KAAK,cAAc,KAAK,EAAE,eAAe,CAAC,KAAKA,EAAY,MAAM,MAAM,kBAAkB,QAAQ,CAAC,KAAKA,EAAY,MAAM,aAAa,SAAS,EAAE,aAAa,CAAC,UAAU,UAAU,UAAU,UAAU,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,aAAA7B,CAAY,IAAI,CAACA,CAAY,EAAE,cAAc,CAAC,KAAK6B,EAAY,OAAO,MAAM,iBAAiB,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,GAAG,OAAO,CAAC,CAAC,aAAA7B,CAAY,IAAI,CAACA,CAAY,EAAE,eAAe,CAAC,KAAK6B,EAAY,QAAQ,MAAM,cAAc,aAAa,GAAM,aAAa,OAAO,cAAc,OAAO,OAAO,CAAC,CAAC,aAAA7B,CAAY,IAAI,CAACA,CAAY,CAAC,CAAC",
  "names": ["CountUp", "props", "to", "from", "direction", "delay", "duration", "className", "startWhen", "separator", "onStart", "onEnd", "font", "color", "style", "gradientText", "gradientColors", "gradientSpeed", "gradientBorder", "ref", "pe", "motionValue", "useMotionValue", "damping", "stiffness", "springValue", "useSpring", "isInView", "useInView", "ue", "timeoutId", "durationTimeoutId", "unsubscribe", "latest", "options", "formattedNumber", "gradientTextStyle", "overlayStyle", "gradientKeyframes", "RenderTarget", "content", "u", "p", "addPropertyControls", "ControlType"]
}
