@obb871001/api-integration-sdk 1.0.209 → 1.0.211
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 +94 -84
- 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,
|
|
@@ -7224,9 +7224,19 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7224
7224
|
}), v?.(x));
|
|
7225
7225
|
break;
|
|
7226
7226
|
case xe.MAINTAIN_NOTICE:
|
|
7227
|
-
|
|
7227
|
+
U(N, {
|
|
7228
7228
|
notificationType: "maintainNotice"
|
|
7229
|
-
}),
|
|
7229
|
+
}), p.dispatch({
|
|
7230
|
+
type: "ui/openNotificationModal",
|
|
7231
|
+
payload: {
|
|
7232
|
+
title: kn[g] || "System Prompt",
|
|
7233
|
+
content: N,
|
|
7234
|
+
type: "warning",
|
|
7235
|
+
props: {
|
|
7236
|
+
notificationType: "maintainNotice"
|
|
7237
|
+
}
|
|
7238
|
+
}
|
|
7239
|
+
}), console.log("Trigger"), h?.(x);
|
|
7230
7240
|
break;
|
|
7231
7241
|
case xe.MAINTAIN_NOTICE_MEMBER:
|
|
7232
7242
|
L && (U(N), S?.(x), setTimeout(() => {
|
|
@@ -7520,7 +7530,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7520
7530
|
inboxListQuery: s,
|
|
7521
7531
|
readInboxMutation: n
|
|
7522
7532
|
};
|
|
7523
|
-
},
|
|
7533
|
+
}, Pn = () => {
|
|
7524
7534
|
const { client: e } = te();
|
|
7525
7535
|
return {
|
|
7526
7536
|
newsListApi: I(
|
|
@@ -7577,7 +7587,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7577
7587
|
...e.other
|
|
7578
7588
|
}
|
|
7579
7589
|
], um = ({ options: e, formData: s } = {}) => {
|
|
7580
|
-
const { lng: n } = te(), { newsListApi: i } =
|
|
7590
|
+
const { lng: n } = te(), { newsListApi: i } = Pn(), p = Ze(n);
|
|
7581
7591
|
return ee({
|
|
7582
7592
|
queryKey: ["newsList"],
|
|
7583
7593
|
queryFn: () => {
|
|
@@ -7603,7 +7613,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7603
7613
|
...e
|
|
7604
7614
|
});
|
|
7605
7615
|
}, pm = ({ options: e, formData: s } = {}) => {
|
|
7606
|
-
const { lng: n } = te(), { newsListApi: i } =
|
|
7616
|
+
const { lng: n } = te(), { newsListApi: i } = Pn(), p = Ze(n);
|
|
7607
7617
|
return ee({
|
|
7608
7618
|
queryKey: ["newsList"],
|
|
7609
7619
|
queryFn: () => {
|
|
@@ -7664,7 +7674,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7664
7674
|
withdrawal_amount: t,
|
|
7665
7675
|
bank_account_number: m,
|
|
7666
7676
|
currency_code: l,
|
|
7667
|
-
withdrawal_code:
|
|
7677
|
+
withdrawal_code: Mn.MD5(r).toString(),
|
|
7668
7678
|
payment_type: "ThirdParty"
|
|
7669
7679
|
}
|
|
7670
7680
|
});
|
|
@@ -7817,10 +7827,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7817
7827
|
eventTransaction: o,
|
|
7818
7828
|
withdrawTransaction: f
|
|
7819
7829
|
};
|
|
7820
|
-
},
|
|
7830
|
+
}, 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
7831
|
let s = {};
|
|
7822
7832
|
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)),
|
|
7833
|
+
})(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
7834
|
let s, n, i, p, d = "";
|
|
7825
7835
|
const C = e.length % 3;
|
|
7826
7836
|
for (let c = 0; c < e.length; ) {
|
|
@@ -7829,12 +7839,12 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7829
7839
|
s = n << 16 | i << 8 | p, d += Ca[s >> 18 & 63] + Ca[s >> 12 & 63] + Ca[s >> 6 & 63] + Ca[s & 63];
|
|
7830
7840
|
}
|
|
7831
7841
|
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") :
|
|
7842
|
+
}, 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
7843
|
let n = [];
|
|
7834
7844
|
for (let i = 0, p = e.length; i < p; i += 4096)
|
|
7835
7845
|
n.push(ue.apply(null, e.subarray(i, i + 4096)));
|
|
7836
7846
|
return Yi(n.join(""));
|
|
7837
|
-
}, vi = (e, s = !1) => s ?
|
|
7847
|
+
}, vi = (e, s = !1) => s ? wn(Hi(e)) : Hi(e), lo = (e) => {
|
|
7838
7848
|
if (e.length < 2) {
|
|
7839
7849
|
var s = e.charCodeAt(0);
|
|
7840
7850
|
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 +7852,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7842
7852
|
var s = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
7843
7853
|
return ue(240 | s >>> 18 & 7) + ue(128 | s >>> 12 & 63) + ue(128 | s >>> 6 & 63) + ue(128 | s & 63);
|
|
7844
7854
|
}
|
|
7845
|
-
}, ro = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,
|
|
7855
|
+
}, 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
7856
|
switch (e.length) {
|
|
7847
7857
|
case 4:
|
|
7848
7858
|
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 +7862,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7852
7862
|
default:
|
|
7853
7863
|
return ue((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
7854
7864
|
}
|
|
7855
|
-
},
|
|
7865
|
+
}, Hn = (e) => e.replace(oo, mo), Wn = (e) => {
|
|
7856
7866
|
if (e = e.replace(/\s+/g, ""), !no.test(e))
|
|
7857
7867
|
throw new TypeError("malformed base64.");
|
|
7858
7868
|
e += "==".slice(2 - (e.length & 3));
|
|
@@ -7860,18 +7870,18 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7860
7870
|
for (let d = 0; d < e.length; )
|
|
7861
7871
|
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
7872
|
return p.join("");
|
|
7863
|
-
}, Xi = typeof atob == "function" ? (e) => atob(
|
|
7873
|
+
}, 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
7874
|
if (typeof e != "string")
|
|
7865
7875
|
return !1;
|
|
7866
7876
|
const s = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
7867
7877
|
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
7868
|
-
},
|
|
7878
|
+
}, Jn = (e) => ({
|
|
7869
7879
|
value: e,
|
|
7870
7880
|
enumerable: !1,
|
|
7871
7881
|
writable: !0,
|
|
7872
7882
|
configurable: !0
|
|
7873
|
-
}),
|
|
7874
|
-
const e = (s, n) => Object.defineProperty(String.prototype, s,
|
|
7883
|
+
}), In = function() {
|
|
7884
|
+
const e = (s, n) => Object.defineProperty(String.prototype, s, Jn(n));
|
|
7875
7885
|
e("fromBase64", function() {
|
|
7876
7886
|
return Wi(this);
|
|
7877
7887
|
}), e("toBase64", function(s) {
|
|
@@ -7881,10 +7891,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7881
7891
|
}), e("toBase64URL", function() {
|
|
7882
7892
|
return ma(this, !0);
|
|
7883
7893
|
}), e("toUint8Array", function() {
|
|
7884
|
-
return
|
|
7894
|
+
return Vn(this);
|
|
7885
7895
|
});
|
|
7886
|
-
},
|
|
7887
|
-
const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s,
|
|
7896
|
+
}, Kn = function() {
|
|
7897
|
+
const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s, Jn(n));
|
|
7888
7898
|
e("toBase64", function(s) {
|
|
7889
7899
|
return vi(this, s);
|
|
7890
7900
|
}), e("toBase64URI", function() {
|
|
@@ -7893,27 +7903,27 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7893
7903
|
return vi(this, !0);
|
|
7894
7904
|
});
|
|
7895
7905
|
}, po = () => {
|
|
7896
|
-
|
|
7906
|
+
In(), Kn();
|
|
7897
7907
|
}, go = {
|
|
7898
|
-
version:
|
|
7908
|
+
version: Fn,
|
|
7899
7909
|
VERSION: io,
|
|
7900
7910
|
atob: Xi,
|
|
7901
|
-
atobPolyfill:
|
|
7911
|
+
atobPolyfill: Wn,
|
|
7902
7912
|
btoa: Yi,
|
|
7903
|
-
btoaPolyfill:
|
|
7913
|
+
btoaPolyfill: An,
|
|
7904
7914
|
fromBase64: Wi,
|
|
7905
7915
|
toBase64: ma,
|
|
7906
7916
|
encode: ma,
|
|
7907
7917
|
encodeURI: gn,
|
|
7908
7918
|
encodeURL: gn,
|
|
7909
|
-
utob:
|
|
7910
|
-
btou:
|
|
7919
|
+
utob: Bn,
|
|
7920
|
+
btou: Hn,
|
|
7911
7921
|
decode: Wi,
|
|
7912
7922
|
isValid: uo,
|
|
7913
7923
|
fromUint8Array: vi,
|
|
7914
|
-
toUint8Array:
|
|
7915
|
-
extendString:
|
|
7916
|
-
extendUint8Array:
|
|
7924
|
+
toUint8Array: Vn,
|
|
7925
|
+
extendString: In,
|
|
7926
|
+
extendUint8Array: Kn,
|
|
7917
7927
|
extendBuiltins: po
|
|
7918
7928
|
}, dm = (e, s) => {
|
|
7919
7929
|
const { playGameApi: n } = Ji();
|
|
@@ -7949,22 +7959,22 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7949
7959
|
enabled: !!e?.gameCode,
|
|
7950
7960
|
...s
|
|
7951
7961
|
});
|
|
7952
|
-
},
|
|
7962
|
+
}, qn = () => {
|
|
7953
7963
|
const { client: e } = te(), s = I(async () => await e.get("/rebate"), [e]), n = I(async () => await e.post("/withdraw/rebate"), [e]);
|
|
7954
7964
|
return {
|
|
7955
7965
|
currentRebateApi: s,
|
|
7956
7966
|
receiveRebateApi: n
|
|
7957
7967
|
};
|
|
7958
7968
|
}, co = ({ options: e } = {}) => {
|
|
7959
|
-
const { currentRebateApi: s } =
|
|
7969
|
+
const { currentRebateApi: s } = qn();
|
|
7960
7970
|
return ee({
|
|
7961
7971
|
queryKey: ["currentRebate"],
|
|
7962
7972
|
queryFn: () => s(),
|
|
7963
|
-
select: (n) =>
|
|
7973
|
+
select: (n) => tl(n, ["code", "status"]),
|
|
7964
7974
|
...e
|
|
7965
7975
|
});
|
|
7966
7976
|
}, _o = ({ options: e } = {}) => {
|
|
7967
|
-
const { receiveRebateApi: s } =
|
|
7977
|
+
const { receiveRebateApi: s } = qn();
|
|
7968
7978
|
return fe({
|
|
7969
7979
|
mutationKey: ["receiveRebate"],
|
|
7970
7980
|
mutationFn: async () => s(),
|
|
@@ -8199,14 +8209,14 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8199
8209
|
userRebate: a,
|
|
8200
8210
|
userBindCard: t
|
|
8201
8211
|
};
|
|
8202
|
-
},
|
|
8212
|
+
}, jn = () => {
|
|
8203
8213
|
const { client: e } = te(), s = I(async () => await e.get("/vip/list"), [e]), n = I(async () => await e.get("/vip/check"), [e]);
|
|
8204
8214
|
return {
|
|
8205
8215
|
vipListApi: s,
|
|
8206
8216
|
vipInfoApi: n
|
|
8207
8217
|
};
|
|
8208
8218
|
}, Um = ({ options: e } = {}) => {
|
|
8209
|
-
const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } =
|
|
8219
|
+
const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } = jn();
|
|
8210
8220
|
return ee({
|
|
8211
8221
|
queryKey: ["vipInfo"],
|
|
8212
8222
|
queryFn: async () => i(),
|
|
@@ -8221,7 +8231,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8221
8231
|
...e
|
|
8222
8232
|
});
|
|
8223
8233
|
}, Go = ({ options: e } = {}) => {
|
|
8224
|
-
const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } =
|
|
8234
|
+
const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } = jn();
|
|
8225
8235
|
return ee({
|
|
8226
8236
|
queryKey: ["vipList"],
|
|
8227
8237
|
queryFn: async () => {
|
|
@@ -8343,7 +8353,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8343
8353
|
gameImageUrl: h,
|
|
8344
8354
|
gameImageUrlAnimated: S
|
|
8345
8355
|
};
|
|
8346
|
-
}, Mo = (e, s = !1) =>
|
|
8356
|
+
}, Mo = (e, s = !1) => nl([
|
|
8347
8357
|
"EVO",
|
|
8348
8358
|
"IMSPRIBE",
|
|
8349
8359
|
"SABA",
|
|
@@ -8417,7 +8427,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8417
8427
|
allGamePlatform: i = [],
|
|
8418
8428
|
allGameList: p = {}
|
|
8419
8429
|
} = {}) => !Array.isArray(e) || !Array.isArray(s) ? {} : e.reduce((d, C) => {
|
|
8420
|
-
const c =
|
|
8430
|
+
const c = Sn(n, C);
|
|
8421
8431
|
if (!c) return d;
|
|
8422
8432
|
const g = p[c] || [], a = s.reduce((t, m) => {
|
|
8423
8433
|
const l = dl({
|
|
@@ -8468,7 +8478,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8468
8478
|
};
|
|
8469
8479
|
}), y = Oo(m, i), b = Bo(U), v = Ho(b), h = bn(U).reduce(
|
|
8470
8480
|
(D, [O, k]) => {
|
|
8471
|
-
const x = hi(
|
|
8481
|
+
const x = hi(ll(k));
|
|
8472
8482
|
return D[O] = x, D;
|
|
8473
8483
|
},
|
|
8474
8484
|
{}
|
|
@@ -35108,7 +35118,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
35108
35118
|
n && Zo(!0);
|
|
35109
35119
|
}, [n]);
|
|
35110
35120
|
const i = Vo({ enabled: s });
|
|
35111
|
-
return /* @__PURE__ */ Oa.jsx(
|
|
35121
|
+
return /* @__PURE__ */ Oa.jsx(xn.Provider, { value: i, children: e });
|
|
35112
35122
|
};
|
|
35113
35123
|
function hm({
|
|
35114
35124
|
children: e,
|
|
@@ -35121,7 +35131,7 @@ function hm({
|
|
|
35121
35131
|
() => mt({ ...p, formData: !0 }),
|
|
35122
35132
|
[p]
|
|
35123
35133
|
), c = wa(
|
|
35124
|
-
() => new
|
|
35134
|
+
() => new el({
|
|
35125
35135
|
defaultOptions: {
|
|
35126
35136
|
queries: {
|
|
35127
35137
|
refetchOnWindowFocus: !1,
|
|
@@ -35131,12 +35141,12 @@ function hm({
|
|
|
35131
35141
|
}),
|
|
35132
35142
|
[]
|
|
35133
35143
|
), g = i || c;
|
|
35134
|
-
return /* @__PURE__ */ Oa.jsx(
|
|
35144
|
+
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
35145
|
}
|
|
35136
35146
|
export {
|
|
35137
35147
|
Cn as ApiCtx,
|
|
35138
35148
|
hm as ApiProvider,
|
|
35139
|
-
|
|
35149
|
+
xn as GamesInfoCtx,
|
|
35140
35150
|
Ao as buildMultiTypes,
|
|
35141
35151
|
vm as buildMultiTypesWithSubTypes,
|
|
35142
35152
|
dl as buildSinglePlatformWithSubTypes,
|
|
@@ -35147,10 +35157,10 @@ export {
|
|
|
35147
35157
|
Fo as extractGameSubTypeNames,
|
|
35148
35158
|
Po as extractGameTypeNames,
|
|
35149
35159
|
_n as extractPlatformNames,
|
|
35150
|
-
|
|
35151
|
-
|
|
35152
|
-
|
|
35153
|
-
|
|
35160
|
+
Nn as filterGamesByPlatform,
|
|
35161
|
+
Sn as findGameTypeUid,
|
|
35162
|
+
Dn as findPlatformUid,
|
|
35163
|
+
En as findSubPlatform,
|
|
35154
35164
|
Ro as flattenAllGames,
|
|
35155
35165
|
wo as flattenFavoriteGames,
|
|
35156
35166
|
Xo as formatNumber,
|