{"version":3,"file":"AnimatedCirclesBackground.CStVqepS.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/jsQDLM9iw85n7Tez4EDp/lSEvb7VJjfPTq15Zrluu/AnimatedCirclesBackground.js"],"sourcesContent":["// A background component with three large animated circles, each with configurable size, color, and animation speed, optimized for performance in a hero section.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView}from\"framer-motion\";/**\n * AnimatedCirclesBackground\n *\n * Three gently moving circles for a performant hero background.\n *\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 700\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AnimatedCirclesBackground(props){const{circle1Size,circle2Size,circle3Size,circle1Color,circle2Color,circle3Color,globalOpacity,animationSpeed,blurAmount,style,movementAmplitude}=props;const isStatic=useIsStaticRenderer();const containerRef=useRef(null);const isInView=useInView(containerRef,{amount:.1});const effectiveSpeed=Math.max(.2,animationSpeed);const duration1=45/effectiveSpeed;const duration2=60/effectiveSpeed;const duration3=75/effectiveSpeed;const movementScale=Math.max(0,movementAmplitude);const sharedCircleStyle={position:\"absolute\",borderRadius:\"50%\",willChange:\"transform\",opacity:globalOpacity,filter:blurAmount>0?`blur(${blurAmount}px)`:\"none\",pointerEvents:\"none\"};const shouldAnimate=!isStatic&&isInView;return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",...style},\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(motion.div,{style:{...sharedCircleStyle,width:circle1Size,height:circle1Size,background:circle1Color,top:\"-20%\",left:\"-10%\"},initial:{x:0,y:0,scale:1},animate:shouldAnimate?{x:[0,120*movementScale,-60*movementScale,0],y:[0,80*movementScale,40*movementScale,0],scale:[1,1.08,.96,1]}:undefined,transition:shouldAnimate?{duration:duration1,repeat:Infinity,ease:\"easeInOut\"}:undefined}),/*#__PURE__*/_jsx(motion.div,{style:{...sharedCircleStyle,width:circle2Size,height:circle2Size,background:circle2Color,top:\"10%\",right:\"-20%\"},initial:{x:0,y:0,scale:1},animate:shouldAnimate?{x:[0,-140*movementScale,60*movementScale,0],y:[0,40*movementScale,-80*movementScale,0],scale:[1,1.05,.97,1]}:undefined,transition:shouldAnimate?{duration:duration2,repeat:Infinity,ease:\"easeInOut\"}:undefined}),/*#__PURE__*/_jsx(motion.div,{style:{...sharedCircleStyle,width:circle3Size,height:circle3Size,background:circle3Color,bottom:\"-25%\",left:\"10%\"},initial:{x:0,y:0,scale:1},animate:shouldAnimate?{x:[0,60*movementScale,-100*movementScale,0],y:[0,-60*movementScale,40*movementScale,0],scale:[1,1.03,.98,1]}:undefined,transition:shouldAnimate?{duration:duration3,repeat:Infinity,ease:\"easeInOut\"}:undefined})]});}addPropertyControls(AnimatedCirclesBackground,{circle1Size:{type:ControlType.Number,title:\"Circle 1 Size\",defaultValue:420,min:100,max:1200,step:10,unit:\"px\"},circle1Color:{type:ControlType.Color,title:\"Circle 1 Color\",defaultValue:\"#FFBB00\"},circle2Size:{type:ControlType.Number,title:\"Circle 2 Size\",defaultValue:520,min:100,max:1400,step:10,unit:\"px\"},circle2Color:{type:ControlType.Color,title:\"Circle 2 Color\",defaultValue:\"#0099FF\"},circle3Size:{type:ControlType.Number,title:\"Circle 3 Size\",defaultValue:460,min:100,max:1400,step:10,unit:\"px\"},circle3Color:{type:ControlType.Color,title:\"Circle 3 Color\",defaultValue:\"#FF5588\"},animationSpeed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:.2,max:3,step:.1},globalOpacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.55,min:.1,max:1,step:.05},blurAmount:{type:ControlType.Number,title:\"Blur\",defaultValue:40,min:0,max:80,step:2,unit:\"px\"},movementAmplitude:{type:ControlType.Number,title:\"Movement\",defaultValue:1,min:0,max:3,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedCirclesBackground\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1200\",\"framerIntrinsicHeight\":\"700\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedCirclesBackground.map"],"mappings":"iPAWG,SAAwB,EAA0B,EAAM,CAAC,GAAK,CAAC,cAAY,cAAY,cAAY,eAAa,eAAa,eAAa,gBAAc,iBAAe,aAAW,QAAM,qBAAmB,EAAY,EAAS,GAAqB,CAAO,EAAaA,EAAO,KAAK,CAAO,EAAS,EAAU,EAAa,CAAC,OAAO,GAAG,CAAC,CAAO,EAAe,KAAK,IAAI,GAAG,EAAe,CAAO,EAAU,GAAG,EAAqB,EAAU,GAAG,EAAqB,EAAU,GAAG,EAAqB,EAAc,KAAK,IAAI,EAAE,EAAkB,CAAO,EAAkB,CAAC,SAAS,WAAW,aAAa,MAAM,WAAW,YAAY,QAAQ,EAAc,OAAO,EAAW,EAAE,QAAQ,EAAW,KAAK,OAAO,cAAc,OAAO,CAAO,EAAc,CAAC,GAAU,EAAS,OAAoB,EAAM,MAAM,CAAC,IAAI,EAAa,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,GAAG,EAAM,CAAC,cAAc,OAAO,SAAS,CAAc,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAkB,MAAM,EAAY,OAAO,EAAY,WAAW,EAAa,IAAI,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAc,CAAC,EAAE,CAAC,EAAE,IAAI,EAAc,IAAI,EAAc,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAc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