{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/xDWat4iXqdn7yH7b1n5H/SqX0LeJWxbbX4iMzr5Ak/U0aq1GN1u.js", "ssg:https://framerusercontent.com/modules/sIxZFVxIOBdfeANYhkj2/lGu9VayhxpYD2v9lbKlh/AnimatedCounter.js"],
  "sourcesContent": ["// Generated by Framer (c105afa)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Jersey 20-regular\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Jersey 20\",openType:true,source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/jersey20/v3/ZgNRjP1ON6jeW4D12z3cqU_qP4mXuQ.woff2\",weight:\"400\"}]}];export const css=[\".framer-VYITl .framer-styles-preset-6z2k03:not(.rich-text-wrapper), .framer-VYITl .framer-styles-preset-6z2k03.rich-text-wrapper h4 { --framer-font-family: \\\"Jersey 20\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 48px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -1px; --framer-line-height: 1.25em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-38b01e21-88e9-4bd5-b454-4881d6873ad9, #06040b); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }\",\"@media (max-width: 1439px) and (min-width: 768px) { .framer-VYITl .framer-styles-preset-6z2k03:not(.rich-text-wrapper), .framer-VYITl .framer-styles-preset-6z2k03.rich-text-wrapper h4 { --framer-font-family: \\\"Jersey 20\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 42px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -1px; --framer-line-height: 1.25em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-38b01e21-88e9-4bd5-b454-4881d6873ad9, #06040b); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }\",\"@media (max-width: 767px) and (min-width: 0px) { .framer-VYITl .framer-styles-preset-6z2k03:not(.rich-text-wrapper), .framer-VYITl .framer-styles-preset-6z2k03.rich-text-wrapper h4 { --framer-font-family: \\\"Jersey 20\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 38px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -1px; --framer-line-height: 1.25em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-38b01e21-88e9-4bd5-b454-4881d6873ad9, #06040b); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }\"];export const className=\"framer-VYITl\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}", "/*\n * Animated Counter by framer.today\n * v1.0.1\n *\n * hi@framer.today\n * _joerl on \uD835\uDD4F\n *\n * Full terms here \u21B4\n * https://framer.today/license\n *\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{animate,motion,useInView}from\"framer-motion\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * @framerDisableUnlink\n */export default function AnimatedCounter(props){const{from,to,duration,decimalPlaces,decimalSeparator,font:{fontFamily,fontWeight,fontSize,lineHeight,letterSpacing,textAlign},color,playOnLoad,once,animationType}=props;const ref=useRef(null);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const ariaLabel=`Counter ends at ${to}`;// Pass 'once' to useInView\nconst isInView=useInView(ref,{once});const[hasAnimated,setHasAnimated]=useState(false);const[displayValue,setDisplayValue]=useState(()=>formatNumber(from));function formatNumber(value){let formattedNumber=value.toFixed(decimalPlaces).replace(\".\",decimalSeparator);return formattedNumber;}useEffect(()=>{// Determine if animation should play\nif(!isCanvas&&(playOnLoad||isInView)&&!hasAnimated){const animationControl=animate(from,to,{duration,ease:animationType===\"smooth\"?\"easeInOut\":\"linear\",onUpdate:latest=>{setDisplayValue(formatNumber(latest));},onComplete:()=>{if(once){setHasAnimated(true);}}});return()=>animationControl.stop();}},[from,to,duration,decimalPlaces,decimalSeparator,playOnLoad,isInView,animationType,once,hasAnimated]);return /*#__PURE__*/_jsx(motion.div,{ref:ref,initial:{opacity:isCanvas?1:0},whileInView:{opacity:1},style:{fontFamily,fontWeight,fontSize,lineHeight,letterSpacing,textAlign,color,fontVariantNumeric:\"tabular-nums\",userSelect:\"none\"},\"aria-label\":ariaLabel,children:isCanvas?formatNumber(to):displayValue});}AnimatedCounter.defaultProps={from:0,to:24,duration:5,decimalPlaces:0,decimalSeparator:\".\",font:{fontFamily:\"Manrope\",fontWeight:\"400\",fontSize:40,lineHeight:\"1.5em\",letterSpacing:\"normal\",textAlign:\"left\"},color:\"#FFF\",playOnLoad:true,once:true,animationType:\"smooth\"};addPropertyControls(AnimatedCounter,{from:{type:ControlType.Number,title:\"From\",defaultValue:0,min:0,step:.1,displayStepper:true},to:{type:ControlType.Number,title:\"To\",defaultValue:16,min:0,step:.1,displayStepper:true},animationType:{type:ControlType.Enum,title:\"Animation Type\",defaultValue:\"smooth\",options:[\"smooth\",\"linear\"],optionTitles:[\"Smooth\",\"Linear\"]},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:2.5,min:0,step:.1,displayStepper:true},decimalPlaces:{type:ControlType.Number,displayStepper:true,title:\"Decimal Places\",defaultValue:0,min:0,max:2,step:1},decimalSeparator:{type:ControlType.Enum,title:\"\u21B3 Separator\",defaultValue:\".\",options:[\".\",\",\"],optionTitles:[\".\",\",\"],hidden:({decimalPlaces})=>decimalPlaces===0},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultValue:{fontFamily:\"Manrope\",fontWeight:\"400\",fontSize:64,lineHeight:\"1.5em\",letterSpacing:\"Medium\",textAlign:\"left\"},displayFontSize:true,displayTextAlignment:false,defaultFontType:\"monospace\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FFF\"},once:{type:ControlType.Boolean,title:\"Once\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},playOnLoad:{type:ControlType.Boolean,title:\"Play on Load\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",description:`\n        \n        *from framer.today*\n [License](https://framer.today/license)\n    `}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedCounter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedCounter.map"],
  "mappings": "iHAC8BA,EAAU,UAAU,CAAC,sBAAsB,CAAC,EAAS,IAAMC,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,OAAO,YAAY,SAAS,GAAK,OAAO,SAAS,MAAM,SAAS,IAAI,+EAA+E,OAAO,KAAK,CAAC,CAAC,CAAC,EAAeC,EAAI,CAAC,kuBAAouB,wxBAA0xB,oxBAAsxB,EAAeC,EAAU,eCW7kF,SAARC,EAAiCC,EAAM,CAAC,GAAK,CAAC,KAAAC,EAAK,GAAAC,EAAG,SAAAC,EAAS,cAAAC,EAAc,iBAAAC,EAAiB,KAAK,CAAC,WAAAC,EAAW,WAAAC,EAAW,SAAAC,EAAS,WAAAC,EAAW,cAAAC,EAAc,UAAAC,CAAS,EAAE,MAAAC,EAAM,WAAAC,EAAW,KAAAC,EAAK,cAAAC,CAAa,EAAEf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AAY,QAAQ,MAAM,eAAe,aAAa,GAAK,aAAa,MAAM,cAAc,KAAK,YAAY;AAAA;AAAA;AAAA;AAAA,KAIhuE,CAAC,CAAC",
  "names": ["fontStore", "fonts", "css", "className", "AnimatedCounter", "props", "from", "to", "duration", "decimalPlaces", "decimalSeparator", "fontFamily", "fontWeight", "fontSize", "lineHeight", "letterSpacing", "textAlign", "color", "playOnLoad", "once", "animationType", "ref", "pe", "isCanvas", "RenderTarget", "ariaLabel", "isInView", "useInView", "hasAnimated", "setHasAnimated", "ye", "displayValue", "setDisplayValue", "formatNumber", "value", "ue", "animationControl", "animate", "latest", "p", "motion", "addPropertyControls", "ControlType"]
}
