50p82u21t54k 0.0.51 → 0.0.53
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/50p82u21t54k.cjs.js +1 -1
- package/dist/50p82u21t54k.es.js +534 -43
- package/dist/50p82u21t54k.umd.js +1 -1
- package/dist/api/agentRegister/agentRegisterApi.d.ts +3 -0
- package/dist/api/agentRegister/agentRegisterApi.d.ts.map +1 -0
- package/dist/api/agentRegister/index.d.ts +3 -0
- package/dist/api/agentRegister/index.d.ts.map +1 -0
- package/dist/api/agentRegister/type.d.ts +23 -0
- package/dist/api/agentRegister/type.d.ts.map +1 -0
- package/dist/api/eventList/eventListApi.d.ts +3 -0
- package/dist/api/eventList/eventListApi.d.ts.map +1 -0
- package/dist/api/eventList/index.d.ts +3 -0
- package/dist/api/eventList/index.d.ts.map +1 -0
- package/dist/api/eventList/type.d.ts +18 -0
- package/dist/api/eventList/type.d.ts.map +1 -0
- package/dist/api/fishGames/fishGamesApi.d.ts +3 -0
- package/dist/api/fishGames/fishGamesApi.d.ts.map +1 -0
- package/dist/api/fishGames/index.d.ts +3 -0
- package/dist/api/fishGames/index.d.ts.map +1 -0
- package/dist/api/fishGames/type.d.ts +10 -0
- package/dist/api/fishGames/type.d.ts.map +1 -0
- package/dist/api/general/api.d.ts.map +1 -1
- package/dist/api/getSetting/getSettingApi.d.ts +3 -0
- package/dist/api/getSetting/getSettingApi.d.ts.map +1 -0
- package/dist/api/getSetting/index.d.ts +3 -0
- package/dist/api/getSetting/index.d.ts.map +1 -0
- package/dist/api/getSetting/type.d.ts +31 -0
- package/dist/api/getSetting/type.d.ts.map +1 -0
- package/dist/api/hotGames/hotGamesApi.d.ts +3 -0
- package/dist/api/hotGames/hotGamesApi.d.ts.map +1 -0
- package/dist/api/hotGames/index.d.ts +3 -0
- package/dist/api/hotGames/index.d.ts.map +1 -0
- package/dist/api/hotGames/type.d.ts +9 -0
- package/dist/api/hotGames/type.d.ts.map +1 -0
- package/dist/api/logout/index.d.ts +3 -0
- package/dist/api/logout/index.d.ts.map +1 -0
- package/dist/api/logout/logoutApi.d.ts +3 -0
- package/dist/api/logout/logoutApi.d.ts.map +1 -0
- package/dist/api/logout/type.d.ts +8 -0
- package/dist/api/logout/type.d.ts.map +1 -0
- package/dist/api/mSignUp/index.d.ts +3 -0
- package/dist/api/mSignUp/index.d.ts.map +1 -0
- package/dist/api/mSignUp/mSignUpApi.d.ts +3 -0
- package/dist/api/mSignUp/mSignUpApi.d.ts.map +1 -0
- package/dist/api/mSignUp/type.d.ts +28 -0
- package/dist/api/mSignUp/type.d.ts.map +1 -0
- package/dist/api/platforms/index.d.ts +3 -0
- package/dist/api/platforms/index.d.ts.map +1 -0
- package/dist/api/platforms/platformsApi.d.ts +3 -0
- package/dist/api/platforms/platformsApi.d.ts.map +1 -0
- package/dist/api/platforms/type.d.ts +14 -0
- package/dist/api/platforms/type.d.ts.map +1 -0
- package/dist/api/promotion/index.d.ts +3 -0
- package/dist/api/promotion/index.d.ts.map +1 -0
- package/dist/api/promotion/promotionApi.d.ts +3 -0
- package/dist/api/promotion/promotionApi.d.ts.map +1 -0
- package/dist/api/promotion/type.d.ts +23 -0
- package/dist/api/promotion/type.d.ts.map +1 -0
- package/dist/index.d.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/util/tool.d.ts +5 -0
- package/dist/util/tool.d.ts.map +1 -1
- package/dist/util/type.d.ts +15 -0
- package/dist/util/type.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/plugin.d.ts +0 -7
- package/dist/plugin.d.ts.map +0 -1
package/dist/50p82u21t54k.es.js
CHANGED
|
@@ -1983,7 +1983,7 @@ function initDev() {
|
|
|
1983
1983
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1984
1984
|
initDev();
|
|
1985
1985
|
}
|
|
1986
|
-
const gKey
|
|
1986
|
+
const gKey = ref("");
|
|
1987
1987
|
ref("");
|
|
1988
1988
|
const base64Decode = (encodedData) => {
|
|
1989
1989
|
try {
|
|
@@ -1996,7 +1996,7 @@ const base64Decode = (encodedData) => {
|
|
|
1996
1996
|
const decrypt = (data) => {
|
|
1997
1997
|
try {
|
|
1998
1998
|
const decrypted = JSON.parse(
|
|
1999
|
-
CryptoJS.AES.decrypt(data, gKey
|
|
1999
|
+
CryptoJS.AES.decrypt(data, gKey.value, {
|
|
2000
2000
|
format: {
|
|
2001
2001
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2002
2002
|
stringify: (cipherParams) => {
|
|
@@ -2032,37 +2032,42 @@ const decrypt = (data) => {
|
|
|
2032
2032
|
const buildQuery = (params) => {
|
|
2033
2033
|
return new URLSearchParams(Object.entries(params).map(([k, v]) => [k, String(v)]));
|
|
2034
2034
|
};
|
|
2035
|
-
function getRender
|
|
2036
|
-
return gKey$1.value === "" ? 0 : 1;
|
|
2037
|
-
}
|
|
2038
|
-
const gKey = ref("");
|
|
2039
|
-
const loginKey = ref("");
|
|
2040
|
-
const getRender = () => {
|
|
2035
|
+
function getRender() {
|
|
2041
2036
|
return gKey.value === "" ? 0 : 1;
|
|
2042
|
-
}
|
|
2037
|
+
}
|
|
2043
2038
|
const setLoginKey = (key) => {
|
|
2044
|
-
|
|
2039
|
+
localStorage.setItem("access_token", encodeToBase64(key));
|
|
2045
2040
|
};
|
|
2046
2041
|
const getLoginKey = () => {
|
|
2047
|
-
|
|
2042
|
+
var _a;
|
|
2043
|
+
return decodeFromBase64((_a = localStorage.getItem("access_token")) != null ? _a : "");
|
|
2048
2044
|
};
|
|
2049
2045
|
const removeLoginKey = () => {
|
|
2050
|
-
|
|
2046
|
+
localStorage.removeItem("access_token");
|
|
2047
|
+
};
|
|
2048
|
+
const encodeToBase64 = (value) => {
|
|
2049
|
+
const encoder = new TextEncoder();
|
|
2050
|
+
const encoded = encoder.encode(value);
|
|
2051
|
+
return btoa(String.fromCharCode(...encoded));
|
|
2052
|
+
};
|
|
2053
|
+
const decodeFromBase64 = (value) => {
|
|
2054
|
+
if (value == "") return "";
|
|
2055
|
+
const decoded = atob(value);
|
|
2056
|
+
const charCodes = new Uint8Array([...decoded].map((char) => char.charCodeAt(0)));
|
|
2057
|
+
const decoder = new TextDecoder();
|
|
2058
|
+
return decoder.decode(charCodes);
|
|
2051
2059
|
};
|
|
2052
|
-
const plugin = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2053
|
-
__proto__: null,
|
|
2054
|
-
gKey,
|
|
2055
|
-
getLoginKey,
|
|
2056
|
-
getRender,
|
|
2057
|
-
loginKey,
|
|
2058
|
-
removeLoginKey,
|
|
2059
|
-
setLoginKey
|
|
2060
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2061
2060
|
const get = (endpoint, query = null) => __async(null, null, function* () {
|
|
2062
2061
|
let requestPath = endpoint;
|
|
2063
2062
|
if (query) {
|
|
2064
2063
|
requestPath = `${requestPath}?${buildQuery(query)}`;
|
|
2065
2064
|
}
|
|
2065
|
+
const isSSR = typeof import.meta !== "undefined" && false;
|
|
2066
|
+
console.log("[API GET]", {
|
|
2067
|
+
ssr: isSSR,
|
|
2068
|
+
url: requestPath,
|
|
2069
|
+
headers: authHeaders()
|
|
2070
|
+
});
|
|
2066
2071
|
const response = yield fetchWithTimeout(requestPath, {
|
|
2067
2072
|
method: "GET",
|
|
2068
2073
|
headers: authHeaders(),
|
|
@@ -2072,7 +2077,7 @@ const get = (endpoint, query = null) => __async(null, null, function* () {
|
|
|
2072
2077
|
const errorResponse = yield getErrorMessage(response);
|
|
2073
2078
|
return Promise.reject(errorResponse);
|
|
2074
2079
|
}
|
|
2075
|
-
const data = yield getRender
|
|
2080
|
+
const data = yield getRender() ? decrypt(response) : safeJson(response);
|
|
2076
2081
|
if (response.status == 401) {
|
|
2077
2082
|
removeLoginKey();
|
|
2078
2083
|
}
|
|
@@ -2102,7 +2107,7 @@ const post = (endpoint, request, query = null) => __async(null, null, function*
|
|
|
2102
2107
|
const errorResponse = yield getErrorMessage(response);
|
|
2103
2108
|
return Promise.reject(errorResponse);
|
|
2104
2109
|
}
|
|
2105
|
-
const data = yield getRender
|
|
2110
|
+
const data = yield getRender() ? decrypt(response) : safeJson(response);
|
|
2106
2111
|
if (!data) {
|
|
2107
2112
|
return {
|
|
2108
2113
|
data: {},
|
|
@@ -2193,7 +2198,7 @@ const getLocaleApi = () => __async(null, null, function* () {
|
|
|
2193
2198
|
}, DefaultGetLocaleData);
|
|
2194
2199
|
try {
|
|
2195
2200
|
const response = yield get(`/apis/getLocale`, {
|
|
2196
|
-
render: getRender
|
|
2201
|
+
render: getRender(),
|
|
2197
2202
|
json: 1
|
|
2198
2203
|
});
|
|
2199
2204
|
const data = response.data;
|
|
@@ -2235,7 +2240,7 @@ const cmsListApi = () => __async(null, null, function* () {
|
|
|
2235
2240
|
}, DefaultCmsListData);
|
|
2236
2241
|
try {
|
|
2237
2242
|
const response = yield get(`/apis/cmsList`, {
|
|
2238
|
-
render: getRender
|
|
2243
|
+
render: getRender(),
|
|
2239
2244
|
json: 1
|
|
2240
2245
|
});
|
|
2241
2246
|
const data = response.data;
|
|
@@ -2277,7 +2282,7 @@ const loginApi = (..._0) => __async(null, [..._0], function* (dataObject = {}) {
|
|
|
2277
2282
|
}, DefaultLoginData);
|
|
2278
2283
|
try {
|
|
2279
2284
|
const response = yield post(`/apis/login`, dataObject, {
|
|
2280
|
-
render: getRender
|
|
2285
|
+
render: getRender(),
|
|
2281
2286
|
json: 1
|
|
2282
2287
|
});
|
|
2283
2288
|
const data = response.data;
|
|
@@ -2290,13 +2295,13 @@ const loginApi = (..._0) => __async(null, [..._0], function* (dataObject = {}) {
|
|
|
2290
2295
|
loginInfo: {
|
|
2291
2296
|
username: (_d = (_c = data.results) == null ? void 0 : _c.accountcode) != null ? _d : "",
|
|
2292
2297
|
walletBalance: (_f = (_e = data.results) == null ? void 0 : _e.balance) != null ? _f : "",
|
|
2293
|
-
key: (_h = (_g = data.results) == null ? void 0 : _g.
|
|
2298
|
+
key: (_h = (_g = data.results) == null ? void 0 : _g.access_token) != null ? _h : "",
|
|
2294
2299
|
ip: (_j = (_i = data.results) == null ? void 0 : _i.user_ip) != null ? _j : ""
|
|
2295
2300
|
}
|
|
2296
2301
|
}
|
|
2297
2302
|
};
|
|
2298
|
-
if ((_k = data.results) == null ? void 0 : _k.
|
|
2299
|
-
setLoginKey((_l = data.results) == null ? void 0 : _l.
|
|
2303
|
+
if ((_k = data.results) == null ? void 0 : _k.access_token) {
|
|
2304
|
+
setLoginKey((_l = data.results) == null ? void 0 : _l.access_token);
|
|
2300
2305
|
}
|
|
2301
2306
|
} catch (error) {
|
|
2302
2307
|
const extendedError = error;
|
|
@@ -2322,7 +2327,7 @@ const getWinnerListApi = () => __async(null, null, function* () {
|
|
|
2322
2327
|
}, DefaultGetWinnerListData);
|
|
2323
2328
|
try {
|
|
2324
2329
|
const response = yield get(`/apis/getWinnerList`, {
|
|
2325
|
-
render: getRender
|
|
2330
|
+
render: getRender(),
|
|
2326
2331
|
json: 1
|
|
2327
2332
|
});
|
|
2328
2333
|
const data = response.data;
|
|
@@ -2359,7 +2364,7 @@ const announcementApi = () => __async(null, null, function* () {
|
|
|
2359
2364
|
}, DefaultAnnouncementData);
|
|
2360
2365
|
try {
|
|
2361
2366
|
const response = yield get(`/apis/announcements`, {
|
|
2362
|
-
render: getRender
|
|
2367
|
+
render: getRender(),
|
|
2363
2368
|
json: 1
|
|
2364
2369
|
});
|
|
2365
2370
|
const data = response.data;
|
|
@@ -2401,7 +2406,7 @@ const getJackpotTotalApi = () => __async(null, null, function* () {
|
|
|
2401
2406
|
}, DefaultGetJackpotTotalData);
|
|
2402
2407
|
try {
|
|
2403
2408
|
const response = yield get(`/getJackpotTotal`, {
|
|
2404
|
-
render: getRender
|
|
2409
|
+
render: getRender(),
|
|
2405
2410
|
json: 1
|
|
2406
2411
|
});
|
|
2407
2412
|
const data = response.data;
|
|
@@ -2443,7 +2448,7 @@ const messageApi = () => __async(null, null, function* () {
|
|
|
2443
2448
|
}, DefaultMessageData);
|
|
2444
2449
|
try {
|
|
2445
2450
|
const response = yield get(`/apis/msg`, {
|
|
2446
|
-
render: getRender
|
|
2451
|
+
render: getRender(),
|
|
2447
2452
|
json: 1
|
|
2448
2453
|
});
|
|
2449
2454
|
const data = response.data;
|
|
@@ -2480,7 +2485,7 @@ const getMessageApi = (id) => __async(null, null, function* () {
|
|
|
2480
2485
|
}, DefaultGetMessageData);
|
|
2481
2486
|
try {
|
|
2482
2487
|
const response = yield get(`/apis/msg/${id}`, {
|
|
2483
|
-
render: getRender
|
|
2488
|
+
render: getRender(),
|
|
2484
2489
|
json: 1
|
|
2485
2490
|
});
|
|
2486
2491
|
const data = response.data;
|
|
@@ -2527,7 +2532,7 @@ const cashWalletGetApi = () => __async(null, null, function* () {
|
|
|
2527
2532
|
const dataObject = {};
|
|
2528
2533
|
dataObject.access_token = getLoginKey();
|
|
2529
2534
|
const response = yield post(`/Cashwallet/get`, dataObject, {
|
|
2530
|
-
render: getRender
|
|
2535
|
+
render: getRender(),
|
|
2531
2536
|
json: 1
|
|
2532
2537
|
});
|
|
2533
2538
|
const data = response.data;
|
|
@@ -2622,7 +2627,7 @@ const cashWalletGetLastApi = () => __async(null, null, function* () {
|
|
|
2622
2627
|
`/Cashwallet/get/last`,
|
|
2623
2628
|
dataObject,
|
|
2624
2629
|
{
|
|
2625
|
-
render: getRender
|
|
2630
|
+
render: getRender(),
|
|
2626
2631
|
json: 1
|
|
2627
2632
|
}
|
|
2628
2633
|
);
|
|
@@ -2655,7 +2660,7 @@ const cashWalletGetWalletApi = (com) => __async(null, null, function* () {
|
|
|
2655
2660
|
`/Cashwallet/get/${com}`,
|
|
2656
2661
|
dataObject,
|
|
2657
2662
|
{
|
|
2658
|
-
render: getRender
|
|
2663
|
+
render: getRender(),
|
|
2659
2664
|
json: 1
|
|
2660
2665
|
}
|
|
2661
2666
|
);
|
|
@@ -2691,7 +2696,7 @@ const cashWalletTransferApi = (..._0) => __async(null, [..._0], function* (dataO
|
|
|
2691
2696
|
`/Cashwallet/wallet/transfer`,
|
|
2692
2697
|
dataObject,
|
|
2693
2698
|
{
|
|
2694
|
-
render: getRender
|
|
2699
|
+
render: getRender(),
|
|
2695
2700
|
json: 1
|
|
2696
2701
|
}
|
|
2697
2702
|
);
|
|
@@ -2724,7 +2729,7 @@ const mobileBannerApi = () => __async(null, null, function* () {
|
|
|
2724
2729
|
}, DefaultMobileBannerData);
|
|
2725
2730
|
try {
|
|
2726
2731
|
const response = yield get(`/apis/mobileBanner`, {
|
|
2727
|
-
render: getRender
|
|
2732
|
+
render: getRender(),
|
|
2728
2733
|
json: 1
|
|
2729
2734
|
});
|
|
2730
2735
|
const data = response.data;
|
|
@@ -2761,7 +2766,7 @@ const footerInfoApi = () => __async(null, null, function* () {
|
|
|
2761
2766
|
}, DefaultFooterInfoData);
|
|
2762
2767
|
try {
|
|
2763
2768
|
const response = yield get(`/apis/footerInfo`, {
|
|
2764
|
-
render: getRender
|
|
2769
|
+
render: getRender(),
|
|
2765
2770
|
json: 1
|
|
2766
2771
|
});
|
|
2767
2772
|
const data = response.data;
|
|
@@ -2810,7 +2815,7 @@ const profileApi = () => __async(null, null, function* () {
|
|
|
2810
2815
|
}, DefaultProfileData);
|
|
2811
2816
|
try {
|
|
2812
2817
|
const response = yield get(`/apis/profile`, {
|
|
2813
|
-
render: getRender
|
|
2818
|
+
render: getRender(),
|
|
2814
2819
|
json: 1
|
|
2815
2820
|
});
|
|
2816
2821
|
const data = response.data;
|
|
@@ -2844,7 +2849,486 @@ const profileApi = () => __async(null, null, function* () {
|
|
|
2844
2849
|
}
|
|
2845
2850
|
return result;
|
|
2846
2851
|
});
|
|
2852
|
+
const DefaultPlatformsData = {
|
|
2853
|
+
data: {
|
|
2854
|
+
status: false,
|
|
2855
|
+
message: "",
|
|
2856
|
+
platformList: []
|
|
2857
|
+
}
|
|
2858
|
+
};
|
|
2859
|
+
const platformsApi = () => __async(null, null, function* () {
|
|
2860
|
+
var _a, _b, _c;
|
|
2861
|
+
let result = __spreadValues({
|
|
2862
|
+
status: 200,
|
|
2863
|
+
message: ""
|
|
2864
|
+
}, DefaultPlatformsData);
|
|
2865
|
+
try {
|
|
2866
|
+
const response = yield get(`/apis/platforms`, {
|
|
2867
|
+
render: getRender(),
|
|
2868
|
+
json: 1
|
|
2869
|
+
});
|
|
2870
|
+
const data = response.data;
|
|
2871
|
+
result = {
|
|
2872
|
+
status: data.code,
|
|
2873
|
+
message: (_a = data.message) != null ? _a : "",
|
|
2874
|
+
data: {
|
|
2875
|
+
status: data.status,
|
|
2876
|
+
message: (_b = data.message) != null ? _b : "",
|
|
2877
|
+
platformList: (_c = data.results.map((item) => {
|
|
2878
|
+
return {
|
|
2879
|
+
productMasterId: item.id_ProductMaster,
|
|
2880
|
+
name: item.name,
|
|
2881
|
+
com: item.com
|
|
2882
|
+
};
|
|
2883
|
+
})) != null ? _c : []
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2886
|
+
} catch (error) {
|
|
2887
|
+
const extendedError = error;
|
|
2888
|
+
result = __spreadValues({
|
|
2889
|
+
status: extendedError.status || 500,
|
|
2890
|
+
message: error.message
|
|
2891
|
+
}, DefaultPlatformsData);
|
|
2892
|
+
}
|
|
2893
|
+
return result;
|
|
2894
|
+
});
|
|
2895
|
+
const DefaultGetSettingData = {
|
|
2896
|
+
data: {
|
|
2897
|
+
status: false,
|
|
2898
|
+
message: "",
|
|
2899
|
+
settings: {}
|
|
2900
|
+
}
|
|
2901
|
+
};
|
|
2902
|
+
const getSettingApi = (key) => __async(null, null, function* () {
|
|
2903
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
2904
|
+
let result = __spreadValues({
|
|
2905
|
+
status: 200,
|
|
2906
|
+
message: ""
|
|
2907
|
+
}, DefaultGetSettingData);
|
|
2908
|
+
try {
|
|
2909
|
+
const response = yield get(`/apis/getSetting/${key}`, {
|
|
2910
|
+
render: getRender(),
|
|
2911
|
+
json: 1
|
|
2912
|
+
});
|
|
2913
|
+
const data = response.data;
|
|
2914
|
+
result.status = data.code;
|
|
2915
|
+
result.message = (_a = data.message) != null ? _a : "";
|
|
2916
|
+
result.data.status = data.status;
|
|
2917
|
+
result.data.message = (_b = data.message) != null ? _b : "";
|
|
2918
|
+
if (data.results.data.LIVECHAT_LINK) {
|
|
2919
|
+
result.data.settings.liveChat = {
|
|
2920
|
+
title: (_d = (_c = data.results.data.LIVECHAT_LINK) == null ? void 0 : _c.label) != null ? _d : "",
|
|
2921
|
+
imgUrl: (_f = (_e = data.results.data.LIVECHAT_LINK) == null ? void 0 : _e.img) != null ? _f : "",
|
|
2922
|
+
linkUrl: (_h = (_g = data.results.data.LIVECHAT_LINK) == null ? void 0 : _g.value) != null ? _h : ""
|
|
2923
|
+
};
|
|
2924
|
+
return result;
|
|
2925
|
+
}
|
|
2926
|
+
if (data.results.data.MOBILE_COLOR_THEME) {
|
|
2927
|
+
result.data.settings.colorTheme = (_i = data.results.data.MOBILE_COLOR_THEME) != null ? _i : "";
|
|
2928
|
+
return result;
|
|
2929
|
+
}
|
|
2930
|
+
if (data.results.data.M_DEVICE) {
|
|
2931
|
+
result.data.settings.template = (_j = data.results.data.M_DEVICE) != null ? _j : "";
|
|
2932
|
+
return result;
|
|
2933
|
+
}
|
|
2934
|
+
if (data.results.data.FESTIVE_EVENT) {
|
|
2935
|
+
result.data.settings.festiveEvent = (_k = data.results.data.FESTIVE_EVENT) != null ? _k : "";
|
|
2936
|
+
return result;
|
|
2937
|
+
}
|
|
2938
|
+
if (data.results.data.POP_AD_NO_SHOW) {
|
|
2939
|
+
result.data.settings.doNotShowPopAd = data.results.data.POP_AD_NO_SHOW == "1";
|
|
2940
|
+
return result;
|
|
2941
|
+
}
|
|
2942
|
+
if (data.results.data.CMS_NO_SHOW) {
|
|
2943
|
+
result.data.settings.doNotShowCMS = data.results.data.CMS_NO_SHOW == "1";
|
|
2944
|
+
return result;
|
|
2945
|
+
}
|
|
2946
|
+
} catch (error) {
|
|
2947
|
+
const extendedError = error;
|
|
2948
|
+
result = __spreadValues({
|
|
2949
|
+
status: extendedError.status || 500,
|
|
2950
|
+
message: error.message
|
|
2951
|
+
}, DefaultGetSettingData);
|
|
2952
|
+
}
|
|
2953
|
+
return result;
|
|
2954
|
+
});
|
|
2955
|
+
var SettingCategory = /* @__PURE__ */ ((SettingCategory2) => {
|
|
2956
|
+
SettingCategory2["liveChat"] = "livechat";
|
|
2957
|
+
SettingCategory2["mobileColorTheme"] = "MOBILE_COLOR_THEME";
|
|
2958
|
+
SettingCategory2["mDevice"] = "M_DEVICE";
|
|
2959
|
+
SettingCategory2["festiveEvent"] = "FESTIVE_EVENT";
|
|
2960
|
+
SettingCategory2["popAdNoShow"] = "POP_AD_NO_SHOW";
|
|
2961
|
+
SettingCategory2["cmsNoShow"] = "CMS_NO_SHOW";
|
|
2962
|
+
SettingCategory2["annPopup"] = "annPopup";
|
|
2963
|
+
return SettingCategory2;
|
|
2964
|
+
})(SettingCategory || {});
|
|
2965
|
+
const DefaultEventListData = {
|
|
2966
|
+
data: {
|
|
2967
|
+
status: false,
|
|
2968
|
+
message: "",
|
|
2969
|
+
eventList: []
|
|
2970
|
+
}
|
|
2971
|
+
};
|
|
2972
|
+
const eventListApi = () => __async(null, null, function* () {
|
|
2973
|
+
var _a, _b;
|
|
2974
|
+
let result = __spreadValues({
|
|
2975
|
+
status: 200,
|
|
2976
|
+
message: ""
|
|
2977
|
+
}, DefaultEventListData);
|
|
2978
|
+
try {
|
|
2979
|
+
const response = yield get(`/apis/eventlist`, {
|
|
2980
|
+
render: getRender(),
|
|
2981
|
+
json: 1
|
|
2982
|
+
});
|
|
2983
|
+
const data = response.data;
|
|
2984
|
+
result = {
|
|
2985
|
+
status: data.code,
|
|
2986
|
+
message: (_a = data.message) != null ? _a : "",
|
|
2987
|
+
data: {
|
|
2988
|
+
status: data.status,
|
|
2989
|
+
message: (_b = data.message) != null ? _b : "",
|
|
2990
|
+
eventList: data.results.all_event.map((item) => {
|
|
2991
|
+
return {
|
|
2992
|
+
date: item.date,
|
|
2993
|
+
imgUrl: item.img,
|
|
2994
|
+
linkUrl: item.link,
|
|
2995
|
+
title: item.title,
|
|
2996
|
+
content: item.content,
|
|
2997
|
+
isGameActive: item.gameActive,
|
|
2998
|
+
gameUrl: item.url
|
|
2999
|
+
};
|
|
3000
|
+
})
|
|
3001
|
+
}
|
|
3002
|
+
};
|
|
3003
|
+
} catch (error) {
|
|
3004
|
+
const extendedError = error;
|
|
3005
|
+
result = __spreadValues({
|
|
3006
|
+
status: extendedError.status || 500,
|
|
3007
|
+
message: error.message
|
|
3008
|
+
}, DefaultEventListData);
|
|
3009
|
+
}
|
|
3010
|
+
return result;
|
|
3011
|
+
});
|
|
3012
|
+
const DefaultMSignUpData = {
|
|
3013
|
+
data: {
|
|
3014
|
+
upline: "",
|
|
3015
|
+
enableCaptcha: false,
|
|
3016
|
+
isMobileVerify: false,
|
|
3017
|
+
inputFields: []
|
|
3018
|
+
}
|
|
3019
|
+
};
|
|
3020
|
+
const mSignUpApi = () => __async(null, null, function* () {
|
|
3021
|
+
let result = __spreadValues({
|
|
3022
|
+
status: 200,
|
|
3023
|
+
message: ""
|
|
3024
|
+
}, DefaultMSignUpData);
|
|
3025
|
+
try {
|
|
3026
|
+
const response = yield get(`/apis/msignup`, {
|
|
3027
|
+
render: getRender(),
|
|
3028
|
+
json: 1
|
|
3029
|
+
});
|
|
3030
|
+
const data = response.data;
|
|
3031
|
+
result.data = {
|
|
3032
|
+
upline: data.upline,
|
|
3033
|
+
enableCaptcha: data.captcha,
|
|
3034
|
+
isMobileVerify: data.mobile_verify === 1,
|
|
3035
|
+
inputFields: data.objlists.fields.map((field) => {
|
|
3036
|
+
const tempData = {
|
|
3037
|
+
fieldName: field.showname,
|
|
3038
|
+
required: field.required === 1,
|
|
3039
|
+
regex: field.regex,
|
|
3040
|
+
minLength: field.minlen ? field.minlen : `${field.maxlength}`,
|
|
3041
|
+
maxLength: `${field.maxlength}`,
|
|
3042
|
+
inputHelper: field.help,
|
|
3043
|
+
inputType: field.type
|
|
3044
|
+
};
|
|
3045
|
+
if (field.country) {
|
|
3046
|
+
tempData.countryMobile = field.country.map((country) => ({
|
|
3047
|
+
countryId: country.countryindex,
|
|
3048
|
+
code: `+${country.isd}`,
|
|
3049
|
+
regex: country.mobile_regex,
|
|
3050
|
+
value: `${country.isd}`,
|
|
3051
|
+
minLength: parseInt(country.min, 10),
|
|
3052
|
+
maxLength: parseInt(country.max, 10)
|
|
3053
|
+
}))[0];
|
|
3054
|
+
}
|
|
3055
|
+
return tempData;
|
|
3056
|
+
})
|
|
3057
|
+
};
|
|
3058
|
+
} catch (error) {
|
|
3059
|
+
const extendedError = error;
|
|
3060
|
+
result = __spreadValues({
|
|
3061
|
+
status: extendedError.status || 500,
|
|
3062
|
+
message: error.message
|
|
3063
|
+
}, DefaultMSignUpData);
|
|
3064
|
+
}
|
|
3065
|
+
return result;
|
|
3066
|
+
});
|
|
3067
|
+
const DefaultHotGamesData = {
|
|
3068
|
+
data: {
|
|
3069
|
+
status: false,
|
|
3070
|
+
message: "",
|
|
3071
|
+
gameList: { currentPage: 1, lastPage: 1, data: [] }
|
|
3072
|
+
}
|
|
3073
|
+
};
|
|
3074
|
+
const hotGamesApi = () => __async(null, null, function* () {
|
|
3075
|
+
var _a, _b;
|
|
3076
|
+
let result = __spreadValues({
|
|
3077
|
+
status: 200,
|
|
3078
|
+
message: ""
|
|
3079
|
+
}, DefaultHotGamesData);
|
|
3080
|
+
try {
|
|
3081
|
+
const response = yield get(`/apis/hotgames`, {
|
|
3082
|
+
render: getRender(),
|
|
3083
|
+
json: 1
|
|
3084
|
+
});
|
|
3085
|
+
const data = response.data;
|
|
3086
|
+
result = {
|
|
3087
|
+
status: data.code,
|
|
3088
|
+
message: (_a = data.message) != null ? _a : "",
|
|
3089
|
+
data: {
|
|
3090
|
+
status: data.status,
|
|
3091
|
+
message: (_b = data.message) != null ? _b : "",
|
|
3092
|
+
gameList: {
|
|
3093
|
+
currentPage: data.results.current_page,
|
|
3094
|
+
lastPage: data.results.last_page,
|
|
3095
|
+
data: data.results.data.map(
|
|
3096
|
+
(game) => ({
|
|
3097
|
+
gameId: game.game_id,
|
|
3098
|
+
platformId: game.ppid,
|
|
3099
|
+
platformCode: game.code,
|
|
3100
|
+
platformName: game.ppname,
|
|
3101
|
+
name: game.name,
|
|
3102
|
+
imageUrl: game.img,
|
|
3103
|
+
logoUrl: game.imgPf,
|
|
3104
|
+
isFavourite: game.favourite_flag === 1
|
|
3105
|
+
})
|
|
3106
|
+
)
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
};
|
|
3110
|
+
} catch (error) {
|
|
3111
|
+
const extendedError = error;
|
|
3112
|
+
result = __spreadValues({
|
|
3113
|
+
status: extendedError.status || 500,
|
|
3114
|
+
message: error.message
|
|
3115
|
+
}, DefaultHotGamesData);
|
|
3116
|
+
}
|
|
3117
|
+
return result;
|
|
3118
|
+
});
|
|
3119
|
+
const DefaultFishGamesData = {
|
|
3120
|
+
data: {
|
|
3121
|
+
status: false,
|
|
3122
|
+
message: "",
|
|
3123
|
+
gameList: { currentPage: 1, lastPage: 1, data: [] },
|
|
3124
|
+
hotList: { currentPage: 1, lastPage: 1, data: [] }
|
|
3125
|
+
}
|
|
3126
|
+
};
|
|
3127
|
+
const fishGamesApi = () => __async(null, null, function* () {
|
|
3128
|
+
var _a, _b;
|
|
3129
|
+
let result = __spreadValues({
|
|
3130
|
+
status: 200,
|
|
3131
|
+
message: ""
|
|
3132
|
+
}, DefaultFishGamesData);
|
|
3133
|
+
try {
|
|
3134
|
+
const response = yield get(`/apis/fishgames`, {
|
|
3135
|
+
render: getRender(),
|
|
3136
|
+
json: 1
|
|
3137
|
+
});
|
|
3138
|
+
const data = response.data;
|
|
3139
|
+
result = {
|
|
3140
|
+
status: data.code,
|
|
3141
|
+
message: (_a = data.message) != null ? _a : "",
|
|
3142
|
+
data: {
|
|
3143
|
+
status: data.status,
|
|
3144
|
+
message: (_b = data.message) != null ? _b : "",
|
|
3145
|
+
gameList: {
|
|
3146
|
+
currentPage: 1,
|
|
3147
|
+
lastPage: 1,
|
|
3148
|
+
data: data.results.data.map(
|
|
3149
|
+
(game) => ({
|
|
3150
|
+
gameId: game.game_id,
|
|
3151
|
+
platformId: game.pp_id,
|
|
3152
|
+
platformCode: game.platform_code,
|
|
3153
|
+
platformName: game.pp_name,
|
|
3154
|
+
name: game.name,
|
|
3155
|
+
imageUrl: game.img,
|
|
3156
|
+
logoUrl: game.imgPf,
|
|
3157
|
+
isFavourite: game.favourite_flag === 1
|
|
3158
|
+
})
|
|
3159
|
+
)
|
|
3160
|
+
},
|
|
3161
|
+
hotList: {
|
|
3162
|
+
currentPage: 1,
|
|
3163
|
+
lastPage: 1,
|
|
3164
|
+
data: data.results.hotfish.map(
|
|
3165
|
+
(game) => ({
|
|
3166
|
+
gameId: game.game_id,
|
|
3167
|
+
platformId: game.pp_id,
|
|
3168
|
+
platformCode: game.platform_code,
|
|
3169
|
+
platformName: game.pp_name,
|
|
3170
|
+
name: game.name,
|
|
3171
|
+
imageUrl: game.img,
|
|
3172
|
+
logoUrl: game.imgPf,
|
|
3173
|
+
isFavourite: game.favourite_flag === 1
|
|
3174
|
+
})
|
|
3175
|
+
)
|
|
3176
|
+
}
|
|
3177
|
+
}
|
|
3178
|
+
};
|
|
3179
|
+
} catch (error) {
|
|
3180
|
+
const extendedError = error;
|
|
3181
|
+
result = __spreadValues({
|
|
3182
|
+
status: extendedError.status || 500,
|
|
3183
|
+
message: error.message
|
|
3184
|
+
}, DefaultFishGamesData);
|
|
3185
|
+
}
|
|
3186
|
+
return result;
|
|
3187
|
+
});
|
|
3188
|
+
const DefaultPromotionData = {
|
|
3189
|
+
data: {
|
|
3190
|
+
status: false,
|
|
3191
|
+
message: "",
|
|
3192
|
+
category: [],
|
|
3193
|
+
list: []
|
|
3194
|
+
}
|
|
3195
|
+
};
|
|
3196
|
+
const promotionApi = () => __async(null, null, function* () {
|
|
3197
|
+
var _a, _b;
|
|
3198
|
+
let result = __spreadValues({
|
|
3199
|
+
status: 200,
|
|
3200
|
+
message: ""
|
|
3201
|
+
}, DefaultPromotionData);
|
|
3202
|
+
try {
|
|
3203
|
+
const response = yield get(`/apis/promotion`, {
|
|
3204
|
+
render: getRender(),
|
|
3205
|
+
json: 1
|
|
3206
|
+
});
|
|
3207
|
+
const data = response.data;
|
|
3208
|
+
result = {
|
|
3209
|
+
status: data.code,
|
|
3210
|
+
message: (_a = data.message) != null ? _a : "",
|
|
3211
|
+
data: {
|
|
3212
|
+
status: data.status,
|
|
3213
|
+
message: (_b = data.message) != null ? _b : "",
|
|
3214
|
+
category: data.results.promoCat.map((cat) => ({
|
|
3215
|
+
id: cat.catid,
|
|
3216
|
+
name: cat.name
|
|
3217
|
+
})),
|
|
3218
|
+
list: data.results.objList.map((promo) => {
|
|
3219
|
+
var _a2, _b2, _c, _d, _e;
|
|
3220
|
+
return {
|
|
3221
|
+
promoId: promo.promoindex,
|
|
3222
|
+
categoryId: promo.catid,
|
|
3223
|
+
imgUrl: (_a2 = promo.image) != null ? _a2 : "",
|
|
3224
|
+
content: (_b2 = promo.content) != null ? _b2 : "",
|
|
3225
|
+
time: (_c = promo.display_time) != null ? _c : "",
|
|
3226
|
+
name: (_d = promo.title) != null ? _d : "",
|
|
3227
|
+
isLink: (_e = promo.isLink) != null ? _e : false
|
|
3228
|
+
};
|
|
3229
|
+
})
|
|
3230
|
+
}
|
|
3231
|
+
};
|
|
3232
|
+
} catch (error) {
|
|
3233
|
+
const extendedError = error;
|
|
3234
|
+
result = __spreadValues({
|
|
3235
|
+
status: extendedError.status || 500,
|
|
3236
|
+
message: error.message
|
|
3237
|
+
}, DefaultPromotionData);
|
|
3238
|
+
}
|
|
3239
|
+
return result;
|
|
3240
|
+
});
|
|
3241
|
+
const DefaultAgentRegisterData = {
|
|
3242
|
+
data: {
|
|
3243
|
+
upline: "",
|
|
3244
|
+
enabled: false,
|
|
3245
|
+
captcha: false,
|
|
3246
|
+
form: [],
|
|
3247
|
+
bankList: []
|
|
3248
|
+
}
|
|
3249
|
+
};
|
|
3250
|
+
const agentRegisterApi = () => __async(null, null, function* () {
|
|
3251
|
+
var _a, _b;
|
|
3252
|
+
let result = __spreadValues({
|
|
3253
|
+
status: 200,
|
|
3254
|
+
message: ""
|
|
3255
|
+
}, DefaultAgentRegisterData);
|
|
3256
|
+
try {
|
|
3257
|
+
const response = yield get(`/apis/agent-register`, {
|
|
3258
|
+
render: getRender(),
|
|
3259
|
+
json: 1
|
|
3260
|
+
});
|
|
3261
|
+
const data = response.data;
|
|
3262
|
+
result.data = {
|
|
3263
|
+
upline: data.upline,
|
|
3264
|
+
enabled: data.agReg_enable,
|
|
3265
|
+
captcha: data.captcha,
|
|
3266
|
+
form: (_a = data.objlists.fields.map((field) => {
|
|
3267
|
+
var _a2;
|
|
3268
|
+
return {
|
|
3269
|
+
fieldName: field.showname,
|
|
3270
|
+
required: field.required === 1,
|
|
3271
|
+
regex: field.regex,
|
|
3272
|
+
maxLength: field.maxlength,
|
|
3273
|
+
inputHelper: (_a2 = field.help) != null ? _a2 : ""
|
|
3274
|
+
};
|
|
3275
|
+
})) != null ? _a : [],
|
|
3276
|
+
bankList: (_b = data.banklist.map((bank) => {
|
|
3277
|
+
return {
|
|
3278
|
+
bankId: bank.bankindex,
|
|
3279
|
+
bankName: bank.bankname,
|
|
3280
|
+
bankCode: bank.swiftcode
|
|
3281
|
+
};
|
|
3282
|
+
})) != null ? _b : []
|
|
3283
|
+
};
|
|
3284
|
+
} catch (error) {
|
|
3285
|
+
const extendedError = error;
|
|
3286
|
+
result = __spreadValues({
|
|
3287
|
+
status: extendedError.status || 500,
|
|
3288
|
+
message: error.message
|
|
3289
|
+
}, DefaultAgentRegisterData);
|
|
3290
|
+
}
|
|
3291
|
+
return result;
|
|
3292
|
+
});
|
|
3293
|
+
const DefaultLogoutData = {
|
|
3294
|
+
data: {
|
|
3295
|
+
status: false,
|
|
3296
|
+
message: ""
|
|
3297
|
+
}
|
|
3298
|
+
};
|
|
3299
|
+
const logoutApi = () => __async(null, null, function* () {
|
|
3300
|
+
var _a, _b;
|
|
3301
|
+
let result = __spreadValues({
|
|
3302
|
+
status: 200,
|
|
3303
|
+
message: ""
|
|
3304
|
+
}, DefaultLogoutData);
|
|
3305
|
+
try {
|
|
3306
|
+
const response = yield get(`/apis/logout`, {
|
|
3307
|
+
render: getRender(),
|
|
3308
|
+
json: 1
|
|
3309
|
+
});
|
|
3310
|
+
const data = response.data;
|
|
3311
|
+
result = {
|
|
3312
|
+
status: data.code,
|
|
3313
|
+
message: (_a = data.message) != null ? _a : "",
|
|
3314
|
+
data: {
|
|
3315
|
+
status: data.status,
|
|
3316
|
+
message: (_b = data.results) != null ? _b : ""
|
|
3317
|
+
}
|
|
3318
|
+
};
|
|
3319
|
+
removeLoginKey();
|
|
3320
|
+
} catch (error) {
|
|
3321
|
+
const extendedError = error;
|
|
3322
|
+
result = __spreadValues({
|
|
3323
|
+
status: extendedError.status || 500,
|
|
3324
|
+
message: error.message
|
|
3325
|
+
}, DefaultLogoutData);
|
|
3326
|
+
}
|
|
3327
|
+
return result;
|
|
3328
|
+
});
|
|
2847
3329
|
export {
|
|
3330
|
+
SettingCategory,
|
|
3331
|
+
agentRegisterApi,
|
|
2848
3332
|
announcementApi,
|
|
2849
3333
|
api,
|
|
2850
3334
|
cashWalletGetApi,
|
|
@@ -2852,14 +3336,21 @@ export {
|
|
|
2852
3336
|
cashWalletGetWalletApi,
|
|
2853
3337
|
cashWalletTransferApi,
|
|
2854
3338
|
cmsListApi,
|
|
3339
|
+
eventListApi,
|
|
3340
|
+
fishGamesApi,
|
|
2855
3341
|
footerInfoApi,
|
|
2856
3342
|
getJackpotTotalApi,
|
|
2857
3343
|
getLocaleApi,
|
|
2858
3344
|
getMessageApi,
|
|
3345
|
+
getSettingApi,
|
|
2859
3346
|
getWinnerListApi,
|
|
3347
|
+
hotGamesApi,
|
|
2860
3348
|
loginApi,
|
|
3349
|
+
logoutApi,
|
|
3350
|
+
mSignUpApi,
|
|
2861
3351
|
messageApi,
|
|
2862
3352
|
mobileBannerApi,
|
|
2863
|
-
|
|
2864
|
-
profileApi
|
|
3353
|
+
platformsApi,
|
|
3354
|
+
profileApi,
|
|
3355
|
+
promotionApi
|
|
2865
3356
|
};
|