@obb871001/api-integration-sdk 1.0.133 → 1.0.134
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 +7 -7
- package/dist/index.js +86 -77
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Le, { createContext as mi, useContext as ri, useCallback as V, useMemo as ia, useEffect as De, useRef as Ga } from "react";
|
|
2
|
-
import { useQuery as
|
|
2
|
+
import { useQuery as ie, QueryClient as at, QueryClientProvider as it, useQueries as oi, useMutation as na } from "@tanstack/react-query";
|
|
3
3
|
import tt from "axios";
|
|
4
4
|
import { find as ma, isEmpty as O, isObject as Ve, flatMap as Ae, isArray as ne, map as Ie, entries as lt, values as nt, keys as Ma, get as we, replace as Ra, includes as mt } from "lodash";
|
|
5
5
|
import rt from "react-dom";
|
|
@@ -114,18 +114,18 @@ function ut() {
|
|
|
114
114
|
}
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
var A = Object.assign,
|
|
118
|
-
function
|
|
117
|
+
var A = Object.assign, re = 0, q, Me, Re, x, F, Y, Ce;
|
|
118
|
+
function oe() {
|
|
119
119
|
}
|
|
120
|
-
|
|
121
|
-
function
|
|
120
|
+
oe.__reactDisabledLog = !0;
|
|
121
|
+
function le() {
|
|
122
122
|
{
|
|
123
|
-
if (
|
|
123
|
+
if (re === 0) {
|
|
124
124
|
q = console.log, Me = console.info, Re = console.warn, x = console.error, F = console.group, Y = console.groupCollapsed, Ce = console.groupEnd;
|
|
125
125
|
var a = {
|
|
126
126
|
configurable: !0,
|
|
127
127
|
enumerable: !0,
|
|
128
|
-
value:
|
|
128
|
+
value: oe,
|
|
129
129
|
writable: !0
|
|
130
130
|
};
|
|
131
131
|
Object.defineProperties(console, {
|
|
@@ -138,12 +138,12 @@ function ut() {
|
|
|
138
138
|
groupEnd: a
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
re++;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
function Pe() {
|
|
145
145
|
{
|
|
146
|
-
if (
|
|
146
|
+
if (re--, re === 0) {
|
|
147
147
|
var a = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
@@ -173,7 +173,7 @@ function ut() {
|
|
|
173
173
|
})
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
re < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
var ce = c.ReactCurrentDispatcher, X;
|
|
@@ -190,13 +190,13 @@ function ut() {
|
|
|
190
190
|
` + X + a;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
var
|
|
193
|
+
var se = !1, xe;
|
|
194
194
|
{
|
|
195
195
|
var Gi = typeof WeakMap == "function" ? WeakMap : Map;
|
|
196
196
|
xe = new Gi();
|
|
197
197
|
}
|
|
198
198
|
function _a(a, U) {
|
|
199
|
-
if (!a ||
|
|
199
|
+
if (!a || se)
|
|
200
200
|
return "";
|
|
201
201
|
{
|
|
202
202
|
var C = xe.get(a);
|
|
@@ -204,11 +204,11 @@ function ut() {
|
|
|
204
204
|
return C;
|
|
205
205
|
}
|
|
206
206
|
var h;
|
|
207
|
-
|
|
207
|
+
se = !0;
|
|
208
208
|
var G = Error.prepareStackTrace;
|
|
209
209
|
Error.prepareStackTrace = void 0;
|
|
210
210
|
var M;
|
|
211
|
-
M = ce.current, ce.current = null,
|
|
211
|
+
M = ce.current, ce.current = null, le();
|
|
212
212
|
try {
|
|
213
213
|
if (U) {
|
|
214
214
|
var N = function() {
|
|
@@ -261,10 +261,10 @@ function ut() {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
} finally {
|
|
264
|
-
|
|
264
|
+
se = !1, ce.current = M, Pe(), Error.prepareStackTrace = G;
|
|
265
265
|
}
|
|
266
|
-
var Ue = a ? a.displayName || a.name : "",
|
|
267
|
-
return typeof a == "function" && xe.set(a,
|
|
266
|
+
var Ue = a ? a.displayName || a.name : "", ue = Ue ? _e(Ue) : "";
|
|
267
|
+
return typeof a == "function" && xe.set(a, ue), ue;
|
|
268
268
|
}
|
|
269
269
|
function Mi(a, U, C) {
|
|
270
270
|
return _a(a, !1);
|
|
@@ -586,17 +586,17 @@ Check the top-level render call using <` + C + ">.");
|
|
|
586
586
|
Da(Z, a);
|
|
587
587
|
}
|
|
588
588
|
if (ve.call(U, "key")) {
|
|
589
|
-
var
|
|
589
|
+
var ue = w(a), J = Object.keys(U).filter(function(et) {
|
|
590
590
|
return et !== "key";
|
|
591
591
|
}), qe = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
592
|
-
if (!Ea[
|
|
592
|
+
if (!Ea[ue + qe]) {
|
|
593
593
|
var $i = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
594
594
|
T(`A props object containing a "key" prop is being spread into JSX:
|
|
595
595
|
let props = %s;
|
|
596
596
|
<%s {...props} />
|
|
597
597
|
React keys must be passed directly to JSX without using spread:
|
|
598
598
|
let props = %s;
|
|
599
|
-
<%s key={someKey} {...props} />`, qe,
|
|
599
|
+
<%s key={someKey} {...props} />`, qe, ue, $i, ue), Ea[ue + qe] = !0;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
return a === n ? ji(P) : Ki(P), P;
|
|
@@ -617,7 +617,7 @@ function pt() {
|
|
|
617
617
|
return Oa || (Oa = 1, process.env.NODE_ENV === "production" ? Fe.exports = st() : Fe.exports = ut()), Fe.exports;
|
|
618
618
|
}
|
|
619
619
|
var ze = pt();
|
|
620
|
-
const si = mi(null),
|
|
620
|
+
const si = mi(null), te = () => {
|
|
621
621
|
const e = ri(si);
|
|
622
622
|
if (!e)
|
|
623
623
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
@@ -841,8 +841,8 @@ const ui = mi(null), sl = () => {
|
|
|
841
841
|
default:
|
|
842
842
|
return e;
|
|
843
843
|
}
|
|
844
|
-
},
|
|
845
|
-
const { client: e } =
|
|
844
|
+
}, me = () => {
|
|
845
|
+
const { client: e } = te(), i = V(
|
|
846
846
|
async (r) => {
|
|
847
847
|
const { mac_address: t = "", app_version: d = "", anydesk_id: l = "" } = r, { data: o } = await e.post("/cash-register/login", {
|
|
848
848
|
mac_address: t,
|
|
@@ -903,7 +903,7 @@ const ui = mi(null), sl = () => {
|
|
|
903
903
|
},
|
|
904
904
|
user: { favorite: [] }
|
|
905
905
|
}, Nt = ({ enabled: e = !0 } = {}) => {
|
|
906
|
-
const { getToken: i } =
|
|
906
|
+
const { getToken: i } = te(), { userFavoriteGameApi: m, userGameListApi: n } = me(), { data: s, isLoading: u, error: f, refetch: _ } = ie({
|
|
907
907
|
queryKey: ["gamesInfo"],
|
|
908
908
|
queryFn: async () => {
|
|
909
909
|
let p = {}, g = {};
|
|
@@ -27499,7 +27499,7 @@ function dl({
|
|
|
27499
27499
|
return /* @__PURE__ */ ze.jsx(it, { client: _, children: /* @__PURE__ */ ze.jsx(si.Provider, { value: { client: u, ...s }, children: /* @__PURE__ */ ze.jsx(Et, { autoFetch: i, mockData: m, children: e }) }) });
|
|
27500
27500
|
}
|
|
27501
27501
|
const cl = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
27502
|
-
const { userCurrencyExchangeApi: m } =
|
|
27502
|
+
const { userCurrencyExchangeApi: m } = me(), { getToken: n } = te(), { enabled: s, ...u } = i, _ = !!n?.() && (s ? s.every((p) => p) : !0);
|
|
27503
27503
|
return oi({
|
|
27504
27504
|
queries: [
|
|
27505
27505
|
{
|
|
@@ -27517,7 +27517,7 @@ const cl = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
|
27517
27517
|
trigger: i = [],
|
|
27518
27518
|
enabled: m = !0
|
|
27519
27519
|
} = {}) => {
|
|
27520
|
-
const { getToken: n } =
|
|
27520
|
+
const { getToken: n } = te(), s = n?.(), { userInfoApi: u } = me();
|
|
27521
27521
|
return oi({
|
|
27522
27522
|
queries: [
|
|
27523
27523
|
{
|
|
@@ -27534,19 +27534,19 @@ const cl = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
|
|
|
27534
27534
|
userFavoriteGameApi: m,
|
|
27535
27535
|
userGameListApi: n,
|
|
27536
27536
|
userCurrencyExchangeApi: s
|
|
27537
|
-
} =
|
|
27537
|
+
} = me(), u = ie({
|
|
27538
27538
|
queryKey: ["getMemInfo"],
|
|
27539
27539
|
queryFn: async () => i(),
|
|
27540
27540
|
enabled: e
|
|
27541
|
-
}), f =
|
|
27541
|
+
}), f = ie({
|
|
27542
27542
|
queryKey: ["getFavoriteGame"],
|
|
27543
27543
|
queryFn: async () => m(),
|
|
27544
27544
|
enabled: e && u.isSuccess
|
|
27545
|
-
}), _ =
|
|
27545
|
+
}), _ = ie({
|
|
27546
27546
|
queryKey: ["getUserGameList"],
|
|
27547
27547
|
queryFn: async () => n(),
|
|
27548
27548
|
enabled: e && u.isSuccess && f.isSuccess
|
|
27549
|
-
}), p =
|
|
27549
|
+
}), p = ie({
|
|
27550
27550
|
queryKey: ["getUserCurrencyExchange"],
|
|
27551
27551
|
queryFn: async () => s(),
|
|
27552
27552
|
enabled: e && u.isSuccess && f.isSuccess && _.isSuccess
|
|
@@ -27599,7 +27599,7 @@ function oa() {
|
|
|
27599
27599
|
e.resetWebSockets = i;
|
|
27600
27600
|
})($e)), $e;
|
|
27601
27601
|
}
|
|
27602
|
-
var
|
|
27602
|
+
var pe = {}, $ = {}, Wa;
|
|
27603
27603
|
function sa() {
|
|
27604
27604
|
if (Wa) return $;
|
|
27605
27605
|
Wa = 1, Object.defineProperty($, "__esModule", { value: !0 }), $.setUpSocketIOPing = $.appendQueryParams = $.parseSocketIOUrl = void 0;
|
|
@@ -27708,9 +27708,9 @@ function pa() {
|
|
|
27708
27708
|
}
|
|
27709
27709
|
var Va;
|
|
27710
27710
|
function Lt() {
|
|
27711
|
-
if (Va) return
|
|
27711
|
+
if (Va) return pe;
|
|
27712
27712
|
Va = 1;
|
|
27713
|
-
var e =
|
|
27713
|
+
var e = pe && pe.__assign || function() {
|
|
27714
27714
|
return e = Object.assign || function(r) {
|
|
27715
27715
|
for (var t, d = 1, l = arguments.length; d < l; d++) {
|
|
27716
27716
|
t = arguments[d];
|
|
@@ -27719,7 +27719,7 @@ function Lt() {
|
|
|
27719
27719
|
return r;
|
|
27720
27720
|
}, e.apply(this, arguments);
|
|
27721
27721
|
};
|
|
27722
|
-
Object.defineProperty(
|
|
27722
|
+
Object.defineProperty(pe, "__esModule", { value: !0 }), pe.attachListeners = void 0;
|
|
27723
27723
|
var i = sa(), m = _i(), n = j(), s = pa(), u = function(r, t, d, l) {
|
|
27724
27724
|
r.onmessage = function(o) {
|
|
27725
27725
|
var y;
|
|
@@ -27774,13 +27774,13 @@ function Lt() {
|
|
|
27774
27774
|
T(n.ReadyState.CLOSING), E(), v(), r.close(), S && clearInterval(S);
|
|
27775
27775
|
};
|
|
27776
27776
|
};
|
|
27777
|
-
return
|
|
27777
|
+
return pe.attachListeners = g, pe;
|
|
27778
27778
|
}
|
|
27779
|
-
var
|
|
27779
|
+
var ge = {}, Aa;
|
|
27780
27780
|
function Gt() {
|
|
27781
|
-
if (Aa) return
|
|
27781
|
+
if (Aa) return ge;
|
|
27782
27782
|
Aa = 1;
|
|
27783
|
-
var e =
|
|
27783
|
+
var e = ge && ge.__assign || function() {
|
|
27784
27784
|
return e = Object.assign || function(t) {
|
|
27785
27785
|
for (var d, l = 1, o = arguments.length; l < o; l++) {
|
|
27786
27786
|
d = arguments[l];
|
|
@@ -27789,7 +27789,7 @@ function Gt() {
|
|
|
27789
27789
|
return t;
|
|
27790
27790
|
}, e.apply(this, arguments);
|
|
27791
27791
|
};
|
|
27792
|
-
Object.defineProperty(
|
|
27792
|
+
Object.defineProperty(ge, "__esModule", { value: !0 }), ge.attachSharedListeners = void 0;
|
|
27793
27793
|
var i = oa(), m = j(), n = ua(), s = sa(), u = _i(), f = function(t, d, l) {
|
|
27794
27794
|
t.onmessage = function(o) {
|
|
27795
27795
|
(0, n.getSubscribers)(d).forEach(function(y) {
|
|
@@ -27836,7 +27836,7 @@ function Gt() {
|
|
|
27836
27836
|
y && clearInterval(y);
|
|
27837
27837
|
};
|
|
27838
27838
|
};
|
|
27839
|
-
return
|
|
27839
|
+
return ge.attachSharedListeners = r, ge;
|
|
27840
27840
|
}
|
|
27841
27841
|
var Ia;
|
|
27842
27842
|
function Mt() {
|
|
@@ -28151,7 +28151,7 @@ function ga() {
|
|
|
28151
28151
|
}, [b, l.disableJson]), D = (0, s.useRef)(null), L = (0, s.useRef)(null), I = (0, s.useRef)(function() {
|
|
28152
28152
|
}), Q = (0, s.useRef)(0), Te = (0, s.useRef)(Date.now()), Ge = (0, s.useRef)([]), B = (0, s.useRef)(null), w = (0, s.useRef)(l);
|
|
28153
28153
|
w.current = l;
|
|
28154
|
-
var A = D.current && S[D.current] !== void 0 ? S[D.current] : d !== null && o === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED,
|
|
28154
|
+
var A = D.current && S[D.current] !== void 0 ? S[D.current] : d !== null && o === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, re = l.queryParams ? JSON.stringify(l.queryParams) : null, q = (0, s.useCallback)(function(x, F) {
|
|
28155
28155
|
var Y;
|
|
28156
28156
|
if (F === void 0 && (F = !0), f.isEventSourceSupported && L.current instanceof EventSource) {
|
|
28157
28157
|
console.warn("Unable to send a message from an eventSource");
|
|
@@ -28167,31 +28167,31 @@ function ga() {
|
|
|
28167
28167
|
if (d !== null && o === !0) {
|
|
28168
28168
|
var x, F = !1, Y = !0, Ce = function() {
|
|
28169
28169
|
return i(void 0, void 0, void 0, function() {
|
|
28170
|
-
var
|
|
28170
|
+
var oe, le, Pe;
|
|
28171
28171
|
return m(this, function(ce) {
|
|
28172
28172
|
switch (ce.label) {
|
|
28173
28173
|
case 0:
|
|
28174
|
-
return
|
|
28174
|
+
return oe = D, [4, (0, p.getUrl)(d, w)];
|
|
28175
28175
|
case 1:
|
|
28176
|
-
return
|
|
28176
|
+
return oe.current = ce.sent(), D.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), D.current = "ABORTED", (0, u.flushSync)(function() {
|
|
28177
28177
|
return E(function(X) {
|
|
28178
28178
|
return e(e({}, X), { ABORTED: f.ReadyState.CLOSED });
|
|
28179
28179
|
});
|
|
28180
28180
|
}), [
|
|
28181
28181
|
2
|
|
28182
28182
|
/*return*/
|
|
28183
|
-
]) : (
|
|
28183
|
+
]) : (le = function(X) {
|
|
28184
28184
|
F || (0, u.flushSync)(function() {
|
|
28185
28185
|
return c(X);
|
|
28186
28186
|
});
|
|
28187
28187
|
}, Pe = function(X) {
|
|
28188
28188
|
F || (0, u.flushSync)(function() {
|
|
28189
28189
|
return E(function(_e) {
|
|
28190
|
-
var
|
|
28191
|
-
return e(e({}, _e), D.current && (
|
|
28190
|
+
var se;
|
|
28191
|
+
return e(e({}, _e), D.current && (se = {}, se[D.current] = X, se));
|
|
28192
28192
|
});
|
|
28193
28193
|
});
|
|
28194
|
-
}, Y && (x = (0, _.createOrJoinSocket)(L, D.current, Pe, w,
|
|
28194
|
+
}, Y && (x = (0, _.createOrJoinSocket)(L, D.current, Pe, w, le, I, Q, Te, q)), [
|
|
28195
28195
|
2
|
|
28196
28196
|
/*return*/
|
|
28197
28197
|
]);
|
|
@@ -28204,11 +28204,11 @@ function ga() {
|
|
|
28204
28204
|
}, Ce(), function() {
|
|
28205
28205
|
F = !0, Y = !1, B.current && (B.current = null), x?.(), c(null);
|
|
28206
28206
|
};
|
|
28207
|
-
} else (d === null || o === !1) && (Q.current = 0, E(function(
|
|
28208
|
-
var
|
|
28209
|
-
return e(e({},
|
|
28207
|
+
} else (d === null || o === !1) && (Q.current = 0, E(function(oe) {
|
|
28208
|
+
var le;
|
|
28209
|
+
return e(e({}, oe), D.current && (le = {}, le[D.current] = f.ReadyState.CLOSED, le));
|
|
28210
28210
|
}));
|
|
28211
|
-
}, [d, o,
|
|
28211
|
+
}, [d, o, re, q]), (0, s.useEffect)(function() {
|
|
28212
28212
|
A === f.ReadyState.OPEN && Ge.current.splice(0).forEach(function(x) {
|
|
28213
28213
|
q(x);
|
|
28214
28214
|
});
|
|
@@ -28223,11 +28223,11 @@ function ga() {
|
|
|
28223
28223
|
};
|
|
28224
28224
|
return z.useWebSocket = t, z;
|
|
28225
28225
|
}
|
|
28226
|
-
var
|
|
28226
|
+
var de = {}, Qa;
|
|
28227
28227
|
function xt() {
|
|
28228
|
-
if (Qa) return
|
|
28228
|
+
if (Qa) return de;
|
|
28229
28229
|
Qa = 1;
|
|
28230
|
-
var e =
|
|
28230
|
+
var e = de && de.__assign || function() {
|
|
28231
28231
|
return e = Object.assign || function(_) {
|
|
28232
28232
|
for (var p, g = 1, r = arguments.length; g < r; g++) {
|
|
28233
28233
|
p = arguments[g];
|
|
@@ -28236,7 +28236,7 @@ function xt() {
|
|
|
28236
28236
|
return _;
|
|
28237
28237
|
}, e.apply(this, arguments);
|
|
28238
28238
|
};
|
|
28239
|
-
Object.defineProperty(
|
|
28239
|
+
Object.defineProperty(de, "__esModule", { value: !0 }), de.useSocketIO = void 0;
|
|
28240
28240
|
var i = Le, m = ga(), n = j(), s = {
|
|
28241
28241
|
type: "empty",
|
|
28242
28242
|
payload: null
|
|
@@ -28267,7 +28267,7 @@ function xt() {
|
|
|
28267
28267
|
getWebSocket: b
|
|
28268
28268
|
};
|
|
28269
28269
|
};
|
|
28270
|
-
return
|
|
28270
|
+
return de.useSocketIO = f, de;
|
|
28271
28271
|
}
|
|
28272
28272
|
var ae = {}, qa;
|
|
28273
28273
|
function Ot() {
|
|
@@ -28445,14 +28445,14 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
|
|
|
28445
28445
|
// WebSocket 連線狀態
|
|
28446
28446
|
};
|
|
28447
28447
|
}, fi = () => {
|
|
28448
|
-
const { client: e } =
|
|
28448
|
+
const { client: e } = te(), i = V(async () => {
|
|
28449
28449
|
const { data: n } = await e.get("/carousels");
|
|
28450
28450
|
return n;
|
|
28451
28451
|
}, [e]), m = V(async () => await e.get("/marquees"), [e]);
|
|
28452
28452
|
return { commonCarouselApi: i, commonMarqueeApi: m };
|
|
28453
28453
|
}, yl = () => {
|
|
28454
|
-
const { lng: e } =
|
|
28455
|
-
return
|
|
28454
|
+
const { lng: e } = te(), { commonCarouselApi: i } = fi(), m = ra(e);
|
|
28455
|
+
return ie({
|
|
28456
28456
|
queryKey: ["getCarouselList"],
|
|
28457
28457
|
queryFn: async () => await i(),
|
|
28458
28458
|
select: (n) => n.map((u) => {
|
|
@@ -28464,8 +28464,8 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
|
|
|
28464
28464
|
})
|
|
28465
28465
|
});
|
|
28466
28466
|
}, bl = () => {
|
|
28467
|
-
const { lng: e } =
|
|
28468
|
-
return
|
|
28467
|
+
const { lng: e } = te(), { commonMarqueeApi: i } = fi(), m = ra(e);
|
|
28468
|
+
return ie({
|
|
28469
28469
|
queryKey: ["getMarqueeList"],
|
|
28470
28470
|
queryFn: async () => i(),
|
|
28471
28471
|
select: (n) => {
|
|
@@ -28473,8 +28473,16 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
|
|
|
28473
28473
|
return Ie(s, (f) => f[m] || f["en-US"]);
|
|
28474
28474
|
}
|
|
28475
28475
|
});
|
|
28476
|
+
}, Tl = ({ options: e } = {}) => {
|
|
28477
|
+
const { rankingGameApi: i } = me();
|
|
28478
|
+
return ie({
|
|
28479
|
+
queryKey: ["rankingGame"],
|
|
28480
|
+
queryFn: async () => i(),
|
|
28481
|
+
enabled: window.profit_ranking_status === 1,
|
|
28482
|
+
...e
|
|
28483
|
+
});
|
|
28476
28484
|
}, Jt = () => {
|
|
28477
|
-
const { client: e, lng: i } =
|
|
28485
|
+
const { client: e, lng: i } = te(), m = ra(i || "tw");
|
|
28478
28486
|
return { playGameApi: V(
|
|
28479
28487
|
async (s) => {
|
|
28480
28488
|
const {
|
|
@@ -28599,9 +28607,9 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
|
|
|
28599
28607
|
extendString: Ei,
|
|
28600
28608
|
extendUint8Array: Li,
|
|
28601
28609
|
extendBuiltins: qt
|
|
28602
|
-
},
|
|
28610
|
+
}, Cl = (e, i) => {
|
|
28603
28611
|
const { playGameApi: m } = Jt();
|
|
28604
|
-
return
|
|
28612
|
+
return ie({
|
|
28605
28613
|
queryKey: ["playGame"],
|
|
28606
28614
|
queryFn: async () => {
|
|
28607
28615
|
const { gameUid: n, gameCode: s, isMobile: u, gameCurrency: f, currentCurrency: _ } = e || {}, p = await m({
|
|
@@ -28634,27 +28642,27 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
|
|
|
28634
28642
|
...i
|
|
28635
28643
|
});
|
|
28636
28644
|
}, Xt = ({ options: e } = {}) => {
|
|
28637
|
-
const { userLoginApi: i } =
|
|
28645
|
+
const { userLoginApi: i } = me();
|
|
28638
28646
|
return na({
|
|
28639
28647
|
mutationKey: ["userLogin"],
|
|
28640
28648
|
mutationFn: async (m) => i(m),
|
|
28641
28649
|
...e
|
|
28642
28650
|
});
|
|
28643
28651
|
}, $t = ({ options: e } = {}) => {
|
|
28644
|
-
const { userLogoutApi: i } =
|
|
28652
|
+
const { userLogoutApi: i } = me();
|
|
28645
28653
|
return na({
|
|
28646
28654
|
mutationKey: ["userLogout"],
|
|
28647
28655
|
mutationFn: async () => i(),
|
|
28648
28656
|
...e
|
|
28649
28657
|
});
|
|
28650
28658
|
}, el = ({ options: e } = {}) => {
|
|
28651
|
-
const { addOrRemoveFavoriteGameApi: i } =
|
|
28659
|
+
const { addOrRemoveFavoriteGameApi: i } = me();
|
|
28652
28660
|
return na({
|
|
28653
28661
|
mutationKey: ["toggleFavoriteGame"],
|
|
28654
28662
|
mutationFn: async (m) => i(m),
|
|
28655
28663
|
...e
|
|
28656
28664
|
});
|
|
28657
|
-
},
|
|
28665
|
+
}, vl = ({
|
|
28658
28666
|
options: e = {
|
|
28659
28667
|
login: {},
|
|
28660
28668
|
logout: {},
|
|
@@ -28684,8 +28692,8 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
|
|
|
28684
28692
|
default:
|
|
28685
28693
|
return "En";
|
|
28686
28694
|
}
|
|
28687
|
-
}, al = "https://d1h3qe8voog6w4.cloudfront.net", li = "https://d3jx2uvukujuvn.cloudfront.net", ni = "game-icon-ds88",
|
|
28688
|
-
const { lng: i } =
|
|
28695
|
+
}, al = "https://d1h3qe8voog6w4.cloudfront.net", li = "https://d3jx2uvukujuvn.cloudfront.net", ni = "game-icon-ds88", hl = ({ gameData: e = {} } = {}) => {
|
|
28696
|
+
const { lng: i } = te(), m = ti(i), {
|
|
28689
28697
|
gameCode: n,
|
|
28690
28698
|
// 遊戲代碼
|
|
28691
28699
|
gameUid: s,
|
|
@@ -28758,7 +28766,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
|
|
|
28758
28766
|
"HACK",
|
|
28759
28767
|
"NAGA",
|
|
28760
28768
|
"RSG"
|
|
28761
|
-
], e) && i ? `${e}_dark` : e,
|
|
28769
|
+
], e) && i ? `${e}_dark` : e, kl = ({ platformData: e, darkMode: i } = {}) => {
|
|
28762
28770
|
const {
|
|
28763
28771
|
SubPlatformEnum: m,
|
|
28764
28772
|
// 子平台枚舉
|
|
@@ -28821,20 +28829,21 @@ export {
|
|
|
28821
28829
|
Dt as initMockWindowData,
|
|
28822
28830
|
kt as processGameInfo,
|
|
28823
28831
|
gl as processPlatformData,
|
|
28824
|
-
|
|
28832
|
+
te as useApiContext,
|
|
28825
28833
|
cl as useBalanceGetter,
|
|
28826
28834
|
Ul as useClientWebSocket,
|
|
28827
|
-
|
|
28835
|
+
hl as useGameConfig,
|
|
28828
28836
|
sl as useGameInfoContext,
|
|
28829
28837
|
Nt as useGamesInfo,
|
|
28830
28838
|
yl as useGetCarouseList,
|
|
28831
28839
|
bl as useGetMarquee,
|
|
28832
28840
|
_l as useGetMemberInfo,
|
|
28841
|
+
Tl as useGetRankingGame,
|
|
28833
28842
|
fl as useInitializeWithToken,
|
|
28834
28843
|
Xt as useLogin,
|
|
28835
28844
|
$t as useLogout,
|
|
28836
|
-
|
|
28837
|
-
|
|
28845
|
+
kl as usePlatformConfig,
|
|
28846
|
+
Cl as usePlayGame,
|
|
28838
28847
|
el as useToggleFavoriteGame,
|
|
28839
|
-
|
|
28848
|
+
vl as useUser
|
|
28840
28849
|
};
|