PageSourceSearch

https://www.spinandwin.com/build/_shared/menu-HNQEY6CQ.js

js spinandwin.com collected 2026-09-26 06:49:47 UTC 7,737 bytes, 1 lines download raw bytes

1import{c as te,d as v}from"/build/_shared/chunk-TKQ4BN2X.js";import{a as oe}from"/build/_shared/chunk-HFUZZOIL.js";import{a as Y,d as ae}from"/build/_shared/chunk-WPFCM4KT.js";import"/build/_shared/chunk-YAUZK52U.js";import"/build/_shared/chunk-BJ5WNPRB.js";import"/build/_shared/chunk-MQJDYMCS.js";import"/build/_shared/chunk-QFXWV5ET.js";import{n as ne,o as ce}from"/build/_shared/chunk-X36JT5BG.js";import"/build/_shared/chunk-XVWA3KZM.js";import"/build/_shared/chunk-PCOQQ6ZP.js";import"/build/_shared/chunk-QPVZAJR3.js";import"/build/_shared/chunk-SQIVSIK7.js";import"/build/_shared/chunk-GOCWYXSG.js";import{a as X,b as C}from"/build/_shared/chunk-2G3BUNAD.js";import{a as ee}from"/build/_shared/chunk-LXYKMAPX.js";import"/build/_shared/chunk-LXYO3DKR.js";import"/build/_shared/chunk-6XX3ATVP.js";import"/build/_shared/chunk-H5UJJ74Q.js";import{A as b,a as D,j as d,z as Q}from"/build/_shared/chunk-TQS5E2SK.js";import{e as $,q as j,u as q,v as z,w as J}from"/build/_shared/chunk-RBFCHJWR.js";import"/build/_shared/chunk-GZJBGZQO.js";import{a as R}from"/build/_shared/chunk-JUM7J4TY.js";import{a as f}from"/build/_shared/chunk-RW7BUM27.js";import{e as m}from"/build/_shared/chunk-ADMCF34Z.js";var I=m(R());var B=m(R());var o=m(f()),re=m(R());function w({recentlyPlayedGamesTitle:t,recentlyPlayedGamesSeeMoreIconURL:c,recentlyPlayedGamesSeeLessIconURL:r,recentlyPlayedGamesDividerURL:i}){var P;let{recentlyPlayedGamesInitial:s}=z("root"),[n]=(0,B.useState)((P=s==null?void 0:s.results)==null?void 0:P.filter(L=>{var e,l;return(l=(e=L.gameDetail)==null?void 0:e.backgroundLayer)==null?void 0:l.cropUrl})),[T,N]=(0,B.useState)([]),[p,u]=(0,B.useState)(!1),k=()=>{n&&(n.length>3?N(n.slice(0,3)):N(n))};(0,B.useEffect)(()=>{k()},[]);let A=L=>L.map((e,l)=>{var g,x,S,M,G,h,U,_,H,F,O,V,Z,K,W;return(0,o.jsx)("div",{className:"p-1",children:((g=e==null?void 0:e.gameDetail)==null?void 0:g.contentType)==="BingoGame"?(0,re.createElement)(ce,{...e.gameDetail,gameContainerData:{gameLocationIndex:l,gameLocation:"Recently Played Games - Account Menu"},key:l}):(0,o.jsx)(ne,{jackpotProvider:(x=e==null?void 0:e.gameDetail)==null?void 0:x.jackpotProvider,megaProgressiveId:(S=e==null?void 0:e.gameDetail)==null?void 0:S.megaProgressiveId,categoriesV2:(M=e==null?void 0:e.gameDetail)==null?void 0:M.categoriesV2,BingoCategory:"",gameLabel:(G=e.gameDetail)==null?void 0:G.gameLabel,name:(h=e.gameDetail)==null?void 0:h.name,backgroundLayer:(U=e.gameDetail)==null?void 0:U.backgroundLayer,gameLogoLayer:(_=e.gameDetail)==null?void 0:_.gameLogoLayer,categoryTagLabel:(H=e.gameDetail)==null?void 0:H.categoryTagLabel,contentType:(F=e.gameDetail)==null?void 0:F.contentType,gameRibbonText:(O=e.gameDetail)==null?void 0:O.gameRibbonText,gameRibbonColor:(V=e.gameDetail)==null?void 0:V.gameRibbonColor,gameRibbonStartDate:(Z=e.gameDetail)==null?void 0:Z.gameRibbonStartDate,gameRibbonEndDate:(K=e.gameDetail)==null?void 0:K.gameRibbonEndDate,gameEnvironments:(W=e.gameDetail)==null?void 0:W.gameEnvironments,disableFavourites:!0,gameContainerData:{gameLocationIndex:l,gameLocation:"Recently Played Games - Account Menu"}},l)},l)});return(0,o.jsx)("div",{children:n&&n.length>0&&(0,o.jsxs)("div",{className:"m-4",children:[(0,o.jsxs)("div",{className:"flex py-4",children:[(0,o.jsx)("div",{className:"mr-4 text-accountIconColor",children:(0,o.jsx)(D,{styles:{fill:"var(--account-recently-played-icon-color)",stroke:"var(--account-recently-played-icon-color)"},svgSource:"/images/account-icon.svg"})}),(0,o.jsx)("h1",{className:"text-accountRecentlyPlayedGamesTitleColor font-textFontWeight pt-1",children:t})]}),(0,o.jsx)("div",{className:"grid grid-cols-3",children:A(p?n:T)}),n.length>3&&(0,o.jsxs)("div",{className:"flex justify-center items-center p-4",children:[(0,o.jsx)(D,{svgSource:i}),(0,o.jsx)(D,{svgSource:p?r:c,onClick:()=>u(!p)}),(0,o.jsx)(D,{svgSource:i})]})]})})}var y=m(f());function E({siteConfig:t,params:c}){let r=v(t==null?void 0:t.notifications,c),i=v(t==null?void 0:t.myCashier,c),s=v(t==null?void 0:t.myPreferences,c),n=v(t==null?void 0:t.saferGambling,c);return(0,y.jsxs)(y.Fragment,{children:[(r==null?void 0:r.length)>0&&(0,y.jsx)(b,{items:r,caretSrc:"/images/right-icon.svg",sectionTitle:"Notifications"}),(i==null?void 0:i.length)>0&&(0,y.jsx)(b,{items:i,caretSrc:"/images/right-icon.svg",sectionTitle:"My Cashier"}),(s==null?void 0:s.length)>0&&(0,y.jsx)(b,{items:s,caretSrc:"/images/right-icon.svg",sectionTitle:"My Preferences"}),(n==null?void 0:n.length)>0&&(0,y.jsx)(b,{items:n,caretSrc:"/images/right-icon.svg",sectionTitle:"Safer Gambling"})]})}var a=m(f());function le({onCloseClick:t,profile:c,config:r}){var M,G,h;let i=J(),[s,n]=(0,I.useState)(!1),[T,N]=(0,I.useState)(!1),p=$();(0,I.useEffect)(()=>{i.submit({refresh:"true"},{action:"/components/wallets",method:"patch"})},[]);let{siteConfig:u,wallet:k,theme:A,skinId:P,loyaltyRewardsData:L,isNewBalanceUI:e}=q(),l={theme:A,loyaltyRewardsData:L,onCloseClick:t,refresh:s,loading:T,setLoading:N,isNewSaferGambling:u==null?void 0:u.isNewSaferGambling},g=new Y(k.message,c.CurrencyCode),x=v(u==null?void 0:u.linksV2,l),S={currency:g.allocatedBalance().currency,isZeroBalance:g.allocatedBalance().isZeroBalance};return(0,a.jsxs)("div",{className:"flex flex-col h-full",children:[(0,a.jsx)(Q,{username:ee(c),accountIconSrc:"/images/account-icon.svg",closeIconSrc:"/images/close-icon.svg",onCloseIconClick:()=>{t()}}),(0,a.jsx)(oe,{leftContent:(0,a.jsxs)("div",{className:"text-xs text-accountMenuColor",children:[(0,a.jsx)("span",{className:"font-bold",children:"Last Login: "}),(0,a.jsx)("span",{children:new Date(c.LastLoginDate).toLocaleTimeString("en-uk",{day:"numeric",month:"long",year:"numeric"})})]}),rightContent:(!e||e&&P!==17)&&(0,a.jsx)(j,{className:"btn btn-ghost underline text-accountMenuLinkColor",to:"/forms/logout",children:"Logout"})}),(0,a.jsx)(te,{currencySymbol:c.CurrencyCode||"\xA3",leftButtonText:`${e?"Withdraw":"Detailed view"}`,rightButtonText:"Deposit",rightButtonOnClick:()=>{p(C.menu_cashier_deposit)},leftButtonOnClick:()=>{p(e?C.menu_cashier_withdrawal:X.menu_balance)},children:e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex bg-accountBalanceBonusBackgroun
1dColor text-accountMenuBalanceAvailableColor p-4 border-b border-accountMenuBalanceBorderColor",children:[(0,a.jsx)(d,{className:"font-semibold",text:"Available"}),(0,a.jsx)(d,{className:"ml-auto font-semibold",text:(0,a.jsx)(ae,{availableOnly:!0})})]}),!S.isZeroBalance&&(0,a.jsxs)("div",{className:"flex bg-accountBalanceBonusBackgroundColor text-accountMenuBalanceAllocatedColor p-4",children:[(0,a.jsx)(d,{className:"font-semibold",text:"Allocated"}),(0,a.jsx)(d,{className:"ml-auto font-semibold",text:S.currency})]}),(0,a.jsxs)("div",{className:"p-4 flex bg-accountMenuBalanceBackgroundColor text-accountMenuBalanceColor border-b border-accountBalanceBorderColor",children:[(0,a.jsx)(d,{className:"font-semibold",text:"Bonuses"}),(0,a.jsx)(d,{className:"ml-auto font-semibold",text:g.bonusBalance()})]})]}):(0,a.jsxs)("div",{className:"p-4 border-b border-solid flex bg-accountMenuItemBackgroundColor text-accountMenuItemColor border-accountMenuItemBorderColor",children:[(0,a.jsx)(d,{className:"font-medium",text:"Bonuses"}),(0,a.jsx)(d,{className:"ml-auto font-medium",text:g.bonusBalance()})]})}),e?(0,a.jsx)(E,{siteConfig:u,params:l}):(0,a.jsx)(b,{items:x,caretSrc:"/images/right-icon.svg"}),(0,a.jsx)(w,{recentlyPlayedGamesTitle:r.recentlyPlayedGamesTitle,recentlyPlayedGamesSeeMoreIconURL:(M=r.recentlyPlayedGamesSeeMoreIcon)==null?void 0:M.url,recentlyPlayedGamesSeeLessIconURL:(G=r.recentlyPlayedGamesSeeLessIcon)==null?void 0:G.url,recentlyPlayedGamesDividerURL:(h=r.recentlyPlayedGamesDivider)==null?void 0:h.url})]})}export{le 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.