60p82u21t54k 0.0.53 → 0.0.54

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 D from "axios";
2
- const P = D.create({
1
+ import A from "axios";
2
+ const D = A.create({
3
3
  baseURL: "/graph",
4
4
  timeout: 5e3,
5
5
  // Request timeout
@@ -45,11 +45,11 @@ const P = D.create({
45
45
  // },
46
46
  // },
47
47
  });
48
- P.interceptors.request.use(
48
+ D.interceptors.request.use(
49
49
  (e) => e,
50
50
  (e) => (console.error("Error request:", e.response), Promise.reject(e))
51
51
  );
52
- P.interceptors.response.use(
52
+ D.interceptors.response.use(
53
53
  (e) => e,
54
54
  (e) => {
55
55
  const t = {
@@ -59,58 +59,58 @@ P.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 G = (e) => new TextEncoder().encode(e), U = (e) => {
62
+ const I = (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 i = /* @__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))(i || {});
70
- const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ var o = /* @__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))(o || {});
70
+ const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
71
71
  __proto__: null,
72
- Api: i
72
+ Api: o
73
73
  }, Symbol.toStringTag, { value: "Module" }));
74
- var v = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(v || {});
75
- const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
74
+ var x = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(x || {});
75
+ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
76
76
  __proto__: null,
77
- PaymentType: v
78
- }, Symbol.toStringTag, { value: "Module" })), I = (e) => e.mdPaymentChannels.map((t) => {
79
- const n = [];
77
+ PaymentType: x
78
+ }, Symbol.toStringTag, { value: "Module" })), V = (e) => e.mdPaymentChannels.map((t) => {
79
+ const s = [];
80
80
  switch (t.name) {
81
- case v.default:
82
- n.push(A(t.paymentmethod.manual, e));
81
+ case x.default:
82
+ s.push($(t.paymentmethod.manual, e));
83
83
  break;
84
- case v.pay:
85
- n.push(E(t.paymentmethod.onlinebanking, e));
84
+ case x.pay:
85
+ s.push(W(t.paymentmethod.onlinebanking, e));
86
86
  break;
87
87
  default:
88
- if (t.paymentmethod.auto.bank.length > 0 && n.push(
89
- J(t.bankid ?? 0, t.paymentmethod.auto, e)
88
+ if (t.paymentmethod.auto.bank.length > 0 && s.push(
89
+ Y(t.bankid ?? 0, t.paymentmethod.auto, e)
90
90
  ), t.paymentmethod.manual.bank.length > 0) {
91
91
  let r = !1;
92
- for (let s = 0; s < t.paymentmethod.manual.bank.length; s++) {
93
- const l = t.paymentmethod.manual.bank[s];
94
- if (l.list && l.list.length > 0) {
92
+ for (let a = 0; a < t.paymentmethod.manual.bank.length; a++) {
93
+ const m = t.paymentmethod.manual.bank[a];
94
+ if (m.list && m.list.length > 0) {
95
95
  r = !0;
96
96
  break;
97
97
  }
98
98
  }
99
- r && n.push(A(t.paymentmethod.manual, e));
99
+ r && s.push($(t.paymentmethod.manual, e));
100
100
  }
101
- t.paymentmethod.fixamount.bank.length > 0 && n.push(
102
- V(t.bankid ?? 0, t.paymentmethod.fixamount)
101
+ t.paymentmethod.fixamount.bank.length > 0 && s.push(
102
+ H(t.bankid ?? 0, t.paymentmethod.fixamount)
103
103
  );
104
104
  }
105
105
  return {
106
106
  name: t.label,
107
107
  imageUrl: `/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,
108
- paymentList: n
108
+ paymentList: s
109
109
  };
110
110
  }), q = {
111
111
  id: 0,
112
112
  name: "",
113
- type: v.unknown,
113
+ type: x.unknown,
114
114
  promo: [],
115
115
  bank: [],
116
116
  requiredField: {
@@ -121,117 +121,117 @@ const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
121
121
  depositor: !1,
122
122
  uploadReceipt: !1
123
123
  }
124
- }, O = (e) => {
124
+ }, B = (e) => {
125
125
  const t = {
126
126
  id: 0,
127
127
  name: "excludePromo",
128
128
  value: "0",
129
129
  disabled: !0
130
- }, n = e.map((r, s) => ({
131
- id: s + 1,
130
+ }, s = e.map((r, a) => ({
131
+ id: a + 1,
132
132
  name: r.promodesc,
133
133
  value: r.promoindex.toString(),
134
134
  disabled: !1
135
135
  }));
136
- return [t, ...n];
137
- }, M = (e, t, n, r) => {
138
- let s, l;
139
- n > 0 ? s = e > 0 ? Math.max(n, e) : n : s = Math.max(e, 0), r > 0 ? l = t > 0 ? Math.min(r, t) : r : l = Math.max(t, 0);
140
- const g = Math.round(s);
141
- let m = 1e3;
142
- l < m && (m = Math.round(l));
143
- const f = m - g;
144
- let y = "", d = "";
145
- if (f > 0) {
146
- let p = Math.round((m - g) * 0.25).toString().split(""), o = [];
147
- for (const a of p)
148
- a !== "" && o.push(a);
149
- for (let a = 0; a < o.length; a++)
150
- a === 0 ? y += (parseInt(o[a]) + 1).toString() : y += "0";
151
- p = Math.round((m - g) * 0.5).toString().split(""), o = [];
152
- for (const a of p)
153
- a !== "" && o.push(a);
154
- for (let a = 0; a < o.length; a++)
155
- a === 0 ? d += (parseInt(o[a]) + 1).toString() : d += "0";
136
+ return [t, ...s];
137
+ }, M = (e, t, s, r) => {
138
+ let a, m;
139
+ s > 0 ? a = e > 0 ? Math.max(s, e) : s : a = Math.max(e, 0), r > 0 ? m = t > 0 ? Math.min(r, t) : r : m = Math.max(t, 0);
140
+ const p = Math.round(a);
141
+ let c = 1e3;
142
+ m < c && (c = Math.round(m));
143
+ const g = c - p;
144
+ let f = "", _ = "";
145
+ if (g > 0) {
146
+ let d = Math.round((c - p) * 0.25).toString().split(""), h = [];
147
+ for (const n of d)
148
+ n !== "" && h.push(n);
149
+ for (let n = 0; n < h.length; n++)
150
+ n === 0 ? f += (parseInt(h[n]) + 1).toString() : f += "0";
151
+ d = Math.round((c - p) * 0.5).toString().split(""), h = [];
152
+ for (const n of d)
153
+ n !== "" && h.push(n);
154
+ for (let n = 0; n < h.length; n++)
155
+ n === 0 ? _ += (parseInt(h[n]) + 1).toString() : _ += "0";
156
156
  } else
157
- y = m.toString(), d = m.toString();
157
+ f = c.toString(), _ = c.toString();
158
158
  return { amountList: [
159
- g.toString(),
160
- y,
161
- d,
162
- m.toString()
163
- ], minAmount: g, maxAmount: l };
164
- }, A = (e, t) => t ? {
159
+ p.toString(),
160
+ f,
161
+ _,
162
+ c.toString()
163
+ ], minAmount: p, maxAmount: m };
164
+ }, $ = (e, t) => t ? {
165
165
  id: 0,
166
166
  name: "manualMethod",
167
- type: v.manual,
168
- promo: O(e.promo),
169
- bank: e.bank.map((s) => {
170
- const l = 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: m, minAmount: f, maxAmount: y } = M(
171
- Number(l),
172
- Number(g),
167
+ type: x.manual,
168
+ promo: B(e.promo),
169
+ bank: e.bank.map((a) => {
170
+ const m = a.list && a.list.length > 0 ? a.list[0].mintransaction ?? "0.00" : "0.00", p = a.list && a.list.length > 0 ? a.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: c, minAmount: g, maxAmount: f } = M(
171
+ Number(m),
172
+ Number(p),
173
173
  t.mdBankLevelDetail.deposit_min,
174
174
  t.mdBankLevelDetail.deposit_max
175
175
  );
176
176
  return t.mdManualDepositRequireField.depositor = !0, {
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
- amountList: m,
184
- min: f,
185
- max: y
177
+ id: a.bankindex ?? 0,
178
+ bankAccountId: a.list && a.list.length > 0 ? a.list[0].bankaccountindex ?? 0 : 0,
179
+ name: a.list && a.list.length > 0 ? a.list[0].label ?? "" : "",
180
+ accountName: a.list && a.list.length > 0 ? a.list[0].bankaccountname ?? "" : "",
181
+ accountNo: a.list && a.list.length > 0 ? a.list[0].bankaccountno ?? "" : "",
182
+ qrcode: a.list && a.list.length > 0 ? a.list[0].bankaccountdesc : "",
183
+ amountList: c,
184
+ min: g,
185
+ max: f
186
186
  };
187
187
  }),
188
188
  requiredField: {
189
189
  ...t.mdManualDepositRequireField,
190
190
  uploadReceipt: t.mdUploadReceipt
191
191
  }
192
- } : q, E = (e, t) => t ? {
192
+ } : q, W = (e, t) => t ? {
193
193
  id: 0,
194
194
  name: "onlineBankingMethod",
195
- type: v.pay,
196
- promo: O(e.promo),
197
- bank: e.banklist.map((s) => {
198
- let l = "0.00", g = "0.00";
199
- const m = s.bankindex ?? 0;
200
- for (let p = 0; p < t.mdGatewayMinMax.length; p++)
201
- t.mdGatewayMinMax[p].bankindex == m.toString() && (l = t.mdGatewayMinMax[p].min, g = t.mdGatewayMinMax[p].max);
202
- const { amountList: f, minAmount: y, maxAmount: d } = M(
203
- Number(l),
204
- Number(g),
195
+ type: x.pay,
196
+ promo: B(e.promo),
197
+ bank: e.banklist.map((a) => {
198
+ let m = "0.00", p = "0.00";
199
+ const c = a.bankindex ?? 0;
200
+ for (let d = 0; d < t.mdGatewayMinMax.length; d++)
201
+ t.mdGatewayMinMax[d].bankindex == c.toString() && (m = t.mdGatewayMinMax[d].min, p = t.mdGatewayMinMax[d].max);
202
+ const { amountList: g, minAmount: f, maxAmount: _ } = M(
203
+ Number(m),
204
+ Number(p),
205
205
  t.mdBankLevelDetail.onlinepayment_min,
206
206
  t.mdBankLevelDetail.onlinepayment_max
207
- ), x = {
207
+ ), L = {
208
208
  id: 0,
209
209
  name: "autoChannel",
210
- amountList: f,
211
- min: y,
212
- max: d
213
- }, L = s.pg.map((p) => {
214
- const o = p.mintransaction ?? "0.00", u = p.maxtransaction ?? "0.00", { amountList: b, minAmount: a, maxAmount: c } = M(
215
- Number(o),
216
- Number(u),
210
+ amountList: g,
211
+ min: f,
212
+ max: _
213
+ }, b = a.pg.map((d) => {
214
+ const h = d.mintransaction ?? "0.00", P = d.maxtransaction ?? "0.00", { amountList: k, minAmount: n, maxAmount: i } = M(
215
+ Number(h),
216
+ Number(P),
217
217
  t.mdBankLevelDetail.onlinepayment_min,
218
218
  t.mdBankLevelDetail.onlinepayment_max
219
219
  );
220
220
  return {
221
- id: p.pgindex,
222
- name: p.bankaccountname,
223
- amountList: b,
224
- min: a,
225
- max: c
221
+ id: d.pgindex,
222
+ name: d.bankaccountname,
223
+ amountList: k,
224
+ min: n,
225
+ max: i
226
226
  };
227
227
  });
228
228
  return {
229
- id: s.bankindex ?? 0,
230
- name: s.banknameenglish ?? "",
229
+ id: a.bankindex ?? 0,
230
+ name: a.banknameenglish ?? "",
231
231
  amountList: [],
232
232
  min: 0,
233
233
  max: 0,
234
- gateway: [x, ...L]
234
+ gateway: [L, ...b]
235
235
  };
236
236
  }),
237
237
  requiredField: {
@@ -242,51 +242,51 @@ const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
242
242
  depositor: !1,
243
243
  uploadReceipt: !1
244
244
  }
245
- } : q, J = (e, t, n) => {
246
- if (!n) return q;
247
- const r = v.auto;
248
- let s = [];
249
- const l = n.mdGatewayMinMax;
250
- if (t.bank.length > 0 && n.mdPGSelection == "1")
251
- s = t.bank.map((m) => {
252
- const { amountList: f, minAmount: y, maxAmount: d } = M(
253
- m.minTransaction ?? 0,
254
- m.maxTransaction ?? 0,
255
- n.mdBankLevelDetail.onlinepayment_min,
256
- n.mdBankLevelDetail.onlinepayment_max
245
+ } : q, Y = (e, t, s) => {
246
+ if (!s) return q;
247
+ const r = x.auto;
248
+ let a = [];
249
+ const m = s.mdGatewayMinMax;
250
+ if (t.bank.length > 0 && s.mdPGSelection == "1")
251
+ a = t.bank.map((c) => {
252
+ const { amountList: g, minAmount: f, maxAmount: _ } = M(
253
+ c.minTransaction ?? 0,
254
+ c.maxTransaction ?? 0,
255
+ s.mdBankLevelDetail.onlinepayment_min,
256
+ s.mdBankLevelDetail.onlinepayment_max
257
257
  );
258
258
  return {
259
- id: m.pgindex,
260
- name: m.bankaccountname || "",
261
- amountList: f,
262
- min: y,
263
- max: d
259
+ id: c.pgindex,
260
+ name: c.bankaccountname || "",
261
+ amountList: g,
262
+ min: f,
263
+ max: _
264
264
  };
265
265
  });
266
266
  else {
267
- let m = "0.00", f = "0.00";
268
- for (let _ = 0; _ < l.length; _++)
269
- l[_].bankindex === e.toString() && (m = l[_].min, f = l[_].max);
270
- const { amountList: y, minAmount: d, maxAmount: x } = M(
271
- Number(m),
272
- Number(f),
273
- n.mdBankLevelDetail.onlinepayment_min,
274
- n.mdBankLevelDetail.onlinepayment_max
275
- ), L = {
267
+ let c = "0.00", g = "0.00";
268
+ for (let v = 0; v < m.length; v++)
269
+ m[v].bankindex === e.toString() && (c = m[v].min, g = m[v].max);
270
+ const { amountList: f, minAmount: _, maxAmount: L } = M(
271
+ Number(c),
272
+ Number(g),
273
+ s.mdBankLevelDetail.onlinepayment_min,
274
+ s.mdBankLevelDetail.onlinepayment_max
275
+ ), b = {
276
276
  id: 0,
277
277
  name: "autoChannel",
278
- amountList: y,
279
- min: d,
280
- max: x
278
+ amountList: f,
279
+ min: _,
280
+ max: L
281
281
  };
282
- s.push(L);
282
+ a.push(b);
283
283
  }
284
284
  return {
285
285
  id: e,
286
286
  name: "autoMethod",
287
287
  type: r,
288
- promo: O(t.promo),
289
- bank: s,
288
+ promo: B(t.promo),
289
+ bank: a,
290
290
  requiredField: {
291
291
  deposit_bank: !1,
292
292
  deposit_datetime: !1,
@@ -296,21 +296,21 @@ const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
296
296
  uploadReceipt: !1
297
297
  }
298
298
  };
299
- }, V = (e, t) => {
300
- const n = v.fix;
299
+ }, H = (e, t) => {
300
+ const s = x.fix;
301
301
  return {
302
302
  id: e,
303
303
  name: "fixAmountMethod",
304
- type: n,
305
- promo: O(t.promo),
306
- bank: t.bank.map((s) => {
307
- const l = s.amtlist.map(Number).sort((m, f) => m - f);
304
+ type: s,
305
+ promo: B(t.promo),
306
+ bank: t.bank.map((a) => {
307
+ const m = a.amtlist.map(Number).sort((c, g) => c - g);
308
308
  return {
309
- id: s.pgindex,
310
- name: s.name,
311
- amountList: s.amtlist,
312
- min: l.length > 0 ? l[0] : 0,
313
- max: l.length > 0 ? l[l.length - 1] : 0
309
+ id: a.pgindex,
310
+ name: a.name,
311
+ amountList: a.amtlist,
312
+ min: m.length > 0 ? m[0] : 0,
313
+ max: m.length > 0 ? m[m.length - 1] : 0
314
314
  };
315
315
  }),
316
316
  requiredField: {
@@ -322,30 +322,30 @@ const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
322
322
  uploadReceipt: !1
323
323
  }
324
324
  };
325
- }, W = (e) => e.map((t) => ({
325
+ }, K = (e) => e.map((t) => ({
326
326
  alert: t.announcement_alert == "1",
327
327
  update_time: t.announcement_lastupdated,
328
328
  content: t.announcement_simplified
329
- })), H = (e) => ({
329
+ })), Q = (e) => ({
330
330
  username: e.username,
331
331
  birthday: e.mdUserDetail.dob,
332
332
  email: e.mdUserDetail.email,
333
333
  fullName: e.mdUserDetail.firstname,
334
334
  phoneNumber: e.mdUserDetail.mobileno,
335
335
  profilePicUrl: e.mdUserDetail.profile_pic
336
- }), K = (e) => e.mdGameListResult.map((t) => ({
336
+ }), X = (e) => e.mdGameListResult.map((t) => ({
337
337
  code: t.code,
338
338
  id: t.id,
339
339
  name: t.name,
340
340
  nextPage: t.nextPage === 1,
341
- list: t.mdPlatformProducts.map((n) => ({
342
- id: Number(n.id),
343
- name: n.shortName,
344
- flag: n.flag,
345
- imageUrl: n.img,
341
+ list: t.mdPlatformProducts.map((s) => ({
342
+ id: Number(s.id),
343
+ name: s.shortName,
344
+ flag: s.flag,
345
+ imageUrl: s.img,
346
346
  rate: "0.00"
347
347
  }))
348
- })), Q = (e) => ({
348
+ })), Z = (e) => ({
349
349
  list: e.mdGrade.map((t) => ({
350
350
  id: t.gradeindex,
351
351
  is_current_level: !1,
@@ -361,13 +361,13 @@ const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
361
361
  current: "0",
362
362
  total: t.min_deposit
363
363
  },
364
- promo_list: t.promocash.filter((n) => n.isshow == 1 && n.status == "1").map((n) => ({
365
- name: n.promosimplified,
366
- min_deposit: n.min_deposit,
367
- promo_bonus: n.percentage,
368
- promo_limit: n.max_promo_amt,
369
- turnover_multiplier: n.multiply,
370
- type: n.promo_type
364
+ promo_list: t.promocash.filter((s) => s.isshow == 1 && s.status == "1").map((s) => ({
365
+ name: s.promosimplified,
366
+ min_deposit: s.min_deposit,
367
+ promo_bonus: s.percentage,
368
+ promo_limit: s.max_promo_amt,
369
+ turnover_multiplier: s.multiply,
370
+ type: s.promo_type
371
371
  })),
372
372
  benefit_list: t.benefit
373
373
  })),
@@ -377,307 +377,373 @@ const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
377
377
  showWeekButton: !1,
378
378
  showDayButton: !1
379
379
  }
380
- }), X = (e) => ({
381
- category: e.category.sort((t, n) => t.sequence - n.sequence).map((t) => ({
380
+ }), w = (e) => ({
381
+ category: e.category.sort((t, s) => t.sequence - s.sequence).map((t) => ({
382
382
  id: t.catid,
383
383
  name: t.name
384
384
  })),
385
- list: e.list.sort((t, n) => t.sequence - n.sequence).map((t) => {
386
- let n = "";
387
- return t.stime !== "" && t.etime !== "" && (n = `${t.stime} - ${t.etime}`), t.stime !== "" && t.etime === "" && (n = t.stime), t.stime === "" && t.etime !== "" && (n = t.etime), {
385
+ list: e.list.sort((t, s) => t.sequence - s.sequence).map((t) => {
386
+ let s = "";
387
+ return t.stime !== "" && t.etime !== "" && (s = `${t.stime} - ${t.etime}`), t.stime !== "" && t.etime === "" && (s = t.stime), t.stime === "" && t.etime !== "" && (s = t.etime), {
388
388
  category_id: t.catid,
389
389
  img_url: t.banner,
390
390
  content: t.content,
391
- time: n,
391
+ time: s,
392
392
  name: t.title
393
393
  };
394
394
  })
395
- }), Y = (e) => ({
395
+ }), ee = (e) => ({
396
396
  showMonthButton: e.month === 1,
397
397
  showWeekButton: e.week === 1,
398
398
  showDayButton: e.day === 1
399
- }), Z = (e) => e.mdVipSetting.filter((t) => {
399
+ }), te = (e) => e.mdVipSetting.filter((t) => {
400
400
  t.status == 1;
401
401
  }).map((t) => ({
402
402
  name: t.showname
403
- })), w = (e) => ({
403
+ })), ne = (e) => ({
404
404
  current_deposit: e.deposit,
405
405
  current_turnover: e.turnOver,
406
406
  current_grade_id: e.mdCurrentGrade.gradeindex,
407
407
  next_grade_id: e.mdNextGrade.gradeindex,
408
408
  percentage: Number(e.percentage) * 100
409
- }), ee = (e) => {
409
+ }), se = (e) => {
410
410
  let t = 4;
411
411
  e.vipcalculation && (t = Number(e.vipcalculation));
412
- let n = [];
413
- return e.extralivechat && (n = JSON.parse(e.extralivechat)), {
412
+ let s = [];
413
+ return e.extralivechat && (s = JSON.parse(e.extralivechat)), {
414
414
  vip_calculation: t,
415
- livechat: n.filter((r) => r.status === 1).map((r) => ({
415
+ livechat: s.filter((r) => r.status === 1).map((r) => ({
416
416
  name: r.name,
417
417
  image_url: r.imgname,
418
418
  url: r.url
419
419
  })),
420
420
  mobileValidate: e.mobilevalidate ? e.mobilevalidate == "1" : !1
421
421
  };
422
- }, te = (e) => {
422
+ }, ae = (e) => {
423
423
  let t = [];
424
424
  e.mobileBanner && (t = e.mobileBanner);
425
- let n = [];
426
- e.mobileAd && (n = e.mobileAd);
425
+ let s = [];
426
+ e.mobileAd && (s = e.mobileAd);
427
427
  let r = [];
428
428
  return e.mobileAbout && (r = e.mobileAbout), {
429
- banner: t.map((s) => `${s.imagepath}?${s.filemtime}`),
430
- ad: n.map((s) => `${s.imagepath}?${s.filemtime}`),
431
- about: r.map((s) => ({
432
- name: s.name,
433
- content: s.content
429
+ banner: t.map((a) => `${a.imagepath}?${a.filemtime}`),
430
+ ad: s.map((a) => `${a.imagepath}?${a.filemtime}`),
431
+ about: r.map((a) => ({
432
+ name: a.name,
433
+ content: a.content
434
434
  }))
435
435
  };
436
- }, ne = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
436
+ }, oe = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
437
437
  code: t.area_code,
438
438
  regex: t.regex,
439
439
  value: t.value
440
- })), se = (e) => e, oe = (e) => {
440
+ })), ie = (e) => e, re = (e) => {
441
441
  let t = null;
442
442
  return e ? e.status != 1 ? t = 0 : t = e.mainwallet : t = 0, {
443
443
  amount: t
444
444
  };
445
- }, ae = async (e) => {
446
- var t, n, r, s, l, g, m, f, y;
445
+ }, le = (e) => e.data.filter((t) => t.status == "1").map((t) => ({
446
+ name: t.title,
447
+ icon_url: t.flag_icon,
448
+ code: t.code
449
+ })), ue = (e) => (console.log(e), {
450
+ name: ""
451
+ }), me = (e) => e.data.filter((t) => t.company_status == 1).map((t) => ({
452
+ id: t.company_id,
453
+ name: t.company_name,
454
+ date: []
455
+ })), ce = (e) => e.data.map((t) => ({
456
+ id: t.key,
457
+ date: t.draw_date.map((s) => de(s.draw_tmactive))
458
+ }));
459
+ function de(e) {
460
+ const t = new Date(e * 1e3), s = t.getFullYear(), r = ("0" + (t.getMonth() + 1)).slice(-2), a = ("0" + t.getDate()).slice(-2);
461
+ return `${s}-${r}-${a}`;
462
+ }
463
+ const pe = async (e) => {
464
+ var t, s, r, a, m, p, c, g, f, _, L;
447
465
  try {
448
- e.findIndex((u) => u.name === i.vipList) !== -1 && e.push(
466
+ e.findIndex((i) => i.name === o.vipList) !== -1 && e.push(
449
467
  {
450
- name: i.vipBonus,
468
+ name: o.vipBonus,
451
469
  query: ""
452
470
  },
453
- { name: i.vipFieldStatus, query: "" },
454
- { name: i.vipStatus, query: "" },
455
- { name: i.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
456
- ), e.findIndex((u) => u.name === i.gameList) !== -1 && e.push({
457
- name: i.getPlatformTurnoverRate,
471
+ { name: o.vipFieldStatus, query: "" },
472
+ { name: o.vipStatus, query: "" },
473
+ { name: o.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
474
+ ), e.findIndex((i) => i.name === o.gameList) !== -1 && e.push({
475
+ name: o.getPlatformTurnoverRate,
458
476
  query: ""
459
477
  });
460
- const _ = {
461
- requests: e.map((u) => ({
462
- name: u.name,
463
- query: btoa(u.query)
478
+ const d = e.findIndex(
479
+ (i) => i.name === o.getFourDimensionData
480
+ );
481
+ d !== -1 && (e.splice(d), e.push(
482
+ {
483
+ name: o.getFourDimensionData,
484
+ query: JSON.stringify({ action: "getCompany", native: "1" })
485
+ },
486
+ {
487
+ name: o.getFourDimensionData,
488
+ query: JSON.stringify({
489
+ action: "searchResultDate",
490
+ limit: 100,
491
+ company: [],
492
+ native: "1",
493
+ splitCompany: "1"
494
+ })
495
+ }
496
+ ));
497
+ const P = {
498
+ requests: e.map((i) => ({
499
+ name: i.name,
500
+ query: btoa(i.query)
464
501
  }))
465
- }, p = await P.post(
502
+ }, k = await D.post(
466
503
  "/jwt",
467
- G(JSON.stringify(_))
468
- ), o = {
504
+ I(JSON.stringify(P))
505
+ ), n = {
469
506
  status: 200,
470
507
  message: "",
471
508
  result: {}
472
509
  };
473
- for (const u of p.data.responses) {
474
- u.error != null && u.error.code != 200 && (o.status = u.error.code, o.message = u.error.message);
475
- const b = u.attributes !== null && u.attributes !== void 0 ? U(u.attributes) : null, a = u.name, c = b ? JSON.parse(b) : null;
476
- if (!c)
477
- o.result[a] = null;
510
+ for (const i of k.data.responses) {
511
+ i.error != null && i.error.code != 200 && (n.status = i.error.code, n.message = i.error.message);
512
+ const y = i.attributes !== null && i.attributes !== void 0 ? z(i.attributes) : null, l = i.name, u = y ? JSON.parse(y) : null;
513
+ if (!u)
514
+ n.result[l] = null;
478
515
  else
479
- switch (a) {
480
- case i.announcement:
481
- o.result[a] = W(c);
516
+ switch (l) {
517
+ case o.announcement:
518
+ n.result[l] = K(u);
482
519
  break;
483
- case i.gameList:
484
- o.result[a] = K(c);
520
+ case o.gameList:
521
+ n.result[l] = X(u);
485
522
  break;
486
- case i.cmsList:
487
- o.result[a] = te(c);
523
+ case o.cmsList:
524
+ n.result[l] = ae(u);
488
525
  break;
489
- case i.paymentsProvider:
490
- o.result[a] = I(
491
- c
526
+ case o.paymentsProvider:
527
+ n.result[l] = V(
528
+ u
492
529
  );
493
530
  break;
494
- case i.getUserProfile:
495
- o.result[a] = H(c);
531
+ case o.getUserProfile:
532
+ n.result[l] = Q(u);
496
533
  break;
497
- case i.vipList:
498
- o.result[a] = Q(c);
534
+ case o.vipList:
535
+ n.result[l] = Z(u);
499
536
  break;
500
- case i.vipBonus:
501
- o.result[a] = Y(c);
537
+ case o.vipBonus:
538
+ n.result[l] = ee(u);
502
539
  break;
503
- case i.vipFieldStatus:
504
- o.result[a] = Z(c);
540
+ case o.vipFieldStatus:
541
+ n.result[l] = te(u);
505
542
  break;
506
- case i.vipStatus:
507
- o.result[a] = w(c);
543
+ case o.vipStatus:
544
+ n.result[l] = ne(u);
508
545
  break;
509
- case i.promotion:
510
- o.result[a] = X(c);
546
+ case o.promotion:
547
+ n.result[l] = w(u);
511
548
  break;
512
- case i.getSetting:
513
- o.result[a] = ee(c);
549
+ case o.getSetting:
550
+ n.result[l] = se(u);
514
551
  break;
515
- case i.getCountryMobile:
516
- o.result[a] = ne(
517
- c
552
+ case o.getCountryMobile:
553
+ n.result[l] = oe(
554
+ u
518
555
  );
519
556
  break;
520
- case i.getPlatformTurnoverRate:
521
- o.result[a] = se(
522
- c
557
+ case o.getPlatformTurnoverRate:
558
+ n.result[l] = ie(
559
+ u
523
560
  );
524
561
  break;
525
- case i.mainWallet:
526
- o.result[a] = oe(c);
562
+ case o.mainWallet:
563
+ n.result[l] = re(u);
564
+ break;
565
+ case o.getLanguageSetting:
566
+ n.result[l] = le(
567
+ u
568
+ );
569
+ break;
570
+ case o.getFourDimensionData:
571
+ n.result[l] = ue(
572
+ u
573
+ );
574
+ break;
575
+ case o.getCompany:
576
+ n.result[l] = me(u);
577
+ break;
578
+ case o.searchResultDate:
579
+ n.result[l] = ce(
580
+ u
581
+ );
527
582
  break;
528
583
  }
529
584
  }
530
- if (i.vipList in o.result && ((t = o.result) != null && t.vipList)) {
531
- const u = o.result.vipList;
532
- let b = 4;
533
- if (i.getSetting in o.result && ((n = o.result) != null && n.getSetting) && (b = o.result.getSetting.vip_calculation, delete o.result.getSetting), i.vipBonus in o.result && ((r = o.result) != null && r.vipBonus) && (u.bonus = o.result.vipBonus, delete o.result.vipBonus), i.vipFieldStatus in o.result && ((s = o.result) != null && s.vipFieldStatus) && (console.log(o.result.vipFieldStatus), delete o.result.vipFieldStatus), i.vipStatus in o.result && ((l = o.result) != null && l.vipStatus)) {
534
- const a = o.result.vipStatus, {
535
- current_grade_id: c,
536
- current_deposit: S,
537
- current_turnover: B,
538
- percentage: F
539
- } = a, N = u.list.findIndex((h) => h.id === c);
540
- u.list = u.list.map((h, j) => {
541
- const C = j === N;
542
- let T = "0", R = "0", k = 0;
543
- return C ? (T = `${Math.min(Number(S), Number(h.deposit.total))}`, R = `${Math.min(Number(B), Number(h.turnover.total))}`, k = F) : j < N ? (T = h.deposit.total, R = h.turnover.total, k = 1) : j > N && (T = "0.00", R = "0.00", k = 0), {
544
- ...h,
545
- is_current_level: C,
585
+ if (o.vipList in n.result && ((t = n.result) != null && t.vipList)) {
586
+ const i = n.result.vipList;
587
+ let y = 4;
588
+ if (o.getSetting in n.result && ((s = n.result) != null && s.getSetting) && (y = n.result.getSetting.vip_calculation, delete n.result.getSetting), o.vipBonus in n.result && ((r = n.result) != null && r.vipBonus) && (i.bonus = n.result.vipBonus, delete n.result.vipBonus), o.vipFieldStatus in n.result && ((a = n.result) != null && a.vipFieldStatus) && (console.log(n.result.vipFieldStatus), delete n.result.vipFieldStatus), o.vipStatus in n.result && ((m = n.result) != null && m.vipStatus)) {
589
+ const l = n.result.vipStatus, {
590
+ current_grade_id: u,
591
+ current_deposit: R,
592
+ current_turnover: C,
593
+ percentage: U
594
+ } = l, j = i.list.findIndex((S) => S.id === u);
595
+ i.list = i.list.map((S, F) => {
596
+ const G = F === j;
597
+ let T = "0", O = "0", N = 0;
598
+ return G ? (T = `${Math.min(Number(R), Number(S.deposit.total))}`, O = `${Math.min(Number(C), Number(S.turnover.total))}`, N = U) : F < j ? (T = S.deposit.total, O = S.turnover.total, N = 1) : F > j && (T = "0.00", O = "0.00", N = 0), {
599
+ ...S,
600
+ is_current_level: G,
546
601
  deposit: {
547
- ...h.deposit,
548
- isShow: b === 1 || b === 3 || b === 4,
602
+ ...S.deposit,
603
+ isShow: y === 1 || y === 3 || y === 4,
549
604
  current: T
550
605
  },
551
606
  turnover: {
552
- ...h.turnover,
553
- isShow: b === 2 || b === 3 || b === 4,
554
- current: R
607
+ ...S.turnover,
608
+ isShow: y === 2 || y === 3 || y === 4,
609
+ current: O
555
610
  },
556
- percentage: k
611
+ percentage: N
557
612
  };
558
- }), delete o.result.vipStatus;
613
+ }), delete n.result.vipStatus;
559
614
  }
560
- o.result.vipList = u;
615
+ n.result.vipList = i;
561
616
  }
562
- if (i.gameList in o.result && ((g = o.result) != null && g.gameList)) {
563
- const u = o.result.gameList;
564
- if (i.getPlatformTurnoverRate in o.result && ((m = o.result) != null && m.getPlatformTurnoverRate)) {
565
- const b = o.result.getPlatformTurnoverRate;
566
- u.forEach((a) => {
567
- a.list = a.list.map((c) => {
568
- const S = b.find(
569
- (B) => B.id === c.id
617
+ if (o.gameList in n.result && ((p = n.result) != null && p.gameList)) {
618
+ const i = n.result.gameList;
619
+ if (o.getPlatformTurnoverRate in n.result && ((c = n.result) != null && c.getPlatformTurnoverRate)) {
620
+ const y = n.result.getPlatformTurnoverRate;
621
+ i.forEach((l) => {
622
+ l.list = l.list.map((u) => {
623
+ const R = y.find(
624
+ (C) => C.id === u.id
570
625
  );
571
626
  return {
572
- ...c,
573
- rate: (S == null ? void 0 : S.percentage) ?? "0.00"
627
+ ...u,
628
+ rate: (R == null ? void 0 : R.percentage) ?? "0.00"
574
629
  };
575
630
  });
576
- }), delete o.result.getPlatformTurnoverRate;
631
+ }), delete n.result.getPlatformTurnoverRate;
632
+ }
633
+ n.result.gameList = i;
634
+ }
635
+ if (o.getCompany in n.result && ((g = n.result) != null && g.getCompany)) {
636
+ const i = n.result.getCompany;
637
+ if (o.searchResultDate in n.result && ((f = n.result) != null && f.searchResultDate)) {
638
+ const y = n.result.searchResultDate;
639
+ i.forEach((l) => {
640
+ const u = y.find((R) => R.id == l.id);
641
+ u && (l.date = u == null ? void 0 : u.date);
642
+ }), delete n.result.searchResultDate;
577
643
  }
578
- o.result.gameList = u;
644
+ n.result.getCompany = i;
579
645
  }
580
- return o;
581
- } catch (d) {
582
- return D.isAxiosError(d) ? {
583
- status: ((f = d.response) == null ? void 0 : f.status) || 600,
584
- message: JSON.stringify((y = d.response) == null ? void 0 : y.data),
646
+ return n;
647
+ } catch (b) {
648
+ return A.isAxiosError(b) ? {
649
+ status: ((_ = b.response) == null ? void 0 : _.status) || 600,
650
+ message: JSON.stringify((L = b.response) == null ? void 0 : L.data),
585
651
  result: {}
586
- } : (console.error(d), {
587
- status: d.status || 500,
588
- message: d.message,
652
+ } : (console.error(b), {
653
+ status: b.status || 500,
654
+ message: b.message,
589
655
  result: {}
590
656
  });
591
657
  }
592
- }, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
658
+ }, ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
593
659
  __proto__: null,
594
- post: ae
595
- }, Symbol.toStringTag, { value: "Module" })), re = async (e, t) => {
660
+ post: pe
661
+ }, Symbol.toStringTag, { value: "Module" })), fe = async (e, t) => {
596
662
  try {
597
- const n = {
663
+ const s = {
598
664
  status: 200,
599
665
  message: ""
600
666
  };
601
- return await P.post(
667
+ return await D.post(
602
668
  "/auth/sesh",
603
669
  JSON.stringify({
604
670
  usr: e,
605
671
  pwd: t
606
672
  })
607
- ), n;
608
- } catch (n) {
609
- return console.error(`login: ${JSON.stringify(n)}`), {
610
- status: n.status || 500,
611
- message: n.message
673
+ ), s;
674
+ } catch (s) {
675
+ return console.error(`login: ${JSON.stringify(s)}`), {
676
+ status: s.status || 500,
677
+ message: s.message
612
678
  };
613
679
  }
614
- }, le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
680
+ }, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
615
681
  __proto__: null,
616
- call: re
617
- }, Symbol.toStringTag, { value: "Module" })), ue = async () => {
682
+ call: fe
683
+ }, Symbol.toStringTag, { value: "Module" })), _e = async () => {
618
684
  try {
619
685
  const e = {
620
686
  status: 200,
621
687
  message: ""
622
688
  };
623
- return await P.post("/auth/sesh/logout"), e;
689
+ return await D.post("/auth/sesh/logout"), e;
624
690
  } catch (e) {
625
691
  return console.error(`login: ${JSON.stringify(e)}`), {
626
692
  status: e.status || 500,
627
693
  message: e.message
628
694
  };
629
695
  }
630
- }, me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
696
+ }, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
631
697
  __proto__: null,
632
- call: ue
633
- }, Symbol.toStringTag, { value: "Module" })), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
698
+ call: _e
699
+ }, Symbol.toStringTag, { value: "Module" })), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
634
700
  __proto__: null
635
- }, Symbol.toStringTag, { value: "Module" })), de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
701
+ }, Symbol.toStringTag, { value: "Module" })), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
636
702
  __proto__: null
637
- }, Symbol.toStringTag, { value: "Module" })), pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
703
+ }, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
638
704
  __proto__: null
639
- }, Symbol.toStringTag, { value: "Module" })), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
705
+ }, Symbol.toStringTag, { value: "Module" })), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
640
706
  __proto__: null
641
- }, Symbol.toStringTag, { value: "Module" })), fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
707
+ }, Symbol.toStringTag, { value: "Module" })), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
642
708
  __proto__: null
643
- }, Symbol.toStringTag, { value: "Module" })), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
709
+ }, Symbol.toStringTag, { value: "Module" })), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
644
710
  __proto__: null
645
- }, Symbol.toStringTag, { value: "Module" })), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
711
+ }, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
646
712
  __proto__: null
647
- }, Symbol.toStringTag, { value: "Module" })), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
713
+ }, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
648
714
  __proto__: null
649
- }, Symbol.toStringTag, { value: "Module" })), he = {
650
- api: ie,
651
- loginApi: le,
652
- logoutApi: me,
653
- apiType: z,
654
- loginType: ce,
655
- logoutType: de,
656
- announcementType: pe,
657
- paymentsProviderType: $,
658
- gameListType: ge,
659
- vipListType: fe,
660
- promotionType: ye,
661
- cmsListType: be,
662
- mainWalletType: _e
663
- }, xe = {
715
+ }, Symbol.toStringTag, { value: "Module" })), Pe = {
716
+ api: ge,
717
+ loginApi: ye,
718
+ logoutApi: be,
719
+ apiType: E,
720
+ loginType: he,
721
+ logoutType: ve,
722
+ announcementType: Se,
723
+ paymentsProviderType: J,
724
+ gameListType: xe,
725
+ vipListType: Le,
726
+ promotionType: Re,
727
+ cmsListType: Me,
728
+ mainWalletType: De
729
+ }, Te = {
664
730
  install(e) {
665
- e.config.globalProperties.$library = he;
731
+ e.config.globalProperties.$library = Pe;
666
732
  }
667
733
  };
668
734
  export {
669
- xe as Repository,
670
- pe as announcementType,
671
- ie as api,
672
- z as apiType,
673
- be as cmsListType,
674
- ge as gameListType,
675
- le as loginApi,
676
- ce as loginType,
677
- me as logoutApi,
678
- de as logoutType,
679
- _e as mainWalletType,
680
- $ as paymentsProviderType,
681
- ye as promotionType,
682
- fe as vipListType
735
+ Te as Repository,
736
+ Se as announcementType,
737
+ ge as api,
738
+ E as apiType,
739
+ Me as cmsListType,
740
+ xe as gameListType,
741
+ ye as loginApi,
742
+ he as loginType,
743
+ be as logoutApi,
744
+ ve as logoutType,
745
+ De as mainWalletType,
746
+ J as paymentsProviderType,
747
+ Re as promotionType,
748
+ Le as vipListType
683
749
  };