50p82u21t54k 0.0.25 → 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 (47) hide show
  1. package/dist/50p82u21t54k.es.js +506 -382
  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 +0 -28
  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/currentLang/method.d.ts +5 -0
  10. package/dist/currentLang/method.d.ts.map +1 -1
  11. package/dist/eGame/method.d.ts +5 -0
  12. package/dist/eGame/method.d.ts.map +1 -1
  13. package/dist/fishGames/method.d.ts +8 -0
  14. package/dist/fishGames/method.d.ts.map +1 -1
  15. package/dist/getLocale/method.d.ts +5 -0
  16. package/dist/getLocale/method.d.ts.map +1 -1
  17. package/dist/getSetting/method.d.ts +11 -0
  18. package/dist/getSetting/method.d.ts.map +1 -1
  19. package/dist/getSetting/type.d.ts +1 -1
  20. package/dist/getSetting/type.d.ts.map +1 -1
  21. package/dist/home/method.d.ts +62 -92
  22. package/dist/home/method.d.ts.map +1 -1
  23. package/dist/home/type.d.ts.map +1 -1
  24. package/dist/hotGames/method.d.ts +16 -0
  25. package/dist/hotGames/method.d.ts.map +1 -1
  26. package/dist/index.d.ts +5 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/login/index.d.ts +3 -0
  29. package/dist/login/index.d.ts.map +1 -0
  30. package/dist/login/method.d.ts +24 -0
  31. package/dist/login/method.d.ts.map +1 -0
  32. package/dist/login/type.d.ts +19 -0
  33. package/dist/login/type.d.ts.map +1 -0
  34. package/dist/main.d.ts +0 -1
  35. package/dist/plugin.d.ts +3 -1
  36. package/dist/plugin.d.ts.map +1 -1
  37. package/dist/promotion/method.d.ts +9 -0
  38. package/dist/promotion/method.d.ts.map +1 -1
  39. package/dist/trialGames/method.d.ts +5 -0
  40. package/dist/trialGames/method.d.ts.map +1 -1
  41. package/package.json +2 -1
  42. package/dist/login (incomplete)/index.d.ts +0 -1
  43. package/dist/login (incomplete)/index.d.ts.map +0 -1
  44. package/dist/login (incomplete)/method.d.ts +0 -1
  45. package/dist/login (incomplete)/method.d.ts.map +0 -1
  46. package/dist/login (incomplete)/type.d.ts +0 -1
  47. package/dist/login (incomplete)/type.d.ts.map +0 -1
@@ -1,64 +1,116 @@
1
- import O 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" })), G = /* @__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" })), N = /* @__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" })), T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
+ }, Symbol.toStringTag, { value: "Module" })), Y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
29
  __proto__: null,
29
- get getPromotion() {
30
+ get DefaultPromotionResponse() {
30
31
  return P;
32
+ },
33
+ get getPromotion() {
34
+ return A;
35
+ }
36
+ }, Symbol.toStringTag, { value: "Module" })), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
37
+ __proto__: null,
38
+ get CmsId() {
39
+ return L;
40
+ },
41
+ get DefaultCmsListResponse() {
42
+ return h;
43
+ },
44
+ get getCmsList() {
45
+ return D;
31
46
  }
32
- }, Symbol.toStringTag, { value: "Module" })), j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
47
+ }, Symbol.toStringTag, { value: "Module" })), Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
33
48
  __proto__: null,
49
+ get DefaultHomeResponse() {
50
+ return N;
51
+ },
34
52
  get GameType() {
35
- return b;
53
+ return j;
36
54
  },
37
55
  get getHome() {
38
- return x;
56
+ return re;
39
57
  }
40
- }, Symbol.toStringTag, { value: "Module" })), M = /* @__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" })), B = /* @__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 z;
72
+ return oe;
49
73
  }
50
- }, Symbol.toStringTag, { value: "Module" })), F = /* @__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 J;
80
+ return ue;
54
81
  }
55
- }, Symbol.toStringTag, { value: "Module" })), k = /* @__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 U;
88
+ return le;
59
89
  }
60
- }, Symbol.toStringTag, { value: "Module" })), u = O.create({
61
- baseURL: "/apis",
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;
97
+ }
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,173 +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: G,
128
- trialGames: N,
129
- currentLang: M,
130
- promotion: T,
131
- getLocale: B,
132
- csLink: F,
133
- eGame: k,
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: {
170
- cmsList: []
171
- }
172
- };
234
+ async function G() {
235
+ const e = y;
173
236
  try {
174
- const a = await u.get(`/cmsList?id=${e}`, {
237
+ const s = await l.get("/apis/hotGames", {
175
238
  params: {
176
239
  render: o()
177
240
  }
178
241
  });
179
242
  let t;
180
- return o() ? t = JSON.parse(p(a.data)) : t = a.data, a.status != 200 ? (s.status = a.status, s.message = "", s) : (s.data = {
181
- cmsList: t.cmslist.map((n) => ({
182
- name: n.name ?? "",
183
- content: n.content ?? "",
184
- link: n.link ?? "",
185
- linkTarget: n.link_target ?? "",
186
- updatedOn: n.updated_on ?? "",
187
- idCmsCategory: n.id_cms_category ?? 0,
188
- contentOrg: n.content_org ?? "",
189
- linkOrg: n.link_org ?? ""
190
- }))
191
- }, s);
192
- } catch (a) {
193
- const t = a;
194
- return s.status = t.status || 500, s.message = t.message, s;
195
- }
196
- }
197
- 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 || {});
198
- async function _() {
199
- const e = {
200
- status: 200,
201
- message: "",
202
- data: {
203
- currentPage: 0,
204
- data: [],
205
- from: 0,
206
- lastPage: 0,
207
- nextPageUrl: "",
208
- path: "",
209
- perPage: 0,
210
- prevPageUrl: "",
211
- to: 0,
212
- total: 0
213
- }
214
- };
215
- try {
216
- const s = await u.get("/hotGames", {
217
- params: {
218
- render: o()
219
- }
220
- });
221
- let a;
222
- return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = {
223
- currentPage: a.current_page ?? 0,
224
- data: a.data.map((t) => ({
225
- id: t.id ?? 0,
226
- name: t.name ?? "",
227
- pfid: t.pfid ?? 0,
228
- ppname: t.ppname ?? "",
229
- code: t.code ?? "",
230
- img: t.img ?? "",
231
- progressive: t.progressive ?? "",
232
- ppid: t.ppid ?? 0,
233
- notry: t.notry === 1,
234
- productCode: t.product_code ?? "",
235
- imgSrc: t.imgSrc ?? "",
236
- imgPf: t.imgPf ?? "",
237
- favouriteFlag: t.favourite_flag === 1,
238
- platformStatusFlag: t.platform_status_flag ?? "",
239
- 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 ?? "",
240
261
  platformStatusParams: {
241
- eb: t.platform_status_params.eb ?? !1,
242
- fit: t.platform_status_params.fit ?? !1,
243
- 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
244
265
  },
245
- gameId: t.game_id ?? 0
266
+ gameId: a.game_id ?? 0
246
267
  })),
247
- from: a.from ?? 0,
248
- lastPage: a.last_page ?? 0,
249
- nextPageUrl: a.next_page_url ?? "",
250
- path: a.path ?? "",
251
- perPage: a.per_page ?? 0,
252
- prevPageUrl: a.prev_page_url ?? "",
253
- to: a.to ?? 0,
254
- 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
255
276
  }, e);
256
277
  } catch (s) {
257
- const a = s;
258
- 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;
259
280
  }
260
281
  }
261
- async function S() {
262
- const e = {
263
- status: 200,
264
- message: "",
265
- data: {
266
- hotfish: [],
267
- data: []
268
- }
269
- };
282
+ const S = {
283
+ status: 200,
284
+ message: "",
285
+ data: {
286
+ hotfish: [],
287
+ data: []
288
+ }
289
+ };
290
+ async function E() {
291
+ const e = S;
270
292
  try {
271
- const s = await u.get("/fishGames", {
293
+ const s = await l.get("/apis/fishGames", {
272
294
  params: {
273
295
  render: o()
274
296
  }
275
297
  });
276
- let a;
277
- return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = {
278
- hotfish: a.hotfish.map((t) => f(t)),
279
- 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))
280
302
  }, e);
281
303
  } catch (s) {
282
- const a = s;
283
- 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;
284
306
  }
285
307
  }
286
- const f = (e) => ({
308
+ const O = (e) => ({
287
309
  id: e.id ?? 0,
288
310
  name: e.name ?? "",
289
311
  ppid: e.pp_id ?? "",
@@ -304,24 +326,24 @@ const f = (e) => ({
304
326
  fit: e.platform_status_params.fit ?? !1,
305
327
  fs: e.platform_status_params.fs ?? !1
306
328
  }
307
- });
308
- async function y() {
309
- const e = {
310
- status: 200,
311
- message: "",
312
- data: []
313
- };
329
+ }), b = {
330
+ status: 200,
331
+ message: "",
332
+ data: []
333
+ };
334
+ async function R() {
335
+ const e = b;
314
336
  try {
315
- const s = await u.get("/trialGames", {
337
+ const s = await l.get("/apis/trialGames", {
316
338
  params: {
317
339
  render: o()
318
340
  }
319
341
  });
320
- let a;
321
- 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) => ({
322
- ppid: t.ppid ?? 0,
323
- ppname: t.ppname ?? "",
324
- 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) => ({
325
347
  id: n.id ?? 0,
326
348
  name: n.name ?? "",
327
349
  img: n.img ?? "",
@@ -337,175 +359,171 @@ async function y() {
337
359
  fit: n.platform_status_params.fit ?? !1,
338
360
  fs: n.platform_status_params.fs ?? !1
339
361
  },
340
- ppname: t.ppname ?? ""
362
+ ppname: a.ppname ?? ""
341
363
  }))
342
364
  })), e);
343
365
  } catch (s) {
344
- const a = s;
345
- 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;
346
368
  }
347
369
  }
348
- async function P() {
349
- const e = {
350
- status: 200,
351
- message: "",
352
- data: {
353
- objList: [],
354
- promoCat: [],
355
- resize: 0
356
- }
357
- };
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;
358
381
  try {
359
- const s = await u.get("/promotion", {
382
+ const s = await l.get("/apis/promotion", {
360
383
  params: {
361
384
  render: o()
362
385
  }
363
386
  });
364
- let a;
365
- return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = {
366
- objList: a.objList.map((t) => ({
367
- promoIndex: t.promoindex ?? 0,
368
- type: t.type ?? 0,
369
- thumb: t.thumb ?? 0,
370
- title: t.title ?? "",
371
- displayTime: t.display_time ?? "",
372
- handle: t.handle ?? "",
373
- content: t.content ?? "",
374
- langList: t.lang_list ?? "",
375
- agentList: t.agent_list ?? "",
376
- dateCreated: t.datecreated ?? "",
377
- updateBy: t.updateby ?? "",
378
- lastUpdated: t.lastupdated ?? "",
379
- sequence: t.sequence ?? 0,
380
- status: t.status === 1,
381
- timer: t.timer ?? "",
382
- stime: t.stime ?? "",
383
- etime: t.etime ?? "",
384
- smaid: t.smaid ?? "",
385
- companyIndex: t.companyindex ?? "",
386
- fileName: t.filename ?? "",
387
- version: t.version ?? "",
388
- categoryName: t.category_name ?? "",
389
- barImg: t.bar_img ?? "",
390
- buttonImg: t.button_img ?? "",
391
- promoImg: t.promo_image ?? "",
392
- catId: t.catid ?? "",
393
- imageType: t.image_type ?? "",
394
- image: t.image ?? "",
395
- isLink: t.isLink,
396
- 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 ?? ""
397
420
  })),
398
- promoCat: a.promoCat.map((t) => ({
399
- catId: t.catid ?? 0,
400
- name: t.name ?? "",
401
- barImg: t.bar_img ?? "",
402
- 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 ?? ""
403
426
  })),
404
- resize: a.resize
427
+ resize: t.resize
405
428
  }, e);
406
429
  } catch (s) {
407
- const a = s;
408
- 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;
409
432
  }
410
433
  }
411
- async function x() {
412
- const e = {
413
- status: 200,
414
- message: "",
415
- data: {
416
- game: {
417
- SPORT: [],
418
- SPECIAL: [],
419
- PVP: [],
420
- LIVE: [],
421
- EVENT: [],
422
- ESPORT: [],
423
- EGAME: [],
424
- BINGO: []
425
- },
426
- mobileBanner: [],
427
- announcement: [],
428
- alertAnnouncement: [],
429
- hotGames: {
430
- status: 200,
431
- message: "",
432
- data: {
433
- currentPage: 0,
434
- data: [],
435
- from: 0,
436
- lastPage: 0,
437
- nextPageUrl: "",
438
- path: "",
439
- perPage: 0,
440
- prevPageUrl: "",
441
- to: 0,
442
- total: 0
443
- }
444
- },
445
- fishGames: {
446
- status: 200,
447
- message: "",
448
- data: {
449
- hotfish: [],
450
- data: []
451
- }
452
- },
453
- trialGames: {
454
- status: 200,
455
- message: "",
456
- data: []
457
- },
458
- promotion: {
459
- status: 200,
460
- message: "",
461
- data: {
462
- objList: [],
463
- promoCat: [],
464
- resize: 0
465
- }
466
- },
467
- cmsList: {
468
- status: 200,
469
- message: "",
470
- data: {
471
- cmsList: []
472
- }
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()
473
448
  }
474
- }
475
- };
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;
466
+ }
467
+ }
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;
476
494
  try {
477
495
  const [
478
496
  s,
479
- a,
480
497
  t,
498
+ a,
481
499
  n,
482
- h,
483
- L
500
+ d,
501
+ _
484
502
  ] = await Promise.all([
485
- u.get("/home", {
503
+ l.get("/apis/home", {
486
504
  params: {
487
505
  render: o()
488
506
  }
489
507
  }),
490
- _(),
491
- S(),
492
- y(),
493
- P(),
494
- d(i.LatestAd)
508
+ G(),
509
+ E(),
510
+ R(),
511
+ A(),
512
+ D(L.LatestAd)
495
513
  ]);
496
- let l;
497
- 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 = {
498
516
  game: {
499
- SPORT: l.game.SPORT.map((r) => g(r)),
500
- SPECIAL: l.game.SPECIAL.map((r) => g(r)),
501
- PVP: l.game.PVP.map((r) => g(r)),
502
- LIVE: l.game.LIVE.map((r) => g(r)),
503
- EVENT: l.game.EVENT.map((r) => g(r)),
504
- ESPORT: l.game.ESPORT.map((r) => g(r)),
505
- EGAME: l.game.EGAME.map((r) => g(r)),
506
- 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))
507
525
  },
508
- mobileBanner: l.mobileBanner.map((r) => ({
526
+ mobileBanner: u.mobileBanner.map((r) => ({
509
527
  name: r.name ?? "",
510
528
  content: r.content ?? "",
511
529
  link: r.link ?? "",
@@ -514,7 +532,7 @@ async function x() {
514
532
  idCmsCategory: r.id_cms_category ?? 0,
515
533
  contentOrg: r.content_org ?? ""
516
534
  })),
517
- announcement: l.announcement.map((r) => ({
535
+ announcement: u.announcement.map((r) => ({
518
536
  announcementIndex: r.announcement_index ?? 0,
519
537
  announcementEnglish: r.announcement_english ?? "",
520
538
  announcementSimplified: r.announcement_simplified ?? "",
@@ -536,22 +554,22 @@ async function x() {
536
554
  grp: r.grp ?? "",
537
555
  time: r.time ?? ""
538
556
  })),
539
- alertAnnouncement: l.alert_announcement.map((r) => ({
557
+ alertAnnouncement: u.alert_announcement.map((r) => ({
540
558
  announcementDateCreated: r.announcement_datecreated ?? "",
541
559
  announcementSimplified: r.announcement_simplified ?? ""
542
560
  })),
543
- hotGames: a,
544
- fishGames: t,
561
+ hotGames: t,
562
+ fishGames: a,
545
563
  trialGames: n,
546
- promotion: h,
547
- cmsList: L
564
+ promotion: d,
565
+ cmsList: _
548
566
  }, e);
549
567
  } catch (s) {
550
- const a = s;
551
- 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;
552
570
  }
553
571
  }
554
- const g = (e) => ({
572
+ const i = (e) => ({
555
573
  id: e.id ?? 0,
556
574
  idPlatformMaster: e.id_PlatformMaster ?? 0,
557
575
  idProductMaster: e.id_ProductMaster ?? 0,
@@ -594,95 +612,99 @@ const g = (e) => ({
594
612
  imgSport: e.imgSport ?? "",
595
613
  imgTemplate: e.imgTemplate ?? ""
596
614
  });
597
- var b = /* @__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))(b || {});
598
- async function D() {
599
- const e = {
600
- status: 200,
601
- message: "",
602
- data: ""
603
- };
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;
604
623
  try {
605
- const s = await u.get("/currentLang", {
624
+ const s = await l.get("/apis/currentLang", {
606
625
  params: {
607
626
  render: o()
608
627
  }
609
628
  });
610
- let a;
611
- 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);
612
631
  } catch (s) {
613
- const a = s;
614
- 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;
615
634
  }
616
635
  }
617
- async function z() {
618
- const e = {
619
- status: 200,
620
- message: "",
621
- data: []
622
- };
636
+ const T = {
637
+ status: 200,
638
+ message: "",
639
+ data: []
640
+ };
641
+ async function oe() {
642
+ const e = T;
623
643
  try {
624
- const s = await u.get("/getLocale", {
644
+ const s = await l.get("/apis/getLocale", {
625
645
  params: {
626
646
  render: o()
627
647
  }
628
648
  });
629
- let a;
630
- 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 = [
631
651
  {
632
652
  code: "en",
633
- label: a.en.label ?? ""
653
+ label: t.en.label ?? ""
634
654
  },
635
655
  {
636
656
  code: "zh",
637
- label: a.zh.label ?? ""
657
+ label: t.zh.label ?? ""
638
658
  },
639
659
  {
640
660
  code: "ms",
641
- label: a.ms.label ?? ""
661
+ label: t.ms.label ?? ""
642
662
  }
643
663
  ], e);
644
664
  } catch (s) {
645
- const a = s;
646
- 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;
647
667
  }
648
668
  }
649
- async function J() {
650
- const e = {
651
- status: 200,
652
- message: "",
653
- data: {
654
- liveChat: ""
655
- }
656
- };
669
+ const M = {
670
+ status: 200,
671
+ message: "",
672
+ data: {
673
+ liveChat: ""
674
+ }
675
+ };
676
+ async function ue() {
677
+ const e = M;
657
678
  try {
658
- const s = await u.get("/cslink", {
679
+ const s = await l.get("/apis/cslink", {
659
680
  params: {
660
681
  render: o()
661
682
  }
662
683
  });
663
- let a;
664
- return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = {
665
- 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 ?? ""
666
687
  }, e);
667
688
  } catch (s) {
668
- const a = s;
669
- 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;
670
691
  }
671
692
  }
672
- async function U(e) {
673
- const s = {
674
- status: 200,
675
- message: "",
676
- data: []
677
- };
693
+ const B = {
694
+ status: 200,
695
+ message: "",
696
+ data: []
697
+ };
698
+ async function le(e) {
699
+ const s = B;
678
700
  try {
679
- const a = await u.get(`/egame/json/${e}`, {
701
+ const t = await l.get(`/apis/egame/json/${e}`, {
680
702
  params: {
681
703
  render: o()
682
704
  }
683
705
  });
684
- let t;
685
- 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) => ({
686
708
  gameId: n.game_id ?? "",
687
709
  imgSrc: n.imgSrc ?? "",
688
710
  imgPf: n.imgPf ?? "",
@@ -699,21 +721,123 @@ async function U(e) {
699
721
  gameCategory: n.game_category ?? "",
700
722
  ppid: n.pp_id ?? ""
701
723
  })), s);
702
- } catch (a) {
703
- const t = a;
704
- 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;
705
827
  }
706
828
  }
707
829
  export {
708
- $ as Repository,
709
- E as cmsList,
710
- F as csLink,
711
- M as currentLang,
712
- k as eGame,
713
- G as fishGames,
714
- B as getLocale,
715
- j as home,
716
- A as hotGames,
717
- T as promotion,
718
- N 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
719
843
  };