2021-08-04 01:36:55 +02:00
|
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{107:function(e,t,a){"use strict";a.r(t),a.d(t,"AuthCode",(function(){return g})),a.d(t,"AuthPassword",(function(){return v})),a.d(t,"AuthRegister",(function(){return w}));var n=a(0),r=a(1),o=a(6),c=a(3),i=a(22),s=a(39),l=a(16),u=a(47),d=a(20),m=a(2),b=a(130),h=a(119);a(143);const p=o.l?m.Db:m.Cb;var f=Object(n.h)(({code:e,codeLength:t,trackingDirection:a,isTracking:r,isBig:o})=>{const[c,i]=Object(n.r)(),[s,l]=Object(n.r)(),[u,d]=Object(n.r)(!1),f=165/t;Object(n.n)(()=>{c||Object(b.a)("MonkeyIdle").then(i)},[c]),Object(n.n)(()=>{s||Object(b.a)("MonkeyTracking").then(l)},[s]);const g=Object(n.m)(()=>d(!0),[]);return n.a.createElement("div",{id:"monkey",className:o?"big":""},!u&&n.a.createElement("div",{className:"monkey-preview"}),c&&n.a.createElement(h.a,{id:"idleMonkey",size:o?m.Ob:p,className:r?"hidden":void 0,animationData:c,play:!r,onLoad:g}),s&&n.a.createElement(h.a,{id:"trackingMonkey",size:o?m.Ob:p,className:r?"shown":"hidden",animationData:s,playSegment:r?function(){const n=e&&e.length>1||a<0?15+f*(e.length-1):0,r=e.length===t?180:15+f*e.length;return a<1?[r,n]:[n,r]}():void 0,speed:2,noLoop:!0}))});var g=Object(n.h)(Object(r.h)(e=>Object(c.l)(e,["authPhoneNumber","authIsCodeViaApp","authIsLoading","authError"]),(e,t)=>Object(c.l)(t,["setAuthCode","returnToAuthPhoneNumber","clearAuthError"]))(({authPhoneNumber:e,authIsCodeViaApp:t,authIsLoading:a,authError:r,setAuthCode:c,returnToAuthPhoneNumber:m,clearAuthError:b})=>{const h=Object(l.a)(),p=Object(n.q)(null),[g,O]=Object(n.r)(""),[j,v]=Object(n.r)(!1),[E,y]=Object(n.r)(1);Object(n.n)(()=>{o.n||p.current.focus()},[]),Object(s.a)(!0,m);const w=Object(n.m)(e=>{r&&b();const{currentTarget:t}=e;t.value=t.value.replace(/[^\d]+/,"").substr(0,5),t.value!==g&&(O(t.value),j?t.value.length||v(!1):v(!0),g&&g.length>t.value.length?y(-1):y(1),5===t.value.length&&c({code:t.value}))},[r,b,g,j,c]);return n.a.createElement("div",{id:"auth-code-form",className:"custom-scroll"},n.a.createElement("div",{className:"auth-form"},n.a.createElement(f,{code:g,codeLength:5,isTracking:j,trackingDirection:E}),n.a.createElement("h2",null,e,n.a.createElement("div",{className:"auth-number-edit",onClick:m,role:"button",tabIndex:0,title:h("WrongNumber")},n.a.createElement("i",{className:"icon-edit"}))),n.a.createElement("p",{className:"note"},Object(i.a)(h(t?"SentAppCode":"Login.JustSentSms"),["simple_markdown"])),n.a.createElement(u.a,{ref:p,id:"sign-in-code",label:h("Code"),onInput:w,value:g,error:r&&h(r),autoComplete:"one-time-code",inputMode:"numeric"}),a&&n.a.createElement(d.a,null)))})),O=a(151),j=a(152);var v=Object(n.h)(Object(r.h)(e=>Object(c.l)(e,["authIsLoading","authError","authHint"]),(e,t)=>Object(c.l)(t,["setAuthPassword","clearAuthError"]))(({authIsLoading:e,authError:t,authHint:a,setAuthPassword:r,clearAuthError:o})=>{const c=Object(l.a)(),[i,s]=Object(n.r)(!1),u=Object(n.m)(e=>{s(e)},[]),d=Object(n.m)(e=>{r({password:e})},[r]);return n.a.createElement("div",{id:"auth-password-form",className:"custom-scroll"},n.a.createElement("div",{className:"auth-form"},n.a.createElement(O.a,{isPasswordVisible:i}),n.a.createElement("h2",null,c("Login.Header.Password")),n.a.createElement("p",{className:"note"},c("Login.EnterPasswordDescription")),n.a.createElement(j.a,{clearError:o,error:t&&c(t),hint:a,isLoading:e,isPasswordVisible:i,onChangePasswordVisibility:u,onSubmit:d})))})),E=a(21),y=a(135);var w=Object(n.h)(Object(r.h)(e=>Object(c.l)(e,["authIsLoading","authError"]),(e,t)=>Object(c.l)(t,["signUp","clearAuthError","uploadProfilePhoto"]))(({authIsLoading:e,authError:t,signUp:a,clearAuthError:r,uploadProfilePhoto:o})=>{const c=Object(l.a)(),[i,s]=Object(n.r)(!1),[d,m]=Object(n.r)(),[b,h]=Object(n.r)(""),[p,f]=Object(n.r)("");return n.a.createElement("div",{id:"auth-registration-form",className:"custom-scroll"},n.a.createElement("div",{className:"auth-form"},n.a.createElement("form",{action:"",method:"post",onSubmit:function(e){e.preventDefault(),a({firstName:b,lastName:p}),d&&o({file:d})}},n.a.createElement(y.a,{onChange:m}),n.a.create
|