1import{r as u,bm as g,ap as m,bn as h,bo as p,j as s}from"./index-B4_lKB0j.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3b04a436aaa09b871bbc9aaf912981fe6a3097f5"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bdaa24f5-eae9-4c26-b9ed-2467d324b77d",e._sentryDebugIdIdentifier="sentry-dbid-bdaa24f5-eae9-4c26-b9ed-2467d324b77d")}catch{}})();const y=()=>{const[e,t]=u.useState(null),{isLoading:r,loginWithRedirect:d,error:b}=g(),[f]=m(),c=f.get("planId"),n=f.get("affiliate_code");n&&h(n);const i=n??p();return u.useEffect(()=>{if(r)return;let l=!1;return d({appState:{planId:c},...i&&{authorizationParams:{affiliate_code:i}}}).catch(a=>{if(l)return;let o="Unknown error";typeof a=="string"?o=a:a instanceof Error&&(o=a.message),t(o)}),()=>{l=!0}},[c,i,d,r]),b||e?s.jsxs("div",{className:"h-screen flex flex-col justify-center items-center",children:[s.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Login Error"}),s.jsx("p",{className:"text-lg font-medium",children:"Please try again"})]}):s.jsx("div",{className:"h-screen flex justify-center items-center",children:"Loading..."})};export{y as LogInPage};
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.