{"version":3,"file":"Rings.9OLFbdh4.mjs","names":[],"sources":["https:/framerusercontent.com/modules/qegDtnpPGe4XLrzdP3L6/h1dMGSDqAx9ECG7W6qul/Rings.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{Frame,addPropertyControls,ControlType,motion}from\"framer\";export function ConcentricRings({smallestRingDiameter,thickness,ringCount,color,opacityVariation,opaqueRing}){const rings=[];// Calculate the outer diameter of the largest ring based on the smallest ring and thickness\nconst largestRingDiameter=smallestRingDiameter+2*thickness*(ringCount-1);for(let i=0;i<ringCount;i++){const outerDiameter=largestRingDiameter-i*2*thickness;const innerDiameter=outerDiameter-2*thickness;// Ensure that the opacity starts at 1 for either smallest or largest\nconst opacity=opaqueRing===\"Smallest\"?1-i/(ringCount-1)*opacityVariation// Smallest is opaque, fade outward\n:1-(ringCount-1-i)/(ringCount-1)*opacityVariation// Largest is opaque, fade inward\n;rings.push(/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:\"50%\",left:\"50%\",width:`${outerDiameter}px`,height:`${outerDiameter}px`,borderRadius:\"50%\",backgroundColor:color,opacity:opacity,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",transform:\"translate(-50%, -50%)\",boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(motion.div,{style:{width:`${innerDiameter}px`,height:`${innerDiameter}px`,borderRadius:\"50%\",backgroundColor:\"white\"}})},i));}return /*#__PURE__*/_jsx(Frame,{style:{position:\"relative\",overflow:\"hidden\",width:\"100%\",height:\"100%\",background:\"none\"},children:rings});}// Add property controls to customize the rings in Framer\naddPropertyControls(ConcentricRings,{smallestRingDiameter:{type:ControlType.Number,title:\"Smallest Ring Diameter\",min:10,max:300,defaultValue:50},thickness:{type:ControlType.Number,title:\"Thickness\",min:1,max:50,defaultValue:20},ringCount:{type:ControlType.Number,title:\"Number of Rings\",min:1,max:10,defaultValue:5},opacityVariation:{type:ControlType.Number,title:\"Opacity Variation\",min:0,max:1,step:.1,defaultValue:.8},opaqueRing:{type:ControlType.Enum,title:\"Opaque Ring\",options:[\"Smallest\",\"Largest\"],optionTitles:[\"Smallest\",\"Largest\"],defaultValue:\"Smallest\"},color:{type:ControlType.Color,title:\"Ring Color\",defaultValue:\"#FF5733\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ConcentricRings\":{\"type\":\"reactComponent\",\"name\":\"ConcentricRings\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Rings.map"],"mappings":"2RAA4G,SAAgB,EAAgB,CAAC,uBAAqB,YAAU,YAAU,QAAM,mBAAiB,cAAY,CAAC,IAAM,EAAM,EAAE,CAClO,EAAoB,EAAqB,EAAE,GAAW,EAAU,GAAG,IAAI,IAAI,EAAE,EAAE,EAAE,EAAU,IAAI,CAAC,IAAM,EAAc,EAAoB,EAAE,EAAE,EAAgB,EAAc,EAAc,EAAE,EAC1L,EAAQ,IAAa,WAAW,EAAE,GAAG,EAAU,GAAG,EACvD,GAAG,EAAU,EAAE,IAAI,EAAU,GAAG,EAChC,EAAM,KAAkB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,MAAM,KAAK,MAAM,MAAM,GAAG,EAAc,IAAI,OAAO,GAAG,EAAc,IAAI,aAAa,MAAM,gBAAgB,EAAc,UAAQ,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,UAAU,wBAAwB,UAAU,aAAa,CAAC,SAAsB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,EAAc,IAAI,OAAO,GAAG,EAAc,IAAI,aAAa,MAAM,gBAAgB,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAE,OAAoB,EAAK,EAAM,CAAC,MAAM,CAAC,SAAS,WAAW,SAAS,SAAS,MAAM,OAAO,OAAO,OAAO,WAAW,OAAO,CAAC,SAAS,EAAM,CAAC,kBAJxjB,IAAiE,CAK5G,E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