{"version":3,"file":"AnimatedCounter.B4VBnR4i.mjs","names":["BuyTemplateButton","Pulsse","Button","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","RichText","useRef","useState"],"sources":["https:/framerusercontent.com/modules/BwF9KimyoCQfg2fkDbCz/PwX8YtRldmFtz956Qrb1/k1DvTn4pL.js","https:/framerusercontent.com/modules/sIxZFVxIOBdfeANYhkj2/lGu9VayhxpYD2v9lbKlh/AnimatedCounter.js"],"sourcesContent":["// Generated by Framer (f2f96df)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,forwardLoader,getFonts,Link,RichText,SmartComponentScopedContainer,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX,withOptimizedAppearEffect}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import Pulsse from\"https://framerusercontent.com/modules/LPazpXBgD5y8ywcweB64/WB5KWYBooVxcHoy4ecv4/eQ8TJrvTI.js\";import Button from\"https://framerusercontent.com/modules/LZdpPw1H8pmTQy4QuiAF/SLwh0YEzGpYzNwkqR54O/Ia3drhr15.js\";import BuyTemplateButton from\"https://framerusercontent.com/modules/lWJlAUvU18yTXuKm4x7Q/0wDL0SgKgjX9esQTauJd/Kl7XkyE2m.js\";const BuyTemplateButtonFonts=getFonts(BuyTemplateButton);const SmartComponentScopedContainerWithFXWithOptimizedAppearEffect=withOptimizedAppearEffect(withFX(SmartComponentScopedContainer));const PulsseFonts=getFonts(Pulsse);const MotionAWithFXWithOptimizedAppearEffect=withOptimizedAppearEffect(withFX(motion.a));const ButtonFonts=getFonts(Button);const cycleOrder=[\"DrQq_U0qp\",\"GUmwBmSvY\"];const serializationHash=\"framer-JDvU7\";const variantClassNames={DrQq_U0qp:\"framer-v-1mdyuxc\",GUmwBmSvY:\"framer-v-1hr5ov9\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const m2Ep9VqUa=undefined;const u2s8_y1Np=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const transition2={bounce:.2,delay:.6,duration:.6,type:\"spring\"};const animation={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,transition:transition2,x:0,y:0};const animation1={opacity:.001,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:12,y:0};const transition3={bounce:.2,delay:.4,duration:.6,type:\"spring\"};const animation2={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,transition:transition3,x:0,y:0};const animation3={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,transition:transition1,x:0,y:0};const matchVariant=(...args)=>{for(const arg of args){if(arg&&typeof arg===\"string\")return arg;}return undefined;};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 humanReadableVariantMap={\"Variant 2\":\"GUmwBmSvY\",Desktop:\"DrQq_U0qp\"};const Variants=motion.create(React.Fragment);const getProps=({getLink,height,id,mezarioLink,width,...props})=>{return{...props,m2Ep9VqUa:getLink??props.m2Ep9VqUa,u2s8_y1Np:mezarioLink??props.u2s8_y1Np,variant:humanReadableVariantMap[props.variant]??props.variant??\"DrQq_U0qp\"};};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,m2Ep9VqUa,u2s8_y1Np,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"DrQq_U0qp\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const cg_eFW3Ki1j8x4n6=activeVariantCallback(async(...args)=>{setVariant(\"GUmwBmSvY\");});const cg_eFW3Ki6x3krz=activeVariantCallback(async(...args)=>{setVariant(\"DrQq_U0qp\");});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"GUmwBmSvY\")return false;return true;};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-1mdyuxc\",className,classNames),\"data-framer-name\":\"Desktop\",layoutDependency:layoutDependency,layoutId:\"DrQq_U0qp\",ref:refBinding,style:{...style},...addPropertyOverrides({GUmwBmSvY:{\"data-framer-name\":\"Variant 2\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(ComponentViewportProvider,{height:46,width:componentViewport?.width||\"100vw\",y:(componentViewport?.y||0)+0+(((componentViewport?.height||194)-0-319)/2+0+0),children:/*#__PURE__*/_jsx(SmartComponentScopedContainerWithFXWithOptimizedAppearEffect,{__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,animate:animation,className:\"framer-1vcs30-container\",\"data-framer-appear-id\":\"1vcs30\",\"data-framer-name\":\"Remove This Buy Button\",initial:animation1,layoutDependency:layoutDependency,layoutId:\"JSlUQcxvs-container\",name:\"Remove This Buy Button\",nodeId:\"JSlUQcxvs\",optimized:true,rendersWithMotion:true,scopeId:\"k1DvTn4pL\",children:/*#__PURE__*/_jsx(BuyTemplateButton,{aRhwvr7bO:\"rgb(255, 255, 255)\",cduyS1Ada:m2Ep9VqUa,height:\"100%\",id:\"JSlUQcxvs\",layoutId:\"JSlUQcxvs\",MzkBtJjtj:{borderColor:\"rgba(255, 255, 255, 0.14)\",borderStyle:\"solid\",borderWidth:1},name:\"Remove This Buy Button\",style:{width:\"100%\"},TeRdfr951:\"var(--token-f38b2ba3-a6df-4b2e-acc3-97b5fd515c6e, rgb(255, 255, 255))\",Vaz9eMh2L:\"rgb(252, 98, 19)\",width:\"100%\",yoHhge7xS:\"Get This Template\",Zs96ZVOT2:\"corner-up-right\"})})}),isDisplayed()&&/*#__PURE__*/_jsx(ComponentViewportProvider,{height:46,width:componentViewport?.width||\"100vw\",y:(componentViewport?.y||0)+0+(((componentViewport?.height||194)-0-319)/2+46+5),children:/*#__PURE__*/_jsx(SmartComponentScopedContainerWithFXWithOptimizedAppearEffect,{__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,animate:animation2,className:\"framer-cl189z-container\",\"data-framer-appear-id\":\"cl189z\",\"data-framer-name\":\"Remove This Buy Button\",initial:animation1,layoutDependency:layoutDependency,layoutId:\"Yem3X95qf-container\",name:\"Remove This Buy Button\",nodeId:\"Yem3X95qf\",optimized:true,rendersWithMotion:true,scopeId:\"k1DvTn4pL\",children:/*#__PURE__*/_jsx(BuyTemplateButton,{aRhwvr7bO:\"rgb(255, 255, 255)\",cduyS1Ada:u2s8_y1Np,height:\"100%\",id:\"Yem3X95qf\",layoutId:\"Yem3X95qf\",MzkBtJjtj:{borderColor:\"rgba(255, 255, 255, 0.14)\",borderStyle:\"solid\",borderWidth:1},name:\"Remove This Buy Button\",style:{width:\"100%\"},TeRdfr951:\"var(--token-f38b2ba3-a6df-4b2e-acc3-97b5fd515c6e, rgb(255, 255, 255))\",Vaz9eMh2L:\"rgb(9, 9, 61)\",width:\"100%\",yoHhge7xS:\"Unlock 100+ Templates\",Zs96ZVOT2:\"layout\"})})}),isDisplayed()&&/*#__PURE__*/_jsx(Link,{href:\"https://mezario.com/hire-us\",motionChild:true,nodeId:\"rURsC3JyP\",openInNewTab:true,scopeId:\"k1DvTn4pL\",children:/*#__PURE__*/_jsxs(MotionAWithFXWithOptimizedAppearEffect,{__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,animate:animation3,className:\"framer-xzce07 framer-kufoe0\",\"data-border\":true,\"data-framer-appear-id\":\"xzce07\",\"data-framer-name\":\"Remove This Buy Button\",\"data-reset\":\"button\",initial:animation1,layoutDependency:layoutDependency,layoutId:\"rURsC3JyP\",optimized:true,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"rgba(0, 0, 0, 0.14)\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"var(--token-f38b2ba3-a6df-4b2e-acc3-97b5fd515c6e, rgb(255, 255, 255))\",borderBottomLeftRadius:10,borderBottomRightRadius:10,borderTopLeftRadius:10,borderTopRightRadius:10,boxShadow:\"0px 0.6021873017743928px 0.421531111242075px -1px rgba(0, 0, 0, 0.29), 0px 2.288533303243457px 1.60197331227042px -2px rgba(0, 0, 0, 0.28), 0px 10px 7px -3px rgba(0, 0, 0, 0.2)\"},children:[/*#__PURE__*/_jsx(ComponentViewportProvider,{height:12,width:\"12px\",y:(componentViewport?.y||0)+0+(((componentViewport?.height||194)-0-319)/2+92+10)+82,children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-o43qks-container\",layoutDependency:layoutDependency,layoutId:\"Y16DI8Yhd-container\",nodeId:\"Y16DI8Yhd\",rendersWithMotion:true,scopeId:\"k1DvTn4pL\",children:/*#__PURE__*/_jsx(Pulsse,{height:\"100%\",id:\"Y16DI8Yhd\",layoutId:\"Y16DI8Yhd\",style:{height:\"100%\",width:\"100%\"},variant:matchVariant(\"ackUppbco\"),width:\"100%\"})})}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-zww8z3\",layoutDependency:layoutDependency,layoutId:\"VPKMGSuCT\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--framer-font-size\":\"14px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(9, 9, 61))\"},children:\"Need to customize this template?\"})}),className:\"framer-id3854\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"hAcaFD1wO\",style:{\"--extracted-r6o4lv\":\"rgb(9, 9, 61)\"},verticalAlignment:\"top\",withExternalLayout:true}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--framer-font-size\":\"12px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(208, 54, 176))\"},children:\"Start With Top Experts!\"})}),className:\"framer-loa6q7\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"oV9YHb9BZ\",style:{\"--extracted-r6o4lv\":\"rgb(208, 54, 176)\"},verticalAlignment:\"top\",withExternalLayout:true})]})]})}),/*#__PURE__*/_jsx(ComponentViewportProvider,{height:36,y:(componentViewport?.y||0)+0+(((componentViewport?.height||194)-0-319)/2+268+15),...addPropertyOverrides({GUmwBmSvY:{y:(componentViewport?.y||0)+0+(((componentViewport?.height||36)-0-36)/2+0+0)}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-y4h0ox-container\",layoutDependency:layoutDependency,layoutId:\"nK82j7YYj-container\",nodeId:\"nK82j7YYj\",rendersWithMotion:true,scopeId:\"k1DvTn4pL\",children:/*#__PURE__*/_jsx(Button,{cg_eFW3Ki:cg_eFW3Ki1j8x4n6,height:\"100%\",id:\"nK82j7YYj\",layoutId:\"nK82j7YYj\",variant:matchVariant(\"Lq9PoYGqS\"),width:\"100%\",...addPropertyOverrides({GUmwBmSvY:{cg_eFW3Ki:cg_eFW3Ki6x3krz,variant:matchVariant(\"FHICx__W7\")}},baseVariant,gestureVariant)})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-JDvU7.framer-kufoe0, .framer-JDvU7 .framer-kufoe0 { display: block; }\",\".framer-JDvU7.framer-1mdyuxc { align-content: flex-end; align-items: flex-end; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 5px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 282px; }\",\".framer-JDvU7 .framer-1vcs30-container, .framer-JDvU7 .framer-cl189z-container { flex: none; height: auto; position: relative; width: 100%; z-index: 1; }\",\".framer-JDvU7 .framer-xzce07 { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; padding: 10px 14px 10px 14px; position: relative; text-decoration: none; width: 100%; z-index: 1; }\",\".framer-JDvU7 .framer-o43qks-container { flex: none; height: 12px; position: relative; width: 12px; }\",\".framer-JDvU7 .framer-zww8z3 { align-content: center; align-items: center; display: flex; flex: 1 0 0px; flex-direction: column; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 1px; }\",\".framer-JDvU7 .framer-id3854, .framer-JDvU7 .framer-loa6q7 { flex: none; height: auto; position: relative; white-space: pre-wrap; width: 100%; word-break: break-word; word-wrap: break-word; }\",\".framer-JDvU7 .framer-y4h0ox-container { flex: none; height: auto; position: relative; width: auto; }\",'.framer-JDvU7[data-border=\"true\"]::after, .framer-JDvU7 [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; corner-shape: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 194\n * @framerIntrinsicWidth 282\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"GUmwBmSvY\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"m2Ep9VqUa\":\"getLink\",\"u2s8_y1Np\":\"mezarioLink\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framerk1DvTn4pL=withCSS(Component,css,\"framer-JDvU7\");export default Framerk1DvTn4pL;Framerk1DvTn4pL.displayName=\"Remove This Buy Promo\";Framerk1DvTn4pL.defaultProps={height:194,width:282};addPropertyControls(Framerk1DvTn4pL,{variant:{options:[\"DrQq_U0qp\",\"GUmwBmSvY\"],optionTitles:[\"Desktop\",\"Variant 2\"],title:\"Variant\",type:ControlType.Enum},m2Ep9VqUa:{title:\"Get Link\",type:ControlType.Link},u2s8_y1Np:{title:\"Mezario Link\",type:ControlType.Link}});addFonts(Framerk1DvTn4pL,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...BuyTemplateButtonFonts,...PulsseFonts,...ButtonFonts],{supportsExplicitInterCodegen:true});Framerk1DvTn4pL.loader={load:(props,context)=>{const locale=context.locale;return Promise.allSettled([forwardLoader(BuyTemplateButton,{},context),forwardLoader(Pulsse,{},context),forwardLoader(Button,{},context)]);}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerk1DvTn4pL\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"282\",\"framerComponentViewportWidth\":\"true\",\"framerVariables\":\"{\\\"m2Ep9VqUa\\\":\\\"getLink\\\",\\\"u2s8_y1Np\\\":\\\"mezarioLink\\\"}\",\"framerColorSyntax\":\"true\",\"framerIntrinsicHeight\":\"194\",\"framerContractVersion\":\"1\",\"framerDisplayContentsDiv\":\"false\",\"framerAutoSizeImages\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"GUmwBmSvY\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerImmutableVariables\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./k1DvTn4pL.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":"kfACmyC,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,gEAAj6C,IAAkR,IAAkE,IAA4B,IAA2I,IAAiH,IAA4H,EAAO,EAAuB,EAASA,CAAiB,EAAQ,EAA6D,EAA0B,EAAO,CAA6B,CAAC,EAAQ,GAAY,EAASC,CAAM,EAAQ,GAAuC,EAA0B,EAAO,EAAO,CAAC,CAAC,EAAQ,EAAY,EAASC,CAAM,EAAQ,EAAW,CAAC,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,kBAAkB,EAAmP,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,QAAQ,EAAyE,EAAU,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAzI,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,QAA+G,EAAE,EAAE,EAAE,EAAE,CAAC,EAAQ,EAAW,CAAC,QAAQ,KAAK,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,EAAyE,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