@obb871001/api-integration-sdk 1.0.327 → 1.0.328

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
@@ -217,10 +217,10 @@ function ql() {
217
217
  }
218
218
  var ae = !1, ie;
219
219
  {
220
- var _e = typeof WeakMap == "function" ? WeakMap : Map;
221
- ie = new _e();
220
+ var ye = typeof WeakMap == "function" ? WeakMap : Map;
221
+ ie = new ye();
222
222
  }
223
- function ye(T, z) {
223
+ function Ue(T, z) {
224
224
  if (!T || ae)
225
225
  return "";
226
226
  {
@@ -246,29 +246,29 @@ function ql() {
246
246
  }), typeof Reflect == "object" && Reflect.construct) {
247
247
  try {
248
248
  Reflect.construct(ne, []);
249
- } catch (We) {
250
- $ = We;
249
+ } catch (ze) {
250
+ $ = ze;
251
251
  }
252
252
  Reflect.construct(T, [], ne);
253
253
  } else {
254
254
  try {
255
255
  ne.call();
256
- } catch (We) {
257
- $ = We;
256
+ } catch (ze) {
257
+ $ = ze;
258
258
  }
259
259
  T.call(ne.prototype);
260
260
  }
261
261
  } else {
262
262
  try {
263
263
  throw Error();
264
- } catch (We) {
265
- $ = We;
264
+ } catch (ze) {
265
+ $ = ze;
266
266
  }
267
267
  T();
268
268
  }
269
- } catch (We) {
270
- if (We && $ && typeof We.stack == "string") {
271
- for (var X = We.stack.split(`
269
+ } catch (ze) {
270
+ if (ze && $ && typeof ze.stack == "string") {
271
+ for (var X = ze.stack.split(`
272
272
  `), Oe = $.stack.split(`
273
273
  `), be = X.length - 1, he = Oe.length - 1; be >= 1 && he >= 0 && X[be] !== Oe[he]; )
274
274
  he--;
@@ -291,8 +291,8 @@ function ql() {
291
291
  var Ra = T ? T.displayName || T.name : "", ba = Ra ? K(Ra) : "";
292
292
  return typeof T == "function" && ie.set(T, ba), ba;
293
293
  }
294
- function me(T, z, J) {
295
- return ye(T, !1);
294
+ function se(T, z, J) {
295
+ return Ue(T, !1);
296
296
  }
297
297
  function ce(T) {
298
298
  var z = T.prototype;
@@ -302,7 +302,7 @@ function ql() {
302
302
  if (T == null)
303
303
  return "";
304
304
  if (typeof T == "function")
305
- return ye(T, ce(T));
305
+ return Ue(T, ce(T));
306
306
  if (typeof T == "string")
307
307
  return K(T);
308
308
  switch (T) {
@@ -314,7 +314,7 @@ function ql() {
314
314
  if (typeof T == "object")
315
315
  switch (T.$$typeof) {
316
316
  case r:
317
- return me(T.render);
317
+ return se(T.render);
318
318
  case o:
319
319
  return ke(T.type, z, J);
320
320
  case s: {
@@ -327,7 +327,7 @@ function ql() {
327
327
  }
328
328
  return "";
329
329
  }
330
- var Ue = Object.prototype.hasOwnProperty, Ie = {}, Ce = y.ReactDebugCurrentFrame;
330
+ var fe = Object.prototype.hasOwnProperty, He = {}, Ce = y.ReactDebugCurrentFrame;
331
331
  function Ge(T) {
332
332
  if (T) {
333
333
  var z = T._owner, J = ke(T.type, T._source, z ? z.type : null);
@@ -337,7 +337,7 @@ function ql() {
337
337
  }
338
338
  function ea(T, z, J, $, ue) {
339
339
  {
340
- var pe = Function.call.bind(Ue);
340
+ var pe = Function.call.bind(fe);
341
341
  for (var ne in T)
342
342
  if (pe(T, ne)) {
343
343
  var X = void 0;
@@ -350,7 +350,7 @@ function ql() {
350
350
  } catch (be) {
351
351
  X = be;
352
352
  }
353
- X && !(X instanceof Error) && (Ge(ue), _("%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).", $ || "React class", J, ne, typeof X), Ge(null)), X instanceof Error && !(X.message in Ie) && (Ie[X.message] = !0, Ge(ue), _("Failed %s type: %s", J, X.message), Ge(null));
353
+ X && !(X instanceof Error) && (Ge(ue), _("%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).", $ || "React class", J, ne, typeof X), Ge(null)), X instanceof Error && !(X.message in He) && (He[X.message] = !0, Ge(ue), _("Failed %s type: %s", J, X.message), Ge(null));
354
354
  }
355
355
  }
356
356
  }
@@ -358,7 +358,7 @@ function ql() {
358
358
  function ve(T) {
359
359
  return Me(T);
360
360
  }
361
- function He(T) {
361
+ function We(T) {
362
362
  {
363
363
  var z = typeof Symbol == "function" && Symbol.toStringTag, J = z && T[Symbol.toStringTag] || T.constructor.name || "Object";
364
364
  return J;
@@ -376,7 +376,7 @@ function ql() {
376
376
  }
377
377
  function xe(T) {
378
378
  if (aa(T))
379
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(T)), ta(T);
379
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", We(T)), ta(T);
380
380
  }
381
381
  var Re = y.ReactCurrentOwner, je = {
382
382
  key: !0,
@@ -385,7 +385,7 @@ function ql() {
385
385
  __source: !0
386
386
  }, oa, ga;
387
387
  function Ve(T) {
388
- if (Ue.call(T, "ref")) {
388
+ if (fe.call(T, "ref")) {
389
389
  var z = Object.getOwnPropertyDescriptor(T, "ref").get;
390
390
  if (z && z.isReactWarning)
391
391
  return !1;
@@ -393,7 +393,7 @@ function ql() {
393
393
  return T.ref !== void 0;
394
394
  }
395
395
  function Ye(T) {
396
- if (Ue.call(T, "key")) {
396
+ if (fe.call(T, "key")) {
397
397
  var z = Object.getOwnPropertyDescriptor(T, "key").get;
398
398
  if (z && z.isReactWarning)
399
399
  return !1;
@@ -459,7 +459,7 @@ function ql() {
459
459
  var pe, ne = {}, X = null, Oe = null;
460
460
  J !== void 0 && (xe(J), X = "" + J), Ye(z) && (xe(z.key), X = "" + z.key), Ve(z) && (Oe = z.ref, za(z, ue));
461
461
  for (pe in z)
462
- Ue.call(z, pe) && !je.hasOwnProperty(pe) && (ne[pe] = z[pe]);
462
+ fe.call(z, pe) && !je.hasOwnProperty(pe) && (ne[pe] = z[pe]);
463
463
  if (T && T.defaultProps) {
464
464
  var be = T.defaultProps;
465
465
  for (pe in be)
@@ -610,12 +610,12 @@ Check the top-level render call using <` + J + ">.");
610
610
  else
611
611
  Se(qe, T);
612
612
  }
613
- if (Ue.call(z, "key")) {
614
- var ba = A(T), We = Object.keys(z).filter(function(Al) {
613
+ if (fe.call(z, "key")) {
614
+ var ba = A(T), ze = Object.keys(z).filter(function(Al) {
615
615
  return Al !== "key";
616
- }), Xt = We.length > 0 ? "{key: someKey, " + We.join(": ..., ") + ": ...}" : "{key: someKey}";
616
+ }), Xt = ze.length > 0 ? "{key: someKey, " + ze.join(": ..., ") + ": ...}" : "{key: someKey}";
617
617
  if (!ia[ba + Xt]) {
618
- var Fl = We.length > 0 ? "{" + We.join(": ..., ") + ": ...}" : "{}";
618
+ var Fl = ze.length > 0 ? "{" + ze.join(": ..., ") + ": ...}" : "{}";
619
619
  _(`A props object containing a "key" prop is being spread into JSX:
620
620
  let props = %s;
621
621
  <%s {...props} />
@@ -642,7 +642,7 @@ function $l() {
642
642
  return Gi || (Gi = 1, process.env.NODE_ENV === "production" ? tt.exports = Kl() : tt.exports = ql()), tt.exports;
643
643
  }
644
644
  var Fe = $l();
645
- const In = qt(null), se = () => {
645
+ const In = qt(null), me = () => {
646
646
  const e = ci(In);
647
647
  if (!e)
648
648
  throw new Error("useApiContext must be used within ApiProvider");
@@ -901,8 +901,8 @@ function ar() {
901
901
  return this.$d.getTime();
902
902
  }, R.startOf = function(P, H) {
903
903
  var B = this, W = !!h.u(H) || H, M = h.p(P), S = function(ae, ie) {
904
- var _e = h.w(B.$u ? Date.UTC(B.$y, ie, ae) : new Date(B.$y, ie, ae), B);
905
- return W ? _e : _e.endOf(a);
904
+ var ye = h.w(B.$u ? Date.UTC(B.$y, ie, ae) : new Date(B.$y, ie, ae), B);
905
+ return W ? ye : ye.endOf(a);
906
906
  }, x = function(ae, ie) {
907
907
  return h.w(B.toDate()[ae].apply(B.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), B);
908
908
  }, L = this.$W, N = this.$M, Z = this.$D, q = "set" + (this.$u ? "UTC" : "");
@@ -957,17 +957,17 @@ function ar() {
957
957
  }, R.format = function(P) {
958
958
  var H = this, B = this.$locale();
959
959
  if (!this.isValid()) return B.invalidDate || c;
960
- var W = P || "YYYY-MM-DDTHH:mm:ssZ", M = h.z(this), S = this.$H, x = this.$m, L = this.$M, N = B.weekdays, Z = B.months, q = B.meridiem, Q = function(ie, _e, ye, me) {
961
- return ie && (ie[_e] || ie(H, W)) || ye[_e].slice(0, me);
960
+ var W = P || "YYYY-MM-DDTHH:mm:ssZ", M = h.z(this), S = this.$H, x = this.$m, L = this.$M, N = B.weekdays, Z = B.months, q = B.meridiem, Q = function(ie, ye, Ue, se) {
961
+ return ie && (ie[ye] || ie(H, W)) || Ue[ye].slice(0, se);
962
962
  }, K = function(ie) {
963
963
  return h.s(S % 12 || 12, ie, "0");
964
- }, ae = q || function(ie, _e, ye) {
965
- var me = ie < 12 ? "AM" : "PM";
966
- return ye ? me.toLowerCase() : me;
964
+ }, ae = q || function(ie, ye, Ue) {
965
+ var se = ie < 12 ? "AM" : "PM";
966
+ return Ue ? se.toLowerCase() : se;
967
967
  };
968
- return W.replace(y, (function(ie, _e) {
969
- return _e || (function(ye) {
970
- switch (ye) {
968
+ return W.replace(y, (function(ie, ye) {
969
+ return ye || (function(Ue) {
970
+ switch (Ue) {
971
971
  case "YY":
972
972
  return String(H.$y).slice(-2);
973
973
  case "YYYY":
@@ -2405,18 +2405,18 @@ function al() {
2405
2405
  ]);
2406
2406
  },
2407
2407
  _doProcessBlock: function(m, c) {
2408
- for (var f = this._hash.words, y = f[0], _ = f[1], U = f[2], C = f[3], v = f[4], D = f[5], E = f[6], G = f[7], O = y.high, k = y.low, h = _.high, F = _.low, A = U.high, w = U.low, R = C.high, P = C.low, H = v.high, B = v.low, W = D.high, M = D.low, S = E.high, x = E.low, L = G.high, N = G.low, Z = O, q = k, Q = h, K = F, ae = A, ie = w, _e = R, ye = P, me = H, ce = B, ke = W, Ue = M, Ie = S, Ce = x, Ge = L, ea = N, Me = 0; Me < 80; Me++) {
2409
- var ve, He, aa = s[Me];
2408
+ for (var f = this._hash.words, y = f[0], _ = f[1], U = f[2], C = f[3], v = f[4], D = f[5], E = f[6], G = f[7], O = y.high, k = y.low, h = _.high, F = _.low, A = U.high, w = U.low, R = C.high, P = C.low, H = v.high, B = v.low, W = D.high, M = D.low, S = E.high, x = E.low, L = G.high, N = G.low, Z = O, q = k, Q = h, K = F, ae = A, ie = w, ye = R, Ue = P, se = H, ce = B, ke = W, fe = M, He = S, Ce = x, Ge = L, ea = N, Me = 0; Me < 80; Me++) {
2409
+ var ve, We, aa = s[Me];
2410
2410
  if (Me < 16)
2411
- He = aa.high = m[c + Me * 2] | 0, ve = aa.low = m[c + Me * 2 + 1] | 0;
2411
+ We = aa.high = m[c + Me * 2] | 0, ve = aa.low = m[c + Me * 2 + 1] | 0;
2412
2412
  else {
2413
2413
  var ta = s[Me - 15], xe = ta.high, Re = ta.low, je = (xe >>> 1 | Re << 31) ^ (xe >>> 8 | Re << 24) ^ xe >>> 7, oa = (Re >>> 1 | xe << 31) ^ (Re >>> 8 | xe << 24) ^ (Re >>> 7 | xe << 25), ga = s[Me - 2], Ve = ga.high, Ye = ga.low, za = (Ve >>> 19 | Ye << 13) ^ (Ve << 3 | Ye >>> 29) ^ Ve >>> 6, Da = (Ye >>> 19 | Ve << 13) ^ (Ye << 3 | Ve >>> 29) ^ (Ye >>> 6 | Ve << 26), Ea = s[Me - 7], Ia = Ea.high, Va = Ea.low, da = s[Me - 16], ya = da.high, Ke = da.low;
2414
- ve = oa + Va, He = je + Ia + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Da, He = He + za + (ve >>> 0 < Da >>> 0 ? 1 : 0), ve = ve + Ke, He = He + ya + (ve >>> 0 < Ke >>> 0 ? 1 : 0), aa.high = He, aa.low = ve;
2414
+ ve = oa + Va, We = je + Ia + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Da, We = We + za + (ve >>> 0 < Da >>> 0 ? 1 : 0), ve = ve + Ke, We = We + ya + (ve >>> 0 < Ke >>> 0 ? 1 : 0), aa.high = We, aa.low = ve;
2415
2415
  }
2416
- var ca = me & ke ^ ~me & Ie, fa = ce & Ue ^ ~ce & Ce, Na = Z & Q ^ Z & ae ^ Q & ae, La = q & K ^ q & ie ^ K & ie, Ua = (Z >>> 28 | q << 4) ^ (Z << 30 | q >>> 2) ^ (Z << 25 | q >>> 7), Ga = (q >>> 28 | Z << 4) ^ (q << 30 | Z >>> 2) ^ (q << 25 | Z >>> 7), Ma = (me >>> 14 | ce << 18) ^ (me >>> 18 | ce << 14) ^ (me << 23 | ce >>> 9), Se = (ce >>> 14 | me << 18) ^ (ce >>> 18 | me << 14) ^ (ce << 23 | me >>> 9), V = o[Me], De = V.high, ia = V.low, Pe = ea + Se, na = Ge + Ma + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ia, na = na + De + (Pe >>> 0 < ia >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + He + (Pe >>> 0 < ve >>> 0 ? 1 : 0), et = Ga + La, Yt = Ua + Na + (et >>> 0 < Ga >>> 0 ? 1 : 0);
2417
- Ge = Ie, ea = Ce, Ie = ke, Ce = Ue, ke = me, Ue = ce, ce = ye + Pe | 0, me = _e + na + (ce >>> 0 < ye >>> 0 ? 1 : 0) | 0, _e = ae, ye = ie, ae = Q, ie = K, Q = Z, K = q, q = Pe + et | 0, Z = na + Yt + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
2416
+ var ca = se & ke ^ ~se & He, fa = ce & fe ^ ~ce & Ce, Na = Z & Q ^ Z & ae ^ Q & ae, La = q & K ^ q & ie ^ K & ie, Ua = (Z >>> 28 | q << 4) ^ (Z << 30 | q >>> 2) ^ (Z << 25 | q >>> 7), Ga = (q >>> 28 | Z << 4) ^ (q << 30 | Z >>> 2) ^ (q << 25 | Z >>> 7), Ma = (se >>> 14 | ce << 18) ^ (se >>> 18 | ce << 14) ^ (se << 23 | ce >>> 9), Se = (ce >>> 14 | se << 18) ^ (ce >>> 18 | se << 14) ^ (ce << 23 | se >>> 9), V = o[Me], De = V.high, ia = V.low, Pe = ea + Se, na = Ge + Ma + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ia, na = na + De + (Pe >>> 0 < ia >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + We + (Pe >>> 0 < ve >>> 0 ? 1 : 0), et = Ga + La, Yt = Ua + Na + (et >>> 0 < Ga >>> 0 ? 1 : 0);
2417
+ Ge = He, ea = Ce, He = ke, Ce = fe, ke = se, fe = ce, ce = Ue + Pe | 0, se = ye + na + (ce >>> 0 < Ue >>> 0 ? 1 : 0) | 0, ye = ae, Ue = ie, ae = Q, ie = K, Q = Z, K = q, q = Pe + et | 0, Z = na + Yt + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
2418
2418
  }
2419
- k = y.low = k + q, y.high = O + Z + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + K, _.high = h + Q + (F >>> 0 < K >>> 0 ? 1 : 0), w = U.low = w + ie, U.high = A + ae + (w >>> 0 < ie >>> 0 ? 1 : 0), P = C.low = P + ye, C.high = R + _e + (P >>> 0 < ye >>> 0 ? 1 : 0), B = v.low = B + ce, v.high = H + me + (B >>> 0 < ce >>> 0 ? 1 : 0), M = D.low = M + Ue, D.high = W + ke + (M >>> 0 < Ue >>> 0 ? 1 : 0), x = E.low = x + Ce, E.high = S + Ie + (x >>> 0 < Ce >>> 0 ? 1 : 0), N = G.low = N + ea, G.high = L + Ge + (N >>> 0 < ea >>> 0 ? 1 : 0);
2419
+ k = y.low = k + q, y.high = O + Z + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + K, _.high = h + Q + (F >>> 0 < K >>> 0 ? 1 : 0), w = U.low = w + ie, U.high = A + ae + (w >>> 0 < ie >>> 0 ? 1 : 0), P = C.low = P + Ue, C.high = R + ye + (P >>> 0 < Ue >>> 0 ? 1 : 0), B = v.low = B + ce, v.high = H + se + (B >>> 0 < ce >>> 0 ? 1 : 0), M = D.low = M + fe, D.high = W + ke + (M >>> 0 < fe >>> 0 ? 1 : 0), x = E.low = x + Ce, E.high = S + He + (x >>> 0 < Ce >>> 0 ? 1 : 0), N = G.low = N + ea, G.high = L + Ge + (N >>> 0 < ea >>> 0 ? 1 : 0);
2420
2420
  },
2421
2421
  _doFinalize: function() {
2422
2422
  var m = this._data, c = m.words, f = this._nDataBytes * 8, y = m.sigBytes * 8;
@@ -6078,7 +6078,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
6078
6078
  }), g = t.toString(Ca.enc.Base64), b = Ca.enc.Base64.stringify(p.ciphertext);
6079
6079
  return g + ":" + b;
6080
6080
  }, oe = () => {
6081
- const { client: e, formDataClient: n } = se(), t = I(
6081
+ const { client: e, formDataClient: n } = me(), t = I(
6082
6082
  async (M) => {
6083
6083
  const { mac_address: S = "", app_version: x = "", anydesk_id: L = "" } = M, { data: N } = await e.post("/cash-register/login", {
6084
6084
  mac_address: S,
@@ -6364,7 +6364,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
6364
6364
  updateUserAvatarApi: W
6365
6365
  };
6366
6366
  }, Tm = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
6367
- const { userCurrencyExchangeApi: t } = oe(), { getToken: l } = se(), { enabled: p, ...g } = n, d = !!l?.() && (p ? p.every((r) => r) : !0);
6367
+ const { userCurrencyExchangeApi: t } = oe(), { getToken: l } = me(), { enabled: p, ...g } = n, d = !!l?.() && (p ? p.every((r) => r) : !0);
6368
6368
  return Wn({
6369
6369
  queries: [
6370
6370
  {
@@ -6382,7 +6382,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
6382
6382
  trigger: n = [],
6383
6383
  enabled: t = !0
6384
6384
  } = {}) => {
6385
- const { getToken: l } = se(), p = l?.(), { userInfoApi: g } = oe();
6385
+ const { getToken: l } = me(), p = l?.(), { userInfoApi: g } = oe();
6386
6386
  return Wn({
6387
6387
  queries: [
6388
6388
  {
@@ -6423,7 +6423,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
6423
6423
  r
6424
6424
  ];
6425
6425
  }, bi = () => {
6426
- const { client: e, lng: n } = se(), t = Qe(n || "tw"), l = I(
6426
+ const { client: e, lng: n } = me(), t = Qe(n || "tw"), l = I(
6427
6427
  async (b) => {
6428
6428
  const {
6429
6429
  gameUid: d = "",
@@ -7377,7 +7377,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7377
7377
  isInGameBox: l = !1,
7378
7378
  currentGamePlatform: p = ""
7379
7379
  }) => {
7380
- const { store: g, lng: b } = se(), { isReady: d, setAsReady: r, isPending: a, setAsPending: i } = Jn(), o = Qe(b), { mutateAsync: s } = Ho();
7380
+ const { store: g, lng: b } = me(), { isReady: d, setAsReady: r, isPending: a, setAsPending: i } = Jn(), o = Qe(b), { mutateAsync: s } = Ho();
7381
7381
  return !e || !n || !t ? { handleTransferInGame: () => {
7382
7382
  } } : { handleTransferInGame: async () => {
7383
7383
  console.log("執行遊戲內轉帳"), l && await s({
@@ -7417,7 +7417,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7417
7417
  });
7418
7418
  } };
7419
7419
  }, Ha = () => {
7420
- const { client: e } = se(), n = I(async () => {
7420
+ const { client: e } = me(), n = I(async () => {
7421
7421
  const { data: d } = await e.get("/carousels");
7422
7422
  return d;
7423
7423
  }, [e]), t = I(async () => await e.get("/marquees"), [e]), l = I(async () => await e.get("/notification"), [e]), p = I(
@@ -7509,7 +7509,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7509
7509
  ...e
7510
7510
  });
7511
7511
  }, Oo = ({ paramsData: e, options: n } = {}) => {
7512
- const { userRebateApi: t } = oe(), { getToken: l } = se();
7512
+ const { userRebateApi: t } = oe(), { getToken: l } = me();
7513
7513
  return l?.(), j({
7514
7514
  queryKey: ["userRebate", e],
7515
7515
  queryFn: async () => t({ paramsData: e }),
@@ -7532,7 +7532,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7532
7532
  ...e
7533
7533
  });
7534
7534
  }, Dm = ({ options: e } = {}) => {
7535
- const { currency: n } = se(), { pointTransferApi: t } = oe();
7535
+ const { currency: n } = me(), { pointTransferApi: t } = oe();
7536
7536
  return le({
7537
7537
  mutationKey: ["pointTransfer"],
7538
7538
  mutationFn: async (l) => t({
@@ -7542,7 +7542,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7542
7542
  ...e
7543
7543
  });
7544
7544
  }, Em = ({ options: e } = {}) => {
7545
- const { currency: n } = se(), { checkUserWagerApi: t } = oe();
7545
+ const { currency: n } = me(), { checkUserWagerApi: t } = oe();
7546
7546
  return j({
7547
7547
  queryKey: ["checkUserWager"],
7548
7548
  queryFn: async () => t(),
@@ -7588,7 +7588,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7588
7588
  ...e
7589
7589
  });
7590
7590
  }, Lm = ({ options: e } = {}) => {
7591
- const { currency: n } = se(), { memberTransferApi: t } = oe();
7591
+ const { currency: n } = me(), { memberTransferApi: t } = oe();
7592
7592
  return le({
7593
7593
  mutationKey: ["memberTransfer"],
7594
7594
  mutationFn: async (l) => t({ ...l, currency: n }),
@@ -7728,7 +7728,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7728
7728
  userRebate: a,
7729
7729
  userBindCard: i
7730
7730
  };
7731
- }, ze = {
7731
+ }, Ie = {
7732
7732
  DEPOSIT: "deposit",
7733
7733
  TRANS_CODE: "transCode",
7734
7734
  ERROR: "error",
@@ -7756,7 +7756,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7756
7756
  enableNotification: g = !1,
7757
7757
  disabledLineAutoRegister: b = !1
7758
7758
  }) => {
7759
- const { store: d, lng: r } = se(), a = fi(), { isReady: i, setAsReady: o, isPending: s, setAsPending: u } = Jn(), m = Qe(r), c = ee(!1), f = ee(n), y = re(l, "uid", null);
7759
+ const { store: d, lng: r } = me(), a = fi(), { isReady: i, setAsReady: o, isPending: s, setAsPending: u } = Jn(), m = Qe(r), c = ee(!1), f = ee(n), y = re(l, "uid", null);
7760
7760
  re(l, "testFunction", 0);
7761
7761
  const _ = new URLSearchParams(window.location.search), U = re(
7762
7762
  p,
@@ -7854,56 +7854,56 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7854
7854
  memo: re(h, "memo", null),
7855
7855
  amount: re(h, "amount", null),
7856
7856
  limitAmount: re(h, "limit_amount", null)
7857
- }, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ae = _.get("mac") || mi.get("machine_mac_address") || "", ie = re(h, "data.line_id", null), _e = re(h, "data.line_name", null), ye = re(h, "member_info_uid", null);
7857
+ }, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ae = _.get("mac") || mi.get("machine_mac_address") || "", ie = re(h, "data.line_id", null), ye = re(h, "data.line_name", null), Ue = re(h, "member_info_uid", null);
7858
7858
  switch (L) {
7859
- case ze.DEPOSIT:
7859
+ case Ie.DEPOSIT:
7860
7860
  Z && (D(), w?.(N));
7861
7861
  break;
7862
- case ze.TRANS_CODE:
7862
+ case Ie.TRANS_CODE:
7863
7863
  R?.(N);
7864
7864
  break;
7865
- case ze.ERROR:
7865
+ case Ie.ERROR:
7866
7866
  if (Z) {
7867
- const me = re(h, "open_game_modal", 0) === 1;
7867
+ const se = re(h, "open_game_modal", 0) === 1;
7868
7868
  F(q, {
7869
- notificationType: me ? "gamingNotice" : void 0
7869
+ notificationType: se ? "gamingNotice" : void 0
7870
7870
  }), P?.(N);
7871
7871
  }
7872
7872
  break;
7873
- case ze.UPDATE_MEMBER:
7873
+ case Ie.UPDATE_MEMBER:
7874
7874
  y && (a.invalidateQueries({
7875
7875
  queryKey: ["getMemberInfo"]
7876
7876
  }), H?.(N));
7877
7877
  break;
7878
- case ze.MAINTAIN_NOTICE:
7878
+ case Ie.MAINTAIN_NOTICE:
7879
7879
  F(q, {
7880
7880
  notificationType: "maintainNotice"
7881
7881
  }), B?.(N);
7882
7882
  break;
7883
- case ze.MAINTAIN_NOTICE_MEMBER:
7883
+ case Ie.MAINTAIN_NOTICE_MEMBER:
7884
7884
  Z && (F(q), W?.(N), setTimeout(() => {
7885
7885
  window.location.reload();
7886
7886
  }, 5e4));
7887
7887
  break;
7888
- case ze.RELOAD:
7888
+ case Ie.RELOAD:
7889
7889
  window.location.reload();
7890
7890
  break;
7891
- case ze.TRANSFER_IN_GAME:
7892
- case ze.CHECK_REQUEST:
7893
- if (Z && U) {
7894
- const { request_id: me, amount: ce, platform: ke, status: Ue } = re(
7891
+ case Ie.TRANSFER_IN_GAME:
7892
+ case Ie.CHECK_REQUEST:
7893
+ if (console.log(Z, U, "isForMember之前"), Z && U) {
7894
+ const { request_id: se, amount: ce, platform: ke, status: fe } = re(
7895
7895
  N,
7896
7896
  "data",
7897
7897
  {}
7898
- ), Ie = localStorage.getItem(
7898
+ ), He = localStorage.getItem(
7899
7899
  "transfer_in_game_request_id"
7900
7900
  );
7901
- if (s) {
7902
- localStorage.setItem("transfer_in_game_request_id", me);
7901
+ if (console.log(se, ce, ke, fe, "request_id"), s) {
7902
+ localStorage.setItem("transfer_in_game_request_id", se);
7903
7903
  return;
7904
- } else if (Ie && Ie === me) {
7905
- if (Ue === "rollback") {
7906
- D();
7904
+ } else if (console.log(He, se, "currentRequestId"), He && He === se) {
7905
+ if (fe === "rollback") {
7906
+ console.log("rollback"), D();
7907
7907
  return;
7908
7908
  }
7909
7909
  localStorage.removeItem("transfer_in_game_request_id"), o(), d.dispatch({
@@ -7918,27 +7918,27 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7918
7918
  M?.(N);
7919
7919
  }
7920
7920
  break;
7921
- case ze.CASH_REGISTER_LIMIT:
7921
+ case Ie.CASH_REGISTER_LIMIT:
7922
7922
  F(q, {
7923
7923
  notificationType: "cashRegisterLimit",
7924
7924
  amount: Q,
7925
7925
  limitAmount: K
7926
7926
  }), S?.(N);
7927
7927
  break;
7928
- case ze.UPDATE_ONLY_ONE_MEMBER:
7928
+ case Ie.UPDATE_ONLY_ONE_MEMBER:
7929
7929
  Z && (a.invalidateQueries({
7930
7930
  queryKey: ["getMemberInfo"]
7931
7931
  }), H?.(N));
7932
7932
  break;
7933
- case ze.GAME_MAINTAIN:
7933
+ case Ie.GAME_MAINTAIN:
7934
7934
  F(q, {
7935
7935
  notificationType: "gameMaintain"
7936
7936
  });
7937
7937
  break;
7938
- case ze.LINE_LOGIN:
7939
- ye === ae && C({
7938
+ case Ie.LINE_LOGIN:
7939
+ Ue === ae && C({
7940
7940
  line_id: ie,
7941
- line_name: _e
7941
+ line_name: ye
7942
7942
  });
7943
7943
  break;
7944
7944
  default:
@@ -7955,14 +7955,16 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7955
7955
  s,
7956
7956
  D,
7957
7957
  U,
7958
- o
7958
+ o,
7959
+ _,
7960
+ C
7959
7961
  ]), ge(() => () => c.current = !0, []), ge(() => {
7960
7962
  if (U) {
7961
7963
  const w = localStorage.getItem(
7962
7964
  "transfer_in_game_request_id"
7963
7965
  );
7964
7966
  w && y && s && G({
7965
- type: ze.CHECK_REQUEST,
7967
+ type: Ie.CHECK_REQUEST,
7966
7968
  request_id: w,
7967
7969
  member_info_uid: y
7968
7970
  });
@@ -7974,7 +7976,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
7974
7976
  // WebSocket 連線狀態
7975
7977
  };
7976
7978
  }, Ya = () => {
7977
- const { client: e } = se(), n = I(
7979
+ const { client: e } = me(), n = I(
7978
7980
  async ({ paramsData: b } = {}) => {
7979
7981
  const { uid: d } = b || {};
7980
7982
  return await e.get(`/event/list${d ? `/${d}` : ""}`);
@@ -8017,7 +8019,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
8017
8019
  settleEventApi: g
8018
8020
  };
8019
8021
  }, Jo = ({ paramsData: e, options: n } = {}) => {
8020
- const { store: t, lng: l, data2URL: p } = se(), { eventListApi: g } = Ya(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", d = Qe(l);
8022
+ const { store: t, lng: l, data2URL: p } = me(), { eventListApi: g } = Ya(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", d = Qe(l);
8021
8023
  return j({
8022
8024
  queryKey: ["eventList", e],
8023
8025
  queryFn: () => g({ paramsData: e }),
@@ -8180,7 +8182,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
8180
8182
  checkEventStatusQuery: l
8181
8183
  };
8182
8184
  }, Km = ({ skipPreload: e = !1 } = {}) => {
8183
- const { lng: n, data2URL: t } = se(), { commonCarouselApi: l } = Ha(), p = Qe(n);
8185
+ const { lng: n, data2URL: t } = me(), { commonCarouselApi: l } = Ha(), p = Qe(n);
8184
8186
  return j({
8185
8187
  queryKey: ["getCarouselList", e],
8186
8188
  queryFn: async () => {
@@ -8208,7 +8210,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
8208
8210
  })
8209
8211
  });
8210
8212
  }, qm = () => {
8211
- const { lng: e } = se(), { commonMarqueeApi: n } = Ha(), t = Qe(e);
8213
+ const { lng: e } = me(), { commonMarqueeApi: n } = Ha(), t = Qe(e);
8212
8214
  return j({
8213
8215
  queryKey: ["getMarqueeList"],
8214
8216
  queryFn: async () => {
@@ -8572,7 +8574,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8572
8574
  if (t >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
8573
8575
  if (t ? (L.current = e - t, N.current = t) : (L.current = e, N.current = n), !W.current) {
8574
8576
  if (y || E) return;
8575
- P.current && (me.current(null, Se), x.current && x.current.active()), je();
8577
+ P.current && (se.current(null, Se), x.current && x.current.active()), je();
8576
8578
  }
8577
8579
  }, [e, n, t, y, E]);
8578
8580
  let Z = ee(_);
@@ -8587,17 +8589,17 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8587
8589
  ge(() => {
8588
8590
  ie.current = d;
8589
8591
  }, [d]);
8590
- let _e = ee(r);
8592
+ let ye = ee(r);
8591
8593
  ge(() => {
8592
- _e.current = r;
8594
+ ye.current = r;
8593
8595
  }, [r]);
8594
- let ye = ee(a);
8596
+ let Ue = ee(a);
8595
8597
  ge(() => {
8596
- ye.current = a;
8598
+ Ue.current = a;
8597
8599
  }, [a]);
8598
- let me = ee(i);
8600
+ let se = ee(i);
8599
8601
  ge(() => {
8600
- me.current = i;
8602
+ se.current = i;
8601
8603
  }, [i]);
8602
8604
  let ce = ee(o);
8603
8605
  ge(() => {
@@ -8607,28 +8609,28 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8607
8609
  ge(() => {
8608
8610
  ke.current = s;
8609
8611
  }, [s]);
8610
- let Ue = Oa(() => {
8612
+ let fe = Oa(() => {
8611
8613
  let V = (De, ia) => ce.current(De, ia);
8612
8614
  return u > 0 ? ps(V, u) : m > 0 ? ri(V, m) : V;
8613
- }, [m, u]), Ie = ee();
8615
+ }, [m, u]), He = ee();
8614
8616
  ge(() => {
8615
- U && v && (Ie.current = ri(() => {
8617
+ U && v && (He.current = ri(() => {
8616
8618
  x.current.active();
8617
8619
  }, v));
8618
8620
  }, [U, v]);
8619
8621
  let Ce = () => {
8620
8622
  S.current !== null && (Xe.clearTimeout(S.current), S.current = null);
8621
8623
  }, Ge = (V, De = !0) => {
8622
- Ce(), S.current = Xe.setTimeout(He, V || L.current), De && (h.current = Te());
8624
+ Ce(), S.current = Xe.setTimeout(We, V || L.current), De && (h.current = Te());
8623
8625
  }, ea = (V) => {
8624
- !H.current && !P.current && (_e.current(V, Se), ie.current({ type: "active", prompted: !0 }, Se)), R.current = 0, w.current = Te(), H.current = !0, Ge(N.current, !1);
8626
+ !H.current && !P.current && (ye.current(V, Se), ie.current({ type: "active", prompted: !0 }, Se)), R.current = 0, w.current = Te(), H.current = !0, Ge(N.current, !1);
8625
8627
  }, Me = () => {
8626
- Ce(), P.current || (ye.current(null, Se), ie.current({ type: "idle" }, Se)), P.current = !0, k.current = Te(), Z.current ? Re() : H.current && (w.current = 0, H.current = !1);
8628
+ Ce(), P.current || (Ue.current(null, Se), ie.current({ type: "idle" }, Se)), P.current = !0, k.current = Te(), Z.current ? Re() : H.current && (w.current = 0, H.current = !1);
8627
8629
  }, ve = (V) => {
8628
- Ce(), (P.current || H.current) && (me.current(V, Se), ie.current({ type: "active", prompted: !1 }, Se)), H.current = !1, w.current = 0, P.current = !1, F.current += Te() - k.current, A.current += Te() - k.current, xe(), Ge();
8629
- }, He = (V) => {
8630
+ Ce(), (P.current || H.current) && (se.current(V, Se), ie.current({ type: "active", prompted: !1 }, Se)), H.current = !1, w.current = 0, P.current = !1, F.current += Te() - k.current, A.current += Te() - k.current, xe(), Ge();
8631
+ }, We = (V) => {
8630
8632
  if (!P.current) {
8631
- Ue.cancel && Ue.cancel();
8633
+ fe.cancel && fe.cancel();
8632
8634
  let De = Te() - h.current;
8633
8635
  if (!(L.current + N.current < De) && N.current > 0 && !H.current) {
8634
8636
  x.current ? x.current.prompt() : ea(V);
@@ -8639,17 +8641,17 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8639
8641
  }
8640
8642
  x.current ? x.current.active() : ve(V);
8641
8643
  }, aa = (V) => {
8642
- if (!f && !h.current && (h.current = Te(), me.current(null, Se)), Ue(V, Se), H.current) return;
8644
+ if (!f && !h.current && (h.current = Te(), se.current(null, Se)), fe(V, Se), H.current) return;
8643
8645
  if (Ce(), !P.current && q.current.includes(V.type)) {
8644
- He(V);
8646
+ We(V);
8645
8647
  return;
8646
8648
  }
8647
8649
  let De = Te() - h.current;
8648
8650
  if (P.current && !_ || !P.current && De >= L.current) {
8649
- He(V);
8651
+ We(V);
8650
8652
  return;
8651
8653
  }
8652
- B.current = !1, R.current = 0, w.current = 0, Ge(), U && v && Ie.current();
8654
+ B.current = !1, R.current = 0, w.current = 0, Ge(), U && v && He.current();
8653
8655
  }, ta = ee(aa);
8654
8656
  ge(() => {
8655
8657
  let V = M.current;
@@ -8678,10 +8680,10 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8678
8680
  if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
8679
8681
  g && is(g);
8680
8682
  let V = () => {
8681
- x.current && x.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
8683
+ x.current && x.current.close(), fe.cancel && fe.cancel(), Ce(), Re(!0);
8682
8684
  };
8683
8685
  return pa && window.addEventListener("beforeunload", V), () => {
8684
- pa && window.removeEventListener("beforeunload", V), x.current && x.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
8686
+ pa && window.removeEventListener("beforeunload", V), x.current && x.current.close(), fe.cancel && fe.cancel(), Ce(), Re(!0);
8685
8687
  };
8686
8688
  }, []), ge(() => {
8687
8689
  x.current && x.current.close(), U ? x.current = new ss({ channelName: C, leaderElection: D, onPrompt: () => {
@@ -8693,7 +8695,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8693
8695
  }, onMessage: (V) => {
8694
8696
  ke.current(V, Se);
8695
8697
  }, start: je, reset: oa, activate: ga, pause: Ve, resume: Ye }) : x.current = null;
8696
- }, [U, C, D, _e, ye, me, ke, je, oa, Ve, Ye]), ge(() => {
8698
+ }, [U, C, D, ye, Ue, se, ke, je, oa, Ve, Ye]), ge(() => {
8697
8699
  W.current || (Ce(), Re(!0)), !(y || E) && (f ? je() : xe());
8698
8700
  }, [y, f, E, W]), ge(() => {
8699
8701
  if (!W.current) {
@@ -8707,11 +8709,11 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8707
8709
  let Se = { message: za, start: je, reset: oa, activate: ga, pause: Ve, resume: Ye, isIdle: Da, isPrompted: Ea, isLeader: Ia, isLastActiveTab: Va, getTabId: da, getRemainingTime: ya, getElapsedTime: Ke, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: Na, getIdleTime: La, getTotalIdleTime: Ua, getActiveTime: Ga, getTotalActiveTime: Ma, setOnPresenceChange: (V) => {
8708
8710
  d = V, ie.current = V;
8709
8711
  }, setOnPrompt: (V) => {
8710
- r = V, _e.current = V;
8712
+ r = V, ye.current = V;
8711
8713
  }, setOnIdle: (V) => {
8712
- a = V, ye.current = V;
8714
+ a = V, Ue.current = V;
8713
8715
  }, setOnActive: (V) => {
8714
- i = V, me.current = V;
8716
+ i = V, se.current = V;
8715
8717
  }, setOnAction: (V) => {
8716
8718
  o = V, ce.current = V;
8717
8719
  }, setOnMessage: (V) => {
@@ -8728,7 +8730,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
8728
8730
  timeout: l,
8729
8731
  throttle: 500
8730
8732
  }), cs = ({ options: e } = {}) => {
8731
- const { commonInboxApi: n } = Ha(), { getToken: t, lng: l } = se(), p = t?.(), g = Qe(l);
8733
+ const { commonInboxApi: n } = Ha(), { getToken: t, lng: l } = me(), p = t?.(), g = Qe(l);
8732
8734
  return j({
8733
8735
  queryKey: ["inboxList"],
8734
8736
  queryFn: async () => await n(),
@@ -8767,7 +8769,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
8767
8769
  readInboxMutation: t
8768
8770
  };
8769
8771
  }, rl = () => {
8770
- const { client: e } = se();
8772
+ const { client: e } = me();
8771
8773
  return {
8772
8774
  newsListApi: I(
8773
8775
  async ({ uid: t, params: l } = {}) => await e.get(`/news${t ? `/${t}` : ""}`, {
@@ -8823,7 +8825,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
8823
8825
  ...e.other
8824
8826
  }
8825
8827
  ], Ym = ({ options: e, formData: n } = {}) => {
8826
- const { lng: t } = se(), { newsListApi: l } = rl(), p = Qe(t);
8828
+ const { lng: t } = me(), { newsListApi: l } = rl(), p = Qe(t);
8827
8829
  return j({
8828
8830
  queryKey: ["newsList"],
8829
8831
  queryFn: () => {
@@ -8849,7 +8851,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
8849
8851
  ...e
8850
8852
  });
8851
8853
  }, Xm = ({ options: e, formData: n } = {}) => {
8852
- const { lng: t } = se(), { newsListApi: l } = rl(), p = Qe(t);
8854
+ const { lng: t } = me(), { newsListApi: l } = rl(), p = Qe(t);
8853
8855
  return j({
8854
8856
  queryKey: ["newsList"],
8855
8857
  queryFn: () => {
@@ -8868,7 +8870,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
8868
8870
  ...e
8869
8871
  });
8870
8872
  }, Ae = () => {
8871
- const { client: e } = se(), n = I(async () => await e.get("/payment/list"), [e]), t = I(
8873
+ const { client: e } = me(), n = I(async () => await e.get("/payment/list"), [e]), t = I(
8872
8874
  async ({ paramsData: m }) => await e.get("/thirdPartyPayment/list", {
8873
8875
  params: { ...m }
8874
8876
  }),
@@ -9323,7 +9325,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
9323
9325
  ...n
9324
9326
  });
9325
9327
  }, Cl = () => {
9326
- const { client: e } = se(), n = I(async () => await e.get("/rebate"), [e]), t = I(async () => await e.post("/withdraw/rebate"), [e]);
9328
+ const { client: e } = me(), n = I(async () => await e.get("/rebate"), [e]), t = I(async () => await e.post("/withdraw/rebate"), [e]);
9327
9329
  return {
9328
9330
  currentRebateApi: n,
9329
9331
  receiveRebateApi: t
@@ -9355,7 +9357,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
9355
9357
  receiveRebate: t
9356
9358
  };
9357
9359
  }, Xa = () => {
9358
- const { client: e } = se(), n = I(
9360
+ const { client: e } = me(), n = I(
9359
9361
  async ({ uid: b, params: d } = {}) => await e.get(`/memberRewards${b ? `/${b}` : ""}`, {
9360
9362
  params: d
9361
9363
  }),
@@ -9467,7 +9469,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
9467
9469
  historyRewardsListQuery: g
9468
9470
  };
9469
9471
  }, vl = () => {
9470
- const { client: e } = se(), n = I(
9472
+ const { client: e } = me(), n = I(
9471
9473
  async (l = {}) => {
9472
9474
  const {
9473
9475
  startTime: p = "2025-12-30 00:00:00",
@@ -9502,7 +9504,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
9502
9504
  redeemTreasureApi: t
9503
9505
  };
9504
9506
  }, gu = ({ paramsData: e, options: n } = {}) => {
9505
- const { client: t, lng: l } = se(), p = Qe(l || "tw"), { treasureListApi: g } = vl();
9507
+ const { client: t, lng: l } = me(), p = Qe(l || "tw"), { treasureListApi: g } = vl();
9506
9508
  return j({
9507
9509
  queryKey: ["treasureList", e],
9508
9510
  queryFn: () => g(e),
@@ -9537,13 +9539,13 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
9537
9539
  ...e
9538
9540
  });
9539
9541
  }, hl = () => {
9540
- const { client: e } = se(), n = I(async () => await e.get("/vip/list"), [e]), t = I(async () => await e.get("/vip/check"), [e]);
9542
+ const { client: e } = me(), n = I(async () => await e.get("/vip/list"), [e]), t = I(async () => await e.get("/vip/check"), [e]);
9541
9543
  return {
9542
9544
  vipListApi: n,
9543
9545
  vipInfoApi: t
9544
9546
  };
9545
9547
  }, cu = ({ options: e } = {}) => {
9546
- const { store: n } = se(), t = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: l } = hl();
9548
+ const { store: n } = me(), t = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: l } = hl();
9547
9549
  return j({
9548
9550
  queryKey: ["vipInfo"],
9549
9551
  queryFn: async () => l(),
@@ -9558,7 +9560,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
9558
9560
  ...e
9559
9561
  });
9560
9562
  }, Is = ({ options: e } = {}) => {
9561
- const { store: n } = se(), t = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: l } = hl();
9563
+ const { store: n } = me(), t = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: l } = hl();
9562
9564
  return j({
9563
9565
  queryKey: ["vipList"],
9564
9566
  queryFn: async () => {
@@ -9618,7 +9620,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
9618
9620
  return "En";
9619
9621
  }
9620
9622
  }, ot = "game-icon-ds88", _u = ({ gameData: e = {} } = {}) => {
9621
- const { lng: n } = se(), t = An(n), {
9623
+ const { lng: n } = me(), t = An(n), {
9622
9624
  gameCode: l,
9623
9625
  // 遊戲代碼
9624
9626
  gameUid: p,
@@ -9882,7 +9884,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
9882
9884
  },
9883
9885
  user: { favorite: [] }
9884
9886
  }, am = ({ enabled: e = !0 } = {}) => {
9885
- const { getToken: n } = se(), { userFavoriteGameApi: t, userGameListApi: l } = oe(), { data: p, isLoading: g, error: b, refetch: d } = j({
9887
+ const { getToken: n } = me(), { userFavoriteGameApi: t, userGameListApi: l } = oe(), { data: p, isLoading: g, error: b, refetch: d } = j({
9886
9888
  queryKey: ["gamesInfo"],
9887
9889
  queryFn: async () => {
9888
9890
  let r = {}, a = {};
@@ -36489,7 +36491,7 @@ function Cu({
36489
36491
  }
36490
36492
  const vu = ({ onFunction: e = () => {
36491
36493
  }, buttonProps: n = {} } = {}) => {
36492
- const { lineConfig: t } = se(), l = ee(!1), p = re(t, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), d = g.get("trans_code"), r = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: s } = il({
36494
+ const { lineConfig: t } = me(), l = ee(!1), p = re(t, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), d = g.get("trans_code"), r = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: s } = il({
36493
36495
  options: {
36494
36496
  onSuccess: (m) => {
36495
36497
  e(m);
@@ -36943,7 +36945,7 @@ var ka;
36943
36945
  if (!d)
36944
36946
  throw new Error("Assertion error");
36945
36947
  }
36946
- const g = class fe {
36948
+ const g = class _e {
36947
36949
  /*-- Constructor (low level) and fields --*/
36948
36950
  // Creates a new QR Code segment with the given attributes and data.
36949
36951
  // The character count (numChars) must agree with the mode and the bit buffer length,
@@ -36961,36 +36963,36 @@ var ka;
36961
36963
  let a = [];
36962
36964
  for (const i of r)
36963
36965
  t(i, 8, a);
36964
- return new fe(fe.Mode.BYTE, r.length, a);
36966
+ return new _e(_e.Mode.BYTE, r.length, a);
36965
36967
  }
36966
36968
  // Returns a segment representing the given string of decimal digits encoded in numeric mode.
36967
36969
  static makeNumeric(r) {
36968
- if (!fe.isNumeric(r))
36970
+ if (!_e.isNumeric(r))
36969
36971
  throw new RangeError("String contains non-numeric characters");
36970
36972
  let a = [];
36971
36973
  for (let i = 0; i < r.length; ) {
36972
36974
  const o = Math.min(r.length - i, 3);
36973
36975
  t(parseInt(r.substring(i, i + o), 10), o * 3 + 1, a), i += o;
36974
36976
  }
36975
- return new fe(fe.Mode.NUMERIC, r.length, a);
36977
+ return new _e(_e.Mode.NUMERIC, r.length, a);
36976
36978
  }
36977
36979
  // Returns a segment representing the given text string encoded in alphanumeric mode.
36978
36980
  // The characters allowed are: 0 to 9, A to Z (uppercase only), space,
36979
36981
  // dollar, percent, asterisk, plus, hyphen, period, slash, colon.
36980
36982
  static makeAlphanumeric(r) {
36981
- if (!fe.isAlphanumeric(r))
36983
+ if (!_e.isAlphanumeric(r))
36982
36984
  throw new RangeError("String contains unencodable characters in alphanumeric mode");
36983
36985
  let a = [], i;
36984
36986
  for (i = 0; i + 2 <= r.length; i += 2) {
36985
- let o = fe.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i)) * 45;
36986
- o += fe.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i + 1)), t(o, 11, a);
36987
+ let o = _e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i)) * 45;
36988
+ o += _e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i + 1)), t(o, 11, a);
36987
36989
  }
36988
- return i < r.length && t(fe.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i)), 6, a), new fe(fe.Mode.ALPHANUMERIC, r.length, a);
36990
+ return i < r.length && t(_e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i)), 6, a), new _e(_e.Mode.ALPHANUMERIC, r.length, a);
36989
36991
  }
36990
36992
  // Returns a new mutable list of zero or more segments to represent the given Unicode text string.
36991
36993
  // The result may use various segment modes and switch modes to optimize the length of the bit stream.
36992
36994
  static makeSegments(r) {
36993
- return r == "" ? [] : fe.isNumeric(r) ? [fe.makeNumeric(r)] : fe.isAlphanumeric(r) ? [fe.makeAlphanumeric(r)] : [fe.makeBytes(fe.toUtf8ByteArray(r))];
36995
+ return r == "" ? [] : _e.isNumeric(r) ? [_e.makeNumeric(r)] : _e.isAlphanumeric(r) ? [_e.makeAlphanumeric(r)] : [_e.makeBytes(_e.toUtf8ByteArray(r))];
36994
36996
  }
36995
36997
  // Returns a segment representing an Extended Channel Interpretation
36996
36998
  // (ECI) designator with the given assignment value.
@@ -37006,18 +37008,18 @@ var ka;
37006
37008
  t(6, 3, a), t(r, 21, a);
37007
37009
  else
37008
37010
  throw new RangeError("ECI assignment value out of range");
37009
- return new fe(fe.Mode.ECI, 0, a);
37011
+ return new _e(_e.Mode.ECI, 0, a);
37010
37012
  }
37011
37013
  // Tests whether the given string can be encoded as a segment in numeric mode.
37012
37014
  // A string is encodable iff each character is in the range 0 to 9.
37013
37015
  static isNumeric(r) {
37014
- return fe.NUMERIC_REGEX.test(r);
37016
+ return _e.NUMERIC_REGEX.test(r);
37015
37017
  }
37016
37018
  // Tests whether the given string can be encoded as a segment in alphanumeric mode.
37017
37019
  // A string is encodable iff each character is in the following set: 0 to 9, A to Z
37018
37020
  // (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
37019
37021
  static isAlphanumeric(r) {
37020
- return fe.ALPHANUMERIC_REGEX.test(r);
37022
+ return _e.ALPHANUMERIC_REGEX.test(r);
37021
37023
  }
37022
37024
  /*-- Methods --*/
37023
37025
  // Returns a new copy of the data bits of this segment.
@@ -37395,7 +37397,7 @@ const dm = {
37395
37397
  expired: "Kode QR telah kedaluwarsa"
37396
37398
  }
37397
37399
  }, ku = ({ forcedShow: e = !1, isVisible: n, setIsVisible: t } = {}) => {
37398
- const { lng: l, getToken: p, lineConfig: g } = se(), [b, d] = oi(300), [r, a] = oi(!1), i = ee(null), o = re(g, "liffId", ""), s = Qe(l), u = p?.(), c = new URLSearchParams(window.location.search).get("mac") || mi.get("machine_mac_address") || "", { data: f, isFetching: y } = zo({
37400
+ const { lng: l, getToken: p, lineConfig: g } = me(), [b, d] = oi(300), [r, a] = oi(!1), i = ee(null), o = re(g, "liffId", ""), s = Qe(l), u = p?.(), c = new URLSearchParams(window.location.search).get("mac") || mi.get("machine_mac_address") || "", { data: f, isFetching: y } = zo({
37399
37401
  formData: {
37400
37402
  mac_address: c
37401
37403
  },
@@ -37524,7 +37526,7 @@ export {
37524
37526
  Xs as processGameInfo,
37525
37527
  bu as processPlatformData,
37526
37528
  Nm as useAbandonPoint,
37527
- se as useApiContext,
37529
+ me as useApiContext,
37528
37530
  Hm as useAvatarList,
37529
37531
  Tm as useBalanceGetter,
37530
37532
  Sm as useBet,