@obb871001/api-integration-sdk 1.0.219 → 1.0.220
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 +3 -3
- package/dist/index.js +98 -86
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import va, { createContext as fn, useContext as Un, useCallback as I, useRef as et, useMemo as wa, useEffect as ba } from "react";
|
|
2
|
-
import { useQueries as yn, useQuery as ee, useQueryClient as
|
|
3
|
-
import
|
|
4
|
-
import { get as De, find as Ae, isEmpty as me, entries as bn, map as ve, isArray as Le, toLower as at, omit as
|
|
5
|
-
import
|
|
2
|
+
import { useQueries as yn, useQuery as ee, useQueryClient as Xn, useMutation as fe, QueryClient as el, QueryClientProvider as al } from "@tanstack/react-query";
|
|
3
|
+
import il from "axios";
|
|
4
|
+
import { get as De, find as Ae, isEmpty as me, entries as bn, map as ve, isArray as Le, toLower as at, omit as tl, replace as it, includes as nl, isObject as Ti, flatMap as hi, values as ll, keys as tt } from "lodash";
|
|
5
|
+
import rl from "react-dom";
|
|
6
6
|
var Pi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function zi(e) {
|
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function ol(e) {
|
|
11
11
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
12
12
|
var s = e.default;
|
|
13
13
|
if (typeof s == "function") {
|
|
@@ -33,7 +33,7 @@ function rl(e) {
|
|
|
33
33
|
}
|
|
34
34
|
var Ra = { exports: {} }, _a = {};
|
|
35
35
|
var nt;
|
|
36
|
-
function
|
|
36
|
+
function ml() {
|
|
37
37
|
if (nt) return _a;
|
|
38
38
|
nt = 1;
|
|
39
39
|
var e = va, s = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -48,7 +48,7 @@ function ol() {
|
|
|
48
48
|
}
|
|
49
49
|
var fa = {};
|
|
50
50
|
var lt;
|
|
51
|
-
function
|
|
51
|
+
function sl() {
|
|
52
52
|
return lt || (lt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
53
|
var e = va, s = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), c = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), t = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), l = Symbol.for("react.lazy"), r = Symbol.for("react.offscreen"), o = Symbol.iterator, f = "@@iterator";
|
|
54
54
|
function _(T) {
|
|
@@ -611,17 +611,17 @@ Check the top-level render call using <` + V + ">.");
|
|
|
611
611
|
La(ke, T);
|
|
612
612
|
}
|
|
613
613
|
if (Se.call(B, "key")) {
|
|
614
|
-
var $e = N(T), Ce = Object.keys(B).filter(function(
|
|
615
|
-
return
|
|
614
|
+
var $e = N(T), Ce = Object.keys(B).filter(function(Yn) {
|
|
615
|
+
return Yn !== "key";
|
|
616
616
|
}), Ri = Ce.length > 0 ? "{key: someKey, " + Ce.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!ca[$e + Ri]) {
|
|
618
|
-
var
|
|
618
|
+
var Qn = Ce.length > 0 ? "{" + Ce.join(": ..., ") + ": ...}" : "{}";
|
|
619
619
|
u(`A props object containing a "key" prop is being spread into JSX:
|
|
620
620
|
let props = %s;
|
|
621
621
|
<%s {...props} />
|
|
622
622
|
React keys must be passed directly to JSX without using spread:
|
|
623
623
|
let props = %s;
|
|
624
|
-
<%s key={someKey} {...props} />`, Ri, $e,
|
|
624
|
+
<%s key={someKey} {...props} />`, Ri, $e, Qn, $e), ca[$e + Ri] = !0;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
return T === i ? Gi(re) : Ga(re), re;
|
|
@@ -633,15 +633,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
633
633
|
function Ma(T, B, V) {
|
|
634
634
|
return ge(T, B, V, !1);
|
|
635
635
|
}
|
|
636
|
-
var Mi = Ma,
|
|
637
|
-
fa.Fragment = i, fa.jsx = Mi, fa.jsxs =
|
|
636
|
+
var Mi = Ma, $n = Ne;
|
|
637
|
+
fa.Fragment = i, fa.jsx = Mi, fa.jsxs = $n;
|
|
638
638
|
})()), fa;
|
|
639
639
|
}
|
|
640
640
|
var rt;
|
|
641
|
-
function
|
|
642
|
-
return rt || (rt = 1, process.env.NODE_ENV === "production" ? Ra.exports =
|
|
641
|
+
function ul() {
|
|
642
|
+
return rt || (rt = 1, process.env.NODE_ENV === "production" ? Ra.exports = ml() : Ra.exports = sl()), Ra.exports;
|
|
643
643
|
}
|
|
644
|
-
var Oa =
|
|
644
|
+
var Oa = ul();
|
|
645
645
|
const Cn = fn(null), te = () => {
|
|
646
646
|
const e = Un(Cn);
|
|
647
647
|
if (!e)
|
|
@@ -666,7 +666,7 @@ const Cn = fn(null), te = () => {
|
|
|
666
666
|
default:
|
|
667
667
|
return e;
|
|
668
668
|
}
|
|
669
|
-
}, Be = "https://d1h3qe8voog6w4.cloudfront.net", ot = "https://d3jx2uvukujuvn.cloudfront.net", vn = (e) => `${Be}/reward_icon/${e}.avif`, Tn = () => `${Be}/reward_icon/background_deposit.avif`, hn = "ds88platformIcon",
|
|
669
|
+
}, Be = "https://d1h3qe8voog6w4.cloudfront.net", ot = "https://d3jx2uvukujuvn.cloudfront.net", vn = (e) => `${Be}/reward_icon/${e}.avif`, Tn = () => `${Be}/reward_icon/background_deposit.avif`, hn = "ds88platformIcon", kn = {
|
|
670
670
|
zh_TW: "系統提示",
|
|
671
671
|
zh_CN: "系统提示",
|
|
672
672
|
en_US: "System Prompt",
|
|
@@ -686,7 +686,7 @@ function mt({
|
|
|
686
686
|
currency: c,
|
|
687
687
|
toasterOpen: g = !1
|
|
688
688
|
} = {}) {
|
|
689
|
-
const a =
|
|
689
|
+
const a = il.create({
|
|
690
690
|
baseURL: e,
|
|
691
691
|
timeout: n,
|
|
692
692
|
headers: {
|
|
@@ -713,7 +713,7 @@ function mt({
|
|
|
713
713
|
p?.dispatch({
|
|
714
714
|
type: "ui/showToast",
|
|
715
715
|
payload: {
|
|
716
|
-
title:
|
|
716
|
+
title: kn[l] || "System Prompt",
|
|
717
717
|
description: m,
|
|
718
718
|
status: "error",
|
|
719
719
|
duration: 3e3
|
|
@@ -724,8 +724,8 @@ function mt({
|
|
|
724
724
|
}
|
|
725
725
|
), a;
|
|
726
726
|
}
|
|
727
|
-
const
|
|
728
|
-
const e = Un(
|
|
727
|
+
const xn = fn(null), Qo = () => {
|
|
728
|
+
const e = Un(xn);
|
|
729
729
|
if (!e)
|
|
730
730
|
throw new Error(
|
|
731
731
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
@@ -757,7 +757,7 @@ const kn = fn(null), Qo = () => {
|
|
|
757
757
|
minimumFractionDigits: 2,
|
|
758
758
|
maximumFractionDigits: 2
|
|
759
759
|
}).format(s);
|
|
760
|
-
},
|
|
760
|
+
}, Sn = (e = [], s) => Ae(e, { gameTypeName: s })?.gameTypeUid, Dn = (e = [], s) => Ae(e, { platform: s })?.platformUid, En = (e = [], s) => Ae(e, { SubPlatformEnum: s }), Nn = (e = [], s, n) => me(e) ? [] : e.filter((i) => n ? String(i?.SubPlatformEnumUid) === String(n?.SubPlatformEnumUid) : String(i.platformUid) === String(s)), pl = (e = []) => me(e) ? {} : e.reduce((s, n) => {
|
|
761
761
|
const i = n?.game_subtype || "UNKNOWN";
|
|
762
762
|
return s[i] || (s[i] = []), s[i].push(n), s;
|
|
763
763
|
}, {}), gl = ({
|
|
@@ -767,9 +767,9 @@ const kn = fn(null), Qo = () => {
|
|
|
767
767
|
allGameTypes: i,
|
|
768
768
|
allPlatforms: p
|
|
769
769
|
}) => {
|
|
770
|
-
const d =
|
|
770
|
+
const d = Sn(i, e);
|
|
771
771
|
return d ? s.reduce((C, c) => {
|
|
772
|
-
const g =
|
|
772
|
+
const g = Dn(p, c), a = En(p, c), t = n[d] || [], m = Nn(
|
|
773
773
|
t,
|
|
774
774
|
g,
|
|
775
775
|
a
|
|
@@ -781,7 +781,7 @@ const kn = fn(null), Qo = () => {
|
|
|
781
781
|
gamesOfType: s = [],
|
|
782
782
|
allPlatforms: n = []
|
|
783
783
|
}) => {
|
|
784
|
-
const i =
|
|
784
|
+
const i = Dn(n, e), p = En(n, e), d = Nn(
|
|
785
785
|
s,
|
|
786
786
|
i,
|
|
787
787
|
p
|
|
@@ -1076,7 +1076,7 @@ var Ha = { exports: {} };
|
|
|
1076
1076
|
const yl = {}, bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1077
1077
|
__proto__: null,
|
|
1078
1078
|
default: yl
|
|
1079
|
-
}, Symbol.toStringTag, { value: "Module" })), Cl = /* @__PURE__ */
|
|
1079
|
+
}, Symbol.toStringTag, { value: "Module" })), Cl = /* @__PURE__ */ ol(bl);
|
|
1080
1080
|
var vl = Ha.exports, ut;
|
|
1081
1081
|
function $() {
|
|
1082
1082
|
return ut || (ut = 1, (function(e, s) {
|
|
@@ -2148,7 +2148,7 @@ function ta() {
|
|
|
2148
2148
|
})(Ia)), Ia.exports;
|
|
2149
2149
|
}
|
|
2150
2150
|
var Ka = { exports: {} }, Gl = Ka.exports, Ut;
|
|
2151
|
-
function
|
|
2151
|
+
function Ln() {
|
|
2152
2152
|
return Ut || (Ut = 1, (function(e, s) {
|
|
2153
2153
|
(function(n, i) {
|
|
2154
2154
|
e.exports = i($());
|
|
@@ -2274,7 +2274,7 @@ function Pl() {
|
|
|
2274
2274
|
})(ja)), ja.exports;
|
|
2275
2275
|
}
|
|
2276
2276
|
var $a = { exports: {} }, Fl = $a.exports, Ct;
|
|
2277
|
-
function
|
|
2277
|
+
function Gn() {
|
|
2278
2278
|
return Ct || (Ct = 1, (function(e, s) {
|
|
2279
2279
|
(function(n, i, p) {
|
|
2280
2280
|
e.exports = i($(), ki());
|
|
@@ -2418,7 +2418,7 @@ var Qa = { exports: {} }, wl = Qa.exports, vt;
|
|
|
2418
2418
|
function Ol() {
|
|
2419
2419
|
return vt || (vt = 1, (function(e, s) {
|
|
2420
2420
|
(function(n, i, p) {
|
|
2421
|
-
e.exports = i($(), ki(),
|
|
2421
|
+
e.exports = i($(), ki(), Gn());
|
|
2422
2422
|
})(wl, function(n) {
|
|
2423
2423
|
return (function() {
|
|
2424
2424
|
var i = n, p = i.x64, d = p.Word, C = p.WordArray, c = i.algo, g = c.SHA512, a = c.SHA384 = g.extend({
|
|
@@ -3086,7 +3086,7 @@ var ii = { exports: {} }, Jl = ii.exports, St;
|
|
|
3086
3086
|
function Je() {
|
|
3087
3087
|
return St || (St = 1, (function(e, s) {
|
|
3088
3088
|
(function(n, i, p) {
|
|
3089
|
-
e.exports = i($(),
|
|
3089
|
+
e.exports = i($(), Ln(), Zi());
|
|
3090
3090
|
})(Jl, function(n) {
|
|
3091
3091
|
return (function() {
|
|
3092
3092
|
var i = n, p = i.lib, d = p.Base, C = p.WordArray, c = i.algo, g = c.MD5, a = c.EvpKDF = d.extend({
|
|
@@ -6039,14 +6039,14 @@ var Dr = Ba.exports, Jt;
|
|
|
6039
6039
|
function Er() {
|
|
6040
6040
|
return Jt || (Jt = 1, (function(e, s) {
|
|
6041
6041
|
(function(n, i, p) {
|
|
6042
|
-
e.exports = i($(), ki(), kl(), Sl(), ia(), Nl(), ta(),
|
|
6042
|
+
e.exports = i($(), ki(), kl(), Sl(), ia(), Nl(), ta(), Ln(), Vi(), Pl(), Gn(), Ol(), Bl(), Wl(), Zi(), Zl(), Je(), se(), ql(), $l(), Yl(), er(), ir(), nr(), rr(), mr(), ur(), gr(), cr(), fr(), yr(), Cr(), Tr(), kr(), Sr());
|
|
6043
6043
|
})(Dr, function(n) {
|
|
6044
6044
|
return n;
|
|
6045
6045
|
});
|
|
6046
6046
|
})(Ba)), Ba.exports;
|
|
6047
6047
|
}
|
|
6048
|
-
var
|
|
6049
|
-
const Qe = /* @__PURE__ */ zi(
|
|
6048
|
+
var Mn = Er();
|
|
6049
|
+
const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
|
|
6050
6050
|
const s = "mySecretPassphrase", n = Qe.lib.WordArray.random(16), i = Qe.PBKDF2(s, n, {
|
|
6051
6051
|
keySize: 128 / 32,
|
|
6052
6052
|
iterations: 1e3
|
|
@@ -6424,7 +6424,7 @@ function Ki() {
|
|
|
6424
6424
|
return Fe.setUpSocketIOPing = i, Fe;
|
|
6425
6425
|
}
|
|
6426
6426
|
var Pa = {}, jt;
|
|
6427
|
-
function
|
|
6427
|
+
function Rn() {
|
|
6428
6428
|
if (jt) return Pa;
|
|
6429
6429
|
jt = 1, Object.defineProperty(Pa, "__esModule", { value: !0 }), Pa.heartbeat = n;
|
|
6430
6430
|
var e = Ge();
|
|
@@ -6511,7 +6511,7 @@ function Gr() {
|
|
|
6511
6511
|
}, e.apply(this, arguments);
|
|
6512
6512
|
};
|
|
6513
6513
|
Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.attachListeners = void 0;
|
|
6514
|
-
var s = Ki(), n =
|
|
6514
|
+
var s = Ki(), n = Rn(), i = Ge(), p = ji(), d = function(t, m, l, r) {
|
|
6515
6515
|
t.onmessage = function(o) {
|
|
6516
6516
|
var f;
|
|
6517
6517
|
m.current.onMessage && m.current.onMessage(o), typeof r?.current == "number" && (r.current = Date.now()), !(typeof m.current.filter == "function" && m.current.filter(o) !== !0) && (m.current.heartbeat && typeof m.current.heartbeat != "boolean" && ((f = m.current.heartbeat) === null || f === void 0 ? void 0 : f.returnMessage) === o.data || l(o));
|
|
@@ -6581,7 +6581,7 @@ function Mr() {
|
|
|
6581
6581
|
}, e.apply(this, arguments);
|
|
6582
6582
|
};
|
|
6583
6583
|
Object.defineProperty(ea, "__esModule", { value: !0 }), ea.attachSharedListeners = void 0;
|
|
6584
|
-
var s = Ii(), n = Ge(), i = qi(), p = Ki(), d =
|
|
6584
|
+
var s = Ii(), n = Ge(), i = qi(), p = Ki(), d = Rn(), C = function(m, l, r) {
|
|
6585
6585
|
m.onmessage = function(o) {
|
|
6586
6586
|
(0, i.getSubscribers)(l).forEach(function(f) {
|
|
6587
6587
|
var _;
|
|
@@ -6929,7 +6929,7 @@ function $i() {
|
|
|
6929
6929
|
return l && l.__esModule ? l : { default: l };
|
|
6930
6930
|
};
|
|
6931
6931
|
Object.defineProperty(he, "__esModule", { value: !0 }), he.useWebSocket = void 0;
|
|
6932
|
-
var p = va, d =
|
|
6932
|
+
var p = va, d = rl, C = Ge(), c = Rr(), g = Pr(), a = i(Fr()), t = ji(), m = function(l, r, o) {
|
|
6933
6933
|
r === void 0 && (r = C.DEFAULT_OPTIONS), o === void 0 && (o = !0);
|
|
6934
6934
|
var f = (0, p.useState)(null), _ = f[0], U = f[1], u = (0, p.useState)({}), y = u[0], b = u[1], v = (0, p.useMemo)(function() {
|
|
6935
6935
|
if (!r.disableJson && _)
|
|
@@ -7149,7 +7149,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7149
7149
|
options: n = {},
|
|
7150
7150
|
memberInfo: i = {}
|
|
7151
7151
|
}) => {
|
|
7152
|
-
const { store: p, openNotification: d, lng: C } = te(), c =
|
|
7152
|
+
const { store: p, openNotification: d, lng: C } = te(), c = Xn(), g = Ze(C), a = et(!1), t = et(s), m = De(i, "uid", null), {
|
|
7153
7153
|
sendMessage: l,
|
|
7154
7154
|
// 發送普通訊息
|
|
7155
7155
|
sendJsonMessage: r,
|
|
@@ -7174,15 +7174,27 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7174
7174
|
return null;
|
|
7175
7175
|
}
|
|
7176
7176
|
}, [o]);
|
|
7177
|
-
|
|
7177
|
+
ba(() => {
|
|
7178
7178
|
const u = setInterval(
|
|
7179
7179
|
() => l("ping"),
|
|
7180
7180
|
Wr
|
|
7181
7181
|
);
|
|
7182
7182
|
return () => clearInterval(u);
|
|
7183
7183
|
}, [l]);
|
|
7184
|
-
const U = I(
|
|
7185
|
-
|
|
7184
|
+
const U = I(
|
|
7185
|
+
(u, y) => {
|
|
7186
|
+
d && (console.log("Trigger Open Notification"), p.dispatch({
|
|
7187
|
+
type: "ui/openNotificationModal",
|
|
7188
|
+
payload: {
|
|
7189
|
+
title: kn[g] || "System Prompt",
|
|
7190
|
+
content: u,
|
|
7191
|
+
type: "warning",
|
|
7192
|
+
props: y
|
|
7193
|
+
}
|
|
7194
|
+
})), console.log("Trigger No Open Notification");
|
|
7195
|
+
},
|
|
7196
|
+
[d, p, g]
|
|
7197
|
+
);
|
|
7186
7198
|
return ba(() => {
|
|
7187
7199
|
t.current = s;
|
|
7188
7200
|
}, [s]), ba(() => {
|
|
@@ -7203,7 +7215,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7203
7215
|
amount: De(_, "amount", null),
|
|
7204
7216
|
limitAmount: De(_, "limit_amount", null)
|
|
7205
7217
|
}, L = Number(x.memberInfoUid) === m, N = x.data, w = x.amount, G = x.limitAmount;
|
|
7206
|
-
switch (
|
|
7218
|
+
switch (k) {
|
|
7207
7219
|
case xe.DEPOSIT:
|
|
7208
7220
|
L && u?.(x);
|
|
7209
7221
|
break;
|
|
@@ -7520,7 +7532,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7520
7532
|
inboxListQuery: s,
|
|
7521
7533
|
readInboxMutation: n
|
|
7522
7534
|
};
|
|
7523
|
-
},
|
|
7535
|
+
}, Pn = () => {
|
|
7524
7536
|
const { client: e } = te();
|
|
7525
7537
|
return {
|
|
7526
7538
|
newsListApi: I(
|
|
@@ -7577,7 +7589,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7577
7589
|
...e.other
|
|
7578
7590
|
}
|
|
7579
7591
|
], um = ({ options: e, formData: s } = {}) => {
|
|
7580
|
-
const { lng: n } = te(), { newsListApi: i } =
|
|
7592
|
+
const { lng: n } = te(), { newsListApi: i } = Pn(), p = Ze(n);
|
|
7581
7593
|
return ee({
|
|
7582
7594
|
queryKey: ["newsList"],
|
|
7583
7595
|
queryFn: () => {
|
|
@@ -7603,7 +7615,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7603
7615
|
...e
|
|
7604
7616
|
});
|
|
7605
7617
|
}, pm = ({ options: e, formData: s } = {}) => {
|
|
7606
|
-
const { lng: n } = te(), { newsListApi: i } =
|
|
7618
|
+
const { lng: n } = te(), { newsListApi: i } = Pn(), p = Ze(n);
|
|
7607
7619
|
return ee({
|
|
7608
7620
|
queryKey: ["newsList"],
|
|
7609
7621
|
queryFn: () => {
|
|
@@ -7664,7 +7676,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7664
7676
|
withdrawal_amount: t,
|
|
7665
7677
|
bank_account_number: m,
|
|
7666
7678
|
currency_code: l,
|
|
7667
|
-
withdrawal_code:
|
|
7679
|
+
withdrawal_code: Mn.MD5(r).toString(),
|
|
7668
7680
|
payment_type: "ThirdParty"
|
|
7669
7681
|
}
|
|
7670
7682
|
});
|
|
@@ -7817,10 +7829,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7817
7829
|
eventTransaction: o,
|
|
7818
7830
|
withdrawTransaction: f
|
|
7819
7831
|
};
|
|
7820
|
-
},
|
|
7832
|
+
}, Fn = "3.7.8", io = Fn, sa = typeof Buffer == "function", mn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, sn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, to = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ca = Array.prototype.slice.call(to), Fa = ((e) => {
|
|
7821
7833
|
let s = {};
|
|
7822
7834
|
return e.forEach((n, i) => s[n] = i), s;
|
|
7823
|
-
})(Ca), no = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, ue = String.fromCharCode.bind(String), un = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)),
|
|
7835
|
+
})(Ca), no = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, ue = String.fromCharCode.bind(String), un = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), wn = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (s) => s == "+" ? "-" : "_"), On = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), An = (e) => {
|
|
7824
7836
|
let s, n, i, p, d = "";
|
|
7825
7837
|
const C = e.length % 3;
|
|
7826
7838
|
for (let c = 0; c < e.length; ) {
|
|
@@ -7829,12 +7841,12 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7829
7841
|
s = n << 16 | i << 8 | p, d += Ca[s >> 18 & 63] + Ca[s >> 12 & 63] + Ca[s >> 6 & 63] + Ca[s & 63];
|
|
7830
7842
|
}
|
|
7831
7843
|
return C ? d.slice(0, C - 3) + "===".substring(C) : d;
|
|
7832
|
-
}, Yi = typeof btoa == "function" ? (e) => btoa(e) : sa ? (e) => Buffer.from(e, "binary").toString("base64") :
|
|
7844
|
+
}, Yi = typeof btoa == "function" ? (e) => btoa(e) : sa ? (e) => Buffer.from(e, "binary").toString("base64") : An, Hi = sa ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
7833
7845
|
let n = [];
|
|
7834
7846
|
for (let i = 0, p = e.length; i < p; i += 4096)
|
|
7835
7847
|
n.push(ue.apply(null, e.subarray(i, i + 4096)));
|
|
7836
7848
|
return Yi(n.join(""));
|
|
7837
|
-
}, vi = (e, s = !1) => s ?
|
|
7849
|
+
}, vi = (e, s = !1) => s ? wn(Hi(e)) : Hi(e), lo = (e) => {
|
|
7838
7850
|
if (e.length < 2) {
|
|
7839
7851
|
var s = e.charCodeAt(0);
|
|
7840
7852
|
return s < 128 ? e : s < 2048 ? ue(192 | s >>> 6) + ue(128 | s & 63) : ue(224 | s >>> 12 & 15) + ue(128 | s >>> 6 & 63) + ue(128 | s & 63);
|
|
@@ -7842,7 +7854,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7842
7854
|
var s = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
7843
7855
|
return ue(240 | s >>> 18 & 7) + ue(128 | s >>> 12 & 63) + ue(128 | s >>> 6 & 63) + ue(128 | s & 63);
|
|
7844
7856
|
}
|
|
7845
|
-
}, ro = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,
|
|
7857
|
+
}, ro = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Bn = (e) => e.replace(ro, lo), pn = sa ? (e) => Buffer.from(e, "utf8").toString("base64") : sn ? (e) => Hi(sn.encode(e)) : (e) => Yi(Bn(e)), ma = (e, s = !1) => s ? wn(pn(e)) : pn(e), gn = (e) => ma(e, !0), oo = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, mo = (e) => {
|
|
7846
7858
|
switch (e.length) {
|
|
7847
7859
|
case 4:
|
|
7848
7860
|
var s = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), n = s - 65536;
|
|
@@ -7852,7 +7864,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7852
7864
|
default:
|
|
7853
7865
|
return ue((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
7854
7866
|
}
|
|
7855
|
-
},
|
|
7867
|
+
}, Hn = (e) => e.replace(oo, mo), Wn = (e) => {
|
|
7856
7868
|
if (e = e.replace(/\s+/g, ""), !no.test(e))
|
|
7857
7869
|
throw new TypeError("malformed base64.");
|
|
7858
7870
|
e += "==".slice(2 - (e.length & 3));
|
|
@@ -7860,18 +7872,18 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7860
7872
|
for (let d = 0; d < e.length; )
|
|
7861
7873
|
s = Fa[e.charAt(d++)] << 18 | Fa[e.charAt(d++)] << 12 | (n = Fa[e.charAt(d++)]) << 6 | (i = Fa[e.charAt(d++)]), n === 64 ? p.push(ue(s >> 16 & 255)) : i === 64 ? p.push(ue(s >> 16 & 255, s >> 8 & 255)) : p.push(ue(s >> 16 & 255, s >> 8 & 255, s & 255));
|
|
7862
7874
|
return p.join("");
|
|
7863
|
-
}, Xi = typeof atob == "function" ? (e) => atob(
|
|
7875
|
+
}, Xi = typeof atob == "function" ? (e) => atob(On(e)) : sa ? (e) => Buffer.from(e, "base64").toString("binary") : Wn, zn = sa ? (e) => un(Buffer.from(e, "base64")) : (e) => un(Xi(e).split("").map((s) => s.charCodeAt(0))), Vn = (e) => zn(Zn(e)), so = sa ? (e) => Buffer.from(e, "base64").toString("utf8") : mn ? (e) => mn.decode(zn(e)) : (e) => Hn(Xi(e)), Zn = (e) => On(e.replace(/[-_]/g, (s) => s == "-" ? "+" : "/")), Wi = (e) => so(Zn(e)), uo = (e) => {
|
|
7864
7876
|
if (typeof e != "string")
|
|
7865
7877
|
return !1;
|
|
7866
7878
|
const s = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
7867
7879
|
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
7868
|
-
},
|
|
7880
|
+
}, Jn = (e) => ({
|
|
7869
7881
|
value: e,
|
|
7870
7882
|
enumerable: !1,
|
|
7871
7883
|
writable: !0,
|
|
7872
7884
|
configurable: !0
|
|
7873
|
-
}),
|
|
7874
|
-
const e = (s, n) => Object.defineProperty(String.prototype, s,
|
|
7885
|
+
}), In = function() {
|
|
7886
|
+
const e = (s, n) => Object.defineProperty(String.prototype, s, Jn(n));
|
|
7875
7887
|
e("fromBase64", function() {
|
|
7876
7888
|
return Wi(this);
|
|
7877
7889
|
}), e("toBase64", function(s) {
|
|
@@ -7881,10 +7893,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7881
7893
|
}), e("toBase64URL", function() {
|
|
7882
7894
|
return ma(this, !0);
|
|
7883
7895
|
}), e("toUint8Array", function() {
|
|
7884
|
-
return
|
|
7896
|
+
return Vn(this);
|
|
7885
7897
|
});
|
|
7886
|
-
},
|
|
7887
|
-
const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s,
|
|
7898
|
+
}, Kn = function() {
|
|
7899
|
+
const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s, Jn(n));
|
|
7888
7900
|
e("toBase64", function(s) {
|
|
7889
7901
|
return vi(this, s);
|
|
7890
7902
|
}), e("toBase64URI", function() {
|
|
@@ -7893,27 +7905,27 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7893
7905
|
return vi(this, !0);
|
|
7894
7906
|
});
|
|
7895
7907
|
}, po = () => {
|
|
7896
|
-
|
|
7908
|
+
In(), Kn();
|
|
7897
7909
|
}, go = {
|
|
7898
|
-
version:
|
|
7910
|
+
version: Fn,
|
|
7899
7911
|
VERSION: io,
|
|
7900
7912
|
atob: Xi,
|
|
7901
|
-
atobPolyfill:
|
|
7913
|
+
atobPolyfill: Wn,
|
|
7902
7914
|
btoa: Yi,
|
|
7903
|
-
btoaPolyfill:
|
|
7915
|
+
btoaPolyfill: An,
|
|
7904
7916
|
fromBase64: Wi,
|
|
7905
7917
|
toBase64: ma,
|
|
7906
7918
|
encode: ma,
|
|
7907
7919
|
encodeURI: gn,
|
|
7908
7920
|
encodeURL: gn,
|
|
7909
|
-
utob:
|
|
7910
|
-
btou:
|
|
7921
|
+
utob: Bn,
|
|
7922
|
+
btou: Hn,
|
|
7911
7923
|
decode: Wi,
|
|
7912
7924
|
isValid: uo,
|
|
7913
7925
|
fromUint8Array: vi,
|
|
7914
|
-
toUint8Array:
|
|
7915
|
-
extendString:
|
|
7916
|
-
extendUint8Array:
|
|
7926
|
+
toUint8Array: Vn,
|
|
7927
|
+
extendString: In,
|
|
7928
|
+
extendUint8Array: Kn,
|
|
7917
7929
|
extendBuiltins: po
|
|
7918
7930
|
}, dm = (e, s) => {
|
|
7919
7931
|
const { playGameApi: n } = Ji();
|
|
@@ -7949,22 +7961,22 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7949
7961
|
enabled: !!e?.gameCode,
|
|
7950
7962
|
...s
|
|
7951
7963
|
});
|
|
7952
|
-
},
|
|
7964
|
+
}, qn = () => {
|
|
7953
7965
|
const { client: e } = te(), s = I(async () => await e.get("/rebate"), [e]), n = I(async () => await e.post("/withdraw/rebate"), [e]);
|
|
7954
7966
|
return {
|
|
7955
7967
|
currentRebateApi: s,
|
|
7956
7968
|
receiveRebateApi: n
|
|
7957
7969
|
};
|
|
7958
7970
|
}, co = ({ options: e } = {}) => {
|
|
7959
|
-
const { currentRebateApi: s } =
|
|
7971
|
+
const { currentRebateApi: s } = qn();
|
|
7960
7972
|
return ee({
|
|
7961
7973
|
queryKey: ["currentRebate"],
|
|
7962
7974
|
queryFn: () => s(),
|
|
7963
|
-
select: (n) =>
|
|
7975
|
+
select: (n) => tl(n, ["code", "status"]),
|
|
7964
7976
|
...e
|
|
7965
7977
|
});
|
|
7966
7978
|
}, _o = ({ options: e } = {}) => {
|
|
7967
|
-
const { receiveRebateApi: s } =
|
|
7979
|
+
const { receiveRebateApi: s } = qn();
|
|
7968
7980
|
return fe({
|
|
7969
7981
|
mutationKey: ["receiveRebate"],
|
|
7970
7982
|
mutationFn: async () => s(),
|
|
@@ -8199,14 +8211,14 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8199
8211
|
userRebate: a,
|
|
8200
8212
|
userBindCard: t
|
|
8201
8213
|
};
|
|
8202
|
-
},
|
|
8214
|
+
}, jn = () => {
|
|
8203
8215
|
const { client: e } = te(), s = I(async () => await e.get("/vip/list"), [e]), n = I(async () => await e.get("/vip/check"), [e]);
|
|
8204
8216
|
return {
|
|
8205
8217
|
vipListApi: s,
|
|
8206
8218
|
vipInfoApi: n
|
|
8207
8219
|
};
|
|
8208
8220
|
}, Um = ({ options: e } = {}) => {
|
|
8209
|
-
const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } =
|
|
8221
|
+
const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } = jn();
|
|
8210
8222
|
return ee({
|
|
8211
8223
|
queryKey: ["vipInfo"],
|
|
8212
8224
|
queryFn: async () => i(),
|
|
@@ -8221,7 +8233,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8221
8233
|
...e
|
|
8222
8234
|
});
|
|
8223
8235
|
}, Go = ({ options: e } = {}) => {
|
|
8224
|
-
const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } =
|
|
8236
|
+
const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } = jn();
|
|
8225
8237
|
return ee({
|
|
8226
8238
|
queryKey: ["vipList"],
|
|
8227
8239
|
queryFn: async () => {
|
|
@@ -8343,7 +8355,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8343
8355
|
gameImageUrl: h,
|
|
8344
8356
|
gameImageUrlAnimated: S
|
|
8345
8357
|
};
|
|
8346
|
-
}, Mo = (e, s = !1) =>
|
|
8358
|
+
}, Mo = (e, s = !1) => nl([
|
|
8347
8359
|
"EVO",
|
|
8348
8360
|
"IMSPRIBE",
|
|
8349
8361
|
"SABA",
|
|
@@ -8417,7 +8429,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8417
8429
|
allGamePlatform: i = [],
|
|
8418
8430
|
allGameList: p = {}
|
|
8419
8431
|
} = {}) => !Array.isArray(e) || !Array.isArray(s) ? {} : e.reduce((d, C) => {
|
|
8420
|
-
const c =
|
|
8432
|
+
const c = Sn(n, C);
|
|
8421
8433
|
if (!c) return d;
|
|
8422
8434
|
const g = p[c] || [], a = s.reduce((t, m) => {
|
|
8423
8435
|
const l = dl({
|
|
@@ -8468,7 +8480,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8468
8480
|
};
|
|
8469
8481
|
}), y = Oo(m, i), b = Bo(U), v = Ho(b), h = bn(U).reduce(
|
|
8470
8482
|
(D, [O, k]) => {
|
|
8471
|
-
const x = hi(
|
|
8483
|
+
const x = hi(ll(k));
|
|
8472
8484
|
return D[O] = x, D;
|
|
8473
8485
|
},
|
|
8474
8486
|
{}
|
|
@@ -35108,7 +35120,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
35108
35120
|
n && Zo(!0);
|
|
35109
35121
|
}, [n]);
|
|
35110
35122
|
const i = Vo({ enabled: s });
|
|
35111
|
-
return /* @__PURE__ */ Oa.jsx(
|
|
35123
|
+
return /* @__PURE__ */ Oa.jsx(xn.Provider, { value: i, children: e });
|
|
35112
35124
|
};
|
|
35113
35125
|
function hm({
|
|
35114
35126
|
children: e,
|
|
@@ -35121,7 +35133,7 @@ function hm({
|
|
|
35121
35133
|
() => mt({ ...p, formData: !0 }),
|
|
35122
35134
|
[p]
|
|
35123
35135
|
), c = wa(
|
|
35124
|
-
() => new
|
|
35136
|
+
() => new el({
|
|
35125
35137
|
defaultOptions: {
|
|
35126
35138
|
queries: {
|
|
35127
35139
|
refetchOnWindowFocus: !1,
|
|
@@ -35131,12 +35143,12 @@ function hm({
|
|
|
35131
35143
|
}),
|
|
35132
35144
|
[]
|
|
35133
35145
|
), g = i || c;
|
|
35134
|
-
return /* @__PURE__ */ Oa.jsx(
|
|
35146
|
+
return /* @__PURE__ */ Oa.jsx(al, { client: g, children: /* @__PURE__ */ Oa.jsx(Cn.Provider, { value: { client: d, formDataClient: C, ...p }, children: /* @__PURE__ */ Oa.jsx(Jo, { autoFetch: s, mockData: n, children: e }) }) });
|
|
35135
35147
|
}
|
|
35136
35148
|
export {
|
|
35137
35149
|
Cn as ApiCtx,
|
|
35138
35150
|
hm as ApiProvider,
|
|
35139
|
-
|
|
35151
|
+
xn as GamesInfoCtx,
|
|
35140
35152
|
Ao as buildMultiTypes,
|
|
35141
35153
|
vm as buildMultiTypesWithSubTypes,
|
|
35142
35154
|
dl as buildSinglePlatformWithSubTypes,
|
|
@@ -35147,10 +35159,10 @@ export {
|
|
|
35147
35159
|
Fo as extractGameSubTypeNames,
|
|
35148
35160
|
Po as extractGameTypeNames,
|
|
35149
35161
|
_n as extractPlatformNames,
|
|
35150
|
-
|
|
35151
|
-
|
|
35152
|
-
|
|
35153
|
-
|
|
35162
|
+
Nn as filterGamesByPlatform,
|
|
35163
|
+
Sn as findGameTypeUid,
|
|
35164
|
+
Dn as findPlatformUid,
|
|
35165
|
+
En as findSubPlatform,
|
|
35154
35166
|
Ro as flattenAllGames,
|
|
35155
35167
|
wo as flattenFavoriteGames,
|
|
35156
35168
|
Xo as formatNumber,
|