PageSourceSearch

https://driftgolf-qa.netlify.app/assets/SignupPage-e76d2196.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:13 UTC 2,127 bytes, 1 lines download raw bytes

1import{u as d,r as n,a,j as e,d as u}from"./index-4ce00ee7.js";import{d as s}from"./index-e629a575.js";import{t}from"./index-51f3a61d.js";const h=()=>{const{isAuthenticated:i,signUp:o}=d();n.useEffect(()=>{i&&a.navigate(a.routes.dashboard())},[i]);const l=n.useRef();n.useEffect(()=>{l.current.focus()},[]);const m=async c=>{const r=await o({...c});r.message?t.toast(r.message):r.error?t.toast.error(r.error):t.toast.success("Welcome!")};return e.jsxs(e.Fragment,{children:[e.jsx(u.MetaTags,{title:"Signup"}),e.jsxs("main",{className:"rw-main w-96 mx-auto mt-12",children:[e.jsx(t.Toaster,{toastOptions:{className:"rw-toast",duration:6e3}}),e.jsxs("div",{className:"rw-scaffold rw-login-container",children:[e.jsxs("div",{className:"rw-segment",children:[e.jsx("header",{className:"rw-segment-header",children:e.jsx("h2",{className:"rw-heading rw-heading-secondary",children:"Signup"})}),e.jsx("div",{className:"rw-segment-main",children:e.jsx("div",{className:"rw-form-wrapper",children:e.jsxs(s.Form,{onSubmit:m,className:"rw-form-wrapper",children:[e.jsx(s.Label,{name:"username",className:"rw-label",errorClassName:"rw-label rw-label-error",children:"Username"}),e.jsx(s.TextField,{name:"username",className:"rw-input",errorClassName:"rw-input rw-input-error",ref:l,validation:{required:{value:!0,message:"*Required"}}}),e.jsx(s.FieldError,{name:"username",className:"rw-field-error"}),e.jsx(s.Label,{name:"password",className:"rw-label",errorClassName:"rw-label rw-label-error",children:"Password"}),e.jsx(s.PasswordField,{name:"password",className:"rw-input",errorClassName:"rw-input rw-input-error",autoComplete:"current-password",validation:{required:{value:!0,message:"*Required"}}}),e.jsx(s.FieldError,{name:"password",className:"rw-field-error"}),e.jsx("div",{className:"rw-button-group",children:e.jsx(s.Submit,{className:"rw-button rw-button-blue",children:"Sign Up"})})]})})})]}),e.jsxs("div",{className:"rw-login-link mt-2 text-center",children:[e.jsx("span",{children:"Already have an account?"})," ",e.jsx(a.Link,{to:a.routes.login(),className:"rw-link",children:"Log in!"})]})]})]})]})};export{h 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.