{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/XVayzo8dxQTnL8OJhnOY/MoK8qBN8RRH4ixH4M9H6/Animate_Number.js"],
  "sourcesContent": ["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{animate,useMotionValue}from\"framer-motion\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */ export default function Animate_Number(props){const number=useMotionValue(0);const ref=useRef();useEffect(()=>{console.log(props.animation);const controls=animate(props.from,props.to,{onUpdate:latest=>{if(ref.current){ref.current.textContent=latest.toFixed(0);}},...props.animation});return()=>controls.stop();},[props.number]);return /*#__PURE__*/ _jsxs(\"div\",{style:{fontSize:`${props.fontSize}px`,fontWeight:`${props.font.fontWeight}`,fontFamily:`${props.font.fontFamily}`},children:[/*#__PURE__*/ _jsx(\"span\",{children:props.prefix}),/*#__PURE__*/ _jsx(\"span\",{ref:ref,children:props.to}),/*#__PURE__*/ _jsx(\"span\",{children:props.suffix})]});};addPropertyControls(Animate_Number,{from:{type:ControlType.Number,defaultValue:0},to:{type:ControlType.Number,defaultValue:10},prefix:{type:ControlType.String},suffix:{type:ControlType.String},font:{type:ControlType.Font},fontSize:{type:ControlType.Number,defaultValue:16},duration:{type:ControlType.Number,defaultValue:1},animation:{type:ControlType.Transition}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Animate_Number\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Animate_Number.map"],
  "mappings": "qIAAAA,IAQmB,SAARC,EAAgCC,EAAM,CAAC,IAAMC,EAAOC,EAAe,CAAC,EAAQC,EAAIC,EAAO,EAAE,OAAAC,EAAU,IAAI,CAAC,QAAQ,IAAIL,EAAM,SAAS,EAAE,IAAMM,EAASC,EAAQP,EAAM,KAAKA,EAAM,GAAG,CAAC,SAASQ,GAAQ,CAAIL,EAAI,UAASA,EAAI,QAAQ,YAAYK,EAAO,QAAQ,CAAC,EAAG,EAAE,GAAGR,EAAM,SAAS,CAAC,EAAE,MAAM,IAAIM,EAAS,KAAK,CAAE,EAAE,CAACN,EAAM,MAAM,CAAC,EAAuBS,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,GAAGT,EAAM,QAAQ,KAAK,WAAW,GAAGA,EAAM,KAAK,UAAU,GAAG,WAAW,GAAGA,EAAM,KAAK,UAAU,EAAE,EAAE,SAAS,CAAeU,EAAK,OAAO,CAAC,SAASV,EAAM,MAAM,CAAC,EAAgBU,EAAK,OAAO,CAAC,IAAIP,EAAI,SAASH,EAAM,EAAE,CAAC,EAAgBU,EAAK,OAAO,CAAC,SAASV,EAAM,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,CAAEW,EAAoBZ,EAAe,CAAC,KAAK,CAAC,KAAKa,EAAY,OAAO,aAAa,CAAC,EAAE,GAAG,CAAC,KAAKA,EAAY,OAAO,aAAa,EAAE,EAAE,OAAO,CAAC,KAAKA,EAAY,MAAM,EAAE,OAAO,CAAC,KAAKA,EAAY,MAAM,EAAE,KAAK,CAAC,KAAKA,EAAY,IAAI,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,aAAa,EAAE,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,aAAa,CAAC,EAAE,UAAU,CAAC,KAAKA,EAAY,UAAU,CAAC,CAAC",
  "names": ["init_ssg_sandbox_shims", "Animate_Number", "props", "number", "useMotionValue", "ref", "pe", "ue", "controls", "animate", "latest", "u", "p", "addPropertyControls", "ControlType"]
}
