@obb871001/api-integration-sdk 1.0.235 → 1.0.236
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 +95 -93
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import xa, { createContext as Ji, useContext as Ii, useState as
|
|
2
|
-
import { useQueries as Cn, useQuery as X, useQueryClient as
|
|
3
|
-
import
|
|
4
|
-
import { get as me, find as Le, isEmpty as se, entries as vn, map as Te, isArray as Ge, toLower as lt, omit as
|
|
5
|
-
import
|
|
1
|
+
import xa, { createContext as Ji, useContext as Ii, useState as il, useMemo as ha, useCallback as J, useRef as wi, useEffect as ma } from "react";
|
|
2
|
+
import { useQueries as Cn, useQuery as X, useQueryClient as tl, useMutation as _e, QueryClient as nl, QueryClientProvider as ll } from "@tanstack/react-query";
|
|
3
|
+
import rl from "axios";
|
|
4
|
+
import { get as me, find as Le, isEmpty as se, entries as vn, map as Te, isArray as Ge, toLower as lt, omit as ol, replace as rt, includes as ml, isObject as ki, flatMap as xi, values as sl, keys as ot } from "lodash";
|
|
5
|
+
import ul from "react-dom";
|
|
6
6
|
var Oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function Ki(e) {
|
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function pl(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 sl(e) {
|
|
|
33
33
|
}
|
|
34
34
|
var Oa = { exports: {} }, Ua = {};
|
|
35
35
|
var mt;
|
|
36
|
-
function
|
|
36
|
+
function gl() {
|
|
37
37
|
if (mt) return Ua;
|
|
38
38
|
mt = 1;
|
|
39
39
|
var e = xa, 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, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -48,7 +48,7 @@ function ul() {
|
|
|
48
48
|
}
|
|
49
49
|
var ya = {};
|
|
50
50
|
var st;
|
|
51
|
-
function
|
|
51
|
+
function dl() {
|
|
52
52
|
return st || (st = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
53
|
var e = xa, s = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), t = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), l = Symbol.for("react.lazy"), r = Symbol.for("react.offscreen"), m = Symbol.iterator, _ = "@@iterator";
|
|
54
54
|
function f(T) {
|
|
@@ -611,17 +611,17 @@ Check the top-level render call using <` + V + ">.");
|
|
|
611
611
|
Pa(Se, T);
|
|
612
612
|
}
|
|
613
613
|
if (De.call(H, "key")) {
|
|
614
|
-
var $e = G(T), ve = Object.keys(H).filter(function(
|
|
615
|
-
return
|
|
614
|
+
var $e = G(T), ve = Object.keys(H).filter(function(al) {
|
|
615
|
+
return al !== "key";
|
|
616
616
|
}), Fi = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!_a[$e + Fi]) {
|
|
618
|
-
var
|
|
618
|
+
var el = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
|
|
619
619
|
d(`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} />`, Fi, $e,
|
|
624
|
+
<%s key={someKey} {...props} />`, Fi, $e, el, $e), _a[$e + Fi] = !0;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
return T === i ? Ri(re) : Fa(re), re;
|
|
@@ -633,15 +633,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
633
633
|
function wa(T, H, V) {
|
|
634
634
|
return ce(T, H, V, !1);
|
|
635
635
|
}
|
|
636
|
-
var Pi = wa,
|
|
637
|
-
ya.Fragment = i, ya.jsx = Pi, ya.jsxs =
|
|
636
|
+
var Pi = wa, Xn = Ne;
|
|
637
|
+
ya.Fragment = i, ya.jsx = Pi, ya.jsxs = Xn;
|
|
638
638
|
})()), ya;
|
|
639
639
|
}
|
|
640
640
|
var ut;
|
|
641
|
-
function
|
|
642
|
-
return ut || (ut = 1, process.env.NODE_ENV === "production" ? Oa.exports =
|
|
641
|
+
function cl() {
|
|
642
|
+
return ut || (ut = 1, process.env.NODE_ENV === "production" ? Oa.exports = gl() : Oa.exports = dl()), Oa.exports;
|
|
643
643
|
}
|
|
644
|
-
var sa =
|
|
644
|
+
var sa = cl();
|
|
645
645
|
const Tn = Ji(null), te = () => {
|
|
646
646
|
const e = Ii(Tn);
|
|
647
647
|
if (!e)
|
|
@@ -650,8 +650,8 @@ const Tn = Ji(null), te = () => {
|
|
|
650
650
|
}, ba = {
|
|
651
651
|
READY: "ready",
|
|
652
652
|
PENDING: "pending"
|
|
653
|
-
}, hn = Ji(null),
|
|
654
|
-
const [s, n] =
|
|
653
|
+
}, hn = Ji(null), fl = ({ children: e }) => {
|
|
654
|
+
const [s, n] = il(ba.PENDING), i = ha(() => {
|
|
655
655
|
const p = s === ba.READY, g = s === ba.PENDING;
|
|
656
656
|
return {
|
|
657
657
|
status: s,
|
|
@@ -687,7 +687,7 @@ const Tn = Ji(null), te = () => {
|
|
|
687
687
|
default:
|
|
688
688
|
return e;
|
|
689
689
|
}
|
|
690
|
-
}, Be = "https://d1h3qe8voog6w4.cloudfront.net", pt = "https://d3jx2uvukujuvn.cloudfront.net",
|
|
690
|
+
}, Be = "https://d1h3qe8voog6w4.cloudfront.net", pt = "https://d3jx2uvukujuvn.cloudfront.net", xn = (e) => `${Be}/reward_icon/${e}.avif`, Sn = () => `${Be}/reward_icon/background_deposit.avif`, Dn = "ds88platformIcon", ka = {
|
|
691
691
|
zh_TW: "系統提示",
|
|
692
692
|
zh_CN: "系统提示",
|
|
693
693
|
en_US: "System Prompt",
|
|
@@ -707,7 +707,7 @@ function gt({
|
|
|
707
707
|
currency: c,
|
|
708
708
|
toasterOpen: u = !1
|
|
709
709
|
} = {}) {
|
|
710
|
-
const a =
|
|
710
|
+
const a = rl.create({
|
|
711
711
|
baseURL: e,
|
|
712
712
|
timeout: n,
|
|
713
713
|
headers: {
|
|
@@ -745,8 +745,8 @@ function gt({
|
|
|
745
745
|
}
|
|
746
746
|
), a;
|
|
747
747
|
}
|
|
748
|
-
const
|
|
749
|
-
const e = Ii(
|
|
748
|
+
const En = Ji(null), nm = () => {
|
|
749
|
+
const e = Ii(En);
|
|
750
750
|
if (!e)
|
|
751
751
|
throw new Error(
|
|
752
752
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
@@ -778,7 +778,7 @@ const Sn = Ji(null), nm = () => {
|
|
|
778
778
|
minimumFractionDigits: 2,
|
|
779
779
|
maximumFractionDigits: 2
|
|
780
780
|
}).format(s);
|
|
781
|
-
},
|
|
781
|
+
}, Nn = (e = [], s) => Le(e, { gameTypeName: s })?.gameTypeUid, Ln = (e = [], s) => Le(e, { platform: s })?.platformUid, Gn = (e = [], s) => Le(e, { SubPlatformEnum: s }), Mn = (e = [], s, n) => se(e) ? [] : e.filter((i) => n ? String(i?.SubPlatformEnumUid) === String(n?.SubPlatformEnumUid) : String(i.platformUid) === String(s)), _l = (e = []) => se(e) ? {} : e.reduce((s, n) => {
|
|
782
782
|
const i = n?.game_subtype || "UNKNOWN";
|
|
783
783
|
return s[i] || (s[i] = []), s[i].push(n), s;
|
|
784
784
|
}, {}), Ul = ({
|
|
@@ -788,9 +788,9 @@ const Sn = Ji(null), nm = () => {
|
|
|
788
788
|
allGameTypes: i,
|
|
789
789
|
allPlatforms: p
|
|
790
790
|
}) => {
|
|
791
|
-
const g =
|
|
791
|
+
const g = Nn(i, e);
|
|
792
792
|
return g ? s.reduce((C, c) => {
|
|
793
|
-
const u =
|
|
793
|
+
const u = Ln(p, c), a = Gn(p, c), t = n[g] || [], o = Mn(
|
|
794
794
|
t,
|
|
795
795
|
u,
|
|
796
796
|
a
|
|
@@ -802,7 +802,7 @@ const Sn = Ji(null), nm = () => {
|
|
|
802
802
|
gamesOfType: s = [],
|
|
803
803
|
allPlatforms: n = []
|
|
804
804
|
}) => {
|
|
805
|
-
const i =
|
|
805
|
+
const i = Ln(n, e), p = Gn(n, e), g = Mn(
|
|
806
806
|
s,
|
|
807
807
|
i,
|
|
808
808
|
p
|
|
@@ -1097,7 +1097,7 @@ var za = { exports: {} };
|
|
|
1097
1097
|
const hl = {}, kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1098
1098
|
__proto__: null,
|
|
1099
1099
|
default: hl
|
|
1100
|
-
}, Symbol.toStringTag, { value: "Module" })), xl = /* @__PURE__ */
|
|
1100
|
+
}, Symbol.toStringTag, { value: "Module" })), xl = /* @__PURE__ */ pl(kl);
|
|
1101
1101
|
var Sl = za.exports, ct;
|
|
1102
1102
|
function $() {
|
|
1103
1103
|
return ct || (ct = 1, (function(e, s) {
|
|
@@ -2169,7 +2169,7 @@ function ta() {
|
|
|
2169
2169
|
})(qa)), qa.exports;
|
|
2170
2170
|
}
|
|
2171
2171
|
var ja = { exports: {} }, wl = ja.exports, vt;
|
|
2172
|
-
function
|
|
2172
|
+
function Rn() {
|
|
2173
2173
|
return vt || (vt = 1, (function(e, s) {
|
|
2174
2174
|
(function(n, i) {
|
|
2175
2175
|
e.exports = i($());
|
|
@@ -2295,7 +2295,7 @@ function Bl() {
|
|
|
2295
2295
|
})(Qa)), Qa.exports;
|
|
2296
2296
|
}
|
|
2297
2297
|
var Ya = { exports: {} }, Hl = Ya.exports, kt;
|
|
2298
|
-
function
|
|
2298
|
+
function Pn() {
|
|
2299
2299
|
return kt || (kt = 1, (function(e, s) {
|
|
2300
2300
|
(function(n, i, p) {
|
|
2301
2301
|
e.exports = i($(), Si());
|
|
@@ -2439,7 +2439,7 @@ var Xa = { exports: {} }, Wl = Xa.exports, xt;
|
|
|
2439
2439
|
function zl() {
|
|
2440
2440
|
return xt || (xt = 1, (function(e, s) {
|
|
2441
2441
|
(function(n, i, p) {
|
|
2442
|
-
e.exports = i($(), Si(),
|
|
2442
|
+
e.exports = i($(), Si(), Pn());
|
|
2443
2443
|
})(Wl, function(n) {
|
|
2444
2444
|
return (function() {
|
|
2445
2445
|
var i = n, p = i.x64, g = p.Word, C = p.WordArray, c = i.algo, u = c.SHA512, a = c.SHA384 = u.extend({
|
|
@@ -3107,7 +3107,7 @@ var ni = { exports: {} }, $l = ni.exports, Lt;
|
|
|
3107
3107
|
function Je() {
|
|
3108
3108
|
return Lt || (Lt = 1, (function(e, s) {
|
|
3109
3109
|
(function(n, i, p) {
|
|
3110
|
-
e.exports = i($(),
|
|
3110
|
+
e.exports = i($(), Rn(), ji());
|
|
3111
3111
|
})($l, function(n) {
|
|
3112
3112
|
return (function() {
|
|
3113
3113
|
var i = n, p = i.lib, g = p.Base, C = p.WordArray, c = i.algo, u = c.MD5, a = c.EvpKDF = g.extend({
|
|
@@ -6060,14 +6060,14 @@ var Mr = Wa.exports, jt;
|
|
|
6060
6060
|
function Rr() {
|
|
6061
6061
|
return jt || (jt = 1, (function(e, s) {
|
|
6062
6062
|
(function(n, i, p) {
|
|
6063
|
-
e.exports = i($(), Si(), Nl(), Gl(), ia(), Pl(), ta(),
|
|
6063
|
+
e.exports = i($(), Si(), Nl(), Gl(), ia(), Pl(), ta(), Rn(), qi(), Bl(), Pn(), zl(), Zl(), Il(), ji(), jl(), Je(), ue(), Xl(), ar(), tr(), lr(), or(), sr(), pr(), dr(), fr(), Ur(), br(), vr(), hr(), xr(), Dr(), Nr(), Gr());
|
|
6064
6064
|
})(Mr, function(n) {
|
|
6065
6065
|
return n;
|
|
6066
6066
|
});
|
|
6067
6067
|
})(Wa)), Wa.exports;
|
|
6068
6068
|
}
|
|
6069
|
-
var
|
|
6070
|
-
const Qe = /* @__PURE__ */ Ki(
|
|
6069
|
+
var Fn = Rr();
|
|
6070
|
+
const Qe = /* @__PURE__ */ Ki(Fn), Ye = (e) => {
|
|
6071
6071
|
const s = "mySecretPassphrase", n = Qe.lib.WordArray.random(16), i = Qe.PBKDF2(s, n, {
|
|
6072
6072
|
keySize: 128 / 32,
|
|
6073
6073
|
iterations: 1e3
|
|
@@ -6455,7 +6455,7 @@ function Yi() {
|
|
|
6455
6455
|
return we.setUpSocketIOPing = i, we;
|
|
6456
6456
|
}
|
|
6457
6457
|
var Aa = {}, Xt;
|
|
6458
|
-
function
|
|
6458
|
+
function wn() {
|
|
6459
6459
|
if (Xt) return Aa;
|
|
6460
6460
|
Xt = 1, Object.defineProperty(Aa, "__esModule", { value: !0 }), Aa.heartbeat = n;
|
|
6461
6461
|
var e = Me();
|
|
@@ -6542,7 +6542,7 @@ function wr() {
|
|
|
6542
6542
|
}, e.apply(this, arguments);
|
|
6543
6543
|
};
|
|
6544
6544
|
Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.attachListeners = void 0;
|
|
6545
|
-
var s = Yi(), n =
|
|
6545
|
+
var s = Yi(), n = wn(), i = Me(), p = et(), g = function(t, o, l, r) {
|
|
6546
6546
|
t.onmessage = function(m) {
|
|
6547
6547
|
var _;
|
|
6548
6548
|
o.current.onMessage && o.current.onMessage(m), typeof r?.current == "number" && (r.current = Date.now()), !(typeof o.current.filter == "function" && o.current.filter(m) !== !0) && (o.current.heartbeat && typeof o.current.heartbeat != "boolean" && ((_ = o.current.heartbeat) === null || _ === void 0 ? void 0 : _.returnMessage) === m.data || l(m));
|
|
@@ -6612,7 +6612,7 @@ function Or() {
|
|
|
6612
6612
|
}, e.apply(this, arguments);
|
|
6613
6613
|
};
|
|
6614
6614
|
Object.defineProperty(ea, "__esModule", { value: !0 }), ea.attachSharedListeners = void 0;
|
|
6615
|
-
var s = Qi(), n = Me(), i = Xi(), p = Yi(), g =
|
|
6615
|
+
var s = Qi(), n = Me(), i = Xi(), p = Yi(), g = wn(), C = function(o, l, r) {
|
|
6616
6616
|
o.onmessage = function(m) {
|
|
6617
6617
|
(0, i.getSubscribers)(l).forEach(function(_) {
|
|
6618
6618
|
var f;
|
|
@@ -6960,7 +6960,7 @@ function at() {
|
|
|
6960
6960
|
return l && l.__esModule ? l : { default: l };
|
|
6961
6961
|
};
|
|
6962
6962
|
Object.defineProperty(ke, "__esModule", { value: !0 }), ke.useWebSocket = void 0;
|
|
6963
|
-
var p = xa, g =
|
|
6963
|
+
var p = xa, g = ul, C = Me(), c = Ar(), u = Br(), a = i(Hr()), t = et(), o = function(l, r, m) {
|
|
6964
6964
|
r === void 0 && (r = C.DEFAULT_OPTIONS), m === void 0 && (m = !0);
|
|
6965
6965
|
var _ = (0, p.useState)(null), f = _[0], U = _[1], d = (0, p.useState)({}), y = d[0], b = d[1], v = (0, p.useMemo)(function() {
|
|
6966
6966
|
if (!r.disableJson && f)
|
|
@@ -7233,7 +7233,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
7233
7233
|
},
|
|
7234
7234
|
enableNotification: g = !1
|
|
7235
7235
|
}) => {
|
|
7236
|
-
const { store: C, lng: c } = te(), u =
|
|
7236
|
+
const { store: C, lng: c } = te(), u = tl(), { isReady: a, setAsReady: t, isPending: o, setAsPending: l } = kn(), r = He(c), m = wi(!1), _ = wi(s), f = me(i, "uid", null);
|
|
7237
7237
|
me(i, "testFunction", 0);
|
|
7238
7238
|
const U = me(
|
|
7239
7239
|
p,
|
|
@@ -7501,16 +7501,18 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
7501
7501
|
//數值基準
|
|
7502
7502
|
vipGroup: u.vip_group,
|
|
7503
7503
|
// VIP 群組
|
|
7504
|
-
tagsGroup: u.tags_group
|
|
7504
|
+
tagsGroup: u.tags_group,
|
|
7505
7505
|
//標籤群組
|
|
7506
|
+
eventBg: Sn(),
|
|
7507
|
+
eventIcon: xn(u.type)
|
|
7506
7508
|
}, r = {
|
|
7507
|
-
baseValue: t.
|
|
7509
|
+
baseValue: t.attribute_value,
|
|
7508
7510
|
//基礎數值
|
|
7509
|
-
isActive: t.
|
|
7511
|
+
isActive: t.attribute_is_active === 1,
|
|
7510
7512
|
//是否啟用
|
|
7511
7513
|
currencyCode: t.attribute_currency,
|
|
7512
7514
|
//幣別代碼
|
|
7513
|
-
value: t.
|
|
7515
|
+
value: t.attribute_value
|
|
7514
7516
|
//數值
|
|
7515
7517
|
}, m = {
|
|
7516
7518
|
baseValue: o.base_value,
|
|
@@ -7709,7 +7711,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
7709
7711
|
inboxListQuery: s,
|
|
7710
7712
|
readInboxMutation: n
|
|
7711
7713
|
};
|
|
7712
|
-
},
|
|
7714
|
+
}, On = () => {
|
|
7713
7715
|
const { client: e } = te();
|
|
7714
7716
|
return {
|
|
7715
7717
|
newsListApi: J(
|
|
@@ -7766,7 +7768,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
7766
7768
|
...e.other
|
|
7767
7769
|
}
|
|
7768
7770
|
], Um = ({ options: e, formData: s } = {}) => {
|
|
7769
|
-
const { lng: n } = te(), { newsListApi: i } =
|
|
7771
|
+
const { lng: n } = te(), { newsListApi: i } = On(), p = He(n);
|
|
7770
7772
|
return X({
|
|
7771
7773
|
queryKey: ["newsList"],
|
|
7772
7774
|
queryFn: () => {
|
|
@@ -7792,7 +7794,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
7792
7794
|
...e
|
|
7793
7795
|
});
|
|
7794
7796
|
}, ym = ({ options: e, formData: s } = {}) => {
|
|
7795
|
-
const { lng: n } = te(), { newsListApi: i } =
|
|
7797
|
+
const { lng: n } = te(), { newsListApi: i } = On(), p = He(n);
|
|
7796
7798
|
return X({
|
|
7797
7799
|
queryKey: ["newsList"],
|
|
7798
7800
|
queryFn: () => {
|
|
@@ -7853,7 +7855,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
7853
7855
|
withdrawal_amount: t,
|
|
7854
7856
|
bank_account_number: o,
|
|
7855
7857
|
currency_code: l,
|
|
7856
|
-
withdrawal_code:
|
|
7858
|
+
withdrawal_code: Fn.MD5(r).toString(),
|
|
7857
7859
|
payment_type: "ThirdParty"
|
|
7858
7860
|
}
|
|
7859
7861
|
});
|
|
@@ -8006,10 +8008,10 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8006
8008
|
eventTransaction: m,
|
|
8007
8009
|
withdrawTransaction: _
|
|
8008
8010
|
};
|
|
8009
|
-
},
|
|
8011
|
+
}, An = "3.7.8", mo = An, pa = typeof Buffer == "function", gn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, dn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, so = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ta = Array.prototype.slice.call(so), Ba = ((e) => {
|
|
8010
8012
|
let s = {};
|
|
8011
8013
|
return e.forEach((n, i) => s[n] = i), s;
|
|
8012
|
-
})(Ta), uo = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, pe = String.fromCharCode.bind(String), cn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)),
|
|
8014
|
+
})(Ta), uo = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, pe = String.fromCharCode.bind(String), cn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Bn = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (s) => s == "+" ? "-" : "_"), Hn = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Wn = (e) => {
|
|
8013
8015
|
let s, n, i, p, g = "";
|
|
8014
8016
|
const C = e.length % 3;
|
|
8015
8017
|
for (let c = 0; c < e.length; ) {
|
|
@@ -8018,12 +8020,12 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8018
8020
|
s = n << 16 | i << 8 | p, g += Ta[s >> 18 & 63] + Ta[s >> 12 & 63] + Ta[s >> 6 & 63] + Ta[s & 63];
|
|
8019
8021
|
}
|
|
8020
8022
|
return C ? g.slice(0, C - 3) + "===".substring(C) : g;
|
|
8021
|
-
}, tt = typeof btoa == "function" ? (e) => btoa(e) : pa ? (e) => Buffer.from(e, "binary").toString("base64") :
|
|
8023
|
+
}, tt = typeof btoa == "function" ? (e) => btoa(e) : pa ? (e) => Buffer.from(e, "binary").toString("base64") : Wn, Vi = pa ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
8022
8024
|
let n = [];
|
|
8023
8025
|
for (let i = 0, p = e.length; i < p; i += 4096)
|
|
8024
8026
|
n.push(pe.apply(null, e.subarray(i, i + 4096)));
|
|
8025
8027
|
return tt(n.join(""));
|
|
8026
|
-
}, hi = (e, s = !1) => s ?
|
|
8028
|
+
}, hi = (e, s = !1) => s ? Bn(Vi(e)) : Vi(e), po = (e) => {
|
|
8027
8029
|
if (e.length < 2) {
|
|
8028
8030
|
var s = e.charCodeAt(0);
|
|
8029
8031
|
return s < 128 ? e : s < 2048 ? pe(192 | s >>> 6) + pe(128 | s & 63) : pe(224 | s >>> 12 & 15) + pe(128 | s >>> 6 & 63) + pe(128 | s & 63);
|
|
@@ -8031,7 +8033,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8031
8033
|
var s = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
8032
8034
|
return pe(240 | s >>> 18 & 7) + pe(128 | s >>> 12 & 63) + pe(128 | s >>> 6 & 63) + pe(128 | s & 63);
|
|
8033
8035
|
}
|
|
8034
|
-
}, go = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,
|
|
8036
|
+
}, go = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, zn = (e) => e.replace(go, po), fn = pa ? (e) => Buffer.from(e, "utf8").toString("base64") : dn ? (e) => Vi(dn.encode(e)) : (e) => tt(zn(e)), ua = (e, s = !1) => s ? Bn(fn(e)) : fn(e), _n = (e) => ua(e, !0), co = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, fo = (e) => {
|
|
8035
8037
|
switch (e.length) {
|
|
8036
8038
|
case 4:
|
|
8037
8039
|
var s = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), n = s - 65536;
|
|
@@ -8041,7 +8043,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8041
8043
|
default:
|
|
8042
8044
|
return pe((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
8043
8045
|
}
|
|
8044
|
-
},
|
|
8046
|
+
}, Vn = (e) => e.replace(co, fo), Zn = (e) => {
|
|
8045
8047
|
if (e = e.replace(/\s+/g, ""), !uo.test(e))
|
|
8046
8048
|
throw new TypeError("malformed base64.");
|
|
8047
8049
|
e += "==".slice(2 - (e.length & 3));
|
|
@@ -8049,18 +8051,18 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8049
8051
|
for (let g = 0; g < e.length; )
|
|
8050
8052
|
s = Ba[e.charAt(g++)] << 18 | Ba[e.charAt(g++)] << 12 | (n = Ba[e.charAt(g++)]) << 6 | (i = Ba[e.charAt(g++)]), n === 64 ? p.push(pe(s >> 16 & 255)) : i === 64 ? p.push(pe(s >> 16 & 255, s >> 8 & 255)) : p.push(pe(s >> 16 & 255, s >> 8 & 255, s & 255));
|
|
8051
8053
|
return p.join("");
|
|
8052
|
-
}, nt = typeof atob == "function" ? (e) => atob(
|
|
8054
|
+
}, nt = typeof atob == "function" ? (e) => atob(Hn(e)) : pa ? (e) => Buffer.from(e, "base64").toString("binary") : Zn, Jn = pa ? (e) => cn(Buffer.from(e, "base64")) : (e) => cn(nt(e).split("").map((s) => s.charCodeAt(0))), In = (e) => Jn(Kn(e)), _o = pa ? (e) => Buffer.from(e, "base64").toString("utf8") : gn ? (e) => gn.decode(Jn(e)) : (e) => Vn(nt(e)), Kn = (e) => Hn(e.replace(/[-_]/g, (s) => s == "-" ? "+" : "/")), Zi = (e) => _o(Kn(e)), Uo = (e) => {
|
|
8053
8055
|
if (typeof e != "string")
|
|
8054
8056
|
return !1;
|
|
8055
8057
|
const s = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
8056
8058
|
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
8057
|
-
},
|
|
8059
|
+
}, qn = (e) => ({
|
|
8058
8060
|
value: e,
|
|
8059
8061
|
enumerable: !1,
|
|
8060
8062
|
writable: !0,
|
|
8061
8063
|
configurable: !0
|
|
8062
|
-
}),
|
|
8063
|
-
const e = (s, n) => Object.defineProperty(String.prototype, s,
|
|
8064
|
+
}), jn = function() {
|
|
8065
|
+
const e = (s, n) => Object.defineProperty(String.prototype, s, qn(n));
|
|
8064
8066
|
e("fromBase64", function() {
|
|
8065
8067
|
return Zi(this);
|
|
8066
8068
|
}), e("toBase64", function(s) {
|
|
@@ -8070,10 +8072,10 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8070
8072
|
}), e("toBase64URL", function() {
|
|
8071
8073
|
return ua(this, !0);
|
|
8072
8074
|
}), e("toUint8Array", function() {
|
|
8073
|
-
return
|
|
8075
|
+
return In(this);
|
|
8074
8076
|
});
|
|
8075
|
-
},
|
|
8076
|
-
const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s,
|
|
8077
|
+
}, $n = function() {
|
|
8078
|
+
const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s, qn(n));
|
|
8077
8079
|
e("toBase64", function(s) {
|
|
8078
8080
|
return hi(this, s);
|
|
8079
8081
|
}), e("toBase64URI", function() {
|
|
@@ -8082,27 +8084,27 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8082
8084
|
return hi(this, !0);
|
|
8083
8085
|
});
|
|
8084
8086
|
}, yo = () => {
|
|
8085
|
-
|
|
8087
|
+
jn(), $n();
|
|
8086
8088
|
}, bo = {
|
|
8087
|
-
version:
|
|
8089
|
+
version: An,
|
|
8088
8090
|
VERSION: mo,
|
|
8089
8091
|
atob: nt,
|
|
8090
|
-
atobPolyfill:
|
|
8092
|
+
atobPolyfill: Zn,
|
|
8091
8093
|
btoa: tt,
|
|
8092
|
-
btoaPolyfill:
|
|
8094
|
+
btoaPolyfill: Wn,
|
|
8093
8095
|
fromBase64: Zi,
|
|
8094
8096
|
toBase64: ua,
|
|
8095
8097
|
encode: ua,
|
|
8096
8098
|
encodeURI: _n,
|
|
8097
8099
|
encodeURL: _n,
|
|
8098
|
-
utob:
|
|
8099
|
-
btou:
|
|
8100
|
+
utob: zn,
|
|
8101
|
+
btou: Vn,
|
|
8100
8102
|
decode: Zi,
|
|
8101
8103
|
isValid: Uo,
|
|
8102
8104
|
fromUint8Array: hi,
|
|
8103
|
-
toUint8Array:
|
|
8104
|
-
extendString:
|
|
8105
|
-
extendUint8Array:
|
|
8105
|
+
toUint8Array: In,
|
|
8106
|
+
extendString: jn,
|
|
8107
|
+
extendUint8Array: $n,
|
|
8106
8108
|
extendBuiltins: yo
|
|
8107
8109
|
}, Cm = (e, s) => {
|
|
8108
8110
|
const { playGameApi: n } = $i();
|
|
@@ -8138,22 +8140,22 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8138
8140
|
enabled: !!e?.gameCode,
|
|
8139
8141
|
...s
|
|
8140
8142
|
});
|
|
8141
|
-
},
|
|
8143
|
+
}, Qn = () => {
|
|
8142
8144
|
const { client: e } = te(), s = J(async () => await e.get("/rebate"), [e]), n = J(async () => await e.post("/withdraw/rebate"), [e]);
|
|
8143
8145
|
return {
|
|
8144
8146
|
currentRebateApi: s,
|
|
8145
8147
|
receiveRebateApi: n
|
|
8146
8148
|
};
|
|
8147
8149
|
}, Co = ({ options: e } = {}) => {
|
|
8148
|
-
const { currentRebateApi: s } =
|
|
8150
|
+
const { currentRebateApi: s } = Qn();
|
|
8149
8151
|
return X({
|
|
8150
8152
|
queryKey: ["currentRebate"],
|
|
8151
8153
|
queryFn: () => s(),
|
|
8152
|
-
select: (n) =>
|
|
8154
|
+
select: (n) => ol(n, ["code", "status"]),
|
|
8153
8155
|
...e
|
|
8154
8156
|
});
|
|
8155
8157
|
}, vo = ({ options: e } = {}) => {
|
|
8156
|
-
const { receiveRebateApi: s } =
|
|
8158
|
+
const { receiveRebateApi: s } = Qn();
|
|
8157
8159
|
return _e({
|
|
8158
8160
|
mutationKey: ["receiveRebate"],
|
|
8159
8161
|
mutationFn: async () => s(),
|
|
@@ -8218,8 +8220,8 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8218
8220
|
rewardUid: l,
|
|
8219
8221
|
rewardWagering: g,
|
|
8220
8222
|
rewardAmount: C,
|
|
8221
|
-
rewardBg:
|
|
8222
|
-
rewardIcon:
|
|
8223
|
+
rewardBg: Sn(),
|
|
8224
|
+
rewardIcon: xn("win")
|
|
8223
8225
|
};
|
|
8224
8226
|
});
|
|
8225
8227
|
return {
|
|
@@ -8409,14 +8411,14 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8409
8411
|
userRebate: a,
|
|
8410
8412
|
userBindCard: t
|
|
8411
8413
|
};
|
|
8412
|
-
},
|
|
8414
|
+
}, Yn = () => {
|
|
8413
8415
|
const { client: e } = te(), s = J(async () => await e.get("/vip/list"), [e]), n = J(async () => await e.get("/vip/check"), [e]);
|
|
8414
8416
|
return {
|
|
8415
8417
|
vipListApi: s,
|
|
8416
8418
|
vipInfoApi: n
|
|
8417
8419
|
};
|
|
8418
8420
|
}, xm = ({ options: e } = {}) => {
|
|
8419
|
-
const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } =
|
|
8421
|
+
const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } = Yn();
|
|
8420
8422
|
return X({
|
|
8421
8423
|
queryKey: ["vipInfo"],
|
|
8422
8424
|
queryFn: async () => i(),
|
|
@@ -8431,7 +8433,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8431
8433
|
...e
|
|
8432
8434
|
});
|
|
8433
8435
|
}, Ao = ({ options: e } = {}) => {
|
|
8434
|
-
const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } =
|
|
8436
|
+
const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } = Yn();
|
|
8435
8437
|
return X({
|
|
8436
8438
|
queryKey: ["vipList"],
|
|
8437
8439
|
queryFn: async () => {
|
|
@@ -8553,7 +8555,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8553
8555
|
gameImageUrl: h,
|
|
8554
8556
|
gameImageUrlAnimated: x
|
|
8555
8557
|
};
|
|
8556
|
-
}, Bo = (e, s = !1) =>
|
|
8558
|
+
}, Bo = (e, s = !1) => ml([
|
|
8557
8559
|
"EVO",
|
|
8558
8560
|
"IMSPRIBE",
|
|
8559
8561
|
"SABA",
|
|
@@ -8586,7 +8588,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8586
8588
|
// 臨時維護開始時間
|
|
8587
8589
|
temp_maintenance_end_time: o
|
|
8588
8590
|
// 臨時維護結束時間
|
|
8589
|
-
} = e || {}, l = `${Be}/${
|
|
8591
|
+
} = e || {}, l = `${Be}/${Dn}/${Bo(i, s)}.png`;
|
|
8590
8592
|
return {
|
|
8591
8593
|
subPlatformEnum: n,
|
|
8592
8594
|
platformEnum: i,
|
|
@@ -8627,7 +8629,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8627
8629
|
allGamePlatform: i = [],
|
|
8628
8630
|
allGameList: p = {}
|
|
8629
8631
|
} = {}) => !Array.isArray(e) || !Array.isArray(s) ? {} : e.reduce((g, C) => {
|
|
8630
|
-
const c =
|
|
8632
|
+
const c = Nn(n, C);
|
|
8631
8633
|
if (!c) return g;
|
|
8632
8634
|
const u = p[c] || [], a = s.reduce((t, o) => {
|
|
8633
8635
|
const l = yl({
|
|
@@ -8671,14 +8673,14 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
8671
8673
|
allGameTypes: n,
|
|
8672
8674
|
allPlatforms: s
|
|
8673
8675
|
}), d = Te(s, (D) => {
|
|
8674
|
-
const O = `${Be}/${
|
|
8676
|
+
const O = `${Be}/${Dn}/${D.platformEnum}.png`;
|
|
8675
8677
|
return {
|
|
8676
8678
|
...D,
|
|
8677
8679
|
platformImageUrl: O
|
|
8678
8680
|
};
|
|
8679
8681
|
}), y = Zo(o, i), b = Io(U), v = Ko(b), h = vn(U).reduce(
|
|
8680
8682
|
(D, [O, k]) => {
|
|
8681
|
-
const S = xi(
|
|
8683
|
+
const S = xi(sl(k));
|
|
8682
8684
|
return D[O] = S, D;
|
|
8683
8685
|
},
|
|
8684
8686
|
{}
|
|
@@ -35318,7 +35320,7 @@ const Jr = /* @__PURE__ */ Ki(Zr), Ir = ({
|
|
|
35318
35320
|
n && Qo(!0);
|
|
35319
35321
|
}, [n]);
|
|
35320
35322
|
const i = $o({ enabled: s });
|
|
35321
|
-
return /* @__PURE__ */ sa.jsx(
|
|
35323
|
+
return /* @__PURE__ */ sa.jsx(En.Provider, { value: i, children: e });
|
|
35322
35324
|
};
|
|
35323
35325
|
function Gm({
|
|
35324
35326
|
children: e,
|
|
@@ -35331,7 +35333,7 @@ function Gm({
|
|
|
35331
35333
|
() => gt({ ...p, formData: !0 }),
|
|
35332
35334
|
[p]
|
|
35333
35335
|
), c = ha(
|
|
35334
|
-
() => new
|
|
35336
|
+
() => new nl({
|
|
35335
35337
|
defaultOptions: {
|
|
35336
35338
|
queries: {
|
|
35337
35339
|
refetchOnWindowFocus: !1,
|
|
@@ -35341,7 +35343,7 @@ function Gm({
|
|
|
35341
35343
|
}),
|
|
35342
35344
|
[]
|
|
35343
35345
|
), u = i || c;
|
|
35344
|
-
return /* @__PURE__ */ sa.jsx(
|
|
35346
|
+
return /* @__PURE__ */ sa.jsx(ll, { client: u, children: /* @__PURE__ */ sa.jsx(Tn.Provider, { value: { client: g, formDataClient: C, ...p }, children: /* @__PURE__ */ sa.jsx(fl, { children: /* @__PURE__ */ sa.jsx(
|
|
35345
35347
|
Yo,
|
|
35346
35348
|
{
|
|
35347
35349
|
autoFetch: s,
|
|
@@ -35353,10 +35355,10 @@ function Gm({
|
|
|
35353
35355
|
export {
|
|
35354
35356
|
Tn as ApiCtx,
|
|
35355
35357
|
Gm as ApiProvider,
|
|
35356
|
-
|
|
35358
|
+
En as GamesInfoCtx,
|
|
35357
35359
|
ba as STATUS_TYPES,
|
|
35358
35360
|
hn as StatusContext,
|
|
35359
|
-
|
|
35361
|
+
fl as StatusProvider,
|
|
35360
35362
|
Jo as buildMultiTypes,
|
|
35361
35363
|
Nm as buildMultiTypesWithSubTypes,
|
|
35362
35364
|
yl as buildSinglePlatformWithSubTypes,
|
|
@@ -35367,10 +35369,10 @@ export {
|
|
|
35367
35369
|
zo as extractGameSubTypeNames,
|
|
35368
35370
|
Wo as extractGameTypeNames,
|
|
35369
35371
|
bn as extractPlatformNames,
|
|
35370
|
-
|
|
35371
|
-
|
|
35372
|
-
|
|
35373
|
-
|
|
35372
|
+
Mn as filterGamesByPlatform,
|
|
35373
|
+
Nn as findGameTypeUid,
|
|
35374
|
+
Ln as findPlatformUid,
|
|
35375
|
+
Gn as findSubPlatform,
|
|
35374
35376
|
Ho as flattenAllGames,
|
|
35375
35377
|
Vo as flattenFavoriteGames,
|
|
35376
35378
|
rm as formatNumber,
|