{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/lG5ALmeNtfnyVrnWwdVH/XPxDUf3aB6tRoKcwQTs0/Progress_Bar.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion,AnimatePresence}from\"framer-motion\";// Import AnimatePresence for conditional animation\nimport{addPropertyControls,ControlType}from\"framer\";export function ProgressBar(props){const{barColor,backgroundColor,duration,borderRadius,playing}=props;const containerStyle={width:\"100%\",minWidth:\"10px\",height:\"100%\",minHeight:\"1px\",backgroundColor,borderRadius:`${borderRadius}px`,overflow:\"hidden\"};const barStyle={backgroundColor:barColor,height:\"100%\",borderRadius:`${borderRadius}px`};return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(AnimatePresence,{children:playing&&/*#__PURE__*/_jsx(motion.div,{style:barStyle,initial:{width:0},animate:{width:\"100%\"},exit:{width:\"0%\"},transition:{duration:duration,ease:\"linear\"}},\"progressBar\"// Ensure key changes to restart the animation\n)})});}ProgressBar.defaultProps={barColor:\"#4caf50\",backgroundColor:\"#e0e0e0\",duration:5,borderRadius:0,playing:true};addPropertyControls(ProgressBar,{barColor:{type:ControlType.Color,title:\"Bar Color\",defaultValue:ProgressBar.defaultProps.barColor},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:ProgressBar.defaultProps.backgroundColor},duration:{type:ControlType.Number,title:\"Duration (Seconds)\",defaultValue:ProgressBar.defaultProps.duration,min:1,max:60,step:1},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:ProgressBar.defaultProps.borderRadius,min:0,max:100,step:1},playing:{// Property control for the playing state\ntype:ControlType.Boolean,title:\"Playing\",defaultValue:ProgressBar.defaultProps.playing}});\nexport const __FramerMetadata__ = {\"exports\":{\"ProgressBar\":{\"type\":\"reactComponent\",\"name\":\"ProgressBar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# s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CAAC,CAAC",
  "names": ["init_ssg_sandbox_shims", "ProgressBar", "props", "barColor", "backgroundColor", "duration", "borderRadius", "playing", "containerStyle", "barStyle", "p", "AnimatePresence", "motion", "addPropertyControls", "ControlType"]
}
