PageSourceSearch

https://onefootball.com/_next/static/chunks/pages/payments/change-password-3ea1dd018fb18bdb.js

js onefootball.com collected 2026-09-24 08:52:48 UTC 11,817 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8746],{17234:e=>{e.exports={checkbox:"Checkbox_checkbox___6TPG",checkboxInput:"Checkbox_checkboxInput__T4R9o",checkboxIcon:"Checkbox_checkboxIcon__NpOUg"}},27057:(e,t,r)=>{"use strict";r.d(t,{WX:()=>n,fZ:()=>i,py:()=>a,z6:()=>s});let n=/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{8,20}$/,s=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,a={EMAIL:"email",PASSWORD:"password",TERMS_AND_CONDITIONS:"termsAndConditions",SUBSCRIBED:"subscribed"},i={[a.PASSWORD]:"",[a.EMAIL]:"",[a.TERMS_AND_CONDITIONS]:!1,[a.SUBSCRIBED]:!1}},48019:e=>{e.exports={"base-font":"ChangePassword_base-font__r_QEs","title-1-bold":"ChangePassword_title-1-bold___WFSG","title-2-bold":"ChangePassword_title-2-bold__9rrM_","title-3-bold":"ChangePassword_title-3-bold__Zc_96","title-4-bold":"ChangePassword_title-4-bold__AUaQk","title-5-bold":"ChangePassword_title-5-bold__5RCc9","title-6-bold":"ChangePassword_title-6-bold__fWuE2","title-7-bold":"ChangePassword_title-7-bold__JHZwt","title-8-bold":"ChangePassword_title-8-bold__0KkEX","title-9-bold":"ChangePassword_title-9-bold__PC9z_",title:"ChangePassword_title__iVaIJ","title-1-regular":"ChangePassword_title-1-regular__mz4Lt","title-2-regular":"ChangePassword_title-2-regular__TSM35","title-3-regular":"ChangePassword_title-3-regular__XMyiy","title-4-regular":"ChangePassword_title-4-regular__6LdoB","title-5-regular":"ChangePassword_title-5-regular__5LqV4","title-6-regular":"ChangePassword_title-6-regular__0SpnL","title-7-regular":"ChangePassword_title-7-regular___uxAZ","title-8-regular":"ChangePassword_title-8-regular__QGicV","title-9-regular":"ChangePassword_title-9-regular__fA32B",inputDescriptionText:"ChangePassword_inputDescriptionText__XMOAs",ctaText:"ChangePassword_ctaText__dw8lW","text-1":"ChangePassword_text-1__Dibrr","text-2":"ChangePassword_text-2__K_J2W",subtitle:"ChangePassword_subtitle__1FBYL",checkBoxLabelText:"ChangePassword_checkBoxLabelText__2Egh9","text-3":"ChangePassword_text-3__UPGN9","text-4":"ChangePassword_text-4__jf5o7","text-5":"ChangePassword_text-5__tyOeC",wrapper:"ChangePassword_wrapper__ZYBja",header:"ChangePassword_header__5HgiU",form:"ChangePassword_form__HUZl3",inputWrapper:"ChangePassword_inputWrapper__17BnC",inputDescription:"ChangePassword_inputDescription__stNqo",inputDescriptionError:"ChangePassword_inputDescriptionError__oA7Y5",showPasswordLabel:"ChangePassword_showPasswordLabel__yCypt",cta:"ChangePassword_cta__MnD1s"}},48074:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>q,default:()=>Y});var n=r(76235),s=r(28019),a=r(21209),i=r(96147),o=r(75907),l=r(15280),_=r(61456),u=r(27057),c=r(40423),d=r(68095),p=r(22247),h=r(20008),g=r(26998),x=r(88292),m=r(47451),w=r(75683),f=r(48019),C=r.n(f),P=r(50582),S=r.n(P),b=r(81351),N=r.n(b),A=r(64013),j=r(19978),E=r(82413);function I(){let e=(0,n._)(["CHANGE_PASSWORD_TITLE"]);return I=function(){return e},e}function D(){let e=(0,n._)(["CHANGE_PASSWORD_TITLE"]);return D=function(){return e},e}function T(){let e=(0,n._)(["CHANGE_PASSWORD_TITLE"]);return T=function(){return e},e}function O(){let e=(0,n._)(["CHANGE_PASSWORD_MISMATCH"]);return O=function(){return e},e}function R(){let e=(0,n._)(["CHANGE_PASSWORD_SUCCESS"]);return R=function(){return e},e}function y(){let e=(0,n._)(["CHANGE_PASSWORD_WRONG_CURRENT"]);return y=function(){return e},e}function W(){let e=(0,n._)(["CHANGE_PASSWORD_FAILED"]);return W=function(){return e},e}function v(){let e=(0,n._)(["CHANGE_PASSWORD_TITLE"]);return v=function(){return e},e}function k(){let e=(0,n._)(["CHANGE_PASSWORD_TITLE"]);return k=function(){return e},e}function G(){let e=(0,n._)(["CHANGE_PASSWORD_TITLE"]);return G=function(){return e},e}function H(){let e=(0,n._)(["CHANGE_PASSWORD_SUBTITLE"]);return H=function(){return e},e}function L(){let e=(0,n._)(["CHANGE_PASSWORD_CURRENT_PASSWORD"]);return L=function(){return e},e}function M(){let e=(0,n._)(["CHANGE_PASSWORD_NEW_PASSWORD"]);return M=function(){return e},e}function F(){let e=(0,n._)(["LOGIN_PASSWORD_DESCRIPTION"]);return F=function(){return e},e}function Z(){let e=(0,n._)(["LOGIN_PASSWORD_DESCRIPTION"]);return Z=function(){return e},e}function B(){let e=(0,n._)(["CHANGE_PASSWORD_CONFIRM_PASSWORD"]);return B=function(){return e},e}function U(){let e=(0,n._)(["CHANGE_PASSWORD_MISMATCH"]);return U=function(){return e},e}function z(){let e=(0,n._)(["CHANGE_PASSWORD_MISMATCH"]);return z=function(){return e},e}function X(){let e=(0,n._)(["SHOW_PASSWORD"]);return X=function(){return e},e}function $(){let e=(0,n._)(["CHANGE_PASSWORD_CTA"]);return $=function(){return e},e}var q=!0;let Y=()=>{let e=(0,m.useContext)(l.$),{t}=(0,g.A)("web-payments"),r=(0,x.useRouter)(),{authState:n}=(0,d.u)(),[f,P]=(0,m.useState)(!1),b=(0,w.mN)({mode:"onChange",criteriaMode:"all",defaultValues:{currentPassword:"",newPassword:"",confirmPassword:""},shouldFocusError:!0});if((0,j.d2)(j.iN.ForgotPassword),(0,m.useEffect)(()=>{"authenticated"!==n.kind&&r.push("/payments/sign-in")},[n,r]),"authenticated"!==n.kind)return null;if("firebase"!==n.user.provider)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(N(),{children:[(0,s.jsx)("title",{children:"".concat(t(I())," | OneFootball")}),(0,s.jsx)(A.I,{title:t(D()),description:"OneFootball"}),(0,s.jsx)(E.A,{})]}),(0,s.jsxs)("div",{className:C().wrapper,children:[(0,s.jsxs)("div",{className:C().header,children:[(0,s.jsx)("h1",{className:C().title,children:t(T())}),(0,s.jsxs)("p",{className:C().subtitle,children:["Password change is only available for email accounts. You signed in with ",n.user.provider,"."]})]}),(0,s.jsx)("div",{className:C().form,children:(0,s.jsx)(a.$,{variant:"fill",onClick:()=>void r.push("/payments/profile/account"),className:C().cta,children:(0,s.jsx)("span",{className:C().ctaText,children:"Back to Account"})})})]})]});async function q(n){let{currentPassword:s,newPassword:a,confirmPassword:i}=n;if(a!==i){null==e||e({message:t(O()),type:_.Yw.error});return}try{await c.SM.changePassword(s,a),null==e||e({message:t(R()),type:_.Yw.success}),r.push("/payments/profile/account")}catch(r){if(p.b.error("Password change failed",r),(0,h.b)(r)){let n=r.message.includes("wrong-password")||r.message.includes("invalid-credential");null==e||e({message:n?t(y()):t(W()),type:_.Yw.error})}}}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(N(),{children:[(0,s.jsx)("title",{children:"".concat(t(v())," | OneFootball")}),(0,s.jsx)(A.I,{title:t(k()),description:"OneFootball"}),(0,s.jsx)(E.A,{})]}),(0,s.jsxs)("div",{className:C().wrapper,children:[(0,s.jsxs)("div",{className:C().header,children:[(0,s.jsx)("h1",{className:C().title,children:t(G())}),(0,s.jsx)("p",{className:C().subtitle,children:t(H())})]}),(0,s.jsx)(w.Op,{...b,children:(0,s.jsxs)("form",{onSubmit:e=>void b.handleSubmit(q)(e),className:C().form,children:[(0,s.jsx)("div",{className:C().inputWrapper,children:(0,s.jsx)(o.p,{type:f?"text":"password",autoComplete:"current-password",label:t(L()),...b.register("currentPassword",{required:!0}),error:b.formState.errors.currentPassword})}),(0,s.jsxs)("div",{className:C().inputWrapper,children:[(0,s.jsx)(o.p,{type:f?"text":"password",autoComplete:"new-password",label:t(M()),...b.register("newPassword",{required:!0,pattern:u.WX}),error:b.formState.errors.newPassword}),b.formState.errors.newPassword?(0,s.jsx)("div",{className:C().inputDescription,children:(0,s.jsx)("strong",{className:S()(C().inputDescriptionError,C().inputDescriptionText),children:t(F())})}):(0,s.jsx)("div",{className:C().inputDescription,children:(0,s.jsx)("p",{className:C().inputDescriptionText,children:t(Z())})})]}),(0,s.jsxs)("div",{className:C().inputWrapper,children:[(0,s.jsx)(o.p,{type:f?"text":"password",autoComplete:"new-password",label:t(B()),...b.register("confirmPassword",{required:!0,validate:e=>e===b.getValues("newPassword")||t(U())}),error:b.formState.errors.confirmPassword}),b.formState.errors.confirmPassword&&(0,s.jsx)("div",{className:C().inputDescription,children:(0,s.jsx)("strong",{className:S()(C().inputDescriptionError,C().inputDescriptionText),children:t(z())})})]}),(0,s.jsxs)("label",{className:C().showPasswordLabel,children:[(0,s.jsx)(i.S,{onChange:()=>{P(!f)}}),(0,s.jsx)("p",{className:C().checkBoxLabelText,children:t(X())})]}),(0,s.jsx)(a.$,{variant:"fill",type:"submit",className:C().cta,disabled:!b.formState.isDirty||b.formState.isSubmitting||!b.formState.isValid,children:(0,s.jsx)("span",{className:C().ctaText,children:t($())})})]})})]})]})}},64013:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(28019),s=r(55756);function a(e){let{title:t,description:r,image:a,type:i,keyword:o}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"description",content:r}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:title",content:"".concat(t," | OneFootball")}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{property:"twitter:domain",content:"onefootball.com"}),(0,n.jsx)("meta",{name:"twitter:title",content:"".concat(t," | OneFootball")}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),!(0,s.w)(a)&&(0,n.jsx)("meta",{property:"og:image",content:a}),!(0,s.w)(i)&&(0,n.jsx)("meta",{property:"og:type",content:i}),!(0,s.w)(o)&&o.length>0&&(0,n.jsx)("meta",{name:"keywords",content:o.join(", ")})]})}},72164:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/payments/change-password",function(){return r(48074)}])},75907:(e,t,r)=>{"use strict";r.d(t,{p:()=>u});var n=r(28019),s=r(50582),a=r.n(s),i=r(47451),o=r(90138),l=r.n(o),_=r(75683);let u=(0,i.forwardRef)((e,t)=>{let{onBlur:r,type:s="text",error:o,label:u,name:c,autoComplete:d,onChange:p}=e,{setValue:h}=(0,_.xW)(),g=(0,i.useRef)(null);return(0,i.useEffect)(()=>{g.current&&g.current.value&&void 0!==c&&""!==c&&h(c,g.current.value)},[g,c,h]),(0,n.jsxs)("label",{className:l().label,children:[(0,n.jsx)("p",{className:l().inputText,children:u}),(0,n.jsx)("input",{className:a()(l().input,{[String(l().invalidInput)]:o}),type:s,ref:function(e){"function"==typeof t&&t(e),g.current=e},name:c,autoComplete:d,onBlur:r,onChange:p}),void 0!==o&&""!==o.message&&(0,n.jsx)("strong",{className:a()(l().error,l().inputText),children:o.message})]})});u.displayName="Input"},82413:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(28019);function s(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("meta",{property:"og:image",content:"https://peregrine.onefootball.com/images/sh
1aring_banner.png"})})}},90138:e=>{e.exports={"base-font":"Input_base-font__y2wky","title-1-regular":"Input_title-1-regular__TyunF","title-2-regular":"Input_title-2-regular__mZQ84","title-3-regular":"Input_title-3-regular__o21sb","title-4-regular":"Input_title-4-regular__RF6UX","title-5-regular":"Input_title-5-regular__94_am","title-6-regular":"Input_title-6-regular__q4Jlh","title-7-regular":"Input_title-7-regular__409tn","title-8-regular":"Input_title-8-regular__TC9Rd","title-9-regular":"Input_title-9-regular__g9ML3",inputText:"Input_inputText__joTh7",label:"Input_label__EUcyx",input:"Input_input__fZUT2",error:"Input_error__eWEcq",invalidInput:"Input_invalidInput__X1wuc"}},96147:(e,t,r)=>{"use strict";r.d(t,{S:()=>_});var n=r(28019),s=r(47451),a=r(17234),i=r.n(a),o=r(50582),l=r.n(o);let _=(0,s.forwardRef)((e,t)=>{let{className:r,...s}=e;return(0,n.jsxs)("div",{className:i().checkbox,children:[(0,n.jsx)("input",{...s,ref:function(e){"function"==typeof t&&t(e)},className:l()(i().checkboxInput,r),type:"checkbox"}),(0,n.jsx)("span",{"aria-hidden":!0,className:i().checkboxIcon,children:"✓"})]})});_.displayName="CheckBox"}},e=>{e.O(0,[5683,636,6593,8792],()=>e(e.s=72164)),_N_E=e.O()}]);

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.