{"version":3,"file":"Progress.CSGTux2Z.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/HEHMMCoQNkqi2qF7S8CI/lqQCFA7PVYd08vu7B8Lv/Progress.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function LoadingBar(props){const[index,setIndex]=useState(0);const characters=[\"-\",\"\\\\\",\"|\",\"/\"];useEffect(()=>{const interval=setInterval(()=>{setIndex(prevIndex=>(prevIndex+1)%characters.length);},props.speed);return()=>clearInterval(interval);},[props.speed]);return /*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"monospace\",fontSize:`${props.fontSize}px`,fontWeight:\"regular\",color:props.color},children:characters[index]});}LoadingBar.defaultProps={speed:250,fontSize:3,color:\"#000000\"};addPropertyControls(LoadingBar,{speed:{type:ControlType.Number,title:\"Speed\",defaultValue:250,min:50,max:1e3,step:10},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:3,min:8,max:72,step:1},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LoadingBar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Progress.map"],"mappings":"iLAAqI,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,EAAE,CAAO,EAAW,CAAC,IAAI,KAAK,IAAI,IAAI,CAAuK,OAAtK,MAAc,CAAC,IAAM,EAAS,gBAAgB,CAAC,EAAS,IAAY,EAAU,GAAG,EAAW,OAAO,EAAG,EAAM,MAAM,CAAC,UAAU,cAAc,EAAS,EAAG,CAAC,EAAM,MAAM,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,WAAW,YAAY,SAAS,GAAG,EAAM,SAAS,IAAI,WAAW,UAAU,MAAM,EAAM,MAAM,CAAC,SAAS,EAAW,GAAO,CAAC,kBAAjhB,IAAsC,IAAoD,CAAyb,EAAW,aAAa,CAAC,MAAM,IAAI,SAAS,EAAE,MAAM,UAAU,CAAC,EAAoB,EAAW,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,IAAI,IAAI,GAAG,IAAI,IAAI,KAAK,GAAG,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,UAAU,CAAC,CAAC"}