{"version":3,"file":"CountUp.AzSJitd-.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","de","init_jsx_runtime","c","ce","useInView","useReducedMotion","animate","init_framer_motion_DhsWWWsN","init_framer_DKtAEkcX","addPropertyControls","ControlType","useIsStaticRenderer","CountUp","props","isStatic","reduce","ref","inView","final","prefix","value","suffix","el","controls","v","duration","font","init_CountUp"],"sources":["https:/framerusercontent.com/modules/jYVLTtch2PUqc0DZZTyC/kyx2M2FQe7ixPTb8mUEq/CountUp.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{animate,useInView,useReducedMotion}from\"framer-motion\";/**\n * Count Up\n *\n * Counts from zero to the value the first time it scrolls into view.\n * Renders the final value when static or when motion is reduced.\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 92\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function CountUp(props){const{value=38,prefix=\"\",suffix=\"%\",duration=1.8,color=\"#1c1c1e\",font}=props;const isStatic=useIsStaticRenderer();const reduce=useReducedMotion();const ref=useRef(null);const inView=useInView(ref,{once:true,margin:\"0px 0px -10% 0px\"});const final=`${prefix}${value}${suffix}`;useEffect(()=>{if(isStatic||reduce||!inView||!ref.current)return;const el=ref.current;const controls=animate(0,value,{duration,ease:[.16,1,.3,1],onUpdate:v=>{el.textContent=`${prefix}${Math.round(v)}${suffix}`;}});return()=>controls.stop();},[inView,isStatic,reduce,value,prefix,suffix,duration]);return /*#__PURE__*/_jsx(\"span\",{ref:ref,style:{...props.style,position:\"relative\",display:\"inline-block\",whiteSpace:\"nowrap\",minWidth:\"max-content\",color,fontVariantNumeric:\"tabular-nums\",...font},children:final});}addPropertyControls(CountUp,{value:{type:ControlType.Number,title:\"Value\",defaultValue:38,min:0,max:1e5,step:1},prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"\"},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"%\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1.8,min:.2,max:5,step:.1,unit:\"s\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#1c1c1e\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"92px\",variant:\"Semibold\",letterSpacing:\"-0.06em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CountUp\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"200\",\"framerIntrinsicHeight\":\"92\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CountUp.map"],"mappings":"A,wPAWG,SAAwBe,EAAQ,EAAM,CAAC,GAAK,CAAC,QAAM,GAAG,SAAO,GAAG,SAAO,IAAI,WAAS,IAAI,QAAM,UAAU,QAAMC,EAAYC,EAASH,EAAoB,EAAQI,EAAOV,EAAiB,EAAQW,EAAInB,EAAO,IAAI,EAAQoB,EAAOb,EAAUY,EAAI,CAAC,KAAK,GAAK,OAAO,kBAAkB,CAAC,EAAQE,EAAM,GAAGC,IAASC,IAAQC,IAAkT,OAAzSlB,MAAc,CAAC,GAAGW,GAAUC,GAAQ,CAACE,GAAQ,CAACD,EAAI,QAAQ,OAAO,IAAMM,EAAGN,EAAI,QAAcO,EAASjB,EAAQ,EAAEc,EAAM,CAAC,WAAS,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,SAAS,GAAG,CAAC,EAAG,YAAY,GAAGD,IAAS,KAAK,MAAMK,CAAC,IAAIH,GAAS,CAAC,CAAC,EAAE,UAAUE,EAAS,KAAK,CAAE,EAAE,CAACN,EAAOH,EAASC,EAAOK,EAAMD,EAAOE,EAAOI,CAAQ,CAAC,EAAsB,gB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