(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3332],{103:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var o=r(7876),i=r(6474),s=r(4400),a=r(1605),n=r(1161),c=r(3799),l=r(6539),d=r(6963),p=r(7114),u=r(6780);let h=()=>{let e=(0,u.Q8)(!1),t=(0,p.Wn)(),r=(0,u.t4)(),h=(0,u._)({smoothScroll:t,nelaVoiceOrb:r,tourSteps:[{sectionId:"#hero-section",audio:"/home/nela-ai/hero-section.mp3"},{sectionId:"#problem-section",audio:"/home/nela-ai/problem-section.mp3"},{sectionId:"#apps-section",audio:"/home/nela-ai/apps-section.mp3",timedScrolls:[{time:10,targetSelector:"#apps-section-card:nth-of-type(4)"},{time:15,targetSelector:"#apps-section-card:nth-of-type(5)"},{time:20,targetSelector:"#apps-section-card:nth-of-type(6)"},{time:25,targetSelector:"#apps-section-card:nth-of-type(7)"},{time:30,targetSelector:"#apps-section-card:nth-of-type(8)"},{time:35,targetSelector:"#apps-section-card:nth-of-type(9)"},{time:40,targetSelector:"#apps-section-card:nth-of-type(10)"}]},{sectionId:"#before-after-section",audio:"/home/nela-ai/before-after-section.mp3",timedScrolls:[{time:3,targetSelector:"#before-after-section-card:nth-of-type(2)"},{time:6,targetSelector:"#before-after-section-card:nth-of-type(3)"},{time:9,targetSelector:"#before-after-section-card:nth-of-type(4)"},{time:12,targetSelector:"#before-after-section-card:nth-of-type(5)"},{time:15,targetSelector:"#before-after-section-card:nth-of-type(6)"},{time:18,targetSelector:"#before-after-section-card:nth-of-type(7)"},{time:21,targetSelector:"#before-after-section-card:nth-of-type(8)"},{time:24,targetSelector:"#before-after-section-card:nth-of-type(9)"},{time:27,targetSelector:"#before-after-section-card:nth-of-type(10)"},{time:30,targetSelector:"#before-after-section-card:nth-of-type(11)"}]},{sectionId:"#pricing-section",audio:"/home/nela-ai/pricing-section.mp3",timedScrolls:[{time:25,targetSelector:"#pricing-section-card:nth-of-type(2)"},{time:35,targetSelector:"#pricing-section-card:nth-of-type(3)"}]},{sectionId:"#cta-section",audio:"/home/nela-ai/cta-section.mp3"}]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.AI,{}),(0,o.jsx)(d.O,{fixed:!0}),(0,o.jsx)(l.o,{nelaVoiceOrb:r}),(0,o.jsx)(i.X,{aiTour:h}),(0,o.jsx)(n.F,{authSession:e}),(0,o.jsx)(s.KE,{onTourClick:h.onTourClick}),(0,o.jsx)(s.pZ,{nelaVoiceOrb:r}),(0,o.jsx)(s.MP,{nelaVoiceOrb:r}),(0,o.jsx)(s.H0,{}),(0,o.jsx)(s.cF,{}),(0,o.jsx)(s.CI,{}),(0,o.jsx)(a.w,{})]})}},6474:(e,t,r)=>{"use strict";r.d(t,{X:()=>c,s:()=>n});var o=r(7876),i=r(9917),s=r(4232),a=r(3986);let n=e=>{let{id:t,hidden:r,isValidating:n,isNoMore:c,onLoadMoreClick:l}=e,d=(0,s.useRef)(null);return((0,s.useEffect)(()=>{if(r||!window.IntersectionObserver||!d.current)return;let e=new IntersectionObserver(e=>{e[0].isIntersecting&&l()},{threshold:.5});return e.observe(d.current),()=>{d.current&&e.unobserve(d.current)}},[r,d,l]),r)?null:(0,o.jsx)(i.$n,{"data-testid":"".concat(t,"-load-more-btn"),type:"button",ref:d,className:"col-span-full w-full max-w-32 mx-auto",variant:"outline",onClick:l,disabled:n||c,children:n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.o5M,{className:"animate-spin"})," Loading"]}):c?(0,o.jsx)(o.Fragment,{children:"No more"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.Fa0,{className:"animate-bounce"}),"Load More"]})})},c=e=>{let{aiTour:t}=e;return(0,o.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,o.jsx)("div",{className:"absolute -z-1 inset-0 "}),t.status,(0,o.jsx)("span",{children:"|"}),(0,o.jsx)("span",{className:"text-primary dark:text-orange-400 font-bold",children:t.currentStep}),(0,o.jsx)("span",{className:"text-primary dark:text-orange-400 font-bold",children:"/"}),(0,o.jsx)("span",{className:"text-primary dark:text-orange-400 font-bold",children:t.totalSteps})]})}},6539:(e,t,r)=>{"use strict";r.d(t,{o:()=>m});var o=r(7876),i=r(8519),s=r(1383),a=r(4895),n=r(4892),c=r(2648),l=r(5302),d=r(121),p=r(4232),u=r(6691);let h=p.forwardRef((e,t)=>{let{position:r,rotation:a,scale:n,audioAnalyser:l,gradientColors:d=["#9333ea","#c026d3","#db2777","#c026d3","#9333ea"],gradientStops:h=[0,.25,.5,.75,1],gradientSize:f=1024,radius:m=.65,tube:g=.25,radialSegments:x=64,tubularSegments:b=128,minDistort:y=.7,maxDistort:j=.9,minDistortSpeed:S=0,maxDistortSpeed:w=0,minGlowOpacity:v=.2,maxGlowOpacity:N=.4,minGlowTube:k=.275,maxGlowTube:C=.375,minScale:I=0,maxScale:_=.2,breathSpeed:O=1.5,breathScale:E=.04,tiltAngle:z=35,minRotationZ:M=0,maxRotationZ:T=0}=e,F=p.useRef(0),R=p.useRef(null),[P,q]=p.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,c.C)();return p.useEffect(()=>{l&&(R.current=new Uint8Array(l.frequencyBinCount))},[l]),(0,c.D)((e,t)=>{let r=e.scene.getObjectByName("torus-orb-group");if(!r)return;let o=0;if(l&&R.current){l.getByteFrequencyData(R.current);let e=R.current.slice(4,24),t=e.reduce((e,t)=>e+t,0)/e.length/l.frequencyBinCount,r=new Uint8Array(l.fftSize);l.getByteTimeDomainData(r),o=t+Math.sqrt(r.reduce((e,t)=>e+(t-128)**2,0)/r.length)/128,o=u.cj9.lerp(P.audioScale,o,.5)}F.current+=t;let i=Math.sin(F.current*O)*E,s=u.cj9.lerp(I,_,o),n=u.cj9.degToRad(z),c=new u.Pq0;r.getWorldPosition(c);let d=c.clone().project(e.camera),p=A.x-d.x,h=A.y-d.y,f=u.cj9.lerp(P.rotation.x,-(h*n),.5),x=u.cj9.lerp(P.rotation.y,p*n,.5),b=u.cj9.lerp(M,T,o),B=a?{x:a[0],y:a[1],z:a[2]}:{x:f,y:x,z:b},D=u.cj9.lerp(y,j,o),L=u.cj9.lerp(S,w,o),V=u.cj9.lerp(v,N,o),X=u.cj9.lerp(k,C,o);q({audioScale:o,rotation:B,torus:{radius:m+s,tube:g+.25*s},glow:{radius:m+s,tube:X+i+.25*s},material:{distort:D,speed:L,opacity:V+i}})}),(0,o.jsxs)("group",{ref:t,name:"torus-orb-group",position:r,rotation:new u.O9p(P.rotation.x,P.rotation.y,P.rotation.z),scale:n,children:[(0,o.jsxs)("mesh",{children:[(0,o.jsx)("torusGeometry",{args:[P.glow.radius,P.glow.tube,x,b]}),(0,o.jsx)(i.I,{opacity:P.material.opacity,depthWrite:!1,blending:u.EZo,side:u.hsX,distort:P.material.distort,speed:P.material.speed,children:(0,o.jsx)(s.M,{stops:h,colors:d,size:f})})]}),(0,o.jsxs)("mesh",{children:[(0,o.jsx)("torusGeometry",{args:[P.torus.radius,P.torus.tube,x,b]}),(0,o.jsx)(i.I,{transmission:.5,roughness:.5,thickness:.5,ior:1.5,reflectivity:.75,metalness:.15,clearcoat:.1,clearcoatRoughness:1.5,envMapIntensity:.5,distort:P.material.distort,speed:P.material.speed,children:(0,o.jsx)(s.M,{stops:h,colors:d,size:f})})]})]})});h.displayName="TorusOrbMeshGroup";let f=e=>{let{onChange:t}=e,{viewport:r}=(0,c.C)();return p.useLayoutEffect(()=>{null==t||t({width:r.width,height:r.height,isReady:r.width>0&&r.height>0})},[r.width,r.height]),null},m=e=>{let{nelaVoiceOrb:t}=e,{resolvedTheme:r}=(0,d.DP)();return(0,o.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,o.jsxs)(l.Hl,{camera:{position:[0,0,4.5],fov:50},style:{pointerEvents:"auto"},children:[(0,o.jsx)(f,{onChange:t.onViewportChange}),(0,o.jsx)(h,{audioAnalyser:t.audioAnalyser,position:t.position,rotation:t.rotation,scale:t.scale,gradientColors:"light"===r?["#9333ea","#c026d3","#db2777","#c026d3","#9333ea"]:["#fb923c","#ec4899","#a21caf","#ec4899","#fb923c"]}),(0,o.jsx)("ambientLight",{intensity:"light"===r?.75:.5}),(0,o.jsx)("directionalLight",{position:[0,5,5],intensity:"light"===r?.75:.5}),(0,o.jsx)(a.OH,{preset:"lobby",environmentIntensity:"light"===r?.75:.5}),(0,o.jsx)(n._,{color:"light"===r?"#000":"#fff",position:[0,t.position?t.position[1]-1.25:-1.25,0],opacity:.4,width:1,height:1,blur:3,far:10})]})})}},6760:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(103)}])}},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=6760)),_N_E=e.O()}]);