@obb871001/api-integration-sdk 1.0.90 → 1.0.93

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.js CHANGED
@@ -1,69 +1,69 @@
1
- import ke, { createContext as Fa, useContext as Wa, useCallback as X, useMemo as Qe, useEffect as he, useRef as ya } from "react";
2
- import { useQuery as oe, QueryClient as Ci, QueryClientProvider as vi, useQueries as Ja, useMutation as za } from "@tanstack/react-query";
3
- import hi from "axios";
1
+ import ke, { createContext as Wa, useContext as Ja, useCallback as X, useMemo as Qe, useEffect as he, useRef as ya } from "react";
2
+ import { useQuery as oe, QueryClient as vi, QueryClientProvider as hi, useQueries as za, useMutation as Za } from "@tanstack/react-query";
3
+ import ki from "axios";
4
4
  import { find as Ye, isEmpty as O, isObject as He, flatMap as qe, isArray as ee, map as we, get as Re } from "lodash";
5
- import ki from "react-dom";
6
- function Si(e) {
5
+ import Si from "react-dom";
6
+ function Ni(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
10
  var ba;
11
- function Ni() {
11
+ function Di() {
12
12
  if (ba) return be;
13
13
  ba = 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
- function U(_, r, u) {
15
+ function f(_, r, u) {
16
16
  var n, i = {}, d = null, l = null;
17
17
  u !== void 0 && (d = "" + u), r.key !== void 0 && (d = "" + r.key), r.ref !== void 0 && (l = r.ref);
18
18
  for (n in r) s.call(r, n) && !p.hasOwnProperty(n) && (i[n] = r[n]);
19
19
  if (_ && _.defaultProps) for (n in r = _.defaultProps, r) i[n] === void 0 && (i[n] = r[n]);
20
20
  return { $$typeof: m, type: _, key: d, ref: l, props: i, _owner: o.current };
21
21
  }
22
- return be.Fragment = c, be.jsx = U, be.jsxs = U, be;
22
+ return be.Fragment = c, be.jsx = f, be.jsxs = f, be;
23
23
  }
24
24
  var Te = {};
25
25
  var Ta;
26
- function Di() {
26
+ function Ei() {
27
27
  return Ta || (Ta = 1, process.env.NODE_ENV !== "production" && (function() {
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"), U = 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";
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")
31
31
  return null;
32
- var f = t && a[t] || a[y];
33
- return typeof f == "function" ? f : null;
32
+ var U = t && a[t] || a[y];
33
+ return typeof U == "function" ? U : null;
34
34
  }
35
35
  var g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
36
36
  function T(a) {
37
37
  {
38
- for (var f = arguments.length, C = new Array(f > 1 ? f - 1 : 0), v = 1; v < f; v++)
38
+ for (var U = arguments.length, C = new Array(U > 1 ? U - 1 : 0), v = 1; v < U; v++)
39
39
  C[v - 1] = arguments[v];
40
- N("error", a, C);
40
+ S("error", a, C);
41
41
  }
42
42
  }
43
- function N(a, f, C) {
43
+ function S(a, U, C) {
44
44
  {
45
45
  var v = g.ReactDebugCurrentFrame, E = v.getStackAddendum();
46
- E !== "" && (f += "%s", C = C.concat([E]));
47
- var G = C.map(function(S) {
48
- return String(S);
46
+ E !== "" && (U += "%s", C = C.concat([E]));
47
+ var G = C.map(function(N) {
48
+ return String(N);
49
49
  });
50
- G.unshift("Warning: " + f), Function.prototype.apply.call(console[a], console, G);
50
+ G.unshift("Warning: " + U), Function.prototype.apply.call(console[a], console, G);
51
51
  }
52
52
  }
53
53
  var D = !1, h = !1, L = !1, M = !1, _e = !1, fe;
54
54
  fe = Symbol.for("react.module.reference");
55
55
  function Fe(a) {
56
- return !!(typeof a == "string" || typeof a == "function" || a === s || a === p || _e || a === o || a === u || a === n || M || a === l || D || h || L || typeof a == "object" && a !== null && (a.$$typeof === d || a.$$typeof === i || a.$$typeof === U || a.$$typeof === _ || a.$$typeof === r || // This needs to include all possible module reference object
56
+ return !!(typeof a == "string" || typeof a == "function" || a === s || a === p || _e || a === o || a === u || a === n || M || a === l || D || h || L || typeof a == "object" && a !== null && (a.$$typeof === d || a.$$typeof === i || a.$$typeof === f || a.$$typeof === _ || a.$$typeof === r || // 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
60
  a.$$typeof === fe || a.getModuleId !== void 0));
61
61
  }
62
- function Se(a, f, C) {
62
+ function Se(a, U, C) {
63
63
  var v = a.displayName;
64
64
  if (v)
65
65
  return v;
66
- var E = f.displayName || f.name || "";
66
+ var E = U.displayName || U.name || "";
67
67
  return E !== "" ? C + "(" + E + ")" : C;
68
68
  }
69
69
  function V(a) {
@@ -93,9 +93,9 @@ function Di() {
93
93
  if (typeof a == "object")
94
94
  switch (a.$$typeof) {
95
95
  case _:
96
- var f = a;
97
- return V(f) + ".Consumer";
98
- case U:
96
+ var U = a;
97
+ return V(U) + ".Consumer";
98
+ case f:
99
99
  var C = a;
100
100
  return V(C._context) + ".Provider";
101
101
  case r:
@@ -104,9 +104,9 @@ function Di() {
104
104
  var v = a.displayName || null;
105
105
  return v !== null ? v : H(a.type) || "Memo";
106
106
  case d: {
107
- var E = a, G = E._payload, S = E._init;
107
+ var E = a, G = E._payload, N = E._init;
108
108
  try {
109
- return H(S(G));
109
+ return H(N(G));
110
110
  } catch {
111
111
  return null;
112
112
  }
@@ -176,8 +176,8 @@ function Di() {
176
176
  ae < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
177
177
  }
178
178
  }
179
- var se = g.ReactCurrentDispatcher, j;
180
- function ue(a, f, C) {
179
+ var ue = g.ReactCurrentDispatcher, j;
180
+ function pe(a, U, C) {
181
181
  {
182
182
  if (j === void 0)
183
183
  try {
@@ -192,10 +192,10 @@ function Di() {
192
192
  }
193
193
  var le = !1, Le;
194
194
  {
195
- var Ya = typeof WeakMap == "function" ? WeakMap : Map;
196
- Le = new Ya();
195
+ var qa = typeof WeakMap == "function" ? WeakMap : Map;
196
+ Le = new qa();
197
197
  }
198
- function la(a, f) {
198
+ function la(a, U) {
199
199
  if (!a || le)
200
200
  return "";
201
201
  {
@@ -208,30 +208,30 @@ function Di() {
208
208
  var E = Error.prepareStackTrace;
209
209
  Error.prepareStackTrace = void 0;
210
210
  var G;
211
- G = se.current, se.current = null, $();
211
+ G = ue.current, ue.current = null, $();
212
212
  try {
213
- if (f) {
214
- var S = function() {
213
+ if (U) {
214
+ var N = function() {
215
215
  throw Error();
216
216
  };
217
- if (Object.defineProperty(S.prototype, "props", {
217
+ if (Object.defineProperty(N.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(S, []);
223
+ Reflect.construct(N, []);
224
224
  } catch (W) {
225
225
  v = W;
226
226
  }
227
- Reflect.construct(a, [], S);
227
+ Reflect.construct(a, [], N);
228
228
  } else {
229
229
  try {
230
- S.call();
230
+ N.call();
231
231
  } catch (W) {
232
232
  v = W;
233
233
  }
234
- a.call(S.prototype);
234
+ a.call(N.prototype);
235
235
  }
236
236
  } else {
237
237
  try {
@@ -261,41 +261,41 @@ function Di() {
261
261
  }
262
262
  }
263
263
  } finally {
264
- le = !1, se.current = G, Ee(), Error.prepareStackTrace = E;
264
+ le = !1, ue.current = G, Ee(), Error.prepareStackTrace = E;
265
265
  }
266
- var ge = a ? a.displayName || a.name : "", te = ge ? ue(ge) : "";
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 qa(a, f, C) {
269
+ function Xa(a, U, C) {
270
270
  return la(a, !1);
271
271
  }
272
- function Xa(a) {
273
- var f = a.prototype;
274
- return !!(f && f.isReactComponent);
272
+ function $a(a) {
273
+ var U = a.prototype;
274
+ return !!(U && U.isReactComponent);
275
275
  }
276
- function Ge(a, f, C) {
276
+ function Ge(a, U, C) {
277
277
  if (a == null)
278
278
  return "";
279
279
  if (typeof a == "function")
280
- return la(a, Xa(a));
280
+ return la(a, $a(a));
281
281
  if (typeof a == "string")
282
- return ue(a);
282
+ return pe(a);
283
283
  switch (a) {
284
284
  case u:
285
- return ue("Suspense");
285
+ return pe("Suspense");
286
286
  case n:
287
- return ue("SuspenseList");
287
+ return pe("SuspenseList");
288
288
  }
289
289
  if (typeof a == "object")
290
290
  switch (a.$$typeof) {
291
291
  case r:
292
- return qa(a.render);
292
+ return Xa(a.render);
293
293
  case i:
294
- return Ge(a.type, f, C);
294
+ return Ge(a.type, U, C);
295
295
  case d: {
296
296
  var v = a, E = v._payload, G = v._init;
297
297
  try {
298
- return Ge(G(E), f, C);
298
+ return Ge(G(E), U, C);
299
299
  } catch {
300
300
  }
301
301
  }
@@ -305,41 +305,41 @@ function Di() {
305
305
  var ye = Object.prototype.hasOwnProperty, ta = {}, na = g.ReactDebugCurrentFrame;
306
306
  function Me(a) {
307
307
  if (a) {
308
- var f = a._owner, C = Ge(a.type, a._source, f ? f.type : null);
308
+ var U = a._owner, C = Ge(a.type, a._source, U ? U.type : null);
309
309
  na.setExtraStackFrame(C);
310
310
  } else
311
311
  na.setExtraStackFrame(null);
312
312
  }
313
- function $a(a, f, C, v, E) {
313
+ function ei(a, U, C, v, E) {
314
314
  {
315
315
  var G = Function.call.bind(ye);
316
- for (var S in a)
317
- if (G(a, S)) {
316
+ for (var N in a)
317
+ if (G(a, N)) {
318
318
  var k = void 0;
319
319
  try {
320
- if (typeof a[S] != "function") {
321
- var F = Error((v || "React class") + ": " + C + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
320
+ if (typeof a[N] != "function") {
321
+ var F = Error((v || "React class") + ": " + C + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
322
322
  throw F.name = "Invariant Violation", F;
323
323
  }
324
- k = a[S](f, S, v, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
324
+ k = a[N](U, N, v, 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) && (Me(E), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", C, S, typeof k), Me(null)), k instanceof Error && !(k.message in ta) && (ta[k.message] = !0, Me(E), T("Failed %s type: %s", C, k.message), Me(null));
328
+ k && !(k instanceof Error) && (Me(E), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", C, N, typeof k), Me(null)), k instanceof Error && !(k.message in ta) && (ta[k.message] = !0, Me(E), T("Failed %s type: %s", C, k.message), Me(null));
329
329
  }
330
330
  }
331
331
  }
332
- var ei = Array.isArray;
332
+ var ai = Array.isArray;
333
333
  function We(a) {
334
- return ei(a);
334
+ return ai(a);
335
335
  }
336
- function ai(a) {
336
+ function ii(a) {
337
337
  {
338
- var f = typeof Symbol == "function" && Symbol.toStringTag, C = f && a[Symbol.toStringTag] || a.constructor.name || "Object";
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 ii(a) {
342
+ function li(a) {
343
343
  try {
344
344
  return ma(a), !1;
345
345
  } catch {
@@ -350,38 +350,38 @@ function Di() {
350
350
  return "" + a;
351
351
  }
352
352
  function ra(a) {
353
- if (ii(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.", ai(a)), ma(a);
353
+ if (li(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.", ii(a)), ma(a);
355
355
  }
356
- var oa = g.ReactCurrentOwner, li = {
356
+ var oa = g.ReactCurrentOwner, ti = {
357
357
  key: !0,
358
358
  ref: !0,
359
359
  __self: !0,
360
360
  __source: !0
361
361
  }, sa, ua;
362
- function ti(a) {
362
+ function ni(a) {
363
363
  if (ye.call(a, "ref")) {
364
- var f = Object.getOwnPropertyDescriptor(a, "ref").get;
365
- if (f && f.isReactWarning)
364
+ var U = Object.getOwnPropertyDescriptor(a, "ref").get;
365
+ if (U && U.isReactWarning)
366
366
  return !1;
367
367
  }
368
368
  return a.ref !== void 0;
369
369
  }
370
- function ni(a) {
370
+ function mi(a) {
371
371
  if (ye.call(a, "key")) {
372
- var f = Object.getOwnPropertyDescriptor(a, "key").get;
373
- if (f && f.isReactWarning)
372
+ var U = Object.getOwnPropertyDescriptor(a, "key").get;
373
+ if (U && U.isReactWarning)
374
374
  return !1;
375
375
  }
376
376
  return a.key !== void 0;
377
377
  }
378
- function mi(a, f) {
378
+ function ri(a, U) {
379
379
  typeof a.ref == "string" && oa.current;
380
380
  }
381
- function ri(a, f) {
381
+ function oi(a, U) {
382
382
  {
383
383
  var C = function() {
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)", f));
384
+ sa || (sa = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", U));
385
385
  };
386
386
  C.isReactWarning = !0, Object.defineProperty(a, "key", {
387
387
  get: C,
@@ -389,10 +389,10 @@ function Di() {
389
389
  });
390
390
  }
391
391
  }
392
- function oi(a, f) {
392
+ function si(a, U) {
393
393
  {
394
394
  var C = function() {
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)", f));
395
+ ua || (ua = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", U));
396
396
  };
397
397
  C.isReactWarning = !0, Object.defineProperty(a, "ref", {
398
398
  get: C,
@@ -400,15 +400,15 @@ function Di() {
400
400
  });
401
401
  }
402
402
  }
403
- var si = function(a, f, C, v, E, G, S) {
403
+ var ui = function(a, U, C, v, E, G, N) {
404
404
  var k = {
405
405
  // This tag allows us to uniquely identify this as a React Element
406
406
  $$typeof: m,
407
407
  // Built-in properties that belong on the element
408
408
  type: a,
409
- key: f,
409
+ key: U,
410
410
  ref: C,
411
- props: S,
411
+ props: N,
412
412
  // Record the component responsible for creating this element.
413
413
  _owner: G
414
414
  };
@@ -429,28 +429,28 @@ function Di() {
429
429
  value: E
430
430
  }), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
431
431
  };
432
- function ui(a, f, C, v, E) {
432
+ function pi(a, U, C, v, E) {
433
433
  {
434
- var G, S = {}, k = null, F = null;
435
- C !== void 0 && (ra(C), k = "" + C), ni(f) && (ra(f.key), k = "" + f.key), ti(f) && (F = f.ref, mi(f, E));
436
- for (G in f)
437
- ye.call(f, G) && !li.hasOwnProperty(G) && (S[G] = f[G]);
434
+ var G, N = {}, k = null, F = null;
435
+ C !== void 0 && (ra(C), k = "" + C), mi(U) && (ra(U.key), k = "" + U.key), ni(U) && (F = U.ref, ri(U, E));
436
+ for (G in U)
437
+ ye.call(U, G) && !ti.hasOwnProperty(G) && (N[G] = U[G]);
438
438
  if (a && a.defaultProps) {
439
439
  var R = a.defaultProps;
440
440
  for (G in R)
441
- S[G] === void 0 && (S[G] = R[G]);
441
+ N[G] === void 0 && (N[G] = R[G]);
442
442
  }
443
443
  if (k || F) {
444
444
  var P = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
445
- k && ri(S, P), F && oi(S, P);
445
+ k && oi(N, P), F && si(N, P);
446
446
  }
447
- return si(a, k, F, E, v, oa.current, S);
447
+ return ui(a, k, F, E, v, oa.current, N);
448
448
  }
449
449
  }
450
450
  var Je = g.ReactCurrentOwner, pa = g.ReactDebugCurrentFrame;
451
- function pe(a) {
451
+ function ge(a) {
452
452
  if (a) {
453
- var f = a._owner, C = Ge(a.type, a._source, f ? f.type : null);
453
+ var U = a._owner, C = Ge(a.type, a._source, U ? U.type : null);
454
454
  pa.setExtraStackFrame(C);
455
455
  } else
456
456
  pa.setExtraStackFrame(null);
@@ -472,158 +472,158 @@ Check the render method of \`` + a + "`.";
472
472
  return "";
473
473
  }
474
474
  }
475
- function pi(a) {
475
+ function gi(a) {
476
476
  return "";
477
477
  }
478
478
  var da = {};
479
- function gi(a) {
479
+ function di(a) {
480
480
  {
481
- var f = ga();
482
- if (!f) {
481
+ var U = ga();
482
+ if (!U) {
483
483
  var C = typeof a == "string" ? a : a.displayName || a.name;
484
- C && (f = `
484
+ C && (U = `
485
485
 
486
486
  Check the top-level render call using <` + C + ">.");
487
487
  }
488
- return f;
488
+ return U;
489
489
  }
490
490
  }
491
- function ca(a, f) {
491
+ function ca(a, U) {
492
492
  {
493
493
  if (!a._store || a._store.validated || a.key != null)
494
494
  return;
495
495
  a._store.validated = !0;
496
- var C = gi(f);
496
+ var C = di(U);
497
497
  if (da[C])
498
498
  return;
499
499
  da[C] = !0;
500
500
  var v = "";
501
- a && a._owner && a._owner !== Je.current && (v = " It was passed a child from " + H(a._owner.type) + "."), pe(a), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, v), pe(null);
501
+ a && a._owner && a._owner !== Je.current && (v = " It was passed a child from " + H(a._owner.type) + "."), ge(a), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, v), ge(null);
502
502
  }
503
503
  }
504
- function _a(a, f) {
504
+ function _a(a, U) {
505
505
  {
506
506
  if (typeof a != "object")
507
507
  return;
508
508
  if (We(a))
509
509
  for (var C = 0; C < a.length; C++) {
510
510
  var v = a[C];
511
- Ze(v) && ca(v, f);
511
+ Ze(v) && ca(v, U);
512
512
  }
513
513
  else if (Ze(a))
514
514
  a._store && (a._store.validated = !0);
515
515
  else if (a) {
516
516
  var E = b(a);
517
517
  if (typeof E == "function" && E !== a.entries)
518
- for (var G = E.call(a), S; !(S = G.next()).done; )
519
- Ze(S.value) && ca(S.value, f);
518
+ for (var G = E.call(a), N; !(N = G.next()).done; )
519
+ Ze(N.value) && ca(N.value, U);
520
520
  }
521
521
  }
522
522
  }
523
- function di(a) {
523
+ function ci(a) {
524
524
  {
525
- var f = a.type;
526
- if (f == null || typeof f == "string")
525
+ var U = a.type;
526
+ if (U == null || typeof U == "string")
527
527
  return;
528
528
  var C;
529
- if (typeof f == "function")
530
- C = f.propTypes;
531
- else if (typeof f == "object" && (f.$$typeof === r || // Note: Memo only checks outer props here.
529
+ if (typeof U == "function")
530
+ C = U.propTypes;
531
+ else if (typeof U == "object" && (U.$$typeof === r || // Note: Memo only checks outer props here.
532
532
  // Inner props are checked in the reconciler.
533
- f.$$typeof === i))
534
- C = f.propTypes;
533
+ U.$$typeof === i))
534
+ C = U.propTypes;
535
535
  else
536
536
  return;
537
537
  if (C) {
538
- var v = H(f);
539
- $a(C, a.props, "prop", v, a);
540
- } else if (f.PropTypes !== void 0 && !ze) {
538
+ var v = H(U);
539
+ ei(C, a.props, "prop", v, a);
540
+ } else if (U.PropTypes !== void 0 && !ze) {
541
541
  ze = !0;
542
- var E = H(f);
542
+ var E = H(U);
543
543
  T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
544
544
  }
545
- typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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 ci(a) {
548
+ function _i(a) {
549
549
  {
550
- for (var f = Object.keys(a.props), C = 0; C < f.length; C++) {
551
- var v = f[C];
550
+ for (var U = Object.keys(a.props), C = 0; C < U.length; C++) {
551
+ var v = U[C];
552
552
  if (v !== "children" && v !== "key") {
553
- pe(a), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), pe(null);
553
+ ge(a), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), ge(null);
554
554
  break;
555
555
  }
556
556
  }
557
- a.ref !== null && (pe(a), T("Invalid attribute `ref` supplied to `React.Fragment`."), pe(null));
557
+ a.ref !== null && (ge(a), T("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
558
558
  }
559
559
  }
560
560
  var fa = {};
561
- function Ua(a, f, C, v, E, G) {
561
+ function Ua(a, U, C, v, E, G) {
562
562
  {
563
- var S = Fe(a);
564
- if (!S) {
563
+ var N = Fe(a);
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 = pi();
567
+ var F = gi();
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 = ui(a, f, C, E, G);
572
+ var P = pi(a, U, C, E, G);
573
573
  if (P == null)
574
574
  return P;
575
- if (S) {
576
- var z = f.children;
575
+ if (N) {
576
+ var z = U.children;
577
577
  if (z !== void 0)
578
578
  if (v)
579
579
  if (We(z)) {
580
- for (var ge = 0; ge < z.length; ge++)
581
- _a(z[ge], a);
580
+ for (var de = 0; de < z.length; de++)
581
+ _a(z[de], a);
582
582
  Object.freeze && Object.freeze(z);
583
583
  } else
584
584
  T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
585
585
  else
586
586
  _a(z, a);
587
587
  }
588
- if (ye.call(f, "key")) {
589
- var te = H(a), W = Object.keys(f).filter(function(Ti) {
590
- return Ti !== "key";
588
+ if (ye.call(U, "key")) {
589
+ var te = H(a), W = Object.keys(U).filter(function(Ci) {
590
+ return Ci !== "key";
591
591
  }), Ve = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
592
592
  if (!fa[te + Ve]) {
593
- var bi = W.length > 0 ? "{" + W.join(": ..., ") + ": ...}" : "{}";
593
+ var Ti = 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, bi, te), fa[te + Ve] = !0;
599
+ <%s key={someKey} {...props} />`, Ve, te, Ti, te), fa[te + Ve] = !0;
600
600
  }
601
601
  }
602
- return a === s ? ci(P) : di(P), P;
602
+ return a === s ? _i(P) : ci(P), P;
603
603
  }
604
604
  }
605
- function _i(a, f, C) {
606
- return Ua(a, f, C, !0);
605
+ function fi(a, U, C) {
606
+ return Ua(a, U, C, !0);
607
607
  }
608
- function fi(a, f, C) {
609
- return Ua(a, f, C, !1);
608
+ function Ui(a, U, C) {
609
+ return Ua(a, U, C, !1);
610
610
  }
611
- var Ui = fi, yi = _i;
612
- Te.Fragment = s, Te.jsx = Ui, Te.jsxs = yi;
611
+ var yi = Ui, bi = fi;
612
+ Te.Fragment = s, Te.jsx = yi, Te.jsxs = bi;
613
613
  })()), Te;
614
614
  }
615
615
  var Ca;
616
- function Ei() {
617
- return Ca || (Ca = 1, process.env.NODE_ENV === "production" ? Pe.exports = Ni() : Pe.exports = Di()), Pe.exports;
616
+ function Li() {
617
+ return Ca || (Ca = 1, process.env.NODE_ENV === "production" ? Pe.exports = Di() : Pe.exports = Ei()), Pe.exports;
618
618
  }
619
- var Oe = Ei();
620
- const Za = Fa(null), de = () => {
621
- const e = Wa(Za);
619
+ var Oe = Li();
620
+ const Va = Wa(null), se = () => {
621
+ const e = Ja(Va);
622
622
  if (!e)
623
623
  throw new Error("useApiContext must be used within ApiProvider");
624
624
  return e;
625
625
  };
626
- function Li({
626
+ function Gi({
627
627
  baseURL: e,
628
628
  getToken: m,
629
629
  timeoutMs: c = 15e3,
@@ -631,120 +631,120 @@ function Li({
631
631
  store: o,
632
632
  onError: p
633
633
  } = {}) {
634
- const U = hi.create({
634
+ const f = ki.create({
635
635
  baseURL: e,
636
636
  timeout: c,
637
637
  headers: { "Content-Type": "application/json" }
638
638
  });
639
- return U.interceptors.request.use(async (_) => {
639
+ return f.interceptors.request.use(async (_) => {
640
640
  if (_.headers = _.headers || {}, m) {
641
641
  const u = await m();
642
642
  u && (_.headers.Authorization = `Bearer ${u}`);
643
643
  }
644
644
  const r = o?.getState()?.isWalletCurrency || o?.getState()?.currency?.currentCurrency || "TWD";
645
645
  return _.headers.Currency = r, _.headers["currency-code"] = r, _.headers.lang = s, _;
646
- }), U.interceptors.response.use(
646
+ }), f.interceptors.response.use(
647
647
  (_) => _.data,
648
- (_) => p ? p(_, { instance: U }) : Promise.reject(_)
649
- ), U;
648
+ (_) => p ? p(_, { instance: f }) : Promise.reject(_)
649
+ ), f;
650
650
  }
651
- const Va = Fa(null), pl = () => {
652
- const e = Wa(Va);
651
+ const Ia = Wa(null), gl = () => {
652
+ const e = Ja(Ia);
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
- }, gl = () => {
658
+ }, dl = () => {
659
659
  const e = (s, o) => !s && !o, m = (s) => s.startsWith("pc.");
660
660
  return {
661
661
  executeLogout: ({
662
662
  isCallBackInvalid: s = !1,
663
663
  hostname: o = "",
664
664
  shouldRedirect: p,
665
- onShowError: U,
665
+ onShowError: f,
666
666
  onCleanup: _,
667
667
  onRemoveToken: r,
668
668
  onRedirect: u,
669
669
  onGoogleLogout: n
670
670
  }) => {
671
671
  const i = m(o);
672
- e(s, i) && U?.(), _?.(), r?.(), p && u?.("/"), n?.();
672
+ e(s, i) && f?.(), _?.(), r?.(), p && u?.("/"), n?.();
673
673
  },
674
674
  shouldShowErrorNotice: e,
675
675
  isMachineDomain: m
676
676
  };
677
- }, Ia = (e = [], m) => Ye(e, { gameTypeName: m })?.gameTypeUid, Aa = (e = [], m) => Ye(e, { platform: m })?.platformUid, Ba = (e = [], m) => Ye(e, { SubPlatformEnum: m }), Ka = (e = [], m, c) => O(e) ? [] : e.filter((s) => c ? String(s?.SubPlatformEnumUid) === String(c?.SubPlatformEnumUid) : String(s.platformUid) === String(m)), Gi = (e = []) => O(e) ? {} : e.reduce((m, c) => {
677
+ }, Aa = (e = [], m) => Ye(e, { gameTypeName: m })?.gameTypeUid, Ba = (e = [], m) => Ye(e, { platform: m })?.platformUid, Ka = (e = [], m) => Ye(e, { SubPlatformEnum: m }), ja = (e = [], m, c) => O(e) ? [] : e.filter((s) => c ? String(s?.SubPlatformEnumUid) === String(c?.SubPlatformEnumUid) : String(s.platformUid) === String(m)), Mi = (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
- }, {}), Mi = ({
680
+ }, {}), Ri = ({
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 = Ia(s, e);
688
- return p ? m.reduce((U, _) => {
689
- const r = Aa(o, _), u = Ba(o, _), n = c[p] || [], i = Ka(
687
+ const p = Aa(s, e);
688
+ return p ? m.reduce((f, _) => {
689
+ const r = Ba(o, _), u = Ka(o, _), n = c[p] || [], i = ja(
690
690
  n,
691
691
  r,
692
692
  u
693
693
  );
694
- return O(i) || (U[_] = i), U;
694
+ return O(i) || (f[_] = i), f;
695
695
  }, {}) : {};
696
- }, Ri = ({
696
+ }, Pi = ({
697
697
  platformName: e,
698
698
  gamesOfType: m = [],
699
699
  allPlatforms: c = []
700
700
  }) => {
701
- const s = Aa(c, e), o = Ba(c, e), p = Ka(
701
+ const s = Ba(c, e), o = Ka(c, e), p = ja(
702
702
  m,
703
703
  s,
704
704
  o
705
705
  );
706
- return Gi(p);
707
- }, Pi = (e = {}) => !He(e) || O(e) ? [] : qe(e), va = (e = []) => !ee(e) || O(e) ? [] : we(e, "platform"), xi = (e = []) => !ee(e) || O(e) ? [] : we(e, "gameTypeName"), Oi = (e = []) => !ee(e) || O(e) ? [] : we(e, "game_subtype"), Hi = (e = {}) => !He(e) || O(e) ? [] : qe(e), wi = (e = [], m = []) => !ee(e) || O(e) ? {} : !ee(m) || O(m) ? {} : e.reduce((c, s) => {
706
+ return Mi(p);
707
+ }, xi = (e = {}) => !He(e) || O(e) ? [] : qe(e), va = (e = []) => !ee(e) || O(e) ? [] : we(e, "platform"), Oi = (e = []) => !ee(e) || O(e) ? [] : we(e, "gameTypeName"), Hi = (e = []) => !ee(e) || O(e) ? [] : we(e, "game_subtype"), wi = (e = {}) => !He(e) || O(e) ? [] : qe(e), Fi = (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
- }, {}), Fi = ({
712
+ }, {}), Wi = ({
713
713
  gameTypes: e = [],
714
714
  platforms: m = [],
715
715
  gameList: c = {},
716
716
  allGameTypes: s = [],
717
717
  allPlatforms: o = []
718
- }) => !ee(e) || !ee(m) ? {} : O(c) ? {} : e.reduce((p, U) => {
719
- const _ = Mi({
720
- gameTypeName: U,
718
+ }) => !ee(e) || !ee(m) ? {} : O(c) ? {} : e.reduce((p, f) => {
719
+ const _ = Ri({
720
+ gameTypeName: f,
721
721
  platforms: m,
722
722
  gameList: c,
723
723
  allGameTypes: s,
724
724
  allPlatforms: o
725
725
  });
726
- return O(_) || (p[U] = _), p;
727
- }, {}), dl = ({
726
+ return O(_) || (p[f] = _), p;
727
+ }, {}), cl = ({
728
728
  types: e = [],
729
729
  platforms: m = [],
730
730
  allGameType: c = [],
731
731
  allGamePlatform: s = [],
732
732
  allGameList: o = {}
733
- } = {}) => !Array.isArray(e) || !Array.isArray(m) ? {} : e.reduce((p, U) => {
734
- const _ = Ia(c, U);
733
+ } = {}) => !Array.isArray(e) || !Array.isArray(m) ? {} : e.reduce((p, f) => {
734
+ const _ = Aa(c, f);
735
735
  if (!_) return p;
736
736
  const r = o[_] || [], u = m.reduce((n, i) => {
737
- const d = Ri({
737
+ const d = Pi({
738
738
  platformName: i,
739
739
  gamesOfType: r,
740
740
  allPlatforms: s
741
741
  });
742
742
  return O(d) ? n : { ...n, [i]: d };
743
743
  }, {});
744
- return O(u) || (p[U] = u), p;
745
- }, {}), Wi = (e = {}) => !He(e) || O(e) ? {} : Object.values(e).reduce((c, s) => (Object.entries(s).forEach(([o, p]) => {
744
+ return O(u) || (p[f] = u), p;
745
+ }, {}), Ji = (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), {}), Ji = (e = {}) => {
747
+ }), c), {}), zi = (e = {}) => {
748
748
  if (!He(e) || O(e)) return {};
749
749
  const m = {};
750
750
  for (const [c, s] of Object.entries(e)) {
@@ -755,26 +755,26 @@ const Va = Fa(null), pl = () => {
755
755
  }
756
756
  }
757
757
  return m;
758
- }, zi = ({
758
+ }, Zi = ({
759
759
  allGameList: e = {},
760
760
  allGamePlatform: m = [],
761
761
  allGameType: c = [],
762
762
  allGame_subtype: s = [],
763
763
  allNewGameList: o = [],
764
764
  allTopGameList: p = [],
765
- randomlySelectedGames: U = [],
765
+ randomlySelectedGames: f = [],
766
766
  userFavoriteGame: _ = {},
767
767
  exclusiveBrandGames: r = [],
768
768
  highlightGames: u = [],
769
769
  originPlatform: n = []
770
770
  }) => {
771
- const i = Pi(e), d = va(m), l = xi(c), t = Oi(s), y = va(n), b = Hi(_), g = Fi({
771
+ const i = xi(e), d = va(m), l = Oi(c), t = Hi(s), y = va(n), b = wi(_), g = Wi({
772
772
  gameTypes: l,
773
773
  platforms: d,
774
774
  gameList: e,
775
775
  allGameTypes: c,
776
776
  allPlatforms: m
777
- }), T = wi(i, s), N = Wi(g), D = Ji(N);
777
+ }), T = Fi(i, s), S = Ji(g), D = zi(S);
778
778
  return {
779
779
  platform: {
780
780
  all: d,
@@ -782,7 +782,9 @@ const Va = Fa(null), pl = () => {
782
782
  },
783
783
  type: {
784
784
  main: l,
785
- sub: t
785
+ sub: t,
786
+ originMain: c,
787
+ originSub: s
786
788
  },
787
789
  gameList: {
788
790
  all: i,
@@ -791,23 +793,23 @@ const Va = Fa(null), pl = () => {
791
793
  favorite: b,
792
794
  highlight: u,
793
795
  exclusiveBrand: r,
794
- randomlySelected: U
796
+ randomlySelected: f
795
797
  },
796
798
  categorized: {
797
799
  bySubType: { ...T, MyFavorite: b },
798
- byPlatform: N,
800
+ byPlatform: S,
799
801
  byPlatformAndCategory: D
800
802
  },
801
803
  user: {
802
804
  favorite: b
803
805
  }
804
806
  };
805
- }, cl = (e = []) => !ee(e) || O(e) ? [] : qe(e, (m) => O(m.SubPlatformEnum) ? m : m.SubPlatformEnum.map((c) => ({
807
+ }, _l = (e = []) => !ee(e) || O(e) ? [] : qe(e, (m) => O(m.SubPlatformEnum) ? m : m.SubPlatformEnum.map((c) => ({
806
808
  ...m,
807
809
  ...c,
808
810
  platform: c.SubPlatformEnum,
809
811
  platformEnum: c.SubPlatformEnum
810
- }))), Zi = (e) => {
812
+ }))), Vi = (e) => {
811
813
  switch (e) {
812
814
  case "tw":
813
815
  return "zh_TW";
@@ -827,7 +829,7 @@ const Va = Fa(null), pl = () => {
827
829
  return e;
828
830
  }
829
831
  }, ce = () => {
830
- const { client: e } = de(), m = X(
832
+ const { client: e } = se(), m = X(
831
833
  async (r) => {
832
834
  const { mac_address: u = "", app_version: n = "", anydesk_id: i = "" } = r, { data: d } = await e.post("/cash-register/login", {
833
835
  mac_address: u,
@@ -837,7 +839,7 @@ const Va = Fa(null), pl = () => {
837
839
  return d;
838
840
  },
839
841
  [e]
840
- ), c = X(async () => e.get("/member/getMemberInfo"), [e]), s = X(async () => await e.get("/member/getGameList"), [e]), o = X(async () => await e.get("/member/getNowCurrencyExchange"), [e]), p = X(async () => await e.get("member/getFavoriteGame"), [e]), U = X(
842
+ ), c = X(async () => e.get("/member/getMemberInfo"), [e]), s = X(async () => await e.get("/member/getGameList"), [e]), o = X(async () => await e.get("/member/getNowCurrencyExchange"), [e]), p = X(async () => await e.get("member/getFavoriteGame"), [e]), f = X(
841
843
  async (r) => {
842
844
  const { account: u, password: n, trans_code: i } = r;
843
845
  return await e.post("/login", {
@@ -854,12 +856,12 @@ const Va = Fa(null), pl = () => {
854
856
  userGameListApi: s,
855
857
  userFavoriteGameApi: p,
856
858
  userCurrencyExchangeApi: o,
857
- userLoginApi: U,
859
+ userLoginApi: f,
858
860
  userLogoutApi: _
859
861
  };
860
- }, Vi = {
862
+ }, Ii = {
861
863
  platform: { all: [], origin: [] },
862
- type: { main: [], sub: [] },
864
+ type: { main: [], sub: [], originMain: [], originSub: [] },
863
865
  gameList: {
864
866
  all: [],
865
867
  new: [],
@@ -875,8 +877,8 @@ const Va = Fa(null), pl = () => {
875
877
  byPlatformAndCategory: {}
876
878
  },
877
879
  user: { favorite: [] }
878
- }, Ii = ({ enabled: e = !0 } = {}) => {
879
- const { getToken: m } = de(), { userFavoriteGameApi: c, userGameListApi: s } = ce(), { data: o, isLoading: p, error: U, refetch: _ } = oe({
880
+ }, Ai = ({ enabled: e = !0 } = {}) => {
881
+ const { getToken: m } = se(), { userFavoriteGameApi: c, userGameListApi: s } = ce(), { data: o, isLoading: p, error: f, refetch: _ } = oe({
880
882
  queryKey: ["gamesInfo"],
881
883
  queryFn: async () => {
882
884
  let r = {}, u = {};
@@ -885,7 +887,7 @@ const Va = Fa(null), pl = () => {
885
887
  } catch (n) {
886
888
  console.warn("Failed to fetch favorite games:", n);
887
889
  }
888
- return zi({
890
+ return Zi({
889
891
  allGameList: window.gameTypeGroup || {},
890
892
  allGamePlatform: u.platforms || window.platforms || [],
891
893
  allGameType: u.gameType || window.gameType || [],
@@ -908,12 +910,12 @@ const Va = Fa(null), pl = () => {
908
910
  refetchOnWindowFocus: !1
909
911
  });
910
912
  return {
911
- gamesInfo: o || Vi,
913
+ gamesInfo: o || Ii,
912
914
  isLoading: p,
913
- error: U,
915
+ error: f,
914
916
  refetch: _
915
917
  };
916
- }, Ai = (e = !1) => {
918
+ }, Bi = (e = !1) => {
917
919
  if (!e && window.gameTypeGroup) {
918
920
  console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
919
921
  return;
@@ -27440,26 +27442,26 @@ const Va = Fa(null), pl = () => {
27440
27442
  is_invalid_bet: 0
27441
27443
  }
27442
27444
  });
27443
- }, Bi = ({
27445
+ }, Ki = ({
27444
27446
  children: e,
27445
27447
  autoFetch: m = !1,
27446
27448
  mockData: c = !1
27447
27449
  }) => {
27448
27450
  he(() => {
27449
- c && Ai(!0);
27451
+ c && Bi(!0);
27450
27452
  }, [c]);
27451
- const s = Ii({ enabled: m });
27452
- return /* @__PURE__ */ Oe.jsx(Va.Provider, { value: s, children: e });
27453
+ const s = Ai({ enabled: m });
27454
+ return /* @__PURE__ */ Oe.jsx(Ia.Provider, { value: s, children: e });
27453
27455
  };
27454
- function _l({
27456
+ function fl({
27455
27457
  children: e,
27456
27458
  autoFetchGamesInfo: m = !1,
27457
27459
  useMockData: c = !1,
27458
27460
  queryClient: s,
27459
27461
  ...o
27460
27462
  }) {
27461
- const p = Qe(() => Li(o), [o]), U = Qe(
27462
- () => new Ci({
27463
+ const p = Qe(() => Gi(o), [o]), f = Qe(
27464
+ () => new vi({
27463
27465
  defaultOptions: {
27464
27466
  queries: {
27465
27467
  refetchOnWindowFocus: !1,
@@ -27468,29 +27470,29 @@ function _l({
27468
27470
  }
27469
27471
  }),
27470
27472
  []
27471
- ), _ = s || U;
27472
- return /* @__PURE__ */ Oe.jsx(vi, { client: _, children: /* @__PURE__ */ Oe.jsx(Za.Provider, { value: { client: p, ...o }, children: /* @__PURE__ */ Oe.jsx(Bi, { autoFetch: m, mockData: c, children: e }) }) });
27473
+ ), _ = s || f;
27474
+ return /* @__PURE__ */ Oe.jsx(hi, { client: _, children: /* @__PURE__ */ Oe.jsx(Va.Provider, { value: { client: p, ...o }, children: /* @__PURE__ */ Oe.jsx(Ki, { autoFetch: m, mockData: c, children: e }) }) });
27473
27475
  }
27474
- const fl = ({ otherQueryKey: e = [], options: m = {} } = {}) => {
27475
- const { userCurrencyExchangeApi: c } = ce(), { getToken: s } = de(), { enabled: o, ...p } = m, U = !!s && (o ? o.every((_) => _) : !0);
27476
- return Ja({
27476
+ const Ul = ({ otherQueryKey: e = [], options: m = {} } = {}) => {
27477
+ const { userCurrencyExchangeApi: c } = ce(), { getToken: s } = se(), { enabled: o, ...p } = m, f = !!s && (o ? o.every((_) => _) : !0);
27478
+ return za({
27477
27479
  queries: [
27478
27480
  {
27479
27481
  queryKey: ["userCurrencyExchange", ...e],
27480
27482
  queryFn: () => c(),
27481
- enabled: U,
27483
+ enabled: f,
27482
27484
  // ← 使用合併後的條件
27483
27485
  ...p
27484
27486
  // ← 不包含 enabled
27485
27487
  }
27486
27488
  ]
27487
27489
  });
27488
- }, Ul = ({
27490
+ }, yl = ({
27489
27491
  refetchInterval: e = 5e4,
27490
27492
  trigger: m = [],
27491
27493
  enabled: c = !0
27492
27494
  } = {}) => {
27493
- const { getToken: s } = de(), { userInfoApi: o } = ce(), p = Ja({
27495
+ const { getToken: s } = se(), { userInfoApi: o } = ce(), p = za({
27494
27496
  queries: [
27495
27497
  {
27496
27498
  queryKey: ["getMemberInfo", ...m],
@@ -27499,9 +27501,9 @@ const fl = ({ otherQueryKey: e = [], options: m = {} } = {}) => {
27499
27501
  enabled: !!s && c
27500
27502
  }
27501
27503
  ]
27502
- }), { data: U, isFetching: _, error: r } = p[0] || {};
27503
- return { data: U, isFetching: _, error: r };
27504
- }, yl = ({ enabled: e = !0 } = {}) => {
27504
+ }), { data: f, isFetching: _, error: r } = p[0] || {};
27505
+ return { data: f, isFetching: _, error: r };
27506
+ }, bl = ({ enabled: e = !0 } = {}) => {
27505
27507
  const {
27506
27508
  userInfoApi: m,
27507
27509
  userFavoriteGameApi: c,
@@ -27511,22 +27513,22 @@ const fl = ({ otherQueryKey: e = [], options: m = {} } = {}) => {
27511
27513
  queryKey: ["getMemInfo"],
27512
27514
  queryFn: async () => m(),
27513
27515
  enabled: e
27514
- }), U = oe({
27516
+ }), f = oe({
27515
27517
  queryKey: ["getFavoriteGame"],
27516
27518
  queryFn: async () => c(),
27517
27519
  enabled: e && p.isSuccess
27518
27520
  }), _ = oe({
27519
27521
  queryKey: ["getUserGameList"],
27520
27522
  queryFn: async () => s(),
27521
- enabled: e && p.isSuccess && U.isSuccess
27523
+ enabled: e && p.isSuccess && f.isSuccess
27522
27524
  }), r = oe({
27523
27525
  queryKey: ["getUserCurrencyExchange"],
27524
27526
  queryFn: async () => o(),
27525
- enabled: e && p.isSuccess && U.isSuccess && _.isSuccess
27527
+ enabled: e && p.isSuccess && f.isSuccess && _.isSuccess
27526
27528
  });
27527
27529
  return [
27528
27530
  p,
27529
- U,
27531
+ f,
27530
27532
  _,
27531
27533
  r
27532
27534
  ];
@@ -27578,7 +27580,7 @@ function $e() {
27578
27580
  Sa = 1, Object.defineProperty(Q, "__esModule", { value: !0 }), Q.setUpSocketIOPing = Q.appendQueryParams = Q.parseSocketIOUrl = void 0;
27579
27581
  var e = A(), m = function(o) {
27580
27582
  if (o) {
27581
- var p = /^https|wss/.test(o), U = o.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = U.replace(/\/$/, ""), r = p ? "wss" : "ws";
27583
+ var p = /^https|wss/.test(o), f = o.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = f.replace(/\/$/, ""), r = p ? "wss" : "ws";
27582
27584
  return "".concat(r, "://").concat(_).concat(e.SOCKET_IO_PATH);
27583
27585
  } else if (o === "") {
27584
27586
  var p = /^https/.test(window.location.protocol), r = p ? "wss" : "ws", u = window.location.port ? ":".concat(window.location.port) : "";
@@ -27589,7 +27591,7 @@ function $e() {
27589
27591
  Q.parseSocketIOUrl = m;
27590
27592
  var c = function(o, p) {
27591
27593
  p === void 0 && (p = {});
27592
- var U = /\?([\w]+=[\w]+)/, _ = U.test(o), r = "".concat(Object.entries(p).reduce(function(u, n) {
27594
+ var f = /\?([\w]+=[\w]+)/, _ = f.test(o), r = "".concat(Object.entries(p).reduce(function(u, n) {
27593
27595
  var i = n[0], d = n[1];
27594
27596
  return u + "".concat(i, "=").concat(d, "&");
27595
27597
  }, "").slice(0, -1));
@@ -27598,15 +27600,15 @@ function $e() {
27598
27600
  Q.appendQueryParams = c;
27599
27601
  var s = function(o, p) {
27600
27602
  p === void 0 && (p = e.SOCKET_IO_PING_INTERVAL);
27601
- var U = function() {
27603
+ var f = function() {
27602
27604
  return o(e.SOCKET_IO_PING_CODE);
27603
27605
  };
27604
- return window.setInterval(U, p);
27606
+ return window.setInterval(f, p);
27605
27607
  };
27606
27608
  return Q.setUpSocketIOPing = s, Q;
27607
27609
  }
27608
27610
  var xe = {}, Na;
27609
- function ja() {
27611
+ function Qa() {
27610
27612
  if (Na) return xe;
27611
27613
  Na = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.heartbeat = c;
27612
27614
  var e = A();
@@ -27616,7 +27618,7 @@ function ja() {
27616
27618
  }).current : s.current;
27617
27619
  }
27618
27620
  function c(s, o, p) {
27619
- var U = p || {}, _ = U.interval, r = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, u = U.timeout, n = u === void 0 ? e.DEFAULT_HEARTBEAT.timeout : u, i = U.message, d = i === void 0 ? e.DEFAULT_HEARTBEAT.message : i, l = Math.max(100, r / 10), t = Date.now(), y = setInterval(function() {
27621
+ var f = p || {}, _ = f.interval, r = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, u = f.timeout, n = u === void 0 ? e.DEFAULT_HEARTBEAT.timeout : u, i = f.message, d = i === void 0 ? e.DEFAULT_HEARTBEAT.message : i, l = Math.max(100, r / 10), t = Date.now(), y = setInterval(function() {
27620
27622
  var b = Date.now(), g = m(o);
27621
27623
  if (g + n <= b)
27622
27624
  console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - g, "ms ago, last ping sent ").concat(b - t, "ms ago")), s.close();
@@ -27651,10 +27653,10 @@ function ea() {
27651
27653
  m[r] = m[r] || /* @__PURE__ */ new Set(), m[r].add(u);
27652
27654
  };
27653
27655
  e.addSubscriber = p;
27654
- var U = function(r, u) {
27656
+ var f = function(r, u) {
27655
27657
  m[r].delete(u);
27656
27658
  };
27657
- e.removeSubscriber = U;
27659
+ e.removeSubscriber = f;
27658
27660
  var _ = function(r) {
27659
27661
  if (r && m.hasOwnProperty(r))
27660
27662
  delete m[r];
@@ -27680,7 +27682,7 @@ function aa() {
27680
27682
  return ve;
27681
27683
  }
27682
27684
  var La;
27683
- function Ki() {
27685
+ function ji() {
27684
27686
  if (La) return ne;
27685
27687
  La = 1;
27686
27688
  var e = ne && ne.__assign || function() {
@@ -27693,12 +27695,12 @@ function Ki() {
27693
27695
  }, e.apply(this, arguments);
27694
27696
  };
27695
27697
  Object.defineProperty(ne, "__esModule", { value: !0 }), ne.attachListeners = void 0;
27696
- var m = $e(), c = ja(), s = A(), o = aa(), p = function(n, i, d, l) {
27698
+ var m = $e(), c = Qa(), s = A(), o = aa(), p = function(n, i, d, l) {
27697
27699
  n.onmessage = function(t) {
27698
27700
  var y;
27699
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));
27700
27702
  };
27701
- }, U = function(n, i, d, l, t) {
27703
+ }, f = function(n, i, d, l, t) {
27702
27704
  n.onopen = function(y) {
27703
27705
  if (i.current.onOpen && i.current.onOpen(y), l.current = 0, d(s.ReadyState.OPEN), i.current.heartbeat && n instanceof WebSocket) {
27704
27706
  var b = typeof i.current.heartbeat == "boolean" ? void 0 : i.current.heartbeat;
@@ -27716,10 +27718,10 @@ function Ki() {
27716
27718
  if (i.current.onClose && i.current.onClose(b), d(s.ReadyState.CLOSED), i.current.shouldReconnect && i.current.shouldReconnect(b)) {
27717
27719
  var T = (g = i.current.reconnectAttempts) !== null && g !== void 0 ? g : s.DEFAULT_RECONNECT_LIMIT;
27718
27720
  if (t.current < T) {
27719
- var N = typeof i.current.reconnectInterval == "function" ? i.current.reconnectInterval(t.current) : i.current.reconnectInterval;
27721
+ var S = typeof i.current.reconnectInterval == "function" ? i.current.reconnectInterval(t.current) : i.current.reconnectInterval;
27720
27722
  y = window.setTimeout(function() {
27721
27723
  t.current++, l();
27722
- }, N ?? s.DEFAULT_RECONNECT_INTERVAL_MS);
27724
+ }, S ?? s.DEFAULT_RECONNECT_INTERVAL_MS);
27723
27725
  } else
27724
27726
  i.current.onReconnectStop && i.current.onReconnectStop(T), console.warn("Max reconnect attempts of ".concat(T, " exceeded"));
27725
27727
  }
@@ -27742,15 +27744,15 @@ function Ki() {
27742
27744
  return y && window.clearTimeout(y);
27743
27745
  };
27744
27746
  }, u = function(n, i, d, l, t, y, b) {
27745
- var g = i.setLastMessage, T = i.setReadyState, N, D, h;
27746
- return d.current.fromSocketIO && (N = (0, m.setUpSocketIOPing)(b)), p(n, d, g, y), U(n, d, T, t, y), D = _(n, d, T, l, t), h = r(n, d, T, l, t), function() {
27747
- T(s.ReadyState.CLOSING), D(), h(), n.close(), N && clearInterval(N);
27747
+ var g = i.setLastMessage, T = i.setReadyState, S, D, h;
27748
+ return d.current.fromSocketIO && (S = (0, m.setUpSocketIOPing)(b)), p(n, d, g, y), f(n, d, T, t, y), D = _(n, d, T, l, t), h = r(n, d, T, l, t), function() {
27749
+ T(s.ReadyState.CLOSING), D(), h(), n.close(), S && clearInterval(S);
27748
27750
  };
27749
27751
  };
27750
27752
  return ne.attachListeners = u, ne;
27751
27753
  }
27752
27754
  var me = {}, Ga;
27753
- function ji() {
27755
+ function Qi() {
27754
27756
  if (Ga) return me;
27755
27757
  Ga = 1;
27756
27758
  var e = me && me.__assign || function() {
@@ -27763,7 +27765,7 @@ function ji() {
27763
27765
  }, e.apply(this, arguments);
27764
27766
  };
27765
27767
  Object.defineProperty(me, "__esModule", { value: !0 }), me.attachSharedListeners = void 0;
27766
- var m = Xe(), c = A(), s = ea(), o = $e(), p = ja(), U = function(i, d, l) {
27768
+ var m = Xe(), c = A(), s = ea(), o = $e(), p = Qa(), f = function(i, d, l) {
27767
27769
  i.onmessage = function(t) {
27768
27770
  (0, s.getSubscribers)(d).forEach(function(y) {
27769
27771
  var b;
@@ -27805,17 +27807,17 @@ function ji() {
27805
27807
  };
27806
27808
  }, n = function(i, d, l, t) {
27807
27809
  var y;
27808
- return l.current.fromSocketIO && (y = (0, o.setUpSocketIOPing)(t)), U(i, d, l.current.heartbeat), r(i, d), _(i, d, l.current.heartbeat), u(i, d), function() {
27810
+ return l.current.fromSocketIO && (y = (0, o.setUpSocketIOPing)(t)), f(i, d, l.current.heartbeat), r(i, d), _(i, d, l.current.heartbeat), u(i, d), function() {
27809
27811
  y && clearInterval(y);
27810
27812
  };
27811
27813
  };
27812
27814
  return me.attachSharedListeners = n, me;
27813
27815
  }
27814
27816
  var Ma;
27815
- function Qi() {
27817
+ function Yi() {
27816
27818
  if (Ma) return Ce;
27817
27819
  Ma = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.createOrJoinSocket = void 0;
27818
- var e = Xe(), m = A(), c = Ki(), s = ji(), o = ea(), p = function(_, r, u, n, i) {
27820
+ var e = Xe(), m = A(), c = ji(), s = Qi(), o = ea(), p = function(_, r, u, n, i) {
27819
27821
  return function() {
27820
27822
  if ((0, o.removeSubscriber)(_, r), !(0, o.hasSubscribers)(_)) {
27821
27823
  try {
@@ -27828,7 +27830,7 @@ function Qi() {
27828
27830
  i && i(), delete e.sharedWebSockets[_];
27829
27831
  }
27830
27832
  };
27831
- }, U = function(_, r, u, n, i, d, l, t, y) {
27833
+ }, f = function(_, r, u, n, i, d, l, t, y) {
27832
27834
  if (!m.isEventSourceSupported && n.current.eventSourceOptions)
27833
27835
  throw m.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
27834
27836
  if (n.current.share) {
@@ -27852,10 +27854,10 @@ function Qi() {
27852
27854
  }, n, d.current, l, t, y);
27853
27855
  }
27854
27856
  };
27855
- return Ce.createOrJoinSocket = U, Ce;
27857
+ return Ce.createOrJoinSocket = f, Ce;
27856
27858
  }
27857
27859
  var Y = {}, Ra;
27858
- function Yi() {
27860
+ function qi() {
27859
27861
  return Ra || (Ra = 1, (function(e) {
27860
27862
  var m = Y && Y.__awaiter || function(r, u, n, i) {
27861
27863
  function d(l) {
@@ -27867,15 +27869,15 @@ function Yi() {
27867
27869
  function y(T) {
27868
27870
  try {
27869
27871
  g(i.next(T));
27870
- } catch (N) {
27871
- t(N);
27872
+ } catch (S) {
27873
+ t(S);
27872
27874
  }
27873
27875
  }
27874
27876
  function b(T) {
27875
27877
  try {
27876
27878
  g(i.throw(T));
27877
- } catch (N) {
27878
- t(N);
27879
+ } catch (S) {
27880
+ t(S);
27879
27881
  }
27880
27882
  }
27881
27883
  function g(T) {
@@ -27948,7 +27950,7 @@ function Yi() {
27948
27950
  return r.concat(l || Array.prototype.slice.call(u));
27949
27951
  };
27950
27952
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
27951
- var o = $e(), p = A(), U = function(r) {
27953
+ var o = $e(), p = A(), f = function(r) {
27952
27954
  return new Promise(function(u) {
27953
27955
  return window.setTimeout(u, r);
27954
27956
  });
@@ -27956,7 +27958,7 @@ function Yi() {
27956
27958
  for (var n = [], i = 2; i < arguments.length; i++)
27957
27959
  n[i - 2] = arguments[i];
27958
27960
  return m(void 0, s([r, u], n, !0), void 0, function(d, l, t) {
27959
- var y, b, g, T, N, D, h, L;
27961
+ var y, b, g, T, S, D, h, L;
27960
27962
  return t === void 0 && (t = 0), c(this, function(M) {
27961
27963
  switch (M.label) {
27962
27964
  case 0:
@@ -27967,7 +27969,7 @@ function Yi() {
27967
27969
  case 2:
27968
27970
  return y = M.sent(), [3, 9];
27969
27971
  case 3:
27970
- return M.sent(), l.current.retryOnError ? (b = (D = l.current.reconnectAttempts) !== null && D !== void 0 ? D : p.DEFAULT_RECONNECT_LIMIT, t < b ? (g = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(t) : l.current.reconnectInterval, [4, U(g ?? p.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
27972
+ return M.sent(), l.current.retryOnError ? (b = (D = l.current.reconnectAttempts) !== null && D !== void 0 ? D : p.DEFAULT_RECONNECT_LIMIT, t < b ? (g = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(t) : l.current.reconnectInterval, [4, f(g ?? p.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
27971
27973
  case 4:
27972
27974
  return M.sent(), [2, (0, e.getUrl)(d, l, t + 1)];
27973
27975
  case 5:
@@ -27983,7 +27985,7 @@ function Yi() {
27983
27985
  case 10:
27984
27986
  y = d, M.label = 11;
27985
27987
  case 11:
27986
- return T = l.current.fromSocketIO ? (0, o.parseSocketIOUrl)(y) : y, N = l.current.queryParams ? (0, o.appendQueryParams)(T, l.current.queryParams) : T, [2, N];
27988
+ return T = l.current.fromSocketIO ? (0, o.parseSocketIOUrl)(y) : y, S = l.current.queryParams ? (0, o.appendQueryParams)(T, l.current.queryParams) : T, [2, S];
27987
27989
  }
27988
27990
  });
27989
27991
  });
@@ -27992,18 +27994,18 @@ function Yi() {
27992
27994
  })(Y)), Y;
27993
27995
  }
27994
27996
  var je = {}, Pa;
27995
- function qi() {
27997
+ function Xi() {
27996
27998
  return Pa || (Pa = 1, (function(e) {
27997
27999
  Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
27998
28000
  var m = function(c, s) {
27999
28001
  return new Proxy(c, {
28000
28002
  get: function(o, p) {
28001
- var U = o[p];
28002
- return p === "reconnect" ? s : typeof U == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
28003
- }) : U;
28003
+ var f = o[p];
28004
+ return p === "reconnect" ? s : typeof f == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
28005
+ }) : f;
28004
28006
  },
28005
- set: function(o, p, U) {
28006
- return /^on/.test(p) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (o[p] = U, !0);
28007
+ set: function(o, p, f) {
28008
+ return /^on/.test(p) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (o[p] = f, !0);
28007
28009
  }
28008
28010
  });
28009
28011
  };
@@ -28029,7 +28031,7 @@ function ia() {
28029
28031
  });
28030
28032
  }
28031
28033
  return new (t || (t = Promise))(function(g, T) {
28032
- function N(L) {
28034
+ function S(L) {
28033
28035
  try {
28034
28036
  h(y.next(L));
28035
28037
  } catch (M) {
@@ -28044,7 +28046,7 @@ function ia() {
28044
28046
  }
28045
28047
  }
28046
28048
  function h(L) {
28047
- L.done ? g(L.value) : b(L.value).then(N, D);
28049
+ L.done ? g(L.value) : b(L.value).then(S, D);
28048
28050
  }
28049
28051
  h((y = y.apply(d, l || [])).next());
28050
28052
  });
@@ -28053,10 +28055,10 @@ function ia() {
28053
28055
  if (g[0] & 1) throw g[1];
28054
28056
  return g[1];
28055
28057
  }, trys: [], ops: [] }, y, b, g, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
28056
- return T.next = N(0), T.throw = N(1), T.return = N(2), typeof Symbol == "function" && (T[Symbol.iterator] = function() {
28058
+ return T.next = S(0), T.throw = S(1), T.return = S(2), typeof Symbol == "function" && (T[Symbol.iterator] = function() {
28057
28059
  return this;
28058
28060
  }), T;
28059
- function N(h) {
28061
+ function S(h) {
28060
28062
  return function(L) {
28061
28063
  return D([h, L]);
28062
28064
  };
@@ -28111,44 +28113,44 @@ function ia() {
28111
28113
  return d && d.__esModule ? d : { default: d };
28112
28114
  };
28113
28115
  Object.defineProperty(J, "__esModule", { value: !0 }), J.useWebSocket = void 0;
28114
- var o = ke, p = ki, U = A(), _ = Qi(), r = Yi(), u = s(qi()), n = aa(), i = function(d, l, t) {
28115
- l === void 0 && (l = U.DEFAULT_OPTIONS), t === void 0 && (t = !0);
28116
- var y = (0, o.useState)(null), b = y[0], g = y[1], T = (0, o.useState)({}), N = T[0], D = T[1], h = (0, o.useMemo)(function() {
28116
+ var o = ke, p = Si, f = A(), _ = Yi(), r = qi(), u = s(Xi()), n = aa(), i = function(d, l, t) {
28117
+ l === void 0 && (l = f.DEFAULT_OPTIONS), t === void 0 && (t = !0);
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() {
28117
28119
  if (!l.disableJson && b)
28118
28120
  try {
28119
28121
  return JSON.parse(b.data);
28120
28122
  } catch {
28121
- return U.UNPARSABLE_JSON_OBJECT;
28123
+ return f.UNPARSABLE_JSON_OBJECT;
28122
28124
  }
28123
28125
  return null;
28124
28126
  }, [b, l.disableJson]), L = (0, o.useRef)(null), M = (0, o.useRef)(null), _e = (0, o.useRef)(function() {
28125
28127
  }), fe = (0, o.useRef)(0), Fe = (0, o.useRef)(Date.now()), Se = (0, o.useRef)([]), V = (0, o.useRef)(null), H = (0, o.useRef)(l);
28126
28128
  H.current = l;
28127
- var Z = L.current && N[L.current] !== void 0 ? N[L.current] : d !== null && t === !0 ? U.ReadyState.CONNECTING : U.ReadyState.UNINSTANTIATED, ae = l.queryParams ? JSON.stringify(l.queryParams) : null, B = (0, o.useCallback)(function(x, w) {
28129
+ var Z = L.current && S[L.current] !== void 0 ? S[L.current] : d !== null && t === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, ae = l.queryParams ? JSON.stringify(l.queryParams) : null, B = (0, o.useCallback)(function(x, w) {
28128
28130
  var K;
28129
- if (w === void 0 && (w = !0), U.isEventSourceSupported && M.current instanceof EventSource) {
28131
+ if (w === void 0 && (w = !0), f.isEventSourceSupported && M.current instanceof EventSource) {
28130
28132
  console.warn("Unable to send a message from an eventSource");
28131
28133
  return;
28132
28134
  }
28133
- ((K = M.current) === null || K === void 0 ? void 0 : K.readyState) === U.ReadyState.OPEN ? ((0, n.assertIsWebSocket)(M.current, H.current.skipAssert), M.current.send(x)) : w && Se.current.push(x);
28135
+ ((K = M.current) === null || K === void 0 ? void 0 : K.readyState) === f.ReadyState.OPEN ? ((0, n.assertIsWebSocket)(M.current, H.current.skipAssert), M.current.send(x)) : w && Se.current.push(x);
28134
28136
  }, []), Ne = (0, o.useCallback)(function(x, w) {
28135
28137
  w === void 0 && (w = !0), B(JSON.stringify(x), w);
28136
28138
  }, [B]), De = (0, o.useCallback)(function() {
28137
- return H.current.share !== !0 || U.isEventSourceSupported && M.current instanceof EventSource ? M.current : (V.current === null && M.current && ((0, n.assertIsWebSocket)(M.current, H.current.skipAssert), V.current = (0, u.default)(M.current, _e)), V.current);
28139
+ return H.current.share !== !0 || f.isEventSourceSupported && M.current instanceof EventSource ? M.current : (V.current === null && M.current && ((0, n.assertIsWebSocket)(M.current, H.current.skipAssert), V.current = (0, u.default)(M.current, _e)), V.current);
28138
28140
  }, []);
28139
28141
  return (0, o.useEffect)(function() {
28140
28142
  if (d !== null && t === !0) {
28141
28143
  var x, w = !1, K = !0, Ue = function() {
28142
28144
  return m(void 0, void 0, void 0, function() {
28143
28145
  var ie, $, Ee;
28144
- return c(this, function(se) {
28145
- switch (se.label) {
28146
+ return c(this, function(ue) {
28147
+ switch (ue.label) {
28146
28148
  case 0:
28147
28149
  return ie = L, [4, (0, r.getUrl)(d, H)];
28148
28150
  case 1:
28149
- return ie.current = se.sent(), L.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), L.current = "ABORTED", (0, p.flushSync)(function() {
28151
+ return ie.current = ue.sent(), L.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), L.current = "ABORTED", (0, p.flushSync)(function() {
28150
28152
  return D(function(j) {
28151
- return e(e({}, j), { ABORTED: U.ReadyState.CLOSED });
28153
+ return e(e({}, j), { ABORTED: f.ReadyState.CLOSED });
28152
28154
  });
28153
28155
  }), [
28154
28156
  2
@@ -28159,9 +28161,9 @@ function ia() {
28159
28161
  });
28160
28162
  }, Ee = function(j) {
28161
28163
  w || (0, p.flushSync)(function() {
28162
- return D(function(ue) {
28164
+ return D(function(pe) {
28163
28165
  var le;
28164
- return e(e({}, ue), L.current && (le = {}, le[L.current] = j, le));
28166
+ return e(e({}, pe), L.current && (le = {}, le[L.current] = j, le));
28165
28167
  });
28166
28168
  });
28167
28169
  }, K && (x = (0, _.createOrJoinSocket)(M, L.current, Ee, H, $, _e, fe, Fe, B)), [
@@ -28179,10 +28181,10 @@ function ia() {
28179
28181
  };
28180
28182
  } else (d === null || t === !1) && (fe.current = 0, D(function(ie) {
28181
28183
  var $;
28182
- return e(e({}, ie), L.current && ($ = {}, $[L.current] = U.ReadyState.CLOSED, $));
28184
+ return e(e({}, ie), L.current && ($ = {}, $[L.current] = f.ReadyState.CLOSED, $));
28183
28185
  }));
28184
28186
  }, [d, t, ae, B]), (0, o.useEffect)(function() {
28185
- Z === U.ReadyState.OPEN && Se.current.splice(0).forEach(function(x) {
28187
+ Z === f.ReadyState.OPEN && Se.current.splice(0).forEach(function(x) {
28186
28188
  B(x);
28187
28189
  });
28188
28190
  }, [Z]), {
@@ -28197,7 +28199,7 @@ function ia() {
28197
28199
  return J.useWebSocket = i, J;
28198
28200
  }
28199
28201
  var re = {}, Oa;
28200
- function Xi() {
28202
+ function $i() {
28201
28203
  if (Oa) return re;
28202
28204
  Oa = 1;
28203
28205
  var e = re && re.__assign || function() {
@@ -28224,7 +28226,7 @@ function Xi() {
28224
28226
  type: u[0],
28225
28227
  payload: u[1]
28226
28228
  };
28227
- }, U = function(_, r, u) {
28229
+ }, f = function(_, r, u) {
28228
28230
  r === void 0 && (r = s.DEFAULT_OPTIONS), u === void 0 && (u = !0);
28229
28231
  var n = (0, m.useMemo)(function() {
28230
28232
  return e(e({}, r), { fromSocketIO: !0 });
@@ -28240,30 +28242,30 @@ function Xi() {
28240
28242
  getWebSocket: b
28241
28243
  };
28242
28244
  };
28243
- return re.useSocketIO = U, re;
28245
+ return re.useSocketIO = f, re;
28244
28246
  }
28245
28247
  var q = {}, Ha;
28246
- function $i() {
28248
+ function el() {
28247
28249
  if (Ha) return q;
28248
28250
  Ha = 1;
28249
28251
  var e = q && q.__assign || function() {
28250
- return e = Object.assign || function(U) {
28252
+ return e = Object.assign || function(f) {
28251
28253
  for (var _, r = 1, u = arguments.length; r < u; r++) {
28252
28254
  _ = arguments[r];
28253
- for (var n in _) Object.prototype.hasOwnProperty.call(_, n) && (U[n] = _[n]);
28255
+ for (var n in _) Object.prototype.hasOwnProperty.call(_, n) && (f[n] = _[n]);
28254
28256
  }
28255
- return U;
28257
+ return f;
28256
28258
  }, e.apply(this, arguments);
28257
- }, m = q && q.__rest || function(U, _) {
28259
+ }, m = q && q.__rest || function(f, _) {
28258
28260
  var r = {};
28259
- for (var u in U) Object.prototype.hasOwnProperty.call(U, u) && _.indexOf(u) < 0 && (r[u] = U[u]);
28260
- if (U != null && typeof Object.getOwnPropertySymbols == "function")
28261
- for (var n = 0, u = Object.getOwnPropertySymbols(U); n < u.length; n++)
28262
- _.indexOf(u[n]) < 0 && Object.prototype.propertyIsEnumerable.call(U, u[n]) && (r[u[n]] = U[u[n]]);
28261
+ for (var u in f) Object.prototype.hasOwnProperty.call(f, u) && _.indexOf(u) < 0 && (r[u] = f[u]);
28262
+ if (f != null && typeof Object.getOwnPropertySymbols == "function")
28263
+ for (var n = 0, u = Object.getOwnPropertySymbols(f); n < u.length; n++)
28264
+ _.indexOf(u[n]) < 0 && Object.prototype.propertyIsEnumerable.call(f, u[n]) && (r[u[n]] = f[u[n]]);
28263
28265
  return r;
28264
28266
  };
28265
28267
  Object.defineProperty(q, "__esModule", { value: !0 }), q.useEventSource = void 0;
28266
- var c = ke, s = ia(), o = A(), p = function(U, _, r) {
28268
+ var c = ke, s = ia(), o = A(), p = function(f, _, r) {
28267
28269
  _ === void 0 && (_ = o.DEFAULT_EVENT_SOURCE_OPTIONS);
28268
28270
  var u = _.withCredentials, n = _.events, i = m(_, ["withCredentials", "events"]);
28269
28271
  r === void 0 && (r = !0);
@@ -28271,11 +28273,11 @@ function $i() {
28271
28273
  withCredentials: u
28272
28274
  } }), l = (0, c.useRef)(o.EMPTY_EVENT_HANDLERS);
28273
28275
  n && (l.current = n);
28274
- var t = (0, s.useWebSocket)(U, d, r), y = t.lastMessage, b = t.readyState, g = t.getWebSocket;
28276
+ var t = (0, s.useWebSocket)(f, d, r), y = t.lastMessage, b = t.readyState, g = t.getWebSocket;
28275
28277
  return (0, c.useEffect)(function() {
28276
28278
  y?.type && Object.entries(l.current).forEach(function(T) {
28277
- var N = T[0], D = T[1];
28278
- N === y.type && D(y);
28279
+ var S = T[0], D = T[1];
28280
+ S === y.type && D(y);
28279
28281
  });
28280
28282
  }, [y]), {
28281
28283
  lastEvent: y,
@@ -28286,14 +28288,14 @@ function $i() {
28286
28288
  return q.useEventSource = p, q;
28287
28289
  }
28288
28290
  var wa;
28289
- function el() {
28291
+ function al() {
28290
28292
  return wa || (wa = 1, (function(e) {
28291
28293
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
28292
28294
  var m = ia();
28293
28295
  Object.defineProperty(e, "default", { enumerable: !0, get: function() {
28294
28296
  return m.useWebSocket;
28295
28297
  } });
28296
- var c = Xi();
28298
+ var c = $i();
28297
28299
  Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
28298
28300
  return c.useSocketIO;
28299
28301
  } });
@@ -28301,7 +28303,7 @@ function el() {
28301
28303
  Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
28302
28304
  return s.ReadyState;
28303
28305
  } });
28304
- var o = $i();
28306
+ var o = el();
28305
28307
  Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
28306
28308
  return o.useEventSource;
28307
28309
  } });
@@ -28311,8 +28313,8 @@ function el() {
28311
28313
  } });
28312
28314
  })(Ie)), Ie;
28313
28315
  }
28314
- var al = el();
28315
- const il = /* @__PURE__ */ Si(al), I = {
28316
+ var il = al();
28317
+ const ll = /* @__PURE__ */ Ni(il), I = {
28316
28318
  DEPOSIT: "deposit",
28317
28319
  TRANS_CODE: "transCode",
28318
28320
  ERROR: "error",
@@ -28323,7 +28325,7 @@ const il = /* @__PURE__ */ Si(al), I = {
28323
28325
  TRANSFER_IN_GAME: "transfer_in_game",
28324
28326
  CHECK_REQUEST: "CHECK_RREQUEST",
28325
28327
  CASH_REGISTER_LIMIT: "cash_register_limit"
28326
- }, ll = 3e4, bl = ({
28328
+ }, tl = 3e4, Tl = ({
28327
28329
  socketUrl: e,
28328
28330
  socketHandlers: m = {},
28329
28331
  options: c = {}
@@ -28331,7 +28333,7 @@ const il = /* @__PURE__ */ Si(al), I = {
28331
28333
  const s = ya(!1), o = ya(m), {
28332
28334
  sendMessage: p,
28333
28335
  // 發送普通訊息
28334
- sendJsonMessage: U,
28336
+ sendJsonMessage: f,
28335
28337
  // 發送 JSON 訊息
28336
28338
  lastMessage: _,
28337
28339
  // 最後接收到的訊息
@@ -28339,7 +28341,7 @@ const il = /* @__PURE__ */ Si(al), I = {
28339
28341
  readyState: r
28340
28342
  // WebSocket 連線狀態
28341
28343
  // getWebSocket, // 獲取 WebSocket 實例
28342
- } = il(e, {
28344
+ } = ll(e, {
28343
28345
  queryParams: { key: "wsky" },
28344
28346
  onOpen: () => console.log("連線成功"),
28345
28347
  shouldReconnect: () => s.current === !1,
@@ -28356,7 +28358,7 @@ const il = /* @__PURE__ */ Si(al), I = {
28356
28358
  return he(() => {
28357
28359
  const n = setInterval(
28358
28360
  () => p("ping"),
28359
- ll
28361
+ tl
28360
28362
  );
28361
28363
  return () => clearInterval(n);
28362
28364
  }, [p]), he(() => {
@@ -28373,12 +28375,12 @@ const il = /* @__PURE__ */ Si(al), I = {
28373
28375
  onReload: b,
28374
28376
  onTransferInGame: g,
28375
28377
  onCashRegisterLimit: T
28376
- } = o.current, N = Re(u, "type", ""), D = {
28378
+ } = o.current, S = Re(u, "type", ""), D = {
28377
28379
  memberInfoUid: Re(u, "member_info_uid", null),
28378
28380
  data: Re(u, "data", null),
28379
28381
  memo: Re(u, "memo", null)
28380
28382
  };
28381
- switch (N) {
28383
+ switch (S) {
28382
28384
  case I.DEPOSIT:
28383
28385
  n?.(D);
28384
28386
  break;
@@ -28408,96 +28410,177 @@ const il = /* @__PURE__ */ Si(al), I = {
28408
28410
  T?.(D);
28409
28411
  break;
28410
28412
  default:
28411
- console.warn("Unknown socket type:", N);
28413
+ console.warn("Unknown socket type:", S);
28412
28414
  break;
28413
28415
  }
28414
28416
  }, [u]), he(() => () => s.current = !0, []), {
28415
28417
  sendMessage: p,
28416
- sendJsonMessage: U,
28418
+ sendJsonMessage: f,
28417
28419
  readyState: r
28418
28420
  // WebSocket 連線狀態
28419
28421
  };
28420
- }, Qa = () => {
28421
- const { client: e } = de(), m = X(async () => {
28422
+ }, Ya = () => {
28423
+ const { client: e } = se(), m = X(async () => {
28422
28424
  const { data: s } = await e.get("/carousels");
28423
28425
  return s;
28424
28426
  }, [e]), c = X(async () => await e.get("/marquees"), [e]);
28425
28427
  return { commonCarouselApi: m, commonMarqueeApi: c };
28426
- }, Tl = () => {
28427
- const { commonCarouselApi: e } = Qa();
28428
+ }, Cl = () => {
28429
+ const { commonCarouselApi: e } = Ya();
28428
28430
  return oe({
28429
28431
  queryKey: ["getCarouselList"],
28430
28432
  queryFn: async () => await e()
28431
28433
  });
28432
- }, Cl = () => {
28433
- const { lng: e } = de(), { commonMarqueeApi: m } = Qa(), c = Zi(e);
28434
+ }, vl = () => {
28435
+ const { lng: e } = se(), { commonMarqueeApi: m } = Ya(), c = Vi(e);
28434
28436
  return oe({
28435
28437
  queryKey: ["getMarqueeList"],
28436
28438
  queryFn: async () => m(),
28437
28439
  select: (s) => {
28438
28440
  const o = s.Marquees;
28439
- return we(o, (U) => U[c] || U["en-US"]);
28441
+ return we(o, (f) => f[c] || f["en-US"]);
28440
28442
  }
28441
28443
  });
28442
- }, tl = ({ options: e } = {}) => {
28444
+ }, nl = ({ options: e } = {}) => {
28443
28445
  const { userLoginApi: m } = ce();
28444
- return za({
28446
+ return Za({
28445
28447
  mutationKey: ["userLogin"],
28446
28448
  mutationFn: async (c) => m(c),
28447
28449
  ...e
28448
28450
  });
28449
- }, nl = ({ options: e } = {}) => {
28451
+ }, ml = ({ options: e } = {}) => {
28450
28452
  const { userLogoutApi: m } = ce();
28451
- return za({
28453
+ return Za({
28452
28454
  mutationKey: ["userLogout"],
28453
28455
  mutationFn: async () => m(),
28454
28456
  ...e
28455
28457
  });
28456
- }, vl = ({
28458
+ }, hl = ({
28457
28459
  options: e = {
28458
28460
  login: {},
28459
28461
  logout: {}
28460
28462
  }
28461
28463
  } = {}) => {
28462
- const m = tl({ options: e.login }), c = nl({ options: e.logout });
28464
+ const m = nl({ options: e.login }), c = ml({ options: e.logout });
28463
28465
  return { login: m, logout: c };
28466
+ }, Fa = (e) => {
28467
+ switch (e) {
28468
+ case "tw":
28469
+ return "Tw";
28470
+ case "en":
28471
+ return "En";
28472
+ case "cn":
28473
+ return "Zh";
28474
+ case "th":
28475
+ return "Th";
28476
+ case "id":
28477
+ return "Id";
28478
+ case "vi":
28479
+ return "Vi";
28480
+ case "jp":
28481
+ return "Jp";
28482
+ default:
28483
+ return "En";
28484
+ }
28485
+ }, kl = ({ gameData: e = {} } = {}) => {
28486
+ const { lng: m } = se(), c = Fa(m), {
28487
+ gameCode: s,
28488
+ // 遊戲代碼
28489
+ gameUid: o,
28490
+ // 遊戲唯一標識符
28491
+ gameTypeUid: p,
28492
+ // 遊戲類型唯一標識符
28493
+ platformUid: f,
28494
+ // 平台唯一標識符
28495
+ currenycyCode: _,
28496
+ // 支援貨幣
28497
+ enterLobbyMode: r,
28498
+ // 進入大廳模式
28499
+ game_platform: u,
28500
+ // 遊戲平台
28501
+ game_subtype: n,
28502
+ // 遊戲子類型
28503
+ game_type: i,
28504
+ // 遊戲類型
28505
+ game_tags: d,
28506
+ // 遊戲標籤
28507
+ isUnderMaintenance: l,
28508
+ // 是否維護中
28509
+ support_vertical: t,
28510
+ // 是否支援直向
28511
+ support_horizontal: y,
28512
+ // 是否支援橫向
28513
+ userClickCount: b,
28514
+ // 用戶點擊次數
28515
+ gameNameEn: g,
28516
+ // 英文名稱
28517
+ gameNameZh: T,
28518
+ // 中文名稱
28519
+ gameNameVi: S,
28520
+ // 越南名稱
28521
+ gameNameTw: D
28522
+ // 繁體中文名稱
28523
+ } = e;
28524
+ return {
28525
+ gameCode: s,
28526
+ gameUid: o,
28527
+ gameTypeUid: p,
28528
+ providerUid: f,
28529
+ supportCurrency: _,
28530
+ enterLobbyMode: r,
28531
+ gamePlatform: u,
28532
+ gameSubType: n,
28533
+ gameType: i,
28534
+ gameTags: d,
28535
+ isUnderMaintenance: l,
28536
+ supportVertical: t,
28537
+ supportHorizontal: y,
28538
+ userClickCount: b,
28539
+ gameNameEn: g,
28540
+ gameNameZh: T,
28541
+ gameNameVi: S,
28542
+ gameNameTw: D,
28543
+ gameName: e?.[`gameName${Fa(c)}`]
28544
+ // 根據語言轉換的遊戲名稱
28545
+ };
28464
28546
  };
28465
28547
  export {
28466
- Za as ApiCtx,
28467
- _l as ApiProvider,
28468
- Va as GamesInfoCtx,
28469
- Fi as buildMultiTypes,
28470
- dl as buildMultiTypesWithSubTypes,
28471
- Ri as buildSinglePlatformWithSubTypes,
28472
- Mi as buildSingleType,
28473
- wi as categorizeGames,
28474
- Zi as convertLanguageCode,
28475
- gl as createLogoutHandler,
28476
- Oi as extractGameSubTypeNames,
28477
- xi as extractGameTypeNames,
28548
+ Va as ApiCtx,
28549
+ fl as ApiProvider,
28550
+ Ia as GamesInfoCtx,
28551
+ Wi as buildMultiTypes,
28552
+ cl as buildMultiTypesWithSubTypes,
28553
+ Pi as buildSinglePlatformWithSubTypes,
28554
+ Ri as buildSingleType,
28555
+ Fi as categorizeGames,
28556
+ Vi as convertLanguageCode,
28557
+ dl as createLogoutHandler,
28558
+ Hi as extractGameSubTypeNames,
28559
+ Oi as extractGameTypeNames,
28478
28560
  va as extractPlatformNames,
28479
- Ka as filterGamesByPlatform,
28480
- Ia as findGameTypeUid,
28481
- Aa as findPlatformUid,
28482
- Ba as findSubPlatform,
28483
- Pi as flattenAllGames,
28484
- Hi as flattenFavoriteGames,
28485
- Wi as groupGamesByPlatform,
28486
- Ji as groupGamesByPlatformAndSubType,
28487
- Gi as groupGamesBySubType,
28488
- Ai as initMockWindowData,
28489
- zi as processGameInfo,
28490
- cl as processPlatformData,
28491
- de as useApiContext,
28492
- fl as useBalanceGetter,
28493
- bl as useClientWebSocket,
28494
- pl as useGameInfoContext,
28495
- Ii as useGamesInfo,
28496
- Tl as useGetCarouseList,
28497
- Cl as useGetMarquee,
28498
- Ul as useGetMemberInfo,
28499
- yl as useInitializeWithToken,
28500
- tl as useLogin,
28501
- nl as useLogout,
28502
- vl as useUser
28561
+ ja as filterGamesByPlatform,
28562
+ Aa as findGameTypeUid,
28563
+ Ba as findPlatformUid,
28564
+ Ka as findSubPlatform,
28565
+ xi as flattenAllGames,
28566
+ wi as flattenFavoriteGames,
28567
+ Ji as groupGamesByPlatform,
28568
+ zi as groupGamesByPlatformAndSubType,
28569
+ Mi as groupGamesBySubType,
28570
+ Bi as initMockWindowData,
28571
+ Zi as processGameInfo,
28572
+ _l as processPlatformData,
28573
+ se as useApiContext,
28574
+ Ul as useBalanceGetter,
28575
+ Tl as useClientWebSocket,
28576
+ kl as useGameData,
28577
+ gl as useGameInfoContext,
28578
+ Ai as useGamesInfo,
28579
+ Cl as useGetCarouseList,
28580
+ vl as useGetMarquee,
28581
+ yl as useGetMemberInfo,
28582
+ bl as useInitializeWithToken,
28583
+ nl as useLogin,
28584
+ ml as useLogout,
28585
+ hl as useUser
28503
28586
  };