1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3461],{24355:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/verify-social-accounts",function(){return s(88950)}])},88950:function(e,l,s){"use strict";s.r(l),s.d(l,{__N_SSG:function(){return p},mobileNumberValidate:function(){return f}});var r=s(85893),n=s(67294),t=s(34051),a=s(31555),i=s(12529),o=s(35005),d=s(14546),c=s.n(d),u=s(30521),m=s(11163),p=!0;function f(e){return/^(\+91|0)?[6789]\d{9}$/.test(e)?e.startsWith("0")?"+91"+e.slice(1):e.startsWith("+91")?e:"+91"+e:null}let v=e=>{var l;let s=(0,m.useRouter)(),[d,p]=(0,n.useState)({action:"send_otp",phone_number:"",profession:"INDIVIDUAL",frontend:1}),[v,h]=(0,n.useState)({action:"verify_otp",otp_code:"",phone_number:"",profession:"INDIVIDUAL",verification_id:"",frontend:1,email:null===(l=s.query)||void 0===l?void 0:l.email}),[x,b]=(0,n.useState)(!1),[N,j]=(0,n.useState)(0),[y,_]=(0,n.useState)(!1),[g,E]=(0,n.useState)(null),w=e=>{let{target:l}=e,{name:s,value:r}=l;E(null),p({...d,[s]:r})},F=e=>{let{target:l}=e,{name:s,value:r}=l;h({...v,[s]:r})};(0,n.useEffect)(()=>{N>0&&setTimeout(()=>j(N-1),1e3)},[N]);let C=async e=>{var l,r,n,t,a,i;if((null===(l=s.query)||void 0===l?void 0:l.email)||s.push("/?login_error="),"send otp"==e)try{let e=f(null==d?void 0:d.phone_number);if(!e){E({...g,phone_number:"Invalid mobile number"});return}let l=await (0,u.ZF)({...d,phone_number:e});j(l.expiration_in_seconds),h({...v,phone_number:e,email:null===(r=s.query)||void 0===r?void 0:r.email,verification_id:null==l?void 0:l.verification_id,profession:null==d?void 0:d.profession}),b(!0)}catch(e){(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.error)?E({resError:null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(i=a.data)||void 0===i?void 0:i.error}):E({resError:null==e?void 0:e.message})}};return(0,r.jsxs)(t.Z,{children:[(0,r.jsx)(a.Z,{md:6,className:"p-5",id:c().vectorCol,children:(0,r.jsx)("img",{src:"/signup-vector.png",alt:"Signup Vector",width:"100%"})}),(0,r.jsx)(a.Z,{md:6,className:"p-5",id:c().onelaststep,children:(0,r.jsxs)("div",{className:"px-5",children:[(0,r.jsx)("h2",{id:c().OTPheading,children:"One last step"}),(0,r.jsx)("p",{style:{color:"#4A4A4A"},children:"Please validate your phone number"}),(0,r.jsxs)(i.Z,{className:"mt-5 pe-5",children:[(0,r.jsxs)("div",{className:"mb-3",children:[(0,r.jsx)("label",{htmlFor:"Profession",className:"form-label",children:"Your Profession"}),(0,r.jsxs)("select",{className:"form-select py-3",id:"Profession",name:"profession",onChange:w,children:[(0,r.jsx)("option",{value:"",disabled:!0,children:"Your Profession"}),(0,r.jsx)("option",{value:"'INDIVIDUAL'",children:"Salaried Individual/Family"}),(0,r.jsx)("option",{value:"'BUSINESS'",children:"Self Employed/Business"}),(0,r.jsx)("option",{value:"'SERVICE_PROVIDER'",children:"Tax/Accounting Professional"})]})]}),(0,r.jsxs)("div",{className:"mb-3",children:[(0,r.jsx)("label",{htmlFor:"Phone",className:"form-label",children:"Phone Number"}),(0,r.jsx)("input",{type:"text",className:"form-control py-3",name:"phone_number",onChange:w,value:null==d?void 0:d.phone_number,placeholder:"Enter your phone number"}),(0,r.jsx)("div",{className:"text-danger mt-2",children:null==g?void 0:g.phone_number})]}),x?(0,r.jsxs)("div",{className:"mb-3",children:[(0,r.jsx)("label",{htmlFor:"otp_code",className:"form-label",children:"Enter One Time Password (OTP)"}),(0,r.jsx)("input",{type:"text",id:"otp_code",className:"form-control py-3",value:null==v?void 0:v.otp_code,name:"otp_code",onChange:F,placeholder:"Enter mobile OTP"}),(0,r.jsxs)("div",{className:"mt-2",children:["Resend OTP ",(0,r.jsxs)("span",{className:"text-primary",children:[N," Sec"]})]})]}):(0,r.jsx)(r.Fragment,{}),y?(0,r.jsx)("p",{className:"text-success",children:"Mobile number verified successfully"}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)("p",{className:"text-danger",children:null==g?void 0:g.resError}),(0,r.jsx)(o.Z,{type:"button",onClick:()=>C(x?"verify otp":"send otp"),className:"btn btn-primary mt-4 fs-5",id:c().sendOTPbtn,children:x?"Verify OTP":"Send OTP"})]})]})})]})};l.default=v},14546:function(e){e.exports={vectorCol:"sign-up_vectorCol__HXtOT",onelaststep:"sign-up_onelaststep__ZyoNa",sendOTPbtn:"sign-up_sendOTPbtn__XMzjp",OTPheading:"sign-up_OTPheading__vDdBn"}},53439:function(e,l,s){"use strict";s.d(l,{Ed:function(){return t},UI:function(){return n},XW:function(){return a}});var r=s(67294);function n(e,l){let s=0;return r.Children.map(e,e=>
1r.isValidElement(e)?l(e,s++):e)}function t(e,l){let s=0;r.Children.forEach(e,e=>{r.isValidElement(e)&&l(e,s++)})}function a(e,l){return r.Children.toArray(e).some(e=>r.isValidElement(e)&&e.type===l)}},12529:function(e,l,s){"use strict";s.d(l,{Z:function(){return Z}});var r=s(93967),n=s.n(r),t=s(45697),a=s.n(t),i=s(67294),o=s(85893);let d={type:a().string,tooltip:a().bool,as:a().elementType},c=i.forwardRef(({as:e="div",className:l,type:s="valid",tooltip:r=!1,...t},a)=>(0,o.jsx)(e,{...t,ref:a,className:n()(l,`${s}-${r?"tooltip":"feedback"}`)}));c.displayName="Feedback",c.propTypes=d;var u=s(6558),m=s(91377),p=s(76792);let f=i.forwardRef(({bsPrefix:e,className:l,htmlFor:s,...r},t)=>{let{controlId:a}=(0,i.useContext)(m.Z);return e=(0,p.vE)(e,"form-check-label"),(0,o.jsx)("label",{...r,ref:t,htmlFor:s||a,className:n()(l,e)})});f.displayName="FormCheckLabel";var v=s(53439);let h=i.forwardRef(({id:e,bsPrefix:l,bsSwitchPrefix:s,inline:r=!1,reverse:t=!1,disabled:a=!1,isValid:d=!1,isInvalid:h=!1,feedbackTooltip:x=!1,feedback:b,feedbackType:N,className:j,style:y,title:_="",type:g="checkbox",label:E,children:w,as:F="input",...C},P)=>{l=(0,p.vE)(l,"form-check"),s=(0,p.vE)(s,"form-switch");let{controlId:T}=(0,i.useContext)(m.Z),I=(0,i.useMemo)(()=>({controlId:e||T}),[T,e]),O=!w&&null!=E&&!1!==E||(0,v.XW)(w,f),Z=(0,o.jsx)(u.Z,{...C,type:"switch"===g?"checkbox":g,ref:P,isValid:d,isInvalid:h,disabled:a,as:F});return(0,o.jsx)(m.Z.Provider,{value:I,children:(0,o.jsx)("div",{style:y,className:n()(j,O&&l,r&&`${l}-inline`,t&&`${l}-reverse`,"switch"===g&&s),children:w||(0,o.jsxs)(o.Fragment,{children:[Z,O&&(0,o.jsx)(f,{title:_,children:E}),b&&(0,o.jsx)(c,{type:N,tooltip:x,children:b})]})})})});h.displayName="FormCheck";var x=Object.assign(h,{Input:u.Z,Label:f});s(42473);let b=i.forwardRef(({bsPrefix:e,type:l,size:s,htmlSize:r,id:t,className:a,isValid:d=!1,isInvalid:c=!1,plaintext:u,readOnly:f,as:v="input",...h},x)=>{let{controlId:b}=(0,i.useContext)(m.Z);return e=(0,p.vE)(e,"form-control"),(0,o.jsx)(v,{...h,type:l,size:r,ref:x,readOnly:f,id:t||b,className:n()(a,u?`${e}-plaintext`:e,s&&`${e}-${s}`,"color"===l&&`${e}-color`,d&&"is-valid",c&&"is-invalid")})});b.displayName="FormControl";var N=Object.assign(b,{Feedback:c});let j=i.forwardRef(({className:e,bsPrefix:l,as:s="div",...r},t)=>(l=(0,p.vE)(l,"form-floating"),(0,o.jsx)(s,{ref:t,className:n()(e,l),...r})));j.displayName="FormFloating";let y=i.forwardRef(({controlId:e,as:l="div",...s},r)=>{let n=(0,i.useMemo)(()=>({controlId:e}),[e]);return(0,o.jsx)(m.Z.Provider,{value:n,children:(0,o.jsx)(l,{...s,ref:r})})});y.displayName="FormGroup";var _=s(31555);let g=i.forwardRef(({as:e="label",bsPrefix:l,column:s=!1,visuallyHidden:r=!1,className:t,htmlFor:a,...d},c)=>{let{controlId:u}=(0,i.useContext)(m.Z);l=(0,p.vE)(l,"form-label");let f="col-form-label";"string"==typeof s&&(f=`${f} ${f}-${s}`);let v=n()(t,l,r&&"visually-hidden",s&&f);return(a=a||u,s)?(0,o.jsx)(_.Z,{ref:c,as:"label",className:v,htmlFor:a,...d}):(0,o.jsx)(e,{ref:c,className:v,htmlFor:a,...d})});g.displayName="FormLabel";let E=i.forwardRef(({bsPrefix:e,className:l,id:s,...r},t)=>{let{controlId:a}=(0,i.useContext)(m.Z);return e=(0,p.vE)(e,"form-range"),(0,o.jsx)("input",{...r,type:"range",ref:t,className:n()(l,e),id:s||a})});E.displayName="FormRange";let w=i.forwardRef(({bsPrefix:e,size:l,htmlSize:s,className:r,isValid:t=!1,isInvalid:a=!1,id:d,...c},u)=>{let{controlId:f}=(0,i.useContext)(m.Z);return e=(0,p.vE)(e,"form-select"),(0,o.jsx)("select",{...c,size:s,ref:u,className:n()(r,e,l&&`${e}-${l}`,t&&"is-valid",a&&"is-invalid"),id:d||f})});w.displayName="FormSelect";let F=i.forwardRef(({bsPrefix:e,className:l,as:s="small",muted:r,...t},a)=>(e=(0,p.vE)(e,"form-text"),(0,o.jsx)(s,{...t,ref:a,className:n()(l,e,r&&"text-muted")})));F.displayName="FormText";let C=i.forwardRef((e,l)=>(0,o.jsx)(x,{...e,ref:l,type:"switch"}));C.displayName="Switch";var P=Object.assign(C,{Input:x.Input,Label:x.Label});let T=i.forwardRef(({bsPrefix:e,className:l,children:s,controlId:r,label:t,...a},i)=>(e=(0,p.vE)(e,"form-floating"),(0,o.jsxs)(y,{ref:i,className:n()(l,e),controlId:r,...a,children:[s,(0,o.jsx)("label",{htmlFor:r,children:t})]})));T.displayName="FloatingLabel";let I={_ref:a().any,validated:a().bool,as:a().elementType},O=i.forwardRef(({className:e,validated:l,as:s="form",...r},t)=>(0,o.jsx)(s,{...r,ref:t,className:n()(e,l&&"was-validated")}));
1O.displayName="Form",O.propTypes=I;var Z=Object.assign(O,{Group:y,Control:N,Floating:j,Check:x,Switch:P,Label:g,Text:F,Range:E,Select:w,FloatingLabel:T})},6558:function(e,l,s){"use strict";var r=s(93967),n=s.n(r),t=s(67294),a=s(91377),i=s(76792),o=s(85893);let d=t.forwardRef(({id:e,bsPrefix:l,className:s,type:r="checkbox",isValid:d=!1,isInvalid:c=!1,as:u="input",...m},p)=>{let{controlId:f}=(0,t.useContext)(a.Z);return l=(0,i.vE)(l,"form-check-input"),(0,o.jsx)(u,{...m,ref:p,type:r,id:e||f,className:n()(s,l,d&&"is-valid",c&&"is-invalid")})});d.displayName="FormCheckInput",l.Z=d},91377:function(e,l,s){"use strict";var r=s(67294);let n=r.createContext({});l.Z=n}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=24355)}),_N_E=e.O()}]);
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.