@obb871001/api-integration-sdk 1.0.214 → 1.0.216
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 +85 -97
- 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 Yn, useMutation as fe, QueryClient as Xn, QueryClientProvider as el } from "@tanstack/react-query";
|
|
3
|
+
import al 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 il, replace as it, includes as tl, isObject as Ti, flatMap as hi, values as nl, keys as tt } from "lodash";
|
|
5
|
+
import ll 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 rl(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 ol(e) {
|
|
|
33
33
|
}
|
|
34
34
|
var Ra = { exports: {} }, _a = {};
|
|
35
35
|
var nt;
|
|
36
|
-
function
|
|
36
|
+
function ol() {
|
|
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 ml() {
|
|
|
48
48
|
}
|
|
49
49
|
var fa = {};
|
|
50
50
|
var lt;
|
|
51
|
-
function
|
|
51
|
+
function ml() {
|
|
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(Qn) {
|
|
615
|
+
return Qn !== "key";
|
|
616
616
|
}), Ri = Ce.length > 0 ? "{key: someKey, " + Ce.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!ca[$e + Ri]) {
|
|
618
|
-
var
|
|
618
|
+
var $n = 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, $n, $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, jn = Ne;
|
|
637
|
+
fa.Fragment = i, fa.jsx = Mi, fa.jsxs = jn;
|
|
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 sl() {
|
|
642
|
+
return rt || (rt = 1, process.env.NODE_ENV === "production" ? Ra.exports = ol() : Ra.exports = ml()), Ra.exports;
|
|
643
643
|
}
|
|
644
|
-
var Oa =
|
|
644
|
+
var Oa = sl();
|
|
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", ul = {
|
|
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 = al.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: ul[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 kn = fn(null), Qo = () => {
|
|
728
|
+
const e = Un(kn);
|
|
729
729
|
if (!e)
|
|
730
730
|
throw new Error(
|
|
731
731
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
@@ -757,7 +757,7 @@ const xn = fn(null), Qo = () => {
|
|
|
757
757
|
minimumFractionDigits: 2,
|
|
758
758
|
maximumFractionDigits: 2
|
|
759
759
|
}).format(s);
|
|
760
|
-
},
|
|
760
|
+
}, xn = (e = [], s) => Ae(e, { gameTypeName: s })?.gameTypeUid, Sn = (e = [], s) => Ae(e, { platform: s })?.platformUid, Dn = (e = [], s) => Ae(e, { SubPlatformEnum: s }), En = (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 xn = fn(null), Qo = () => {
|
|
|
767
767
|
allGameTypes: i,
|
|
768
768
|
allPlatforms: p
|
|
769
769
|
}) => {
|
|
770
|
-
const d =
|
|
770
|
+
const d = xn(i, e);
|
|
771
771
|
return d ? s.reduce((C, c) => {
|
|
772
|
-
const g =
|
|
772
|
+
const g = Sn(p, c), a = Dn(p, c), t = n[d] || [], m = En(
|
|
773
773
|
t,
|
|
774
774
|
g,
|
|
775
775
|
a
|
|
@@ -781,7 +781,7 @@ const xn = fn(null), Qo = () => {
|
|
|
781
781
|
gamesOfType: s = [],
|
|
782
782
|
allPlatforms: n = []
|
|
783
783
|
}) => {
|
|
784
|
-
const i =
|
|
784
|
+
const i = Sn(n, e), p = Dn(n, e), d = En(
|
|
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__ */ rl(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 Nn() {
|
|
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 Ln() {
|
|
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(), Ln());
|
|
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($(), Nn(), 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(), Nn(), Vi(), Pl(), Ln(), 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 Gn = Er();
|
|
6049
|
+
const Qe = /* @__PURE__ */ zi(Gn), 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 Mn() {
|
|
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 = Mn(), 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 = Mn(), 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 = ll, 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 = Yn(), g = Ze(C), a = et(!1), t = et(s), m = De(i, "uid", null), {
|
|
7153
7153
|
sendMessage: l,
|
|
7154
7154
|
// 發送普通訊息
|
|
7155
7155
|
sendJsonMessage: r,
|
|
@@ -7173,7 +7173,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7173
7173
|
} catch {
|
|
7174
7174
|
return null;
|
|
7175
7175
|
}
|
|
7176
|
-
}, [o
|
|
7176
|
+
}, [o]);
|
|
7177
7177
|
ba(() => {
|
|
7178
7178
|
const u = setInterval(
|
|
7179
7179
|
() => l("ping"),
|
|
@@ -7181,20 +7181,8 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7181
7181
|
);
|
|
7182
7182
|
return () => clearInterval(u);
|
|
7183
7183
|
}, [l]);
|
|
7184
|
-
const U = I(
|
|
7185
|
-
|
|
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
|
-
);
|
|
7184
|
+
const U = I(() => {
|
|
7185
|
+
}, [d, p, g]);
|
|
7198
7186
|
return ba(() => {
|
|
7199
7187
|
t.current = s;
|
|
7200
7188
|
}, [s]), ba(() => {
|
|
@@ -7532,7 +7520,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7532
7520
|
inboxListQuery: s,
|
|
7533
7521
|
readInboxMutation: n
|
|
7534
7522
|
};
|
|
7535
|
-
},
|
|
7523
|
+
}, Rn = () => {
|
|
7536
7524
|
const { client: e } = te();
|
|
7537
7525
|
return {
|
|
7538
7526
|
newsListApi: I(
|
|
@@ -7589,7 +7577,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7589
7577
|
...e.other
|
|
7590
7578
|
}
|
|
7591
7579
|
], um = ({ options: e, formData: s } = {}) => {
|
|
7592
|
-
const { lng: n } = te(), { newsListApi: i } =
|
|
7580
|
+
const { lng: n } = te(), { newsListApi: i } = Rn(), p = Ze(n);
|
|
7593
7581
|
return ee({
|
|
7594
7582
|
queryKey: ["newsList"],
|
|
7595
7583
|
queryFn: () => {
|
|
@@ -7615,7 +7603,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7615
7603
|
...e
|
|
7616
7604
|
});
|
|
7617
7605
|
}, pm = ({ options: e, formData: s } = {}) => {
|
|
7618
|
-
const { lng: n } = te(), { newsListApi: i } =
|
|
7606
|
+
const { lng: n } = te(), { newsListApi: i } = Rn(), p = Ze(n);
|
|
7619
7607
|
return ee({
|
|
7620
7608
|
queryKey: ["newsList"],
|
|
7621
7609
|
queryFn: () => {
|
|
@@ -7676,7 +7664,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7676
7664
|
withdrawal_amount: t,
|
|
7677
7665
|
bank_account_number: m,
|
|
7678
7666
|
currency_code: l,
|
|
7679
|
-
withdrawal_code:
|
|
7667
|
+
withdrawal_code: Gn.MD5(r).toString(),
|
|
7680
7668
|
payment_type: "ThirdParty"
|
|
7681
7669
|
}
|
|
7682
7670
|
});
|
|
@@ -7829,10 +7817,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7829
7817
|
eventTransaction: o,
|
|
7830
7818
|
withdrawTransaction: f
|
|
7831
7819
|
};
|
|
7832
|
-
},
|
|
7820
|
+
}, Pn = "3.7.8", io = Pn, 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) => {
|
|
7833
7821
|
let s = {};
|
|
7834
7822
|
return e.forEach((n, i) => s[n] = i), s;
|
|
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)),
|
|
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)), Fn = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (s) => s == "+" ? "-" : "_"), wn = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), On = (e) => {
|
|
7836
7824
|
let s, n, i, p, d = "";
|
|
7837
7825
|
const C = e.length % 3;
|
|
7838
7826
|
for (let c = 0; c < e.length; ) {
|
|
@@ -7841,12 +7829,12 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7841
7829
|
s = n << 16 | i << 8 | p, d += Ca[s >> 18 & 63] + Ca[s >> 12 & 63] + Ca[s >> 6 & 63] + Ca[s & 63];
|
|
7842
7830
|
}
|
|
7843
7831
|
return C ? d.slice(0, C - 3) + "===".substring(C) : d;
|
|
7844
|
-
}, Yi = typeof btoa == "function" ? (e) => btoa(e) : sa ? (e) => Buffer.from(e, "binary").toString("base64") :
|
|
7832
|
+
}, Yi = typeof btoa == "function" ? (e) => btoa(e) : sa ? (e) => Buffer.from(e, "binary").toString("base64") : On, Hi = sa ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
7845
7833
|
let n = [];
|
|
7846
7834
|
for (let i = 0, p = e.length; i < p; i += 4096)
|
|
7847
7835
|
n.push(ue.apply(null, e.subarray(i, i + 4096)));
|
|
7848
7836
|
return Yi(n.join(""));
|
|
7849
|
-
}, vi = (e, s = !1) => s ?
|
|
7837
|
+
}, vi = (e, s = !1) => s ? Fn(Hi(e)) : Hi(e), lo = (e) => {
|
|
7850
7838
|
if (e.length < 2) {
|
|
7851
7839
|
var s = e.charCodeAt(0);
|
|
7852
7840
|
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);
|
|
@@ -7854,7 +7842,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7854
7842
|
var s = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
7855
7843
|
return ue(240 | s >>> 18 & 7) + ue(128 | s >>> 12 & 63) + ue(128 | s >>> 6 & 63) + ue(128 | s & 63);
|
|
7856
7844
|
}
|
|
7857
|
-
}, ro = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,
|
|
7845
|
+
}, ro = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, An = (e) => e.replace(ro, lo), pn = sa ? (e) => Buffer.from(e, "utf8").toString("base64") : sn ? (e) => Hi(sn.encode(e)) : (e) => Yi(An(e)), ma = (e, s = !1) => s ? Fn(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) => {
|
|
7858
7846
|
switch (e.length) {
|
|
7859
7847
|
case 4:
|
|
7860
7848
|
var s = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), n = s - 65536;
|
|
@@ -7864,7 +7852,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7864
7852
|
default:
|
|
7865
7853
|
return ue((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
7866
7854
|
}
|
|
7867
|
-
},
|
|
7855
|
+
}, Bn = (e) => e.replace(oo, mo), Hn = (e) => {
|
|
7868
7856
|
if (e = e.replace(/\s+/g, ""), !no.test(e))
|
|
7869
7857
|
throw new TypeError("malformed base64.");
|
|
7870
7858
|
e += "==".slice(2 - (e.length & 3));
|
|
@@ -7872,18 +7860,18 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7872
7860
|
for (let d = 0; d < e.length; )
|
|
7873
7861
|
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));
|
|
7874
7862
|
return p.join("");
|
|
7875
|
-
}, Xi = typeof atob == "function" ? (e) => atob(
|
|
7863
|
+
}, Xi = typeof atob == "function" ? (e) => atob(wn(e)) : sa ? (e) => Buffer.from(e, "base64").toString("binary") : Hn, Wn = sa ? (e) => un(Buffer.from(e, "base64")) : (e) => un(Xi(e).split("").map((s) => s.charCodeAt(0))), zn = (e) => Wn(Vn(e)), so = sa ? (e) => Buffer.from(e, "base64").toString("utf8") : mn ? (e) => mn.decode(Wn(e)) : (e) => Bn(Xi(e)), Vn = (e) => wn(e.replace(/[-_]/g, (s) => s == "-" ? "+" : "/")), Wi = (e) => so(Vn(e)), uo = (e) => {
|
|
7876
7864
|
if (typeof e != "string")
|
|
7877
7865
|
return !1;
|
|
7878
7866
|
const s = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
7879
7867
|
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
7880
|
-
},
|
|
7868
|
+
}, Zn = (e) => ({
|
|
7881
7869
|
value: e,
|
|
7882
7870
|
enumerable: !1,
|
|
7883
7871
|
writable: !0,
|
|
7884
7872
|
configurable: !0
|
|
7885
|
-
}),
|
|
7886
|
-
const e = (s, n) => Object.defineProperty(String.prototype, s,
|
|
7873
|
+
}), Jn = function() {
|
|
7874
|
+
const e = (s, n) => Object.defineProperty(String.prototype, s, Zn(n));
|
|
7887
7875
|
e("fromBase64", function() {
|
|
7888
7876
|
return Wi(this);
|
|
7889
7877
|
}), e("toBase64", function(s) {
|
|
@@ -7893,10 +7881,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7893
7881
|
}), e("toBase64URL", function() {
|
|
7894
7882
|
return ma(this, !0);
|
|
7895
7883
|
}), e("toUint8Array", function() {
|
|
7896
|
-
return
|
|
7884
|
+
return zn(this);
|
|
7897
7885
|
});
|
|
7898
|
-
},
|
|
7899
|
-
const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s,
|
|
7886
|
+
}, In = function() {
|
|
7887
|
+
const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s, Zn(n));
|
|
7900
7888
|
e("toBase64", function(s) {
|
|
7901
7889
|
return vi(this, s);
|
|
7902
7890
|
}), e("toBase64URI", function() {
|
|
@@ -7905,27 +7893,27 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7905
7893
|
return vi(this, !0);
|
|
7906
7894
|
});
|
|
7907
7895
|
}, po = () => {
|
|
7908
|
-
|
|
7896
|
+
Jn(), In();
|
|
7909
7897
|
}, go = {
|
|
7910
|
-
version:
|
|
7898
|
+
version: Pn,
|
|
7911
7899
|
VERSION: io,
|
|
7912
7900
|
atob: Xi,
|
|
7913
|
-
atobPolyfill:
|
|
7901
|
+
atobPolyfill: Hn,
|
|
7914
7902
|
btoa: Yi,
|
|
7915
|
-
btoaPolyfill:
|
|
7903
|
+
btoaPolyfill: On,
|
|
7916
7904
|
fromBase64: Wi,
|
|
7917
7905
|
toBase64: ma,
|
|
7918
7906
|
encode: ma,
|
|
7919
7907
|
encodeURI: gn,
|
|
7920
7908
|
encodeURL: gn,
|
|
7921
|
-
utob:
|
|
7922
|
-
btou:
|
|
7909
|
+
utob: An,
|
|
7910
|
+
btou: Bn,
|
|
7923
7911
|
decode: Wi,
|
|
7924
7912
|
isValid: uo,
|
|
7925
7913
|
fromUint8Array: vi,
|
|
7926
|
-
toUint8Array:
|
|
7927
|
-
extendString:
|
|
7928
|
-
extendUint8Array:
|
|
7914
|
+
toUint8Array: zn,
|
|
7915
|
+
extendString: Jn,
|
|
7916
|
+
extendUint8Array: In,
|
|
7929
7917
|
extendBuiltins: po
|
|
7930
7918
|
}, dm = (e, s) => {
|
|
7931
7919
|
const { playGameApi: n } = Ji();
|
|
@@ -7961,22 +7949,22 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
7961
7949
|
enabled: !!e?.gameCode,
|
|
7962
7950
|
...s
|
|
7963
7951
|
});
|
|
7964
|
-
},
|
|
7952
|
+
}, Kn = () => {
|
|
7965
7953
|
const { client: e } = te(), s = I(async () => await e.get("/rebate"), [e]), n = I(async () => await e.post("/withdraw/rebate"), [e]);
|
|
7966
7954
|
return {
|
|
7967
7955
|
currentRebateApi: s,
|
|
7968
7956
|
receiveRebateApi: n
|
|
7969
7957
|
};
|
|
7970
7958
|
}, co = ({ options: e } = {}) => {
|
|
7971
|
-
const { currentRebateApi: s } =
|
|
7959
|
+
const { currentRebateApi: s } = Kn();
|
|
7972
7960
|
return ee({
|
|
7973
7961
|
queryKey: ["currentRebate"],
|
|
7974
7962
|
queryFn: () => s(),
|
|
7975
|
-
select: (n) =>
|
|
7963
|
+
select: (n) => il(n, ["code", "status"]),
|
|
7976
7964
|
...e
|
|
7977
7965
|
});
|
|
7978
7966
|
}, _o = ({ options: e } = {}) => {
|
|
7979
|
-
const { receiveRebateApi: s } =
|
|
7967
|
+
const { receiveRebateApi: s } = Kn();
|
|
7980
7968
|
return fe({
|
|
7981
7969
|
mutationKey: ["receiveRebate"],
|
|
7982
7970
|
mutationFn: async () => s(),
|
|
@@ -8211,14 +8199,14 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8211
8199
|
userRebate: a,
|
|
8212
8200
|
userBindCard: t
|
|
8213
8201
|
};
|
|
8214
|
-
},
|
|
8202
|
+
}, qn = () => {
|
|
8215
8203
|
const { client: e } = te(), s = I(async () => await e.get("/vip/list"), [e]), n = I(async () => await e.get("/vip/check"), [e]);
|
|
8216
8204
|
return {
|
|
8217
8205
|
vipListApi: s,
|
|
8218
8206
|
vipInfoApi: n
|
|
8219
8207
|
};
|
|
8220
8208
|
}, Um = ({ options: e } = {}) => {
|
|
8221
|
-
const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } =
|
|
8209
|
+
const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } = qn();
|
|
8222
8210
|
return ee({
|
|
8223
8211
|
queryKey: ["vipInfo"],
|
|
8224
8212
|
queryFn: async () => i(),
|
|
@@ -8233,7 +8221,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8233
8221
|
...e
|
|
8234
8222
|
});
|
|
8235
8223
|
}, Go = ({ options: e } = {}) => {
|
|
8236
|
-
const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } =
|
|
8224
|
+
const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } = qn();
|
|
8237
8225
|
return ee({
|
|
8238
8226
|
queryKey: ["vipList"],
|
|
8239
8227
|
queryFn: async () => {
|
|
@@ -8355,7 +8343,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8355
8343
|
gameImageUrl: h,
|
|
8356
8344
|
gameImageUrlAnimated: S
|
|
8357
8345
|
};
|
|
8358
|
-
}, Mo = (e, s = !1) =>
|
|
8346
|
+
}, Mo = (e, s = !1) => tl([
|
|
8359
8347
|
"EVO",
|
|
8360
8348
|
"IMSPRIBE",
|
|
8361
8349
|
"SABA",
|
|
@@ -8429,7 +8417,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8429
8417
|
allGamePlatform: i = [],
|
|
8430
8418
|
allGameList: p = {}
|
|
8431
8419
|
} = {}) => !Array.isArray(e) || !Array.isArray(s) ? {} : e.reduce((d, C) => {
|
|
8432
|
-
const c =
|
|
8420
|
+
const c = xn(n, C);
|
|
8433
8421
|
if (!c) return d;
|
|
8434
8422
|
const g = p[c] || [], a = s.reduce((t, m) => {
|
|
8435
8423
|
const l = dl({
|
|
@@ -8480,7 +8468,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
8480
8468
|
};
|
|
8481
8469
|
}), y = Oo(m, i), b = Bo(U), v = Ho(b), h = bn(U).reduce(
|
|
8482
8470
|
(D, [O, k]) => {
|
|
8483
|
-
const x = hi(
|
|
8471
|
+
const x = hi(nl(k));
|
|
8484
8472
|
return D[O] = x, D;
|
|
8485
8473
|
},
|
|
8486
8474
|
{}
|
|
@@ -35120,7 +35108,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
|
|
|
35120
35108
|
n && Zo(!0);
|
|
35121
35109
|
}, [n]);
|
|
35122
35110
|
const i = Vo({ enabled: s });
|
|
35123
|
-
return /* @__PURE__ */ Oa.jsx(
|
|
35111
|
+
return /* @__PURE__ */ Oa.jsx(kn.Provider, { value: i, children: e });
|
|
35124
35112
|
};
|
|
35125
35113
|
function hm({
|
|
35126
35114
|
children: e,
|
|
@@ -35133,7 +35121,7 @@ function hm({
|
|
|
35133
35121
|
() => mt({ ...p, formData: !0 }),
|
|
35134
35122
|
[p]
|
|
35135
35123
|
), c = wa(
|
|
35136
|
-
() => new
|
|
35124
|
+
() => new Xn({
|
|
35137
35125
|
defaultOptions: {
|
|
35138
35126
|
queries: {
|
|
35139
35127
|
refetchOnWindowFocus: !1,
|
|
@@ -35143,12 +35131,12 @@ function hm({
|
|
|
35143
35131
|
}),
|
|
35144
35132
|
[]
|
|
35145
35133
|
), g = i || c;
|
|
35146
|
-
return /* @__PURE__ */ Oa.jsx(
|
|
35134
|
+
return /* @__PURE__ */ Oa.jsx(el, { 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 }) }) });
|
|
35147
35135
|
}
|
|
35148
35136
|
export {
|
|
35149
35137
|
Cn as ApiCtx,
|
|
35150
35138
|
hm as ApiProvider,
|
|
35151
|
-
|
|
35139
|
+
kn as GamesInfoCtx,
|
|
35152
35140
|
Ao as buildMultiTypes,
|
|
35153
35141
|
vm as buildMultiTypesWithSubTypes,
|
|
35154
35142
|
dl as buildSinglePlatformWithSubTypes,
|
|
@@ -35159,10 +35147,10 @@ export {
|
|
|
35159
35147
|
Fo as extractGameSubTypeNames,
|
|
35160
35148
|
Po as extractGameTypeNames,
|
|
35161
35149
|
_n as extractPlatformNames,
|
|
35162
|
-
|
|
35163
|
-
|
|
35164
|
-
|
|
35165
|
-
|
|
35150
|
+
En as filterGamesByPlatform,
|
|
35151
|
+
xn as findGameTypeUid,
|
|
35152
|
+
Sn as findPlatformUid,
|
|
35153
|
+
Dn as findSubPlatform,
|
|
35166
35154
|
Ro as flattenAllGames,
|
|
35167
35155
|
wo as flattenFavoriteGames,
|
|
35168
35156
|
Xo as formatNumber,
|