{"version":3,"file":"AnimatedCounter.0cLoZcFu.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useRef","useState"],"sources":["https:/framerusercontent.com/modules/uZCcVl5cZTENzzZUHNM4/oxWvIsi6GWk3d9gq8Qbr/BjLmFsj3W.js","https:/framerusercontent.com/modules/sIxZFVxIOBdfeANYhkj2/lGu9VayhxpYD2v9lbKlh/AnimatedCounter.js"],"sourcesContent":["// Generated by Framer (4b349e7)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,Link,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={F1xs6W_yS:{pressed:true},FmcUgef8d:{hover:true},JvbFZr17y:{hover:true},qh17FoFfp:{pressed:true},ttztYNw1x:{hover:true},tZPWVm4R4:{pressed:true},VTx8UAyuk:{pressed:true},YzUQYNupb:{hover:true}};const cycleOrder=[\"FmcUgef8d\",\"F1xs6W_yS\",\"YzUQYNupb\",\"VTx8UAyuk\",\"JvbFZr17y\",\"qh17FoFfp\",\"ttztYNw1x\",\"tZPWVm4R4\"];const serializationHash=\"framer-xN7Ca\";const variantClassNames={F1xs6W_yS:\"framer-v-1inncgh\",FmcUgef8d:\"framer-v-1mvoy5n\",JvbFZr17y:\"framer-v-vdghjd\",qh17FoFfp:\"framer-v-osv4si\",ttztYNw1x:\"framer-v-32va32\",tZPWVm4R4:\"framer-v-18mino2\",VTx8UAyuk:\"framer-v-v4xmjw\",YzUQYNupb:\"framer-v-bl5u43\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:0,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={Black_sm:\"tZPWVm4R4\",Black:\"ttztYNw1x\",White_sm:\"qh17FoFfp\",White:\"JvbFZr17y\",Yellow1_sm:\"VTx8UAyuk\",Yellow1:\"YzUQYNupb\",Yellow2_sm:\"F1xs6W_yS\",Yellow2:\"FmcUgef8d\"};const getProps=({height,id,link,newTab,text,trackingID,width,...props})=>{return{...props,kMuHlok5a:newTab??props.kMuHlok5a,QKkxfjM9X:trackingID??props.QKkxfjM9X,sx3ERxRQP:link??props.sx3ERxRQP,variant:humanReadableVariantMap[props.variant]??props.variant??\"FmcUgef8d\",YuSNFImR8:text??props.YuSNFImR8??\"Download the App\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,YuSNFImR8,sx3ERxRQP,kMuHlok5a,QKkxfjM9X,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"FmcUgef8d\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{clickTrackingId:QKkxfjM9X,href:sx3ERxRQP,motionChild:true,nodeId:\"FmcUgef8d\",openInNewTab:kMuHlok5a,preserveParams:true,scopeId:\"BjLmFsj3W\",smoothScroll:true,children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-1mvoy5n\",className,classNames)} framer-xffjrz`,\"data-framer-name\":\"Yellow2\",layoutDependency:layoutDependency,layoutId:\"FmcUgef8d\",ref:refBinding,style:{\"--border-bottom-width\":\"0px\",\"--border-color\":\"rgba(0, 0, 0, 0)\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-style\":\"solid\",\"--border-top-width\":\"0px\",backgroundColor:\"rgb(255, 195, 0)\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100,...style},variants:{\"F1xs6W_yS-pressed\":{\"--border-bottom-width\":\"0px\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-top-width\":\"0px\",backgroundColor:\"rgb(255, 168, 0)\"},\"FmcUgef8d-hover\":{\"--border-bottom-width\":\"0px\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-top-width\":\"0px\",backgroundColor:\"rgb(255, 168, 0)\"},\"JvbFZr17y-hover\":{\"--border-color\":\"rgb(175, 175, 174)\",backgroundColor:\"rgb(238, 238, 238)\"},\"qh17FoFfp-pressed\":{\"--border-color\":\"rgb(175, 175, 174)\",backgroundColor:\"rgb(238, 238, 238)\"},\"ttztYNw1x-hover\":{backgroundColor:\"rgb(35, 35, 38)\"},\"tZPWVm4R4-pressed\":{backgroundColor:\"rgb(35, 35, 38)\"},\"VTx8UAyuk-pressed\":{\"--border-bottom-width\":\"0px\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-top-width\":\"0px\",backgroundColor:\"rgb(255, 245, 15)\"},\"YzUQYNupb-hover\":{\"--border-bottom-width\":\"0px\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-top-width\":\"0px\",backgroundColor:\"rgb(255, 245, 15)\"},JvbFZr17y:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-46eef77c-19f6-4f9a-9c69-c6cd2e9d66a0, rgb(1, 8, 27))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"var(--token-46095397-fdbd-4d21-a900-5c3a1d743e4d, rgb(255, 255, 255))\"},qh17FoFfp:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-46eef77c-19f6-4f9a-9c69-c6cd2e9d66a0, rgb(1, 8, 27))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"var(--token-46095397-fdbd-4d21-a900-5c3a1d743e4d, rgb(255, 255, 255))\"},ttztYNw1x:{\"--border-bottom-width\":\"0px\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-top-width\":\"0px\",backgroundColor:\"var(--token-422a8974-f3a7-4b03-92f3-5eeee547c8f0, rgb(0, 0, 0))\"},tZPWVm4R4:{\"--border-bottom-width\":\"0px\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-top-width\":\"0px\",backgroundColor:\"var(--token-422a8974-f3a7-4b03-92f3-5eeee547c8f0, rgb(0, 0, 0))\"},VTx8UAyuk:{backgroundColor:\"rgb(255, 255, 95)\"},YzUQYNupb:{backgroundColor:\"rgb(255, 255, 95)\"}},...addPropertyOverrides({\"F1xs6W_yS-pressed\":{\"data-framer-name\":undefined},\"FmcUgef8d-hover\":{\"data-framer-name\":undefined},\"JvbFZr17y-hover\":{\"data-framer-name\":undefined},\"qh17FoFfp-pressed\":{\"data-framer-name\":undefined},\"ttztYNw1x-hover\":{\"data-framer-name\":undefined},\"tZPWVm4R4-pressed\":{\"data-framer-name\":undefined},\"VTx8UAyuk-pressed\":{\"data-framer-name\":undefined},\"YzUQYNupb-hover\":{\"data-framer-name\":undefined},F1xs6W_yS:{\"data-framer-name\":\"Yellow2_sm\"},JvbFZr17y:{\"data-border\":true,\"data-framer-name\":\"White\"},qh17FoFfp:{\"data-border\":true,\"data-framer-name\":\"White_sm\"},ttztYNw1x:{\"data-framer-name\":\"Black\"},tZPWVm4R4:{\"data-framer-name\":\"Black_sm\"},VTx8UAyuk:{\"data-framer-name\":\"Yellow1_sm\"},YzUQYNupb:{\"data-framer-name\":\"Yellow1\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0RhcmtlciBHcm90ZXNxdWUgTSBCb2xk\",\"--framer-font-family\":'\"Darker Grotesque M Bold\", \"Darker Grotesque M Bold Placeholder\", sans-serif',\"--framer-font-size\":\"21px\",\"--framer-line-height\":\"1.5em\"},children:\"Download the App\"})}),className:\"framer-ml5mop\",\"data-framer-name\":\"Text\",fonts:[\"CUSTOM;Darker Grotesque M Bold\"],layoutDependency:layoutDependency,layoutId:\"BixDu8ZTS\",style:{\"--framer-paragraph-spacing\":\"0px\"},text:YuSNFImR8,variants:{JvbFZr17y:{\"--extracted-r6o4lv\":\"var(--token-46eef77c-19f6-4f9a-9c69-c6cd2e9d66a0, rgb(1, 8, 27))\"},qh17FoFfp:{\"--extracted-r6o4lv\":\"var(--token-46eef77c-19f6-4f9a-9c69-c6cd2e9d66a0, rgb(1, 8, 27))\"},ttztYNw1x:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"},tZPWVm4R4:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"}},verticalAlignment:\"center\",withExternalLayout:true,...addPropertyOverrides({\"JvbFZr17y-hover\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0RhcmtlciBHcm90ZXNxdWUgTSBCb2xk\",\"--framer-font-family\":'\"Darker Grotesque M Bold\", sans-serif',\"--framer-font-size\":\"21px\",\"--framer-line-height\":\"1.5em\"},children:\"Download the App\"})})},F1xs6W_yS:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0RhcmtlciBHcm90ZXNxdWUgTSBCb2xk\",\"--framer-font-family\":'\"Darker Grotesque M Bold\", \"Darker Grotesque M Bold Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-line-height\":\"1.5em\"},children:\"Download the App\"})})},JvbFZr17y:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0RhcmtlciBHcm90ZXNxdWUgTSBCb2xk\",\"--framer-font-family\":'\"Darker Grotesque M Bold\", sans-serif',\"--framer-font-size\":\"21px\",\"--framer-line-height\":\"1.5em\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-46eef77c-19f6-4f9a-9c69-c6cd2e9d66a0, rgb(1, 8, 27)))\"},children:\"Download the App\"})})},qh17FoFfp:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0RhcmtlciBHcm90ZXNxdWUgTSBCb2xk\",\"--framer-font-family\":'\"Darker Grotesque M Bold\", \"Darker Grotesque M Bold Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-line-height\":\"1.5em\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-46eef77c-19f6-4f9a-9c69-c6cd2e9d66a0, rgb(1, 8, 27)))\"},children:\"Download the App\"})})},ttztYNw1x:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0RhcmtlciBHcm90ZXNxdWUgTSBCb2xk\",\"--framer-font-family\":'\"Darker Grotesque M Bold\", sans-serif',\"--framer-font-size\":\"21px\",\"--framer-line-height\":\"1.5em\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Download the App\"})})},tZPWVm4R4:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0RhcmtlciBHcm90ZXNxdWUgTSBCb2xk\",\"--framer-font-family\":'\"Darker Grotesque M Bold\", \"Darker Grotesque M Bold Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-line-height\":\"1.5em\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Download the App\"})})},VTx8UAyuk:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0RhcmtlciBHcm90ZXNxdWUgTSBCb2xk\",\"--framer-font-family\":'\"Darker Grotesque M Bold\", \"Darker Grotesque M Bold Placeholder\", sans-serif',\"--framer-font-size\":\"20px\",\"--framer-line-height\":\"1.5em\"},children:\"Download the App\"})})}},baseVariant,gestureVariant)})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-xN7Ca.framer-xffjrz, .framer-xN7Ca .framer-xffjrz { display: block; }\",\".framer-xN7Ca.framer-1mvoy5n { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; overflow: hidden; padding: 10px 22px 10px 22px; position: relative; text-decoration: none; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-xN7Ca .framer-ml5mop { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-xN7Ca.framer-v-1inncgh.framer-1mvoy5n, .framer-xN7Ca.framer-v-osv4si.framer-1mvoy5n, .framer-xN7Ca.framer-v-18mino2.framer-1mvoy5n { padding: 10px 20px 10px 20px; }\",\".framer-xN7Ca.framer-v-v4xmjw.framer-1mvoy5n { padding: 8px 18px 8px 18px; }\",'.framer-xN7Ca[data-border=\"true\"]::after, .framer-xN7Ca [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 52\n * @framerIntrinsicWidth 227\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"F1xs6W_yS\":{\"layout\":[\"auto\",\"auto\"]},\"YzUQYNupb\":{\"layout\":[\"auto\",\"auto\"]},\"VTx8UAyuk\":{\"layout\":[\"auto\",\"auto\"]},\"JvbFZr17y\":{\"layout\":[\"auto\",\"auto\"]},\"qh17FoFfp\":{\"layout\":[\"auto\",\"auto\"]},\"ttztYNw1x\":{\"layout\":[\"auto\",\"auto\"]},\"tZPWVm4R4\":{\"layout\":[\"auto\",\"auto\"]},\"F3P_i3T8x\":{\"layout\":[\"auto\",\"auto\"]},\"ed1MCLHmm\":{\"layout\":[\"auto\",\"auto\"]},\"GQlPJUOtC\":{\"layout\":[\"auto\",\"auto\"]},\"IdBbUl9qI\":{\"layout\":[\"auto\",\"auto\"]},\"ggyRMJ8zB\":{\"layout\":[\"auto\",\"auto\"]},\"IPpYvZI4C\":{\"layout\":[\"auto\",\"auto\"]},\"dBnCGg7MU\":{\"layout\":[\"auto\",\"auto\"]},\"I3U8ZNffd\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"YuSNFImR8\":\"text\",\"sx3ERxRQP\":\"link\",\"kMuHlok5a\":\"newTab\",\"QKkxfjM9X\":\"trackingID\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerBjLmFsj3W=withCSS(Component,css,\"framer-xN7Ca\");export default FramerBjLmFsj3W;FramerBjLmFsj3W.displayName=\"Btn_Principal\";FramerBjLmFsj3W.defaultProps={height:52,width:227};addPropertyControls(FramerBjLmFsj3W,{variant:{options:[\"FmcUgef8d\",\"F1xs6W_yS\",\"YzUQYNupb\",\"VTx8UAyuk\",\"JvbFZr17y\",\"qh17FoFfp\",\"ttztYNw1x\",\"tZPWVm4R4\"],optionTitles:[\"Yellow2\",\"Yellow2_sm\",\"Yellow1\",\"Yellow1_sm\",\"White\",\"White_sm\",\"Black\",\"Black_sm\"],title:\"Variant\",type:ControlType.Enum},YuSNFImR8:{defaultValue:\"Download the App\",displayTextArea:false,title:\"Text\",type:ControlType.String},sx3ERxRQP:{title:\"Link\",type:ControlType.Link},kMuHlok5a:{defaultValue:false,title:\"New Tab\",type:ControlType.Boolean},QKkxfjM9X:{title:\"Tracking ID\",type:ControlType.TrackingId}});addFonts(FramerBjLmFsj3W,[{explicitInter:true,fonts:[{family:\"Darker Grotesque M Bold\",source:\"custom\",url:\"https://framerusercontent.com/assets/jKXuam6r04LVsqQUQB17NaqbaJw.woff2\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerBjLmFsj3W\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"YuSNFImR8\\\":\\\"text\\\",\\\"sx3ERxRQP\\\":\\\"link\\\",\\\"kMuHlok5a\\\":\\\"newTab\\\",\\\"QKkxfjM9X\\\":\\\"trackingID\\\"}\",\"framerDisplayContentsDiv\":\"false\",\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"227\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"F1xs6W_yS\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"YzUQYNupb\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"VTx8UAyuk\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"JvbFZr17y\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"qh17FoFfp\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"ttztYNw1x\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"tZPWVm4R4\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"F3P_i3T8x\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"ed1MCLHmm\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"GQlPJUOtC\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"IdBbUl9qI\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"ggyRMJ8zB\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"IPpYvZI4C\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"dBnCGg7MU\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"I3U8ZNffd\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"52\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BjLmFsj3W.map","/*\n * Animated Counter by framer.today\n * v1.0.1\n *\n * hi@framer.today\n * _joerl on 𝕏\n *\n * Full terms here ↴\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:\"↳ 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":"6lBAC25B,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,2CAAxhC,IAAyI,IAAkE,IAA4B,CAAgC,EAAgB,CAAC,UAAU,CAAC,QAAQ,GAAK,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CAAC,QAAQ,GAAK,CAAC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