PageSourceSearch

https://xyes.ai/_next/static/chunks/833.f686890f6d70b5bf.js

js xyes.ai collected 2026-10-05 14:49:52 UTC 28,046 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[833,1124],{89214:function(){},85568:function(){},45990:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var a=n(49218),i=n(92401),r=n(59602);let[o,s]=(0,a.initializeConnector)(e=>new i.CoinbaseWallet({actions:e,options:{url:r.ns[1][0],appName:"web3-react"}}))},75349:function(e,t,n){"use strict";n.d(t,{hooks:function(){return l},walletConnectV2:function(){return s}});var a=n(49218),i=n(47279),r=n(49337);let[o]=Object.keys(n(59602).ZY).map(Number),[s,l]=(0,a.initializeConnector)(e=>new i.WalletConnect({actions:e,options:{projectId:r.l0,chains:[o],showQrModal:!0}}))},63923:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});let a=[{label:"myAccount",linkTo:"account-management/my-account/",icon:"solar:user-id-linear"},{label:"referral",linkTo:"account-management/referral/dashboard",icon:"solar:users-group-rounded-linear"},{label:"cardBook",linkTo:"account-management/payment-address/",icon:"solar:card-linear"},{label:"transactions",linkTo:"account-management/transactions/",icon:"solar:card-transfer-outline"},{label:"gameRecord",linkTo:"account-management/game-record/",icon:"solar:history-broken"},{label:"security",linkTo:"account-management/security/",icon:"solar:shield-star-outline"},{label:"verification",linkTo:"account-management/verification/",icon:"solar:verified-check-linear"},{label:"settings",linkTo:"account-management/settings/",icon:"solar:settings-linear"}]},59602:function(e,t,n){"use strict";let a;n.d(t,{ZY:function(){return l},ns:function(){return d}});var i=n(49337),r=n(40257);let o={name:"Ether",symbol:"ETH",decimals:18},s=e=>r.env.infuraKey?"https://".concat(e,".infura.io/v3/").concat(i.Pn):"",l={1:{urls:[s("mainnet"),(a="eth-mainnet",r.env.alchemyKey?"https://".concat(a,".alchemyapi.io/v2/").concat(i.QI):""),"https://cloudflare-eth.com","https://rpc.ankr.com/eth","https://eth-mainnet.public.blastapi.io","https://eth-rpc.gateway.pokt.network","https://main-rpc.linkpool.io"].filter(
1Boolean),name:"Mainnet",nativeCurrency:o,blockExplorerUrls:["https://etherscan.io"]},56:{urls:["https://bsc-dataseed1.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed4.binance.org","https://bsc-dataseed.binance.org","https://rpc.ankr.com/bsc","https://bscrpc.com"].filter(Boolean),name:"Binance Coin",nativeCurrency:{name:"Binance Coin",symbol:"BNB",decimals:18},blockExplorerUrls:["https://bscscan.com"]},43114:{urls:["https://api.avax.network/ext/bc/C/rpc","https://rpc.ankr.com/avalanche","https://ava-mainnet.public.blastapi.io/ext/bc/C/rpc"].filter(Boolean),name:"Avalanche",nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},blockExplorerUrls:["https://snowtrace.io"]},8453:{urls:["https://mainnet.base.org","https://base-mainnet.public.blastapi.io"],name:"Base",nativeCurrency:o,blockExplorerUrls:["https://basescan.org"]},10:{urls:[s("optimism-mainnet"),"https://mainnet.optimism.io","https://optimism-mainnet.public.blastapi.io"].filter(Boolean),name:"Optimism",nativeCurrency:{name:"Optimism",symbol:"ETH",decimals:18},blockExplorerUrls:["https://optimistic.etherscan.io"]},42161:{urls:[s("arbitrum-mainnet"),"https://arb1.arbitrum.io/rpc","https://rpc.ankr.com/arbitrum"].filter(Boolean),name:"Arbitrum One",nativeCurrency:{name:"Arbitrum",symbol:"ARB",decimals:18},blockExplorerUrls:["https://arbiscan.io"]},1030:{urls:["https://evm.confluxrpc.com","https://conflux-espace-public.unifra.io"],name:"Conflux eSpace",nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},blockExplorerUrls:["https://evm.confluxscan.net"]},137:{urls:[s("polygon-mainnet"),"https://polygon-rpc.com","https://rpc-mainnet.matic.network","https://rpc-mainnet.matic.quiknode.pro","https://rpc.ankr.com/polygon","https://polygon-mainnet.public.blastapi.io"].filter(
1Boolean),name:"Polygon Mainnet",nativeCurrency:{name:"Matic",symbol:"MATIC",decimals:18},blockExplorerUrls:["https://polygonscan.com"]},250:{urls:["https://rpc.ftm.tools","https://rpc.ankr.com/fantom"].filter(Boolean),name:"Fantom",nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},blockExplorerUrls:["https://ftmscan.com"]},42220:{urls:["https://forno.celo.org"],name:"Celo",nativeCurrency:{name:"Celo",symbol:"CELO",decimals:18},blockExplorerUrls:["https://explorer.celo.org"]},59144:{urls:["https://linea-mainnet.infura.io/v3"],name:"Linea",nativeCurrency:o,blockExplorerUrls:["https://explorer.linea.build"]},1313161554:{urls:["https://mainnet.aurora.dev/"],name:"Aurora",nativeCurrency:{name:"NEAR",symbol:"NEAR",decimals:18},blockExplorerUrls:["https://aurorascan.dev"]}};[s("goerli")].filter(Boolean),[s("optimism-goerli"),"https://goerli.optimism.io"].filter(Boolean),[s("arbitrum-goerli"),"https://goerli-rollup.arbitrum.io/rpc"].filter(Boolean),[s("polygon-mumbai"),"https://rpc-mumbai.maticvigil.com"].filter(Boolean);let c={...l},d=Object.keys(c).reduce((e,t)=>{let n=c[Number(t)].urls;return n.length&&(e[Number(t)]=n),e},{})},14697:function(e,t,n){"use strict";n.d(t,{L:function(){return o},t:function(){return s}});var a=n(2265),i=n(16593),r=n(55447);let o=(e,t)=>{let{limit:n,startDate:o,endDate:s}=e,l=(0,a.useMemo)(()=>new URL("".concat("https://api.xyes.com/api/v1").concat(r.Hv.games.getBonusCalendar,"?limit=").concat(n,"&startdate=").concat(o,"&enddate=").concat(s)),[n,o,s]),{data:c,isLoading:d,error:p,isError:u,refetch:h}=(0,i.a)({queryKey:["getBonusCalendar",l.toString()],queryFn:async()=>{try{var e;let t=await r.ZP.get(l.toString());if(!(null===(e=t.data)||void 0===e?void 0:e.data))throw Error("Invalid response format");return t.data.data}catch(e){throw"string"==typeof e?e:e.message}},enabled:null==t?void 0:t.authenticated});return{data:c,isLoading:d,error:p,isError:u,refetch:h}},s=e=>{let t=(0,a.useMemo)(()=>new URL("".concat("https://api.xyes.com/api/v1").concat(r.Hv.configs.getBonusCalendarConfig)),[]),{data:n,isLoading:o,error:s,isError:l,refetch:c}=(0,i.a)({queryKey:["getGlobalBonusCalendarConfigs"],queryFn:async()=>{try{var e;let n=await r.ZP.get(t.toString());if(!(null===(e=n.data)||void 0===e?void 0:e.data))throw Error("Invalid response format");return n.data.data}catch(e){throw"string"==typeof e?e:e.message}},enabled:null==e?void 0:e.authenticated,placeholderData:{active:!1,_id:"",createdAt:"",updatedAt:""}});return{isActive:(null==n?void 0:n.active)||!1,isLoading:o,error:s,isError:l,refetch:c,data:n}}},66393:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});
1var a=n(43577),i=n(2265),r=n(55447),o=n(16593),s=n(45345);let l=(e,t)=>{if(!(0,i.useCallback)(e=>["fiats","cryptos",""].includes(e),[])(e))throw Error('Invalid currency type. Must be "fiats", "cryptos" or empty string');let n=(0,i.useMemo)(()=>e?"".concat(r.Hv.wallet.currencyList).concat(e):r.Hv.wallet.currencyList,[e]),l=(0,i.useMemo)(()=>t?"?countryOrRegion=".concat(t):"",[t]),c=(0,i.useMemo)(()=>"".concat(n).concat(l),[n,l]),d=(0,i.useCallback)(async()=>{try{return(await r.ZP.get(c)).data}catch(n){if(n instanceof a.d7){var e,t;throw Error((null===(t=n.response)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.message)||"Failed to fetch currency data")}throw n}},[c]);return(0,o.a)({queryKey:["currencies",c,e,t],queryFn:d,placeholderData:s.Wk,refetchOnMount:!0,retry:2,staleTime:3e5})}},3801:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var a=n(2265),i=n(16593),r=n(45345),o=n(55447);let s=e=>{let{authenticated:t}=e,n=(0,a.useMemo)(()=>new URL("".concat("https://api.xyes.com/api/v1").concat(o.Hv.wallet.depositCurrencies)),[]),s=(0,a.useMemo)(()=>n.toString(),[n]),l=(0,a.useCallback)(async()=>(await o.ZP.get(s)).data,[s]);return(0,i.a)({queryKey:["getDepositCurrencies",s,t],queryFn:l,placeholderData:r.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t})}},16539:function(e,t,n){"use strict";n.d(t,{pG:function(){return r},w$:function(){return i},yf:function(){return a}});let a={H_MOBILE:54,H_TABLET:70,H_DESKTOP:70,H_DESKTOP_OFFSET:62},i={W_VERTICAL:260,W_MINI:88},r=350},69914:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ey}});var a=n(57437),i=n(27648),r=n(33145),o=n(60033),s=n(72421),l=n(78948),c=n(76975),d=n(20418),p=n(98107),u=n(29827),h=n(68575),m=n(2265),x=n(55447),g=n(73992),b=n(75366),y=n(55844),v=n(66274),f=n(67972),w=n(41680),j=n(37373),C=n(1899),k=n(19643),Z=n(6809),S=n(71495),I=n(44811),_=n(8350),B=n(71004),T=n(31691),E=n(88064),O=n(24021),R=n(82156),F=n(47080),L=n(89051),U=n(46387),N=n(63242),A=n(95576),D=n(19978),H=n(1269),P=n(76997),M=n(59062),W=n(24305),z=n(16539),K=n(68720),q=n(820),G=n(4277),V=n(43161),$=n(29233),X=n.n($),J=n(90134),Q=n(77533),Y=n(81457),ee=n(63923),et=n(45990),en=n(75349),ea=n(95671),ei=n(59708),er=n(73053),eo=n(50290);let es=e=>{"caches"in window&&caches.keys().then(e=>{e.forEach(e=>caches.delete(e))}),"en"===e&&window.location.replace("".concat("https://xyes.com","/")),window.location.replace("".concat("https://xyes.com","/").concat(e))};var el=n(68834);function ec(){var e,t;let[n,i]=(0,m.useState)(!1),s=(0,T.Z)(),p=(0,R.Z)(s.breakpoints.up("md")),u=(0,R.Z)("(max-width:640px)"),b=(0,h.I0)(),f=(0,el.Sv)(),w=(0,v.tv)(),{getLink:j}=(0,V.m)(),{t:Z,getLang:S}=(0,o.i)(),{logout:I}=(0,d.E)(),{data:B}=(0,Y.kN)({type:"platform",filter:"all"}),{data:E}=(0,Y.kN)({type:"personal",filter:"all"}),O=(null!==(e=null==B?void 0:B.unreadCount)&&void 0!==e?e:0)+(null!==(t=null==E?void 0:E.unreadCount)&&void 0!==t?t:0),F=(0,M.K$)(),{openIntercom:N}=(0,G.Z)(),{trackClick:D}=(0,ea.T)(),H=s.palette.primary.light,P=(0,h.v9)(e=>e.user.data),W=null==P?void 0:P.levelInfo.percentageToNextLevel.toFixed(2),z=async()=>{f.onClose(),D("Logout","logout_button");try{try{await x.ZP.post(x.Hv.auth.signOut)}catch(e){}if((null==P?void 0:P.coinbaseId)&&et.D.deactivate(),(null==P?void 0:P.loginType)==="Walletconnect"&&(await en.walletConnectV2.resetState(),await en.walletConnectV2.deactivate()),"function"==typeof window.BTRenderer){let e=document.getElementById("betby-script");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)}F.onUpdate("currencyType","USD"),b((0,y.VH)()),b((0,Q.j_)()),localStorage.clear(),sessionStorage.clear(),((null==P?void 0:P.coinbaseId)||(null==P?void 0:P.loginType)==="Walletconnect")&&es(S()),new q.Z().set("dispatchLogout","true"),await I()}catch(e){}window.location.assign(j(""))},$=e=>{let t=(0,J.m)(e);f.onClose(),w.push(j(t))},ec=()=>{f.onClose(),N()},ed=()=>{let e=F.isChatDrawerOpen||!F.isRightDrawerOpen;F.onUpdate("isChatDrawerOpen",!1),F.onUpdate("isNotificationsDrawerOpen",e),F.onUpdate("isRightDrawerOpen",e),f.onClose()},ep=(0,m.useCallback)(e=>{let{children:t}=e;return u&&O>0?(0,a.jsx)(ei.Z,{component:"span",badgeContent:O,variant:"standard",anchorOrigin:{vertical:"top",horizontal:"right"},sx:{marginLeft:"15px","& .MuiBadge-badge":{backgroundColor:"#f00",whiteSpace:"nowrap",maxWidth:"none",right:4,top:4,padding:"0 4px",minWidth:"15px",height:"15px"}},children:t}):(0,a.jsx)(a.Fragment,{children:t})},[O,u]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(k.Z,{alignItems:"center",borderRadius:1,direction:"row",height:"100%",sx:{cursor:"pointer",border:"none",background:{xs:"transparent",md:l.y0.terciary},borderRadius:1,height:"100%",px:{xs:0,md:1},"&:hover":{backgroundColor:{xs:"transparent",md:l.y0.terciaryHover}}},onClick:f.onOpen,children:[(0,a.jsx)(ep,{children:(0,a.jsx)(r.default,{alt:"avatar",height:p?26:35,src:"".concat(null==P?void 0:P.avatar),width:p?26:35,style:{marginInline:2,borderRadius:"50%",border:"1px solid ".concat(H)}})}),(0,a.jsx)(c.Z,{"aria-label":"popup-opener",color:"grey.400",icon:"eva:chevron-down-fill",width:25,height:25,sx:{display:{xs:"none",md:"block"}}})]}),(0,a.jsxs)(el.ZP,{open:f.open,onClose:f.onClose,sx:{width:200,p:0},children:[(0,a.jsx)(C.Z,{sx:{p:1,pb:1.75},children:(0,a.jsxs)(k.Z,{direction:"row",justifyContent:"center",alignItems:"center",spacing:.2,width:"100%",children:[(0,a.jsxs)(k.Z,{justifyItems:"center",alignContent:"center",sx:{position:"relative",display:"inline-block"},children:[(0,a.jsx)(r.default,{alt:"avatar",height:36,src:"".concat(null==P?void 0:P.avatar),width:36,style:{marginLeft:"2px",marginTop:"2px"}}),(0,a.jsx)(er.Z,{variant:"determinate",value:Number(W),thickness:1.5,sx:{width:"100%",position:"absolute",top:"0px",left:"0px",transform:"rotate(90deg) !important"}}),(0,a.jsx)(U.Z,{variant:"subtitle2",sx:{fontSize:"0.6rem",px:1,borderRadius:"8px",backgroundColor:"black",position:"absolute",top:"108%",left:"50%",transform:"translate(-50%, -50%)"},children:null==P?void 0:P.levelInfo.vipLevel})]}),(0,a.jsxs)(k.Z,{display:"flex",direction:"column",justifyContent:"end",alignItems:"center",minHeight:40,maxWidth:"65%",children:[(0,a.jsx)(U.Z,{variant:"subtitle2",sx:{fontSize:"0.8rem",overflow:"hidden",textOverflow:"ellipsis",width:"80%"},noWrap:!0,children:null==P?void 0:P.memberUsername}),(0,a.jsxs)(U.Z,{variant:"subtitle2",sx:{fontSize:"0.6rem",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",color:"grey.400"},noWrap:!0,children:[Z("userProfile.userId"),": ",null==P?void 0:P.memberId]})]}),(0,a.jsx)(X(),{text:null==P?void 0:P.memberId,onCopy:()=>{i(!0),setTimeout(()=>i(!1),2e3)},children:(0,a.jsx)(L.Z,{title:n?"Copied!":"Copy to clipboard",children:(0,a.jsx)(A.Z,{size:"small",sx:{color:"grey.400"},children:(0,a.jsx)(K.JO,{icon:"mdi:content-copy",width:16,height:16,style:{color:n?"green":""}})})})})]})}),(0,a.jsx)(_.Z,{sx:{borderStyle:"dashed"}}),(0,a.jsxs)(k.Z,{children:[u?(0,a.jsx)(eo.Z,{onClick:()=>ed(),sx:{opacity:.8,"&:hover":{opacity:1},pt:{xs:.5},pb:{xs:.5},mt:{xs:1},minHeight:{xs:"unset"}},children:(0,a.jsxs)(k.Z,{direction:"row",alignItems:"center",children:[(0,a.jsx)(c.Z,{color:H,height:24,width:24,icon:"solar:bell-linear",sx:{ml:"8px",mr:"8px !important"}}),(0,a.jsx)(U.Z,{noWrap:!0,variant:"body2",sx:{width:"100px",display:"inline-block",whiteSpace:"pre-line",ml:1},children:Z("notifications.notifications")}),(0,a.jsx)(k.Z,{direction:"row",flexGrow:1,children:(0,a.jsx)(ei.Z,{component:"span",badgeContent:O,color:"secondary",variant:"standard",anchorOrigin:{vertical:"top",horizontal:"right"},sx:{marginLeft:"15px","& .MuiBadge-badge":{padding:{xs:"0 4px",sm:"0 6px"},whiteSpace:"nowrap",maxWidth:"none"}}})})]})},"notification"):null,ee.h.map(e=>(0,a.jsx)(eo.Z,{onClick:()=>$(e.linkTo),sx:{opacity:.8,"&:hover":{opacity:1},pt:{xs:.5},pb:{xs:.5},mt:{xs:0},minHeight:{xs:"unset"}},children:(0,a.jsxs)(k.Z,{direction:"row",alignItems:"center",children:[(0,a.jsx)(g.d3,{iconUrl:e.icon,style:{color:H,width:24,height:24,ml:"8px",mr:"8px !important"}}
1),(0,a.jsx)(U.Z,{variant:"body2",sx:{display:"inline-block",whiteSpace:"pre-line",ml:1},children:Z("navigation.header.user.".concat(e.label))})]})},e.label)),(0,a.jsx)(eo.Z,{onClick:()=>ec(),sx:{opacity:.8,"&:hover":{opacity:1},pt:{xs:.5},pb:{xs:.5},mt:{xs:0},minHeight:{xs:"unset"}},children:(0,a.jsxs)(k.Z,{direction:"row",alignItems:"center",children:[(0,a.jsx)(g.d3,{iconUrl:"/assets/icons/navbar/ic_live_support.svg",style:{color:H,width:24,height:24,ml:"8px",mr:"8px !important"}}),(0,a.jsx)(U.Z,{variant:"body2",sx:{display:"inline-block",whiteSpace:"pre-line",ml:1},children:Z("navigation.footer.link.support.liveSupport")})]})},"liveSupport")]}),(0,a.jsx)(_.Z,{sx:{borderStyle:"dashed"}}),(0,a.jsx)(eo.Z,{onClick:z,sx:{m:1,opacity:.8,"&:hover":{opacity:1}},children:(0,a.jsxs)(k.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,a.jsx)(r.default,{alt:"chest icon",height:20,width:20,src:"".concat("https://img.xyes.com/","assets/icons/popover/ic_sign_out.svg")}),(0,a.jsx)(U.Z,{variant:"body2",sx:{ml:1.5},children:Z("navigation.header.user.signOut")})]})})]})]})}var ed=n(8233),ep=n(38954),eu=n(95124);function eh(e){var t,n;let{data:i}=e,{getLang:r}=(0,o.i)(),s=(0,h.v9)(e=>e.user.data),c=r()||(null==s?void 0:s.settings.language),[d,p]=(0,m.useState)(!1),[u,x]=(0,m.useState)(c),g=null==i?void 0:null===(t=i.find(e=>e.abbreviatedCode===c))||void 0===t?void 0:t.flag,b=()=>p(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A.Z,{component:ed.m.button,whileTap:"tap",whileHover:"hover",variants:(0,eu.U6)(1.05),onClick:()=>p(!0),sx:{display:"flex",border:"none",background:l.y0.terciary,borderRadius:1,flexDirection:{xs:"column",md:"row"},height:"100%",...d&&{bgcolor:"action.selected"},"&:hover":{backgroundColor:{xs:"transparent",md:l.y0.terciaryHover}}},"data-test":"language-dropdown",disabled:!u,children:u&&(0,a.jsx)(ep.Z,{alt:"currency",width:25,mr:.5,src:g||(null==i?void 0:null===(n=i[0])||void 0===n?void 0:n.flag)})}),(0,a.jsx)(f.A,{title:"",showModal:d,handleModal:b,type:"updateLanguage",modalProps:{setLanguage:x,handleClose:b},hasIcon:!0})]})}var em=n(74302),ex=n(71721);let eg=()=>{let e=(0,M.K$)(),{hasUnreadNotification:t}=(0,M.K$)();return(0,a.jsx)(ei.Z,{badgeContent:"",color:"success",sx:{["& .".concat(ex.Z.badge)]:{top:{sm:6,md:2},right:8},display:{xs:"none",sm:"block",md:"block"},height:"100%"},variant:"dot",invisible:!t,children:(0,a.jsx)(A.Z,{disableRipple:!0,onClick:()=>{let t=e.isChatDrawerOpen||!e.isRightDrawerOpen;e.onUpdate("isChatDrawerOpen",!1),e.onUpdate("isNotificationsDrawerOpen",t),e.onUpdate("isRightDrawerOpen",t)},size:"small",sx:{cursor:"pointer",display:"flex",border:"none",background:l.y0.terciary,borderRadius:1,flexDirection:{xs:"column",sm:"row",md:"row"},height:"100%",px:{xs:0,sm:1,md:1},"&:hover":{backgroundColor:l.y0.terciaryHover}},children:(0,a.jsx)(r.default,{alt:"chest icon",height:24,width:24,src:"".concat("https://img.xyes.com/","assets/icons/header/bell-ring.svg")})})})};var eb=n(42453);function ey(e){var t,n;let{onOpenNav:K,languages:q,logo:G}=e,{authenticated:V,balance:$,loading:X}=(0,d.E)(),J=(0,h.I0)(),Q=(0,v.lr)(),Y=(0,v.jD)(),ee=(0,v.tv)(),et=Q.get("modal"),en=Q.get("auth_code"),ea=(0,h.v9)(e=>e.user.data),[ei,er]=(0,m.useState)(!1),eo=(0,T.Z)(),es=(0,R.Z)(eo.breakpoints.down("sm")),el=(0,M.K$)(),ed="horizontal"===el.themeLayout,ep="mini"===el.themeLayout,eu=eo.palette.primary.light,ex=(0,H.F)("up","lg"),{t:ey}=(0,o.i)(),ev=(0,p.k)(),{data:ef}=((0,R.Z)("(min-width:1500px)"),(0,w.J)({authenticated:V})),ew=["first-deposit","second-deposit","third-deposit","fourth-deposit"],ej=null==ef?void 0:null===(n=ef.data)||void 0===n?void 0:null===(t=n.sort((e,t)=>ew.indexOf(e.condition)-ew.indexOf(t.condition)))||void 0===t?void 0:t.find(e=>!e.claimed),eC=(0,h.v9)(e=>e.user.data),[ek,eZ]=(0,m.useState)(!1),eS=(0,u.NL)(),[eI,e_]=(0,m.useState)(!1),[eB,eT]=(0,m.useState)(""),[eE,eO]=(0,m.useState)({promotion_name:"",bonus_amount:"",currency:"",transfer_type:"",bonusSettingNo:"",_id:"",bonusTitle:"",isClaimable:!1}),[eR,eF]=(0,m.useState)(""),eL=()=>e_(!0),eU=async e=>{if(eZ(!0),!e)return;let t=e.replace(/\s+/g,"");
1try{let e=await x.ZP.post(x.Hv.promotions.redeemBonusCode,{manual_promotion_code:t,locale:null==eC?void 0:eC.settings.language.toUpperCase()});eO(e.data),eF(""),eT("success"),await eS.invalidateQueries({queryKey:["getBonusCalendar"]})}catch(e){eT("error"),eF(e.error)}finally{eL(),eZ(!1)}},eN=()=>{er(!1)};(0,m.useEffect)(()=>{null!==$&&J((0,y.Rn)($)),V||J((0,y.VH)())},[V,$,J]);let eA=(0,m.useCallback)(e=>{let t="".concat(Y,"?").concat(e.toString());ee.replace(t)},[ee,Y]),eD=(0,m.useCallback)(()=>{let e=new URLSearchParams(Q);e.delete("modal"),e.delete("type"),e.delete("tab"),eA(e)},[Q,eA]),eH=e=>{ee.push(e)},eP=null!==en&&!(null==ea?void 0:ea.coinbaseId),eM=(0,a.jsxs)(k.Z,{direction:"row",height:es?55:36,children:[(0,a.jsxs)(k.Z,{alignItems:"center",direction:"row",spacing:{xs:.5,sm:1.5},children:[(0,a.jsx)(C.Z,{sx:{"@media (min-width: 768px) and (max-width: 1024px)":{display:"none"}},display:{lg:"block"},visibility:{md:"hidden",lg:"visible"},children:(0,a.jsx)(s.Z,{logo:G})}),ex&&(0,a.jsx)(eb.Z,{})]}),(0,a.jsxs)(k.Z,{flexGrow:1,direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:{xs:.5,sm:1.5},children:[(0,a.jsx)(C.Z,{display:{xs:"none",sm:"block",md:"block"},height:"100%",children:(0,a.jsx)(W.Z,{"data-test":"searchbar",search:ev})}),!V&&(0,a.jsxs)(a.Fragment,{children:[X?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F.Z,{variant:"rectangular",sx:{borderRadius:1},width:100,height:36}),(0,a.jsx)(F.Z,{variant:"rectangular",sx:{borderRadius:1},width:100,height:36})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z.Z,{loading:eP,onClick:()=>eH("?modal=auth&tab=1"),"data-test":"sign-in-header-button",size:"small",variant:"header",children:ey("login.signIn")}),(0,a.jsx)(Z.Z,{loading:eP,"data-test":"sign-up-header-button",onClick:()=>eH("?modal=auth&tab=2"),size:"small",variant:"outlinedPrimary",children:ey("register.signUp")})]}),!ex&&(0,a.jsx)(eb.Z,{})]}),V&&(0,a.jsxs)(k.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{background:l.y0.terciary,borderRadius:1,height:"38px"},children:[X?(0,a.jsx)(F.Z,{variant:"rectangular",sx:{borderRadius:1},width:120,height:36}):$?(0,a.jsx)(em.k,{data:$,"data-test":"currency-popover"}):(0,a.jsx)(Z.Z,{loading:null===$,variant:"headerTerciary",onClick:()=>{er(!0)},size:"small",sx:{cursor:"pointer",display:"flex",border:"none",background:l.y0.terciary,borderRadius:1,flexDirection:{xs:"column",md:"row"},height:"100%"},children:$?(0,a.jsx)("span",{children:"disabled"}):(0,a.jsx)(O.d,{onClickAway:eN,children:(0,a.jsx)(L.Z,{PopperProps:{disablePortal:!0},placement:"bottom",onClose:eN,open:ei,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:ey("errors.balanceNotAvailable"),children:(0,a.jsx)(c.Z,{width:25,color:eu,icon:"line-md:loading-loop"})})})}),X?(0,a.jsx)(F.Z,{variant:"rectangular",sx:{borderRadius:1},width:es?40:120,height:36}):(0,a.jsx)(I.Z,{LinkComponent:i.default,onClick:()=>eH("?modal=wallet&tab=deposit"),"data-test":"open-wallet-modal-button",variant:es?"headerTerciary":"header",size:"small",sx:es?{minWidth:"40px !important",width:"40px !important",padding:"0px !important",background:"transparent !important","&:hover":{background:"#232a3d !important"},boxShadow:"none !important",position:"relative"}:{position:"relative"},children:(0,a.jsxs)(C.Z,{sx:{position:"relative",display:"flex",alignItems:"center",gap:1},children:[(0,a.jsx)(r.default,{alt:"Wallet Button",height:es?36:24,width:es?36:24,src:es?"".concat("https://img.xyes.com/","assets/icons/header/icon_wallet.svg"):"".concat("https://img.xyes.com/","assets/icons/header/ico_wallet.png")}),(0,a.jsx)(C.Z,{display:{xs:"none",md:"block"},children:(0,a.jsx)(U.Z,{variant:"buttonTxt",children:ey("wallet.wallet")})}),ej&&(0,a.jsxs)(C.Z,{sx:{position:"absolute",top:es?17:-21,right:es?-3:-17,zIndex:1,width:es?40:36,height:es?40:36,display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,a.jsx)(r.default,{alt:"Badge",height:es?36:60,width:es?36:60,src:"".concat("https://img.xyes.com/","assets/icons/header/bonus-wallet.gif"),style:{position:"absolute",top:-12,left:0,width:"100%",height:"100%"}}),(0,a.jsxs)(U.Z,{variant:"buttonTxt",sx:{position:"relative",color:"white",fontSize:"10px !important",fontWeight:"bold",textShadow:"0px 1px 2px rgba(0, 0, 0, 0.8)",animation:"heartbeat 1.5s ease-in-out infinite","@keyframes heartbeat":{"0%":{transform:"scale(1)"},"25%":{transform:"scale(1.1)"},"50%":{transform:"scale(1)"},"75%":{transform:"scale(1.1)"},"100%":{transform:"scale(1)"}}},children:["+",ej.bonusValue,"%"]})]})]})})]}),V&&(0,a.jsxs)(a.Fragment,{children:[X?(0,a.jsx)(F.Z,{variant:"circular",width:40,height:40}):(0,a.jsx)(ec,{}),!ex&&(0,a.jsx)(eb.Z,{})]}),(0,a.jsx)(k.Z,{border:0,borderColor:(0,E.Fq)(eo.palette.grey[500],.6),borderRadius:1,direction:"row",display:{xs:"none",sm:"flex",md:"flex"},divider:(0,a.jsx)(_.Z,{"aria-hidden":!0,orientation:"vertical",flexItem:!0,variant:"middle"}),height:"100%",children:q&&(0,a.jsx)(eh,{data:q})}),V&&(X?(0,a.jsx)(F.Z,{variant:"circular",width:40,height:40}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(eg,{})}))]})]}),eW=(0,a.jsxs)(N.ZP,{anchor:"bottom",open:"wallet"===et,onClose:eD,SlideProps:{timeout:100},PaperProps:{sx:{height:"91dvh",borderRadius:"10px 10px 0px 0px",backgroundColor:"".concat(l.y0.selectBG," !important"),mx:.5,border:"1px solid transparent",boxShadow:"".concat(l.y0.boxShadow," !important"),pb:"80px"}},ModalProps:{BackdropProps:{sx:{backgroundColor:"rgba(0, 0, 0, 0.5)",backdropFilter:"blur(1px)"}}},children:[(0,a.jsx)(C.Z,{sx:{position:"sticky",top:0,zIndex:10,backgroundColor:l.y0.selectBG,paddingX:2,paddingY:.5,borderBottom:"transparent"},children:(0,a.jsxs)(k.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,a.jsxs)(k.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,a.jsx)(g.d3,{iconUrl:"solar:wallet-linear",style:{flexShrink:0,width:{xs:"clamp(24px, 3.5vw, 18px)",sm:"18px",md:"20px",lg:"22px"},height:{xs:"clamp(24px, 3.5vw, 18px)",sm:"18px",md:"20px",lg:"22px"},color:eo.palette.orange[900]}}),(0,a.jsx)(U.Z,{variant:"h1",sx:{mb:0,pr:4},children:ey("wallet.wallet")})]}),(0,a.jsx)(A.Z,{"aria-label":"close",onClick:eD,sx:{color:eo.palette.grey[500]},children:(0,a.jsx)(c.Z,{icon:"solar:close-circle-linear",sx:{height:24,width:24}})})]})}),(0,a.jsx)(C.Z,{sx:{px:1,backgroundColor:l.y0.selectBG},children:(0,a.jsx)(b.default,{loading:ek,handleRedeem:eU,tabSelected:"1"})})]});return(0,a.jsx)(S.Z,{sx:{height:es?z.yf.H_MOBILE:z.yf.H_TABLET,zIndex:eo.zIndex.appBar,...(0,P.Ls)({color:"#1C2334",opacity:1}),transition:eo.transitions.create(["height"],{duration:eo.transitions.duration.shorter}),...ex&&{width:"calc(100% - ".concat(z.w$.W_VERTICAL,"px)"),height:z.yf.H_DESKTOP,...ed&&{width:1,bgcolor:"#1C2334",height:z.yf.H_DESKTOP_OFFSET,borderBottom:"dashed 1px ".concat(eo.palette.divider)},...ep&&{width:"calc(100% - ".concat(z.w$.W_MINI+1,"px)")}}},children:(0,a.jsxs)(B.Z,{sx:{height:1},children:[(0,a.jsx)(D.Z,{disableGutters:!ex,sx:{position:"relative",width:"100%",transition:"width 0.3s"},children:eM}),(0,a.jsx)(j.J,{open:eI,handleClose:()=>e_(!1),isClaimable:eE.isClaimable,type:eB,promotion_name:eE.promotion_name,bonus_amount:eE.bonus_amount,currency:eE.currency,transfer_type:eE.transfer_type,error:eR,bonus_id:eE._id,bonus_setting_no:eE.bonusSettingNo,bonusTitle:eE.bonusTitle}),es?(0,a.jsx)(a.Fragment,{children:eW}):(0,a.jsx)(f.A,{type:"wallet",size:"520px",title:ey("wallet.wallet"),hasIcon:!0,showModal:"wallet"===et,customIcon:"solar:wallet-linear",disablePadding:!0,sx:{paddingInline:es?2:1,paddingTop:2,paddingBottom:1},dialogSx:{borderRadius:"10px",backgroundColor:"".concat(l.y0.selectBG," !important"),border:"1px solid transparent",boxShadow:"".concat(l.y0.boxShadow," !important")},modalProps:{loading:ek,handleRedeem:eU},closeBtnStyle:{right:8,top:"50%"}})]})})}},62511:function(e,t,n){"use strict";n.d(t,{_S:function(){return l},lj:function(){return r},ok:function(){return o}});var a=n(48116);let i=e=>{var t,n,i,r,o;let{row:s,amount:l,fiatCurrency:c,exchangeRates:d,shouldShow:p,type:u,exchangeRateFrom:h,exchangeRateTo:m}=e;if(!p||!d&&!h&&!m)return{shouldDisplay:!1,fiatCurrency:c,formattedAmount:"",isNegative:!1,rawAmount:0};let x="withdraw"===(null!==(t=null==s?void 0:s.type)&&void 0!==t?t:u),g=x?null!==(i=null!==(n=null==s?void 0:s.amount)&&void 0!==n?n:l)&&void 0!==i?i:0:null!==(o=null!==(r=null==s?void 0:s.realityamount)&&void 0!==r?r:l)&&void 0!==o?o:0,b=0;return h&&m?b=(0,a.rN)(Number(g),h,m):d&&d[c]&&(b=(0,a.rN)(Number(g),"1",d[c].toString())),{shouldDisplay:!0,fiatCurrency:c,formattedAmount:(0,a.dN)(b,"fiat"),isNegative:x,rawAmount:b}}
1,r=e=>{let t=i(e);if(!t.shouldDisplay)return"";let n=t.isNegative?"-":"";return"".concat(t.fiatCurrency," ").concat(n).concat(t.formattedAmount)},o=(e,t,n,a)=>{let i=e.currency.split("/")[1]||"USD",o=n[i]?n[i].toString():"1",s=n[t]?n[t].toString():"1";return r({row:e,fiatCurrency:t,exchangeRateFrom:o,exchangeRateTo:s,shouldShow:a})},s=e=>"number"==typeof e?e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e3?"".concat((e/1e3).toFixed(1),"K"):e.toFixed(2):String(e).slice(0,6),l=e=>{let t=i(e);if(!t.shouldDisplay)return"";let n=t.isNegative?"-":"",a=s(t.rawAmount);return"".concat(t.fiatCurrency," ").concat(n).concat(a)}},90134:function(e,t,n){"use strict";function a(e){return e.split("/").map(e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()).join("/")}n.d(t,{m:function(){return a}})}}]);

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.