{"version":3,"file":"ProgressAnimation.alD1SCPR.mjs","names":["r","n","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","ce","addPropertyControls","init_framer_BWFVvmND","ControlType","l","n","a","i","s","u","t","d","init_ProgressAnimation"],"sources":["https:/framerusercontent.com/modules/vI0EiXVQL3zkySjbvvRz/pEe57g18n6gRJIFxDFYa/ProgressAnimation.js"],"sourcesContent":["import{jsx as t,jsxs as e}from\"react/jsx-runtime\";import{useEffect as o,useState as r}from\"react\";import{addPropertyControls as i,ControlType as n}from\"framer\";export default function l(i){let{backgroundColor:n,progressColor:l,timeAnimation:a}=i,[s,u]=r(0);o(function(){let t=setInterval(function(){u(t=>t>=100?0:t+1);},a);return function(){clearInterval(t);};},[a]);let d={container:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\"},background:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background:n},progress:{position:\"absolute\",top:0,left:0,height:\"100%\",width:`${s}%`,background:l,transition:`width ${a}ms linear`}};return /*#__PURE__*/e(\"div\",{style:d.container,children:[/*#__PURE__*/t(\"div\",{style:d.background}),/*#__PURE__*/t(\"div\",{style:d.progress})]});}i(l,{backgroundColor:{title:\"Background Color\",type:n.Color,defaultValue:\"rgba(0, 0, 0, 0.12)\"},progressColor:{title:\"Progress Color\",type:n.Color,defaultValue:\"black\"},timeAnimation:{title:\"Animation Time (ms)\",type:n.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=./ProgressAnimation.map"],"mappings":"A,wLAAgK,SAAwBY,EAAE,EAAE,CAAC,GAAG,CAAC,gBAAgBC,EAAE,cAAcD,EAAE,cAAcE,GAAGC,EAAE,CAACC,EAAEC,GAAGjB,EAAE,CAAC,EAAEQ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