PageSourceSearch

https://www.spinandwin.com/build/_shared/chunk-TKQ4BN2X.js

js spinandwin.com collected 2026-09-26 06:47:56 UTC 5,381 bytes, 1 lines download raw bytes

1import{b as $,c as H,d as S}from"/build/_shared/chunk-WPFCM4KT.js";import{a as L}from"/build/_shared/chunk-YAUZK52U.js";import{b as U}from"/build/_shared/chunk-XVWA3KZM.js";import{c as P}from"/build/_shared/chunk-LXYO3DKR.js";import{a as O,b,j as v}from"/build/_shared/chunk-TQS5E2SK.js";import{u as h,v as G,w as F}from"/build/_shared/chunk-RBFCHJWR.js";import{a as w}from"/build/_shared/chunk-JUM7J4TY.js";import{a as c}from"/build/_shared/chunk-RW7BUM27.js";import{e as r}from"/build/_shared/chunk-ADMCF34Z.js";var T=r(w());var i=r(c()),V=({title:o,totalBonus:a,currencySymbol:t,children:n,className:l,expandedClassName:d,headerExpandedClassNameOverrides:u,initialIsOpen:g=!1,svgExpandedClassName:e,svgClosedClassName:p,svgSource:x,svgStrokeColor:k,blurClassName:m,disabled:C=!1})=>{let[B,M]=(0,T.useState)(g),_=()=>{C||M(!B)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:`grid min-h-[3rem] ${l||""} ${B&&u||""} ${C?"cursor-not-allowed":""}`,onClick:_,children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("div",{className:`p-1 ${m}`,children:o}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsxs)("div",{className:`p-1 mr-3 ${m}`,children:[t,a]}),n&&(0,i.jsx)(O,{className:`${B?e||"rotate-[270deg]":p||"rotate-90"}`,fill:"none",svgSource:`${x||"/images/right-icon.svg"}`,stroke:`${k||""}`})]})]})}),n&&(0,i.jsx)("div",{className:`${d!=null?d:"bg-accountBalanceBonusExpandExpandedBackgroundColor"} transition-all ease-in-out duration-500`,children:B?n:null})]})},D=V;var z=r(w());var I=r(c());function N({text:o,className:a,onAccountIconClick:t,refresh:n=!1}){let{profile:l}=h(),{walletBalances:d}=G("root"),u=F();(0,z.useEffect)(()=>{n?u.submit({refresh:"true"},{action:"/components/wallets",method:"patch"}):u.load("/components/wallets")},[n]);let{availableAndAllocated:g}=H(d,(l==null?void 0:l.CurrencyCode)||"GBP");return(0,I.jsx)(v,{className:a,text:`${o!=null?o:""}${$(g)}`,onClick:t})}var f=r(c());function y({leftButtonText:o,leftButtonOnClick:a,rightButtonText:t,rightButtonOnClick:n,children:l}){return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(D,{title:"My balance",totalBonus:(0,f.jsx)(N,{}),className:"rounded-t-lg bg-accountMenuBalanceBackgroundColor text-accountMenuBalanceColor font-semibold px-4 border-b border-solid border-accountMenuBalanceBorderColor",initialIsOpen:!0,children:l}),(0,f.jsxs)("div",{className:"p-4 flex bg-accountMenuItemBackgroun
1dColor rounded-b-lg justify-center",children:[(0,f.jsx)(b,{label:o,size:"medium",type:"secondary",onClick:a,className:"mr-2"}),(0,f.jsx)(b,{label:t,size:"medium",type:"primary",className:"ml-2",onClick:n})]})]})}var s=r(c());function R({children:o,leftButtonText:a,leftButtonOnClick:t,rightButtonText:n,rightButtonOnClick:l}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{className:"p-4 m-0 text-accountMenuBalanceColor font-bold bg-accountMenuBalanceBackgroundColor rounded-t-lg",text:"Balance"}),(0,s.jsxs)("div",{className:"p-4 border-b border-solid flex bg-accountMenuItemBackgroundColor text-accountMenuItemColor border-accountMenuItemBorderColor",children:[(0,s.jsx)(v,{className:"font-medium",text:"Cash"}),(0,s.jsx)(S,{className:"ml-auto font-medium"})]}),o,(0,s.jsxs)("div",{className:"p-4 flex bg-accountMenuItemBackgroundColor rounded-b-lg",children:[(0,s.jsx)(b,{label:a,size:"medium",type:"secondary",onClick:t}),(0,s.jsx)(b,{label:n,size:"medium",type:"primary",className:"ml-auto !border-accountMenuDepositCtaBorderColor !bg-accountMenuDepositCtaColor",onClick:l})]})]})}var A=r(c());function W({leftButtonText:o,leftButtonOnClick:a,rightButtonText:t,rightButtonOnClick:n,children:l}){let{isNewBalanceUI:d}=h(),u=()=>(0,A.jsx)(y,{children:l,leftButtonOnClick:a,leftButtonText:o,rightButtonOnClick:n,rightButtonText:t}),g=()=>(0,A.jsx)(R,{children:l,leftButtonOnClick:a,leftButtonText:o,rightButtonOnClick:n,rightButtonText:t});return(0,A.jsx)("div",{className:"m-4 grid grid-cols-1 shadow-[0_5px_10px_0_rgba(0,0,0,0.1)] rounded-lg",children:(()=>d?u():g())()})}var E=r(c());var q=(o,a,t)=>
1(0,E.jsx)(L,{refresh:o,loading:a,setLoading:t}),J=(o,a)=>{window&&(a?window.location.href="/#safer-gambling-hub":(o(),U()))},K=(o,a,t,n,l,d,u,g)=>{var x,k,m,C,B,M;let e=(o==null?void 0:o.content)||o,p=P((x=e==null?void 0:e.link)==null?void 0:x.url,a);switch(e==null?void 0:e.ContentType){case"MessagesItem":return{title:e==null?void 0:e.title,text:e==null?void 0:e.text,icon:(k=e==null?void 0:e.icon)==null?void 0:k.url,link:{Href:p},circleData:q(l,d,u)};case"LinkItem":return{title:e==null?void 0:e.title,text:e==null?void 0:e.text,icon:(m=e==null?void 0:e.icon)==null?void 0:m.url,link:{Href:p}};case"SaferGamblingHubItem":return{title:e==null?void 0:e.title,text:e==null?void 0:e.text,icon:(C=e==null?void 0:e.icon)==null?void 0:C.url,onClick:()=>J(n,g)};case"LoyaltyRewardsItem":return{title:e==null?void 0:e.title,text:e==null?void 0:e.text,icon:(B=e==null?void 0:e.icon)==null?void 0:B.url,link:{Href:p},circleData:(t==null?void 0:t.canUserClaim)&&(0,E.jsx)("data",{children:1})};default:return{title:e==null?void 0:e.Title,text:e==null?void 0:e.Text,icon:(M=e==null?void 0:e.Icon)==null?void 0:M.Url,link:{Href:p}}}},me=(o,a)=>{let{theme:t,loyaltyRewardsData:n,onCloseClick:l,refresh:d,loading:u,setLoading:g,isNewSaferGambling:e}=a;return(o==null?void 0:o.map(p=>K(p,t,n,l,d,u,g,e)))||[]};export{N as a,D as b,W as c,me as d};

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.