1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{7237:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(1442)}])},1442:function(e,r,t){"use strict";t.r(r);var n=t(5893),o=t(7294),i=t(7012),l=t(8822),a=t(7310);r.default=function(){var e=(0,i.a)(),r=e.user,t=e.hasFetched;return(0,o.useEffect)((function(){r&&window.location.replace("/spaces/")}),[r]),t?(0,n.jsx)(a.Z,{}):(0,n.jsx)(l.Z,{children:"Loading..."})}},7310:function(e,r,t){"use strict";t.d(r,{Z:function(){return d}});var n=t(5893),o=(t(7294),t(3935)),i=t(9676),l=t(6144),a=t(3363),s=t(1379),c=t(5292);function d(){var e=(0,i.A)(),r=e.step,t=e.isSubmitting,d=e.resetStep,m=e.email,u=e.emailInput,h=e.onEmailChange,y=e.submitEmail,x=e.emailCode,g=e.emailCodeInput,j=e.emailCodeError,p=e.onEmailCodeChange,f=e.submitEmailCode,b=e.resendEmailCode,C=e.playerId,E=e.playerIdInput,B=e.playerIdCheckResultCode,w=e.onPlayerIdChange,I=e.checkPlayerId,D=e.submitPlayerId;switch(r){case i.$.EnterEmail:return(0,n.jsx)(n.Fragment,{children:o.createPortal((0,n.jsx)(c.r,{translucent:!1,children:(0,n.jsx)(l.o,{closable:!1,children:(0,n.jsxs)("form",{onSubmit:y,children:[(0,n.jsx)(s.Dx,{style:{marginBottom:"0.5rem"},children:"Welcome to Sprout"}),(0,n.jsx)(s.DK,{style:{marginBottom:"2rem"},children:"We\u2019re so excited that you\u2019re here!"}),(0,n.jsx)(s.cU,{value:m,"aria-label":"Email",type:"email",name:"email",placeholder:"Email address",ref:u,required:!0,autoFocus:!0,onChange:h,disabled:t,style:{marginBottom:"3rem",width:"100%"}}),(0,n.jsx)(s.fY,{color:"primary",style:{marginBottom:"2rem"},disabled:t||0===m.length,children:"Continue"}),(0,n.jsx)(s.sn,{style:{maxWidth:"15rem"},children:"By continuing, you\u2019re agreeing to our Terms of Use and Privacy Policy."})]})})}),document.body)});case i.$.EnterEmailCode:return(0,n.jsx)(n.Fragment,{children:o.createPortal((0,n.jsx)(c.r,{translucent:!1,children:(0,n.jsx)(l.o,{closable:!1,children:(0,n.jsxs)("form",{onSubmit:f,children:[(0,n.jsx)(s.Dx,{style:{marginBottom:"0.5rem"},children:"Enter login code"}),(0,n.jsxs)(s.DK,{style:{marginBottom:"2rem"},children:["Enter the six-digit code sent to ",m,"."]}),(0,n.jsx)(s.cU,{value:x,"aria-label":"Login code","aria-describedby":j?"email-code-error":void 0,"aria-invalid":Boolean(j),type:"text",name:"email-code",placeholder:"000000",inputMode:"numeric",autoComplete:"one-time-code",pattern:"[0-9]{6}",maxLength:6,ref:g,required:!0,autoFocus:!0,onChange:p,disabled:t,style:{marginBottom:j?"0.75rem":"1.5rem",width:"100%",fontSize:"1.5rem",letterSpacing:"0.25em",textAlign:"center"}}),j&&(0,n.jsx)(s.sn,{id:"email-code-error",role:"alert",style:{color:"#8A2F2A",marginBottom:"1.5rem"},children:j}),(0,n.jsx)(s.fY,{color:"primary",disabled:t||6!==x.length,style:{marginBottom:"0.75rem",width:"100%"},children:t?"Verifying\u2026":"Verify code"}),(0,n.jsxs)("div",{style:{display:"flex",gap:"0.5rem"},children:[(0,n.jsx)(s.fY,{type:"button",color:"secondary",onClick:b,disabled:t,style:{flex:1},children:"Resend code"}),(0,n.jsx)(s.fY,{type:"button",color:"secondary",onClick:d,disabled:t,style:{flex:1},children:"Change email"})]})]})})}),document.body)});case i.$.EnterPlayerId:return(0,n.jsx)(n.Fragment,{children:o.createPortal((0,n.jsx)(c.r,{translucent:!1,children:(0,n.jsx)(l.o,{closable:!1,children:(0,n.jsxs)("form",{onSubmit:D,children:[(0,n.jsx)(s.Dx,{style:{marginBottom:"0.5rem"},children:"Claim your Sprout ID"}),(0,n.jsxs)(s.DK,{style:{marginBottom:"2rem"},children:[(0,n.jsx)(s.LC,{children:"Pick a unique Sprout ID that you\u2019d like to use!"}),(0,n.jsx)(s.LC,{children:"Your Sprout ID will be public. It\u2019s different than nickname, which is next to your cursor that others see in space."})]}),(0,n.jsx)(s.cU,{value:C,"aria-label":"Sprout ID",type:"text",name:"playerId",placeholder:"Sprout ID",ref:E,required:!0,autoFocus:!0,onChange:w,onBlur:I,disabled:t,style:{marginBottom:"0.5rem",width:"100%"}}),(0,n.jsx)(a.V,{isChecking:t,resultCode:B}),(0,n.jsx)(s.fY,{color:"primary",disabled:t||0===C.length,style:{marginTop:"1.5rem"},children:"Continue"})]})})}),document.body)});case i.$.Done:return(0,n.jsx)(n.Fragment,{children:o.createPortal((0,n.jsx)(c.r,{translucent:!1,children:(0,n.jsxs)(l.o,{closable:!1,children:[(0,n.jsx)(s.Dx,{style:{marginBottom:"0.5rem"},children:"Going online in 3, 2, 1..."}),(0,n.jsx)(s.DK,{style:{marginBottom:"2rem"},children:"Taking you to your spaces... Have fun! \u2600\ufe0f"})]})}),document.body)});case i.$.Error:default:return(0,n.jsx)(n.Fragment,{children:o.createPortal((0,n.jsx)(c.r,{translucent:!1,children:(0,n.jsxs)(l.o,{closable:!1,children:[(0,n.jsx)(s.Dx,{style:{marginBottom:"0.5rem"},children:"Oops, something went wrong..."}),(0,n.jsx)(s.DK,{style:{marginBottom:"2rem"},children:"We had trouble logging you in. Please try again."}),(0,n.jsx)(s.fY,{color:"secondary",onClick:d,children:"Try again"})]})}),document.body)})}}}},function(e){e.O(0,[792,83,100,538,774,888,179],(function(){return r=7237,e(e.s=r);var r}));var r=e.O();_N_E=r}]); 2//# sourceMappingURL=login-219326d9e2f27f43.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.