1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21476,24322],{3698:(e,i,t)=>{"use strict";t.d(i,{x:()=>o});var a=t(8652),n=t(61554),r=t(24964);let o=e=>{if(e instanceof n.A){let{status:i,msg:t}=e;if(r.v.FORBIDDEN===i&&t===a.Q.LOCKED_ACCOUNT)return a.Q.LOCKED_ACCOUNT;if(r.v.FORBIDDEN===i)return a.Q.INVALID_CREDENTIALS;if(r.v.FAILED_DEPENDENCY===i)return a.Q.LOCKED_ACCOUNT;else if(r.v.PRECONDITION_FAILED===i)return a.Q.LOGIN_WRONG_USER_TYPE}return a.Q.LOGIN_GENERAL}},8652:(e,i,t)=>{"use strict";t.d(i,{Q:()=>r,W:()=>o});var a,n,r=((a={}).INVALID_CREDENTIALS="formErrors.login.invalidCredentials",a.LOCKED_ACCOUNT="formErrors.login.lockedAccount",a.LOGIN_GENERAL="formErrors.login.general",a.LOGIN_WRONG_USER_TYPE="formErrors.login.wrongUserType",a.SIGNUP_GENERAL="formErrors.signUp.general",a.ACCOUNT_ALREADY_EXISTS="formErrors.signUp.alreadyExists",a.GENERAL_PASSWORD_ERROR="formErrors.passwordPolicy.general",a),o=((n={}).lengthAtLeast="formErrors.passwordPolicy.lengthAtLeast",n.containsAtLeast="formErrors.passwordPolicy.containsAtLeast",n.identicalChars="formErrors.passwordPolicy.identicalChars",n.usedInPast="formErrors.passwordPolicy.usedInPast",n.containsUserInfo="formErrors.passwordPolicy.containsUserInfo",n.passwordChangeNotSupported="formErrors.passwordPolicy.passwordChangeNotSupported",n)},11239:(e,i,t)=>{"use strict";t.d(i,{a:()=>c});var a=t(42680),n=t(2530),r=t(33481),o=t(24147),s=t(8318),l=t(94322);class c{async login(e){return await this.recaptchaService(i=>this.postLoginData(e,(0,n._)({},i)))}async loginSocialProvider(e){return await this.recaptchaService(i=>this.postSocialProviderLoginData(e,(0,n._)({},i)))}postLoginData(e,i){return this.backendApi.postRequest(r.v.LOGIN,e,i)}postSocialProviderLoginData(e,i){return this.backendApi.postRequest(r.v.LOGIN_SOCIAL_PROVIDER,e,i)}constructor(e){(0,a._)(this,"backendApi",void 0),(0,a._)(this,"recaptchaService",void 0),this.backendApi=new o.L(e),this.recaptchaService=(0,s.m)({action:l.A.login,captchaId:"login-recaptcha"})}}},16358:(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/redirect-social-login-payment",function(){return t(87433)}])},24322:(e,i,t)=>{e.exports=t(53347)},47587:(e,i,t)=>{"use strict";t.d(i,{A:()=>S});var a=t(26514),n=t(72122),r=t(19478),o=t(91985),s=t(1569),l=t(75834),c=t(61406),d=t(12343),g=t(74749),u=t(11239),m=t(24966),E=t(91964),f=t(81141),p=t(13572),A=t(85444),h=t(8652),v=t(51714),_=t(36623),N=t(3698),L=t(49775),C=t(26594);let S=e=>{let i,t,S,I,T,O,y,b,R,x,w,D,P,k,B,U=(0,n.c)(37),{loaderSubtitle:M,redirectRoute:G,fallbackRoute:F,accessToken:Q,userEmail:j,error:H,errorDescription:Y}=e,X=(0,f.c)("common"),{user:K,getAccessTokenSilently:W}=(0,r.WB)(),{userStore:V}=(0,o.g)();U[0]===Symbol.for("react.memo_cache_sentinel")?(i=new u.a(s.l.buildBackendUrlForClient()),U[0]=i):i=U[0];let z=i;U[1]!==F||U[2]!==G||U[3]!==V?(t=async(e,i)=>{try{let t=await z.loginSocialProvider({email:e,auth0Token:i,tokenExpirationInSeconds:c.N.getAuth0SocialLoginTokenExpiration()});A.Ay.login(t),V.isAuthenticated?d.A.routeTo(G):d.A.routeTo(F)}catch(e){p.tG.error((0,p.Dn)((0,p.hw)("Error trying to log in using social provider token only"),e))}},U[1]=F,U[2]=G,U[3]=V,U[4]=t):t=U[4];let q=t;U[5]!==F||U[6]!==W||U[7]!==G||U[8]!==K||U[9]!==V?(S=async()=>{let e=await W();try{let i,t=await z.loginSocialProvider({email:K.email,auth0Token:e,tokenExpirationInSeconds:c.N.getAuth0SocialLoginTokenExpiration()});A.Ay.login(t),V.isAuthenticated?(C.R.submitLoginEvent(L.xH.SOCIAL,(i=K.sub.split("|")[0],L.Sc[i])),d.A.routeTo(G)):d.A.routeTo(F)}catch(e){d.A.routeWithQuery(F,{error:(0,N.x)(e)})}},U[5]=F,U[6]=W,U[7]=G,U[8]=K,U[9]=V,U[10]=S):S=U[10];let J=S;return U[11]!==H||U[12]!==Y?(I=()=>{if(H&&Y){let e=v.UQ.Unauthorized===H&&"user is blocked"===Y?h.Q.LOCKED_ACCOUNT:h.Q.LOGIN_GENERAL,i=_.B.accountLoginWithErrorKey(e);d.A.routeTo(i)}},T=[H,Y],U[11]=H,U[12]=Y,U[13]=I,U[14]=T):(I=U[13],T=U[14]),(0,l.useEffect)(I,T),U[15]!==Q||U[16]!==q||U[17]!==j?(O=()=>{Q&&j&&q(j,Q)},U[15]=Q,U[16]=q,U[17]=j,U[18]=O):O=U[18],(0,l.useEffect)(O),U[19]!==J||U[20]!==K?(y=()=>{K&&J()},U[19]=J,U[20]=K,U[21]=y):y=U[21],U[22]!==K?(b=[K],U[22]=K,U[23]=b):b=U[23],
1(0,l.useEffect)(y,b),U[24]!==X?(R=X("socialLogin.seo.title"),U[24]=X,U[25]=R):R=U[25],U[26]!==R?(x=(0,a.jsx)(E.Ay,{title:R,robotsMeta:null===E.TH||void 0===E.TH?void 0:E.TH.NONE}),U[26]=R,U[27]=x):x=U[27],U[28]===Symbol.for("react.memo_cache_sentinel")?(w=(0,m.AH)({height:"50vh",position:"relative",tablet:{margin:"baseUnit.mobile30",height:"auto"}}),U[28]=w):w=U[28],U[29]!==M?(D=(0,a.jsx)(g.a,{isLoading:!0,subtitle:M}),U[29]=M,U[30]=D):D=U[30],U[31]===Symbol.for("react.memo_cache_sentinel")?(P=(0,a.jsx)("div",{id:"login-recaptcha",className:(0,m.cx)((0,m.AH)({width:"fit-content",position:"relative",zIndex:"overlay",marginTop:"baseUnit.mobile4",marginX:"auto",marginBottom:0,tablet:{marginTop:0,top:"100px"}}),"g-recaptcha")}),U[31]=P):P=U[31],U[32]!==D?(k=(0,a.jsxs)("div",{className:w,children:[D,P]}),U[32]=D,U[33]=k):k=U[33],U[34]!==x||U[35]!==k?(B=(0,a.jsxs)(a.Fragment,{children:[x,k]}),U[34]=x,U[35]=k,U[36]=B):B=U[36],B}},74749:(e,i,t)=>{"use strict";t.d(i,{a:()=>s});var a=t(26514),n=t(72122),r=t(54768),o=t(32580);let s=e=>{let i,t,s,l,c,d,g=(0,n.c)(9),{subtitle:u,isLoading:m}=e;return g[0]!==m?(i=m,t=(0,r.AH)({display:"flex",alignItems:"center",flexDirection:"column",position:"absolute",top:"50%",transform:"translateY(-50%)",left:"0",right:"0",paddingY:0,paddingX:"baseUnit.mobile1",zIndex:"behindVinSearch",animation:i?"visibilityFade 1.2s forwards":"loaderFadeOut 1.2s forwards"}),g[0]=m,g[1]=t):t=g[1],g[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(o.I,{icon:o.F.loader,className:(0,r.AH)({display:"flex",justifyContent:"center",paddingLeft:"22px","& svg":{width:"300px"},"& svg .border":{opacity:.9,animation:"loaderBorder 3.3s infinite alternate"},"& svg .C":{animation:"loaderMain 2.8s infinite alternate"},"& svg .CBackground":{animation:"loaderMain 2.8s 0.2s infinite alternate"},"& svg .CBorder, & svg .RBorder":{animation:"loaderMain 2.8s 0.5s infinite alternate"},"& svg .R":{animation:"loaderMain 2.8s 0.5s infinite alternate"},"& svg .RBackground":{animation:"loaderMain 2.8s 0.7s infinite alternate"},"& svg .RBorder":{animation:"loaderMain 2.8s 0.9s infinite alternate"},"& svg .A":{animation:"loaderMain 2.8s 1.1s infinite alternate"},"& svg .ABackground":{animation:"loaderMain 2.8s 1.3s infinite alternate"},"& svg .ABorder":{animation:"loaderMain 2.8s 1.5s infinite alternate"},"& svg .A2":{animation:"loaderMain 2.8s 1.7s infinite alternate"},"& svg .A2Background":{animation:"loaderMain 2.8s 1.9s infinite alternate"},"& svg .A2Border":{animation:"loaderMain 2.8s 2.1s infinite alternate"},"& svg .F":{animation:"loaderMain 2.8s 2.2s infinite alternate"},"& svg .FBackground":{animation:"loaderMain 2.8s 2.5s infinite alternate"},"& svg .FBorder":{animation:"loaderMain 2.8s 2.7s infinite alternate"},"& svg .X":{animation:"loaderMain 2.8s 2.9s infinite alternate"},"& svg .XBackground":{animation:"loaderMain 2.8s 3.1s infinite alternate"},"& svg .XBorder":{animation:"loaderMain 2.8s 3.3s infinite alternate"}})}),l=(0,r.AH)({paddingTop:"baseUnit.mobile1",textAlign:"center"}),g[2]=s,g[3]=l):(s=g[2],l=g[3]),g[4]!==u?(c=(0,a.jsx)("p",{className:l,children:u}),g[4]=u,g[5]=c):c=g[5],g[6]!==t||g[7]!==c?(d=(0,a.jsxs)("div",{className:t,children:[s,c]}),g[6]=t,g[7]=c,g[8]=d):d=g[8],d}},79918:(e,i,t)=>{"use strict";t.r(i),t.d(i,{__N_SSP:()=>l,default:()=>c});var a=t(26514),n=t(72122),r=t(36623),o=t(81141),s=t(47587),l=!0;let c=e=>{let i,t,l=(0,n.c)(8),{accessToken:c,userEmail:d,error:g,errorDescription:u}=e,m=(0,o.c)("common");return l[0]!==m?(i=m("socialLogin.loaderText"),l[0]=m,l[1]=i):i=l[1],l[2]!==c||l[3]!==g||l[4]!==u||l[5]!==i||l[6]!==d?(t=(0,a.jsx)(s.A,{loaderSubtitle:i,redirectRoute:r.B.PAYMENT_PAY,fallbackRoute:r.B.PAYMENT_CHECKOUT,accessToken:c,userEmail:d,error:g,errorDescription:u}),l[2]=c,l[3]=g,l[4]=u,l[5]=i,l[6]=d,l[7]=t):t=l[7],t}},87433:(e,i,t)=>{"use strict";t.r(i),t.d(i,{__N_SSP:()=>n,default:()=>r});var a=t(79918),n=!0;let r=a.default}},e=>{e.O(0,[91964,46593,90636,38792],()=>e(e.s=16358)),_N_E=e.O()}]); 2//# sourceMappingURL=redirect-social-login-payment-56cac699c1a77284.js.map
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.