{"version":3,"file":"hglsZdWDn.SBdYTMSB.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/21nFIJEbWojZPzlcfvk7/2X7oTheLH5PorYc0YouH/AnimatedCounter.js","https:/framerusercontent.com/modules/or7SARhsap4Snkikz3Ze/gqYZ8HpdjslxOrsRume8/hglsZdWDn.js"],"sourcesContent":["// Animated Number Counter\n// Counts from 0 to a target number with optional symbol (e.g. +, %, etc). Animation starts when visible, supports delay and ease-in-out. Multiple counters can be placed on one page.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useInView}from\"framer\";/**\n * Animated Number Counter\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function AnimatedCounter(props){const{number=\"86\",numberFont,numberColor,symbol=\"+\",symbolFont,symbolColor,duration=1.2,delay=0,style}=props;const ref=useRef(null);const isInView=useInView(ref,{amount:.5,once:true});const[display,setDisplay]=useState(\"0\");const[hasAnimated,setHasAnimated]=useState(false);// Only digits for number\nconst target=parseInt(number.replace(/[^0-9]/g,\"\"),10)||0;useEffect(()=>{if(!isInView||hasAnimated)return;let timeout;let frame;let start=null;function animate(ts){if(start===null)start=ts;const elapsed=(ts-start)/1e3;const t=Math.min(1,elapsed/duration);// ease-in-out cubic\nconst eased=t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2;const val=Math.round(target*eased);startTransition(()=>setDisplay(val.toLocaleString()));if(t<1){frame=requestAnimationFrame(animate);}else{startTransition(()=>setDisplay(target.toLocaleString()));setHasAnimated(true);}}timeout=window.setTimeout(()=>{frame=requestAnimationFrame(animate);},delay*1e3);return()=>{if(timeout)clearTimeout(timeout);if(frame)cancelAnimationFrame(frame);};},[isInView,hasAnimated,target,duration,delay]);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{...style,width:\"max-content\",minWidth:1,minHeight:1,display:\"inline-block\",position:\"relative\",userSelect:\"none\"},\"aria-live\":\"polite\",children:[/*#__PURE__*/_jsx(\"span\",{style:{...numberFont,color:numberColor},children:display}),/*#__PURE__*/_jsx(\"span\",{style:{...symbolFont,color:symbolColor},children:symbol})]});}addPropertyControls(AnimatedCounter,{number:{type:ControlType.String,title:\"Number text input\",defaultValue:\"86\",placeholder:\"e.g. 100\"},numberFont:{type:ControlType.Font,title:\"Number style\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"},useGlobalTextStyles:true},numberColor:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#000000\"},symbol:{type:ControlType.String,title:\"Symbol text input\",defaultValue:\"+\",placeholder:\"+, %, etc.\"},symbolFont:{type:ControlType.Font,title:\"Symbol text style\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"},useGlobalTextStyles:true},symbolColor:{type:ControlType.Color,title:\"Font color\",defaultValue:\"#000000\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1.2,min:.2,max:10,step:.1,unit:\"s\"},delay:{type:ControlType.Number,title:\"Delay\",defaultValue:0,min:0,max:5,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedCounter\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedCounter.map","// Generated by Framer (90a4657)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Great Vibes-regular\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Great Vibes\",openType:true,source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/greatvibes/v20/RWmMoKWR9v4ksMfaWd_JN-XHg6UKDXlq.woff2\",weight:\"400\"}]}];export const css=[\".framer-3cUOD .framer-styles-preset-1o0h07x:not(.rich-text-wrapper), .framer-3cUOD .framer-styles-preset-1o0h07x.rich-text-wrapper h3 { --framer-font-family: \\\"Great Vibes\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 62px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -0.04em; --framer-line-height: 1em; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-b8896b7a-5685-4e33-abc9-187783f9a22f, #05080c); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }\",\"@media (max-width: 1199px) and (min-width: 810px) { .framer-3cUOD .framer-styles-preset-1o0h07x:not(.rich-text-wrapper), .framer-3cUOD .framer-styles-preset-1o0h07x.rich-text-wrapper h3 { --framer-font-family: \\\"Great Vibes\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 54px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -0.04em; --framer-line-height: 1em; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-b8896b7a-5685-4e33-abc9-187783f9a22f, #05080c); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }\",\"@media (max-width: 809px) and (min-width: 0px) { .framer-3cUOD .framer-styles-preset-1o0h07x:not(.rich-text-wrapper), .framer-3cUOD .framer-styles-preset-1o0h07x.rich-text-wrapper h3 { --framer-font-family: \\\"Great Vibes\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 40px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -0.04em; --framer-line-height: 1em; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-b8896b7a-5685-4e33-abc9-187783f9a22f, #05080c); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }\"];export const className=\"framer-3cUOD\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qQAOG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,SAAO,KAAK,aAAW,cAAY,SAAO,IAAI,aAAW,cAAY,WAAS,IAAI,QAAM,EAAE,SAAO,EAAY,EAAIA,EAAO,KAAK,CAAO,EAAS,EAAU,EAAI,CAAC,OAAO,GAAG,KAAK,GAAK,CAAC,CAAM,CAAC,EAAQ,GAAYC,EAAS,IAAI,CAAM,CAAC,EAAY,GAAgBA,EAAS,GAAM,CAC7T,EAAO,SAAS,EAAO,QAAQ,UAAU,GAAG,CAAC,GAAG,EAAE,EACwa,OADta,MAAc,CAAC,GAAG,CAAC,GAAU,EAAY,OAAO,IAAI,EAAY,EAAU,EAAM,KAAK,SAAS,EAAQ,EAAG,CAAI,IAAQ,OAAK,EAAM,GAAG,IAAM,GAAS,EAAG,GAAO,IAAU,EAAE,KAAK,IAAI,EAAE,EAAQ,EAAS,CACxP,EAAM,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,GAAW,GAAG,EAAE,IAAE,EAAG,EAAQ,EAAI,KAAK,MAAM,EAAO,EAAM,CAAC,MAAoB,EAAW,EAAI,gBAAgB,CAAC,CAAC,CAAI,EAAE,EAAG,EAAM,sBAAsB,EAAQ,EAAO,MAAoB,EAAW,EAAO,gBAAgB,CAAC,C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