60p82u21t54k 0.0.60 → 0.0.62

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.
@@ -1,5 +1,5 @@
1
- import U from "axios";
2
- const B = U.create({
1
+ import G from "axios";
2
+ const B = G.create({
3
3
  baseURL: "/graph",
4
4
  timeout: 5e3,
5
5
  // Request timeout
@@ -59,34 +59,72 @@ B.interceptors.response.use(
59
59
  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);
60
60
  }
61
61
  );
62
- const $ = (e) => new TextEncoder().encode(e), A = (e) => {
62
+ const U = (e) => new TextEncoder().encode(e), z = (e) => {
63
63
  try {
64
64
  return atob(e);
65
65
  } catch (t) {
66
66
  return console.error("Failed to decode Base64:", t), "";
67
67
  }
68
+ }, $ = () => {
69
+ const e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), c = new Date(t, n, 1, 12, 0, 0), s = new Date(t, n + 1, 1, 12, 0, 0), d = Math.floor(
70
+ (s.getTime() - e.getTime()) / 1e3
71
+ ), g = Math.floor(
72
+ (s.getTime() - c.getTime()) / 1e3
73
+ ), p = g - d;
74
+ return {
75
+ monthRemainingTime: d,
76
+ monthProgressPercentage: Math.round(p / g * 100)
77
+ };
78
+ }, E = () => {
79
+ const e = /* @__PURE__ */ new Date(), t = e.getDay(), n = t === 1 ? 7 : 8 - t, c = new Date(
80
+ e.getFullYear(),
81
+ e.getMonth(),
82
+ e.getDate() + n,
83
+ 12,
84
+ 0,
85
+ 0,
86
+ 0
87
+ ), s = Math.floor((c.getTime() - e.getTime()) / 1e3), b = 7 * 24 * 60 * 60;
88
+ return console.log(s), console.log(b), {
89
+ weekRemainingTime: s,
90
+ weekProgressPercentage: Math.round(s / b * 100)
91
+ };
92
+ }, V = () => {
93
+ const e = /* @__PURE__ */ new Date(), t = new Date(
94
+ e.getFullYear(),
95
+ e.getMonth(),
96
+ e.getDate() + 1,
97
+ 12,
98
+ 0,
99
+ 0,
100
+ 0
101
+ ), n = Math.floor((t.getTime() - e.getTime()) / 1e3), g = 24 * 60 * 60;
102
+ return {
103
+ dayRemainingTime: n,
104
+ dayProgressPercentage: Math.round(n / g * 100)
105
+ };
68
106
  };
69
- var l = /* @__PURE__ */ ((e) => (e.announcement = "announcement", e.gameList = "gameList", e.fishGameList = "fishGameList", e.cmsList = "cmsList", e.paymentsProvider = "paymentsProvider", e.getUserProfile = "getUserProfile", e.vipList = "vipList", e.vipStatus = "vipStatus", e.vipBonus = "vipBonus", e.vipFieldStatus = "vipFieldStatus", e.promotion = "promotion", e.getSetting = "getSetting", e.getCountryMobile = "getCountryMobile", e.getPlatformTurnoverRate = "getPlatformTurnoverRate", e.mainWallet = "mainWallet", e.getLanguageSetting = "getLanguageSetting", e.getFourDimensionData = "getfourDimensionData", e.getCompany = "getCompany", e.searchResultDate = "searchResultDate", e.searchHot = "searchHot", e.searchByDate = "searchByDate", e.upcomingMatches = "upcomingMatches", e.deposit = "deposit", e.applyVipBonus = "applyVipBonus", e))(l || {});
70
- const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
107
+ var u = /* @__PURE__ */ ((e) => (e.announcement = "announcement", e.gameList = "gameList", e.fishGameList = "fishGameList", e.cmsList = "cmsList", e.paymentsProvider = "paymentsProvider", e.getUserProfile = "getUserProfile", e.vipList = "vipList", e.vipStatus = "vipStatus", e.vipBonus = "vipBonus", e.vipFieldStatus = "vipFieldStatus", e.promotion = "promotion", e.getSetting = "getSetting", e.getCountryMobile = "getCountryMobile", e.getPlatformTurnoverRate = "getPlatformTurnoverRate", e.mainWallet = "mainWallet", e.getLanguageSetting = "getLanguageSetting", e.getFourDimensionData = "getfourDimensionData", e.getCompany = "getCompany", e.searchResultDate = "searchResultDate", e.searchHot = "searchHot", e.searchByDate = "searchByDate", e.upcomingMatches = "upcomingMatches", e.deposit = "deposit", e.applyVipBonus = "applyVipBonus", e))(u || {});
108
+ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
71
109
  __proto__: null,
72
- Api: l
110
+ Api: u
73
111
  }, Symbol.toStringTag, { value: "Module" }));
74
- var M = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(M || {});
75
- const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
112
+ var D = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(D || {});
113
+ const W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
76
114
  __proto__: null,
77
- PaymentType: M
78
- }, Symbol.toStringTag, { value: "Module" })), J = (e) => e.mdPaymentChannels.map((t) => {
115
+ PaymentType: D
116
+ }, Symbol.toStringTag, { value: "Module" })), H = (e) => e.mdPaymentChannels.map((t) => {
79
117
  const n = [];
80
118
  switch (t.name) {
81
- case M.default:
82
- n.push(z(t.paymentmethod.manual, e));
119
+ case D.default:
120
+ n.push(q(t.paymentmethod.manual, e));
83
121
  break;
84
- case M.pay:
85
- n.push(w(t.paymentmethod.onlinebanking, e));
122
+ case D.pay:
123
+ n.push(Y(t.paymentmethod.onlinebanking, e));
86
124
  break;
87
125
  default:
88
126
  if (t.paymentmethod.auto.bank.length > 0 && n.push(
89
- W(t.bankid ?? 0, t.paymentmethod.auto, e)
127
+ K(t.bankid ?? 0, t.paymentmethod.auto, e)
90
128
  ), t.paymentmethod.manual.bank.length > 0) {
91
129
  let c = !1;
92
130
  for (let s = 0; s < t.paymentmethod.manual.bank.length; s++) {
@@ -96,10 +134,10 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
96
134
  break;
97
135
  }
98
136
  }
99
- c && n.push(z(t.paymentmethod.manual, e));
137
+ c && n.push(q(t.paymentmethod.manual, e));
100
138
  }
101
139
  t.paymentmethod.fixamount.bank.length > 0 && n.push(
102
- H(t.bankid ?? 0, t.paymentmethod.fixamount)
140
+ Q(t.bankid ?? 0, t.paymentmethod.fixamount)
103
141
  );
104
142
  }
105
143
  return {
@@ -107,10 +145,10 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
107
145
  imageUrl: `/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,
108
146
  paymentList: n
109
147
  };
110
- }), G = {
148
+ }), w = {
111
149
  id: 0,
112
150
  name: "",
113
- type: M.unknown,
151
+ type: D.unknown,
114
152
  promo: [],
115
153
  bank: [],
116
154
  requiredField: {
@@ -121,7 +159,7 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
121
159
  depositor: !1,
122
160
  uploadReceipt: !1
123
161
  }
124
- }, q = (e) => {
162
+ }, F = (e) => {
125
163
  const t = {
126
164
  id: 0,
127
165
  name: "excludePromo",
@@ -134,42 +172,42 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
134
172
  disabled: !1
135
173
  }));
136
174
  return [t, ...n];
137
- }, P = (e, t, n, c) => {
175
+ }, I = (e, t, n, c) => {
138
176
  let s, d;
139
177
  n > 0 ? s = e > 0 ? Math.max(n, e) : n : s = Math.max(e, 0), c > 0 ? d = t > 0 ? Math.min(c, t) : c : d = Math.max(t, 0);
140
- const b = Math.round(s);
178
+ const g = Math.round(s);
141
179
  let p = 1e3;
142
180
  d < p && (p = Math.round(d));
143
- const _ = p - b;
144
- let y = "", h = "";
145
- if (_ > 0) {
146
- let f = Math.round((p - b) * 0.25).toString().split(""), L = [];
147
- for (const o of f)
148
- o !== "" && L.push(o);
149
- for (let o = 0; o < L.length; o++)
150
- o === 0 ? y += (parseInt(L[o]) + 1).toString() : y += "0";
151
- f = Math.round((p - b) * 0.5).toString().split(""), L = [];
152
- for (const o of f)
153
- o !== "" && L.push(o);
154
- for (let o = 0; o < L.length; o++)
155
- o === 0 ? h += (parseInt(L[o]) + 1).toString() : h += "0";
181
+ const y = p - g;
182
+ let b = "", h = "";
183
+ if (y > 0) {
184
+ let _ = Math.round((p - g) * 0.25).toString().split(""), M = [];
185
+ for (const o of _)
186
+ o !== "" && M.push(o);
187
+ for (let o = 0; o < M.length; o++)
188
+ o === 0 ? b += (parseInt(M[o]) + 1).toString() : b += "0";
189
+ _ = Math.round((p - g) * 0.5).toString().split(""), M = [];
190
+ for (const o of _)
191
+ o !== "" && M.push(o);
192
+ for (let o = 0; o < M.length; o++)
193
+ o === 0 ? h += (parseInt(M[o]) + 1).toString() : h += "0";
156
194
  } else
157
- y = p.toString(), h = p.toString();
195
+ b = p.toString(), h = p.toString();
158
196
  return { amountList: [
159
- b.toString(),
160
- y,
197
+ g.toString(),
198
+ b,
161
199
  h,
162
200
  p.toString()
163
- ], minAmount: b, maxAmount: d };
164
- }, z = (e, t) => t ? {
201
+ ], minAmount: g, maxAmount: d };
202
+ }, q = (e, t) => t ? {
165
203
  id: 0,
166
204
  name: "manualMethod",
167
- type: M.manual,
168
- promo: q(e.promo),
205
+ type: D.manual,
206
+ promo: F(e.promo),
169
207
  bank: e.bank.map((s) => {
170
- const d = s.list && s.list.length > 0 ? s.list[0].mintransaction ?? "0.00" : "0.00", b = s.list && s.list.length > 0 ? s.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: p, minAmount: _, maxAmount: y } = P(
208
+ const d = s.list && s.list.length > 0 ? s.list[0].mintransaction ?? "0.00" : "0.00", g = s.list && s.list.length > 0 ? s.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: p, minAmount: y, maxAmount: b } = I(
171
209
  Number(d),
172
- Number(b),
210
+ Number(g),
173
211
  t.mdBankLevelDetail.deposit_min,
174
212
  t.mdBankLevelDetail.deposit_max
175
213
  );
@@ -181,48 +219,48 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
181
219
  accountNo: s.list && s.list.length > 0 ? s.list[0].bankaccountno ?? "" : "",
182
220
  qrcode: s.list && s.list.length > 0 ? s.list[0].bankaccountdesc : "",
183
221
  amountList: p,
184
- min: _,
185
- max: y
222
+ min: y,
223
+ max: b
186
224
  };
187
225
  }),
188
226
  requiredField: {
189
227
  ...t.mdManualDepositRequireField,
190
228
  uploadReceipt: t.mdUploadReceipt
191
229
  }
192
- } : G, w = (e, t) => t ? {
230
+ } : w, Y = (e, t) => t ? {
193
231
  id: 0,
194
232
  name: "onlineBankingMethod",
195
- type: M.pay,
196
- promo: q(e.promo),
233
+ type: D.pay,
234
+ promo: F(e.promo),
197
235
  bank: e.banklist.map((s) => {
198
- let d = "0.00", b = "0.00";
236
+ let d = "0.00", g = "0.00";
199
237
  const p = s.bankindex ?? 0;
200
- for (let f = 0; f < t.mdGatewayMinMax.length; f++)
201
- t.mdGatewayMinMax[f].bankindex == p.toString() && (d = t.mdGatewayMinMax[f].min, b = t.mdGatewayMinMax[f].max);
202
- const { amountList: _, minAmount: y, maxAmount: h } = P(
238
+ for (let _ = 0; _ < t.mdGatewayMinMax.length; _++)
239
+ t.mdGatewayMinMax[_].bankindex == p.toString() && (d = t.mdGatewayMinMax[_].min, g = t.mdGatewayMinMax[_].max);
240
+ const { amountList: y, minAmount: b, maxAmount: h } = I(
203
241
  Number(d),
204
- Number(b),
242
+ Number(g),
205
243
  t.mdBankLevelDetail.onlinepayment_min,
206
244
  t.mdBankLevelDetail.onlinepayment_max
207
- ), S = {
245
+ ), T = {
208
246
  id: 0,
209
247
  name: "autoChannel",
210
- amountList: _,
211
- min: y,
248
+ amountList: y,
249
+ min: b,
212
250
  max: h
213
- }, v = s.pg.map((f) => {
214
- const L = f.mintransaction ?? "0.00", j = f.maxtransaction ?? "0.00", { amountList: C, minAmount: o, maxAmount: u } = P(
215
- Number(L),
251
+ }, x = s.pg.map((_) => {
252
+ const M = _.mintransaction ?? "0.00", j = _.maxtransaction ?? "0.00", { amountList: A, minAmount: o, maxAmount: l } = I(
253
+ Number(M),
216
254
  Number(j),
217
255
  t.mdBankLevelDetail.onlinepayment_min,
218
256
  t.mdBankLevelDetail.onlinepayment_max
219
257
  );
220
258
  return {
221
- id: f.pgindex,
222
- name: f.bankaccountname,
223
- amountList: C,
259
+ id: _.pgindex,
260
+ name: _.bankaccountname,
261
+ amountList: A,
224
262
  min: o,
225
- max: u
263
+ max: l
226
264
  };
227
265
  });
228
266
  return {
@@ -231,7 +269,7 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
231
269
  amountList: [],
232
270
  min: 0,
233
271
  max: 0,
234
- gateway: [S, ...v]
272
+ gateway: [T, ...x]
235
273
  };
236
274
  }),
237
275
  requiredField: {
@@ -242,14 +280,14 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
242
280
  depositor: !1,
243
281
  uploadReceipt: !1
244
282
  }
245
- } : G, W = (e, t, n) => {
246
- if (!n) return G;
247
- const c = M.auto;
283
+ } : w, K = (e, t, n) => {
284
+ if (!n) return w;
285
+ const c = D.auto;
248
286
  let s = [];
249
287
  const d = n.mdGatewayMinMax;
250
288
  if (t.bank.length > 0 && n.mdPGSelection == "1")
251
289
  s = t.bank.map((p) => {
252
- const { amountList: _, minAmount: y, maxAmount: h } = P(
290
+ const { amountList: y, minAmount: b, maxAmount: h } = I(
253
291
  p.minTransaction ?? 0,
254
292
  p.maxTransaction ?? 0,
255
293
  n.mdBankLevelDetail.onlinepayment_min,
@@ -258,34 +296,34 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
258
296
  return {
259
297
  id: p.pgindex,
260
298
  name: p.bankaccountname || "",
261
- amountList: _,
262
- min: y,
299
+ amountList: y,
300
+ min: b,
263
301
  max: h
264
302
  };
265
303
  });
266
304
  else {
267
- let p = "0.00", _ = "0.00";
268
- for (let a = 0; a < d.length; a++)
269
- d[a].bankindex === e.toString() && (p = d[a].min, _ = d[a].max);
270
- const { amountList: y, minAmount: h, maxAmount: S } = P(
305
+ let p = "0.00", y = "0.00";
306
+ for (let r = 0; r < d.length; r++)
307
+ d[r].bankindex === e.toString() && (p = d[r].min, y = d[r].max);
308
+ const { amountList: b, minAmount: h, maxAmount: T } = I(
271
309
  Number(p),
272
- Number(_),
310
+ Number(y),
273
311
  n.mdBankLevelDetail.onlinepayment_min,
274
312
  n.mdBankLevelDetail.onlinepayment_max
275
- ), v = {
313
+ ), x = {
276
314
  id: 0,
277
315
  name: "autoChannel",
278
- amountList: y,
316
+ amountList: b,
279
317
  min: h,
280
- max: S
318
+ max: T
281
319
  };
282
- s.push(v);
320
+ s.push(x);
283
321
  }
284
322
  return {
285
323
  id: e,
286
324
  name: "autoMethod",
287
325
  type: c,
288
- promo: q(t.promo),
326
+ promo: F(t.promo),
289
327
  bank: s,
290
328
  requiredField: {
291
329
  deposit_bank: !1,
@@ -296,15 +334,15 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
296
334
  uploadReceipt: !1
297
335
  }
298
336
  };
299
- }, H = (e, t) => {
300
- const n = M.fix;
337
+ }, Q = (e, t) => {
338
+ const n = D.fix;
301
339
  return {
302
340
  id: e,
303
341
  name: "fixAmountMethod",
304
342
  type: n,
305
- promo: q(t.promo),
343
+ promo: F(t.promo),
306
344
  bank: t.bank.map((s) => {
307
- const d = s.amtlist.map(Number).sort((p, _) => p - _);
345
+ const d = s.amtlist.map(Number).sort((p, y) => p - y);
308
346
  return {
309
347
  id: s.pgindex,
310
348
  name: s.name,
@@ -322,18 +360,18 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
322
360
  uploadReceipt: !1
323
361
  }
324
362
  };
325
- }, Y = (e) => e.map((t) => ({
363
+ }, X = (e) => e.map((t) => ({
326
364
  alert: t.announcement_alert == "1",
327
365
  update_time: t.announcement_lastupdated,
328
366
  content: t.announcement_simplified
329
- })), K = (e) => ({
367
+ })), Z = (e) => ({
330
368
  username: e.username,
331
369
  birthday: e.mdUserDetail.dob,
332
370
  email: e.mdUserDetail.email,
333
371
  fullName: e.mdUserDetail.firstname,
334
372
  phoneNumber: e.mdUserDetail.mobileno,
335
373
  profilePicUrl: e.mdUserDetail.profile_pic
336
- }), Q = (e) => e.mdGameListResult.map((t) => ({
374
+ }), ee = (e) => e.mdGameListResult.map((t) => ({
337
375
  code: t.code,
338
376
  id: t.id,
339
377
  name: t.name,
@@ -345,7 +383,7 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
345
383
  imageUrl: n.img,
346
384
  rate: "0.00"
347
385
  }))
348
- })), X = (e) => ({
386
+ })), te = (e) => ({
349
387
  list: e.mdGrade.map((t) => ({
350
388
  id: t.gradeindex,
351
389
  is_current_level: !1,
@@ -375,18 +413,33 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
375
413
  bonus: {
376
414
  month: {
377
415
  isShow: !1,
378
- value: "M"
416
+ isClaimable: !1,
417
+ value: "M",
418
+ timestamp: {
419
+ current: 0,
420
+ total: 0
421
+ }
379
422
  },
380
423
  week: {
381
424
  isShow: !1,
382
- value: "W"
425
+ isClaimable: !1,
426
+ value: "W",
427
+ timestamp: {
428
+ current: 0,
429
+ total: 0
430
+ }
383
431
  },
384
432
  day: {
385
433
  isShow: !1,
386
- value: "D"
434
+ isClaimable: !1,
435
+ value: "D",
436
+ timestamp: {
437
+ current: 0,
438
+ total: 0
439
+ }
387
440
  }
388
441
  }
389
- }), Z = (e) => ({
442
+ }), ne = (e) => ({
390
443
  category: e.category.sort((t, n) => t.sequence - n.sequence).map((t) => ({
391
444
  id: t.catid,
392
445
  name: t.name
@@ -401,29 +454,26 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
401
454
  name: t.title
402
455
  };
403
456
  })
404
- }), ee = (e) => ({
457
+ }), oe = (e) => ({
405
458
  month: {
406
- isShow: e.month === 1,
407
- value: "M"
459
+ isClaimable: e.month === 1
408
460
  },
409
461
  week: {
410
- isShow: e.week === 1,
411
- value: "W"
462
+ isClaimable: e.week === 1
412
463
  },
413
464
  day: {
414
- isShow: e.day === 1,
415
- value: "D"
465
+ isClaimable: e.day === 1
416
466
  }
417
- }), te = (e) => e.mdVipSetting.filter((n) => n.status == 1).map((n) => ({
467
+ }), se = (e) => e.mdVipSetting.filter((n) => n.status == 1).map((n) => ({
418
468
  fieldName: n.fieldname,
419
469
  showName: n.showname
420
- })), ne = (e) => ({
470
+ })), ae = (e) => ({
421
471
  current_deposit: e.deposit,
422
472
  current_turnover: e.turnOver,
423
473
  current_grade_id: e.mdCurrentGrade.gradeindex,
424
474
  next_grade_id: e.mdNextGrade.gradeindex,
425
475
  percentage: Number(e.percentage) * 100
426
- }), oe = (e) => {
476
+ }), ie = (e) => {
427
477
  let t = 4;
428
478
  e.vipcalculation && (t = Number(e.vipcalculation));
429
479
  let n = [];
@@ -436,7 +486,7 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
436
486
  })),
437
487
  mobileValidate: e.mobilevalidate ? e.mobilevalidate == "1" : !1
438
488
  };
439
- }, se = (e) => {
489
+ }, re = (e) => {
440
490
  let t = [];
441
491
  e.mobileBanner && (t = e.mobileBanner);
442
492
  let n = [];
@@ -450,78 +500,78 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
450
500
  content: s.content
451
501
  }))
452
502
  };
453
- }, ae = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
503
+ }, le = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
454
504
  code: t.area_code,
455
505
  regex: t.regex,
456
506
  value: t.value
457
- })), ie = (e) => e, re = (e) => {
507
+ })), me = (e) => e, ue = (e) => {
458
508
  let t = null;
459
509
  return e ? e.status != 1 ? t = 0 : t = e.mainwallet : t = 0, {
460
510
  amount: t
461
511
  };
462
- }, le = (e) => e.data.filter((t) => t.status == "1").map((t) => ({
512
+ }, ce = (e) => e.data.filter((t) => t.status == "1").map((t) => ({
463
513
  name: t.title,
464
514
  icon_url: t.flag_icon,
465
515
  code: t.code
466
- })), ue = (e) => (console.log(e), {
516
+ })), de = (e) => (console.log(e), {
467
517
  name: ""
468
- }), me = (e) => e.data.filter((t) => t.company_status == 1).map((t) => ({
518
+ }), pe = (e) => e.data.filter((t) => t.company_status == 1).map((t) => ({
469
519
  id: t.company_id,
470
520
  name: t.company_name,
471
521
  date: []
472
- })), ce = (e) => e.data.map((t) => ({
522
+ })), ge = (e) => e.data.map((t) => ({
473
523
  id: t.key,
474
- date: t.draw_date.map((n) => de(n.draw_tmactive))
524
+ date: t.draw_date.map((n) => fe(n.draw_tmactive))
475
525
  }));
476
- function de(e) {
526
+ function fe(e) {
477
527
  const t = new Date(e * 1e3), n = t.getFullYear(), c = ("0" + (t.getMonth() + 1)).slice(-2), s = ("0" + t.getDate()).slice(-2);
478
528
  return `${n}-${c}-${s}`;
479
529
  }
480
- const pe = (e) => e.data.map((t) => ({
530
+ const be = (e) => e.data.map((t) => ({
481
531
  id: t.company_id,
482
532
  list: t.drawCount.map((n) => ({
483
533
  combination: n.combination_combination,
484
534
  total: n.total
485
535
  }))
486
- })), ge = (e) => e.data.map((t) => ({
536
+ })), ye = (e) => e.data.map((t) => ({
487
537
  id: t.company_id,
488
538
  resultByDateList: t.draws.map((n) => {
489
- const c = n.results.filter((a) => a.combination_dimension == 3).map((a) => a.combination_combination), s = n.results.filter(
490
- (a) => a.combination_dimension == 4 && a.combination_position == 1
491
- ).map((a) => a.combination_combination), d = n.results.filter(
492
- (a) => a.combination_dimension == 4 && a.combination_position == 2
493
- ).map((a) => a.combination_combination), b = n.results.filter(
494
- (a) => a.combination_dimension == 4 && a.combination_position == 3
495
- ).map((a) => a.combination_combination), p = n.results.filter(
496
- (a) => a.combination_dimension == 4 && a.combination_position == 4
497
- ).map((a) => a.combination_combination), _ = n.results.filter(
498
- (a) => a.combination_dimension == 4 && a.combination_position == 5
499
- ).map((a) => a.combination_combination), y = n.results.filter(
500
- (a) => a.combination_dimension == 5 && a.combination_position == 1
501
- ).map((a) => a.combination_combination), h = n.results.filter((a) => a.combination_dimension == 5).map((a) => a.combination_combination), S = n.results.filter(
502
- (a) => a.combination_dimension == 6 && a.combination_position == 1
503
- ).map((a) => a.combination_combination), v = n.results.filter((a) => a.combination_dimension == 6).map((a) => a.combination_combination);
539
+ const c = n.results.filter((r) => r.combination_dimension == 3).map((r) => r.combination_combination), s = n.results.filter(
540
+ (r) => r.combination_dimension == 4 && r.combination_position == 1
541
+ ).map((r) => r.combination_combination), d = n.results.filter(
542
+ (r) => r.combination_dimension == 4 && r.combination_position == 2
543
+ ).map((r) => r.combination_combination), g = n.results.filter(
544
+ (r) => r.combination_dimension == 4 && r.combination_position == 3
545
+ ).map((r) => r.combination_combination), p = n.results.filter(
546
+ (r) => r.combination_dimension == 4 && r.combination_position == 4
547
+ ).map((r) => r.combination_combination), y = n.results.filter(
548
+ (r) => r.combination_dimension == 4 && r.combination_position == 5
549
+ ).map((r) => r.combination_combination), b = n.results.filter(
550
+ (r) => r.combination_dimension == 5 && r.combination_position == 1
551
+ ).map((r) => r.combination_combination), h = n.results.filter((r) => r.combination_dimension == 5).map((r) => r.combination_combination), T = n.results.filter(
552
+ (r) => r.combination_dimension == 6 && r.combination_position == 1
553
+ ).map((r) => r.combination_combination), x = n.results.filter((r) => r.combination_dimension == 6).map((r) => r.combination_combination);
504
554
  return {
505
555
  date: n.date,
506
556
  3: c,
507
557
  4: {
508
558
  1: s,
509
559
  2: d,
510
- 3: b,
560
+ 3: g,
511
561
  4: p,
512
- 5: _
562
+ 5: y
513
563
  },
514
564
  5: {
515
- 1: y,
565
+ 1: b,
516
566
  all: h
517
567
  },
518
568
  6: {
519
- 1: S,
520
- all: v
569
+ 1: T,
570
+ all: x
521
571
  }
522
572
  };
523
573
  })
524
- })), fe = (e) => e.data.map((t) => ({
574
+ })), _e = (e) => e.data.map((t) => ({
525
575
  id: t.id,
526
576
  date: t.matchDate,
527
577
  tag: t.tag,
@@ -535,36 +585,36 @@ const pe = (e) => e.data.map((t) => ({
535
585
  name: t.home,
536
586
  logo_url: t.homeLogo
537
587
  }
538
- })), be = (e) => e, _e = (e) => ({
588
+ })), he = (e) => e, ve = (e) => ({
539
589
  status: e.status == 1,
540
590
  message: e.message ?? "",
541
591
  error_message: e.errormessage ?? "",
542
592
  flag: e.flag
543
- }), ye = async (e) => {
544
- var t, n, c, s, d, b, p, _, y, h, S;
593
+ }), xe = async (e) => {
594
+ var t, n, c, s, d, g, p, y, b, h, T;
545
595
  try {
546
- e.findIndex((u) => u.name === l.vipList) !== -1 && e.push(
596
+ e.findIndex((l) => l.name === u.vipList) !== -1 && e.push(
547
597
  {
548
- name: l.vipBonus,
598
+ name: u.vipBonus,
549
599
  query: ""
550
600
  },
551
- { name: l.vipFieldStatus, query: "" },
552
- { name: l.vipStatus, query: "" },
553
- { name: l.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
554
- ), e.findIndex((u) => u.name === l.gameList) !== -1 && e.push({
555
- name: l.getPlatformTurnoverRate,
601
+ { name: u.vipFieldStatus, query: "" },
602
+ { name: u.vipStatus, query: "" },
603
+ { name: u.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
604
+ ), e.findIndex((l) => l.name === u.gameList) !== -1 && e.push({
605
+ name: u.getPlatformTurnoverRate,
556
606
  query: ""
557
607
  });
558
- const f = e.findIndex(
559
- (u) => u.name === l.getFourDimensionData
608
+ const _ = e.findIndex(
609
+ (l) => l.name === u.getFourDimensionData
560
610
  );
561
- f !== -1 && e[f].query == "" && (e.splice(f), e.push(
611
+ _ !== -1 && e[_].query == "" && (e.splice(_), e.push(
562
612
  {
563
- name: l.getFourDimensionData,
613
+ name: u.getFourDimensionData,
564
614
  query: JSON.stringify({ action: "getCompany", native: "1" })
565
615
  },
566
616
  {
567
- name: l.getFourDimensionData,
617
+ name: u.getFourDimensionData,
568
618
  query: JSON.stringify({
569
619
  action: "searchResultDate",
570
620
  limit: 100,
@@ -575,273 +625,295 @@ const pe = (e) => e.data.map((t) => ({
575
625
  }
576
626
  ));
577
627
  const j = {
578
- requests: e.map((u) => ({
579
- name: u.name,
580
- query: btoa(u.query)
628
+ requests: e.map((l) => ({
629
+ name: l.name,
630
+ query: btoa(l.query)
581
631
  }))
582
- }, C = await B.post(
632
+ }, A = await B.post(
583
633
  "/jwt",
584
- $(JSON.stringify(j))
634
+ U(JSON.stringify(j))
585
635
  ), o = {
586
636
  status: 200,
587
637
  message: "",
588
638
  result: {}
589
639
  };
590
- for (const u of C.data.responses) {
591
- u.error != null && u.error.code != 200 && (o.status = u.error.code, o.message = u.error.message);
592
- const g = u.attributes !== null && u.attributes !== void 0 ? A(u.attributes) : null, i = u.name, r = g ? JSON.parse(g) : null;
593
- if (!r)
594
- o.result[i] = null;
640
+ for (const l of A.data.responses) {
641
+ l.error != null && l.error.code != 200 && (o.status = l.error.code, o.message = l.error.message);
642
+ const f = l.attributes !== null && l.attributes !== void 0 ? z(l.attributes) : null, a = l.name, i = f ? JSON.parse(f) : null;
643
+ if (!i)
644
+ o.result[a] = null;
595
645
  else
596
- switch (i) {
597
- case l.announcement:
598
- o.result[i] = Y(r);
646
+ switch (a) {
647
+ case u.announcement:
648
+ o.result[a] = X(i);
599
649
  break;
600
- case l.gameList:
601
- o.result[i] = Q(r);
650
+ case u.gameList:
651
+ o.result[a] = ee(i);
602
652
  break;
603
- case l.cmsList:
604
- o.result[i] = se(r);
653
+ case u.cmsList:
654
+ o.result[a] = re(i);
605
655
  break;
606
- case l.paymentsProvider:
607
- o.result[i] = J(
608
- r
656
+ case u.paymentsProvider:
657
+ o.result[a] = H(
658
+ i
609
659
  );
610
660
  break;
611
- case l.getUserProfile:
612
- o.result[i] = K(r);
661
+ case u.getUserProfile:
662
+ o.result[a] = Z(i);
613
663
  break;
614
- case l.vipList:
615
- o.result[i] = X(r);
664
+ case u.vipList:
665
+ o.result[a] = te(i);
616
666
  break;
617
- case l.vipBonus:
618
- o.result[i] = ee(r);
667
+ case u.vipBonus:
668
+ o.result[a] = oe(i);
619
669
  break;
620
- case l.vipFieldStatus:
621
- o.result[i] = te(r);
670
+ case u.vipFieldStatus:
671
+ o.result[a] = se(i);
622
672
  break;
623
- case l.vipStatus:
624
- o.result[i] = ne(r);
673
+ case u.vipStatus:
674
+ o.result[a] = ae(i);
625
675
  break;
626
- case l.promotion:
627
- o.result[i] = Z(r);
676
+ case u.promotion:
677
+ o.result[a] = ne(i);
628
678
  break;
629
- case l.getSetting:
630
- o.result[i] = oe(r);
679
+ case u.getSetting:
680
+ o.result[a] = ie(i);
631
681
  break;
632
- case l.getCountryMobile:
633
- o.result[i] = ae(
634
- r
682
+ case u.getCountryMobile:
683
+ o.result[a] = le(
684
+ i
635
685
  );
636
686
  break;
637
- case l.getPlatformTurnoverRate:
638
- o.result[i] = ie(
639
- r
687
+ case u.getPlatformTurnoverRate:
688
+ o.result[a] = me(
689
+ i
640
690
  );
641
691
  break;
642
- case l.mainWallet:
643
- o.result[i] = re(r);
692
+ case u.mainWallet:
693
+ o.result[a] = ue(i);
644
694
  break;
645
- case l.getLanguageSetting:
646
- o.result[i] = le(
647
- r
695
+ case u.getLanguageSetting:
696
+ o.result[a] = ce(
697
+ i
648
698
  );
649
699
  break;
650
- case l.getFourDimensionData:
651
- o.result[i] = ue(
652
- r
700
+ case u.getFourDimensionData:
701
+ o.result[a] = de(
702
+ i
653
703
  );
654
704
  break;
655
- case l.getCompany:
656
- o.result[i] = me(r);
705
+ case u.getCompany:
706
+ o.result[a] = pe(i);
657
707
  break;
658
- case l.searchResultDate:
659
- o.result[i] = ce(
660
- r
708
+ case u.searchResultDate:
709
+ o.result[a] = ge(
710
+ i
661
711
  );
662
712
  break;
663
- case l.searchHot:
664
- o.result[i] = pe(r);
713
+ case u.searchHot:
714
+ o.result[a] = be(i);
665
715
  break;
666
- case l.searchByDate:
667
- o.result[i] = ge(r);
716
+ case u.searchByDate:
717
+ o.result[a] = ye(i);
668
718
  break;
669
- case l.upcomingMatches:
670
- o.result[i] = fe(
671
- r
719
+ case u.upcomingMatches:
720
+ o.result[a] = _e(
721
+ i
672
722
  );
673
723
  break;
674
- case l.deposit:
675
- o.result[i] = be(r);
724
+ case u.deposit:
725
+ o.result[a] = he(i);
676
726
  break;
677
- case l.applyVipBonus:
678
- o.result[i] = _e(r);
727
+ case u.applyVipBonus:
728
+ o.result[a] = ve(i);
679
729
  break;
680
730
  }
681
731
  }
682
- if (l.vipList in o.result && ((t = o.result) != null && t.vipList)) {
683
- const u = o.result.vipList;
684
- let g = 4;
685
- if (l.getSetting in o.result && ((n = o.result) != null && n.getSetting && (g = o.result.getSetting.vip_calculation), delete o.result.getSetting), l.vipBonus in o.result && ((c = o.result) != null && c.vipBonus && (u.bonus = o.result.vipBonus), delete o.result.vipBonus), l.vipStatus in o.result) {
686
- if ((s = o.result) != null && s.vipStatus) {
687
- const i = o.result.vipStatus, {
688
- current_grade_id: r,
689
- current_deposit: R,
690
- current_turnover: T,
691
- percentage: I
692
- } = i, D = u.list.findIndex((x) => x.id === r);
693
- u.list = u.list.map((x, N) => {
694
- const O = N === D;
695
- let k = "0", m = "0", F = 0;
696
- return O ? (k = `${Math.min(Number(R), Number(x.deposit.total))}`, m = `${Math.min(Number(T), Number(x.turnover.total))}`, F = I) : N < D ? (k = x.deposit.total, m = x.turnover.total, F = 1) : N > D && (k = "0.00", m = "0.00", F = 0), {
697
- ...x,
698
- is_current_level: O,
732
+ if (u.vipList in o.result && ((t = o.result) != null && t.vipList)) {
733
+ const l = o.result.vipList;
734
+ let f = 4;
735
+ if (u.getSetting in o.result && ((n = o.result) != null && n.getSetting && (f = o.result.getSetting.vip_calculation), delete o.result.getSetting), u.vipStatus in o.result) {
736
+ if ((c = o.result) != null && c.vipStatus) {
737
+ const a = o.result.vipStatus, {
738
+ current_grade_id: i,
739
+ current_deposit: S,
740
+ current_turnover: R,
741
+ percentage: O
742
+ } = a, L = l.list.findIndex((v) => v.id === i);
743
+ l.list = l.list.map((v, P) => {
744
+ const N = P === L;
745
+ let k = "0", m = "0", C = 0;
746
+ return N ? (k = `${Math.min(Number(S), Number(v.deposit.total))}`, m = `${Math.min(Number(R), Number(v.turnover.total))}`, C = O) : P < L ? (k = v.deposit.total, m = v.turnover.total, C = 1) : P > L && (k = "0.00", m = "0.00", C = 0), {
747
+ ...v,
748
+ is_current_level: N,
699
749
  deposit: {
700
- ...x.deposit,
701
- isShow: g === 1 || g === 3 || g === 4,
750
+ ...v.deposit,
751
+ isShow: f === 1 || f === 3 || f === 4,
702
752
  current: k
703
753
  },
704
754
  turnover: {
705
- ...x.turnover,
706
- isShow: g === 2 || g === 3 || g === 4,
755
+ ...v.turnover,
756
+ isShow: f === 2 || f === 3 || f === 4,
707
757
  current: m
708
758
  },
709
- percentage: F
759
+ percentage: C
710
760
  };
711
761
  });
712
762
  }
713
763
  delete o.result.vipStatus;
714
764
  }
715
- if (l.vipFieldStatus in o.result) {
765
+ if (u.vipBonus in o.result) {
766
+ if ((s = o.result) != null && s.vipBonus) {
767
+ const a = o.result.vipBonus, i = l.list.find((C) => C.is_current_level == !0), S = Number(i == null ? void 0 : i.benefit_list.daily.bonus) ?? 0, R = Number(i == null ? void 0 : i.benefit_list.weekly.bonus) ?? 0, O = Number(i == null ? void 0 : i.benefit_list.monthly.bonus) ?? 0;
768
+ l.bonus.day.isClaimable = a.day.isClaimable;
769
+ const { dayRemainingTime: L, dayProgressPercentage: v } = V();
770
+ l.bonus.day.timestamp = {
771
+ current: !a.day.isClaimable && S > 0 ? L : 0,
772
+ total: v
773
+ }, l.bonus.week.isClaimable = a.week.isClaimable;
774
+ const { weekRemainingTime: P, weekProgressPercentage: N } = E();
775
+ l.bonus.week.timestamp = {
776
+ current: !a.week.isClaimable && R > 0 ? P : 0,
777
+ total: N
778
+ }, l.bonus.month.isClaimable = a.month.isClaimable;
779
+ const { monthRemainingTime: k, monthProgressPercentage: m } = $();
780
+ l.bonus.month.timestamp = {
781
+ current: !a.month.isClaimable && O > 0 ? k : 0,
782
+ total: m
783
+ };
784
+ }
785
+ delete o.result.vipBonus;
786
+ }
787
+ if (u.vipFieldStatus in o.result) {
716
788
  if ((d = o.result) != null && d.vipFieldStatus) {
717
- const i = o.result.vipFieldStatus, r = [];
718
- r.push({
789
+ const a = o.result.vipFieldStatus, i = [];
790
+ i.push({
719
791
  name: "",
720
792
  code: "vipLevel",
721
- value: u.list.map((m) => m.name)
793
+ value: l.list.map((m) => m.name)
722
794
  });
723
- const R = i.findIndex(
795
+ const S = a.findIndex(
724
796
  (m) => m.fieldName == "upgrade_bonus"
725
797
  );
726
- R > -1 && r.push({
727
- name: i[R].showName,
798
+ S > -1 && i.push({
799
+ name: a[S].showName,
728
800
  code: "",
729
- value: u.list.map((m) => m.benefit_list.upgrade.bonus)
801
+ value: l.list.map((m) => m.benefit_list.upgrade.bonus)
730
802
  });
731
- const T = i.findIndex(
803
+ const R = a.findIndex(
732
804
  (m) => m.fieldName == "upgrade_bonus_multiply"
733
805
  );
734
- T > -1 && r.push({
735
- name: i[T].showName,
806
+ R > -1 && i.push({
807
+ name: a[R].showName,
736
808
  code: "",
737
- value: u.list.map((m) => m.benefit_list.upgrade.turnover)
809
+ value: l.list.map((m) => m.benefit_list.upgrade.turnover)
738
810
  });
739
- const I = i.findIndex(
811
+ const O = a.findIndex(
740
812
  (m) => m.fieldName == "monthly_bonus"
741
813
  );
742
- I > -1 && r.push({
743
- name: i[I].showName,
814
+ l.bonus.month.isShow = O > -1, O > -1 && i.push({
815
+ name: a[O].showName,
744
816
  code: "",
745
- value: u.list.map((m) => m.benefit_list.monthly.bonus)
817
+ value: l.list.map((m) => m.benefit_list.monthly.bonus)
746
818
  });
747
- const D = i.findIndex(
819
+ const L = a.findIndex(
748
820
  (m) => m.fieldName == "monthly_bonus_multiply"
749
821
  );
750
- D > -1 && r.push({
751
- name: i[D].showName,
822
+ L > -1 && i.push({
823
+ name: a[L].showName,
752
824
  code: "",
753
- value: u.list.map((m) => m.benefit_list.monthly.turnover)
825
+ value: l.list.map((m) => m.benefit_list.monthly.turnover)
754
826
  });
755
- const x = i.findIndex(
827
+ const v = a.findIndex(
756
828
  (m) => m.fieldName == "weekly_bonus"
757
829
  );
758
- x > -1 && r.push({
759
- name: i[x].showName,
830
+ l.bonus.week.isShow = v > -1, v > -1 && i.push({
831
+ name: a[v].showName,
760
832
  code: "",
761
- value: u.list.map((m) => m.benefit_list.weekly.bonus)
833
+ value: l.list.map((m) => m.benefit_list.weekly.bonus)
762
834
  });
763
- const N = i.findIndex(
835
+ const P = a.findIndex(
764
836
  (m) => m.fieldName == "weekly_bonus_multiply"
765
837
  );
766
- N > -1 && r.push({
767
- name: i[N].showName,
838
+ P > -1 && i.push({
839
+ name: a[P].showName,
768
840
  code: "",
769
- value: u.list.map((m) => m.benefit_list.weekly.turnover)
841
+ value: l.list.map((m) => m.benefit_list.weekly.turnover)
770
842
  });
771
- const O = i.findIndex(
843
+ const N = a.findIndex(
772
844
  (m) => m.fieldName == "daily_bonus"
773
845
  );
774
- O > -1 && r.push({
775
- name: i[O].showName,
846
+ l.bonus.day.isShow = N > -1, N > -1 && i.push({
847
+ name: a[N].showName,
776
848
  code: "",
777
- value: u.list.map((m) => m.benefit_list.daily.bonus)
849
+ value: l.list.map((m) => m.benefit_list.daily.bonus)
778
850
  });
779
- const k = i.findIndex(
851
+ const k = a.findIndex(
780
852
  (m) => m.fieldName == "daily_bonus_multiply"
781
853
  );
782
- k > -1 && r.push({
783
- name: i[k].showName,
854
+ k > -1 && i.push({
855
+ name: a[k].showName,
784
856
  code: "",
785
- value: u.list.map((m) => m.benefit_list.daily.turnover)
786
- }), (g === 1 || g === 3 || g === 4) && r.push({
857
+ value: l.list.map((m) => m.benefit_list.daily.turnover)
858
+ }), (f === 1 || f === 3 || f === 4) && i.push({
787
859
  name: "",
788
860
  code: "detail_deposit",
789
- value: u.list.map((m) => m.deposit.total)
790
- }), (g === 2 || g === 3 || g === 4) && r.push({
861
+ value: l.list.map((m) => m.deposit.total)
862
+ }), (f === 2 || f === 3 || f === 4) && i.push({
791
863
  name: "",
792
864
  code: "detail_turnover",
793
- value: u.list.map((m) => m.turnover.total)
794
- }), u.detail = r;
865
+ value: l.list.map((m) => m.turnover.total)
866
+ }), l.detail = i;
795
867
  }
796
868
  delete o.result.vipFieldStatus;
797
869
  }
798
- o.result.vipList = u;
870
+ o.result.vipList = l;
799
871
  }
800
- if (l.gameList in o.result && ((b = o.result) != null && b.gameList)) {
801
- const u = o.result.gameList;
802
- if (l.getPlatformTurnoverRate in o.result && ((p = o.result) != null && p.getPlatformTurnoverRate)) {
803
- const g = o.result.getPlatformTurnoverRate;
804
- u.forEach((i) => {
805
- i.list = i.list.map((r) => {
806
- const R = g.find(
807
- (T) => T.id === r.id
872
+ if (u.gameList in o.result && ((g = o.result) != null && g.gameList)) {
873
+ const l = o.result.gameList;
874
+ if (u.getPlatformTurnoverRate in o.result && ((p = o.result) != null && p.getPlatformTurnoverRate)) {
875
+ const f = o.result.getPlatformTurnoverRate;
876
+ l.forEach((a) => {
877
+ a.list = a.list.map((i) => {
878
+ const S = f.find(
879
+ (R) => R.id === i.id
808
880
  );
809
881
  return {
810
- ...r,
811
- rate: (R == null ? void 0 : R.percentage) ?? "0.00"
882
+ ...i,
883
+ rate: (S == null ? void 0 : S.percentage) ?? "0.00"
812
884
  };
813
885
  });
814
886
  }), delete o.result.getPlatformTurnoverRate;
815
887
  }
816
- o.result.gameList = u;
888
+ o.result.gameList = l;
817
889
  }
818
- if (l.getCompany in o.result && ((_ = o.result) != null && _.getCompany)) {
819
- const u = o.result.getCompany;
820
- if (l.searchResultDate in o.result && (y = o.result) != null && y.searchResultDate) {
821
- const g = o.result.searchResultDate;
822
- u.forEach((i) => {
823
- const r = g.find((R) => R.id == i.id);
824
- r && (i.date = r == null ? void 0 : r.date);
890
+ if (u.getCompany in o.result && ((y = o.result) != null && y.getCompany)) {
891
+ const l = o.result.getCompany;
892
+ if (u.searchResultDate in o.result && (b = o.result) != null && b.searchResultDate) {
893
+ const f = o.result.searchResultDate;
894
+ l.forEach((a) => {
895
+ const i = f.find((S) => S.id == a.id);
896
+ i && (a.date = i == null ? void 0 : i.date);
825
897
  }), delete o.result.searchResultDate;
826
898
  }
827
- o.result.getCompany = u;
899
+ o.result.getCompany = l;
828
900
  }
829
901
  return o;
830
- } catch (v) {
831
- return U.isAxiosError(v) ? {
832
- status: ((h = v.response) == null ? void 0 : h.status) || 600,
833
- message: JSON.stringify((S = v.response) == null ? void 0 : S.data),
902
+ } catch (x) {
903
+ return G.isAxiosError(x) ? {
904
+ status: ((h = x.response) == null ? void 0 : h.status) || 600,
905
+ message: JSON.stringify((T = x.response) == null ? void 0 : T.data),
834
906
  result: {}
835
- } : (console.error(v), {
836
- status: v.status || 500,
837
- message: v.message,
907
+ } : (console.error(x), {
908
+ status: x.status || 500,
909
+ message: x.message,
838
910
  result: {}
839
911
  });
840
912
  }
841
- }, he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
913
+ }, Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
842
914
  __proto__: null,
843
- post: ye
844
- }, Symbol.toStringTag, { value: "Module" })), ve = async (e, t) => {
915
+ post: xe
916
+ }, Symbol.toStringTag, { value: "Module" })), Te = async (e, t) => {
845
917
  try {
846
918
  const n = {
847
919
  status: 200,
@@ -860,10 +932,10 @@ const pe = (e) => e.data.map((t) => ({
860
932
  message: n.message
861
933
  };
862
934
  }
863
- }, xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
935
+ }, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
864
936
  __proto__: null,
865
- call: ve
866
- }, Symbol.toStringTag, { value: "Module" })), Se = async () => {
937
+ call: Te
938
+ }, Symbol.toStringTag, { value: "Module" })), ke = async () => {
867
939
  try {
868
940
  const e = {
869
941
  status: 200,
@@ -876,69 +948,69 @@ const pe = (e) => e.data.map((t) => ({
876
948
  message: e.message
877
949
  };
878
950
  }
879
- }, Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
951
+ }, De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
880
952
  __proto__: null,
881
- call: Se
953
+ call: ke
882
954
  }, Symbol.toStringTag, { value: "Module" })), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
883
955
  __proto__: null
884
- }, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
885
- __proto__: null
886
- }, Symbol.toStringTag, { value: "Module" })), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
887
- __proto__: null
888
- }, Symbol.toStringTag, { value: "Module" })), Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
956
+ }, Symbol.toStringTag, { value: "Module" })), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
889
957
  __proto__: null
890
- }, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
958
+ }, Symbol.toStringTag, { value: "Module" })), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
891
959
  __proto__: null
892
960
  }, Symbol.toStringTag, { value: "Module" })), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
893
961
  __proto__: null
894
962
  }, Symbol.toStringTag, { value: "Module" })), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
895
963
  __proto__: null
896
- }, Symbol.toStringTag, { value: "Module" })), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
964
+ }, Symbol.toStringTag, { value: "Module" })), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
965
+ __proto__: null
966
+ }, Symbol.toStringTag, { value: "Module" })), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
897
967
  __proto__: null
898
968
  }, Symbol.toStringTag, { value: "Module" })), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
899
969
  __proto__: null
900
970
  }, Symbol.toStringTag, { value: "Module" })), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
901
971
  __proto__: null
902
- }, Symbol.toStringTag, { value: "Module" })), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
972
+ }, Symbol.toStringTag, { value: "Module" })), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
973
+ __proto__: null
974
+ }, Symbol.toStringTag, { value: "Module" })), Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
903
975
  __proto__: null
904
- }, Symbol.toStringTag, { value: "Module" })), Ie = {
905
- api: he,
906
- loginApi: xe,
907
- logoutApi: Le,
908
- apiType: E,
976
+ }, Symbol.toStringTag, { value: "Module" })), we = {
977
+ api: Se,
978
+ loginApi: Me,
979
+ logoutApi: De,
980
+ apiType: J,
909
981
  loginType: Re,
910
- logoutType: Me,
911
- announcementType: ke,
912
- paymentsProviderType: V,
913
- gameListType: Te,
914
- vipListType: De,
915
- promotionType: Ne,
916
- cmsListType: Oe,
917
- mainWalletType: Pe,
918
- upcomingMatchType: Be,
919
- depositType: je,
920
- applyVipBonus: Ce
921
- }, qe = {
982
+ logoutType: Le,
983
+ announcementType: Pe,
984
+ paymentsProviderType: W,
985
+ gameListType: Ne,
986
+ vipListType: Oe,
987
+ promotionType: Ce,
988
+ cmsListType: Ie,
989
+ mainWalletType: Be,
990
+ upcomingMatchType: je,
991
+ depositType: Ae,
992
+ applyVipBonus: Fe
993
+ }, Ge = {
922
994
  install(e) {
923
- e.config.globalProperties.$library = Ie;
995
+ e.config.globalProperties.$library = we;
924
996
  }
925
997
  };
926
998
  export {
927
- qe as Repository,
928
- ke as announcementType,
929
- he as api,
930
- E as apiType,
931
- Ce as applyVipBonus,
932
- Oe as cmsListType,
933
- je as depositType,
934
- Te as gameListType,
935
- xe as loginApi,
999
+ Ge as Repository,
1000
+ Pe as announcementType,
1001
+ Se as api,
1002
+ J as apiType,
1003
+ Fe as applyVipBonus,
1004
+ Ie as cmsListType,
1005
+ Ae as depositType,
1006
+ Ne as gameListType,
1007
+ Me as loginApi,
936
1008
  Re as loginType,
937
- Le as logoutApi,
938
- Me as logoutType,
939
- Pe as mainWalletType,
940
- V as paymentsProviderType,
941
- Ne as promotionType,
942
- Be as upcomingMatchType,
943
- De as vipListType
1009
+ De as logoutApi,
1010
+ Le as logoutType,
1011
+ Be as mainWalletType,
1012
+ W as paymentsProviderType,
1013
+ Ce as promotionType,
1014
+ je as upcomingMatchType,
1015
+ Oe as vipListType
944
1016
  };