(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3028],{6474:(e,t,s)=>{"use strict";s.d(t,{X:()=>l,s:()=>a});var r=s(7876),i=s(9917),o=s(4232),n=s(3986);let a=e=>{let{id:t,hidden:s,isValidating:a,isNoMore:l,onLoadMoreClick:c}=e,u=(0,o.useRef)(null);return((0,o.useEffect)(()=>{if(s||!window.IntersectionObserver||!u.current)return;let e=new IntersectionObserver(e=>{e[0].isIntersecting&&c()},{threshold:.5});return e.observe(u.current),()=>{u.current&&e.unobserve(u.current)}},[s,u,c]),s)?null:(0,r.jsx)(i.$n,{"data-testid":"".concat(t,"-load-more-btn"),type:"button",ref:u,className:"col-span-full w-full max-w-32 mx-auto",variant:"outline",onClick:c,disabled:a||l,children:a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.o5M,{className:"animate-spin"})," Loading"]}):l?(0,r.jsx)(r.Fragment,{children:"No more"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Fa0,{className:"animate-bounce"}),"Load More"]})})},l=e=>{let{aiTour:t}=e;return(0,r.jsxs)("button",{className:"fixed top-16 inset-x-0 lg:left-auto lg:right-0 cursor-pointer select-none z-20 px-5 py-2 bg-background/25 backdrop-blur-xs border-b flex items-center justify-center gap-3 text-xs lg:text-sm",onClick:t.onTourClick,children:[(0,r.jsx)("div",{className:"absolute -z-1 inset-0 "}),t.status,(0,r.jsx)("span",{children:"|"}),(0,r.jsx)("span",{className:"text-primary dark:text-orange-400 font-bold",children:t.currentStep}),(0,r.jsx)("span",{className:"text-primary dark:text-orange-400 font-bold",children:"/"}),(0,r.jsx)("span",{className:"text-primary dark:text-orange-400 font-bold",children:t.totalSteps})]})}},6539:(e,t,s)=>{"use strict";s.d(t,{o:()=>f});var r=s(7876),i=s(8519),o=s(1383),n=s(4895),a=s(4892),l=s(2648),c=s(5302),u=s(121),d=s(4232),p=s(6691);let h=d.forwardRef((e,t)=>{let{position:s,rotation:n,scale:a,audioAnalyser:c,gradientColors:u=["#9333ea","#c026d3","#db2777","#c026d3","#9333ea"],gradientStops:h=[0,.25,.5,.75,1],gradientSize:x=1024,radius:f=.65,tube:m=.25,radialSegments:j=64,tubularSegments:g=128,minDistort:b=.7,maxDistort:y=.9,minDistortSpeed:w=0,maxDistortSpeed:k=0,minGlowOpacity:v=.2,maxGlowOpacity:N=.4,minGlowTube:C=.275,maxGlowTube:_=.375,minScale:I=0,maxScale:O=.2,breathSpeed:S=1.5,breathScale:z=.04,tiltAngle:E=35,minRotationZ:M=0,maxRotationZ:T=0}=e,F=d.useRef(0),R=d.useRef(null),[B,q]=d.useState({audioScale:0,rotation:{x:0,y:0,z:0},torus:{radius:0,tube:0},glow:{radius:0,tube:0},material:{distort:0,speed:0,opacity:0}}),{pointer:A}=(0,l.C)();return d.useEffect(()=>{c&&(R.current=new Uint8Array(c.frequencyBinCount))},[c]),(0,l.D)((e,t)=>{let s=e.scene.getObjectByName("torus-orb-group");if(!s)return;let r=0;if(c&&R.current){c.getByteFrequencyData(R.current);let e=R.current.slice(4,24),t=e.reduce((e,t)=>e+t,0)/e.length/c.frequencyBinCount,s=new Uint8Array(c.fftSize);c.getByteTimeDomainData(s),r=t+Math.sqrt(s.reduce((e,t)=>e+(t-128)**2,0)/s.length)/128,r=p.cj9.lerp(B.audioScale,r,.5)}F.current+=t;let i=Math.sin(F.current*S)*z,o=p.cj9.lerp(I,O,r),a=p.cj9.degToRad(E),l=new p.Pq0;s.getWorldPosition(l);let u=l.clone().project(e.camera),d=A.x-u.x,h=A.y-u.y,x=p.cj9.lerp(B.rotation.x,-(h*a),.5),j=p.cj9.lerp(B.rotation.y,d*a,.5),g=p.cj9.lerp(M,T,r),D=n?{x:n[0],y:n[1],z:n[2]}:{x:x,y:j,z:g},L=p.cj9.lerp(b,y,r),P=p.cj9.lerp(w,k,r),V=p.cj9.lerp(v,N,r),X=p.cj9.lerp(C,_,r);q({audioScale:r,rotation:D,torus:{radius:f+o,tube:m+.25*o},glow:{radius:f+o,tube:X+i+.25*o},material:{distort:L,speed:P,opacity:V+i}})}),(0,r.jsxs)("group",{ref:t,name:"torus-orb-group",position:s,rotation:new p.O9p(B.rotation.x,B.rotation.y,B.rotation.z),scale:a,children:[(0,r.jsxs)("mesh",{children:[(0,r.jsx)("torusGeometry",{args:[B.glow.radius,B.glow.tube,j,g]}),(0,r.jsx)(i.I,{opacity:B.material.opacity,depthWrite:!1,blending:p.EZo,side:p.hsX,distort:B.material.distort,speed:B.material.speed,children:(0,r.jsx)(o.M,{stops:h,colors:u,size:x})})]}),(0,r.jsxs)("mesh",{children:[(0,r.jsx)("torusGeometry",{args:[B.torus.radius,B.torus.tube,j,g]}),(0,r.jsx)(i.I,{transmission:.5,roughness:.5,thickness:.5,ior:1.5,reflectivity:.75,metalness:.15,clearcoat:.1,clearcoatRoughness:1.5,envMapIntensity:.5,distort:B.material.distort,speed:B.material.speed,children:(0,r.jsx)(o.M,{stops:h,colors:u,size:x})})]})]})});h.displayName="TorusOrbMeshGroup";let x=e=>{let{onChange:t}=e,{viewport:s}=(0,l.C)();return d.useLayoutEffect(()=>{null==t||t({width:s.width,height:s.height,isReady:s.width>0&&s.height>0})},[s.width,s.height]),null},f=e=>{let{nelaVoiceOrb:t}=e,{resolvedTheme:s}=(0,u.DP)();return(0,r.jsx)("div",{id:"nela-orb-scene",className:"fixed z-5 left-0 right-0 bottom-0 w-screen h-[calc(100dvh-64px)] pointer-events-auto",children:(0,r.jsxs)(c.Hl,{camera:{position:[0,0,4.5],fov:50},style:{pointerEvents:"auto"},children:[(0,r.jsx)(x,{onChange:t.onViewportChange}),(0,r.jsx)(h,{audioAnalyser:t.audioAnalyser,position:t.position,rotation:t.rotation,scale:t.scale,gradientColors:"light"===s?["#9333ea","#c026d3","#db2777","#c026d3","#9333ea"]:["#fb923c","#ec4899","#a21caf","#ec4899","#fb923c"]}),(0,r.jsx)("ambientLight",{intensity:"light"===s?.75:.5}),(0,r.jsx)("directionalLight",{position:[0,5,5],intensity:"light"===s?.75:.5}),(0,r.jsx)(n.OH,{preset:"lobby",environmentIntensity:"light"===s?.75:.5}),(0,r.jsx)(a._,{color:"light"===s?"#000":"#fff",position:[0,t.position?t.position[1]-1.25:-1.25,0],opacity:.4,width:1,height:1,blur:3,far:10})]})})}},6583:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/affiliates",function(){return s(8808)}])},8808:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>h});var r=s(7876),i=s(6474),o=s(4400),n=s(1605),a=s(1161),l=s(3799),c=s(6539),u=s(6963),d=s(7114),p=s(6780);let h=()=>{let e=(0,p.Q8)(!1),t=(0,d.Wn)(),s=(0,p.t4)(),h=(0,p._)({smoothScroll:t,nelaVoiceOrb:s,tourSteps:[{sectionId:"#hero-section",audio:"/affiliates/nela-ai/hero-section.mp3"},{sectionId:"#how-it-works-section",audio:"/affiliates/nela-ai/how-it-works-section.mp3"},{sectionId:"#why-partner-section",audio:"/affiliates/nela-ai/why-partner-section.mp3"},{sectionId:"#rules-section",audio:"/affiliates/nela-ai/rules-section.mp3"},{sectionId:"#commission-section",audio:"/affiliates/nela-ai/commission-section.mp3"},{sectionId:"#cta-section",audio:"/affiliates/nela-ai/cta-section.mp3"}]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.j5,{}),(0,r.jsx)(u.O,{fixed:!0}),(0,r.jsx)(c.o,{nelaVoiceOrb:s}),(0,r.jsx)(i.X,{aiTour:h}),(0,r.jsx)(a.F,{authSession:e}),(0,r.jsx)(o.A9,{onTourClick:h.onTourClick}),(0,r.jsx)(o.tU,{nelaVoiceOrb:s}),(0,r.jsx)(o.on,{nelaVoiceOrb:s}),(0,r.jsx)(o.dM,{}),(0,r.jsx)(o.B3,{}),(0,r.jsx)(o.Sk,{}),(0,r.jsx)(n.w,{})]})}}},e=>{e.O(0,[3835,8585,4938,8433,2517,3629,5334,7391,683,2425,2433,4587,9057,7141,9963,5259,636,6593,8792],()=>e(e.s=6583)),_N_E=e.O()}]);