{"version":3,"file":"NumberCounter.CtdIPwfV.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText","SVG","useState","useRef","useMemo"],"sources":["https:/framerusercontent.com/modules/MqeFqdWQtcSgTcxVju7v/KJtwfEOBK1DZXG54OZIw/oXkutzzC3.js","https:/framerusercontent.com/modules/FV22DSHmyvPO46PSxKUA/6G2h99mz7VRLUeKt62hv/NumberCounter.js"],"sourcesContent":["// Generated by Framer (9a43cf4)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,Link,RichText,SVG,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={se6Bu2UdN:{hover:true}};const serializationHash=\"framer-9sFLq\";const variantClassNames={se6Bu2UdN:\"framer-v-asnf0b\"};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=({buttonColor,height,id,link,text,textColor,width,...props})=>{return{...props,SzoN_46u5:text??props.SzoN_46u5??\"Book a call\",uywpFjMNk:buttonColor??props.uywpFjMNk??\"rgb(6, 6, 18)\",VoYMSgmsr:link??props.VoYMSgmsr,VYjImlm4X:textColor??props.VYjImlm4X??\"rgb(255, 255, 255)\"};};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,SzoN_46u5,uywpFjMNk,VYjImlm4X,VoYMSgmsr,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"se6Bu2UdN\",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,{href:VoYMSgmsr,motionChild:true,nodeId:\"se6Bu2UdN\",openInNewTab:true,scopeId:\"oXkutzzC3\",children:/*#__PURE__*/_jsxs(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-asnf0b\",className,classNames)} framer-13oyksw`,\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"se6Bu2UdN\",ref:refBinding,style:{backgroundColor:uywpFjMNk,borderBottomLeftRadius:10,borderBottomRightRadius:10,borderTopLeftRadius:10,borderTopRightRadius:10,boxShadow:\"inset 0px 1px 0.75px 0px rgba(255, 255, 255, 0.07), 0px 4px 4px 0px rgba(0, 0, 0, 0.25), 0px 0px 0px 1px rgb(47, 47, 55), 0px 4px 4px 0px rgba(0, 0, 0, 0.25), 0px 47.62px 46.23px 0px rgba(15, 15, 15, 0.4), 0px 27.25px 26.45px 0px rgba(15, 15, 15, 0.34), 0px 16.54px 16.06px 0px rgba(15, 15, 15, 0.29), 0px 9.97px 9.68px 0px rgba(15, 15, 15, 0.25)\",...style},...addPropertyOverrides({\"se6Bu2UdN-hover\":{\"data-framer-name\":undefined}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1rnyeey\",\"data-framer-name\":\"Text Wrapper\",layoutDependency:layoutDependency,layoutId:\"wn6ZBQGaA\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItTWVkaXVt\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.04em\",\"--framer-line-height\":\"120%\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-VYjImlm4X-oXkutzzC3))\"},children:\"Book a call\"})}),className:\"framer-1dlkr9r\",fonts:[\"Inter-Medium\"],layoutDependency:layoutDependency,layoutId:\"D8Q_kGjiv\",style:{\"--extracted-r6o4lv\":\"var(--variable-reference-VYjImlm4X-oXkutzzC3)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\",\"--variable-reference-VYjImlm4X-oXkutzzC3\":VYjImlm4X},text:SzoN_46u5,verticalAlignment:\"top\",withExternalLayout:true}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItTWVkaXVt\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.04em\",\"--framer-line-height\":\"120%\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Book a call\"})}),className:\"framer-1qezc7b\",fonts:[\"Inter-Medium\"],layoutDependency:layoutDependency,layoutId:\"AVZ9B6clP\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:SzoN_46u5,verticalAlignment:\"top\",withExternalLayout:true})]}),/*#__PURE__*/_jsx(SVG,{className:\"framer-1fx9ewu\",\"data-framer-name\":\"Icon\",layoutDependency:layoutDependency,layoutId:\"xHqGcJDPq\",opacity:1,requiresOverflowVisible:true,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 11 11\" overflow=\"visible\"><g><path d=\"M 0 4.277 L 11 4.277 M 2.444 0 L 2.444 1.223 M 8.556 0 L 8.556 1.223 M 1.956 11 L 9.044 11 C 9.729 11 10.071 11 10.333 10.867 C 10.563 10.75 10.75 10.563 10.867 10.333 C 11 10.071 11 9.729 11 9.044 L 11 3.177 C 11 2.493 11 2.151 10.867 1.889 C 10.75 1.659 10.563 1.472 10.333 1.355 C 10.071 1.223 9.729 1.223 9.044 1.223 L 1.956 1.223 C 1.271 1.223 0.929 1.223 0.667 1.356 C 0.437 1.473 0.25 1.659 0.133 1.89 C 0 2.152 0 2.493 0 3.178 L 0 9.045 C 0 9.729 0 10.072 0.133 10.333 C 0.25 10.563 0.437 10.75 0.667 10.867 C 0.929 11 1.271 11 1.956 11 Z\" fill=\"rgba(0,0,0,1)\" stroke-width=\"1.5\" stroke=\"rgb(145,145,161)\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></g></svg>',withExternalLayout:true,children:/*#__PURE__*/_jsxs(SVG,{className:\"framer-wz3ivx\",layoutDependency:layoutDependency,layoutId:\"NfzZeQswa\",opacity:1,requiresOverflowVisible:true,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 11 11\" overflow=\"visible\"><path d=\"M 0 4.277 L 11 4.277 M 2.444 0 L 2.444 1.223 M 8.556 0 L 8.556 1.223 M 1.956 11 L 9.044 11 C 9.729 11 10.071 11 10.333 10.867 C 10.563 10.75 10.75 10.563 10.867 10.333 C 11 10.071 11 9.729 11 9.044 L 11 3.177 C 11 2.493 11 2.151 10.867 1.889 C 10.75 1.659 10.563 1.472 10.333 1.355 C 10.071 1.223 9.729 1.223 9.044 1.223 L 1.956 1.223 C 1.271 1.223 0.929 1.223 0.667 1.356 C 0.437 1.473 0.25 1.659 0.133 1.89 C 0 2.152 0 2.493 0 3.178 L 0 9.045 C 0 9.729 0 10.072 0.133 10.333 C 0.25 10.563 0.437 10.75 0.667 10.867 C 0.929 11 1.271 11 1.956 11 Z\" fill=\"rgba(0,0,0,1)\" stroke-width=\"1.5\" stroke=\"rgb(145,145,161)\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></svg>',withExternalLayout:true,children:[/*#__PURE__*/_jsx(SVG,{className:\"framer-17bk5dy\",layoutDependency:layoutDependency,layoutId:\"ImOTYC3j1\",opacity:1,requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 11 1\" overflow=\"visible\"><path d=\"M 0 0 L 11 0\" fill=\"rgba(0,170,255,0.5)\"></path></svg>',withExternalLayout:true}),/*#__PURE__*/_jsx(SVG,{className:\"framer-7u196p\",layoutDependency:layoutDependency,layoutId:\"ETiK8O0GR\",opacity:1,requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 1 1.223\" overflow=\"visible\"><path d=\"M 0 0 L 0 1.223\" fill=\"rgba(0,170,255,0.5)\"></path></svg>',withExternalLayout:true}),/*#__PURE__*/_jsx(SVG,{className:\"framer-17wg1ma\",layoutDependency:layoutDependency,layoutId:\"UwgHNm9vK\",opacity:1,requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 1 1.223\" overflow=\"visible\"><path d=\"M 0 0 L 0 1.223\" fill=\"rgba(0,170,255,0.5)\"></path></svg>',withExternalLayout:true}),/*#__PURE__*/_jsx(SVG,{className:\"framer-4cl7n0\",layoutDependency:layoutDependency,layoutId:\"w_VXwNXz1\",opacity:1,requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 11 9.777\" overflow=\"visible\"><path d=\"M 1.956 9.777 L 9.044 9.777 C 9.729 9.777 10.071 9.777 10.333 9.644 C 10.563 9.527 10.75 9.341 10.867 9.11 C 11 8.848 11 8.507 11 7.822 L 11 1.955 C 11 1.271 11 0.928 10.867 0.666 C 10.75 0.436 10.563 0.249 10.333 0.132 C 10.071 0 9.729 0 9.044 0 L 1.956 0 C 1.271 0 0.929 0 0.667 0.133 C 0.437 0.25 0.25 0.437 0.133 0.667 C 0 0.929 0 1.271 0 1.956 L 0 7.823 C 0 8.507 0 8.849 0.133 9.11 C 0.25 9.341 0.437 9.527 0.667 9.644 C 0.929 9.777 1.271 9.777 1.956 9.777 Z\" fill=\"rgba(0,170,255,0.5)\"></path></svg>',withExternalLayout:true})]})})]})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-9sFLq.framer-13oyksw, .framer-9sFLq .framer-13oyksw { display: block; }\",\".framer-9sFLq.framer-asnf0b { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 16px; height: min-content; justify-content: center; overflow: visible; padding: 15px 26px 15px 26px; position: relative; text-decoration: none; width: min-content; }\",\".framer-9sFLq .framer-1rnyeey { align-content: center; align-items: center; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 0px; height: 19px; justify-content: flex-start; overflow: hidden; padding: 0px; position: relative; width: min-content; }\",\".framer-9sFLq .framer-1dlkr9r, .framer-9sFLq .framer-1qezc7b { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-9sFLq .framer-1fx9ewu { height: 11px; position: relative; width: 11px; }\",\".framer-9sFLq .framer-wz3ivx { height: 11px; left: 0px; position: absolute; top: 0px; width: 11px; }\",\".framer-9sFLq .framer-17bk5dy { height: 1px; left: 0px; position: absolute; top: 5px; width: 11px; }\",\".framer-9sFLq .framer-7u196p { height: 1px; left: 3px; position: absolute; top: 0px; width: 1px; }\",\".framer-9sFLq .framer-17wg1ma { height: 1px; left: 9px; position: absolute; top: 0px; width: 1px; }\",\".framer-9sFLq .framer-4cl7n0 { height: 10px; left: 0px; position: absolute; top: 1px; width: 11px; }\",\".framer-9sFLq.framer-v-asnf0b.hover .framer-1rnyeey { justify-content: flex-end; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 49\n * @framerIntrinsicWidth 155\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"RZ5oksRlI\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"SzoN_46u5\":\"text\",\"uywpFjMNk\":\"buttonColor\",\"VYjImlm4X\":\"textColor\",\"VoYMSgmsr\":\"link\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FrameroXkutzzC3=withCSS(Component,css,\"framer-9sFLq\");export default FrameroXkutzzC3;FrameroXkutzzC3.displayName=\"3d Book Button\";FrameroXkutzzC3.defaultProps={height:49,width:155};addPropertyControls(FrameroXkutzzC3,{SzoN_46u5:{defaultValue:\"Book a call\",displayTextArea:false,title:\"Text\",type:ControlType.String},uywpFjMNk:{defaultValue:\"rgb(6, 6, 18)\",title:\"Button Color\",type:ControlType.Color},VYjImlm4X:{defaultValue:\"rgb(255, 255, 255)\",title:\"Text Color\",type:ControlType.Color},VoYMSgmsr:{title:\"Link\",type:ControlType.Link}});addFonts(FrameroXkutzzC3,[{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/5A3Ce6C9YYmCjpQx9M4inSaKU.woff2\",weight:\"500\"},{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/Qx95Xyt0Ka3SGhinnbXIGpEIyP4.woff2\",weight:\"500\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/6mJuEAguuIuMog10gGvH5d3cl8.woff2\",weight:\"500\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/xYYWaj7wCU5zSQH0eXvSaS19wo.woff2\",weight:\"500\"},{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/otTaNuNpVK4RbdlT7zDDdKvQBA.woff2\",weight:\"500\"},{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/UjlFhCnUjxhNfep4oYBPqnEssyo.woff2\",weight:\"500\"},{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/DolVirEGb34pEXEp8t8FQBSK4.woff2\",weight:\"500\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FrameroXkutzzC3\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerVariables\":\"{\\\"SzoN_46u5\\\":\\\"text\\\",\\\"uywpFjMNk\\\":\\\"buttonColor\\\",\\\"VYjImlm4X\\\":\\\"textColor\\\",\\\"VoYMSgmsr\\\":\\\"link\\\"}\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"49\",\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicWidth\":\"155\",\"framerColorSyntax\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"RZ5oksRlI\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./oXkutzzC3.map","// Number Counter component that animates from start to end value with customizable options\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect,useRef,useMemo,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useInView}from\"framer-motion\";const easingMap={linear:[0,0,1,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],bounce:[.68,-.55,.265,1.55]};/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Counter(props){const{startValue=0,endValue=100,duration=2,delay=0,decimals=0,easing=\"easeOut\",font,textAlign=\"left\",color=\"#000000\",autoStart=true,loop=false,resetOnReEntry=false,prefix=\"\",suffix=\"\",separator=\",\"}=props;const[currentValue,setCurrentValue]=useState(startValue);const[hasStarted,setHasStarted]=useState(false);const animationRef=useRef();const startTimeRef=useRef();const containerRef=useRef(null);const isStatic=useIsStaticRenderer();const isInView=useInView(containerRef,{once:!resetOnReEntry,margin:\"0px 0px -10% 0px\"});const formatNumber=useMemo(()=>{return value=>{const fixed=value.toFixed(decimals);if(separator&&Math.abs(value)>=1e3){const parts=fixed.split(\".\");parts[0]=parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g,separator);return parts.join(\".\");}return fixed;};},[decimals,separator]);const easeValue=useMemo(()=>{return t=>{const[x1,y1,x2,y2]=easingMap[easing];if(easing===\"linear\")return t;if(easing===\"bounce\"){if(t<1/2.75){return 7.5625*t*t;}else if(t<2/2.75){return 7.5625*(t-=1.5/2.75)*t+.75;}else if(t<2.5/2.75){return 7.5625*(t-=2.25/2.75)*t+.9375;}else{return 7.5625*(t-=2.625/2.75)*t+.984375;}}// Cubic bezier approximation\nreturn 3*(1-t)*(1-t)*t*y1+3*(1-t)*t*t*y2+t*t*t;};},[easing]);const animate=useMemo(()=>{return timestamp=>{if(!startTimeRef.current){startTimeRef.current=timestamp+delay*1e3;}const elapsed=timestamp-startTimeRef.current;const progress=Math.min(elapsed/(duration*1e3),1);if(progress>=0){const easedProgress=easeValue(progress);const newValue=startValue+(endValue-startValue)*easedProgress;startTransition(()=>{setCurrentValue(newValue);});if(progress<1){animationRef.current=requestAnimationFrame(animate);}else if(loop){// Reset for loop\nstartTimeRef.current=undefined;startTransition(()=>{setCurrentValue(startValue);});setTimeout(()=>{animationRef.current=requestAnimationFrame(animate);},100);}}else{animationRef.current=requestAnimationFrame(animate);}};},[startValue,endValue,duration,delay,easing,loop,easeValue]);const startAnimation=useMemo(()=>{return()=>{if(animationRef.current){cancelAnimationFrame(animationRef.current);}startTimeRef.current=undefined;startTransition(()=>{setCurrentValue(startValue);setHasStarted(true);});animationRef.current=requestAnimationFrame(animate);};},[animate,startValue]);// Handle auto-start and in-view animation\nuseEffect(()=>{if(isStatic){setCurrentValue(endValue);return;}if(autoStart&&isInView&&(!hasStarted||resetOnReEntry)){startAnimation();}else if(!autoStart&&isInView&&(!hasStarted||resetOnReEntry)){startAnimation();}return()=>{if(animationRef.current){cancelAnimationFrame(animationRef.current);}};},[autoStart,isInView,hasStarted,resetOnReEntry,startAnimation,isStatic,endValue]);// Reset when not in view and resetOnReEntry is true\nuseEffect(()=>{if(!isInView&&resetOnReEntry&&hasStarted){if(animationRef.current){cancelAnimationFrame(animationRef.current);}startTransition(()=>{setCurrentValue(startValue);setHasStarted(false);});startTimeRef.current=undefined;}},[isInView,resetOnReEntry,hasStarted,startValue]);const displayValue=formatNumber(currentValue);const fullText=`${prefix}${displayValue}${suffix}`;return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"max-content\",minWidth:\"max-content\",...props.style},children:/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",textAlign,color,width:\"max-content\",...font},children:fullText})});}addPropertyControls(Counter,{startValue:{type:ControlType.Number,title:\"Start Value\",defaultValue:0,step:1},endValue:{type:ControlType.Number,title:\"End Value\",defaultValue:100,step:1},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:2,min:.1,max:10,step:.1,unit:\"s\"},delay:{type:ControlType.Number,title:\"Delay\",defaultValue:0,min:0,max:5,step:.1,unit:\"s\"},decimals:{type:ControlType.Number,title:\"Decimals\",defaultValue:0,min:0,max:4,step:1,displayStepper:true},easing:{type:ControlType.Enum,title:\"Easing\",options:[\"linear\",\"easeIn\",\"easeOut\",\"easeInOut\",\"bounce\"],optionTitles:[\"Linear\",\"Ease In\",\"Ease Out\",\"Ease In Out\",\"Bounce\"],defaultValue:\"easeOut\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"32px\",variant:\"Bold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},textAlign:{type:ControlType.Enum,title:\"Text Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\",displaySegmentedControl:true},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},autoStart:{type:ControlType.Boolean,title:\"Auto Start\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},resetOnReEntry:{type:ControlType.Boolean,title:\"Reset on Re-entry\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"\",placeholder:\"$\"},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"\",placeholder:\"%\"},separator:{type:ControlType.String,title:\"Thousands Separator\",defaultValue:\",\",placeholder:\",\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Counter\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NumberCounter.map"],"mappings":"qXAC0c,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,uCAAzjB,IAA6I,IAAkE,IAA4B,CAAgC,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,K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