PageSourceSearch

https://static.inworld.ai/466fe559/static/js/SupabaseLoginPage.5u1hkb-d.js

js inworld.ai collected 2026-10-01 09:01:43 UTC 20,156 bytes, 1 lines download raw bytes

1import{j as e,a as i}from"./vendor-core.DkahmlU8.js";import{cr as we,S as h,B as j,ei as ye,ac as je,ai as V,aj as te,ak as re,bA as Y,eO as ve,aw as Ce,a9 as q,ag as X,aa as Ae,ab as Ee,d as b,al as Pe,aZ as U,b as ie,c as ne,o as Ne,n as ee,K as Ie,T as ke,an as _e,ao as Re,at as We,h as oe,ap as Te,aq as Le}from"./bootstrap.KUFis_Od.js";import{bX as fe,bY as ze,B as O,bZ as Z,b_ as xe,i as Fe,b$ as Ue,j as Oe,c0 as Be,aB as De,c1 as Ge,c2 as Me,c3 as He}from"./App.C7HhiLEI.js";import{f as le,g as T,h as qe,a as ce,j as $e,k as Ke,e as Ve,s as Ye}from"./authErrors.Dlcnuwo_.js";import{y as I,aL as Xe,ae as B,a5 as Ze}from"./vendor-mui-x.BZ8Y4adA.js";import"./vendor-firebase.dbYXL2Q0.js";const de={server_error:"That sign-in could not be completed. Please try again.",access_denied:"Sign-in was cancelled, or your organization declined the request.",temporarily_unavailable:"The sign-in provider is temporarily unavailable. Please try again."},Je=()=>{var t,c,l;if(typeof window=="undefined")return null;const a=new URLSearchParams(window.location.hash.replace(/^#/,"")),n=new URLSearchParams(window.location.search),r=(t=a.get("error"))!=null?t:n.get("error");if(!r)return null;const o=(l=(c=a.get("error_description"))!=null?c:n.get("error_description"))!=null?l:"";return Qe(a,n),de[r]?de[r]:o?o.length>ue?`${o.slice(0,ue)}…`:o:r},ue=200,Qe=(a,n)=>{for(const t of["error","error_code","error_description"])a.delete(t),n.delete(t);const r=n.toString(),o=a.toString();window.history.replaceState(null,"",window.location.pathname+(r?`?${r}`:"")+(o?`#${o}`:""))},J={google:!1,github:!1,azure:!1,email:!1,samlEnabled:!1,signupDisabled:!0,mailerAutoconfirm:!1},ea=a=>{var n,r,o,t;return{google:((n=a.external)==null?void 0:n.google)===!0,github:((r=a.external)==null?void 0:r.github)===!0,azure:((o=a.external)==null?void 0:o.azure)===!0,email:((t=a.external)==null?void 0:t.email)===!0,samlEnabled:a.saml_enabled===!0,signupDisabled:a.disable_signup===!0,mailerAutoconfirm:a.mailer_autoconfirm===!0}};let F;const aa=()=>{if(F)return F;const{url:a,anonKey:n}=we();return!a||!n?(F=Promise.resolve(J),F):(F=fetch(`${a.replace(/\/$/,"")}/auth/v1/settings`,{method:"GET",headers:{apikey:n}}).then(async r=>r.ok?ea(await r.json()):J).catch(()=>J),F)},sa=new Set(["gmail.com","googlemail.com"]),Q=a=>sa.has(a),be=({password:a})=>{const n=a.length===0;return e.jsx(h,{className:"PasswordRequirements",spacing:.25,component:"ul",sx:ta,children:fe.map(r=>{const o=r.test(a);return e.jsxs(I,{component:"li",variant:"caption",sx:{display:"flex",alignItems:"center",gap:.75,color:n?"text.secondary":o?"success.main":"error.main",transition:"color 0.15s"},children:[e.jsx(j,{component:"span","aria-hidden":!0,sx:{width:"0.75rem"},children:n?"•":o?"✓":"✗"}),r.label]},r.label)})})},ta={listStyle:"none",m:0,pl:0},Se=a=>fe.every(n=>n.test(a)),me=()=>e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true",children:[e.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"currentColor"}),e.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"currentColor"}),e.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"currentColor"}),e.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"currentColor"})]}),ra=()=>e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 23 23","aria-hidden":"true",children:[e.jsx("rect",{x:"1",y:"1",width:"10",height:"10",fill:"#F25022"}),e.jsx("rect",{x:"12",y:"1",width:"10",height:"10",fill:"#7FBA00"}),e.jsx("rect",{x:"1",y:"12",width:"10",height:"10",fill:"#00A4EF"}),e.jsx("rect",{x:"12",y:"12",width:"10",height:"10",fill:"#FFB900"})]}),ia=()=>e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.
104 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"})}),na="us-central1",oa=()=>`https://${na}-${ye.projectId}.cloudfunctions.net/verifyRecaptcha`,la=async(a,n)=>{var t,c,l;const r=await fetch(oa(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:{email:a,recaptchaToken:n}})}),o=await r.json().catch(()=>({}));if(!r.ok)throw new Error(((t=o.error)==null?void 0:t.message)||"reCAPTCHA verification failed");if(((c=o.result)==null?void 0:c.success)!==!0)throw new Error(((l=o.result)==null?void 0:l.message)||"reCAPTCHA verification failed")},he=a=>`No single sign-on is set up for ${a}. Use another sign-in method, or ask your admin to configure SSO.`,pe="Could not load the verification challenge. Reload the page and try again.",ge={azure:"email,profile"},ae={start:"Log in or Sign up",password:"Sign in",signup:"Create an account",reset:"Reset your password",resetSent:"Reset your password",checkInbox:"Confirm your email",setPassword:"Choose a new password"},ca=({settings:a,banner:n,passwordRecovery:r,onTitleChange:o})=>{var u,w;const[t,c]=i.useState({name:"start"}),[l,p]=i.useState(()=>je()),[E,g]=i.useState(""),[f,L]=i.useState(""),[x,S]=i.useState(!1),_=t.name;i.useEffect(()=>{o==null||o(ae[_])},[o,_]),i.useEffect(()=>{r&&c({name:"setPassword"})},[r]);const m=i.useCallback(()=>{g(""),L("")},[]),y=i.useCallback(s=>{g(le(s))},[]),v=i.useCallback(async(s,d)=>{m(),S(!0),V(),te.track(re.CLICKED_SIGN_IN_WITH,{provider:s}),Y(s==="azure"?"microsoft.com":s==="github"?"github.com":"google.com");try{const{error:N}=await T().auth.signInWithOAuth({provider:s,options:{redirectTo:window.location.origin,...ge[s]?{scopes:ge[s]}:{},...d?{queryParams:{login_hint:d}}:ve()||Ce()?{queryParams:{prompt:"select_account"}}:{}}});if(N)throw N}catch(N){y(N),S(!1)}},[m,y]),z=i.useMemo(()=>{if(!a.google)return!1;const s=q(l);return s!==null&&Q(s)},[l,a.google]),$=i.useCallback(async()=>{m();const s=q(l);if(!s){g("Please enter a valid email address.");return}if(X(l),a.google&&Q(s)){await v("google",l);return}c({name:"password",email:l})},[m,l,a.google,v]),D=i.useCallback(async()=>{m();const s=q(l);if(!s){g("Please enter a valid email address.");return}S(!0),V(),te.track(re.CLICKED_SIGN_IN_WITH,{provider:"saml"}),Y("saml"),X(l);const d=A=>{g(A),S(!1)};let N;try{N=await Ae(s,Ee.AUTH_TYPE_SUPABASE)}catch(A){d("Could not check single sign-on for this domain. Please try again.");return}if(!N){d(he(s));return}try{const{data:A,error:se}=await T().auth.signInWithSSO({providerId:N,options:{redirectTo:window.location.origin}});if(se)throw se;if(!(A!=null&&A.url)){d("Could not start single sign-on. Please try again.");return}window.location.assign(A.url)}catch(A){d(qe(ce(A))?he(s):le(A))}},[m,l]),R=i.useCallback(()=>{m(),c({name:"start"})},[m]),G=i.useCallback(async s=>{m();const{error:d}=await T().auth.resend({type:"signup",email:s,options:{emailRedirectTo:window.location.origin}});if(d){y(d);return}L("Sent. Check your inbox.")},[m,y]),k=e.jsxs(e.Fragment,{children:[n,E&&e.jsx(O,{className:"SupabaseAuthWidgetError",severity:"error",children:E}),f&&e.jsx(O,{className:"SupabaseAuthWidgetNotice",severity:"success",children:f})]});if(t.name==="setPassword")return e.jsxs(h,{className:"SupabaseAuthWidget",spacing:2,children:[k,e.jsx(ha,{busy:x,setBusy:S,clearMessages:m,onFailure:y})]});if(t.name==="checkInbox")return e.jsxs(h,{className:"SupabaseAuthWidget",spacing:2,children:[k,e.jsxs(I,{variant:"body2",color:"text.secondary",children:["We sent a confirmation link to ",e.jsx("strong",{children:t.email}),". Open it to finish signing in."]}),e.jsx(b,{intent:"secondary",className:"SupabaseAuthWidgetResendButton","aria-label":"Resend confirmation email",onClick:()=>void G(t.email),children:"Resend email"}),e.jsx(b,{intent:"ghost","aria-label":"Use a different email",size:"small",onClick:R,children:"Use a different email"})]});if(t.name==="password")return e.jsxs(h,{className:"SupabaseAuthWidget",spacing:2,children:[k,e.jsx(da,{email:t.email,busy:x,allowSignup:!a.signupDisabled,onSubmit:async s=>{m(),S(!0);try{const{error:d}=await T().auth.signInWithPassword({email:t.email,password:s});if(d)throw d;V(),Y("password")}catch(d){if($e(ce(d))){c({name:"checkInbox",email:t.email});return}y(d)}finally{S(!1)}},onCreateAccount:s=>{m(),c({name:"signup",email:t.email,password:s})},onForgotPassword:()=>{m(),c({name:"reset",email:t.email})},onBack:R})]});if(t.name==="signup")return e.jsxs(h,{className:"SupabaseAuthWidget",spacing:2,children:[k,e.jsx(ma,{initialEmail:t.email,initialPassword:t.password,busy:x,setBusy:S,clearMessages:m,setError:g,onFailure:y,validateEmail:s=>{const d=q(s);return d?a.google&&Q(d)?"This address is managed by Google. Go back and continue with Google instead.":null:"Please enter a valid email address."},onSignedUp:s=>{X(s),c({name:"checkInbox",email:s})},onBack:s=>
1{m(),c({name:"password",email:s})}})]});if(t.name==="reset"||t.name==="resetSent")return e.jsxs(h,{className:"SupabaseAuthWidget",spacing:2,children:[k,t.name==="resetSent"?e.jsxs(I,{variant:"body2",color:"text.secondary",children:["If an account exists for ",e.jsx("strong",{children:t.email}),", a password reset link is on its way."]}):e.jsxs(e.Fragment,{children:[e.jsxs(I,{variant:"body2",color:"text.secondary",children:["Send a password reset link to ",e.jsx("strong",{children:t.email}),"?"]}),e.jsx(b,{className:"SupabaseAuthWidgetSendResetButton","aria-label":"Send reset link",size:"medium",fullWidth:!0,disabled:x,onClick:async()=>{m(),S(!0);try{const{error:s}=await T().auth.resetPasswordForEmail(t.email,{redirectTo:window.location.origin});if(s)throw s;c({name:"resetSent",email:t.email})}catch(s){y(s)}finally{S(!1)}},children:"Send reset link"})]}),e.jsx(b,{intent:"ghost","aria-label":"Back to sign in",size:"small",onClick:R,children:"Back to sign in"})]});const M=a.google||a.azure||a.github,H=a.email||a.samlEnabled,P=ze(Pe(),a.github),C=[{provider:"google.com",enabled:a.google,className:"SupabaseAuthWidgetGoogleButton",label:"Continue with Google",icon:e.jsx(me,{}),onClick:()=>void v("google")},{provider:"microsoft.com",enabled:a.azure,className:"SupabaseAuthWidgetMicrosoftButton",label:"Continue with Microsoft",icon:e.jsx(ra,{}),onClick:()=>void v("azure")},{provider:"github.com",enabled:a.github,className:"SupabaseAuthWidgetGithubButton",label:"Continue with GitHub",icon:e.jsx(ia,{}),onClick:()=>void v("github")}].filter(s=>s.enabled),W=C.some(s=>s.provider===P)||P==="saml"&&a.samlEnabled||P==="password"&&a.email?P:(w=(u=C[0])==null?void 0:u.provider)!=null?w:a.email?"password":"saml",K=[...C].sort((s,d)=>s.provider===W?-1:d.provider===W?1:0);return e.jsxs(h,{className:"SupabaseAuthWidget",spacing:2,children:[k,!M&&!H&&e.jsx(O,{severity:"error",children:"Sign-in is temporarily unavailable. Please try again shortly."}),K.map(s=>e.jsx(b,{intent:s.provider===W?"primary":"secondary",className:s.className,"aria-label":s.label,size:"medium",fullWidth:!0,disabled:x,sx:Z,startIcon:s.icon,onClick:s.onClick,children:s.label},s.provider)),M&&H&&e.jsx(Xe,{children:e.jsx(I,{variant:"caption",color:"text.secondary",children:"or"})}),H&&e.jsx(j,{component:"form",className:"SupabaseAuthWidgetEmailForm","aria-label":"Email sign-in",onSubmit:s=>{s.preventDefault(),a.email?$():D()},children:e.jsxs(h,{spacing:2,children:[e.jsx(U,{label:"Email address",htmlFor:"supabase-auth-email",children:e.jsx(B,{className:"inworld-text-field",type:"email",autoComplete:"email",fullWidth:!0,size:"small",value:l,disabled:x,id:"supabase-auth-email",onChange:s=>p(s.target.value)})}),a.email&&e.jsx(b,{intent:W==="password"?"primary":"secondary",className:"SupabaseAuthWidgetContinueButton",type:"submit",size:"medium",fullWidth:!0,disabled:x||!l,sx:Z,loading:x,startIcon:z?e.jsx(me,{}):e.jsx(ie,{icon:ne.faEnvelope,size:"base",style:{color:"inherit"}}),children:z?"Continue with Google":"Continue with email"}),a.samlEnabled&&e.jsx(b,{intent:W==="saml"?"primary":"secondary",className:"SupabaseAuthWidgetSsoButton","aria-label":"Continue with SSO",type:"button",size:"medium",fullWidth:!0,disabled:x||!l,sx:Z,startIcon:e.jsx(ie,{icon:ne.faKey,size:"base",style:{color:"inherit"}}),onClick:()=>void D(),children:"Continue with SSO"})]})})]})},da=({email:a,busy:n,allowSignup:r,onSubmit:o,onCreateAccount:t,onForgotPassword:c,onBack:l})=>{const[p,E]=i.useState("");return e.jsxs(h,{className:"SupabaseAuthWidgetPasswordStep",spacing:2,children:[e.jsxs(I,{variant:"body2",color:"text.secondary",children:["Continue as ",e.jsx("strong",{children:a})]}),e.jsx(j,{component:"form",onSubmit:g=>{g.preventDefault(),o(p)},children:e.jsxs(h,{spacing:2,children:[e.jsx(ua,{email:a}),e.jsx(U,{label:"Password",htmlFor:"supabase-auth-password",children:e.jsx(B,{className:"inworld-text-field",type:"password",autoComplete:"current-password",autoFocus:!0,fullWidth:!0,size:"small",value:p,disabled:n,id:"supabase-auth-password",onChange:g=>E(g.target.value)})}),e.jsxs(h,{direction:"row",spacing:2,children:[r&&e.jsx(b,{intent:"secondary",className:"SupabaseAuthWidgetCreateAccountButton","aria-label":"Create an account",type:"button",size:"medium",fullWidth:!0,disabled:n,onClick:()=>t(p),children:"Create an account"}),e.jsx(b,{className:"SupabaseAuthWidgetSignInButton","aria-label":"Sign in",type:"submit",size:"medium",fullWidth:!0,disabled:n||!p,children:"Sign in"})]})]})}),e.jsx(b,{intent:"ghost","aria-label":"Forgot password",size:"small",onClick:c,children:"Forgot password?"}),e.jsx(b,{intent:"ghost","aria-label":"Use a different email",size:"small",onClick:l,children:"Use a different email"})]})},ua=({email:a})=>e.jsx(j,{component:"input",className:"SupabaseAuthWidgetHiddenUsername",type:"email",name:"username",autoComplete:"username",value:a,readOnly:!0,tabIndex:-1,"aria-hidden":!0,sx:{position:"absolute",width:1,height:1,opacity:0,pointerEvents:"none"}}),ma=({initialEmail:a,initialPassword:n,busy:r,setBusy:o,clearMessages:t,setError:c,onFailure:l,validateEmail:p,onSignedUp:E,onBack:g})=>{var K;const[f,L]=i.useState(a),[x,S]=i.useState(""),[_,m]=i.useState(n),[y,v]=i.useState(""),[z,$]=i.useState(!1),D=i.useRef(null),R=i.useRef(null),G=i.useRef(null),k=Ne(ee.STUDIO_RECAPTCHA_EMAIL_SIGNUP),M=Ie(ee.STUDIO_RECAPTCHA_EMAIL_SIGNUP),H=i.useMemo(()=>{var u,w,s;return((s=(w=(u=M.payload)==null?void 0:u.value)==null?void 0:w.split(","))==null?void 0:s.map(d=>
1d.trim().toLowerCase()).filter(Boolean))||[]},[(K=M.payload)==null?void 0:K.value]),P=Fe(),C=k&&!!P&&Ue(q(f),H);i.useEffect(()=>{const u=D.current;if(!C||!u||!P||G.current===u)return;let w=!1;return Oe().then(()=>{w||G.current===u||(R.current=window.grecaptcha.enterprise.render(u,{sitekey:P,size:"normal",callback:s=>v(s),"expired-callback":()=>v(""),"error-callback":()=>v("")}),G.current=u,$(!1))}).catch(()=>{w||$(!0)}),()=>{w=!0}},[C,P]);const W=async()=>{var w;t();const u=p(f);if(u){c(u);return}o(!0);try{if(C){if(z){c(pe);return}if(!y){c("Please complete the verification challenge.");return}try{await la(f,y)}catch(N){c("Verification failed. Please try again."),R.current!==null&&((w=window.grecaptcha)==null||w.enterprise.reset(R.current)),v("");return}}const{data:s,error:d}=await T().auth.signUp({email:f,password:_,options:{data:x.trim()?{full_name:x.trim()}:{},emailRedirectTo:window.location.origin}});if(d)throw d;Y("password"),V(),s.session||E(f)}catch(s){l(s)}finally{o(!1)}};return e.jsxs(h,{className:"SupabaseAuthWidgetSignupStep",spacing:2,children:[e.jsx(j,{component:"form",onSubmit:u=>{u.preventDefault(),W()},children:e.jsxs(h,{spacing:2,children:[e.jsx(U,{label:"Email address",htmlFor:"supabase-auth-signup-email",children:e.jsx(B,{className:"inworld-text-field",type:"email",name:"username",autoComplete:"username",fullWidth:!0,size:"small",value:f,disabled:r,id:"supabase-auth-signup-email",onChange:u=>L(u.target.value)})}),e.jsx(U,{label:"Full name",htmlFor:"supabase-auth-name",children:e.jsx(B,{className:"inworld-text-field",autoComplete:"name",autoFocus:!0,fullWidth:!0,size:"small",value:x,disabled:r,id:"supabase-auth-name",onChange:u=>S(u.target.value)})}),e.jsx(U,{label:"Password",htmlFor:"supabase-auth-signup-password",children:e.jsx(B,{className:"inworld-text-field",type:"password",autoComplete:"new-password",fullWidth:!0,size:"small",value:_,disabled:r,id:"supabase-auth-signup-password",slotProps:{htmlInput:{passwordrules:xe}},onChange:u=>m(u.target.value)})}),e.jsx(be,{password:_}),C&&e.jsx(j,{component:"div",className:"SupabaseAuthWidgetRecaptcha",ref:D}),C&&z&&e.jsx(O,{className:"SupabaseAuthWidgetChallengeUnavailable",severity:"error",children:pe}),e.jsx(b,{className:"SupabaseAuthWidgetSignUpButton","aria-label":"Create account",type:"submit",size:"medium",fullWidth:!0,disabled:r||!f.trim()||!x.trim()||!Se(_)||C&&z,children:"Create account"})]})}),e.jsx(b,{intent:"ghost","aria-label":"Back to sign in",size:"small",onClick:()=>g(f),children:"Back to sign in"})]})},ha=({busy:a,setBusy:n,clearMessages:r,onFailure:o})=>{const[t,c]=i.useState("");return e.jsx(h,{className:"SupabaseAuthWidgetSetPasswordStep",spacing:2,children:e.jsx(j,{component:"form",onSubmit:l=>{l.preventDefault(),(async()=>{r(),n(!0);try{const{error:p}=await T().auth.updateUser({password:t});if(p)throw p;await Ke()}catch(p){o(p)}finally{n(!1)}})()},children:e.jsxs(h,{spacing:2,children:[e.jsx(U,{label:"New password",htmlFor:"supabase-auth-new-password",children:e.jsx(B,{className:"inworld-text-field",type:"password",autoComplete:"new-password",autoFocus:!0,fullWidth:!0,size:"small",value:t,disabled:a,id:"supabase-auth-new-password",slotProps:{htmlInput:{passwordrules:xe}},onChange:l=>c(l.target.value)})}),e.jsx(be,{password:t}),e.jsx(b,{className:"SupabaseAuthWidgetSetPasswordButton","aria-label":"Set new password",type:"submit",size:"medium",fullWidth:!0,disabled:a||!Se(t),children:"Set new password"})]})})})},wa=()=>{const{error:a}=ke(),n=Be(ee.STUDIO_LOGIN_TAGLINE,He),[r,o]=i.useState(),[t,c]=i.useState(Ve),[l,p]=i.useState(ae.start);i.useEffect(()=>{let f=!1;return aa().then(L=>{f||o(L)}),()=>{f=!0}},[]),i.useEffect(()=>Ye(c),[]);const[E]=i.useState(Je),g=E?e.jsx(O,{className:"OauthReturnErrorAlert",severity:"error",children:E}):(a==null?void 0:a.message)===_e?e.jsxs(O,{className:"SsoRequiredAlert",severity:"info",children:[e.jsx(De,{children:"Your organization requires SSO"}),"Sign in through your organization's identity provider to continue."]}):Re(a)?e.jsx(Ge,{}):null;return e.jsx(j,{className:"SupabaseLoginPage",component:"div",sx:{minHeight:"100vh",display:"flex",alignItems:"center",mx:"auto",py:4,width:"100%",maxWidth:"24rem",px:{xs:3,md:3.5},boxSizing:"border-box"},children:e.jsxs(h,{spacing:3,sx:{width:"100%"}
1,children:[e.jsx(j,{component:"div",sx:{display:"flex",justifyContent:"flex-start","& svg":{width:"7rem",height:"auto"}},children:e.jsx(We,{})}),e.jsxs(j,{component:"div",children:[e.jsx(I,{variant:"h2",sx:Me,children:l}),l===ae.start&&e.jsx(I,{variant:"body2",color:"text.secondary",sx:{mt:1},children:n})]}),r?e.jsx(ca,{settings:r,banner:g,passwordRecovery:t,onTitleChange:p}):e.jsx(j,{component:"div",sx:{display:"flex",justifyContent:"center",py:4},children:e.jsx(Ze,{})}),e.jsxs(I,{variant:"caption",color:"text.secondary",children:["By continuing, you are indicating that you accept our ",e.jsx(oe,{"aria-label":"Terms of Service",href:Te,underline:"hover",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," and ",e.jsx(oe,{"aria-label":"Privacy Policy",href:Le,underline:"hover",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"}),"."]})]})})};export{wa 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.