{"version":3,"file":"LoadingSpinner.CriTYjeW.mjs","names":[],"sources":["https:/framerusercontent.com/modules/YIdv9I1rREkrAcCs0hZf/fH15zmhqCO0osj0vVSGF/LoadingSpinner.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Loading Spinner\n *\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 100\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LoadingSpinner(props){const{size=60,color=\"#0099FF\",backgroundColor=\"#FFFFFF\",spinnerType=\"circle\",speed=1,barHeight=4,borderRadius=2}=props;const duration=1.2/speed;const renderSpinner=()=>{switch(spinnerType){case\"dots\":return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:size*.15,alignItems:\"center\",justifyContent:\"center\"},children:[0,1,2].map(i=>/*#__PURE__*/_jsx(motion.div,{style:{width:size*.2,height:size*.2,borderRadius:\"50%\",backgroundColor:color},animate:{scale:[1,1.5,1],opacity:[.5,1,.5]},transition:{duration:duration,repeat:Infinity,delay:i*(duration/3),ease:\"easeInOut\"}},i))});case\"bars\":return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:size*.1,alignItems:\"center\",justifyContent:\"center\",height:size},children:[0,1,2,3,4].map(i=>/*#__PURE__*/_jsx(motion.div,{style:{width:size*.12,backgroundColor:color,borderRadius:size*.06},animate:{height:[size*.3,size*.8,size*.3]},transition:{duration:duration,repeat:Infinity,delay:i*(duration/5),ease:\"easeInOut\"}},i))});case\"circle\":default:return /*#__PURE__*/_jsx(motion.div,{style:{width:size,height:size,border:`${size*.08}px solid ${color}20`,borderTop:`${size*.08}px solid ${color}`,borderRadius:\"50%\"},animate:{rotate:360},transition:{duration:duration,repeat:Infinity,ease:\"linear\"}});}};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor:backgroundColor,position:\"relative\"},children:renderSpinner()});}addPropertyControls(LoadingSpinner,{spinnerType:{type:ControlType.Enum,title:\"Type\",options:[\"circle\",\"dots\",\"bars\"],optionTitles:[\"Circle\",\"Dots\",\"Bars\"],defaultValue:\"circle\",displaySegmentedControl:true},size:{type:ControlType.Number,title:\"Size\",defaultValue:60,min:20,max:200,step:5,unit:\"px\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#0099FF\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:.5,max:3,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LoadingSpinner\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"100\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"100\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoadingSpinner.map"],"mappings":"8MAQG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,GAAG,QAAM,UAAU,kBAAgB,UAAU,cAAY,SAAS,QAAM,EAAE,YAAU,EAAE,eAAa,GAAG,EAAY,EAAS,IAAI,EAAwlC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAyB,kBAAgB,SAAS,WAAW,CAAC,cAA5uC,CAAC,OAAO,EAAP,CAAoB,IAAI,OAAO,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,IAAI,EAAK,IAAI,WAAW,SAAS,eAAe,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,GAAgB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAK,GAAG,OAAO,E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