{"version":3,"file":"RotatingCircle.Bi6OrI2E.mjs","names":[],"sources":["https:/framerusercontent.com/modules/6bzmJfEyeAlxZrza17sB/HYKxk5zUcnpV8tEDwYvm/RotatingCircle.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Rotating circle with 5 dots on its circumference\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function RotatingCircle(props){const{circleColor,dotColor,circleSize,dotSize,rotationDuration,borderWidth,numberOfDots,style}=props;const radius=circleSize/2;const dotRadius=dotSize/2;const dots=Array.from({length:numberOfDots},(_,i)=>{const angle=i*360/numberOfDots-90;const radian=angle*Math.PI/180;const x=radius+radius*Math.cos(radian);const y=radius+radius*Math.sin(radian);return{x,y,key:i};});return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\"},children:/*#__PURE__*/_jsxs(motion.div,{style:{position:\"relative\",width:circleSize,height:circleSize},animate:{rotate:360},transition:{duration:rotationDuration,repeat:Infinity,ease:\"linear\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",borderRadius:\"50%\",border:`${borderWidth}px solid ${circleColor}`,position:\"absolute\"}}),dots.map(dot=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:dotSize,height:dotSize,borderRadius:\"50%\",backgroundColor:dotColor,left:dot.x-dotRadius,top:dot.y-dotRadius}},dot.key))]})});}addPropertyControls(RotatingCircle,{circleColor:{type:ControlType.Color,title:\"Circle Color\",defaultValue:\"#000000\"},dotColor:{type:ControlType.Color,title:\"Dot Color\",defaultValue:\"#0099FF\"},circleSize:{type:ControlType.Number,title:\"Circle Size\",defaultValue:150,min:50,max:400,step:10,unit:\"px\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:2,min:1,max:20,step:1,unit:\"px\"},dotSize:{type:ControlType.Number,title:\"Dot Size\",defaultValue:16,min:4,max:40,step:2,unit:\"px\"},numberOfDots:{type:ControlType.Number,title:\"Number of Dots\",defaultValue:5,min:1,max:20,step:1,displayStepper:true},rotationDuration:{type:ControlType.Number,title:\"Rotation Speed\",defaultValue:3,min:.1,max:300,step:.01,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RotatingCircle\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RotatingCircle.map"],"mappings":"oNAQG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,cAAY,WAAS,aAAW,UAAQ,mBAAiB,cAAY,eAAa,SAAO,EAAY,EAAO,EAAW,EAAQ,EAAU,EAAQ,EAAQ,EAAK,MAAM,KAAK,CAAC,OAAO,CAAY,GAAG,EAAE,IAAI,CAAmC,IAAM,GAA5B,EAAE,IAAI,EAAa,IAAsB,KAAK,GAAG,IAAkF,MAAM,CAAC,EAA7E,EAAO,EAAO,KAAK,IAAI,CAAM,EAAkD,EAAxC,EAAO,EAAO,KAAK,IAAI,CAAM,EAAa,IAAI,CAAC,CAAE,CAAC,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,SAAS,UAAU,EAAE,SAAsB,EAAM,EAAO,IAAI,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAW,OAAO,CAAU,EAAE,QAAQ,CAAC,OAAO,GAAG,EAAE,WAAW,CAAC,SAAS,EAAiB,OAAO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