{"version":3,"file":"NodeSystemThree.COMGZBq1.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/8WCtZJ8rZJ3QFBmKyLh5/Ujmn1zhZ9qoQAXBhpq8l/NodeSystemThree.js"],"sourcesContent":["\"use client\";import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// ─── Dynamic dep (shared esm.sh copy of Three) ──────────────────────────────────\n// Three.js is loaded on demand from esm.sh instead of the bare \"three\" import\n// resolved by Framer. This keeps the ~149 KB Three bundle OUT of the initial page\n// load (it only loads once this section approaches the viewport), and shares ONE\n// copy of Three with the other esm.sh components (ThreeShaderSmoke) instead of\n// shipping a second bundled copy.\n//\n// NOTE: sub-path addon imports (three/examples/jsm/...) are intentionally avoided.\n// Line thickness is rendered with instanced thin quads instead of the fat-lines\n// addon, so only the bare module is needed.\nlet THREE=null;async function loadDeps(){if(!THREE){const m=await import(/* webpackIgnore: true */\"https://esm.sh/three@0.160.0?bundle\");THREE=m;}}// ─── Constants ────────────────────────────────────────────────────────────────\nconst SPRING_K=.045;const SPRING_D=.8;const MAX_LINES=2048;// Intro: each node travels for this fraction of globalT [0-1]\nconst TRAVEL_WIN=.32;// ─── Easing ───────────────────────────────────────────────────────────────────\nfunction easeInOutCubic(t){return t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2;}function easeOutCubic(t){return 1-Math.pow(1-t,3);}function easeOutQuart(t){return 1-Math.pow(1-t,4);}function easeOutQuint(t){return 1-Math.pow(1-t,5);}function easeOutExpo(t){return t>=1?1:1-Math.pow(2,-10*t);}function easeOutSine(t){return Math.sin(t*Math.PI/2);}function linear(t){return t;}function clamp01(t){return t<0?0:t>1?1:t;}function lerp(a,b,t){return a+(b-a)*t;}const EASINGS={easeOutCubic,easeOutQuart,easeOutQuint,easeOutExpo,easeOutSine,easeInOutCubic,linear};// ─── Defaults ─────────────────────────────────────────────────────────────────\nconst DEFAULT_INDUSTRIES=[{label:\"DeepTech\"},{label:\"SaaS B2B\"},{label:\"Climate Tech\"},{label:\"Industry 4.0\"},{label:\"Robotics\"},{label:\"AI & Data\"},{label:\"Hardware\"}];// ─── Helpers ──────────────────────────────────────────────────────────────────\nfunction rng(seed){const x=Math.sin(seed*127.1+311.7)*43758.5453;return x-Math.floor(x);}function getIndustries(raw,count){const base=raw?.length?raw:DEFAULT_INDUSTRIES;const n=Math.max(1,Math.min(Math.round(count||base.length),16));return Array.from({length:n},(_,i)=>base[i]??{label:`Sector ${i+1}`});}function threeColor(hex){try{return new THREE.Color(hex);}catch{return new THREE.Color(328965);}}// ─── Component ────────────────────────────────────────────────────────────────\nexport default function JuncaNetworkThree(props){const{backgroundColor=\"#ffffff\",centerLabel=\"Junca\",hubLogo,hubLogoWidth=80,industries=[],labelCount=7,centerX=50,centerY=50,orbitScale=.85,angleOffset=0,ambientCount=45,hubNodeSize=8,industryNodeSize=5,ambientNodeSize=3,nodeColor=\"#050505\",hubColor=\"#ED3327\",hubLineColor=\"#050505\",hubLineWidth=1.5,hubLineOpacity=.35,ambLineColor=\"#888888\",ambLineWidth=.8,ambLineOpacity=.12,hubLabelColor=\"#ED3327\",labelColor=\"#050505\",hubFont={},labelFont={},labelOffsetY=10,motionAmount=1,motionSpeed=1,parallaxStrength=.04,connectionDist=160,edgeFadeStart=25,introTrigger=\"auto\",inViewThreshold=30,introDuration=3,introEasing=\"easeOutCubic\",// Performance profile — set per Framer breakpoint variant.\n// \"high\" = desktop, \"tablet\" = mid, \"mobile\" = lightest.\nqualityProfile=\"high\",// Distance (px) ahead of the viewport at which the WebGL scene is built.\npreloadDistance=900,style}=props;const wrapRef=useRef(null);const canvasRef=useRef(null);const labelsRef=useRef(null);// Live values readable by animation loop without rebuilding scene\nconst liveRef=useRef({hubLogo:hubLogo,parallaxStrength});liveRef.current.hubLogo=hubLogo;liveRef.current.parallaxStrength=parallaxStrength;// Gate the heavy WebGL setup until the section is near the viewport.\nconst[shouldInit,setShouldInit]=useState(false);const industriesKey=JSON.stringify(industries?.map(i=>i.label));// ── Lazy init ─────────────────────────────────────────────────────────────\n// Build the scene only once it approaches the viewport. This removes the\n// Three.js load + renderer/shader/scene construction (the ~2.4 s long task)\n// from the initial page load. Cheap IntersectionObserver, no Three needed.\nuseEffect(()=>{const wrap=wrapRef.current;if(!wrap)return;let done=false;const io=new IntersectionObserver(entries=>{if(entries[0]?.isIntersecting&&!done){done=true;setShouldInit(true);io.disconnect();}},{rootMargin:`${Math.max(0,preloadDistance)}px 0px`});io.observe(wrap);return()=>io.disconnect();},[preloadDistance]);useEffect(()=>{if(!shouldInit)return;const wrap=wrapRef.current;const canvas=canvasRef.current;if(!wrap||!canvas)return;// Three is fetched asynchronously (esm.sh). Build everything once it has\n// loaded; the effect's own cleanup waits on `disposed`/`cleanup`.\nlet disposed=false;let cleanup=()=>{};async function init(){await loadDeps();if(disposed||!THREE)return;let W=wrap.clientWidth||800;let H=wrap.clientHeight||600;// ── Performance profile ───────────────────────────────────────────\n// Bundled presets forced per Framer breakpoint variant.\nconst isMobile=qualityProfile===\"mobile\";const isTablet=qualityProfile===\"tablet\";const useAA=!isMobile// antialias off on phone\n;const drCap=isMobile?1.5:isTablet?1.75:2;const allowPara=!isMobile// parallax off on phone\n;const idleLineThrottle=isMobile?3:2// recompute network lines 1 frame / N (idle only)\n;// ── Renderer ──────────────────────────────────────────────────────\nconst renderer=new THREE.WebGLRenderer({canvas,alpha:true,antialias:useAA});renderer.setPixelRatio(Math.min(window.devicePixelRatio,drCap));renderer.setSize(W,H,false);// ── Scene ─────────────────────────────────────────────────────────\nconst scene=new THREE.Scene;// ── Camera — ortho, 1 world unit = 1 px, Y-up ────────────────────\nconst cam=new THREE.OrthographicCamera(-W/2,W/2,H/2,-H/2,-500,500);cam.position.z=1;// ── Build nodes ───────────────────────────────────────────────────\nconst inds=getIndustries(industries,labelCount);const nInds=inds.length;const cx=W*(centerX/100)-W/2;const cy=-(H*(centerY/100)-H/2);const rx=W*.42*orbitScale;const ry=H*.36*orbitScale;const offRad=angleOffset*Math.PI/180;const nodes=[];// Hub (fixed anchor, no parallax)\nnodes.push({id:0,pos:new THREE.Vector3(cx,cy,0),trueBase:new THREE.Vector3(cx,cy,0),base:new THREE.Vector3(cx,cy,0),vel:new THREE.Vector3,phase:0,speed:.22*motionSpeed,amp:3*motionAmount,isHub:true,isIndustry:false,label:centerLabel,baseSize:hubNodeSize,introDelay:0,depth:0});// Industry nodes — staggered sequentially so ONE node moves at a time\nconst staggerSpread=Math.min(.1*(nInds-1),.55);for(let i=0;i<nInds;i++){const jitter=(rng(i+4)-.5)*.22;const a=Math.PI*2*i/nInds+offRad+jitter;const bx=cx+Math.cos(a)*rx;const by=cy+Math.sin(a)*ry;nodes.push({id:i+1,pos:new THREE.Vector3(cx,cy,0),trueBase:new THREE.Vector3(bx,by,0),base:new THREE.Vector3(cx,cy,0),vel:new THREE.Vector3,phase:rng(i)*Math.PI*2,speed:(.16+rng(i+100)*.24)*motionSpeed,amp:(8+rng(i+200)*12)*motionAmount,isHub:false,isIndustry:true,label:inds[i].label,baseSize:industryNodeSize,introDelay:.06+(nInds>1?i*(staggerSpread/(nInds-1)):0),depth:.2+rng(i+50)*.3});}// Ambient nodes — appear after industry nodes complete\n// Scattered across the FULL component (and slightly beyond the edges)\n// so the network reaches every side; a radial mask fades them out.\nfor(let i=0;i<ambientCount;i++){const ax=(rng(i*3+500)-.5)*W*1.12;const ay=(rng(i*3+501)-.5)*H*1.12;nodes.push({id:nInds+1+i,pos:new THREE.Vector3(cx,cy,0),trueBase:new THREE.Vector3(ax,ay,0),base:new THREE.Vector3(cx,cy,0),vel:new THREE.Vector3,phase:rng(i+300)*Math.PI*2,speed:(.07+rng(i+400)*.17)*motionSpeed,amp:(6+rng(i+600)*18)*motionAmount,isHub:false,isIndustry:false,label:\"\",baseSize:ambientNodeSize,introDelay:.55+rng(i+700)*.38,depth:rng(i+800)});}const N=nodes.length;const INTRO_FRAMES=Math.max(1,Math.round(introDuration*60));// Injects a per-instance alpha attribute (\"aOpacity\") into a basic\n// material so each instance can fade independently (radial edge mask).\nfunction addInstanceAlpha(mat){mat.onBeforeCompile=shader=>{shader.vertexShader=\"attribute float aOpacity;\\nvarying float vOpacity;\\n\"+shader.vertexShader.replace(\"#include <begin_vertex>\",\"#include <begin_vertex>\\n  vOpacity = aOpacity;\");shader.fragmentShader=\"varying float vOpacity;\\n\"+shader.fragmentShader.replace(\"#include <dithering_fragment>\",\"#include <dithering_fragment>\\n  gl_FragColor.a *= vOpacity;\");};}// ── Nodes — InstancedMesh, per-instance color + alpha ─────────────\nconst sqGeo=new THREE.PlaneGeometry(1,1);// NOTE: do NOT set vertexColors here — that enables USE_COLOR and expects\n// a geometry \"color\" attribute (absent), defaulting to black and crushing\n// everything to black. Per-instance color works via instanceColor below\n// (USE_INSTANCING_COLOR), which needs no vertexColors flag.\nconst sqMat=new THREE.MeshBasicMaterial({transparent:true,depthWrite:false});addInstanceAlpha(sqMat);const imesh=new THREE.InstancedMesh(sqGeo,sqMat,N);imesh.frustumCulled=false;imesh.instanceMatrix.setUsage(THREE.DynamicDrawUsage)// updated every frame\n;scene.add(imesh);const iCol=new Float32Array(N*3);const hubC=threeColor(hubColor);const nodeC=threeColor(nodeColor);nodes.forEach((n,i)=>{const c=n.isHub?hubC:nodeC;iCol[i*3]=c.r;iCol[i*3+1]=c.g;iCol[i*3+2]=c.b;});imesh.instanceColor=new THREE.InstancedBufferAttribute(iCol,3);const nodeAlpha=new Float32Array(N).fill(1);const nodeAlphaAttr=new THREE.InstancedBufferAttribute(nodeAlpha,1);nodeAlphaAttr.setUsage(THREE.DynamicDrawUsage);sqGeo.setAttribute(\"aOpacity\",nodeAlphaAttr);// ── Lines as instanced thin quads (true pixel width, one draw call) ──\n// A unit plane is positioned at each segment midpoint, scaled to\n// (length × width) and rotated to the segment angle.\n// Hub lines — thicker, darker, never masked (own geometry, no alpha attr)\nconst hubLineGeo=new THREE.PlaneGeometry(1,1);const hubLMat=new THREE.MeshBasicMaterial({color:threeColor(hubLineColor),transparent:true,opacity:0,depthWrite:false});const hubLMesh=new THREE.InstancedMesh(hubLineGeo,hubLMat,Math.max(nInds,1));hubLMesh.frustumCulled=false;hubLMesh.instanceMatrix.setUsage(THREE.DynamicDrawUsage);scene.add(hubLMesh);// Network lines — thinner, lighter, radial-masked (per-instance alpha)\nconst ambLineGeo=new THREE.PlaneGeometry(1,1);const ambLMat=new THREE.MeshBasicMaterial({color:threeColor(ambLineColor),transparent:true,opacity:0,depthWrite:false});addInstanceAlpha(ambLMat);const ambLMesh=new THREE.InstancedMesh(ambLineGeo,ambLMat,MAX_LINES);ambLMesh.frustumCulled=false;ambLMesh.instanceMatrix.setUsage(THREE.DynamicDrawUsage);scene.add(ambLMesh);const ambLineAlpha=new Float32Array(MAX_LINES).fill(1);const ambAlphaAttr=new THREE.InstancedBufferAttribute(ambLineAlpha,1);ambAlphaAttr.setUsage(THREE.DynamicDrawUsage);ambLineGeo.setAttribute(\"aOpacity\",ambAlphaAttr);const dummy=new THREE.Object3D;const lineDummy=new THREE.Object3D;const cdSq=connectionDist*connectionDist;// Radial mask: full opacity near hub center, fading to 0 toward corners.\nconst fadeStart=edgeFadeStart/100;function radialAlpha(x,y){const maxR=.5*Math.sqrt(W*W+H*H);const d=Math.sqrt((x-cx)*(x-cx)+(y-cy)*(y-cy));const f=clamp01((d/maxR-fadeStart)/Math.max(1-fadeStart,.01));return Math.pow(1-f,1.6);}// Build one line-segment instance matrix between two points\nfunction setLine(mesh,idx,ax,ay,bx,by,width){const dx=bx-ax,dy=by-ay;const len=Math.sqrt(dx*dx+dy*dy);lineDummy.position.set((ax+bx)/2,(ay+by)/2,-.1);lineDummy.rotation.z=Math.atan2(dy,dx);lineDummy.scale.set(len,width,1);lineDummy.updateMatrix();mesh.setMatrixAt(idx,lineDummy.matrix);}// ── Intro + parallax state ────────────────────────────────────────\nlet introActive=introTrigger===\"auto\";let introFrame=0;let smoothMX=0;let smoothMY=0;let mwx=0,mwy=0,mouseIn=false;// ── Mouse ─────────────────────────────────────────────────────────\nconst onMouseMove=e=>{const r=wrap.getBoundingClientRect();mwx=e.clientX-r.left-W/2;mwy=-(e.clientY-r.top-H/2);mouseIn=true;};const onTouchMove=e=>{const r=wrap.getBoundingClientRect();const t0=e.touches[0];mwx=t0.clientX-r.left-W/2;mwy=-(t0.clientY-r.top-H/2);mouseIn=true;};const onLeave=()=>{mouseIn=false;};wrap.addEventListener(\"mousemove\",onMouseMove);wrap.addEventListener(\"touchmove\",onTouchMove,{passive:true});wrap.addEventListener(\"mouseleave\",onLeave);wrap.addEventListener(\"touchend\",onLeave);// ── Visibility (pause off-screen + tab hidden) ────────────────────\nlet inView=true;let pageVisible=!document.hidden;const thresholds=Array.from(new Set([0,clamp01(inViewThreshold/100)]));const observer=new IntersectionObserver(entries=>{const e=entries[0];inView=e.isIntersecting;// \"inView\" trigger: start the intro once enough is visible\nif(introTrigger===\"inView\"&&!introActive&&e.intersectionRatio>=inViewThreshold/100){introActive=true;}if(inView)kick()// resume when scrolled back into view\n;},{threshold:thresholds});observer.observe(wrap);const onVisibility=()=>{pageVisible=!document.hidden;if(pageVisible)kick()// resume when tab refocused\n;};document.addEventListener(\"visibilitychange\",onVisibility);// ── Animation loop ────────────────────────────────────────────────\nlet t=0,raf=0,tickCount=0,rafActive=false;// Start/resume the loop only when it should actually run\nfunction kick(){if(!rafActive&&inView&&pageVisible){rafActive=true;raf=requestAnimationFrame(tick);}}function tick(){// Stop the rAF chain entirely when not visible — zero CPU/GPU cost\nif(!inView||!pageVisible){rafActive=false;return;}raf=requestAnimationFrame(tick);t+=.016;tickCount++;// Parallax (disabled on mobile profile), smoothed toward mouse / 0\nconst px=allowPara?liveRef.current.parallaxStrength:0;smoothMX+=((mouseIn?mwx:0)-smoothMX)*.06;smoothMY+=((mouseIn?mwy:0)-smoothMY)*.06;if(!introActive){hubLMat.opacity=0;ambLMat.opacity=0;return;}introFrame=Math.min(introFrame+1,INTRO_FRAMES);const globalT=introFrame/INTRO_FRAMES;const hub=nodes[0];const introEase=EASINGS[introEasing]||easeOutCubic;// ── Physics + intro ────────────────────────────────────────────\nfor(let i=0;i<N;i++){const n=nodes[i];// Intro: animate base from hub toward trueBase sequentially,\n// using the user-selected easing curve within its time window\nconst localT=clamp01((globalT-n.introDelay)/TRAVEL_WIN);const easedPos=introEase(localT);n.base.x=lerp(hub.trueBase.x,n.trueBase.x,easedPos);n.base.y=lerp(hub.trueBase.y,n.trueBase.y,easedPos);// Oscillation (added on top of base, fades in with the node)\nconst oscFade=easeOutCubic(clamp01(localT*2));const ox=Math.cos(t*n.speed+n.phase)*n.amp*oscFade;const oy=Math.sin(t*n.speed*.68+n.phase+1.3)*n.amp*.55*oscFade;if(localT<1&&!n.isHub){// During travel: follow the eased path DIRECTLY (no spring).\n// easeInOutCubic decelerates to zero slope, so the node\n// arrives at rest — no spring overshoot / bounce.\nn.pos.x=n.base.x+ox;n.pos.y=n.base.y+oy;n.vel.set(0,0,0);}else{// After arrival: gentle spring drives the ambient drift.\nconst fx=(n.base.x+ox-n.pos.x)*SPRING_K;const fy=(n.base.y+oy-n.pos.y)*SPRING_K;n.vel.x=(n.vel.x+fx)*SPRING_D;n.vel.y=(n.vel.y+fy)*SPRING_D;n.pos.x+=n.vel.x;n.pos.y+=n.vel.y;}// Node appears as it starts its journey (scale 0 → full)\nconst introScale=n.isHub?easeOutCubic(clamp01(globalT*5))// hub pops in fast\n:introEase(clamp01(localT*1.5))// others scale in during travel\n;const hubPulse=n.isHub?1+.12*Math.sin(t*1.05):1;// Parallax offset for visual rendering (depth-layered)\nconst pxOff=smoothMX*px*n.depth;const pyOff=smoothMY*px*n.depth;dummy.position.set(n.pos.x+pxOff,n.pos.y+pyOff,0);dummy.scale.setScalar(n.baseSize*hubPulse*introScale);dummy.updateMatrix();imesh.setMatrixAt(i,dummy.matrix);// Radial edge mask — only ambient nodes fade; hub/industry stay full\nnodeAlpha[i]=n.isHub||n.isIndustry?1:radialAlpha(n.pos.x+pxOff,n.pos.y+pyOff);}imesh.instanceMatrix.needsUpdate=true;nodeAlphaAttr.needsUpdate=true;// ── Hub lines (hub → each industry, thick) — always every frame ──\nlet hi=0;for(let i=1;i<=nInds;i++){const n=nodes[i];const pxOff=smoothMX*px*n.depth;const pyOff=smoothMY*px*n.depth;setLine(hubLMesh,hi,hub.pos.x,hub.pos.y,n.pos.x+pxOff,n.pos.y+pyOff,hubLineWidth);hi++;}hubLMesh.count=hi;hubLMesh.instanceMatrix.needsUpdate=true;// ── Network lines (proximity-based, thin) ──────────────────────\n// The O(N²) rebuild is the heaviest per-frame cost. Once the intro\n// has settled, recompute it only 1 frame out of N (idleLineThrottle):\n// ambient nodes drift slowly, so the 1-frame lag is imperceptible.\nconst settled=introFrame>=INTRO_FRAMES;if(!settled||tickCount%idleLineThrottle===0){let ai=0;outer:for(let i=1;i<N;i++){for(let j=i+1;j<N;j++){if(ai>=MAX_LINES)break outer;const ni=nodes[i],nj=nodes[j];const dx=ni.pos.x-nj.pos.x;const dy=ni.pos.y-nj.pos.y;if(dx*dx+dy*dy<cdSq){const piX=smoothMX*px*ni.depth;const piY=smoothMY*px*ni.depth;const pjX=smoothMX*px*nj.depth;const pjY=smoothMY*px*nj.depth;const mx=(ni.pos.x+piX+nj.pos.x+pjX)/2;const my=(ni.pos.y+piY+nj.pos.y+pjY)/2;setLine(ambLMesh,ai,ni.pos.x+piX,ni.pos.y+piY,nj.pos.x+pjX,nj.pos.y+pjY,ambLineWidth);// Radial mask — line fades by its midpoint distance\nambLineAlpha[ai]=radialAlpha(mx,my);ai++;}}}ambLMesh.count=ai;ambLMesh.instanceMatrix.needsUpdate=true;ambAlphaAttr.needsUpdate=true;}// Global fade follows intro progress\nconst fadeT=easeOutCubic(globalT);hubLMat.opacity=hubLineOpacity*fadeT;ambLMat.opacity=ambLineOpacity*fadeT;renderer.render(scene,cam);// ── Labels: position + per-node fade ──────────────────────────\nconst lc=labelsRef.current;if(lc){let li=0;for(let i=0;i<N;i++){const n=nodes[i];if(!n.isHub&&!n.isIndustry)continue;const el=lc.children[li];if(el){const pxOff=smoothMX*px*n.depth;const pyOff=smoothMY*px*n.depth;const sx=n.pos.x+pxOff+W/2;const sy=-(n.pos.y+pyOff)+H/2;el.style.transform=`translate(${sx.toFixed(1)}px,${sy.toFixed(1)}px)`;// Each label fades in when its node arrives at orbit\nconst nodeLT=n.isHub?clamp01(globalT*5):clamp01((globalT-n.introDelay-TRAVEL_WIN*.6)/(TRAVEL_WIN*.4));el.style.opacity=easeOutCubic(nodeLT).toFixed(3);}li++;}}}kick()// starts the loop (gated by visibility)\n;// ── Resize ────────────────────────────────────────────────────────\nconst ro=new ResizeObserver(()=>{W=wrap.clientWidth||W;H=wrap.clientHeight||H;renderer.setSize(W,H,false);cam.left=-W/2;cam.right=W/2;cam.top=H/2;cam.bottom=-H/2;cam.updateProjectionMatrix();});ro.observe(wrap);cleanup=()=>{cancelAnimationFrame(raf);rafActive=false;ro.disconnect();observer.disconnect();document.removeEventListener(\"visibilitychange\",onVisibility);wrap.removeEventListener(\"mousemove\",onMouseMove);wrap.removeEventListener(\"touchmove\",onTouchMove);wrap.removeEventListener(\"mouseleave\",onLeave);wrap.removeEventListener(\"touchend\",onLeave);renderer.dispose();sqGeo.dispose();sqMat.dispose();hubLineGeo.dispose();ambLineGeo.dispose();hubLMat.dispose();ambLMat.dispose();};}// end init()\ninit().catch(err=>console.error(\"[JuncaNetworkThree]\",err));return()=>{disposed=true;cleanup();};// eslint-disable-next-line react-hooks/exhaustive-deps\n},[shouldInit,industriesKey,labelCount,centerX,centerY,orbitScale,angleOffset,ambientCount,hubNodeSize,industryNodeSize,ambientNodeSize,nodeColor,hubColor,hubLineColor,hubLineWidth,hubLineOpacity,ambLineColor,ambLineWidth,ambLineOpacity,motionAmount,motionSpeed,connectionDist,edgeFadeStart,centerLabel,introTrigger,inViewThreshold,introDuration,introEasing,qualityProfile]);// ── Label markup ──────────────────────────────────────────────────────────\nconst inds=getIndustries(industries,labelCount);const labelData=[{label:centerLabel,isHub:true},...inds.map(i=>({label:i.label,isHub:false}))];return /*#__PURE__*/_jsxs(\"div\",{ref:wrapRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",background:backgroundColor,overflow:\"hidden\",...style},children:[/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",display:\"block\"}}),/*#__PURE__*/_jsx(\"div\",{ref:labelsRef,style:{position:\"absolute\",inset:0,pointerEvents:\"none\"},children:labelData.map((n,i)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,willChange:\"transform\",opacity:0},children:n.isHub&&hubLogo?/* ── Logo below the hub node (replaces the text) ── *//*#__PURE__*/_jsx(\"img\",{src:hubLogo,draggable:false,style:{display:\"block\",transform:`translate(-50%, ${hubNodeSize/2+labelOffsetY}px)`,width:hubLogoWidth,height:\"auto\",userSelect:\"none\"}}):/* ── Text label below node ── *//*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",transform:`translate(-50%, ${(n.isHub?hubNodeSize:industryNodeSize)/2+labelOffsetY}px)`,color:n.isHub?hubLabelColor:labelColor,whiteSpace:\"nowrap\",userSelect:\"none\",// Spread Framer Font control object\n    ...n.isHub?hubFont:labelFont},children:n.label})},i))})]});}// ─── Framer Property Controls ─────────────────────────────────────────────────\naddPropertyControls(JuncaNetworkThree,{// ── Background ────────────────────────────────────────────────────────────\nbackgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#ffffff\"},// ── Hub logo ──────────────────────────────────────────────────────────────\nhubLogo:{type:ControlType.Image,title:\"Hub Logo\"},hubLogoWidth:{type:ControlType.Number,title:\"Logo Width px\",defaultValue:80,min:20,max:400,step:4,hidden:p=>!p.hubLogo},// ── Content ───────────────────────────────────────────────────────────────\ncenterLabel:{type:ControlType.String,title:\"Hub Label\",defaultValue:\"Junca\",hidden:p=>!!p.hubLogo},industries:{type:ControlType.Array,title:\"Industries\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Industry\"}}},defaultValue:DEFAULT_INDUSTRIES},labelCount:{type:ControlType.Number,title:\"Node Count\",defaultValue:7,min:1,max:16,step:1,displayStepper:true},// ── Layout ────────────────────────────────────────────────────────────────\ncenterX:{type:ControlType.Number,title:\"Hub X %\",defaultValue:50,min:10,max:90},centerY:{type:ControlType.Number,title:\"Hub Y %\",defaultValue:50,min:10,max:90},orbitScale:{type:ControlType.Number,title:\"Orbit Scale\",defaultValue:.85,min:.3,max:1.4,step:.05},angleOffset:{type:ControlType.Number,title:\"Angle Offset\\xb0\",defaultValue:0,min:-180,max:180,step:5},ambientCount:{type:ControlType.Number,title:\"Ambient Nodes\",defaultValue:45,min:0,max:120,step:5,displayStepper:true},// ── Node sizes ────────────────────────────────────────────────────────────\nhubNodeSize:{type:ControlType.Number,title:\"Hub Size px\",defaultValue:8,min:3,max:40,step:1,displayStepper:true},industryNodeSize:{type:ControlType.Number,title:\"Industry Size px\",defaultValue:5,min:2,max:24,step:1,displayStepper:true},ambientNodeSize:{type:ControlType.Number,title:\"Ambient Size px\",defaultValue:3,min:1,max:12,step:1,displayStepper:true},// ── Colors ────────────────────────────────────────────────────────────────\nhubColor:{type:ControlType.Color,title:\"Hub Color\",defaultValue:\"#ED3327\"},nodeColor:{type:ControlType.Color,title:\"Node Color\",defaultValue:\"#050505\"},hubLabelColor:{type:ControlType.Color,title:\"Hub Label Color\",defaultValue:\"#ED3327\"},labelColor:{type:ControlType.Color,title:\"Label Color\",defaultValue:\"#050505\"},// ── Hub lines ─────────────────────────────────────────────────────────────\nhubLineColor:{type:ControlType.Color,title:\"Hub Line Color\",defaultValue:\"#050505\"},hubLineWidth:{type:ControlType.Number,title:\"Hub Line Width px\",defaultValue:1.5,min:.5,max:8,step:.5},hubLineOpacity:{type:ControlType.Number,title:\"Hub Line Opacity\",defaultValue:.35,min:0,max:1,step:.01},// ── Ambient lines ─────────────────────────────────────────────────────────\nambLineColor:{type:ControlType.Color,title:\"Network Line Color\",defaultValue:\"#888888\"},ambLineWidth:{type:ControlType.Number,title:\"Network Line Width px\",defaultValue:.8,min:.5,max:4,step:.5},ambLineOpacity:{type:ControlType.Number,title:\"Network Line Opacity\",defaultValue:.12,min:0,max:1,step:.01},// ── Typography ────────────────────────────────────────────────────────────\nhubFont:{type:ControlType.Font,title:\"Hub Font\",controls:\"basic\",defaultValue:{fontSize:11,fontWeight:600}},labelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"basic\",defaultValue:{fontSize:9,fontWeight:400}},labelOffsetY:{type:ControlType.Number,title:\"Label Offset Y px\",defaultValue:10,min:-20,max:60,step:1,displayStepper:true},// ── Motion ────────────────────────────────────────────────────────────────\nmotionAmount:{type:ControlType.Number,title:\"Motion Amount\",defaultValue:1,min:0,max:3,step:.1},motionSpeed:{type:ControlType.Number,title:\"Motion Speed\",defaultValue:1,min:0,max:3,step:.1},// ── Parallax ──────────────────────────────────────────────────────────────\nparallaxStrength:{type:ControlType.Number,title:\"Parallax Strength\",defaultValue:.04,min:0,max:.2,step:.01},// ── Connections ───────────────────────────────────────────────────────────\nconnectionDist:{type:ControlType.Number,title:\"Connect Distance px\",defaultValue:160,min:40,max:400,step:10},edgeFadeStart:{type:ControlType.Number,title:\"Edge Fade Start %\",defaultValue:25,min:0,max:90,step:5,displayStepper:true},// ── Intro ─────────────────────────────────────────────────────────────────\nintroTrigger:{type:ControlType.Enum,title:\"Intro Trigger\",options:[\"auto\",\"inView\"],optionTitles:[\"Auto (on mount)\",\"In View (scroll)\"],defaultValue:\"auto\"},inViewThreshold:{type:ControlType.Number,title:\"In View %\",defaultValue:30,min:0,max:100,step:5,displayStepper:true,hidden:p=>p.introTrigger!==\"inView\"},introDuration:{type:ControlType.Number,title:\"Intro Duration s\",defaultValue:3,min:.5,max:8,step:.5},introEasing:{type:ControlType.Enum,title:\"Intro Easing\",options:[\"easeOutSine\",\"easeOutCubic\",\"easeOutQuart\",\"easeOutQuint\",\"easeOutExpo\",\"easeInOutCubic\",\"linear\"],optionTitles:[\"Out Sine (gentle)\",\"Out Cubic\",\"Out Quart (snappy)\",\"Out Quint (snappier)\",\"Out Expo (sharpest)\",\"In-Out Cubic (S-curve)\",\"Linear\"],defaultValue:\"easeOutCubic\"},// ── Performance ─────────────────────────────────────────────────────────\n// Force per Framer breakpoint variant: High on desktop, Tablet, Mobile.\n// Mobile = no antialias, lower pixel ratio, parallax OFF, heavier line throttle.\nqualityProfile:{type:ControlType.Enum,title:\"Quality\",options:[\"high\",\"tablet\",\"mobile\"],optionTitles:[\"High (desktop)\",\"Tablet\",\"Mobile (lite)\"],defaultValue:\"high\"},// ── Lazy init ───────────────────────────────────────────────────────────\n// How far ahead of the viewport (px) to build the WebGL scene. Keeps the\n// Three.js load + scene construction off the initial page load.\npreloadDistance:{type:ControlType.Number,title:\"Preload px\",defaultValue:900,min:0,max:2400,step:50}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"JuncaNetworkThree\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NodeSystemThree.map"],"mappings":"6MAUe,eAAe,IAAU,CAAC,AAAgG,IAAM,MAA7E,OAAgC,6BAAgD,CAGlJ,SAAS,EAAe,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,GAAW,GAAG,EAAE,IAAE,EAAG,CAAE,CAAC,SAAS,EAAa,EAAE,CAAC,MAAO,IAAW,EAAE,IAAE,CAAG,CAAC,SAAS,GAAa,EAAE,CAAC,MAAO,IAAW,EAAE,IAAE,CAAG,CAAC,SAAS,EAAa,EAAE,CAAC,MAAO,IAAW,EAAE,IAAE,CAAG,CAAC,SAAS,GAAY,EAAE,CAAC,OAAO,GAAG,EAAE,EAAE,EAAW,IAAE,IAAI,EAAG,CAAC,SAAS,GAAY,EAAE,CAAC,OAAO,KAAK,IAAI,E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