60p82u21t54k 0.0.55 → 0.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import U from "axios";
2
- const D = U.create({
1
+ import A from "axios";
2
+ const O = A.create({
3
3
  baseURL: "/graph",
4
4
  timeout: 5e3,
5
5
  // Request timeout
@@ -45,11 +45,11 @@ const D = U.create({
45
45
  // },
46
46
  // },
47
47
  });
48
- D.interceptors.request.use(
48
+ O.interceptors.request.use(
49
49
  (e) => e,
50
50
  (e) => (console.error("Error request:", e.response), Promise.reject(e))
51
51
  );
52
- D.interceptors.response.use(
52
+ O.interceptors.response.use(
53
53
  (e) => e,
54
54
  (e) => {
55
55
  const t = {
@@ -59,58 +59,58 @@ D.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 I = (e) => new TextEncoder().encode(e), z = (e) => {
62
+ const U = (e) => new TextEncoder().encode(e), z = (e) => {
63
63
  try {
64
64
  return atob(e);
65
65
  } catch (t) {
66
66
  return console.error("Failed to decode Base64:", t), "";
67
67
  }
68
68
  };
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.searchHot = "searchHot", e))(o || {});
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 || {});
70
70
  const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
71
71
  __proto__: null,
72
- Api: o
72
+ Api: m
73
73
  }, Symbol.toStringTag, { value: "Module" }));
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 || {});
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 || {});
75
75
  const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
76
76
  __proto__: null,
77
- PaymentType: x
77
+ PaymentType: N
78
78
  }, Symbol.toStringTag, { value: "Module" })), V = (e) => e.mdPaymentChannels.map((t) => {
79
- const s = [];
79
+ const n = [];
80
80
  switch (t.name) {
81
- case x.default:
82
- s.push($(t.paymentmethod.manual, e));
81
+ case N.default:
82
+ n.push($(t.paymentmethod.manual, e));
83
83
  break;
84
- case x.pay:
85
- s.push(W(t.paymentmethod.onlinebanking, e));
84
+ case N.pay:
85
+ n.push(W(t.paymentmethod.onlinebanking, e));
86
86
  break;
87
87
  default:
88
- if (t.paymentmethod.auto.bank.length > 0 && s.push(
89
- H(t.bankid ?? 0, t.paymentmethod.auto, e)
88
+ if (t.paymentmethod.auto.bank.length > 0 && n.push(
89
+ w(t.bankid ?? 0, t.paymentmethod.auto, e)
90
90
  ), t.paymentmethod.manual.bank.length > 0) {
91
- let u = !1;
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
- u = !0;
91
+ let c = !1;
92
+ for (let o = 0; o < t.paymentmethod.manual.bank.length; o++) {
93
+ const d = t.paymentmethod.manual.bank[o];
94
+ if (d.list && d.list.length > 0) {
95
+ c = !0;
96
96
  break;
97
97
  }
98
98
  }
99
- u && s.push($(t.paymentmethod.manual, e));
99
+ c && n.push($(t.paymentmethod.manual, e));
100
100
  }
101
- t.paymentmethod.fixamount.bank.length > 0 && s.push(
102
- Y(t.bankid ?? 0, t.paymentmethod.fixamount)
101
+ t.paymentmethod.fixamount.bank.length > 0 && n.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: s
108
+ paymentList: n
109
109
  };
110
- }), q = {
110
+ }), G = {
111
111
  id: 0,
112
112
  name: "",
113
- type: x.unknown,
113
+ type: N.unknown,
114
114
  promo: [],
115
115
  bank: [],
116
116
  requiredField: {
@@ -121,117 +121,117 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
121
121
  depositor: !1,
122
122
  uploadReceipt: !1
123
123
  }
124
- }, B = (e) => {
124
+ }, q = (e) => {
125
125
  const t = {
126
126
  id: 0,
127
127
  name: "excludePromo",
128
128
  value: "0",
129
129
  disabled: !0
130
- }, s = e.map((u, a) => ({
131
- id: a + 1,
132
- name: u.promodesc,
133
- value: u.promoindex.toString(),
130
+ }, n = e.map((c, o) => ({
131
+ id: o + 1,
132
+ name: c.promodesc,
133
+ value: c.promoindex.toString(),
134
134
  disabled: !1
135
135
  }));
136
- return [t, ...s];
137
- }, M = (e, t, s, u) => {
138
- let a, m;
139
- s > 0 ? a = e > 0 ? Math.max(s, e) : s : a = Math.max(e, 0), u > 0 ? m = t > 0 ? Math.min(u, t) : u : 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 = "", b = "";
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 ? b += (parseInt(h[n]) + 1).toString() : b += "0";
136
+ return [t, ...n];
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);
141
+ let p = 1e3;
142
+ d < p && (p = Math.round(d));
143
+ const _ = p - b;
144
+ let y = "", h = "";
145
+ if (_ > 0) {
146
+ let f = Math.round((p - b) * 0.25).toString().split(""), L = [];
147
+ for (const 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";
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";
156
156
  } else
157
- f = c.toString(), b = c.toString();
157
+ y = p.toString(), h = p.toString();
158
158
  return { amountList: [
159
- p.toString(),
160
- f,
161
- b,
162
- c.toString()
163
- ], minAmount: p, maxAmount: m };
159
+ b.toString(),
160
+ y,
161
+ h,
162
+ p.toString()
163
+ ], minAmount: b, maxAmount: d };
164
164
  }, $ = (e, t) => t ? {
165
165
  id: 0,
166
166
  name: "manualMethod",
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),
167
+ type: N.manual,
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(
171
+ Number(d),
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: 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
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 : "",
183
+ amountList: p,
184
+ min: _,
185
+ max: y
186
186
  };
187
187
  }),
188
188
  requiredField: {
189
189
  ...t.mdManualDepositRequireField,
190
190
  uploadReceipt: t.mdUploadReceipt
191
191
  }
192
- } : q, W = (e, t) => t ? {
192
+ } : G, W = (e, t) => t ? {
193
193
  id: 0,
194
194
  name: "onlineBankingMethod",
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: b } = M(
203
- Number(m),
204
- Number(p),
195
+ type: N.pay,
196
+ promo: q(e.promo),
197
+ bank: e.banklist.map((o) => {
198
+ let d = "0.00", b = "0.00";
199
+ const p = o.bankindex ?? 0;
200
+ for (let f = 0; f < t.mdGatewayMinMax.length; f++)
201
+ t.mdGatewayMinMax[f].bankindex == p.toString() && (d = t.mdGatewayMinMax[f].min, b = t.mdGatewayMinMax[f].max);
202
+ const { amountList: _, minAmount: y, maxAmount: h } = B(
203
+ Number(d),
204
+ Number(b),
205
205
  t.mdBankLevelDetail.onlinepayment_min,
206
206
  t.mdBankLevelDetail.onlinepayment_max
207
- ), L = {
207
+ ), S = {
208
208
  id: 0,
209
209
  name: "autoChannel",
210
- amountList: g,
211
- min: f,
212
- max: b
213
- }, _ = 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),
210
+ amountList: _,
211
+ min: y,
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(
215
+ Number(L),
216
+ Number(C),
217
217
  t.mdBankLevelDetail.onlinepayment_min,
218
218
  t.mdBankLevelDetail.onlinepayment_max
219
219
  );
220
220
  return {
221
- id: d.pgindex,
222
- name: d.bankaccountname,
223
- amountList: k,
224
- min: n,
225
- max: i
221
+ id: f.pgindex,
222
+ name: f.bankaccountname,
223
+ amountList: j,
224
+ min: s,
225
+ max: l
226
226
  };
227
227
  });
228
228
  return {
229
- id: a.bankindex ?? 0,
230
- name: a.banknameenglish ?? "",
229
+ id: o.bankindex ?? 0,
230
+ name: o.banknameenglish ?? "",
231
231
  amountList: [],
232
232
  min: 0,
233
233
  max: 0,
234
- gateway: [L, ..._]
234
+ gateway: [S, ...v]
235
235
  };
236
236
  }),
237
237
  requiredField: {
@@ -242,51 +242,51 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
242
242
  depositor: !1,
243
243
  uploadReceipt: !1
244
244
  }
245
- } : q, H = (e, t, s) => {
246
- if (!s) return q;
247
- const u = 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: b } = M(
253
- c.minTransaction ?? 0,
254
- c.maxTransaction ?? 0,
255
- s.mdBankLevelDetail.onlinepayment_min,
256
- s.mdBankLevelDetail.onlinepayment_max
245
+ } : G, w = (e, t, n) => {
246
+ if (!n) return G;
247
+ const c = N.auto;
248
+ let o = [];
249
+ const d = n.mdGatewayMinMax;
250
+ if (t.bank.length > 0 && n.mdPGSelection == "1")
251
+ o = t.bank.map((p) => {
252
+ const { amountList: _, minAmount: y, maxAmount: h } = B(
253
+ p.minTransaction ?? 0,
254
+ p.maxTransaction ?? 0,
255
+ n.mdBankLevelDetail.onlinepayment_min,
256
+ n.mdBankLevelDetail.onlinepayment_max
257
257
  );
258
258
  return {
259
- id: c.pgindex,
260
- name: c.bankaccountname || "",
261
- amountList: g,
262
- min: f,
263
- max: b
259
+ id: p.pgindex,
260
+ name: p.bankaccountname || "",
261
+ amountList: _,
262
+ min: y,
263
+ max: h
264
264
  };
265
265
  });
266
266
  else {
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: b, maxAmount: L } = M(
271
- Number(c),
272
- Number(g),
273
- s.mdBankLevelDetail.onlinepayment_min,
274
- s.mdBankLevelDetail.onlinepayment_max
275
- ), _ = {
267
+ let p = "0.00", _ = "0.00";
268
+ for (let a = 0; a < d.length; a++)
269
+ d[a].bankindex === e.toString() && (p = d[a].min, _ = d[a].max);
270
+ const { amountList: y, minAmount: h, maxAmount: S } = B(
271
+ Number(p),
272
+ Number(_),
273
+ n.mdBankLevelDetail.onlinepayment_min,
274
+ n.mdBankLevelDetail.onlinepayment_max
275
+ ), v = {
276
276
  id: 0,
277
277
  name: "autoChannel",
278
- amountList: f,
279
- min: b,
280
- max: L
278
+ amountList: y,
279
+ min: h,
280
+ max: S
281
281
  };
282
- a.push(_);
282
+ o.push(v);
283
283
  }
284
284
  return {
285
285
  id: e,
286
286
  name: "autoMethod",
287
- type: u,
288
- promo: B(t.promo),
289
- bank: a,
287
+ type: c,
288
+ promo: q(t.promo),
289
+ bank: o,
290
290
  requiredField: {
291
291
  deposit_bank: !1,
292
292
  deposit_datetime: !1,
@@ -296,21 +296,21 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
296
296
  uploadReceipt: !1
297
297
  }
298
298
  };
299
- }, Y = (e, t) => {
300
- const s = x.fix;
299
+ }, H = (e, t) => {
300
+ const n = N.fix;
301
301
  return {
302
302
  id: e,
303
303
  name: "fixAmountMethod",
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);
304
+ type: n,
305
+ promo: q(t.promo),
306
+ bank: t.bank.map((o) => {
307
+ const d = o.amtlist.map(Number).sort((p, _) => p - _);
308
308
  return {
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
309
+ id: o.pgindex,
310
+ name: o.name,
311
+ amountList: o.amtlist,
312
+ min: d.length > 0 ? d[0] : 0,
313
+ max: d.length > 0 ? d[d.length - 1] : 0
314
314
  };
315
315
  }),
316
316
  requiredField: {
@@ -322,30 +322,30 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
322
322
  uploadReceipt: !1
323
323
  }
324
324
  };
325
- }, K = (e) => e.map((t) => ({
325
+ }, Y = (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
- })), Q = (e) => ({
329
+ })), K = (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
- }), X = (e) => e.mdGameListResult.map((t) => ({
336
+ }), Q = (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((s) => ({
342
- id: Number(s.id),
343
- name: s.shortName,
344
- flag: s.flag,
345
- imageUrl: s.img,
341
+ list: t.mdPlatformProducts.map((n) => ({
342
+ id: Number(n.id),
343
+ name: n.shortName,
344
+ flag: n.flag,
345
+ imageUrl: n.img,
346
346
  rate: "0.00"
347
347
  }))
348
- })), Z = (e) => ({
348
+ })), X = (e) => ({
349
349
  list: e.mdGrade.map((t) => ({
350
350
  id: t.gradeindex,
351
351
  is_current_level: !1,
@@ -361,13 +361,13 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
361
361
  current: "0",
362
362
  total: t.min_deposit
363
363
  },
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
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
371
371
  })),
372
372
  benefit_list: t.benefit
373
373
  })),
@@ -377,18 +377,18 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
377
377
  showWeekButton: !1,
378
378
  showDayButton: !1
379
379
  }
380
- }), w = (e) => ({
381
- category: e.category.sort((t, s) => t.sequence - s.sequence).map((t) => ({
380
+ }), Z = (e) => ({
381
+ category: e.category.sort((t, n) => t.sequence - n.sequence).map((t) => ({
382
382
  id: t.catid,
383
383
  name: t.name
384
384
  })),
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), {
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), {
388
388
  category_id: t.catid,
389
389
  img_url: t.banner,
390
390
  content: t.content,
391
- time: s,
391
+ time: n,
392
392
  name: t.title
393
393
  };
394
394
  })
@@ -396,10 +396,9 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
396
396
  showMonthButton: e.month === 1,
397
397
  showWeekButton: e.week === 1,
398
398
  showDayButton: e.day === 1
399
- }), te = (e) => e.mdVipSetting.filter((t) => {
400
- t.status == 1;
401
- }).map((t) => ({
402
- name: t.showname
399
+ }), te = (e) => e.mdVipSetting.filter((n) => n.status == 1).map((n) => ({
400
+ fieldName: n.fieldname,
401
+ showName: n.showname
403
402
  })), ne = (e) => ({
404
403
  current_deposit: e.deposit,
405
404
  current_turnover: e.turnOver,
@@ -409,31 +408,31 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
409
408
  }), se = (e) => {
410
409
  let t = 4;
411
410
  e.vipcalculation && (t = Number(e.vipcalculation));
412
- let s = [];
413
- return e.extralivechat && (s = JSON.parse(e.extralivechat)), {
411
+ let n = [];
412
+ return e.extralivechat && (n = JSON.parse(e.extralivechat)), {
414
413
  vip_calculation: t,
415
- livechat: s.filter((u) => u.status === 1).map((u) => ({
416
- name: u.name,
417
- image_url: u.imgname,
418
- url: u.url
414
+ livechat: n.filter((c) => c.status === 1).map((c) => ({
415
+ name: c.name,
416
+ image_url: c.imgname,
417
+ url: c.url
419
418
  })),
420
419
  mobileValidate: e.mobilevalidate ? e.mobilevalidate == "1" : !1
421
420
  };
422
- }, ae = (e) => {
421
+ }, oe = (e) => {
423
422
  let t = [];
424
423
  e.mobileBanner && (t = e.mobileBanner);
425
- let s = [];
426
- e.mobileAd && (s = e.mobileAd);
427
- let u = [];
428
- return e.mobileAbout && (u = e.mobileAbout), {
429
- banner: t.map((a) => `${a.imagepath}?${a.filemtime}`),
430
- ad: s.map((a) => `${a.imagepath}?${a.filemtime}`),
431
- about: u.map((a) => ({
432
- name: a.name,
433
- content: a.content
424
+ let n = [];
425
+ e.mobileAd && (n = e.mobileAd);
426
+ let c = [];
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
434
433
  }))
435
434
  };
436
- }, oe = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
435
+ }, ae = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
437
436
  code: t.area_code,
438
437
  regex: t.regex,
439
438
  value: t.value
@@ -454,43 +453,81 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
454
453
  date: []
455
454
  })), ce = (e) => e.data.map((t) => ({
456
455
  id: t.key,
457
- date: t.draw_date.map((s) => de(s.draw_tmactive))
456
+ date: t.draw_date.map((n) => de(n.draw_tmactive))
458
457
  }));
459
458
  function de(e) {
460
- const t = new Date(e * 1e3), s = t.getFullYear(), u = ("0" + (t.getMonth() + 1)).slice(-2), a = ("0" + t.getDate()).slice(-2);
461
- return `${s}-${u}-${a}`;
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}`;
462
461
  }
463
462
  const pe = (e) => e.data.map((t) => ({
464
463
  id: t.company_id,
465
- list: t.drawCount.map((s) => ({
466
- combination: s.combination_combination,
467
- total: s.total
464
+ list: t.drawCount.map((n) => ({
465
+ combination: n.combination_combination,
466
+ total: n.total
468
467
  }))
469
- })), ge = async (e) => {
470
- var t, s, u, a, m, p, c, g, f, b, L;
468
+ })), ge = (e) => e.data.map((t) => ({
469
+ id: t.company_id,
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(
472
+ (a) => a.combination_dimension == 4 && a.combination_position == 1
473
+ ).map((a) => a.combination_combination), d = n.results.filter(
474
+ (a) => a.combination_dimension == 4 && a.combination_position == 2
475
+ ).map((a) => a.combination_combination), b = n.results.filter(
476
+ (a) => a.combination_dimension == 4 && a.combination_position == 3
477
+ ).map((a) => a.combination_combination), p = n.results.filter(
478
+ (a) => a.combination_dimension == 4 && a.combination_position == 4
479
+ ).map((a) => a.combination_combination), _ = n.results.filter(
480
+ (a) => a.combination_dimension == 4 && a.combination_position == 5
481
+ ).map((a) => a.combination_combination), y = n.results.filter(
482
+ (a) => a.combination_dimension == 5 && a.combination_position == 1
483
+ ).map((a) => a.combination_combination), h = n.results.filter((a) => a.combination_dimension == 5).map((a) => a.combination_combination), S = n.results.filter(
484
+ (a) => a.combination_dimension == 6 && a.combination_position == 1
485
+ ).map((a) => a.combination_combination), v = n.results.filter((a) => a.combination_dimension == 6).map((a) => a.combination_combination);
486
+ return {
487
+ date: n.date,
488
+ 3: c,
489
+ 4: {
490
+ 1: o,
491
+ 2: d,
492
+ 3: b,
493
+ 4: p,
494
+ 5: _
495
+ },
496
+ 5: {
497
+ 1: y,
498
+ all: h
499
+ },
500
+ 6: {
501
+ 1: S,
502
+ all: v
503
+ }
504
+ };
505
+ })
506
+ })), fe = async (e) => {
507
+ var t, n, c, o, d, b, p, _, y, h, S;
471
508
  try {
472
- e.findIndex((i) => i.name === o.vipList) !== -1 && e.push(
509
+ e.findIndex((l) => l.name === m.vipList) !== -1 && e.push(
473
510
  {
474
- name: o.vipBonus,
511
+ name: m.vipBonus,
475
512
  query: ""
476
513
  },
477
- { name: o.vipFieldStatus, query: "" },
478
- { name: o.vipStatus, query: "" },
479
- { name: o.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
480
- ), e.findIndex((i) => i.name === o.gameList) !== -1 && e.push({
481
- name: o.getPlatformTurnoverRate,
514
+ { name: m.vipFieldStatus, query: "" },
515
+ { name: m.vipStatus, query: "" },
516
+ { name: m.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
517
+ ), e.findIndex((l) => l.name === m.gameList) !== -1 && e.push({
518
+ name: m.getPlatformTurnoverRate,
482
519
  query: ""
483
520
  });
484
- const d = e.findIndex(
485
- (i) => i.name === o.getFourDimensionData
521
+ const f = e.findIndex(
522
+ (l) => l.name === m.getFourDimensionData
486
523
  );
487
- d !== -1 && e[d].query == "" && (e.splice(d), e.push(
524
+ f !== -1 && e[f].query == "" && (e.splice(f), e.push(
488
525
  {
489
- name: o.getFourDimensionData,
526
+ name: m.getFourDimensionData,
490
527
  query: JSON.stringify({ action: "getCompany", native: "1" })
491
528
  },
492
529
  {
493
- name: o.getFourDimensionData,
530
+ name: m.getFourDimensionData,
494
531
  query: JSON.stringify({
495
532
  action: "searchResultDate",
496
533
  limit: 100,
@@ -500,259 +537,348 @@ const pe = (e) => e.data.map((t) => ({
500
537
  })
501
538
  }
502
539
  ));
503
- const P = {
504
- requests: e.map((i) => ({
505
- name: i.name,
506
- query: btoa(i.query)
540
+ const C = {
541
+ requests: e.map((l) => ({
542
+ name: l.name,
543
+ query: btoa(l.query)
507
544
  }))
508
- }, k = await D.post(
545
+ }, j = await O.post(
509
546
  "/jwt",
510
- I(JSON.stringify(P))
511
- ), n = {
547
+ U(JSON.stringify(C))
548
+ ), s = {
512
549
  status: 200,
513
550
  message: "",
514
551
  result: {}
515
552
  };
516
- for (const i of k.data.responses) {
517
- i.error != null && i.error.code != 200 && (n.status = i.error.code, n.message = i.error.message);
518
- const y = i.attributes !== null && i.attributes !== void 0 ? z(i.attributes) : null, r = i.name, l = y ? JSON.parse(y) : null;
519
- if (!l)
520
- n.result[r] = null;
553
+ 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);
555
+ const g = l.attributes !== null && l.attributes !== void 0 ? z(l.attributes) : null, i = l.name, r = g ? JSON.parse(g) : null;
556
+ if (!r)
557
+ s.result[i] = null;
521
558
  else
522
- switch (r) {
523
- case o.announcement:
524
- n.result[r] = K(l);
559
+ switch (i) {
560
+ case m.announcement:
561
+ s.result[i] = Y(r);
525
562
  break;
526
- case o.gameList:
527
- n.result[r] = X(l);
563
+ case m.gameList:
564
+ s.result[i] = Q(r);
528
565
  break;
529
- case o.cmsList:
530
- n.result[r] = ae(l);
566
+ case m.cmsList:
567
+ s.result[i] = oe(r);
531
568
  break;
532
- case o.paymentsProvider:
533
- n.result[r] = V(
534
- l
569
+ case m.paymentsProvider:
570
+ s.result[i] = V(
571
+ r
535
572
  );
536
573
  break;
537
- case o.getUserProfile:
538
- n.result[r] = Q(l);
574
+ case m.getUserProfile:
575
+ s.result[i] = K(r);
539
576
  break;
540
- case o.vipList:
541
- n.result[r] = Z(l);
577
+ case m.vipList:
578
+ s.result[i] = X(r);
542
579
  break;
543
- case o.vipBonus:
544
- n.result[r] = ee(l);
580
+ case m.vipBonus:
581
+ s.result[i] = ee(r);
545
582
  break;
546
- case o.vipFieldStatus:
547
- n.result[r] = te(l);
583
+ case m.vipFieldStatus:
584
+ s.result[i] = te(r);
548
585
  break;
549
- case o.vipStatus:
550
- n.result[r] = ne(l);
586
+ case m.vipStatus:
587
+ s.result[i] = ne(r);
551
588
  break;
552
- case o.promotion:
553
- n.result[r] = w(l);
589
+ case m.promotion:
590
+ s.result[i] = Z(r);
554
591
  break;
555
- case o.getSetting:
556
- n.result[r] = se(l);
592
+ case m.getSetting:
593
+ s.result[i] = se(r);
557
594
  break;
558
- case o.getCountryMobile:
559
- n.result[r] = oe(
560
- l
595
+ case m.getCountryMobile:
596
+ s.result[i] = ae(
597
+ r
561
598
  );
562
599
  break;
563
- case o.getPlatformTurnoverRate:
564
- n.result[r] = ie(
565
- l
600
+ case m.getPlatformTurnoverRate:
601
+ s.result[i] = ie(
602
+ r
566
603
  );
567
604
  break;
568
- case o.mainWallet:
569
- n.result[r] = re(l);
605
+ case m.mainWallet:
606
+ s.result[i] = re(r);
570
607
  break;
571
- case o.getLanguageSetting:
572
- n.result[r] = le(
573
- l
608
+ case m.getLanguageSetting:
609
+ s.result[i] = le(
610
+ r
574
611
  );
575
612
  break;
576
- case o.getFourDimensionData:
577
- n.result[r] = ue(
578
- l
613
+ case m.getFourDimensionData:
614
+ s.result[i] = ue(
615
+ r
579
616
  );
580
617
  break;
581
- case o.getCompany:
582
- n.result[r] = me(l);
618
+ case m.getCompany:
619
+ s.result[i] = me(r);
583
620
  break;
584
- case o.searchResultDate:
585
- n.result[r] = ce(
586
- l
621
+ case m.searchResultDate:
622
+ s.result[i] = ce(
623
+ r
587
624
  );
588
625
  break;
589
- case o.searchHot:
590
- n.result[r] = pe(l);
626
+ case m.searchHot:
627
+ s.result[i] = pe(r);
628
+ break;
629
+ case m.searchByDate:
630
+ s.result[i] = ge(r);
591
631
  break;
592
632
  }
593
633
  }
594
- if (o.vipList in n.result && ((t = n.result) != null && t.vipList)) {
595
- const i = n.result.vipList;
596
- let y = 4;
597
- 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 && ((u = n.result) != null && u.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)) {
598
- const r = n.result.vipStatus, {
599
- current_grade_id: l,
600
- current_deposit: R,
601
- current_turnover: C,
602
- percentage: A
603
- } = r, j = i.list.findIndex((S) => S.id === l);
604
- i.list = i.list.map((S, F) => {
605
- const G = F === j;
606
- let T = "0", O = "0", N = 0;
607
- return G ? (T = `${Math.min(Number(R), Number(S.deposit.total))}`, O = `${Math.min(Number(C), Number(S.turnover.total))}`, N = A) : F < j ? (T = S.deposit.total, O = S.turnover.total, N = 1) : F > j && (T = "0.00", O = "0.00", N = 0), {
608
- ...S,
609
- is_current_level: G,
610
- deposit: {
611
- ...S.deposit,
612
- isShow: y === 1 || y === 3 || y === 4,
613
- current: T
614
- },
615
- turnover: {
616
- ...S.turnover,
617
- isShow: y === 2 || y === 3 || y === 4,
618
- current: O
619
- },
620
- percentage: N
621
- };
622
- }), delete n.result.vipStatus;
634
+ if (m.vipList in s.result && ((t = s.result) != null && t.vipList)) {
635
+ const l = s.result.vipList;
636
+ 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, {
640
+ current_grade_id: r,
641
+ current_deposit: R,
642
+ current_turnover: D,
643
+ percentage: I
644
+ } = i, M = l.list.findIndex((x) => x.id === r);
645
+ l.list = l.list.map((x, T) => {
646
+ const P = T === M;
647
+ 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), {
649
+ ...x,
650
+ is_current_level: P,
651
+ deposit: {
652
+ ...x.deposit,
653
+ isShow: g === 1 || g === 3 || g === 4,
654
+ current: k
655
+ },
656
+ turnover: {
657
+ ...x.turnover,
658
+ isShow: g === 2 || g === 3 || g === 4,
659
+ current: u
660
+ },
661
+ percentage: F
662
+ };
663
+ });
664
+ }
665
+ delete s.result.vipStatus;
666
+ }
667
+ if (m.vipFieldStatus in s.result) {
668
+ if ((d = s.result) != null && d.vipFieldStatus) {
669
+ const i = s.result.vipFieldStatus, r = [];
670
+ r.push({
671
+ name: "",
672
+ code: "vipLevel",
673
+ value: l.list.map((u) => u.name)
674
+ });
675
+ const R = i.findIndex(
676
+ (u) => u.fieldName == "upgrade_bonus"
677
+ );
678
+ R > -1 && r.push({
679
+ name: i[R].showName,
680
+ code: "",
681
+ value: l.list.map((u) => u.benefit_list.upgrade.bonus)
682
+ });
683
+ const D = i.findIndex(
684
+ (u) => u.fieldName == "upgrade_bonus_multiply"
685
+ );
686
+ D > -1 && r.push({
687
+ name: i[D].showName,
688
+ code: "",
689
+ value: l.list.map((u) => u.benefit_list.upgrade.turnover)
690
+ });
691
+ const I = i.findIndex(
692
+ (u) => u.fieldName == "monthly_bonus"
693
+ );
694
+ I > -1 && r.push({
695
+ name: i[I].showName,
696
+ code: "",
697
+ value: l.list.map((u) => u.benefit_list.monthly.bonus)
698
+ });
699
+ const M = i.findIndex(
700
+ (u) => u.fieldName == "monthly_bonus_multiply"
701
+ );
702
+ M > -1 && r.push({
703
+ name: i[M].showName,
704
+ code: "",
705
+ value: l.list.map((u) => u.benefit_list.monthly.turnover)
706
+ });
707
+ const x = i.findIndex(
708
+ (u) => u.fieldName == "weekly_bonus"
709
+ );
710
+ x > -1 && r.push({
711
+ name: i[x].showName,
712
+ code: "",
713
+ value: l.list.map((u) => u.benefit_list.weekly.bonus)
714
+ });
715
+ const T = i.findIndex(
716
+ (u) => u.fieldName == "weekly_bonus_multiply"
717
+ );
718
+ T > -1 && r.push({
719
+ name: i[T].showName,
720
+ code: "",
721
+ value: l.list.map((u) => u.benefit_list.weekly.turnover)
722
+ });
723
+ const P = i.findIndex(
724
+ (u) => u.fieldName == "daily_bonus"
725
+ );
726
+ P > -1 && r.push({
727
+ name: i[P].showName,
728
+ code: "",
729
+ value: l.list.map((u) => u.benefit_list.daily.bonus)
730
+ });
731
+ const k = i.findIndex(
732
+ (u) => u.fieldName == "daily_bonus_multiply"
733
+ );
734
+ k > -1 && r.push({
735
+ name: i[k].showName,
736
+ code: "",
737
+ value: l.list.map((u) => u.benefit_list.daily.turnover)
738
+ }), (g === 1 || g === 3 || g === 4) && r.push({
739
+ name: "",
740
+ code: "detail_deposit",
741
+ value: l.list.map((u) => u.deposit.total)
742
+ }), (g === 2 || g === 3 || g === 4) && r.push({
743
+ name: "",
744
+ code: "detail_turnover",
745
+ value: l.list.map((u) => u.turnover.total)
746
+ }), l.detail = r;
747
+ }
748
+ delete s.result.vipFieldStatus;
623
749
  }
624
- n.result.vipList = i;
750
+ s.result.vipList = l;
625
751
  }
626
- if (o.gameList in n.result && ((p = n.result) != null && p.gameList)) {
627
- const i = n.result.gameList;
628
- if (o.getPlatformTurnoverRate in n.result && ((c = n.result) != null && c.getPlatformTurnoverRate)) {
629
- const y = n.result.getPlatformTurnoverRate;
630
- i.forEach((r) => {
631
- r.list = r.list.map((l) => {
632
- const R = y.find(
633
- (C) => C.id === l.id
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;
756
+ l.forEach((i) => {
757
+ i.list = i.list.map((r) => {
758
+ const R = g.find(
759
+ (D) => D.id === r.id
634
760
  );
635
761
  return {
636
- ...l,
762
+ ...r,
637
763
  rate: (R == null ? void 0 : R.percentage) ?? "0.00"
638
764
  };
639
765
  });
640
- }), delete n.result.getPlatformTurnoverRate;
766
+ }), delete s.result.getPlatformTurnoverRate;
641
767
  }
642
- n.result.gameList = i;
768
+ s.result.gameList = l;
643
769
  }
644
- if (o.getCompany in n.result && ((g = n.result) != null && g.getCompany)) {
645
- const i = n.result.getCompany;
646
- if (o.searchResultDate in n.result && ((f = n.result) != null && f.searchResultDate)) {
647
- const y = n.result.searchResultDate;
648
- i.forEach((r) => {
649
- const l = y.find((R) => R.id == r.id);
650
- l && (r.date = l == null ? void 0 : l.date);
651
- }), delete n.result.searchResultDate;
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;
774
+ l.forEach((i) => {
775
+ const r = g.find((R) => R.id == i.id);
776
+ r && (i.date = r == null ? void 0 : r.date);
777
+ }), delete s.result.searchResultDate;
652
778
  }
653
- n.result.getCompany = i;
779
+ s.result.getCompany = l;
654
780
  }
655
- return n;
656
- } catch (_) {
657
- return U.isAxiosError(_) ? {
658
- status: ((b = _.response) == null ? void 0 : b.status) || 600,
659
- message: JSON.stringify((L = _.response) == null ? void 0 : L.data),
781
+ return s;
782
+ } catch (v) {
783
+ return A.isAxiosError(v) ? {
784
+ status: ((h = v.response) == null ? void 0 : h.status) || 600,
785
+ message: JSON.stringify((S = v.response) == null ? void 0 : S.data),
660
786
  result: {}
661
- } : (console.error(_), {
662
- status: _.status || 500,
663
- message: _.message,
787
+ } : (console.error(v), {
788
+ status: v.status || 500,
789
+ message: v.message,
664
790
  result: {}
665
791
  });
666
792
  }
667
- }, fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
793
+ }, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
668
794
  __proto__: null,
669
- post: ge
670
- }, Symbol.toStringTag, { value: "Module" })), ye = async (e, t) => {
795
+ post: fe
796
+ }, Symbol.toStringTag, { value: "Module" })), _e = async (e, t) => {
671
797
  try {
672
- const s = {
798
+ const n = {
673
799
  status: 200,
674
800
  message: ""
675
801
  };
676
- return await D.post(
802
+ return await O.post(
677
803
  "/auth/sesh",
678
804
  JSON.stringify({
679
805
  usr: e,
680
806
  pwd: t
681
807
  })
682
- ), s;
683
- } catch (s) {
684
- return console.error(`login: ${JSON.stringify(s)}`), {
685
- status: s.status || 500,
686
- message: s.message
808
+ ), n;
809
+ } catch (n) {
810
+ return console.error(`login: ${JSON.stringify(n)}`), {
811
+ status: n.status || 500,
812
+ message: n.message
687
813
  };
688
814
  }
689
- }, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
815
+ }, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
690
816
  __proto__: null,
691
- call: ye
692
- }, Symbol.toStringTag, { value: "Module" })), _e = async () => {
817
+ call: _e
818
+ }, Symbol.toStringTag, { value: "Module" })), he = async () => {
693
819
  try {
694
820
  const e = {
695
821
  status: 200,
696
822
  message: ""
697
823
  };
698
- return await D.post("/auth/sesh/logout"), e;
824
+ return await O.post("/auth/sesh/logout"), e;
699
825
  } catch (e) {
700
826
  return console.error(`login: ${JSON.stringify(e)}`), {
701
827
  status: e.status || 500,
702
828
  message: e.message
703
829
  };
704
830
  }
705
- }, he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
831
+ }, ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
706
832
  __proto__: null,
707
- call: _e
708
- }, Symbol.toStringTag, { value: "Module" })), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
833
+ call: he
834
+ }, Symbol.toStringTag, { value: "Module" })), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
709
835
  __proto__: null
710
836
  }, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
711
837
  __proto__: null
712
- }, Symbol.toStringTag, { value: "Module" })), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
713
- __proto__: null
714
838
  }, Symbol.toStringTag, { value: "Module" })), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
715
839
  __proto__: null
716
840
  }, Symbol.toStringTag, { value: "Module" })), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
717
841
  __proto__: null
718
- }, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
842
+ }, Symbol.toStringTag, { value: "Module" })), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
843
+ __proto__: null
844
+ }, Symbol.toStringTag, { value: "Module" })), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
719
845
  __proto__: null
720
846
  }, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
721
847
  __proto__: null
722
- }, Symbol.toStringTag, { value: "Module" })), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
848
+ }, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
723
849
  __proto__: null
724
- }, Symbol.toStringTag, { value: "Module" })), ke = {
725
- api: fe,
726
- loginApi: be,
727
- logoutApi: he,
850
+ }, Symbol.toStringTag, { value: "Module" })), Te = {
851
+ api: be,
852
+ loginApi: ye,
853
+ logoutApi: ve,
728
854
  apiType: E,
729
- loginType: ve,
855
+ loginType: xe,
730
856
  logoutType: Se,
731
- announcementType: xe,
857
+ announcementType: Le,
732
858
  paymentsProviderType: J,
733
- gameListType: Le,
734
- vipListType: Re,
735
- promotionType: Me,
859
+ gameListType: Re,
860
+ vipListType: Ne,
861
+ promotionType: ke,
736
862
  cmsListType: De,
737
- mainWalletType: Pe
738
- }, Oe = {
863
+ mainWalletType: Me
864
+ }, Be = {
739
865
  install(e) {
740
- e.config.globalProperties.$library = ke;
866
+ e.config.globalProperties.$library = Te;
741
867
  }
742
868
  };
743
869
  export {
744
- Oe as Repository,
745
- xe as announcementType,
746
- fe as api,
870
+ Be as Repository,
871
+ Le as announcementType,
872
+ be as api,
747
873
  E as apiType,
748
874
  De as cmsListType,
749
- Le as gameListType,
750
- be as loginApi,
751
- ve as loginType,
752
- he as logoutApi,
875
+ Re as gameListType,
876
+ ye as loginApi,
877
+ xe as loginType,
878
+ ve as logoutApi,
753
879
  Se as logoutType,
754
- Pe as mainWalletType,
880
+ Me as mainWalletType,
755
881
  J as paymentsProviderType,
756
- Me as promotionType,
757
- Re as vipListType
882
+ ke as promotionType,
883
+ Ne as vipListType
758
884
  };