1import{r as t,a,j as n,A as p}from"./index.12fe676c.js";import{I as u}from"./index.d71caffb.js";import{E as b}from"./api.f8118827.js";const v=()=>{const[r,c]=t.exports.useState(""),[o,f]=t.exports.useState(""),[d,s]=t.exports.useState(""),m=async i=>{i.preventDefault();let e=await b(r).catch(l=>{switch(console.log(l),l.response.data.code){case 10001:s("Email Invalid!");break;case 10010:s("Account Already Exists!");break;case 10012:window.location.href="/sign/in";break}});if((e==null?void 0:e.status)==200)switch(e.data.code){case 0:p.insert({...e.data.data,icode:o}),window.location.href="verfication";break;case 10001:s("Email Invalid!");break;case 10008:s("Email Rate Limit.");break;case 10010:s("Account Already Exists!");break}},h=(i,e)=>{switch(i){case"email":c(e.target.value);break}};return a("div",{className:"upEmail",children:a("form",{onSubmit:m,children:n("ul",{children:[n("li",{children:[a("div",{className:"b-title1",children:"Welcome!"}),a("div",{className:"b-body2",children:"Please enter your details"})]}),a("li",{children:a(u,{type:"email",error:d,name:"email",onChange:i=>h("email",i),title:"Email",className:"input-edit"})}),a("li",{children:a("button",{className:"btn1-enable b-body1",type:"submit",children:"Sign up"})}),a("li",{className:"links",children:n("span",{children:[a("span",{className:"tips b-paragraph1",children:"Already have an account? "}),a("a",{className:"link-paragraph1",href:"/sign/in",children:"Sign in"})]})})]})})})};export{v 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.