50p82u21t54k 0.0.20 → 0.0.22
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.es.js +592 -348
- package/dist/50p82u21t54k.umd.js +1 -1
- package/dist/cmsList/index.d.ts +3 -0
- package/dist/cmsList/index.d.ts.map +1 -0
- package/dist/cmsList/method.d.ts +45 -0
- package/dist/cmsList/method.d.ts.map +1 -0
- package/dist/cmsList/type.d.ts +19 -0
- package/dist/cmsList/type.d.ts.map +1 -0
- package/dist/csLink/index.d.ts +3 -0
- package/dist/csLink/index.d.ts.map +1 -0
- package/dist/csLink/method.d.ts +8 -0
- package/dist/csLink/method.d.ts.map +1 -0
- package/dist/csLink/type.d.ts +9 -0
- package/dist/csLink/type.d.ts.map +1 -0
- package/dist/currentLang/index.d.ts +3 -0
- package/dist/currentLang/index.d.ts.map +1 -0
- package/dist/currentLang/method.d.ts +4 -0
- package/dist/currentLang/method.d.ts.map +1 -0
- package/dist/currentLang/type.d.ts +6 -0
- package/dist/currentLang/type.d.ts.map +1 -0
- package/dist/eGame/index.d.ts +3 -0
- package/dist/eGame/index.d.ts.map +1 -0
- package/dist/eGame/method.d.ts +22 -0
- package/dist/eGame/method.d.ts.map +1 -0
- package/dist/eGame/type.d.ts +24 -0
- package/dist/eGame/type.d.ts.map +1 -0
- package/dist/fishGames/method.d.ts +3 -1
- package/dist/fishGames/method.d.ts.map +1 -1
- package/dist/fishGames/type.d.ts +7 -6
- package/dist/fishGames/type.d.ts.map +1 -1
- package/dist/getLocale/index.d.ts +3 -0
- package/dist/getLocale/index.d.ts.map +1 -0
- package/dist/getLocale/method.d.ts +16 -0
- package/dist/getLocale/method.d.ts.map +1 -0
- package/dist/getLocale/type.d.ts +10 -0
- package/dist/getLocale/type.d.ts.map +1 -0
- package/dist/getSetting/type.d.ts.map +1 -1
- package/dist/home/method.d.ts +4 -2
- package/dist/home/method.d.ts.map +1 -1
- package/dist/home/type.d.ts +10 -9
- package/dist/home/type.d.ts.map +1 -1
- package/dist/hotGames/method.d.ts +2 -1
- package/dist/hotGames/method.d.ts.map +1 -1
- package/dist/hotGames/type.d.ts +31 -30
- package/dist/hotGames/type.d.ts.map +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/plugin.d.ts +7 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/promotion/index.d.ts +3 -0
- package/dist/promotion/index.d.ts.map +1 -0
- package/dist/promotion/method.d.ts +46 -0
- package/dist/promotion/method.d.ts.map +1 -0
- package/dist/promotion/type.d.ts +49 -0
- package/dist/promotion/type.d.ts.map +1 -0
- package/dist/trialGames/method.d.ts +2 -1
- package/dist/trialGames/method.d.ts.map +1 -1
- package/dist/trialGames/type.d.ts +8 -7
- package/dist/trialGames/type.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/50p82u21t54k.es.js
CHANGED
|
@@ -1,27 +1,93 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ref as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
__proto__: null,
|
|
6
|
-
get getHome() {
|
|
7
|
-
return F;
|
|
8
|
-
}
|
|
9
|
-
}, Symbol.toStringTag, { value: "Module" })), v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1
|
+
import N from "axios";
|
|
2
|
+
import { ref as A } from "vue";
|
|
3
|
+
import p from "crypto-js";
|
|
4
|
+
const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
5
|
__proto__: null,
|
|
11
6
|
get getHotGames() {
|
|
12
|
-
return
|
|
7
|
+
return z;
|
|
8
|
+
},
|
|
9
|
+
get processHotGamesData() {
|
|
10
|
+
return d;
|
|
13
11
|
}
|
|
14
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
13
|
__proto__: null,
|
|
16
14
|
get getFishGames() {
|
|
17
|
-
return
|
|
15
|
+
return U;
|
|
16
|
+
},
|
|
17
|
+
get processFishGame() {
|
|
18
|
+
return f;
|
|
19
|
+
},
|
|
20
|
+
get processFishGamesData() {
|
|
21
|
+
return _;
|
|
18
22
|
}
|
|
19
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20
24
|
__proto__: null,
|
|
21
25
|
get getTrialGames() {
|
|
22
|
-
return
|
|
26
|
+
return H;
|
|
27
|
+
},
|
|
28
|
+
get processTrialGamesData() {
|
|
29
|
+
return y;
|
|
30
|
+
}
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" })), M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32
|
+
__proto__: null,
|
|
33
|
+
get getHome() {
|
|
34
|
+
return q;
|
|
35
|
+
},
|
|
36
|
+
get processHomeData() {
|
|
37
|
+
return h;
|
|
38
|
+
},
|
|
39
|
+
get processPlatformGame() {
|
|
40
|
+
return u;
|
|
41
|
+
}
|
|
42
|
+
}, Symbol.toStringTag, { value: "Module" })), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43
|
+
__proto__: null,
|
|
44
|
+
get getCurrentLang() {
|
|
45
|
+
return V;
|
|
23
46
|
}
|
|
24
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
47
|
+
}, Symbol.toStringTag, { value: "Module" })), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48
|
+
__proto__: null,
|
|
49
|
+
get getPromotion() {
|
|
50
|
+
return $;
|
|
51
|
+
},
|
|
52
|
+
get processPromotionData() {
|
|
53
|
+
return b;
|
|
54
|
+
}
|
|
55
|
+
}, Symbol.toStringTag, { value: "Module" })), D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
56
|
+
__proto__: null,
|
|
57
|
+
get getGetLocale() {
|
|
58
|
+
return K;
|
|
59
|
+
},
|
|
60
|
+
get processGetLocaleData() {
|
|
61
|
+
return P;
|
|
62
|
+
}
|
|
63
|
+
}, Symbol.toStringTag, { value: "Module" })), B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
64
|
+
__proto__: null,
|
|
65
|
+
get getCsLink() {
|
|
66
|
+
return Q;
|
|
67
|
+
},
|
|
68
|
+
get processCsLinkData() {
|
|
69
|
+
return G;
|
|
70
|
+
}
|
|
71
|
+
}, Symbol.toStringTag, { value: "Module" })), x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72
|
+
__proto__: null,
|
|
73
|
+
get getEGame() {
|
|
74
|
+
return W;
|
|
75
|
+
},
|
|
76
|
+
get processEGameData() {
|
|
77
|
+
return L;
|
|
78
|
+
}
|
|
79
|
+
}, Symbol.toStringTag, { value: "Module" })), R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
80
|
+
__proto__: null,
|
|
81
|
+
get CmsId() {
|
|
82
|
+
return O;
|
|
83
|
+
},
|
|
84
|
+
get getCmsList() {
|
|
85
|
+
return X;
|
|
86
|
+
},
|
|
87
|
+
get processCsLinkData() {
|
|
88
|
+
return v;
|
|
89
|
+
}
|
|
90
|
+
}, Symbol.toStringTag, { value: "Module" })), n = N.create({
|
|
25
91
|
baseURL: "/apis",
|
|
26
92
|
timeout: 5e3,
|
|
27
93
|
// Request timeout
|
|
@@ -67,61 +133,219 @@ const y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
67
133
|
// },
|
|
68
134
|
// },
|
|
69
135
|
});
|
|
70
|
-
|
|
71
|
-
(
|
|
72
|
-
(
|
|
136
|
+
n.interceptors.request.use(
|
|
137
|
+
(e) => e,
|
|
138
|
+
(e) => (console.error("Error request:", e.response), Promise.reject(e))
|
|
73
139
|
);
|
|
74
|
-
|
|
75
|
-
(
|
|
76
|
-
(
|
|
77
|
-
const
|
|
140
|
+
n.interceptors.response.use(
|
|
141
|
+
(e) => e,
|
|
142
|
+
(e) => {
|
|
143
|
+
const t = {
|
|
78
144
|
status: null,
|
|
79
145
|
message: "An error occurred"
|
|
80
146
|
};
|
|
81
|
-
return
|
|
147
|
+
return e.response ? (t.status = e.response.status, t.message = e.response.data.message || e.response.statusText, console.error("Error response:", JSON.stringify(t)), e.response.status === 401 ? console.error("Unauthorized access - redirecting to login.") : e.response.status === 404 ? console.error("Resource not found.") : e.response.status >= 500 && console.error("Server error. Please try again later.")) : e.request ? console.error("No response received:", e.request) : console.error("Error setting up request:", e.message), Promise.reject(t);
|
|
82
148
|
}
|
|
83
149
|
);
|
|
84
|
-
const
|
|
85
|
-
function
|
|
86
|
-
return
|
|
150
|
+
const S = A("");
|
|
151
|
+
function r() {
|
|
152
|
+
return S.value === "" ? 0 : 1;
|
|
87
153
|
}
|
|
88
|
-
const
|
|
89
|
-
home:
|
|
90
|
-
hotGames:
|
|
91
|
-
fishGames:
|
|
92
|
-
trialGames:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
154
|
+
const J = {
|
|
155
|
+
home: M,
|
|
156
|
+
hotGames: E,
|
|
157
|
+
fishGames: T,
|
|
158
|
+
trialGames: j,
|
|
159
|
+
currentLang: F,
|
|
160
|
+
promotion: k,
|
|
161
|
+
getLocale: D,
|
|
162
|
+
csLink: B,
|
|
163
|
+
eGame: x,
|
|
164
|
+
cmsList: R
|
|
165
|
+
}, w = {
|
|
166
|
+
install(e) {
|
|
167
|
+
e.config.globalProperties.$library = J;
|
|
96
168
|
}
|
|
97
|
-
},
|
|
169
|
+
}, o = (e) => {
|
|
98
170
|
try {
|
|
99
|
-
const
|
|
100
|
-
|
|
171
|
+
const t = JSON.parse(
|
|
172
|
+
p.AES.decrypt(e, S.value, {
|
|
101
173
|
format: {
|
|
102
174
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
103
|
-
stringify: (
|
|
175
|
+
stringify: (a) => {
|
|
104
176
|
const s = {
|
|
105
|
-
ct:
|
|
177
|
+
ct: a.ciphertext.toString(p.enc.Base64)
|
|
106
178
|
};
|
|
107
|
-
return
|
|
179
|
+
return a.iv && (s.iv = a.iv.toString()), a.salt && (s.s = a.salt.toString()), JSON.stringify(s);
|
|
108
180
|
},
|
|
109
|
-
parse: (
|
|
110
|
-
const s = JSON.parse(
|
|
111
|
-
ciphertext:
|
|
181
|
+
parse: (a) => {
|
|
182
|
+
const s = JSON.parse(a), l = p.lib.CipherParams.create({
|
|
183
|
+
ciphertext: p.enc.Base64.parse(s.ct)
|
|
112
184
|
});
|
|
113
|
-
return s.iv && (
|
|
185
|
+
return s.iv && (l.iv = p.enc.Hex.parse(s.iv)), s.s && (l.salt = p.enc.Hex.parse(s.s)), l;
|
|
114
186
|
}
|
|
115
187
|
}
|
|
116
|
-
}).toString(
|
|
188
|
+
}).toString(p.enc.Utf8)
|
|
117
189
|
);
|
|
118
|
-
return
|
|
119
|
-
} catch (
|
|
120
|
-
return console.error(
|
|
190
|
+
return t !== "" ? JSON.parse(t) : t;
|
|
191
|
+
} catch (t) {
|
|
192
|
+
return console.error(t), "";
|
|
121
193
|
}
|
|
122
194
|
};
|
|
123
|
-
async function
|
|
124
|
-
const
|
|
195
|
+
async function z() {
|
|
196
|
+
const e = {
|
|
197
|
+
status: 200,
|
|
198
|
+
message: "",
|
|
199
|
+
data: {
|
|
200
|
+
currentPage: 0,
|
|
201
|
+
data: [],
|
|
202
|
+
from: 0,
|
|
203
|
+
lastPage: 0,
|
|
204
|
+
nextPageUrl: "",
|
|
205
|
+
path: "",
|
|
206
|
+
perPage: 0,
|
|
207
|
+
prevPageUrl: "",
|
|
208
|
+
to: 0,
|
|
209
|
+
total: 0
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
try {
|
|
213
|
+
const t = await n.get("/hotGames", {
|
|
214
|
+
params: {
|
|
215
|
+
render: r()
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
let a;
|
|
219
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = d(a), e);
|
|
220
|
+
} catch (t) {
|
|
221
|
+
const a = t;
|
|
222
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
const d = (e) => ({
|
|
226
|
+
currentPage: e.current_page ?? 0,
|
|
227
|
+
data: e.data.map((t) => ({
|
|
228
|
+
id: t.id ?? 0,
|
|
229
|
+
name: t.name ?? "",
|
|
230
|
+
pfid: t.pfid ?? 0,
|
|
231
|
+
ppname: t.ppname ?? "",
|
|
232
|
+
code: t.code ?? "",
|
|
233
|
+
img: t.img ?? "",
|
|
234
|
+
progressive: t.progressive ?? "",
|
|
235
|
+
ppid: t.ppid ?? 0,
|
|
236
|
+
notry: t.notry === 1,
|
|
237
|
+
productCode: t.product_code ?? "",
|
|
238
|
+
imgSrc: t.imgSrc ?? "",
|
|
239
|
+
imgPf: t.imgPf ?? "",
|
|
240
|
+
favouriteFlag: t.favourite_flag === 1,
|
|
241
|
+
platformStatusFlag: t.platform_status_flag ?? "",
|
|
242
|
+
platformFlagName: t.platform_flag_name ?? "",
|
|
243
|
+
platformStatusParams: {
|
|
244
|
+
eb: t.platform_status_params.eb ?? !1,
|
|
245
|
+
fit: t.platform_status_params.fit ?? !1,
|
|
246
|
+
fs: t.platform_status_params.fs ?? !1
|
|
247
|
+
},
|
|
248
|
+
gameId: t.game_id ?? 0
|
|
249
|
+
})),
|
|
250
|
+
from: e.from ?? 0,
|
|
251
|
+
lastPage: e.last_page ?? 0,
|
|
252
|
+
nextPageUrl: e.next_page_url ?? "",
|
|
253
|
+
path: e.path ?? "",
|
|
254
|
+
perPage: e.per_page ?? 0,
|
|
255
|
+
prevPageUrl: e.prev_page_url ?? "",
|
|
256
|
+
to: e.to ?? 0,
|
|
257
|
+
total: e.total ?? 0
|
|
258
|
+
});
|
|
259
|
+
async function U() {
|
|
260
|
+
const e = {
|
|
261
|
+
status: 200,
|
|
262
|
+
message: "",
|
|
263
|
+
data: {
|
|
264
|
+
hotfish: [],
|
|
265
|
+
data: []
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
try {
|
|
269
|
+
const t = await n.get("/fishGames", {
|
|
270
|
+
params: {
|
|
271
|
+
render: r()
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
let a;
|
|
275
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = _(a), e);
|
|
276
|
+
} catch (t) {
|
|
277
|
+
const a = t;
|
|
278
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
const _ = (e) => ({
|
|
282
|
+
hotfish: e.hotfish.map((t) => f(t)),
|
|
283
|
+
data: e.data.map((t) => f(t))
|
|
284
|
+
}), f = (e) => ({
|
|
285
|
+
id: e.id ?? 0,
|
|
286
|
+
name: e.name ?? "",
|
|
287
|
+
ppid: e.pp_id ?? "",
|
|
288
|
+
img: e.img ?? "",
|
|
289
|
+
desc: e.desc ?? "",
|
|
290
|
+
ppname: e.pp_name ?? "",
|
|
291
|
+
platformCode: e.platform_code ?? "",
|
|
292
|
+
code: e.code ?? "",
|
|
293
|
+
flag: e.flag ?? 0,
|
|
294
|
+
gameId: e.game_id ?? 0,
|
|
295
|
+
imgSrc: e.imgSrc ?? "",
|
|
296
|
+
imgPf: e.imgPf ?? "",
|
|
297
|
+
favouriteFlag: e.favourite_flag === 1,
|
|
298
|
+
platformStatusFflag: e.platform_status_Fflag ?? "",
|
|
299
|
+
platformFlagName: e.platform_flag_name ?? "",
|
|
300
|
+
platformStatusParams: {
|
|
301
|
+
eb: e.platform_status_params.eb ?? !1,
|
|
302
|
+
fit: e.platform_status_params.fit ?? !1,
|
|
303
|
+
fs: e.platform_status_params.fs ?? !1
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
async function H() {
|
|
307
|
+
const e = {
|
|
308
|
+
status: 200,
|
|
309
|
+
message: "",
|
|
310
|
+
data: []
|
|
311
|
+
};
|
|
312
|
+
try {
|
|
313
|
+
const t = await n.get("/trialGames", {
|
|
314
|
+
params: {
|
|
315
|
+
render: r()
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
let a;
|
|
319
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = y(a), e);
|
|
320
|
+
} catch (t) {
|
|
321
|
+
const a = t;
|
|
322
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
const y = (e) => e.map((t) => ({
|
|
326
|
+
ppid: t.ppid ?? 0,
|
|
327
|
+
ppname: t.ppname ?? "",
|
|
328
|
+
games: t.games.map((a) => ({
|
|
329
|
+
id: a.id ?? 0,
|
|
330
|
+
name: a.name ?? "",
|
|
331
|
+
img: a.img ?? "",
|
|
332
|
+
progressive: a.progressive ?? "",
|
|
333
|
+
notry: a.notry === 1,
|
|
334
|
+
imgSrc: a.imgSrc ?? "",
|
|
335
|
+
imgPf: a.imgPf ?? "",
|
|
336
|
+
favouriteFlag: a.favourite_flag === 1,
|
|
337
|
+
platformStatusFflag: a.platform_status_Fflag ?? "",
|
|
338
|
+
platformFlagName: a.platform_flag_name ?? "",
|
|
339
|
+
platformStatusParams: {
|
|
340
|
+
eb: a.platform_status_params.eb ?? !1,
|
|
341
|
+
fit: a.platform_status_params.fit ?? !1,
|
|
342
|
+
fs: a.platform_status_params.fs ?? !1
|
|
343
|
+
},
|
|
344
|
+
ppname: t.ppname ?? ""
|
|
345
|
+
}))
|
|
346
|
+
}));
|
|
347
|
+
async function q() {
|
|
348
|
+
const e = {
|
|
125
349
|
status: 200,
|
|
126
350
|
message: "",
|
|
127
351
|
data: {
|
|
@@ -137,359 +361,379 @@ async function F() {
|
|
|
137
361
|
},
|
|
138
362
|
mobileBanner: [],
|
|
139
363
|
announcement: [],
|
|
140
|
-
alertAnnouncement: []
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
trialGames: {
|
|
166
|
-
status: 200,
|
|
167
|
-
message: "",
|
|
364
|
+
alertAnnouncement: []
|
|
365
|
+
},
|
|
366
|
+
hotGames: {
|
|
367
|
+
status: 200,
|
|
368
|
+
message: "",
|
|
369
|
+
data: {
|
|
370
|
+
currentPage: 0,
|
|
371
|
+
data: [],
|
|
372
|
+
from: 0,
|
|
373
|
+
lastPage: 0,
|
|
374
|
+
nextPageUrl: "",
|
|
375
|
+
path: "",
|
|
376
|
+
perPage: 0,
|
|
377
|
+
prevPageUrl: "",
|
|
378
|
+
to: 0,
|
|
379
|
+
total: 0
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
fishGames: {
|
|
383
|
+
status: 200,
|
|
384
|
+
message: "",
|
|
385
|
+
data: {
|
|
386
|
+
hotfish: [],
|
|
168
387
|
data: []
|
|
169
388
|
}
|
|
389
|
+
},
|
|
390
|
+
trialGames: {
|
|
391
|
+
status: 200,
|
|
392
|
+
message: "",
|
|
393
|
+
data: []
|
|
170
394
|
}
|
|
171
395
|
};
|
|
172
396
|
try {
|
|
173
|
-
const [
|
|
174
|
-
|
|
397
|
+
const [t, a, s, l] = await Promise.all([
|
|
398
|
+
n.get("/home", {
|
|
175
399
|
params: {
|
|
176
|
-
render:
|
|
400
|
+
render: r()
|
|
177
401
|
}
|
|
178
402
|
}),
|
|
179
|
-
|
|
403
|
+
n.get("/hotGames", {
|
|
180
404
|
params: {
|
|
181
|
-
render:
|
|
405
|
+
render: r()
|
|
182
406
|
}
|
|
183
407
|
}),
|
|
184
|
-
|
|
408
|
+
n.get("/fishGames", {
|
|
185
409
|
params: {
|
|
186
|
-
render:
|
|
410
|
+
render: r()
|
|
187
411
|
}
|
|
188
412
|
}),
|
|
189
|
-
|
|
413
|
+
n.get("/trialGames", {
|
|
190
414
|
params: {
|
|
191
|
-
render:
|
|
415
|
+
render: r()
|
|
192
416
|
}
|
|
193
417
|
})
|
|
194
418
|
]);
|
|
195
|
-
let
|
|
196
|
-
return
|
|
197
|
-
|
|
198
|
-
)) : (
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
LIVE: o.game.LIVE.map((e) => d(e)) ?? [],
|
|
203
|
-
EVENT: o.game.EVENT.map((e) => d(e)) ?? [],
|
|
204
|
-
ESPORT: o.game.ESPORT.map((e) => d(e)) ?? [],
|
|
205
|
-
EGAME: o.game.EGAME.map((e) => d(e)) ?? [],
|
|
206
|
-
BINGO: o.game.BINGO.map((e) => d(e)) ?? []
|
|
207
|
-
}, a.data.mobileBanner = o.mobileBanner.map((e) => ({
|
|
208
|
-
name: e.name ?? "",
|
|
209
|
-
content: e.content ?? "",
|
|
210
|
-
link: e.link ?? "",
|
|
211
|
-
linkTarget: e.link_target ?? "",
|
|
212
|
-
updatedOn: e.updated_on ?? "",
|
|
213
|
-
idCmsCategory: e.id_cms_category ?? 0,
|
|
214
|
-
contentOrg: e.content_org ?? ""
|
|
215
|
-
})) ?? [], a.data.announcement = o.announcement.map((e) => ({
|
|
216
|
-
announcementIndex: e.announcement_index ?? 0,
|
|
217
|
-
announcementEnglish: e.announcement_english ?? "",
|
|
218
|
-
announcementSimplified: e.announcement_simplified ?? "",
|
|
219
|
-
announcementTraditional: e.announcement_traditional ?? "",
|
|
220
|
-
announcementMalay: e.announcement_malay ?? "",
|
|
221
|
-
announcementStatus: e.announcement_status === "1",
|
|
222
|
-
announcementShow: e.announcement_show === "1",
|
|
223
|
-
announcementAlert: e.announcement_alert === "1",
|
|
224
|
-
announcementUser: e.announcement_user === "1",
|
|
225
|
-
announcementSequence: e.announcement_sequence ?? 0,
|
|
226
|
-
announcementCompany: e.announcement_company === "1",
|
|
227
|
-
companyIndex: e.companyindex ?? 0,
|
|
228
|
-
announcementLastUpdated: e.announcement_lastupdated ?? "",
|
|
229
|
-
announcementDateCreated: e.announcement_datecreated ?? "",
|
|
230
|
-
announcementSmaid: e.announcement_smaid ?? "",
|
|
231
|
-
annTimer: e.ann_timer ?? "",
|
|
232
|
-
annStart: e.ann_start ?? "",
|
|
233
|
-
annEnd: e.ann_end ?? "",
|
|
234
|
-
grp: e.grp ?? "",
|
|
235
|
-
time: e.time ?? ""
|
|
236
|
-
})) ?? [], a.data.alertAnnouncement = o.alert_announcement.map((e) => ({
|
|
237
|
-
announcementDateCreated: e.announcement_datecreated ?? "",
|
|
238
|
-
announcementSimplified: e.announcement_simplified ?? ""
|
|
239
|
-
})) ?? []), t.status != 200 ? (a.data.hotGames.status = t.status, a.data.hotGames.message = "") : (a.data.hotGames.data.currentPage = l.current_page ?? 0, a.data.hotGames.data.data = l.data.map((e) => ({
|
|
240
|
-
id: e.id ?? 0,
|
|
241
|
-
name: e.name ?? "",
|
|
242
|
-
pfid: e.pfid ?? 0,
|
|
243
|
-
ppname: e.ppname ?? "",
|
|
244
|
-
code: e.code ?? "",
|
|
245
|
-
img: e.img ?? "",
|
|
246
|
-
progressive: e.progressive ?? "",
|
|
247
|
-
ppid: e.ppid ?? 0,
|
|
248
|
-
notry: e.notry === 1,
|
|
249
|
-
productCode: e.product_code ?? "",
|
|
250
|
-
imgSrc: e.imgSrc ?? "",
|
|
251
|
-
imgPf: e.imgPf ?? "",
|
|
252
|
-
favouriteFlag: e.favourite_flag === 1,
|
|
253
|
-
platformStatusFlag: e.platform_status_flag ?? "",
|
|
254
|
-
platformFlagName: e.platform_flag_name ?? "",
|
|
255
|
-
platformStatusParams: {
|
|
256
|
-
eb: e.platform_status_params.eb ?? !1,
|
|
257
|
-
fit: e.platform_status_params.fit ?? !1,
|
|
258
|
-
fs: e.platform_status_params.fs ?? !1
|
|
259
|
-
},
|
|
260
|
-
gameId: e.game_id ?? 0
|
|
261
|
-
})), a.data.hotGames.data.from = l.from ?? 0, a.data.hotGames.data.lastPage = l.last_page ?? 0, a.data.hotGames.data.nextPageUrl = l.next_page_url ?? "", a.data.hotGames.data.path = l.path ?? "", a.data.hotGames.data.perPage = l.per_page ?? 0, a.data.hotGames.data.prevPageUrl = l.prev_page_url ?? "", a.data.hotGames.data.to = l.to ?? 0, a.data.hotGames.data.total = l.total ?? 0), s.status != 200 ? (a.data.fishGames.status = s.status, a.data.fishGames.message = "") : (a.data.fishGames.data.hotfish = c.data.map((e) => i(e)) ?? [], a.data.fishGames.data.data = c.data.map((e) => i(e)) ?? []), n.status != 200 ? (a.data.trialGames.status = n.status, a.data.trialGames.message = "") : a.data.trialGames.data = _.map((e) => ({
|
|
262
|
-
ppid: e.ppid ?? 0,
|
|
263
|
-
ppname: e.ppname ?? "",
|
|
264
|
-
games: e.games.map((p) => ({
|
|
265
|
-
id: p.id ?? 0,
|
|
266
|
-
name: p.name ?? "",
|
|
267
|
-
img: p.img ?? "",
|
|
268
|
-
progressive: p.progressive ?? "",
|
|
269
|
-
notry: p.notry === 1,
|
|
270
|
-
imgSrc: p.imgSrc ?? "",
|
|
271
|
-
imgPf: p.imgPf ?? "",
|
|
272
|
-
favouriteFlag: p.favourite_flag === 1,
|
|
273
|
-
platformStatusFflag: p.platform_status_Fflag ?? "",
|
|
274
|
-
platformFlagName: p.platform_flag_name ?? "",
|
|
275
|
-
platformStatusParams: {
|
|
276
|
-
eb: p.platform_status_params.eb ?? !1,
|
|
277
|
-
fit: p.platform_status_params.fit ?? !1,
|
|
278
|
-
fs: p.platform_status_params.fs ?? !1
|
|
279
|
-
},
|
|
280
|
-
ppname: e.ppname ?? ""
|
|
281
|
-
})) ?? []
|
|
282
|
-
})) ?? [], a;
|
|
283
|
-
} catch (r) {
|
|
284
|
-
const t = r;
|
|
285
|
-
return a.status = t.status || 500, a.message = t.message, a;
|
|
419
|
+
let c, g, i, m;
|
|
420
|
+
return r() ? (c = JSON.parse(o(t.data)), g = JSON.parse(o(a.data)), i = JSON.parse(o(s.data)), m = JSON.parse(
|
|
421
|
+
o(l.data)
|
|
422
|
+
)) : (c = t.data, g = a.data, i = s.data, m = l.data), t.status != 200 ? (e.status = t.status, e.message = "") : e.data = h(c), a.status != 200 ? (e.hotGames.status = a.status, e.hotGames.message = "") : e.hotGames.data = d(g), s.status != 200 ? (e.fishGames.status = s.status, e.fishGames.message = "") : e.fishGames.data = _(i), l.status != 200 ? (e.trialGames.status = l.status, e.trialGames.message = "") : e.trialGames.data = y(m), e;
|
|
423
|
+
} catch (t) {
|
|
424
|
+
const a = t;
|
|
425
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
286
426
|
}
|
|
287
427
|
}
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
428
|
+
const h = (e) => ({
|
|
429
|
+
game: {
|
|
430
|
+
SPORT: e.game.SPORT.map((t) => u(t)),
|
|
431
|
+
SPECIAL: e.game.SPECIAL.map((t) => u(t)),
|
|
432
|
+
PVP: e.game.PVP.map((t) => u(t)),
|
|
433
|
+
LIVE: e.game.LIVE.map((t) => u(t)),
|
|
434
|
+
EVENT: e.game.EVENT.map((t) => u(t)),
|
|
435
|
+
ESPORT: e.game.ESPORT.map((t) => u(t)),
|
|
436
|
+
EGAME: e.game.EGAME.map((t) => u(t)),
|
|
437
|
+
BINGO: e.game.BINGO.map((t) => u(t))
|
|
438
|
+
},
|
|
439
|
+
mobileBanner: e.mobileBanner.map((t) => ({
|
|
440
|
+
name: t.name ?? "",
|
|
441
|
+
content: t.content ?? "",
|
|
442
|
+
link: t.link ?? "",
|
|
443
|
+
linkTarget: t.link_target ?? "",
|
|
444
|
+
updatedOn: t.updated_on ?? "",
|
|
445
|
+
idCmsCategory: t.id_cms_category ?? 0,
|
|
446
|
+
contentOrg: t.content_org ?? ""
|
|
447
|
+
})),
|
|
448
|
+
announcement: e.announcement.map((t) => ({
|
|
449
|
+
announcementIndex: t.announcement_index ?? 0,
|
|
450
|
+
announcementEnglish: t.announcement_english ?? "",
|
|
451
|
+
announcementSimplified: t.announcement_simplified ?? "",
|
|
452
|
+
announcementTraditional: t.announcement_traditional ?? "",
|
|
453
|
+
announcementMalay: t.announcement_malay ?? "",
|
|
454
|
+
announcementStatus: t.announcement_status === "1",
|
|
455
|
+
announcementShow: t.announcement_show === "1",
|
|
456
|
+
announcementAlert: t.announcement_alert === "1",
|
|
457
|
+
announcementUser: t.announcement_user === "1",
|
|
458
|
+
announcementSequence: t.announcement_sequence ?? 0,
|
|
459
|
+
announcementCompany: t.announcement_company === "1",
|
|
460
|
+
companyIndex: t.companyindex ?? 0,
|
|
461
|
+
announcementLastUpdated: t.announcement_lastupdated ?? "",
|
|
462
|
+
announcementDateCreated: t.announcement_datecreated ?? "",
|
|
463
|
+
announcementSmaid: t.announcement_smaid ?? "",
|
|
464
|
+
annTimer: t.ann_timer ?? "",
|
|
465
|
+
annStart: t.ann_start ?? "",
|
|
466
|
+
annEnd: t.ann_end ?? "",
|
|
467
|
+
grp: t.grp ?? "",
|
|
468
|
+
time: t.time ?? ""
|
|
469
|
+
})),
|
|
470
|
+
alertAnnouncement: e.alert_announcement.map((t) => ({
|
|
471
|
+
announcementDateCreated: t.announcement_datecreated ?? "",
|
|
472
|
+
announcementSimplified: t.announcement_simplified ?? ""
|
|
473
|
+
}))
|
|
474
|
+
}), u = (e) => ({
|
|
475
|
+
id: e.id ?? 0,
|
|
476
|
+
idPlatformMaster: e.id_PlatformMaster ?? 0,
|
|
477
|
+
idProductMaster: e.id_ProductMaster ?? 0,
|
|
478
|
+
name: e.name ?? "",
|
|
479
|
+
shortName: e.shortName ?? "",
|
|
480
|
+
img: e.img ?? "",
|
|
481
|
+
mobileUrl: e.mobileUrl ?? "",
|
|
482
|
+
url: e.url ?? "",
|
|
483
|
+
desc: e.desc ?? "",
|
|
484
|
+
seq: e.seq ?? 0,
|
|
485
|
+
flag: e.flag ?? 0,
|
|
486
|
+
status: e.status ?? "",
|
|
487
|
+
createdBy: e.created_by ?? 0,
|
|
488
|
+
createdOn: e.created_on ?? "",
|
|
489
|
+
categoryID: e.categoryid ?? 0,
|
|
490
|
+
com: e.com ?? "",
|
|
491
|
+
cur: e.cur ?? "",
|
|
492
|
+
pt: e.pt ?? "",
|
|
493
|
+
ppName: e.pp_name ?? "",
|
|
494
|
+
ppImage: e.pp_image ?? "",
|
|
495
|
+
platformCode: e.platform_code ?? "",
|
|
496
|
+
platformName: e.platform_name ?? "",
|
|
497
|
+
classIcon: e.class_icon ?? "",
|
|
498
|
+
productCode: e.product_code ?? "",
|
|
499
|
+
productName: e.product_name ?? "",
|
|
500
|
+
gameID: e.game_id ?? 0,
|
|
501
|
+
fAuth: e.fAuth ?? !1,
|
|
337
502
|
platformStatusParams: {
|
|
338
|
-
eb:
|
|
339
|
-
fit:
|
|
340
|
-
fs:
|
|
503
|
+
eb: e.platform_status_params.eb ?? !1,
|
|
504
|
+
fit: e.platform_status_params.fit ?? !1,
|
|
505
|
+
fs: e.platform_status_params.fs ?? !1
|
|
341
506
|
},
|
|
342
|
-
loginFlag:
|
|
343
|
-
link:
|
|
344
|
-
favouriteFlag:
|
|
345
|
-
platformStatusFlag:
|
|
346
|
-
platformFlagName:
|
|
347
|
-
homeLogo:
|
|
348
|
-
imgPf:
|
|
349
|
-
imgSport:
|
|
350
|
-
imgTemplate:
|
|
507
|
+
loginFlag: e.login_flag === "1",
|
|
508
|
+
link: e.link ?? "",
|
|
509
|
+
favouriteFlag: e.favourite_flag === 1,
|
|
510
|
+
platformStatusFlag: e.platform_status_flag ?? "",
|
|
511
|
+
platformFlagName: e.platform_flag_name ?? "",
|
|
512
|
+
homeLogo: e.home_logo ?? "",
|
|
513
|
+
imgPf: e.imgPf ?? "",
|
|
514
|
+
imgSport: e.imgSport ?? "",
|
|
515
|
+
imgTemplate: e.imgTemplate ?? ""
|
|
351
516
|
});
|
|
352
|
-
async function
|
|
353
|
-
const
|
|
517
|
+
async function V() {
|
|
518
|
+
const e = {
|
|
519
|
+
status: 200,
|
|
520
|
+
message: "",
|
|
521
|
+
data: ""
|
|
522
|
+
};
|
|
523
|
+
try {
|
|
524
|
+
const t = await n.get("/currentLang", {
|
|
525
|
+
params: {
|
|
526
|
+
render: r()
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
let a;
|
|
530
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = a, e);
|
|
531
|
+
} catch (t) {
|
|
532
|
+
const a = t;
|
|
533
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
async function $() {
|
|
537
|
+
const e = {
|
|
354
538
|
status: 200,
|
|
355
539
|
message: "",
|
|
356
540
|
data: {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
lastPage: 0,
|
|
361
|
-
nextPageUrl: "",
|
|
362
|
-
path: "",
|
|
363
|
-
perPage: 0,
|
|
364
|
-
prevPageUrl: "",
|
|
365
|
-
to: 0,
|
|
366
|
-
total: 0
|
|
541
|
+
objList: [],
|
|
542
|
+
promoCat: [],
|
|
543
|
+
resize: 0
|
|
367
544
|
}
|
|
368
545
|
};
|
|
369
546
|
try {
|
|
370
|
-
const
|
|
547
|
+
const t = await n.get("/promotion", {
|
|
371
548
|
params: {
|
|
372
|
-
render:
|
|
549
|
+
render: r()
|
|
373
550
|
}
|
|
374
551
|
});
|
|
375
|
-
let
|
|
376
|
-
return
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
552
|
+
let a;
|
|
553
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = b(a), e);
|
|
554
|
+
} catch (t) {
|
|
555
|
+
const a = t;
|
|
556
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
const b = (e) => ({
|
|
560
|
+
objList: e.objList.map((t) => ({
|
|
561
|
+
promoIndex: t.promoindex ?? 0,
|
|
562
|
+
type: t.type ?? 0,
|
|
563
|
+
thumb: t.thumb ?? 0,
|
|
564
|
+
title: t.title ?? "",
|
|
565
|
+
displayTime: t.display_time ?? "",
|
|
566
|
+
handle: t.handle ?? "",
|
|
567
|
+
content: t.content ?? "",
|
|
568
|
+
langList: t.lang_list ?? "",
|
|
569
|
+
agentList: t.agent_list ?? "",
|
|
570
|
+
dateCreated: t.datecreated ?? "",
|
|
571
|
+
updateBy: t.updateby ?? "",
|
|
572
|
+
lastUpdated: t.lastupdated ?? "",
|
|
573
|
+
sequence: t.sequence ?? 0,
|
|
574
|
+
status: t.status === 1,
|
|
575
|
+
timer: t.timer ?? "",
|
|
576
|
+
stime: t.stime ?? "",
|
|
577
|
+
etime: t.etime ?? "",
|
|
578
|
+
smaid: t.smaid ?? "",
|
|
579
|
+
companyIndex: t.companyindex ?? "",
|
|
580
|
+
fileName: t.filename ?? "",
|
|
581
|
+
version: t.version ?? "",
|
|
582
|
+
categoryName: t.category_name ?? "",
|
|
583
|
+
barImg: t.bar_img ?? "",
|
|
584
|
+
buttonImg: t.button_img ?? "",
|
|
585
|
+
promoImg: t.promo_image ?? "",
|
|
586
|
+
catId: t.catid ?? "",
|
|
587
|
+
imageType: t.image_type ?? "",
|
|
588
|
+
image: t.image ?? "",
|
|
589
|
+
isLink: t.isLink,
|
|
590
|
+
latestUpdate: t.latestupdate ?? ""
|
|
591
|
+
})),
|
|
592
|
+
promoCat: e.promoCat.map((t) => ({
|
|
593
|
+
catId: t.catid ?? 0,
|
|
594
|
+
name: t.name ?? "",
|
|
595
|
+
barImg: t.bar_img ?? "",
|
|
596
|
+
buttonImg: t.button_img ?? ""
|
|
597
|
+
})),
|
|
598
|
+
resize: e.resize
|
|
599
|
+
});
|
|
600
|
+
async function K() {
|
|
601
|
+
const e = {
|
|
602
|
+
status: 200,
|
|
603
|
+
message: "",
|
|
604
|
+
data: []
|
|
605
|
+
};
|
|
606
|
+
try {
|
|
607
|
+
const t = await n.get("/getLocale", {
|
|
608
|
+
params: {
|
|
609
|
+
render: r()
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
let a;
|
|
613
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = P(a), e);
|
|
614
|
+
} catch (t) {
|
|
615
|
+
const a = t;
|
|
616
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
402
617
|
}
|
|
403
618
|
}
|
|
404
|
-
|
|
405
|
-
|
|
619
|
+
const P = (e) => [
|
|
620
|
+
{
|
|
621
|
+
code: "en",
|
|
622
|
+
label: e.en.label ?? ""
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
code: "zh",
|
|
626
|
+
label: e.zh.label ?? ""
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
code: "ms",
|
|
630
|
+
label: e.ms.label ?? ""
|
|
631
|
+
}
|
|
632
|
+
];
|
|
633
|
+
async function Q() {
|
|
634
|
+
const e = {
|
|
406
635
|
status: 200,
|
|
407
636
|
message: "",
|
|
408
637
|
data: {
|
|
409
|
-
|
|
410
|
-
data: []
|
|
638
|
+
liveChat: ""
|
|
411
639
|
}
|
|
412
640
|
};
|
|
413
641
|
try {
|
|
414
|
-
const
|
|
642
|
+
const t = await n.get("/cslink", {
|
|
415
643
|
params: {
|
|
416
|
-
render:
|
|
417
|
-
setting: []
|
|
644
|
+
render: r()
|
|
418
645
|
}
|
|
419
646
|
});
|
|
420
|
-
let
|
|
421
|
-
return
|
|
422
|
-
} catch (
|
|
423
|
-
const
|
|
424
|
-
return
|
|
647
|
+
let a;
|
|
648
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = G(a), e);
|
|
649
|
+
} catch (t) {
|
|
650
|
+
const a = t;
|
|
651
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
425
652
|
}
|
|
426
653
|
}
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
name: a.name ?? "",
|
|
430
|
-
ppid: a.pp_id ?? "",
|
|
431
|
-
img: a.img ?? "",
|
|
432
|
-
desc: a.desc ?? "",
|
|
433
|
-
ppname: a.pp_name ?? "",
|
|
434
|
-
platformCode: a.platform_code ?? "",
|
|
435
|
-
code: a.code ?? "",
|
|
436
|
-
flag: a.flag ?? 0,
|
|
437
|
-
gameId: a.game_id ?? 0,
|
|
438
|
-
imgSrc: a.imgSrc ?? "",
|
|
439
|
-
imgPf: a.imgPf ?? "",
|
|
440
|
-
favouriteFlag: a.favourite_flag === 1,
|
|
441
|
-
platformStatusFflag: a.platform_status_Fflag ?? "",
|
|
442
|
-
platformFlagName: a.platform_flag_name ?? "",
|
|
443
|
-
platformStatusParams: {
|
|
444
|
-
eb: a.platform_status_params.eb ?? !1,
|
|
445
|
-
fit: a.platform_status_params.fit ?? !1,
|
|
446
|
-
fs: a.platform_status_params.fs ?? !1
|
|
447
|
-
}
|
|
654
|
+
const G = (e) => ({
|
|
655
|
+
liveChat: e.livechat ?? ""
|
|
448
656
|
});
|
|
449
|
-
async function
|
|
450
|
-
const
|
|
657
|
+
async function W(e) {
|
|
658
|
+
const t = {
|
|
451
659
|
status: 200,
|
|
452
660
|
message: "",
|
|
453
661
|
data: []
|
|
454
662
|
};
|
|
455
663
|
try {
|
|
456
|
-
const
|
|
664
|
+
const a = await n.get(`/egame/json/${e}`, {
|
|
457
665
|
params: {
|
|
458
|
-
render:
|
|
666
|
+
render: r()
|
|
459
667
|
}
|
|
460
668
|
});
|
|
461
|
-
let
|
|
462
|
-
return
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
id: n.id ?? 0,
|
|
467
|
-
name: n.name ?? "",
|
|
468
|
-
img: n.img ?? "",
|
|
469
|
-
progressive: n.progressive ?? "",
|
|
470
|
-
notry: n.notry === 1,
|
|
471
|
-
imgSrc: n.imgSrc ?? "",
|
|
472
|
-
imgPf: n.imgPf ?? "",
|
|
473
|
-
favouriteFlag: n.favourite_flag === 1,
|
|
474
|
-
platformStatusFflag: n.platform_status_Fflag ?? "",
|
|
475
|
-
platformFlagName: n.platform_flag_name ?? "",
|
|
476
|
-
platformStatusParams: {
|
|
477
|
-
eb: n.platform_status_params.eb ?? !1,
|
|
478
|
-
fit: n.platform_status_params.fit ?? !1,
|
|
479
|
-
fs: n.platform_status_params.fs ?? !1
|
|
480
|
-
},
|
|
481
|
-
ppname: s.ppname ?? ""
|
|
482
|
-
})) ?? []
|
|
483
|
-
})) ?? [], a);
|
|
484
|
-
} catch (r) {
|
|
485
|
-
const t = r;
|
|
486
|
-
return a.status = t.status || 500, a.message = t.message, a;
|
|
669
|
+
let s;
|
|
670
|
+
return r() ? s = JSON.parse(o(a.data)) : s = a.data, a.status != 200 ? (t.status = a.status, t.message = "", t) : (t.data = L(s), t);
|
|
671
|
+
} catch (a) {
|
|
672
|
+
const s = a;
|
|
673
|
+
return t.status = s.status || 500, t.message = s.message, t;
|
|
487
674
|
}
|
|
488
675
|
}
|
|
676
|
+
const L = (e) => e.map((t) => ({
|
|
677
|
+
gameId: t.game_id ?? "",
|
|
678
|
+
imgSrc: t.imgSrc ?? "",
|
|
679
|
+
imgPf: t.imgPf ?? "",
|
|
680
|
+
name: t.name ?? "",
|
|
681
|
+
favouriteFlag: t.favourite_flag === 1,
|
|
682
|
+
platformStatusFflag: t.platform_status_Fflag ?? "",
|
|
683
|
+
platformFlagName: t.platform_flag_name ?? "",
|
|
684
|
+
platformStatusParams: {
|
|
685
|
+
eb: t.platform_status_params.eb ?? !1,
|
|
686
|
+
fit: t.platform_status_params.fit ?? !1,
|
|
687
|
+
fs: t.platform_status_params.fs ?? !1
|
|
688
|
+
},
|
|
689
|
+
progressive: t.progressive ?? "",
|
|
690
|
+
gameCategory: t.game_category ?? "",
|
|
691
|
+
ppid: t.pp_id ?? ""
|
|
692
|
+
}));
|
|
693
|
+
var O = /* @__PURE__ */ ((e) => (e[e.AllCategories = 0] = "AllCategories", e[e.Lotto = 2] = "Lotto", e[e.LiveCasino = 3] = "LiveCasino", e[e.SlotGames = 4] = "SlotGames", e[e.SportsBetting = 5] = "SportsBetting", e[e.LatestAd = 7] = "LatestAd", e[e.Promotions = 8] = "Promotions", e[e.MobileBetting = 9] = "MobileBetting", e[e.ESports = 12] = "ESports", e[e.CardGames = 13] = "CardGames", e[e.FishingGames = 14] = "FishingGames", e[e.BottomRightAd = 16] = "BottomRightAd", e[e.LotteryActivity = 18] = "LotteryActivity", e[e.HomepagePopup = 101] = "HomepagePopup", e[e.LeftAd = 102] = "LeftAd", e[e.RightAd = 103] = "RightAd", e[e.MobileAd = 104] = "MobileAd", e[e.MobilePopup = 105] = "MobilePopup", e[e.BottomLeftAd = 106] = "BottomLeftAd", e[e.InfoGallery = 109] = "InfoGallery", e[e.AgentBackendAd = 114] = "AgentBackendAd", e[e.CheckInBanner = 123] = "CheckInBanner", e[e.PlatformActivities = 128] = "PlatformActivities", e[e.LotterySlogan = 130] = "LotterySlogan", e[e.MobileLotterySlogan = 131] = "MobileLotterySlogan", e[e.PointsMallSlogan = 135] = "PointsMallSlogan", e))(O || {});
|
|
694
|
+
async function X(e) {
|
|
695
|
+
const t = {
|
|
696
|
+
status: 200,
|
|
697
|
+
message: "",
|
|
698
|
+
data: {
|
|
699
|
+
cmsList: []
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
try {
|
|
703
|
+
const a = await n.get(`/cmsList?id=${e}`, {
|
|
704
|
+
params: {
|
|
705
|
+
render: r()
|
|
706
|
+
}
|
|
707
|
+
});
|
|
708
|
+
let s;
|
|
709
|
+
return r() ? s = JSON.parse(o(a.data)) : s = a.data, a.status != 200 ? (t.status = a.status, t.message = "", t) : (t.data = v(s), t);
|
|
710
|
+
} catch (a) {
|
|
711
|
+
const s = a;
|
|
712
|
+
return t.status = s.status || 500, t.message = s.message, t;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
const v = (e) => ({
|
|
716
|
+
cmsList: e.cmslist.map((t) => ({
|
|
717
|
+
name: t.name ?? "",
|
|
718
|
+
content: t.content ?? "",
|
|
719
|
+
link: t.link ?? "",
|
|
720
|
+
linkTarget: t.link_target ?? "",
|
|
721
|
+
updatedOn: t.updated_on ?? "",
|
|
722
|
+
idCmsCategory: t.id_cms_category ?? 0,
|
|
723
|
+
contentOrg: t.content_org ?? "",
|
|
724
|
+
linkOrg: t.link_org ?? ""
|
|
725
|
+
}))
|
|
726
|
+
});
|
|
489
727
|
export {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
728
|
+
w as Repository,
|
|
729
|
+
R as cmsList,
|
|
730
|
+
B as csLink,
|
|
731
|
+
F as currentLang,
|
|
732
|
+
x as eGame,
|
|
733
|
+
T as fishGames,
|
|
734
|
+
D as getLocale,
|
|
735
|
+
M as home,
|
|
736
|
+
E as hotGames,
|
|
737
|
+
k as promotion,
|
|
738
|
+
j as trialGames
|
|
495
739
|
};
|