{"version":3,"file":"StepProgress.Dsl7acMH.mjs","names":["__esmMin","init_jsx_runtime","c","motion","useReducedMotion","init_framer_motion_DhsWWWsN","addPropertyControls","RenderTarget","init_framer_CKT6jEEQ","StepProgress","props","reduce","isCanvas","instant","style","trackColor","active","duration","color","init_StepProgress","ControlType"],"sources":["https:/framerusercontent.com/modules/zjXZDt5CuJWcmgvMcP5m/dRjhMt4gfxNEdAtwhSfF/StepProgress.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion,useReducedMotion}from\"framer-motion\";/**\n * Thin progress bar that fills over `duration` seconds whenever it becomes active.\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 380\n * @framerIntrinsicHeight 2\n */export default function StepProgress(props){const{active,duration,color,trackColor,style}=props;const reduce=useReducedMotion();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const instant=reduce||isCanvas;return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background:trackColor},children:active?/*#__PURE__*/_jsx(motion.div,{initial:{scaleX:instant?1:0},animate:{scaleX:1},transition:{duration:instant?0:duration,ease:\"linear\"},style:{position:\"absolute\",inset:0,background:color,transformOrigin:\"left center\"}},\"fill\"):null});}StepProgress.defaultProps={active:false,duration:7,color:\"#4B3AFF\",trackColor:\"rgba(0,0,0,0)\"};addPropertyControls(StepProgress,{active:{type:ControlType.Boolean,title:\"Active\",defaultValue:false},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:7,min:1,max:30,step:.5,unit:\"s\"},color:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#4B3AFF\"},trackColor:{type:ControlType.Color,title:\"Track\",defaultValue:\"rgba(0,0,0,0)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StepProgress\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"2\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"380\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StepProgress.map"],"mappings":"A,wNAMG,SAAwBS,EAAa,EAAM,CAAC,GAAK,CAAC,SAAO,WAAS,QAAM,aAAW,SAAOC,EAAYC,EAAOP,EAAiB,EAAQQ,EAASL,EAAa,QAAQ,IAAIA,EAAa,OAAaM,EAAQF,GAAQC,EAAS,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGE,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,WAAWC,CAAU,EAAE,SAASC,EAAoB,gBAAKb,EAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,SAASU,EAAQ,EAAEI,EAAS,KAAK,QAAQ,EAAE,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,WAAWC,EAAM,gBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,CAAE,C,0CAAC,EAAa,aAAa,CAAC,OAAO,GAAM,SAAS,EAAE,MAAM,UAAU,WAAW,eAAe,EAAEZ,EAAoBG,EAAa,CAAC,OAAO,CAAC,KAAKW,EAAY,QAAQ,MAAM,SAAS,aAAa,EAAK,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,EAAE,MAAM,CAAC,KAAKA,EAAY,MAAM,MAAM,OAAO,aAAa,SAAS,EAAE,WAAW,CAAC,KAAKA,EAAY,MAAM,MAAM,QAAQ,aAAa,eAAe,CAAC,CAAC,C"}