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