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