PageSourceSearch

https://www.globalplayer.com/_next/static/chunks/pages/settings/edit-profile-31443e170ee2cc84.js

js globalplayer.com collected 2026-09-24 09:05:57 UTC 5,789 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8218],{0:(e,t,s)=>{"use strict";s.d(t,{p:()=>o});var i=s(37876),n=s(43503),r=s(24255),a=s.n(r);function o({className:e,children:t,...s}){return(0,i.jsx)("div",{className:(0,n.t4)([a().navLinks,e]),...s,children:t})}},24255:e=>{e.exports={navLinks:"style_navLinks__cl2_J"}},37739:e=>{e.exports={navLink:"style_navLink__fAel_",active:"style_active__Y8W26"}},47623:(e,t,s)=>{"use strict";s.d(t,{k:()=>c});var i=s(37876),n=s(48230),r=s.n(n),a=s(43503),o=s(37739),l=s.n(o);function c({children:e,className:t,isActive:s,...n}){let o=(0,a.t4)([l().navLink,s?l().active:"",t]);return(0,i.jsx)(r(),{className:o,...n,children:e})}},51100:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/edit-profile",function(){return s(59413)}])},54205:e=>{e.exports={accountNavLinks:"account-nav-links_accountNavLinks__f9tm1"}},58196:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var i=s(37876),n=s(35351),r=s(30270),a=s(47623),o=s(0),l=s(54205),c=s.n(l);let d=function({activePage:e="edit"}){let{user:t}=(0,n.As)();return(0,i.jsxs)(o.p,{className:c().accountNavLinks,children:[(0,i.jsx)(a.k,{href:r.A.settingsEditProfile().as,isActive:"edit"===e,children:"My Details"}),t?.loginProvider==="site"?(0,i.jsx)(a.k,{href:r.A.settingsChangePassword().as,isActive:"changePassword"===e,children:"Change Password"}):null,(0,i.jsx)(a.k,{href:r.A.settingsDeleteAccount().as,isActive:"delete"===e,children:"Delete Account"})]})}},59413:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>A,default:()=>P});var i=s(37876),n=s(14232),r=s(58196),a=s(50720),o=s(35063),l=s(46107),c=s(55893),d=s(71773),u=s(38601),h=s(30270),_=s(8636),p=s(63401),f=s(84483),g=s(94171),m=s(91737),x=s(72065),v=s(70493),j=s.n(v);class b extends n.Component{static{this.contextType=u.h}render(){let e=h.A.settingsEditProfile();return(0,i.jsxs)("div",{"data-testid":"edit-profile-page",children:[(0,i.jsx)(o.A,{canonical:`${m.A.openGraph.url}${e.as}`,title:"Settings | Edit Profile"}),(0,i.jsxs)("div",{className:j().profilePage,children:[(0,i.jsx)(d.A,{}),(0,i.jsx)(f.N,{withBackground:!1,className:j().content,children:(0,i.jsxs)("div",{className:j().form,children:[(0,i.jsx)(r.A,{activePage:"edit"}),(0,i.jsx)("h4",{className:j().title,children:this.state.isLoading?"Loading details...":"Edit your details below"}),(0,i.jsx)(c.A,{enableReinitialize:!0,initialValues:this.state.user,showPasswordField:!1,showCaptchaField:!1,className:"edit-profile__form",extraButtons:this.cancelButton(),submitButtonText:{default:"Save",loading:"Saving..."},submitError:this.state.submitError,onSubmit:(e,{setSubmitting:t})=>{this.onSubmit(e,t)},showLastNameField:!0,showTelephoneField:!0,showMarketingPreferences:!0,hideNonEmptyFields:!1,isTelephoneRequired:!1,showEmailField:!0,showTooltips:!1})]})})]})]})}constructor(...e){super(...e),this.state={isLoading:!0,submitError:"",user:{data:{},email:"",firstName:"",lastName:"",birthDay:"",birthMonth:"",birthYear:"",gender:"",postcode:"",country:"",telephone:""}},this.setUserProfile=async()=>{try{let e=await _.jh.getAccountInfo(),t=e.profile.country;"GB"===t?t="UK":"UK"!==t&&(t="Other"),this.setState({user:{data:e.data,...e.profile,country:t},isLoading:!1})}catch{(0,l.m)(g.BV.error.userDataFetch,"error")}},this.componentDidMount=async()=>{(0,x.MH)({trackingTitle:"Settings | Edit Profile"}),await this.setUserProfile()},this.onSubmit=async(e,t)=>{this.setState({submitError:""});try{let s=await _.jh.getAccountInfo();e.emailToRemove=s.profile.email===e.email?"":s.profile.email,await _.jh.setAccountInfo(e,!1),t(!1),this.context.setUserDetails(s.profile,s.loginProvider),(0,l.m)(g.BV.success.accountUpdated,"primary",2500)}catch(e){this.setState({submitError:e.message}),t(!1)}},this.cancelButton=()=>(0,i.jsx)(p.v,{href:h.A.settingsLP().as,className:"edit-profile__form__button--cancel",variant:"secondary",type:"button",children:"Cancel"})}}var A=!0;let P=(0,a.BZ)(b,()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{canonical:`${m.A.openGraph.url}${h.A.settingsEditProfile().as}`,title:"Settings | Edit Profile"}),(0,i.jsx)("div",{className:j().editProfilePage,children:(0,i.jsx)(d.A,{})})]}))},63401:(e,t,s)=>{"use strict";s.d(t,{v:()=>u});var i=s(37876),n=s(48230),r=s.n(n),a=s(43503),o=s(70982),l=s.n(o),c=s(95578),d=s.n(c);function u({variant:e,href:t,children:s,level:n="surface",className:o,brand:c="globalplayer",disabled:h=!1,..._}){let p=(0,a.t4)([l().gpBtn,l()[e],l()[c],l()[n],h?d().isDisabled:"",o]);return(0,i.jsx)(r(),{href:t,role:"button",className:p,..._,children:s})}},70493:e=>{e.exports={profilePage:"settings-profile_profilePage__tmo0t",content:"settings-profile_content__Qg1nq",buttons:"settings-profile_buttons__WXz8w",form:"settings-profile_form__eCYoD",deleteAccount:"settings-profile_deleteAccount__fC0vY",title:"settings-profile_title__yOsRu",text:"settings-profile_text___r3ut",buttonGroupWrapper:"settings-profile_buttonGroupWrapper__FTwnT"}},71773:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var i=s(37876),n=s(35351),r=s(39415),a=s(89289),o=s(81498),l=s.n(o);let c=function(){let{isLoggedIn:e}=(0,n.As)();return e?(0,i.jsx)(a.A,{className:l().settingsHeaderPanel,title:"View & Edit Profile",text:(0,i.jsxs)(i.Fragment,{children:["Edit your details and change ",(0,i.jsx)("br",{}),"your password"]})}):(0,i.jsx)(a.A,{className:l().settingsHeaderPanel,title:"View & Edit Profile",text:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:"Sign In"})," or ",(0,i.jsx)("b",{children:"Sign Up"})," ",(0,i.jsx)("br",{}),"to edit your profile details"]}
1),children:(0,i.jsx)(r.SignInButtons,{})})}},81498:e=>{e.exports={settingsHeaderPanel:"settings-header-panel_settingsHeaderPanel__mg_qR"}},95578:e=>{e.exports={isDisabled:"style_isDisabled__vZIw5"}}},e=>{e.O(0,[9415,636,6593,8792],()=>e(e.s=51100)),_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.