{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/VEQI8asKROkdHIfS48V9/k1Abthc8yOXKsmzVnq3Z/d5lL3xxeQ.js", "ssg:https://framerusercontent.com/modules/ov34ZuSQoTAZ0rWONLpN/tBoKbYqEF4gatlw2e3Sa/NumberAnimator.js"],
  "sourcesContent": ["import{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Source Code Pro-500\",\"GF;Source Code Pro-700\",\"GF;Source Code Pro-700italic\",\"GF;Source Code Pro-500italic\"]);export const fonts=[{family:\"Source Code Pro\",style:\"normal\",url:\"https://fonts.gstatic.com/s/sourcecodepro/v23/HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DP6QhMthTXUcdJg.woff2\",weight:\"500\"},{family:\"Source Code Pro\",style:\"normal\",url:\"https://fonts.gstatic.com/s/sourcecodepro/v23/HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DCuXhMthTXUcdJg.woff2\",weight:\"700\"},{family:\"Source Code Pro\",style:\"italic\",url:\"https://fonts.gstatic.com/s/sourcecodepro/v23/HI_jiYsKILxRpg3hIP6sJ7fM7PqlOPHYvDP_W9O7GQTTi4prTFcZZJiGpw.woff2\",weight:\"700\"},{family:\"Source Code Pro\",style:\"italic\",url:\"https://fonts.gstatic.com/s/sourcecodepro/v23/HI_jiYsKILxRpg3hIP6sJ7fM7PqlOPHYvDP_W9O7GQTTXo1rTFcZZJiGpw.woff2\",weight:\"500\"}];export const css=['.framer-tFzbS .framer-styles-preset-tycs66:not(.rich-text-wrapper), .framer-tFzbS .framer-styles-preset-tycs66.rich-text-wrapper h1 { --framer-font-family: \"Source Code Pro\", monospace; --framer-font-family-bold: \"Source Code Pro\", monospace; --framer-font-family-bold-italic: \"Source Code Pro\", monospace; --framer-font-family-italic: \"Source Code Pro\", monospace; --framer-font-size: 40px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -1.7px; --framer-line-height: 70px; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-e74a1e6b-724a-4aac-8660-0d2c79a83b15, #fffffc); --framer-text-decoration: none; --framer-text-transform: none; }','@media (max-width: 1199px) and (min-width: 810px) { .framer-tFzbS .framer-styles-preset-tycs66:not(.rich-text-wrapper), .framer-tFzbS .framer-styles-preset-tycs66.rich-text-wrapper h1 { --framer-font-family: \"Source Code Pro\", monospace; --framer-font-family-bold: \"Source Code Pro\", monospace; --framer-font-family-bold-italic: \"Source Code Pro\", monospace; --framer-font-family-italic: \"Source Code Pro\", monospace; --framer-font-size: 28px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -1.7px; --framer-line-height: 70px; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-e74a1e6b-724a-4aac-8660-0d2c79a83b15, #fffffc); --framer-text-decoration: none; --framer-text-transform: none; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-tFzbS .framer-styles-preset-tycs66:not(.rich-text-wrapper), .framer-tFzbS .framer-styles-preset-tycs66.rich-text-wrapper h1 { --framer-font-family: \"Source Code Pro\", monospace; --framer-font-family-bold: \"Source Code Pro\", monospace; --framer-font-family-bold-italic: \"Source Code Pro\", monospace; --framer-font-family-italic: \"Source Code Pro\", monospace; --framer-font-size: 22px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -1.7px; --framer-line-height: 40px; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-e74a1e6b-724a-4aac-8660-0d2c79a83b15, #fffffc); --framer-text-decoration: none; --framer-text-transform: none; } }'];export const className=\"framer-tFzbS\";\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\"}}}", "import{jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion,animate,useInView}from\"framer-motion\";import{useEffect,useState,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function NumberAnimator(props){const ref=useRef(null);const isInView=useInView(ref,{once:!props.animation.replay,amount:props.animation.amount});const[numberText,setNumberText]=useState(\"\");const{start,end,decimals,commas,rounding,fontColor,animation}=props;const[currentAnimation,setCurrentAnimation]=useState(null);const isCanvas=RenderTarget.current()===RenderTarget.canvas;function formatNumber(value){let number=value;let numberString=number.toFixed(decimals);if(commas){numberString=numberString.replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\");}return numberString;}function runAnimation(){if(!isCanvas){if(currentAnimation){currentAnimation.stop();}setCurrentAnimation(animate(start,end,{...animation.transition,onUpdate:latest=>{setNumberText(formatNumber(latest));}}));}}useEffect(()=>{if(animation.trigger==\"appear\"){runAnimation();}setNumberText(formatNumber(start));},[]);useEffect(()=>{if(isInView&&animation.trigger==\"layerInView\"){runAnimation();}},[isInView]);useEffect(()=>{if(animation.trigger==\"layerInView\"){if(isInView){runAnimation();}else if(animation.amount==\"some\"){if(currentAnimation){currentAnimation.stop();}setNumberText(formatNumber(start));}}},[isInView]);return /*#__PURE__*/_jsxs(motion.p,{ref:ref,style:{userSelect:props.textSelect?\"auto\":\"none\",fontVariantNumeric:`${props.monospace?\"tabular-nums \":\"\"}${props.slashedZeros?\"slashed-zero\":\"\"}`,margin:0,...fontColor.mode==\"solid\"?{color:fontColor.color}:{WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundImage:`linear-gradient(${fontColor.angle}deg, ${fontColor.startColor}, ${fontColor.endColor})`},...props.font,...props.style},children:[props.prefix,isCanvas?formatNumber(end):numberText,props.suffix]});}NumberAnimator.displayName=\"Animated Number Counter\";addPropertyControls(NumberAnimator,{start:{type:ControlType.Number,defaultValue:0},end:{type:ControlType.Number,defaultValue:100},decimals:{type:ControlType.Number,defaultValue:0,min:0,max:3,step:1},commas:{type:ControlType.Boolean,defaultValue:true},fontColor:{type:ControlType.Object,controls:{mode:{type:ControlType.Enum,defaultValue:\"solid\",options:[\"solid\",\"gradient\"],optionTitles:[\"Solid\",\"Gradient\"],displaySegmentedControl:true},color:{type:ControlType.Color,defaultValue:\"#000\",hidden:props=>props.mode!=\"solid\"},startColor:{type:ControlType.Color,defaultValue:\"#000\",hidden:props=>props.mode!=\"gradient\"},endColor:{type:ControlType.Color,defaultValue:\"#FFF\",hidden:props=>props.mode!=\"gradient\"},angle:{type:ControlType.Number,defaultValue:180,min:-360,max:360,unit:\"\\xb0\",hidden:props=>props.mode!=\"gradient\"}}},font:{type:\"font\",controls:\"extended\"},animation:{type:ControlType.Object,icon:\"effect\",controls:{trigger:{type:ControlType.Enum,defaultValue:\"layerInView\",options:[\"appear\",\"layerInView\"],optionTitles:[\"Appear\",\"Layer in View\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},amount:{type:ControlType.Enum,defaultValue:\"some\",options:[\"some\",\"all\"],optionTitles:[\"Any\",\"All\"],displaySegmentedControl:true,hidden(props){return props.trigger!==\"layerInView\";}},replay:{type:ControlType.Boolean,defaultValue:true,hidden(props){return props.trigger!==\"layerInView\";}},transition:{type:ControlType.Transition}}},prefix:{type:ControlType.String},suffix:{type:ControlType.String},textSelect:{type:ControlType.Boolean,defaultValue:true},display:{type:ControlType.Object,buttonTitle:\"Options\",controls:{monospace:{type:ControlType.Boolean,defaultValue:false,description:\"Monospaced number characters.\"},slashedZeros:{type:ControlType.Boolean,defaultValue:false,description:\"Adds a diagonal slash through zeros if your font supports it.\"}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NumberAnimator\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NumberAnimator.map"],
  "mappings": "iHAA8BA,EAAU,UAAU,CAAC,yBAAyB,yBAAyB,+BAA+B,8BAA8B,CAAC,EAAS,IAAMC,EAAM,CAAC,CAAC,OAAO,kBAAkB,MAAM,SAAS,IAAI,8GAA8G,OAAO,KAAK,EAAE,CAAC,OAAO,kBAAkB,MAAM,SAAS,IAAI,8GAA8G,OAAO,KAAK,EAAE,CAAC,OAAO,kBAAkB,MAAM,SAAS,IAAI,iHAAiH,OAAO,KAAK,EAAE,CAAC,OAAO,kBAAkB,MAAM,SAAS,IAAI,iHAAiH,OAAO,KAAK,CAAC,EAAeC,EAAI,CAAC,26BAA26B,i+BAAi+B,69BAA69B,EAAeC,EAAU,eCGtuH,SAARC,EAAgCC,EAAM,CAAC,IAAMC,EAAIC,EAAO,IAAI,EAAQC,EAASC,EAAUH,EAAI,CAAC,KAAK,CAACD,EAAM,UAAU,OAAO,OAAOA,EAAM,UAAU,MAAM,CAAC,EAAO,CAACK,EAAWC,CAAa,EAAEC,EAAS,EAAE,EAAO,CAAC,MAAAC,EAAM,IAAAC,EAAI,SAAAC,EAAS,OAAAC,EAAO,SAAAC,EAAS,UAAAC,EAAU,UAAAC,CAAS,EAAEd,EAAW,CAACe,EAAiBC,CAAmB,EAAET,EAAS,IAAI,EAAQU,EAASC,EAAa,QAAQ,IAAIA,EAAa,OAAO,SAASC,EAAaC,EAAM,CAAkB,IAAIC,EA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a,GAAK,OAAO7B,EAAM,CAAC,OAAOA,EAAM,UAAU,aAAc,CAAC,EAAE,WAAW,CAAC,KAAK6B,EAAY,UAAU,CAAC,CAAC,EAAE,OAAO,CAAC,KAAKA,EAAY,MAAM,EAAE,OAAO,CAAC,KAAKA,EAAY,MAAM,EAAE,WAAW,CAAC,KAAKA,EAAY,QAAQ,aAAa,EAAI,EAAE,QAAQ,CAAC,KAAKA,EAAY,OAAO,YAAY,UAAU,SAAS,CAAC,UAAU,CAAC,KAAKA,EAAY,QAAQ,aAAa,GAAM,YAAY,+BAA+B,EAAE,aAAa,CAAC,KAAKA,EAAY,QAAQ,aAAa,GAAM,YAAY,+DAA+D,CAAC,CAAC,CAAC,CAAC",
  "names": ["fontStore", "fonts", "css", "className", "NumberAnimator", "props", "ref", "pe", "isInView", "useInView", "numberText", "setNumberText", "ye", "start", "end", "decimals", "commas", "rounding", "fontColor", "animation", "currentAnimation", "setCurrentAnimation", "isCanvas", "RenderTarget", "formatNumber", "value", "numberString", "runAnimation", "animate", "latest", "ue", "u", "motion", "addPropertyControls", "ControlType"]
}
