PageSourceSearch

https://www.spinandwin.com/build/_shared/accountDetailsDefault-ITMCVIAH.js

js spinandwin.com collected 2026-09-26 06:50:15 UTC 2,460 bytes, 1 lines download raw bytes

1import{a as y}from"/build/_shared/chunk-HFUZZOIL.js";import{a as v}from"/build/_shared/chunk-LXYKMAPX.js";import{e as D}from"/build/_shared/chunk-6XX3ATVP.js";import{a as K}from"/build/_shared/chunk-H5UJJ74Q.js";import{A as I,B as T,D as x,z as k}from"/build/_shared/chunk-TQS5E2SK.js";import{e as d,q as f,w as g}from"/build/_shared/chunk-RBFCHJWR.js";import"/build/_shared/chunk-GZJBGZQO.js";import{a as F}from"/build/_shared/chunk-JUM7J4TY.js";import{a as C}from"/build/_shared/chunk-RW7BUM27.js";import{e as s}from"/build/_shared/chunk-ADMCF34Z.js";var L=s(K()),n=s(F());var t=s(C());function $({onCloseClick:A,profile:M,menuItems:i,editLink:P,config:N,successText:l}){var m,u;let h=i==null?void 0:i.map(o=>{var p;return{title:o.Title,text:o.Text,link:{Href:(p=o.link)==null?void 0:p.url}}}),{accountDetailsFieldSuccessIcon:b,passwordUpdatedMessage:B,accountDetailsUpdateMessage:E,liveHelpUrl:w,liveHelpEnabled:O}=N||{},S=l==="accountdetails"?E:B,[a,H]=(0,n.useState)(null),c=d(),U=()=>{location.hash&&c(location.pathname+P.url)},Y=()=>{D({event:"back_click"}),c("/#menu")},e=g();(0,n.useEffect)(()=>{e.load("/actions/getPlayerDetails")},[]),(0,n.useEffect)(()=>{e.state==="idle"&&(e==null?void 0:e.data)!==void 0&&H(e.data)},[e.state,e==null?void 0:e.data]);let r={};if(a){let o=(u=(m=a==null?void 0:a.message)==null?void 0:m.player)==null?void 0:u.profile;r={Name:`${o.personal.firstName} ${o.personal.lastName}`,Email:o.personal.email,Phone:o.personal.telephone,"Post Code":o.personal.address.postCode,"Last Login":(0,L.default)(o.previousLoginDate).format("Do MMMM YYYY, h:mm:ss a")}}return(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)(k,{username:v(M),backIconSrc:"/images/back-icon.svg",accountIconSrc:"/images/account-icon.svg",closeIconSrc:"/images/close-icon.svg",menuTitle:"ACCOUNT DETAILS",menuUserClasses:"text-accountDetailsAccountMenuHeaderTextTopColor",menuTitleClasses:"text-accountDetailsAccountMenuHeaderTextBottomColor",onBackIconClick:()=>{Y()},onCloseIconClick:()=>{A()}}),(0,t.jsx)(y,{rightContent:(0,t.jsx)(f,{className:"btn btn-ghost underline text-accountDetailsLogoutLinkColor font-normal",to:"/forms/logout",children:"Logout"})}),l&&(0,t.jsx)("div",{className:"m-4",children:(0,t.jsx)(x,{messageText:S,messageClassName:"text-defaultTextColor",icon:b.url})}),a&&(0,t.jsx)(T,{playerProfile:r,onEditClick:U,editText:"Edit"}),(0,t.jsx)(I,{items:h,caretSrc:"/images/right-icon.svg"})]})}export{$ 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.