@obb871001/api-integration-sdk 1.0.97 → 1.0.98
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 +6 -6
- package/dist/index.js +195 -194
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import ke, { createContext as
|
|
2
|
-
import { useQuery as oe, QueryClient as
|
|
3
|
-
import
|
|
4
|
-
import { find as Ye, isEmpty as O, isObject as He, flatMap as qe, isArray as ee, map as we, get as Re, replace as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
1
|
+
import ke, { createContext as Za, useContext as Va, useCallback as X, useMemo as Qe, useEffect as he, useRef as ya } from "react";
|
|
2
|
+
import { useQuery as oe, QueryClient as Si, QueryClientProvider as Ni, useQueries as Ia, useMutation as Aa } from "@tanstack/react-query";
|
|
3
|
+
import Di from "axios";
|
|
4
|
+
import { find as Ye, isEmpty as O, isObject as He, flatMap as qe, isArray as ee, map as we, get as Re, replace as ba } from "lodash";
|
|
5
|
+
import Ei from "react-dom";
|
|
6
|
+
function Li(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
|
|
11
|
-
function
|
|
12
|
-
if (
|
|
13
|
-
|
|
10
|
+
var Ta;
|
|
11
|
+
function Gi() {
|
|
12
|
+
if (Ta) return be;
|
|
13
|
+
Ta = 1;
|
|
14
14
|
var e = ke, m = Symbol.for("react.element"), c = Symbol.for("react.fragment"), s = 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, u) {
|
|
16
16
|
var n, i = {}, d = null, l = null;
|
|
@@ -22,9 +22,9 @@ function Ei() {
|
|
|
22
22
|
return be.Fragment = c, be.jsx = f, be.jsxs = f, be;
|
|
23
23
|
}
|
|
24
24
|
var Te = {};
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return
|
|
25
|
+
var Ca;
|
|
26
|
+
function Mi() {
|
|
27
|
+
return Ca || (Ca = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
28
28
|
var e = ke, m = Symbol.for("react.element"), c = Symbol.for("react.portal"), s = 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"), u = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), i = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), t = Symbol.iterator, y = "@@iterator";
|
|
29
29
|
function b(a) {
|
|
30
30
|
if (a === null || typeof a != "object")
|
|
@@ -192,8 +192,8 @@ function Li() {
|
|
|
192
192
|
}
|
|
193
193
|
var le = !1, Le;
|
|
194
194
|
{
|
|
195
|
-
var
|
|
196
|
-
Le = new
|
|
195
|
+
var ei = typeof WeakMap == "function" ? WeakMap : Map;
|
|
196
|
+
Le = new ei();
|
|
197
197
|
}
|
|
198
198
|
function la(a, U) {
|
|
199
199
|
if (!a || le)
|
|
@@ -266,10 +266,10 @@ function Li() {
|
|
|
266
266
|
var de = a ? a.displayName || a.name : "", te = de ? pe(de) : "";
|
|
267
267
|
return typeof a == "function" && Le.set(a, te), te;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function ai(a, U, C) {
|
|
270
270
|
return la(a, !1);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function ii(a) {
|
|
273
273
|
var U = a.prototype;
|
|
274
274
|
return !!(U && U.isReactComponent);
|
|
275
275
|
}
|
|
@@ -277,7 +277,7 @@ function Li() {
|
|
|
277
277
|
if (a == null)
|
|
278
278
|
return "";
|
|
279
279
|
if (typeof a == "function")
|
|
280
|
-
return la(a,
|
|
280
|
+
return la(a, ii(a));
|
|
281
281
|
if (typeof a == "string")
|
|
282
282
|
return pe(a);
|
|
283
283
|
switch (a) {
|
|
@@ -289,7 +289,7 @@ function Li() {
|
|
|
289
289
|
if (typeof a == "object")
|
|
290
290
|
switch (a.$$typeof) {
|
|
291
291
|
case r:
|
|
292
|
-
return
|
|
292
|
+
return ai(a.render);
|
|
293
293
|
case i:
|
|
294
294
|
return Ge(a.type, U, C);
|
|
295
295
|
case d: {
|
|
@@ -310,7 +310,7 @@ function Li() {
|
|
|
310
310
|
} else
|
|
311
311
|
na.setExtraStackFrame(null);
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function li(a, U, C, v, L) {
|
|
314
314
|
{
|
|
315
315
|
var G = Function.call.bind(ye);
|
|
316
316
|
for (var N in a)
|
|
@@ -329,17 +329,17 @@ function Li() {
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
var
|
|
332
|
+
var ti = Array.isArray;
|
|
333
333
|
function We(a) {
|
|
334
|
-
return
|
|
334
|
+
return ti(a);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function ni(a) {
|
|
337
337
|
{
|
|
338
338
|
var U = typeof Symbol == "function" && Symbol.toStringTag, C = U && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
339
339
|
return C;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function mi(a) {
|
|
343
343
|
try {
|
|
344
344
|
return ma(a), !1;
|
|
345
345
|
} catch {
|
|
@@ -350,16 +350,16 @@ function Li() {
|
|
|
350
350
|
return "" + a;
|
|
351
351
|
}
|
|
352
352
|
function ra(a) {
|
|
353
|
-
if (
|
|
354
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
353
|
+
if (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.", ni(a)), ma(a);
|
|
355
355
|
}
|
|
356
|
-
var oa = g.ReactCurrentOwner,
|
|
356
|
+
var oa = g.ReactCurrentOwner, ri = {
|
|
357
357
|
key: !0,
|
|
358
358
|
ref: !0,
|
|
359
359
|
__self: !0,
|
|
360
360
|
__source: !0
|
|
361
361
|
}, sa, ua;
|
|
362
|
-
function
|
|
362
|
+
function oi(a) {
|
|
363
363
|
if (ye.call(a, "ref")) {
|
|
364
364
|
var U = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
365
365
|
if (U && U.isReactWarning)
|
|
@@ -367,7 +367,7 @@ function Li() {
|
|
|
367
367
|
}
|
|
368
368
|
return a.ref !== void 0;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function si(a) {
|
|
371
371
|
if (ye.call(a, "key")) {
|
|
372
372
|
var U = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
373
373
|
if (U && U.isReactWarning)
|
|
@@ -375,10 +375,10 @@ function Li() {
|
|
|
375
375
|
}
|
|
376
376
|
return a.key !== void 0;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function ui(a, U) {
|
|
379
379
|
typeof a.ref == "string" && oa.current;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function pi(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));
|
|
@@ -389,7 +389,7 @@ function Li() {
|
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function gi(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));
|
|
@@ -400,7 +400,7 @@ function Li() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var di = function(a, U, C, v, L, G, N) {
|
|
404
404
|
var k = {
|
|
405
405
|
// This tag allows us to uniquely identify this as a React Element
|
|
406
406
|
$$typeof: m,
|
|
@@ -429,12 +429,12 @@ function Li() {
|
|
|
429
429
|
value: L
|
|
430
430
|
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
431
431
|
};
|
|
432
|
-
function
|
|
432
|
+
function ci(a, U, C, v, L) {
|
|
433
433
|
{
|
|
434
434
|
var G, N = {}, k = null, F = null;
|
|
435
|
-
C !== void 0 && (ra(C), k = "" + C),
|
|
435
|
+
C !== void 0 && (ra(C), k = "" + C), si(U) && (ra(U.key), k = "" + U.key), oi(U) && (F = U.ref, ui(U, L));
|
|
436
436
|
for (G in U)
|
|
437
|
-
ye.call(U, G) && !
|
|
437
|
+
ye.call(U, G) && !ri.hasOwnProperty(G) && (N[G] = U[G]);
|
|
438
438
|
if (a && a.defaultProps) {
|
|
439
439
|
var R = a.defaultProps;
|
|
440
440
|
for (G in R)
|
|
@@ -442,9 +442,9 @@ function Li() {
|
|
|
442
442
|
}
|
|
443
443
|
if (k || F) {
|
|
444
444
|
var P = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
445
|
-
k &&
|
|
445
|
+
k && pi(N, P), F && gi(N, P);
|
|
446
446
|
}
|
|
447
|
-
return
|
|
447
|
+
return di(a, k, F, L, v, oa.current, N);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
var Je = g.ReactCurrentOwner, pa = g.ReactDebugCurrentFrame;
|
|
@@ -472,11 +472,11 @@ Check the render method of \`` + a + "`.";
|
|
|
472
472
|
return "";
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function _i(a) {
|
|
476
476
|
return "";
|
|
477
477
|
}
|
|
478
478
|
var da = {};
|
|
479
|
-
function
|
|
479
|
+
function fi(a) {
|
|
480
480
|
{
|
|
481
481
|
var U = ga();
|
|
482
482
|
if (!U) {
|
|
@@ -493,7 +493,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
493
493
|
if (!a._store || a._store.validated || a.key != null)
|
|
494
494
|
return;
|
|
495
495
|
a._store.validated = !0;
|
|
496
|
-
var C =
|
|
496
|
+
var C = fi(U);
|
|
497
497
|
if (da[C])
|
|
498
498
|
return;
|
|
499
499
|
da[C] = !0;
|
|
@@ -520,7 +520,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Ui(a) {
|
|
524
524
|
{
|
|
525
525
|
var U = a.type;
|
|
526
526
|
if (U == null || typeof U == "string")
|
|
@@ -536,7 +536,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
536
536
|
return;
|
|
537
537
|
if (C) {
|
|
538
538
|
var v = H(U);
|
|
539
|
-
|
|
539
|
+
li(C, a.props, "prop", v, a);
|
|
540
540
|
} else if (U.PropTypes !== void 0 && !ze) {
|
|
541
541
|
ze = !0;
|
|
542
542
|
var L = H(U);
|
|
@@ -545,7 +545,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
545
545
|
typeof U.getDefaultProps == "function" && !U.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function yi(a) {
|
|
549
549
|
{
|
|
550
550
|
for (var U = Object.keys(a.props), C = 0; C < U.length; C++) {
|
|
551
551
|
var v = U[C];
|
|
@@ -564,12 +564,12 @@ Check the top-level render call using <` + C + ">.");
|
|
|
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
|
-
var F =
|
|
567
|
+
var F = _i();
|
|
568
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 === m ? (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
|
}
|
|
572
|
-
var P =
|
|
572
|
+
var P = ci(a, U, C, L, G);
|
|
573
573
|
if (P == null)
|
|
574
574
|
return P;
|
|
575
575
|
if (N) {
|
|
@@ -586,44 +586,44 @@ Check the top-level render call using <` + C + ">.");
|
|
|
586
586
|
_a(z, a);
|
|
587
587
|
}
|
|
588
588
|
if (ye.call(U, "key")) {
|
|
589
|
-
var te = H(a), W = Object.keys(U).filter(function(
|
|
590
|
-
return
|
|
589
|
+
var te = H(a), W = Object.keys(U).filter(function(ki) {
|
|
590
|
+
return ki !== "key";
|
|
591
591
|
}), Ve = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
592
592
|
if (!fa[te + Ve]) {
|
|
593
|
-
var
|
|
593
|
+
var hi = 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} />`, Ve, te,
|
|
599
|
+
<%s key={someKey} {...props} />`, Ve, te, hi, te), fa[te + Ve] = !0;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
return a === s ?
|
|
602
|
+
return a === s ? yi(P) : Ui(P), P;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function bi(a, U, C) {
|
|
606
606
|
return Ua(a, U, C, !0);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Ti(a, U, C) {
|
|
609
609
|
return Ua(a, U, C, !1);
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
Te.Fragment = s, Te.jsx =
|
|
611
|
+
var Ci = Ti, vi = bi;
|
|
612
|
+
Te.Fragment = s, Te.jsx = Ci, Te.jsxs = vi;
|
|
613
613
|
})()), Te;
|
|
614
614
|
}
|
|
615
|
-
var
|
|
616
|
-
function
|
|
617
|
-
return
|
|
615
|
+
var va;
|
|
616
|
+
function Ri() {
|
|
617
|
+
return va || (va = 1, process.env.NODE_ENV === "production" ? Pe.exports = Gi() : Pe.exports = Mi()), Pe.exports;
|
|
618
618
|
}
|
|
619
|
-
var Oe =
|
|
620
|
-
const
|
|
621
|
-
const e =
|
|
619
|
+
var Oe = Ri();
|
|
620
|
+
const Ba = Za(null), se = () => {
|
|
621
|
+
const e = Va(Ba);
|
|
622
622
|
if (!e)
|
|
623
623
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
624
624
|
return e;
|
|
625
625
|
};
|
|
626
|
-
function
|
|
626
|
+
function Pi({
|
|
627
627
|
baseURL: e,
|
|
628
628
|
getToken: m,
|
|
629
629
|
timeoutMs: c = 15e3,
|
|
@@ -631,7 +631,7 @@ function Mi({
|
|
|
631
631
|
store: o,
|
|
632
632
|
onError: p
|
|
633
633
|
} = {}) {
|
|
634
|
-
const f =
|
|
634
|
+
const f = Di.create({
|
|
635
635
|
baseURL: e,
|
|
636
636
|
timeout: c,
|
|
637
637
|
headers: { "Content-Type": "application/json" }
|
|
@@ -648,8 +648,8 @@ function Mi({
|
|
|
648
648
|
(_) => p ? p(_, { instance: f }) : Promise.reject(_)
|
|
649
649
|
), f;
|
|
650
650
|
}
|
|
651
|
-
const
|
|
652
|
-
const e =
|
|
651
|
+
const Ka = Za(null), _l = () => {
|
|
652
|
+
const e = Va(Ka);
|
|
653
653
|
if (!e)
|
|
654
654
|
throw new Error(
|
|
655
655
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
@@ -674,49 +674,49 @@ const Ia = Wa(null), _l = () => {
|
|
|
674
674
|
shouldShowErrorNotice: e,
|
|
675
675
|
isMachineDomain: m
|
|
676
676
|
};
|
|
677
|
-
},
|
|
677
|
+
}, ja = (e = [], m) => Ye(e, { gameTypeName: m })?.gameTypeUid, Qa = (e = [], m) => Ye(e, { platform: m })?.platformUid, Ya = (e = [], m) => Ye(e, { SubPlatformEnum: m }), qa = (e = [], m, c) => O(e) ? [] : e.filter((s) => c ? String(s?.SubPlatformEnumUid) === String(c?.SubPlatformEnumUid) : String(s.platformUid) === String(m)), xi = (e = []) => O(e) ? {} : e.reduce((m, c) => {
|
|
678
678
|
const s = c?.game_subtype || "UNKNOWN";
|
|
679
679
|
return m[s] || (m[s] = []), m[s].push(c), m;
|
|
680
|
-
}, {}),
|
|
680
|
+
}, {}), Oi = ({
|
|
681
681
|
gameTypeName: e,
|
|
682
682
|
platforms: m,
|
|
683
683
|
gameList: c,
|
|
684
684
|
allGameTypes: s,
|
|
685
685
|
allPlatforms: o
|
|
686
686
|
}) => {
|
|
687
|
-
const p =
|
|
687
|
+
const p = ja(s, e);
|
|
688
688
|
return p ? m.reduce((f, _) => {
|
|
689
|
-
const r =
|
|
689
|
+
const r = Qa(o, _), u = Ya(o, _), n = c[p] || [], i = qa(
|
|
690
690
|
n,
|
|
691
691
|
r,
|
|
692
692
|
u
|
|
693
693
|
);
|
|
694
694
|
return O(i) || (f[_] = i), f;
|
|
695
695
|
}, {}) : {};
|
|
696
|
-
},
|
|
696
|
+
}, Hi = ({
|
|
697
697
|
platformName: e,
|
|
698
698
|
gamesOfType: m = [],
|
|
699
699
|
allPlatforms: c = []
|
|
700
700
|
}) => {
|
|
701
|
-
const s =
|
|
701
|
+
const s = Qa(c, e), o = Ya(c, e), p = qa(
|
|
702
702
|
m,
|
|
703
703
|
s,
|
|
704
704
|
o
|
|
705
705
|
);
|
|
706
|
-
return
|
|
707
|
-
},
|
|
706
|
+
return xi(p);
|
|
707
|
+
}, wi = (e = {}) => !He(e) || O(e) ? [] : qe(e), ha = (e = []) => !ee(e) || O(e) ? [] : we(e, "platform"), Fi = (e = []) => !ee(e) || O(e) ? [] : we(e, "gameTypeName"), Wi = (e = []) => !ee(e) || O(e) ? [] : we(e, "game_subtype"), Ji = (e = {}) => !He(e) || O(e) ? [] : qe(e), zi = (e = [], m = []) => !ee(e) || O(e) ? {} : !ee(m) || O(m) ? {} : e.reduce((c, s) => {
|
|
708
708
|
const o = m.map((p) => p.game_subtype);
|
|
709
709
|
return o.forEach((p) => {
|
|
710
710
|
c[p] = c[p] || [];
|
|
711
711
|
}), o.includes(s.game_subtype) && c[s.game_subtype].push(s), c;
|
|
712
|
-
}, {}),
|
|
712
|
+
}, {}), Zi = ({
|
|
713
713
|
gameTypes: e = [],
|
|
714
714
|
platforms: m = [],
|
|
715
715
|
gameList: c = {},
|
|
716
716
|
allGameTypes: s = [],
|
|
717
717
|
allPlatforms: o = []
|
|
718
718
|
}) => !ee(e) || !ee(m) ? {} : O(c) ? {} : e.reduce((p, f) => {
|
|
719
|
-
const _ =
|
|
719
|
+
const _ = Oi({
|
|
720
720
|
gameTypeName: f,
|
|
721
721
|
platforms: m,
|
|
722
722
|
gameList: c,
|
|
@@ -731,10 +731,10 @@ const Ia = Wa(null), _l = () => {
|
|
|
731
731
|
allGamePlatform: s = [],
|
|
732
732
|
allGameList: o = {}
|
|
733
733
|
} = {}) => !Array.isArray(e) || !Array.isArray(m) ? {} : e.reduce((p, f) => {
|
|
734
|
-
const _ =
|
|
734
|
+
const _ = ja(c, f);
|
|
735
735
|
if (!_) return p;
|
|
736
736
|
const r = o[_] || [], u = m.reduce((n, i) => {
|
|
737
|
-
const d =
|
|
737
|
+
const d = Hi({
|
|
738
738
|
platformName: i,
|
|
739
739
|
gamesOfType: r,
|
|
740
740
|
allPlatforms: s
|
|
@@ -742,9 +742,9 @@ const Ia = Wa(null), _l = () => {
|
|
|
742
742
|
return O(d) ? n : { ...n, [i]: d };
|
|
743
743
|
}, {});
|
|
744
744
|
return O(u) || (p[f] = u), p;
|
|
745
|
-
}, {}),
|
|
745
|
+
}, {}), Vi = (e = {}) => !He(e) || O(e) ? {} : Object.values(e).reduce((c, s) => (Object.entries(s).forEach(([o, p]) => {
|
|
746
746
|
c[o] ? c[o] = [...c[o], ...p] : c[o] = p;
|
|
747
|
-
}), c), {}),
|
|
747
|
+
}), c), {}), Ii = (e = {}) => {
|
|
748
748
|
if (!He(e) || O(e)) return {};
|
|
749
749
|
const m = {};
|
|
750
750
|
for (const [c, s] of Object.entries(e)) {
|
|
@@ -755,7 +755,7 @@ const Ia = Wa(null), _l = () => {
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
return m;
|
|
758
|
-
},
|
|
758
|
+
}, Ai = ({
|
|
759
759
|
allGameList: e = {},
|
|
760
760
|
allGamePlatform: m = [],
|
|
761
761
|
allGameType: c = [],
|
|
@@ -768,13 +768,13 @@ const Ia = Wa(null), _l = () => {
|
|
|
768
768
|
highlightGames: u = [],
|
|
769
769
|
originPlatform: n = []
|
|
770
770
|
}) => {
|
|
771
|
-
const i =
|
|
771
|
+
const i = wi(e), d = ha(m), l = Fi(c), t = Wi(s), y = ha(n), b = Ji(_), g = Zi({
|
|
772
772
|
gameTypes: l,
|
|
773
773
|
platforms: d,
|
|
774
774
|
gameList: e,
|
|
775
775
|
allGameTypes: c,
|
|
776
776
|
allPlatforms: m
|
|
777
|
-
}), T =
|
|
777
|
+
}), T = zi(i, s), S = Vi(g), D = Ii(S);
|
|
778
778
|
return {
|
|
779
779
|
platform: {
|
|
780
780
|
all: d,
|
|
@@ -809,7 +809,7 @@ const Ia = Wa(null), _l = () => {
|
|
|
809
809
|
...c,
|
|
810
810
|
platform: c.SubPlatformEnum,
|
|
811
811
|
platformEnum: c.SubPlatformEnum
|
|
812
|
-
}))),
|
|
812
|
+
}))), Bi = (e) => {
|
|
813
813
|
switch (e) {
|
|
814
814
|
case "tw":
|
|
815
815
|
return "zh_TW";
|
|
@@ -859,7 +859,7 @@ const Ia = Wa(null), _l = () => {
|
|
|
859
859
|
userLoginApi: f,
|
|
860
860
|
userLogoutApi: _
|
|
861
861
|
};
|
|
862
|
-
},
|
|
862
|
+
}, Ki = {
|
|
863
863
|
platform: { all: [], origin: [] },
|
|
864
864
|
type: { main: [], sub: [], originMain: [], originSub: [] },
|
|
865
865
|
gameList: {
|
|
@@ -877,7 +877,7 @@ const Ia = Wa(null), _l = () => {
|
|
|
877
877
|
byPlatformAndCategory: {}
|
|
878
878
|
},
|
|
879
879
|
user: { favorite: [] }
|
|
880
|
-
},
|
|
880
|
+
}, ji = ({ enabled: e = !0 } = {}) => {
|
|
881
881
|
const { getToken: m } = se(), { userFavoriteGameApi: c, userGameListApi: s } = ce(), { data: o, isLoading: p, error: f, refetch: _ } = oe({
|
|
882
882
|
queryKey: ["gamesInfo"],
|
|
883
883
|
queryFn: async () => {
|
|
@@ -887,8 +887,8 @@ const Ia = Wa(null), _l = () => {
|
|
|
887
887
|
} catch (n) {
|
|
888
888
|
console.warn("Failed to fetch favorite games:", n);
|
|
889
889
|
}
|
|
890
|
-
return
|
|
891
|
-
allGameList: window.gameTypeGroup || {},
|
|
890
|
+
return Ai({
|
|
891
|
+
allGameList: u.gameTypeGroup || window.gameTypeGroup || {},
|
|
892
892
|
allGamePlatform: u.platforms || window.platforms || [],
|
|
893
893
|
allGameType: u.gameType || window.gameType || [],
|
|
894
894
|
allGame_subtype: u.gameSubType || window.gameSubType || [],
|
|
@@ -910,12 +910,12 @@ const Ia = Wa(null), _l = () => {
|
|
|
910
910
|
refetchOnWindowFocus: !1
|
|
911
911
|
});
|
|
912
912
|
return {
|
|
913
|
-
gamesInfo: o ||
|
|
913
|
+
gamesInfo: o || Ki,
|
|
914
914
|
isLoading: p,
|
|
915
915
|
error: f,
|
|
916
916
|
refetch: _
|
|
917
917
|
};
|
|
918
|
-
},
|
|
918
|
+
}, Qi = (e = !1) => {
|
|
919
919
|
if (!e && window.gameTypeGroup) {
|
|
920
920
|
console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
|
|
921
921
|
return;
|
|
@@ -27442,16 +27442,16 @@ const Ia = Wa(null), _l = () => {
|
|
|
27442
27442
|
is_invalid_bet: 0
|
|
27443
27443
|
}
|
|
27444
27444
|
});
|
|
27445
|
-
},
|
|
27445
|
+
}, Yi = ({
|
|
27446
27446
|
children: e,
|
|
27447
27447
|
autoFetch: m = !1,
|
|
27448
27448
|
mockData: c = !1
|
|
27449
27449
|
}) => {
|
|
27450
27450
|
he(() => {
|
|
27451
|
-
c &&
|
|
27451
|
+
c && Qi(!0);
|
|
27452
27452
|
}, [c]);
|
|
27453
|
-
const s =
|
|
27454
|
-
return /* @__PURE__ */ Oe.jsx(
|
|
27453
|
+
const s = ji({ enabled: m });
|
|
27454
|
+
return /* @__PURE__ */ Oe.jsx(Ka.Provider, { value: s, children: e });
|
|
27455
27455
|
};
|
|
27456
27456
|
function bl({
|
|
27457
27457
|
children: e,
|
|
@@ -27460,8 +27460,8 @@ function bl({
|
|
|
27460
27460
|
queryClient: s,
|
|
27461
27461
|
...o
|
|
27462
27462
|
}) {
|
|
27463
|
-
const p = Qe(() =>
|
|
27464
|
-
() => new
|
|
27463
|
+
const p = Qe(() => Pi(o), [o]), f = Qe(
|
|
27464
|
+
() => new Si({
|
|
27465
27465
|
defaultOptions: {
|
|
27466
27466
|
queries: {
|
|
27467
27467
|
refetchOnWindowFocus: !1,
|
|
@@ -27471,11 +27471,11 @@ function bl({
|
|
|
27471
27471
|
}),
|
|
27472
27472
|
[]
|
|
27473
27473
|
), _ = s || f;
|
|
27474
|
-
return /* @__PURE__ */ Oe.jsx(
|
|
27474
|
+
return /* @__PURE__ */ Oe.jsx(Ni, { client: _, children: /* @__PURE__ */ Oe.jsx(Ba.Provider, { value: { client: p, ...o }, children: /* @__PURE__ */ Oe.jsx(Yi, { autoFetch: m, mockData: c, children: e }) }) });
|
|
27475
27475
|
}
|
|
27476
27476
|
const Tl = ({ otherQueryKey: e = [], options: m = {} } = {}) => {
|
|
27477
27477
|
const { userCurrencyExchangeApi: c } = ce(), { getToken: s } = se(), { enabled: o, ...p } = m, f = !!s && (o ? o.every((_) => _) : !0);
|
|
27478
|
-
return
|
|
27478
|
+
return Ia({
|
|
27479
27479
|
queries: [
|
|
27480
27480
|
{
|
|
27481
27481
|
queryKey: ["userCurrencyExchange", ...e],
|
|
@@ -27492,7 +27492,7 @@ const Tl = ({ otherQueryKey: e = [], options: m = {} } = {}) => {
|
|
|
27492
27492
|
trigger: m = [],
|
|
27493
27493
|
enabled: c = !0
|
|
27494
27494
|
} = {}) => {
|
|
27495
|
-
const { getToken: s } = se(), { userInfoApi: o } = ce(), p =
|
|
27495
|
+
const { getToken: s } = se(), { userInfoApi: o } = ce(), p = Ia({
|
|
27496
27496
|
queries: [
|
|
27497
27497
|
{
|
|
27498
27498
|
queryKey: ["getMemberInfo", ...m],
|
|
@@ -27533,9 +27533,9 @@ const Tl = ({ otherQueryKey: e = [], options: m = {} } = {}) => {
|
|
|
27533
27533
|
r
|
|
27534
27534
|
];
|
|
27535
27535
|
};
|
|
27536
|
-
var Ie = {}, J = {}, Ae = {},
|
|
27536
|
+
var Ie = {}, J = {}, Ae = {}, ka;
|
|
27537
27537
|
function A() {
|
|
27538
|
-
return
|
|
27538
|
+
return ka || (ka = 1, (function(e) {
|
|
27539
27539
|
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;
|
|
27540
27540
|
var m = 1, c = 1e3 * m;
|
|
27541
27541
|
e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
|
|
@@ -27560,9 +27560,9 @@ function A() {
|
|
|
27560
27560
|
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && o();
|
|
27561
27561
|
})(Ae)), Ae;
|
|
27562
27562
|
}
|
|
27563
|
-
var Ce = {}, Be = {},
|
|
27563
|
+
var Ce = {}, Be = {}, Sa;
|
|
27564
27564
|
function Xe() {
|
|
27565
|
-
return
|
|
27565
|
+
return Sa || (Sa = 1, (function(e) {
|
|
27566
27566
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
|
|
27567
27567
|
var m = function(c) {
|
|
27568
27568
|
if (c && e.sharedWebSockets.hasOwnProperty(c))
|
|
@@ -27574,10 +27574,10 @@ function Xe() {
|
|
|
27574
27574
|
e.resetWebSockets = m;
|
|
27575
27575
|
})(Be)), Be;
|
|
27576
27576
|
}
|
|
27577
|
-
var ne = {}, Q = {},
|
|
27577
|
+
var ne = {}, Q = {}, Na;
|
|
27578
27578
|
function $e() {
|
|
27579
|
-
if (
|
|
27580
|
-
|
|
27579
|
+
if (Na) return Q;
|
|
27580
|
+
Na = 1, Object.defineProperty(Q, "__esModule", { value: !0 }), Q.setUpSocketIOPing = Q.appendQueryParams = Q.parseSocketIOUrl = void 0;
|
|
27581
27581
|
var e = A(), m = function(o) {
|
|
27582
27582
|
if (o) {
|
|
27583
27583
|
var p = /^https|wss/.test(o), f = o.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = f.replace(/\/$/, ""), r = p ? "wss" : "ws";
|
|
@@ -27607,10 +27607,10 @@ function $e() {
|
|
|
27607
27607
|
};
|
|
27608
27608
|
return Q.setUpSocketIOPing = s, Q;
|
|
27609
27609
|
}
|
|
27610
|
-
var xe = {},
|
|
27611
|
-
function
|
|
27612
|
-
if (
|
|
27613
|
-
|
|
27610
|
+
var xe = {}, Da;
|
|
27611
|
+
function Xa() {
|
|
27612
|
+
if (Da) return xe;
|
|
27613
|
+
Da = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.heartbeat = c;
|
|
27614
27614
|
var e = A();
|
|
27615
27615
|
function m(s) {
|
|
27616
27616
|
return Array.isArray(s) ? s.reduce(function(o, p) {
|
|
@@ -27636,9 +27636,9 @@ function Qa() {
|
|
|
27636
27636
|
}
|
|
27637
27637
|
return xe;
|
|
27638
27638
|
}
|
|
27639
|
-
var ve = {}, Ke = {},
|
|
27639
|
+
var ve = {}, Ke = {}, Ea;
|
|
27640
27640
|
function ea() {
|
|
27641
|
-
return
|
|
27641
|
+
return Ea || (Ea = 1, (function(e) {
|
|
27642
27642
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
|
|
27643
27643
|
var m = {}, c = [], s = function(r) {
|
|
27644
27644
|
return (0, e.hasSubscribers)(r) ? Array.from(m[r]) : c;
|
|
@@ -27667,10 +27667,10 @@ function ea() {
|
|
|
27667
27667
|
e.resetSubscribers = _;
|
|
27668
27668
|
})(Ke)), Ke;
|
|
27669
27669
|
}
|
|
27670
|
-
var
|
|
27670
|
+
var La;
|
|
27671
27671
|
function aa() {
|
|
27672
|
-
if (
|
|
27673
|
-
|
|
27672
|
+
if (La) return ve;
|
|
27673
|
+
La = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.assertIsWebSocket = c, ve.resetGlobalState = s;
|
|
27674
27674
|
var e = Xe(), m = ea();
|
|
27675
27675
|
function c(o, p) {
|
|
27676
27676
|
if (!p && !(o instanceof WebSocket))
|
|
@@ -27681,10 +27681,10 @@ function aa() {
|
|
|
27681
27681
|
}
|
|
27682
27682
|
return ve;
|
|
27683
27683
|
}
|
|
27684
|
-
var
|
|
27685
|
-
function
|
|
27686
|
-
if (
|
|
27687
|
-
|
|
27684
|
+
var Ga;
|
|
27685
|
+
function qi() {
|
|
27686
|
+
if (Ga) return ne;
|
|
27687
|
+
Ga = 1;
|
|
27688
27688
|
var e = ne && ne.__assign || function() {
|
|
27689
27689
|
return e = Object.assign || function(n) {
|
|
27690
27690
|
for (var i, d = 1, l = arguments.length; d < l; d++) {
|
|
@@ -27695,7 +27695,7 @@ function Qi() {
|
|
|
27695
27695
|
}, e.apply(this, arguments);
|
|
27696
27696
|
};
|
|
27697
27697
|
Object.defineProperty(ne, "__esModule", { value: !0 }), ne.attachListeners = void 0;
|
|
27698
|
-
var m = $e(), c =
|
|
27698
|
+
var m = $e(), c = Xa(), s = A(), o = aa(), p = function(n, i, d, l) {
|
|
27699
27699
|
n.onmessage = function(t) {
|
|
27700
27700
|
var y;
|
|
27701
27701
|
i.current.onMessage && i.current.onMessage(t), typeof l?.current == "number" && (l.current = Date.now()), !(typeof i.current.filter == "function" && i.current.filter(t) !== !0) && (i.current.heartbeat && typeof i.current.heartbeat != "boolean" && ((y = i.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === t.data || d(t));
|
|
@@ -27751,10 +27751,10 @@ function Qi() {
|
|
|
27751
27751
|
};
|
|
27752
27752
|
return ne.attachListeners = u, ne;
|
|
27753
27753
|
}
|
|
27754
|
-
var me = {},
|
|
27755
|
-
function
|
|
27756
|
-
if (
|
|
27757
|
-
|
|
27754
|
+
var me = {}, Ma;
|
|
27755
|
+
function Xi() {
|
|
27756
|
+
if (Ma) return me;
|
|
27757
|
+
Ma = 1;
|
|
27758
27758
|
var e = me && me.__assign || function() {
|
|
27759
27759
|
return e = Object.assign || function(i) {
|
|
27760
27760
|
for (var d, l = 1, t = arguments.length; l < t; l++) {
|
|
@@ -27765,7 +27765,7 @@ function Yi() {
|
|
|
27765
27765
|
}, e.apply(this, arguments);
|
|
27766
27766
|
};
|
|
27767
27767
|
Object.defineProperty(me, "__esModule", { value: !0 }), me.attachSharedListeners = void 0;
|
|
27768
|
-
var m = Xe(), c = A(), s = ea(), o = $e(), p =
|
|
27768
|
+
var m = Xe(), c = A(), s = ea(), o = $e(), p = Xa(), f = function(i, d, l) {
|
|
27769
27769
|
i.onmessage = function(t) {
|
|
27770
27770
|
(0, s.getSubscribers)(d).forEach(function(y) {
|
|
27771
27771
|
var b;
|
|
@@ -27813,11 +27813,11 @@ function Yi() {
|
|
|
27813
27813
|
};
|
|
27814
27814
|
return me.attachSharedListeners = n, me;
|
|
27815
27815
|
}
|
|
27816
|
-
var
|
|
27817
|
-
function
|
|
27818
|
-
if (
|
|
27819
|
-
|
|
27820
|
-
var e = Xe(), m = A(), c =
|
|
27816
|
+
var Ra;
|
|
27817
|
+
function $i() {
|
|
27818
|
+
if (Ra) return Ce;
|
|
27819
|
+
Ra = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.createOrJoinSocket = void 0;
|
|
27820
|
+
var e = Xe(), m = A(), c = qi(), s = Xi(), o = ea(), p = function(_, r, u, n, i) {
|
|
27821
27821
|
return function() {
|
|
27822
27822
|
if ((0, o.removeSubscriber)(_, r), !(0, o.hasSubscribers)(_)) {
|
|
27823
27823
|
try {
|
|
@@ -27856,9 +27856,9 @@ function qi() {
|
|
|
27856
27856
|
};
|
|
27857
27857
|
return Ce.createOrJoinSocket = f, Ce;
|
|
27858
27858
|
}
|
|
27859
|
-
var Y = {},
|
|
27860
|
-
function
|
|
27861
|
-
return
|
|
27859
|
+
var Y = {}, Pa;
|
|
27860
|
+
function el() {
|
|
27861
|
+
return Pa || (Pa = 1, (function(e) {
|
|
27862
27862
|
var m = Y && Y.__awaiter || function(r, u, n, i) {
|
|
27863
27863
|
function d(l) {
|
|
27864
27864
|
return l instanceof n ? l : new n(function(t) {
|
|
@@ -27993,9 +27993,9 @@ function Xi() {
|
|
|
27993
27993
|
e.getUrl = _;
|
|
27994
27994
|
})(Y)), Y;
|
|
27995
27995
|
}
|
|
27996
|
-
var je = {},
|
|
27997
|
-
function
|
|
27998
|
-
return
|
|
27996
|
+
var je = {}, xa;
|
|
27997
|
+
function al() {
|
|
27998
|
+
return xa || (xa = 1, (function(e) {
|
|
27999
27999
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
28000
28000
|
var m = function(c, s) {
|
|
28001
28001
|
return new Proxy(c, {
|
|
@@ -28012,10 +28012,10 @@ function $i() {
|
|
|
28012
28012
|
e.websocketWrapper = m, e.default = e.websocketWrapper;
|
|
28013
28013
|
})(je)), je;
|
|
28014
28014
|
}
|
|
28015
|
-
var
|
|
28015
|
+
var Oa;
|
|
28016
28016
|
function ia() {
|
|
28017
|
-
if (
|
|
28018
|
-
|
|
28017
|
+
if (Oa) return J;
|
|
28018
|
+
Oa = 1;
|
|
28019
28019
|
var e = J && J.__assign || function() {
|
|
28020
28020
|
return e = Object.assign || function(d) {
|
|
28021
28021
|
for (var l, t = 1, y = arguments.length; t < y; t++) {
|
|
@@ -28113,7 +28113,7 @@ function ia() {
|
|
|
28113
28113
|
return d && d.__esModule ? d : { default: d };
|
|
28114
28114
|
};
|
|
28115
28115
|
Object.defineProperty(J, "__esModule", { value: !0 }), J.useWebSocket = void 0;
|
|
28116
|
-
var o = ke, p =
|
|
28116
|
+
var o = ke, p = Ei, f = A(), _ = $i(), r = el(), u = s(al()), n = aa(), i = function(d, l, t) {
|
|
28117
28117
|
l === void 0 && (l = f.DEFAULT_OPTIONS), t === void 0 && (t = !0);
|
|
28118
28118
|
var y = (0, o.useState)(null), b = y[0], g = y[1], T = (0, o.useState)({}), S = T[0], D = T[1], h = (0, o.useMemo)(function() {
|
|
28119
28119
|
if (!l.disableJson && b)
|
|
@@ -28198,10 +28198,10 @@ function ia() {
|
|
|
28198
28198
|
};
|
|
28199
28199
|
return J.useWebSocket = i, J;
|
|
28200
28200
|
}
|
|
28201
|
-
var re = {},
|
|
28202
|
-
function
|
|
28203
|
-
if (
|
|
28204
|
-
|
|
28201
|
+
var re = {}, Ha;
|
|
28202
|
+
function il() {
|
|
28203
|
+
if (Ha) return re;
|
|
28204
|
+
Ha = 1;
|
|
28205
28205
|
var e = re && re.__assign || function() {
|
|
28206
28206
|
return e = Object.assign || function(_) {
|
|
28207
28207
|
for (var r, u = 1, n = arguments.length; u < n; u++) {
|
|
@@ -28244,10 +28244,10 @@ function el() {
|
|
|
28244
28244
|
};
|
|
28245
28245
|
return re.useSocketIO = f, re;
|
|
28246
28246
|
}
|
|
28247
|
-
var q = {},
|
|
28248
|
-
function
|
|
28249
|
-
if (
|
|
28250
|
-
|
|
28247
|
+
var q = {}, wa;
|
|
28248
|
+
function ll() {
|
|
28249
|
+
if (wa) return q;
|
|
28250
|
+
wa = 1;
|
|
28251
28251
|
var e = q && q.__assign || function() {
|
|
28252
28252
|
return e = Object.assign || function(f) {
|
|
28253
28253
|
for (var _, r = 1, u = arguments.length; r < u; r++) {
|
|
@@ -28287,15 +28287,15 @@ function al() {
|
|
|
28287
28287
|
};
|
|
28288
28288
|
return q.useEventSource = p, q;
|
|
28289
28289
|
}
|
|
28290
|
-
var
|
|
28291
|
-
function
|
|
28292
|
-
return
|
|
28290
|
+
var Fa;
|
|
28291
|
+
function tl() {
|
|
28292
|
+
return Fa || (Fa = 1, (function(e) {
|
|
28293
28293
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
|
28294
28294
|
var m = ia();
|
|
28295
28295
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
|
28296
28296
|
return m.useWebSocket;
|
|
28297
28297
|
} });
|
|
28298
|
-
var c =
|
|
28298
|
+
var c = il();
|
|
28299
28299
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
|
28300
28300
|
return c.useSocketIO;
|
|
28301
28301
|
} });
|
|
@@ -28303,7 +28303,7 @@ function il() {
|
|
|
28303
28303
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
|
28304
28304
|
return s.ReadyState;
|
|
28305
28305
|
} });
|
|
28306
|
-
var o =
|
|
28306
|
+
var o = ll();
|
|
28307
28307
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
28308
28308
|
return o.useEventSource;
|
|
28309
28309
|
} });
|
|
@@ -28313,8 +28313,8 @@ function il() {
|
|
|
28313
28313
|
} });
|
|
28314
28314
|
})(Ie)), Ie;
|
|
28315
28315
|
}
|
|
28316
|
-
var
|
|
28317
|
-
const
|
|
28316
|
+
var nl = tl();
|
|
28317
|
+
const ml = /* @__PURE__ */ Li(nl), I = {
|
|
28318
28318
|
DEPOSIT: "deposit",
|
|
28319
28319
|
TRANS_CODE: "transCode",
|
|
28320
28320
|
ERROR: "error",
|
|
@@ -28325,7 +28325,7 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28325
28325
|
TRANSFER_IN_GAME: "transfer_in_game",
|
|
28326
28326
|
CHECK_REQUEST: "CHECK_RREQUEST",
|
|
28327
28327
|
CASH_REGISTER_LIMIT: "cash_register_limit"
|
|
28328
|
-
},
|
|
28328
|
+
}, rl = 3e4, hl = ({
|
|
28329
28329
|
socketUrl: e,
|
|
28330
28330
|
socketHandlers: m = {},
|
|
28331
28331
|
options: c = {}
|
|
@@ -28341,7 +28341,7 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28341
28341
|
readyState: r
|
|
28342
28342
|
// WebSocket 連線狀態
|
|
28343
28343
|
// getWebSocket, // 獲取 WebSocket 實例
|
|
28344
|
-
} =
|
|
28344
|
+
} = ml(e, {
|
|
28345
28345
|
queryParams: { key: "wsky" },
|
|
28346
28346
|
onOpen: () => console.log("連線成功"),
|
|
28347
28347
|
shouldReconnect: () => s.current === !1,
|
|
@@ -28358,7 +28358,7 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28358
28358
|
return he(() => {
|
|
28359
28359
|
const n = setInterval(
|
|
28360
28360
|
() => p("ping"),
|
|
28361
|
-
|
|
28361
|
+
rl
|
|
28362
28362
|
);
|
|
28363
28363
|
return () => clearInterval(n);
|
|
28364
28364
|
}, [p]), he(() => {
|
|
@@ -28419,20 +28419,20 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28419
28419
|
readyState: r
|
|
28420
28420
|
// WebSocket 連線狀態
|
|
28421
28421
|
};
|
|
28422
|
-
},
|
|
28422
|
+
}, $a = () => {
|
|
28423
28423
|
const { client: e } = se(), m = X(async () => {
|
|
28424
28424
|
const { data: s } = await e.get("/carousels");
|
|
28425
28425
|
return s;
|
|
28426
28426
|
}, [e]), c = X(async () => await e.get("/marquees"), [e]);
|
|
28427
28427
|
return { commonCarouselApi: m, commonMarqueeApi: c };
|
|
28428
28428
|
}, kl = () => {
|
|
28429
|
-
const { commonCarouselApi: e } =
|
|
28429
|
+
const { commonCarouselApi: e } = $a();
|
|
28430
28430
|
return oe({
|
|
28431
28431
|
queryKey: ["getCarouselList"],
|
|
28432
28432
|
queryFn: async () => await e()
|
|
28433
28433
|
});
|
|
28434
28434
|
}, Sl = () => {
|
|
28435
|
-
const { lng: e } = se(), { commonMarqueeApi: m } =
|
|
28435
|
+
const { lng: e } = se(), { commonMarqueeApi: m } = $a(), c = Bi(e);
|
|
28436
28436
|
return oe({
|
|
28437
28437
|
queryKey: ["getMarqueeList"],
|
|
28438
28438
|
queryFn: async () => m(),
|
|
@@ -28441,16 +28441,16 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28441
28441
|
return we(o, (f) => f[c] || f["en-US"]);
|
|
28442
28442
|
}
|
|
28443
28443
|
});
|
|
28444
|
-
},
|
|
28444
|
+
}, ol = ({ options: e } = {}) => {
|
|
28445
28445
|
const { userLoginApi: m } = ce();
|
|
28446
|
-
return
|
|
28446
|
+
return Aa({
|
|
28447
28447
|
mutationKey: ["userLogin"],
|
|
28448
28448
|
mutationFn: async (c) => m(c),
|
|
28449
28449
|
...e
|
|
28450
28450
|
});
|
|
28451
|
-
},
|
|
28451
|
+
}, sl = ({ options: e } = {}) => {
|
|
28452
28452
|
const { userLogoutApi: m } = ce();
|
|
28453
|
-
return
|
|
28453
|
+
return Aa({
|
|
28454
28454
|
mutationKey: ["userLogout"],
|
|
28455
28455
|
mutationFn: async () => m(),
|
|
28456
28456
|
...e
|
|
@@ -28461,9 +28461,9 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28461
28461
|
logout: {}
|
|
28462
28462
|
}
|
|
28463
28463
|
} = {}) => {
|
|
28464
|
-
const m =
|
|
28464
|
+
const m = ol({ options: e.login }), c = sl({ options: e.logout });
|
|
28465
28465
|
return { login: m, logout: c };
|
|
28466
|
-
},
|
|
28466
|
+
}, Wa = (e) => {
|
|
28467
28467
|
switch (e) {
|
|
28468
28468
|
case "tw":
|
|
28469
28469
|
return "Tw";
|
|
@@ -28482,8 +28482,8 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28482
28482
|
default:
|
|
28483
28483
|
return "En";
|
|
28484
28484
|
}
|
|
28485
|
-
},
|
|
28486
|
-
const { lng: m } = se(), c =
|
|
28485
|
+
}, Ja = "https://d3jx2uvukujuvn.cloudfront.net", za = "game-icon-ds88", Dl = ({ gameData: e = {} } = {}) => {
|
|
28486
|
+
const { lng: m } = se(), c = Wa(m), {
|
|
28487
28487
|
gameCode: s,
|
|
28488
28488
|
// 遊戲代碼
|
|
28489
28489
|
gameUid: o,
|
|
@@ -28521,7 +28521,7 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28521
28521
|
// 越南名稱
|
|
28522
28522
|
gameNameTw: D
|
|
28523
28523
|
// 繁體中文名稱
|
|
28524
|
-
} = e, h = e?.[`gameName${
|
|
28524
|
+
} = e, h = e?.[`gameName${Wa(c)}`], E = `${Ja}/${za}/en/${u}/${ba(s, / /g, "_")}.webp`, M = `${Ja}/${za}/en/${u}/${ba(s, / /g, "_")}.gif`;
|
|
28525
28525
|
return {
|
|
28526
28526
|
gameCode: s,
|
|
28527
28527
|
gameUid: o,
|
|
@@ -28542,46 +28542,47 @@ const tl = /* @__PURE__ */ Di(ll), I = {
|
|
|
28542
28542
|
gameNameVi: S,
|
|
28543
28543
|
gameNameTw: D,
|
|
28544
28544
|
gameName: h,
|
|
28545
|
-
gameImageUrl: E
|
|
28545
|
+
gameImageUrl: E,
|
|
28546
|
+
gameImageUrlAnimated: M
|
|
28546
28547
|
};
|
|
28547
28548
|
};
|
|
28548
28549
|
export {
|
|
28549
|
-
|
|
28550
|
+
Ba as ApiCtx,
|
|
28550
28551
|
bl as ApiProvider,
|
|
28551
|
-
|
|
28552
|
-
|
|
28552
|
+
Ka as GamesInfoCtx,
|
|
28553
|
+
Zi as buildMultiTypes,
|
|
28553
28554
|
Ul as buildMultiTypesWithSubTypes,
|
|
28554
|
-
|
|
28555
|
-
|
|
28556
|
-
|
|
28557
|
-
|
|
28555
|
+
Hi as buildSinglePlatformWithSubTypes,
|
|
28556
|
+
Oi as buildSingleType,
|
|
28557
|
+
zi as categorizeGames,
|
|
28558
|
+
Bi as convertLanguageCode,
|
|
28558
28559
|
fl as createLogoutHandler,
|
|
28559
|
-
|
|
28560
|
-
|
|
28561
|
-
|
|
28562
|
-
|
|
28563
|
-
|
|
28564
|
-
|
|
28565
|
-
|
|
28566
|
-
|
|
28567
|
-
|
|
28568
|
-
|
|
28569
|
-
|
|
28570
|
-
|
|
28571
|
-
|
|
28572
|
-
|
|
28560
|
+
Wi as extractGameSubTypeNames,
|
|
28561
|
+
Fi as extractGameTypeNames,
|
|
28562
|
+
ha as extractPlatformNames,
|
|
28563
|
+
qa as filterGamesByPlatform,
|
|
28564
|
+
ja as findGameTypeUid,
|
|
28565
|
+
Qa as findPlatformUid,
|
|
28566
|
+
Ya as findSubPlatform,
|
|
28567
|
+
wi as flattenAllGames,
|
|
28568
|
+
Ji as flattenFavoriteGames,
|
|
28569
|
+
Vi as groupGamesByPlatform,
|
|
28570
|
+
Ii as groupGamesByPlatformAndSubType,
|
|
28571
|
+
xi as groupGamesBySubType,
|
|
28572
|
+
Qi as initMockWindowData,
|
|
28573
|
+
Ai as processGameInfo,
|
|
28573
28574
|
yl as processPlatformData,
|
|
28574
28575
|
se as useApiContext,
|
|
28575
28576
|
Tl as useBalanceGetter,
|
|
28576
28577
|
hl as useClientWebSocket,
|
|
28577
28578
|
Dl as useGameConfig,
|
|
28578
28579
|
_l as useGameInfoContext,
|
|
28579
|
-
|
|
28580
|
+
ji as useGamesInfo,
|
|
28580
28581
|
kl as useGetCarouseList,
|
|
28581
28582
|
Sl as useGetMarquee,
|
|
28582
28583
|
Cl as useGetMemberInfo,
|
|
28583
28584
|
vl as useInitializeWithToken,
|
|
28584
|
-
|
|
28585
|
-
|
|
28585
|
+
ol as useLogin,
|
|
28586
|
+
sl as useLogout,
|
|
28586
28587
|
Nl as useUser
|
|
28587
28588
|
};
|