50p82u21t54k 0.0.24 → 0.0.26

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