1import{a as d,s as l,b as x,J as g,u as f,q as j,j as s,n as v,o as P,p as N,x as b,G as y,E as S,H as _,B as T,K as k}from"./index-BYjmYzu-.js";import{s as e}from"./phone_verification.module-Csso46S3.js";import{P as B}from"./phone_number_component-DKom9mnd.js";import"./form_utils-BRD3em_d.js";import"./input_styles.module-DexRyFjS.js";function C(){const{uuid:t}=d(l),i=x(),{search:n}=g(),[r]=f(),c=j(r),o=history.state,m=(u,h)=>{S.put(`${_}/api/v1/users`,{phone:`+91${u.phone}`,uuid:t}).then(a=>{T({uuid:a.data.data.otp_uuid,maskedPhone:a.data.data.masked_phone});const p=c.next?`/auth/otp_verify${n}`:"/auth/otp_verify";i(p)}).catch(a=>{k.error({message:"Signup error",description:a.message}),h.setSubmitting(!1)})};return t||i("/auth/signup"),s.jsx("div",{className:e.PhoneVerification,children:s.jsx("div",{className:e.card,children:s.jsxs("div",{className:e.content,children:[s.jsx("img",{src:v("icon-phone.svg"),className:e.phoneImage,alt:"Phone"}),s.jsx("div",{className:e.title,children:"Enter Phone number"}),s.jsx("div",{className:e.description,children:"We will send you an 6-digit OTP for verification"}),s.jsx(P,{initialValues:{phone:o&&o.phone},onSubmit:m,children:s.jsxs(N,{noValidate:!0,className:e.form,children:[s.jsx(B,{}),s.jsx(b,{Component:y,size:"large",id:"b_signup_submitphone",className:e.submitButton,children:"NEXT"})]})})]})})})}export{C as Component};
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.