60p82u21t54k 0.0.57 → 0.0.58

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 A from "axios";
2
- const O = A.create({
1
+ import $ from "axios";
2
+ const O = $.create({
3
3
  baseURL: "/graph",
4
4
  timeout: 5e3,
5
5
  // Request timeout
@@ -59,44 +59,44 @@ O.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 U = (e) => new TextEncoder().encode(e), z = (e) => {
62
+ const A = (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
68
  };
69
- var m = /* @__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))(m || {});
69
+ var m = /* @__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))(m || {});
70
70
  const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
71
71
  __proto__: null,
72
72
  Api: m
73
73
  }, Symbol.toStringTag, { value: "Module" }));
74
- var N = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(N || {});
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
75
  const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
76
76
  __proto__: null,
77
- PaymentType: N
78
- }, Symbol.toStringTag, { value: "Module" })), V = (e) => e.mdPaymentChannels.map((t) => {
77
+ PaymentType: M
78
+ }, Symbol.toStringTag, { value: "Module" })), w = (e) => e.mdPaymentChannels.map((t) => {
79
79
  const n = [];
80
80
  switch (t.name) {
81
- case N.default:
82
- n.push($(t.paymentmethod.manual, e));
81
+ case M.default:
82
+ n.push(U(t.paymentmethod.manual, e));
83
83
  break;
84
- case N.pay:
85
- n.push(W(t.paymentmethod.onlinebanking, e));
84
+ case M.pay:
85
+ n.push(V(t.paymentmethod.onlinebanking, e));
86
86
  break;
87
87
  default:
88
88
  if (t.paymentmethod.auto.bank.length > 0 && n.push(
89
- w(t.bankid ?? 0, t.paymentmethod.auto, e)
89
+ W(t.bankid ?? 0, t.paymentmethod.auto, e)
90
90
  ), t.paymentmethod.manual.bank.length > 0) {
91
91
  let c = !1;
92
- for (let o = 0; o < t.paymentmethod.manual.bank.length; o++) {
93
- const d = t.paymentmethod.manual.bank[o];
92
+ for (let s = 0; s < t.paymentmethod.manual.bank.length; s++) {
93
+ const d = t.paymentmethod.manual.bank[s];
94
94
  if (d.list && d.list.length > 0) {
95
95
  c = !0;
96
96
  break;
97
97
  }
98
98
  }
99
- c && n.push($(t.paymentmethod.manual, e));
99
+ c && n.push(U(t.paymentmethod.manual, e));
100
100
  }
101
101
  t.paymentmethod.fixamount.bank.length > 0 && n.push(
102
102
  H(t.bankid ?? 0, t.paymentmethod.fixamount)
@@ -110,7 +110,7 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
110
110
  }), G = {
111
111
  id: 0,
112
112
  name: "",
113
- type: N.unknown,
113
+ type: M.unknown,
114
114
  promo: [],
115
115
  bank: [],
116
116
  requiredField: {
@@ -127,32 +127,32 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
127
127
  name: "excludePromo",
128
128
  value: "0",
129
129
  disabled: !0
130
- }, n = e.map((c, o) => ({
131
- id: o + 1,
130
+ }, n = e.map((c, s) => ({
131
+ id: s + 1,
132
132
  name: c.promodesc,
133
133
  value: c.promoindex.toString(),
134
134
  disabled: !1
135
135
  }));
136
136
  return [t, ...n];
137
137
  }, B = (e, t, n, c) => {
138
- let o, d;
139
- n > 0 ? o = e > 0 ? Math.max(n, e) : n : o = Math.max(e, 0), c > 0 ? d = t > 0 ? Math.min(c, t) : c : d = Math.max(t, 0);
140
- const b = Math.round(o);
138
+ let s, d;
139
+ 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);
141
141
  let p = 1e3;
142
142
  d < p && (p = Math.round(d));
143
143
  const _ = p - b;
144
144
  let y = "", h = "";
145
145
  if (_ > 0) {
146
146
  let f = Math.round((p - b) * 0.25).toString().split(""), L = [];
147
- for (const s of f)
148
- s !== "" && L.push(s);
149
- for (let s = 0; s < L.length; s++)
150
- s === 0 ? y += (parseInt(L[s]) + 1).toString() : y += "0";
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
151
  f = Math.round((p - b) * 0.5).toString().split(""), L = [];
152
- for (const s of f)
153
- s !== "" && L.push(s);
154
- for (let s = 0; s < L.length; s++)
155
- s === 0 ? h += (parseInt(L[s]) + 1).toString() : h += "0";
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";
156
156
  } else
157
157
  y = p.toString(), h = p.toString();
158
158
  return { amountList: [
@@ -161,25 +161,25 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
161
161
  h,
162
162
  p.toString()
163
163
  ], minAmount: b, maxAmount: d };
164
- }, $ = (e, t) => t ? {
164
+ }, U = (e, t) => t ? {
165
165
  id: 0,
166
166
  name: "manualMethod",
167
- type: N.manual,
167
+ type: M.manual,
168
168
  promo: q(e.promo),
169
- bank: e.bank.map((o) => {
170
- const d = o.list && o.list.length > 0 ? o.list[0].mintransaction ?? "0.00" : "0.00", b = o.list && o.list.length > 0 ? o.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: p, minAmount: _, maxAmount: y } = B(
169
+ 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 } = B(
171
171
  Number(d),
172
172
  Number(b),
173
173
  t.mdBankLevelDetail.deposit_min,
174
174
  t.mdBankLevelDetail.deposit_max
175
175
  );
176
176
  return t.mdManualDepositRequireField.depositor = !0, {
177
- id: o.bankindex ?? 0,
178
- bankAccountId: o.list && o.list.length > 0 ? o.list[0].bankaccountindex ?? 0 : 0,
179
- name: o.list && o.list.length > 0 ? o.list[0].label ?? "" : "",
180
- accountName: o.list && o.list.length > 0 ? o.list[0].bankaccountname ?? "" : "",
181
- accountNo: o.list && o.list.length > 0 ? o.list[0].bankaccountno ?? "" : "",
182
- qrcode: o.list && o.list.length > 0 ? o.list[0].bankaccountdesc : "",
177
+ id: s.bankindex ?? 0,
178
+ bankAccountId: s.list && s.list.length > 0 ? s.list[0].bankaccountindex ?? 0 : 0,
179
+ name: s.list && s.list.length > 0 ? s.list[0].label ?? "" : "",
180
+ accountName: s.list && s.list.length > 0 ? s.list[0].bankaccountname ?? "" : "",
181
+ accountNo: s.list && s.list.length > 0 ? s.list[0].bankaccountno ?? "" : "",
182
+ qrcode: s.list && s.list.length > 0 ? s.list[0].bankaccountdesc : "",
183
183
  amountList: p,
184
184
  min: _,
185
185
  max: y
@@ -189,14 +189,14 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
189
189
  ...t.mdManualDepositRequireField,
190
190
  uploadReceipt: t.mdUploadReceipt
191
191
  }
192
- } : G, W = (e, t) => t ? {
192
+ } : G, V = (e, t) => t ? {
193
193
  id: 0,
194
194
  name: "onlineBankingMethod",
195
- type: N.pay,
195
+ type: M.pay,
196
196
  promo: q(e.promo),
197
- bank: e.banklist.map((o) => {
197
+ bank: e.banklist.map((s) => {
198
198
  let d = "0.00", b = "0.00";
199
- const p = o.bankindex ?? 0;
199
+ const p = s.bankindex ?? 0;
200
200
  for (let f = 0; f < t.mdGatewayMinMax.length; f++)
201
201
  t.mdGatewayMinMax[f].bankindex == p.toString() && (d = t.mdGatewayMinMax[f].min, b = t.mdGatewayMinMax[f].max);
202
202
  const { amountList: _, minAmount: y, maxAmount: h } = B(
@@ -210,8 +210,8 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
210
210
  amountList: _,
211
211
  min: y,
212
212
  max: h
213
- }, v = o.pg.map((f) => {
214
- const L = f.mintransaction ?? "0.00", C = f.maxtransaction ?? "0.00", { amountList: j, minAmount: s, maxAmount: l } = B(
213
+ }, v = s.pg.map((f) => {
214
+ const L = f.mintransaction ?? "0.00", C = f.maxtransaction ?? "0.00", { amountList: j, minAmount: o, maxAmount: l } = B(
215
215
  Number(L),
216
216
  Number(C),
217
217
  t.mdBankLevelDetail.onlinepayment_min,
@@ -221,13 +221,13 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
221
221
  id: f.pgindex,
222
222
  name: f.bankaccountname,
223
223
  amountList: j,
224
- min: s,
224
+ min: o,
225
225
  max: l
226
226
  };
227
227
  });
228
228
  return {
229
- id: o.bankindex ?? 0,
230
- name: o.banknameenglish ?? "",
229
+ id: s.bankindex ?? 0,
230
+ name: s.banknameenglish ?? "",
231
231
  amountList: [],
232
232
  min: 0,
233
233
  max: 0,
@@ -242,13 +242,13 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
242
242
  depositor: !1,
243
243
  uploadReceipt: !1
244
244
  }
245
- } : G, w = (e, t, n) => {
245
+ } : G, W = (e, t, n) => {
246
246
  if (!n) return G;
247
- const c = N.auto;
248
- let o = [];
247
+ const c = M.auto;
248
+ let s = [];
249
249
  const d = n.mdGatewayMinMax;
250
250
  if (t.bank.length > 0 && n.mdPGSelection == "1")
251
- o = t.bank.map((p) => {
251
+ s = t.bank.map((p) => {
252
252
  const { amountList: _, minAmount: y, maxAmount: h } = B(
253
253
  p.minTransaction ?? 0,
254
254
  p.maxTransaction ?? 0,
@@ -279,14 +279,14 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
279
279
  min: h,
280
280
  max: S
281
281
  };
282
- o.push(v);
282
+ s.push(v);
283
283
  }
284
284
  return {
285
285
  id: e,
286
286
  name: "autoMethod",
287
287
  type: c,
288
288
  promo: q(t.promo),
289
- bank: o,
289
+ bank: s,
290
290
  requiredField: {
291
291
  deposit_bank: !1,
292
292
  deposit_datetime: !1,
@@ -297,18 +297,18 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
297
297
  }
298
298
  };
299
299
  }, H = (e, t) => {
300
- const n = N.fix;
300
+ const n = M.fix;
301
301
  return {
302
302
  id: e,
303
303
  name: "fixAmountMethod",
304
304
  type: n,
305
305
  promo: q(t.promo),
306
- bank: t.bank.map((o) => {
307
- const d = o.amtlist.map(Number).sort((p, _) => p - _);
306
+ bank: t.bank.map((s) => {
307
+ const d = s.amtlist.map(Number).sort((p, _) => p - _);
308
308
  return {
309
- id: o.pgindex,
310
- name: o.name,
311
- amountList: o.amtlist,
309
+ id: s.pgindex,
310
+ name: s.name,
311
+ amountList: s.amtlist,
312
312
  min: d.length > 0 ? d[0] : 0,
313
313
  max: d.length > 0 ? d[d.length - 1] : 0
314
314
  };
@@ -405,7 +405,7 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
405
405
  current_grade_id: e.mdCurrentGrade.gradeindex,
406
406
  next_grade_id: e.mdNextGrade.gradeindex,
407
407
  percentage: Number(e.percentage) * 100
408
- }), se = (e) => {
408
+ }), oe = (e) => {
409
409
  let t = 4;
410
410
  e.vipcalculation && (t = Number(e.vipcalculation));
411
411
  let n = [];
@@ -418,18 +418,18 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
418
418
  })),
419
419
  mobileValidate: e.mobilevalidate ? e.mobilevalidate == "1" : !1
420
420
  };
421
- }, oe = (e) => {
421
+ }, se = (e) => {
422
422
  let t = [];
423
423
  e.mobileBanner && (t = e.mobileBanner);
424
424
  let n = [];
425
425
  e.mobileAd && (n = e.mobileAd);
426
426
  let c = [];
427
427
  return e.mobileAbout && (c = e.mobileAbout), {
428
- banner: t.map((o) => `${o.imagepath}?${o.filemtime}`),
429
- ad: n.map((o) => `${o.imagepath}?${o.filemtime}`),
430
- about: c.map((o) => ({
431
- name: o.name,
432
- content: o.content
428
+ banner: t.map((s) => `${s.imagepath}?${s.filemtime}`),
429
+ ad: n.map((s) => `${s.imagepath}?${s.filemtime}`),
430
+ about: c.map((s) => ({
431
+ name: s.name,
432
+ content: s.content
433
433
  }))
434
434
  };
435
435
  }, ae = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
@@ -456,8 +456,8 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
456
456
  date: t.draw_date.map((n) => de(n.draw_tmactive))
457
457
  }));
458
458
  function de(e) {
459
- const t = new Date(e * 1e3), n = t.getFullYear(), c = ("0" + (t.getMonth() + 1)).slice(-2), o = ("0" + t.getDate()).slice(-2);
460
- return `${n}-${c}-${o}`;
459
+ const t = new Date(e * 1e3), n = t.getFullYear(), c = ("0" + (t.getMonth() + 1)).slice(-2), s = ("0" + t.getDate()).slice(-2);
460
+ return `${n}-${c}-${s}`;
461
461
  }
462
462
  const pe = (e) => e.data.map((t) => ({
463
463
  id: t.company_id,
@@ -468,7 +468,7 @@ const pe = (e) => e.data.map((t) => ({
468
468
  })), ge = (e) => e.data.map((t) => ({
469
469
  id: t.company_id,
470
470
  resultByDateList: t.draws.map((n) => {
471
- const c = n.results.filter((a) => a.combination_dimension == 3).map((a) => a.combination_combination), o = n.results.filter(
471
+ const c = n.results.filter((a) => a.combination_dimension == 3).map((a) => a.combination_combination), s = n.results.filter(
472
472
  (a) => a.combination_dimension == 4 && a.combination_position == 1
473
473
  ).map((a) => a.combination_combination), d = n.results.filter(
474
474
  (a) => a.combination_dimension == 4 && a.combination_position == 2
@@ -487,7 +487,7 @@ const pe = (e) => e.data.map((t) => ({
487
487
  date: n.date,
488
488
  3: c,
489
489
  4: {
490
- 1: o,
490
+ 1: s,
491
491
  2: d,
492
492
  3: b,
493
493
  4: p,
@@ -503,8 +503,22 @@ const pe = (e) => e.data.map((t) => ({
503
503
  }
504
504
  };
505
505
  })
506
- })), fe = async (e) => {
507
- var t, n, c, o, d, b, p, _, y, h, S;
506
+ })), fe = (e) => e.data.map((t) => ({
507
+ id: t.id,
508
+ date: t.matchDate,
509
+ tag: t.tag,
510
+ away: {
511
+ id: t.awayid,
512
+ name: t.away,
513
+ logo_url: t.awayLogo
514
+ },
515
+ home: {
516
+ id: t.homeid,
517
+ name: t.home,
518
+ logo_url: t.homeLogo
519
+ }
520
+ })), be = async (e) => {
521
+ var t, n, c, s, d, b, p, _, y, h, S;
508
522
  try {
509
523
  e.findIndex((l) => l.name === m.vipList) !== -1 && e.push(
510
524
  {
@@ -544,108 +558,113 @@ const pe = (e) => e.data.map((t) => ({
544
558
  }))
545
559
  }, j = await O.post(
546
560
  "/jwt",
547
- U(JSON.stringify(C))
548
- ), s = {
561
+ A(JSON.stringify(C))
562
+ ), o = {
549
563
  status: 200,
550
564
  message: "",
551
565
  result: {}
552
566
  };
553
567
  for (const l of j.data.responses) {
554
- l.error != null && l.error.code != 200 && (s.status = l.error.code, s.message = l.error.message);
568
+ l.error != null && l.error.code != 200 && (o.status = l.error.code, o.message = l.error.message);
555
569
  const g = l.attributes !== null && l.attributes !== void 0 ? z(l.attributes) : null, i = l.name, r = g ? JSON.parse(g) : null;
556
570
  if (!r)
557
- s.result[i] = null;
571
+ o.result[i] = null;
558
572
  else
559
573
  switch (i) {
560
574
  case m.announcement:
561
- s.result[i] = Y(r);
575
+ o.result[i] = Y(r);
562
576
  break;
563
577
  case m.gameList:
564
- s.result[i] = Q(r);
578
+ o.result[i] = Q(r);
565
579
  break;
566
580
  case m.cmsList:
567
- s.result[i] = oe(r);
581
+ o.result[i] = se(r);
568
582
  break;
569
583
  case m.paymentsProvider:
570
- s.result[i] = V(
584
+ o.result[i] = w(
571
585
  r
572
586
  );
573
587
  break;
574
588
  case m.getUserProfile:
575
- s.result[i] = K(r);
589
+ o.result[i] = K(r);
576
590
  break;
577
591
  case m.vipList:
578
- s.result[i] = X(r);
592
+ o.result[i] = X(r);
579
593
  break;
580
594
  case m.vipBonus:
581
- s.result[i] = ee(r);
595
+ o.result[i] = ee(r);
582
596
  break;
583
597
  case m.vipFieldStatus:
584
- s.result[i] = te(r);
598
+ o.result[i] = te(r);
585
599
  break;
586
600
  case m.vipStatus:
587
- s.result[i] = ne(r);
601
+ o.result[i] = ne(r);
588
602
  break;
589
603
  case m.promotion:
590
- s.result[i] = Z(r);
604
+ o.result[i] = Z(r);
591
605
  break;
592
606
  case m.getSetting:
593
- s.result[i] = se(r);
607
+ o.result[i] = oe(r);
594
608
  break;
595
609
  case m.getCountryMobile:
596
- s.result[i] = ae(
610
+ o.result[i] = ae(
597
611
  r
598
612
  );
599
613
  break;
600
614
  case m.getPlatformTurnoverRate:
601
- s.result[i] = ie(
615
+ o.result[i] = ie(
602
616
  r
603
617
  );
604
618
  break;
605
619
  case m.mainWallet:
606
- s.result[i] = re(r);
620
+ o.result[i] = re(r);
607
621
  break;
608
622
  case m.getLanguageSetting:
609
- s.result[i] = le(
623
+ o.result[i] = le(
610
624
  r
611
625
  );
612
626
  break;
613
627
  case m.getFourDimensionData:
614
- s.result[i] = ue(
628
+ o.result[i] = ue(
615
629
  r
616
630
  );
617
631
  break;
618
632
  case m.getCompany:
619
- s.result[i] = me(r);
633
+ o.result[i] = me(r);
620
634
  break;
621
635
  case m.searchResultDate:
622
- s.result[i] = ce(
636
+ o.result[i] = ce(
623
637
  r
624
638
  );
625
639
  break;
626
640
  case m.searchHot:
627
- s.result[i] = pe(r);
641
+ o.result[i] = pe(r);
628
642
  break;
629
643
  case m.searchByDate:
630
- s.result[i] = ge(r);
644
+ o.result[i] = ge(r);
645
+ break;
646
+ case m.upcomingMatches:
647
+ o.result[i] = fe(
648
+ r
649
+ );
631
650
  break;
632
651
  }
633
652
  }
634
- if (m.vipList in s.result && ((t = s.result) != null && t.vipList)) {
635
- const l = s.result.vipList;
653
+ if (m.vipList in o.result && ((t = o.result) != null && t.vipList)) {
654
+ const l = o.result.vipList;
636
655
  let g = 4;
637
- if (m.getSetting in s.result && ((n = s.result) != null && n.getSetting && (g = s.result.getSetting.vip_calculation), delete s.result.getSetting), m.vipBonus in s.result && ((c = s.result) != null && c.vipBonus && (l.bonus = s.result.vipBonus), delete s.result.vipBonus), m.vipStatus in s.result) {
638
- if ((o = s.result) != null && o.vipStatus) {
639
- const i = s.result.vipStatus, {
656
+ if (m.getSetting in o.result && ((n = o.result) != null && n.getSetting && (g = o.result.getSetting.vip_calculation), delete o.result.getSetting), m.vipBonus in o.result && ((c = o.result) != null && c.vipBonus && (l.bonus = o.result.vipBonus), delete o.result.vipBonus), m.vipStatus in o.result) {
657
+ if ((s = o.result) != null && s.vipStatus) {
658
+ const i = o.result.vipStatus, {
640
659
  current_grade_id: r,
641
660
  current_deposit: R,
642
- current_turnover: D,
661
+ current_turnover: N,
643
662
  percentage: I
644
- } = i, M = l.list.findIndex((x) => x.id === r);
663
+ } = i, D = l.list.findIndex((x) => x.id === r);
645
664
  l.list = l.list.map((x, T) => {
646
- const P = T === M;
665
+ const P = T === D;
647
666
  let k = "0", u = "0", F = 0;
648
- return P ? (k = `${Math.min(Number(R), Number(x.deposit.total))}`, u = `${Math.min(Number(D), Number(x.turnover.total))}`, F = I) : T < M ? (k = x.deposit.total, u = x.turnover.total, F = 1) : T > M && (k = "0.00", u = "0.00", F = 0), {
667
+ return P ? (k = `${Math.min(Number(R), Number(x.deposit.total))}`, u = `${Math.min(Number(N), Number(x.turnover.total))}`, F = I) : T < D ? (k = x.deposit.total, u = x.turnover.total, F = 1) : T > D && (k = "0.00", u = "0.00", F = 0), {
649
668
  ...x,
650
669
  is_current_level: P,
651
670
  deposit: {
@@ -662,11 +681,11 @@ const pe = (e) => e.data.map((t) => ({
662
681
  };
663
682
  });
664
683
  }
665
- delete s.result.vipStatus;
684
+ delete o.result.vipStatus;
666
685
  }
667
- if (m.vipFieldStatus in s.result) {
668
- if ((d = s.result) != null && d.vipFieldStatus) {
669
- const i = s.result.vipFieldStatus, r = [];
686
+ if (m.vipFieldStatus in o.result) {
687
+ if ((d = o.result) != null && d.vipFieldStatus) {
688
+ const i = o.result.vipFieldStatus, r = [];
670
689
  r.push({
671
690
  name: "",
672
691
  code: "vipLevel",
@@ -680,11 +699,11 @@ const pe = (e) => e.data.map((t) => ({
680
699
  code: "",
681
700
  value: l.list.map((u) => u.benefit_list.upgrade.bonus)
682
701
  });
683
- const D = i.findIndex(
702
+ const N = i.findIndex(
684
703
  (u) => u.fieldName == "upgrade_bonus_multiply"
685
704
  );
686
- D > -1 && r.push({
687
- name: i[D].showName,
705
+ N > -1 && r.push({
706
+ name: i[N].showName,
688
707
  code: "",
689
708
  value: l.list.map((u) => u.benefit_list.upgrade.turnover)
690
709
  });
@@ -696,11 +715,11 @@ const pe = (e) => e.data.map((t) => ({
696
715
  code: "",
697
716
  value: l.list.map((u) => u.benefit_list.monthly.bonus)
698
717
  });
699
- const M = i.findIndex(
718
+ const D = i.findIndex(
700
719
  (u) => u.fieldName == "monthly_bonus_multiply"
701
720
  );
702
- M > -1 && r.push({
703
- name: i[M].showName,
721
+ D > -1 && r.push({
722
+ name: i[D].showName,
704
723
  code: "",
705
724
  value: l.list.map((u) => u.benefit_list.monthly.turnover)
706
725
  });
@@ -745,42 +764,42 @@ const pe = (e) => e.data.map((t) => ({
745
764
  value: l.list.map((u) => u.turnover.total)
746
765
  }), l.detail = r;
747
766
  }
748
- delete s.result.vipFieldStatus;
767
+ delete o.result.vipFieldStatus;
749
768
  }
750
- s.result.vipList = l;
769
+ o.result.vipList = l;
751
770
  }
752
- if (m.gameList in s.result && ((b = s.result) != null && b.gameList)) {
753
- const l = s.result.gameList;
754
- if (m.getPlatformTurnoverRate in s.result && ((p = s.result) != null && p.getPlatformTurnoverRate)) {
755
- const g = s.result.getPlatformTurnoverRate;
771
+ if (m.gameList in o.result && ((b = o.result) != null && b.gameList)) {
772
+ const l = o.result.gameList;
773
+ if (m.getPlatformTurnoverRate in o.result && ((p = o.result) != null && p.getPlatformTurnoverRate)) {
774
+ const g = o.result.getPlatformTurnoverRate;
756
775
  l.forEach((i) => {
757
776
  i.list = i.list.map((r) => {
758
777
  const R = g.find(
759
- (D) => D.id === r.id
778
+ (N) => N.id === r.id
760
779
  );
761
780
  return {
762
781
  ...r,
763
782
  rate: (R == null ? void 0 : R.percentage) ?? "0.00"
764
783
  };
765
784
  });
766
- }), delete s.result.getPlatformTurnoverRate;
785
+ }), delete o.result.getPlatformTurnoverRate;
767
786
  }
768
- s.result.gameList = l;
787
+ o.result.gameList = l;
769
788
  }
770
- if (m.getCompany in s.result && ((_ = s.result) != null && _.getCompany)) {
771
- const l = s.result.getCompany;
772
- if (m.searchResultDate in s.result && (y = s.result) != null && y.searchResultDate) {
773
- const g = s.result.searchResultDate;
789
+ if (m.getCompany in o.result && ((_ = o.result) != null && _.getCompany)) {
790
+ const l = o.result.getCompany;
791
+ if (m.searchResultDate in o.result && (y = o.result) != null && y.searchResultDate) {
792
+ const g = o.result.searchResultDate;
774
793
  l.forEach((i) => {
775
794
  const r = g.find((R) => R.id == i.id);
776
795
  r && (i.date = r == null ? void 0 : r.date);
777
- }), delete s.result.searchResultDate;
796
+ }), delete o.result.searchResultDate;
778
797
  }
779
- s.result.getCompany = l;
798
+ o.result.getCompany = l;
780
799
  }
781
- return s;
800
+ return o;
782
801
  } catch (v) {
783
- return A.isAxiosError(v) ? {
802
+ return $.isAxiosError(v) ? {
784
803
  status: ((h = v.response) == null ? void 0 : h.status) || 600,
785
804
  message: JSON.stringify((S = v.response) == null ? void 0 : S.data),
786
805
  result: {}
@@ -790,10 +809,10 @@ const pe = (e) => e.data.map((t) => ({
790
809
  result: {}
791
810
  });
792
811
  }
793
- }, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
812
+ }, _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
794
813
  __proto__: null,
795
- post: fe
796
- }, Symbol.toStringTag, { value: "Module" })), _e = async (e, t) => {
814
+ post: be
815
+ }, Symbol.toStringTag, { value: "Module" })), ye = async (e, t) => {
797
816
  try {
798
817
  const n = {
799
818
  status: 200,
@@ -812,10 +831,10 @@ const pe = (e) => e.data.map((t) => ({
812
831
  message: n.message
813
832
  };
814
833
  }
815
- }, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
834
+ }, he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
816
835
  __proto__: null,
817
- call: _e
818
- }, Symbol.toStringTag, { value: "Module" })), he = async () => {
836
+ call: ye
837
+ }, Symbol.toStringTag, { value: "Module" })), ve = async () => {
819
838
  try {
820
839
  const e = {
821
840
  status: 200,
@@ -828,57 +847,57 @@ const pe = (e) => e.data.map((t) => ({
828
847
  message: e.message
829
848
  };
830
849
  }
831
- }, ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
850
+ }, xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
832
851
  __proto__: null,
833
- call: he
834
- }, Symbol.toStringTag, { value: "Module" })), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
835
- __proto__: null
852
+ call: ve
836
853
  }, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
837
854
  __proto__: null
838
855
  }, Symbol.toStringTag, { value: "Module" })), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
839
856
  __proto__: null
840
857
  }, Symbol.toStringTag, { value: "Module" })), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
841
858
  __proto__: null
842
- }, Symbol.toStringTag, { value: "Module" })), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
859
+ }, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
843
860
  __proto__: null
844
861
  }, Symbol.toStringTag, { value: "Module" })), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
845
862
  __proto__: null
863
+ }, Symbol.toStringTag, { value: "Module" })), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
864
+ __proto__: null
846
865
  }, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
847
866
  __proto__: null
848
- }, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
867
+ }, Symbol.toStringTag, { value: "Module" })), Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
849
868
  __proto__: null
850
- }, Symbol.toStringTag, { value: "Module" })), Te = {
851
- api: be,
852
- loginApi: ye,
853
- logoutApi: ve,
869
+ }, Symbol.toStringTag, { value: "Module" })), Pe = {
870
+ api: _e,
871
+ loginApi: he,
872
+ logoutApi: xe,
854
873
  apiType: E,
855
- loginType: xe,
856
- logoutType: Se,
857
- announcementType: Le,
874
+ loginType: Se,
875
+ logoutType: Le,
876
+ announcementType: Re,
858
877
  paymentsProviderType: J,
859
- gameListType: Re,
860
- vipListType: Ne,
861
- promotionType: ke,
878
+ gameListType: Me,
879
+ vipListType: ke,
880
+ promotionType: Ne,
862
881
  cmsListType: De,
863
- mainWalletType: Me
864
- }, Be = {
882
+ mainWalletType: Te
883
+ }, Oe = {
865
884
  install(e) {
866
- e.config.globalProperties.$library = Te;
885
+ e.config.globalProperties.$library = Pe;
867
886
  }
868
887
  };
869
888
  export {
870
- Be as Repository,
871
- Le as announcementType,
872
- be as api,
889
+ Oe as Repository,
890
+ Re as announcementType,
891
+ _e as api,
873
892
  E as apiType,
874
893
  De as cmsListType,
875
- Re as gameListType,
876
- ye as loginApi,
877
- xe as loginType,
878
- ve as logoutApi,
879
- Se as logoutType,
880
- Me as mainWalletType,
894
+ Me as gameListType,
895
+ he as loginApi,
896
+ Se as loginType,
897
+ xe as logoutApi,
898
+ Le as logoutType,
899
+ Te as mainWalletType,
881
900
  J as paymentsProviderType,
882
- ke as promotionType,
883
- Ne as vipListType
901
+ Ne as promotionType,
902
+ ke as vipListType
884
903
  };
@@ -1 +1 @@
1
- (function(g,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],D):(g=typeof globalThis<"u"?globalThis:g||self,D(g["60p82u21t54k"]={},g.axios))})(this,function(g,D){"use strict";const B=D.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});B.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),B.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};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)});const te=e=>new TextEncoder().encode(e),ne=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var m=(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))(m||{});const U=Object.freeze(Object.defineProperty({__proto__:null,Api:m},Symbol.toStringTag,{value:"Module"}));var k=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(k||{});const z=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:k},Symbol.toStringTag,{value:"Module"})),oe=e=>e.mdPaymentChannels.map(t=>{const n=[];switch(t.name){case k.default:n.push(E(t.paymentmethod.manual,e));break;case k.pay:n.push(se(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&n.push(ae(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let c=!1;for(let s=0;s<t.paymentmethod.manual.bank.length;s++){const d=t.paymentmethod.manual.bank[s];if(d.list&&d.list.length>0){c=!0;break}}c&&n.push(E(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&n.push(ie(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:n}}),$={id:0,name:"",type:k.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},I=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},n=e.map((c,s)=>({id:s+1,name:c.promodesc,value:c.promoindex.toString(),disabled:!1}));return[t,...n]},j=(e,t,n,c)=>{let s,d;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);const y=Math.round(s);let p=1e3;d<p&&(p=Math.round(d));const _=p-y;let h="",v="";if(_>0){let b=Math.round((p-y)*.25).toString().split(""),T=[];for(const o of b)o!==""&&T.push(o);for(let o=0;o<T.length;o++)o===0?h+=(parseInt(T[o])+1).toString():h+="0";b=Math.round((p-y)*.5).toString().split(""),T=[];for(const o of b)o!==""&&T.push(o);for(let o=0;o<T.length;o++)o===0?v+=(parseInt(T[o])+1).toString():v+="0"}else h=p.toString(),v=p.toString();return{amountList:[y.toString(),h,v,p.toString()],minAmount:y,maxAmount:d}},E=(e,t)=>t?{id:0,name:"manualMethod",type:k.manual,promo:I(e.promo),bank:e.bank.map(s=>{const d=s.list&&s.list.length>0?s.list[0].mintransaction??"0.00":"0.00",y=s.list&&s.list.length>0?s.list[0].maxtransaction??"0.00":"0.00",{amountList:p,minAmount:_,maxAmount:h}=j(Number(d),Number(y),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:s.bankindex??0,bankAccountId:s.list&&s.list.length>0?s.list[0].bankaccountindex??0:0,name:s.list&&s.list.length>0?s.list[0].label??"":"",accountName:s.list&&s.list.length>0?s.list[0].bankaccountname??"":"",accountNo:s.list&&s.list.length>0?s.list[0].bankaccountno??"":"",qrcode:s.list&&s.list.length>0?s.list[0].bankaccountdesc:"",amountList:p,min:_,max:h}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:$,se=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:k.pay,promo:I(e.promo),bank:e.banklist.map(s=>{let d="0.00",y="0.00";const p=s.bankindex??0;for(let b=0;b<t.mdGatewayMinMax.length;b++)t.mdGatewayMinMax[b].bankindex==p.toString()&&(d=t.mdGatewayMinMax[b].min,y=t.mdGatewayMinMax[b].max);const{amountList:_,minAmount:h,maxAmount:v}=j(Number(d),Number(y),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),L={id:0,name:"autoChannel",amountList:_,min:h,max:v},x=s.pg.map(b=>{const T=b.mintransaction??"0.00",F=b.maxtransaction??"0.00",{amountList:q,minAmount:o,maxAmount:l}=j(Number(T),Number(F),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:b.pgindex,name:b.bankaccountname,amountList:q,min:o,max:l}});return{id:s.bankindex??0,name:s.banknameenglish??"",amountList:[],min:0,max:0,gateway:[L,...x]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:$,ae=(e,t,n)=>{if(!n)return $;const c=k.auto;let s=[];const d=n.mdGatewayMinMax;if(t.bank.length>0&&n.mdPGSelection=="1")s=t.bank.map(p=>{const{amountList:_,minAmount:h,maxAmount:v}=j(p.minTransaction??0,p.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:p.pgindex,name:p.bankaccountname||"",amountList:_,min:h,max:v}});else{let p="0.00",_="0.00";for(let a=0;a<d.length;a++)d[a].bankindex===e.toString()&&(p=d[a].min,_=d[a].max);const{amountList:h,minAmount:v,maxAmount:L}=j(Number(p),Number(_),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),x={id:0,name:"autoChannel",amountList:h,min:v,max:L};s.push(x)}return{id:e,name:"autoMethod",type:c,promo:I(t.promo),bank:s,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ie=(e,t)=>{const n=k.fix;return{id:e,name:"fixAmountMethod",type:n,promo:I(t.promo),bank:t.bank.map(s=>{const d=s.amtlist.map(Number).sort((p,_)=>p-_);return{id:s.pgindex,name:s.name,amountList:s.amtlist,min:d.length>0?d[0]:0,max:d.length>0?d[d.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},re=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),le=e=>({username:e.username,birthday:e.mdUserDetail.dob,email:e.mdUserDetail.email,fullName:e.mdUserDetail.firstname,phoneNumber:e.mdUserDetail.mobileno,profilePicUrl:e.mdUserDetail.profile_pic}),ue=e=>e.mdGameListResult.map(t=>({code:t.code,id:t.id,name:t.name,nextPage:t.nextPage===1,list:t.mdPlatformProducts.map(n=>({id:Number(n.id),name:n.shortName,flag:n.flag,imageUrl:n.img,rate:"0.00"}))})),me=e=>({list:e.mdGrade.map(t=>({id:t.gradeindex,is_current_level:!1,name:t.grade_simplified,percentage:0,turnover:{isShow:!1,current:"0",total:t.min_activebet},deposit:{isShow:!1,current:"0",total:t.min_deposit},promo_list:t.promocash.filter(n=>n.isshow==1&&n.status=="1").map(n=>({name:n.promosimplified,min_deposit:n.min_deposit,promo_bonus:n.percentage,promo_limit:n.max_promo_amt,turnover_multiplier:n.multiply,type:n.promo_type})),benefit_list:t.benefit})),detail:[],bonus:{showMonthButton:!1,showWeekButton:!1,showDayButton:!1}}),ce=e=>({category:e.category.sort((t,n)=>t.sequence-n.sequence).map(t=>({id:t.catid,name:t.name})),list:e.list.sort((t,n)=>t.sequence-n.sequence).map(t=>{let n="";return t.stime!==""&&t.etime!==""&&(n=`${t.stime} - ${t.etime}`),t.stime!==""&&t.etime===""&&(n=t.stime),t.stime===""&&t.etime!==""&&(n=t.etime),{category_id:t.catid,img_url:t.banner,content:t.content,time:n,name:t.title}})}),de=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),pe=e=>e.mdVipSetting.filter(n=>n.status==1).map(n=>({fieldName:n.fieldname,showName:n.showname})),fe=e=>({current_deposit:e.deposit,current_turnover:e.turnOver,current_grade_id:e.mdCurrentGrade.gradeindex,next_grade_id:e.mdNextGrade.gradeindex,percentage:Number(e.percentage)*100}),ge=e=>{let t=4;e.vipcalculation&&(t=Number(e.vipcalculation));let n=[];return e.extralivechat&&(n=JSON.parse(e.extralivechat)),{vip_calculation:t,livechat:n.filter(c=>c.status===1).map(c=>({name:c.name,image_url:c.imgname,url:c.url})),mobileValidate:e.mobilevalidate?e.mobilevalidate=="1":!1}},be=e=>{let t=[];e.mobileBanner&&(t=e.mobileBanner);let n=[];e.mobileAd&&(n=e.mobileAd);let c=[];return e.mobileAbout&&(c=e.mobileAbout),{banner:t.map(s=>`${s.imagepath}?${s.filemtime}`),ad:n.map(s=>`${s.imagepath}?${s.filemtime}`),about:c.map(s=>({name:s.name,content:s.content}))}},ye=e=>e.data.filter(t=>t.status==="1").map(t=>({code:t.area_code,regex:t.regex,value:t.value})),_e=e=>e,he=e=>{let t=null;return e?e.status!=1?t=0:t=e.mainwallet:t=0,{amount:t}},ve=e=>e.data.filter(t=>t.status=="1").map(t=>({name:t.title,icon_url:t.flag_icon,code:t.code})),xe=e=>(console.log(e),{name:""}),Se=e=>e.data.filter(t=>t.company_status==1).map(t=>({id:t.company_id,name:t.company_name,date:[]})),Le=e=>e.data.map(t=>({id:t.key,date:t.draw_date.map(n=>Te(n.draw_tmactive))}));function Te(e){const t=new Date(e*1e3),n=t.getFullYear(),c=("0"+(t.getMonth()+1)).slice(-2),s=("0"+t.getDate()).slice(-2);return`${n}-${c}-${s}`}const Re=e=>e.data.map(t=>({id:t.company_id,list:t.drawCount.map(n=>({combination:n.combination_combination,total:n.total}))})),ke=e=>e.data.map(t=>({id:t.company_id,resultByDateList:t.draws.map(n=>{const c=n.results.filter(a=>a.combination_dimension==3).map(a=>a.combination_combination),s=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==1).map(a=>a.combination_combination),d=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==2).map(a=>a.combination_combination),y=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==3).map(a=>a.combination_combination),p=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==4).map(a=>a.combination_combination),_=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==5).map(a=>a.combination_combination),h=n.results.filter(a=>a.combination_dimension==5&&a.combination_position==1).map(a=>a.combination_combination),v=n.results.filter(a=>a.combination_dimension==5).map(a=>a.combination_combination),L=n.results.filter(a=>a.combination_dimension==6&&a.combination_position==1).map(a=>a.combination_combination),x=n.results.filter(a=>a.combination_dimension==6).map(a=>a.combination_combination);return{date:n.date,3:c,4:{1:s,2:d,3:y,4:p,5:_},5:{1:h,all:v},6:{1:L,all:x}}})})),J=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,n,c,s,d,y,p,_,h,v,L;try{e.findIndex(l=>l.name===m.vipList)!==-1&&e.push({name:m.vipBonus,query:""},{name:m.vipFieldStatus,query:""},{name:m.vipStatus,query:""},{name:m.getSetting,query:JSON.stringify({name:["vipcalculation"]})}),e.findIndex(l=>l.name===m.gameList)!==-1&&e.push({name:m.getPlatformTurnoverRate,query:""});const b=e.findIndex(l=>l.name===m.getFourDimensionData);b!==-1&&e[b].query==""&&(e.splice(b),e.push({name:m.getFourDimensionData,query:JSON.stringify({action:"getCompany",native:"1"})},{name:m.getFourDimensionData,query:JSON.stringify({action:"searchResultDate",limit:100,company:[],native:"1",splitCompany:"1"})}));const F={requests:e.map(l=>({name:l.name,query:btoa(l.query)}))},q=await B.post("/jwt",te(JSON.stringify(F))),o={status:200,message:"",result:{}};for(const l of q.data.responses){l.error!=null&&l.error.code!=200&&(o.status=l.error.code,o.message=l.error.message);const f=l.attributes!==null&&l.attributes!==void 0?ne(l.attributes):null,i=l.name,r=f?JSON.parse(f):null;if(!r)o.result[i]=null;else switch(i){case m.announcement:o.result[i]=re(r);break;case m.gameList:o.result[i]=ue(r);break;case m.cmsList:o.result[i]=be(r);break;case m.paymentsProvider:o.result[i]=oe(r);break;case m.getUserProfile:o.result[i]=le(r);break;case m.vipList:o.result[i]=me(r);break;case m.vipBonus:o.result[i]=de(r);break;case m.vipFieldStatus:o.result[i]=pe(r);break;case m.vipStatus:o.result[i]=fe(r);break;case m.promotion:o.result[i]=ce(r);break;case m.getSetting:o.result[i]=ge(r);break;case m.getCountryMobile:o.result[i]=ye(r);break;case m.getPlatformTurnoverRate:o.result[i]=_e(r);break;case m.mainWallet:o.result[i]=he(r);break;case m.getLanguageSetting:o.result[i]=ve(r);break;case m.getFourDimensionData:o.result[i]=xe(r);break;case m.getCompany:o.result[i]=Se(r);break;case m.searchResultDate:o.result[i]=Le(r);break;case m.searchHot:o.result[i]=Re(r);break;case m.searchByDate:o.result[i]=ke(r);break}}if(m.vipList in o.result&&((t=o.result)!=null&&t.vipList)){const l=o.result.vipList;let f=4;if(m.getSetting in o.result&&((n=o.result)!=null&&n.getSetting&&(f=o.result.getSetting.vip_calculation),delete o.result.getSetting),m.vipBonus in o.result&&((c=o.result)!=null&&c.vipBonus&&(l.bonus=o.result.vipBonus),delete o.result.vipBonus),m.vipStatus in o.result){if((s=o.result)!=null&&s.vipStatus){const i=o.result.vipStatus,{current_grade_id:r,current_deposit:R,current_turnover:M,percentage:A}=i,P=l.list.findIndex(S=>S.id===r);l.list=l.list.map((S,O)=>{const C=O===P;let N="0",u="0",G=0;return C?(N=`${Math.min(Number(R),Number(S.deposit.total))}`,u=`${Math.min(Number(M),Number(S.turnover.total))}`,G=A):O<P?(N=S.deposit.total,u=S.turnover.total,G=1):O>P&&(N="0.00",u="0.00",G=0),{...S,is_current_level:C,deposit:{...S.deposit,isShow:f===1||f===3||f===4,current:N},turnover:{...S.turnover,isShow:f===2||f===3||f===4,current:u},percentage:G}})}delete o.result.vipStatus}if(m.vipFieldStatus in o.result){if((d=o.result)!=null&&d.vipFieldStatus){const i=o.result.vipFieldStatus,r=[];r.push({name:"",code:"vipLevel",value:l.list.map(u=>u.name)});const R=i.findIndex(u=>u.fieldName=="upgrade_bonus");R>-1&&r.push({name:i[R].showName,code:"",value:l.list.map(u=>u.benefit_list.upgrade.bonus)});const M=i.findIndex(u=>u.fieldName=="upgrade_bonus_multiply");M>-1&&r.push({name:i[M].showName,code:"",value:l.list.map(u=>u.benefit_list.upgrade.turnover)});const A=i.findIndex(u=>u.fieldName=="monthly_bonus");A>-1&&r.push({name:i[A].showName,code:"",value:l.list.map(u=>u.benefit_list.monthly.bonus)});const P=i.findIndex(u=>u.fieldName=="monthly_bonus_multiply");P>-1&&r.push({name:i[P].showName,code:"",value:l.list.map(u=>u.benefit_list.monthly.turnover)});const S=i.findIndex(u=>u.fieldName=="weekly_bonus");S>-1&&r.push({name:i[S].showName,code:"",value:l.list.map(u=>u.benefit_list.weekly.bonus)});const O=i.findIndex(u=>u.fieldName=="weekly_bonus_multiply");O>-1&&r.push({name:i[O].showName,code:"",value:l.list.map(u=>u.benefit_list.weekly.turnover)});const C=i.findIndex(u=>u.fieldName=="daily_bonus");C>-1&&r.push({name:i[C].showName,code:"",value:l.list.map(u=>u.benefit_list.daily.bonus)});const N=i.findIndex(u=>u.fieldName=="daily_bonus_multiply");N>-1&&r.push({name:i[N].showName,code:"",value:l.list.map(u=>u.benefit_list.daily.turnover)}),(f===1||f===3||f===4)&&r.push({name:"",code:"detail_deposit",value:l.list.map(u=>u.deposit.total)}),(f===2||f===3||f===4)&&r.push({name:"",code:"detail_turnover",value:l.list.map(u=>u.turnover.total)}),l.detail=r}delete o.result.vipFieldStatus}o.result.vipList=l}if(m.gameList in o.result&&((y=o.result)!=null&&y.gameList)){const l=o.result.gameList;if(m.getPlatformTurnoverRate in o.result&&((p=o.result)!=null&&p.getPlatformTurnoverRate)){const f=o.result.getPlatformTurnoverRate;l.forEach(i=>{i.list=i.list.map(r=>{const R=f.find(M=>M.id===r.id);return{...r,rate:(R==null?void 0:R.percentage)??"0.00"}})}),delete o.result.getPlatformTurnoverRate}o.result.gameList=l}if(m.getCompany in o.result&&((_=o.result)!=null&&_.getCompany)){const l=o.result.getCompany;if(m.searchResultDate in o.result&&(h=o.result)!=null&&h.searchResultDate){const f=o.result.searchResultDate;l.forEach(i=>{const r=f.find(R=>R.id==i.id);r&&(i.date=r==null?void 0:r.date)}),delete o.result.searchResultDate}o.result.getCompany=l}return o}catch(x){return D.isAxiosError(x)?{status:((v=x.response)==null?void 0:v.status)||600,message:JSON.stringify((L=x.response)==null?void 0:L.data),result:{}}:(console.error(x),{status:x.status||500,message:x.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const n={status:200,message:""};return await B.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),n}catch(n){return console.error(`login: ${JSON.stringify(n)}`),{status:n.status||500,message:n.message}}}},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await B.post("/auth/sesh/logout"),e}catch(e){return console.error(`login: ${JSON.stringify(e)}`),{status:e.status||500,message:e.message}}}},Symbol.toStringTag,{value:"Module"})),w=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ee=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ne={api:J,loginApi:W,logoutApi:V,apiType:U,loginType:w,logoutType:H,announcementType:Y,paymentsProviderType:z,gameListType:K,vipListType:Q,promotionType:X,cmsListType:Z,mainWalletType:ee},De={install(e){e.config.globalProperties.$library=Ne}};g.Repository=De,g.announcementType=Y,g.api=J,g.apiType=U,g.cmsListType=Z,g.gameListType=K,g.loginApi=W,g.loginType=w,g.logoutApi=V,g.logoutType=H,g.mainWalletType=ee,g.paymentsProviderType=z,g.promotionType=X,g.vipListType=Q,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
1
+ (function(f,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],N):(f=typeof globalThis<"u"?globalThis:f||self,N(f["60p82u21t54k"]={},f.axios))})(this,function(f,N){"use strict";const B=N.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});B.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),B.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};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)});const te=e=>new TextEncoder().encode(e),ne=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var u=(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))(u||{});const U=Object.freeze(Object.defineProperty({__proto__:null,Api:u},Symbol.toStringTag,{value:"Module"}));var M=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(M||{});const z=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:M},Symbol.toStringTag,{value:"Module"})),oe=e=>e.mdPaymentChannels.map(t=>{const n=[];switch(t.name){case M.default:n.push(E(t.paymentmethod.manual,e));break;case M.pay:n.push(ae(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&n.push(se(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let c=!1;for(let a=0;a<t.paymentmethod.manual.bank.length;a++){const d=t.paymentmethod.manual.bank[a];if(d.list&&d.list.length>0){c=!0;break}}c&&n.push(E(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&n.push(ie(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:n}}),A={id:0,name:"",type:M.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},I=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},n=e.map((c,a)=>({id:a+1,name:c.promodesc,value:c.promoindex.toString(),disabled:!1}));return[t,...n]},j=(e,t,n,c)=>{let a,d;n>0?a=e>0?Math.max(n,e):n:a=Math.max(e,0),c>0?d=t>0?Math.min(c,t):c:d=Math.max(t,0);const b=Math.round(a);let p=1e3;d<p&&(p=Math.round(d));const _=p-b;let h="",v="";if(_>0){let y=Math.round((p-b)*.25).toString().split(""),T=[];for(const o of y)o!==""&&T.push(o);for(let o=0;o<T.length;o++)o===0?h+=(parseInt(T[o])+1).toString():h+="0";y=Math.round((p-b)*.5).toString().split(""),T=[];for(const o of y)o!==""&&T.push(o);for(let o=0;o<T.length;o++)o===0?v+=(parseInt(T[o])+1).toString():v+="0"}else h=p.toString(),v=p.toString();return{amountList:[b.toString(),h,v,p.toString()],minAmount:b,maxAmount:d}},E=(e,t)=>t?{id:0,name:"manualMethod",type:M.manual,promo:I(e.promo),bank:e.bank.map(a=>{const d=a.list&&a.list.length>0?a.list[0].mintransaction??"0.00":"0.00",b=a.list&&a.list.length>0?a.list[0].maxtransaction??"0.00":"0.00",{amountList:p,minAmount:_,maxAmount:h}=j(Number(d),Number(b),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:a.bankindex??0,bankAccountId:a.list&&a.list.length>0?a.list[0].bankaccountindex??0:0,name:a.list&&a.list.length>0?a.list[0].label??"":"",accountName:a.list&&a.list.length>0?a.list[0].bankaccountname??"":"",accountNo:a.list&&a.list.length>0?a.list[0].bankaccountno??"":"",qrcode:a.list&&a.list.length>0?a.list[0].bankaccountdesc:"",amountList:p,min:_,max:h}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:A,ae=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:M.pay,promo:I(e.promo),bank:e.banklist.map(a=>{let d="0.00",b="0.00";const p=a.bankindex??0;for(let y=0;y<t.mdGatewayMinMax.length;y++)t.mdGatewayMinMax[y].bankindex==p.toString()&&(d=t.mdGatewayMinMax[y].min,b=t.mdGatewayMinMax[y].max);const{amountList:_,minAmount:h,maxAmount:v}=j(Number(d),Number(b),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),L={id:0,name:"autoChannel",amountList:_,min:h,max:v},x=a.pg.map(y=>{const T=y.mintransaction??"0.00",F=y.maxtransaction??"0.00",{amountList:q,minAmount:o,maxAmount:l}=j(Number(T),Number(F),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:y.pgindex,name:y.bankaccountname,amountList:q,min:o,max:l}});return{id:a.bankindex??0,name:a.banknameenglish??"",amountList:[],min:0,max:0,gateway:[L,...x]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:A,se=(e,t,n)=>{if(!n)return A;const c=M.auto;let a=[];const d=n.mdGatewayMinMax;if(t.bank.length>0&&n.mdPGSelection=="1")a=t.bank.map(p=>{const{amountList:_,minAmount:h,maxAmount:v}=j(p.minTransaction??0,p.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:p.pgindex,name:p.bankaccountname||"",amountList:_,min:h,max:v}});else{let p="0.00",_="0.00";for(let s=0;s<d.length;s++)d[s].bankindex===e.toString()&&(p=d[s].min,_=d[s].max);const{amountList:h,minAmount:v,maxAmount:L}=j(Number(p),Number(_),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),x={id:0,name:"autoChannel",amountList:h,min:v,max:L};a.push(x)}return{id:e,name:"autoMethod",type:c,promo:I(t.promo),bank:a,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ie=(e,t)=>{const n=M.fix;return{id:e,name:"fixAmountMethod",type:n,promo:I(t.promo),bank:t.bank.map(a=>{const d=a.amtlist.map(Number).sort((p,_)=>p-_);return{id:a.pgindex,name:a.name,amountList:a.amtlist,min:d.length>0?d[0]:0,max:d.length>0?d[d.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},re=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),le=e=>({username:e.username,birthday:e.mdUserDetail.dob,email:e.mdUserDetail.email,fullName:e.mdUserDetail.firstname,phoneNumber:e.mdUserDetail.mobileno,profilePicUrl:e.mdUserDetail.profile_pic}),ue=e=>e.mdGameListResult.map(t=>({code:t.code,id:t.id,name:t.name,nextPage:t.nextPage===1,list:t.mdPlatformProducts.map(n=>({id:Number(n.id),name:n.shortName,flag:n.flag,imageUrl:n.img,rate:"0.00"}))})),me=e=>({list:e.mdGrade.map(t=>({id:t.gradeindex,is_current_level:!1,name:t.grade_simplified,percentage:0,turnover:{isShow:!1,current:"0",total:t.min_activebet},deposit:{isShow:!1,current:"0",total:t.min_deposit},promo_list:t.promocash.filter(n=>n.isshow==1&&n.status=="1").map(n=>({name:n.promosimplified,min_deposit:n.min_deposit,promo_bonus:n.percentage,promo_limit:n.max_promo_amt,turnover_multiplier:n.multiply,type:n.promo_type})),benefit_list:t.benefit})),detail:[],bonus:{showMonthButton:!1,showWeekButton:!1,showDayButton:!1}}),ce=e=>({category:e.category.sort((t,n)=>t.sequence-n.sequence).map(t=>({id:t.catid,name:t.name})),list:e.list.sort((t,n)=>t.sequence-n.sequence).map(t=>{let n="";return t.stime!==""&&t.etime!==""&&(n=`${t.stime} - ${t.etime}`),t.stime!==""&&t.etime===""&&(n=t.stime),t.stime===""&&t.etime!==""&&(n=t.etime),{category_id:t.catid,img_url:t.banner,content:t.content,time:n,name:t.title}})}),de=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),pe=e=>e.mdVipSetting.filter(n=>n.status==1).map(n=>({fieldName:n.fieldname,showName:n.showname})),ge=e=>({current_deposit:e.deposit,current_turnover:e.turnOver,current_grade_id:e.mdCurrentGrade.gradeindex,next_grade_id:e.mdNextGrade.gradeindex,percentage:Number(e.percentage)*100}),fe=e=>{let t=4;e.vipcalculation&&(t=Number(e.vipcalculation));let n=[];return e.extralivechat&&(n=JSON.parse(e.extralivechat)),{vip_calculation:t,livechat:n.filter(c=>c.status===1).map(c=>({name:c.name,image_url:c.imgname,url:c.url})),mobileValidate:e.mobilevalidate?e.mobilevalidate=="1":!1}},ye=e=>{let t=[];e.mobileBanner&&(t=e.mobileBanner);let n=[];e.mobileAd&&(n=e.mobileAd);let c=[];return e.mobileAbout&&(c=e.mobileAbout),{banner:t.map(a=>`${a.imagepath}?${a.filemtime}`),ad:n.map(a=>`${a.imagepath}?${a.filemtime}`),about:c.map(a=>({name:a.name,content:a.content}))}},be=e=>e.data.filter(t=>t.status==="1").map(t=>({code:t.area_code,regex:t.regex,value:t.value})),_e=e=>e,he=e=>{let t=null;return e?e.status!=1?t=0:t=e.mainwallet:t=0,{amount:t}},ve=e=>e.data.filter(t=>t.status=="1").map(t=>({name:t.title,icon_url:t.flag_icon,code:t.code})),xe=e=>(console.log(e),{name:""}),Se=e=>e.data.filter(t=>t.company_status==1).map(t=>({id:t.company_id,name:t.company_name,date:[]})),Le=e=>e.data.map(t=>({id:t.key,date:t.draw_date.map(n=>Te(n.draw_tmactive))}));function Te(e){const t=new Date(e*1e3),n=t.getFullYear(),c=("0"+(t.getMonth()+1)).slice(-2),a=("0"+t.getDate()).slice(-2);return`${n}-${c}-${a}`}const Re=e=>e.data.map(t=>({id:t.company_id,list:t.drawCount.map(n=>({combination:n.combination_combination,total:n.total}))})),Me=e=>e.data.map(t=>({id:t.company_id,resultByDateList:t.draws.map(n=>{const c=n.results.filter(s=>s.combination_dimension==3).map(s=>s.combination_combination),a=n.results.filter(s=>s.combination_dimension==4&&s.combination_position==1).map(s=>s.combination_combination),d=n.results.filter(s=>s.combination_dimension==4&&s.combination_position==2).map(s=>s.combination_combination),b=n.results.filter(s=>s.combination_dimension==4&&s.combination_position==3).map(s=>s.combination_combination),p=n.results.filter(s=>s.combination_dimension==4&&s.combination_position==4).map(s=>s.combination_combination),_=n.results.filter(s=>s.combination_dimension==4&&s.combination_position==5).map(s=>s.combination_combination),h=n.results.filter(s=>s.combination_dimension==5&&s.combination_position==1).map(s=>s.combination_combination),v=n.results.filter(s=>s.combination_dimension==5).map(s=>s.combination_combination),L=n.results.filter(s=>s.combination_dimension==6&&s.combination_position==1).map(s=>s.combination_combination),x=n.results.filter(s=>s.combination_dimension==6).map(s=>s.combination_combination);return{date:n.date,3:c,4:{1:a,2:d,3:b,4:p,5:_},5:{1:h,all:v},6:{1:L,all:x}}})})),ke=e=>e.data.map(t=>({id:t.id,date:t.matchDate,tag:t.tag,away:{id:t.awayid,name:t.away,logo_url:t.awayLogo},home:{id:t.homeid,name:t.home,logo_url:t.homeLogo}})),J=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,n,c,a,d,b,p,_,h,v,L;try{e.findIndex(l=>l.name===u.vipList)!==-1&&e.push({name:u.vipBonus,query:""},{name:u.vipFieldStatus,query:""},{name:u.vipStatus,query:""},{name:u.getSetting,query:JSON.stringify({name:["vipcalculation"]})}),e.findIndex(l=>l.name===u.gameList)!==-1&&e.push({name:u.getPlatformTurnoverRate,query:""});const y=e.findIndex(l=>l.name===u.getFourDimensionData);y!==-1&&e[y].query==""&&(e.splice(y),e.push({name:u.getFourDimensionData,query:JSON.stringify({action:"getCompany",native:"1"})},{name:u.getFourDimensionData,query:JSON.stringify({action:"searchResultDate",limit:100,company:[],native:"1",splitCompany:"1"})}));const F={requests:e.map(l=>({name:l.name,query:btoa(l.query)}))},q=await B.post("/jwt",te(JSON.stringify(F))),o={status:200,message:"",result:{}};for(const l of q.data.responses){l.error!=null&&l.error.code!=200&&(o.status=l.error.code,o.message=l.error.message);const g=l.attributes!==null&&l.attributes!==void 0?ne(l.attributes):null,i=l.name,r=g?JSON.parse(g):null;if(!r)o.result[i]=null;else switch(i){case u.announcement:o.result[i]=re(r);break;case u.gameList:o.result[i]=ue(r);break;case u.cmsList:o.result[i]=ye(r);break;case u.paymentsProvider:o.result[i]=oe(r);break;case u.getUserProfile:o.result[i]=le(r);break;case u.vipList:o.result[i]=me(r);break;case u.vipBonus:o.result[i]=de(r);break;case u.vipFieldStatus:o.result[i]=pe(r);break;case u.vipStatus:o.result[i]=ge(r);break;case u.promotion:o.result[i]=ce(r);break;case u.getSetting:o.result[i]=fe(r);break;case u.getCountryMobile:o.result[i]=be(r);break;case u.getPlatformTurnoverRate:o.result[i]=_e(r);break;case u.mainWallet:o.result[i]=he(r);break;case u.getLanguageSetting:o.result[i]=ve(r);break;case u.getFourDimensionData:o.result[i]=xe(r);break;case u.getCompany:o.result[i]=Se(r);break;case u.searchResultDate:o.result[i]=Le(r);break;case u.searchHot:o.result[i]=Re(r);break;case u.searchByDate:o.result[i]=Me(r);break;case u.upcomingMatches:o.result[i]=ke(r);break}}if(u.vipList in o.result&&((t=o.result)!=null&&t.vipList)){const l=o.result.vipList;let g=4;if(u.getSetting in o.result&&((n=o.result)!=null&&n.getSetting&&(g=o.result.getSetting.vip_calculation),delete o.result.getSetting),u.vipBonus in o.result&&((c=o.result)!=null&&c.vipBonus&&(l.bonus=o.result.vipBonus),delete o.result.vipBonus),u.vipStatus in o.result){if((a=o.result)!=null&&a.vipStatus){const i=o.result.vipStatus,{current_grade_id:r,current_deposit:R,current_turnover:D,percentage:G}=i,P=l.list.findIndex(S=>S.id===r);l.list=l.list.map((S,O)=>{const C=O===P;let k="0",m="0",$=0;return C?(k=`${Math.min(Number(R),Number(S.deposit.total))}`,m=`${Math.min(Number(D),Number(S.turnover.total))}`,$=G):O<P?(k=S.deposit.total,m=S.turnover.total,$=1):O>P&&(k="0.00",m="0.00",$=0),{...S,is_current_level:C,deposit:{...S.deposit,isShow:g===1||g===3||g===4,current:k},turnover:{...S.turnover,isShow:g===2||g===3||g===4,current:m},percentage:$}})}delete o.result.vipStatus}if(u.vipFieldStatus in o.result){if((d=o.result)!=null&&d.vipFieldStatus){const i=o.result.vipFieldStatus,r=[];r.push({name:"",code:"vipLevel",value:l.list.map(m=>m.name)});const R=i.findIndex(m=>m.fieldName=="upgrade_bonus");R>-1&&r.push({name:i[R].showName,code:"",value:l.list.map(m=>m.benefit_list.upgrade.bonus)});const D=i.findIndex(m=>m.fieldName=="upgrade_bonus_multiply");D>-1&&r.push({name:i[D].showName,code:"",value:l.list.map(m=>m.benefit_list.upgrade.turnover)});const G=i.findIndex(m=>m.fieldName=="monthly_bonus");G>-1&&r.push({name:i[G].showName,code:"",value:l.list.map(m=>m.benefit_list.monthly.bonus)});const P=i.findIndex(m=>m.fieldName=="monthly_bonus_multiply");P>-1&&r.push({name:i[P].showName,code:"",value:l.list.map(m=>m.benefit_list.monthly.turnover)});const S=i.findIndex(m=>m.fieldName=="weekly_bonus");S>-1&&r.push({name:i[S].showName,code:"",value:l.list.map(m=>m.benefit_list.weekly.bonus)});const O=i.findIndex(m=>m.fieldName=="weekly_bonus_multiply");O>-1&&r.push({name:i[O].showName,code:"",value:l.list.map(m=>m.benefit_list.weekly.turnover)});const C=i.findIndex(m=>m.fieldName=="daily_bonus");C>-1&&r.push({name:i[C].showName,code:"",value:l.list.map(m=>m.benefit_list.daily.bonus)});const k=i.findIndex(m=>m.fieldName=="daily_bonus_multiply");k>-1&&r.push({name:i[k].showName,code:"",value:l.list.map(m=>m.benefit_list.daily.turnover)}),(g===1||g===3||g===4)&&r.push({name:"",code:"detail_deposit",value:l.list.map(m=>m.deposit.total)}),(g===2||g===3||g===4)&&r.push({name:"",code:"detail_turnover",value:l.list.map(m=>m.turnover.total)}),l.detail=r}delete o.result.vipFieldStatus}o.result.vipList=l}if(u.gameList in o.result&&((b=o.result)!=null&&b.gameList)){const l=o.result.gameList;if(u.getPlatformTurnoverRate in o.result&&((p=o.result)!=null&&p.getPlatformTurnoverRate)){const g=o.result.getPlatformTurnoverRate;l.forEach(i=>{i.list=i.list.map(r=>{const R=g.find(D=>D.id===r.id);return{...r,rate:(R==null?void 0:R.percentage)??"0.00"}})}),delete o.result.getPlatformTurnoverRate}o.result.gameList=l}if(u.getCompany in o.result&&((_=o.result)!=null&&_.getCompany)){const l=o.result.getCompany;if(u.searchResultDate in o.result&&(h=o.result)!=null&&h.searchResultDate){const g=o.result.searchResultDate;l.forEach(i=>{const r=g.find(R=>R.id==i.id);r&&(i.date=r==null?void 0:r.date)}),delete o.result.searchResultDate}o.result.getCompany=l}return o}catch(x){return N.isAxiosError(x)?{status:((v=x.response)==null?void 0:v.status)||600,message:JSON.stringify((L=x.response)==null?void 0:L.data),result:{}}:(console.error(x),{status:x.status||500,message:x.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),w=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const n={status:200,message:""};return await B.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),n}catch(n){return console.error(`login: ${JSON.stringify(n)}`),{status:n.status||500,message:n.message}}}},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await B.post("/auth/sesh/logout"),e}catch(e){return console.error(`login: ${JSON.stringify(e)}`),{status:e.status||500,message:e.message}}}},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ee=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ne={api:J,loginApi:w,logoutApi:W,apiType:U,loginType:V,logoutType:H,announcementType:Y,paymentsProviderType:z,gameListType:K,vipListType:Q,promotionType:X,cmsListType:Z,mainWalletType:ee},De={install(e){e.config.globalProperties.$library=Ne}};f.Repository=De,f.announcementType=Y,f.api=J,f.apiType=U,f.cmsListType=Z,f.gameListType=K,f.loginApi=w,f.loginType=V,f.logoutApi=W,f.logoutType=H,f.mainWalletType=ee,f.paymentsProviderType=z,f.promotionType=X,f.vipListType=Q,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,cAAc,EAAiB,cAAc,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgCnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAuanB,CAAA"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,cAAc,EAAiB,cAAc,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiCnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CA4anB,CAAA"}
@@ -19,6 +19,7 @@ import { searchResultDateResponse } from '../model/searchResultDate/type';
19
19
  import { searchHotResponse } from '../model/searchHot/type';
20
20
  import { searchByDateResponse } from '../model/searchByDate/type';
21
21
  import { VipFieldStatusResponse } from '../model/vipFieldStatus/type';
22
+ import { upcomingMatchesResponse } from '../model/upcomingMatches/type';
22
23
 
23
24
  export declare enum Api {
24
25
  announcement = "announcement",
@@ -41,7 +42,8 @@ export declare enum Api {
41
42
  getCompany = "getCompany",
42
43
  searchResultDate = "searchResultDate",
43
44
  searchHot = "searchHot",
44
- searchByDate = "searchByDate"
45
+ searchByDate = "searchByDate",
46
+ upcomingMatches = "upcomingMatches"
45
47
  }
46
48
  export type ApiResponseMap = {
47
49
  [Api.announcement]: AnnouncementResponse;
@@ -65,6 +67,7 @@ export type ApiResponseMap = {
65
67
  [Api.searchResultDate]: searchResultDateResponse;
66
68
  [Api.searchHot]: searchHotResponse;
67
69
  [Api.searchByDate]: searchByDateResponse;
70
+ [Api.upcomingMatches]: upcomingMatchesResponse;
68
71
  };
69
72
  export type ApiResponse<T extends keyof ApiResponseMap> = ApiResponseMap[T];
70
73
  export type RequestPayload<T extends keyof ApiResponseMap> = {
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/api/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAA;AACtF,OAAO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AE3E,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAC3D,IAAI,EAAE,CAAC,CAAA;IACP,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IACnD,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;KACrD,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;CACnC,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
@@ -0,0 +1,21 @@
1
+ import { upcomingMatchesResponse } from './type';
2
+
3
+ export declare const getUpcomingMatchesResponse: (raw: rawGetUpcomingMatchesResponse) => upcomingMatchesResponse;
4
+ type rawGetUpcomingMatchesResponse = {
5
+ status: number;
6
+ message: string | null;
7
+ errormessage: string | null;
8
+ data: {
9
+ away: string;
10
+ awayLogo: string;
11
+ awayid: string;
12
+ home: string;
13
+ homeLogo: string;
14
+ homeid: string;
15
+ id: number;
16
+ matchDate: string;
17
+ tag: string;
18
+ }[];
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=getUpcomingMatchesResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUpcomingMatchesResponse.d.ts","sourceRoot":"","sources":["../../../src/model/upcomingMatches/getUpcomingMatchesResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAA;AAEhD,eAAO,MAAM,0BAA0B,QAChC,6BAA6B,KACjC,uBAkBF,CAAA;AAED,KAAK,6BAA6B,GAAG;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE,MAAM,CAAA;QACd,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,MAAM,CAAA;QACjB,GAAG,EAAE,MAAM,CAAA;KACZ,EAAE,CAAA;CACJ,CAAA"}
@@ -0,0 +1,16 @@
1
+ export type upcomingMatchesResponse = {
2
+ id: number;
3
+ date: string;
4
+ tag: string;
5
+ away: {
6
+ id: string;
7
+ name: string;
8
+ logo_url: string;
9
+ };
10
+ home: {
11
+ id: string;
12
+ name: string;
13
+ logo_url: string;
14
+ };
15
+ }[];
16
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/upcomingMatches/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "60p82u21t54k",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "description": "A description of your library",
5
5
  "main": "dist/60p82u21t54k.umd.js",
6
6
  "module": "dist/60p82u21t54k.es.js",