{"version":3,"file":"CountUp.C13EduTZ.mjs","names":["useRef","p","useState","__esmMin","_e","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","de","useInView","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_BkYB2Gqq","ControlType","useIsStaticRenderer","CountUp","props","isStatic","ref","inView","p$1","setP","start","raf","tick","t","now","duration","fmt","prefix","n","decimals","suffix","shown","value","style","init_CountUp"],"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":"A,wPAQG,SAAwBiB,EAAQ,EAAM,CAAC,GAAK,CAAC,QAAM,IAAI,SAAO,GAAG,SAAO,IAAI,WAAS,EAAE,QAAM,UAAU,WAAS,IAAI,SAAOC,EAAYC,EAASH,EAAoB,EAAQI,EAAIpB,EAAO,IAAI,EAAQqB,EAAOV,EAAUS,EAAI,CAAC,OAAO,GAAG,KAAK,EAAI,CAAC,EAAO,CAACnB,EAAEsB,GAAMrB,EAAS,CAAC,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