@obb871001/api-integration-sdk 1.0.112 → 1.0.114
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 +368 -358
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import Ee, { createContext as li, useContext as ti, useCallback as B, useMemo as
|
|
1
|
+
import Ee, { createContext as li, useContext as ti, useCallback as B, useMemo as ia, useEffect as Ne, useRef as Ea } from "react";
|
|
2
2
|
import { useQuery as ae, QueryClient as el, QueryClientProvider as al, useQueries as ni, useMutation as mi } from "@tanstack/react-query";
|
|
3
3
|
import il from "axios";
|
|
4
|
-
import { find as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
4
|
+
import { find as na, isEmpty as O, isObject as Ze, flatMap as Ve, isArray as ie, map as Ae, entries as ll, values as tl, get as He, replace as La, includes as nl } from "lodash";
|
|
5
|
+
import ml from "react-dom";
|
|
6
|
+
function rl(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
9
|
var we = { exports: {} }, ve = {};
|
|
10
10
|
var Ga;
|
|
11
|
-
function
|
|
11
|
+
function ol() {
|
|
12
12
|
if (Ga) return ve;
|
|
13
13
|
Ga = 1;
|
|
14
14
|
var e = Ee, i = Symbol.for("react.element"), m = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -23,7 +23,7 @@ function ml() {
|
|
|
23
23
|
}
|
|
24
24
|
var he = {};
|
|
25
25
|
var Ma;
|
|
26
|
-
function
|
|
26
|
+
function sl() {
|
|
27
27
|
return Ma || (Ma = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
28
28
|
var e = Ee, i = Symbol.for("react.element"), m = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), _ = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), n = Symbol.for("react.offscreen"), o = Symbol.iterator, y = "@@iterator";
|
|
29
29
|
function b(a) {
|
|
@@ -35,34 +35,34 @@ function rl() {
|
|
|
35
35
|
var c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
36
36
|
function T(a) {
|
|
37
37
|
{
|
|
38
|
-
for (var U = arguments.length, C = new Array(U > 1 ? U - 1 : 0),
|
|
39
|
-
C[
|
|
38
|
+
for (var U = arguments.length, C = new Array(U > 1 ? U - 1 : 0), h = 1; h < U; h++)
|
|
39
|
+
C[h - 1] = arguments[h];
|
|
40
40
|
S("error", a, C);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
function S(a, U, C) {
|
|
44
44
|
{
|
|
45
|
-
var
|
|
45
|
+
var h = c.ReactDebugCurrentFrame, L = h.getStackAddendum();
|
|
46
46
|
L !== "" && (U += "%s", C = C.concat([L]));
|
|
47
|
-
var
|
|
48
|
-
return String(
|
|
47
|
+
var M = C.map(function(D) {
|
|
48
|
+
return String(D);
|
|
49
49
|
});
|
|
50
|
-
|
|
50
|
+
M.unshift("Warning: " + U), Function.prototype.apply.call(console[a], console, M);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
function
|
|
56
|
-
return !!(typeof a == "string" || typeof a == "function" || a === t || a === p ||
|
|
53
|
+
var E = !1, v = !1, N = !1, G = !1, te = !1, ne;
|
|
54
|
+
ne = Symbol.for("react.module.reference");
|
|
55
|
+
function Ie(a) {
|
|
56
|
+
return !!(typeof a == "string" || typeof a == "function" || a === t || a === p || te || a === r || a === g || a === s || G || a === n || E || v || N || typeof a == "object" && a !== null && (a.$$typeof === d || a.$$typeof === l || a.$$typeof === f || a.$$typeof === _ || a.$$typeof === u || // This needs to include all possible module reference object
|
|
57
57
|
// types supported by any Flight configuration anywhere since
|
|
58
58
|
// we don't know which Flight build this will end up being used
|
|
59
59
|
// with.
|
|
60
|
-
a.$$typeof ===
|
|
60
|
+
a.$$typeof === ne || a.getModuleId !== void 0));
|
|
61
61
|
}
|
|
62
62
|
function Le(a, U, C) {
|
|
63
|
-
var
|
|
64
|
-
if (
|
|
65
|
-
return
|
|
63
|
+
var h = a.displayName;
|
|
64
|
+
if (h)
|
|
65
|
+
return h;
|
|
66
66
|
var L = U.displayName || U.name || "";
|
|
67
67
|
return L !== "" ? C + "(" + L + ")" : C;
|
|
68
68
|
}
|
|
@@ -101,12 +101,12 @@ function rl() {
|
|
|
101
101
|
case u:
|
|
102
102
|
return Le(a, a.render, "ForwardRef");
|
|
103
103
|
case l:
|
|
104
|
-
var
|
|
105
|
-
return
|
|
104
|
+
var h = a.displayName || null;
|
|
105
|
+
return h !== null ? h : w(a.type) || "Memo";
|
|
106
106
|
case d: {
|
|
107
|
-
var L = a,
|
|
107
|
+
var L = a, M = L._payload, D = L._init;
|
|
108
108
|
try {
|
|
109
|
-
return w(
|
|
109
|
+
return w(D(M));
|
|
110
110
|
} catch {
|
|
111
111
|
return null;
|
|
112
112
|
}
|
|
@@ -114,18 +114,18 @@ function rl() {
|
|
|
114
114
|
}
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
var V = Object.assign,
|
|
118
|
-
function
|
|
117
|
+
var V = Object.assign, me = 0, j, Ge, Me, x, F, Q, Te;
|
|
118
|
+
function re() {
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
re.__reactDisabledLog = !0;
|
|
121
121
|
function ee() {
|
|
122
122
|
{
|
|
123
|
-
if (
|
|
123
|
+
if (me === 0) {
|
|
124
124
|
j = console.log, Ge = console.info, Me = console.warn, x = console.error, F = console.group, Q = console.groupCollapsed, Te = console.groupEnd;
|
|
125
125
|
var a = {
|
|
126
126
|
configurable: !0,
|
|
127
127
|
enumerable: !0,
|
|
128
|
-
value:
|
|
128
|
+
value: re,
|
|
129
129
|
writable: !0
|
|
130
130
|
};
|
|
131
131
|
Object.defineProperties(console, {
|
|
@@ -138,12 +138,12 @@ function rl() {
|
|
|
138
138
|
groupEnd: a
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
me++;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
function Re() {
|
|
145
145
|
{
|
|
146
|
-
if (
|
|
146
|
+
if (me--, me === 0) {
|
|
147
147
|
var a = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
@@ -173,78 +173,78 @@ function rl() {
|
|
|
173
173
|
})
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
me < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
var
|
|
180
|
-
function
|
|
179
|
+
var de = c.ReactCurrentDispatcher, q;
|
|
180
|
+
function ce(a, U, C) {
|
|
181
181
|
{
|
|
182
182
|
if (q === void 0)
|
|
183
183
|
try {
|
|
184
184
|
throw Error();
|
|
185
185
|
} catch (L) {
|
|
186
|
-
var
|
|
187
|
-
q =
|
|
186
|
+
var h = L.stack.trim().match(/\n( *(at )?)/);
|
|
187
|
+
q = h && h[1] || "";
|
|
188
188
|
}
|
|
189
189
|
return `
|
|
190
190
|
` + q + a;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
var
|
|
193
|
+
var oe = !1, Pe;
|
|
194
194
|
{
|
|
195
195
|
var Li = typeof WeakMap == "function" ? WeakMap : Map;
|
|
196
196
|
Pe = new Li();
|
|
197
197
|
}
|
|
198
198
|
function da(a, U) {
|
|
199
|
-
if (!a ||
|
|
199
|
+
if (!a || oe)
|
|
200
200
|
return "";
|
|
201
201
|
{
|
|
202
202
|
var C = Pe.get(a);
|
|
203
203
|
if (C !== void 0)
|
|
204
204
|
return C;
|
|
205
205
|
}
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var h;
|
|
207
|
+
oe = !0;
|
|
208
208
|
var L = Error.prepareStackTrace;
|
|
209
209
|
Error.prepareStackTrace = void 0;
|
|
210
|
-
var
|
|
211
|
-
|
|
210
|
+
var M;
|
|
211
|
+
M = de.current, de.current = null, ee();
|
|
212
212
|
try {
|
|
213
213
|
if (U) {
|
|
214
|
-
var
|
|
214
|
+
var D = function() {
|
|
215
215
|
throw Error();
|
|
216
216
|
};
|
|
217
|
-
if (Object.defineProperty(
|
|
217
|
+
if (Object.defineProperty(D.prototype, "props", {
|
|
218
218
|
set: function() {
|
|
219
219
|
throw Error();
|
|
220
220
|
}
|
|
221
221
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
222
222
|
try {
|
|
223
|
-
Reflect.construct(
|
|
223
|
+
Reflect.construct(D, []);
|
|
224
224
|
} catch (J) {
|
|
225
|
-
|
|
225
|
+
h = J;
|
|
226
226
|
}
|
|
227
|
-
Reflect.construct(a, [],
|
|
227
|
+
Reflect.construct(a, [], D);
|
|
228
228
|
} else {
|
|
229
229
|
try {
|
|
230
|
-
|
|
230
|
+
D.call();
|
|
231
231
|
} catch (J) {
|
|
232
|
-
|
|
232
|
+
h = J;
|
|
233
233
|
}
|
|
234
|
-
a.call(
|
|
234
|
+
a.call(D.prototype);
|
|
235
235
|
}
|
|
236
236
|
} else {
|
|
237
237
|
try {
|
|
238
238
|
throw Error();
|
|
239
239
|
} catch (J) {
|
|
240
|
-
|
|
240
|
+
h = J;
|
|
241
241
|
}
|
|
242
242
|
a();
|
|
243
243
|
}
|
|
244
244
|
} catch (J) {
|
|
245
|
-
if (J &&
|
|
245
|
+
if (J && h && typeof J.stack == "string") {
|
|
246
246
|
for (var k = J.stack.split(`
|
|
247
|
-
`), W =
|
|
247
|
+
`), W = h.stack.split(`
|
|
248
248
|
`), R = k.length - 1, P = W.length - 1; R >= 1 && P >= 0 && k[R] !== W[P]; )
|
|
249
249
|
P--;
|
|
250
250
|
for (; R >= 1 && P >= 0; R--, P--)
|
|
@@ -261,10 +261,10 @@ function rl() {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
} finally {
|
|
264
|
-
|
|
264
|
+
oe = !1, de.current = M, Re(), Error.prepareStackTrace = L;
|
|
265
265
|
}
|
|
266
|
-
var
|
|
267
|
-
return typeof a == "function" && Pe.set(a,
|
|
266
|
+
var fe = a ? a.displayName || a.name : "", se = fe ? ce(fe) : "";
|
|
267
|
+
return typeof a == "function" && Pe.set(a, se), se;
|
|
268
268
|
}
|
|
269
269
|
function Gi(a, U, C) {
|
|
270
270
|
return da(a, !1);
|
|
@@ -279,12 +279,12 @@ function rl() {
|
|
|
279
279
|
if (typeof a == "function")
|
|
280
280
|
return da(a, Mi(a));
|
|
281
281
|
if (typeof a == "string")
|
|
282
|
-
return
|
|
282
|
+
return ce(a);
|
|
283
283
|
switch (a) {
|
|
284
284
|
case g:
|
|
285
|
-
return
|
|
285
|
+
return ce("Suspense");
|
|
286
286
|
case s:
|
|
287
|
-
return
|
|
287
|
+
return ce("SuspenseList");
|
|
288
288
|
}
|
|
289
289
|
if (typeof a == "object")
|
|
290
290
|
switch (a.$$typeof) {
|
|
@@ -293,9 +293,9 @@ function rl() {
|
|
|
293
293
|
case l:
|
|
294
294
|
return xe(a.type, U, C);
|
|
295
295
|
case d: {
|
|
296
|
-
var
|
|
296
|
+
var h = a, L = h._payload, M = h._init;
|
|
297
297
|
try {
|
|
298
|
-
return xe(
|
|
298
|
+
return xe(M(L), U, C);
|
|
299
299
|
} catch {
|
|
300
300
|
}
|
|
301
301
|
}
|
|
@@ -310,27 +310,27 @@ function rl() {
|
|
|
310
310
|
} else
|
|
311
311
|
_a.setExtraStackFrame(null);
|
|
312
312
|
}
|
|
313
|
-
function Ri(a, U, C,
|
|
313
|
+
function Ri(a, U, C, h, L) {
|
|
314
314
|
{
|
|
315
|
-
var
|
|
316
|
-
for (var
|
|
317
|
-
if (
|
|
315
|
+
var M = Function.call.bind(Ce);
|
|
316
|
+
for (var D in a)
|
|
317
|
+
if (M(a, D)) {
|
|
318
318
|
var k = void 0;
|
|
319
319
|
try {
|
|
320
|
-
if (typeof a[
|
|
321
|
-
var W = Error((
|
|
320
|
+
if (typeof a[D] != "function") {
|
|
321
|
+
var W = Error((h || "React class") + ": " + C + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
322
322
|
throw W.name = "Invariant Violation", W;
|
|
323
323
|
}
|
|
324
|
-
k = a[
|
|
324
|
+
k = a[D](U, D, h, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
325
325
|
} catch (R) {
|
|
326
326
|
k = R;
|
|
327
327
|
}
|
|
328
|
-
k && !(k instanceof Error) && (Oe(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).",
|
|
328
|
+
k && !(k instanceof Error) && (Oe(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).", h || "React class", C, D, typeof k), Oe(null)), k instanceof Error && !(k.message in ca) && (ca[k.message] = !0, Oe(L), T("Failed %s type: %s", C, k.message), Oe(null));
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
var Pi = Array.isArray;
|
|
333
|
-
function
|
|
333
|
+
function Be(a) {
|
|
334
334
|
return Pi(a);
|
|
335
335
|
}
|
|
336
336
|
function xi(a) {
|
|
@@ -400,7 +400,7 @@ function rl() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
var Zi = function(a, U, C,
|
|
403
|
+
var Zi = function(a, U, C, h, L, M, D) {
|
|
404
404
|
var k = {
|
|
405
405
|
// This tag allows us to uniquely identify this as a React Element
|
|
406
406
|
$$typeof: i,
|
|
@@ -408,9 +408,9 @@ function rl() {
|
|
|
408
408
|
type: a,
|
|
409
409
|
key: U,
|
|
410
410
|
ref: C,
|
|
411
|
-
props:
|
|
411
|
+
props: D,
|
|
412
412
|
// Record the component responsible for creating this element.
|
|
413
|
-
_owner:
|
|
413
|
+
_owner: M
|
|
414
414
|
};
|
|
415
415
|
return k._store = {}, Object.defineProperty(k._store, "validated", {
|
|
416
416
|
configurable: !1,
|
|
@@ -421,7 +421,7 @@ function rl() {
|
|
|
421
421
|
configurable: !1,
|
|
422
422
|
enumerable: !1,
|
|
423
423
|
writable: !1,
|
|
424
|
-
value:
|
|
424
|
+
value: h
|
|
425
425
|
}), Object.defineProperty(k, "_source", {
|
|
426
426
|
configurable: !1,
|
|
427
427
|
enumerable: !1,
|
|
@@ -429,41 +429,41 @@ function rl() {
|
|
|
429
429
|
value: L
|
|
430
430
|
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
431
431
|
};
|
|
432
|
-
function Vi(a, U, C,
|
|
432
|
+
function Vi(a, U, C, h, L) {
|
|
433
433
|
{
|
|
434
|
-
var
|
|
434
|
+
var M, D = {}, k = null, W = null;
|
|
435
435
|
C !== void 0 && (Ua(C), k = "" + C), Fi(U) && (Ua(U.key), k = "" + U.key), wi(U) && (W = U.ref, Wi(U, L));
|
|
436
|
-
for (
|
|
437
|
-
Ce.call(U,
|
|
436
|
+
for (M in U)
|
|
437
|
+
Ce.call(U, M) && !Hi.hasOwnProperty(M) && (D[M] = U[M]);
|
|
438
438
|
if (a && a.defaultProps) {
|
|
439
439
|
var R = a.defaultProps;
|
|
440
|
-
for (
|
|
441
|
-
|
|
440
|
+
for (M in R)
|
|
441
|
+
D[M] === void 0 && (D[M] = R[M]);
|
|
442
442
|
}
|
|
443
443
|
if (k || W) {
|
|
444
444
|
var P = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
445
|
-
k && Ji(
|
|
445
|
+
k && Ji(D, P), W && zi(D, P);
|
|
446
446
|
}
|
|
447
|
-
return Zi(a, k, W, L,
|
|
447
|
+
return Zi(a, k, W, L, h, ya.current, D);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
var
|
|
451
|
-
function
|
|
450
|
+
var Ke = c.ReactCurrentOwner, Ca = c.ReactDebugCurrentFrame;
|
|
451
|
+
function _e(a) {
|
|
452
452
|
if (a) {
|
|
453
453
|
var U = a._owner, C = xe(a.type, a._source, U ? U.type : null);
|
|
454
454
|
Ca.setExtraStackFrame(C);
|
|
455
455
|
} else
|
|
456
456
|
Ca.setExtraStackFrame(null);
|
|
457
457
|
}
|
|
458
|
-
var
|
|
459
|
-
|
|
460
|
-
function
|
|
458
|
+
var je;
|
|
459
|
+
je = !1;
|
|
460
|
+
function Qe(a) {
|
|
461
461
|
return typeof a == "object" && a !== null && a.$$typeof === i;
|
|
462
462
|
}
|
|
463
463
|
function va() {
|
|
464
464
|
{
|
|
465
|
-
if (
|
|
466
|
-
var a = w(
|
|
465
|
+
if (Ke.current) {
|
|
466
|
+
var a = w(Ke.current.type);
|
|
467
467
|
if (a)
|
|
468
468
|
return `
|
|
469
469
|
|
|
@@ -497,26 +497,26 @@ Check the top-level render call using <` + C + ">.");
|
|
|
497
497
|
if (ha[C])
|
|
498
498
|
return;
|
|
499
499
|
ha[C] = !0;
|
|
500
|
-
var
|
|
501
|
-
a && a._owner && a._owner !==
|
|
500
|
+
var h = "";
|
|
501
|
+
a && a._owner && a._owner !== Ke.current && (h = " It was passed a child from " + w(a._owner.type) + "."), _e(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, h), _e(null);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
function Sa(a, U) {
|
|
505
505
|
{
|
|
506
506
|
if (typeof a != "object")
|
|
507
507
|
return;
|
|
508
|
-
if (
|
|
508
|
+
if (Be(a))
|
|
509
509
|
for (var C = 0; C < a.length; C++) {
|
|
510
|
-
var
|
|
511
|
-
|
|
510
|
+
var h = a[C];
|
|
511
|
+
Qe(h) && ka(h, U);
|
|
512
512
|
}
|
|
513
|
-
else if (
|
|
513
|
+
else if (Qe(a))
|
|
514
514
|
a._store && (a._store.validated = !0);
|
|
515
515
|
else if (a) {
|
|
516
516
|
var L = b(a);
|
|
517
517
|
if (typeof L == "function" && L !== a.entries)
|
|
518
|
-
for (var
|
|
519
|
-
|
|
518
|
+
for (var M = L.call(a), D; !(D = M.next()).done; )
|
|
519
|
+
Qe(D.value) && ka(D.value, U);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
}
|
|
@@ -535,10 +535,10 @@ Check the top-level render call using <` + C + ">.");
|
|
|
535
535
|
else
|
|
536
536
|
return;
|
|
537
537
|
if (C) {
|
|
538
|
-
var
|
|
539
|
-
Ri(C, a.props, "prop",
|
|
540
|
-
} else if (U.PropTypes !== void 0 && !
|
|
541
|
-
|
|
538
|
+
var h = w(U);
|
|
539
|
+
Ri(C, a.props, "prop", h, a);
|
|
540
|
+
} else if (U.PropTypes !== void 0 && !je) {
|
|
541
|
+
je = !0;
|
|
542
542
|
var L = w(U);
|
|
543
543
|
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
|
|
544
544
|
}
|
|
@@ -548,37 +548,37 @@ Check the top-level render call using <` + C + ">.");
|
|
|
548
548
|
function Ki(a) {
|
|
549
549
|
{
|
|
550
550
|
for (var U = Object.keys(a.props), C = 0; C < U.length; C++) {
|
|
551
|
-
var
|
|
552
|
-
if (
|
|
553
|
-
|
|
551
|
+
var h = U[C];
|
|
552
|
+
if (h !== "children" && h !== "key") {
|
|
553
|
+
_e(a), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), _e(null);
|
|
554
554
|
break;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
a.ref !== null && (
|
|
557
|
+
a.ref !== null && (_e(a), T("Invalid attribute `ref` supplied to `React.Fragment`."), _e(null));
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
var Na = {};
|
|
561
|
-
function Da(a, U, C,
|
|
561
|
+
function Da(a, U, C, h, L, M) {
|
|
562
562
|
{
|
|
563
|
-
var
|
|
564
|
-
if (!
|
|
563
|
+
var D = Ie(a);
|
|
564
|
+
if (!D) {
|
|
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 W = Ai();
|
|
568
568
|
W ? k += W : k += va();
|
|
569
569
|
var R;
|
|
570
|
-
a === null ? R = "null" :
|
|
570
|
+
a === null ? R = "null" : Be(a) ? R = "array" : a !== void 0 && a.$$typeof === i ? (R = "<" + (w(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 = Vi(a, U, C, L,
|
|
572
|
+
var P = Vi(a, U, C, L, M);
|
|
573
573
|
if (P == null)
|
|
574
574
|
return P;
|
|
575
|
-
if (
|
|
575
|
+
if (D) {
|
|
576
576
|
var Z = U.children;
|
|
577
577
|
if (Z !== void 0)
|
|
578
|
-
if (
|
|
579
|
-
if (
|
|
580
|
-
for (var
|
|
581
|
-
Sa(Z[
|
|
578
|
+
if (h)
|
|
579
|
+
if (Be(Z)) {
|
|
580
|
+
for (var fe = 0; fe < Z.length; fe++)
|
|
581
|
+
Sa(Z[fe], 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.");
|
|
@@ -586,17 +586,17 @@ Check the top-level render call using <` + C + ">.");
|
|
|
586
586
|
Sa(Z, a);
|
|
587
587
|
}
|
|
588
588
|
if (Ce.call(U, "key")) {
|
|
589
|
-
var
|
|
589
|
+
var se = w(a), J = Object.keys(U).filter(function($i) {
|
|
590
590
|
return $i !== "key";
|
|
591
|
-
}),
|
|
592
|
-
if (!Na[
|
|
591
|
+
}), qe = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
592
|
+
if (!Na[se + qe]) {
|
|
593
593
|
var Xi = J.length > 0 ? "{" + J.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} />`,
|
|
599
|
+
<%s key={someKey} {...props} />`, qe, se, Xi, se), Na[se + qe] = !0;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
return a === t ? Ki(P) : Bi(P), P;
|
|
@@ -613,17 +613,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
613
613
|
})()), he;
|
|
614
614
|
}
|
|
615
615
|
var Ra;
|
|
616
|
-
function
|
|
617
|
-
return Ra || (Ra = 1, process.env.NODE_ENV === "production" ? we.exports =
|
|
616
|
+
function ul() {
|
|
617
|
+
return Ra || (Ra = 1, process.env.NODE_ENV === "production" ? we.exports = ol() : we.exports = sl()), we.exports;
|
|
618
618
|
}
|
|
619
|
-
var Je =
|
|
619
|
+
var Je = ul();
|
|
620
620
|
const ri = li(null), le = () => {
|
|
621
621
|
const e = ti(ri);
|
|
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 pl({
|
|
627
627
|
baseURL: e,
|
|
628
628
|
getToken: i,
|
|
629
629
|
timeoutMs: m = 15e3,
|
|
@@ -648,14 +648,14 @@ function sl({
|
|
|
648
648
|
(_) => p ? p(_, { instance: f }) : Promise.reject(_)
|
|
649
649
|
), f;
|
|
650
650
|
}
|
|
651
|
-
const oi = li(null),
|
|
651
|
+
const oi = li(null), rt = () => {
|
|
652
652
|
const e = ti(oi);
|
|
653
653
|
if (!e)
|
|
654
654
|
throw new Error(
|
|
655
655
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
656
656
|
);
|
|
657
657
|
return e;
|
|
658
|
-
},
|
|
658
|
+
}, ot = () => {
|
|
659
659
|
const e = (t, r) => !t && !r, i = (t) => t.startsWith("pc.");
|
|
660
660
|
return {
|
|
661
661
|
executeLogout: ({
|
|
@@ -674,10 +674,10 @@ const oi = li(null), nt = () => {
|
|
|
674
674
|
shouldShowErrorNotice: e,
|
|
675
675
|
isMachineDomain: i
|
|
676
676
|
};
|
|
677
|
-
}, si = (e = [], i) =>
|
|
677
|
+
}, si = (e = [], i) => na(e, { gameTypeName: i })?.gameTypeUid, ui = (e = [], i) => na(e, { platform: i })?.platformUid, pi = (e = [], i) => na(e, { SubPlatformEnum: i }), gi = (e = [], i, m) => O(e) ? [] : e.filter((t) => m ? String(t?.SubPlatformEnumUid) === String(m?.SubPlatformEnumUid) : String(t.platformUid) === String(i)), gl = (e = []) => O(e) ? {} : e.reduce((i, m) => {
|
|
678
678
|
const t = m?.game_subtype || "UNKNOWN";
|
|
679
679
|
return i[t] || (i[t] = []), i[t].push(m), i;
|
|
680
|
-
}, {}),
|
|
680
|
+
}, {}), dl = ({
|
|
681
681
|
gameTypeName: e,
|
|
682
682
|
platforms: i,
|
|
683
683
|
gameList: m,
|
|
@@ -693,7 +693,7 @@ const oi = li(null), nt = () => {
|
|
|
693
693
|
);
|
|
694
694
|
return O(l) || (f[_] = l), f;
|
|
695
695
|
}, {}) : {};
|
|
696
|
-
},
|
|
696
|
+
}, cl = ({
|
|
697
697
|
platformName: e,
|
|
698
698
|
gamesOfType: i = [],
|
|
699
699
|
allPlatforms: m = []
|
|
@@ -703,20 +703,20 @@ const oi = li(null), nt = () => {
|
|
|
703
703
|
t,
|
|
704
704
|
r
|
|
705
705
|
);
|
|
706
|
-
return
|
|
707
|
-
},
|
|
706
|
+
return gl(p);
|
|
707
|
+
}, _l = (e = {}) => !Ze(e) || O(e) ? [] : Ve(e), Pa = (e = []) => !ie(e) || O(e) ? [] : Ae(e, "platform"), fl = (e = []) => !ie(e) || O(e) ? [] : Ae(e, "gameTypeName"), Ul = (e = []) => !ie(e) || O(e) ? [] : Ae(e, "game_subtype"), yl = (e = {}) => !Ze(e) || O(e) ? [] : Ve(e), bl = (e = [], i = []) => !ie(e) || O(e) ? {} : !ie(i) || O(i) ? {} : e.reduce((m, t) => {
|
|
708
708
|
const r = i.map((p) => p.game_subtype);
|
|
709
709
|
return r.forEach((p) => {
|
|
710
710
|
m[p] = m[p] || [];
|
|
711
711
|
}), r.includes(t.game_subtype) && m[t.game_subtype].push(t), m;
|
|
712
|
-
}, {}),
|
|
712
|
+
}, {}), Tl = ({
|
|
713
713
|
gameTypes: e = [],
|
|
714
714
|
platforms: i = [],
|
|
715
715
|
gameList: m = {},
|
|
716
716
|
allGameTypes: t = [],
|
|
717
717
|
allPlatforms: r = []
|
|
718
718
|
}) => !ie(e) || !ie(i) ? {} : O(m) ? {} : e.reduce((p, f) => {
|
|
719
|
-
const _ =
|
|
719
|
+
const _ = dl({
|
|
720
720
|
gameTypeName: f,
|
|
721
721
|
platforms: i,
|
|
722
722
|
gameList: m,
|
|
@@ -724,7 +724,7 @@ const oi = li(null), nt = () => {
|
|
|
724
724
|
allPlatforms: r
|
|
725
725
|
});
|
|
726
726
|
return O(_) || (p[f] = _), p;
|
|
727
|
-
}, {}),
|
|
727
|
+
}, {}), st = ({
|
|
728
728
|
types: e = [],
|
|
729
729
|
platforms: i = [],
|
|
730
730
|
allGameType: m = [],
|
|
@@ -734,7 +734,7 @@ const oi = li(null), nt = () => {
|
|
|
734
734
|
const _ = si(m, f);
|
|
735
735
|
if (!_) return p;
|
|
736
736
|
const u = r[_] || [], g = i.reduce((s, l) => {
|
|
737
|
-
const d =
|
|
737
|
+
const d = cl({
|
|
738
738
|
platformName: l,
|
|
739
739
|
gamesOfType: u,
|
|
740
740
|
allPlatforms: t
|
|
@@ -742,9 +742,9 @@ const oi = li(null), nt = () => {
|
|
|
742
742
|
return O(d) ? s : { ...s, [l]: d };
|
|
743
743
|
}, {});
|
|
744
744
|
return O(g) || (p[f] = g), p;
|
|
745
|
-
}, {}),
|
|
745
|
+
}, {}), Cl = (e = {}) => !Ze(e) || O(e) ? {} : Object.values(e).reduce((m, t) => (Object.entries(t).forEach(([r, p]) => {
|
|
746
746
|
m[r] ? m[r] = [...m[r], ...p] : m[r] = p;
|
|
747
|
-
}), m), {}),
|
|
747
|
+
}), m), {}), vl = (e = {}) => {
|
|
748
748
|
if (!Ze(e) || O(e)) return {};
|
|
749
749
|
const i = {};
|
|
750
750
|
for (const [m, t] of Object.entries(e)) {
|
|
@@ -755,7 +755,7 @@ const oi = li(null), nt = () => {
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
return i;
|
|
758
|
-
},
|
|
758
|
+
}, hl = ({
|
|
759
759
|
allGameList: e = {},
|
|
760
760
|
allGamePlatform: i = [],
|
|
761
761
|
allGameType: m = [],
|
|
@@ -768,13 +768,19 @@ const oi = li(null), nt = () => {
|
|
|
768
768
|
highlightGames: g = [],
|
|
769
769
|
originPlatform: s = []
|
|
770
770
|
}) => {
|
|
771
|
-
const l =
|
|
771
|
+
const l = _l(e), d = Pa(i), n = fl(m), o = Ul(t), y = Pa(s), b = yl(_), c = Tl({
|
|
772
772
|
gameTypes: n,
|
|
773
773
|
platforms: d,
|
|
774
774
|
gameList: e,
|
|
775
775
|
allGameTypes: m,
|
|
776
776
|
allPlatforms: i
|
|
777
|
-
}), T =
|
|
777
|
+
}), T = bl(l, t), S = Cl(c), E = vl(S), v = ll(c).reduce(
|
|
778
|
+
(N, [G, te]) => {
|
|
779
|
+
const ne = Ve(tl(te));
|
|
780
|
+
return N[G] = ne, N;
|
|
781
|
+
},
|
|
782
|
+
{}
|
|
783
|
+
);
|
|
778
784
|
return {
|
|
779
785
|
platform: {
|
|
780
786
|
all: d,
|
|
@@ -799,13 +805,15 @@ const oi = li(null), nt = () => {
|
|
|
799
805
|
categorized: {
|
|
800
806
|
bySubType: { ...T, MyFavorite: b },
|
|
801
807
|
byPlatform: S,
|
|
802
|
-
byPlatformAndCategory:
|
|
808
|
+
byPlatformAndCategory: E,
|
|
809
|
+
byGameTypeAndPlatform: c,
|
|
810
|
+
byGameType: v
|
|
803
811
|
},
|
|
804
812
|
user: {
|
|
805
813
|
favorite: b
|
|
806
814
|
}
|
|
807
815
|
};
|
|
808
|
-
},
|
|
816
|
+
}, ut = (e = []) => !ie(e) || O(e) ? [] : Ve(e, (i) => O(i.SubPlatformEnum) ? i : i.SubPlatformEnum.map((m) => ({
|
|
809
817
|
...i,
|
|
810
818
|
...m,
|
|
811
819
|
platform: m.SubPlatformEnum,
|
|
@@ -829,7 +837,7 @@ const oi = li(null), nt = () => {
|
|
|
829
837
|
default:
|
|
830
838
|
return e;
|
|
831
839
|
}
|
|
832
|
-
},
|
|
840
|
+
}, ye = () => {
|
|
833
841
|
const { client: e } = le(), i = B(
|
|
834
842
|
async (u) => {
|
|
835
843
|
const { mac_address: g = "", app_version: s = "", anydesk_id: l = "" } = u, { data: d } = await e.post("/cash-register/login", {
|
|
@@ -860,7 +868,7 @@ const oi = li(null), nt = () => {
|
|
|
860
868
|
userLoginApi: f,
|
|
861
869
|
userLogoutApi: _
|
|
862
870
|
};
|
|
863
|
-
},
|
|
871
|
+
}, kl = {
|
|
864
872
|
platform: { all: [], origin: [], originPlatform: [] },
|
|
865
873
|
type: { main: [], sub: [], originMain: [], originSub: [] },
|
|
866
874
|
gameList: {
|
|
@@ -875,11 +883,13 @@ const oi = li(null), nt = () => {
|
|
|
875
883
|
categorized: {
|
|
876
884
|
bySubType: {},
|
|
877
885
|
byPlatform: {},
|
|
878
|
-
byPlatformAndCategory: {}
|
|
886
|
+
byPlatformAndCategory: {},
|
|
887
|
+
byGameTypeAndPlatform: {},
|
|
888
|
+
byGameType: {}
|
|
879
889
|
},
|
|
880
890
|
user: { favorite: [] }
|
|
881
|
-
},
|
|
882
|
-
const { getToken: i } = le(), { userFavoriteGameApi: m, userGameListApi: t } =
|
|
891
|
+
}, Sl = ({ enabled: e = !0 } = {}) => {
|
|
892
|
+
const { getToken: i } = le(), { userFavoriteGameApi: m, userGameListApi: t } = ye(), { data: r, isLoading: p, error: f, refetch: _ } = ae({
|
|
883
893
|
queryKey: ["gamesInfo"],
|
|
884
894
|
queryFn: async () => {
|
|
885
895
|
let u = {}, g = {};
|
|
@@ -888,7 +898,7 @@ const oi = li(null), nt = () => {
|
|
|
888
898
|
} catch (s) {
|
|
889
899
|
console.warn("Failed to fetch favorite games:", s);
|
|
890
900
|
}
|
|
891
|
-
return
|
|
901
|
+
return hl({
|
|
892
902
|
allGameList: g.gameTypeGroup || window.gameTypeGroup || {},
|
|
893
903
|
allGamePlatform: g.platforms || window.platforms || [],
|
|
894
904
|
allGameType: g.gameType || window.gameType || [],
|
|
@@ -911,12 +921,12 @@ const oi = li(null), nt = () => {
|
|
|
911
921
|
refetchOnWindowFocus: !1
|
|
912
922
|
});
|
|
913
923
|
return {
|
|
914
|
-
gamesInfo: r ||
|
|
924
|
+
gamesInfo: r || kl,
|
|
915
925
|
isLoading: p,
|
|
916
926
|
error: f,
|
|
917
927
|
refetch: _
|
|
918
928
|
};
|
|
919
|
-
},
|
|
929
|
+
}, Nl = (e = !1) => {
|
|
920
930
|
if (!e && window.gameTypeGroup) {
|
|
921
931
|
console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
|
|
922
932
|
return;
|
|
@@ -27443,25 +27453,25 @@ const oi = li(null), nt = () => {
|
|
|
27443
27453
|
is_invalid_bet: 0
|
|
27444
27454
|
}
|
|
27445
27455
|
});
|
|
27446
|
-
},
|
|
27456
|
+
}, Dl = ({
|
|
27447
27457
|
children: e,
|
|
27448
27458
|
autoFetch: i = !1,
|
|
27449
27459
|
mockData: m = !1
|
|
27450
27460
|
}) => {
|
|
27451
27461
|
Ne(() => {
|
|
27452
|
-
m &&
|
|
27462
|
+
m && Nl(!0);
|
|
27453
27463
|
}, [m]);
|
|
27454
|
-
const t =
|
|
27464
|
+
const t = Sl({ enabled: i });
|
|
27455
27465
|
return /* @__PURE__ */ Je.jsx(oi.Provider, { value: t, children: e });
|
|
27456
27466
|
};
|
|
27457
|
-
function
|
|
27467
|
+
function pt({
|
|
27458
27468
|
children: e,
|
|
27459
27469
|
autoFetchGamesInfo: i = !1,
|
|
27460
27470
|
useMockData: m = !1,
|
|
27461
27471
|
queryClient: t,
|
|
27462
27472
|
...r
|
|
27463
27473
|
}) {
|
|
27464
|
-
const p =
|
|
27474
|
+
const p = ia(() => pl(r), [r]), f = ia(
|
|
27465
27475
|
() => new el({
|
|
27466
27476
|
defaultOptions: {
|
|
27467
27477
|
queries: {
|
|
@@ -27472,10 +27482,10 @@ function st({
|
|
|
27472
27482
|
}),
|
|
27473
27483
|
[]
|
|
27474
27484
|
), _ = t || f;
|
|
27475
|
-
return /* @__PURE__ */ Je.jsx(al, { client: _, children: /* @__PURE__ */ Je.jsx(ri.Provider, { value: { client: p, ...r }, children: /* @__PURE__ */ Je.jsx(
|
|
27485
|
+
return /* @__PURE__ */ Je.jsx(al, { client: _, children: /* @__PURE__ */ Je.jsx(ri.Provider, { value: { client: p, ...r }, children: /* @__PURE__ */ Je.jsx(Dl, { autoFetch: i, mockData: m, children: e }) }) });
|
|
27476
27486
|
}
|
|
27477
|
-
const
|
|
27478
|
-
const { userCurrencyExchangeApi: m } =
|
|
27487
|
+
const gt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
27488
|
+
const { userCurrencyExchangeApi: m } = ye(), { getToken: t } = le(), { enabled: r, ...p } = i, _ = !!t?.() && (r ? r.every((u) => u) : !0);
|
|
27479
27489
|
return ni({
|
|
27480
27490
|
queries: [
|
|
27481
27491
|
{
|
|
@@ -27488,12 +27498,12 @@ const ut = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
|
27488
27498
|
}
|
|
27489
27499
|
]
|
|
27490
27500
|
});
|
|
27491
|
-
},
|
|
27501
|
+
}, dt = ({
|
|
27492
27502
|
refetchInterval: e = 5e4,
|
|
27493
27503
|
trigger: i = [],
|
|
27494
27504
|
enabled: m = !0
|
|
27495
27505
|
} = {}) => {
|
|
27496
|
-
const { getToken: t } = le(), r = t?.(), { userInfoApi: p } =
|
|
27506
|
+
const { getToken: t } = le(), r = t?.(), { userInfoApi: p } = ye();
|
|
27497
27507
|
return ni({
|
|
27498
27508
|
queries: [
|
|
27499
27509
|
{
|
|
@@ -27504,13 +27514,13 @@ const ut = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
|
27504
27514
|
}
|
|
27505
27515
|
]
|
|
27506
27516
|
});
|
|
27507
|
-
},
|
|
27517
|
+
}, ct = ({ enabled: e = !0 } = {}) => {
|
|
27508
27518
|
const {
|
|
27509
27519
|
userInfoApi: i,
|
|
27510
27520
|
userFavoriteGameApi: m,
|
|
27511
27521
|
userGameListApi: t,
|
|
27512
27522
|
userCurrencyExchangeApi: r
|
|
27513
|
-
} =
|
|
27523
|
+
} = ye(), p = ae({
|
|
27514
27524
|
queryKey: ["getMemInfo"],
|
|
27515
27525
|
queryFn: async () => i(),
|
|
27516
27526
|
enabled: e
|
|
@@ -27534,7 +27544,7 @@ const ut = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
|
27534
27544
|
u
|
|
27535
27545
|
];
|
|
27536
27546
|
};
|
|
27537
|
-
var
|
|
27547
|
+
var Ye = {}, z = {}, Xe = {}, xa;
|
|
27538
27548
|
function K() {
|
|
27539
27549
|
return xa || (xa = 1, (function(e) {
|
|
27540
27550
|
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;
|
|
@@ -27559,9 +27569,9 @@ function K() {
|
|
|
27559
27569
|
}
|
|
27560
27570
|
};
|
|
27561
27571
|
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && r();
|
|
27562
|
-
})(
|
|
27572
|
+
})(Xe)), Xe;
|
|
27563
27573
|
}
|
|
27564
|
-
var ke = {},
|
|
27574
|
+
var ke = {}, $e = {}, Oa;
|
|
27565
27575
|
function ma() {
|
|
27566
27576
|
return Oa || (Oa = 1, (function(e) {
|
|
27567
27577
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
|
|
@@ -27573,9 +27583,9 @@ function ma() {
|
|
|
27573
27583
|
e.sharedWebSockets.hasOwnProperty(t) && delete e.sharedWebSockets[t];
|
|
27574
27584
|
};
|
|
27575
27585
|
e.resetWebSockets = i;
|
|
27576
|
-
})(
|
|
27586
|
+
})($e)), $e;
|
|
27577
27587
|
}
|
|
27578
|
-
var
|
|
27588
|
+
var ue = {}, Y = {}, Ha;
|
|
27579
27589
|
function ra() {
|
|
27580
27590
|
if (Ha) return Y;
|
|
27581
27591
|
Ha = 1, Object.defineProperty(Y, "__esModule", { value: !0 }), Y.setUpSocketIOPing = Y.appendQueryParams = Y.parseSocketIOUrl = void 0;
|
|
@@ -27637,7 +27647,7 @@ function ci() {
|
|
|
27637
27647
|
}
|
|
27638
27648
|
return Fe;
|
|
27639
27649
|
}
|
|
27640
|
-
var Se = {},
|
|
27650
|
+
var Se = {}, ea = {}, Fa;
|
|
27641
27651
|
function oa() {
|
|
27642
27652
|
return Fa || (Fa = 1, (function(e) {
|
|
27643
27653
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
|
|
@@ -27666,7 +27676,7 @@ function oa() {
|
|
|
27666
27676
|
i.hasOwnProperty(g) && delete i[g];
|
|
27667
27677
|
};
|
|
27668
27678
|
e.resetSubscribers = _;
|
|
27669
|
-
})(
|
|
27679
|
+
})(ea)), ea;
|
|
27670
27680
|
}
|
|
27671
27681
|
var Wa;
|
|
27672
27682
|
function sa() {
|
|
@@ -27683,10 +27693,10 @@ function sa() {
|
|
|
27683
27693
|
return Se;
|
|
27684
27694
|
}
|
|
27685
27695
|
var Ja;
|
|
27686
|
-
function
|
|
27687
|
-
if (Ja) return
|
|
27696
|
+
function El() {
|
|
27697
|
+
if (Ja) return ue;
|
|
27688
27698
|
Ja = 1;
|
|
27689
|
-
var e =
|
|
27699
|
+
var e = ue && ue.__assign || function() {
|
|
27690
27700
|
return e = Object.assign || function(s) {
|
|
27691
27701
|
for (var l, d = 1, n = arguments.length; d < n; d++) {
|
|
27692
27702
|
l = arguments[d];
|
|
@@ -27695,7 +27705,7 @@ function Nl() {
|
|
|
27695
27705
|
return s;
|
|
27696
27706
|
}, e.apply(this, arguments);
|
|
27697
27707
|
};
|
|
27698
|
-
Object.defineProperty(
|
|
27708
|
+
Object.defineProperty(ue, "__esModule", { value: !0 }), ue.attachListeners = void 0;
|
|
27699
27709
|
var i = ra(), m = ci(), t = K(), r = sa(), p = function(s, l, d, n) {
|
|
27700
27710
|
s.onmessage = function(o) {
|
|
27701
27711
|
var y;
|
|
@@ -27745,18 +27755,18 @@ function Nl() {
|
|
|
27745
27755
|
return y && window.clearTimeout(y);
|
|
27746
27756
|
};
|
|
27747
27757
|
}, g = function(s, l, d, n, o, y, b) {
|
|
27748
|
-
var c = l.setLastMessage, T = l.setReadyState, S,
|
|
27749
|
-
return d.current.fromSocketIO && (S = (0, i.setUpSocketIOPing)(b)), p(s, d, c, y), f(s, d, T, o, y),
|
|
27750
|
-
T(t.ReadyState.CLOSING),
|
|
27758
|
+
var c = l.setLastMessage, T = l.setReadyState, S, E, v;
|
|
27759
|
+
return d.current.fromSocketIO && (S = (0, i.setUpSocketIOPing)(b)), p(s, d, c, y), f(s, d, T, o, y), E = _(s, d, T, n, o), v = u(s, d, T, n, o), function() {
|
|
27760
|
+
T(t.ReadyState.CLOSING), E(), v(), s.close(), S && clearInterval(S);
|
|
27751
27761
|
};
|
|
27752
27762
|
};
|
|
27753
|
-
return
|
|
27763
|
+
return ue.attachListeners = g, ue;
|
|
27754
27764
|
}
|
|
27755
|
-
var
|
|
27756
|
-
function
|
|
27757
|
-
if (za) return
|
|
27765
|
+
var pe = {}, za;
|
|
27766
|
+
function Ll() {
|
|
27767
|
+
if (za) return pe;
|
|
27758
27768
|
za = 1;
|
|
27759
|
-
var e =
|
|
27769
|
+
var e = pe && pe.__assign || function() {
|
|
27760
27770
|
return e = Object.assign || function(l) {
|
|
27761
27771
|
for (var d, n = 1, o = arguments.length; n < o; n++) {
|
|
27762
27772
|
d = arguments[n];
|
|
@@ -27765,7 +27775,7 @@ function Dl() {
|
|
|
27765
27775
|
return l;
|
|
27766
27776
|
}, e.apply(this, arguments);
|
|
27767
27777
|
};
|
|
27768
|
-
Object.defineProperty(
|
|
27778
|
+
Object.defineProperty(pe, "__esModule", { value: !0 }), pe.attachSharedListeners = void 0;
|
|
27769
27779
|
var i = ma(), m = K(), t = oa(), r = ra(), p = ci(), f = function(l, d, n) {
|
|
27770
27780
|
l.onmessage = function(o) {
|
|
27771
27781
|
(0, t.getSubscribers)(d).forEach(function(y) {
|
|
@@ -27812,13 +27822,13 @@ function Dl() {
|
|
|
27812
27822
|
y && clearInterval(y);
|
|
27813
27823
|
};
|
|
27814
27824
|
};
|
|
27815
|
-
return
|
|
27825
|
+
return pe.attachSharedListeners = s, pe;
|
|
27816
27826
|
}
|
|
27817
27827
|
var Za;
|
|
27818
|
-
function
|
|
27828
|
+
function Gl() {
|
|
27819
27829
|
if (Za) return ke;
|
|
27820
27830
|
Za = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.createOrJoinSocket = void 0;
|
|
27821
|
-
var e = ma(), i = K(), m =
|
|
27831
|
+
var e = ma(), i = K(), m = El(), t = Ll(), r = oa(), p = function(_, u, g, s, l) {
|
|
27822
27832
|
return function() {
|
|
27823
27833
|
if ((0, r.removeSubscriber)(_, u), !(0, r.hasSubscribers)(_)) {
|
|
27824
27834
|
try {
|
|
@@ -27858,7 +27868,7 @@ function El() {
|
|
|
27858
27868
|
return ke.createOrJoinSocket = f, ke;
|
|
27859
27869
|
}
|
|
27860
27870
|
var X = {}, Va;
|
|
27861
|
-
function
|
|
27871
|
+
function Ml() {
|
|
27862
27872
|
return Va || (Va = 1, (function(e) {
|
|
27863
27873
|
var i = X && X.__awaiter || function(u, g, s, l) {
|
|
27864
27874
|
function d(n) {
|
|
@@ -27959,22 +27969,22 @@ function Ll() {
|
|
|
27959
27969
|
for (var s = [], l = 2; l < arguments.length; l++)
|
|
27960
27970
|
s[l - 2] = arguments[l];
|
|
27961
27971
|
return i(void 0, t([u, g], s, !0), void 0, function(d, n, o) {
|
|
27962
|
-
var y, b, c, T, S,
|
|
27963
|
-
return o === void 0 && (o = 0), m(this, function(
|
|
27964
|
-
switch (
|
|
27972
|
+
var y, b, c, T, S, E, v, N;
|
|
27973
|
+
return o === void 0 && (o = 0), m(this, function(G) {
|
|
27974
|
+
switch (G.label) {
|
|
27965
27975
|
case 0:
|
|
27966
27976
|
if (typeof d != "function") return [3, 10];
|
|
27967
|
-
|
|
27977
|
+
G.label = 1;
|
|
27968
27978
|
case 1:
|
|
27969
|
-
return
|
|
27979
|
+
return G.trys.push([1, 3, , 9]), [4, d()];
|
|
27970
27980
|
case 2:
|
|
27971
|
-
return y =
|
|
27981
|
+
return y = G.sent(), [3, 9];
|
|
27972
27982
|
case 3:
|
|
27973
|
-
return
|
|
27983
|
+
return G.sent(), n.current.retryOnError ? (b = (E = n.current.reconnectAttempts) !== null && E !== void 0 ? E : p.DEFAULT_RECONNECT_LIMIT, o < b ? (c = typeof n.current.reconnectInterval == "function" ? n.current.reconnectInterval(o) : n.current.reconnectInterval, [4, f(c ?? p.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
|
27974
27984
|
case 4:
|
|
27975
|
-
return
|
|
27985
|
+
return G.sent(), [2, (0, e.getUrl)(d, n, o + 1)];
|
|
27976
27986
|
case 5:
|
|
27977
|
-
return (
|
|
27987
|
+
return (N = (v = n.current).onReconnectStop) === null || N === void 0 || N.call(v, o), [2, null];
|
|
27978
27988
|
case 6:
|
|
27979
27989
|
return [3, 8];
|
|
27980
27990
|
case 7:
|
|
@@ -27984,7 +27994,7 @@ function Ll() {
|
|
|
27984
27994
|
case 9:
|
|
27985
27995
|
return [3, 11];
|
|
27986
27996
|
case 10:
|
|
27987
|
-
y = d,
|
|
27997
|
+
y = d, G.label = 11;
|
|
27988
27998
|
case 11:
|
|
27989
27999
|
return T = n.current.fromSocketIO ? (0, r.parseSocketIOUrl)(y) : y, S = n.current.queryParams ? (0, r.appendQueryParams)(T, n.current.queryParams) : T, [2, S];
|
|
27990
28000
|
}
|
|
@@ -27994,8 +28004,8 @@ function Ll() {
|
|
|
27994
28004
|
e.getUrl = _;
|
|
27995
28005
|
})(X)), X;
|
|
27996
28006
|
}
|
|
27997
|
-
var
|
|
27998
|
-
function
|
|
28007
|
+
var aa = {}, Aa;
|
|
28008
|
+
function Rl() {
|
|
27999
28009
|
return Aa || (Aa = 1, (function(e) {
|
|
28000
28010
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
28001
28011
|
var i = function(m, t) {
|
|
@@ -28011,7 +28021,7 @@ function Gl() {
|
|
|
28011
28021
|
});
|
|
28012
28022
|
};
|
|
28013
28023
|
e.websocketWrapper = i, e.default = e.websocketWrapper;
|
|
28014
|
-
})(
|
|
28024
|
+
})(aa)), aa;
|
|
28015
28025
|
}
|
|
28016
28026
|
var Ia;
|
|
28017
28027
|
function ua() {
|
|
@@ -28032,24 +28042,24 @@ function ua() {
|
|
|
28032
28042
|
});
|
|
28033
28043
|
}
|
|
28034
28044
|
return new (o || (o = Promise))(function(c, T) {
|
|
28035
|
-
function S(
|
|
28045
|
+
function S(N) {
|
|
28036
28046
|
try {
|
|
28037
|
-
|
|
28038
|
-
} catch (
|
|
28039
|
-
T(
|
|
28047
|
+
v(y.next(N));
|
|
28048
|
+
} catch (G) {
|
|
28049
|
+
T(G);
|
|
28040
28050
|
}
|
|
28041
28051
|
}
|
|
28042
|
-
function
|
|
28052
|
+
function E(N) {
|
|
28043
28053
|
try {
|
|
28044
|
-
|
|
28045
|
-
} catch (
|
|
28046
|
-
T(
|
|
28054
|
+
v(y.throw(N));
|
|
28055
|
+
} catch (G) {
|
|
28056
|
+
T(G);
|
|
28047
28057
|
}
|
|
28048
28058
|
}
|
|
28049
|
-
function
|
|
28050
|
-
|
|
28059
|
+
function v(N) {
|
|
28060
|
+
N.done ? c(N.value) : b(N.value).then(S, E);
|
|
28051
28061
|
}
|
|
28052
|
-
|
|
28062
|
+
v((y = y.apply(d, n || [])).next());
|
|
28053
28063
|
});
|
|
28054
28064
|
}, m = z && z.__generator || function(d, n) {
|
|
28055
28065
|
var o = { label: 0, sent: function() {
|
|
@@ -28059,64 +28069,64 @@ function ua() {
|
|
|
28059
28069
|
return T.next = S(0), T.throw = S(1), T.return = S(2), typeof Symbol == "function" && (T[Symbol.iterator] = function() {
|
|
28060
28070
|
return this;
|
|
28061
28071
|
}), T;
|
|
28062
|
-
function S(
|
|
28063
|
-
return function(
|
|
28064
|
-
return
|
|
28072
|
+
function S(v) {
|
|
28073
|
+
return function(N) {
|
|
28074
|
+
return E([v, N]);
|
|
28065
28075
|
};
|
|
28066
28076
|
}
|
|
28067
|
-
function
|
|
28077
|
+
function E(v) {
|
|
28068
28078
|
if (y) throw new TypeError("Generator is already executing.");
|
|
28069
|
-
for (; T && (T = 0,
|
|
28070
|
-
if (y = 1, b && (c =
|
|
28071
|
-
switch (b = 0, c && (
|
|
28079
|
+
for (; T && (T = 0, v[0] && (o = 0)), o; ) try {
|
|
28080
|
+
if (y = 1, b && (c = v[0] & 2 ? b.return : v[0] ? b.throw || ((c = b.return) && c.call(b), 0) : b.next) && !(c = c.call(b, v[1])).done) return c;
|
|
28081
|
+
switch (b = 0, c && (v = [v[0] & 2, c.value]), v[0]) {
|
|
28072
28082
|
case 0:
|
|
28073
28083
|
case 1:
|
|
28074
|
-
c =
|
|
28084
|
+
c = v;
|
|
28075
28085
|
break;
|
|
28076
28086
|
case 4:
|
|
28077
|
-
return o.label++, { value:
|
|
28087
|
+
return o.label++, { value: v[1], done: !1 };
|
|
28078
28088
|
case 5:
|
|
28079
|
-
o.label++, b =
|
|
28089
|
+
o.label++, b = v[1], v = [0];
|
|
28080
28090
|
continue;
|
|
28081
28091
|
case 7:
|
|
28082
|
-
|
|
28092
|
+
v = o.ops.pop(), o.trys.pop();
|
|
28083
28093
|
continue;
|
|
28084
28094
|
default:
|
|
28085
|
-
if (c = o.trys, !(c = c.length > 0 && c[c.length - 1]) && (
|
|
28095
|
+
if (c = o.trys, !(c = c.length > 0 && c[c.length - 1]) && (v[0] === 6 || v[0] === 2)) {
|
|
28086
28096
|
o = 0;
|
|
28087
28097
|
continue;
|
|
28088
28098
|
}
|
|
28089
|
-
if (
|
|
28090
|
-
o.label =
|
|
28099
|
+
if (v[0] === 3 && (!c || v[1] > c[0] && v[1] < c[3])) {
|
|
28100
|
+
o.label = v[1];
|
|
28091
28101
|
break;
|
|
28092
28102
|
}
|
|
28093
|
-
if (
|
|
28094
|
-
o.label = c[1], c =
|
|
28103
|
+
if (v[0] === 6 && o.label < c[1]) {
|
|
28104
|
+
o.label = c[1], c = v;
|
|
28095
28105
|
break;
|
|
28096
28106
|
}
|
|
28097
28107
|
if (c && o.label < c[2]) {
|
|
28098
|
-
o.label = c[2], o.ops.push(
|
|
28108
|
+
o.label = c[2], o.ops.push(v);
|
|
28099
28109
|
break;
|
|
28100
28110
|
}
|
|
28101
28111
|
c[2] && o.ops.pop(), o.trys.pop();
|
|
28102
28112
|
continue;
|
|
28103
28113
|
}
|
|
28104
|
-
|
|
28105
|
-
} catch (
|
|
28106
|
-
|
|
28114
|
+
v = n.call(d, o);
|
|
28115
|
+
} catch (N) {
|
|
28116
|
+
v = [6, N], b = 0;
|
|
28107
28117
|
} finally {
|
|
28108
28118
|
y = c = 0;
|
|
28109
28119
|
}
|
|
28110
|
-
if (
|
|
28111
|
-
return { value:
|
|
28120
|
+
if (v[0] & 5) throw v[1];
|
|
28121
|
+
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
28112
28122
|
}
|
|
28113
28123
|
}, t = z && z.__importDefault || function(d) {
|
|
28114
28124
|
return d && d.__esModule ? d : { default: d };
|
|
28115
28125
|
};
|
|
28116
28126
|
Object.defineProperty(z, "__esModule", { value: !0 }), z.useWebSocket = void 0;
|
|
28117
|
-
var r = Ee, p =
|
|
28127
|
+
var r = Ee, p = ml, f = K(), _ = Gl(), u = Ml(), g = t(Rl()), s = sa(), l = function(d, n, o) {
|
|
28118
28128
|
n === void 0 && (n = f.DEFAULT_OPTIONS), o === void 0 && (o = !0);
|
|
28119
|
-
var y = (0, r.useState)(null), b = y[0], c = y[1], T = (0, r.useState)({}), S = T[0],
|
|
28129
|
+
var y = (0, r.useState)(null), b = y[0], c = y[1], T = (0, r.useState)({}), S = T[0], E = T[1], v = (0, r.useMemo)(function() {
|
|
28120
28130
|
if (!n.disableJson && b)
|
|
28121
28131
|
try {
|
|
28122
28132
|
return JSON.parse(b.data);
|
|
@@ -28124,33 +28134,33 @@ function ua() {
|
|
|
28124
28134
|
return f.UNPARSABLE_JSON_OBJECT;
|
|
28125
28135
|
}
|
|
28126
28136
|
return null;
|
|
28127
|
-
}, [b, n.disableJson]),
|
|
28128
|
-
}),
|
|
28137
|
+
}, [b, n.disableJson]), N = (0, r.useRef)(null), G = (0, r.useRef)(null), te = (0, r.useRef)(function() {
|
|
28138
|
+
}), ne = (0, r.useRef)(0), Ie = (0, r.useRef)(Date.now()), Le = (0, r.useRef)([]), A = (0, r.useRef)(null), w = (0, r.useRef)(n);
|
|
28129
28139
|
w.current = n;
|
|
28130
|
-
var V =
|
|
28140
|
+
var V = N.current && S[N.current] !== void 0 ? S[N.current] : d !== null && o === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, me = n.queryParams ? JSON.stringify(n.queryParams) : null, j = (0, r.useCallback)(function(x, F) {
|
|
28131
28141
|
var Q;
|
|
28132
|
-
if (F === void 0 && (F = !0), f.isEventSourceSupported &&
|
|
28142
|
+
if (F === void 0 && (F = !0), f.isEventSourceSupported && G.current instanceof EventSource) {
|
|
28133
28143
|
console.warn("Unable to send a message from an eventSource");
|
|
28134
28144
|
return;
|
|
28135
28145
|
}
|
|
28136
|
-
((Q =
|
|
28146
|
+
((Q = G.current) === null || Q === void 0 ? void 0 : Q.readyState) === f.ReadyState.OPEN ? ((0, s.assertIsWebSocket)(G.current, w.current.skipAssert), G.current.send(x)) : F && Le.current.push(x);
|
|
28137
28147
|
}, []), Ge = (0, r.useCallback)(function(x, F) {
|
|
28138
28148
|
F === void 0 && (F = !0), j(JSON.stringify(x), F);
|
|
28139
28149
|
}, [j]), Me = (0, r.useCallback)(function() {
|
|
28140
|
-
return w.current.share !== !0 || f.isEventSourceSupported &&
|
|
28150
|
+
return w.current.share !== !0 || f.isEventSourceSupported && G.current instanceof EventSource ? G.current : (A.current === null && G.current && ((0, s.assertIsWebSocket)(G.current, w.current.skipAssert), A.current = (0, g.default)(G.current, te)), A.current);
|
|
28141
28151
|
}, []);
|
|
28142
28152
|
return (0, r.useEffect)(function() {
|
|
28143
28153
|
if (d !== null && o === !0) {
|
|
28144
28154
|
var x, F = !1, Q = !0, Te = function() {
|
|
28145
28155
|
return i(void 0, void 0, void 0, function() {
|
|
28146
|
-
var
|
|
28147
|
-
return m(this, function(
|
|
28148
|
-
switch (
|
|
28156
|
+
var re, ee, Re;
|
|
28157
|
+
return m(this, function(de) {
|
|
28158
|
+
switch (de.label) {
|
|
28149
28159
|
case 0:
|
|
28150
|
-
return
|
|
28160
|
+
return re = N, [4, (0, u.getUrl)(d, w)];
|
|
28151
28161
|
case 1:
|
|
28152
|
-
return
|
|
28153
|
-
return
|
|
28162
|
+
return re.current = de.sent(), N.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), N.current = "ABORTED", (0, p.flushSync)(function() {
|
|
28163
|
+
return E(function(q) {
|
|
28154
28164
|
return e(e({}, q), { ABORTED: f.ReadyState.CLOSED });
|
|
28155
28165
|
});
|
|
28156
28166
|
}), [
|
|
@@ -28162,12 +28172,12 @@ function ua() {
|
|
|
28162
28172
|
});
|
|
28163
28173
|
}, Re = function(q) {
|
|
28164
28174
|
F || (0, p.flushSync)(function() {
|
|
28165
|
-
return
|
|
28166
|
-
var
|
|
28167
|
-
return e(e({},
|
|
28175
|
+
return E(function(ce) {
|
|
28176
|
+
var oe;
|
|
28177
|
+
return e(e({}, ce), N.current && (oe = {}, oe[N.current] = q, oe));
|
|
28168
28178
|
});
|
|
28169
28179
|
});
|
|
28170
|
-
}, Q && (x = (0, _.createOrJoinSocket)(
|
|
28180
|
+
}, Q && (x = (0, _.createOrJoinSocket)(G, N.current, Re, w, ee, te, ne, Ie, j)), [
|
|
28171
28181
|
2
|
|
28172
28182
|
/*return*/
|
|
28173
28183
|
]);
|
|
@@ -28175,16 +28185,16 @@ function ua() {
|
|
|
28175
28185
|
});
|
|
28176
28186
|
});
|
|
28177
28187
|
};
|
|
28178
|
-
return
|
|
28188
|
+
return te.current = function() {
|
|
28179
28189
|
F || (A.current && (A.current = null), x?.(), Te());
|
|
28180
28190
|
}, Te(), function() {
|
|
28181
28191
|
F = !0, Q = !1, A.current && (A.current = null), x?.(), c(null);
|
|
28182
28192
|
};
|
|
28183
|
-
} else (d === null || o === !1) && (
|
|
28193
|
+
} else (d === null || o === !1) && (ne.current = 0, E(function(re) {
|
|
28184
28194
|
var ee;
|
|
28185
|
-
return e(e({},
|
|
28195
|
+
return e(e({}, re), N.current && (ee = {}, ee[N.current] = f.ReadyState.CLOSED, ee));
|
|
28186
28196
|
}));
|
|
28187
|
-
}, [d, o,
|
|
28197
|
+
}, [d, o, me, j]), (0, r.useEffect)(function() {
|
|
28188
28198
|
V === f.ReadyState.OPEN && Le.current.splice(0).forEach(function(x) {
|
|
28189
28199
|
j(x);
|
|
28190
28200
|
});
|
|
@@ -28192,18 +28202,18 @@ function ua() {
|
|
|
28192
28202
|
sendMessage: j,
|
|
28193
28203
|
sendJsonMessage: Ge,
|
|
28194
28204
|
lastMessage: b,
|
|
28195
|
-
lastJsonMessage:
|
|
28205
|
+
lastJsonMessage: v,
|
|
28196
28206
|
readyState: V,
|
|
28197
28207
|
getWebSocket: Me
|
|
28198
28208
|
};
|
|
28199
28209
|
};
|
|
28200
28210
|
return z.useWebSocket = l, z;
|
|
28201
28211
|
}
|
|
28202
|
-
var
|
|
28203
|
-
function
|
|
28204
|
-
if (Ba) return
|
|
28212
|
+
var ge = {}, Ba;
|
|
28213
|
+
function Pl() {
|
|
28214
|
+
if (Ba) return ge;
|
|
28205
28215
|
Ba = 1;
|
|
28206
|
-
var e =
|
|
28216
|
+
var e = ge && ge.__assign || function() {
|
|
28207
28217
|
return e = Object.assign || function(_) {
|
|
28208
28218
|
for (var u, g = 1, s = arguments.length; g < s; g++) {
|
|
28209
28219
|
u = arguments[g];
|
|
@@ -28212,7 +28222,7 @@ function Ml() {
|
|
|
28212
28222
|
return _;
|
|
28213
28223
|
}, e.apply(this, arguments);
|
|
28214
28224
|
};
|
|
28215
|
-
Object.defineProperty(
|
|
28225
|
+
Object.defineProperty(ge, "__esModule", { value: !0 }), ge.useSocketIO = void 0;
|
|
28216
28226
|
var i = Ee, m = ua(), t = K(), r = {
|
|
28217
28227
|
type: "empty",
|
|
28218
28228
|
payload: null
|
|
@@ -28243,10 +28253,10 @@ function Ml() {
|
|
|
28243
28253
|
getWebSocket: b
|
|
28244
28254
|
};
|
|
28245
28255
|
};
|
|
28246
|
-
return
|
|
28256
|
+
return ge.useSocketIO = f, ge;
|
|
28247
28257
|
}
|
|
28248
28258
|
var $ = {}, Ka;
|
|
28249
|
-
function
|
|
28259
|
+
function xl() {
|
|
28250
28260
|
if (Ka) return $;
|
|
28251
28261
|
Ka = 1;
|
|
28252
28262
|
var e = $ && $.__assign || function() {
|
|
@@ -28277,8 +28287,8 @@ function Rl() {
|
|
|
28277
28287
|
var o = (0, t.useWebSocket)(f, d, u), y = o.lastMessage, b = o.readyState, c = o.getWebSocket;
|
|
28278
28288
|
return (0, m.useEffect)(function() {
|
|
28279
28289
|
y?.type && Object.entries(n.current).forEach(function(T) {
|
|
28280
|
-
var S = T[0],
|
|
28281
|
-
S === y.type &&
|
|
28290
|
+
var S = T[0], E = T[1];
|
|
28291
|
+
S === y.type && E(y);
|
|
28282
28292
|
});
|
|
28283
28293
|
}, [y]), {
|
|
28284
28294
|
lastEvent: y,
|
|
@@ -28289,14 +28299,14 @@ function Rl() {
|
|
|
28289
28299
|
return $.useEventSource = p, $;
|
|
28290
28300
|
}
|
|
28291
28301
|
var ja;
|
|
28292
|
-
function
|
|
28302
|
+
function Ol() {
|
|
28293
28303
|
return ja || (ja = 1, (function(e) {
|
|
28294
28304
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
|
28295
28305
|
var i = ua();
|
|
28296
28306
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
|
28297
28307
|
return i.useWebSocket;
|
|
28298
28308
|
} });
|
|
28299
|
-
var m =
|
|
28309
|
+
var m = Pl();
|
|
28300
28310
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
|
28301
28311
|
return m.useSocketIO;
|
|
28302
28312
|
} });
|
|
@@ -28304,7 +28314,7 @@ function Pl() {
|
|
|
28304
28314
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
|
28305
28315
|
return t.ReadyState;
|
|
28306
28316
|
} });
|
|
28307
|
-
var r =
|
|
28317
|
+
var r = xl();
|
|
28308
28318
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
28309
28319
|
return r.useEventSource;
|
|
28310
28320
|
} });
|
|
@@ -28312,10 +28322,10 @@ function Pl() {
|
|
|
28312
28322
|
Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
|
|
28313
28323
|
return p.resetGlobalState;
|
|
28314
28324
|
} });
|
|
28315
|
-
})(
|
|
28325
|
+
})(Ye)), Ye;
|
|
28316
28326
|
}
|
|
28317
|
-
var
|
|
28318
|
-
const
|
|
28327
|
+
var Hl = Ol();
|
|
28328
|
+
const wl = /* @__PURE__ */ rl(Hl), I = {
|
|
28319
28329
|
DEPOSIT: "deposit",
|
|
28320
28330
|
TRANS_CODE: "transCode",
|
|
28321
28331
|
ERROR: "error",
|
|
@@ -28326,7 +28336,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28326
28336
|
TRANSFER_IN_GAME: "transfer_in_game",
|
|
28327
28337
|
CHECK_REQUEST: "CHECK_RREQUEST",
|
|
28328
28338
|
CASH_REGISTER_LIMIT: "cash_register_limit"
|
|
28329
|
-
},
|
|
28339
|
+
}, Fl = 3e4, _t = ({
|
|
28330
28340
|
socketUrl: e,
|
|
28331
28341
|
socketHandlers: i = {},
|
|
28332
28342
|
options: m = {}
|
|
@@ -28342,14 +28352,14 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28342
28352
|
readyState: u
|
|
28343
28353
|
// WebSocket 連線狀態
|
|
28344
28354
|
// getWebSocket, // 獲取 WebSocket 實例
|
|
28345
|
-
} =
|
|
28355
|
+
} = wl(e, {
|
|
28346
28356
|
queryParams: { key: "wsky" },
|
|
28347
28357
|
onOpen: () => console.log("連線成功"),
|
|
28348
28358
|
shouldReconnect: () => t.current === !1,
|
|
28349
28359
|
reconnectAttempts: 9999,
|
|
28350
28360
|
reconnectInterval: 1e3,
|
|
28351
28361
|
...m
|
|
28352
|
-
}), g =
|
|
28362
|
+
}), g = ia(() => {
|
|
28353
28363
|
try {
|
|
28354
28364
|
return JSON.parse(_?.data);
|
|
28355
28365
|
} catch {
|
|
@@ -28359,7 +28369,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28359
28369
|
return Ne(() => {
|
|
28360
28370
|
const s = setInterval(
|
|
28361
28371
|
() => p("ping"),
|
|
28362
|
-
|
|
28372
|
+
Fl
|
|
28363
28373
|
);
|
|
28364
28374
|
return () => clearInterval(s);
|
|
28365
28375
|
}, [p]), Ne(() => {
|
|
@@ -28376,39 +28386,39 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28376
28386
|
onReload: b,
|
|
28377
28387
|
onTransferInGame: c,
|
|
28378
28388
|
onCashRegisterLimit: T
|
|
28379
|
-
} = r.current, S = He(g, "type", ""),
|
|
28389
|
+
} = r.current, S = He(g, "type", ""), E = {
|
|
28380
28390
|
memberInfoUid: He(g, "member_info_uid", null),
|
|
28381
28391
|
data: He(g, "data", null),
|
|
28382
28392
|
memo: He(g, "memo", null)
|
|
28383
28393
|
};
|
|
28384
28394
|
switch (S) {
|
|
28385
28395
|
case I.DEPOSIT:
|
|
28386
|
-
s?.(
|
|
28396
|
+
s?.(E);
|
|
28387
28397
|
break;
|
|
28388
28398
|
case I.TRANS_CODE:
|
|
28389
|
-
l?.(
|
|
28399
|
+
l?.(E);
|
|
28390
28400
|
break;
|
|
28391
28401
|
case I.ERROR:
|
|
28392
|
-
d?.(
|
|
28402
|
+
d?.(E);
|
|
28393
28403
|
break;
|
|
28394
28404
|
case I.UPDATE_MEMBER:
|
|
28395
|
-
n?.(
|
|
28405
|
+
n?.(E);
|
|
28396
28406
|
break;
|
|
28397
28407
|
case I.MAINTAIN_NOTICE:
|
|
28398
|
-
o?.(
|
|
28408
|
+
o?.(E);
|
|
28399
28409
|
break;
|
|
28400
28410
|
case I.MAINTAIN_NOTICE_MEMBER:
|
|
28401
|
-
y?.(
|
|
28411
|
+
y?.(E);
|
|
28402
28412
|
break;
|
|
28403
28413
|
case I.RELOAD:
|
|
28404
|
-
b?.(
|
|
28414
|
+
b?.(E);
|
|
28405
28415
|
break;
|
|
28406
28416
|
case I.TRANSFER_IN_GAME:
|
|
28407
28417
|
case I.CHECK_REQUEST:
|
|
28408
|
-
c?.(
|
|
28418
|
+
c?.(E);
|
|
28409
28419
|
break;
|
|
28410
28420
|
case I.CASH_REGISTER_LIMIT:
|
|
28411
|
-
T?.(
|
|
28421
|
+
T?.(E);
|
|
28412
28422
|
break;
|
|
28413
28423
|
default:
|
|
28414
28424
|
console.warn("Unknown socket type:", S);
|
|
@@ -28426,23 +28436,23 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28426
28436
|
return t;
|
|
28427
28437
|
}, [e]), m = B(async () => await e.get("/marquees"), [e]);
|
|
28428
28438
|
return { commonCarouselApi: i, commonMarqueeApi: m };
|
|
28429
|
-
},
|
|
28439
|
+
}, ft = () => {
|
|
28430
28440
|
const { commonCarouselApi: e } = _i();
|
|
28431
28441
|
return ae({
|
|
28432
28442
|
queryKey: ["getCarouselList"],
|
|
28433
28443
|
queryFn: async () => await e()
|
|
28434
28444
|
});
|
|
28435
|
-
},
|
|
28445
|
+
}, Ut = () => {
|
|
28436
28446
|
const { lng: e } = le(), { commonMarqueeApi: i } = _i(), m = di(e);
|
|
28437
28447
|
return ae({
|
|
28438
28448
|
queryKey: ["getMarqueeList"],
|
|
28439
28449
|
queryFn: async () => i(),
|
|
28440
28450
|
select: (t) => {
|
|
28441
28451
|
const r = t.Marquees;
|
|
28442
|
-
return
|
|
28452
|
+
return Ae(r, (f) => f[m] || f["en-US"]);
|
|
28443
28453
|
}
|
|
28444
28454
|
});
|
|
28445
|
-
},
|
|
28455
|
+
}, Wl = () => {
|
|
28446
28456
|
const { client: e, lng: i } = le(), m = di(i || "tw");
|
|
28447
28457
|
return { playGameApi: B(
|
|
28448
28458
|
async (r) => {
|
|
@@ -28470,10 +28480,10 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28470
28480
|
},
|
|
28471
28481
|
[e, m]
|
|
28472
28482
|
) };
|
|
28473
|
-
}, fi = "3.7.8",
|
|
28483
|
+
}, fi = "3.7.8", Jl = fi, be = typeof Buffer == "function", Qa = typeof TextDecoder == "function" ? new TextDecoder() : void 0, qa = typeof TextEncoder == "function" ? new TextEncoder() : void 0, zl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", De = Array.prototype.slice.call(zl), We = ((e) => {
|
|
28474
28484
|
let i = {};
|
|
28475
28485
|
return e.forEach((m, t) => i[m] = t), i;
|
|
28476
|
-
})(De),
|
|
28486
|
+
})(De), Zl = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, H = String.fromCharCode.bind(String), Ya = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Ui = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (i) => i == "+" ? "-" : "_"), yi = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), bi = (e) => {
|
|
28477
28487
|
let i, m, t, r, p = "";
|
|
28478
28488
|
const f = e.length % 3;
|
|
28479
28489
|
for (let _ = 0; _ < e.length; ) {
|
|
@@ -28482,12 +28492,12 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28482
28492
|
i = m << 16 | t << 8 | r, p += De[i >> 18 & 63] + De[i >> 12 & 63] + De[i >> 6 & 63] + De[i & 63];
|
|
28483
28493
|
}
|
|
28484
28494
|
return f ? p.slice(0, f - 3) + "===".substring(f) : p;
|
|
28485
|
-
}, pa = typeof btoa == "function" ? (e) => btoa(e) :
|
|
28495
|
+
}, pa = typeof btoa == "function" ? (e) => btoa(e) : be ? (e) => Buffer.from(e, "binary").toString("base64") : bi, la = be ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
28486
28496
|
let m = [];
|
|
28487
28497
|
for (let t = 0, r = e.length; t < r; t += 4096)
|
|
28488
28498
|
m.push(H.apply(null, e.subarray(t, t + 4096)));
|
|
28489
28499
|
return pa(m.join(""));
|
|
28490
|
-
}, ze = (e, i = !1) => i ? Ui(
|
|
28500
|
+
}, ze = (e, i = !1) => i ? Ui(la(e)) : la(e), Vl = (e) => {
|
|
28491
28501
|
if (e.length < 2) {
|
|
28492
28502
|
var i = e.charCodeAt(0);
|
|
28493
28503
|
return i < 128 ? e : i < 2048 ? H(192 | i >>> 6) + H(128 | i & 63) : H(224 | i >>> 12 & 15) + H(128 | i >>> 6 & 63) + H(128 | i & 63);
|
|
@@ -28495,7 +28505,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28495
28505
|
var i = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
28496
28506
|
return H(240 | i >>> 18 & 7) + H(128 | i >>> 12 & 63) + H(128 | i >>> 6 & 63) + H(128 | i & 63);
|
|
28497
28507
|
}
|
|
28498
|
-
},
|
|
28508
|
+
}, Al = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Ti = (e) => e.replace(Al, Vl), Xa = be ? (e) => Buffer.from(e, "utf8").toString("base64") : qa ? (e) => la(qa.encode(e)) : (e) => pa(Ti(e)), Ue = (e, i = !1) => i ? Ui(Xa(e)) : Xa(e), $a = (e) => Ue(e, !0), Il = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Bl = (e) => {
|
|
28499
28509
|
switch (e.length) {
|
|
28500
28510
|
case 4:
|
|
28501
28511
|
var i = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), m = i - 65536;
|
|
@@ -28505,15 +28515,15 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28505
28515
|
default:
|
|
28506
28516
|
return H((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
28507
28517
|
}
|
|
28508
|
-
}, Ci = (e) => e.replace(
|
|
28509
|
-
if (e = e.replace(/\s+/g, ""), !
|
|
28518
|
+
}, Ci = (e) => e.replace(Il, Bl), vi = (e) => {
|
|
28519
|
+
if (e = e.replace(/\s+/g, ""), !Zl.test(e))
|
|
28510
28520
|
throw new TypeError("malformed base64.");
|
|
28511
28521
|
e += "==".slice(2 - (e.length & 3));
|
|
28512
28522
|
let i, m, t, r = [];
|
|
28513
28523
|
for (let p = 0; p < e.length; )
|
|
28514
28524
|
i = We[e.charAt(p++)] << 18 | We[e.charAt(p++)] << 12 | (m = We[e.charAt(p++)]) << 6 | (t = We[e.charAt(p++)]), m === 64 ? r.push(H(i >> 16 & 255)) : t === 64 ? r.push(H(i >> 16 & 255, i >> 8 & 255)) : r.push(H(i >> 16 & 255, i >> 8 & 255, i & 255));
|
|
28515
28525
|
return r.join("");
|
|
28516
|
-
}, ga = typeof atob == "function" ? (e) => atob(yi(e)) :
|
|
28526
|
+
}, ga = typeof atob == "function" ? (e) => atob(yi(e)) : be ? (e) => Buffer.from(e, "base64").toString("binary") : vi, hi = be ? (e) => Ya(Buffer.from(e, "base64")) : (e) => Ya(ga(e).split("").map((i) => i.charCodeAt(0))), ki = (e) => hi(Si(e)), Kl = be ? (e) => Buffer.from(e, "base64").toString("utf8") : Qa ? (e) => Qa.decode(hi(e)) : (e) => Ci(ga(e)), Si = (e) => yi(e.replace(/[-_]/g, (i) => i == "-" ? "+" : "/")), ta = (e) => Kl(Si(e)), jl = (e) => {
|
|
28517
28527
|
if (typeof e != "string")
|
|
28518
28528
|
return !1;
|
|
28519
28529
|
const i = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
@@ -28526,13 +28536,13 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28526
28536
|
}), Di = function() {
|
|
28527
28537
|
const e = (i, m) => Object.defineProperty(String.prototype, i, Ni(m));
|
|
28528
28538
|
e("fromBase64", function() {
|
|
28529
|
-
return
|
|
28539
|
+
return ta(this);
|
|
28530
28540
|
}), e("toBase64", function(i) {
|
|
28531
|
-
return
|
|
28541
|
+
return Ue(this, i);
|
|
28532
28542
|
}), e("toBase64URI", function() {
|
|
28533
|
-
return
|
|
28543
|
+
return Ue(this, !0);
|
|
28534
28544
|
}), e("toBase64URL", function() {
|
|
28535
|
-
return
|
|
28545
|
+
return Ue(this, !0);
|
|
28536
28546
|
}), e("toUint8Array", function() {
|
|
28537
28547
|
return ki(this);
|
|
28538
28548
|
});
|
|
@@ -28545,31 +28555,31 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28545
28555
|
}), e("toBase64URL", function() {
|
|
28546
28556
|
return ze(this, !0);
|
|
28547
28557
|
});
|
|
28548
|
-
},
|
|
28558
|
+
}, Ql = () => {
|
|
28549
28559
|
Di(), Ei();
|
|
28550
|
-
},
|
|
28560
|
+
}, ql = {
|
|
28551
28561
|
version: fi,
|
|
28552
|
-
VERSION:
|
|
28562
|
+
VERSION: Jl,
|
|
28553
28563
|
atob: ga,
|
|
28554
28564
|
atobPolyfill: vi,
|
|
28555
28565
|
btoa: pa,
|
|
28556
28566
|
btoaPolyfill: bi,
|
|
28557
|
-
fromBase64:
|
|
28558
|
-
toBase64:
|
|
28559
|
-
encode:
|
|
28567
|
+
fromBase64: ta,
|
|
28568
|
+
toBase64: Ue,
|
|
28569
|
+
encode: Ue,
|
|
28560
28570
|
encodeURI: $a,
|
|
28561
28571
|
encodeURL: $a,
|
|
28562
28572
|
utob: Ti,
|
|
28563
28573
|
btou: Ci,
|
|
28564
|
-
decode:
|
|
28565
|
-
isValid:
|
|
28574
|
+
decode: ta,
|
|
28575
|
+
isValid: jl,
|
|
28566
28576
|
fromUint8Array: ze,
|
|
28567
28577
|
toUint8Array: ki,
|
|
28568
28578
|
extendString: Di,
|
|
28569
28579
|
extendUint8Array: Ei,
|
|
28570
|
-
extendBuiltins:
|
|
28571
|
-
},
|
|
28572
|
-
const { playGameApi: m } =
|
|
28580
|
+
extendBuiltins: Ql
|
|
28581
|
+
}, yt = (e, i) => {
|
|
28582
|
+
const { playGameApi: m } = Wl();
|
|
28573
28583
|
return ae({
|
|
28574
28584
|
queryKey: ["playGame"],
|
|
28575
28585
|
queryFn: async () => {
|
|
@@ -28595,34 +28605,34 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28595
28605
|
supportPortrait: d,
|
|
28596
28606
|
isHtmlCode: o,
|
|
28597
28607
|
gameUrl: n,
|
|
28598
|
-
decodeGameUrl:
|
|
28608
|
+
decodeGameUrl: ql.decode(n),
|
|
28599
28609
|
message: y
|
|
28600
28610
|
};
|
|
28601
28611
|
},
|
|
28602
28612
|
enabled: !!e?.gameCode,
|
|
28603
28613
|
...i
|
|
28604
28614
|
});
|
|
28605
|
-
},
|
|
28606
|
-
const { userLoginApi: i } =
|
|
28615
|
+
}, Yl = ({ options: e } = {}) => {
|
|
28616
|
+
const { userLoginApi: i } = ye();
|
|
28607
28617
|
return mi({
|
|
28608
28618
|
mutationKey: ["userLogin"],
|
|
28609
28619
|
mutationFn: async (m) => i(m),
|
|
28610
28620
|
...e
|
|
28611
28621
|
});
|
|
28612
|
-
},
|
|
28613
|
-
const { userLogoutApi: i } =
|
|
28622
|
+
}, Xl = ({ options: e } = {}) => {
|
|
28623
|
+
const { userLogoutApi: i } = ye();
|
|
28614
28624
|
return mi({
|
|
28615
28625
|
mutationKey: ["userLogout"],
|
|
28616
28626
|
mutationFn: async () => i(),
|
|
28617
28627
|
...e
|
|
28618
28628
|
});
|
|
28619
|
-
},
|
|
28629
|
+
}, bt = ({
|
|
28620
28630
|
options: e = {
|
|
28621
28631
|
login: {},
|
|
28622
28632
|
logout: {}
|
|
28623
28633
|
}
|
|
28624
28634
|
} = {}) => {
|
|
28625
|
-
const i =
|
|
28635
|
+
const i = Yl({ options: e.login }), m = Xl({ options: e.logout });
|
|
28626
28636
|
return { login: i, logout: m };
|
|
28627
28637
|
}, ei = (e) => {
|
|
28628
28638
|
switch (e) {
|
|
@@ -28643,7 +28653,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28643
28653
|
default:
|
|
28644
28654
|
return "En";
|
|
28645
28655
|
}
|
|
28646
|
-
},
|
|
28656
|
+
}, $l = "https://d1h3qe8voog6w4.cloudfront.net", ai = "https://d3jx2uvukujuvn.cloudfront.net", ii = "game-icon-ds88", Tt = ({ gameData: e = {} } = {}) => {
|
|
28647
28657
|
const { lng: i } = le(), m = ei(i), {
|
|
28648
28658
|
gameCode: t,
|
|
28649
28659
|
// 遊戲代碼
|
|
@@ -28680,9 +28690,9 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28680
28690
|
// 中文名稱
|
|
28681
28691
|
gameNameVi: S,
|
|
28682
28692
|
// 越南名稱
|
|
28683
|
-
gameNameTw:
|
|
28693
|
+
gameNameTw: E
|
|
28684
28694
|
// 繁體中文名稱
|
|
28685
|
-
} = e,
|
|
28695
|
+
} = e, v = e?.[`gameName${ei(m)}`], N = `${ai}/${ii}/en/${g}/${La(t, / /g, "_")}.webp`, G = `${ai}/${ii}/en/${g}/${La(t, / /g, "_")}.gif`;
|
|
28686
28696
|
return {
|
|
28687
28697
|
gameCode: t,
|
|
28688
28698
|
gameUid: r,
|
|
@@ -28701,12 +28711,12 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28701
28711
|
gameNameEn: c,
|
|
28702
28712
|
gameNameZh: T,
|
|
28703
28713
|
gameNameVi: S,
|
|
28704
|
-
gameNameTw:
|
|
28705
|
-
gameName:
|
|
28706
|
-
gameImageUrl:
|
|
28707
|
-
gameImageUrlAnimated:
|
|
28714
|
+
gameNameTw: E,
|
|
28715
|
+
gameName: v,
|
|
28716
|
+
gameImageUrl: N,
|
|
28717
|
+
gameImageUrlAnimated: G
|
|
28708
28718
|
};
|
|
28709
|
-
},
|
|
28719
|
+
}, et = "ds88platformIcon", at = (e, i = !1) => nl([
|
|
28710
28720
|
"EVO",
|
|
28711
28721
|
"IMSPRIBE",
|
|
28712
28722
|
"SABA",
|
|
@@ -28717,7 +28727,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28717
28727
|
"HACK",
|
|
28718
28728
|
"NAGA",
|
|
28719
28729
|
"RSG"
|
|
28720
|
-
], e) && i ? `${e}_dark` : e,
|
|
28730
|
+
], e) && i ? `${e}_dark` : e, Ct = ({ platformData: e, darkMode: i } = {}) => {
|
|
28721
28731
|
const {
|
|
28722
28732
|
SubPlatformEnum: m,
|
|
28723
28733
|
// 子平台枚舉
|
|
@@ -28739,7 +28749,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28739
28749
|
// 臨時維護開始時間
|
|
28740
28750
|
temp_maintenance_end_time: l
|
|
28741
28751
|
// 臨時維護結束時間
|
|
28742
|
-
} = e || {}, d = `${
|
|
28752
|
+
} = e || {}, d = `${$l}/${et}/${at(t, i)}.png`;
|
|
28743
28753
|
return {
|
|
28744
28754
|
subPlatformEnum: m,
|
|
28745
28755
|
platformEnum: t,
|
|
@@ -28756,43 +28766,43 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
|
|
|
28756
28766
|
};
|
|
28757
28767
|
export {
|
|
28758
28768
|
ri as ApiCtx,
|
|
28759
|
-
|
|
28769
|
+
pt as ApiProvider,
|
|
28760
28770
|
oi as GamesInfoCtx,
|
|
28761
|
-
|
|
28762
|
-
|
|
28763
|
-
|
|
28764
|
-
|
|
28765
|
-
|
|
28771
|
+
Tl as buildMultiTypes,
|
|
28772
|
+
st as buildMultiTypesWithSubTypes,
|
|
28773
|
+
cl as buildSinglePlatformWithSubTypes,
|
|
28774
|
+
dl as buildSingleType,
|
|
28775
|
+
bl as categorizeGames,
|
|
28766
28776
|
di as convertLanguageCode,
|
|
28767
|
-
|
|
28768
|
-
|
|
28769
|
-
|
|
28777
|
+
ot as createLogoutHandler,
|
|
28778
|
+
Ul as extractGameSubTypeNames,
|
|
28779
|
+
fl as extractGameTypeNames,
|
|
28770
28780
|
Pa as extractPlatformNames,
|
|
28771
28781
|
gi as filterGamesByPlatform,
|
|
28772
28782
|
si as findGameTypeUid,
|
|
28773
28783
|
ui as findPlatformUid,
|
|
28774
28784
|
pi as findSubPlatform,
|
|
28775
|
-
|
|
28776
|
-
|
|
28777
|
-
|
|
28778
|
-
|
|
28779
|
-
|
|
28780
|
-
|
|
28781
|
-
|
|
28782
|
-
|
|
28785
|
+
_l as flattenAllGames,
|
|
28786
|
+
yl as flattenFavoriteGames,
|
|
28787
|
+
Cl as groupGamesByPlatform,
|
|
28788
|
+
vl as groupGamesByPlatformAndSubType,
|
|
28789
|
+
gl as groupGamesBySubType,
|
|
28790
|
+
Nl as initMockWindowData,
|
|
28791
|
+
hl as processGameInfo,
|
|
28792
|
+
ut as processPlatformData,
|
|
28783
28793
|
le as useApiContext,
|
|
28784
|
-
|
|
28785
|
-
|
|
28786
|
-
|
|
28787
|
-
|
|
28788
|
-
|
|
28789
|
-
|
|
28790
|
-
|
|
28791
|
-
|
|
28792
|
-
|
|
28793
|
-
|
|
28794
|
-
|
|
28795
|
-
|
|
28796
|
-
|
|
28797
|
-
|
|
28794
|
+
gt as useBalanceGetter,
|
|
28795
|
+
_t as useClientWebSocket,
|
|
28796
|
+
Tt as useGameConfig,
|
|
28797
|
+
rt as useGameInfoContext,
|
|
28798
|
+
Sl as useGamesInfo,
|
|
28799
|
+
ft as useGetCarouseList,
|
|
28800
|
+
Ut as useGetMarquee,
|
|
28801
|
+
dt as useGetMemberInfo,
|
|
28802
|
+
ct as useInitializeWithToken,
|
|
28803
|
+
Yl as useLogin,
|
|
28804
|
+
Xl as useLogout,
|
|
28805
|
+
Ct as usePlatformConfig,
|
|
28806
|
+
yt as usePlayGame,
|
|
28807
|
+
bt as useUser
|
|
28798
28808
|
};
|