@obb871001/api-integration-sdk 1.0.108 → 1.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +193 -192
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import ke, { createContext as
|
|
2
|
-
import { useQuery as
|
|
1
|
+
import ke, { createContext as Va, useContext as Za, useCallback as A, useMemo as Qe, useEffect as he, useRef as ya } from "react";
|
|
2
|
+
import { useQuery as ee, QueryClient as Ni, QueryClientProvider as Di, useQueries as Ia, useMutation as Aa } from "@tanstack/react-query";
|
|
3
3
|
import Ei from "axios";
|
|
4
|
-
import { find as qe, isEmpty as O, isObject as He, flatMap as
|
|
4
|
+
import { find as qe, isEmpty as O, isObject as He, flatMap as Ye, isArray as ae, map as we, get as Re, replace as ba, includes as Li } from "lodash";
|
|
5
5
|
import Gi from "react-dom";
|
|
6
6
|
function Mi(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
9
|
var Pe = { exports: {} }, be = {};
|
|
10
|
-
var
|
|
10
|
+
var Ta;
|
|
11
11
|
function Ri() {
|
|
12
|
-
if (
|
|
13
|
-
|
|
12
|
+
if (Ta) return be;
|
|
13
|
+
Ta = 1;
|
|
14
14
|
var e = ke, t = Symbol.for("react.element"), g = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
15
15
|
function f(_, r, s) {
|
|
16
16
|
var m, i = {}, d = null, l = null;
|
|
@@ -22,9 +22,9 @@ function Ri() {
|
|
|
22
22
|
return be.Fragment = g, be.jsx = f, be.jsxs = f, be;
|
|
23
23
|
}
|
|
24
24
|
var Te = {};
|
|
25
|
-
var
|
|
25
|
+
var Ca;
|
|
26
26
|
function Pi() {
|
|
27
|
-
return
|
|
27
|
+
return Ca || (Ca = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
28
28
|
var e = ke, t = Symbol.for("react.element"), g = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), _ = Symbol.for("react.context"), r = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), i = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), n = Symbol.iterator, y = "@@iterator";
|
|
29
29
|
function b(a) {
|
|
30
30
|
if (a === null || typeof a != "object")
|
|
@@ -114,18 +114,18 @@ function Pi() {
|
|
|
114
114
|
}
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
var V = Object.assign,
|
|
118
|
-
function
|
|
117
|
+
var V = Object.assign, le = 0, K, Ne, De, x, w, j, Ue;
|
|
118
|
+
function te() {
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
te.__reactDisabledLog = !0;
|
|
121
121
|
function $() {
|
|
122
122
|
{
|
|
123
|
-
if (
|
|
123
|
+
if (le === 0) {
|
|
124
124
|
K = console.log, Ne = console.info, De = console.warn, x = console.error, w = console.group, j = console.groupCollapsed, Ue = console.groupEnd;
|
|
125
125
|
var a = {
|
|
126
126
|
configurable: !0,
|
|
127
127
|
enumerable: !0,
|
|
128
|
-
value:
|
|
128
|
+
value: te,
|
|
129
129
|
writable: !0
|
|
130
130
|
};
|
|
131
131
|
Object.defineProperties(console, {
|
|
@@ -138,12 +138,12 @@ function Pi() {
|
|
|
138
138
|
groupEnd: a
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
le++;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
function Ee() {
|
|
145
145
|
{
|
|
146
|
-
if (
|
|
146
|
+
if (le--, le === 0) {
|
|
147
147
|
var a = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
@@ -173,7 +173,7 @@ function Pi() {
|
|
|
173
173
|
})
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
le < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
var ue = c.ReactCurrentDispatcher, Q;
|
|
@@ -190,13 +190,13 @@ function Pi() {
|
|
|
190
190
|
` + Q + a;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
var
|
|
193
|
+
var ne = !1, Le;
|
|
194
194
|
{
|
|
195
195
|
var ai = typeof WeakMap == "function" ? WeakMap : Map;
|
|
196
196
|
Le = new ai();
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
if (!a ||
|
|
198
|
+
function la(a, U) {
|
|
199
|
+
if (!a || ne)
|
|
200
200
|
return "";
|
|
201
201
|
{
|
|
202
202
|
var C = Le.get(a);
|
|
@@ -204,7 +204,7 @@ function Pi() {
|
|
|
204
204
|
return C;
|
|
205
205
|
}
|
|
206
206
|
var v;
|
|
207
|
-
|
|
207
|
+
ne = !0;
|
|
208
208
|
var L = Error.prepareStackTrace;
|
|
209
209
|
Error.prepareStackTrace = void 0;
|
|
210
210
|
var G;
|
|
@@ -261,13 +261,13 @@ function Pi() {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
} finally {
|
|
264
|
-
|
|
264
|
+
ne = !1, ue.current = G, Ee(), Error.prepareStackTrace = L;
|
|
265
265
|
}
|
|
266
|
-
var de = a ? a.displayName || a.name : "",
|
|
267
|
-
return typeof a == "function" && Le.set(a,
|
|
266
|
+
var de = a ? a.displayName || a.name : "", me = de ? pe(de) : "";
|
|
267
|
+
return typeof a == "function" && Le.set(a, me), me;
|
|
268
268
|
}
|
|
269
269
|
function ii(a, U, C) {
|
|
270
|
-
return
|
|
270
|
+
return la(a, !1);
|
|
271
271
|
}
|
|
272
272
|
function li(a) {
|
|
273
273
|
var U = a.prototype;
|
|
@@ -277,7 +277,7 @@ function Pi() {
|
|
|
277
277
|
if (a == null)
|
|
278
278
|
return "";
|
|
279
279
|
if (typeof a == "function")
|
|
280
|
-
return
|
|
280
|
+
return la(a, li(a));
|
|
281
281
|
if (typeof a == "string")
|
|
282
282
|
return pe(a);
|
|
283
283
|
switch (a) {
|
|
@@ -302,13 +302,13 @@ function Pi() {
|
|
|
302
302
|
}
|
|
303
303
|
return "";
|
|
304
304
|
}
|
|
305
|
-
var ye = Object.prototype.hasOwnProperty,
|
|
305
|
+
var ye = Object.prototype.hasOwnProperty, ta = {}, na = c.ReactDebugCurrentFrame;
|
|
306
306
|
function Me(a) {
|
|
307
307
|
if (a) {
|
|
308
308
|
var U = a._owner, C = Ge(a.type, a._source, U ? U.type : null);
|
|
309
|
-
|
|
309
|
+
na.setExtraStackFrame(C);
|
|
310
310
|
} else
|
|
311
|
-
|
|
311
|
+
na.setExtraStackFrame(null);
|
|
312
312
|
}
|
|
313
313
|
function ti(a, U, C, v, L) {
|
|
314
314
|
{
|
|
@@ -325,7 +325,7 @@ function Pi() {
|
|
|
325
325
|
} catch (R) {
|
|
326
326
|
k = R;
|
|
327
327
|
}
|
|
328
|
-
k && !(k instanceof Error) && (Me(L), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", C, N, typeof k), Me(null)), k instanceof Error && !(k.message in
|
|
328
|
+
k && !(k instanceof Error) && (Me(L), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", C, N, typeof k), Me(null)), k instanceof Error && !(k.message in ta) && (ta[k.message] = !0, Me(L), T("Failed %s type: %s", C, k.message), Me(null));
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
@@ -341,24 +341,24 @@ function Pi() {
|
|
|
341
341
|
}
|
|
342
342
|
function ri(a) {
|
|
343
343
|
try {
|
|
344
|
-
return
|
|
344
|
+
return ma(a), !1;
|
|
345
345
|
} catch {
|
|
346
346
|
return !0;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function ma(a) {
|
|
350
350
|
return "" + a;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function ra(a) {
|
|
353
353
|
if (ri(a))
|
|
354
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mi(a)),
|
|
354
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mi(a)), ma(a);
|
|
355
355
|
}
|
|
356
|
-
var
|
|
356
|
+
var oa = c.ReactCurrentOwner, oi = {
|
|
357
357
|
key: !0,
|
|
358
358
|
ref: !0,
|
|
359
359
|
__self: !0,
|
|
360
360
|
__source: !0
|
|
361
|
-
},
|
|
361
|
+
}, sa, ua;
|
|
362
362
|
function si(a) {
|
|
363
363
|
if (ye.call(a, "ref")) {
|
|
364
364
|
var U = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
@@ -376,12 +376,12 @@ function Pi() {
|
|
|
376
376
|
return a.key !== void 0;
|
|
377
377
|
}
|
|
378
378
|
function pi(a, U) {
|
|
379
|
-
typeof a.ref == "string" &&
|
|
379
|
+
typeof a.ref == "string" && oa.current;
|
|
380
380
|
}
|
|
381
381
|
function gi(a, U) {
|
|
382
382
|
{
|
|
383
383
|
var C = function() {
|
|
384
|
-
|
|
384
|
+
sa || (sa = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", U));
|
|
385
385
|
};
|
|
386
386
|
C.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
387
387
|
get: C,
|
|
@@ -392,7 +392,7 @@ function Pi() {
|
|
|
392
392
|
function di(a, U) {
|
|
393
393
|
{
|
|
394
394
|
var C = function() {
|
|
395
|
-
|
|
395
|
+
ua || (ua = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", U));
|
|
396
396
|
};
|
|
397
397
|
C.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
398
398
|
get: C,
|
|
@@ -432,7 +432,7 @@ function Pi() {
|
|
|
432
432
|
function _i(a, U, C, v, L) {
|
|
433
433
|
{
|
|
434
434
|
var G, N = {}, k = null, F = null;
|
|
435
|
-
C !== void 0 && (
|
|
435
|
+
C !== void 0 && (ra(C), k = "" + C), ui(U) && (ra(U.key), k = "" + U.key), si(U) && (F = U.ref, pi(U, L));
|
|
436
436
|
for (G in U)
|
|
437
437
|
ye.call(U, G) && !oi.hasOwnProperty(G) && (N[G] = U[G]);
|
|
438
438
|
if (a && a.defaultProps) {
|
|
@@ -444,23 +444,23 @@ function Pi() {
|
|
|
444
444
|
var P = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
445
445
|
k && gi(N, P), F && di(N, P);
|
|
446
446
|
}
|
|
447
|
-
return ci(a, k, F, L, v,
|
|
447
|
+
return ci(a, k, F, L, v, oa.current, N);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
var Je = c.ReactCurrentOwner,
|
|
450
|
+
var Je = c.ReactCurrentOwner, pa = c.ReactDebugCurrentFrame;
|
|
451
451
|
function ge(a) {
|
|
452
452
|
if (a) {
|
|
453
453
|
var U = a._owner, C = Ge(a.type, a._source, U ? U.type : null);
|
|
454
|
-
|
|
454
|
+
pa.setExtraStackFrame(C);
|
|
455
455
|
} else
|
|
456
|
-
|
|
456
|
+
pa.setExtraStackFrame(null);
|
|
457
457
|
}
|
|
458
458
|
var ze;
|
|
459
459
|
ze = !1;
|
|
460
460
|
function Ve(a) {
|
|
461
461
|
return typeof a == "object" && a !== null && a.$$typeof === t;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function ga() {
|
|
464
464
|
{
|
|
465
465
|
if (Je.current) {
|
|
466
466
|
var a = H(Je.current.type);
|
|
@@ -475,10 +475,10 @@ Check the render method of \`` + a + "`.";
|
|
|
475
475
|
function fi(a) {
|
|
476
476
|
return "";
|
|
477
477
|
}
|
|
478
|
-
var
|
|
478
|
+
var da = {};
|
|
479
479
|
function Ui(a) {
|
|
480
480
|
{
|
|
481
|
-
var U =
|
|
481
|
+
var U = ga();
|
|
482
482
|
if (!U) {
|
|
483
483
|
var C = typeof a == "string" ? a : a.displayName || a.name;
|
|
484
484
|
C && (U = `
|
|
@@ -488,27 +488,27 @@ Check the top-level render call using <` + C + ">.");
|
|
|
488
488
|
return U;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function ca(a, U) {
|
|
492
492
|
{
|
|
493
493
|
if (!a._store || a._store.validated || a.key != null)
|
|
494
494
|
return;
|
|
495
495
|
a._store.validated = !0;
|
|
496
496
|
var C = Ui(U);
|
|
497
|
-
if (
|
|
497
|
+
if (da[C])
|
|
498
498
|
return;
|
|
499
|
-
|
|
499
|
+
da[C] = !0;
|
|
500
500
|
var v = "";
|
|
501
501
|
a && a._owner && a._owner !== Je.current && (v = " It was passed a child from " + H(a._owner.type) + "."), ge(a), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, v), ge(null);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function _a(a, U) {
|
|
505
505
|
{
|
|
506
506
|
if (typeof a != "object")
|
|
507
507
|
return;
|
|
508
508
|
if (We(a))
|
|
509
509
|
for (var C = 0; C < a.length; C++) {
|
|
510
510
|
var v = a[C];
|
|
511
|
-
Ve(v) &&
|
|
511
|
+
Ve(v) && ca(v, U);
|
|
512
512
|
}
|
|
513
513
|
else if (Ve(a))
|
|
514
514
|
a._store && (a._store.validated = !0);
|
|
@@ -516,7 +516,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
516
516
|
var L = b(a);
|
|
517
517
|
if (typeof L == "function" && L !== a.entries)
|
|
518
518
|
for (var G = L.call(a), N; !(N = G.next()).done; )
|
|
519
|
-
Ve(N.value) &&
|
|
519
|
+
Ve(N.value) && ca(N.value, U);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
}
|
|
@@ -557,15 +557,15 @@ Check the top-level render call using <` + C + ">.");
|
|
|
557
557
|
a.ref !== null && (ge(a), T("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
560
|
+
var fa = {};
|
|
561
|
+
function Ua(a, U, C, v, L, G) {
|
|
562
562
|
{
|
|
563
563
|
var N = Fe(a);
|
|
564
564
|
if (!N) {
|
|
565
565
|
var k = "";
|
|
566
566
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
567
567
|
var F = fi();
|
|
568
|
-
F ? k += F : k +=
|
|
568
|
+
F ? k += F : k += ga();
|
|
569
569
|
var R;
|
|
570
570
|
a === null ? R = "null" : We(a) ? R = "array" : a !== void 0 && a.$$typeof === t ? (R = "<" + (H(a.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : R = typeof a, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, k);
|
|
571
571
|
}
|
|
@@ -578,47 +578,47 @@ Check the top-level render call using <` + C + ">.");
|
|
|
578
578
|
if (v)
|
|
579
579
|
if (We(z)) {
|
|
580
580
|
for (var de = 0; de < z.length; de++)
|
|
581
|
-
|
|
581
|
+
_a(z[de], a);
|
|
582
582
|
Object.freeze && Object.freeze(z);
|
|
583
583
|
} else
|
|
584
584
|
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
585
585
|
else
|
|
586
|
-
|
|
586
|
+
_a(z, a);
|
|
587
587
|
}
|
|
588
588
|
if (ye.call(U, "key")) {
|
|
589
|
-
var
|
|
589
|
+
var me = H(a), W = Object.keys(U).filter(function(Si) {
|
|
590
590
|
return Si !== "key";
|
|
591
591
|
}), Ze = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
592
|
-
if (!
|
|
592
|
+
if (!fa[me + Ze]) {
|
|
593
593
|
var ki = W.length > 0 ? "{" + W.join(": ..., ") + ": ...}" : "{}";
|
|
594
594
|
T(`A props object containing a "key" prop is being spread into JSX:
|
|
595
595
|
let props = %s;
|
|
596
596
|
<%s {...props} />
|
|
597
597
|
React keys must be passed directly to JSX without using spread:
|
|
598
598
|
let props = %s;
|
|
599
|
-
<%s key={someKey} {...props} />`, Ze,
|
|
599
|
+
<%s key={someKey} {...props} />`, Ze, me, ki, me), fa[me + Ze] = !0;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
return a === u ? bi(P) : yi(P), P;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function Ti(a, U, C) {
|
|
606
|
-
return
|
|
606
|
+
return Ua(a, U, C, !0);
|
|
607
607
|
}
|
|
608
608
|
function Ci(a, U, C) {
|
|
609
|
-
return
|
|
609
|
+
return Ua(a, U, C, !1);
|
|
610
610
|
}
|
|
611
611
|
var vi = Ci, hi = Ti;
|
|
612
612
|
Te.Fragment = u, Te.jsx = vi, Te.jsxs = hi;
|
|
613
613
|
})()), Te;
|
|
614
614
|
}
|
|
615
|
-
var
|
|
615
|
+
var va;
|
|
616
616
|
function xi() {
|
|
617
|
-
return
|
|
617
|
+
return va || (va = 1, process.env.NODE_ENV === "production" ? Pe.exports = Ri() : Pe.exports = Pi()), Pe.exports;
|
|
618
618
|
}
|
|
619
619
|
var Oe = xi();
|
|
620
|
-
const Ba =
|
|
621
|
-
const e =
|
|
620
|
+
const Ba = Va(null), ie = () => {
|
|
621
|
+
const e = Za(Ba);
|
|
622
622
|
if (!e)
|
|
623
623
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
624
624
|
return e;
|
|
@@ -648,8 +648,8 @@ function Oi({
|
|
|
648
648
|
(_) => p ? p(_, { instance: f }) : Promise.reject(_)
|
|
649
649
|
), f;
|
|
650
650
|
}
|
|
651
|
-
const Ka =
|
|
652
|
-
const e =
|
|
651
|
+
const Ka = Va(null), Tl = () => {
|
|
652
|
+
const e = Za(Ka);
|
|
653
653
|
if (!e)
|
|
654
654
|
throw new Error(
|
|
655
655
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
@@ -674,7 +674,7 @@ const Ka = Za(null), Tl = () => {
|
|
|
674
674
|
shouldShowErrorNotice: e,
|
|
675
675
|
isMachineDomain: t
|
|
676
676
|
};
|
|
677
|
-
}, ja = (e = [], t) => qe(e, { gameTypeName: t })?.gameTypeUid, Qa = (e = [], t) => qe(e, { platform: t })?.platformUid,
|
|
677
|
+
}, ja = (e = [], t) => qe(e, { gameTypeName: t })?.gameTypeUid, Qa = (e = [], t) => qe(e, { platform: t })?.platformUid, qa = (e = [], t) => qe(e, { SubPlatformEnum: t }), Ya = (e = [], t, g) => O(e) ? [] : e.filter((u) => g ? String(u?.SubPlatformEnumUid) === String(g?.SubPlatformEnumUid) : String(u.platformUid) === String(t)), Hi = (e = []) => O(e) ? {} : e.reduce((t, g) => {
|
|
678
678
|
const u = g?.game_subtype || "UNKNOWN";
|
|
679
679
|
return t[u] || (t[u] = []), t[u].push(g), t;
|
|
680
680
|
}, {}), wi = ({
|
|
@@ -686,7 +686,7 @@ const Ka = Za(null), Tl = () => {
|
|
|
686
686
|
}) => {
|
|
687
687
|
const p = ja(u, e);
|
|
688
688
|
return p ? t.reduce((f, _) => {
|
|
689
|
-
const r = Qa(o, _), s =
|
|
689
|
+
const r = Qa(o, _), s = qa(o, _), m = g[p] || [], i = Ya(
|
|
690
690
|
m,
|
|
691
691
|
r,
|
|
692
692
|
s
|
|
@@ -698,13 +698,13 @@ const Ka = Za(null), Tl = () => {
|
|
|
698
698
|
gamesOfType: t = [],
|
|
699
699
|
allPlatforms: g = []
|
|
700
700
|
}) => {
|
|
701
|
-
const u = Qa(g, e), o =
|
|
701
|
+
const u = Qa(g, e), o = qa(g, e), p = Ya(
|
|
702
702
|
t,
|
|
703
703
|
u,
|
|
704
704
|
o
|
|
705
705
|
);
|
|
706
706
|
return Hi(p);
|
|
707
|
-
}, Wi = (e = {}) => !He(e) || O(e) ? [] :
|
|
707
|
+
}, Wi = (e = {}) => !He(e) || O(e) ? [] : Ye(e), ha = (e = []) => !ae(e) || O(e) ? [] : we(e, "platform"), Ji = (e = []) => !ae(e) || O(e) ? [] : we(e, "gameTypeName"), zi = (e = []) => !ae(e) || O(e) ? [] : we(e, "game_subtype"), Vi = (e = {}) => !He(e) || O(e) ? [] : Ye(e), Zi = (e = [], t = []) => !ae(e) || O(e) ? {} : !ae(t) || O(t) ? {} : e.reduce((g, u) => {
|
|
708
708
|
const o = t.map((p) => p.game_subtype);
|
|
709
709
|
return o.forEach((p) => {
|
|
710
710
|
g[p] = g[p] || [];
|
|
@@ -715,7 +715,7 @@ const Ka = Za(null), Tl = () => {
|
|
|
715
715
|
gameList: g = {},
|
|
716
716
|
allGameTypes: u = [],
|
|
717
717
|
allPlatforms: o = []
|
|
718
|
-
}) => !
|
|
718
|
+
}) => !ae(e) || !ae(t) ? {} : O(g) ? {} : e.reduce((p, f) => {
|
|
719
719
|
const _ = wi({
|
|
720
720
|
gameTypeName: f,
|
|
721
721
|
platforms: t,
|
|
@@ -768,7 +768,7 @@ const Ka = Za(null), Tl = () => {
|
|
|
768
768
|
highlightGames: s = [],
|
|
769
769
|
originPlatform: m = []
|
|
770
770
|
}) => {
|
|
771
|
-
const i = Wi(e), d =
|
|
771
|
+
const i = Wi(e), d = ha(t), l = Ji(g), n = zi(u), y = ha(m), b = Vi(_), c = Ii({
|
|
772
772
|
gameTypes: l,
|
|
773
773
|
platforms: d,
|
|
774
774
|
gameList: e,
|
|
@@ -805,7 +805,7 @@ const Ka = Za(null), Tl = () => {
|
|
|
805
805
|
favorite: b
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
|
-
}, hl = (e = []) => !
|
|
808
|
+
}, hl = (e = []) => !ae(e) || O(e) ? [] : Ye(e, (t) => O(t.SubPlatformEnum) ? t : t.SubPlatformEnum.map((g) => ({
|
|
809
809
|
...t,
|
|
810
810
|
...g,
|
|
811
811
|
platform: g.SubPlatformEnum,
|
|
@@ -830,7 +830,7 @@ const Ka = Za(null), Tl = () => {
|
|
|
830
830
|
return e;
|
|
831
831
|
}
|
|
832
832
|
}, ce = () => {
|
|
833
|
-
const { client: e } =
|
|
833
|
+
const { client: e } = ie(), t = A(
|
|
834
834
|
async (r) => {
|
|
835
835
|
const { mac_address: s = "", app_version: m = "", anydesk_id: i = "" } = r, { data: d } = await e.post("/cash-register/login", {
|
|
836
836
|
mac_address: s,
|
|
@@ -879,7 +879,7 @@ const Ka = Za(null), Tl = () => {
|
|
|
879
879
|
},
|
|
880
880
|
user: { favorite: [] }
|
|
881
881
|
}, Qi = ({ enabled: e = !0 } = {}) => {
|
|
882
|
-
const { getToken: t } =
|
|
882
|
+
const { getToken: t } = ie(), { userFavoriteGameApi: g, userGameListApi: u } = ce(), { data: o, isLoading: p, error: f, refetch: _ } = ee({
|
|
883
883
|
queryKey: ["gamesInfo"],
|
|
884
884
|
queryFn: async () => {
|
|
885
885
|
let r = {}, s = {};
|
|
@@ -916,7 +916,7 @@ const Ka = Za(null), Tl = () => {
|
|
|
916
916
|
error: f,
|
|
917
917
|
refetch: _
|
|
918
918
|
};
|
|
919
|
-
},
|
|
919
|
+
}, qi = (e = !1) => {
|
|
920
920
|
if (!e && window.gameTypeGroup) {
|
|
921
921
|
console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
|
|
922
922
|
return;
|
|
@@ -27443,13 +27443,13 @@ const Ka = Za(null), Tl = () => {
|
|
|
27443
27443
|
is_invalid_bet: 0
|
|
27444
27444
|
}
|
|
27445
27445
|
});
|
|
27446
|
-
},
|
|
27446
|
+
}, Yi = ({
|
|
27447
27447
|
children: e,
|
|
27448
27448
|
autoFetch: t = !1,
|
|
27449
27449
|
mockData: g = !1
|
|
27450
27450
|
}) => {
|
|
27451
27451
|
he(() => {
|
|
27452
|
-
g &&
|
|
27452
|
+
g && qi(!0);
|
|
27453
27453
|
}, [g]);
|
|
27454
27454
|
const u = Qi({ enabled: t });
|
|
27455
27455
|
return /* @__PURE__ */ Oe.jsx(Ka.Provider, { value: u, children: e });
|
|
@@ -27472,11 +27472,11 @@ function kl({
|
|
|
27472
27472
|
}),
|
|
27473
27473
|
[]
|
|
27474
27474
|
), _ = u || f;
|
|
27475
|
-
return /* @__PURE__ */ Oe.jsx(Di, { client: _, children: /* @__PURE__ */ Oe.jsx(Ba.Provider, { value: { client: p, ...o }, children: /* @__PURE__ */ Oe.jsx(
|
|
27475
|
+
return /* @__PURE__ */ Oe.jsx(Di, { client: _, children: /* @__PURE__ */ Oe.jsx(Ba.Provider, { value: { client: p, ...o }, children: /* @__PURE__ */ Oe.jsx(Yi, { autoFetch: t, mockData: g, children: e }) }) });
|
|
27476
27476
|
}
|
|
27477
27477
|
const Sl = ({ otherQueryKey: e = [], options: t = {} } = {}) => {
|
|
27478
|
-
const { userCurrencyExchangeApi: g } = ce(), { getToken: u } =
|
|
27479
|
-
return
|
|
27478
|
+
const { userCurrencyExchangeApi: g } = ce(), { getToken: u } = ie(), { enabled: o, ...p } = t, _ = !!u?.() && (o ? o.every((r) => r) : !0);
|
|
27479
|
+
return Ia({
|
|
27480
27480
|
queries: [
|
|
27481
27481
|
{
|
|
27482
27482
|
queryKey: ["userCurrencyExchange", ...e],
|
|
@@ -27493,8 +27493,8 @@ const Sl = ({ otherQueryKey: e = [], options: t = {} } = {}) => {
|
|
|
27493
27493
|
trigger: t = [],
|
|
27494
27494
|
enabled: g = !0
|
|
27495
27495
|
} = {}) => {
|
|
27496
|
-
const { getToken: u } =
|
|
27497
|
-
return
|
|
27496
|
+
const { getToken: u } = ie(), o = u?.(), { userInfoApi: p } = ce();
|
|
27497
|
+
return Ia({
|
|
27498
27498
|
queries: [
|
|
27499
27499
|
{
|
|
27500
27500
|
queryKey: ["getMemberInfo", ...t],
|
|
@@ -27510,19 +27510,19 @@ const Sl = ({ otherQueryKey: e = [], options: t = {} } = {}) => {
|
|
|
27510
27510
|
userFavoriteGameApi: g,
|
|
27511
27511
|
userGameListApi: u,
|
|
27512
27512
|
userCurrencyExchangeApi: o
|
|
27513
|
-
} = ce(), p =
|
|
27513
|
+
} = ce(), p = ee({
|
|
27514
27514
|
queryKey: ["getMemInfo"],
|
|
27515
27515
|
queryFn: async () => t(),
|
|
27516
27516
|
enabled: e
|
|
27517
|
-
}), f =
|
|
27517
|
+
}), f = ee({
|
|
27518
27518
|
queryKey: ["getFavoriteGame"],
|
|
27519
27519
|
queryFn: async () => g(),
|
|
27520
27520
|
enabled: e && p.isSuccess
|
|
27521
|
-
}), _ =
|
|
27521
|
+
}), _ = ee({
|
|
27522
27522
|
queryKey: ["getUserGameList"],
|
|
27523
27523
|
queryFn: async () => u(),
|
|
27524
27524
|
enabled: e && p.isSuccess && f.isSuccess
|
|
27525
|
-
}), r =
|
|
27525
|
+
}), r = ee({
|
|
27526
27526
|
queryKey: ["getUserCurrencyExchange"],
|
|
27527
27527
|
queryFn: async () => o(),
|
|
27528
27528
|
enabled: e && p.isSuccess && f.isSuccess && _.isSuccess
|
|
@@ -27534,9 +27534,9 @@ const Sl = ({ otherQueryKey: e = [], options: t = {} } = {}) => {
|
|
|
27534
27534
|
r
|
|
27535
27535
|
];
|
|
27536
27536
|
};
|
|
27537
|
-
var Ie = {}, J = {}, Ae = {},
|
|
27537
|
+
var Ie = {}, J = {}, Ae = {}, ka;
|
|
27538
27538
|
function B() {
|
|
27539
|
-
return
|
|
27539
|
+
return ka || (ka = 1, (function(e) {
|
|
27540
27540
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
|
|
27541
27541
|
var t = 1, g = 1e3 * t;
|
|
27542
27542
|
e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
|
|
@@ -27561,9 +27561,9 @@ function B() {
|
|
|
27561
27561
|
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && o();
|
|
27562
27562
|
})(Ae)), Ae;
|
|
27563
27563
|
}
|
|
27564
|
-
var Ce = {}, Be = {},
|
|
27565
|
-
function
|
|
27566
|
-
return
|
|
27564
|
+
var Ce = {}, Be = {}, Sa;
|
|
27565
|
+
function Xe() {
|
|
27566
|
+
return Sa || (Sa = 1, (function(e) {
|
|
27567
27567
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
|
|
27568
27568
|
var t = function(g) {
|
|
27569
27569
|
if (g && e.sharedWebSockets.hasOwnProperty(g))
|
|
@@ -27575,10 +27575,10 @@ function $e() {
|
|
|
27575
27575
|
e.resetWebSockets = t;
|
|
27576
27576
|
})(Be)), Be;
|
|
27577
27577
|
}
|
|
27578
|
-
var
|
|
27579
|
-
function
|
|
27580
|
-
if (
|
|
27581
|
-
|
|
27578
|
+
var re = {}, q = {}, Na;
|
|
27579
|
+
function $e() {
|
|
27580
|
+
if (Na) return q;
|
|
27581
|
+
Na = 1, Object.defineProperty(q, "__esModule", { value: !0 }), q.setUpSocketIOPing = q.appendQueryParams = q.parseSocketIOUrl = void 0;
|
|
27582
27582
|
var e = B(), t = function(o) {
|
|
27583
27583
|
if (o) {
|
|
27584
27584
|
var p = /^https|wss/.test(o), f = o.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = f.replace(/\/$/, ""), r = p ? "wss" : "ws";
|
|
@@ -27589,7 +27589,7 @@ function ea() {
|
|
|
27589
27589
|
}
|
|
27590
27590
|
return o;
|
|
27591
27591
|
};
|
|
27592
|
-
|
|
27592
|
+
q.parseSocketIOUrl = t;
|
|
27593
27593
|
var g = function(o, p) {
|
|
27594
27594
|
p === void 0 && (p = {});
|
|
27595
27595
|
var f = /\?([\w]+=[\w]+)/, _ = f.test(o), r = "".concat(Object.entries(p).reduce(function(s, m) {
|
|
@@ -27598,7 +27598,7 @@ function ea() {
|
|
|
27598
27598
|
}, "").slice(0, -1));
|
|
27599
27599
|
return "".concat(o).concat(_ ? "&" : "?").concat(r);
|
|
27600
27600
|
};
|
|
27601
|
-
|
|
27601
|
+
q.appendQueryParams = g;
|
|
27602
27602
|
var u = function(o, p) {
|
|
27603
27603
|
p === void 0 && (p = e.SOCKET_IO_PING_INTERVAL);
|
|
27604
27604
|
var f = function() {
|
|
@@ -27606,12 +27606,12 @@ function ea() {
|
|
|
27606
27606
|
};
|
|
27607
27607
|
return window.setInterval(f, p);
|
|
27608
27608
|
};
|
|
27609
|
-
return
|
|
27609
|
+
return q.setUpSocketIOPing = u, q;
|
|
27610
27610
|
}
|
|
27611
|
-
var xe = {},
|
|
27611
|
+
var xe = {}, Da;
|
|
27612
27612
|
function $a() {
|
|
27613
|
-
if (
|
|
27614
|
-
|
|
27613
|
+
if (Da) return xe;
|
|
27614
|
+
Da = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.heartbeat = g;
|
|
27615
27615
|
var e = B();
|
|
27616
27616
|
function t(u) {
|
|
27617
27617
|
return Array.isArray(u) ? u.reduce(function(o, p) {
|
|
@@ -27637,9 +27637,9 @@ function $a() {
|
|
|
27637
27637
|
}
|
|
27638
27638
|
return xe;
|
|
27639
27639
|
}
|
|
27640
|
-
var ve = {}, Ke = {},
|
|
27641
|
-
function
|
|
27642
|
-
return
|
|
27640
|
+
var ve = {}, Ke = {}, Ea;
|
|
27641
|
+
function ea() {
|
|
27642
|
+
return Ea || (Ea = 1, (function(e) {
|
|
27643
27643
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
|
|
27644
27644
|
var t = {}, g = [], u = function(r) {
|
|
27645
27645
|
return (0, e.hasSubscribers)(r) ? Array.from(t[r]) : g;
|
|
@@ -27668,11 +27668,11 @@ function aa() {
|
|
|
27668
27668
|
e.resetSubscribers = _;
|
|
27669
27669
|
})(Ke)), Ke;
|
|
27670
27670
|
}
|
|
27671
|
-
var
|
|
27672
|
-
function
|
|
27673
|
-
if (
|
|
27674
|
-
|
|
27675
|
-
var e =
|
|
27671
|
+
var La;
|
|
27672
|
+
function aa() {
|
|
27673
|
+
if (La) return ve;
|
|
27674
|
+
La = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.assertIsWebSocket = g, ve.resetGlobalState = u;
|
|
27675
|
+
var e = Xe(), t = ea();
|
|
27676
27676
|
function g(o, p) {
|
|
27677
27677
|
if (!p && !(o instanceof WebSocket))
|
|
27678
27678
|
throw new Error("");
|
|
@@ -27682,11 +27682,11 @@ function ia() {
|
|
|
27682
27682
|
}
|
|
27683
27683
|
return ve;
|
|
27684
27684
|
}
|
|
27685
|
-
var
|
|
27685
|
+
var Ga;
|
|
27686
27686
|
function Xi() {
|
|
27687
|
-
if (
|
|
27688
|
-
|
|
27689
|
-
var e =
|
|
27687
|
+
if (Ga) return re;
|
|
27688
|
+
Ga = 1;
|
|
27689
|
+
var e = re && re.__assign || function() {
|
|
27690
27690
|
return e = Object.assign || function(m) {
|
|
27691
27691
|
for (var i, d = 1, l = arguments.length; d < l; d++) {
|
|
27692
27692
|
i = arguments[d];
|
|
@@ -27695,8 +27695,8 @@ function Xi() {
|
|
|
27695
27695
|
return m;
|
|
27696
27696
|
}, e.apply(this, arguments);
|
|
27697
27697
|
};
|
|
27698
|
-
Object.defineProperty(
|
|
27699
|
-
var t =
|
|
27698
|
+
Object.defineProperty(re, "__esModule", { value: !0 }), re.attachListeners = void 0;
|
|
27699
|
+
var t = $e(), g = $a(), u = B(), o = aa(), p = function(m, i, d, l) {
|
|
27700
27700
|
m.onmessage = function(n) {
|
|
27701
27701
|
var y;
|
|
27702
27702
|
i.current.onMessage && i.current.onMessage(n), typeof l?.current == "number" && (l.current = Date.now()), !(typeof i.current.filter == "function" && i.current.filter(n) !== !0) && (i.current.heartbeat && typeof i.current.heartbeat != "boolean" && ((y = i.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === n.data || d(n));
|
|
@@ -27750,13 +27750,13 @@ function Xi() {
|
|
|
27750
27750
|
T(u.ReadyState.CLOSING), D(), h(), m.close(), S && clearInterval(S);
|
|
27751
27751
|
};
|
|
27752
27752
|
};
|
|
27753
|
-
return
|
|
27753
|
+
return re.attachListeners = s, re;
|
|
27754
27754
|
}
|
|
27755
|
-
var
|
|
27755
|
+
var oe = {}, Ma;
|
|
27756
27756
|
function $i() {
|
|
27757
|
-
if (
|
|
27758
|
-
|
|
27759
|
-
var e =
|
|
27757
|
+
if (Ma) return oe;
|
|
27758
|
+
Ma = 1;
|
|
27759
|
+
var e = oe && oe.__assign || function() {
|
|
27760
27760
|
return e = Object.assign || function(i) {
|
|
27761
27761
|
for (var d, l = 1, n = arguments.length; l < n; l++) {
|
|
27762
27762
|
d = arguments[l];
|
|
@@ -27765,8 +27765,8 @@ function $i() {
|
|
|
27765
27765
|
return i;
|
|
27766
27766
|
}, e.apply(this, arguments);
|
|
27767
27767
|
};
|
|
27768
|
-
Object.defineProperty(
|
|
27769
|
-
var t =
|
|
27768
|
+
Object.defineProperty(oe, "__esModule", { value: !0 }), oe.attachSharedListeners = void 0;
|
|
27769
|
+
var t = Xe(), g = B(), u = ea(), o = $e(), p = $a(), f = function(i, d, l) {
|
|
27770
27770
|
i.onmessage = function(n) {
|
|
27771
27771
|
(0, u.getSubscribers)(d).forEach(function(y) {
|
|
27772
27772
|
var b;
|
|
@@ -27812,13 +27812,13 @@ function $i() {
|
|
|
27812
27812
|
y && clearInterval(y);
|
|
27813
27813
|
};
|
|
27814
27814
|
};
|
|
27815
|
-
return
|
|
27815
|
+
return oe.attachSharedListeners = m, oe;
|
|
27816
27816
|
}
|
|
27817
|
-
var
|
|
27817
|
+
var Ra;
|
|
27818
27818
|
function el() {
|
|
27819
|
-
if (
|
|
27820
|
-
|
|
27821
|
-
var e =
|
|
27819
|
+
if (Ra) return Ce;
|
|
27820
|
+
Ra = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.createOrJoinSocket = void 0;
|
|
27821
|
+
var e = Xe(), t = B(), g = Xi(), u = $i(), o = ea(), p = function(_, r, s, m, i) {
|
|
27822
27822
|
return function() {
|
|
27823
27823
|
if ((0, o.removeSubscriber)(_, r), !(0, o.hasSubscribers)(_)) {
|
|
27824
27824
|
try {
|
|
@@ -27857,10 +27857,10 @@ function el() {
|
|
|
27857
27857
|
};
|
|
27858
27858
|
return Ce.createOrJoinSocket = f, Ce;
|
|
27859
27859
|
}
|
|
27860
|
-
var
|
|
27860
|
+
var Y = {}, Pa;
|
|
27861
27861
|
function al() {
|
|
27862
|
-
return
|
|
27863
|
-
var t =
|
|
27862
|
+
return Pa || (Pa = 1, (function(e) {
|
|
27863
|
+
var t = Y && Y.__awaiter || function(r, s, m, i) {
|
|
27864
27864
|
function d(l) {
|
|
27865
27865
|
return l instanceof m ? l : new m(function(n) {
|
|
27866
27866
|
n(l);
|
|
@@ -27886,7 +27886,7 @@ function al() {
|
|
|
27886
27886
|
}
|
|
27887
27887
|
c((i = i.apply(r, s || [])).next());
|
|
27888
27888
|
});
|
|
27889
|
-
}, g =
|
|
27889
|
+
}, g = Y && Y.__generator || function(r, s) {
|
|
27890
27890
|
var m = { label: 0, sent: function() {
|
|
27891
27891
|
if (l[0] & 1) throw l[1];
|
|
27892
27892
|
return l[1];
|
|
@@ -27945,13 +27945,13 @@ function al() {
|
|
|
27945
27945
|
if (c[0] & 5) throw c[1];
|
|
27946
27946
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
27947
27947
|
}
|
|
27948
|
-
}, u =
|
|
27948
|
+
}, u = Y && Y.__spreadArray || function(r, s, m) {
|
|
27949
27949
|
if (m || arguments.length === 2) for (var i = 0, d = s.length, l; i < d; i++)
|
|
27950
27950
|
(l || !(i in s)) && (l || (l = Array.prototype.slice.call(s, 0, i)), l[i] = s[i]);
|
|
27951
27951
|
return r.concat(l || Array.prototype.slice.call(s));
|
|
27952
27952
|
};
|
|
27953
27953
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
|
|
27954
|
-
var o =
|
|
27954
|
+
var o = $e(), p = B(), f = function(r) {
|
|
27955
27955
|
return new Promise(function(s) {
|
|
27956
27956
|
return window.setTimeout(s, r);
|
|
27957
27957
|
});
|
|
@@ -27992,11 +27992,11 @@ function al() {
|
|
|
27992
27992
|
});
|
|
27993
27993
|
};
|
|
27994
27994
|
e.getUrl = _;
|
|
27995
|
-
})(
|
|
27995
|
+
})(Y)), Y;
|
|
27996
27996
|
}
|
|
27997
|
-
var je = {},
|
|
27997
|
+
var je = {}, xa;
|
|
27998
27998
|
function il() {
|
|
27999
|
-
return
|
|
27999
|
+
return xa || (xa = 1, (function(e) {
|
|
28000
28000
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
28001
28001
|
var t = function(g, u) {
|
|
28002
28002
|
return new Proxy(g, {
|
|
@@ -28013,10 +28013,10 @@ function il() {
|
|
|
28013
28013
|
e.websocketWrapper = t, e.default = e.websocketWrapper;
|
|
28014
28014
|
})(je)), je;
|
|
28015
28015
|
}
|
|
28016
|
-
var
|
|
28017
|
-
function
|
|
28018
|
-
if (
|
|
28019
|
-
|
|
28016
|
+
var Oa;
|
|
28017
|
+
function ia() {
|
|
28018
|
+
if (Oa) return J;
|
|
28019
|
+
Oa = 1;
|
|
28020
28020
|
var e = J && J.__assign || function() {
|
|
28021
28021
|
return e = Object.assign || function(d) {
|
|
28022
28022
|
for (var l, n = 1, y = arguments.length; n < y; n++) {
|
|
@@ -28114,7 +28114,7 @@ function la() {
|
|
|
28114
28114
|
return d && d.__esModule ? d : { default: d };
|
|
28115
28115
|
};
|
|
28116
28116
|
Object.defineProperty(J, "__esModule", { value: !0 }), J.useWebSocket = void 0;
|
|
28117
|
-
var o = ke, p = Gi, f = B(), _ = el(), r = al(), s = u(il()), m =
|
|
28117
|
+
var o = ke, p = Gi, f = B(), _ = el(), r = al(), s = u(il()), m = aa(), i = function(d, l, n) {
|
|
28118
28118
|
l === void 0 && (l = f.DEFAULT_OPTIONS), n === void 0 && (n = !0);
|
|
28119
28119
|
var y = (0, o.useState)(null), b = y[0], c = y[1], T = (0, o.useState)({}), S = T[0], D = T[1], h = (0, o.useMemo)(function() {
|
|
28120
28120
|
if (!l.disableJson && b)
|
|
@@ -28127,7 +28127,7 @@ function la() {
|
|
|
28127
28127
|
}, [b, l.disableJson]), E = (0, o.useRef)(null), M = (0, o.useRef)(null), _e = (0, o.useRef)(function() {
|
|
28128
28128
|
}), fe = (0, o.useRef)(0), Fe = (0, o.useRef)(Date.now()), Se = (0, o.useRef)([]), Z = (0, o.useRef)(null), H = (0, o.useRef)(l);
|
|
28129
28129
|
H.current = l;
|
|
28130
|
-
var V = E.current && S[E.current] !== void 0 ? S[E.current] : d !== null && n === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED,
|
|
28130
|
+
var V = E.current && S[E.current] !== void 0 ? S[E.current] : d !== null && n === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, le = l.queryParams ? JSON.stringify(l.queryParams) : null, K = (0, o.useCallback)(function(x, w) {
|
|
28131
28131
|
var j;
|
|
28132
28132
|
if (w === void 0 && (w = !0), f.isEventSourceSupported && M.current instanceof EventSource) {
|
|
28133
28133
|
console.warn("Unable to send a message from an eventSource");
|
|
@@ -28143,13 +28143,13 @@ function la() {
|
|
|
28143
28143
|
if (d !== null && n === !0) {
|
|
28144
28144
|
var x, w = !1, j = !0, Ue = function() {
|
|
28145
28145
|
return t(void 0, void 0, void 0, function() {
|
|
28146
|
-
var
|
|
28146
|
+
var te, $, Ee;
|
|
28147
28147
|
return g(this, function(ue) {
|
|
28148
28148
|
switch (ue.label) {
|
|
28149
28149
|
case 0:
|
|
28150
|
-
return
|
|
28150
|
+
return te = E, [4, (0, r.getUrl)(d, H)];
|
|
28151
28151
|
case 1:
|
|
28152
|
-
return
|
|
28152
|
+
return te.current = ue.sent(), E.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), E.current = "ABORTED", (0, p.flushSync)(function() {
|
|
28153
28153
|
return D(function(Q) {
|
|
28154
28154
|
return e(e({}, Q), { ABORTED: f.ReadyState.CLOSED });
|
|
28155
28155
|
});
|
|
@@ -28163,8 +28163,8 @@ function la() {
|
|
|
28163
28163
|
}, Ee = function(Q) {
|
|
28164
28164
|
w || (0, p.flushSync)(function() {
|
|
28165
28165
|
return D(function(pe) {
|
|
28166
|
-
var
|
|
28167
|
-
return e(e({}, pe), E.current && (
|
|
28166
|
+
var ne;
|
|
28167
|
+
return e(e({}, pe), E.current && (ne = {}, ne[E.current] = Q, ne));
|
|
28168
28168
|
});
|
|
28169
28169
|
});
|
|
28170
28170
|
}, j && (x = (0, _.createOrJoinSocket)(M, E.current, Ee, H, $, _e, fe, Fe, K)), [
|
|
@@ -28180,11 +28180,11 @@ function la() {
|
|
|
28180
28180
|
}, Ue(), function() {
|
|
28181
28181
|
w = !0, j = !1, Z.current && (Z.current = null), x?.(), c(null);
|
|
28182
28182
|
};
|
|
28183
|
-
} else (d === null || n === !1) && (fe.current = 0, D(function(
|
|
28183
|
+
} else (d === null || n === !1) && (fe.current = 0, D(function(te) {
|
|
28184
28184
|
var $;
|
|
28185
|
-
return e(e({},
|
|
28185
|
+
return e(e({}, te), E.current && ($ = {}, $[E.current] = f.ReadyState.CLOSED, $));
|
|
28186
28186
|
}));
|
|
28187
|
-
}, [d, n,
|
|
28187
|
+
}, [d, n, le, K]), (0, o.useEffect)(function() {
|
|
28188
28188
|
V === f.ReadyState.OPEN && Se.current.splice(0).forEach(function(x) {
|
|
28189
28189
|
K(x);
|
|
28190
28190
|
});
|
|
@@ -28199,11 +28199,11 @@ function la() {
|
|
|
28199
28199
|
};
|
|
28200
28200
|
return J.useWebSocket = i, J;
|
|
28201
28201
|
}
|
|
28202
|
-
var
|
|
28202
|
+
var se = {}, Ha;
|
|
28203
28203
|
function ll() {
|
|
28204
|
-
if (
|
|
28205
|
-
|
|
28206
|
-
var e =
|
|
28204
|
+
if (Ha) return se;
|
|
28205
|
+
Ha = 1;
|
|
28206
|
+
var e = se && se.__assign || function() {
|
|
28207
28207
|
return e = Object.assign || function(_) {
|
|
28208
28208
|
for (var r, s = 1, m = arguments.length; s < m; s++) {
|
|
28209
28209
|
r = arguments[s];
|
|
@@ -28212,8 +28212,8 @@ function ll() {
|
|
|
28212
28212
|
return _;
|
|
28213
28213
|
}, e.apply(this, arguments);
|
|
28214
28214
|
};
|
|
28215
|
-
Object.defineProperty(
|
|
28216
|
-
var t = ke, g =
|
|
28215
|
+
Object.defineProperty(se, "__esModule", { value: !0 }), se.useSocketIO = void 0;
|
|
28216
|
+
var t = ke, g = ia(), u = B(), o = {
|
|
28217
28217
|
type: "empty",
|
|
28218
28218
|
payload: null
|
|
28219
28219
|
}, p = function(_) {
|
|
@@ -28243,12 +28243,12 @@ function ll() {
|
|
|
28243
28243
|
getWebSocket: b
|
|
28244
28244
|
};
|
|
28245
28245
|
};
|
|
28246
|
-
return
|
|
28246
|
+
return se.useSocketIO = f, se;
|
|
28247
28247
|
}
|
|
28248
|
-
var X = {},
|
|
28248
|
+
var X = {}, wa;
|
|
28249
28249
|
function tl() {
|
|
28250
|
-
if (
|
|
28251
|
-
|
|
28250
|
+
if (wa) return X;
|
|
28251
|
+
wa = 1;
|
|
28252
28252
|
var e = X && X.__assign || function() {
|
|
28253
28253
|
return e = Object.assign || function(f) {
|
|
28254
28254
|
for (var _, r = 1, s = arguments.length; r < s; r++) {
|
|
@@ -28266,7 +28266,7 @@ function tl() {
|
|
|
28266
28266
|
return r;
|
|
28267
28267
|
};
|
|
28268
28268
|
Object.defineProperty(X, "__esModule", { value: !0 }), X.useEventSource = void 0;
|
|
28269
|
-
var g = ke, u =
|
|
28269
|
+
var g = ke, u = ia(), o = B(), p = function(f, _, r) {
|
|
28270
28270
|
_ === void 0 && (_ = o.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
28271
28271
|
var s = _.withCredentials, m = _.events, i = t(_, ["withCredentials", "events"]);
|
|
28272
28272
|
r === void 0 && (r = !0);
|
|
@@ -28288,11 +28288,11 @@ function tl() {
|
|
|
28288
28288
|
};
|
|
28289
28289
|
return X.useEventSource = p, X;
|
|
28290
28290
|
}
|
|
28291
|
-
var
|
|
28291
|
+
var Fa;
|
|
28292
28292
|
function nl() {
|
|
28293
|
-
return
|
|
28293
|
+
return Fa || (Fa = 1, (function(e) {
|
|
28294
28294
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
|
28295
|
-
var t =
|
|
28295
|
+
var t = ia();
|
|
28296
28296
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
|
28297
28297
|
return t.useWebSocket;
|
|
28298
28298
|
} });
|
|
@@ -28308,7 +28308,7 @@ function nl() {
|
|
|
28308
28308
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
28309
28309
|
return o.useEventSource;
|
|
28310
28310
|
} });
|
|
28311
|
-
var p =
|
|
28311
|
+
var p = aa();
|
|
28312
28312
|
Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
|
|
28313
28313
|
return p.resetGlobalState;
|
|
28314
28314
|
} });
|
|
@@ -28331,7 +28331,7 @@ const rl = /* @__PURE__ */ Mi(ml), I = {
|
|
|
28331
28331
|
socketHandlers: t = {},
|
|
28332
28332
|
options: g = {}
|
|
28333
28333
|
}) => {
|
|
28334
|
-
const u =
|
|
28334
|
+
const u = ya(!1), o = ya(t), {
|
|
28335
28335
|
sendMessage: p,
|
|
28336
28336
|
// 發送普通訊息
|
|
28337
28337
|
sendJsonMessage: f,
|
|
@@ -28421,20 +28421,20 @@ const rl = /* @__PURE__ */ Mi(ml), I = {
|
|
|
28421
28421
|
// WebSocket 連線狀態
|
|
28422
28422
|
};
|
|
28423
28423
|
}, ei = () => {
|
|
28424
|
-
const { client: e } =
|
|
28424
|
+
const { client: e } = ie(), t = A(async () => {
|
|
28425
28425
|
const { data: u } = await e.get("/carousels");
|
|
28426
28426
|
return u;
|
|
28427
28427
|
}, [e]), g = A(async () => await e.get("/marquees"), [e]);
|
|
28428
28428
|
return { commonCarouselApi: t, commonMarqueeApi: g };
|
|
28429
28429
|
}, Ll = () => {
|
|
28430
28430
|
const { commonCarouselApi: e } = ei();
|
|
28431
|
-
return
|
|
28431
|
+
return ee({
|
|
28432
28432
|
queryKey: ["getCarouselList"],
|
|
28433
28433
|
queryFn: async () => await e()
|
|
28434
28434
|
});
|
|
28435
28435
|
}, Gl = () => {
|
|
28436
|
-
const { lng: e } =
|
|
28437
|
-
return
|
|
28436
|
+
const { lng: e } = ie(), { commonMarqueeApi: t } = ei(), g = Xa(e);
|
|
28437
|
+
return ee({
|
|
28438
28438
|
queryKey: ["getMarqueeList"],
|
|
28439
28439
|
queryFn: async () => t(),
|
|
28440
28440
|
select: (u) => {
|
|
@@ -28443,7 +28443,7 @@ const rl = /* @__PURE__ */ Mi(ml), I = {
|
|
|
28443
28443
|
}
|
|
28444
28444
|
});
|
|
28445
28445
|
}, sl = () => {
|
|
28446
|
-
const { client: e, lng: t } =
|
|
28446
|
+
const { client: e, lng: t } = ie(), g = Xa(t || "tw");
|
|
28447
28447
|
return { playGameApi: A(
|
|
28448
28448
|
async (o) => {
|
|
28449
28449
|
const {
|
|
@@ -28470,12 +28470,12 @@ const rl = /* @__PURE__ */ Mi(ml), I = {
|
|
|
28470
28470
|
},
|
|
28471
28471
|
[e, g]
|
|
28472
28472
|
) };
|
|
28473
|
-
}, Ml = (e) => {
|
|
28474
|
-
const { playGameApi:
|
|
28475
|
-
return
|
|
28476
|
-
|
|
28477
|
-
|
|
28478
|
-
const { gameUid: u, gameCode: o, isMobile: p, gameCurrency: f, currentCurrency: _ } =
|
|
28473
|
+
}, Ml = (e, t) => {
|
|
28474
|
+
const { playGameApi: g } = sl();
|
|
28475
|
+
return ee({
|
|
28476
|
+
queryKey: ["playGame"],
|
|
28477
|
+
queryFn: async () => {
|
|
28478
|
+
const { gameUid: u, gameCode: o, isMobile: p, gameCurrency: f, currentCurrency: _ } = e || {}, r = await g({
|
|
28479
28479
|
gameUid: u,
|
|
28480
28480
|
gameCode: o,
|
|
28481
28481
|
isMobile: p,
|
|
@@ -28490,18 +28490,19 @@ const rl = /* @__PURE__ */ Mi(ml), I = {
|
|
|
28490
28490
|
gameUrl: l
|
|
28491
28491
|
};
|
|
28492
28492
|
},
|
|
28493
|
-
|
|
28493
|
+
enabled: !!e?.gameCode,
|
|
28494
|
+
...t
|
|
28494
28495
|
});
|
|
28495
28496
|
}, ul = ({ options: e } = {}) => {
|
|
28496
28497
|
const { userLoginApi: t } = ce();
|
|
28497
|
-
return
|
|
28498
|
+
return Aa({
|
|
28498
28499
|
mutationKey: ["userLogin"],
|
|
28499
28500
|
mutationFn: async (g) => t(g),
|
|
28500
28501
|
...e
|
|
28501
28502
|
});
|
|
28502
28503
|
}, pl = ({ options: e } = {}) => {
|
|
28503
28504
|
const { userLogoutApi: t } = ce();
|
|
28504
|
-
return
|
|
28505
|
+
return Aa({
|
|
28505
28506
|
mutationKey: ["userLogout"],
|
|
28506
28507
|
mutationFn: async () => t(),
|
|
28507
28508
|
...e
|
|
@@ -28514,7 +28515,7 @@ const rl = /* @__PURE__ */ Mi(ml), I = {
|
|
|
28514
28515
|
} = {}) => {
|
|
28515
28516
|
const t = ul({ options: e.login }), g = pl({ options: e.logout });
|
|
28516
28517
|
return { login: t, logout: g };
|
|
28517
|
-
},
|
|
28518
|
+
}, Wa = (e) => {
|
|
28518
28519
|
switch (e) {
|
|
28519
28520
|
case "tw":
|
|
28520
28521
|
return "Tw";
|
|
@@ -28533,8 +28534,8 @@ const rl = /* @__PURE__ */ Mi(ml), I = {
|
|
|
28533
28534
|
default:
|
|
28534
28535
|
return "En";
|
|
28535
28536
|
}
|
|
28536
|
-
}, gl = "https://d1h3qe8voog6w4.cloudfront.net",
|
|
28537
|
-
const { lng: t } =
|
|
28537
|
+
}, gl = "https://d1h3qe8voog6w4.cloudfront.net", Ja = "https://d3jx2uvukujuvn.cloudfront.net", za = "game-icon-ds88", Pl = ({ gameData: e = {} } = {}) => {
|
|
28538
|
+
const { lng: t } = ie(), g = Wa(t), {
|
|
28538
28539
|
gameCode: u,
|
|
28539
28540
|
// 遊戲代碼
|
|
28540
28541
|
gameUid: o,
|
|
@@ -28572,7 +28573,7 @@ const rl = /* @__PURE__ */ Mi(ml), I = {
|
|
|
28572
28573
|
// 越南名稱
|
|
28573
28574
|
gameNameTw: D
|
|
28574
28575
|
// 繁體中文名稱
|
|
28575
|
-
} = e, h = e?.[`gameName${
|
|
28576
|
+
} = e, h = e?.[`gameName${Wa(g)}`], E = `${Ja}/${za}/en/${s}/${ba(u, / /g, "_")}.webp`, M = `${Ja}/${za}/en/${s}/${ba(u, / /g, "_")}.gif`;
|
|
28576
28577
|
return {
|
|
28577
28578
|
gameCode: u,
|
|
28578
28579
|
gameUid: o,
|
|
@@ -28657,20 +28658,20 @@ export {
|
|
|
28657
28658
|
Cl as createLogoutHandler,
|
|
28658
28659
|
zi as extractGameSubTypeNames,
|
|
28659
28660
|
Ji as extractGameTypeNames,
|
|
28660
|
-
|
|
28661
|
-
|
|
28661
|
+
ha as extractPlatformNames,
|
|
28662
|
+
Ya as filterGamesByPlatform,
|
|
28662
28663
|
ja as findGameTypeUid,
|
|
28663
28664
|
Qa as findPlatformUid,
|
|
28664
|
-
|
|
28665
|
+
qa as findSubPlatform,
|
|
28665
28666
|
Wi as flattenAllGames,
|
|
28666
28667
|
Vi as flattenFavoriteGames,
|
|
28667
28668
|
Ai as groupGamesByPlatform,
|
|
28668
28669
|
Bi as groupGamesByPlatformAndSubType,
|
|
28669
28670
|
Hi as groupGamesBySubType,
|
|
28670
|
-
|
|
28671
|
+
qi as initMockWindowData,
|
|
28671
28672
|
Ki as processGameInfo,
|
|
28672
28673
|
hl as processPlatformData,
|
|
28673
|
-
|
|
28674
|
+
ie as useApiContext,
|
|
28674
28675
|
Sl as useBalanceGetter,
|
|
28675
28676
|
El as useClientWebSocket,
|
|
28676
28677
|
Pl as useGameConfig,
|