{"version":3,"file":"WaveGradient.DX1QQ977.mjs","names":["useState","useRef","useRef","prog","p","u"],"sources":["https:/framerusercontent.com/modules/avwkNBBzsEKtjP5XxbM4/2L5yOGl7R0UMdO3HyTCB/DynamicText.js","https:/framerusercontent.com/modules/qfjeaSvUvz5ZW9a00gTz/Df5bIFoKtASrPIoc8Ii1/WaveGradient.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{useEffect,useRef,useState}from\"react\";// Roboto Flex with variable wght (100-1000) and wdth (25-151) axes.\nconst FONT_HREF=\"https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap\";const FONT_LINK_ID=\"fluid-line-roboto-flex\";function useFontReady(){const[ready,setReady]=useState(false);useEffect(()=>{let alive=true;const confirmFont=()=>{if(!alive)return;const done=()=>{if(alive)setReady(true);};if(document.fonts&&document.fonts.load){// We must ask for the font at a NON-DEFAULT stretch so the\n// variable face is preloaded. Asking just for the family at\n// weight 400 stretch 100% could resolve against a static\n// face that Framer registers elsewhere on the site.\ndocument.fonts.load(\"italic 16px 'Roboto Flex'\").then(done,done);}else{done();}};let link=document.getElementById(FONT_LINK_ID);if(!link){link=document.createElement(\"link\");link.id=FONT_LINK_ID;link.rel=\"stylesheet\";link.href=FONT_HREF;document.head.appendChild(link);}if(link.sheet){confirmFont();return()=>{alive=false;};}const onLoad=()=>confirmFont();link.addEventListener(\"load\",onLoad);link.addEventListener(\"error\",onLoad);const fallback=setTimeout(confirmFont,1500);return()=>{alive=false;clearTimeout(fallback);link.removeEventListener(\"load\",onLoad);link.removeEventListener(\"error\",onLoad);};},[]);return ready;}export default function FluidLine(props){const fontReady=useFontReady();const containerRef=useRef(null);const lineRef=useRef(null);const[weight,setWeight]=useState(600);const[wdth,setWdth]=useState(100);const[arrowStroke,setArrowStroke]=useState(12);const[hovered,setHovered]=useState(false);useEffect(()=>{if(!fontReady)return;let frame=null;let alive=true;const timers=[];const fit=()=>{if(!alive||!containerRef.current||!lineRef.current)return;const vw=window.innerWidth;const t=Math.max(0,Math.min(1,(vw-props.minViewport)/(props.maxViewport-props.minViewport)));const newWeight=Math.round(props.minWeight+(props.maxWeight-props.minWeight)*t);const wt=(newWeight-props.minWeight)/(props.maxWeight-props.minWeight);const newStroke=+(props.minStroke+wt*(props.maxStroke-props.minStroke)).toFixed(1);const target=containerRef.current.offsetWidth;if(target<1)return;// ROOT-CAUSE FIX:\n//\n// Framer registers competing STATIC \"Roboto Flex\" font faces\n// (stretch:100%, weights 400/500/700) on pages that use the\n// typeface. After client-side navigation through such a page,\n// those static faces persist in document.fonts and compete with\n// our variable face during font *selection*.\n//\n// `font-variation-settings` is a POST-selection axis control —\n// it has no effect if the browser picks a static face. The\n// browser's font-selection algorithm uses font-style /\n// font-weight / font-stretch as CSS properties. When we leave\n// those at their defaults (normal / 400 / 100%), a static face\n// matches all three criteria exactly and is preferred over the\n// variable face whose ranges merely cover the same values.\n//\n// Setting `font-stretch` to the wdth percentage and\n// `font-weight` to the requested weight forces the browser to\n// pick the variable face (only it covers stretch values other\n// than 100% and weight values other than the static ones), so\n// the wdth axis actually applies.\nconst line=lineRef.current;let w=100;for(let i=0;i<12;i++){line.style.fontStretch=`${w}%`;line.style.fontWeight=String(newWeight);line.style.fontVariationSettings=`'wght' ${newWeight}, 'wdth' ${w}`;void line.offsetWidth;const current=line.offsetWidth;if(current===0)break;const ratio=target/current;if(Math.abs(ratio-1)<.002)break;w=Math.max(25,Math.min(151,w*ratio));}setWeight(newWeight);setArrowStroke(newStroke);setWdth(Math.round(w*10)/10);};const schedule=()=>{if(frame)cancelAnimationFrame(frame);frame=requestAnimationFrame(fit);};schedule();// Re-fit a few times across the view-transition window so a transient\n// layout state during a client-side navigation can't lock in a wrong\n// result. With the font-selection fix above, even an early fit will\n// already be hitting the variable face — these are belt-and-braces.\nconst RETRY_DELAYS=[60,200,600,1200,2200];RETRY_DELAYS.forEach(d=>timers.push(setTimeout(schedule,d)));window.addEventListener(\"resize\",schedule);const ro=new ResizeObserver(schedule);ro.observe(containerRef.current);// Re-fit whenever document.fonts changes: Framer may register new\n// faces mid-session as the user navigates to other pages. Even\n// though the font-stretch fix prevents wrong selection, fitting\n// after the registration change keeps measurements honest.\nlet onFontsChange=null;if(document.fonts&&document.fonts.addEventListener){onFontsChange=()=>schedule();document.fonts.addEventListener(\"loadingdone\",onFontsChange);}const onPageReveal=()=>schedule();window.addEventListener(\"pagereveal\",onPageReveal);const onPageShow=()=>schedule();window.addEventListener(\"pageshow\",onPageShow);return()=>{alive=false;window.removeEventListener(\"resize\",schedule);window.removeEventListener(\"pagereveal\",onPageReveal);window.removeEventListener(\"pageshow\",onPageShow);if(onFontsChange&&document.fonts){document.fonts.removeEventListener(\"loadingdone\",onFontsChange);}ro.disconnect();if(frame)cancelAnimationFrame(frame);timers.forEach(clearTimeout);};},[fontReady,props.text,props.showArrow,props.minFontSize,props.vwFontSize,props.maxFontSize,props.minViewport,props.maxViewport,props.minWeight,props.maxWeight,props.minStroke,props.maxStroke,props.arrowSize,props.arrowGap,props.arrowOffset]);const fontSize=`clamp(${props.minFontSize}px, ${props.vwFontSize}vw, ${props.maxFontSize}px)`;const displayColor=hovered?props.hoverColor:props.color;const letters=Array.from(props.text);const lineVariants={initial:{},animate:{transition:{staggerChildren:props.stagger,delayChildren:props.delay}},exit:{transition:{staggerChildren:props.stagger*.6,staggerDirection:1}}};const itemVariants={initial:{y:\"-1em\"},animate:{y:\"0em\",transition:{duration:props.duration,ease:[.22,1,.36,1]}},exit:{y:\"-1em\",transition:{duration:props.duration*.6,ease:[.7,0,.84,0]}}};return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\"},children:/*#__PURE__*/_jsxs(motion.span,{ref:lineRef,variants:lineVariants,initial:\"initial\",animate:fontReady?\"animate\":\"initial\",exit:\"exit\",onHoverStart:()=>setHovered(true),onHoverEnd:()=>setHovered(false),onTapStart:()=>setHovered(true),onTap:()=>setHovered(false),onTapCancel:()=>setHovered(false),style:{display:\"inline-block\",overflow:\"hidden\",whiteSpace:\"nowrap\",textTransform:\"uppercase\",lineHeight:.85,fontSize:fontSize,color:displayColor,fontFamily:\"'Roboto Flex', system-ui, sans-serif\",// font-stretch and font-weight as CSS properties (NOT just\n// inside font-variation-settings) are what force the\n// browser to pick the variable face during font selection.\n// See the long comment in the fit effect above.\nfontStretch:`${wdth}%`,fontWeight:weight,fontVariationSettings:`'wght' ${weight}, 'wdth' ${wdth}`,verticalAlign:\"top\",transition:\"color 0.2s ease\"},children:[letters.map((letter,i)=>/*#__PURE__*/_jsx(motion.span,{variants:itemVariants,style:{display:\"inline-block\",paddingRight:\"0.04em\",marginRight:\"-0.04em\"},children:letter===\" \"?\"\\xa0\":letter},`letter-${i}`)),props.showArrow&&/*#__PURE__*/_jsx(motion.span,{variants:itemVariants,style:{display:\"inline-block\",height:`${props.arrowSize}em`,width:`${props.arrowSize}em`,marginLeft:`${props.arrowGap}em`,verticalAlign:`${props.arrowOffset}em`},children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 71 71\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",style:{width:\"100%\",height:\"100%\",display:\"block\",overflow:\"visible\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M 10 61 L 61 10 M 10 10 L 61 10 L 61 61\",stroke:\"currentColor\",strokeLinecap:\"butt\",strokeLinejoin:\"miter\",strokeWidth:arrowStroke})})})]})});}FluidLine.defaultProps={text:\"SOUNDS LIKE\",showArrow:false,color:\"#0a0a0a\",hoverColor:\"#888888\",minFontSize:56,vwFontSize:20,maxFontSize:260,minViewport:320,maxViewport:1920,minWeight:300,maxWeight:950,minStroke:6,maxStroke:18,arrowSize:.5,arrowGap:.08,arrowOffset:0,duration:.55,stagger:.035,delay:0};addPropertyControls(FluidLine,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"SOUNDS LIKE\"},showArrow:{type:ControlType.Boolean,title:\"Arrow\",defaultValue:false},color:{type:ControlType.Color,title:\"Colour\",defaultValue:\"#0a0a0a\"},hoverColor:{type:ControlType.Color,title:\"Hover Colour\",defaultValue:\"#888888\"},minFontSize:{type:ControlType.Number,title:\"Min Font px\",defaultValue:56,min:8,max:500,step:1},vwFontSize:{type:ControlType.Number,title:\"Font vw\",defaultValue:20,min:1,max:50,step:.5},maxFontSize:{type:ControlType.Number,title:\"Max Font px\",defaultValue:260,min:8,max:1e3,step:1},minViewport:{type:ControlType.Number,title:\"Min Viewport\",defaultValue:320,min:100,max:2e3},maxViewport:{type:ControlType.Number,title:\"Max Viewport\",defaultValue:1920,min:200,max:4e3},minWeight:{type:ControlType.Number,title:\"Min Weight\",defaultValue:300,min:100,max:1e3},maxWeight:{type:ControlType.Number,title:\"Max Weight\",defaultValue:950,min:100,max:1e3},minStroke:{type:ControlType.Number,title:\"Min Stroke\",defaultValue:6,min:1,max:50,step:.5},maxStroke:{type:ControlType.Number,title:\"Max Stroke\",defaultValue:18,min:1,max:50,step:.5},arrowSize:{type:ControlType.Number,title:\"Arrow Size\",defaultValue:.5,min:.1,max:2,step:.05},arrowGap:{type:ControlType.Number,title:\"Arrow Gap\",defaultValue:.08,min:-.5,max:1,step:.02},arrowOffset:{type:ControlType.Number,title:\"Arrow Offset\",defaultValue:0,min:-1,max:1,step:.01},duration:{type:ControlType.Number,title:\"Anim Duration\",defaultValue:.55,min:.1,max:3,step:.05},stagger:{type:ControlType.Number,title:\"Anim Stagger\",defaultValue:.035,min:0,max:.3,step:.005},delay:{type:ControlType.Number,title:\"Anim Delay\",defaultValue:0,min:0,max:5,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FluidLine\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicText.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useRef}from\"react\";/**\n * Paper Shaders \"grain-gradient\" wave preset, ported with P3 wide-gamut output.\n *\n * Source: https://github.com/paper-design/shaders\n * Preset URL:\n *   https://shaders.paper.design/grain-gradient\n *     #colors=ffaa00,ff9100,ff4400&colorBack=ff6a00\n *     &softness=0.7&intensity=0.15&noise=0.5&shape=wave&speed=1&scale=1\n *\n * PERFORMANCE NOTES (output is visually identical to the original port):\n *  - The grain field (grainDist + noiseVal) depends only on pixel position,\n *    never on time. It is rendered ONCE into an offscreen texture (and again\n *    on resize), so the per-frame shader is just the cheap wave + colour mix\n *    + one texture fetch instead of 2 simplex + 12 value-noise evaluations\n *    per pixel per frame.\n *  - The render loop uploads only u_time; everything else is set on change.\n *  - No layout reads in the loop; the ResizeObserver owns sizing.\n *  - Rendering pauses entirely while the canvas is offscreen.\n *  - The GL context is created once and survives prop changes (uniforms are\n *    updated in place), so editor tweaks no longer rebuild everything.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 600\n */export default function WaveGradient(props){const{color1,color2,color3,colorBack,softness,intensity,noise,speed,scale,style}=props;const canvasRef=useRef(null);const glStateRef=useRef(null);// One-time GL setup. Prop changes only update uniforms (effect below).\nuseEffect(()=>{const canvas=canvasRef.current;if(!canvas)return;const ctxAttribs={antialias:true,premultipliedAlpha:true,alpha:true,colorSpace:\"display-p3\"};const gl=canvas.getContext(\"webgl\",ctxAttribs);if(!gl)return;try{// @ts-ignore\ngl.drawingBufferColorSpace=\"display-p3\";// @ts-ignore\ngl.unpackColorSpace=\"display-p3\";}catch{}// Needed for fwidth(); guaranteed on all WebGL1 desktop + iOS Safari 14+.\ngl.getExtension(\"OES_standard_derivatives\");const vertSrc=`\n            attribute vec2 a_pos;\n            varying vec2 v_uv;\n            void main() {\n                v_uv = a_pos * 0.5 + 0.5;\n                gl_Position = vec4(a_pos, 0.0, 1.0);\n            }\n        `;// ---------------------------------------------------------------\n// PASS 1 — grain field, rendered once per resize into a texture.\n// Faithful copy of the noise stack from the original port. The two\n// outputs are time-independent:\n//   R: grainDist, encoded from its analytic range [-2, 1] into [0, 1]\n//   G: noiseVal, already in [0, 0.75]\n// 8-bit quantisation here is invisible: the values are noise and are\n// multiplied down by intensity/noise before entering the shape.\n// ---------------------------------------------------------------\nconst grainFragSrc=`\n            precision highp float;\n\n            vec2 rotate(vec2 v, float a) {\n                float c = cos(a), s = sin(a);\n                return mat2(c, -s, s, c) * v;\n            }\n\n            // --- Simplex 2D noise (Ashima Arts) ---\n            vec3 mod289_3(vec3 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\n            vec2 mod289_2(vec2 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\n            vec3 permute(vec3 x) { return mod289_3(((x * 34.0) + 1.0) * x); }\n            float snoise(vec2 v) {\n                const vec4 C = vec4(0.211324865405187, 0.366025403784439,\n                                    -0.577350269189626, 0.024390243902439);\n                vec2 i  = floor(v + dot(v, C.yy));\n                vec2 x0 = v - i + dot(i, C.xx);\n                vec2 i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n                vec4 x12 = x0.xyxy + C.xxzz; x12.xy -= i1;\n                i = mod289_2(i);\n                vec3 p = permute(permute(i.y + vec3(0.0, i1.y, 1.0))\n                                       + i.x + vec3(0.0, i1.x, 1.0));\n                vec3 m = max(0.5 - vec3(dot(x0, x0), dot(x12.xy, x12.xy),\n                                        dot(x12.zw, x12.zw)), 0.0);\n                m = m * m; m = m * m;\n                vec3 x = 2.0 * fract(p * C.www) - 1.0;\n                vec3 h = abs(x) - 0.5;\n                vec3 ox = floor(x + 0.5);\n                vec3 a0 = x - ox;\n                m *= 1.79284291400159 - 0.85373472095314 * (a0 * a0 + h * h);\n                vec3 g;\n                g.x  = a0.x  * x0.x  + h.x  * x0.y;\n                g.yz = a0.yz * x12.xz + h.yz * x12.yw;\n                return 130.0 * dot(m, g);\n            }\n\n            // --- Value noise + FBM matching paper shaders' implementation ---\n            float randomR(vec2 st) {\n                return fract(sin(dot(st, vec2(127.1, 311.7))) * 43758.5453);\n            }\n            float valueNoiseR(vec2 st) {\n                vec2 i = floor(st);\n                vec2 f = fract(st);\n                float a = randomR(i);\n                float b = randomR(i + vec2(1.0, 0.0));\n                float c = randomR(i + vec2(0.0, 1.0));\n                float d = randomR(i + vec2(1.0, 1.0));\n                vec2 u = f * f * (3.0 - 2.0 * f);\n                return mix(mix(a, b, u.x), mix(c, d, u.x), u.y);\n            }\n            vec4 fbmR(vec2 n0, vec2 n1, vec2 n2, vec2 n3) {\n                float amplitude = 0.2;\n                vec4 total = vec4(0.0);\n                for (int i = 0; i < 3; i++) {\n                    n0 = rotate(n0, 0.3);\n                    n1 = rotate(n1, 0.3);\n                    n2 = rotate(n2, 0.3);\n                    n3 = rotate(n3, 0.3);\n                    total.x += valueNoiseR(n0) * amplitude;\n                    total.y += valueNoiseR(n1) * amplitude;\n                    total.z += valueNoiseR(n2) * amplitude;\n                    total.z += valueNoiseR(n3) * amplitude;\n                    n0 *= 1.99; n1 *= 1.99; n2 *= 1.99; n3 *= 1.99;\n                    amplitude *= 0.6;\n                }\n                return total;\n            }\n\n            void main() {\n                // Grain is computed in pixel space so it stays a fine,\n                // fixed-size texture regardless of canvas size or scale —\n                // same approach as paper shaders.\n                vec2 grain_uv = gl_FragCoord.xy * 1.6;\n\n                float baseNoise = snoise(grain_uv * 0.5);\n                vec4 fbmVals = fbmR(\n                    0.002 * grain_uv + 10.0,\n                    0.003 * grain_uv,\n                    0.001 * grain_uv,\n                    rotate(0.4 * grain_uv, 2.0)\n                );\n                float grainDist = baseNoise * snoise(grain_uv * 0.2)\n                                  - fbmVals.x - fbmVals.y;\n                float rawNoise = 0.75 * baseNoise - fbmVals.w - fbmVals.z;\n                float noiseVal = clamp(rawNoise, 0.0, 1.0);\n\n                gl_FragColor = vec4((grainDist + 2.0) / 3.0, noiseVal, 0.0, 1.0);\n            }\n        `;// ---------------------------------------------------------------\n// PASS 2 — per-frame wave + colour mix. Grain comes from the texture.\n// ---------------------------------------------------------------\nconst fragSrc=`\n            #extension GL_OES_standard_derivatives : enable\n            precision highp float;\n\n            varying vec2 v_uv;\n            uniform vec2 u_res;\n            uniform float u_time;\n            uniform float u_scale;\n            uniform float u_softness;\n            uniform float u_intensity;\n            uniform float u_noise;\n            uniform float u_speed;\n            uniform vec4 u_c1;\n            uniform vec4 u_c2;\n            uniform vec4 u_c3;\n            uniform vec4 u_cBack;\n            uniform sampler2D u_grain;\n\n            void main() {\n                // Paper shaders' wave uses t = .1 * (time + 7.) — matched here.\n                float t = 0.1 * (u_time * u_speed + 7.0);\n\n                vec2 uv = (v_uv - 0.5);\n                uv.x *= u_res.x / max(u_res.y, 1.0);\n                vec2 patternUV = uv / max(u_scale, 0.01);\n                vec2 shape_uv = patternUV * 5.0;\n\n                // ----- Wave shape (paper shaders grain-gradient.ts) -----\n                float wave =\n                    cos(0.5 * shape_uv.x - 4.0 * t)\n                    * sin(1.5 * shape_uv.x + 2.0 * t)\n                    * (0.75 + 0.25 * cos(6.0 * t));\n                float shape = 1.0 - smoothstep(-1.0, 1.0, shape_uv.y + wave);\n\n                // ----- Grain / noise overlay (precomputed, 1:1 pixels) -----\n                vec2 g = texture2D(u_grain, v_uv).rg;\n                float grainDist = g.x * 3.0 - 2.0;\n                float noiseVal = g.y;\n\n                const float colorsCount = 3.0;\n                shape += u_intensity * 2.0 / colorsCount * (grainDist + 0.5);\n                shape += u_noise * 10.0 / colorsCount * noiseVal;\n\n                float aa = fwidth(shape);\n                shape = clamp(shape - 0.5 / colorsCount, 0.0, 1.0);\n                float totalShape = smoothstep(\n                    0.0,\n                    u_softness + 2.0 * aa,\n                    clamp(shape * colorsCount, 0.0, 1.0)\n                );\n                float mixer = shape * (colorsCount - 1.0);\n\n                // ----- 3-stop gradient with softness-controlled transitions -----\n                vec4 c0 = u_c1; c0.rgb *= c0.a;\n                vec4 c1 = u_c2; c1.rgb *= c1.a;\n                vec4 c2 = u_c3; c2.rgb *= c2.a;\n\n                vec4 gradient = c0;\n                float localT;\n                localT = clamp(mixer, 0.0, 1.0);\n                localT = smoothstep(0.5 - 0.5 * u_softness - aa,\n                                    0.5 + 0.5 * u_softness + aa, localT);\n                gradient = mix(gradient, c1, localT);\n\n                localT = clamp(mixer - 1.0, 0.0, 1.0);\n                localT = smoothstep(0.5 - 0.5 * u_softness - aa,\n                                    0.5 + 0.5 * u_softness + aa, localT);\n                gradient = mix(gradient, c2, localT);\n\n                vec3 color = gradient.rgb * totalShape;\n                float opacity = gradient.a * totalShape;\n\n                vec3 bgColor = u_cBack.rgb * u_cBack.a;\n                color = color + bgColor * (1.0 - opacity);\n                opacity = opacity + u_cBack.a * (1.0 - opacity);\n\n                gl_FragColor = vec4(color, opacity);\n            }\n        `;const compile=(type,src)=>{const sh=gl.createShader(type);gl.shaderSource(sh,src);gl.compileShader(sh);if(!gl.getShaderParameter(sh,gl.COMPILE_STATUS)){console.error(gl.getShaderInfoLog(sh));}return sh;};const link=fs=>{const prog=gl.createProgram();gl.attachShader(prog,compile(gl.VERTEX_SHADER,vertSrc));gl.attachShader(prog,compile(gl.FRAGMENT_SHADER,fs));gl.linkProgram(prog);return prog;};const prog=link(fragSrc);const grainProg=link(grainFragSrc);const buf=gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER,buf);gl.bufferData(gl.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),gl.STATIC_DRAW);for(const p of[prog,grainProg]){const loc=gl.getAttribLocation(p,\"a_pos\");gl.enableVertexAttribArray(loc);gl.vertexAttribPointer(loc,2,gl.FLOAT,false,0,0);}gl.useProgram(prog);const u=n=>gl.getUniformLocation(prog,n);const uRes=u(\"u_res\");const uTime=u(\"u_time\");// Grain texture + framebuffer (regenerated only on resize).\nconst grainTex=gl.createTexture();gl.bindTexture(gl.TEXTURE_2D,grainTex);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MIN_FILTER,gl.NEAREST);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MAG_FILTER,gl.NEAREST);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_S,gl.CLAMP_TO_EDGE);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_T,gl.CLAMP_TO_EDGE);const fbo=gl.createFramebuffer();gl.activeTexture(gl.TEXTURE0);gl.uniform1i(u(\"u_grain\"),0);const renderGrain=()=>{gl.bindFramebuffer(gl.FRAMEBUFFER,fbo);gl.bindTexture(gl.TEXTURE_2D,grainTex);gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,canvas.width,canvas.height,0,gl.RGBA,gl.UNSIGNED_BYTE,null);gl.framebufferTexture2D(gl.FRAMEBUFFER,gl.COLOR_ATTACHMENT0,gl.TEXTURE_2D,grainTex,0);gl.disable(gl.BLEND);gl.useProgram(grainProg);gl.viewport(0,0,canvas.width,canvas.height);gl.drawArrays(gl.TRIANGLES,0,6);gl.bindFramebuffer(gl.FRAMEBUFFER,null);gl.useProgram(prog);gl.enable(gl.BLEND);gl.blendFunc(gl.ONE,gl.ONE_MINUS_SRC_ALPHA);};let needsFrame=true;const resize=()=>{const dpr=Math.min(window.devicePixelRatio||1,2);const w=Math.max(1,Math.round(canvas.clientWidth*dpr));const h=Math.max(1,Math.round(canvas.clientHeight*dpr));if(canvas.width!==w||canvas.height!==h){canvas.width=w;canvas.height=h;gl.viewport(0,0,w,h);gl.uniform2f(uRes,w,h);renderGrain();needsFrame=true;}};const ro=new ResizeObserver(resize);ro.observe(canvas);resize();// First sizing may be a no-op size change; ensure grain exists.\ngl.uniform2f(uRes,canvas.width,canvas.height);renderGrain();// Uniform setter exposed to the props effect — no GL rebuild on change.\nconst setParams=p=>{gl.useProgram(prog);gl.uniform1f(u(\"u_scale\"),p.scale);gl.uniform1f(u(\"u_softness\"),p.softness);gl.uniform1f(u(\"u_intensity\"),p.intensity);gl.uniform1f(u(\"u_noise\"),p.noise);gl.uniform1f(u(\"u_speed\"),p.speed);gl.uniform4f(u(\"u_c1\"),p.color1.r,p.color1.g,p.color1.b,p.color1.a);gl.uniform4f(u(\"u_c2\"),p.color2.r,p.color2.g,p.color2.b,p.color2.a);gl.uniform4f(u(\"u_c3\"),p.color3.r,p.color3.g,p.color3.b,p.color3.a);gl.uniform4f(u(\"u_cBack\"),p.colorBack.r,p.colorBack.g,p.colorBack.b,p.colorBack.a);needsFrame=true;};glStateRef.current={gl,setParams};// Render loop: only u_time per frame; paused while offscreen.\nconst start=performance.now();let raf=0;let running=false;const render=now=>{gl.uniform1f(uTime,(now-start)/1e3);gl.drawArrays(gl.TRIANGLES,0,6);raf=requestAnimationFrame(render);};const startLoop=()=>{if(running)return;running=true;raf=requestAnimationFrame(render);};const stopLoop=()=>{running=false;cancelAnimationFrame(raf);};const io=new IntersectionObserver(entries=>{if(entries[0].isIntersecting)startLoop();else stopLoop();});io.observe(canvas);return()=>{stopLoop();io.disconnect();ro.disconnect();glStateRef.current=null;gl.deleteTexture(grainTex);gl.deleteFramebuffer(fbo);gl.deleteBuffer(buf);gl.deleteProgram(prog);gl.deleteProgram(grainProg);const lose=gl.getExtension(\"WEBGL_lose_context\");if(lose)lose.loseContext();};},[]);// Prop changes only touch uniforms — the context and grain survive.\nuseEffect(()=>{glStateRef.current?.setParams({color1,color2,color3,colorBack,softness,intensity,noise,speed,scale});},[color1,color2,color3,colorBack,softness,intensity,noise,speed,scale]);return /*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{width:\"100%\",height:\"100%\",display:\"block\",...style}});}// Defaults reproduce the exact URL preset:\n//   colors=ffaa00,ff9100,ff4400   colorBack=ff6a00\n//   softness=0.7  intensity=0.15  noise=0.5  speed=1  scale=1\n// Hex bytes are sent as raw P3 floats so they read slightly more saturated\n// than the sRGB preview — same hue family, wider gamut.\nWaveGradient.defaultProps={color1:{r:1,g:.667,b:0,a:1},color2:{r:1,g:.569,b:0,a:1},color3:{r:1,g:.267,b:0,a:1},colorBack:{r:1,g:.416,b:0,a:1},softness:.7,intensity:.15,noise:.5,speed:1,scale:1};const rgbaControl=(title,def)=>({type:ControlType.Object,title,controls:{r:{type:ControlType.Number,min:0,max:1,step:.001,defaultValue:def.r},g:{type:ControlType.Number,min:0,max:1,step:.001,defaultValue:def.g},b:{type:ControlType.Number,min:0,max:1,step:.001,defaultValue:def.b},a:{type:ControlType.Number,min:0,max:1,step:.01,defaultValue:def.a}}});addPropertyControls(WaveGradient,{color1:rgbaControl(\"Color 1 (P3)\",{r:1,g:.667,b:0,a:1}),color2:rgbaControl(\"Color 2 (P3)\",{r:1,g:.569,b:0,a:1}),color3:rgbaControl(\"Color 3 (P3)\",{r:1,g:.267,b:0,a:1}),colorBack:rgbaControl(\"Background (P3)\",{r:1,g:.416,b:0,a:1}),softness:{type:ControlType.Number,title:\"Softness\",min:0,max:1,step:.01,defaultValue:.7},intensity:{type:ControlType.Number,title:\"Intensity\",min:0,max:1,step:.01,defaultValue:.15},noise:{type:ControlType.Number,title:\"Noise\",min:0,max:1,step:.01,defaultValue:.5},speed:{type:ControlType.Number,title:\"Speed\",min:0,max:4,step:.05,defaultValue:1},scale:{type:ControlType.Number,title:\"Scale\",min:.1,max:4,step:.05,defaultValue:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WaveGradient\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"1200\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"600\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WaveGradient.map"],"mappings":"8PACwK,SAAS,GAAc,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,GAAM,CAI6X,OAJ5X,MAAc,CAAC,IAAI,EAAM,GAAW,MAAgB,CAAC,GAAG,CAAC,EAAM,OAA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