{"version":3,"file":"AnimatedBackground.CyC2-V4Z.mjs","names":[],"sources":["https:/framerusercontent.com/modules/MdwqQ4azze62gHTQt08a/iXSRvkCj498zI0eISnB3/AnimatedBackground.js"],"sourcesContent":["// Replicates a swirling, pulsing blue gradient effect as background, animating rotation and scale\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion,useInView}from\"framer-motion\";import{useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * AnimatedBackground\n *\n * Animated swirling and pulsing blue gradient effect for backgrounds.\n *\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 500\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AnimatedBackground(props){const{swirlColor1,swirlColor2,swirlColor3,swirlOpacity,swirlRadius,swirlSpeed,pulseMin,pulseMax,pulseSpeed,style}=props;const ref=useRef(null);const inView=useInView(ref,{once:false,amount:.1});const isStatic=useIsStaticRenderer();// Only animate if in view and not static\nconst animate=inView&&!isStatic;return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{...style,width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",background:\"#14160B\",borderRadius:24},children:/*#__PURE__*/_jsx(motion.div,{\"aria-hidden\":true,style:{position:\"absolute\",left:\"50%\",top:\"50%\",width:swirlRadius,height:swirlRadius,pointerEvents:\"none\",zIndex:0,translate:\"-50% -50%\",borderRadius:\"50%\",opacity:swirlOpacity,background:`conic-gradient(from 0deg, ${swirlColor1} 0deg, ${swirlColor2} 120deg, ${swirlColor3} 240deg, ${swirlColor1} 360deg)`,filter:\"blur(80px) brightness(1.2)\",boxShadow:`0 0 120px 60px ${swirlColor2}, 0 0 240px 120px ${swirlColor1}55`,mixBlendMode:\"screen\"},animate:animate?{rotate:[0,360],scale:[pulseMin,pulseMax,pulseMin],skew:[0,12,-12,0]}:{rotate:0,scale:1,skew:0},transition:animate?{rotate:{repeat:Infinity,duration:swirlSpeed,ease:\"linear\"},scale:{repeat:Infinity,duration:pulseSpeed,ease:\"easeInOut\",times:[0,.5,1]}}:{}})});}addPropertyControls(AnimatedBackground,{swirlColor1:{type:ControlType.Color,title:\"Color 1\",defaultValue:\"#0099FF\"},swirlColor2:{type:ControlType.Color,title:\"Color 2\",defaultValue:\"#065893\"},swirlColor3:{type:ControlType.Color,title:\"Color 3\",defaultValue:\"#001A4D\"},swirlOpacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.85,min:0,max:1,step:.01},swirlRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:900,min:200,max:2e3,step:10},swirlSpeed:{type:ControlType.Number,title:\"Swirl Speed\",defaultValue:16,min:2,max:60,step:1,unit:\"s\"},pulseMin:{type:ControlType.Number,title:\"Pulse Min\",defaultValue:.95,min:.7,max:1.2,step:.01},pulseMax:{type:ControlType.Number,title:\"Pulse Max\",defaultValue:1.08,min:.8,max:1.5,step:.01},pulseSpeed:{type:ControlType.Number,title:\"Pulse Speed\",defaultValue:5,min:1,max:20,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedBackground\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"500\",\"framerIntrinsicWidth\":\"800\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedBackground.map"],"mappings":"0XAWG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,cAAY,cAAY,cAAY,eAAa,cAAY,aAAW,WAAS,WAAS,aAAW,QAAM,CAAC,EAAY,EAAI,EAAO,KAAK,CAAO,EAAO,EAAU,EAAI,CAAC,MAAK,EAAM,OAAO,EAAG,EAAC,CAAO,EAAS,GAAqB,CACrR,EAAQ,IAAS,EAAS,MAAoB,GAAK,MAAM,CAAK,MAAI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