50p82u21t54k 0.0.22 → 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 +377 -478
  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 +2 -20
  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 +18 -4
  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 N from "axios";
2
- import { ref as A } from "vue";
3
- import p from "crypto-js";
1
+ import L from "axios";
2
+ import { ref as v } from "vue";
3
+ import c from "crypto-js";
4
4
  const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
5
  __proto__: null,
6
- get getHotGames() {
7
- return z;
6
+ get CmsId() {
7
+ return i;
8
8
  },
9
- get processHotGamesData() {
9
+ get getCmsList() {
10
10
  return d;
11
11
  }
12
- }, Symbol.toStringTag, { value: "Module" })), T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12
+ }, Symbol.toStringTag, { value: "Module" })), A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13
13
  __proto__: null,
14
- get getFishGames() {
15
- return U;
16
- },
17
- get processFishGame() {
18
- return f;
19
- },
20
- get processFishGamesData() {
14
+ get getHotGames() {
21
15
  return _;
22
16
  }
23
- }, Symbol.toStringTag, { value: "Module" })), j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17
+ }, Symbol.toStringTag, { value: "Module" })), N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18
+ __proto__: null,
19
+ get getFishGames() {
20
+ return S;
21
+ }
22
+ }, Symbol.toStringTag, { value: "Module" })), G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24
23
  __proto__: null,
25
24
  get getTrialGames() {
26
- return H;
27
- },
28
- get processTrialGamesData() {
29
25
  return y;
30
26
  }
31
27
  }, Symbol.toStringTag, { value: "Module" })), M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32
28
  __proto__: null,
33
- get getHome() {
34
- return q;
35
- },
36
- get processHomeData() {
37
- return h;
38
- },
39
- get processPlatformGame() {
40
- return u;
29
+ get getPromotion() {
30
+ return b;
41
31
  }
42
- }, Symbol.toStringTag, { value: "Module" })), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32
+ }, Symbol.toStringTag, { value: "Module" })), j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43
33
  __proto__: null,
44
- get getCurrentLang() {
45
- return V;
34
+ get GameType() {
35
+ return P;
36
+ },
37
+ get getHome() {
38
+ return x;
46
39
  }
47
- }, Symbol.toStringTag, { value: "Module" })), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40
+ }, Symbol.toStringTag, { value: "Module" })), T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
48
41
  __proto__: null,
49
- get getPromotion() {
50
- return $;
51
- },
52
- get processPromotionData() {
53
- return b;
42
+ get getCurrentLang() {
43
+ return D;
54
44
  }
55
- }, Symbol.toStringTag, { value: "Module" })), D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
+ }, Symbol.toStringTag, { value: "Module" })), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
56
46
  __proto__: null,
57
47
  get getGetLocale() {
58
- return K;
59
- },
60
- get processGetLocaleData() {
61
- return P;
48
+ return J;
62
49
  }
63
- }, Symbol.toStringTag, { value: "Module" })), B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50
+ }, Symbol.toStringTag, { value: "Module" })), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64
51
  __proto__: null,
65
52
  get getCsLink() {
66
- return Q;
67
- },
68
- get processCsLinkData() {
69
- return G;
53
+ return z;
70
54
  }
71
- }, Symbol.toStringTag, { value: "Module" })), x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
55
+ }, Symbol.toStringTag, { value: "Module" })), B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
72
56
  __proto__: null,
73
57
  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;
58
+ return V;
89
59
  }
90
- }, Symbol.toStringTag, { value: "Module" })), n = N.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 E = /* @__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 S = A("");
151
- function r() {
152
- return S.value === "" ? 0 : 1;
120
+ const m = v("");
121
+ function o() {
122
+ return m.value === "" ? 0 : 1;
153
123
  }
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 = {
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 = J;
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, S.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 z() {
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 = d(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 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() {
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 = _(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 _ = (e) => ({
282
- hotfish: e.hotfish.map((t) => f(t)),
283
- data: e.data.map((t) => f(t))
284
- }), f = (e) => ({
270
+ const f = (e) => ({
285
271
  id: e.id ?? 0,
286
272
  name: e.name ?? "",
287
273
  ppid: e.pp_id ?? "",
@@ -303,175 +289,190 @@ const _ = (e) => ({
303
289
  fs: e.platform_status_params.fs ?? !1
304
290
  }
305
291
  });
306
- async function H() {
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 = y(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 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() {
332
+ async function b() {
348
333
  const e = {
349
334
  status: 200,
350
335
  message: "",
351
- data: {
352
- game: {
353
- SPORT: [],
354
- SPECIAL: [],
355
- PVP: [],
356
- LIVE: [],
357
- EVENT: [],
358
- ESPORT: [],
359
- EGAME: [],
360
- BINGO: []
361
- },
362
- mobileBanner: [],
363
- announcement: [],
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: [],
387
- data: []
336
+ data: null
337
+ };
338
+ try {
339
+ const s = await u.get("/promotion", {
340
+ params: {
341
+ render: o()
388
342
  }
389
- },
390
- trialGames: {
391
- status: 200,
392
- message: "",
393
- data: []
394
- }
343
+ });
344
+ let a;
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;
388
+ return e.status = a.status || 500, e.message = a.message, e;
389
+ }
390
+ }
391
+ async function x() {
392
+ const e = {
393
+ status: 200,
394
+ message: "",
395
+ data: null
395
396
  };
396
397
  try {
397
- const [t, a, s, l] = await Promise.all([
398
- n.get("/home", {
398
+ const [
399
+ s,
400
+ a,
401
+ t,
402
+ n,
403
+ h,
404
+ O
405
+ ] = await Promise.all([
406
+ u.get("/home", {
399
407
  params: {
400
- render: r()
408
+ render: o()
401
409
  }
402
410
  }),
403
- n.get("/hotGames", {
404
- params: {
405
- render: r()
406
- }
407
- }),
408
- n.get("/fishGames", {
409
- params: {
410
- render: r()
411
- }
412
- }),
413
- n.get("/trialGames", {
414
- params: {
415
- render: r()
416
- }
417
- })
411
+ _(),
412
+ S(),
413
+ y(),
414
+ b(),
415
+ d(i.LatestAd)
418
416
  ]);
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;
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;
425
472
  return e.status = a.status || 500, e.message = a.message, e;
426
473
  }
427
474
  }
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
+ const g = (e) => ({
475
476
  id: e.id ?? 0,
476
477
  idPlatformMaster: e.id_PlatformMaster ?? 0,
477
478
  idProductMaster: e.id_ProductMaster ?? 0,
@@ -514,226 +515,124 @@ const h = (e) => ({
514
515
  imgSport: e.imgSport ?? "",
515
516
  imgTemplate: e.imgTemplate ?? ""
516
517
  });
517
- async function V() {
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() {
518
520
  const e = {
519
521
  status: 200,
520
522
  message: "",
521
523
  data: ""
522
524
  };
523
525
  try {
524
- const t = await n.get("/currentLang", {
526
+ const s = await u.get("/currentLang", {
525
527
  params: {
526
- render: r()
528
+ render: o()
527
529
  }
528
530
  });
529
531
  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;
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;
533
535
  return e.status = a.status || 500, e.message = a.message, e;
534
536
  }
535
537
  }
536
- async function $() {
538
+ async function J() {
537
539
  const e = {
538
540
  status: 200,
539
541
  message: "",
540
- data: {
541
- objList: [],
542
- promoCat: [],
543
- resize: 0
544
- }
542
+ data: null
545
543
  };
546
544
  try {
547
- const t = await n.get("/promotion", {
545
+ const s = await u.get("/getLocale", {
548
546
  params: {
549
- render: r()
547
+ render: o()
550
548
  }
551
549
  });
552
550
  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()
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 ?? ""
610
563
  }
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;
564
+ ], e);
565
+ } catch (s) {
566
+ const a = s;
616
567
  return e.status = a.status || 500, e.message = a.message, e;
617
568
  }
618
569
  }
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() {
570
+ async function z() {
634
571
  const e = {
635
572
  status: 200,
636
573
  message: "",
637
- data: {
638
- liveChat: ""
639
- }
574
+ data: null
640
575
  };
641
576
  try {
642
- const t = await n.get("/cslink", {
577
+ const s = await u.get("/cslink", {
643
578
  params: {
644
- render: r()
579
+ render: o()
645
580
  }
646
581
  });
647
582
  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;
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;
651
588
  return e.status = a.status || 500, e.message = a.message, e;
652
589
  }
653
590
  }
654
- const G = (e) => ({
655
- liveChat: e.livechat ?? ""
656
- });
657
- async function W(e) {
658
- const t = {
591
+ async function V(e) {
592
+ const s = {
659
593
  status: 200,
660
594
  message: "",
661
- data: []
595
+ data: null
662
596
  };
663
597
  try {
664
- const a = await n.get(`/egame/json/${e}`, {
598
+ const a = await u.get(`/egame/json/${e}`, {
665
599
  params: {
666
- render: r()
600
+ render: o()
667
601
  }
668
602
  });
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;
674
- }
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);
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);
710
621
  } catch (a) {
711
- const s = a;
712
- 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;
713
624
  }
714
625
  }
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
- });
727
626
  export {
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
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
739
638
  };