{"version":3,"file":"AnimatedCounter.qgbf_fd0.mjs","names":["serializationHash","variantClassNames","transition1","Transition","React.useContext","React.useMemo","Variants","React.Fragment","getProps","createLayoutDependency","useRef","React.useId","Hero","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useRef","useState"],"sources":["https:/framerusercontent.com/modules/spgHtBSaEUCHz4yOJRNy/ez7taPdfYb1huccw5jrR/jHUAWVpqn.js","https:/framerusercontent.com/modules/y9nc2xgzUOTYoqBGqDWt/VUMwww29dVxIy69XeOvJ/YLh12yNpI.js","https:/framerusercontent.com/modules/sIxZFVxIOBdfeANYhkj2/lGu9VayhxpYD2v9lbKlh/AnimatedCounter.js"],"sourcesContent":["// Generated by Framer (612a550)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,cx,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const serializationHash=\"framer-9yTEu\";const variantClassNames={jR1CMvpMp:\"framer-v-17doouc\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,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 getProps=({height,id,width,...props})=>{return{...props};};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,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"jR1CMvpMp\",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__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-17doouc\",className,classNames),\"data-framer-name\":\"Default\",layoutDependency:layoutDependency,layoutId:\"jR1CMvpMp\",ref:refBinding,style:{...style},children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-wcoopo\",\"data-border\":true,\"data-framer-name\":\"Dot\",layoutDependency:layoutDependency,layoutId:\"P0KgcJqsc\",style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-d764285d-a3f9-4303-a3ff-3dd658bd4b9f, rgba(30, 13, 1, 0.12))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"var(--token-4903c749-6a3f-4aa1-9035-20968e3a89de, rgb(255, 255, 255))\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100}}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1c5t2zk\",\"data-border\":true,\"data-framer-name\":\"Line\",layoutDependency:layoutDependency,layoutId:\"ojuIyKjXO\",style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-d764285d-a3f9-4303-a3ff-3dd658bd4b9f, rgba(30, 13, 1, 0.12))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"dashed\",\"--border-top-width\":\"1px\"}}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1kp5fh0\",\"data-border\":true,\"data-framer-name\":\"Dot\",layoutDependency:layoutDependency,layoutId:\"SfxUPVm6y\",style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-d764285d-a3f9-4303-a3ff-3dd658bd4b9f, rgba(30, 13, 1, 0.12))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"var(--token-4903c749-6a3f-4aa1-9035-20968e3a89de, rgb(255, 255, 255))\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100}})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-9yTEu.framer-k37t3f, .framer-9yTEu .framer-k37t3f { display: block; }\",\".framer-9yTEu.framer-17doouc { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 10px; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 1170px; }\",\".framer-9yTEu .framer-wcoopo, .framer-9yTEu .framer-1kp5fh0 { flex: none; height: 10px; overflow: hidden; position: relative; width: 10px; will-change: var(--framer-will-change-override, transform); }\",\".framer-9yTEu .framer-1c5t2zk { flex: 1 0 0px; height: 1px; overflow: hidden; position: relative; width: 1px; }\",'.framer-9yTEu[data-border=\"true\"]::after, .framer-9yTEu [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 10\n * @framerIntrinsicWidth 1170\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerjHUAWVpqn=withCSS(Component,css,\"framer-9yTEu\");export default FramerjHUAWVpqn;FramerjHUAWVpqn.displayName=\"Horizontal Line\";FramerjHUAWVpqn.defaultProps={height:10,width:1170};addFonts(FramerjHUAWVpqn,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerjHUAWVpqn\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"1170\",\"framerIntrinsicHeight\":\"10\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerAutoSizeImages\":\"true\",\"framerImmutableVariables\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./jHUAWVpqn.map","// Generated by Framer (f26e712)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import{Icon as Hero}from\"https://framerusercontent.com/modules/hKjtTuWGYB451ckw6eTN/bbq95ZQZ142lE2fXscHd/Hero.js\";const HeroFonts=getFonts(Hero);const cycleOrder=[\"mwQDwz2DN\",\"pzTGrvu30\",\"CT2AfxQsZ\",\"F_gkkFRzS\",\"jDG5E9GN1\"];const serializationHash=\"framer-d86k5\";const variantClassNames={CT2AfxQsZ:\"framer-v-4hf279\",F_gkkFRzS:\"framer-v-1y4f6fh\",jDG5E9GN1:\"framer-v-1ucii1v\",mwQDwz2DN:\"framer-v-18ag14d\",pzTGrvu30:\"framer-v-slk0kw\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,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={\"Star 01\":\"jDG5E9GN1\",\"Star 02\":\"F_gkkFRzS\",\"Star 03\":\"CT2AfxQsZ\",\"Star 04\":\"pzTGrvu30\",\"Star 05\":\"mwQDwz2DN\"};const getProps=({emptyStar,fillStar,height,id,width,...props})=>{return{...props,qHrYCFzZf:emptyStar??props.qHrYCFzZf??\"rgba(59, 59, 59, 0.2)\",variant:humanReadableVariantMap[props.variant]??props.variant??\"mwQDwz2DN\",w1AEXvzdg:fillStar??props.w1AEXvzdg??\"rgb(254, 165, 0)\"};};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,w1AEXvzdg,qHrYCFzZf,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"mwQDwz2DN\",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__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-18ag14d\",className,classNames),\"data-framer-name\":\"Star 05\",layoutDependency:layoutDependency,layoutId:\"mwQDwz2DN\",ref:refBinding,style:{...style},...addPropertyOverrides({CT2AfxQsZ:{\"data-framer-name\":\"Star 03\"},F_gkkFRzS:{\"data-framer-name\":\"Star 02\"},jDG5E9GN1:{\"data-framer-name\":\"Star 01\"},pzTGrvu30:{\"data-framer-name\":\"Star 04\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1f1du97-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"W6WVXDXta-container\",nodeId:\"W6WVXDXta\",rendersWithMotion:true,scopeId:\"YLh12yNpI\",children:/*#__PURE__*/_jsx(Hero,{color:w1AEXvzdg,height:\"100%\",iconSearch:\"Home\",iconSelection:\"Star\",id:\"W6WVXDXta\",layoutId:\"W6WVXDXta\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\"})})}),/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-fsdvvc-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"VAKNHidaf-container\",nodeId:\"VAKNHidaf\",rendersWithMotion:true,scopeId:\"YLh12yNpI\",children:/*#__PURE__*/_jsx(Hero,{color:w1AEXvzdg,height:\"100%\",iconSearch:\"Home\",iconSelection:\"Star\",id:\"VAKNHidaf\",layoutId:\"VAKNHidaf\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\",...addPropertyOverrides({jDG5E9GN1:{color:qHrYCFzZf}},baseVariant,gestureVariant)})})}),/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1yr99s2-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"nbzSEQqQz-container\",nodeId:\"nbzSEQqQz\",rendersWithMotion:true,scopeId:\"YLh12yNpI\",children:/*#__PURE__*/_jsx(Hero,{color:w1AEXvzdg,height:\"100%\",iconSearch:\"Home\",iconSelection:\"Star\",id:\"nbzSEQqQz\",layoutId:\"nbzSEQqQz\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\",...addPropertyOverrides({F_gkkFRzS:{color:qHrYCFzZf},jDG5E9GN1:{color:qHrYCFzZf}},baseVariant,gestureVariant)})})}),/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-19jo4rs-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"w7Iy8c8dL-container\",nodeId:\"w7Iy8c8dL\",rendersWithMotion:true,scopeId:\"YLh12yNpI\",children:/*#__PURE__*/_jsx(Hero,{color:w1AEXvzdg,height:\"100%\",iconSearch:\"Home\",iconSelection:\"Star\",id:\"w7Iy8c8dL\",layoutId:\"w7Iy8c8dL\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\",...addPropertyOverrides({CT2AfxQsZ:{color:qHrYCFzZf},F_gkkFRzS:{color:qHrYCFzZf},jDG5E9GN1:{color:qHrYCFzZf}},baseVariant,gestureVariant)})})}),/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-6ewd9h-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"gkpcGBfFo-container\",nodeId:\"gkpcGBfFo\",rendersWithMotion:true,scopeId:\"YLh12yNpI\",children:/*#__PURE__*/_jsx(Hero,{color:w1AEXvzdg,height:\"100%\",iconSearch:\"Home\",iconSelection:\"Star\",id:\"gkpcGBfFo\",layoutId:\"gkpcGBfFo\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\",...addPropertyOverrides({CT2AfxQsZ:{color:qHrYCFzZf},F_gkkFRzS:{color:qHrYCFzZf},jDG5E9GN1:{color:qHrYCFzZf},pzTGrvu30:{color:qHrYCFzZf}},baseVariant,gestureVariant)})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-d86k5.framer-1m15pzg, .framer-d86k5 .framer-1m15pzg { display: block; }\",\".framer-d86k5.framer-18ag14d { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: 200px; }\",\".framer-d86k5 .framer-1f1du97-container, .framer-d86k5 .framer-fsdvvc-container, .framer-d86k5 .framer-1yr99s2-container, .framer-d86k5 .framer-19jo4rs-container, .framer-d86k5 .framer-6ewd9h-container { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 43px); position: relative; width: 40px; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-d86k5.framer-18ag14d { gap: 0px; } .framer-d86k5.framer-18ag14d > * { margin: 0px; margin-left: calc(0px / 2); margin-right: calc(0px / 2); } .framer-d86k5.framer-18ag14d > :first-child { margin-left: 0px; } .framer-d86k5.framer-18ag14d > :last-child { margin-right: 0px; } }\",\".framer-d86k5.framer-v-1ucii1v .framer-1f1du97-container, .framer-d86k5.framer-v-1ucii1v .framer-fsdvvc-container, .framer-d86k5.framer-v-1ucii1v .framer-1yr99s2-container, .framer-d86k5.framer-v-1ucii1v .framer-19jo4rs-container, .framer-d86k5.framer-v-1ucii1v .framer-6ewd9h-container { height: var(--framer-aspect-ratio-supported, 40px); }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 43\n * @framerIntrinsicWidth 200\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"pzTGrvu30\":{\"layout\":[\"fixed\",\"auto\"]},\"CT2AfxQsZ\":{\"layout\":[\"fixed\",\"auto\"]},\"F_gkkFRzS\":{\"layout\":[\"fixed\",\"auto\"]},\"jDG5E9GN1\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"w1AEXvzdg\":\"fillStar\",\"qHrYCFzZf\":\"emptyStar\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const FramerYLh12yNpI=withCSS(Component,css,\"framer-d86k5\");export default FramerYLh12yNpI;FramerYLh12yNpI.displayName=\"Ratings\";FramerYLh12yNpI.defaultProps={height:43,width:200};addPropertyControls(FramerYLh12yNpI,{variant:{options:[\"mwQDwz2DN\",\"pzTGrvu30\",\"CT2AfxQsZ\",\"F_gkkFRzS\",\"jDG5E9GN1\"],optionTitles:[\"Star 05\",\"Star 04\",\"Star 03\",\"Star 02\",\"Star 01\"],title:\"Variant\",type:ControlType.Enum},w1AEXvzdg:{defaultValue:\"rgb(254, 165, 0)\",title:\"Fill Star\",type:ControlType.Color},qHrYCFzZf:{defaultValue:\"rgba(59, 59, 59, 0.2)\",title:\"Empty Star\",type:ControlType.Color}});addFonts(FramerYLh12yNpI,[{explicitInter:true,fonts:[]},...HeroFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerYLh12yNpI\",\"slots\":[],\"annotations\":{\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerVariables\":\"{\\\"w1AEXvzdg\\\":\\\"fillStar\\\",\\\"qHrYCFzZf\\\":\\\"emptyStar\\\"}\",\"framerIntrinsicHeight\":\"43\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"pzTGrvu30\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"CT2AfxQsZ\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"F_gkkFRzS\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"jDG5E9GN1\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerIntrinsicWidth\":\"200\",\"framerImmutableVariables\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YLh12yNpI.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":"0cACyD,IAA2F,IAAkE,IAA4B,CAAgCA,EAAkB,eAAqBC,EAAkB,CAAC,UAAU,mBAAmB,CAA8LC,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAOC,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOC,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAASC,EAAS,EAAO,OAAOC,EAAe,CAAOC,IAAU,CAAC,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,EAASC,IAAwB,EAAM,IAAe,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAAC,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAUzpC,EAAgB,EAVyqC,EAAiB,SAAS,EAAM,EAAI,CAAC,IAAM,EAAYC,EAAO,KAAK,CAAO,EAAW,GAAK,EAAkB,EAAgBC,GAAa,CAAM,CAAC,eAAa,aAAW,GAAe,CAAyB,GAAsB,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,GAAG,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