1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2853],{8134:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/abo-registration",function(){return n(2303)}])},2303:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return V}});var t=n(47568),s=n(10092),o=n(85893),a=n(67294),i=n(15648),c=n(14416),l=n(96486),u=n(12039),d=n(44837),p=n(26042),_=n(69396),m=n(86637),h=n(74231),f=n(74274),b=n.n(f),x=n(76091),v=n(91522),g=n(92796),w=n(26793),N=n(21500),y=n(5933),j=n(99883),C=n(59763),S=n(48372),k=n(62183),q=n(60793),T=n(10646),I=n.n(T),Z=function(){var e=(0,a.useState)(!1),r=e[0],n=e[1],u=(0,a.useState)(!1),d=u[0],f=u[1],T=(0,a.useState)(!1),Z=T[0],P=T[1],E=(0,a.useState)(!1),U=E[0],B=E[1],M=(0,c.useDispatch)(),F=(0,a.useState)([{option:"try_sign_in",checked:!1},{option:"register_with_another",checked:!1}]),O=F[0],W=F[1],L=(0,a.useState)(!1),A=L[0],V=L[1],D=(0,a.useState)(!1),R=D[0],G=D[1],z=(0,a.useState)(null),H=z[0],J=z[1],X=(0,a.useState)(!1),$=X[0],K=X[1],Q=(0,a.useState)(!1),Y=Q[0],ee=Q[1],re=(0,a.useState)(""),ne=re[0],te=re[1],se=(0,a.useState)(""),oe=se[0],ae=se[1],ie=(0,a.useState)(!0),ce=ie[0],le=ie[1],ue=(0,a.useState)(!1),de=ue[0],pe=ue[1],_e=(0,a.useState)(!0),me=_e[0],he=_e[1],fe=(0,a.useState)(""),be=fe[0],xe=fe[1],ve=(0,a.useState)(""),ge=ve[0],we=ve[1],Ne=(0,w.$)().t,ye=h.Ry({mobileNumber:h.Z_().required(Ne("mobileNumber_error_required")).length(10,Ne("mobile_num_length")).matches(/^0?[6-9]\d{9}$/,Ne("mobileNumber_error_message")),password:h.Z_().required(Ne("password_error_required")).matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!#$%&*@^]).{8,20}$/,Ne("password_error")).test("passwordCheck",Ne("password_ekyc_custom_error"),(function(e){var r=this.parent.mobileNumber;return!e||!r||!e.includes(r)})),confirmPassword:h.Z_().required(Ne("confirm_password_required")).oneOf([h.iH("password")],Ne("confirm_passWord_error")),aboNumber:h.Z_(),pincode:h.Z_()}),je=(0,c.useSelector)((function(e){return(0,l.get)(e,"appVariables.applicationConfig.apiGateway.authURL","")})),Ce=(0,c.useSelector)((function(e){return(0,l.get)(e,"appVariables.applicationConfig.apiGateway.hostURL","")})),Se=function(){var e=(0,t.Z)((function(){var e,r,n,t,o;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:if(!(e=localStorage.getItem("an"))||"0"===e)return[2];s.label=1;case 1:return s.trys.push([1,3,4,5]),P(!0),[4,(0,v.e)({url:"".concat(Ce,"/api/ana/preview/sponsors/details"),apiMethod:"get",needAuth:!1,urlParameters:{aboNumber:e}})];case 2:return r=s.sent(),n=r.data,t={distributorName:n.sponsor_name,sponsorNumber:n.sponsor_id,city:n.sponsor_city,fetched:!0,accountSubTypeCd:n.accountSubTypeCd,errorType:n.error_type,data:n,sponsorSource:"shared"},J(t),[3,5];case 3:return o=s.sent(),console.error("Error while fetching shared sponsor",o),[3,5];case 4:return P(!1),[7];case 5:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){Se()}),[]),(0,o.jsx)(m.J9,{initialValues:{mobileNumber:"",password:"",confirmPassword:"",aboNumber:"",pincode:""},validationSchema:ye,children:function(e){var a=e.errors,c=e.touched,u=e.values,h=e.isValid,w=e.setFieldError,T=e.setFieldValue,E=$?!Y:!U||!H||!h,F=function(e){return c[e]&&a[e]&&(0,o.jsx)("p",{className:b().errorText,children:a[e]})},L=function(e){return c[e]&&a[e]&&(0,o.jsx)(S.Z,{showInvalid:!0,invalidText:"Invalid"})},D=function(){var e=(0,t.Z)((function(){var e,r,n,t,o,a=arguments;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:e=a.length>0&&void 0!==a[0]?a[0]:H,s.label=1;case 1:return s.trys.push([1,3,4,5]),h&&U?(P(!0),r="+91".concat(u.mobileNumber),n=(null===e||void 0===e?void 0:e.sponsorNumber)||"",t="pincode"===(null===e||void 0===e?void 0:e.sponsorSource)?"false":"true",q.g.configure((0,_.Z)((0,p.Z)({},q.g.configure()),{clientMetadata:{signup_type:"ekyc_registration",m_request_type:"prospect",entered_sponsor:"".concat(n),pincode:"",city:"",sponsor_flag:t}})),xe(""),we(""),[4,q.g.signUp({username:r,password:u.password,attributes:{phone_number:r}})]):[2];case 2:return s.sent(),ae(r),le(!0),pe(!1),K(!0),[3,5];case 3:return o=s.sent(),console.error(o),we(o.message||"Unable to register."),[3,5];case 4:return P(!1),he(!0),[7];case 5:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),z=function(){var e=(0,t.Z)((function(){var e,r;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,5,6]),P(!0),[4,q.g.confirmSignUp(oe,ne)];case 1:return n.sent(),[4,q.g.signIn(oe,u.password)];case 2:return n.sent(),[4,q.g.currentSession()];case 3:return e=n.sent(),I().set("CIT",(0,l.get)(e,"idToken.jwtToken","")),M((0,i.nj)("ekyc")),[3,6];case 4:return r=n.sent(),console.error(r),we(r.message||"OTP verification failed."),[3,6];case 5:return P(!1),[7];case 6:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),X=function(){var e=(0,t.Z)((function(){return(0,s.__generator)(this,(function(e){switch(e.label){case 0:return $?[3,2]:[4,D()];case 1:return e.sent(),K(!0),[2];case 2:return[4,z()];case 3:return e.sent(),[2]}}))}));return function(){return e.apply(this,arguments)}}(),Q=function(){var e=(0,t.Z)((function(){var e;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),xe(""),[4,q.g.resendSignUp(oe)];case 1:return r.sent(),le(!0),pe(!1),[3,3];case 2:return e=r.sent(),console.error(e),"LimitExceededException"===e.code?(pe(!0),xe(e.message),[2]):(xe(e.message||"Unable to resend OTP."),[3,3]);case 3:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();return(0,o.jsxs)("div",{className:b().contactForm,children:[(0,o.jsx)("div",{className:b().heading,children:"Contact Information"}),(0,o.jsxs)(m.l0,{className:b().contactCard,onSubmit:function(e){e.preventDefault()},children:[" ",Z&&(0,o.jsx)(g.Z,{isAction:!0}),(0,o.jsxs)("div",{className:b().formGroup,children:[(0,o.jsxs)("div",{className:b().label_area,children:[(0,o.jsx)("label",{htmlFor:"mobileNumber",className:b().label,children:"Mobile Number"}),L("mobileNumber")]}),(0,o.jsxs)("div",{className:b().mobileWrapper,children:[(0,o.jsx)("span",{className:b().countryCode,children:"+91"}),(0,o.jsx)(m.gN,{name:"mobileNumber",children:function(e){var r=e.field;return(0,o.jsx)("input",(0,_.Z)((0,p.Z)({},r),{disabled:$,className:b().mobileInput,maxLength:10,type:"tel",inputMode:"numeric",autoComplete:"off",onChange:function(e){var r=e.target.value.replace(/\D/g,"");T("mobileNumber",r),U&&B(!1),10!==r.length||U||function(e){P(!0);var r={url:"".concat(je,"/uc"),needAuth:!1,apiMethod:"post",requestBody:{phone_number:"+91".concat(e),email_address:""}};(0,v.e)(r).then((function(e){(null===e||void 0===e?void 0:e.data).phu?(w("mobileNumber",void 0),B(!0)):G(!0)})).catch((function(e){console.error(">>> Failed to check the uniqueness of mobile.",e),w("mobileNumber","Unable to verify mobile number. Please try again."),B(!1)})).finally((function(){P(!1)}))}(r)}}))}})]}),(0,o.jsx)("p",{className:b().helperText,children:"Mobile Number will be used as your login ID"}),F("mobileNumber")]}),(0,o.jsxs)("div",{className:b().passwordContainer,children:[(0,o.jsxs)("div",{className:b().formGroup,children:[(0,o.jsxs)("div",{className:b().label_area,children:[(0,o.jsx)("label",{htmlFor:"password",className:b().label,children:"Create Password"}),L("password")]}),(0,o.jsxs)("div",{className:b().passwordWrapper,children:[(0,o.jsx)(m.gN,{disabled:$,name:"password",type:r?"text":"password",className:b().passwordInput,placeholder:"Enter password",autoComplete:"off"}),(0,o.jsx)("div",{className:b().passwordIcon,onClick:function(){return n(!r)},children:(0,o.jsx)(k.default,{name:r?"open_eye":"cross_eye"})})]}),(0,o.jsx)("p",{className:b().helperText,children:"Example - My@password1"}),F("password")]}),(0,o.jsxs)("div",{className:b().formGroup,children:[(0,o.jsxs)("div",{className:b().label_area,children:[(0,o.jsx)("label",{htmlFor:"confirmPassword",className:b().label,children:"Confirm Password"}),L("confirmPassword")]}),(0,o.jsxs)("div",{className:b().passwordWrapper,children:[(0,o.jsx)(m.gN,{disabled:$,name:"confirmPassword",type:d?"text":"password",className:b().passwordInput,placeholder:"Enter confirm password",autoComplete:"off"}),(0,o.jsx)("div",{className:b().passwordIcon,onClick:function(){return f(!d)},children:(0,o.jsx)(k.default,{name:d?"open_eye":"cross_eye"})})]}),F("confirmPassword")]})]})]}),R&&(0,o.jsx)(N.default,{showCrossIcon:!1,showDrawer:!0,mobileModal:!0,passwordModal:!0,children:(0,o.jsx)(y.Z,{showCloseIcon:!0,optionArray:O,mobileNumber:u.mobileNumber,handlePopUpClick:function(e){var r=O.map((function(r,n){if(n===e){var t=r&&r.checked;r.checked=!t}else r.checked=!1;return r}));V(!0),W(r)},isOptionSelected:A,closeCallback:function(){G(!1),V(!1)},handleClickProceed:function(){0===O.findIndex((function(e){return!0===e.checked}))?(G(!1),window.location.href="/?r_d=3"):(G(!1),T("mobileNumber",""))}})}),(0,o.jsxs)("div",{className:b().contactCard,children:[(0,o.jsx)("div",{className:b().sponsorContainer,children:(0,o.jsx)(j.Z,{inputWrapperClass:b().mobileWrapper,inputClass:b().mobileInput,errorClass:b().errorText,verifyBtnClass:b().verifyBtn,sponsorDetails:H,setSponsorDetails:J,authURL:je,hostURL:Ce,onRegistrationRequired:D,setShowContinueButton:he})}),$&&(0,o.jsx)(x.Z,{pageError:{otpError:be},identifier:u.mobileNumber,heading:"verify_mobile_phone",isOtpLimitExceeded:de,showTimer:ce,setShowTimer:le,onResend:Q,setOtpValue:te,setIsOtpValid:ee,showVerifyButton:!1,showCancelButton:!1,clearOtpError:function(){return xe("")}})]}),ge&&(0,o.jsx)("p",{className:b().errorText,children:ge}),me&&(0,o.jsx)("div",{className:b().eykc_contact_area,children:(0,o.jsx)(C.default,{type:"button",background:E?"light_gray_1":"primary",disabled:E,onClickHandler:X,children:"Continue"})})]})}})},P=n(977),E=n(82485),U=n(48788),B=n(97460),M=n(9953),F=n(11163),O=n.n(F),W=function(){var e=(0,c.useDispatch)(),r=(0,c.useSelector)((function(e){return(0,l.get)(e,"registrationFlow",{})})),n=(0,c.useSelector)((function(e){return(0,l.get)(e,"footerState.breakpoint","lg")})),t=(0,c.useSelector)((function(e){return(0,l.get)(e,"appVariables.userDetails.userType","")}
1)),s=r.currentStep,p=void 0===s?"":s,_=r.isEditMode,m=void 0!==_&&_,h=r.stepStatuses,f=void 0===h?{}:h,b=(0,a.useState)(!1),x=b[0],v=b[1],g=(0,a.useMemo)((function(){return(0,M.To)({stepStatuses:f,currentStep:p,isEditMode:m})}),[f,p,m]);(0,a.useEffect)((function(){"prospect"!==(null===t||void 0===t?void 0:t.toLowerCase())&&e((0,i.cX)())}),[e,t]);return(0,o.jsx)(B.Z,{steps:g,showAlmostThere:x,renderStep:function(e){switch(e){case"contact":return(0,o.jsx)(Z,{});case"ekyc":return(0,o.jsx)(P.Z,{breakpoint:n,setShowAlmostThere:v});case"profile":return(0,o.jsx)(E.Z,{isRegEditMode:m});case"financial":return(0,o.jsx)(d.Z,{});case"orientation":return(0,o.jsx)(U.Z,{});default:return(0,o.jsx)(u.Z,{})}}})};W.getInitialProps=function(){var e=(0,t.Z)((function(e){var r,n,t;return(0,s.__generator)(this,(function(s){return r=e.store,n=e.res,t=r.getState(),"pc"===(0,l.get)(t,"appVariables.userDetails.userType","").toLowerCase()?(n?(n.writeHead(302,{Location:"/"}),n.end()):O().replace("/"),[2,{}]):[2,{}]}))}));return function(r){return e.apply(this,arguments)}}();var L=W,A=n(89699);L.domainName="attract-accelerate";var V=(0,A.Z)(L)},5933:function(e,r,n){"use strict";var t=n(85893),s=(n(67294),n(42823)),o=n(60578),a=n(59763),i=n(62183),c=n(45697),l=n.n(c),u=n(26793),d=n(24730),p=n.n(d),_=function(e){var r=e.mobileNumber,n=e.handlePopUpClick,c=e.optionArray,l=e.handleClickProceed,d=e.question,_=e.hideBtn,m=e.btnText,h=e.changeBtnSize,f=e.isOptionSelected,b=e.showCloseIcon,x=e.closeCallback,v=(0,u.$)().t;return(0,t.jsxs)("div",{className:p().question_modal_container,children:[b&&(0,t.jsx)("div",{className:p().close_icon,onClick:function(){return x()},children:(0,t.jsx)(i.default,{name:"close_with_circle",size:17})}),(0,t.jsxs)("div",{className:p().que_ans_box,children:[d?(0,t.jsx)("div",{className:p().question,children:v(d)}):(0,t.jsxs)("div",{className:p().question,children:[v("the_number")," ",(0,t.jsxs)("span",{className:p().number,children:["+91 ",r]})," ",v("already_account")]}),c.map((function(e,r){return(0,t.jsxs)("div",{className:p().options,children:[(0,t.jsx)("div",{className:p().radio_area,onClick:function(){return n(r)},children:(0,t.jsx)("img",{src:e.checked?s:o})}),(0,t.jsx)("div",{className:p().radio_txt,children:v(e.option)})]},r)}))]}),c.map((function(e,n){return"link_account"===e.option&&(0,t.jsxs)("div",{className:p().info_txt,children:[v("register_info_message")," ",(0,t.jsxs)("span",{className:p().number,children:["+91 ",r]})]},n)})),!_&&(0,t.jsx)("div",{className:"".concat(p().btn_area," ").concat(h?p().resize_btn:""),children:(0,t.jsx)(a.default,{type:"button",style:"fill",background:f?"primary":"light_gray_1",disabled:!f,onClickHandler:function(){return l()},fullWidth:!0,children:v(m)})})]})};_.defaultProps={mobileNumber:"",question:"",hideBtn:!1,btnText:"proceed",handlePopUpClick:function(){},optionArray:[],handleClickProceed:function(){},closeCallback:function(){},changeBtnSize:!1,isOptionSelected:!1,showCloseIcon:!1},_.propTypes={btnText:l().string,changeBtnSize:l().bool,closeCallback:l().func,handleClickProceed:l().func,handlePopUpClick:l().func,hideBtn:l().bool,isOptionSelected:l().bool,mobileNumber:l().string,optionArray:l().array,question:l().string,showCloseIcon:l().bool},r.Z=_},48372:function(e,r,n){"use strict";var t=n(85893),s=(n(67294),n(2590)),o=n.n(s),a=n(45697),i=n.n(a),c=n(62183),l=function(e){var r=e.children,n=e.customContainerStyle,s=e.showInvalid,a=e.invalidText;return(0,t.jsxs)("div",{className:o().label_container,style:n,children:[r,s&&(0,t.jsxs)("div",{className:o().invalid_icon_area,children:[(0,t.jsx)("span",{children:a}),(0,t.jsx)(c.default,{name:"danger",size:16})]})]})};l.defaultProps={customContainerStyle:{},showInvalid:!1,invalidText:""},l.propTypes={customContainerStyle:i().object,showInvalid:i().bool,invalidText:i().string},r.Z=l},24730:function(e){e.exports={question_modal_container:"question-modal_question_modal_container__Ah9Gb",close_icon:"question-modal_
1close_icon__0WHxN",que_ans_box:"question-modal_que_ans_box__sTk7i",question:"question-modal_question__Gj_Yc",number:"question-modal_number__E4nVJ",options:"question-modal_options__M0EmP",radio_area:"question-modal_radio_area__E4M1W",radio_txt:"question-modal_radio_txt__cFFx6",info_txt:"question-modal_info_txt__sJlNR",btn_area:"question-modal_btn_area__WdvPX",resize_btn:"question-modal_resize_btn__5h30c"}},74274:function(e){e.exports={contactForm:"contact_contactForm__9doQk",heading:"contact_heading__FxJCa",contactCard:"contact_contactCard___rCpo",sponsorContainer:"contact_sponsorContainer__dltsj",formGroup:"contact_formGroup__Ngbv_",label_area:"contact_label_area__q5bgu",verified:"contact_verified__VihH2",label:"contact_label__BHNnX",mobileWrapper:"contact_mobileWrapper__8cjo9",countryCode:"contact_countryCode__UFc87",mobileInput:"contact_mobileInput__794xv",verifyBtn:"contact_verifyBtn__bxtD1",helperText:"contact_helperText__K_s2a",errorText:"contact_errorText__JmsPO",passwordContainer:"contact_passwordContainer__1bNnn",passwordWrapper:"contact_passwordWrapper__EAK8n",passwordInput
1:"contact_passwordInput__N6UEN",passwordIcon:"contact_passwordIcon__103ir",eykc_contact_area:"contact_eykc_contact_area__goyk8"}},2590:function(e){e.exports={label_container:"inputLabel_label_container__Rq0e_",invalid_icon_area:"inputLabel_invalid_icon_area__nxLGc"}}},function(e){e.O(0,[6202,7589,7150,954,7240,7706,9699,9774,2888,179],(function(){return r=8134,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.