60p82u21t54k 0.0.56 → 0.0.58
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 +410 -306
- 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/upcomingMatches/getUpcomingMatchesResponse.d.ts +21 -0
- package/dist/model/upcomingMatches/getUpcomingMatchesResponse.d.ts.map +1 -0
- package/dist/model/upcomingMatches/type.d.ts +16 -0
- package/dist/model/upcomingMatches/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 $ from "axios";
|
|
2
|
+
const O = $.create({
|
|
3
3
|
baseURL: "/graph",
|
|
4
4
|
timeout: 5e3,
|
|
5
5
|
// Request timeout
|
|
@@ -45,11 +45,11 @@ const M = A.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,47 +59,47 @@ M.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 A = (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.upcomingMatches = "upcomingMatches", 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 M = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(M || {});
|
|
75
75
|
const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
76
|
__proto__: null,
|
|
77
|
-
PaymentType:
|
|
78
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
77
|
+
PaymentType: M
|
|
78
|
+
}, Symbol.toStringTag, { value: "Module" })), w = (e) => e.mdPaymentChannels.map((t) => {
|
|
79
79
|
const n = [];
|
|
80
80
|
switch (t.name) {
|
|
81
|
-
case
|
|
82
|
-
n.push(
|
|
81
|
+
case M.default:
|
|
82
|
+
n.push(U(t.paymentmethod.manual, e));
|
|
83
83
|
break;
|
|
84
|
-
case
|
|
85
|
-
n.push(
|
|
84
|
+
case M.pay:
|
|
85
|
+
n.push(V(t.paymentmethod.onlinebanking, e));
|
|
86
86
|
break;
|
|
87
87
|
default:
|
|
88
88
|
if (t.paymentmethod.auto.bank.length > 0 && n.push(
|
|
89
|
-
|
|
89
|
+
W(t.bankid ?? 0, t.paymentmethod.auto, e)
|
|
90
90
|
), t.paymentmethod.manual.bank.length > 0) {
|
|
91
|
-
let
|
|
91
|
+
let c = !1;
|
|
92
92
|
for (let s = 0; s < t.paymentmethod.manual.bank.length; s++) {
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
-
|
|
93
|
+
const d = t.paymentmethod.manual.bank[s];
|
|
94
|
+
if (d.list && d.list.length > 0) {
|
|
95
|
+
c = !0;
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
c && n.push(U(t.paymentmethod.manual, e));
|
|
100
100
|
}
|
|
101
101
|
t.paymentmethod.fixamount.bank.length > 0 && n.push(
|
|
102
|
-
|
|
102
|
+
H(t.bankid ?? 0, t.paymentmethod.fixamount)
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
return {
|
|
@@ -107,10 +107,10 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
107
107
|
imageUrl: `/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,
|
|
108
108
|
paymentList: n
|
|
109
109
|
};
|
|
110
|
-
}),
|
|
110
|
+
}), G = {
|
|
111
111
|
id: 0,
|
|
112
112
|
name: "",
|
|
113
|
-
type:
|
|
113
|
+
type: M.unknown,
|
|
114
114
|
promo: [],
|
|
115
115
|
bank: [],
|
|
116
116
|
requiredField: {
|
|
@@ -121,55 +121,55 @@ 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
|
-
}, n = e.map((
|
|
130
|
+
}, n = e.map((c, s) => ({
|
|
131
131
|
id: s + 1,
|
|
132
|
-
name:
|
|
133
|
-
value:
|
|
132
|
+
name: c.promodesc,
|
|
133
|
+
value: c.promoindex.toString(),
|
|
134
134
|
disabled: !1
|
|
135
135
|
}));
|
|
136
136
|
return [t, ...n];
|
|
137
|
-
},
|
|
138
|
-
let s,
|
|
139
|
-
n > 0 ? s = e > 0 ? Math.max(n, e) : n : s = Math.max(e, 0),
|
|
140
|
-
const
|
|
141
|
-
let
|
|
142
|
-
|
|
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 ?
|
|
137
|
+
}, B = (e, t, n, c) => {
|
|
138
|
+
let s, d;
|
|
139
|
+
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 b = Math.round(s);
|
|
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 o of f)
|
|
148
|
+
o !== "" && L.push(o);
|
|
149
|
+
for (let o = 0; o < L.length; o++)
|
|
150
|
+
o === 0 ? y += (parseInt(L[o]) + 1).toString() : y += "0";
|
|
151
|
+
f = Math.round((p - b) * 0.5).toString().split(""), L = [];
|
|
152
|
+
for (const o of f)
|
|
153
|
+
o !== "" && L.push(o);
|
|
154
|
+
for (let o = 0; o < L.length; o++)
|
|
155
|
+
o === 0 ? h += (parseInt(L[o]) + 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:
|
|
164
|
-
},
|
|
159
|
+
b.toString(),
|
|
160
|
+
y,
|
|
161
|
+
h,
|
|
162
|
+
p.toString()
|
|
163
|
+
], minAmount: b, maxAmount: d };
|
|
164
|
+
}, U = (e, t) => t ? {
|
|
165
165
|
id: 0,
|
|
166
166
|
name: "manualMethod",
|
|
167
|
-
type:
|
|
168
|
-
promo:
|
|
167
|
+
type: M.manual,
|
|
168
|
+
promo: q(e.promo),
|
|
169
169
|
bank: e.bank.map((s) => {
|
|
170
|
-
const
|
|
171
|
-
Number(
|
|
172
|
-
Number(
|
|
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: _, maxAmount: y } = B(
|
|
171
|
+
Number(d),
|
|
172
|
+
Number(b),
|
|
173
173
|
t.mdBankLevelDetail.deposit_min,
|
|
174
174
|
t.mdBankLevelDetail.deposit_max
|
|
175
175
|
);
|
|
@@ -180,47 +180,47 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
180
180
|
accountName: s.list && s.list.length > 0 ? s.list[0].bankaccountname ?? "" : "",
|
|
181
181
|
accountNo: s.list && s.list.length > 0 ? s.list[0].bankaccountno ?? "" : "",
|
|
182
182
|
qrcode: s.list && s.list.length > 0 ? s.list[0].bankaccountdesc : "",
|
|
183
|
-
amountList:
|
|
184
|
-
min:
|
|
185
|
-
max:
|
|
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, V = (e, t) => t ? {
|
|
193
193
|
id: 0,
|
|
194
194
|
name: "onlineBankingMethod",
|
|
195
|
-
type:
|
|
196
|
-
promo:
|
|
195
|
+
type: M.pay,
|
|
196
|
+
promo: q(e.promo),
|
|
197
197
|
bank: e.banklist.map((s) => {
|
|
198
|
-
let
|
|
199
|
-
const
|
|
200
|
-
for (let
|
|
201
|
-
t.mdGatewayMinMax[
|
|
202
|
-
const { amountList:
|
|
203
|
-
Number(
|
|
204
|
-
Number(
|
|
198
|
+
let d = "0.00", b = "0.00";
|
|
199
|
+
const p = s.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 = s.pg.map((f) => {
|
|
214
|
+
const L = f.mintransaction ?? "0.00", C = f.maxtransaction ?? "0.00", { amountList: j, minAmount: o, 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:
|
|
221
|
+
id: f.pgindex,
|
|
222
|
+
name: f.bankaccountname,
|
|
223
|
+
amountList: j,
|
|
224
224
|
min: o,
|
|
225
225
|
max: l
|
|
226
226
|
};
|
|
@@ -231,7 +231,7 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
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,50 +242,50 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
242
242
|
depositor: !1,
|
|
243
243
|
uploadReceipt: !1
|
|
244
244
|
}
|
|
245
|
-
} :
|
|
246
|
-
if (!n) return
|
|
247
|
-
const
|
|
245
|
+
} : G, W = (e, t, n) => {
|
|
246
|
+
if (!n) return G;
|
|
247
|
+
const c = M.auto;
|
|
248
248
|
let s = [];
|
|
249
|
-
const
|
|
249
|
+
const d = n.mdGatewayMinMax;
|
|
250
250
|
if (t.bank.length > 0 && n.mdPGSelection == "1")
|
|
251
|
-
s = t.bank.map((
|
|
252
|
-
const { amountList:
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
s = t.bank.map((p) => {
|
|
252
|
+
const { amountList: _, minAmount: y, maxAmount: h } = B(
|
|
253
|
+
p.minTransaction ?? 0,
|
|
254
|
+
p.maxTransaction ?? 0,
|
|
255
255
|
n.mdBankLevelDetail.onlinepayment_min,
|
|
256
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 a = 0; a <
|
|
269
|
-
|
|
270
|
-
const { amountList:
|
|
271
|
-
Number(
|
|
272
|
-
Number(
|
|
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
273
|
n.mdBankLevelDetail.onlinepayment_min,
|
|
274
274
|
n.mdBankLevelDetail.onlinepayment_max
|
|
275
|
-
),
|
|
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
|
-
s.push(
|
|
282
|
+
s.push(v);
|
|
283
283
|
}
|
|
284
284
|
return {
|
|
285
285
|
id: e,
|
|
286
286
|
name: "autoMethod",
|
|
287
|
-
type:
|
|
288
|
-
promo:
|
|
287
|
+
type: c,
|
|
288
|
+
promo: q(t.promo),
|
|
289
289
|
bank: s,
|
|
290
290
|
requiredField: {
|
|
291
291
|
deposit_bank: !1,
|
|
@@ -296,21 +296,21 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
296
296
|
uploadReceipt: !1
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
|
-
},
|
|
300
|
-
const n =
|
|
299
|
+
}, H = (e, t) => {
|
|
300
|
+
const n = M.fix;
|
|
301
301
|
return {
|
|
302
302
|
id: e,
|
|
303
303
|
name: "fixAmountMethod",
|
|
304
304
|
type: n,
|
|
305
|
-
promo:
|
|
305
|
+
promo: q(t.promo),
|
|
306
306
|
bank: t.bank.map((s) => {
|
|
307
|
-
const
|
|
307
|
+
const d = s.amtlist.map(Number).sort((p, _) => p - _);
|
|
308
308
|
return {
|
|
309
309
|
id: s.pgindex,
|
|
310
310
|
name: s.name,
|
|
311
311
|
amountList: s.amtlist,
|
|
312
|
-
min:
|
|
313
|
-
max:
|
|
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,18 +322,18 @@ 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,
|
|
@@ -345,7 +345,7 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
345
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,
|
|
@@ -377,7 +377,7 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
377
377
|
showWeekButton: !1,
|
|
378
378
|
showDayButton: !1
|
|
379
379
|
}
|
|
380
|
-
}),
|
|
380
|
+
}), Z = (e) => ({
|
|
381
381
|
category: e.category.sort((t, n) => t.sequence - n.sequence).map((t) => ({
|
|
382
382
|
id: t.catid,
|
|
383
383
|
name: t.name
|
|
@@ -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,
|
|
@@ -412,10 +411,10 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
412
411
|
let n = [];
|
|
413
412
|
return e.extralivechat && (n = JSON.parse(e.extralivechat)), {
|
|
414
413
|
vip_calculation: t,
|
|
415
|
-
livechat: n.filter((
|
|
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
|
};
|
|
@@ -424,11 +423,11 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
424
423
|
e.mobileBanner && (t = e.mobileBanner);
|
|
425
424
|
let n = [];
|
|
426
425
|
e.mobileAd && (n = e.mobileAd);
|
|
427
|
-
let
|
|
428
|
-
return e.mobileAbout && (
|
|
426
|
+
let c = [];
|
|
427
|
+
return e.mobileAbout && (c = e.mobileAbout), {
|
|
429
428
|
banner: t.map((s) => `${s.imagepath}?${s.filemtime}`),
|
|
430
429
|
ad: n.map((s) => `${s.imagepath}?${s.filemtime}`),
|
|
431
|
-
about:
|
|
430
|
+
about: c.map((s) => ({
|
|
432
431
|
name: s.name,
|
|
433
432
|
content: s.content
|
|
434
433
|
}))
|
|
@@ -457,8 +456,8 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
457
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), n = t.getFullYear(),
|
|
461
|
-
return `${n}-${
|
|
459
|
+
const t = new Date(e * 1e3), n = t.getFullYear(), c = ("0" + (t.getMonth() + 1)).slice(-2), s = ("0" + t.getDate()).slice(-2);
|
|
460
|
+
return `${n}-${c}-${s}`;
|
|
462
461
|
}
|
|
463
462
|
const pe = (e) => e.data.map((t) => ({
|
|
464
463
|
id: t.company_id,
|
|
@@ -469,66 +468,80 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
469
468
|
})), ge = (e) => e.data.map((t) => ({
|
|
470
469
|
id: t.company_id,
|
|
471
470
|
resultByDateList: t.draws.map((n) => {
|
|
472
|
-
const
|
|
471
|
+
const c = n.results.filter((a) => a.combination_dimension == 3).map((a) => a.combination_combination), s = n.results.filter(
|
|
473
472
|
(a) => a.combination_dimension == 4 && a.combination_position == 1
|
|
474
|
-
).map((a) => a.combination_combination),
|
|
473
|
+
).map((a) => a.combination_combination), d = n.results.filter(
|
|
475
474
|
(a) => a.combination_dimension == 4 && a.combination_position == 2
|
|
476
|
-
).map((a) => a.combination_combination),
|
|
475
|
+
).map((a) => a.combination_combination), b = n.results.filter(
|
|
477
476
|
(a) => a.combination_dimension == 4 && a.combination_position == 3
|
|
478
|
-
).map((a) => a.combination_combination),
|
|
477
|
+
).map((a) => a.combination_combination), p = n.results.filter(
|
|
479
478
|
(a) => a.combination_dimension == 4 && a.combination_position == 4
|
|
480
|
-
).map((a) => a.combination_combination),
|
|
479
|
+
).map((a) => a.combination_combination), _ = n.results.filter(
|
|
481
480
|
(a) => a.combination_dimension == 4 && a.combination_position == 5
|
|
482
|
-
).map((a) => a.combination_combination),
|
|
481
|
+
).map((a) => a.combination_combination), y = n.results.filter(
|
|
483
482
|
(a) => a.combination_dimension == 5 && a.combination_position == 1
|
|
484
|
-
).map((a) => a.combination_combination),
|
|
483
|
+
).map((a) => a.combination_combination), h = n.results.filter((a) => a.combination_dimension == 5).map((a) => a.combination_combination), S = n.results.filter(
|
|
485
484
|
(a) => a.combination_dimension == 6 && a.combination_position == 1
|
|
486
|
-
).map((a) => a.combination_combination),
|
|
485
|
+
).map((a) => a.combination_combination), v = n.results.filter((a) => a.combination_dimension == 6).map((a) => a.combination_combination);
|
|
487
486
|
return {
|
|
488
487
|
date: n.date,
|
|
489
|
-
3:
|
|
488
|
+
3: c,
|
|
490
489
|
4: {
|
|
491
490
|
1: s,
|
|
492
|
-
2:
|
|
493
|
-
3:
|
|
494
|
-
4:
|
|
495
|
-
5:
|
|
491
|
+
2: d,
|
|
492
|
+
3: b,
|
|
493
|
+
4: p,
|
|
494
|
+
5: _
|
|
496
495
|
},
|
|
497
496
|
5: {
|
|
498
|
-
1:
|
|
499
|
-
all:
|
|
497
|
+
1: y,
|
|
498
|
+
all: h
|
|
500
499
|
},
|
|
501
500
|
6: {
|
|
502
|
-
1:
|
|
503
|
-
all:
|
|
501
|
+
1: S,
|
|
502
|
+
all: v
|
|
504
503
|
}
|
|
505
504
|
};
|
|
506
505
|
})
|
|
507
|
-
})), fe =
|
|
508
|
-
|
|
506
|
+
})), fe = (e) => e.data.map((t) => ({
|
|
507
|
+
id: t.id,
|
|
508
|
+
date: t.matchDate,
|
|
509
|
+
tag: t.tag,
|
|
510
|
+
away: {
|
|
511
|
+
id: t.awayid,
|
|
512
|
+
name: t.away,
|
|
513
|
+
logo_url: t.awayLogo
|
|
514
|
+
},
|
|
515
|
+
home: {
|
|
516
|
+
id: t.homeid,
|
|
517
|
+
name: t.home,
|
|
518
|
+
logo_url: t.homeLogo
|
|
519
|
+
}
|
|
520
|
+
})), be = async (e) => {
|
|
521
|
+
var t, n, c, s, d, b, p, _, y, h, S;
|
|
509
522
|
try {
|
|
510
|
-
e.findIndex((l) => l.name ===
|
|
523
|
+
e.findIndex((l) => l.name === m.vipList) !== -1 && e.push(
|
|
511
524
|
{
|
|
512
|
-
name:
|
|
525
|
+
name: m.vipBonus,
|
|
513
526
|
query: ""
|
|
514
527
|
},
|
|
515
|
-
{ name:
|
|
516
|
-
{ name:
|
|
517
|
-
{ name:
|
|
518
|
-
), e.findIndex((l) => l.name ===
|
|
519
|
-
name:
|
|
528
|
+
{ name: m.vipFieldStatus, query: "" },
|
|
529
|
+
{ name: m.vipStatus, query: "" },
|
|
530
|
+
{ name: m.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
|
|
531
|
+
), e.findIndex((l) => l.name === m.gameList) !== -1 && e.push({
|
|
532
|
+
name: m.getPlatformTurnoverRate,
|
|
520
533
|
query: ""
|
|
521
534
|
});
|
|
522
|
-
const
|
|
523
|
-
(l) => l.name ===
|
|
535
|
+
const f = e.findIndex(
|
|
536
|
+
(l) => l.name === m.getFourDimensionData
|
|
524
537
|
);
|
|
525
|
-
|
|
538
|
+
f !== -1 && e[f].query == "" && (e.splice(f), e.push(
|
|
526
539
|
{
|
|
527
|
-
name:
|
|
540
|
+
name: m.getFourDimensionData,
|
|
528
541
|
query: JSON.stringify({ action: "getCompany", native: "1" })
|
|
529
542
|
},
|
|
530
543
|
{
|
|
531
|
-
name:
|
|
544
|
+
name: m.getFourDimensionData,
|
|
532
545
|
query: JSON.stringify({
|
|
533
546
|
action: "searchResultDate",
|
|
534
547
|
limit: 100,
|
|
@@ -538,143 +551,234 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
538
551
|
})
|
|
539
552
|
}
|
|
540
553
|
));
|
|
541
|
-
const
|
|
554
|
+
const C = {
|
|
542
555
|
requests: e.map((l) => ({
|
|
543
556
|
name: l.name,
|
|
544
557
|
query: btoa(l.query)
|
|
545
558
|
}))
|
|
546
|
-
},
|
|
559
|
+
}, j = await O.post(
|
|
547
560
|
"/jwt",
|
|
548
|
-
|
|
561
|
+
A(JSON.stringify(C))
|
|
549
562
|
), o = {
|
|
550
563
|
status: 200,
|
|
551
564
|
message: "",
|
|
552
565
|
result: {}
|
|
553
566
|
};
|
|
554
|
-
for (const l of
|
|
567
|
+
for (const l of j.data.responses) {
|
|
555
568
|
l.error != null && l.error.code != 200 && (o.status = l.error.code, o.message = l.error.message);
|
|
556
|
-
const
|
|
557
|
-
if (!
|
|
558
|
-
o.result[
|
|
569
|
+
const g = l.attributes !== null && l.attributes !== void 0 ? z(l.attributes) : null, i = l.name, r = g ? JSON.parse(g) : null;
|
|
570
|
+
if (!r)
|
|
571
|
+
o.result[i] = null;
|
|
559
572
|
else
|
|
560
|
-
switch (
|
|
561
|
-
case
|
|
562
|
-
o.result[
|
|
573
|
+
switch (i) {
|
|
574
|
+
case m.announcement:
|
|
575
|
+
o.result[i] = Y(r);
|
|
563
576
|
break;
|
|
564
|
-
case
|
|
565
|
-
o.result[
|
|
577
|
+
case m.gameList:
|
|
578
|
+
o.result[i] = Q(r);
|
|
566
579
|
break;
|
|
567
|
-
case
|
|
568
|
-
o.result[
|
|
580
|
+
case m.cmsList:
|
|
581
|
+
o.result[i] = se(r);
|
|
569
582
|
break;
|
|
570
|
-
case
|
|
571
|
-
o.result[
|
|
572
|
-
|
|
583
|
+
case m.paymentsProvider:
|
|
584
|
+
o.result[i] = w(
|
|
585
|
+
r
|
|
573
586
|
);
|
|
574
587
|
break;
|
|
575
|
-
case
|
|
576
|
-
o.result[
|
|
588
|
+
case m.getUserProfile:
|
|
589
|
+
o.result[i] = K(r);
|
|
577
590
|
break;
|
|
578
|
-
case
|
|
579
|
-
o.result[
|
|
591
|
+
case m.vipList:
|
|
592
|
+
o.result[i] = X(r);
|
|
580
593
|
break;
|
|
581
|
-
case
|
|
582
|
-
o.result[
|
|
594
|
+
case m.vipBonus:
|
|
595
|
+
o.result[i] = ee(r);
|
|
583
596
|
break;
|
|
584
|
-
case
|
|
585
|
-
o.result[
|
|
597
|
+
case m.vipFieldStatus:
|
|
598
|
+
o.result[i] = te(r);
|
|
586
599
|
break;
|
|
587
|
-
case
|
|
588
|
-
o.result[
|
|
600
|
+
case m.vipStatus:
|
|
601
|
+
o.result[i] = ne(r);
|
|
589
602
|
break;
|
|
590
|
-
case
|
|
591
|
-
o.result[
|
|
603
|
+
case m.promotion:
|
|
604
|
+
o.result[i] = Z(r);
|
|
592
605
|
break;
|
|
593
|
-
case
|
|
594
|
-
o.result[
|
|
606
|
+
case m.getSetting:
|
|
607
|
+
o.result[i] = oe(r);
|
|
595
608
|
break;
|
|
596
|
-
case
|
|
597
|
-
o.result[
|
|
598
|
-
|
|
609
|
+
case m.getCountryMobile:
|
|
610
|
+
o.result[i] = ae(
|
|
611
|
+
r
|
|
599
612
|
);
|
|
600
613
|
break;
|
|
601
|
-
case
|
|
602
|
-
o.result[
|
|
603
|
-
|
|
614
|
+
case m.getPlatformTurnoverRate:
|
|
615
|
+
o.result[i] = ie(
|
|
616
|
+
r
|
|
604
617
|
);
|
|
605
618
|
break;
|
|
606
|
-
case
|
|
607
|
-
o.result[
|
|
619
|
+
case m.mainWallet:
|
|
620
|
+
o.result[i] = re(r);
|
|
608
621
|
break;
|
|
609
|
-
case
|
|
610
|
-
o.result[
|
|
611
|
-
|
|
622
|
+
case m.getLanguageSetting:
|
|
623
|
+
o.result[i] = le(
|
|
624
|
+
r
|
|
612
625
|
);
|
|
613
626
|
break;
|
|
614
|
-
case
|
|
615
|
-
o.result[
|
|
616
|
-
|
|
627
|
+
case m.getFourDimensionData:
|
|
628
|
+
o.result[i] = ue(
|
|
629
|
+
r
|
|
617
630
|
);
|
|
618
631
|
break;
|
|
619
|
-
case
|
|
620
|
-
o.result[
|
|
632
|
+
case m.getCompany:
|
|
633
|
+
o.result[i] = me(r);
|
|
621
634
|
break;
|
|
622
|
-
case
|
|
623
|
-
o.result[
|
|
624
|
-
|
|
635
|
+
case m.searchResultDate:
|
|
636
|
+
o.result[i] = ce(
|
|
637
|
+
r
|
|
625
638
|
);
|
|
626
639
|
break;
|
|
627
|
-
case
|
|
628
|
-
o.result[
|
|
640
|
+
case m.searchHot:
|
|
641
|
+
o.result[i] = pe(r);
|
|
629
642
|
break;
|
|
630
|
-
case
|
|
631
|
-
o.result[
|
|
643
|
+
case m.searchByDate:
|
|
644
|
+
o.result[i] = ge(r);
|
|
645
|
+
break;
|
|
646
|
+
case m.upcomingMatches:
|
|
647
|
+
o.result[i] = fe(
|
|
648
|
+
r
|
|
649
|
+
);
|
|
632
650
|
break;
|
|
633
651
|
}
|
|
634
652
|
}
|
|
635
|
-
if (
|
|
653
|
+
if (m.vipList in o.result && ((t = o.result) != null && t.vipList)) {
|
|
636
654
|
const l = o.result.vipList;
|
|
637
|
-
let
|
|
638
|
-
if (
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
655
|
+
let g = 4;
|
|
656
|
+
if (m.getSetting in o.result && ((n = o.result) != null && n.getSetting && (g = o.result.getSetting.vip_calculation), delete o.result.getSetting), m.vipBonus in o.result && ((c = o.result) != null && c.vipBonus && (l.bonus = o.result.vipBonus), delete o.result.vipBonus), m.vipStatus in o.result) {
|
|
657
|
+
if ((s = o.result) != null && s.vipStatus) {
|
|
658
|
+
const i = o.result.vipStatus, {
|
|
659
|
+
current_grade_id: r,
|
|
660
|
+
current_deposit: R,
|
|
661
|
+
current_turnover: N,
|
|
662
|
+
percentage: I
|
|
663
|
+
} = i, D = l.list.findIndex((x) => x.id === r);
|
|
664
|
+
l.list = l.list.map((x, T) => {
|
|
665
|
+
const P = T === D;
|
|
666
|
+
let k = "0", u = "0", F = 0;
|
|
667
|
+
return P ? (k = `${Math.min(Number(R), Number(x.deposit.total))}`, u = `${Math.min(Number(N), Number(x.turnover.total))}`, F = I) : T < D ? (k = x.deposit.total, u = x.turnover.total, F = 1) : T > D && (k = "0.00", u = "0.00", F = 0), {
|
|
668
|
+
...x,
|
|
669
|
+
is_current_level: P,
|
|
670
|
+
deposit: {
|
|
671
|
+
...x.deposit,
|
|
672
|
+
isShow: g === 1 || g === 3 || g === 4,
|
|
673
|
+
current: k
|
|
674
|
+
},
|
|
675
|
+
turnover: {
|
|
676
|
+
...x.turnover,
|
|
677
|
+
isShow: g === 2 || g === 3 || g === 4,
|
|
678
|
+
current: u
|
|
679
|
+
},
|
|
680
|
+
percentage: F
|
|
681
|
+
};
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
delete o.result.vipStatus;
|
|
685
|
+
}
|
|
686
|
+
if (m.vipFieldStatus in o.result) {
|
|
687
|
+
if ((d = o.result) != null && d.vipFieldStatus) {
|
|
688
|
+
const i = o.result.vipFieldStatus, r = [];
|
|
689
|
+
r.push({
|
|
690
|
+
name: "",
|
|
691
|
+
code: "vipLevel",
|
|
692
|
+
value: l.list.map((u) => u.name)
|
|
693
|
+
});
|
|
694
|
+
const R = i.findIndex(
|
|
695
|
+
(u) => u.fieldName == "upgrade_bonus"
|
|
696
|
+
);
|
|
697
|
+
R > -1 && r.push({
|
|
698
|
+
name: i[R].showName,
|
|
699
|
+
code: "",
|
|
700
|
+
value: l.list.map((u) => u.benefit_list.upgrade.bonus)
|
|
701
|
+
});
|
|
702
|
+
const N = i.findIndex(
|
|
703
|
+
(u) => u.fieldName == "upgrade_bonus_multiply"
|
|
704
|
+
);
|
|
705
|
+
N > -1 && r.push({
|
|
706
|
+
name: i[N].showName,
|
|
707
|
+
code: "",
|
|
708
|
+
value: l.list.map((u) => u.benefit_list.upgrade.turnover)
|
|
709
|
+
});
|
|
710
|
+
const I = i.findIndex(
|
|
711
|
+
(u) => u.fieldName == "monthly_bonus"
|
|
712
|
+
);
|
|
713
|
+
I > -1 && r.push({
|
|
714
|
+
name: i[I].showName,
|
|
715
|
+
code: "",
|
|
716
|
+
value: l.list.map((u) => u.benefit_list.monthly.bonus)
|
|
717
|
+
});
|
|
718
|
+
const D = i.findIndex(
|
|
719
|
+
(u) => u.fieldName == "monthly_bonus_multiply"
|
|
720
|
+
);
|
|
721
|
+
D > -1 && r.push({
|
|
722
|
+
name: i[D].showName,
|
|
723
|
+
code: "",
|
|
724
|
+
value: l.list.map((u) => u.benefit_list.monthly.turnover)
|
|
725
|
+
});
|
|
726
|
+
const x = i.findIndex(
|
|
727
|
+
(u) => u.fieldName == "weekly_bonus"
|
|
728
|
+
);
|
|
729
|
+
x > -1 && r.push({
|
|
730
|
+
name: i[x].showName,
|
|
731
|
+
code: "",
|
|
732
|
+
value: l.list.map((u) => u.benefit_list.weekly.bonus)
|
|
733
|
+
});
|
|
734
|
+
const T = i.findIndex(
|
|
735
|
+
(u) => u.fieldName == "weekly_bonus_multiply"
|
|
736
|
+
);
|
|
737
|
+
T > -1 && r.push({
|
|
738
|
+
name: i[T].showName,
|
|
739
|
+
code: "",
|
|
740
|
+
value: l.list.map((u) => u.benefit_list.weekly.turnover)
|
|
741
|
+
});
|
|
742
|
+
const P = i.findIndex(
|
|
743
|
+
(u) => u.fieldName == "daily_bonus"
|
|
744
|
+
);
|
|
745
|
+
P > -1 && r.push({
|
|
746
|
+
name: i[P].showName,
|
|
747
|
+
code: "",
|
|
748
|
+
value: l.list.map((u) => u.benefit_list.daily.bonus)
|
|
749
|
+
});
|
|
750
|
+
const k = i.findIndex(
|
|
751
|
+
(u) => u.fieldName == "daily_bonus_multiply"
|
|
752
|
+
);
|
|
753
|
+
k > -1 && r.push({
|
|
754
|
+
name: i[k].showName,
|
|
755
|
+
code: "",
|
|
756
|
+
value: l.list.map((u) => u.benefit_list.daily.turnover)
|
|
757
|
+
}), (g === 1 || g === 3 || g === 4) && r.push({
|
|
758
|
+
name: "",
|
|
759
|
+
code: "detail_deposit",
|
|
760
|
+
value: l.list.map((u) => u.deposit.total)
|
|
761
|
+
}), (g === 2 || g === 3 || g === 4) && r.push({
|
|
762
|
+
name: "",
|
|
763
|
+
code: "detail_turnover",
|
|
764
|
+
value: l.list.map((u) => u.turnover.total)
|
|
765
|
+
}), l.detail = r;
|
|
766
|
+
}
|
|
767
|
+
delete o.result.vipFieldStatus;
|
|
664
768
|
}
|
|
665
769
|
o.result.vipList = l;
|
|
666
770
|
}
|
|
667
|
-
if (
|
|
771
|
+
if (m.gameList in o.result && ((b = o.result) != null && b.gameList)) {
|
|
668
772
|
const l = o.result.gameList;
|
|
669
|
-
if (
|
|
670
|
-
const
|
|
671
|
-
l.forEach((
|
|
672
|
-
|
|
673
|
-
const R =
|
|
674
|
-
(
|
|
773
|
+
if (m.getPlatformTurnoverRate in o.result && ((p = o.result) != null && p.getPlatformTurnoverRate)) {
|
|
774
|
+
const g = o.result.getPlatformTurnoverRate;
|
|
775
|
+
l.forEach((i) => {
|
|
776
|
+
i.list = i.list.map((r) => {
|
|
777
|
+
const R = g.find(
|
|
778
|
+
(N) => N.id === r.id
|
|
675
779
|
);
|
|
676
780
|
return {
|
|
677
|
-
...
|
|
781
|
+
...r,
|
|
678
782
|
rate: (R == null ? void 0 : R.percentage) ?? "0.00"
|
|
679
783
|
};
|
|
680
784
|
});
|
|
@@ -682,39 +786,39 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
682
786
|
}
|
|
683
787
|
o.result.gameList = l;
|
|
684
788
|
}
|
|
685
|
-
if (
|
|
789
|
+
if (m.getCompany in o.result && ((_ = o.result) != null && _.getCompany)) {
|
|
686
790
|
const l = o.result.getCompany;
|
|
687
|
-
if (
|
|
688
|
-
const
|
|
689
|
-
l.forEach((
|
|
690
|
-
const
|
|
691
|
-
|
|
791
|
+
if (m.searchResultDate in o.result && (y = o.result) != null && y.searchResultDate) {
|
|
792
|
+
const g = o.result.searchResultDate;
|
|
793
|
+
l.forEach((i) => {
|
|
794
|
+
const r = g.find((R) => R.id == i.id);
|
|
795
|
+
r && (i.date = r == null ? void 0 : r.date);
|
|
692
796
|
}), delete o.result.searchResultDate;
|
|
693
797
|
}
|
|
694
798
|
o.result.getCompany = l;
|
|
695
799
|
}
|
|
696
800
|
return o;
|
|
697
|
-
} catch (
|
|
698
|
-
return
|
|
699
|
-
status: ((
|
|
700
|
-
message: JSON.stringify((
|
|
801
|
+
} catch (v) {
|
|
802
|
+
return $.isAxiosError(v) ? {
|
|
803
|
+
status: ((h = v.response) == null ? void 0 : h.status) || 600,
|
|
804
|
+
message: JSON.stringify((S = v.response) == null ? void 0 : S.data),
|
|
701
805
|
result: {}
|
|
702
|
-
} : (console.error(
|
|
703
|
-
status:
|
|
704
|
-
message:
|
|
806
|
+
} : (console.error(v), {
|
|
807
|
+
status: v.status || 500,
|
|
808
|
+
message: v.message,
|
|
705
809
|
result: {}
|
|
706
810
|
});
|
|
707
811
|
}
|
|
708
|
-
},
|
|
812
|
+
}, _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
709
813
|
__proto__: null,
|
|
710
|
-
post:
|
|
711
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
814
|
+
post: be
|
|
815
|
+
}, Symbol.toStringTag, { value: "Module" })), ye = async (e, t) => {
|
|
712
816
|
try {
|
|
713
817
|
const n = {
|
|
714
818
|
status: 200,
|
|
715
819
|
message: ""
|
|
716
820
|
};
|
|
717
|
-
return await
|
|
821
|
+
return await O.post(
|
|
718
822
|
"/auth/sesh",
|
|
719
823
|
JSON.stringify({
|
|
720
824
|
usr: e,
|
|
@@ -727,73 +831,73 @@ const pe = (e) => e.data.map((t) => ({
|
|
|
727
831
|
message: n.message
|
|
728
832
|
};
|
|
729
833
|
}
|
|
730
|
-
},
|
|
834
|
+
}, he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
731
835
|
__proto__: null,
|
|
732
|
-
call:
|
|
733
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
836
|
+
call: ye
|
|
837
|
+
}, Symbol.toStringTag, { value: "Module" })), ve = async () => {
|
|
734
838
|
try {
|
|
735
839
|
const e = {
|
|
736
840
|
status: 200,
|
|
737
841
|
message: ""
|
|
738
842
|
};
|
|
739
|
-
return await
|
|
843
|
+
return await O.post("/auth/sesh/logout"), e;
|
|
740
844
|
} catch (e) {
|
|
741
845
|
return console.error(`login: ${JSON.stringify(e)}`), {
|
|
742
846
|
status: e.status || 500,
|
|
743
847
|
message: e.message
|
|
744
848
|
};
|
|
745
849
|
}
|
|
746
|
-
},
|
|
850
|
+
}, xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
747
851
|
__proto__: null,
|
|
748
|
-
call:
|
|
852
|
+
call: ve
|
|
749
853
|
}, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
750
854
|
__proto__: null
|
|
751
|
-
}, Symbol.toStringTag, { value: "Module" })), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
752
|
-
__proto__: null
|
|
753
855
|
}, Symbol.toStringTag, { value: "Module" })), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
754
856
|
__proto__: null
|
|
755
857
|
}, Symbol.toStringTag, { value: "Module" })), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
756
858
|
__proto__: null
|
|
757
|
-
}, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
758
|
-
__proto__: null
|
|
759
859
|
}, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
760
860
|
__proto__: null
|
|
761
861
|
}, Symbol.toStringTag, { value: "Module" })), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
762
862
|
__proto__: null
|
|
763
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
863
|
+
}, Symbol.toStringTag, { value: "Module" })), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
864
|
+
__proto__: null
|
|
865
|
+
}, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
866
|
+
__proto__: null
|
|
867
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
764
868
|
__proto__: null
|
|
765
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
766
|
-
api:
|
|
767
|
-
loginApi:
|
|
768
|
-
logoutApi:
|
|
869
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = {
|
|
870
|
+
api: _e,
|
|
871
|
+
loginApi: he,
|
|
872
|
+
logoutApi: xe,
|
|
769
873
|
apiType: E,
|
|
770
874
|
loginType: Se,
|
|
771
|
-
logoutType:
|
|
772
|
-
announcementType:
|
|
875
|
+
logoutType: Le,
|
|
876
|
+
announcementType: Re,
|
|
773
877
|
paymentsProviderType: J,
|
|
774
|
-
gameListType:
|
|
775
|
-
vipListType:
|
|
776
|
-
promotionType:
|
|
777
|
-
cmsListType:
|
|
778
|
-
mainWalletType:
|
|
779
|
-
},
|
|
878
|
+
gameListType: Me,
|
|
879
|
+
vipListType: ke,
|
|
880
|
+
promotionType: Ne,
|
|
881
|
+
cmsListType: De,
|
|
882
|
+
mainWalletType: Te
|
|
883
|
+
}, Oe = {
|
|
780
884
|
install(e) {
|
|
781
|
-
e.config.globalProperties.$library =
|
|
885
|
+
e.config.globalProperties.$library = Pe;
|
|
782
886
|
}
|
|
783
887
|
};
|
|
784
888
|
export {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
889
|
+
Oe as Repository,
|
|
890
|
+
Re as announcementType,
|
|
891
|
+
_e as api,
|
|
788
892
|
E as apiType,
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
893
|
+
De as cmsListType,
|
|
894
|
+
Me as gameListType,
|
|
895
|
+
he as loginApi,
|
|
792
896
|
Se as loginType,
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
897
|
+
xe as logoutApi,
|
|
898
|
+
Le as logoutType,
|
|
899
|
+
Te as mainWalletType,
|
|
796
900
|
J as paymentsProviderType,
|
|
797
|
-
|
|
798
|
-
|
|
901
|
+
Ne as promotionType,
|
|
902
|
+
ke as vipListType
|
|
799
903
|
};
|