1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c83784a2-d664-538a-b33a-823e57103311")}catch(e){}}(); 3import{bR as e,bS as r,bK as s,bQ as n,bT as o,bU as a,aC as t,bO as i,bV as d,bL as u,bM as k,bN as p,bP as c}from"./index-CL10LGZK.js";import{u as b}from"./useAuth-C9kpV6vc.js";import{u as l}from"./useSuspenseQuery-sAtkDGBu.js";const w=r("\n query VerifyResetPasswordTokenQuery($token: String!) {\n verifyResetPasswordToken(token: $token) {\n is_valid\n error\n }\n }\n"),f=r("\n query MePasswordPage {\n user {\n has_completed_onboarding\n }\n }\n"),g=()=>{const{isAuthenticated:r,loading:g}=b(),[h]=s(),v=n(),m=o(),y=h.get("token"),{toastCatchError:P}=a(),E=t.useRef(!1),{data:x}=l(f,{skip:!r}),{data:T,loading:_}=(({token:r})=>e(w,{variables:{token:r},skip:!r}))({token:y??""}),j=v.pathname.endsWith("/new-password")||v.pathname.endsWith("/reset-password"),R=T?.verifyResetPasswordToken?.is_valid,A=T?.verifyResetPasswordToken?.error;t.useEffect(()=>{if(j)return y&&""!==y||E.current?void(T&&y&&!R&&!E.current&&(E.current=!0,A===d.InvalidToken?P(new Error("Invalid token")):A===d.ExpiredToken?P(new Error("Expired token")):P(new Error("An error occurred while verifying the token")),m(i.ForgotPassword,{replace:!0}))):(E.current=!0,P(new Error("Missing token")),void m(i.ForgotPassword,{replace:!0}))},[A,R,P,y,T,j,m]);const S=x?.user?.has_completed_onboarding;return _||g?u.jsx(k,{}):S&&r?u.jsx(p,{to:i.Settings_Profile,replace:!0}):u.jsx(c,{})};export{g as default}; 4//# sourceMappingURL=index-B48hWMUu.js.map 5 6//# debugId=c83784a2-d664-538a-b33a-823e57103311
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.