PageSourceSearch

https://www.fairfootball.ai/assets/Login-d5e9f6fb.js

js fairfootball.ai collected 2026-10-05 15:19:19 UTC 5,065 bytes, 1 lines download raw bytes

1import{u as e,k as i,l as a,S as s,n as o,m as l,o as n,L as r,F as t,_ as d,j as c}from"./index-bebc22d9.js";import{j as m,F as _,a as g}from"./vendor-animation-428022f4.js";import{r as f,e as p}from"./vendor-react-60b2ddf1.js";import{c as u,a as w,F as h,b as v,d as N,E as b}from"./vendor-forms-28fcec82.js";import{e as I}from"./eye_visibility-6544637a.js";import{f as y,a as A,e as C,G as T,A as j}from"./AppleSignIn-52043ee1.js";import{o as x}from"./jwt-decode.esm-f211d686.js";import{Q as P}from"./vendor-ui-722eb924.js";import"./vendor-query-7477f658.js";const S="_gradientButton_9f2ii_1",k="_signinPage_9f2ii_81",L="_footballImage_9f2ii_92",E="_navbarLogo_9f2ii_104",q="_formMain_9f2ii_122",B="_gradient_9f2ii_1",D="_signinText_9f2ii_151",F="_formSection_9f2ii_168",M="_formLabels_9f2ii_172",R="_emailSection_9f2ii_184",V="_emailInputField_9f2ii_191",z="_passwordSection_9f2ii_213",O="_passwordInputField_9f2ii_220",U="_eyeIcon_9f2ii_242",W="_forgotPassword_9f2ii_255",$="_divider_9f2ii_270",G="_socialRow_9f2ii_277",H="_line_9f2ii_287",J="_orText_9f2ii_294",K="_notMember_9f2ii_306",Q="_notMemberText_9f2ii_312",X="_signupText_9f2ii_321",Y="_errorText_9f2ii_342";function Z(){const{t:Z}=e(),[ee,ie]=f.useState(!1),ae=u().shape({emailAddress:w().email(Z("login.pleaseEnterValidEmail")).required(Z("login.emailRequired")),password:w().required(Z("login.passwordRequired"))}),[se,oe]=f.useState(!1),{login:le}=i(),ne=p();f.useRef(null),f.useEffect(()=>{(async()=>{try{const e=(await d(()=>import("./index-bebc22d9.js").then(e=>e.bq),["assets/index-bebc22d9.js","assets/vendor-animation-428022f4.js","assets/vendor-react-60b2ddf1.js","assets/vendor-query-7477f658.js","assets/vendor-ui-722eb924.js","assets/vendor-forms-28fcec82.js","assets/index-a7a530da.css"])).default,i=await e.load(),{visitorId:a}=await i.get();localStorage.setItem("deviceFingerprint",a)}catch(e){}})()},[le,ne]);const{mutateAsync:re}=a(),te=c("login");return m(_,{children:[g(s,{title:te.title,description:te.description,keywords:te.keywords,canonical:te.canonical,ogImage:te.ogImage}),m("div",{className:k,children:[g("span",{className:E,children:g("img",{onClick:()=>{ne("/")},src:o,alt:Z("login.fairLogoAlt"),title:Z("login.fairLogoTitle"),style:{cursor:"pointer"}})}),g("img",{src:y,srcSet:`${A} 161w, ${y} 332w`,sizes:"(max-width: 900px) 161px, 332px",alt:Z("login.footballImgAlt"),title:Z("login.footballImgTitle"),className:L,loading:"lazy"}),m("div",{className:q,children:[g("div",{className:B}),g("h1",{className:D,children:Z("login.signIn")}),g(h,{initialValues:{emailAddress:"",password:""},validationSchema:ae,onSubmit:async(e,{setSubmitting:i})=>{var a,s;try{const{computerId:i,browserId:a}=await l(),s=a,o=n(),r={email:e.emailAddress,password:e.password,platform:"web",deviceId:s,deviceInfo:{...o,computerId:i,browserId:a}},t=await re(r),{accessToken:d,refreshToken:c}=t.data,m=x(d);le(d,c,m),m.emailVerified?ne("/"):ne("/verify-email")}catch(o){ie(!0);const e=null==(a=o.response)?void 0:a.status,i=null==(s=o.response)?void 0:s.data;if(401===e)P.error(Z("login.invalidCredentials"));else if(423===e){const e=null==i?void 0:i.unlockTime;if(e){const i=new Date(e),a=new Date,s=Math.ceil((i-a)/6e4),o=s>1?Z("login.minutesPlural",{count:s}):Z("login.oneMinute");P.error(Z("login.accountLockedTimed",{time:o}),{autoClose:8e3})}else P.error(Z("login.accountLocked"),{autoClose:8e3})}else 403===e?"IP_BANNED"===(null==i?void 0:i.error)?P.error(Z("login.ipBanned"),{autoClose:1e4}):"ACCOUNT_BANNED"===(null==i?void 0:i.error)?P.error(Z("login.accountBanned"),{autoClose:1e4}):P.error(Z("login.accessDenied"),{autoClose:8e3}):P.error(Z("login.somethingWrong"))}finally{i(!1)}},children:({isSubmitting:e})=>m(v,{className:F,children:[m("div",{className:R,children:[g("label",{className:M,children:Z("login.emailLabel")}),g(N,{placeholder:Z("login.emailPlaceholder"),type:"email",name:"emailAddress",className:V,autoComplete:"off"}),g(b,{name:"emailAddress",component:"div",className:Y})]}),m("div",{className:z,children:[g("label",{className:M,children:Z("login.passwordLabel")}),g(N,{placeholder:Z("login.passwordPlaceholder"),type:se?"text":"password",name:"password",autoComplete:"off",className:O}),g("img",{className:U,onClick:()=>oe(!se),src:se?C:I,alt:Z(se?"login.hidePassword":"login.showPassword"),title:Z(se?"login.hidePassword":"login.showPassword")}),g(b,{name:"password",component:"div",className:Y})]}),g("p",{className:W,onClick:()=>{ne("/verify-reset-password")},title:Z("login.resetPasswordTitle"),children:Z("login.forgotPassword")}),g("button",{type:"submit",disabled:e,className:S,children:e?g(r,{size:26}):Z("login.signInBtn")}),m("div",{className:$,children:[g("div",{className:H}),g("span",{className:J,children:Z("login.orContinueWith")}),g("div",{className:H})]}),m("div",{className:G,children:[g(T,{}),g(j,{})]}),m("div",{className:K,children:[g("p",{className:Q,children:Z("login.noAccount")}
1),g("p",{className:X,onClick:()=>{ne("/signup")},title:Z("login.createAccountTitle"),children:Z("login.signUp")})]})]})})]})]}),g(t,{})]})}export{Z as default};

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.