{"version":3,"file":"ProgressAnimation.BaMnaQ1z.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/igwo156CDyyUrtFxZZuz/HAs85nG6a5wyHGd0iZ81/pA0bu1IhD.js","https:/framerusercontent.com/modules/fFDfBi6HLaprJMkabcSt/ThC6XUCguO8cPpLzuDuw/ProgressAnimation.js"],"sourcesContent":["// Generated by Framer (9f612b6)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"BI;BDO Grotesk/variable/v0\",\"BI;BDO Grotesk/variable/v0VF=IndnaHQiIDU1MA==\",\"BI;BDO Grotesk/variable/v0VF=IndnaHQiIDU1MA==\",\"BI;BDO Grotesk/variable/v0VF=IndnaHQiIDU1MA==\"]);const variationAxes=[{defaultValue:400,maxValue:900,minValue:300,name:\"Weight\",tag:\"wght\"}];export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"BDO Grotesk Variable\",source:\"builtIn\",style:\"normal\",uiFamilyName:\"BDO Grotesk\",url:\"https://framerusercontent.com/assets/FcybOZJ2ipUdK2dQmwN3gFVAvuk.woff2\",variationAxes,weight:\"400\"}]}];export const css=['.framer-e70al .framer-styles-preset-zv16zk:not(.rich-text-wrapper), .framer-e70al .framer-styles-preset-zv16zk.rich-text-wrapper p { --framer-font-family: \"BDO Grotesk Variable\", \"BDO Grotesk Variable Placeholder\", sans-serif; --framer-font-family-bold: \"BDO Grotesk Variable\", \"BDO Grotesk Variable Placeholder\", sans-serif; --framer-font-family-bold-italic: \"BDO Grotesk Variable\", \"BDO Grotesk Variable Placeholder\", sans-serif; --framer-font-family-italic: \"BDO Grotesk Variable\", \"BDO Grotesk Variable Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 17px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: normal; --framer-font-style-italic: normal; --framer-font-variation-axes: \"wght\" 550; --framer-font-variation-axes-bold: \"wght\" 550; --framer-font-variation-axes-bold-italic: \"wght\" 550; --framer-font-variation-axes-italic: \"wght\" 550; --framer-font-weight: 400; --framer-font-weight-bold: 400; --framer-font-weight-bold-italic: 400; --framer-font-weight-italic: 400; --framer-letter-spacing: -0.02em; --framer-line-height: 1.3em; --framer-paragraph-spacing: 16px; --framer-text-alignment: left; --framer-text-color: var(--token-aefc2bb2-5c17-41e5-b4dc-6d52ec819234, rgba(255, 255, 255, 0.5)); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 809px) and (min-width: 0px) { .framer-e70al .framer-styles-preset-zv16zk:not(.rich-text-wrapper), .framer-e70al .framer-styles-preset-zv16zk.rich-text-wrapper p { --framer-font-family: \"BDO Grotesk Variable\", \"BDO Grotesk Variable Placeholder\", sans-serif; --framer-font-family-bold: \"BDO Grotesk Variable\", \"BDO Grotesk Variable Placeholder\", sans-serif; --framer-font-family-bold-italic: \"BDO Grotesk Variable\", \"BDO Grotesk Variable Placeholder\", sans-serif; --framer-font-family-italic: \"BDO Grotesk Variable\", \"BDO Grotesk Variable Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: normal; --framer-font-style-italic: normal; --framer-font-variation-axes: \"wght\" 550; --framer-font-variation-axes-bold: \"wght\" 550; --framer-font-variation-axes-bold-italic: \"wght\" 550; --framer-font-variation-axes-italic: \"wght\" 550; --framer-font-weight: 400; --framer-font-weight-bold: 400; --framer-font-weight-bold-italic: 400; --framer-font-weight-italic: 400; --framer-letter-spacing: -0.02em; --framer-line-height: 1.5em; --framer-paragraph-spacing: 16px; --framer-text-alignment: left; --framer-text-color: var(--token-aefc2bb2-5c17-41e5-b4dc-6d52ec819234, rgba(255, 255, 255, 0.5)); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-e70al\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","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:50,min:10,max:1e3,step:10}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProgressAnimation\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProgressAnimation.map"],"mappings":"wNAC8B,GAAU,UAAU,CAAC,6BAA6B,gDAAgD,gDAAgD,gDAAgD,CAAC,CAAO,EAAc,CAAC,CAAC,aAAa,IAAI,SAAS,IAAI,SAAS,IAAI,KAA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