50p82u21t54k 0.0.23 → 0.0.24

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