@obb871001/api-integration-sdk 1.0.356 → 1.0.358
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 +60 -53
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import de, { createContext as Qt, useContext as _i, useState as mi, useMemo as Oa, useCallback as z, useRef as te, useEffect as pe } from "react";
|
|
2
2
|
import { useQueries as zn, useQuery as j, useQueryClient as Wa, useMutation as ee, QueryClient as Bl, QueryClientProvider as Hl } from "@tanstack/react-query";
|
|
3
3
|
import Wl from "axios";
|
|
4
|
-
import { get as Y, find as Ie, isEmpty as Ee, entries as In, forEach as zl, map as
|
|
4
|
+
import { get as Y, find as Ie, isEmpty as Ee, entries as In, forEach as zl, map as He, isArray as la, toLower as Ei, omit as Il, replace as it, includes as Vl, isObject as jt, flatMap as Yt, values as Jl, keys as Ni } from "lodash";
|
|
5
5
|
import Zl from "react-dom";
|
|
6
6
|
var ti = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function yi(e) {
|
|
@@ -246,29 +246,29 @@ function $l() {
|
|
|
246
246
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
247
247
|
try {
|
|
248
248
|
Reflect.construct(re, []);
|
|
249
|
-
} catch (
|
|
250
|
-
$ =
|
|
249
|
+
} catch (ze) {
|
|
250
|
+
$ = ze;
|
|
251
251
|
}
|
|
252
252
|
Reflect.construct(T, [], re);
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
re.call();
|
|
256
|
-
} catch (
|
|
257
|
-
$ =
|
|
256
|
+
} catch (ze) {
|
|
257
|
+
$ = ze;
|
|
258
258
|
}
|
|
259
259
|
T.call(re.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 ae =
|
|
269
|
+
} catch (ze) {
|
|
270
|
+
if (ze && $ && typeof ze.stack == "string") {
|
|
271
|
+
for (var ae = ze.stack.split(`
|
|
272
272
|
`), Oe = $.stack.split(`
|
|
273
273
|
`), be = ae.length - 1, he = Oe.length - 1; be >= 1 && he >= 0 && ae[be] !== Oe[he]; )
|
|
274
274
|
he--;
|
|
@@ -358,7 +358,7 @@ function $l() {
|
|
|
358
358
|
function ve(T) {
|
|
359
359
|
return Me(T);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function We(T) {
|
|
362
362
|
{
|
|
363
363
|
var I = typeof Symbol == "function" && Symbol.toStringTag, J = I && T[Symbol.toStringTag] || T.constructor.name || "Object";
|
|
364
364
|
return J;
|
|
@@ -376,7 +376,7 @@ function $l() {
|
|
|
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,
|
|
@@ -611,11 +611,11 @@ Check the top-level render call using <` + J + ">.");
|
|
|
611
611
|
Se($e, T);
|
|
612
612
|
}
|
|
613
613
|
if (fe.call(I, "key")) {
|
|
614
|
-
var ba = A(T),
|
|
614
|
+
var ba = A(T), ze = Object.keys(I).filter(function(Ol) {
|
|
615
615
|
return Ol !== "key";
|
|
616
|
-
}), ai =
|
|
616
|
+
}), ai = ze.length > 0 ? "{key: someKey, " + ze.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!ia[ba + ai]) {
|
|
618
|
-
var Al =
|
|
618
|
+
var Al = 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} />
|
|
@@ -2414,14 +2414,14 @@ function tl() {
|
|
|
2414
2414
|
},
|
|
2415
2415
|
_doProcessBlock: function(s, c) {
|
|
2416
2416
|
for (var f = this._hash.words, y = f[0], _ = f[1], b = 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 = b.high, w = b.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, ie = A, le = w, ye = R, Ue = P, me = H, ce = B, ke = W, fe = M, Ve = S, Ce = x, Ge = L, ea = N, Me = 0; Me < 80; Me++) {
|
|
2417
|
-
var ve,
|
|
2417
|
+
var ve, We, aa = m[Me];
|
|
2418
2418
|
if (Me < 16)
|
|
2419
|
-
|
|
2419
|
+
We = aa.high = s[c + Me * 2] | 0, ve = aa.low = s[c + Me * 2 + 1] | 0;
|
|
2420
2420
|
else {
|
|
2421
2421
|
var ta = m[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 = m[Me - 2], Je = ga.high, Ye = ga.low, Va = (Je >>> 19 | Ye << 13) ^ (Je << 3 | Ye >>> 29) ^ Je >>> 6, Da = (Ye >>> 19 | Je << 13) ^ (Ye << 3 | Je >>> 29) ^ (Ye >>> 6 | Je << 26), Ea = m[Me - 7], Ja = Ea.high, Za = Ea.low, da = m[Me - 16], ya = da.high, qe = da.low;
|
|
2422
|
-
ve = oa + Za,
|
|
2422
|
+
ve = oa + Za, We = je + Ja + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Da, We = We + Va + (ve >>> 0 < Da >>> 0 ? 1 : 0), ve = ve + qe, We = We + ya + (ve >>> 0 < qe >>> 0 ? 1 : 0), aa.high = We, aa.low = ve;
|
|
2423
2423
|
}
|
|
2424
|
-
var ca = me & ke ^ ~me & Ve, fa = ce & fe ^ ~ce & Ce, Na = Z & Q ^ Z & ie ^ Q & ie, La = q & K ^ q & le ^ K & le, 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 +
|
|
2424
|
+
var ca = me & ke ^ ~me & Ve, fa = ce & fe ^ ~ce & Ce, Na = Z & Q ^ Z & ie ^ Q & ie, La = q & K ^ q & le ^ K & le, 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 + We + (Pe >>> 0 < ve >>> 0 ? 1 : 0), tt = Ga + La, ei = Ua + Na + (tt >>> 0 < Ga >>> 0 ? 1 : 0);
|
|
2425
2425
|
Ge = Ve, ea = Ce, Ve = ke, Ce = fe, ke = me, fe = ce, ce = Ue + Pe | 0, me = ye + na + (ce >>> 0 < Ue >>> 0 ? 1 : 0) | 0, ye = ie, Ue = le, ie = Q, le = K, Q = Z, K = q, q = Pe + tt | 0, Z = na + ei + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
|
|
2426
2426
|
}
|
|
2427
2427
|
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 = b.low = w + le, b.high = A + ie + (w >>> 0 < le >>> 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 + me + (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 + Ve + (x >>> 0 < Ce >>> 0 ? 1 : 0), N = G.low = N + ea, G.high = L + Ge + (N >>> 0 < ea >>> 0 ? 1 : 0);
|
|
@@ -7736,7 +7736,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
7736
7736
|
userRebate: a,
|
|
7737
7737
|
userBindCard: i
|
|
7738
7738
|
};
|
|
7739
|
-
},
|
|
7739
|
+
}, Be = {
|
|
7740
7740
|
DEPOSIT: "deposit",
|
|
7741
7741
|
TRANS_CODE: "transCode",
|
|
7742
7742
|
ERROR: "error",
|
|
@@ -7749,7 +7749,8 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
7749
7749
|
CASH_REGISTER_LIMIT: "cash_register_limit",
|
|
7750
7750
|
UPDATE_ONLY_ONE_MEMBER: "update_only_one_member",
|
|
7751
7751
|
GAME_MAINTAIN: "game_maintain",
|
|
7752
|
-
LINE_LOGIN: "line_login"
|
|
7752
|
+
LINE_LOGIN: "line_login",
|
|
7753
|
+
UPDATE_EVENT_WALLET: "update_event_wallet"
|
|
7753
7754
|
}, Zo = 3e4, Jm = ({
|
|
7754
7755
|
socketUrl: e,
|
|
7755
7756
|
socketHandlers: n = {},
|
|
@@ -7864,13 +7865,13 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
7864
7865
|
limitAmount: Y(h, "limit_amount", null)
|
|
7865
7866
|
}, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ie = _.get("mac") || pi.get("machine_mac_address") || "", le = Y(h, "data.line_id", null), ye = Y(h, "data.line_name", null), Ue = Y(h, "member_info_uid", null);
|
|
7866
7867
|
switch (L) {
|
|
7867
|
-
case
|
|
7868
|
+
case Be.DEPOSIT:
|
|
7868
7869
|
Z && (D(), w?.(N));
|
|
7869
7870
|
break;
|
|
7870
|
-
case
|
|
7871
|
+
case Be.TRANS_CODE:
|
|
7871
7872
|
R?.(N);
|
|
7872
7873
|
break;
|
|
7873
|
-
case
|
|
7874
|
+
case Be.ERROR:
|
|
7874
7875
|
if (Z) {
|
|
7875
7876
|
const me = Y(h, "open_game_modal", 0) === 1;
|
|
7876
7877
|
F(q, {
|
|
@@ -7878,26 +7879,26 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
7878
7879
|
}), P?.(N);
|
|
7879
7880
|
}
|
|
7880
7881
|
break;
|
|
7881
|
-
case
|
|
7882
|
+
case Be.UPDATE_MEMBER:
|
|
7882
7883
|
y && (a.invalidateQueries({
|
|
7883
7884
|
queryKey: ["getMemberInfo"]
|
|
7884
7885
|
}), H?.(N));
|
|
7885
7886
|
break;
|
|
7886
|
-
case
|
|
7887
|
+
case Be.MAINTAIN_NOTICE:
|
|
7887
7888
|
F(q, {
|
|
7888
7889
|
notificationType: "maintainNotice"
|
|
7889
7890
|
}), B?.(N);
|
|
7890
7891
|
break;
|
|
7891
|
-
case
|
|
7892
|
+
case Be.MAINTAIN_NOTICE_MEMBER:
|
|
7892
7893
|
Z && (F(q), W?.(N), setTimeout(() => {
|
|
7893
7894
|
window.location.reload();
|
|
7894
7895
|
}, 5e4));
|
|
7895
7896
|
break;
|
|
7896
|
-
case
|
|
7897
|
+
case Be.RELOAD:
|
|
7897
7898
|
window.location.reload();
|
|
7898
7899
|
break;
|
|
7899
|
-
case
|
|
7900
|
-
case
|
|
7900
|
+
case Be.TRANSFER_IN_GAME:
|
|
7901
|
+
case Be.CHECK_REQUEST:
|
|
7901
7902
|
if (Z && b) {
|
|
7902
7903
|
const { request_id: me, amount: ce, platform: ke, status: fe } = Y(N, "data", {}) || {}, Ve = localStorage.getItem(
|
|
7903
7904
|
"transfer_in_game_request_id"
|
|
@@ -7922,29 +7923,32 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
7922
7923
|
M?.(N);
|
|
7923
7924
|
}
|
|
7924
7925
|
break;
|
|
7925
|
-
case
|
|
7926
|
+
case Be.CASH_REGISTER_LIMIT:
|
|
7926
7927
|
F(q, {
|
|
7927
7928
|
notificationType: "cashRegisterLimit",
|
|
7928
7929
|
amount: Q,
|
|
7929
7930
|
limitAmount: K
|
|
7930
7931
|
}), S?.(N);
|
|
7931
7932
|
break;
|
|
7932
|
-
case
|
|
7933
|
+
case Be.UPDATE_ONLY_ONE_MEMBER:
|
|
7933
7934
|
Z && (a.invalidateQueries({
|
|
7934
7935
|
queryKey: ["getMemberInfo"]
|
|
7935
7936
|
}), H?.(N));
|
|
7936
7937
|
break;
|
|
7937
|
-
case
|
|
7938
|
+
case Be.GAME_MAINTAIN:
|
|
7938
7939
|
F(q, {
|
|
7939
7940
|
notificationType: "gameMaintain"
|
|
7940
7941
|
});
|
|
7941
7942
|
break;
|
|
7942
|
-
case
|
|
7943
|
+
case Be.LINE_LOGIN:
|
|
7943
7944
|
Ue === ie && C({
|
|
7944
7945
|
line_id: le,
|
|
7945
7946
|
line_name: ye
|
|
7946
7947
|
});
|
|
7947
7948
|
break;
|
|
7949
|
+
case Be.UPDATE_EVENT_WALLET:
|
|
7950
|
+
Z && (a.invalidateQueries({ queryKey: ["getEventWalletList"] }), a.invalidateQueries({ queryKey: ["evaluateEventWallet"] }));
|
|
7951
|
+
return;
|
|
7948
7952
|
default:
|
|
7949
7953
|
console.warn("Unknown socket type:", L);
|
|
7950
7954
|
break;
|
|
@@ -7972,7 +7976,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
7972
7976
|
"transfer_in_game_request_id"
|
|
7973
7977
|
);
|
|
7974
7978
|
w && y && m && G({
|
|
7975
|
-
type:
|
|
7979
|
+
type: Be.CHECK_REQUEST,
|
|
7976
7980
|
request_id: w,
|
|
7977
7981
|
member_info_uid: y
|
|
7978
7982
|
});
|
|
@@ -8050,7 +8054,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
8050
8054
|
select: (r) => {
|
|
8051
8055
|
try {
|
|
8052
8056
|
const { data: a } = r;
|
|
8053
|
-
return
|
|
8057
|
+
return He(a, (o) => {
|
|
8054
8058
|
const { events_attributes: m } = o, u = Ie(
|
|
8055
8059
|
m,
|
|
8056
8060
|
(v) => v.attribute_currency === U
|
|
@@ -8124,8 +8128,11 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
8124
8128
|
//幣別代碼
|
|
8125
8129
|
value: u?.attribute_value,
|
|
8126
8130
|
//數值
|
|
8127
|
-
eventUid: u?.event_uid
|
|
8131
|
+
eventUid: u?.event_uid,
|
|
8128
8132
|
//活動UID
|
|
8133
|
+
rewardType: u?.reward_type,
|
|
8134
|
+
//獎勵類型
|
|
8135
|
+
rewardDetail: u?.rewards || {}
|
|
8129
8136
|
}, C = {
|
|
8130
8137
|
baseValue: s.base_value,
|
|
8131
8138
|
//基礎數值
|
|
@@ -8369,7 +8376,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
8369
8376
|
},
|
|
8370
8377
|
select: (l) => {
|
|
8371
8378
|
const p = la(l) ? l : l.Marquees;
|
|
8372
|
-
return
|
|
8379
|
+
return He(p, (U) => U[t] || U?.en_US);
|
|
8373
8380
|
}
|
|
8374
8381
|
});
|
|
8375
8382
|
}, tu = ({ options: e } = {}) => {
|
|
@@ -8380,7 +8387,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
|
|
|
8380
8387
|
enabled: window.profit_ranking_status === 1,
|
|
8381
8388
|
select: (t) => {
|
|
8382
8389
|
const { data: l } = t;
|
|
8383
|
-
return
|
|
8390
|
+
return He(l, (g) => {
|
|
8384
8391
|
const {
|
|
8385
8392
|
game_uid: U,
|
|
8386
8393
|
game_code: d,
|
|
@@ -8771,14 +8778,14 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8771
8778
|
let Ce = () => {
|
|
8772
8779
|
S.current !== null && (Xe.clearTimeout(S.current), S.current = null);
|
|
8773
8780
|
}, Ge = (V, De = !0) => {
|
|
8774
|
-
Ce(), S.current = Xe.setTimeout(
|
|
8781
|
+
Ce(), S.current = Xe.setTimeout(We, V || L.current), De && (h.current = Te());
|
|
8775
8782
|
}, ea = (V) => {
|
|
8776
8783
|
!H.current && !P.current && (ye.current(V, Se), le.current({ type: "active", prompted: !0 }, Se)), R.current = 0, w.current = Te(), H.current = !0, Ge(N.current, !1);
|
|
8777
8784
|
}, Me = () => {
|
|
8778
8785
|
Ce(), P.current || (Ue.current(null, Se), le.current({ type: "idle" }, Se)), P.current = !0, k.current = Te(), Z.current ? Re() : H.current && (w.current = 0, H.current = !1);
|
|
8779
8786
|
}, ve = (V) => {
|
|
8780
8787
|
Ce(), (P.current || H.current) && (me.current(V, Se), le.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();
|
|
8781
|
-
},
|
|
8788
|
+
}, We = (V) => {
|
|
8782
8789
|
if (!P.current) {
|
|
8783
8790
|
fe.cancel && fe.cancel();
|
|
8784
8791
|
let De = Te() - h.current;
|
|
@@ -8793,12 +8800,12 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8793
8800
|
}, aa = (V) => {
|
|
8794
8801
|
if (!f && !h.current && (h.current = Te(), me.current(null, Se)), fe(V, Se), H.current) return;
|
|
8795
8802
|
if (Ce(), !P.current && q.current.includes(V.type)) {
|
|
8796
|
-
|
|
8803
|
+
We(V);
|
|
8797
8804
|
return;
|
|
8798
8805
|
}
|
|
8799
8806
|
let De = Te() - h.current;
|
|
8800
8807
|
if (P.current && !_ || !P.current && De >= L.current) {
|
|
8801
|
-
|
|
8808
|
+
We(V);
|
|
8802
8809
|
return;
|
|
8803
8810
|
}
|
|
8804
8811
|
B.current = !1, R.current = 0, w.current = 0, Ge(), b && v && Ve.current();
|
|
@@ -8886,7 +8893,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
|
|
|
8886
8893
|
queryFn: async () => await n(),
|
|
8887
8894
|
select: (U) => {
|
|
8888
8895
|
const { data: d } = U;
|
|
8889
|
-
return
|
|
8896
|
+
return He(d, (a) => {
|
|
8890
8897
|
const { internal_notifications_language: i } = a;
|
|
8891
8898
|
return {
|
|
8892
8899
|
...a,
|
|
@@ -8983,7 +8990,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
|
|
|
8983
8990
|
return l({ uid: g, params: U });
|
|
8984
8991
|
},
|
|
8985
8992
|
select: (g) => {
|
|
8986
|
-
const { data: U } = g, d = U.data?.filter((a) => a.is_active === 1), r =
|
|
8993
|
+
const { data: U } = g, d = U.data?.filter((a) => a.is_active === 1), r = He(d, (a) => {
|
|
8987
8994
|
const i = Ie(a.news_language, {
|
|
8988
8995
|
language: p
|
|
8989
8996
|
}) || a.news_language[0];
|
|
@@ -9202,9 +9209,9 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
|
|
|
9202
9209
|
queryKey: ["depositV2", e],
|
|
9203
9210
|
queryFn: () => t({ paramsData: e }),
|
|
9204
9211
|
select: (l) => {
|
|
9205
|
-
const { third_party: p, bank: g, vip: U } = l, d =
|
|
9212
|
+
const { third_party: p, bank: g, vip: U } = l, d = He(p, (r) => ({
|
|
9206
9213
|
...r,
|
|
9207
|
-
providerList:
|
|
9214
|
+
providerList: He(r.providers, (a) => ({
|
|
9208
9215
|
...a,
|
|
9209
9216
|
providerUid: a.uid,
|
|
9210
9217
|
providerImageUrl: `${Ke}/paymentIcon/${Ei(a.provider_name)}.png`,
|
|
@@ -9534,7 +9541,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
|
|
|
9534
9541
|
return t({ uid: l, params: p });
|
|
9535
9542
|
},
|
|
9536
9543
|
select: (l) => {
|
|
9537
|
-
const p =
|
|
9544
|
+
const p = He(l.data.data, (g) => {
|
|
9538
9545
|
const {
|
|
9539
9546
|
wagering_restricted_amount: U,
|
|
9540
9547
|
claimed_amount: d
|
|
@@ -9666,7 +9673,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
|
|
|
9666
9673
|
last_page: Y(d, "last_page", 1)
|
|
9667
9674
|
};
|
|
9668
9675
|
return {
|
|
9669
|
-
list:
|
|
9676
|
+
list: He(Y(d, "data", []), (i) => {
|
|
9670
9677
|
const o = Ie(i.treasure_copywriting, {
|
|
9671
9678
|
language: p
|
|
9672
9679
|
});
|
|
@@ -9719,14 +9726,14 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
|
|
|
9719
9726
|
},
|
|
9720
9727
|
select: (p) => {
|
|
9721
9728
|
const g = la(p) ? p : p.data;
|
|
9722
|
-
return
|
|
9729
|
+
return He(g, (d) => {
|
|
9723
9730
|
const {
|
|
9724
9731
|
vip_criteria: r,
|
|
9725
9732
|
vip_payment_tags: a,
|
|
9726
9733
|
vip_withdrawal_rate: i,
|
|
9727
9734
|
rebate_range: o,
|
|
9728
9735
|
vip_game_rebate: m
|
|
9729
|
-
} = d, u = Ie(r, { currency_code: t }) || {}, s = Ie(a, { currency_code: t }) || {}, c = i, f =
|
|
9736
|
+
} = d, u = Ie(r, { currency_code: t }) || {}, s = Ie(a, { currency_code: t }) || {}, c = i, f = He(o, (b) => ({
|
|
9730
9737
|
...b,
|
|
9731
9738
|
rebateRange: JSON.parse(b.rebate_range)
|
|
9732
9739
|
})), y = Y(m, "[0]", {}), _ = {
|
|
@@ -9889,7 +9896,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
|
|
|
9889
9896
|
tempMaintenanceEndTime: o,
|
|
9890
9897
|
platformImageUrl: m
|
|
9891
9898
|
};
|
|
9892
|
-
}, Ks = (e = {}) => !jt(e) || Ee(e) ? [] : Yt(e), Bn = (e = []) => !la(e) || Ee(e) ? [] :
|
|
9899
|
+
}, Ks = (e = {}) => !jt(e) || Ee(e) ? [] : Yt(e), Bn = (e = []) => !la(e) || Ee(e) ? [] : He(e, "platform"), qs = (e = []) => !la(e) || Ee(e) ? [] : He(e, "gameTypeName"), $s = (e = []) => !la(e) || Ee(e) ? [] : He(e, "game_subtype"), Qs = (e = {}) => !jt(e) || Ee(e) ? [] : Yt(e), js = (e = [], n = []) => !la(e) || Ee(e) ? {} : !la(n) || Ee(n) ? {} : e.reduce((t, l) => {
|
|
9893
9900
|
const p = n.map((g) => g.game_subtype);
|
|
9894
9901
|
return p.forEach((g) => {
|
|
9895
9902
|
t[g] = t[g] || [];
|
|
@@ -9959,7 +9966,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
|
|
|
9959
9966
|
gameList: e,
|
|
9960
9967
|
allGameTypes: t,
|
|
9961
9968
|
allPlatforms: n
|
|
9962
|
-
}), _ =
|
|
9969
|
+
}), _ = He(n, (G) => {
|
|
9963
9970
|
const O = `${Ke}/${$n}/${G.platformEnum}.png`;
|
|
9964
9971
|
return {
|
|
9965
9972
|
...G,
|