PageSourceSearch

https://xpeak.ai/_next/static/chunks/app/%5Blocale%5D/page-f1dbf229c042e021.js

js xpeak.ai collected 2026-10-05 13:22:12 UTC 2,313 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[465],{37905:(t,e,r)=>{Promise.resolve().then(r.bind(r,69683))},45833:(t,e,r)=>{"use strict";r.d(e,{$C:()=>c,AV:()=>s,Gi:()=>p,MD:()=>l,Q7:()=>o,TT:()=>d,Xj:()=>u,i0:()=>i});let n="xpeak_signup_intent",o="/tutor/tutor-application",s="/student/tutor-application";function a(t){return(null==t?void 0:t.trim().toLowerCase())==="tutor"?"tutor":"student"}function i(t){let e=t.replace(/^\/[a-z]{2}(?:-[A-Z]{2})?(?=\/)/,"")||t;return e===o||e.startsWith("".concat(o,"/"))}function u(t){return t.onApplicationPath?"application":"loading"===t.dashboardProbe?"loading":"application_required"===t.dashboardProbe?"application":"dashboard"}function d(t){var e;return(null==t?void 0:t.code)==="TUTOR_APPLICATION_REQUIRED"||(null==t||null==(e=t.response)?void 0:e.status)===404?"application_required":"failed"}function l(){return a(sessionStorage.getItem(n))}function c(t){let e=a(("string"==typeof t?new URLSearchParams(t.startsWith("?")?t.slice(1):t):t).get("role"));return"tutor"===e?sessionStorage.setItem(n,"tutor"):sessionStorage.removeItem(n),e}function p(t){return"tutor"!==l()?null:(sessionStorage.removeItem(n),t.map(t=>t.toLowerCase()).includes("tutor"))?o:s}},69683:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>c});var n=r(79490),o=r(77066),s=r(43352),a=r(70820),i=r(39743),u=r(42065),d=r(70112),l=r(45833);function c(){let{user:t,loading:e}=(0,s.As)(),{roles:c,loading:p}=(0,a.z)(),h=(0,i.useRouter)();return((0,o.useEffect)(()=>{if(!e&&!p&&t){let t=(0,l.Gi)(c);if(t)return void h.push(t);"/tutor"===(0,d.EN)(c)?h.push("/tutor"):(async()=>{try{let{studentClient:t}=await Promise.resolve().then(r.bind(r,34600)),e=await t.getOnboardingStatus();e.completed?h.push("/student/dashboard"):e.isFirstTime?h.push("/student/onboarding"):h.push("/student/dashboard")}catch(t){console.error("Error checking onboarding status:",t),h.push("/student/dashboard")}})()}},[t,e,p,h,c]),e||t)?(0,n.jsx)("div",{className:"flex justify-center items-center min-h-screen",style:{backgroundColor:"#FDF9F2"},children:(0,n.jsx)("div",{className:"w-12 h-12 rounded-full border-b-2 border-coral animate-spin"})}):(0,n.jsx)(u.default,{})}}},t=>{t.O(0,[8666,9397,186,9330,9654,3948,7169,2575,2888,1221,1837,3352,432,3853,4597,1353,1828,1605,8908,7358],()=>t(t.s=37905)),_N_E=t.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.