1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7270],{74548:function(e){var n,r,a,o,i,u,c,_,f,b,v,x,C,S,k,B,N,j,T,E,R,W;e.exports=(n="millisecond",r="second",a="minute",o="hour",i="week",u="month",c="quarter",_="year",f="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C=function(e,n,r){var a=String(e);return!a||a.length>=n?e:""+Array(n+1-a.length).join(r)+e},(k={})[S="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],r=e%100;return"["+e+(n[(r-20)%10]||n[r]||"th")+"]"}},B="$isDayjsObject",N=function(e){return e instanceof R||!(!e||!e[B])},j=function t(e,n,r){var a;if(!e)return S;if("string"==typeof e){var o=e.toLowerCase();k[o]&&(a=o),n&&(k[o]=n,a=o);var i=e.split("-");if(!a&&i.length>1)return t(i[0])}else{var u=e.name;k[u]=e,a=u}return!r&&a&&(S=a),a||!r&&S},T=function(e,n){if(N(e))return e.clone();var r="object"==typeof n?n:{};return r.date=e,r.args=arguments,new R(r)},(E={s:C,z:function(e){var n=-e.utcOffset(),r=Math.abs(n);return(n<=0?"+":"-")+C(Math.floor(r/60),2,"0")+":"+C(r%60,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),a=e.clone().add(r,u),o=n-a<0,i=e.clone().add(r+(o?-1:1),u);return+(-(r+(n-a)/(o?a-i:i-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:u,y:_,w:i,d:"day",D:f,h:o,m:a,s:r,ms:n,Q:c})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}}).l=j,E.i=N,E.w=function(e,n){return T(e,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})},W=(R=function(){function M(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[B]=!0}var e=M.prototype;return e.parse=function(e){this.$d=function(e){var n=e.date,r=e.utc;if(null===n)return new Date(NaN);if(E.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var a=n.match(v);if(a){var o=a[2]-1||0,i=(a[7]||"0").substring(0,3);return r?new Date(Date.UTC(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(n)}(e),this.init()},e.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},e.$utils=function(){return E},e.isValid=function(){return this.$d.toString()!==b},e.isSame=function(e,n){var r=T(e);return this.startOf(n)<=r&&r<=this.endOf(n)},e.isAfter=function(e,n){return T(e)<this.startOf(n)},e.isBefore=function(e,n){return this.endOf(n)<T(e)},e.$g=function(e,n,r){return E.u(e)?this[n]:this.set(r,e)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(e,n){var c=this,b=!!E.u(n)||n,v=E.p(e),l=function(e,n){var r=E.w(c.$u?Date.UTC(c.$y,n,e):new Date(c.$y,n,e),c);return b?r:r.endOf("day")},$=function(e,n){return E.w(c.toDate()[e].apply(c.toDate("s"),(b?[0,0,0,0]:[23,59,59,999]).slice(n)),c)},x=this.$W,C=this.$M,S=this.$D,k="set"+(this.$u?"UTC":"");switch(v){case _:return b?l(1,0):l(31,11);case u:return b?l(1,C):l(0,C+1);case i:var B=this.$locale().weekStart||0,N=(x<B?x+7:x)-B;return l(b?S-N:S+(6-N),C);case"day":case f:return $(k+"Hours",0);case o:return $(k+"Minutes",1);case a:return $(k+"Seconds",2);case r:return $(k+"Milliseconds",3);default:return this.clone()}},e.endOf=function(e){return this.startOf(e,!1)},e.$set=function(e,i){var c,b=E.p(e),v="set"+(this.$u?"UTC":""),x=((c={}).day=v+"Date",c[f]=v+"Date",c[u]=v+"Month",c[_]=v+"FullYear",c[o]=v+"Hours",c[a]=v+"Minutes",c[r]=v+"Seconds",c[n]=v+"Milliseconds",c)[b],C="day"===b?this.$D+(i-this.$W):i;if(b===u||b===_){var S=this.clone().set(f,1);S.$d[x](C),S.init(),this.$d=S.set(f,Math.min(this.$D,S.daysInMonth())).$d}else x&&this.$d[x](C);return this.init(),this},e.set=function(e,n){return this.clone().$set(e,n)},e.get=function(e){return this[E.p(e)]()},e.add=function(e,n){var c,f=this;e=Number(e);var b=E.p(n),y=function(n){var r=T(f);return E.w(r.date(r.date()+Math.round(n*e)),f)};if(b===u)return this.set(u,this.$M+e);if(b===_)return this.set(_,this.$y+e);if("day"===b)return y(1);if(b===i)return y(7);var v=((c={})[a]=6e4,c[o]=36e5,c[r]=1e3,c)[b]||1,x=this.$d.getTime()+e*v;return E.w(x,this)},e.subtract=function(e,n){return this.add(-1*e,n)},e.format=function(e){var n=this,r=this.$locale();if(!this.isValid())return r.invalidDate||b;var a=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,u=this.$m,c=this.$M,_=r.weekdays,f=r.months,v=r.meridiem,h=function(e,r,o,i){return e&&(e[r]||e(n,a))||o[r].slice(0,i)},d=function(e){return E.s(i%12||12,e,"0")},C=v||function(e,n,r){var a=e<12?"AM":"PM";return r?a.toLowerCase():a};return a.replace(x,function(e,a){return a||function(e){switch(e){case"YY":return String(n.$y).slice(-2);case"YYYY":return E.s(n.$y,4,"0");case"M":return c+1;case"MM":return E.s(c+1,2,"0");case"MMM":return h(r.monthsShort,c,f,3);case"MMMM":return h(f,c);case"D":return n.$D;case"DD":return E.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return h(r.weekdaysMin,n.$W,_,2);case"ddd":return h(r.weekdaysShort,n.$W,_,3);case"dddd":return _[n.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return C(i,u,!0);case"A":return C(i,u,!1);case"m":return String(u);case"mm":return E.s(u,2,"0");case"s":return String(n.$s);case"ss":return E.s(n.$s,2,"0");case"SSS":return E.s(n.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},e.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},e.diff=function(e,n,f){var b,v=this,x=E.p(n),C=T(e),S=(C.utcOffset()-this.utcOffset())*6e4,k=this-C,D=function(){return E.m(v,C)};switch(x){case _:b=D()/12;break;case u:b=D();break;case c:b=D()/3;break;case i:b=(k-S)/6048e5;break;case"day":b=(k-S)/864e5;break;case o:b=k/36e5;break;case a:b=k/6e4;break;case r:b=k/1e3;break;default:b=k}return f?b:E.a(b)},e.daysInMonth=function(){return this.endOf(u).$D},e.$locale=function(){return k[this.$L]},e.locale=function(e,n){if(!e)return this.$L;var r=this.clone(),a=j(e,n,!0);return a&&(r.$L=a),r},e.clone=function(){return E.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},M}()).prototype,T.prototype=W,[["$ms",n],["$s",r],["$m",a],["$H",o],["$W","day"],["$M",u],["$y",_],["$D",f]].forEac
1h(function(e){W[e[1]]=function(n){return this.$g(n,e[0],e[1])}}),T.extend=function(e,n){return e.$i||(e(n,R,T),e.$i=!0),T},T.locale=j,T.isDayjs=N,T.unix=function(e){return T(1e3*e)},T.en=k[S],T.Ls=k,T.p={},T)},50902:function(e,n,r){"use strict";r.d(n,{M:function(){return a}});let a={bank:{src:"/_next/static/media/bank-icon.9f8722e8.svg",height:50,width:50,blurWidth:0,blurHeight:0},exchange:{src:"/_next/static/media/exchange-icon.bc74fbbb.svg",height:50,width:50,blurWidth:0,blurHeight:0},suitcase:{src:"/_next/static/media/suitcase-icon.17f30628.svg",height:50,width:50,blurWidth:0,blurHeight:0},x:{src:"/_next/static/media/closeButton.a9a8b06f.svg",height:15,width:15,blurWidth:0,blurHeight:0},receiveActive:{src:"/_next/static/media/receive-active.ee753b52.svg",height:24,width:24,blurWidth:0,blurHeight:0},receive:{src:"/_next/static/media/receive.92e312ba.svg",height:24,width:24,blurWidth:0,blurHeight:0},sendActive:{src:"/_next/static/media/send-active.968a831b.svg",height:24,width:24,blurWidth:0,blurHeight:0},send:{src:"/_next/static/media/send.919a8c9c.svg",height:24,width:24,blurWidth:0,blurHeight:0},exchangeArrows:{src:"/_next/static/media/exchange-arrows.d5cb4b65.svg",height:24,width:27,blurWidth:0,blurHeight:0},arrowDown:{src:"/_next/static/media/arrowDown.870a2870.svg",height:9,width:11,blurWidth:0,blurHeight:0},chevronDown:{src:"/_next/static/media/chevron-down.5e367449.svg",height:14,width:14,blurWidth:0,blurHeight:0},arrow:{src:"/_next/static/media/arrow.28e13782.svg",height:12,width:12,blurWidth:0,blurHeight:0},google:{src:"/_next/static/media/google.de714692.svg",height:18,width:18,blurWidth:0,blurHeight:0}}},61146:function(e,n,r){"use strict";r.r(n),r.d(n,{Button:function(){return Button},ButtonWithRef:function(){return ButtonWithRef}});var a=r(57437),o=r(42744),i=r.n(o),u=r(65314),c=r.n(u);function Button(e){let{className:n,children:r,primary:o,darkBlue:u,lightGray:_,blue:f,customBlue:b,white:v,green:x,lightGreen:C,grey:S,outline:k,primaryDark:B,defaultStyle:N,disabled:j,size:T,active:E,fullWidth:R,rounded:W=!0,onClick:L,name:A,id:O,type:P="button",ariaLabel:H,isGroupButton:G,hasGlobalColors:V,toggleButton:Y,outlined:F,...q}=e,z=i()(c().button,n,{[c().default]:N,[c().lightGreen]:C,[c().rounded]:W,[c().primary]:o,[c().active]:E,[c().darkBlue]:u,[c().blue]:f,[c().customBlue]:b,[c().white]:v,[c().green]:x,[c().outline]:k,[c().primaryDark]:B,[c().fullWidth]:R,[c().grey]:S,[c().lightGray]:_,[c()[T]]:T,[c().groupButton]:G,[c().globalColors]:V,[c().toggleButton]:Y,[c().outlined]:F});return(0,a.jsx)("button",{type:P,className:z,onClick:L,disabled:j,name:A,id:O,"aria-label":H,...q,children:r})}function ButtonWithRef(e,n){return(0,a.jsx)(Button,{...e,buttonRef:n})}},41043:function(e,n,r){"use strict";r.d(n,{X:function(){return Checkbox}});var a=r(57437),o=r(42744),i=r.n(o),u=r(64661),c=r.n(u);function Checkbox(e){let{className:n,error:r,checked:o,onChange:u,children:_,name:f}=e;return(0,a.jsxs)("label",{className:i()(c().label,{[c().error]:!!r},n),children:[(0,a.jsx)("input",{id:f,name:f,className:c().input,onChange:u,checked:o,type:"checkbox"}),(0,a.jsx)("span",{className:i()(c().checkbox,{[c().error]:!!r}),children:o&&(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 0C0.895431 0 0 0.895431 0 2V18C0 19.1046 0.895431 20 2 20H18C19.1046 20 20 19.1046 20 18V2C20 0.895431 19.1046 0 18 0H2ZM4.914 8.98242L8.207 12.2754L16.5 3.98242L17.914 5.39642L8.207 15.1034L3.5 10.3964L4.914 8.98242Z",fill:"#4C9DE8"})})}),(0,a.jsx)("span",{className:c().labelText,children:_})]})}},13002:function(e,n,r){"use strict";r.d(n,{I:function(){return f}});var a=r(57437),o=r(2265),i=r(42744),u=r.n(i),c=r(74650),_=r.n(c);let f=(0,o.forwardRef)((e,n)=>{let{containerClass:r,inputClass:o,label:i,placeholder:c,value:f,onChange:b,name:v,onClickCapture:x,type:C,disabled:S=!1}=e,k=u()(_().input,o,{[_().input_valid]:f});return(0,a.jsx)("div",{className:u()(_().wrapper,r,{[_().hasValue]:!!f}),children:(0,a.jsxs)("label",{className:_().labelBox,children:[(0,a.jsx)("span",{className:u()(_().labelText,"input__label"),children:i}),(0,a.jsx)("input",{ref:n,onClickCapture:x,className:k,onChange:b,disabled:S,name:v,id:v,type:C||"text",value:f,placeholder:c})]})})})},16310:function(e,n,r){"use strict";r.d(n,{o:function(){return useAuthCaptcha}});var a=r(2265),o=r(32949);let useAuthCaptcha=()=>{let{executeRecaptcha:e}=(0,o.xX)(),n=(0,a.useCallback)(async n=>{if(!e)throw Error("Captcha is not ready. Please try again.");try{let r=await e(n);if(!r)throw Error("Empty captcha token");return r}catch(e){throw Error("Captcha verification failed. Please try again.")}},[e]);return{getCaptchaToken:n,isCaptchaReady:!!e}}},10199:function(e,n,r){"use strict";r.d(n,{C:function(){return a},e:function(){return o}});let a=/^\S+@\S+\.\S+$/,o="email"},87270:function(e,n,r){"use strict";r.d(n,{Login:function(){return Q}});var a=r(57437),o=r(2265),i=r(13002),u=r(81023),c=r(74548),_=r.n(c),f=r(90523),b=r.n(f),v=r(70443),x=r.n(v),C=r(42744),S=r.n(C);let VerificationInput=e=>{let{value:n,onChange:r,onClearInput:i,defaultCode:u,error:c,reset:_,isLoading:f}=e,[b,v]=(0,o.useState)(null),C=[(0,o.useRef)(null),(0,o.useRef)(null),(0,o.useRef)(null),(0,o.useRef)(null),(0,o.useRef)(null),(0,o.useRef)(null)],resetCode=()=>
1{C.forEach(e=>{e.current.value=""}),C[0].current.focus(),i()},handleBlur=()=>{v(!1)};(0,o.useEffect)(()=>{resetCode()},[_]);let handlePaste=e=>{e.preventDefault();let n=e.clipboardData.getData("text").trim();6===n.length&&n.split("").every(e=>+e||0==+e)&&(r(n),C.forEach((e,r)=>{e.current.value=n.charAt(r)}))};return(0,o.useEffect)(()=>{u&&r(u)},[u]),(0,a.jsx)("div",{className:x().container,children:[0,1,2,3,4,5].map(e=>(0,a.jsxs)("div",{className:x().cellWrapper,children:[(0,a.jsx)("span",{className:S()(x().placeholder,{[x().hidden]:!!n[e]&&" "!==n[e]}),children:"0"}),(0,a.jsx)("span",{className:S()(x().text,{[x().hidden]:!n[e]||" "===n[e]}),children:n[e]}),(0,a.jsx)("input",{className:S()(x().cell,{[x().focused]:b===e,[x().error]:!!c}),ref:C[e],type:"number",placeholder:"",maxLength:1,autoFocus:0===e,disabled:f,onFocus:n=>{v(e)},onBlur:handleBlur,onKeyDown:a=>(function(e,a){if(86===e.keyCode)return;e.preventDefault();let o=C[a-1],i=C[a+1],u=e.key,c=[...n];if(37===e.keyCode&&(null==o?void 0:o.current)){o.current.focus();return}if(39===e.keyCode&&(null==i?void 0:i.current)){i.current.focus();return}if(8===e.keyCode||46===e.keyCode){""===e.target.value&&0===a&&0!==a||(o&&""===e.target.value&&o.current.focus(),r(n.slice(0,a)+" "+n.slice(a+1)),e.target.value="");return}(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105)&&(e.target.value=u,c[a]=/^[a-z]+$/.test(u)?u.toUpperCase():u,r(c.join("")),i&&i.current.focus())})(a,e),onPaste:handlePaste},e)]},e))})};var k=r(21043),B=r(41359);function SMSCode(e){let{code:n,onChange:r,onChangeNumber:i,error:c,loading:f=!1,onResend:v}=e,{t:x}=(0,B.$G)(),C=(0,u.I0)(),[S,N]=(0,o.useState)(100),j=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(0===S){clearInterval(j.current);return}return j.current=setInterval(()=>{N(e=>e-1)},1e3),()=>{clearInterval(j.current)}},[S]),(0,a.jsxs)("div",{className:b().smsCodeContainer,children:[(0,a.jsx)(VerificationInput,{value:n,onChange:e=>{C(r(e+""))},onClearInput:()=>C((0,k.J)(" ")),error:c,isLoading:f}),!f&&(0,a.jsxs)("div",{className:b().controls,children:[(0,a.jsx)("div",{className:b().timerContainer,children:S?(0,a.jsx)("div",{className:b().timer,children:_()(0).second(S).format("mm:ss")+" "+x("landing.login.to-send-code")}):(0,a.jsx)("button",{className:b().resendButton,onClick:()=>{v(),N(100)},children:x("landing.login.resend")})}),(0,a.jsx)("button",{type:"button",className:b().changeNumber,onClick:i,children:x("landing.login.change-email")})]})]})}var N=r(30497),j=r.n(N),T=r(43074);function SubmitButton(e){let{disabled:n,loading:r,error:o,onClick:i,content:u,className:c}=e;return(0,a.jsx)("button",{type:"button",className:S()(j().button,c),onClick:i,disabled:n||o||r,children:r?(0,a.jsx)(T.a,{className:j().loader}):(0,a.jsx)("span",{className:j().text,children:u})})}var E=r(24033),R=r(9490),W=r(96186),L=r(16310),A=r(10199);let useHandleEmail=()=>{let e=(0,E.useRouter)(),n=(0,u.I0)(),[r,a]=(0,o.useState)(!1),[i,c]=(0,o.useState)(!1),[_,f]=(0,o.useState)(null),[b,v]=(0,o.useState)(!1),[x,C]=(0,o.useState)(!1),{login:S,isLoading:B}=(0,W.useAuthContext)(),{getCaptchaToken:N}=(0,L.o)(),j=(0,u.v9)(k._g),T=(0,u.v9)(k.Vx),O=(0,u.v9)(k.i0),P=(0,u.v9)(k.Pm),H=(0,u.v9)(k.p5),G=(0,o.useCallback)(()=>{n((0,k.dZ)(!1)),n((0,k.J)("")),n((0,k.hI)("")),n((0,k.q0)(!1)),n((0,k.YX)("")),C(!1),f(null)}),handleGetVerifyCode=async()=>{if(!j){f("landing.login.invalid-email");return}if(c(!0),r){f(null),v(!0);try{let e=await N("auth_email"),r=await R.Z.requestVerifyCode(T,e);if((null==r?void 0:r.isBlocked)===!0){n((0,k.dZ)(!1)),n((0,k.YX)("")),n((0,k.J)("")),f("landing.login.temporarily-blocked");return}if(!(null==r?void 0:r.verificationId))return;n((0,k.YX)(r.verificationId)),n((0,k.dZ)(!0)),localStorage.setItem(A.e,T)}catch(e){f(e.message)}finally{v(!1)}}},fetchEmailVerification=async()=>{f(null),v(!0);try{let n=await N("auth_email_check");await S(T,H,O,n),e.push("/cabinet/personal-info")}catch(e){f(e.message)}finally{v(!1)}},V=(0,o.useCallback)(async()=>{if(c(!0),r){v(!0);try{await R.Z.authRequestByGoogle()}catch(e){console.error("Error: ",e.message)}finally{v(!1)}}},[r]);return{emailStates:{error:_,isLoading:b||B,isTouched:x,emailVerificationId:H,emailApproved:P,emailCode:O,emailValid:j,emailInput:T,acceptedTerms:r,isContinueClicked:i},emailActions:{handleChangeEmail:G,setAcceptedTerms:a,fetchEmailVerification,handleGetVerifyCode,handleChange:e=>{let{value:r}=e.target;x||C(!0),f(!1),n((0,k.hI)(r));let a=A.C.test(r);n((0,k.q0)(a))},handleGoogleAuth:V,setIsContinueClicked:c}}};var O=r(61146),P=r(50902),H=r(16691),G=r.n(H),V=r(31889),Y=r.n(V);let GoogleAuthButton=e=>{let{onClick:n}=e,{t:r}=(0,B.$G)();return(0,a.jsxs)(O.Button,{size:"lg",fullWidth:!0,onClick:n,className:S()(Y().googleAuthButton),children:[(0,a.jsx)(G(),{src:P.M.google,alt:"google-button",width:18,height:18}),r("landing.submit-button-google.text")]})};var F=r(58461),q=r.n(F),z=r(41043),X=r(61396),Z=r.n(X),J=r(16859),K=r.n(J);function PersonalDataTermsCheckbox(e){let{error:n,checked:r,onChange:o,extraData:i}=e,{t:u}=(0,B.$G)();return(0,a.jsxs)(z.X,{className:K().checkbox,error:n,checked:r,onChange:o,children:[(0,a.jsxs)("span",{children:[u("landing.payments-methods.i-have-read")," "]}),(0,a.jsx)(Z(),{href:"https://sumsub.com/consent-to-personal-data-processing",target:"_blank",rel:"noopener noreferrer nofollow",children:u("landing.payments-methods.personal-data")})," ",(0,a.jsxs)("span",{children:[u("landing.payments-methods.to-guardarian")," "]}),(0,a.jsx)(Z(),{href:"https://guardarian.com/terms-of-service",target:"_blank",rel:"noopener noreferrer nofollow",children:u("landing.payments-methods.terms-of-service")}),","," ",(0,a.jsx)(Z(),{href:"https://guardarian.com/privacy-policy",target:"_blank",rel:"noopener noreferrer nofollow",children:u("landing.payments-methods.privacy-policy")}),i]})}function EmailVerification(){let{t:e}=(0,B.$G)(),{emailStates:n,emailActions:r}=useHandleEmail(),{fetchEmailVerification:o,handleChange:u,setAcceptedTerms:c,handleChangeEmail:_,handleGetVerifyCode:f,handleGoogleAuth:b}=r,{emailApproved:v,emailCode:x,isContinueClicked:C,isTouched:N,emailVerificationId:j,acceptedTerms:T,emailInput:E,emailValid:R,error:W,isLoading:L}=n;return(0,a.jsxs)("div",{className:q().emailContainer,children:[(0,a.jsx)("p",{className:q().emailSub,children:e("landing.popup.verify-sub-text")}),!v&&!j&&(0,a.jsx)("div",{className:S()(q().inputContainer,{[q().invalid]:!!W||N&&!R}),children:(0,a.jsx)(i.I,{className:S(),value:E,disabled:L,onChange:u,label:"Email",border:!1,autoSize:!1,type:"email"})}),v&&j&&(0,a.jsx)(SMSCode,{error:!v,code:x,onResend:f,onChange:k.J,onChangeNumber:_,loading:L}),W&&!L&&(0,a.jsx)("div",{className:q().error,children:e(W)}),v||j?(0,a.jsx)(SubmitButton,{className:q().continueButton,onClick:o,disabled:!T,loading:L,content:"Continue"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(PersonalDataTermsCheckbox,{checked:T,onChange:()=>{c(e=>!e)},error:!T&&C}),(0,a.jsx)(SubmitButton,{className:q().submitButton,onClick:f,loading:L,content:"Send Code"}),(0,a.jsx)(GoogleAuthButton,{onClick:b,disabled:L})]})]})}let Q=(0,o.memo)(()=>(0,a.jsx)(EmailVerification,{}));Q.displayName="Login"},65314:function(e){e.exports={button:"Button_button__2BY8C",md:"Button_md__nlt5C",xl:"Button_xl__AOCjz",xs:"Button_xs__pFRqi",toggleButton:"Button_toggleButton__WT_OR",default:"Button_default___KTen",rounded:"Button_rounded__iLmOv",fullWidth:"Button_fullWidth__YFNiG",primary:"Button_primary__zXC80",lightGreen:"Button_lightGreen__W91Ea",primaryDark:"Button_primaryDark__Ycecz",active:"Button_active__W_pj4",blue:"Button_blue__bcn_A",customBlue:"Button_customBlue__CIO2c",darkBlue:"Button_darkBlue__xnb9N",outline:"Button_outline__Pm04
1k",outlined:"Button_outlined__4hyAw",white:"Button_white__GY7OP",green:"Button_green__tvKL0",grey:"Button_grey__LQqXh",lightGray:"Button_lightGray__vsp7t",globalColors:"Button_globalColors__ILlhV",groupButton:"Button_groupButton__kxadt"}},64661:function(e){e.exports={label:"Checkbox_label__LvOCS",error:"Checkbox_error__zILp8",input:"Checkbox_input__qofj1",checkbox:"Checkbox_checkbox__cYDgl",labelText:"Checkbox_labelText__ki4p4"}},74650:function(e){e.exports={container:"Input-v2_container__redOn",label:"Input-v2_label__SoFeF",input:"Input-v2_input__aTRHO",wrapper:"Input-v2_wrapper__AwAVk",border:"Input-v2_border___yUPj",success:"Input-v2_success__JniXQ",hasError:"Input-v2_hasError__C67SF",labelText:"Input-v2_labelText__eVeqT",noBorder:"Input-v2_noBorder__9lIxB",labelBox:"Input-v2_labelBox__uV_XS",hasValue:"Input-v2_hasValue__McKVf",href:"Input-v2_href__Dwe_4"}},90523:function(e){e.exports={smsCode:"styles_smsCode__foqjA",label:"styles_label__D_Mwu",labelText:"styles_labelText__pEF9m",labelText_visible:"styles_labelText_visible__cWQbx",input:"styles_input__A5N0u",labelText_error:"styles_labelText_error__DEZeG",changeNumber:"styles_changeNumber__8sEeU",resendCode:"styles_resendCode__5515r",resendCode_disabled:"styles_resendCode_disabled__iqBH4",refresh:"styles_refresh__h_MdT",resendText:"styles_resendText__VuFqq",input_success:"styles_input_success__v4d5g",lock:"styles_lock__xMjZu",status:"styles_status__B_gU9",status_success:"styles_status_success__cINmZ",pulse:"styles_pulse__G_pOW",status_error:"styles_status_error__z9YQh",status_loading:"styles_status_loading__WHBbx",rotating:"styles_rotating__WWiXZ",controls:"styles_controls__N1j2P",statusWrapper:"styles_statusWrapper__Dwv8S",resendButton:"styles_resendButton__EpA3G",timerContainer:"styles_timerContainer__S4fnq",timer:"styles_timer__egzxc",statusText:"styles_statusText__AS_NI",statusText_error:"styles_statusText_error__z65Q8",smsCodeContainer:"styles_smsCodeContainer__nTniI"}},58461:function(e){e.exports={inputContainer:"styles_inputContainer___3Su4",emailSub:"styles_emailSub__m0wDg",emailContainer:"styles_emailContainer__9hK6S",submitButton:"styles_submitButton__rXB7w",continueButton:"styles_continueButton__i1LN6",invalid:"styles_invalid__JPcJV",input:"styles_input__b2ojy",error:"styles_error__Hn_qB",adaptiveDesktop:"styles_adaptiveDesktop__SQGS_",adaptiveMobile:"styles_adaptiveMobile__2yWbp"}},16859:function(e){e.exports={checkbox:"styles_checkbox__AeyYR"}},31889:function(e){e.exports={googleAuthButton:"styles_googleAuthButton__072XQ"}},30497:function(e){e.exports={wrapper:"styles_wrapper__8lKUJ",button:"styles_button__gzbRy",loader:"styles_loader__vAolN",text:"styles_text___13K1",errorText:"styles_errorText__zKYv_",arrow:"styles_arrow__1s_ob",arrow_loading:"styles_arrow_loading__FqvN9",pulse:"styles_pulse__DgaQy",rotating:"styles_rotating__3TtQ7",scale:"styles_scale__W5lqB"}},70443:function(e){e.exports={container:"styles_container__9i3zB",cellWrapper:"styles_cellWrapper__BudDs",cell:"styles_cell__qn9o4",error:"styles_error__X2HPG",focused:"styles_focused__cpxrL",text:"styles_text__0TYaK",hidden:"styles_hidden__2y0B0",placeholder:"styles_placeholder__Dd_zq"}},32949:function(e,n,r){"use strict";r.d(n,{pm:function(){return h},xX:function(){return g}});var a,o=r(2265),i=r(62601),s=function(){return(s=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)},p=function(e){var n;e?function(e){if(e)for(;e.lastChild;)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(n=document.querySelector(".grecaptcha-badge"))&&n.parentNode&&document.body.removeChild(n.parentNode)},d=function(e,n){p(n),window.___grecaptcha_cfg=void 0;var r,a=document.querySelector("#"+e);a&&a.remove(),(r=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&r.remove()},y=function(e){var n=e.render,r=e.onLoadCallbackName,a=e.language,o=e.onLoad,i=e.useRecaptchaNet,u=e.useEnterprise,c=e.scriptProps,_=void 0===c?{}:c,f=_.nonce,b=void 0===f?"":f,v=_.defer,x=_.async,C=_.id,S=_.appendTo,k=(void 0===C?"":C)||"google-recaptcha-v3";
1if(document.querySelector("#"+k))o();else{var B,N="https://www."+((B={useEnterprise:u,useRecaptchaNet:i}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(B.useEnterprise?"enterprise.js":"api.js"),j=document.createElement("script");j.id=k,j.src=N+"?render="+n+("explicit"===n?"&onload="+r:"")+(a?"&hl="+a:""),b&&(j.nonce=b),j.defer=!!(void 0!==v&&v),j.async=!!(void 0!==x&&x),j.onload=o,("body"===S?document.body:document.getElementsByTagName("head")[0]).appendChild(j)}},m=function(e){void 0===i||i.env,console.warn(e)};(a||(a={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var u=(0,o.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function h(e){var n=e.reCaptchaKey,r=e.useEnterprise,i=void 0!==r&&r,c=e.useRecaptchaNet,_=void 0!==c&&c,f=e.scriptProps,b=e.language,v=e.container,x=e.children,C=(0,o.useState)(null),S=C[0],k=C[1],B=(0,o.useRef)(n),N=JSON.stringify(f),j=JSON.stringify(null==v?void 0:v.parameters);(0,o.useEffect)(function(){if(n){var e=(null==f?void 0:f.id)||"google-recaptcha-v3",r=(null==f?void 0:f.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[r]=function(){var e=i?window.grecaptcha.enterprise:window.grecaptcha,r=s({badge:"inline",size:"invisible",sitekey:n},(null==v?void 0:v.parameters)||{});B.current=e.render(null==v?void 0:v.element,r)},y({render:(null==v?void 0:v.element)?"explicit":n,onLoadCallbackName:r,useEnterprise:i,useRecaptchaNet:_,scriptProps:f,language:b,onLoad:function(){if(window&&window.grecaptcha){var e=i?window.grecaptcha.enterprise:window.grecaptcha;e.ready(function(){k(e)})}else m("<GoogleRecaptchaProvider /> "+a.SCRIPT_NOT_AVAILABLE)},onError:function(){m("Error loading google recaptcha script")}}),function(){d(e,null==v?void 0:v.element)}}m("<GoogleReCaptchaProvider /> recaptcha key not provided")},[i,_,N,j,b,n,null==v?void 0:v.element]);var T=(0,o.useCallback)(function(e){if(!S||!S.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return S.execute(B.current,{action:e})},[S,B]),E=(0,o.useMemo)(function(){return{executeRecaptcha:S?T:void 0,container:null==v?void 0:v.element}},[T,S,null==v?void 0:v.element]);return o.createElement(u.Provider,{value:E},x)}u.Consumer;var g=function(){return(0,o.useContext)(u)};function w(e,n){return e(n={exports:{}},n.exports),n.exports;/** @license React v16.13.1 2 * react-is.production.min.js 3 * 4 * Copyright (c) Facebook, Inc. and its affiliates. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE file in the root directory of this source tree. 8 */}var c="function"==typeof Symbol&&Symbol.for,_=c?Symbol.for("react.element"):60103,f=c?Symbol.for("react.portal"):60106,b=c?Symbol.for("react.fragment"):60107,v=c?Symbol.for("react.strict_mode"):60108,x=c?Symbol.for("react.profiler"):60114,C=c?Symbol.for("react.provider"):60109,S=c?Symbol.for("react.context"):60110,k=c?Symbol.for("react.async_mode"):60111,B=c?Symbol.for("react.concurrent_mode"):60111,N=c?Symbol.for("react.forward_ref"):60112,j=c?Symbol.for("react.suspense"):60113,T=c?Symbol.for("react.suspense_list"):60120,E=c?Symbol.for("react.memo"):60115,R=c?Symbol.for("react.lazy"):60116,W=c?Symbol.for("react.block"):60121,L=c?Symbol.for("react.fundamental"):60117,A=c?Symbol.for("react.responder"):60118,O=c?Symbol.for("react.scope"):60119;function I(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case _:switch(e=e.type){case k:case B:case b:case x:case v:case j:return e;default:switch(e=e&&e.$$typeof){case S:case N:case R:case E:case C:return e;default:return n}}case f:return n}}}function D(e){return I(e)===B}var P={AsyncMode:k,ConcurrentMode:B,ContextConsumer:S,ContextProvider:C,Element:_,ForwardRef:N,Fragment:b,Lazy:R,Memo:E,Portal:f,Profiler:x,StrictMode:v,Suspense:j,isAsyncMode:function(e){return D(e)||I(e)===k},isConcurrentMode:D,isContextConsumer:function(e){return I(e)===S},isContextProvider:function(e){return I(e)===C},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_},isForwardRef:function(e){return I(e)===N},isFragment:function(e){return I(e)===b},isLazy:function(e){return I(e)===R},isMemo:function(e){return I(e)===E},isPortal:function(e){return I(e)===f},isProfiler:function(e){return I(e)===x},isStrictMode:function(e){return I(e)===v},isSuspense:function(e){return I(e)===j},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===b||e===B||e===x||e===v||e===j||e===T||"object"==typeof e&&null!==e&&(e.$$typeof===R||e.$$typeof===E||e.$$typeof===C||e.$$typeof===S||e.$$typeof===N||e.$$typeof===L||e.$$typeof===A||e.$$typeof===O||e.$$typeof===W)},typeOf:I},H=w(function(e,n){}),G=(H.AsyncMode,H.ConcurrentMode,H.ContextConsumer,H.ContextProvider,H.Element,H.ForwardRef,H.Fragment,H.Lazy,H.Memo,H.Portal,H.Profiler,H.StrictMode,H.Suspense,H.isAsyncMode,H.isConcurrentMode,H.isContextConsumer,H.isContextProvider,H.isElement,H.isForwardRef,H.isFragment,H.isLazy,H.isMemo,H.isPortal,H.isProfiler,H.isStrictMode,H.isSuspense,H.isValidElementType,H.typeOf,w(function(e){e.exports=P})),V={};V[G.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[G.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0}}}]);
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.