PageSourceSearch

https://xyes.ai/_next/static/chunks/4022.c56bbd71574a0c63.js

js xyes.ai collected 2026-10-05 14:50:17 UTC 8,256 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4022,6067,1655,2502,6812,4708],{66393:function(e,t,n){n.d(t,{s:function(){return s}});var r=n(43577),a=n(2265),o=n(55447),i=n(16593),c=n(45345);let s=(e,t)=>{if(!(0,a.useCallback)(e=>["fiats","cryptos",""].includes(e),[])(e))throw Error('Invalid currency type. Must be "fiats", "cryptos" or empty string');let n=(0,a.useMemo)(()=>e?"".concat(o.Hv.wallet.currencyList).concat(e):o.Hv.wallet.currencyList,[e]),s=(0,a.useMemo)(()=>t?"?countryOrRegion=".concat(t):"",[t]),u=(0,a.useMemo)(()=>"".concat(n).concat(s),[n,s]),l=(0,a.useCallback)(async()=>{try{return(await o.ZP.get(u)).data}catch(n){if(n instanceof r.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}},[u]);return(0,i.a)({queryKey:["currencies",u,e,t],queryFn:l,placeholderData:c.Wk,refetchOnMount:!0,retry:2,staleTime:3e5})}},3801:function(e,t,n){n.d(t,{r:function(){return c}});var r=n(2265),a=n(16593),o=n(45345),i=n(55447);let c=e=>{let{authenticated:t}=e,n=(0,r.useMemo)(()=>new URL("".concat("https://api.xyes.com/api/v1").concat(i.Hv.wallet.depositCurrencies)),[]),c=(0,r.useMemo)(()=>n.toString(),[n]),s=(0,r.useCallback)(async()=>(await i.ZP.get(c)).data,[c]);return(0,a.a)({queryKey:["getDepositCurrencies",c,t],queryFn:s,placeholderData:o.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t})}},43161:function(e,t,n){n.d(t,{m:function(){return i}});var r=n(2265),a=n(60033),o=n(68575);let i=()=>{let{getLang:e}=(0,a.i)(),t=(0,o.v9)(e=>e.user.data);return{getLink:(0,r.useCallback)(n=>{let r=e()||(null==t?void 0:t.settings.language);if("en"!==String(r).toLowerCase()&&"en-us"!==String(r).toLowerCase()){let e;if(n){let t=n.startsWith("/")?n:"/".concat(n);e="/".concat(r).concat(t)}else e="/".concat(r);return e}return n?n.startsWith("/")?n:"/".concat(n):"/"},[e,null==t?void 0:t.settings.language])}}},82877:function(e,t,n){n.d(t,{SG:function(){return c},Xn:function(){return u},aE:function(){return s}});var r=n(16593),a=n(45345),o=n(20418),i=n(55447);let c=function(){let{all:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{authenticated:t}=(0,o.E)();return(0,r.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:a.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t,staleTime:3e5,gcTime:6e5})},s=()=>{let{authenticated:e}=(0,o.E)();return(0,r.a)({queryKey:["useGetUserBalance"],queryFn:async()=>(await i.ZP.get(i.Hv.wallet.getUserBalances)).data,placeholderData:a.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:e,staleTime:3e4,gcTime:3e5})},u=e=>{let{currencyCode:t}=e,{authenticated:n}=(0,o.E)();return(0,r.a)({queryKey:["useGetFiatExchangeRates",t],queryFn:async()=>(await i.ZP.get("".concat(i.Hv.wallet.fiatExchangeRates).concat(t))).data,placeholderData:a.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:n&&!!t,staleTime:3e5,gcTime:6e5})}},36067:function(e,t,n){n.r(t),n.d(t,{SnackbarProvider:function(){return l},useSnackbar:function(){return d}});var r=n(57437),a=n(2265),o=n(60033),i=n(73986),c=n(73126);let s=a.createContext(void 0),u=a.forwardRef((e,t)=>(0,r.jsx)(c.Z,{elevation:6,ref:t,variant:"filled",...e})),l=e=>{let{children:t}=e,[n,c]=a.useState({open:!1,message:"",type:"success",position:{vertical:"top",horizontal:"center"},autoHideDuration:3e3}),{t:l}=(0,o.i)(),d=a.useCallback(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{vertical:"top",horizontal:"center"},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3e3;c({open:!0,message:e,type:t,position:n,autoHideDuration:r})},[]),h=()=>{c(e=>({...e,open:!1}))},g=a.useMemo(()=>({showMessage:d}),[d]);return(0,r.jsxs)(s.Provider,{value:g,children:[t,(0,r.jsx)(i.Z,{open:n.open,autoHideDuration:n.autoHideDuration,onClose:h,anchorOrigin:n.position,children:(0,r.jsx)(u,{onClose:h,severity:n.type,sx:{backgroundColor:"info"===n.type?"#2196F3":void 0},children:l(n.message)})})]})},d=()=>{let e=a.useContext(s);if(!e)throw Error("useSnackbar must be used within a SnackbarProvider");return e}},70795:function(e,t,n){n.d(t,{E:function(){return o}});var r=n(77513),a=n(15658);let o=new r.S({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,retryOnMount:!1,refetchOnMount:!1,refetchIntervalInBackgroun
1d:!1}},queryCache:new a.t({onError:e=>{}})})},99719:function(e,t,n){n.d(t,{fS:function(){return l}});var r=n(83464);n(45650);var a=n(35447),o=n(14086),i=n(49337),c=n(59866);let s=["/auth/refresh","/auth/csrf","/auth/email/sign-in","/auth/email/sign-up","/auth/google/sign-in","/auth/google/sign-up","/auth/telegram/sign-in","/auth/telegram/sign-up","/auth/phone/sign-in","/auth/phone/sign-up","/auth/metamask/sign-in","/auth/metamask/sign-up","/auth/wconnect/sign-in","/auth/wconnect/sign-up","/coinbase/sign-in","/line/sign-in"],u=r.default.create({baseURL:i.aZ,withCredentials:!0});u.interceptors.request.use(async e=>{var t,n,r,o;((null===(t=e.url)||void 0===t?void 0:t.startsWith("/games"))||(null===(n=e.url)||void 0===n?void 0:n.startsWith("/auth_users/oidc"))||(null===(r=e.url)||void 0===r?void 0:r.startsWith("/communications/notifications"))||(null===(o=e.url)||void 0===o?void 0:o.startsWith("/communications/ads")))&&(e.baseURL=i.n1);let s=(0,a.hP)();if(s&&(e.headers.Authorization="Bearer ".concat(s)),(0,c.cR)(e.url,e.method)){let t=await (0,c.IC)();t&&(e.headers[c.d4]=t)}return e}),u.interceptors.response.use(e=>e,async e=>{var t;let n=e.config;if(401===(null===(t=e.response)||void 0===t?void 0:t.status)&&n&&!n._authRetry&&!function(e){let t=String(e||"");return s.some(e=>t.includes(e))}(n.url)){n._authRetry=!0;try{let e=await (0,c.jb)();if(null==e?void 0:e.accessToken)return(0,o.fP)(e.accessToken,e.expiresIn),n.headers.Authorization="Bearer ".concat(e.accessToken),await u(n)}catch(e){}}return Promise.reject(e.response&&e.response.data||"errors.somethingWentWrong")}),t.ZP=u;let l={wallet:{getLastPendigDeposit:"/wallets/get-last-deposit-pending",getLastDepositData:"/wallets/get-last-deposit-data",getLastPendingWithdraw:"/wallets/get-last-pending-withdraw",cancelTransaction:"/wallets/cancel-transaction"},games:{totalBonusRecords:"/games/get-total-bonus-by-member"}}},48116:function(e,t,n){n.d(t,{TQ:function(){return c},dN:function(){return a},ft:function(){return s},jr:function(){return i},lb:function(){return u},rN:function(){return l},x3:function(){return o}});var r=n(68651);let a=(e,t)=>{let n=t.startsWith("crypto/"),r=(e,t)=>{let n=10**t;return Math.trunc(e*n)/n},a=(e,t)=>{if(0===e)return"0";let[n,a]=r(e,t).toString().split("."),o=n.replace(/\B(?=(\d{3})+(?!\d))/g,",");return a?"".concat(o,".").concat(a):o};return n?1e-8>Math.abs(e)?"0":a(e,6).replace(/(\.\d*?[1-9])0+$/,"$1"):.01>Math.abs(e)?"0":a(e,2).replace(/(\.\d*?[1-9])0+$/,"$1")},o=(e,t)=>{let n=t.startsWith("crypto/"),a=new r.Z(e),o=(e,t)=>e.decimalPlaces(t,r.Z.ROUND_DOWN),i=(e,t)=>{if(e.isZero())return"0";let[n,r=""]=o(e,t).toFixed().split("."),a=n.replace(/\B(?=(\d{3})+(?!\d))/g,",");return r?"".concat(a,".").concat(r):a};return n?a.abs().isLessThan("0.00000001")?"0":i(a,6).replace(/(\.\d*?[1-9])0+$/,"$1"):a.abs().isLessThan("0.01")?"0":i(a,2).replace(/(\.\d*?[1-9])0+$/,"$1")},i=e=>{let t=Math.abs(e),n=e<0?"-":"";if(t>=1e6){let e=(Math.floor(t/1e4)/100).toFixed(2).replace(/\.00$/,"");return"".concat(n).concat(e,"M")}if(t>=1e3){let e=(Math.floor(t/10)/100).toFixed(2).replace(/\.00$/,"");return"".concat(n).concat(e,"k")}return"".concat(n).concat((Math.floor(100*t)/100).toFixed(2).replace(/\.00$/,""))},c=(e,t)=>(null==t?void 0:t.cryptos.some(t=>t.symbol===e))?"crypto/".concat(e):"fiat/".concat(e),s=(e,t)=>{let n=null==t?void 0:t.cryptos.find(t=>t.symbol===e),r=null==t?void 0:t.fiats.find(t=>t.symbol===e);return n?{type:"crypto/".concat(e),logoUrl:n.logoUrl}:r?{type:"fiat/".concat(e),logoUrl:r.logoUrl}:{type:"unknown",logoUrl:void 0}},u=e=>new r.Z(e).toFormat(2,r.Z.ROUND_DOWN,{decimalSeparator:".",groupSeparator:",",groupSize:3}),l=(e,t,n)=>{let a=new r.Z(e).dividedBy(new r.Z(t)).multipliedBy(n);return a.isNaN()?0:a.toNumber()}}}]);

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.