1import{r as l,S as k,z as v,k as y,h as N,m as C,j as e,T as o,U as S,I as c,V as w,F as L,B as A,W as B,n as r}from"./index-wnr683Hh.js";function I(){const[t,u]=l.useState(!1),[p,i]=l.useState(!1),[,m]=k(),{register:g,handleSubmit:d,getValues:h,formState:{errors:x}}=v(),a=y(),j=N(),{t:s}=C(),b=()=>{if(!t)i(!0);else{i(!1);const n=h("email");j(B(n)).then(f=>{f?(r.setStorageObject("newUser",!0),r.setStorageObject("registerEmail",n),a("/create-profile")):r.removeItem("newUser")})}};return e.jsxs("div",{className:"signup-form",children:[e.jsxs("button",{type:"button",className:"forgot-step-back",onClick:()=>a("/login"),children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[e.jsx("path",{d:"M11 8H5",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8 11L5 8L8 5",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),e.jsx("span",{children:s("register.backToLogin")})]}),e.jsx("h1",{className:"signup-title",children:s("login.title.sign-up")}),e.jsx("p",{className:"signup-subtitle",children:s("register.subtitle")}),e.jsxs(o,{onSubmit:d(b),className:"signup-form-fields",children:[e.jsxs(o.Group,{className:"signup-field",children:[e.jsx(S,{className:"label-style",label:s("form.labels.email")}),e.jsxs(c,{className:`signup-input-group${x.email?" signup-input-group--error":""}`,children:[e.jsx(c.Text,{className:"signup-input-icon",id:"signup-email-icon",children:e.jsx("img",{src:w,alt:""})}),e.jsx(L,{...g("email",{required:!0}),placeholder:"[email protected]","aria-label":"email","aria-describedby":"signup-email-icon",type:"email",required:!0,className:"signup-input",autoComplete:"email"})]})]}),p&&e.jsx("div",{className:"signup-privacy-alert",children:s("register.privacyAlert")}),e.jsxs("label",{className:"signup-privacy",children:[e.jsx("input",{type:"checkbox",name:"privacy",checked:t,onChange:()=>u(!t)}),e.jsxs("span",{children:[s("register.privacyAgreeBefore")," ",e.jsx("button",{type:"button",className:"signup-privacy-link",onClick:()=>m(!0),children:s("register.privacyAgreeLink")}),s("register.privacyAgreeAfter")]})]}),e.jsx(A,{className:"submit-button-style signup-continue",variant:"primary",type:"submit",children:s("register.createAccount")})]})]})}export{I 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.