1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreateAccountScreen-D2-qIKse.js","assets/mui-vendor-CWsEzul4.js","assets/react-vendor-CEZjBCbl.js","assets/Header-BTJDnc3K.js","assets/landing-components-Use_SJA8.js","assets/Logo-DgoS9l6F.js","assets/LoginScreen-CUEr8WUc.js","assets/GetStartedScreen-dK-tMdEE.js","assets/game-components-DMzYPq6X.js","assets/WorkInfoScreen-DQ8TxBwu.js","assets/StudyInfoScreen-RG8_Fuc_.js","assets/WhatToImproveScreen-Bzk3TIxO.js","assets/GamesIntroScreen-DYsh5Hpq.js","assets/ResultsScreen-bf5cl2lH.js","assets/HowToPlayScreen-Da2CL-IY.js","assets/N2BackInstructionsScreen-xSoMQWs8.js","assets/LearningPreferencesScreen-Be45uRjP.js"])))=>i.map(i=>d[i]); 2import{_ as e}from"./supabase-vendor-BOp2EyVH.js";import{r as t,u as o,j as a,c as n,g as r}from"./mui-vendor-CWsEzul4.js";import{H as i}from"./Header-BTJDnc3K.js";import{u as s}from"./game-components-DMzYPq6X.js";import"./react-vendor-CEZjBCbl.js";import"./landing-components-Use_SJA8.js";import"./Logo-DgoS9l6F.js";const l=t.lazy(()=>e(()=>import("./CreateAccountScreen-D2-qIKse.js"),__vite__mapDeps([0,1,2,3,4,5]))),c=t.lazy(()=>e(()=>import("./LoginScreen-CUEr8WUc.js"),__vite__mapDeps([6,1,2]))),m=t.lazy(()=>e(()=>import("./GetStartedScreen-dK-tMdEE.js"),__vite__mapDeps([7,1,2,8]))),d=t.lazy(()=>e(()=>import("./WorkInfoScreen-DQ8TxBwu.js"),__vite__mapDeps([9,1,2,8]))),p=t.lazy(()=>e(()=>import("./StudyInfoScreen-RG8_Fuc_.js"),__vite__mapDeps([10,1,2,8]))),_=t.lazy(()=>e(()=>import("./WhatToImproveScreen-Bzk3TIxO.js"),__vite__mapDeps([11,1,2,8]))),u=t.lazy(()=>e(()=>import("./GamesIntroScreen-DYsh5Hpq.js"),__vite__mapDeps([12,1,2]))),g=t.lazy(()=>e(()=>import("./ResultsScreen-bf5cl2lH.js"),__vite__mapDeps([13,1,2,8]))),y=t.lazy(()=>e(()=>import("./HowToPlayScreen-Da2CL-IY.js"),__vite__mapDeps([14,1,2]))),j=t.lazy(()=>e(()=>import("./game-components-DMzYPq6X.js").then(e=>e.a),__vite__mapDeps([8,1,2]))),x=t.lazy(()=>e(()=>import("./game-components-DMzYPq6X.js").then(e=>e.b),__vite__mapDeps([8,1,2]))),f=t.lazy(()=>e(()=>import("./N2BackInstructionsScreen-xSoMQWs8.js"),__vite__mapDeps([15,1,2]))),h=t.lazy(()=>e(()=>import("./LearningPreferencesScreen-Be45uRjP.js"),__vite__mapDeps([16,1,2,8]))),w=t.memo(()=>a.jsx(n,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:a.jsx(r,{})}));w.displayName="ScreenLoadingFallback";const k=[{id:"create-account",title:"Create your account"},{id:"login",title:"Log in"},{id:"get-started",title:"Let's get started!"},{id:"work-info",title:"Tell us a little bit more about your work"},{id:"study-info",title:"Tell us a little bit more about your studies"},{id:"what-to-improve",title:"What would you like to improve?"},{id:"learning-preferences",title:"How do you prefer to start new material?"},{id:"games-intro",title:"Let's play a few games ð®"},{id:"how-to-play",title:"How to play ð¤"},{id:"synonym-game",title:""},{id:"n2back-instructions",title:"How to play ð¤"},{id:"n2back-game",title:""},{id:"results",title:"Smashed it! ð"}];const v=t.memo(function(){const e=o(),{inputs:n}=s(),[r,v]=t.useState("create-account"),[E,I]=t.useState(10),N=k.findIndex(e=>e.id===r),b=k[N]?.title||"",L=()=>{if("create-account"===r||"login"===r)return v("get-started"),void I(30);if(N<k.length-1){let e=k[N+1].id;"get-started"===k[N].id&&("study"===n.area?e="study-info":"work"===n.area?e="work-info":"admin"===n.area&&(e="what-to-improve")),"work-info"!==k[N].id&&"study-info"!==k[N].id||(e="what-to-improve"),v(e),I("get-started"===e||"work-info"===e||"study-info"===e||"what-to-improve"===e||"learning-preferences"===e?30+5*(N+1):"games-intro"===e||"how-to-play"===e||"synonym-game"===e||"n2back-instructions"===e||"n2back-game"===e?60+5*(N-4):"results"===e?100:(N+2)/k.length*100)}},S=()=>{let e=null;if("login"===r?e="create-account":"get-started"===r?e="login":"work-info"===r||"study-info"===r||"what-to-improve"===r?e="get-started":"learning-preferences"===r&&(e="what-to-improve"),e){v(e);const t=k.findIndex(t=>t.id===e);I("get-started"===e||"what-to-improve"===e?30+5*t:"create-account"===e||"login"===e?10:(t+1)/k.length*100)}};return a.jsxs("div",{className:"app",children:[a.jsx(i,{}),a.jsx("div",{className:"progress-bar",role:"progressbar","aria-valuenow":Math.round(E),"aria-valuemin":0,"aria-valuemax":100,"aria-label":`Onboarding progress: ${Math.round(E)}% complete`,"aria-live":"polite",children:a.jsx("div",{className:"progress-fill",style:{width:`${E}%`,background:`linear-gradient(90deg, ${e.palette.primary.light}, ${e.palette.primary.main})`}})}),a.jsx("main",{className:"main-content",children:a.jsxs("div",{className:"screen-container",children:[a.jsx("h1",{className:"screen-title",style:{color:e.palette.text.primary},children:b}),a.jsx(t.Suspense,{fallback:a.jsx(w,{}),children:(()=>{const e="create-account"!==(o=r)&&"login"!==o&&"get-started"!==o&&"work-info"!==o&&"study-info"!==o&&"what-to-improve"!==o&&"learning-preferences"!==o||"create-account"===r?void 0:S;var o;const n=t.useCallback(e=>{v("study"===e?"study-info":"work"===e?"work-info":"what-to-improve")},[]),i={"create-account":a.jsx(l,{onNext:L}),login:a.jsx(c,{onNext:L}),"get-started":a.jsx(m,{onNext:L,onBack:e,onNextArea:n}),"work-info":a.jsx(d,{onNext:L,onBack:e}),"study-info":a.jsx(p,{onNext:L,onBack:e}),"what-to-improve":a.jsx(_,{onNext:L,onBack:e}),"learning-preferences":a.jsx(h,{onNext:L,onBack:e}),"games-intro":a.jsx(u,{onNext:L}),"how-to-play":a.jsx(y,{onNext:L}),"synonym-game":a.jsx(j,{onNext:L}),"n2back-instructions":a.jsx(f,{onNext:L}),"n2back-game":a.jsx(x,{onNext:L}),results:a.jsx(g,{})};return i[r]||i["create-account"]})()})]})})]})});export{v as default};
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.