{"version":3,"file":"ProgressAnimation.CQb_JjT2.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","init_framer_B1b760uK","ControlType","ProgressAnimation","props","duration","timeAnimation","name","backgroundColor","progressColor","init_ProgressAnimation"],"sources":["https:/framerusercontent.com/modules/GF10Sib4UJQgGT6mPAOr/y8UmYqOqgE8ZNUUtZB5I/ProgressAnimation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function ProgressAnimation(props){const{backgroundColor,progressColor,timeAnimation}=props;const duration=timeAnimation*100;const name=\"progressFill\";return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`@keyframes ${name} { from { transform: scaleX(0) } to { transform: scaleX(1) } }`}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:backgroundColor}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,height:\"100%\",width:\"100%\",background:progressColor,transformOrigin:\"left center\",animation:`${name} ${duration}ms linear 1 both`}})]});}ProgressAnimation.defaultProps={backgroundColor:\"rgba(0, 0, 0, 0.15)\",progressColor:\"rgb(35, 35, 35)\",timeAnimation:60};addPropertyControls(ProgressAnimation,{backgroundColor:{title:\"Background Color\",type:ControlType.Color,defaultValue:\"rgba(0, 0, 0, 0.15)\"},progressColor:{title:\"Progress Color\",type:ControlType.Color,defaultValue:\"rgb(35, 35, 35)\"},timeAnimation:{title:\"Duration (x100ms)\",type:ControlType.Number,defaultValue:60,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,mKAA6G,SAAwBO,EAAkB,EAAM,CAAC,GAAK,CAAC,kBAAgB,gBAAc,iBAAeC,EAAYC,EAASC,EAAc,IAAUC,EAAK,eAAe,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,SAAS,QAAQ,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAAS,cAAcA,EAAK,+DAA+D,CAAC,EAAe,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,WAAWC,CAAe,CAAC,CAAC,EAAe,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,OAAO,OAAO,MAAM,OAAO,WAAWC,EAAc,gBAAgB,cAAc,UAAU,GAAGF,EAAK,GAAGF,EAAS,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,C,sCAAC,EAAkB,aAAa,CAAC,gBAAgB,sBAAsB,cAAc,kBAAkB,cAAc,EAAE,EAAEL,EAAoBG,EAAkB,CAAC,gBAAgB,CAAC,MAAM,mBAAmB,KAAKD,EAAY,MAAM,aAAa,qBAAqB,EAAE,cAAc,CAAC,MAAM,iBAAiB,KAAKA,EAAY,MAAM,aAAa,iBAAiB,EAAE,cAAc,CAAC,MAAM,oBAAoB,KAAKA,EAAY,OAAO,aAAa,GAAG,IAAI,GAAG,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC,C"}