60p82u21t54k 0.0.59 → 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 +386 -313
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/type.d.ts +4 -1
- package/dist/api/type.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/model/applyVipBonus/getApplyVipBonusResponse.d.ts +11 -0
- package/dist/model/applyVipBonus/getApplyVipBonusResponse.d.ts.map +1 -0
- package/dist/model/applyVipBonus/type.d.ts +7 -0
- package/dist/model/applyVipBonus/type.d.ts.map +1 -0
- package/dist/model/vipBonus/getVipBonusResponse.d.ts.map +1 -1
- package/dist/model/vipBonus/type.d.ts +9 -3
- 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 +18 -3
- package/dist/model/vipList/type.d.ts.map +1 -1
- package/dist/plugin.d.ts +2 -1
- package/dist/plugin.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
|
|
@@ -65,28 +65,59 @@ const z = (e) => new TextEncoder().encode(e), A = (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 J = /* @__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 J = /* @__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 J = /* @__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",
|
|
@@ -134,40 +165,40 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
134
165
|
disabled: !1
|
|
135
166
|
}));
|
|
136
167
|
return [t, ...n];
|
|
137
|
-
},
|
|
168
|
+
}, P = (e, t, n, c) => {
|
|
138
169
|
let s, d;
|
|
139
170
|
n > 0 ? s = e > 0 ? Math.max(n, e) : n : s = Math.max(e, 0), c > 0 ? d = t > 0 ? Math.min(c, t) : c : d = Math.max(t, 0);
|
|
140
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 J = /* @__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,7 +251,7 @@ const J = /* @__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
256
|
max: l
|
|
226
257
|
};
|
|
@@ -231,7 +262,7 @@ const J = /* @__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 J = /* @__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 J = /* @__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 J = /* @__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 J = /* @__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 J = /* @__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 J = /* @__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,
|
|
@@ -373,11 +404,26 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
373
404
|
})),
|
|
374
405
|
detail: [],
|
|
375
406
|
bonus: {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
407
|
+
month: {
|
|
408
|
+
isShow: !1,
|
|
409
|
+
isClaimable: !1,
|
|
410
|
+
value: "M",
|
|
411
|
+
timestamp: 0
|
|
412
|
+
},
|
|
413
|
+
week: {
|
|
414
|
+
isShow: !1,
|
|
415
|
+
isClaimable: !1,
|
|
416
|
+
value: "W",
|
|
417
|
+
timestamp: 0
|
|
418
|
+
},
|
|
419
|
+
day: {
|
|
420
|
+
isShow: !1,
|
|
421
|
+
isClaimable: !1,
|
|
422
|
+
value: "D",
|
|
423
|
+
timestamp: 0
|
|
424
|
+
}
|
|
379
425
|
}
|
|
380
|
-
}),
|
|
426
|
+
}), ne = (e) => ({
|
|
381
427
|
category: e.category.sort((t, n) => t.sequence - n.sequence).map((t) => ({
|
|
382
428
|
id: t.catid,
|
|
383
429
|
name: t.name
|
|
@@ -392,20 +438,26 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
392
438
|
name: t.title
|
|
393
439
|
};
|
|
394
440
|
})
|
|
395
|
-
}),
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
441
|
+
}), oe = (e) => ({
|
|
442
|
+
month: {
|
|
443
|
+
isClaimable: e.month === 1
|
|
444
|
+
},
|
|
445
|
+
week: {
|
|
446
|
+
isClaimable: e.week === 1
|
|
447
|
+
},
|
|
448
|
+
day: {
|
|
449
|
+
isClaimable: e.day === 1
|
|
450
|
+
}
|
|
451
|
+
}), se = (e) => e.mdVipSetting.filter((n) => n.status == 1).map((n) => ({
|
|
400
452
|
fieldName: n.fieldname,
|
|
401
453
|
showName: n.showname
|
|
402
|
-
})),
|
|
454
|
+
})), ae = (e) => ({
|
|
403
455
|
current_deposit: e.deposit,
|
|
404
456
|
current_turnover: e.turnOver,
|
|
405
457
|
current_grade_id: e.mdCurrentGrade.gradeindex,
|
|
406
458
|
next_grade_id: e.mdNextGrade.gradeindex,
|
|
407
459
|
percentage: Number(e.percentage) * 100
|
|
408
|
-
}),
|
|
460
|
+
}), ie = (e) => {
|
|
409
461
|
let t = 4;
|
|
410
462
|
e.vipcalculation && (t = Number(e.vipcalculation));
|
|
411
463
|
let n = [];
|
|
@@ -418,7 +470,7 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
418
470
|
})),
|
|
419
471
|
mobileValidate: e.mobilevalidate ? e.mobilevalidate == "1" : !1
|
|
420
472
|
};
|
|
421
|
-
},
|
|
473
|
+
}, re = (e) => {
|
|
422
474
|
let t = [];
|
|
423
475
|
e.mobileBanner && (t = e.mobileBanner);
|
|
424
476
|
let n = [];
|
|
@@ -432,57 +484,57 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
432
484
|
content: s.content
|
|
433
485
|
}))
|
|
434
486
|
};
|
|
435
|
-
},
|
|
487
|
+
}, le = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
|
|
436
488
|
code: t.area_code,
|
|
437
489
|
regex: t.regex,
|
|
438
490
|
value: t.value
|
|
439
|
-
})),
|
|
491
|
+
})), me = (e) => e, ue = (e) => {
|
|
440
492
|
let t = null;
|
|
441
493
|
return e ? e.status != 1 ? t = 0 : t = e.mainwallet : t = 0, {
|
|
442
494
|
amount: t
|
|
443
495
|
};
|
|
444
|
-
},
|
|
496
|
+
}, ce = (e) => e.data.filter((t) => t.status == "1").map((t) => ({
|
|
445
497
|
name: t.title,
|
|
446
498
|
icon_url: t.flag_icon,
|
|
447
499
|
code: t.code
|
|
448
|
-
})),
|
|
500
|
+
})), de = (e) => (console.log(e), {
|
|
449
501
|
name: ""
|
|
450
|
-
}),
|
|
502
|
+
}), pe = (e) => e.data.filter((t) => t.company_status == 1).map((t) => ({
|
|
451
503
|
id: t.company_id,
|
|
452
504
|
name: t.company_name,
|
|
453
505
|
date: []
|
|
454
|
-
})),
|
|
506
|
+
})), ge = (e) => e.data.map((t) => ({
|
|
455
507
|
id: t.key,
|
|
456
|
-
date: t.draw_date.map((n) =>
|
|
508
|
+
date: t.draw_date.map((n) => fe(n.draw_tmactive))
|
|
457
509
|
}));
|
|
458
|
-
function
|
|
510
|
+
function fe(e) {
|
|
459
511
|
const t = new Date(e * 1e3), n = t.getFullYear(), c = ("0" + (t.getMonth() + 1)).slice(-2), s = ("0" + t.getDate()).slice(-2);
|
|
460
512
|
return `${n}-${c}-${s}`;
|
|
461
513
|
}
|
|
462
|
-
const
|
|
514
|
+
const be = (e) => e.data.map((t) => ({
|
|
463
515
|
id: t.company_id,
|
|
464
516
|
list: t.drawCount.map((n) => ({
|
|
465
517
|
combination: n.combination_combination,
|
|
466
518
|
total: n.total
|
|
467
519
|
}))
|
|
468
|
-
})),
|
|
520
|
+
})), ye = (e) => e.data.map((t) => ({
|
|
469
521
|
id: t.company_id,
|
|
470
522
|
resultByDateList: t.draws.map((n) => {
|
|
471
|
-
const c = n.results.filter((
|
|
472
|
-
(
|
|
473
|
-
).map((
|
|
474
|
-
(
|
|
475
|
-
).map((
|
|
476
|
-
(
|
|
477
|
-
).map((
|
|
478
|
-
(
|
|
479
|
-
).map((
|
|
480
|
-
(
|
|
481
|
-
).map((
|
|
482
|
-
(
|
|
483
|
-
).map((
|
|
484
|
-
(
|
|
485
|
-
).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);
|
|
486
538
|
return {
|
|
487
539
|
date: n.date,
|
|
488
540
|
3: c,
|
|
@@ -491,19 +543,19 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
491
543
|
2: d,
|
|
492
544
|
3: b,
|
|
493
545
|
4: p,
|
|
494
|
-
5:
|
|
546
|
+
5: y
|
|
495
547
|
},
|
|
496
548
|
5: {
|
|
497
|
-
1:
|
|
549
|
+
1: _,
|
|
498
550
|
all: h
|
|
499
551
|
},
|
|
500
552
|
6: {
|
|
501
|
-
1:
|
|
553
|
+
1: T,
|
|
502
554
|
all: v
|
|
503
555
|
}
|
|
504
556
|
};
|
|
505
557
|
})
|
|
506
|
-
})),
|
|
558
|
+
})), _e = (e) => e.data.map((t) => ({
|
|
507
559
|
id: t.id,
|
|
508
560
|
date: t.matchDate,
|
|
509
561
|
tag: t.tag,
|
|
@@ -517,31 +569,36 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
517
569
|
name: t.home,
|
|
518
570
|
logo_url: t.homeLogo
|
|
519
571
|
}
|
|
520
|
-
})),
|
|
521
|
-
|
|
572
|
+
})), he = (e) => e, ve = (e) => ({
|
|
573
|
+
status: e.status == 1,
|
|
574
|
+
message: e.message ?? "",
|
|
575
|
+
error_message: e.errormessage ?? "",
|
|
576
|
+
flag: e.flag
|
|
577
|
+
}), xe = async (e) => {
|
|
578
|
+
var t, n, c, s, d, b, p, y, _, h, T;
|
|
522
579
|
try {
|
|
523
|
-
e.findIndex((l) => l.name ===
|
|
580
|
+
e.findIndex((l) => l.name === m.vipList) !== -1 && e.push(
|
|
524
581
|
{
|
|
525
|
-
name:
|
|
582
|
+
name: m.vipBonus,
|
|
526
583
|
query: ""
|
|
527
584
|
},
|
|
528
|
-
{ name:
|
|
529
|
-
{ name:
|
|
530
|
-
{ name:
|
|
531
|
-
), e.findIndex((l) => l.name ===
|
|
532
|
-
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,
|
|
533
590
|
query: ""
|
|
534
591
|
});
|
|
535
592
|
const f = e.findIndex(
|
|
536
|
-
(l) => l.name ===
|
|
593
|
+
(l) => l.name === m.getFourDimensionData
|
|
537
594
|
);
|
|
538
595
|
f !== -1 && e[f].query == "" && (e.splice(f), e.push(
|
|
539
596
|
{
|
|
540
|
-
name:
|
|
597
|
+
name: m.getFourDimensionData,
|
|
541
598
|
query: JSON.stringify({ action: "getCompany", native: "1" })
|
|
542
599
|
},
|
|
543
600
|
{
|
|
544
|
-
name:
|
|
601
|
+
name: m.getFourDimensionData,
|
|
545
602
|
query: JSON.stringify({
|
|
546
603
|
action: "searchResultDate",
|
|
547
604
|
limit: 100,
|
|
@@ -556,7 +613,7 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
556
613
|
name: l.name,
|
|
557
614
|
query: btoa(l.query)
|
|
558
615
|
}))
|
|
559
|
-
},
|
|
616
|
+
}, U = await B.post(
|
|
560
617
|
"/jwt",
|
|
561
618
|
z(JSON.stringify(j))
|
|
562
619
|
), o = {
|
|
@@ -564,247 +621,259 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
564
621
|
message: "",
|
|
565
622
|
result: {}
|
|
566
623
|
};
|
|
567
|
-
for (const l of
|
|
624
|
+
for (const l of U.data.responses) {
|
|
568
625
|
l.error != null && l.error.code != 200 && (o.status = l.error.code, o.message = l.error.message);
|
|
569
|
-
const g = l.attributes !== null && l.attributes !== void 0 ? A(l.attributes) : null,
|
|
570
|
-
if (!
|
|
571
|
-
o.result[
|
|
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;
|
|
572
629
|
else
|
|
573
|
-
switch (
|
|
574
|
-
case
|
|
575
|
-
o.result[
|
|
630
|
+
switch (a) {
|
|
631
|
+
case m.announcement:
|
|
632
|
+
o.result[a] = X(i);
|
|
576
633
|
break;
|
|
577
|
-
case
|
|
578
|
-
o.result[
|
|
634
|
+
case m.gameList:
|
|
635
|
+
o.result[a] = ee(i);
|
|
579
636
|
break;
|
|
580
|
-
case
|
|
581
|
-
o.result[
|
|
637
|
+
case m.cmsList:
|
|
638
|
+
o.result[a] = re(i);
|
|
582
639
|
break;
|
|
583
|
-
case
|
|
584
|
-
o.result[
|
|
585
|
-
|
|
640
|
+
case m.paymentsProvider:
|
|
641
|
+
o.result[a] = H(
|
|
642
|
+
i
|
|
586
643
|
);
|
|
587
644
|
break;
|
|
588
|
-
case
|
|
589
|
-
o.result[
|
|
645
|
+
case m.getUserProfile:
|
|
646
|
+
o.result[a] = Z(i);
|
|
590
647
|
break;
|
|
591
|
-
case
|
|
592
|
-
o.result[
|
|
648
|
+
case m.vipList:
|
|
649
|
+
o.result[a] = te(i);
|
|
593
650
|
break;
|
|
594
|
-
case
|
|
595
|
-
o.result[
|
|
651
|
+
case m.vipBonus:
|
|
652
|
+
console.log(i), o.result[a] = oe(i);
|
|
596
653
|
break;
|
|
597
|
-
case
|
|
598
|
-
o.result[
|
|
654
|
+
case m.vipFieldStatus:
|
|
655
|
+
o.result[a] = se(i);
|
|
599
656
|
break;
|
|
600
|
-
case
|
|
601
|
-
o.result[
|
|
657
|
+
case m.vipStatus:
|
|
658
|
+
o.result[a] = ae(i);
|
|
602
659
|
break;
|
|
603
|
-
case
|
|
604
|
-
o.result[
|
|
660
|
+
case m.promotion:
|
|
661
|
+
o.result[a] = ne(i);
|
|
605
662
|
break;
|
|
606
|
-
case
|
|
607
|
-
o.result[
|
|
663
|
+
case m.getSetting:
|
|
664
|
+
o.result[a] = ie(i);
|
|
608
665
|
break;
|
|
609
|
-
case
|
|
610
|
-
o.result[
|
|
611
|
-
|
|
666
|
+
case m.getCountryMobile:
|
|
667
|
+
o.result[a] = le(
|
|
668
|
+
i
|
|
612
669
|
);
|
|
613
670
|
break;
|
|
614
|
-
case
|
|
615
|
-
o.result[
|
|
616
|
-
|
|
671
|
+
case m.getPlatformTurnoverRate:
|
|
672
|
+
o.result[a] = me(
|
|
673
|
+
i
|
|
617
674
|
);
|
|
618
675
|
break;
|
|
619
|
-
case
|
|
620
|
-
o.result[
|
|
676
|
+
case m.mainWallet:
|
|
677
|
+
o.result[a] = ue(i);
|
|
621
678
|
break;
|
|
622
|
-
case
|
|
623
|
-
o.result[
|
|
624
|
-
|
|
679
|
+
case m.getLanguageSetting:
|
|
680
|
+
o.result[a] = ce(
|
|
681
|
+
i
|
|
625
682
|
);
|
|
626
683
|
break;
|
|
627
|
-
case
|
|
628
|
-
o.result[
|
|
629
|
-
|
|
684
|
+
case m.getFourDimensionData:
|
|
685
|
+
o.result[a] = de(
|
|
686
|
+
i
|
|
630
687
|
);
|
|
631
688
|
break;
|
|
632
|
-
case
|
|
633
|
-
o.result[
|
|
689
|
+
case m.getCompany:
|
|
690
|
+
o.result[a] = pe(i);
|
|
634
691
|
break;
|
|
635
|
-
case
|
|
636
|
-
o.result[
|
|
637
|
-
|
|
692
|
+
case m.searchResultDate:
|
|
693
|
+
o.result[a] = ge(
|
|
694
|
+
i
|
|
638
695
|
);
|
|
639
696
|
break;
|
|
640
|
-
case
|
|
641
|
-
o.result[
|
|
697
|
+
case m.searchHot:
|
|
698
|
+
o.result[a] = be(i);
|
|
642
699
|
break;
|
|
643
|
-
case
|
|
644
|
-
o.result[
|
|
700
|
+
case m.searchByDate:
|
|
701
|
+
o.result[a] = ye(i);
|
|
645
702
|
break;
|
|
646
|
-
case
|
|
647
|
-
o.result[
|
|
648
|
-
|
|
703
|
+
case m.upcomingMatches:
|
|
704
|
+
o.result[a] = _e(
|
|
705
|
+
i
|
|
649
706
|
);
|
|
650
707
|
break;
|
|
651
|
-
case
|
|
652
|
-
o.result[
|
|
708
|
+
case m.deposit:
|
|
709
|
+
o.result[a] = he(i);
|
|
710
|
+
break;
|
|
711
|
+
case m.applyVipBonus:
|
|
712
|
+
o.result[a] = ve(i);
|
|
653
713
|
break;
|
|
654
714
|
}
|
|
655
715
|
}
|
|
656
|
-
if (
|
|
716
|
+
if (m.vipList in o.result && ((t = o.result) != null && t.vipList)) {
|
|
657
717
|
const l = o.result.vipList;
|
|
658
718
|
let g = 4;
|
|
659
|
-
if (
|
|
660
|
-
if ((
|
|
661
|
-
const
|
|
662
|
-
current_grade_id:
|
|
663
|
-
current_deposit:
|
|
664
|
-
current_turnover:
|
|
665
|
-
percentage:
|
|
666
|
-
} =
|
|
667
|
-
l.list = l.list.map((x,
|
|
668
|
-
const
|
|
669
|
-
let
|
|
670
|
-
return
|
|
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), {
|
|
671
731
|
...x,
|
|
672
|
-
is_current_level:
|
|
732
|
+
is_current_level: O,
|
|
673
733
|
deposit: {
|
|
674
734
|
...x.deposit,
|
|
675
735
|
isShow: g === 1 || g === 3 || g === 4,
|
|
676
|
-
current:
|
|
736
|
+
current: R
|
|
677
737
|
},
|
|
678
738
|
turnover: {
|
|
679
739
|
...x.turnover,
|
|
680
740
|
isShow: g === 2 || g === 3 || g === 4,
|
|
681
|
-
current:
|
|
741
|
+
current: u
|
|
682
742
|
},
|
|
683
|
-
percentage:
|
|
743
|
+
percentage: w
|
|
684
744
|
};
|
|
685
745
|
});
|
|
686
746
|
}
|
|
687
747
|
delete o.result.vipStatus;
|
|
688
748
|
}
|
|
689
|
-
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) {
|
|
690
759
|
if ((d = o.result) != null && d.vipFieldStatus) {
|
|
691
|
-
const
|
|
692
|
-
|
|
760
|
+
const a = o.result.vipFieldStatus, i = [];
|
|
761
|
+
i.push({
|
|
693
762
|
name: "",
|
|
694
763
|
code: "vipLevel",
|
|
695
|
-
value: l.list.map((
|
|
764
|
+
value: l.list.map((u) => u.name)
|
|
696
765
|
});
|
|
697
|
-
const
|
|
698
|
-
(
|
|
766
|
+
const S = a.findIndex(
|
|
767
|
+
(u) => u.fieldName == "upgrade_bonus"
|
|
699
768
|
);
|
|
700
|
-
|
|
701
|
-
name:
|
|
769
|
+
S > -1 && i.push({
|
|
770
|
+
name: a[S].showName,
|
|
702
771
|
code: "",
|
|
703
|
-
value: l.list.map((
|
|
772
|
+
value: l.list.map((u) => u.benefit_list.upgrade.bonus)
|
|
704
773
|
});
|
|
705
|
-
const
|
|
706
|
-
(
|
|
774
|
+
const C = a.findIndex(
|
|
775
|
+
(u) => u.fieldName == "upgrade_bonus_multiply"
|
|
707
776
|
);
|
|
708
|
-
|
|
709
|
-
name:
|
|
777
|
+
C > -1 && i.push({
|
|
778
|
+
name: a[C].showName,
|
|
710
779
|
code: "",
|
|
711
|
-
value: l.list.map((
|
|
780
|
+
value: l.list.map((u) => u.benefit_list.upgrade.turnover)
|
|
712
781
|
});
|
|
713
|
-
const
|
|
714
|
-
(
|
|
782
|
+
const L = a.findIndex(
|
|
783
|
+
(u) => u.fieldName == "monthly_bonus"
|
|
715
784
|
);
|
|
716
|
-
|
|
717
|
-
name:
|
|
785
|
+
l.bonus.month.isShow = L > -1, L > -1 && i.push({
|
|
786
|
+
name: a[L].showName,
|
|
718
787
|
code: "",
|
|
719
|
-
value: l.list.map((
|
|
788
|
+
value: l.list.map((u) => u.benefit_list.monthly.bonus)
|
|
720
789
|
});
|
|
721
|
-
const
|
|
722
|
-
(
|
|
790
|
+
const k = a.findIndex(
|
|
791
|
+
(u) => u.fieldName == "monthly_bonus_multiply"
|
|
723
792
|
);
|
|
724
|
-
|
|
725
|
-
name:
|
|
793
|
+
k > -1 && i.push({
|
|
794
|
+
name: a[k].showName,
|
|
726
795
|
code: "",
|
|
727
|
-
value: l.list.map((
|
|
796
|
+
value: l.list.map((u) => u.benefit_list.monthly.turnover)
|
|
728
797
|
});
|
|
729
|
-
const x =
|
|
730
|
-
(
|
|
798
|
+
const x = a.findIndex(
|
|
799
|
+
(u) => u.fieldName == "weekly_bonus"
|
|
731
800
|
);
|
|
732
|
-
x > -1 &&
|
|
733
|
-
name:
|
|
801
|
+
l.bonus.week.isShow = x > -1, x > -1 && i.push({
|
|
802
|
+
name: a[x].showName,
|
|
734
803
|
code: "",
|
|
735
|
-
value: l.list.map((
|
|
804
|
+
value: l.list.map((u) => u.benefit_list.weekly.bonus)
|
|
736
805
|
});
|
|
737
|
-
const
|
|
738
|
-
(
|
|
806
|
+
const N = a.findIndex(
|
|
807
|
+
(u) => u.fieldName == "weekly_bonus_multiply"
|
|
739
808
|
);
|
|
740
|
-
|
|
741
|
-
name:
|
|
809
|
+
N > -1 && i.push({
|
|
810
|
+
name: a[N].showName,
|
|
742
811
|
code: "",
|
|
743
|
-
value: l.list.map((
|
|
812
|
+
value: l.list.map((u) => u.benefit_list.weekly.turnover)
|
|
744
813
|
});
|
|
745
|
-
const
|
|
746
|
-
(
|
|
814
|
+
const O = a.findIndex(
|
|
815
|
+
(u) => u.fieldName == "daily_bonus"
|
|
747
816
|
);
|
|
748
|
-
|
|
749
|
-
name:
|
|
817
|
+
l.bonus.day.isShow = O > -1, O > -1 && i.push({
|
|
818
|
+
name: a[O].showName,
|
|
750
819
|
code: "",
|
|
751
|
-
value: l.list.map((
|
|
820
|
+
value: l.list.map((u) => u.benefit_list.daily.bonus)
|
|
752
821
|
});
|
|
753
|
-
const
|
|
754
|
-
(
|
|
822
|
+
const R = a.findIndex(
|
|
823
|
+
(u) => u.fieldName == "daily_bonus_multiply"
|
|
755
824
|
);
|
|
756
|
-
|
|
757
|
-
name:
|
|
825
|
+
R > -1 && i.push({
|
|
826
|
+
name: a[R].showName,
|
|
758
827
|
code: "",
|
|
759
|
-
value: l.list.map((
|
|
760
|
-
}), (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({
|
|
761
830
|
name: "",
|
|
762
831
|
code: "detail_deposit",
|
|
763
|
-
value: l.list.map((
|
|
764
|
-
}), (g === 2 || g === 3 || g === 4) &&
|
|
832
|
+
value: l.list.map((u) => u.deposit.total)
|
|
833
|
+
}), (g === 2 || g === 3 || g === 4) && i.push({
|
|
765
834
|
name: "",
|
|
766
835
|
code: "detail_turnover",
|
|
767
|
-
value: l.list.map((
|
|
768
|
-
}), l.detail =
|
|
836
|
+
value: l.list.map((u) => u.turnover.total)
|
|
837
|
+
}), l.detail = i;
|
|
769
838
|
}
|
|
770
839
|
delete o.result.vipFieldStatus;
|
|
771
840
|
}
|
|
772
841
|
o.result.vipList = l;
|
|
773
842
|
}
|
|
774
|
-
if (
|
|
843
|
+
if (m.gameList in o.result && ((b = o.result) != null && b.gameList)) {
|
|
775
844
|
const l = o.result.gameList;
|
|
776
|
-
if (
|
|
845
|
+
if (m.getPlatformTurnoverRate in o.result && ((p = o.result) != null && p.getPlatformTurnoverRate)) {
|
|
777
846
|
const g = o.result.getPlatformTurnoverRate;
|
|
778
|
-
l.forEach((
|
|
779
|
-
|
|
780
|
-
const
|
|
781
|
-
(
|
|
847
|
+
l.forEach((a) => {
|
|
848
|
+
a.list = a.list.map((i) => {
|
|
849
|
+
const S = g.find(
|
|
850
|
+
(C) => C.id === i.id
|
|
782
851
|
);
|
|
783
852
|
return {
|
|
784
|
-
...
|
|
785
|
-
rate: (
|
|
853
|
+
...i,
|
|
854
|
+
rate: (S == null ? void 0 : S.percentage) ?? "0.00"
|
|
786
855
|
};
|
|
787
856
|
});
|
|
788
857
|
}), delete o.result.getPlatformTurnoverRate;
|
|
789
858
|
}
|
|
790
859
|
o.result.gameList = l;
|
|
791
860
|
}
|
|
792
|
-
if (
|
|
861
|
+
if (m.getCompany in o.result && ((y = o.result) != null && y.getCompany)) {
|
|
793
862
|
const l = o.result.getCompany;
|
|
794
|
-
if (
|
|
863
|
+
if (m.searchResultDate in o.result && (_ = o.result) != null && _.searchResultDate) {
|
|
795
864
|
const g = o.result.searchResultDate;
|
|
796
|
-
l.forEach((
|
|
797
|
-
const
|
|
798
|
-
|
|
865
|
+
l.forEach((a) => {
|
|
866
|
+
const i = g.find((S) => S.id == a.id);
|
|
867
|
+
i && (a.date = i == null ? void 0 : i.date);
|
|
799
868
|
}), delete o.result.searchResultDate;
|
|
800
869
|
}
|
|
801
870
|
o.result.getCompany = l;
|
|
802
871
|
}
|
|
803
872
|
return o;
|
|
804
873
|
} catch (v) {
|
|
805
|
-
return
|
|
874
|
+
return G.isAxiosError(v) ? {
|
|
806
875
|
status: ((h = v.response) == null ? void 0 : h.status) || 600,
|
|
807
|
-
message: JSON.stringify((
|
|
876
|
+
message: JSON.stringify((T = v.response) == null ? void 0 : T.data),
|
|
808
877
|
result: {}
|
|
809
878
|
} : (console.error(v), {
|
|
810
879
|
status: v.status || 500,
|
|
@@ -812,10 +881,10 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
812
881
|
result: {}
|
|
813
882
|
});
|
|
814
883
|
}
|
|
815
|
-
},
|
|
884
|
+
}, Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
816
885
|
__proto__: null,
|
|
817
|
-
post:
|
|
818
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
886
|
+
post: xe
|
|
887
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = async (e, t) => {
|
|
819
888
|
try {
|
|
820
889
|
const n = {
|
|
821
890
|
status: 200,
|
|
@@ -834,10 +903,10 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
834
903
|
message: n.message
|
|
835
904
|
};
|
|
836
905
|
}
|
|
837
|
-
},
|
|
906
|
+
}, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
838
907
|
__proto__: null,
|
|
839
|
-
call:
|
|
840
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
908
|
+
call: Te
|
|
909
|
+
}, Symbol.toStringTag, { value: "Module" })), De = async () => {
|
|
841
910
|
try {
|
|
842
911
|
const e = {
|
|
843
912
|
status: 200,
|
|
@@ -850,65 +919,69 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
850
919
|
message: e.message
|
|
851
920
|
};
|
|
852
921
|
}
|
|
853
|
-
},
|
|
922
|
+
}, Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
854
923
|
__proto__: null,
|
|
855
|
-
call:
|
|
924
|
+
call: De
|
|
925
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
926
|
+
__proto__: null
|
|
856
927
|
}, Symbol.toStringTag, { value: "Module" })), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
857
928
|
__proto__: null
|
|
858
929
|
}, Symbol.toStringTag, { value: "Module" })), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
859
930
|
__proto__: null
|
|
860
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
931
|
+
}, Symbol.toStringTag, { value: "Module" })), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
861
932
|
__proto__: null
|
|
862
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
933
|
+
}, Symbol.toStringTag, { value: "Module" })), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
863
934
|
__proto__: null
|
|
864
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
935
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
865
936
|
__proto__: null
|
|
866
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
937
|
+
}, Symbol.toStringTag, { value: "Module" })), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
867
938
|
__proto__: null
|
|
868
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
939
|
+
}, Symbol.toStringTag, { value: "Module" })), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
869
940
|
__proto__: null
|
|
870
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
941
|
+
}, Symbol.toStringTag, { value: "Module" })), Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
871
942
|
__proto__: null
|
|
872
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
943
|
+
}, Symbol.toStringTag, { value: "Module" })), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
873
944
|
__proto__: null
|
|
874
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
945
|
+
}, Symbol.toStringTag, { value: "Module" })), Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
875
946
|
__proto__: null
|
|
876
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
877
|
-
api:
|
|
878
|
-
loginApi:
|
|
879
|
-
logoutApi:
|
|
880
|
-
apiType:
|
|
881
|
-
loginType:
|
|
882
|
-
logoutType:
|
|
883
|
-
announcementType:
|
|
884
|
-
paymentsProviderType:
|
|
885
|
-
gameListType:
|
|
886
|
-
vipListType:
|
|
887
|
-
promotionType:
|
|
888
|
-
cmsListType:
|
|
889
|
-
mainWalletType:
|
|
890
|
-
upcomingMatchType:
|
|
891
|
-
depositType:
|
|
892
|
-
|
|
947
|
+
}, Symbol.toStringTag, { value: "Module" })), Ie = {
|
|
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 = {
|
|
893
965
|
install(e) {
|
|
894
|
-
e.config.globalProperties.$library =
|
|
966
|
+
e.config.globalProperties.$library = Ie;
|
|
895
967
|
}
|
|
896
968
|
};
|
|
897
969
|
export {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
Be as
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
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
|
|
914
987
|
};
|