{"version":3,"file":"CountUp.DVTIt8Pi.mjs","names":["useRef","useState","__esmMin","init_npm_react_18_3_1","ce","init_jsx_runtime","c","_e","de","useInView","useReducedMotion","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_BisrWwwE","useIsStaticRenderer","ControlType","init_Theme","useThemed","CountUp","props","ref","inView","reduce","isStatic","shown","setShown","value","raf","start","tick","t","now","duration","eased","pickedWeight","font","text","prefix","decimals","suffix","finalText","style","init_CountUp"],"sources":["https:/framerusercontent.com/modules/vRCXI5JkLGjpwhtjDphj/2DfgV4ovrL3LEEY6O6Yt/CountUp.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useReducedMotion,useInView}from\"framer-motion\";import{useThemed}from\"https://framerusercontent.com/modules/jYqoRpmY6VqjJkuqrZFt/0li4qo5YNAXpTRQJWu7H/Theme.js\";/**\n * Counts a number up once when it scrolls into view. Shows the final value for reduced motion and static renders.\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function CountUp(props){props=useThemed(props);const{value=0,decimals=0,prefix=\"\",suffix=\"\",duration=1.2,font,color,style}=props;const ref=useRef(null);const inView=useInView(ref,{once:true,margin:\"-10% 0px\"});const reduce=useReducedMotion();const isStatic=useIsStaticRenderer();const[shown,setShown]=useState(isStatic||reduce?value:0);useEffect(()=>{if(isStatic||reduce){setShown(value);return;}if(!inView)return;let raf=0;const start=performance.now();const tick=now=>{const t=Math.min(1,(now-start)/(duration*1e3));const eased=1-Math.pow(1-t,3);setShown(value*eased);if(t<1)raf=requestAnimationFrame(tick);};raf=requestAnimationFrame(tick);return()=>cancelAnimationFrame(raf);},[inView,value,duration,reduce,isStatic]);// Honour the weight chosen in the Font control (e.g. Inter Light); fall back to semibold.\nconst pickedWeight=font&&/Inter/i.test(String(font.fontFamily||\"\"))&&font.fontWeight?font.fontWeight:undefined;const text=prefix+shown.toLocaleString(\"en-US\",{minimumFractionDigits:decimals,maximumFractionDigits:decimals})+suffix;const finalText=prefix+value.toLocaleString(\"en-US\",{minimumFractionDigits:decimals,maximumFractionDigits:decimals})+suffix;return /*#__PURE__*/_jsx(\"span\",{ref:ref,\"aria-label\":finalText,style:{...style,...font,fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',fontWeight:pickedWeight??600,color,fontVariantNumeric:\"tabular-nums\",whiteSpace:\"nowrap\",display:\"inline-block\"},children:/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:text})});}addPropertyControls(CountUp,{value:{type:ControlType.Number,title:\"Value\",defaultValue:249,step:.1},decimals:{type:ControlType.Number,title:\"Decimals\",defaultValue:0,min:0,max:2,step:1},prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"\"},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1.2,min:.2,max:4,step:.1,unit:\"s\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:44,letterSpacing:\"-0.04em\",lineHeight:1.02}},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#0B0C0E\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CountUp\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,gTAIG,SAAwBkB,EAAQ,EAAM,CAAC,EAAMD,EAAUE,CAAK,EAAE,GAAK,CAAC,QAAM,EAAE,WAAS,EAAE,SAAO,GAAG,SAAO,GAAG,WAAS,IAAI,OAAK,QAAM,SAAOA,EAAYC,EAAIpB,EAAO,IAAI,EAAQqB,EAAOZ,EAAUW,EAAI,CAAC,KAAK,GAAK,OAAO,UAAU,CAAC,EAA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