{"version":3,"file":"CountUp.DBNtWfMq.mjs","names":["useRef","p","useState"],"sources":["https:/framerusercontent.com/modules/jpUooNlKE2NrIo6gCC75/5mVGKtheXBJuF4Ce2uM7/CountUp.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useInView}from\"framer-motion\";/**\n * Count Up\n *\n * @framerIntrinsicWidth 320\n * @framerIntrinsicHeight 44\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function CountUp(props){const{value=237,prefix=\"\",suffix=\"+\",decimals=0,color=\"#FFFFFF\",duration=1.8,style}=props;const isStatic=useIsStaticRenderer();const ref=useRef(null);const inView=useInView(ref,{amount:.4,once:true});const[p,setP]=useState(0);useEffect(()=>{if(isStatic||!inView)return;const start=performance.now();let raf=0;const tick=now=>{const t=Math.min(1,(now-start)/(duration*1e3));setP(1-Math.pow(1-t,3));if(t<1)raf=requestAnimationFrame(tick);};raf=requestAnimationFrame(tick);return()=>cancelAnimationFrame(raf);},[inView,isStatic,duration]);const fmt=n=>prefix+n.toLocaleString(\"en-US\",{minimumFractionDigits:decimals,maximumFractionDigits:decimals})+suffix;const shown=isStatic?value:value*p;return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{...style,position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`.rdx-count{font-size:40px;letter-spacing:-1.3px}@media (max-width:1199.98px){.rdx-count{font-size:35px}}@media (max-width:809.98px){.rdx-count{font-size:30px}}`}),/*#__PURE__*/_jsxs(\"span\",{className:\"rdx-count\",style:{display:\"inline-grid\",fontFamily:'\"Inter\", sans-serif',fontWeight:500,lineHeight:1.05,color,fontVariantNumeric:\"tabular-nums\",fontFeatureSettings:'\"blwf\", \"cv03\", \"cv04\", \"cv09\", \"cv11\"'},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{gridArea:\"1 / 1\",visibility:\"hidden\"},children:fmt(value)}),/*#__PURE__*/_jsx(\"span\",{style:{gridArea:\"1 / 1\"},children:fmt(shown)})]})]});}addPropertyControls(CountUp,{value:{type:ControlType.Number,title:\"Value\",defaultValue:237,min:0,max:1e10,step:1},prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"\"},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"+\"},decimals:{type:ControlType.Number,title:\"Decimals\",defaultValue:0,min:0,max:2,step:1},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FFFFFF\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1.8,min:.5,max:4,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CountUp\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"44\",\"framerIntrinsicWidth\":\"320\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CountUp.map"],"mappings":"wPAQG,SAAwB,EAAQ,EAAM,CAAC,GAAK,CAAC,QAAM,IAAI,SAAO,GAAG,SAAO,IAAI,WAAS,EAAE,QAAM,UAAU,WAAS,IAAI,SAAO,EAAY,EAAS,EAAoB,EAAQ,EAAIA,EAAO,IAAI,EAAQ,EAAO,EAAU,EAAI,CAAC,OAAO,GAAG,KAAK,EAAI,CAAC,EAAO,CAACC,EAAE,GAAMC,EAAS,CAAC,EAAE,MAAc,CAAC,GAAG,GAAU,CAAC,EAAO,OAAO,IAAM,EAAM,YAAY,IAAI,EAAM,EAAI,EAAQ,EAAK,GAAK,CAAC,IAAM,EAAE,KAAK,IAAI,GAAG,EAAI,IAAQ,EAAS,IAAI,EAAE,EAAK,GAAW,EAAE,IAAE,CAAE,EAAK,EAAE,IAAE,EAAI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