PageSourceSearch

https://app.getout.com/assets/index-DYhb_O7E.js

js getout.com collected 2026-10-01 15:58:30 UTC 6,937 bytes, 2 lines download raw bytes

1import{u as ee,r as a,j as e,L as se}from"./vendor-react-Cy4_K9SJ.js";import{a as te,u as re,Y as w,T as n,B as Y,L as j,I as S,E as oe,X as F,F as q,G as M,C as ae}from"./index-zu35vGQz.js";import{v as U,a as ne,b as ie}from"./validation-CFXVbt50.js";import{A as le}from"./AuthLayout-C4AX-qVl.js";import{A as ce}from"./assets-DQQCt1Js.js";import{R as de}from"./registration-38fv5pvm.js";import{a as ue}from"./vendor-utils-CzZbtGlo.js";import{g as me}from"./registrationRouting-Be-KEV2J.js";import"./vendor-auth-11xr_7yX.js";import"./vendor-router-DAoJLnNk.js";import"./vendor-forms-sj3VMw1u.js";import"./dot-pattern-bg-C-FzwWig.js";import"./registration-C5OO1ReV.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"[email protected]"};var m=new r.Error().stack;m&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[m]="1fc94888-1886-4e6e-94c2-fb8d10ac177b",r._sentryDebugIdIdentifier="sentry-dbid-1fc94888-1886-4e6e-94c2-fb8d10ac177b")}catch{}})();const he="CreateAccountPage-module__errorAlert___n3i3O",ge="CreateAccountPage-module__existingAccountAlert___1nJEc",pe="CreateAccountPage-module__eyeButton___fErsL",fe="CreateAccountPage-module__checkboxContainer___dM14g",xe="CreateAccountPage-module__checkboxLabel___3tueA",be="CreateAccountPage-module__signIn___Epgg6",ye="CreateAccountPage-module__signInLink___eEPqB",d={errorAlert:he,existingAccountAlert:ge,eyeButton:pe,checkboxContainer:fe,checkboxLabel:xe,signIn:be,signInLink:ye},we={async lookup(r,m){return(await ue.post(`${te.getApiUrl}/auth/email-status`,{email:r},{signal:m})).data.value}},je=()=>{const r=ee(),{signup:m,isLoading:i}
1=re(),[u,W]=a.useState(""),[h,H]=a.useState(""),[A,X]=a.useState(""),[p,$]=a.useState(!1),[f,J]=a.useState(!1),[k,K]=a.useState(!1),[L,x]=a.useState(null),[C,N]=a.useState(""),[_,T]=a.useState(""),[E,R]=a.useState(""),[l,v]=a.useState(null),B=a.useRef(null),z=s=>{const t=U(s);return N(t.error),t.isValid};a.useEffect(()=>{var y;const s=u.trim().toLowerCase();if(!s||!U(s).isValid){v(null);return}l&&l.email!==s&&v(null),(y=B.current)==null||y.abort();const t=new AbortController;B.current=t;const P=setTimeout(async()=>{try{const g=await we.lookup(s,t.signal);if(t.signal.aborted)return;v(g.exists?g:null)}catch{}},400);return()=>{clearTimeout(P),t.abort()}},[u]);const V=()=>{r({to:"/auth/login",search:{email:(l==null?void 0:l.email)??u.trim().toLowerCase()}})},b=l?l.source==="pogo"?{title:"We found a Pogo Pass account linked to this email",body:"Your Pogo passes already live on this email. Log in to access them in GetOut — creating a new account will leave them behind.",cta:"LOG IN INSTEAD"}:{title:"An account already exists for this email",body:"Log in to access your memberships.",cta:"LOG IN INSTEAD"}:null,O=s=>{const t=ne(s);return T(t.error),t.isValid},D=s=>{const t=ie(h,s);return R(t.error),t.isValid},Q=async s=>{var g;s.preventDefault(),x(null);const t=z(u),P=O(h),y=D(A);if(!(!t||!P||!y)){if(l){V();return}if(!k){x("You must agree to the Terms & Conditions to continue.");return}try{await m(u,h);const c=await de.getRegistrationState(),o=me({isAuthenticated:!0,isLoadingRegState:!1,isLoadingUser:!1,registrationState:c,user:void 0});r(o==="complete"?{to:"/"}:o==="loading"?{to:"/auth/register/profile"}:{to:o})}catch(c){const o=(g=c==null?void 0:c.response)==null?void 0:g.data,I=o==null?void 0:o.errors;if(I&&typeof I=="object"){const G=Object.values(I).flatMap(Z=>Z??[]);x(G.length>0?G.join(" "):(o==null?void 0:o.message)??"Signup failed. Please try again.")}else x((o==null?void 0:o.message)??(c==null?void 0:c.message)??"Signup failed. Please try again.")}}};return e.jsx(le,{leftImage:ce.authSideImage,leftImageAlt:"Authentication image",children:e.jsxs(w,{gap:"lg",style:{width:"100%"},children:[e.jsxs(w,{gap:"xxs",children:[e.jsx(n,{size:"h4",children:"Create Your Account"}),e.jsx(n,{size:"base",color:"primary",children:"Set up your account to access your memberships, manage renewals, and discover fun near you."})]}),L&&e.jsx("div",{className:d.errorAlert,children:e.jsx(n,{size:"sm",children:L})}),b&&e.jsx("div",{className:d.existingAccountAlert,children:e.jsxs(w,{gap:"xs",children:[e.jsx(n,{size:"sm",isBold:!0,children:b.title}),e.jsx(n,{size:"sm",children:b.body}),e.jsx(Y,{variant:"primary",size:"large",fullWidth:!0,hasArrow:!0,onClick:V,type:"button",children:b.cta})]})}),e.jsx("form",{onSubmit:Q,children:e.jsxs(w,{gap:"md",children:[e.jsxs("div",{children:[e.jsx(j,{htmlFor:"email",required:!0,children:"Email"}),e.jsx(S,{tabIndex:1,id:"email",type:"email",placeholder:"",value:u,onChange:s=>{W(s.target.value),N("")},onBlur:()=>z(u),disabled:i,state:C?"error":void 0,iconLeft:e.jsx(oe,{})}),C&&e.jsx(n,{size:"sm",style:{marginTop:"4px",color:"#dc2626"},children:C})]}),e.jsxs(F,{gap:"md",style:{width:"100%"},children:[e.jsxs("div",{style:{flex:1},children:[e.jsx(j,{htmlFor:"password",required:!0,children:"Create Password"}),e.jsx(S,{tabIndex:1,id:"password",type:p?"text":"password",placeholder:"",value:h,onChange:s=>{H(s.target.value),T("")},onBlur:()=>O(h),disabled:i,state:_?"error":void 0,iconRight:e.jsx("button",{type:"button",className:d.eyeButton,onClick:()=>$(!p),"aria-label":p?"Hide password":"Show password",children:p?e.jsx(q,{}):e.jsx(M,{})})}),_&&e.jsx(n,{size:"sm",style:{marginTop:"4px",color:"#dc2626"},children:_})]}),e.jsxs("div",{style:{flex:1},children:[e.jsx(j,{htmlFor:"confirmPassword",required:!0,children:"Confirm Password"}),e.jsx(S,{tabIndex:3,id:"confirmPassword",type:f?"text":"password",placeholder:"",value:A,onChange:s=>{X(s.target.value),R("")},onBlur:()=>D(A),disabled:i,state:E?"error":void 0,iconRight:e.jsx("button",{type:"button",className:d.eyeButton,onClick:()=>J(!f),"aria-label":f?"Hide confirm password":"Show confirm password",children:f?e.jsx(q,{}):e.jsx(M,{})})}),E&&e.jsx(n,{size:"sm",style:{marginTop:"4px",color:"#dc2626"},children:E})]})]}),e.jsxs("div",{className:d.checkboxContainer,children:[e.jsx(ae,{tabIndex:4,id:"terms",checked:k,onChange:s=>K(s.target.checked),disabled:i}),e.jsxs(j,{htmlFor:"terms",className:d.checkboxLabel,children:["By creating an account, you agree to the"," ",e.jsx("a",{href:"/terms",className:"link",target:"_blank",rel:"noopener noreferrer",children:"Terms & Conditions"})," ","and"," ",e.jsx("a",{href:"/terms",className:"link",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]})]}),e.jsx(Y,{tabIndex:5,variant:"primary",size:"large",fullWidth:!0,type:"submit",disabled:i,hasArrow:!0,children:i?"CREATING ACCOUNT...":"CONTINUE"})]})}),e.jsx(F,{justify:"center",align:"center",gap:"xs",className:d.sign
1In,children:e.jsxs(n,{size:"sm",color:"primary",children:["Already have an account?",e.jsx(se,{to:"/auth/login",className:`link ${d.signInLink}`,children:"SIGN IN"})]})})]})})},Be=je;export{Be as component};
2//# sourceMappingURL=index-DYhb_O7E.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.