{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/DybTLKszW30tuoMQrXG2/dbDOd1jyw6lnAWo38gPK/NumberSpinner.js", "ssg:https://framerusercontent.com/modules/oAOfxWsHMEIeeLlaFYLn/R1IK4nIbxiS0SaZhDUuC/Progress_Bar.js"],
  "sourcesContent": ["// Number Spinner Reveal Effect\n// Animates a number from 0 to a target value with a smooth reveal effect\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,useRef,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useInView}from\"framer-motion\";/**\n * Number Spinner Reveal\n *\n * @framerIntrinsicWidth 120\n * @framerIntrinsicHeight 60\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function NumberSpinner(props){const{target,duration,font,color,decimals,style}=props;const[value,setValue]=useState(0);const raf=useRef();const start=useRef();const isStatic=useIsStaticRenderer();const containerRef=useRef(null);const inView=useInView(containerRef,{once:true,margin:\"-10% 0px -10% 0px\"});useEffect(()=>{if(isStatic||!inView){startTransition(()=>setValue(target));return;}startTransition(()=>setValue(0));function animate(ts){if(!start.current)start.current=ts;const elapsed=ts-start.current;const progress=Math.min(elapsed/(duration*1e3),1);const next=target*progress;startTransition(()=>setValue(next));if(progress<1){raf.current=requestAnimationFrame(animate);}else{startTransition(()=>setValue(target));}}raf.current=requestAnimationFrame(animate);return()=>{if(raf.current)cancelAnimationFrame(raf.current);start.current=undefined;};},[target,duration,isStatic,inView]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...style,color,...font,width:\"max-content\",height:\"max-content\",display:\"inline-block\",transition:\"color 0.3s\",willChange:\"contents\",userSelect:\"none\"},\"aria-live\":\"polite\",children:value.toFixed(decimals)});}addPropertyControls(NumberSpinner,{target:{type:ControlType.Number,title:\"Target\",defaultValue:100,min:0,max:1e5,step:1},duration:{type:ControlType.Number,title:\"Duration (s)\",defaultValue:1.2,min:.2,max:10,step:.1},decimals:{type:ControlType.Number,title:\"Decimals\",defaultValue:0,min:0,max:6,step:1},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NumberSpinner\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"120\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerIntrinsicHeight\":\"60\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NumberSpinner.map", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function ProgressAnimation(props){const{backgroundColor,progressColor,timeAnimation}=props;const[width,setWidth]=useState(0);useEffect(function(){const interval=setInterval(function(){setWidth(prevWidth=>prevWidth>=100?0:prevWidth+1);},timeAnimation);return function cleanup(){clearInterval(interval);};},[timeAnimation]);const styles={container:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\"},background:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background:backgroundColor},progress:{position:\"absolute\",top:0,left:0,height:\"100%\",width:`${width}%`,background:progressColor,transition:`width ${timeAnimation}ms linear`}};return /*#__PURE__*/_jsxs(\"div\",{style:styles.container,children:[/*#__PURE__*/_jsx(\"div\",{style:styles.background}),/*#__PURE__*/_jsx(\"div\",{style:styles.progress})]});}addPropertyControls(ProgressAnimation,{backgroundColor:{title:\"Background Color\",type:ControlType.Color,defaultValue:\"rgba(0, 0, 0, 0.12)\"},progressColor:{title:\"Progress Color\",type:ControlType.Color,defaultValue:\"black\"},timeAnimation:{title:\"Animation Time (ms)\",type:ControlType.Number,defaultValue:90,min:10,max:1e3,step:10}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProgressAnimation\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Progress_Bar.map"],
  "mappings": "0IAUkB,SAARA,EAA+BC,EAAM,CAAC,GAAK,CAAC,OAAAC,EAAO,SAAAC,EAAS,KAAAC,EAAK,MAAAC,EAAM,SAAAC,EAAS,MAAAC,CAAK,EAAEN,EAAW,CAACO,EAAMC,CAAQ,EAAEC,EAAS,CAAC,EAAQC,EAAIC,EAAO,EAAQC,EAAMD,EAAO,EAAQE,EAASC,EAAoB,EAAQC,EAAaJ,EAAO,IAAI,EAAQK,EAAOC,EAAUF,EAAa,CAAC,KAAK,GAAK,OAAO,mBAAmB,CAAC,EAAE,OAAAG,EAAU,IAAI,CAAC,GAAGL,GAAU,CAACG,EAAO,CAACG,EAAgB,IAAIX,EAASP,CAAM,CAAC,EAAE,MAAO,CAACkB,EAAgB,IAAIX,EAAS,CAAC,CAAC,EAAE,SAASY,EAAQC,EAAG,CAAKT,EAAM,UAAQA,EAAM,QAAQS,GAAG,IAAMC,EAAQD,EAAGT,EAAM,QAAcW,EAAS,KAAK,IAAID,GAASpB,EAAS,KAAK,CAAC,EAAQsB,EAAKvB,EAAOsB,EAASJ,EAAgB,IAAIX,EAASgB,CAAI,CAAC,EAAKD,EAAS,EAAGb,EAAI,QAAQ,sBAAsBU,CAAO,EAAQD,EAAgB,IAAIX,EAASP,CAAM,CAAC,CAAG,CAAC,OAAAS,EAAI,QAAQ,sBAAsBU,CAAO,EAAQ,IAAI,CAAIV,EAAI,SAAQ,qBAAqBA,EAAI,OAAO,EAAEE,EAAM,QAAQ,MAAU,CAAE,EAAE,CAACX,EAAOC,EAASW,EAASG,CAAM,CAAC,EAAsBS,EAAK,MAAM,CAAC,IAAIV,EAAa,MAAM,CAAC,GAAGT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CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,OAAO,OAAO,MAAM,GAAGG,CAAK,IAAI,WAAWF,EAAc,WAAW,SAASC,CAAa,WAAW,CAAC,EAAE,OAAoBQ,EAAM,MAAM,CAAC,MAAMD,EAAO,UAAU,SAAS,CAAcE,EAAK,MAAM,CAAC,MAAMF,EAAO,UAAU,CAAC,EAAeE,EAAK,MAAM,CAAC,MAAMF,EAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAE,CAACG,EAAoBd,EAAkB,CAAC,gBAAgB,CAAC,MAAM,mBAAmB,KAAKe,EAAY,MAAM,aAAa,qBAAqB,EAAE,cAAc,CAAC,MAAM,iBAAiB,KAAKA,EAAY,MAAM,aAAa,OAAO,EAAE,cAAc,CAAC,MAAM,sBAAsB,KAAKA,EAAY,OAAO,aAAa,GAAG,IAAI,GAAG,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC",
  "names": ["NumberSpinner", "props", "target", "duration", "font", "color", "decimals", "style", "value", "setValue", "ye", "raf", "pe", "start", "isStatic", "useIsStaticRenderer", "containerRef", "inView", "useInView", "ue", "Z", "animate", "ts", "elapsed", "progress", "next", "p", "addPropertyControls", "ControlType", "ProgressAnimation", "props", "backgroundColor", "progressColor", "timeAnimation", "width", "setWidth", "ye", "ue", "interval", "prevWidth", "styles", "u", "p", "addPropertyControls", "ControlType"]
}
