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