{"version":3,"file":"InteractiveWaveBackground_prod.BicYsL9u.mjs","names":["useReducer","useState","_Fragment","p","useRef","l"],"sources":["https:/framer.com/m/framer/default-utils.js@^0.45.0","https:/framerusercontent.com/modules/NEd4VmDdsxM3StIUbddO/4sbLnuatuUfmOTwFGSJM/YouTube.js","https:/framerusercontent.com/modules/yJCbmrzocnalcnR18FtX/jtMkiQXrxBOtnNiVuoBz/InteractiveWaveBackground_prod.js"],"sourcesContent":["/*\n * index (framer/default-utils@0.45.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js\"\n","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useReducer,useState}from\"react\";import{ControlType,addPropertyControls}from\"framer\";import{useIsOnCanvas,emptyStateStyle,containerStyles,defaultEvents,useRadius,borderRadiusControl}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";var PlayOptions;(function(PlayOptions){PlayOptions[\"Normal\"]=\"Off\";PlayOptions[\"Auto\"]=\"On\";PlayOptions[\"Loop\"]=\"Loop\";})(PlayOptions||(PlayOptions={}));var ThumbnailOptions;(function(ThumbnailOptions){ThumbnailOptions[\"High\"]=\"High Quality\";ThumbnailOptions[\"Medium\"]=\"Medium Quality\";ThumbnailOptions[\"Low\"]=\"Low Quality\";ThumbnailOptions[\"Off\"]=\"Off\";})(ThumbnailOptions||(ThumbnailOptions={}));/**\n * @framerIntrinsicWidth 560\n * @framerIntrinsicHeight 315\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n *\n * @framerComponentPresetProps isRed, borderRadius\n */export function Youtube({url,play,shouldMute,thumbnail,isRed,onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,title,...props}){const onCanvas=useIsOnCanvas();const isAutoplay=play!==\"Off\";const showThumbnail=onCanvas||thumbnail!==\"Off\"&&!isAutoplay;const[isPreloading,preloadVideo]=useReducer(()=>true,false);const[showVideo,startVideo]=useReducer(()=>true,!showThumbnail);const[isHovered,setHovered]=useState(false);const borderRadius=useRadius(props);const hasBorderRadius=borderRadius!==\"0px 0px 0px 0px\"&&borderRadius!==\"0px\";if(url===\"\"){return /*#__PURE__*/_jsx(Instructions,{});}const parsedURL=parseVideoURL(url);if(parsedURL===undefined){return /*#__PURE__*/_jsx(ErrorMessage,{message:\"Invalid Youtube URL.\"});}const[videoId,embedURL,originalSearchParams]=parsedURL;const searchParams=embedURL.searchParams;if(originalSearchParams){for(const[param,value]of originalSearchParams){searchParams.set(param,value);if(param===\"t\")searchParams.set(\"start\",value)// embeds have to use `start`, but copying via right-click usually gives you `t=`\n;}}// https://developers.google.com/youtube/player_parameters\nsearchParams.set(\"iv_load_policy\",\"3\");searchParams.set(\"rel\",\"0\");searchParams.set(\"modestbranding\",\"1\");searchParams.set(\"playsinline\",\"1\");if(!showVideo){// if a browser does not support `loading=lazy`, make sure the video doesn't start playing in the background\nsearchParams.set(\"autoplay\",\"0\");}else if(isAutoplay||// when there is no thumbnail, we don't want to autoplay, unless video is started\nshowThumbnail&&showVideo){searchParams.set(\"autoplay\",\"1\");}if(isAutoplay&&shouldMute){searchParams.set(\"mute\",\"1\");}if(play===\"Loop\"){searchParams.set(\"loop\",\"1\");searchParams.set(\"playlist\",videoId);}if(!isRed){searchParams.set(\"color\",\"white\");}const iframeProps={title:title||\"Youtube Video\",allow:\"presentation; fullscreen; accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\",src:embedURL.href,frameBorder:\"0\",onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp};return /*#__PURE__*/_jsxs(\"article\",{onPointerEnter:()=>setHovered(true),onPointerLeave:()=>setHovered(false),onPointerOver:preloadVideo,onKeyDown:startVideo,onClick:startVideo,style:{...wrapperStyle,borderRadius,transform:// Safari sometimes struggles to render border-radius:\n// - on the canvas when changing from 0 to any other value\n// - or when rendering an iframe\nhasBorderRadius&&(showVideo||onCanvas)?\"translateZ(0.000001px)\":\"unset\",cursor:\"pointer\",overflow:\"hidden\"},role:\"presentation\",children:[isPreloading&&/*#__PURE__*/_jsx(\"link\",{rel:\"preconnect\",href:\"https://www.youtube.com\"}),isPreloading&&/*#__PURE__*/_jsx(\"link\",{rel:\"preconnect\",href:\"https://www.google.com\"}),showThumbnail&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"link\",{rel:\"preconnect\",href:\"https://i.ytimg.com\"}),/*#__PURE__*/_jsx(\"img\",{decoding:\"async\",src:getThumbnailURL(videoId,thumbnail),style:{...videoStyle,objectFit:\"cover\"}})]}),!onCanvas?/*#__PURE__*/_jsx(\"iframe\",{loading:!showVideo?\"lazy\":undefined,style:!showVideo?{...videoStyle,display:\"none\"}:videoStyle,...iframeProps}):null,showVideo?null:/*#__PURE__*/_jsx(PlayButton,{onClick:startVideo,isHovered:isHovered,isRed:isRed})]});}Youtube.displayName=\"YouTube\";addPropertyControls(Youtube,{url:{type:ControlType.String,title:\"Video\"},play:{type:ControlType.Enum,title:\"Autoplay\",options:Object.values(PlayOptions)},shouldMute:{title:\"Mute\",type:ControlType.Boolean,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden(props){return props.play===\"Off\";}},thumbnail:{title:\"Thumbnail\",description:\"Showing a thumbnail improves performance.\",type:ControlType.Enum,options:Object.values(ThumbnailOptions),hidden(props){return props.play!==\"Off\";}},isRed:{title:\"Color\",type:ControlType.Boolean,enabledTitle:\"Red\",disabledTitle:\"White\"},...borderRadiusControl,...defaultEvents});const defaultProps={url:\"https://youtu.be/8AHPXm9Y6mI\",play:\"Off\",shouldMute:true,thumbnail:\"Medium Quality\",isRed:true};Youtube.defaultProps=defaultProps;function parseVideoURL(urlString){let url;try{url=new URL(urlString);}catch{const embedURL=getEmbedURL(urlString);return[urlString,embedURL,null];}const searchParams=url.searchParams;if(url.hostname===\"youtube.com\"||url.hostname===\"www.youtube.com\"||url.hostname===\"youtube-nocookie.com\"||url.hostname===\"www.youtube-nocookie.com\"){const pathSegments=url.pathname.slice(1).split(\"/\");const page=pathSegments[0];// https://www.youtube.com/watch?v=Fop2oskTug8\nif(page===\"watch\"){const videoId=url.searchParams.get(\"v\");const embedURL=getEmbedURL(videoId);return[videoId,embedURL,searchParams];}// https://www.youtube.com/embed/Fop2oskTug8\nif(page===\"embed\"){const videoId=pathSegments[1];return[videoId,url,searchParams];}// https://www.youtube.com/shorts/zwMEhBq4kYM / https://www.youtube.com/live/XlWSzaluBKk\nif(page===\"shorts\"||page===\"live\"){const videoId=pathSegments[1];const embedURL=getEmbedURL(videoId);return[videoId,embedURL,searchParams];}}// https://youtu.be/Fop2oskTug8\nif(url.hostname===\"youtu.be\"){const videoId=url.pathname.slice(1);const embedURL=getEmbedURL(videoId);return[videoId,embedURL,searchParams];}}function getEmbedURL(videoId){return new URL(`https://www.youtube.com/embed/${videoId}`);}function getThumbnailURL(videoId,res){// https://gist.github.com/a1ip/be4514c1fd392a8c13b05e082c4da363\nconst pre=\"https://i.ytimg.com/vi_webp/\";const ext=\"webp\";switch(res){case\"Low Quality\":return`${pre}${videoId}/hqdefault.${ext}`;case\"Medium Quality\":return`${pre}${videoId}/sddefault.${ext}`;case\"High Quality\":return`${pre}${videoId}/maxresdefault.${ext}`;default:return`${pre}${videoId}/0.${ext}`;}}// Helper components\nfunction Instructions(){return /*#__PURE__*/_jsx(\"div\",{style:{...emptyStateStyle,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:centerTextStyle,children:\"To embed a Youtube video, add the URL to the properties\\xa0panel.\"})});}function ErrorMessage({message}){return /*#__PURE__*/_jsx(\"div\",{className:\"framerInternalUI-errorPlaceholder\",style:{...containerStyles,overflow:\"hidden\"},children:/*#__PURE__*/_jsxs(\"div\",{style:centerTextStyle,children:[\"Error: \",message]})});}function PlayButton({onClick,isHovered,isRed}){return /*#__PURE__*/_jsx(\"button\",{onClick:onClick,\"aria-label\":\"Play\",style:buttonStyle,children:/*#__PURE__*/_jsxs(\"svg\",{height:\"100%\",version:\"1.1\",viewBox:\"0 0 68 48\",width:\"100%\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z\",fill:isHovered?isRed?\"#f00\":\"#000\":\"#212121\",fillOpacity:isHovered?isRed?1:.8:.8,style:{transition:\"fill .1s cubic-bezier(0.4, 0, 1, 1), fill-opacity .1s cubic-bezier(0.4, 0, 1, 1)\"}}),/*#__PURE__*/_jsx(\"path\",{d:\"M 45,24 27,14 27,34\",fill:\"#fff\"})]})});}const buttonStyle={position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",width:68,height:48,padding:0,border:\"none\",background:\"transparent\",cursor:\"pointer\"};const wrapperStyle={position:\"relative\",width:\"100%\",height:\"100%\"};const centerTextStyle={textAlign:\"center\",minWidth:140};const videoStyle={position:\"absolute\",top:0,left:0,height:\"100%\",width:\"100%\"};\nexport const __FramerMetadata__ = {\"exports\":{\"Youtube\":{\"type\":\"reactComponent\",\"name\":\"Youtube\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"315\",\"framerIntrinsicWidth\":\"560\",\"framerComponentPresetProps\":\"isRed, borderRadius\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YouTube.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// Simple 2D noise function for wave generation with seed support\nfunction createNoise2D(seed=.5){const F2=.5*(Math.sqrt(3)-1);const G2=(3-Math.sqrt(3))/6;const G22=(3-Math.sqrt(3))/3;const p=new Uint8Array(256);for(let i=0;i<256;i++){p[i]=i;}// Use seed to create deterministic random values\nconst seededRandom=index=>{const x=Math.sin(index*12.9898+seed*78.233)*43758.5453;return x-Math.floor(x);};// Shuffle the permutation table using seeded random\nfor(let i=255;i>0;i--){const n=Math.floor((i+1)*seededRandom(i));const q=p[i];p[i]=p[n];p[n]=q;}const perm=new Uint8Array(512);const permMod12=new Uint8Array(512);for(let i=0;i<512;i++){perm[i]=p[i&255];permMod12[i]=perm[i]%12;}const grad2=new Float64Array([1,1,-1,1,1,-1,-1,-1,1,0,-1,0,1,0,-1,0,0,1,0,-1,0,1,0,-1]);const fastFloor=x=>Math.floor(x)|0;return function noise2D(x,y){const s=(x+y)*F2;const i=fastFloor(x+s);const j=fastFloor(y+s);const t=(i+j)*G2;const x0=x-(i-t);const y0=y-(j-t);let i1,j1;if(x0>y0){i1=1;j1=0;}else{i1=0;j1=1;}const x1=x0-i1+G2;const y1=y0-j1+G2;const x2=x0-1+G22;const y2=y0-1+G22;const ii=i&255;const jj=j&255;const gi0=permMod12[ii+perm[jj]];const gi1=permMod12[ii+i1+perm[jj+j1]];const gi2=permMod12[ii+1+perm[jj+1]];let t0=.5-x0*x0-y0*y0;let n0;if(t0<0){n0=0;}else{t0*=t0;n0=t0*t0*(grad2[gi0*2]*x0+grad2[gi0*2+1]*y0);}let t1=.5-x1*x1-y1*y1;let n1;if(t1<0){n1=0;}else{t1*=t1;n1=t1*t1*(grad2[gi1*2]*x1+grad2[gi1*2+1]*y1);}let t2=.5-x2*x2-y2*y2;let n2;if(t2<0){n2=0;}else{t2*=t2;n2=t2*t2*(grad2[gi2*2]*x2+grad2[gi2*2+1]*y2);}return 70*(n0+n1+n2);};}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 600\n * @framerDisableUnlink\n */export default function InteractiveWaveBackground({strokeColor=\"#ffffff\",backgroundColor=\"transparent\",waveSpeed=.5,waveAmplitude=.5,mouseInfluence=.5,lineSpacing=.5,seed=.5,resolution=.5,preview=true}){const containerRef=useRef(null);const svgRef=useRef(null);const mouseRef=useRef({x:-10,y:0,lx:0,ly:0,sx:0,sy:0,v:0,vs:0,a:0,set:false});const pathsRef=useRef([]);const linesRef=useRef([]);const noiseRef=useRef(null);const rafRef=useRef(null);const boundingRef=useRef(null);const zoomProbeRef=useRef(null);const lastSizeRef=useRef({width:0,height:0,zoom:1});const isVisibleRef=useRef(true);const isCanvasRef=useRef(RenderTarget.current()===RenderTarget.canvas);// Initialization\nuseEffect(()=>{if(!containerRef.current||!svgRef.current)return;// Store canvas state\nisCanvasRef.current=RenderTarget.current()===RenderTarget.canvas;// Initialize noise generator\nnoiseRef.current=createNoise2D(seed);// Initialize size and lines\nsetSize();setLines();// Always compute initial wave shape (use time 0 for initial state)\nmovePoints(0);drawLines();// Bind events (resize is bound in a separate effect to always use latest props)\nwindow.addEventListener(\"mousemove\",onMouseMove);containerRef.current.addEventListener(\"touchmove\",onTouchMove,{passive:false});// Set up intersection observer for viewport detection\nconst observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{isVisibleRef.current=entry.isIntersecting;});},{threshold:.1});observer.observe(containerRef.current);return()=>{window.removeEventListener(\"mousemove\",onMouseMove);containerRef.current?.removeEventListener(\"touchmove\",onTouchMove);observer.disconnect();};},[seed]);// Monitor size changes and re-render when component is resized\nuseEffect(()=>{if(!containerRef.current||!zoomProbeRef.current)return;let rafId=0;const TICK_MS=100// Check every 100ms\n;const EPSILON=1// 1px tolerance\n;const checkSize=()=>{const container=containerRef.current;const probe=zoomProbeRef.current;if(!container||!probe)return;const rawWidth=container.clientWidth||container.offsetWidth||1;const rawHeight=container.clientHeight||container.offsetHeight||1;const zoom=probe.getBoundingClientRect().width/20;const safeZoom=Math.max(zoom,1e-4);// Normalize sizes by zoom so editor zoom doesn't count as a resize\nconst width=rawWidth/safeZoom;const height=rawHeight/safeZoom;const lastSize=lastSizeRef.current;const sizeChanged=Math.abs(width-lastSize.width)>EPSILON||Math.abs(height-lastSize.height)>EPSILON;if(sizeChanged){lastSizeRef.current={width,height,zoom:safeZoom};setSize();setLines();// When preview is off or component not visible, initialize static wave positions immediately\n// When preview is on and visible, let the animation loop handle rendering (no interruption)\nconst shouldAnimate=(!isCanvasRef.current||preview)&&isVisibleRef.current;if(!shouldAnimate){movePoints(0);drawLines();}}rafId=requestAnimationFrame(checkSize);};rafId=requestAnimationFrame(checkSize);return()=>{if(rafId)cancelAnimationFrame(rafId);};},[resolution,preview,lineSpacing,seed,waveSpeed,waveAmplitude,mouseInfluence]);// Keep window resize listener in sync with latest props/closures\nuseEffect(()=>{window.addEventListener(\"resize\",onResize);return()=>window.removeEventListener(\"resize\",onResize);},[lineSpacing,seed,resolution,preview,waveSpeed,waveAmplitude,mouseInfluence]);// Stroke color change should not rebuild geometry; only update stroke\nuseEffect(()=>{pathsRef.current.forEach(path=>{path.setAttribute(\"stroke\",strokeColor);});drawLines();},[strokeColor]);// Geometry-affecting controls: rebuild and redraw\nuseEffect(()=>{setLines();// Always draw at least one frame so lines aren't empty\nconst shouldAnimate=(!isCanvasRef.current||preview)&&isVisibleRef.current;if(shouldAnimate){movePoints(performance.now());}else{movePoints(0);}drawLines();},[lineSpacing,seed,resolution,preview]);// Shape-affecting controls: recompute wave positions\nuseEffect(()=>{// Recompute wave shape\nconst shouldAnimate=(!isCanvasRef.current||preview)&&isVisibleRef.current;if(shouldAnimate){movePoints(performance.now());}else{movePoints(0);}drawLines();},[waveSpeed,waveAmplitude,mouseInfluence]);// Restart animation loop when props change to ensure new values are used\nuseEffect(()=>{// Cancel existing animation\nif(rafRef.current){cancelAnimationFrame(rafRef.current);rafRef.current=null;}// Check if animation should run\n// In canvas mode: respect preview toggle\n// In production: always animate (ignore preview)\nconst shouldAnimate=(!isCanvasRef.current||preview)&&isVisibleRef.current;// If animation is disabled (preview off in canvas), don't start the loop\n// Only render when props/size change, not every frame\nif(!shouldAnimate){return;}// Start new animation loop with updated props\nconst tick=time=>{// Check again in case visibility/preview changed\nconst stillShouldAnimate=(!isCanvasRef.current||preview)&&isVisibleRef.current;// If animation should stop, cancel the loop\nif(!stillShouldAnimate){rafRef.current=null;return;}// Always schedule next frame to keep animation loop alive\nrafRef.current=requestAnimationFrame(tick);// Check if paths/lines have been recreated (e.g., during zoom)\n// If so, ensure we have valid data before animating\nif(!pathsRef.current||pathsRef.current.length===0||!linesRef.current||linesRef.current.length===0){return;}const{current:mouse}=mouseRef;// Smooth mouse movement\nmouse.sx+=(mouse.x-mouse.sx)*.1;mouse.sy+=(mouse.y-mouse.sy)*.1;// Mouse velocity\nconst dx=mouse.x-mouse.lx;const dy=mouse.y-mouse.ly;const d=Math.hypot(dx,dy);mouse.v=d;mouse.vs+=(d-mouse.vs)*.1;mouse.vs=Math.min(100,mouse.vs);// Previous mouse position\nmouse.lx=mouse.x;mouse.ly=mouse.y;// Mouse angle (not currently used but kept for potential future use)\nmouse.a=Math.atan2(dy,dx);movePoints(time);drawLines();};// Start animation loop\nrafRef.current=requestAnimationFrame(tick);return()=>{if(rafRef.current){cancelAnimationFrame(rafRef.current);rafRef.current=null;}};},[waveSpeed,waveAmplitude,mouseInfluence,seed,preview]);// Set SVG size using clientWidth/clientHeight for proper Framer canvas sizing\nconst setSize=()=>{if(!containerRef.current||!svgRef.current)return;const container=containerRef.current;const width=container.clientWidth||container.offsetWidth||1;const height=container.clientHeight||container.offsetHeight||1;// Store dimensions for mouse calculations\nboundingRef.current={width,height,left:0,top:0,right:width,bottom:height,x:0,y:0,toJSON:()=>({})};svgRef.current.style.width=`${width}px`;svgRef.current.style.height=`${height}px`;};// Setup lines - more points for smoother curves\nconst setLines=()=>{if(!svgRef.current||!boundingRef.current)return;const{width,height}=boundingRef.current;linesRef.current=[];// Clear existing paths\npathsRef.current.forEach(path=>{path.remove();});pathsRef.current=[];// Use configurable spacing based on lineSpacing prop\n// When lineSpacing = 1: xGap = 8 (dense, many lines)\n// When lineSpacing = 0: xGap = 167 (sparse, ~6 lines for typical width)\nconst baseSpacing=8;const xGap=baseSpacing+(1-lineSpacing)*159// Range: 8-167\n;// Use resolution to control point density (higher resolution = more points = smoother lines)\nconst baseYGap=4;const yGap=baseYGap+(1-resolution)*20// Range: 8-28 (lower resolution = bigger gaps = fewer points)\n;const oWidth=width+200;const oHeight=height+30;const totalLines=Math.ceil(oWidth/xGap);const totalPoints=Math.ceil(oHeight/yGap);const xStart=(width-xGap*totalLines)/2;const yStart=(height-yGap*totalPoints)/2;// Create vertical lines\nfor(let i=0;i<totalLines;i++){const points=[];for(let j=0;j<totalPoints;j++){const point={x:xStart+xGap*i,y:yStart+yGap*j,wave:{x:0,y:0},cursor:{x:0,y:0,vx:0,vy:0}};points.push(point);}// Create SVG path\nconst path=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");path.classList.add(\"a__line\");path.classList.add(\"js-line\");path.setAttribute(\"fill\",\"none\");path.setAttribute(\"stroke\",strokeColor);path.setAttribute(\"stroke-width\",\"1\");svgRef.current.appendChild(path);pathsRef.current.push(path);// Add points\nlinesRef.current.push(points);}};// Resize handler\nconst onResize=()=>{const container=containerRef.current;const probe=zoomProbeRef.current;if(!container||!probe)return;const rawWidth=container.clientWidth||container.offsetWidth||1;const rawHeight=container.clientHeight||container.offsetHeight||1;const zoom=probe.getBoundingClientRect().width/20;const safeZoom=Math.max(zoom,1e-4);const width=rawWidth/safeZoom;const height=rawHeight/safeZoom;const EPSILON=1;const lastSize=lastSizeRef.current;const sizeChanged=Math.abs(width-lastSize.width)>EPSILON||Math.abs(height-lastSize.height)>EPSILON;if(!sizeChanged)return;lastSizeRef.current={width,height,zoom:safeZoom};setSize();setLines();// When preview is off or component not visible, initialize static wave positions immediately\n// When preview is on and visible, let the animation loop handle rendering (no interruption)\nconst shouldAnimate=(!isCanvasRef.current||preview)&&isVisibleRef.current;if(!shouldAnimate){movePoints(0);drawLines();}};// Mouse handler\nconst onMouseMove=e=>{updateMousePosition(e.pageX,e.pageY);};// Touch handler\nconst onTouchMove=e=>{e.preventDefault();const touch=e.touches[0];updateMousePosition(touch.clientX,touch.clientY);};// Update mouse position using proper container bounds\nconst updateMousePosition=(x,y)=>{if(!boundingRef.current||!containerRef.current)return;const mouse=mouseRef.current;const rect=containerRef.current.getBoundingClientRect();mouse.x=x-rect.left;mouse.y=y-rect.top+window.scrollY;if(!mouse.set){mouse.sx=mouse.x;mouse.sy=mouse.y;mouse.lx=mouse.x;mouse.ly=mouse.y;mouse.set=true;}};// Move points - smoother wave motion (optimized)\nconst movePoints=time=>{const{current:lines}=linesRef;const{current:mouse}=mouseRef;const{current:noise}=noiseRef;if(!noise)return;// Cache common calculations\nconst speedMultiplier=waveSpeed*.002;const amplitudeMultiplier=waveAmplitude*2;const influenceMultiplier=mouseInfluence*7e-4;const mouseSx=mouse.sx;const mouseSy=mouse.sy;const mouseVs=mouse.vs;const l=Math.max(175,mouseVs);for(let i=0;i<lines.length;i++){const points=lines[i];for(let j=0;j<points.length;j++){const p=points[j];// Wave movement\nconst baseMove=noise(p.x*.003,p.y*.002)*8;const move=waveSpeed>0?baseMove+time*speedMultiplier:baseMove;p.wave.x=Math.cos(move)*12*amplitudeMultiplier;p.wave.y=Math.sin(move)*6*amplitudeMultiplier;// Mouse effect - use direction from point to mouse\nconst dx=p.x-mouseSx;const dy=p.y-mouseSy;const d=Math.hypot(dx,dy);if(d<l){const s=1-d/l;const f=Math.cos(d*.001)*s*l*mouseVs*influenceMultiplier;const angleToPoint=Math.atan2(dy,dx);p.cursor.vx+=Math.cos(angleToPoint)*f;p.cursor.vy+=Math.sin(angleToPoint)*f;}// Spring restoration\np.cursor.vx+=-p.cursor.x*.01;p.cursor.vy+=-p.cursor.y*.01;// Damping\np.cursor.vx*=.95;p.cursor.vy*=.95;// Update position\np.cursor.x+=p.cursor.vx;p.cursor.y+=p.cursor.vy;// Clamp\np.cursor.x=Math.min(50,Math.max(-50,p.cursor.x));p.cursor.y=Math.min(50,Math.max(-50,p.cursor.y));}}};// Get moved point coordinates\nconst moved=(point,withCursorForce=true)=>{const coords={x:point.x+point.wave.x+(withCursorForce?point.cursor.x:0),y:point.y+point.wave.y+(withCursorForce?point.cursor.y:0)};return coords;};// Draw lines - using line segments (optimized with array join)\nconst drawLines=()=>{const{current:lines}=linesRef;const{current:paths}=pathsRef;for(let lIndex=0;lIndex<lines.length;lIndex++){const points=lines[lIndex];const path=paths[lIndex];if(!points||points.length<2||!path)continue;// Build path string with array (faster than string concatenation)\nconst pathParts=[];// First point\nconst firstPoint=moved(points[0],false);pathParts.push(`M ${firstPoint.x} ${firstPoint.y}`);// Connect points with lines\nfor(let i=1;i<points.length;i++){const current=moved(points[i]);pathParts.push(`L ${current.x} ${current.y}`);}path.setAttribute(\"d\",pathParts.join(\"\"));}};return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{backgroundColor:backgroundColor||\"transparent\",position:\"relative\",margin:0,padding:0,width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"svg\",{ref:svgRef,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",display:\"block\"},xmlns:\"http://www.w3.org/2000/svg\"}),/*#__PURE__*/_jsx(\"div\",{ref:zoomProbeRef,style:{position:\"absolute\",width:20,height:20,opacity:0,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:boundingRef.current?.width||800,height:boundingRef.current?.height||600,opacity:0,pointerEvents:\"none\",zIndex:-1}})]});}// Property controls for Framer\naddPropertyControls(InteractiveWaveBackground,{preview:{type:ControlType.Boolean,title:\"Preview\",defaultValue:true},lineSpacing:{type:ControlType.Number,title:\"Amount\",min:0,max:1,step:.05,defaultValue:.5},waveSpeed:{type:ControlType.Number,title:\"Speed\",min:0,max:1,step:.1,defaultValue:.5},waveAmplitude:{type:ControlType.Number,title:\"Amplitude\",min:0,max:1,step:.1,defaultValue:.5},mouseInfluence:{type:ControlType.Number,title:\"Hover Force\",min:0,max:1,step:.1,defaultValue:.5},seed:{type:ControlType.Number,title:\"Seed\",min:0,max:1,step:.1,defaultValue:.5},resolution:{type:ControlType.Number,title:\"Resolution\",min:0,max:1,step:.1,defaultValue:.5},strokeColor:{type:ControlType.Color,title:\"Stroke\",defaultValue:\"#ffffff\"},backgroundColor:{type:ControlType.Color,optional:true,title:\"Background\",defaultValue:\"#000000\",description:\"More components at [Framer University](https://frameruni.link/cc).\"}});// Display name for Framer UI\nInteractiveWaveBackground.displayName=\"Interactive Wave Background\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InteractiveWaveBackground\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"800\",\"framerIntrinsicHeight\":\"600\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InteractiveWaveBackground_prod.map"],"mappings":"yVCQG,SAAgB,EAAQ,CAAC,MAAI,OAAK,aAAW,YAAU,QAAM,UAAQ,eAAa,eAAa,cAAY,YAAU,QAAM,GAAG,GAAO,CAAC,IAAM,EAAS,GAAe,CAAO,EAAW,IAAO,MAAY,EAAc,GAAU,IAAY,OAAO,CAAC,EAAgB,CAAC,EAAa,GAAcA,MAAe,GAAK,GAAM,CAAM,CAAC,EAAU,GAAYA,MAAe,GAAK,CAAC,EAAc,CAAM,CAAC,EAAU,GAAYC,EAAS,GAAM,CAAO,EAAa,EAAU,EAAM,CAAO,EAAgB,IAAe,mBAAmB,IAAe,MAAM,GAAG,IAAM,GAAI,OAAoB,EAAK,EAAa,EAAE,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