{"version":3,"file":"PixelGrid.CXDA9lZc.mjs","names":["useRef","useMemo","useCallback"],"sources":["https:/framerusercontent.com/modules/3xycIZADXvlpoJYa2SrX/L8FBfHYCQQUqaQEiklfu/PixelGrid.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useCallback,useEffect,useMemo,useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useInView}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function PixelGrid(props){const{style,colors=[\"#C6F36B\",\"#A8E55C\",\"#8FD94A\",\"#BFEFD6\",\"#9BE3F0\",\"#7FD8C0\"],backgroundColor=\"#FBFCF7\",backgroundImage,cellSize=28,gridLineColor=\"#E8E9E0\",gridLineOpacity=.6,density=15,hoverRadius=2.2,twinkleAmount=30,hoverBrightness=.72,hoverFadeInSpeed=14,hoverFadeOutSpeed=2.8,driftSpeed=.2,driftIntensity=.22,transitionSpeed=6,enableHoverOnTouch=false,animationMode=\"auto\"}=props;const isStatic=useIsStaticRenderer();const containerRef=useRef(null);const isInView=useInView(containerRef,{amount:.01});const canvasRef=useRef(null);const rafRef=useRef(null);const resizeObserverRef=useRef(null);const pointerRef=useRef({x:0,y:0,inside:false});const targetOnRef=useRef(new Uint8Array(0));const alphaRef=useRef(new Float32Array(0));const hoverBoostRef=useRef(new Float32Array(0));const colorIndexRef=useRef(new Uint16Array(0));const bgImageElementRef=useRef(null);const bgImageSrcRef=useRef(\"\");const driftToggleAccumulatorRef=useRef(0);const densityCorrectionAccumulatorRef=useRef(0);// Running count of cells currently \"on\", kept in sync at every mutation\n// site so applyIdleDrift doesn't need to rescan the whole grid each frame.\nconst onCountRef=useRef(0);// Reused scratch buffer for applyHoverSwap so it doesn't allocate a\n// grid-sized typed array every single animation frame.\nconst outsideMaskRef=useRef(new Uint8Array(0));const gridRef=useRef({width:0,height:0,dpr:1,columns:1,rows:1,cell:28});const lastFrameTimeRef=useRef(0);const resolvedBackgroundCacheRef=useRef(null);const isTouchDevice=useMemo(()=>{if(typeof window===\"undefined\")return false;return window.matchMedia?.(\"(pointer: coarse)\").matches??false;},[]);const hoverEnabled=!isTouchDevice||enableHoverOnTouch;// \"auto\" (default) keeps the animation static on touch/coarse-pointer\n// devices (typically mobile) while leaving desktop untouched; \"always\"\n// and \"off\" are explicit overrides.\nconst shouldRunAnimation=useMemo(()=>{if(animationMode===\"off\")return false;if(animationMode===\"always\")return true;return!isTouchDevice;},[animationMode,isTouchDevice]);const palette=useMemo(()=>{return Array.isArray(colors)&&colors.length>0?colors:[\"#C6F36B\",\"#A8E55C\",\"#8FD94A\",\"#BFEFD6\",\"#9BE3F0\",\"#7FD8C0\"];},[colors]);const stablePaletteIndex=useCallback(cellId=>{const length=Math.max(1,palette.length);if(length<=1)return 0;const hashed=Math.imul(cellId^2654435769,2654435761)>>>0;return hashed%length;},[palette.length]);const clamp01=useCallback(value=>Math.max(0,Math.min(1,value)),[]);const smoothstep=useCallback((edge0,edge1,x)=>{const t=clamp01((x-edge0)/(edge1-edge0));return t*t*(3-2*t);},[clamp01]);const hash01=useCallback(value=>{let x=value|0;x=Math.imul(x^61,73244475);x^=x>>>16;x=Math.imul(x,73244475);x^=x>>>16;return(x>>>0)/4294967295;},[]);const initCells=useCallback((deterministic=false)=>{const{columns,rows}=gridRef.current;const total=Math.max(1,columns*rows);const nextTarget=new Uint8Array(total);const nextAlpha=new Float32Array(total);const nextHoverBoost=new Float32Array(total);const nextColor=new Uint16Array(total);const densityRatio=clamp01(density/100);const targetOnCount=Math.round(total*densityRatio);for(let i=0;i<total;i++){nextColor[i]=stablePaletteIndex(i);}if(deterministic){const seedBase=columns*73856093^rows*19349663^Math.round(density)*83492791;for(let i=0;i<total;i++){nextTarget[i]=hash01(seedBase^i)<densityRatio?1:0;}}else{for(let i=0;i<targetOnCount;i++){const id=Math.floor(Math.random()*total);nextTarget[id]=1;}}let onCount=0;for(let i=0;i<total;i++){const on=nextTarget[i]===1;nextAlpha[i]=on?1:0;if(on)onCount++;}targetOnRef.current=nextTarget;alphaRef.current=nextAlpha;hoverBoostRef.current=nextHoverBoost;colorIndexRef.current=nextColor;onCountRef.current=onCount;driftToggleAccumulatorRef.current=0;densityCorrectionAccumulatorRef.current=0;},[clamp01,density,hash01,stablePaletteIndex]);const swapOnOutsideOff=useCallback((toTurnOn,outsideMask)=>{const targets=targetOnRef.current;const total=targets.length;if(total===0||toTurnOn.length===0)return;let turnedOn=0;for(const id of toTurnOn){if(id<0||id>=total)continue;if(targets[id]===0){targets[id]=1;turnedOn++;}}if(turnedOn<=0)return;onCountRef.current+=turnedOn;let turnedOff=0;let attempts=0;const maxAttempts=turnedOn*60;while(turnedOff<turnedOn&&attempts<maxAttempts){attempts++;const pick=Math.floor(Math.random()*total);if(targets[pick]===0)continue;if(outsideMask&&outsideMask[pick]===0)continue;targets[pick]=0;turnedOff++;}onCountRef.current-=turnedOff;},[]);const applyHoverSwap=useCallback(dt=>{if(!hoverEnabled)return;const pointer=pointerRef.current;if(!pointer.inside)return;const{columns,rows,cell}=gridRef.current;const total=columns*rows;if(total<=0)return;const radiusPx=Math.max(.5,hoverRadius)*cell;const radiusSq=radiusPx*radiusPx;const minCol=Math.max(0,Math.floor((pointer.x-radiusPx)/cell));const maxCol=Math.min(columns-1,Math.ceil((pointer.x+radiusPx)/cell));const minRow=Math.max(0,Math.floor((pointer.y-radiusPx)/cell));const maxRow=Math.min(rows-1,Math.ceil((pointer.y+radiusPx)/cell));const turnOn=[];// Reuse a persistent buffer instead of allocating a fresh\n// grid-sized Uint8Array every frame while the pointer is inside.\nlet outsideMask=outsideMaskRef.current;if(outsideMask.length!==total){outsideMask=new Uint8Array(total);outsideMaskRef.current=outsideMask;}outsideMask.fill(1);const hoverBoost=hoverBoostRef.current;const amount=clamp01(twinkleAmount/100);const perCellChance=dt*(.34+amount*1.3);const maxTurnOn=Math.max(1,Math.round((1.4+amount*4.6)*(dt*60)));for(let row=minRow;row<=maxRow;row++){for(let col=minCol;col<=maxCol;col++){if(turnOn.length>=maxTurnOn)break;const centerX=col*cell+cell*.5;const centerY=row*cell+cell*.5;const dx=centerX-pointer.x;const dy=centerY-pointer.y;const distSq=dx*dx+dy*dy;if(distSq>radiusSq)continue;const id=row*columns+col;outsideMask[id]=0;const dist=Math.sqrt(distSq);const normalized=1-clamp01(dist/radiusPx);const feather=smoothstep(0,1,normalized);const probability=perCellChance*feather*feather;hoverBoost[id]=Math.max(hoverBoost[id],feather);if(targetOnRef.current[id]===1)continue;if(Math.random()<probability){turnOn.push(id);}}if(turnOn.length>=maxTurnOn)break;}// Relax strict 1:1 compensation slightly so local hover twinkle remains visible\nconst compensatedTurnOn=turnOn.length>0?turnOn.slice(0,Math.max(1,Math.round(turnOn.length*.8))):turnOn;swapOnOutsideOff(compensatedTurnOn,outsideMask);},[clamp01,hoverEnabled,hoverRadius,smoothstep,swapOnOutsideOff,twinkleAmount]);const applyIdleDrift=useCallback(dt=>{const targets=targetOnRef.current;const total=targets.length;if(total===0)return;const safeDt=Math.min(.1,Math.max(0,dt));if(safeDt<=0)return;const speedFactor=Math.max(0,driftSpeed);const intensityFactor=Math.max(0,driftIntensity);const togglesPerSecond=total*.0014*(.22+intensityFactor)*(.28+speedFactor);driftToggleAccumulatorRef.current+=safeDt*togglesPerSecond;const count=Math.min(Math.max(1,Math.round(total*.01)),Math.floor(driftToggleAccumulatorRef.current));driftToggleAccumulatorRef.current-=count;const turnOn=[];if(count>0){let attempts=0;while(turnOn.length<count&&attempts<count*40){attempts++;const id=Math.floor(Math.random()*total);if(targets[id]===0)turnOn.push(id);}swapOnOutsideOff(turnOn);}const targetCount=Math.round(total*clamp01(density/100));// onCountRef is kept in sync by every mutation site (initCells,\n// swapOnOutsideOff, and the correction loop below), so this no\n// longer needs to rescan every cell each frame.\nconst currentOn=onCountRef.current;const delta=targetCount-currentOn;if(delta===0)return;const correctionPerSecond=total*.0015+Math.abs(delta)*.08;densityCorrectionAccumulatorRef.current+=safeDt*correctionPerSecond;const correctionCount=Math.min(Math.abs(delta),Math.floor(densityCorrectionAccumulatorRef.current));densityCorrectionAccumulatorRef.current-=correctionCount;if(correctionCount<=0)return;if(delta<0){let toDisable=correctionCount;while(toDisable>0){const id=Math.floor(Math.random()*total);if(targets[id]===1){targets[id]=0;toDisable--;onCountRef.current--;}}}else{let toEnable=correctionCount;while(toEnable>0){const id=Math.floor(Math.random()*total);if(targets[id]===0){targets[id]=1;toEnable--;onCountRef.current++;}}}},[clamp01,density,driftIntensity,driftSpeed,swapOnOutsideOff]);const drawBackgroundCover=useCallback((ctx,width,height)=>{const image=bgImageElementRef.current;if(!image||!image.complete||!image.naturalWidth||!image.naturalHeight)return;const imageRatio=image.naturalWidth/image.naturalHeight;const canvasRatio=width/height;let drawWidth=width;let drawHeight=height;let dx=0;let dy=0;if(imageRatio>canvasRatio){drawHeight=height;drawWidth=drawHeight*imageRatio;dx=(width-drawWidth)*.5;}else{drawWidth=width;drawHeight=drawWidth/imageRatio;dy=(height-drawHeight)*.5;}ctx.drawImage(image,dx,dy,drawWidth,drawHeight);},[]);const resolveCssColorFromNode=useCallback((node,rawColor)=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return rawColor;const host=node.parentElement??document.body;if(!host)return rawColor;let probe=null;try{probe=document.createElement(\"span\");probe.style.position=\"absolute\";probe.style.pointerEvents=\"none\";probe.style.opacity=\"0\";probe.style.color=rawColor;probe.style.backgroundColor=rawColor;host.appendChild(probe);const computed=window.getComputedStyle(probe);const resolved=computed.backgroundColor||computed.color;return resolved&&resolved!==\"rgba(0, 0, 0, 0)\"?resolved:rawColor;}catch{return rawColor;}finally{probe?.remove();}},[]);const extractFirstColorStop=useCallback(gradientValue=>{const compact=gradientValue.replace(/\\s+/g,\" \");const inner=compact.includes(\"(\")?compact.slice(compact.indexOf(\"(\")+1,compact.lastIndexOf(\")\")):compact;const colorMatch=compact.match(/(rgba?\\([^)]*\\)|hsla?\\([^)]*\\)|#[0-9a-fA-F]{3,8}\\b|transparent\\b|[a-zA-Z]+)/i);const fallback=colorMatch?.[1]??\"#FBFCF7\";const tokens=inner.split(/,(?![^(]*\\))/g).map(token=>token.trim()).filter(Boolean);for(const token of tokens){const stopMatch=token.match(/^(rgba?\\([^)]*\\)|hsla?\\([^)]*\\)|#[0-9a-fA-F]{3,8}\\b|transparent\\b|[a-zA-Z]+)\\b/i);if(!stopMatch?.[1])continue;const candidate=stopMatch[1].toLowerCase();if(candidate===\"linear-gradient\"||candidate===\"radial-gradient\"||candidate===\"conic-gradient\"||candidate===\"to\"||candidate===\"circle\"||candidate===\"ellipse\"){continue;}return stopMatch[1];}return fallback;},[]);const createLinearGradientFill=useCallback((ctx,node,gradientValue,width,height)=>{try{const inside=gradientValue.slice(gradientValue.indexOf(\"(\")+1,gradientValue.lastIndexOf(\")\"));const tokens=inside.split(/,(?![^(]*\\))/g).map(token=>token.trim()).filter(Boolean);if(tokens.length<2)return extractFirstColorStop(gradientValue);const first=tokens[0].toLowerCase();const hasDirection=first.includes(\"deg\")||first.startsWith(\"to \");let angleDeg=180;const stops=hasDirection?tokens.slice(1):tokens;if(hasDirection){if(first.includes(\"deg\")){const parsed=Number.parseFloat(first);if(Number.isFinite(parsed))angleDeg=parsed;}else{const hasTop=first.includes(\"top\");const hasBottom=first.includes(\"bottom\");const hasLeft=first.includes(\"left\");const hasRight=first.includes(\"right\");if(hasTop&&hasLeft)angleDeg=315;else if(hasTop&&hasRight)angleDeg=45;else if(hasBottom&&hasLeft)angleDeg=225;else if(hasBottom&&hasRight)angleDeg=135;else if(hasTop)angleDeg=0;else if(hasRight)angleDeg=90;else if(hasBottom)angleDeg=180;else if(hasLeft)angleDeg=270;}}const radians=(angleDeg-90)*Math.PI/180;const cx=width*.5;const cy=height*.5;const half=Math.sqrt(width*width+height*height)*.5;const x0=cx-Math.cos(radians)*half;const y0=cy-Math.sin(radians)*half;const x1=cx+Math.cos(radians)*half;const y1=cy+Math.sin(radians)*half;const gradient=ctx.createLinearGradient(x0,y0,x1,y1);if(stops.length===0)return extractFirstColorStop(gradientValue);for(let i=0;i<stops.length;i++){const stop=stops[i];const stopMatch=stop.match(/^(rgba?\\([^)]*\\)|hsla?\\([^)]*\\)|#[0-9a-fA-F]{3,8}\\b|transparent\\b|[a-zA-Z]+)\\s*(.*)$/i);const rawColor=stopMatch?.[1]??extractFirstColorStop(stop);const resolvedColor=rawColor.includes(\"var(\")?resolveCssColorFromNode(node,rawColor):rawColor;const positionText=stopMatch?.[2]?.trim();let position=stops.length===1?0:i/Math.max(1,stops.length-1);if(positionText){const percent=positionText.match(/^(-?\\d*\\.?\\d+)%$/);if(percent){position=clamp01(Number.parseFloat(percent[1])/100);}}gradient.addColorStop(clamp01(position),resolvedColor);}return gradient;}catch{return extractFirstColorStop(gradientValue);}},[clamp01,extractFirstColorStop,resolveCssColorFromNode]);const resolveCanvasBackgroundFill=useCallback((ctx,node,rawValue,width,height)=>{const input=(rawValue??\"\").trim()||\"#FBFCF7\";const cached=resolvedBackgroundCacheRef.current;if(cached&&cached.raw===input&&cached.width===width&&cached.height===height){return cached.resolved;}let resolved=input;const normalized=input.toLowerCase();try{if(normalized.includes(\"linear-gradient(\")){resolved=createLinearGradientFill(ctx,node,input,width,height);}else if(normalized.includes(\"radial-gradient(\")||normalized.includes(\"conic-gradient(\")){const firstStop=extractFirstColorStop(input);resolved=firstStop.includes(\"var(\")?resolveCssColorFromNode(node,firstStop):firstStop;}else if(input.includes(\"var(\")){resolved=resolveCssColorFromNode(node,input);}}catch{resolved=input||\"#FBFCF7\";}resolvedBackgroundCacheRef.current={raw:input,width,height,resolved};return resolved;},[createLinearGradientFill,extractFirstColorStop,resolveCssColorFromNode]);const recomputeGrid=useCallback(()=>{const container=containerRef.current;const canvas=canvasRef.current;if(!container||!canvas)return;const rect=container.getBoundingClientRect();const width=Math.max(1,rect.width);const height=Math.max(1,rect.height);const dpr=typeof window!==\"undefined\"?Math.max(1,window.devicePixelRatio||1):1;const columns=Math.max(1,Math.round(width/Math.max(8,cellSize)));const actualCell=width/columns;const rows=Math.max(1,Math.floor(height/actualCell));gridRef.current={width,height,dpr,columns,rows,cell:actualCell};canvas.width=Math.round(width*dpr);canvas.height=Math.round(height*dpr);canvas.style.width=\"100%\";canvas.style.height=\"100%\";initCells();},[cellSize,initCells]);const drawGridFrame=useCallback((timeMs,staticFrame)=>{const canvas=canvasRef.current;if(!canvas)return;const ctx=canvas.getContext(\"2d\");if(!ctx)return;const{width,height,dpr,columns,rows,cell}=gridRef.current;if(width<=0||height<=0)return;ctx.setTransform(dpr,0,0,dpr,0,0);ctx.clearRect(0,0,width,height);ctx.fillStyle=resolveCanvasBackgroundFill(ctx,canvas,backgroundColor,width,height);ctx.fillRect(0,0,width,height);if(backgroundImage?.src){drawBackgroundCover(ctx,width,height);}if(gridLineOpacity>.001){ctx.globalAlpha=clamp01(gridLineOpacity);ctx.strokeStyle=gridLineColor;ctx.lineWidth=1/dpr;ctx.beginPath();for(let col=0;col<=columns;col++){const x=col*cell+.5/dpr;ctx.moveTo(x,0);ctx.lineTo(x,rows*cell);}for(let row=0;row<=rows;row++){const y=row*cell+.5/dpr;ctx.moveTo(0,y);ctx.lineTo(columns*cell,y);}ctx.stroke();}const targets=targetOnRef.current;const alpha=alphaRef.current;const hoverBoost=hoverBoostRef.current;const colorIndices=colorIndexRef.current;const total=columns*rows;if(targets.length!==total||alpha.length!==total||hoverBoost.length!==total||colorIndices.length!==total){initCells(staticFrame);}const dt=staticFrame?1/60:lastFrameTimeRef.current>0?(timeMs-lastFrameTimeRef.current)/1e3:1/60;lastFrameTimeRef.current=timeMs;if(!staticFrame){applyIdleDrift(dt);applyHoverSwap(dt);}const baseFadeOutStep=Math.max(.05,transitionSpeed*.32)*dt;const baseFadeInStep=Math.max(.12,transitionSpeed*.85)*dt;const hoverInStep=Math.max(baseFadeInStep,hoverFadeInSpeed*dt);const hoverOutStep=Math.max(.04,hoverFadeOutSpeed*dt);// Nested row/col loop instead of id % columns / Math.floor(id / columns)\n// per cell — same x/y/id sequence as before, cheaper per-cell math.\nlet id=0;for(let row=0;row<rows;row++){const y=row*cell;let x=0;for(let col=0;col<columns;col++){const targetAlpha=targets[id]===1?1:0;const currentAlpha=alpha[id];const hasHoverBoost=hoverBoost[id]>.001;const step=targetAlpha>currentAlpha?hasHoverBoost?hoverInStep:baseFadeInStep:hasHoverBoost?hoverOutStep:baseFadeOutStep;const nextAlpha=currentAlpha+(targetAlpha-currentAlpha)*Math.min(1,step);alpha[id]=nextAlpha;const boostedAlpha=clamp01(nextAlpha+hoverBoost[id]*hoverBrightness);if(boostedAlpha>.001){ctx.globalAlpha=boostedAlpha;ctx.fillStyle=palette[colorIndices[id]%palette.length]??palette[0];ctx.fillRect(x,y,cell,cell);}hoverBoost[id]=Math.max(0,hoverBoost[id]-dt*1.8);id++;x+=cell;}}if(staticFrame){for(let i=0;i<total;i++){alpha[i]=targets[i]===1?1:0;}}ctx.globalAlpha=1;},[backgroundColor,backgroundImage,clamp01,drawBackgroundCover,applyIdleDrift,applyHoverSwap,gridLineColor,gridLineOpacity,initCells,palette,resolveCanvasBackgroundFill,hoverBrightness,hoverFadeInSpeed,hoverFadeOutSpeed,transitionSpeed]);const paintStaticSnapshot=useCallback(()=>{const canvas=canvasRef.current;const container=containerRef.current;if(!canvas)return;const rect=container?.getBoundingClientRect();const fallbackWidth=320;const fallbackHeight=200;const width=Math.max(1,rect?.width??fallbackWidth);const height=Math.max(1,rect?.height??fallbackHeight);const dpr=typeof window!==\"undefined\"?Math.max(1,window.devicePixelRatio||1):1;const columns=Math.max(1,Math.round(width/Math.max(8,cellSize)));const actualCell=width/columns;const rows=Math.max(1,Math.floor(height/actualCell));gridRef.current={width,height,dpr,columns,rows,cell:actualCell};canvas.width=Math.round(width*dpr);canvas.height=Math.round(height*dpr);canvas.style.width=\"100%\";canvas.style.height=\"100%\";initCells(true);drawGridFrame(typeof performance!==\"undefined\"?performance.now():0,true);},[cellSize,drawGridFrame,initCells]);const setCanvasRef=useCallback(node=>{canvasRef.current=node;if(!node||!isStatic)return;paintStaticSnapshot();},[isStatic,paintStaticSnapshot]);useEffect(()=>{if(typeof window===\"undefined\")return;const container=containerRef.current;const canvas=canvasRef.current;if(!container||!canvas)return;const updatePointerFromEvent=event=>{const rect=container.getBoundingClientRect();const x=event.clientX-rect.left;const y=event.clientY-rect.top;pointerRef.current.x=x;pointerRef.current.y=y;pointerRef.current.inside=x>=0&&y>=0&&x<=rect.width&&y<=rect.height;};const onPointerMove=event=>updatePointerFromEvent(event);const onPointerLeave=()=>{pointerRef.current.inside=false;};// Framer's static renderer OR the mobile/animation-off override both\n// want a single static frame instead of a running RAF loop.\nconst showStaticFrame=isStatic||!shouldRunAnimation;const listenersActive=!isStatic&&shouldRunAnimation&&hoverEnabled;recomputeGrid();resizeObserverRef.current?.disconnect();resizeObserverRef.current=new ResizeObserver(()=>{recomputeGrid();if(showStaticFrame)drawGridFrame(performance.now(),true);});resizeObserverRef.current.observe(container);if(listenersActive){// Window-level pointermove already receives bubbled pointer\n// events from anywhere on the page, including inside the\n// container, so a separate container-level \"pointermove\"\n// listener would just run the same update twice per move.\n// pointerenter/leave/cancel still need their own listeners\n// since they don't bubble the same way and cover edge cases\n// (e.g. the pointer leaving the browser window entirely).\ncontainer.addEventListener(\"pointerenter\",onPointerMove);container.addEventListener(\"pointerleave\",onPointerLeave);container.addEventListener(\"pointercancel\",onPointerLeave);window.addEventListener(\"pointermove\",onPointerMove,{passive:true});}if(showStaticFrame){drawGridFrame(typeof performance!==\"undefined\"?performance.now():0,true);}else if(isInView){const tick=time=>{drawGridFrame(time,false);rafRef.current=window.requestAnimationFrame(tick);};rafRef.current=window.requestAnimationFrame(tick);}// When out of view, no frame is requested at all here: the canvas\n// keeps showing its last painted state, and the loop resumes (via\n// this effect re-running) once isInView flips back to true — instead\n// of spinning an empty requestAnimationFrame loop every frame while\n// off-screen.\nreturn()=>{if(rafRef.current!==null){window.cancelAnimationFrame(rafRef.current);rafRef.current=null;}if(listenersActive){container.removeEventListener(\"pointerenter\",onPointerMove);container.removeEventListener(\"pointerleave\",onPointerLeave);container.removeEventListener(\"pointercancel\",onPointerLeave);window.removeEventListener(\"pointermove\",onPointerMove);}resizeObserverRef.current?.disconnect();resizeObserverRef.current=null;};},[drawGridFrame,hoverEnabled,isInView,isStatic,recomputeGrid,shouldRunAnimation]);useEffect(()=>{if(typeof window===\"undefined\")return;const src=backgroundImage?.src??\"\";if(!src){bgImageElementRef.current=null;bgImageSrcRef.current=\"\";return;}if(src===bgImageSrcRef.current)return;const img=new window.Image;img.crossOrigin=\"anonymous\";img.decoding=\"async\";img.src=src;bgImageSrcRef.current=src;img.onload=()=>{bgImageElementRef.current=img;if(isStatic)drawGridFrame(performance.now(),true);};img.onerror=()=>{bgImageElementRef.current=null;};},[backgroundImage,drawGridFrame,isStatic]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",...style},children:/*#__PURE__*/_jsx(\"canvas\",{ref:setCanvasRef,\"aria-hidden\":true,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",display:\"block\"}})});}addPropertyControls(PixelGrid,{colors:{type:ControlType.Array,title:\"Colors\",control:{type:ControlType.Color,defaultValue:\"#C6F36B\"},defaultValue:[\"#C6F36B\",\"#A8E55C\",\"#8FD94A\",\"#BFEFD6\",\"#9BE3F0\",\"#7FD8C0\"]},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FBFCF7\"},backgroundImage:{type:ControlType.ResponsiveImage,title:\"Background Image\"},cellSize:{type:ControlType.Number,title:\"Cell Size\",min:8,max:120,step:1,defaultValue:28,unit:\"px\"},gridLineColor:{type:ControlType.Color,title:\"Grid Color\",defaultValue:\"#E8E9E0\"},gridLineOpacity:{type:ControlType.Number,title:\"Grid Opacity\",min:0,max:1,step:.01,defaultValue:.6},density:{type:ControlType.Number,title:\"Density\",min:0,max:100,step:.01,defaultValue:15,unit:\"%\"},hoverRadius:{type:ControlType.Number,title:\"Hover Radius\",min:.5,max:6,step:.1,defaultValue:2.2},twinkleAmount:{type:ControlType.Number,title:\"Twinkle Amount\",min:0,max:100,step:1,defaultValue:30,unit:\"%\"},hoverBrightness:{type:ControlType.Number,title:\"Hover Brightness\",min:0,max:1.5,step:.01,defaultValue:.72},hoverFadeInSpeed:{type:ControlType.Number,title:\"Hover Fade In\",min:.1,max:30,step:.1,defaultValue:14},hoverFadeOutSpeed:{type:ControlType.Number,title:\"Hover Fade Out\",min:.05,max:15,step:.05,defaultValue:2.8},driftSpeed:{type:ControlType.Number,title:\"Drift Speed\",min:0,max:3,step:.05,defaultValue:.2},driftIntensity:{type:ControlType.Number,title:\"Drift Intensity\",min:0,max:3,step:.05,defaultValue:.22},transitionSpeed:{type:ControlType.Number,title:\"Fade Speed\",min:.1,max:20,step:.05,defaultValue:6},enableHoverOnTouch:{type:ControlType.Boolean,title:\"Hover on Touch\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},animationMode:{type:ControlType.Enum,title:\"Animation\",options:[\"auto\",\"always\",\"off\"],optionTitles:[\"Off on Mobile\",\"Always On\",\"Always Off\"],defaultValue:\"auto\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PixelGrid\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PixelGrid.map"],"mappings":"sQAGG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,CAAC,UAAU,UAAU,UAAU,UAAU,UAAU,SAAS,EAAE,kBAAgB,UAAU,kBAAgB,WAAS,GAAG,gBAAc,UAAU,kBAAgB,GAAG,UAAQ,GAAG,cAAY,IAAI,gBAAc,GAAG,kBAAgB,IAAI,mBAAiB,GAAG,qBAAkB,IAAI,aAAW,GAAG,iBAAe,IAAI,kBA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