@obb871001/api-integration-sdk 1.0.327 → 1.0.329
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.js +154 -145
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -217,10 +217,10 @@ function ql() {
|
|
|
217
217
|
}
|
|
218
218
|
var ae = !1, ie;
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
ie = new
|
|
220
|
+
var ye = typeof WeakMap == "function" ? WeakMap : Map;
|
|
221
|
+
ie = new ye();
|
|
222
222
|
}
|
|
223
|
-
function
|
|
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 (
|
|
250
|
-
$ =
|
|
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 (
|
|
257
|
-
$ =
|
|
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 (
|
|
265
|
-
$ =
|
|
264
|
+
} catch (ze) {
|
|
265
|
+
$ = ze;
|
|
266
266
|
}
|
|
267
267
|
T();
|
|
268
268
|
}
|
|
269
|
-
} catch (
|
|
270
|
-
if (
|
|
271
|
-
for (var X =
|
|
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
|
|
295
|
-
return
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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.",
|
|
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 (
|
|
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 (
|
|
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
|
-
|
|
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 (
|
|
614
|
-
var ba = A(T),
|
|
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 =
|
|
616
|
+
}), Xt = ze.length > 0 ? "{key: someKey, " + ze.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!ia[ba + Xt]) {
|
|
618
|
-
var Fl =
|
|
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),
|
|
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
|
|
905
|
-
return W ?
|
|
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,
|
|
961
|
-
return ie && (ie[
|
|
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,
|
|
965
|
-
var
|
|
966
|
-
return
|
|
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,
|
|
969
|
-
return
|
|
970
|
-
switch (
|
|
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,
|
|
2409
|
-
var ve,
|
|
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
|
-
|
|
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,
|
|
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 =
|
|
2417
|
-
Ge =
|
|
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 +
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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
|
-
},
|
|
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 } =
|
|
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,63 @@ 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),
|
|
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
|
|
7859
|
+
case Ie.DEPOSIT:
|
|
7860
7860
|
Z && (D(), w?.(N));
|
|
7861
7861
|
break;
|
|
7862
|
-
case
|
|
7862
|
+
case Ie.TRANS_CODE:
|
|
7863
7863
|
R?.(N);
|
|
7864
7864
|
break;
|
|
7865
|
-
case
|
|
7865
|
+
case Ie.ERROR:
|
|
7866
7866
|
if (Z) {
|
|
7867
|
-
const
|
|
7867
|
+
const se = re(h, "open_game_modal", 0) === 1;
|
|
7868
7868
|
F(q, {
|
|
7869
|
-
notificationType:
|
|
7869
|
+
notificationType: se ? "gamingNotice" : void 0
|
|
7870
7870
|
}), P?.(N);
|
|
7871
7871
|
}
|
|
7872
7872
|
break;
|
|
7873
|
-
case
|
|
7873
|
+
case Ie.UPDATE_MEMBER:
|
|
7874
7874
|
y && (a.invalidateQueries({
|
|
7875
7875
|
queryKey: ["getMemberInfo"]
|
|
7876
7876
|
}), H?.(N));
|
|
7877
7877
|
break;
|
|
7878
|
-
case
|
|
7878
|
+
case Ie.MAINTAIN_NOTICE:
|
|
7879
7879
|
F(q, {
|
|
7880
7880
|
notificationType: "maintainNotice"
|
|
7881
7881
|
}), B?.(N);
|
|
7882
7882
|
break;
|
|
7883
|
-
case
|
|
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
|
|
7888
|
+
case Ie.RELOAD:
|
|
7889
7889
|
window.location.reload();
|
|
7890
7890
|
break;
|
|
7891
|
-
case
|
|
7892
|
-
case
|
|
7893
|
-
if (Z && U) {
|
|
7894
|
-
const { request_id:
|
|
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
|
-
),
|
|
7898
|
+
), He = localStorage.getItem(
|
|
7899
7899
|
"transfer_in_game_request_id"
|
|
7900
7900
|
);
|
|
7901
|
-
if (
|
|
7902
|
-
|
|
7901
|
+
if (console.log(
|
|
7902
|
+
se,
|
|
7903
|
+
ce,
|
|
7904
|
+
ke,
|
|
7905
|
+
fe,
|
|
7906
|
+
"request_id",
|
|
7907
|
+
s
|
|
7908
|
+
), s) {
|
|
7909
|
+
localStorage.setItem("transfer_in_game_request_id", se);
|
|
7903
7910
|
return;
|
|
7904
|
-
} else if (
|
|
7905
|
-
if (
|
|
7906
|
-
D();
|
|
7911
|
+
} else if (console.log(He, se, "currentRequestId"), He && He === se) {
|
|
7912
|
+
if (fe === "rollback") {
|
|
7913
|
+
console.log("rollback"), D();
|
|
7907
7914
|
return;
|
|
7908
7915
|
}
|
|
7909
7916
|
localStorage.removeItem("transfer_in_game_request_id"), o(), d.dispatch({
|
|
@@ -7918,27 +7925,27 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7918
7925
|
M?.(N);
|
|
7919
7926
|
}
|
|
7920
7927
|
break;
|
|
7921
|
-
case
|
|
7928
|
+
case Ie.CASH_REGISTER_LIMIT:
|
|
7922
7929
|
F(q, {
|
|
7923
7930
|
notificationType: "cashRegisterLimit",
|
|
7924
7931
|
amount: Q,
|
|
7925
7932
|
limitAmount: K
|
|
7926
7933
|
}), S?.(N);
|
|
7927
7934
|
break;
|
|
7928
|
-
case
|
|
7935
|
+
case Ie.UPDATE_ONLY_ONE_MEMBER:
|
|
7929
7936
|
Z && (a.invalidateQueries({
|
|
7930
7937
|
queryKey: ["getMemberInfo"]
|
|
7931
7938
|
}), H?.(N));
|
|
7932
7939
|
break;
|
|
7933
|
-
case
|
|
7940
|
+
case Ie.GAME_MAINTAIN:
|
|
7934
7941
|
F(q, {
|
|
7935
7942
|
notificationType: "gameMaintain"
|
|
7936
7943
|
});
|
|
7937
7944
|
break;
|
|
7938
|
-
case
|
|
7939
|
-
|
|
7945
|
+
case Ie.LINE_LOGIN:
|
|
7946
|
+
Ue === ae && C({
|
|
7940
7947
|
line_id: ie,
|
|
7941
|
-
line_name:
|
|
7948
|
+
line_name: ye
|
|
7942
7949
|
});
|
|
7943
7950
|
break;
|
|
7944
7951
|
default:
|
|
@@ -7955,14 +7962,16 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7955
7962
|
s,
|
|
7956
7963
|
D,
|
|
7957
7964
|
U,
|
|
7958
|
-
o
|
|
7965
|
+
o,
|
|
7966
|
+
_,
|
|
7967
|
+
C
|
|
7959
7968
|
]), ge(() => () => c.current = !0, []), ge(() => {
|
|
7960
7969
|
if (U) {
|
|
7961
7970
|
const w = localStorage.getItem(
|
|
7962
7971
|
"transfer_in_game_request_id"
|
|
7963
7972
|
);
|
|
7964
7973
|
w && y && s && G({
|
|
7965
|
-
type:
|
|
7974
|
+
type: Ie.CHECK_REQUEST,
|
|
7966
7975
|
request_id: w,
|
|
7967
7976
|
member_info_uid: y
|
|
7968
7977
|
});
|
|
@@ -7974,7 +7983,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7974
7983
|
// WebSocket 連線狀態
|
|
7975
7984
|
};
|
|
7976
7985
|
}, Ya = () => {
|
|
7977
|
-
const { client: e } =
|
|
7986
|
+
const { client: e } = me(), n = I(
|
|
7978
7987
|
async ({ paramsData: b } = {}) => {
|
|
7979
7988
|
const { uid: d } = b || {};
|
|
7980
7989
|
return await e.get(`/event/list${d ? `/${d}` : ""}`);
|
|
@@ -8017,7 +8026,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8017
8026
|
settleEventApi: g
|
|
8018
8027
|
};
|
|
8019
8028
|
}, Jo = ({ paramsData: e, options: n } = {}) => {
|
|
8020
|
-
const { store: t, lng: l, data2URL: p } =
|
|
8029
|
+
const { store: t, lng: l, data2URL: p } = me(), { eventListApi: g } = Ya(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", d = Qe(l);
|
|
8021
8030
|
return j({
|
|
8022
8031
|
queryKey: ["eventList", e],
|
|
8023
8032
|
queryFn: () => g({ paramsData: e }),
|
|
@@ -8180,7 +8189,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8180
8189
|
checkEventStatusQuery: l
|
|
8181
8190
|
};
|
|
8182
8191
|
}, Km = ({ skipPreload: e = !1 } = {}) => {
|
|
8183
|
-
const { lng: n, data2URL: t } =
|
|
8192
|
+
const { lng: n, data2URL: t } = me(), { commonCarouselApi: l } = Ha(), p = Qe(n);
|
|
8184
8193
|
return j({
|
|
8185
8194
|
queryKey: ["getCarouselList", e],
|
|
8186
8195
|
queryFn: async () => {
|
|
@@ -8208,7 +8217,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8208
8217
|
})
|
|
8209
8218
|
});
|
|
8210
8219
|
}, qm = () => {
|
|
8211
|
-
const { lng: e } =
|
|
8220
|
+
const { lng: e } = me(), { commonMarqueeApi: n } = Ha(), t = Qe(e);
|
|
8212
8221
|
return j({
|
|
8213
8222
|
queryKey: ["getMarqueeList"],
|
|
8214
8223
|
queryFn: async () => {
|
|
@@ -8572,7 +8581,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8572
8581
|
if (t >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
8573
8582
|
if (t ? (L.current = e - t, N.current = t) : (L.current = e, N.current = n), !W.current) {
|
|
8574
8583
|
if (y || E) return;
|
|
8575
|
-
P.current && (
|
|
8584
|
+
P.current && (se.current(null, Se), x.current && x.current.active()), je();
|
|
8576
8585
|
}
|
|
8577
8586
|
}, [e, n, t, y, E]);
|
|
8578
8587
|
let Z = ee(_);
|
|
@@ -8587,17 +8596,17 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8587
8596
|
ge(() => {
|
|
8588
8597
|
ie.current = d;
|
|
8589
8598
|
}, [d]);
|
|
8590
|
-
let
|
|
8599
|
+
let ye = ee(r);
|
|
8591
8600
|
ge(() => {
|
|
8592
|
-
|
|
8601
|
+
ye.current = r;
|
|
8593
8602
|
}, [r]);
|
|
8594
|
-
let
|
|
8603
|
+
let Ue = ee(a);
|
|
8595
8604
|
ge(() => {
|
|
8596
|
-
|
|
8605
|
+
Ue.current = a;
|
|
8597
8606
|
}, [a]);
|
|
8598
|
-
let
|
|
8607
|
+
let se = ee(i);
|
|
8599
8608
|
ge(() => {
|
|
8600
|
-
|
|
8609
|
+
se.current = i;
|
|
8601
8610
|
}, [i]);
|
|
8602
8611
|
let ce = ee(o);
|
|
8603
8612
|
ge(() => {
|
|
@@ -8607,28 +8616,28 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8607
8616
|
ge(() => {
|
|
8608
8617
|
ke.current = s;
|
|
8609
8618
|
}, [s]);
|
|
8610
|
-
let
|
|
8619
|
+
let fe = Oa(() => {
|
|
8611
8620
|
let V = (De, ia) => ce.current(De, ia);
|
|
8612
8621
|
return u > 0 ? ps(V, u) : m > 0 ? ri(V, m) : V;
|
|
8613
|
-
}, [m, u]),
|
|
8622
|
+
}, [m, u]), He = ee();
|
|
8614
8623
|
ge(() => {
|
|
8615
|
-
U && v && (
|
|
8624
|
+
U && v && (He.current = ri(() => {
|
|
8616
8625
|
x.current.active();
|
|
8617
8626
|
}, v));
|
|
8618
8627
|
}, [U, v]);
|
|
8619
8628
|
let Ce = () => {
|
|
8620
8629
|
S.current !== null && (Xe.clearTimeout(S.current), S.current = null);
|
|
8621
8630
|
}, Ge = (V, De = !0) => {
|
|
8622
|
-
Ce(), S.current = Xe.setTimeout(
|
|
8631
|
+
Ce(), S.current = Xe.setTimeout(We, V || L.current), De && (h.current = Te());
|
|
8623
8632
|
}, ea = (V) => {
|
|
8624
|
-
!H.current && !P.current && (
|
|
8633
|
+
!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
8634
|
}, Me = () => {
|
|
8626
|
-
Ce(), P.current || (
|
|
8635
|
+
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
8636
|
}, ve = (V) => {
|
|
8628
|
-
Ce(), (P.current || H.current) && (
|
|
8629
|
-
},
|
|
8637
|
+
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();
|
|
8638
|
+
}, We = (V) => {
|
|
8630
8639
|
if (!P.current) {
|
|
8631
|
-
|
|
8640
|
+
fe.cancel && fe.cancel();
|
|
8632
8641
|
let De = Te() - h.current;
|
|
8633
8642
|
if (!(L.current + N.current < De) && N.current > 0 && !H.current) {
|
|
8634
8643
|
x.current ? x.current.prompt() : ea(V);
|
|
@@ -8639,17 +8648,17 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8639
8648
|
}
|
|
8640
8649
|
x.current ? x.current.active() : ve(V);
|
|
8641
8650
|
}, aa = (V) => {
|
|
8642
|
-
if (!f && !h.current && (h.current = Te(),
|
|
8651
|
+
if (!f && !h.current && (h.current = Te(), se.current(null, Se)), fe(V, Se), H.current) return;
|
|
8643
8652
|
if (Ce(), !P.current && q.current.includes(V.type)) {
|
|
8644
|
-
|
|
8653
|
+
We(V);
|
|
8645
8654
|
return;
|
|
8646
8655
|
}
|
|
8647
8656
|
let De = Te() - h.current;
|
|
8648
8657
|
if (P.current && !_ || !P.current && De >= L.current) {
|
|
8649
|
-
|
|
8658
|
+
We(V);
|
|
8650
8659
|
return;
|
|
8651
8660
|
}
|
|
8652
|
-
B.current = !1, R.current = 0, w.current = 0, Ge(), U && v &&
|
|
8661
|
+
B.current = !1, R.current = 0, w.current = 0, Ge(), U && v && He.current();
|
|
8653
8662
|
}, ta = ee(aa);
|
|
8654
8663
|
ge(() => {
|
|
8655
8664
|
let V = M.current;
|
|
@@ -8678,10 +8687,10 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8678
8687
|
if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
8679
8688
|
g && is(g);
|
|
8680
8689
|
let V = () => {
|
|
8681
|
-
x.current && x.current.close(),
|
|
8690
|
+
x.current && x.current.close(), fe.cancel && fe.cancel(), Ce(), Re(!0);
|
|
8682
8691
|
};
|
|
8683
8692
|
return pa && window.addEventListener("beforeunload", V), () => {
|
|
8684
|
-
pa && window.removeEventListener("beforeunload", V), x.current && x.current.close(),
|
|
8693
|
+
pa && window.removeEventListener("beforeunload", V), x.current && x.current.close(), fe.cancel && fe.cancel(), Ce(), Re(!0);
|
|
8685
8694
|
};
|
|
8686
8695
|
}, []), ge(() => {
|
|
8687
8696
|
x.current && x.current.close(), U ? x.current = new ss({ channelName: C, leaderElection: D, onPrompt: () => {
|
|
@@ -8693,7 +8702,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8693
8702
|
}, onMessage: (V) => {
|
|
8694
8703
|
ke.current(V, Se);
|
|
8695
8704
|
}, start: je, reset: oa, activate: ga, pause: Ve, resume: Ye }) : x.current = null;
|
|
8696
|
-
}, [U, C, D,
|
|
8705
|
+
}, [U, C, D, ye, Ue, se, ke, je, oa, Ve, Ye]), ge(() => {
|
|
8697
8706
|
W.current || (Ce(), Re(!0)), !(y || E) && (f ? je() : xe());
|
|
8698
8707
|
}, [y, f, E, W]), ge(() => {
|
|
8699
8708
|
if (!W.current) {
|
|
@@ -8707,11 +8716,11 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8707
8716
|
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
8717
|
d = V, ie.current = V;
|
|
8709
8718
|
}, setOnPrompt: (V) => {
|
|
8710
|
-
r = V,
|
|
8719
|
+
r = V, ye.current = V;
|
|
8711
8720
|
}, setOnIdle: (V) => {
|
|
8712
|
-
a = V,
|
|
8721
|
+
a = V, Ue.current = V;
|
|
8713
8722
|
}, setOnActive: (V) => {
|
|
8714
|
-
i = V,
|
|
8723
|
+
i = V, se.current = V;
|
|
8715
8724
|
}, setOnAction: (V) => {
|
|
8716
8725
|
o = V, ce.current = V;
|
|
8717
8726
|
}, setOnMessage: (V) => {
|
|
@@ -8728,7 +8737,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8728
8737
|
timeout: l,
|
|
8729
8738
|
throttle: 500
|
|
8730
8739
|
}), cs = ({ options: e } = {}) => {
|
|
8731
|
-
const { commonInboxApi: n } = Ha(), { getToken: t, lng: l } =
|
|
8740
|
+
const { commonInboxApi: n } = Ha(), { getToken: t, lng: l } = me(), p = t?.(), g = Qe(l);
|
|
8732
8741
|
return j({
|
|
8733
8742
|
queryKey: ["inboxList"],
|
|
8734
8743
|
queryFn: async () => await n(),
|
|
@@ -8767,7 +8776,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8767
8776
|
readInboxMutation: t
|
|
8768
8777
|
};
|
|
8769
8778
|
}, rl = () => {
|
|
8770
|
-
const { client: e } =
|
|
8779
|
+
const { client: e } = me();
|
|
8771
8780
|
return {
|
|
8772
8781
|
newsListApi: I(
|
|
8773
8782
|
async ({ uid: t, params: l } = {}) => await e.get(`/news${t ? `/${t}` : ""}`, {
|
|
@@ -8823,7 +8832,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8823
8832
|
...e.other
|
|
8824
8833
|
}
|
|
8825
8834
|
], Ym = ({ options: e, formData: n } = {}) => {
|
|
8826
|
-
const { lng: t } =
|
|
8835
|
+
const { lng: t } = me(), { newsListApi: l } = rl(), p = Qe(t);
|
|
8827
8836
|
return j({
|
|
8828
8837
|
queryKey: ["newsList"],
|
|
8829
8838
|
queryFn: () => {
|
|
@@ -8849,7 +8858,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8849
8858
|
...e
|
|
8850
8859
|
});
|
|
8851
8860
|
}, Xm = ({ options: e, formData: n } = {}) => {
|
|
8852
|
-
const { lng: t } =
|
|
8861
|
+
const { lng: t } = me(), { newsListApi: l } = rl(), p = Qe(t);
|
|
8853
8862
|
return j({
|
|
8854
8863
|
queryKey: ["newsList"],
|
|
8855
8864
|
queryFn: () => {
|
|
@@ -8868,7 +8877,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8868
8877
|
...e
|
|
8869
8878
|
});
|
|
8870
8879
|
}, Ae = () => {
|
|
8871
|
-
const { client: e } =
|
|
8880
|
+
const { client: e } = me(), n = I(async () => await e.get("/payment/list"), [e]), t = I(
|
|
8872
8881
|
async ({ paramsData: m }) => await e.get("/thirdPartyPayment/list", {
|
|
8873
8882
|
params: { ...m }
|
|
8874
8883
|
}),
|
|
@@ -9323,7 +9332,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9323
9332
|
...n
|
|
9324
9333
|
});
|
|
9325
9334
|
}, Cl = () => {
|
|
9326
|
-
const { client: e } =
|
|
9335
|
+
const { client: e } = me(), n = I(async () => await e.get("/rebate"), [e]), t = I(async () => await e.post("/withdraw/rebate"), [e]);
|
|
9327
9336
|
return {
|
|
9328
9337
|
currentRebateApi: n,
|
|
9329
9338
|
receiveRebateApi: t
|
|
@@ -9355,7 +9364,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9355
9364
|
receiveRebate: t
|
|
9356
9365
|
};
|
|
9357
9366
|
}, Xa = () => {
|
|
9358
|
-
const { client: e } =
|
|
9367
|
+
const { client: e } = me(), n = I(
|
|
9359
9368
|
async ({ uid: b, params: d } = {}) => await e.get(`/memberRewards${b ? `/${b}` : ""}`, {
|
|
9360
9369
|
params: d
|
|
9361
9370
|
}),
|
|
@@ -9467,7 +9476,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9467
9476
|
historyRewardsListQuery: g
|
|
9468
9477
|
};
|
|
9469
9478
|
}, vl = () => {
|
|
9470
|
-
const { client: e } =
|
|
9479
|
+
const { client: e } = me(), n = I(
|
|
9471
9480
|
async (l = {}) => {
|
|
9472
9481
|
const {
|
|
9473
9482
|
startTime: p = "2025-12-30 00:00:00",
|
|
@@ -9502,7 +9511,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9502
9511
|
redeemTreasureApi: t
|
|
9503
9512
|
};
|
|
9504
9513
|
}, gu = ({ paramsData: e, options: n } = {}) => {
|
|
9505
|
-
const { client: t, lng: l } =
|
|
9514
|
+
const { client: t, lng: l } = me(), p = Qe(l || "tw"), { treasureListApi: g } = vl();
|
|
9506
9515
|
return j({
|
|
9507
9516
|
queryKey: ["treasureList", e],
|
|
9508
9517
|
queryFn: () => g(e),
|
|
@@ -9537,13 +9546,13 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9537
9546
|
...e
|
|
9538
9547
|
});
|
|
9539
9548
|
}, hl = () => {
|
|
9540
|
-
const { client: e } =
|
|
9549
|
+
const { client: e } = me(), n = I(async () => await e.get("/vip/list"), [e]), t = I(async () => await e.get("/vip/check"), [e]);
|
|
9541
9550
|
return {
|
|
9542
9551
|
vipListApi: n,
|
|
9543
9552
|
vipInfoApi: t
|
|
9544
9553
|
};
|
|
9545
9554
|
}, cu = ({ options: e } = {}) => {
|
|
9546
|
-
const { store: n } =
|
|
9555
|
+
const { store: n } = me(), t = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: l } = hl();
|
|
9547
9556
|
return j({
|
|
9548
9557
|
queryKey: ["vipInfo"],
|
|
9549
9558
|
queryFn: async () => l(),
|
|
@@ -9558,7 +9567,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9558
9567
|
...e
|
|
9559
9568
|
});
|
|
9560
9569
|
}, Is = ({ options: e } = {}) => {
|
|
9561
|
-
const { store: n } =
|
|
9570
|
+
const { store: n } = me(), t = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: l } = hl();
|
|
9562
9571
|
return j({
|
|
9563
9572
|
queryKey: ["vipList"],
|
|
9564
9573
|
queryFn: async () => {
|
|
@@ -9618,7 +9627,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9618
9627
|
return "En";
|
|
9619
9628
|
}
|
|
9620
9629
|
}, ot = "game-icon-ds88", _u = ({ gameData: e = {} } = {}) => {
|
|
9621
|
-
const { lng: n } =
|
|
9630
|
+
const { lng: n } = me(), t = An(n), {
|
|
9622
9631
|
gameCode: l,
|
|
9623
9632
|
// 遊戲代碼
|
|
9624
9633
|
gameUid: p,
|
|
@@ -9882,7 +9891,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9882
9891
|
},
|
|
9883
9892
|
user: { favorite: [] }
|
|
9884
9893
|
}, am = ({ enabled: e = !0 } = {}) => {
|
|
9885
|
-
const { getToken: n } =
|
|
9894
|
+
const { getToken: n } = me(), { userFavoriteGameApi: t, userGameListApi: l } = oe(), { data: p, isLoading: g, error: b, refetch: d } = j({
|
|
9886
9895
|
queryKey: ["gamesInfo"],
|
|
9887
9896
|
queryFn: async () => {
|
|
9888
9897
|
let r = {}, a = {};
|
|
@@ -36489,7 +36498,7 @@ function Cu({
|
|
|
36489
36498
|
}
|
|
36490
36499
|
const vu = ({ onFunction: e = () => {
|
|
36491
36500
|
}, buttonProps: n = {} } = {}) => {
|
|
36492
|
-
const { lineConfig: t } =
|
|
36501
|
+
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
36502
|
options: {
|
|
36494
36503
|
onSuccess: (m) => {
|
|
36495
36504
|
e(m);
|
|
@@ -36943,7 +36952,7 @@ var ka;
|
|
|
36943
36952
|
if (!d)
|
|
36944
36953
|
throw new Error("Assertion error");
|
|
36945
36954
|
}
|
|
36946
|
-
const g = class
|
|
36955
|
+
const g = class _e {
|
|
36947
36956
|
/*-- Constructor (low level) and fields --*/
|
|
36948
36957
|
// Creates a new QR Code segment with the given attributes and data.
|
|
36949
36958
|
// The character count (numChars) must agree with the mode and the bit buffer length,
|
|
@@ -36961,36 +36970,36 @@ var ka;
|
|
|
36961
36970
|
let a = [];
|
|
36962
36971
|
for (const i of r)
|
|
36963
36972
|
t(i, 8, a);
|
|
36964
|
-
return new
|
|
36973
|
+
return new _e(_e.Mode.BYTE, r.length, a);
|
|
36965
36974
|
}
|
|
36966
36975
|
// Returns a segment representing the given string of decimal digits encoded in numeric mode.
|
|
36967
36976
|
static makeNumeric(r) {
|
|
36968
|
-
if (!
|
|
36977
|
+
if (!_e.isNumeric(r))
|
|
36969
36978
|
throw new RangeError("String contains non-numeric characters");
|
|
36970
36979
|
let a = [];
|
|
36971
36980
|
for (let i = 0; i < r.length; ) {
|
|
36972
36981
|
const o = Math.min(r.length - i, 3);
|
|
36973
36982
|
t(parseInt(r.substring(i, i + o), 10), o * 3 + 1, a), i += o;
|
|
36974
36983
|
}
|
|
36975
|
-
return new
|
|
36984
|
+
return new _e(_e.Mode.NUMERIC, r.length, a);
|
|
36976
36985
|
}
|
|
36977
36986
|
// Returns a segment representing the given text string encoded in alphanumeric mode.
|
|
36978
36987
|
// The characters allowed are: 0 to 9, A to Z (uppercase only), space,
|
|
36979
36988
|
// dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
36980
36989
|
static makeAlphanumeric(r) {
|
|
36981
|
-
if (!
|
|
36990
|
+
if (!_e.isAlphanumeric(r))
|
|
36982
36991
|
throw new RangeError("String contains unencodable characters in alphanumeric mode");
|
|
36983
36992
|
let a = [], i;
|
|
36984
36993
|
for (i = 0; i + 2 <= r.length; i += 2) {
|
|
36985
|
-
let o =
|
|
36986
|
-
o +=
|
|
36994
|
+
let o = _e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i)) * 45;
|
|
36995
|
+
o += _e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i + 1)), t(o, 11, a);
|
|
36987
36996
|
}
|
|
36988
|
-
return i < r.length && t(
|
|
36997
|
+
return i < r.length && t(_e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(i)), 6, a), new _e(_e.Mode.ALPHANUMERIC, r.length, a);
|
|
36989
36998
|
}
|
|
36990
36999
|
// Returns a new mutable list of zero or more segments to represent the given Unicode text string.
|
|
36991
37000
|
// The result may use various segment modes and switch modes to optimize the length of the bit stream.
|
|
36992
37001
|
static makeSegments(r) {
|
|
36993
|
-
return r == "" ? [] :
|
|
37002
|
+
return r == "" ? [] : _e.isNumeric(r) ? [_e.makeNumeric(r)] : _e.isAlphanumeric(r) ? [_e.makeAlphanumeric(r)] : [_e.makeBytes(_e.toUtf8ByteArray(r))];
|
|
36994
37003
|
}
|
|
36995
37004
|
// Returns a segment representing an Extended Channel Interpretation
|
|
36996
37005
|
// (ECI) designator with the given assignment value.
|
|
@@ -37006,18 +37015,18 @@ var ka;
|
|
|
37006
37015
|
t(6, 3, a), t(r, 21, a);
|
|
37007
37016
|
else
|
|
37008
37017
|
throw new RangeError("ECI assignment value out of range");
|
|
37009
|
-
return new
|
|
37018
|
+
return new _e(_e.Mode.ECI, 0, a);
|
|
37010
37019
|
}
|
|
37011
37020
|
// Tests whether the given string can be encoded as a segment in numeric mode.
|
|
37012
37021
|
// A string is encodable iff each character is in the range 0 to 9.
|
|
37013
37022
|
static isNumeric(r) {
|
|
37014
|
-
return
|
|
37023
|
+
return _e.NUMERIC_REGEX.test(r);
|
|
37015
37024
|
}
|
|
37016
37025
|
// Tests whether the given string can be encoded as a segment in alphanumeric mode.
|
|
37017
37026
|
// A string is encodable iff each character is in the following set: 0 to 9, A to Z
|
|
37018
37027
|
// (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
37019
37028
|
static isAlphanumeric(r) {
|
|
37020
|
-
return
|
|
37029
|
+
return _e.ALPHANUMERIC_REGEX.test(r);
|
|
37021
37030
|
}
|
|
37022
37031
|
/*-- Methods --*/
|
|
37023
37032
|
// Returns a new copy of the data bits of this segment.
|
|
@@ -37395,7 +37404,7 @@ const dm = {
|
|
|
37395
37404
|
expired: "Kode QR telah kedaluwarsa"
|
|
37396
37405
|
}
|
|
37397
37406
|
}, ku = ({ forcedShow: e = !1, isVisible: n, setIsVisible: t } = {}) => {
|
|
37398
|
-
const { lng: l, getToken: p, lineConfig: g } =
|
|
37407
|
+
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
37408
|
formData: {
|
|
37400
37409
|
mac_address: c
|
|
37401
37410
|
},
|
|
@@ -37524,7 +37533,7 @@ export {
|
|
|
37524
37533
|
Xs as processGameInfo,
|
|
37525
37534
|
bu as processPlatformData,
|
|
37526
37535
|
Nm as useAbandonPoint,
|
|
37527
|
-
|
|
37536
|
+
me as useApiContext,
|
|
37528
37537
|
Hm as useAvatarList,
|
|
37529
37538
|
Tm as useBalanceGetter,
|
|
37530
37539
|
Sm as useBet,
|