1/*! For license information please see 1759.4b16e1c2.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkmobile_web=self.webpackChunkmobile_web||[]).push([[1759],{41759:function(t,e,n){n.r(e),n.d(e,{default:function(){return M}});var r=n(86070),o=n(35470),a=n(38584),i=n(12093),c=n(81447),u=n(66029),l=n(70324),s=n(52772),d=n(13095),f=n(54718),p=n(47588),y=n(11580),A=n(30758),g=n(51147),v=n(84648),b=n(94641),h=n(37316),m=n(7946),x=n(62388),O=n(2736),T=n(34320),w=n(76829),E=function(t){var e=t.isLoading,n=t.onContinue,o=t.onOtpChange,a=t.onResendOtp,i=t.loginType,c=t.loginInfo,u=t.errorMessage,l=t.isResendLoading,s=t.handleBackLogin,d=t.isMyAccountFlow,f=t.onBackClick,p=t.isTwoFaPinFlow,y=p?w.Ec.verifyCta:w.Ec.cta;return(0,r.jsxs)(T.A,{dataAid:w.Ec.dataAid,className:"mpin-verify-otp-wrapper",isLoading:!0,children:[d?(0,r.jsx)(T.A.Header,{onBackClick:f,dataAid:w.Ec.headerDataAid,className:"mpin-verify-otp-header",backgroundColor:"foundationColors.base.foreground"}):(0,r.jsx)(T.A.Header,{onBackClick:s,dataAid:w.Ec.headerDataAid,className:"mpin-verify-otp-header",hide:!0}),(0,r.jsxs)(T.A.Body,{className:"mpin-votp-body",children:[(0,r.jsxs)(v.A,{className:"mpin-votp-data",children:[(0,r.jsx)(h.A,{dataAid:w.Ec.title.dataAid,variant:h.d.HEADING3,children:w.Ec.title.text(i)}),(0,r.jsxs)(h.A,{dataAid:w.Ec.subtitle.dataAid,className:"mpin-votp-data-num",sx:{color:"foundationColors.content.secondary"},variant:h.d.BODY5,children:[w.Ec.subtitle.text,(0,r.jsx)(h.A,{sx:{color:"foundationColors.content.secondary"},variant:h.d.BODY4,component:"span",children:c})]}),(0,r.jsx)(m.A,{dataAid:w.Ec.otp.dataAid,isResendLoading:l,onClickButton:a,onChange:o,errorMessage:u,infoText:w.Ec.otp.info.text,buttonText:w.Ec.otp.button.text,isDisabled:e})]}),!d&&(0,r.jsx)(v.A,{alignItems:"center",className:"mpin-votp-back-button",children:(0,r.jsx)(b.Ay,{dataAid:w.Ec.button.dataAid,title:w.Ec.button.text,onClick:s,variant:b.Ck.LINK,size:b.GO.SMALL})})]}),(0,r.jsx)(T.A.Footer,{children:(0,r.jsx)(b.Ay,{dataAid:y.dataAid,isLoading:e,onClick:n,children:y.text})})]})},C=E;E.defaultProps={isLoading:!1,onContinue:x.A,onOtpChange:x.A,onResendOtp:x.A,loginType:"",loginInfo:"",errorMessage:"",isResendLoading:!1,handleBackLogin:x.A,isMyAccountFlow:!1,onBackClick:x.A,isTwoFaPinFlow:!1},E.propTypes={isLoading:O.bool,onContinue:O.func,onOtpChange:O.func,onResendOtp:O.func,loginType:O.string,loginInfo:O.string,errorMessage:O.string,isResendLoading:O.bool,handleBackLogin:O.func,isMyAccountFlow:O.bool,onBackClick:O.func,isTwoFaPinFlow:O.bool};var k=n(17638),j=n(60399);function I(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return L(l,"_invoke",function(n,r,o){var a,c,u,l=0,s=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,c=0,u=t,f.n=n,i}};function p(n,r){for(c=n,u=r,e=0;!d&&l&&!o&&e<s.length;e++){var o,a=s[e],p=f.p,y=a[2];n>3?(o=y===r)&&(u=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(c=0,f.v=r,f.n=a[1]):p<y&&(o=n<3||a[0]>r||r>y)&&(a[4]=n,a[5]=r,f.n=y,c=0))}if(o||n>1)return i;throw d=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,y),c=s,u=y;(e=c<2?t:u)||!d;){a||(c?c<3?(c>1&&(f.n=-1),p(c,u)):f.n=u:f.v=u);try{if(l=2,a){if(c||(o="next"),e=a[o]){if(!(e=e.call(a,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=a.return)&&e.call(a),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=t}else if((e=(d=f.n<0)?u:n.call(r,f))!==i)break}catch(e){a=t,c=1,u=e}finally{l=1}}return{value:e,done:d}}}(n,o,a),!0),l}var i={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(L(e={},r,function(){return this}),e),d=l.prototype=c.prototype=Object.create(s);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,L(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=l,L(d,"constructor",l),L(l,"constructor",u),u.displayName="GeneratorFunction",L(l,o,"GeneratorFunction"),L(d),L(d,o,"Generator"),L(d,r,function(){return this}),L(d,"toString",function(){return"[object Generator]"}),(I=function(){return{w:a,m:f}})()}function L(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}L=function(t,e,n,r){function a(e,n){L(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},L(t,e,n,r)}function P(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],u=!0,l=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}
2finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var _,R=function(t,e,n,r){return new(n||(n=Promise))(function(o,a){function i(t){try{u(r.next(t))}catch(t){a(t)}}function c(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(i,c)}u((r=r.apply(t,e||[])).next())})},M=(_=C,function(t){var e=(0,s.A)(),n=e.navigate,v=e.location,b=e.goBack,h=P((0,A.useState)(""),2),m=h[0],x=h[1],O=P((0,A.useState)(""),2),T=O[0],w=O[1],E=P((0,A.useState)(!1),2),C=E[0],L=E[1],S=P((0,A.useState)(!1),2),M=S[0],B=S[1],N=(0,g.d4)(u.C),F=(0,f.A)(v,"state.isMyAccountFlow",!1);(0,d.A)(function(){a.A.isEmptyOrUndefined(N)&&(0,p.V2)(n)},[]);var D=(0,A.useMemo)(function(){return j.A.getLoginInfo(N)},[N]),U=function(t){var e={event_name:"2fa",properties:{user_action:t,screen_name:"OTP_verification",verification_type:N.loginType}};t&&k.A.triggerEvent(e)};return(0,r.jsx)(_,{isLoading:M,loginType:N.loginType,loginInfo:D,onOtpChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";a.A.isEmptyOrUndefined(m)||x(""),w(t)},onContinue:function(){return R(void 0,void 0,void 0,I().m(function t(){var e,r,u,s,d;return I().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!a.A.isEmptyOrUndefined(T)){t.n=1;break}return x(i.$8.ENTER_OTP),t.a(2);case 1:if(4===T.length){t.n=2;break}return x(i.$8.ENTER_VALID_OTP),t.a(2);case 2:return e=N.verifyUrl,r={verifyUrl:e,body:{otp:T}},t.p=3,B(!0),t.n=4,(0,o._D)(r);case 4:u=t.v,s=(0,f.A)(u,"reset_url",""),F?(0,y.sr)(n,{replace:!0,state:{resetUrl:s,isReset:!0}}):(0,y.JT)(n,{replace:!0,state:{resetUrl:s}}),t.n=6;break;case 5:t.p=5,(d=t.v).message===c.v.INCORRECT_OTP?x(c.v.INCORRECT_OTP):(0,l.A)(d.message);case 6:return t.p=6,B(!1),t.f(6);case 7:U("next");case 8:return t.a(2)}},t,null,[[3,5,6,7]])}))},onResendOtp:function(){return R(void 0,void 0,void 0,I().m(function t(){var e,n;return I().w(function(t){for(;;)switch(t.p=t.n){case 0:return e=N.resendUrl,L(!0),t.p=1,t.n=2,(0,o.on)(e);case 2:t.n=4;break;case 3:t.p=3,n=t.v,(0,l.A)(n.message);case 4:return t.p=4,L(!1),t.f(4);case 5:return t.a(2)}},t,null,[[1,3,4,5]])}))},isResendLoading:C,handleBackLogin:function(){U("back"),(0,p.V2)(n)},errorMessage:m,isMyAccountFlow:F,onBackClick:function(){U("next"),b()},isTwoFaPinFlow:!0})})},66029:function(t,e,n){n.d(e,{C:function(){return o}});var r=n(54718),o=function(t){return(0,r.A)(t,"login.otpData",{})}},60399:function(t,e,n){n.d(e,{A:function(){return f}});var r=n(92685),o=n(12093),a=n(38584);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],u=!0,l=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var u={formatMobileNumber:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(a.A.isEmptyOrUndefined(e)||e.length<10)return e;if(e.includes("|")){var n=i(e.split("|"),2),r=n[0];return t=n[1].replace(/(\d{4})(\d{3})(\d{3})/,"$1 $2 $3"),"+".concat(r," ").concat(t)}return t=e.replace(/(\d{4})(\d{3})(\d{3})/,"$1 $2 $3")}},l=u,s=r.R.EMAIL,d=r.R.MOBILE,f={getLoginInfo:function(t){var e=t.loginType,n=t.loginData;return e===o.WU.MOBILE?l.formatMobileNumber(n):n},getContactType:function(t,e){var n="";return t&&(n=e.loginType===s?d:s),{loginValue:"",loginType:n}}}},76829:function(t,e,n){n.d(e,{_:function(){return r},Ec:function(){return o}});var r={dataAid:"referralCode",header:{text:"Do you have a referral code?",dataAid:"haveRefferal"},subtitle:{text:"This will map your account with out partner",dataAid:"mapPartner"},input:{dataAid:"enterReferral",label:{text:"Enter referral code"}},continueCta:{dataAid:"continue",text:"Continue"},skipCta:{dataAid:"skip",text:"Skip"}},o=(Object.assign(Object.assign({},{dataAid:"loginScreen",headerDataAid:"logoHeader",text:"LOGIN",icon:{name:"white_logo.svg",dataAid:"top"},mobile:{dataAid:"mobile",errorText:"This is required",label:"Enter mobile number",checkbox:{dataAid:"whatsappConsent"}
2,wa:{text:"I agree to receive important investment updates on WhatsApp",dataAid:"whatsappInfo"}},email:{dataAid:"email",errorText:"This is required",label:"Enter email address"},cta:{dataAid:"continue",text:"continue"}}),{TERMS_AND_PRIVACY:{dataAid:"termsAndPrivacy",text1:function(t){return"By signing in, you agree to ".concat(t,"'s ")},text2:"Terms and Conditions ",text3:"and ",text4:"Privacy Policy"}}),{dataAid:"verifyOtp",headerDataAid:"logoHeader",icon:{name:"white_logo.svg",dataAid:"top"},title:{dataAid:"enterOtp",text:function(t){return"Enter OTP to verify your ".concat("mobile"===t?"number":t)}},subtitle:{text:"An OTP has been sent to ",dataAid:"otpSent"},otp:{dataAid:"verify",helper:{text:"Enter OTP"},info:{text:"OTP should arrive within"},button:{text:"RESEND OTP"}},button:{dataAid:"goBack",text:"GO BACK TO LOGIN"},cta:{dataAid:"continue",text:"continue"},verifyCta:{dataAid:"Verify",text:"Verify"}})},92685:function(t,e,n){n.d(e,{R:function(){return r}});const r={EMAIL:"email",MOBILE:"mobile"}}}]);
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.