{"version":3,"file":"Particles.2joBx8eX.mjs","names":["useId"],"sources":["https:/framerusercontent.com/modules/ErCfWM9w5tngMgTPx6Pj/4VGmEgCZ5HZM13U8rZpJ/Particles.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useId}from\"react\";// Deterministic pseudo-random so the layout is stable across renders\nfunction seededRand(seed){const x=Math.sin(seed+1)*43758.5453123;return x-Math.floor(x);}export default function SwiftDotWave(props){const{ringCount,ringBaseRadius,ringSpacing,dotsPerRing,period,scaleMax,dotSize,color,opacityMin,opacityMax,spread}=props;// Unique keyframe names per instance (useId can contain \":\", strip it)\nconst uid=useId().replace(/[^a-zA-Z0-9]/g,\"\");const ringKf=`ring-${uid}`;const dotKf=`dot-${uid}`;const css=`\n        @keyframes ${ringKf} {\n            0%, 100% { transform: translate(-50%, -50%) scale(1); }\n            50%      { transform: translate(-50%, -50%) scale(${scaleMax}); }\n        }\n        @keyframes ${dotKf} {\n            0%, 100% { opacity: ${opacityMin}; }\n            50%      { opacity: ${opacityMax}; }\n        }\n    `;const rings=Array.from({length:ringCount},(_,ri)=>({ri,radius:ringBaseRadius+ri*ringSpacing,count:Math.round(dotsPerRing*(1+ri*.55))}));const glow=`0 0 0.4px 0.16px rgba(255,255,255,0.55)`;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0,overflow:\"hidden\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),rings.map(({ri,radius,count})=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"50%\",left:\"50%\",width:0,height:0,animation:`${ringKf} ${period}s ease-in-out infinite`},children:Array.from({length:count},(_,di)=>{const angle=di/count*Math.PI*2;const x=Math.cos(angle)*radius;const y=Math.sin(angle)*radius;const delay=-(seededRand(ri*200+di)*spread);const dur=period*(.85+seededRand(ri*200+di+99)*.3);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:x,top:y,width:dotSize,height:dotSize,transform:\"translate(-50%, -50%)\",borderRadius:\"50%\",backgroundColor:color,boxShadow:glow,animation:`${dotKf} ${dur.toFixed(2)}s ease-in-out infinite`,animationDelay:`${delay.toFixed(2)}s`}},di);})},ri))]});}SwiftDotWave.defaultProps={ringCount:8,ringBaseRadius:192,ringSpacing:75,dotsPerRing:21,period:3,scaleMax:1.11,dotSize:1.6,color:\"#ffffff\",opacityMin:.15,opacityMax:.45,spread:2};addPropertyControls(SwiftDotWave,{ringCount:{type:ControlType.Number,title:\"Rings\",min:1,max:16,step:1},period:{type:ControlType.Number,title:\"Period (s)\",min:.5,max:10,step:.1},scaleMax:{type:ControlType.Number,title:\"Scale Max\",min:1,max:1.5,step:.01},dotSize:{type:ControlType.Number,title:\"Dot Size\",min:.5,max:6,step:.1},color:{type:ControlType.Color,title:\"Color\"},opacityMax:{type:ControlType.Number,title:\"Opacity Max\",min:0,max:1,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SwiftDotWave\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Particles.map"],"mappings":"iLACA,SAAS,EAAW,EAAK,CAAC,IAAM,EAAE,KAAK,IAAI,EAAK,CAAC,EAAE,cAAc,OAAO,EAAE,KAAK,MAAM,CAAC,CAAE,CAAC,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,YAAU,iBAAe,cAAY,cAAY,SAAO,WAAS,UAAQ,QAAM,aAAW,aAAW,UAAQ,EAClP,EAAIA,EAAM,CAAC,CAAC,QAAQ,gBAAgB,EAAE,EAAQ,EAAO,QAAQ,IAAY,EAAM,OAAO,IAAY,EAAI;qBACvF,EAAO;;gEAEoC,EAAS;;qBAEpD,EAAM;kCACO,EAAW;kCACX,EAAW;;MAEjC,EAAM,MAAM,KAAK,CAAC,OAAO,CAAS,GAAG,EAAE,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