1"use strict";(self.webpackChunkcursor_ai_agents=self.webpackChunkcursor_ai_agents||[]).push([[8987],{10848:(e,t,o)=>{o.r(t),o.d(t,{default:()=>s});o(65043);var i=o(16932),a=o(44331),n=o(15069),r=o(70579);const s=()=>{const e=(0,a.$)();return(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",fontFamily:"var(--font-family-text)",color:"var(--color-text-primary)",background:"var(--color-background-primary)"},children:[(0,r.jsx)(i.Ay,{tabTitle:n.ZQ.seo.tabTitle,title:n.ZQ.seo.title,description:n.ZQ.seo.description,noIndex:!0}),(0,r.jsxs)("div",{style:{textAlign:"center",padding:"2rem",maxWidth:"400px",boxShadow:"0 4px 16px rgba(0,0,0,0.1)",borderRadius:"16px",background:"white"},children:["processing"===e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{children:n.ZQ.processing.title}),(0,r.jsx)("p",{children:n.ZQ.processing.body})]}),"success"===e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{children:n.ZQ.success.title}),(0,r.jsx)("p",{children:n.ZQ.success.body})]}),"error"===e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{children:n.ZQ.error.title}),(0,r.jsx)("p",{children:n.ZQ.error.body})]})]})]})}},15069:(e,t,o)=>{function i(e){switch(e){case"auth/popup-blocked":return"your browser blocked the google window. allow popups for prest0 and try again, or use your email and password above.";case"auth/popup-closed-by-user":case"auth/cancelled-popup-request":return"the google window closed before sign-in finished. try again, or use your email and password above.";case"auth/network-request-failed":return"network hiccup on the way to google. check your connection and try again.";case"auth/invalid-credential":case"auth/unauthorized-domain":case"auth/operation-not-allowed":case"INVALID_GOOGLE_TOKEN":return"google sign-in isn't working right now \u2014 that one's on us. use your email and password above; we've been notified.";case"INVALID_EMAIL":return"google didn't share an email address for that account. pick an account with a visible email, or sign up with your email and password above.";default:return"google sign-in didn't go through \u2014 please try again, or use your email and password above."}}o.d(t,{Tl:()=>n,XE:()=>s,ZQ:()=>r,_E:()=>a,uM:()=>i});const a={heading:{lead:"24/7 ",ai:"AI",tail:" employees for law and finance"},mode:{login:"log in",signup:"create account"},switchMode:{toLogin:"already have an account? log in",toSignup:"new user? create account"},suffix:{invite:"to apply your invite code",teamInvite:"to accept your team invitation"},fields:{email:"email address",password:"password"},rememberMe:"remember me",forgot:{idle:"forgot password?",sending:"sending..."},or:"or",createInstead:"create account instead",working:{signup:"creating your account\u2026",login:"signing you in\u2026",inviteNext:"your invite code applies next"},done:{signup:"account created",login:"signed in",invite:"applying your invite code\u2026",other:"taking you to your account\u2026"},googleOnly:{title:"this account signs in with google",body:e=>`${e} was set up with google, so it has no password yet \u2014 use the google button below to continue. once you're in, you can add a password under settings \u2192 account.`},google:{unavailable:"google sign-in is unavailable right now \u2014 use your email and password above. we're on it.",scriptFailed:"we couldn't reach google's sign-in just now \u2014 it's usually a browser extension or a network filter. use your email and password above, or try again in a private window.",failedSignup:"google sign-in didn't go through. you can try again, or create your account with an email and password above.",failedLogin:"google sign-in didn't go through. you can try again, or use your email and password above \u2014 same account either way."}
1,reset:{needEmail:'enter your email above first, then tap "forgot password?" again.',sent:e=>`if an account exists for ${e}, a reset link is on its way \u2014 check your inbox. the email comes from [email protected] and can't receive replies.`,failed:"couldn't send the reset email just now \u2014 please try again in a moment."},errors:{needEmail:"enter your email address to continue.",shortPassword:"your password needs at least 6 characters.",incomplete:"that sign-in didn't complete \u2014 please try again.",passwordMismatch:'that password doesn\'t match this account \u2014 try again, or tap "forgot password?" above to reset it.',alreadyHasAccount:'this email already has an account \u2014 you\'re on log in now: enter your password, or tap "forgot password?" to reset it.',alreadyRegistered:"this email is already registered \u2014 sign in with your existing method.",inviteJourney:"that sign-in didn't work. if you haven't created your prest0 account yet, use \"create account instead\" below \u2014 your invitation picks right up after.",noAccount:'no account exists for this email yet \u2014 use "create account instead" below, or double-check the address.',wrongPassword:'incorrect email or password \u2014 please try again, or tap "forgot password?" above to reset it. if you usually sign in with google, use the google button below.',failed:"sign-in failed \u2014 please try again.",unexpected:"an error occurred during sign-in \u2014 please try again.",registeredWith:e=>`this email is already registered with ${e} \u2014 sign in with that method first.`}},n={seo:{tabTitle:"auth",title:"Login or Create Account | prest0",description:"log in to your prest0 account or create a new one to start teaching and monetizing your ai agent"},codeSaved:"your invite code is saved \u2014 it applies automatically right after this step."},r={seo:{tabTitle:"auth callback",title:"Auth Callback | prest0",description:"processing your prest0 authentication response"},processing:{title:"Completing Authentication",body:"Please wait while we complete the authentication process..."},success:{title:"Authentication Successful",body:"You have been successfully authenticated. Redirecting to dashboard..."},error:{title:"Authentication Error",body:"There was a problem authenticating your account. Redirecting to home page..."}},s={title:"welcome back",titleJourney:"you're signed in",loggedInWith:"Logged in with ",yourAccount:"your account",workingIn:"working in ",continueInvite:"continue \u2014 apply your invite code",continueTeam:"continue \u2014 accept your team invitation",goTo:e=>`go to ${e}`,workspaces:"workspaces",loadingWorkspaces:"loading workspaces\u2026",currentWorkspace:e=>`${e} \u2014 current workspace`,switchTo:e=>`switch to ${e}`,switching:"switching\u2026",owner:"owner",member:"member",reviewInviteLabel:"review your pending invitation",reviewInvite:"pending invitation \u2014 review",switchFailed:"couldn't switch \u2014 try again",logout:"log out",logoutSuffix:"- to auth page"}},44331:(e,t,o)=>{o.d(t,{$:()=>n});var i=o(65043),a=o(73216);function n(){const e=(0,a.Zp)(),t=(0,a.zy)(),[n,r]=(0,i.useState)("processing");return(0,i.useEffect)((()=>{(async()=>{try{const i=await async function(){try{const e=await Promise.resolve().then(o.bind(o,37064)),t=await Promise.resolve().then(o.bind(o,67898)),i=e.getApps().length?e.getApp():void 0,a=t.getAuth(i),n=new URLSearchParams(window.location.search);if("google"===n.get("start")){const e=new t.GoogleAuthProvider;return e.setCustomParameters({prompt:"select_account"}),await t.signInWithRedirect(a,e),null}try{const e=await t.getRedirectResult(a);if(e&&e.user){const o=t.getAdditionalUserInfo(e);return{uid:e.user.uid,email:e.user.email||void 0,isNewUser:!(null===o||void 0===o||!o.isNewUser)}}}catch{}const r=n.get("credential")||new URLSearchParams(window.location.hash.replace("#","")).get("credential");if(r)try{const e=t.GoogleAuthProvider.credential(r),o=await t.signInWithCredential(a,e),i=t.getAdditionalUserInfo(o);return{uid:o.user.uid,email:o.user.email||void 0,isNewUser:!(null===i||void 0===i||!i.isNewUser)}}catch{}if(a.currentUser)return{uid:a.currentUser.uid,email:a.currentUser.email||void 0}}catch{}return null}();if(!i)return;await async function(e){if(e)try{const{getOrCreateUserByEmailClient:t}=await Promise.resolve().then(o.bind(o,40112));await t(e,"google.com")}catch{}}(i.email||null),r("success");let a="/",n=!1;try{const e=sessionStorage.getItem("auth_return_url");e&&(a=e,sessionStorage.removeItem("auth_return_url")),n="1"===sessionStorage.getItem("auth_force_return_url"),sessionStorage.removeItem("auth_force_return_url"),sessionStorage.removeItem("auth_initial_mode")}catch{}let s=!1,c=null;if(i.isNewUser){const e=/[?&]code=/.test(a)||"/accept-invite"===a||a.startsWith("/accept-invite?");let i=!1;try{i=Boolean(sessionStorage.getItem("pending_trial_code"))}catch{}if(s=!e&&!i,s)try{const{getFunctions:e,httpsCallable:t}=await Promise.resolve().then(o.bind(o,52395)),i=t(e(void 0,"us-central1"),"startOrganicTrial"),n=await i({}),r=(null===n||void 0===n?void 0:n.data)||{};!1===(null===r||void 0===r?void 0:r.started)&&"pending-team-invite"===(null===r||void 0===r?void 0:r.reason)?c="/":!1===(null===r||void 0===r?void 0:r.started)&&"is-workspace-member"===(null===r||void 0===r?void 0:r.reason)&&(c=a)}catch(t){console.warn("startOrganicTrial failed (non-fatal):",t)}}const l=s?c||("/"!==a&&"/wallet"!==a?a:"/onboarding"):a;console.info("[AuthCallback] organic-onboarding-v20260816 target="+l),setTimeout((()=>{e(l)}),500)}catch(i){console.error("Error processing authentication callback:",i),r("error"),setTimeout((()=>{e("/")}),1500)}})()}),[e,t]),n}}}]); 2//# sourceMappingURL=auth-callback.a725f859.chunk.js.map
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.