{"version":3,"file":"MeshGradient.C9fuXdkd.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/OwMAWB8RUQsqhIVRgHo4/pbMWwkfz1rjLUzVajZAE/MeshGradient.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useRef}from\"react\";/**\n * MeshGradient\n * Animated noise-based mesh gradient background.\n * Uses SVG feTurbulence + feColorMatrix for zero-JS-overhead animation.\n */export default function MeshGradient({color1=\"#CCFF00\",color2=\"#030407\",color3=\"#0E1014\",speed=.004,opacity=.6,style}){const svgRef=useRef(null);const turbRef=useRef(null);const frameRef=useRef(0);const seedRef=useRef(0);useEffect(()=>{let running=true;const animate=()=>{if(!running)return;seedRef.current+=speed;if(turbRef.current){turbRef.current.setAttribute(\"baseFrequency\",`${.006+Math.sin(seedRef.current)*.002} ${.006+Math.cos(seedRef.current*.7)*.002}`);}frameRef.current=requestAnimationFrame(animate);};frameRef.current=requestAnimationFrame(animate);return()=>{running=false;cancelAnimationFrame(frameRef.current);};},[speed]);const filterId=\"mesh-gradient-filter\";const gradId=\"mesh-gradient-grad\";return /*#__PURE__*/_jsxs(\"svg\",{ref:svgRef,width:\"100%\",height:\"100%\",style:{position:\"absolute\",inset:0,opacity,pointerEvents:\"none\",...style},xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsxs(\"defs\",{children:[/*#__PURE__*/_jsxs(\"filter\",{id:filterId,x:\"0%\",y:\"0%\",width:\"100%\",height:\"100%\",colorInterpolationFilters:\"sRGB\",children:[/*#__PURE__*/_jsx(\"feTurbulence\",{ref:turbRef,type:\"fractalNoise\",baseFrequency:\"0.006 0.006\",numOctaves:\"4\",seed:\"2\",result:\"noise\"}),/*#__PURE__*/_jsx(\"feColorMatrix\",{type:\"matrix\",values:\"3 0 0 0 -1  0 3 0 0 -1  0 0 3 0 -1  0 0 0 1 0\",in:\"noise\",result:\"mask\"}),/*#__PURE__*/_jsx(\"feBlend\",{in:\"SourceGraphic\",in2:\"mask\",mode:\"overlay\",result:\"blended\"}),/*#__PURE__*/_jsx(\"feGaussianBlur\",{stdDeviation:\"24\",in:\"blended\"})]}),/*#__PURE__*/_jsxs(\"linearGradient\",{id:gradId,x1:\"0%\",y1:\"0%\",x2:\"100%\",y2:\"100%\",children:[/*#__PURE__*/_jsx(\"stop\",{offset:\"0%\",stopColor:color1,stopOpacity:\"0.3\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"40%\",stopColor:color3,stopOpacity:\"0.1\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"100%\",stopColor:color2,stopOpacity:\"0.8\"})]})]}),/*#__PURE__*/_jsx(\"rect\",{width:\"100%\",height:\"100%\",fill:color2}),/*#__PURE__*/_jsx(\"ellipse\",{cx:\"80%\",cy:\"20%\",rx:\"40%\",ry:\"35%\",fill:color1,opacity:\"0.12\",filter:`url(#${filterId})`}),/*#__PURE__*/_jsx(\"ellipse\",{cx:\"15%\",cy:\"75%\",rx:\"35%\",ry:\"30%\",fill:color1,opacity:\"0.08\",filter:`url(#${filterId})`}),/*#__PURE__*/_jsx(\"rect\",{width:\"100%\",height:\"100%\",fill:`url(#${gradId})`,opacity:\"0.6\"})]});}addPropertyControls(MeshGradient,{color1:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#CCFF00\"},color2:{type:ControlType.Color,title:\"Dark Color\",defaultValue:\"#030407\"},color3:{type:ControlType.Color,title:\"Mid Color\",defaultValue:\"#0E1014\"},speed:{type:ControlType.Number,title:\"Animation Speed\",defaultValue:.004,min:0,max:.05,step:.001},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.6,min:0,max:1,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MeshGradient\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MeshGrad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