1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7865,8954,2230,4984,3400],{5047:function(e,t,r){r.d(t,{dK:function(){return o.useWebSocketContext}});var o=r(36767);r(29373)},51786:function(e,t,r){var o=r(57437);r(2265);var n=r(76975),l=r(17162),i=r(73126),a=r(95576);t.Z=e=>{let{message:t,open:r,setOpen:s,severity:c,renderHTML:d}=e;return(0,o.jsx)(l.Z,{in:r,children:(0,o.jsxs)(i.Z,{severity:c,action:(0,o.jsx)(a.Z,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>s(!1),children:(0,o.jsx)(n.Z,{icon:"solar:close-circle-bold"})}),sx:{mt:3,mb:3,alignItems:"center"},children:[t,d]})})}},63400:function(e,t,r){r.r(t);var o=r(57437),n=r(60033),l=r(2265),i=r(9467),a=r(59062),s=r(25578),c=r(35565),d=r(89414),m=r(47080),u=r(1899),h=r(97312),p=r(46387),x=r(19643),g=r(44811),b=r(31691),f=r(82156),y=r(73992),v=r(78045),w=r(51644),k=r(58180);let j=(0,l.memo)(v._),Z=(0,l.memo)(w.F),C=(0,l.memo)(e=>{let{isMobile:t}=e;return(0,o.jsx)(d.ZP,{container:!0,spacing:1,children:Array.from({length:8},(e,r)=>(0,o.jsx)(d.ZP,{item:!0,xs:4,sm:4,lg:4,xl:1.5,display:"flex",justifyContent:"center",children:(0,o.jsx)(m.Z,{variant:"rectangular",width:"100%",height:t?142:190,sx:{borderRadius:2}})},r))})}),S=(0,l.memo)(e=>{let{category:t,handleTabType:r,title:n,t:i}=e,s=(0,l.useCallback)(()=>{r(t,!1)},[t,r]),c=(0,a.K$)();return(0,o.jsx)(u.Z,{sx:{flexShrink:1,minWidth:0},children:(0,o.jsx)(h.Z,{underline:"hover",color:"inherit",onClick:s,sx:{display:"block",flexShrink:1,minWidth:0,cursor:"pointer"},children:(0,o.jsxs)(p.Z,{variant:"h2",sx:{textAlign:"center",display:"flex",alignItems:"center",gap:{xs:.25,sm:.5,md:.75,lg:1},fontSize:{xs:"clamp(0.6rem, 3vw, 0.9rem)",sm:"0.875rem",md:"1rem",lg:"1.2rem"},whiteSpace:"nowrap",flexShrink:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:[(0,o.jsx)(y.d3,{iconUrl:t.icon,style:{color:"primary.main",flexShrink:0,width:{xs:"18px",sm:"20px",md:"22px",lg:"24px"},height:{xs:"18px",sm:"20px",md:"22px",lg:"24px"}}}),(0,o.jsx)(u.Z,{component:"span",sx:{flexShrink:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:i(n,{favCount:c.favoriteGames})})]})})})}),I={...c.D.button,whiteSpace:"nowrap",aspectRatio:"auto",width:{xs:"clamp(28px, 7vw, 33px)",sm:"2rem",md:"2.4rem",lg:"2.8rem"},height:{xs:"1.1rem",sm:"1.5rem",md:"1.7rem",lg:"1.9rem"},borderRadius:"4px"},N=(0,l.memo)(e=>{let{category:t,handleTabType:r,t:n,onPrevButtonClick:i,onNextButtonClick:a,prevBtnDisabled:s,nextBtnDisabled:d}=e,m=(0,l.useCallback)(()=>{r(t,!1)},[t,r]);return(0,o.jsx)(x.Z,{sx:{...c.D.stack,flexShrink:0,ml:{xs:.5,sm:1,md:1.5},mb:{xs:.5,sm:.75}},children:(0,o.jsxs)(u.Z,{sx:{display:"flex",alignItems:"center",gap:{xs:.25,sm:.5,md:.5,lg:1},flexShrink:1},children:[(0,o.jsx)(g.Z,{color:"inherit",sx:I,onClick:m,children:(0,o.jsx)(p.Z,{variant:"tab",sx:{textAlign:"center",display:"flex",alignItems:"center",gap:{xs:.25,sm:.5,md:.75,lg:1},fontSize:{xs:"clamp(0.5rem, 2.5vw, 0.75rem)"},flexShrink:1},children:n("transaction.filter.all")})}),(0,o.jsxs)(u.Z,{sx:{display:"flex",gap:{xs:.25,sm:.5,md:.75,lg:1}},children:[(0,o.jsx)(k.Q1,{sx:I,onClick:i,disabled:s}),(0,o.jsx)(k.aW,{sx:I,onClick:a,disabled:d})]})]})})}),O=(0,l.memo)(e=>{let{options:t,category:r,handleTabType:a,routeType:c,title:d,showFirstCustomItem:m,onPlay:h,isLobbyView:p=!1}=e,{t:g}=(0,n.i)(),y=(0,b.Z)(),v=(0,f.Z)(y.breakpoints.down("md")),[w,I]=(0,i.Z)({align:v?"center":"start",dragFree:!0,...v?{slidesToScroll:1}:{}}),{prevBtnDisabled:O,nextBtnDisabled:z,onPrevButtonClick:R,onNextButtonClick:P}=(0,k.XO)(I),D=(0,l.useMemo)(()=>({...t}),[t]),{games:_,isSuccess:T,isFetching:W}=(0,s.u)({options:D,isLobbyView:p}),E=(0,l.useMemo)(()=>{var e;return(null!==(e=null==_?void 0:_.length)&&void 0!==e?e:0)>0&&T},[null==_?void 0:_.length,T]),F=(0,l.useMemo)(()=>E?(0,o.jsxs)(o.Fragment,{children:[m&&(0,o.jsx)(u.Z,{className:"casino__slide",children:(0,o.jsx)(Z,{gameName:r.name,providerName:r.name,id:"Provider",totalGames:r.totals,providerSlug:r.providerSlug,showFirstCustomItem:!0,providerRoute:c,showCursorCard:!0,gameId:""})}),null==_?void 0:_.map((e,t)=>(0,o.jsx)(u.Z,{className:"casino__slide",children:"providers"===r.slug?(0,o.jsx)(Z,{...e,providerRoute:c}):(0,o.jsx)(j,{...e,onPlay:h})},"".concat(e.id,"-").concat(t)))]}):null,[E,m,r,c,_,h]);return(0,o.jsx)(u.Z,{children:(0,o.jsxs)(u.Z,{className:"casino",children:[E&&(0,o.jsxs)(x.Z,{justifyContent:"space-between",direction:"row",sx:{dis
1play:"originalGames"===c?"none":"",my:{xs:.25,sm:.5},gap:{xs:1,sm:1.5,md:2},flexShrink:1,alignItems:"center"},children:[(0,o.jsx)(S,{category:r,handleTabType:a,title:d||"",t:g}),(0,o.jsx)(N,{category:r,handleTabType:a,t:g,onPrevButtonClick:R,onNextButtonClick:P,prevBtnDisabled:O,nextBtnDisabled:z})]}),E&&(0,o.jsx)(u.Z,{className:"casino__viewport",ref:w,children:(0,o.jsx)(u.Z,{className:"casino__container",children:F})}),!E&&W&&(0,o.jsx)(C,{isMobile:v})]})})});t.default=O},58180:function(e,t,r){r.d(t,{Q1:function(){return m},XO:function(){return s},aW:function(){return u}});var o=r(57437),n=r(2265),l=r(35565),i=r(44811),a=r(76975);let s=e=>{let[t,r]=(0,n.useState)(!0),[o,l]=(0,n.useState)(!0),i=(0,n.useCallback)(()=>{e&&e.scrollPrev()},[e]),a=(0,n.useCallback)(()=>{e&&e.scrollNext()},[e]),s=(0,n.useCallback)(e=>{r(!e.canScrollPrev()),l(!e.canScrollNext())},[]);return(0,n.useEffect)(()=>{e&&(s(e),e.on("reInit",s).on("select",s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:o,onPrevButtonClick:i,onNextButtonClick:a}},c={xs:"clamp(12px, 3vw, 14px)",sm:14,md:16,lg:18},d={...l.D.button,whiteSpace:"nowrap",aspectRatio:"auto",width:{xs:"clamp(28px, 7vw, 44px)",sm:"2rem",md:"2.4rem",lg:"2.8rem"},height:{xs:"1.1rem",sm:"1.5rem",md:"1.7rem",lg:"1.9rem"},borderRadius:"4px"},m=e=>{let{children:t,...r}=e;return(0,o.jsxs)(i.Z,{"aria-label":"Previous page",size:"small",sx:d,...r,children:[(0,o.jsx)(a.Z,{icon:"ic:round-keyboard-arrow-left",height:c,width:c}),t]})},u=e=>{let{children:t,...r}=e;return(0,o.jsxs)(i.Z,{"aria-label":"Next page",size:"small",sx:d,...r,children:[(0,o.jsx)(a.Z,{icon:"ic:round-keyboard-arrow-right",height:c,width:c}),t]})}},35565:function(e,t,r){r.d(t,{D:function(){return o}});let o={button:{minWidth:"auto",height:{xs:"1.2rem",sm:"1.5rem",md:"1.7rem",lg:"1.9rem"},width:{xs:"1.2rem",sm:"1.5rem",md:"1.7rem",lg:"1.9rem"},background:"#2a334a",padding:{xs:"0.1rem 0.3rem",sm:"0.15rem 0.4rem",md:"0.2rem 0.5rem",lg:"0.25rem 0.75rem"},display:"flex",justifyContent:"center",alignItems:"center",flexShrink:1,fontSize:{xs:"0.65rem",sm:"0.75rem",md:"0.875rem",lg:"1rem"},"&:hover":{background:"#2a334a"},"&:disabled":{background:"#172736"}},iconSize:{xs:12,sm:14,md:16,lg:18},stack:{direction:"row",alignItems:"center",gap:{xs:.25,sm:.5,md:.75,lg:1},justifyContent:"flex-start",width:"auto",flexShrink:1},container:{gap:{xs:.25,sm:.5,md:.75,lg:1},my:{xs:.25,sm:.5},flexShrink:1},title:{fontSize:{xs:"1rem",sm:"1.2rem",md:"1.4rem",lg:"1.6rem"},gap:{xs:.5,sm:.75,md:1}},icon:{size:{xs:18,sm:20,md:24,lg:26}}}},68834:function(e,t,r){r.d(t,{ZP:function(){return u},Sv:function(){return p}});var o=r(57437),n=r(54887),l=r(63804),i=r(61512),a=r(38398),s=r(16210),c=r(88064),d=r(76997);let m=(0,s.ZP)("span")(e=>{let{arrow:t,theme:r}=e,o={top:-6.5,transform:"rotate(135deg)"},n={bottom:-6.5,transform:"rotate(-45deg)"},l={left:-6.5,transform:"rotate(45deg)"},i={right:-6.5,transform:"rotate(-135deg)"};return{width:14,height:14,position:"absolute",borderBottomLeftRadius:3.5,clipPath:"polygon(0% 0%, 100% 100%, 0% 100%)",border:"solid 1px ".concat((0,c.Fq)("light"===r.palette.mode?r.palette.grey[500]:r.palette.common.black,.12)),...(0,d.Ls)({color:r.palette.background.paper}),..."top-left"===t&&{...o,left:20},..."top-center"===t&&{...o,left:0,right:0,margin:"auto"},..."top-right"===t&&{...o,right:20},..."bottom-left"===t&&{...n,left:20},..."bottom-center"===t&&{...n,left:0,right:0,margin:"auto"},..."bottom-right"===t&&{...n,right:20},..."left-top"===t&&{...l,top:20},..."left-center"===t&&{...l,top:0,bottom:0,margin:"auto"},..."left-bottom"===t&&{...l,bottom:20},..."right-top"===t&&{...i,top:20},..."right-center"===t&&{...i,top:0,bottom:0,margin:"auto"},..."right-bottom"===t&&{...i,bottom:20}}});function u(e){let{open:t,children:r,arrow:s="top-right",hiddenArrow:c,blur:d=!1,container:u=document.body,sx:h,...p}=e,{style:x,anchorOrigin:g,transformOrigin:b}=function(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}}}return t}(s),f=d?(0,n.createPortal)((0,o.jsx)(l.Z,{open:!!t,sx:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1200,backdropFilter:"blur(2px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}}),document.body):null;return(0,o.jsxs)(o.Fragment,{children:[f,(0,o.jsxs)(a.ZP,{open:!!t,anchorEl:t,anchorOrigin:g,transformOrigin:b,container:u,slotProps:{paper:{sx:{width:"auto",overflow:"inherit",zIndex:13e3,...x,["& .".concat(i.Z.root)]:{"& svg":{mr:2,flexShrink:0}},...h}}},...p,children:[!c&&(0,o.jsx)(m,{arrow:s}),r]})]})}var h=r(2265);function p(){let[e,t]=(0,h.useState)(null);return{open:e,onOpen:(0,h.useCallback)(e=>{t(e.currentTarget)},[]),onClose:(0,h.useCallback)(()=>{t(null)},[]),setOpen:t}}},2230:function(e,t,r){var o=r(57437),n=r(2265),l=r(1899);let i=(0,n.forwardRef)((e,t)=>{let{src:r,width:n=20,height:i=20,sx:a,...s}=e;return(0,o.jsx)(l.Z,{ref:t,component:"div",className:"component-imagify",sx:{width:n,height:i,backgroundImage:"url(".concat(r,")"),backgroundSize:"cover",backgroundPosition:"center",borderRadius:"5.2px",...a},...s})});t.Z=i},38954:function(e,t,r){r.d(t,{Z:function(){return o.Z}});var o=r(2230)},66798:function(e,t,r){r.d(t,{u:function(){return b}});var o=r(57437),n=r(2265),l=r(78948),i=r(57099),a=r(29501),s=r(22577),c=r(33833),d=r(19643),m=r(67116),u=r(46387),h=r(50290),p=r(27050),x=r
1(12713),g=r(23996);let b=e=>{let{name:t,control:r,options:b=[],label:f,error:y=!1,placeholder:v,getOptionLabel:w,isOptionEqualToValue:k,onChange:j,showAvatar:Z=!1,showUserBalance:C=!1,avatarKey:S="logoUrl",value:I,sx:N,t:O,isDisableSearch:z,customStyle:R,selectDisabled:P}=e,[D,_]=(0,n.useState)({}),T=e=>{_(t=>({...t,[e]:!0}))};return(0,o.jsx)(a.Qr,{name:t,control:r,render:e=>{let{field:t}=e;return z?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.Z,{id:"network-label",sx:{textTransform:"capitalize",fontSize:"clamp(12px, 3.4vw, 0.875rem) !important",fontWeight:500,color:"#b2c0cc",mb:.5},children:O(f)}),(0,o.jsx)(c.Z,{labelId:"currency-label",variant:"outlined",disabled:P,id:"network-select",value:b.find(e=>k(e,I||t.value))||"",onChange:e=>{let r=e.target.value;j(r),t.onChange(r)},renderValue:e=>e?(0,o.jsxs)(d.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,o.jsx)(m.Z,{alt:e.symbol,src:D[e.symbol]?"".concat("https://img.xyes.com/","assets/fallback-2.png"):"".concat(e.logoUrl||e.cryptoIcon),sx:{height:20,width:20},onError:()=>T(e.symbol)}),(0,o.jsx)(u.Z,{sx:{fontSize:"0.875rem !important"},children:w(e)})]}):"",style:{backgroundColor:l.y0.selectBG,height:"40px"},sx:{"& .MuiOutlinedInput-root":{padding:"8px 12px"},"& .MuiSelect-select":{px:1.5},...R},MenuProps:{PaperProps:{style:{maxHeight:300,minHeight:100,overflow:"auto"}}},fullWidth:!0,children:b.map((e,t)=>(0,o.jsx)(h.Z,{value:e,children:(0,o.jsxs)(d.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,o.jsx)(m.Z,{alt:e.symbol,src:D[e.symbol]?"".concat("https://img.xyes.com/","assets/fallback-2.png"):"".concat(e.logoUrl||e.cryptoIcon),sx:{height:25,width:25},onError:()=>T(e.symbol)}),(0,o.jsx)(u.Z,{children:w(e)})]})},t))})]}):(0,o.jsx)(p.Z,{...t,options:b,getOptionLabel:e=>w(e),isOptionEqualToValue:(e,t)=>k(e,t),onChange:(e,r)=>{j(r),t.onChange(r)},value:b.find(e=>k(e,I||t.value))||null,noOptionsText:(0,o.jsx)(d.Z,{direction:"column",alignItems:"center",justifyContent:"center",width:"100%",children:(0,o.jsx)(u.Z,{variant:"h6",gutterBottom:!0,children:O("wallet.noResultsFunds")})}),renderInput:e=>{var r;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.Z,{id:"network-label",sx:{textTransform:"capitalize",fontSize:"clamp(12px, 3.4vw, 0.875rem) !important",fontWeight:500,color:"#b2c0cc",mb:.5},children:O(f)}),(0,o.jsx)(x.Z,{...e,error:y&&!t.value,helperText:y&&!t.value?O("validations.isRequired",{type:f}):"",InputLabelProps:{sx:{textTransform:"initial",color:"#fff !important"}},FormHelperTextProps:{sx:{textTransform:"initial"}},placeholder:v,InputProps:{...e.InputProps,startAdornment:(0,o.jsx)(g.Z,{position:"start",children:Z&&((null==I?void 0:I.logoUrl)||(null==I?void 0:I.cryptoIcon)||(null==I?void 0:I.symbol))&&((null==I?void 0:I.symbol)||"")&&(0,o.jsx)(m.Z,{alt:null==I?void 0:I.symbol,src:D[null!==(r=null==I?void 0:I.symbol)&&void 0!==r?r:"default"]?"".concat("https://img.xyes.com/","assets/fallback-2.png"):"".concat((null==I?void 0:I.logoUrl)||(null==I?void 0:I.cryptoIcon)||(null==I?void 0:I.symbol)),sx:{height:25,width:25},onError:()=>{var e;return T(null!==(e=null==I?void 0:I.symbol)&&void 0!==e?e:"default")}})}),sx:N},fullWidth:!0})]})},renderOption:(e,t,r)=>{let{index:l}=r;return(0,n.createElement)("li",{...e,key:l},(0,o.jsxs)(d.Z,{direction:"row",alignItems:"center",width:"100%",children:[Z&&(0,o.jsx)(m.Z,{src:D[t[S]]?"".concat("https://img.xyes.com/","assets/fallback-2.png"):t[S],sx:{height:24,width:24,mx:1},onError:()=>T(t[S])}),(0,o.jsx)(u.Z,{children:w(t)})]}))},ListboxProps:{sx:(0,i.Tw)("300px")},slotProps:{popper:{sx:{zIndex:10002}}}})}})}},27349:function(e,t,r){r.d(t,{M:function(){return o}});let o=[{symbol:"USD",mark:"$"},{symbol:"EUR",mark:"â¬"},{symbol:"JPY",mark:"\xa5"},{symbol:"INR",mark:"â¹"},{symbol:"GBP",mark:"\xa3"},{symbol:"CAD",mark:"$"},{symbol:"RUB",mark:"â½"},{symbol:"BRL",mark:"R$"},{symbol:"KRW",mark:"â©"},{symbol:"AUD",mark:"$"},{symbol:"MXN",mark:"$"},{symbol:"IDR",mark:"Rp"},{symbol:"SAR",mark:"ï·¼"},{symbol:"TRY",mark:"âº"},{symbol:"ARS",mark:"$"},{symbol:"THB",mark:"฿"},{symbol:"NGN",mark:"â¦"},{symbol:"AED",mark:"د.Ø¥"},{symbol:"VND",mark:"â«"},{symbol:"SGD",mark:"$"},{symbol:"MYR",mark:"RM"},{symbol:"ZAR",mark:"R"},{symbol:"PKR",mark:"â¨"},{symbol:"HKD",mark:"$"},{symbol:"COP",mark:"$"},{symbol:"CLP",mark:"$"},{symbol:"NZD",mark:"$"},{symbol:"PEN",mark:"S/"}]},82877:function(e,t,r){r.d(t,{SG:function(){return a},Xn:function(){return c},aE:function(){return s}});var o=r(16593),n=r(45345),l=r(20418),i=r(55447);let a=function(){let{all:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{authenticated:t}=(0,l.E)();return(0,o.a)({queryKey:["useGetAllCurrencies",e],queryFn:async()=>{let t=e?i.Hv.wallet.getAllCurrenciesList:i.Hv.wallet.currencyList;return(await i.ZP.get(t)).data},placeholderData:n.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t,staleTime:3e5,gcTime:6e5})},s=()=>{let{authenticated:e}=(0,l.E)();return(0,o.a)({queryKey:["useGetUserBalance"],queryFn:async()=>(await i.ZP.get(i.Hv.wallet.getUserBalances)).data,placeholderData:n.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:e,staleTime:3e4,gcTime:3e5})},c=e=>{let{currencyCode:t}=e,{authenticated:r}=(0,l.E)();return(0,o.a)({queryKey:["useGetFiatExchangeRates",t],queryFn:async()=>(await i.ZP.get("".concat(i.Hv.wallet.fiatExchangeRates).concat(t))).data,placeholderData:n.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:r&&!!t,staleTime:3e5,gcTime:6e5})}},15856:function(e,t,r){r.d(t,{h:function(){return i}});var o=r(16593),n=r(45345),l=r(55447);let i=e=>{let{authenticated:t}=e,r=async()=>(await l.ZP.get(l.Hv.wallet.getXCD)).data;return(0,o.a)({queryKey:["getXCD",l.Hv.wallet.getXCD],queryFn:r,placeholderData:n.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t,staleTime:3e4,gcTime:3e5})}},1269:function(e,t,r){r.d(t,{F:function(){return l}});var o=r(82156),n=r(31691);function l(e,t,r){let l=(0,n.Z)(),i=(0,o.Z)(l.breakpoints.up(t)),a=(0,o.Z)(l.breakpoints.down(t)),s=(0,o.Z)(l.breakpoints.between(t,r)),c=(0,o.Z)(l.breakpoints.only(t));return"up"===e?i:"down"===e?a:"between"===e?s:c}},74302:function(e,t,r){r.d(t,{k:function(){return $}});
1var o=r(57437),n=r(60033),l=r(68575),i=r(78948),a=r(38954),s=r(66274),c=r(20418),d=r(15856),m=r(27349),u=r(70795),h=r(55447),p=r(59062),x=r(82877),g=r(2265),b=r(48116),f=r(67972),y=r(92435),v=r(97631),w=r(50290),k=r(95576),j=r(31691),Z=r(82156),C=r(19643),S=r(1899),I=r(46387),N=r(12713),O=r(23996),z=r(8350),R=r(85147),P=r(88064),D=r(76975),_=r(68834),T=r(73904),W=r(10207),E=e=>{let{value:t,handleTabChange:r}=e,l=(0,j.Z)(),{t:i}=(0,n.i)(),a=(0,Z.Z)("(max-width: 899px)"),s={border:"2px solid transparent",borderRadius:"4px",backgroundColor:"#2A334A",fontWeight:"bold",width:157,"&.Mui-selected":{color:l.palette.primary.main,borderColor:l.palette.primary.main}};return(0,o.jsx)(S.Z,{gap:0,sx:{display:"flex",justifyContent:"start",alignItems:"start"},children:(0,o.jsxs)(T.Z,{value:t,onChange:r,variant:"fullWidth",TabIndicatorProps:{style:{display:"none"}},sx:{"& .MuiTabs-flexContainer":{margin:0}},children:[(0,o.jsx)(W.Z,{label:(0,o.jsx)(I.Z,{variant:a?"h2":"h5",children:i("wallet.crypto")}),value:"1",sx:s}),(0,o.jsx)(W.Z,{label:(0,o.jsx)(I.Z,{variant:a?"h2":"h5",children:i("wallet.fiat")}),value:"2",sx:s})]})})},F=r(27648),M=r(1269),U=r(89011),A=r(73992),B=r(41680),L=r(68621),X=r(44811),H=e=>{let{filteredCurrencies:t,xcd:r,xcdCallback:l,closePopup:i,selected:s,userSettings:c,exchangeRates:d,toShow:m,currencyType:u,panelNumber:h,getSymbolMark:p,handleCurrencyChange:x,isGameCurrencySelect:g=!1}=e,f=(0,j.Z)(),{t:y}=(0,n.i)(),{authenticated:v}=(0,U.E)(),{data:k}=(0,B.J)({authenticated:v}),C=p(null==c?void 0:c.settings.view_in_fiat_object.currency),N=(0,Z.Z)("(max-width: 899px)"),O=(0,M.F)("up","lg"),R=["first-deposit","second-deposit","third-deposit","fourth-deposit"],P=null==k?void 0:k.data.sort((e,t)=>R.indexOf(e.condition)-R.indexOf(t.condition)).find(e=>!e.claimed),_={currency:"XCD",_id:"",symbol:"XCD",cryptoIcon:"https://img.xyes.com/uploads/Logotipo_Mobile_5c87dbd4a9.svg",amount:r.locked,logoUrl:"https://img.xyes.com/uploads/Logotipo_Mobile_5c87dbd4a9.svg"},T={backgroundColor:"#212734","&:hover":{backgroundColor:"#212734 !important"}},W={border:"1px solid transparent",borderColor:f.palette.primary.main},E=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x;return(0,o.jsx)(w.Z,{onClick:()=>l(e,u),sx:e.symbol===(null==s?void 0:s.symbol)?[T,W]:T,children:(0,o.jsxs)(S.Z,{display:"flex",width:"100%",alignItems:"center",gap:1,children:[(0,o.jsx)(a.Z,{alt:"currency",height:24,width:"crypto/"!==u||n?30:28,src:e.logoUrl||e.cryptoIcon||"".concat("https://img.xyes.com/","assets/fallback-2.png")}),(0,o.jsxs)(S.Z,{display:"flex",width:"100%",alignItems:n?"center":"flex-start",flexDirection:"row",children:[(0,o.jsxs)(S.Z,{display:"flex",flexDirection:"column",alignItems:"start",justifyContent:"space-between",gap:0,flexGrow:1,children:[(0,o.jsxs)(S.Z,{display:"flex",flexDirection:"row",alignItems:"center",children:[(0,o.jsx)(I.Z,{variant:"h4",sx:{fontWeight:"light"},children:e.symbol}),n?(0,o.jsx)(D.Z,{icon:"solar:info-circle-linear",sx:{pl:1,height:25,width:25}}):null]}),m&&!n?(0,o.jsx)(I.Z,{variant:"h6",sx:{color:f.palette.grey[500]},children:null==c?void 0:c.settings.view_in_fiat_object.currency}):null]}),n?(0,o.jsxs)(S.Z,{display:"flex",flexDirection:"column",alignItems:"end",justifyContent:"space-between",gap:"4px",children:[(0,o.jsx)(A.d3,{iconUrl:"/assets/icons/wallet/ic_lock_close.svg",style:{color:f.palette.primary.main,height:20,width:20,mr:"12px"}}),(0,o.jsx)(A.d3,{iconUrl:"/assets/icons/wallet/ic_lock_jopen.svg",style:{color:f.palette.primary.main,height:20,width:20,mr:"9px"}})]}):null,(0,o.jsxs)(S.Z,{display:"flex",flexDirection:"column",alignItems:"end",justifyContent:"space-between",gap:0,children:[(0,o.jsx)(S.Z,{display:"flex",flexDirection:"row",children:(0,o.jsx)(I.Z,{variant:N?"h4":"h5",noWrap:!0,sx:{fontWeight:"light"},children:"".concat(p(e.symbol)," ").concat((0,b.dN)(Number(e.amount),n?"fiat":u))})}),n?(0,o.jsx)(S.Z,{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",children:(0,o.jsx)(I.Z,{variant:N?"h3":"h4",noWrap:!0,sx:{fontWeight:"light"},children:(0,b.dN)(Number(r.available),"fiat")})}):null,!n&&m?(0,o.jsx)(S.Z,{display:"flex",flexDirection:"row",children:(0,o.jsx)(I.Z,{variant:N?"h4":"h5",noWrap:!0,sx:{color:f.palette.grey[500],fontWeight:"light"},children:"".concat(C," ").concat(d[e.symbol]&&0!==Number(d[e.symbol])&&!Number.isNaN(e.amount)?(0,b.dN)(Number(e.amount)/Number(d[e.symbol]),"fiat"):(0,b.dN)(0,"fiat"))})}):null]})]})]})},t)};return(0,o.jsx)(o.Fragment,{children:g?(0,o.jsx)(S.Z,{sx:{maxHeight:400,overflow:"auto",marginBottom:"2px",zIndex:999,"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent",borderRadius:"8px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#4B5563",borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}},children:t.length>0?t.map((e,t)=>Number(e.amount)>0?E(e,t):null):(0,o.jsx)(I.Z,{variant:"h6",sx:{p:1},children:y("wallet.noResultsFunds")})}):(0,o.jsxs)(L.Z,{value:h,sx:{p:0,pt:1},children:[(0,o.jsx)(z.Z,{}),E(_,0,!0,l),(0,o.jsx)(z.Z,{}),P&&(0,o.jsxs)(X.Z,{LinkComponent:F.default,href:"?modal=wallet&tab=deposit¤cy=".concat(h),"data-test":"open-wallet-modal-button",variant:"header",size:"small",fullWidth:!0,onClick:()=>i(),sx:[T,{px:O?{}:{paddingLeft:0,paddingRight:0},mb:1,borderWidth:0,boxShadow:0,"&:hover":{boxShadow:0}}],children:[(0,o.jsx)(D.Z,{icon:"solar:gift-outline",sx:{color:f.palette.primary.main,height:20,width:20}}),(0,o.jsx)(S.Z,{children:(0,o.jsx)(I.Z,{variant:"h6",noWrap:!0,sx:{fontWeight:"light",color:f.palette.primary.main},children:"".concat(y("wallet.enjoyUpTo")," ").concat(P.bonusValue).concat("percentage"===P.valueType?"%":""," ").concat(y("wallet.bonusDeposit"))})})]}),(0,o.jsx)(z.Z,{}),(0,o.jsx)(S.Z,{sx:{maxHeight:N?265:285,overflowY:"auto",overflowX:"hidden",marginBottom:"2px","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent",borderRadius:"8px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#4B5563",borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}},children:t.length>0?t.map((e,t)=>E(e,t)):(0,o.jsx)(I.Z,{variant:"h6",sx:{p:1},children:y("wallet.noResultsFunds")})})]})})},G=r(36067);let $=e=>{var t,r;let{data:T,isGameCurrencySelect:W=!1,container:F=document.body,disabled:M,style:U}=e,[A,B]=(0,g.useState)(!1),[L,X]=(0,g.useState)(),{t:$}=(0,n.i)(),q=(0,j.Z)(),K=(0,_.Sv)(),{initialize:Y}=(0,c.E)(),{onUpdate:Q}=(0,p.K$)(),V=(0,l.v9)(e=>e.user.data),J=(0,p.K$)(),{showMessage:ee}=(0,G.useSnackbar)(),{authenticated:et,fetchBalance:er}=(0,c.E)(),{data:eo}=(0,d.h)({authenticated:et}),[en,el]=(0,g.useState)({}),ei=(0,Z.Z)("(max-width: 900px)"),ea=(0,Z.Z)(q.breakpoints.down("sm")),es=Number(en.available)>=5,ec=(0,s.jD)(),ed=ec.includes("/games")||ec.includes("/sports");(0,g.useEffect)(()=>{eo&&el(eo)},[eo]);let em=()=>B(!0),eu=()=>K.onClose(),{data:eh,isError:ep,error:ex}=(0,x.Xn)({currencyCode:V?V.settings.view_in_fiat_object.currency:"USD"});ep&&ee(ex.message||$("errors.anErrorOccurred"),"error");let[eg,eb]=(0,g.useState)(""),[ef,ey]=(0,g.useState)((null==V?void 0:V.settings.hideSmallCurrency)||!1),[ev,ew]=(0,g.useState)(null),[ek,ej]=(0,g.useState)((null==V?void 0:V.settings.view_in_fiat_object.to_
1show)||!1);(0,g.useEffect)(()=>{if(null==V?void 0:V.settings.navbarCurrency){let e=T.fiat&&T.fiat.find(e=>e.symbol===V.settings.navbarCurrency);if(e){ew({...e,type:"fiat"});return}let t=T.crypto&&T.crypto.find(e=>e.symbol===V.settings.navbarCurrency);if(t){ew({...t,type:"crypto"});return}let r=T.currencies&&T.currencies.find(e=>e.symbol===V.settings.navbarCurrency);r&&ew({...r,type:"crypto"})}else{let e=T.fiat&&T.fiat.find(e=>e.symbol===J.currencyType);if(e){ew({...e,type:"fiat"});return}let t=T.crypto&&T.crypto.find(e=>e.symbol===J.currencyType);t&&ew({...t,type:"crypto"})}},[J.currencyType,T.fiat,T.crypto,V,Q,T.currencies,W]);let eZ=(0,g.useMemo)(()=>T.fiat&&eh?T.fiat.filter(e=>{if(!e)return!1;let t=e.symbol.toLowerCase().includes(eg.toLowerCase()),r=!ef||Number(e.amount)>0;return t&&r}).sort((e,t)=>{let r=eh[e.symbol]?Number(e.amount)/Number(eh[e.symbol]):0,o=eh[t.symbol]?Number(t.amount)/Number(eh[t.symbol]):0,n=0;return r>o?n=-1:r<o&&(n=1),n}):[],[T.fiat,eg,ef,eh]),eC=(0,g.useMemo)(()=>T.crypto&&eh?T.crypto.filter(e=>{if(!e)return!1;let{symbol:t,amount:r}=e,o=t.toLowerCase().includes(eg.toLowerCase()),n=!ef||Number(r)>0;return o&&n}).sort((e,t)=>{let r=eh[e.symbol]?Number(e.amount)/Number(eh[e.symbol]):0,o=eh[t.symbol]?Number(t.amount)/Number(eh[t.symbol]):0,n=0;return r>o?n=-1:r<o&&(n=1),n}):[],[T.crypto,eh,eg,ef]),eS=(0,g.useCallback)(async(e,t)=>{Q("currencyType",e.symbol),ew({...e,type:t});try{let t=new URL("".concat("https://api.xyes.com/api/v1").concat(h.Hv.configs.updateProfileSettings));await h.ZP.put(t.href,{settings:{navbarCurrency:e.symbol}})}catch(e){ee(e.message||$("errors.anErrorOccurred"),"error")}finally{Y()}K.onClose()},[Q,K,ee,$,Y]),eI=async e=>{ey(e.target.checked);let t=new URL("".concat("https://api.xyes.com/api/v1"+h.Hv.configs.updateProfileSettings)),r={settings:{hideSmallCurrency:e.target.checked}};try{await h.ZP.put(t.href,r)}catch(e){ee(e.message||$("errors.anErrorOccurred"),"error")}finally{Y()}},eN=async()=>{try{await h.ZP.post(h.Hv.wallet.swapXCD,{currencyToSymbol:null==L?void 0:L.symbol,amountFrom:null==en?void 0:en.available}),er(),ee("XCD swapped successfully","success"),B(!1)}catch(e){ee(e.message,"error")}finally{await u.E.invalidateQueries({queryKey:["getXCD"]})}};(0,g.useEffect)(()=>{K.open||eb("")},[K.open]);let eO=(0,g.useCallback)(e=>{let t=m.M.find(t=>t.symbol===e);return(null==t?void 0:t.mark)||""},[]),ez=eO((null==ev?void 0:ev.symbol)||""),eR=(0,o.jsxs)(C.Z,{direction:"row",pl:1,mb:1,borderRadius:ei?0:1,sx:{backgroundColor:"#2A334A",width:"100%",alignItems:"center"},children:[W&&ea&&(0,o.jsx)(S.Z,{display:"flex",flexDirection:"row",width:"100%",children:(0,o.jsx)(I.Z,{variant:"h2",children:$("wallet.chooseYourCurrency")})}),!W&&(0,o.jsx)(N.Z,{fullWidth:!0,placeholder:$("actions.search"),onChange:e=>eb(e.target.value),size:"small",InputProps:{startAdornment:(0,o.jsx)(O.Z,{position:"start",children:(0,o.jsx)(D.Z,{icon:"eva:search-fill",width:18,sx:{color:"text.secondary",height:36}})})},sx:{"& .MuiInputBase-input::placeholder":{fontSize:"14px"},marginY:ei?"2px":"4px",height:36}}),(!W||ea)&&(0,o.jsx)(k.Z,{onClick:eu,sx:{marginLeft:"auto"},children:(0,o.jsx)(D.Z,{width:W&&ea?20:28,icon:"solar:close-circle-linear"})})]}),[eP,eD]=(0,g.useState)("1");(0,g.useEffect)(()=>{K.open&&ev&&("fiat"===ev.type?eD("2"):"crypto"===ev.type&&eD("1"))},[K.open,ev]),(0,g.useEffect)(()=>{var e;ej(null===(e=null==V?void 0:V.settings.view_in_fiat_object.to_show)||void 0===e||e)},[null==V?void 0:V.settings.view_in_fiat_object.to_show]);let e_=(0,o.jsx)(o.Fragment,{children:W?(0,o.jsx)(S.Z,{sx:{position:"sticky",top:0,bgcolor:"background.paper",zIndex:1},children:(0,o.jsx)(H,{filteredCurrencies:T.currencies||[],xcd:en,xcdCallback:em,closePopup:eu,selected:ev,userSettings:V,exchangeRates:eh,toShow:ek,currencyType:"crypto/",panelNumber:eP,getSymbolMark:eO,handleCurrencyChange:eS,isGameCurrencySelect:!0})}):(0,o.jsx)(S.Z,{sx:{position:"sticky",top:0,bgcolor:"background.paper",zIndex:1,pl:1,pr:1,pb:1},children:T.fiat&&T.crypto&&eh&&(0,o.jsxs)(S.Z,{children:[(0,o.jsxs)(v.ZP,{value:eP,children:[(0,o.jsx)(E,{value:eP,handleTabChange:(e,t)=>
1{eD(t)}}),(0,o.jsx)(S.Z,{sx:{overflowY:"auto",overflowX:"hidden","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{backgroundColor:"#f0f0f0",borderRadius:"8px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#888888",borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}},children:(0,o.jsx)(H,{filteredCurrencies:"1"===eP?eC:eZ,xcd:en,xcdCallback:em,closePopup:eu,selected:ev,userSettings:V,exchangeRates:eh,toShow:ek,currencyType:"1"===eP?"crypto/":"fiat",panelNumber:eP,getSymbolMark:eO,handleCurrencyChange:eS})})]}),(0,o.jsx)(z.Z,{}),(0,o.jsxs)(S.Z,{children:[(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#212734",py:0,pr:0,marginTop:"2px",minHeight:"10px !important","&:hover":{backgroundColor:"#212734 !important"}},children:[(0,o.jsx)(I.Z,{variant:"h5",sx:{height:24,color:"grey.300",fontWeight:"200",alignContent:"center"},children:$("wallet.hide0Balance")}),(0,o.jsx)(R.Z,{onChange:eI,checked:ef,size:"medium"})]}),(0,o.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",backgroundColor:"#212734",minHeight:"10px !important","&:hover":{backgroundColor:"#212734 !important"}},children:[(0,o.jsx)(I.Z,{variant:"h5",noWrap:!0,sx:{height:24,flexGrow:1,pr:1,color:"grey.300",fontWeight:"200",alignContent:"center"},children:$("accountManagement.settings.displayInFiat")}),(0,o.jsx)(y.Z,{styleButton:{display:"flex",alignItems:"center",gap:1,height:24}})]})]})]})})});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(C.Z,{alignItems:"center",direction:"row",border:0,borderColor:e=>(0,P.Fq)(e.palette.grey[500],.6),borderRadius:1,gap:ei?.5:1,sx:{cursor:M?"not-allowed":"pointer",display:"flex",border:"none",background:i.y0.terciary,borderRadius:1,flexDirection:{xs:"row",md:"row"},height:"100%",padding:ei?"0px 0px 0px 8px":1,...U},onClick:M?void 0:K.onOpen,children:[ev&&(0,o.jsxs)(C.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,o.jsx)(a.Z,{alt:"currency",width:ev.logoUrl?25:20,src:ev.logoUrl?ev.logoUrl:ev.cryptoIcon}),ed&&!W?(0,o.jsx)(I.Z,{variant:"subtitle1",children:ev.symbol}):(0,o.jsxs)(I.Z,{variant:"subtitle1",color:"grey.400",children:[ez,ei?(0,b.jr)(Number(ev.amount?ev.amount:"0")):(t=ev.type,r=Number(ev.amount?ev.amount:"0"),"fiat"===t?"".concat((0,b.dN)(Number(r),"fiat")):(0,b.dN)(Number(r),"crypto/"))]})]}),!M&&(0,o.jsx)(D.Z,{icon:"eva:chevron-down-fill",sx:{display:{md:"block"},...K.open&&{bgcolor:"action.selected",borderRadius:"50%"}}})]}),(0,o.jsx)(S.Z,{display:"flex",alignItems:"center",sx:{backgroundColor:"#f00"},children:(0,o.jsx)(_.ZP,{open:K.open,onClose:K.onClose,container:F,sx:{border:1,borderColor:"grey.600",width:300,position:ea&&W?"absolute !important":"fixed",top:ea&&W?"50% !important":"initial",left:ea&&W?"50% !important":"initial",transform:ea&&W?"translate(-50%, -50%) !important":"none"},children:(0,o.jsxs)(o.Fragment,{children:[eR,e_]})})}),!W&&(0,o.jsx)(f.A,{title:"XCD",type:"modalClaimXCD",showModal:A,handleModal:()=>B(!1),fullScreenOnMobile:!1,allowScroll:!1,modalProps:{claimAmount:en.available,lockedXcdAmount:en.locked,bonusCategory:"XCD",handleClaim:eN,isClaimable:es,selectedCurrency:L,setSelectedCurrency:X},size:"550px"})]})}}}]);
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.