60p82u21t54k 0.0.54 → 0.0.56
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 +369 -319
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/type.d.ts +7 -1
- 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/searchHot/getSearchHotResponse.d.ts +21 -0
- package/dist/model/searchHot/getSearchHotResponse.d.ts.map +1 -0
- package/dist/model/searchHot/type.d.ts +9 -0
- package/dist/model/searchHot/type.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import A from "axios";
|
|
2
|
-
const
|
|
2
|
+
const M = A.create({
|
|
3
3
|
baseURL: "/graph",
|
|
4
4
|
timeout: 5e3,
|
|
5
5
|
// Request timeout
|
|
@@ -45,11 +45,11 @@ const D = A.create({
|
|
|
45
45
|
// },
|
|
46
46
|
// },
|
|
47
47
|
});
|
|
48
|
-
|
|
48
|
+
M.interceptors.request.use(
|
|
49
49
|
(e) => e,
|
|
50
50
|
(e) => (console.error("Error request:", e.response), Promise.reject(e))
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
M.interceptors.response.use(
|
|
53
53
|
(e) => e,
|
|
54
54
|
(e) => {
|
|
55
55
|
const t = {
|
|
@@ -66,51 +66,51 @@ const I = (e) => new TextEncoder().encode(e), z = (e) => {
|
|
|
66
66
|
return console.error("Failed to decode Base64:", t), "";
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
var
|
|
69
|
+
var i = /* @__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))(i || {});
|
|
70
70
|
const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71
71
|
__proto__: null,
|
|
72
|
-
Api:
|
|
72
|
+
Api: i
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
|
-
var
|
|
74
|
+
var L = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(L || {});
|
|
75
75
|
const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
76
|
__proto__: null,
|
|
77
|
-
PaymentType:
|
|
77
|
+
PaymentType: L
|
|
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 L.default:
|
|
82
|
+
n.push($(t.paymentmethod.manual, e));
|
|
83
83
|
break;
|
|
84
|
-
case
|
|
85
|
-
|
|
84
|
+
case L.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
|
+
H(t.bankid ?? 0, t.paymentmethod.auto, e)
|
|
90
90
|
), t.paymentmethod.manual.bank.length > 0) {
|
|
91
91
|
let r = !1;
|
|
92
|
-
for (let
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
92
|
+
for (let s = 0; s < t.paymentmethod.manual.bank.length; s++) {
|
|
93
|
+
const c = t.paymentmethod.manual.bank[s];
|
|
94
|
+
if (c.list && c.list.length > 0) {
|
|
95
95
|
r = !0;
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
r &&
|
|
99
|
+
r && 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
|
+
Y(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
|
}), q = {
|
|
111
111
|
id: 0,
|
|
112
112
|
name: "",
|
|
113
|
-
type:
|
|
113
|
+
type: L.unknown,
|
|
114
114
|
promo: [],
|
|
115
115
|
bank: [],
|
|
116
116
|
requiredField: {
|
|
@@ -121,68 +121,68 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
121
121
|
depositor: !1,
|
|
122
122
|
uploadReceipt: !1
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, N = (e) => {
|
|
125
125
|
const t = {
|
|
126
126
|
id: 0,
|
|
127
127
|
name: "excludePromo",
|
|
128
128
|
value: "0",
|
|
129
129
|
disabled: !0
|
|
130
|
-
},
|
|
131
|
-
id:
|
|
130
|
+
}, n = e.map((r, s) => ({
|
|
131
|
+
id: s + 1,
|
|
132
132
|
name: r.promodesc,
|
|
133
133
|
value: r.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
|
+
}, D = (e, t, n, r) => {
|
|
138
|
+
let s, c;
|
|
139
|
+
n > 0 ? s = e > 0 ? Math.max(n, e) : n : s = Math.max(e, 0), r > 0 ? c = t > 0 ? Math.min(r, t) : r : c = Math.max(t, 0);
|
|
140
|
+
const g = Math.round(s);
|
|
141
|
+
let d = 1e3;
|
|
142
|
+
c < d && (d = Math.round(c));
|
|
143
|
+
const f = d - g;
|
|
144
|
+
let b = "", _ = "";
|
|
145
|
+
if (f > 0) {
|
|
146
|
+
let p = Math.round((d - g) * 0.25).toString().split(""), S = [];
|
|
147
|
+
for (const o of p)
|
|
148
|
+
o !== "" && S.push(o);
|
|
149
|
+
for (let o = 0; o < S.length; o++)
|
|
150
|
+
o === 0 ? b += (parseInt(S[o]) + 1).toString() : b += "0";
|
|
151
|
+
p = Math.round((d - g) * 0.5).toString().split(""), S = [];
|
|
152
|
+
for (const o of p)
|
|
153
|
+
o !== "" && S.push(o);
|
|
154
|
+
for (let o = 0; o < S.length; o++)
|
|
155
|
+
o === 0 ? _ += (parseInt(S[o]) + 1).toString() : _ += "0";
|
|
156
156
|
} else
|
|
157
|
-
|
|
157
|
+
b = d.toString(), _ = d.toString();
|
|
158
158
|
return { amountList: [
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
g.toString(),
|
|
160
|
+
b,
|
|
161
161
|
_,
|
|
162
|
-
|
|
163
|
-
], minAmount:
|
|
162
|
+
d.toString()
|
|
163
|
+
], minAmount: g, maxAmount: c };
|
|
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: L.manual,
|
|
168
|
+
promo: N(e.promo),
|
|
169
|
+
bank: e.bank.map((s) => {
|
|
170
|
+
const c = 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: d, minAmount: f, maxAmount: b } = D(
|
|
171
|
+
Number(c),
|
|
172
|
+
Number(g),
|
|
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: s.bankindex ?? 0,
|
|
178
|
+
bankAccountId: s.list && s.list.length > 0 ? s.list[0].bankaccountindex ?? 0 : 0,
|
|
179
|
+
name: s.list && s.list.length > 0 ? s.list[0].label ?? "" : "",
|
|
180
|
+
accountName: s.list && s.list.length > 0 ? s.list[0].bankaccountname ?? "" : "",
|
|
181
|
+
accountNo: s.list && s.list.length > 0 ? s.list[0].bankaccountno ?? "" : "",
|
|
182
|
+
qrcode: s.list && s.list.length > 0 ? s.list[0].bankaccountdesc : "",
|
|
183
|
+
amountList: d,
|
|
184
|
+
min: f,
|
|
185
|
+
max: b
|
|
186
186
|
};
|
|
187
187
|
}),
|
|
188
188
|
requiredField: {
|
|
@@ -192,46 +192,46 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
192
192
|
} : q, 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: L.pay,
|
|
196
|
+
promo: N(e.promo),
|
|
197
|
+
bank: e.banklist.map((s) => {
|
|
198
|
+
let c = "0.00", g = "0.00";
|
|
199
|
+
const d = s.bankindex ?? 0;
|
|
200
|
+
for (let p = 0; p < t.mdGatewayMinMax.length; p++)
|
|
201
|
+
t.mdGatewayMinMax[p].bankindex == d.toString() && (c = t.mdGatewayMinMax[p].min, g = t.mdGatewayMinMax[p].max);
|
|
202
|
+
const { amountList: f, minAmount: b, maxAmount: _ } = D(
|
|
203
|
+
Number(c),
|
|
204
|
+
Number(g),
|
|
205
205
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
206
206
|
t.mdBankLevelDetail.onlinepayment_max
|
|
207
|
-
),
|
|
207
|
+
), v = {
|
|
208
208
|
id: 0,
|
|
209
209
|
name: "autoChannel",
|
|
210
|
-
amountList:
|
|
211
|
-
min:
|
|
210
|
+
amountList: f,
|
|
211
|
+
min: b,
|
|
212
212
|
max: _
|
|
213
|
-
},
|
|
214
|
-
const
|
|
215
|
-
Number(
|
|
216
|
-
Number(
|
|
213
|
+
}, h = s.pg.map((p) => {
|
|
214
|
+
const S = p.mintransaction ?? "0.00", k = p.maxtransaction ?? "0.00", { amountList: P, minAmount: o, maxAmount: l } = D(
|
|
215
|
+
Number(S),
|
|
216
|
+
Number(k),
|
|
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: p.pgindex,
|
|
222
|
+
name: p.bankaccountname,
|
|
223
|
+
amountList: P,
|
|
224
|
+
min: o,
|
|
225
|
+
max: l
|
|
226
226
|
};
|
|
227
227
|
});
|
|
228
228
|
return {
|
|
229
|
-
id:
|
|
230
|
-
name:
|
|
229
|
+
id: s.bankindex ?? 0,
|
|
230
|
+
name: s.banknameenglish ?? "",
|
|
231
231
|
amountList: [],
|
|
232
232
|
min: 0,
|
|
233
233
|
max: 0,
|
|
234
|
-
gateway: [
|
|
234
|
+
gateway: [v, ...h]
|
|
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
|
-
} : q,
|
|
246
|
-
if (!
|
|
247
|
-
const r =
|
|
248
|
-
let
|
|
249
|
-
const
|
|
250
|
-
if (t.bank.length > 0 &&
|
|
251
|
-
|
|
252
|
-
const { amountList:
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
245
|
+
} : q, H = (e, t, n) => {
|
|
246
|
+
if (!n) return q;
|
|
247
|
+
const r = L.auto;
|
|
248
|
+
let s = [];
|
|
249
|
+
const c = n.mdGatewayMinMax;
|
|
250
|
+
if (t.bank.length > 0 && n.mdPGSelection == "1")
|
|
251
|
+
s = t.bank.map((d) => {
|
|
252
|
+
const { amountList: f, minAmount: b, maxAmount: _ } = D(
|
|
253
|
+
d.minTransaction ?? 0,
|
|
254
|
+
d.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:
|
|
259
|
+
id: d.pgindex,
|
|
260
|
+
name: d.bankaccountname || "",
|
|
261
|
+
amountList: f,
|
|
262
|
+
min: b,
|
|
263
263
|
max: _
|
|
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 d = "0.00", f = "0.00";
|
|
268
|
+
for (let a = 0; a < c.length; a++)
|
|
269
|
+
c[a].bankindex === e.toString() && (d = c[a].min, f = c[a].max);
|
|
270
|
+
const { amountList: b, minAmount: _, maxAmount: v } = D(
|
|
271
|
+
Number(d),
|
|
272
|
+
Number(f),
|
|
273
|
+
n.mdBankLevelDetail.onlinepayment_min,
|
|
274
|
+
n.mdBankLevelDetail.onlinepayment_max
|
|
275
|
+
), h = {
|
|
276
276
|
id: 0,
|
|
277
277
|
name: "autoChannel",
|
|
278
|
-
amountList:
|
|
278
|
+
amountList: b,
|
|
279
279
|
min: _,
|
|
280
|
-
max:
|
|
280
|
+
max: v
|
|
281
281
|
};
|
|
282
|
-
|
|
282
|
+
s.push(h);
|
|
283
283
|
}
|
|
284
284
|
return {
|
|
285
285
|
id: e,
|
|
286
286
|
name: "autoMethod",
|
|
287
287
|
type: r,
|
|
288
|
-
promo:
|
|
289
|
-
bank:
|
|
288
|
+
promo: N(t.promo),
|
|
289
|
+
bank: s,
|
|
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
|
+
}, Y = (e, t) => {
|
|
300
|
+
const n = L.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: N(t.promo),
|
|
306
|
+
bank: t.bank.map((s) => {
|
|
307
|
+
const c = s.amtlist.map(Number).sort((d, f) => d - f);
|
|
308
308
|
return {
|
|
309
|
-
id:
|
|
310
|
-
name:
|
|
311
|
-
amountList:
|
|
312
|
-
min:
|
|
313
|
-
max:
|
|
309
|
+
id: s.pgindex,
|
|
310
|
+
name: s.name,
|
|
311
|
+
amountList: s.amtlist,
|
|
312
|
+
min: c.length > 0 ? c[0] : 0,
|
|
313
|
+
max: c.length > 0 ? c[c.length - 1] : 0
|
|
314
314
|
};
|
|
315
315
|
}),
|
|
316
316
|
requiredField: {
|
|
@@ -338,11 +338,11 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
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
|
})), Z = (e) => ({
|
|
@@ -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
|
})),
|
|
@@ -378,17 +378,17 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
378
378
|
showDayButton: !1
|
|
379
379
|
}
|
|
380
380
|
}), w = (e) => ({
|
|
381
|
-
category: e.category.sort((t,
|
|
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
|
})
|
|
@@ -406,34 +406,34 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
406
406
|
current_grade_id: e.mdCurrentGrade.gradeindex,
|
|
407
407
|
next_grade_id: e.mdNextGrade.gradeindex,
|
|
408
408
|
percentage: Number(e.percentage) * 100
|
|
409
|
-
}),
|
|
409
|
+
}), oe = (e) => {
|
|
410
410
|
let t = 4;
|
|
411
411
|
e.vipcalculation && (t = Number(e.vipcalculation));
|
|
412
|
-
let
|
|
413
|
-
return e.extralivechat && (
|
|
412
|
+
let n = [];
|
|
413
|
+
return e.extralivechat && (n = JSON.parse(e.extralivechat)), {
|
|
414
414
|
vip_calculation: t,
|
|
415
|
-
livechat:
|
|
415
|
+
livechat: n.filter((r) => r.status === 1).map((r) => ({
|
|
416
416
|
name: r.name,
|
|
417
417
|
image_url: r.imgname,
|
|
418
418
|
url: r.url
|
|
419
419
|
})),
|
|
420
420
|
mobileValidate: e.mobilevalidate ? e.mobilevalidate == "1" : !1
|
|
421
421
|
};
|
|
422
|
-
},
|
|
422
|
+
}, se = (e) => {
|
|
423
423
|
let t = [];
|
|
424
424
|
e.mobileBanner && (t = e.mobileBanner);
|
|
425
|
-
let
|
|
426
|
-
e.mobileAd && (
|
|
425
|
+
let n = [];
|
|
426
|
+
e.mobileAd && (n = e.mobileAd);
|
|
427
427
|
let r = [];
|
|
428
428
|
return e.mobileAbout && (r = e.mobileAbout), {
|
|
429
|
-
banner: t.map((
|
|
430
|
-
ad:
|
|
431
|
-
about: r.map((
|
|
432
|
-
name:
|
|
433
|
-
content:
|
|
429
|
+
banner: t.map((s) => `${s.imagepath}?${s.filemtime}`),
|
|
430
|
+
ad: n.map((s) => `${s.imagepath}?${s.filemtime}`),
|
|
431
|
+
about: r.map((s) => ({
|
|
432
|
+
name: s.name,
|
|
433
|
+
content: s.content
|
|
434
434
|
}))
|
|
435
435
|
};
|
|
436
|
-
},
|
|
436
|
+
}, ae = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
|
|
437
437
|
code: t.area_code,
|
|
438
438
|
regex: t.regex,
|
|
439
439
|
value: t.value
|
|
@@ -454,37 +454,81 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
454
454
|
date: []
|
|
455
455
|
})), ce = (e) => e.data.map((t) => ({
|
|
456
456
|
id: t.key,
|
|
457
|
-
date: t.draw_date.map((
|
|
457
|
+
date: t.draw_date.map((n) => de(n.draw_tmactive))
|
|
458
458
|
}));
|
|
459
459
|
function de(e) {
|
|
460
|
-
const t = new Date(e * 1e3),
|
|
461
|
-
return `${
|
|
460
|
+
const t = new Date(e * 1e3), n = t.getFullYear(), r = ("0" + (t.getMonth() + 1)).slice(-2), s = ("0" + t.getDate()).slice(-2);
|
|
461
|
+
return `${n}-${r}-${s}`;
|
|
462
462
|
}
|
|
463
|
-
const pe =
|
|
464
|
-
|
|
463
|
+
const pe = (e) => e.data.map((t) => ({
|
|
464
|
+
id: t.company_id,
|
|
465
|
+
list: t.drawCount.map((n) => ({
|
|
466
|
+
combination: n.combination_combination,
|
|
467
|
+
total: n.total
|
|
468
|
+
}))
|
|
469
|
+
})), ge = (e) => e.data.map((t) => ({
|
|
470
|
+
id: t.company_id,
|
|
471
|
+
resultByDateList: t.draws.map((n) => {
|
|
472
|
+
const r = n.results.filter((a) => a.combination_dimension == 3).map((a) => a.combination_combination), s = n.results.filter(
|
|
473
|
+
(a) => a.combination_dimension == 4 && a.combination_position == 1
|
|
474
|
+
).map((a) => a.combination_combination), c = n.results.filter(
|
|
475
|
+
(a) => a.combination_dimension == 4 && a.combination_position == 2
|
|
476
|
+
).map((a) => a.combination_combination), g = n.results.filter(
|
|
477
|
+
(a) => a.combination_dimension == 4 && a.combination_position == 3
|
|
478
|
+
).map((a) => a.combination_combination), d = n.results.filter(
|
|
479
|
+
(a) => a.combination_dimension == 4 && a.combination_position == 4
|
|
480
|
+
).map((a) => a.combination_combination), f = n.results.filter(
|
|
481
|
+
(a) => a.combination_dimension == 4 && a.combination_position == 5
|
|
482
|
+
).map((a) => a.combination_combination), b = n.results.filter(
|
|
483
|
+
(a) => a.combination_dimension == 5 && a.combination_position == 1
|
|
484
|
+
).map((a) => a.combination_combination), _ = n.results.filter((a) => a.combination_dimension == 5).map((a) => a.combination_combination), v = n.results.filter(
|
|
485
|
+
(a) => a.combination_dimension == 6 && a.combination_position == 1
|
|
486
|
+
).map((a) => a.combination_combination), h = n.results.filter((a) => a.combination_dimension == 6).map((a) => a.combination_combination);
|
|
487
|
+
return {
|
|
488
|
+
date: n.date,
|
|
489
|
+
3: r,
|
|
490
|
+
4: {
|
|
491
|
+
1: s,
|
|
492
|
+
2: c,
|
|
493
|
+
3: g,
|
|
494
|
+
4: d,
|
|
495
|
+
5: f
|
|
496
|
+
},
|
|
497
|
+
5: {
|
|
498
|
+
1: b,
|
|
499
|
+
all: _
|
|
500
|
+
},
|
|
501
|
+
6: {
|
|
502
|
+
1: v,
|
|
503
|
+
all: h
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
})
|
|
507
|
+
})), fe = async (e) => {
|
|
508
|
+
var t, n, r, s, c, g, d, f, b, _, v;
|
|
465
509
|
try {
|
|
466
|
-
e.findIndex((
|
|
510
|
+
e.findIndex((l) => l.name === i.vipList) !== -1 && e.push(
|
|
467
511
|
{
|
|
468
|
-
name:
|
|
512
|
+
name: i.vipBonus,
|
|
469
513
|
query: ""
|
|
470
514
|
},
|
|
471
|
-
{ name:
|
|
472
|
-
{ name:
|
|
473
|
-
{ name:
|
|
474
|
-
), e.findIndex((
|
|
475
|
-
name:
|
|
515
|
+
{ name: i.vipFieldStatus, query: "" },
|
|
516
|
+
{ name: i.vipStatus, query: "" },
|
|
517
|
+
{ name: i.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
|
|
518
|
+
), e.findIndex((l) => l.name === i.gameList) !== -1 && e.push({
|
|
519
|
+
name: i.getPlatformTurnoverRate,
|
|
476
520
|
query: ""
|
|
477
521
|
});
|
|
478
|
-
const
|
|
479
|
-
(
|
|
522
|
+
const p = e.findIndex(
|
|
523
|
+
(l) => l.name === i.getFourDimensionData
|
|
480
524
|
);
|
|
481
|
-
|
|
525
|
+
p !== -1 && e[p].query == "" && (e.splice(p), e.push(
|
|
482
526
|
{
|
|
483
|
-
name:
|
|
527
|
+
name: i.getFourDimensionData,
|
|
484
528
|
query: JSON.stringify({ action: "getCompany", native: "1" })
|
|
485
529
|
},
|
|
486
530
|
{
|
|
487
|
-
name:
|
|
531
|
+
name: i.getFourDimensionData,
|
|
488
532
|
query: JSON.stringify({
|
|
489
533
|
action: "searchResultDate",
|
|
490
534
|
limit: 100,
|
|
@@ -494,212 +538,214 @@ const pe = async (e) => {
|
|
|
494
538
|
})
|
|
495
539
|
}
|
|
496
540
|
));
|
|
497
|
-
const
|
|
498
|
-
requests: e.map((
|
|
499
|
-
name:
|
|
500
|
-
query: btoa(
|
|
541
|
+
const k = {
|
|
542
|
+
requests: e.map((l) => ({
|
|
543
|
+
name: l.name,
|
|
544
|
+
query: btoa(l.query)
|
|
501
545
|
}))
|
|
502
|
-
},
|
|
546
|
+
}, P = await M.post(
|
|
503
547
|
"/jwt",
|
|
504
|
-
I(JSON.stringify(
|
|
505
|
-
),
|
|
548
|
+
I(JSON.stringify(k))
|
|
549
|
+
), o = {
|
|
506
550
|
status: 200,
|
|
507
551
|
message: "",
|
|
508
552
|
result: {}
|
|
509
553
|
};
|
|
510
|
-
for (const
|
|
511
|
-
|
|
512
|
-
const y =
|
|
513
|
-
if (!
|
|
514
|
-
|
|
554
|
+
for (const l of P.data.responses) {
|
|
555
|
+
l.error != null && l.error.code != 200 && (o.status = l.error.code, o.message = l.error.message);
|
|
556
|
+
const y = l.attributes !== null && l.attributes !== void 0 ? z(l.attributes) : null, u = l.name, m = y ? JSON.parse(y) : null;
|
|
557
|
+
if (!m)
|
|
558
|
+
o.result[u] = null;
|
|
515
559
|
else
|
|
516
|
-
switch (
|
|
517
|
-
case
|
|
518
|
-
|
|
560
|
+
switch (u) {
|
|
561
|
+
case i.announcement:
|
|
562
|
+
o.result[u] = K(m);
|
|
519
563
|
break;
|
|
520
|
-
case
|
|
521
|
-
|
|
564
|
+
case i.gameList:
|
|
565
|
+
o.result[u] = X(m);
|
|
522
566
|
break;
|
|
523
|
-
case
|
|
524
|
-
|
|
567
|
+
case i.cmsList:
|
|
568
|
+
o.result[u] = se(m);
|
|
525
569
|
break;
|
|
526
|
-
case
|
|
527
|
-
|
|
528
|
-
|
|
570
|
+
case i.paymentsProvider:
|
|
571
|
+
o.result[u] = V(
|
|
572
|
+
m
|
|
529
573
|
);
|
|
530
574
|
break;
|
|
531
|
-
case
|
|
532
|
-
|
|
575
|
+
case i.getUserProfile:
|
|
576
|
+
o.result[u] = Q(m);
|
|
533
577
|
break;
|
|
534
|
-
case
|
|
535
|
-
|
|
578
|
+
case i.vipList:
|
|
579
|
+
o.result[u] = Z(m);
|
|
536
580
|
break;
|
|
537
|
-
case
|
|
538
|
-
|
|
581
|
+
case i.vipBonus:
|
|
582
|
+
o.result[u] = ee(m);
|
|
539
583
|
break;
|
|
540
|
-
case
|
|
541
|
-
|
|
584
|
+
case i.vipFieldStatus:
|
|
585
|
+
o.result[u] = te(m);
|
|
542
586
|
break;
|
|
543
|
-
case
|
|
544
|
-
|
|
587
|
+
case i.vipStatus:
|
|
588
|
+
o.result[u] = ne(m);
|
|
545
589
|
break;
|
|
546
|
-
case
|
|
547
|
-
|
|
590
|
+
case i.promotion:
|
|
591
|
+
o.result[u] = w(m);
|
|
548
592
|
break;
|
|
549
|
-
case
|
|
550
|
-
|
|
593
|
+
case i.getSetting:
|
|
594
|
+
o.result[u] = oe(m);
|
|
551
595
|
break;
|
|
552
|
-
case
|
|
553
|
-
|
|
554
|
-
|
|
596
|
+
case i.getCountryMobile:
|
|
597
|
+
o.result[u] = ae(
|
|
598
|
+
m
|
|
555
599
|
);
|
|
556
600
|
break;
|
|
557
|
-
case
|
|
558
|
-
|
|
559
|
-
|
|
601
|
+
case i.getPlatformTurnoverRate:
|
|
602
|
+
o.result[u] = ie(
|
|
603
|
+
m
|
|
560
604
|
);
|
|
561
605
|
break;
|
|
562
|
-
case
|
|
563
|
-
|
|
606
|
+
case i.mainWallet:
|
|
607
|
+
o.result[u] = re(m);
|
|
564
608
|
break;
|
|
565
|
-
case
|
|
566
|
-
|
|
567
|
-
|
|
609
|
+
case i.getLanguageSetting:
|
|
610
|
+
o.result[u] = le(
|
|
611
|
+
m
|
|
568
612
|
);
|
|
569
613
|
break;
|
|
570
|
-
case
|
|
571
|
-
|
|
572
|
-
|
|
614
|
+
case i.getFourDimensionData:
|
|
615
|
+
o.result[u] = ue(
|
|
616
|
+
m
|
|
573
617
|
);
|
|
574
618
|
break;
|
|
575
|
-
case
|
|
576
|
-
|
|
619
|
+
case i.getCompany:
|
|
620
|
+
o.result[u] = me(m);
|
|
577
621
|
break;
|
|
578
|
-
case
|
|
579
|
-
|
|
580
|
-
|
|
622
|
+
case i.searchResultDate:
|
|
623
|
+
o.result[u] = ce(
|
|
624
|
+
m
|
|
581
625
|
);
|
|
582
626
|
break;
|
|
627
|
+
case i.searchHot:
|
|
628
|
+
o.result[u] = pe(m);
|
|
629
|
+
break;
|
|
630
|
+
case i.searchByDate:
|
|
631
|
+
o.result[u] = ge(m);
|
|
632
|
+
break;
|
|
583
633
|
}
|
|
584
634
|
}
|
|
585
|
-
if (
|
|
586
|
-
const
|
|
635
|
+
if (i.vipList in o.result && ((t = o.result) != null && t.vipList)) {
|
|
636
|
+
const l = o.result.vipList;
|
|
587
637
|
let y = 4;
|
|
588
|
-
if (
|
|
589
|
-
const
|
|
590
|
-
current_grade_id:
|
|
638
|
+
if (i.getSetting in o.result && ((n = o.result) != null && n.getSetting) && (y = o.result.getSetting.vip_calculation, delete o.result.getSetting), i.vipBonus in o.result && ((r = o.result) != null && r.vipBonus) && (l.bonus = o.result.vipBonus, delete o.result.vipBonus), i.vipFieldStatus in o.result && ((s = o.result) != null && s.vipFieldStatus) && (console.log(o.result.vipFieldStatus), delete o.result.vipFieldStatus), i.vipStatus in o.result && ((c = o.result) != null && c.vipStatus)) {
|
|
639
|
+
const u = o.result.vipStatus, {
|
|
640
|
+
current_grade_id: m,
|
|
591
641
|
current_deposit: R,
|
|
592
642
|
current_turnover: C,
|
|
593
643
|
percentage: U
|
|
594
|
-
} =
|
|
595
|
-
|
|
644
|
+
} = u, j = l.list.findIndex((x) => x.id === m);
|
|
645
|
+
l.list = l.list.map((x, F) => {
|
|
596
646
|
const G = F === j;
|
|
597
|
-
let T = "0", O = "0",
|
|
598
|
-
return G ? (T = `${Math.min(Number(R), Number(
|
|
599
|
-
...
|
|
647
|
+
let T = "0", O = "0", B = 0;
|
|
648
|
+
return G ? (T = `${Math.min(Number(R), Number(x.deposit.total))}`, O = `${Math.min(Number(C), Number(x.turnover.total))}`, B = U) : F < j ? (T = x.deposit.total, O = x.turnover.total, B = 1) : F > j && (T = "0.00", O = "0.00", B = 0), {
|
|
649
|
+
...x,
|
|
600
650
|
is_current_level: G,
|
|
601
651
|
deposit: {
|
|
602
|
-
...
|
|
652
|
+
...x.deposit,
|
|
603
653
|
isShow: y === 1 || y === 3 || y === 4,
|
|
604
654
|
current: T
|
|
605
655
|
},
|
|
606
656
|
turnover: {
|
|
607
|
-
...
|
|
657
|
+
...x.turnover,
|
|
608
658
|
isShow: y === 2 || y === 3 || y === 4,
|
|
609
659
|
current: O
|
|
610
660
|
},
|
|
611
|
-
percentage:
|
|
661
|
+
percentage: B
|
|
612
662
|
};
|
|
613
|
-
}), delete
|
|
663
|
+
}), delete o.result.vipStatus;
|
|
614
664
|
}
|
|
615
|
-
|
|
665
|
+
o.result.vipList = l;
|
|
616
666
|
}
|
|
617
|
-
if (
|
|
618
|
-
const
|
|
619
|
-
if (
|
|
620
|
-
const y =
|
|
621
|
-
|
|
622
|
-
|
|
667
|
+
if (i.gameList in o.result && ((g = o.result) != null && g.gameList)) {
|
|
668
|
+
const l = o.result.gameList;
|
|
669
|
+
if (i.getPlatformTurnoverRate in o.result && ((d = o.result) != null && d.getPlatformTurnoverRate)) {
|
|
670
|
+
const y = o.result.getPlatformTurnoverRate;
|
|
671
|
+
l.forEach((u) => {
|
|
672
|
+
u.list = u.list.map((m) => {
|
|
623
673
|
const R = y.find(
|
|
624
|
-
(C) => C.id ===
|
|
674
|
+
(C) => C.id === m.id
|
|
625
675
|
);
|
|
626
676
|
return {
|
|
627
|
-
...
|
|
677
|
+
...m,
|
|
628
678
|
rate: (R == null ? void 0 : R.percentage) ?? "0.00"
|
|
629
679
|
};
|
|
630
680
|
});
|
|
631
|
-
}), delete
|
|
681
|
+
}), delete o.result.getPlatformTurnoverRate;
|
|
632
682
|
}
|
|
633
|
-
|
|
683
|
+
o.result.gameList = l;
|
|
634
684
|
}
|
|
635
|
-
if (
|
|
636
|
-
const
|
|
637
|
-
if (
|
|
638
|
-
const y =
|
|
639
|
-
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
}), delete
|
|
685
|
+
if (i.getCompany in o.result && ((f = o.result) != null && f.getCompany)) {
|
|
686
|
+
const l = o.result.getCompany;
|
|
687
|
+
if (i.searchResultDate in o.result && ((b = o.result) != null && b.searchResultDate)) {
|
|
688
|
+
const y = o.result.searchResultDate;
|
|
689
|
+
l.forEach((u) => {
|
|
690
|
+
const m = y.find((R) => R.id == u.id);
|
|
691
|
+
m && (u.date = m == null ? void 0 : m.date);
|
|
692
|
+
}), delete o.result.searchResultDate;
|
|
643
693
|
}
|
|
644
|
-
|
|
694
|
+
o.result.getCompany = l;
|
|
645
695
|
}
|
|
646
|
-
return
|
|
647
|
-
} catch (
|
|
648
|
-
return A.isAxiosError(
|
|
649
|
-
status: ((_ =
|
|
650
|
-
message: JSON.stringify((
|
|
696
|
+
return o;
|
|
697
|
+
} catch (h) {
|
|
698
|
+
return A.isAxiosError(h) ? {
|
|
699
|
+
status: ((_ = h.response) == null ? void 0 : _.status) || 600,
|
|
700
|
+
message: JSON.stringify((v = h.response) == null ? void 0 : v.data),
|
|
651
701
|
result: {}
|
|
652
|
-
} : (console.error(
|
|
653
|
-
status:
|
|
654
|
-
message:
|
|
702
|
+
} : (console.error(h), {
|
|
703
|
+
status: h.status || 500,
|
|
704
|
+
message: h.message,
|
|
655
705
|
result: {}
|
|
656
706
|
});
|
|
657
707
|
}
|
|
658
|
-
},
|
|
708
|
+
}, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
659
709
|
__proto__: null,
|
|
660
|
-
post:
|
|
661
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
710
|
+
post: fe
|
|
711
|
+
}, Symbol.toStringTag, { value: "Module" })), _e = async (e, t) => {
|
|
662
712
|
try {
|
|
663
|
-
const
|
|
713
|
+
const n = {
|
|
664
714
|
status: 200,
|
|
665
715
|
message: ""
|
|
666
716
|
};
|
|
667
|
-
return await
|
|
717
|
+
return await M.post(
|
|
668
718
|
"/auth/sesh",
|
|
669
719
|
JSON.stringify({
|
|
670
720
|
usr: e,
|
|
671
721
|
pwd: t
|
|
672
722
|
})
|
|
673
|
-
),
|
|
674
|
-
} catch (
|
|
675
|
-
return console.error(`login: ${JSON.stringify(
|
|
676
|
-
status:
|
|
677
|
-
message:
|
|
723
|
+
), n;
|
|
724
|
+
} catch (n) {
|
|
725
|
+
return console.error(`login: ${JSON.stringify(n)}`), {
|
|
726
|
+
status: n.status || 500,
|
|
727
|
+
message: n.message
|
|
678
728
|
};
|
|
679
729
|
}
|
|
680
730
|
}, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
681
731
|
__proto__: null,
|
|
682
|
-
call:
|
|
683
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
732
|
+
call: _e
|
|
733
|
+
}, Symbol.toStringTag, { value: "Module" })), he = async () => {
|
|
684
734
|
try {
|
|
685
735
|
const e = {
|
|
686
736
|
status: 200,
|
|
687
737
|
message: ""
|
|
688
738
|
};
|
|
689
|
-
return await
|
|
739
|
+
return await M.post("/auth/sesh/logout"), e;
|
|
690
740
|
} catch (e) {
|
|
691
741
|
return console.error(`login: ${JSON.stringify(e)}`), {
|
|
692
742
|
status: e.status || 500,
|
|
693
743
|
message: e.message
|
|
694
744
|
};
|
|
695
745
|
}
|
|
696
|
-
},
|
|
746
|
+
}, ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
697
747
|
__proto__: null,
|
|
698
|
-
call:
|
|
699
|
-
}, Symbol.toStringTag, { value: "Module" })), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
700
|
-
__proto__: null
|
|
701
|
-
}, Symbol.toStringTag, { value: "Module" })), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
702
|
-
__proto__: null
|
|
748
|
+
call: he
|
|
703
749
|
}, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
704
750
|
__proto__: null
|
|
705
751
|
}, Symbol.toStringTag, { value: "Module" })), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -708,42 +754,46 @@ const pe = async (e) => {
|
|
|
708
754
|
__proto__: null
|
|
709
755
|
}, Symbol.toStringTag, { value: "Module" })), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
710
756
|
__proto__: null
|
|
757
|
+
}, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
758
|
+
__proto__: null
|
|
711
759
|
}, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
712
760
|
__proto__: null
|
|
713
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
761
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
762
|
+
__proto__: null
|
|
763
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
714
764
|
__proto__: null
|
|
715
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
716
|
-
api:
|
|
765
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = {
|
|
766
|
+
api: be,
|
|
717
767
|
loginApi: ye,
|
|
718
|
-
logoutApi:
|
|
768
|
+
logoutApi: ve,
|
|
719
769
|
apiType: E,
|
|
720
|
-
loginType:
|
|
721
|
-
logoutType:
|
|
722
|
-
announcementType:
|
|
770
|
+
loginType: Se,
|
|
771
|
+
logoutType: xe,
|
|
772
|
+
announcementType: Le,
|
|
723
773
|
paymentsProviderType: J,
|
|
724
|
-
gameListType:
|
|
725
|
-
vipListType:
|
|
726
|
-
promotionType:
|
|
727
|
-
cmsListType:
|
|
728
|
-
mainWalletType:
|
|
729
|
-
},
|
|
774
|
+
gameListType: Re,
|
|
775
|
+
vipListType: De,
|
|
776
|
+
promotionType: Me,
|
|
777
|
+
cmsListType: ke,
|
|
778
|
+
mainWalletType: Pe
|
|
779
|
+
}, Be = {
|
|
730
780
|
install(e) {
|
|
731
|
-
e.config.globalProperties.$library =
|
|
781
|
+
e.config.globalProperties.$library = Te;
|
|
732
782
|
}
|
|
733
783
|
};
|
|
734
784
|
export {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
785
|
+
Be as Repository,
|
|
786
|
+
Le as announcementType,
|
|
787
|
+
be as api,
|
|
738
788
|
E as apiType,
|
|
739
|
-
|
|
740
|
-
|
|
789
|
+
ke as cmsListType,
|
|
790
|
+
Re as gameListType,
|
|
741
791
|
ye as loginApi,
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
792
|
+
Se as loginType,
|
|
793
|
+
ve as logoutApi,
|
|
794
|
+
xe as logoutType,
|
|
795
|
+
Pe as mainWalletType,
|
|
746
796
|
J as paymentsProviderType,
|
|
747
|
-
|
|
748
|
-
|
|
797
|
+
Me as promotionType,
|
|
798
|
+
De as vipListType
|
|
749
799
|
};
|
package/dist/60p82u21t54k.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],M):(d=typeof globalThis<"u"?globalThis:d||self,M(d["60p82u21t54k"]={},d.axios))})(this,function(d,M){"use strict";const P=M.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});P.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),P.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};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)});const ee=e=>new TextEncoder().encode(e),te=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var o=(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))(o||{});const $=Object.freeze(Object.defineProperty({__proto__:null,Api:o},Symbol.toStringTag,{value:"Module"}));var S=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(S||{});const U=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:S},Symbol.toStringTag,{value:"Module"})),ne=e=>e.mdPaymentChannels.map(t=>{const s=[];switch(t.name){case S.default:s.push(I(t.paymentmethod.manual,e));break;case S.pay:s.push(se(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&s.push(ae(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let r=!1;for(let a=0;a<t.paymentmethod.manual.bank.length;a++){const m=t.paymentmethod.manual.bank[a];if(m.list&&m.list.length>0){r=!0;break}}r&&s.push(I(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&s.push(oe(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:s}}),F={id:0,name:"",type:S.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},k=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},s=e.map((r,a)=>({id:a+1,name:r.promodesc,value:r.promoindex.toString(),disabled:!1}));return[t,...s]},D=(e,t,s,r)=>{let a,m;s>0?a=e>0?Math.max(s,e):s:a=Math.max(e,0),r>0?m=t>0?Math.min(r,t):r:m=Math.max(t,0);const g=Math.round(a);let c=1e3;m<c&&(c=Math.round(m));const f=c-g;let y="",_="";if(f>0){let p=Math.round((c-g)*.25).toString().split(""),v=[];for(const n of p)n!==""&&v.push(n);for(let n=0;n<v.length;n++)n===0?y+=(parseInt(v[n])+1).toString():y+="0";p=Math.round((c-g)*.5).toString().split(""),v=[];for(const n of p)n!==""&&v.push(n);for(let n=0;n<v.length;n++)n===0?_+=(parseInt(v[n])+1).toString():_+="0"}else y=c.toString(),_=c.toString();return{amountList:[g.toString(),y,_,c.toString()],minAmount:g,maxAmount:m}},I=(e,t)=>t?{id:0,name:"manualMethod",type:S.manual,promo:k(e.promo),bank:e.bank.map(a=>{const m=a.list&&a.list.length>0?a.list[0].mintransaction??"0.00":"0.00",g=a.list&&a.list.length>0?a.list[0].maxtransaction??"0.00":"0.00",{amountList:c,minAmount:f,maxAmount:y}=D(Number(m),Number(g),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:a.bankindex??0,bankAccountId:a.list&&a.list.length>0?a.list[0].bankaccountindex??0:0,name:a.list&&a.list.length>0?a.list[0].label??"":"",accountName:a.list&&a.list.length>0?a.list[0].bankaccountname??"":"",accountNo:a.list&&a.list.length>0?a.list[0].bankaccountno??"":"",qrcode:a.list&&a.list.length>0?a.list[0].bankaccountdesc:"",amountList:c,min:f,max:y}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:F,se=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:S.pay,promo:k(e.promo),bank:e.banklist.map(a=>{let m="0.00",g="0.00";const c=a.bankindex??0;for(let p=0;p<t.mdGatewayMinMax.length;p++)t.mdGatewayMinMax[p].bankindex==c.toString()&&(m=t.mdGatewayMinMax[p].min,g=t.mdGatewayMinMax[p].max);const{amountList:f,minAmount:y,maxAmount:_}=D(Number(m),Number(g),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),T={id:0,name:"autoChannel",amountList:f,min:y,max:_},h=a.pg.map(p=>{const v=p.mintransaction??"0.00",O=p.maxtransaction??"0.00",{amountList:N,minAmount:n,maxAmount:i}=D(Number(v),Number(O),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:p.pgindex,name:p.bankaccountname,amountList:N,min:n,max:i}});return{id:a.bankindex??0,name:a.banknameenglish??"",amountList:[],min:0,max:0,gateway:[T,...h]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:F,ae=(e,t,s)=>{if(!s)return F;const r=S.auto;let a=[];const m=s.mdGatewayMinMax;if(t.bank.length>0&&s.mdPGSelection=="1")a=t.bank.map(c=>{const{amountList:f,minAmount:y,maxAmount:_}=D(c.minTransaction??0,c.maxTransaction??0,s.mdBankLevelDetail.onlinepayment_min,s.mdBankLevelDetail.onlinepayment_max);return{id:c.pgindex,name:c.bankaccountname||"",amountList:f,min:y,max:_}});else{let c="0.00",f="0.00";for(let x=0;x<m.length;x++)m[x].bankindex===e.toString()&&(c=m[x].min,f=m[x].max);const{amountList:y,minAmount:_,maxAmount:T}=D(Number(c),Number(f),s.mdBankLevelDetail.onlinepayment_min,s.mdBankLevelDetail.onlinepayment_max),h={id:0,name:"autoChannel",amountList:y,min:_,max:T};a.push(h)}return{id:e,name:"autoMethod",type:r,promo:k(t.promo),bank:a,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},oe=(e,t)=>{const s=S.fix;return{id:e,name:"fixAmountMethod",type:s,promo:k(t.promo),bank:t.bank.map(a=>{const m=a.amtlist.map(Number).sort((c,f)=>c-f);return{id:a.pgindex,name:a.name,amountList:a.amtlist,min:m.length>0?m[0]:0,max:m.length>0?m[m.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ie=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),re=e=>({username:e.username,birthday:e.mdUserDetail.dob,email:e.mdUserDetail.email,fullName:e.mdUserDetail.firstname,phoneNumber:e.mdUserDetail.mobileno,profilePicUrl:e.mdUserDetail.profile_pic}),le=e=>e.mdGameListResult.map(t=>({code:t.code,id:t.id,name:t.name,nextPage:t.nextPage===1,list:t.mdPlatformProducts.map(s=>({id:Number(s.id),name:s.shortName,flag:s.flag,imageUrl:s.img,rate:"0.00"}))})),ue=e=>({list:e.mdGrade.map(t=>({id:t.gradeindex,is_current_level:!1,name:t.grade_simplified,percentage:0,turnover:{isShow:!1,current:"0",total:t.min_activebet},deposit:{isShow:!1,current:"0",total:t.min_deposit},promo_list:t.promocash.filter(s=>s.isshow==1&&s.status=="1").map(s=>({name:s.promosimplified,min_deposit:s.min_deposit,promo_bonus:s.percentage,promo_limit:s.max_promo_amt,turnover_multiplier:s.multiply,type:s.promo_type})),benefit_list:t.benefit})),detail:[],bonus:{showMonthButton:!1,showWeekButton:!1,showDayButton:!1}}),me=e=>({category:e.category.sort((t,s)=>t.sequence-s.sequence).map(t=>({id:t.catid,name:t.name})),list:e.list.sort((t,s)=>t.sequence-s.sequence).map(t=>{let s="";return t.stime!==""&&t.etime!==""&&(s=`${t.stime} - ${t.etime}`),t.stime!==""&&t.etime===""&&(s=t.stime),t.stime===""&&t.etime!==""&&(s=t.etime),{category_id:t.catid,img_url:t.banner,content:t.content,time:s,name:t.title}})}),ce=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),de=e=>e.mdVipSetting.filter(t=>{t.status==1}).map(t=>({name:t.showname})),pe=e=>({current_deposit:e.deposit,current_turnover:e.turnOver,current_grade_id:e.mdCurrentGrade.gradeindex,next_grade_id:e.mdNextGrade.gradeindex,percentage:Number(e.percentage)*100}),ge=e=>{let t=4;e.vipcalculation&&(t=Number(e.vipcalculation));let s=[];return e.extralivechat&&(s=JSON.parse(e.extralivechat)),{vip_calculation:t,livechat:s.filter(r=>r.status===1).map(r=>({name:r.name,image_url:r.imgname,url:r.url})),mobileValidate:e.mobilevalidate?e.mobilevalidate=="1":!1}},fe=e=>{let t=[];e.mobileBanner&&(t=e.mobileBanner);let s=[];e.mobileAd&&(s=e.mobileAd);let r=[];return e.mobileAbout&&(r=e.mobileAbout),{banner:t.map(a=>`${a.imagepath}?${a.filemtime}`),ad:s.map(a=>`${a.imagepath}?${a.filemtime}`),about:r.map(a=>({name:a.name,content:a.content}))}},ye=e=>e.data.filter(t=>t.status==="1").map(t=>({code:t.area_code,regex:t.regex,value:t.value})),be=e=>e,_e=e=>{let t=null;return e?e.status!=1?t=0:t=e.mainwallet:t=0,{amount:t}},he=e=>e.data.filter(t=>t.status=="1").map(t=>({name:t.title,icon_url:t.flag_icon,code:t.code})),ve=e=>(console.log(e),{name:""}),Se=e=>e.data.filter(t=>t.company_status==1).map(t=>({id:t.company_id,name:t.company_name,date:[]})),xe=e=>e.data.map(t=>({id:t.key,date:t.draw_date.map(s=>Le(s.draw_tmactive))}));function Le(e){const t=new Date(e*1e3),s=t.getFullYear(),r=("0"+(t.getMonth()+1)).slice(-2),a=("0"+t.getDate()).slice(-2);return`${s}-${r}-${a}`}const z=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,s,r,a,m,g,c,f,y,_,T;try{e.findIndex(i=>i.name===o.vipList)!==-1&&e.push({name:o.vipBonus,query:""},{name:o.vipFieldStatus,query:""},{name:o.vipStatus,query:""},{name:o.getSetting,query:JSON.stringify({name:["vipcalculation"]})}),e.findIndex(i=>i.name===o.gameList)!==-1&&e.push({name:o.getPlatformTurnoverRate,query:""});const p=e.findIndex(i=>i.name===o.getFourDimensionData);p!==-1&&(e.splice(p),e.push({name:o.getFourDimensionData,query:JSON.stringify({action:"getCompany",native:"1"})},{name:o.getFourDimensionData,query:JSON.stringify({action:"searchResultDate",limit:100,company:[],native:"1",splitCompany:"1"})}));const O={requests:e.map(i=>({name:i.name,query:btoa(i.query)}))},N=await P.post("/jwt",ee(JSON.stringify(O))),n={status:200,message:"",result:{}};for(const i of N.data.responses){i.error!=null&&i.error.code!=200&&(n.status=i.error.code,n.message=i.error.message);const b=i.attributes!==null&&i.attributes!==void 0?te(i.attributes):null,l=i.name,u=b?JSON.parse(b):null;if(!u)n.result[l]=null;else switch(l){case o.announcement:n.result[l]=ie(u);break;case o.gameList:n.result[l]=le(u);break;case o.cmsList:n.result[l]=fe(u);break;case o.paymentsProvider:n.result[l]=ne(u);break;case o.getUserProfile:n.result[l]=re(u);break;case o.vipList:n.result[l]=ue(u);break;case o.vipBonus:n.result[l]=ce(u);break;case o.vipFieldStatus:n.result[l]=de(u);break;case o.vipStatus:n.result[l]=pe(u);break;case o.promotion:n.result[l]=me(u);break;case o.getSetting:n.result[l]=ge(u);break;case o.getCountryMobile:n.result[l]=ye(u);break;case o.getPlatformTurnoverRate:n.result[l]=be(u);break;case o.mainWallet:n.result[l]=_e(u);break;case o.getLanguageSetting:n.result[l]=he(u);break;case o.getFourDimensionData:n.result[l]=ve(u);break;case o.getCompany:n.result[l]=Se(u);break;case o.searchResultDate:n.result[l]=xe(u);break}}if(o.vipList in n.result&&((t=n.result)!=null&&t.vipList)){const i=n.result.vipList;let b=4;if(o.getSetting in n.result&&((s=n.result)!=null&&s.getSetting)&&(b=n.result.getSetting.vip_calculation,delete n.result.getSetting),o.vipBonus in n.result&&((r=n.result)!=null&&r.vipBonus)&&(i.bonus=n.result.vipBonus,delete n.result.vipBonus),o.vipFieldStatus in n.result&&((a=n.result)!=null&&a.vipFieldStatus)&&(console.log(n.result.vipFieldStatus),delete n.result.vipFieldStatus),o.vipStatus in n.result&&((m=n.result)!=null&&m.vipStatus)){const l=n.result.vipStatus,{current_grade_id:u,current_deposit:R,current_turnover:q,percentage:Me}=l,A=i.list.findIndex(L=>L.id===u);i.list=i.list.map((L,G)=>{const w=G===A;let j="0",B="0",C=0;return w?(j=`${Math.min(Number(R),Number(L.deposit.total))}`,B=`${Math.min(Number(q),Number(L.turnover.total))}`,C=Me):G<A?(j=L.deposit.total,B=L.turnover.total,C=1):G>A&&(j="0.00",B="0.00",C=0),{...L,is_current_level:w,deposit:{...L.deposit,isShow:b===1||b===3||b===4,current:j},turnover:{...L.turnover,isShow:b===2||b===3||b===4,current:B},percentage:C}}),delete n.result.vipStatus}n.result.vipList=i}if(o.gameList in n.result&&((g=n.result)!=null&&g.gameList)){const i=n.result.gameList;if(o.getPlatformTurnoverRate in n.result&&((c=n.result)!=null&&c.getPlatformTurnoverRate)){const b=n.result.getPlatformTurnoverRate;i.forEach(l=>{l.list=l.list.map(u=>{const R=b.find(q=>q.id===u.id);return{...u,rate:(R==null?void 0:R.percentage)??"0.00"}})}),delete n.result.getPlatformTurnoverRate}n.result.gameList=i}if(o.getCompany in n.result&&((f=n.result)!=null&&f.getCompany)){const i=n.result.getCompany;if(o.searchResultDate in n.result&&((y=n.result)!=null&&y.searchResultDate)){const b=n.result.searchResultDate;i.forEach(l=>{const u=b.find(R=>R.id==l.id);u&&(l.date=u==null?void 0:u.date)}),delete n.result.searchResultDate}n.result.getCompany=i}return n}catch(h){return M.isAxiosError(h)?{status:((_=h.response)==null?void 0:_.status)||600,message:JSON.stringify((T=h.response)==null?void 0:T.data),result:{}}:(console.error(h),{status:h.status||500,message:h.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),E=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const s={status:200,message:""};return await P.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),s}catch(s){return console.error(`login: ${JSON.stringify(s)}`),{status:s.status||500,message:s.message}}}},Symbol.toStringTag,{value:"Module"})),J=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await P.post("/auth/sesh/logout"),e}catch(e){return console.error(`login: ${JSON.stringify(e)}`),{status:e.status||500,message:e.message}}}},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Te={api:z,loginApi:E,logoutApi:J,apiType:$,loginType:W,logoutType:V,announcementType:Y,paymentsProviderType:U,gameListType:H,vipListType:K,promotionType:Q,cmsListType:X,mainWalletType:Z},Re={install(e){e.config.globalProperties.$library=Te}};d.Repository=Re,d.announcementType=Y,d.api=z,d.apiType=$,d.cmsListType=X,d.gameListType=H,d.loginApi=E,d.loginType=W,d.logoutApi=J,d.logoutType=V,d.mainWalletType=Z,d.paymentsProviderType=U,d.promotionType=Q,d.vipListType=K,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(p,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],D):(p=typeof globalThis<"u"?globalThis:p||self,D(p["60p82u21t54k"]={},p.axios))})(this,function(p,D){"use strict";const M=D.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});M.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),M.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};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)});const ee=e=>new TextEncoder().encode(e),te=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var i=(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))(i||{});const $=Object.freeze(Object.defineProperty({__proto__:null,Api:i},Symbol.toStringTag,{value:"Module"}));var L=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(L||{});const U=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:L},Symbol.toStringTag,{value:"Module"})),ne=e=>e.mdPaymentChannels.map(t=>{const n=[];switch(t.name){case L.default:n.push(I(t.paymentmethod.manual,e));break;case L.pay:n.push(oe(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&n.push(se(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let r=!1;for(let s=0;s<t.paymentmethod.manual.bank.length;s++){const c=t.paymentmethod.manual.bank[s];if(c.list&&c.list.length>0){r=!0;break}}r&&n.push(I(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&n.push(ae(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:n}}),F={id:0,name:"",type:L.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},k=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},n=e.map((r,s)=>({id:s+1,name:r.promodesc,value:r.promoindex.toString(),disabled:!1}));return[t,...n]},P=(e,t,n,r)=>{let s,c;n>0?s=e>0?Math.max(n,e):n:s=Math.max(e,0),r>0?c=t>0?Math.min(r,t):r:c=Math.max(t,0);const f=Math.round(s);let d=1e3;c<d&&(d=Math.round(c));const b=d-f;let y="",_="";if(b>0){let g=Math.round((d-f)*.25).toString().split(""),x=[];for(const o of g)o!==""&&x.push(o);for(let o=0;o<x.length;o++)o===0?y+=(parseInt(x[o])+1).toString():y+="0";g=Math.round((d-f)*.5).toString().split(""),x=[];for(const o of g)o!==""&&x.push(o);for(let o=0;o<x.length;o++)o===0?_+=(parseInt(x[o])+1).toString():_+="0"}else y=d.toString(),_=d.toString();return{amountList:[f.toString(),y,_,d.toString()],minAmount:f,maxAmount:c}},I=(e,t)=>t?{id:0,name:"manualMethod",type:L.manual,promo:k(e.promo),bank:e.bank.map(s=>{const c=s.list&&s.list.length>0?s.list[0].mintransaction??"0.00":"0.00",f=s.list&&s.list.length>0?s.list[0].maxtransaction??"0.00":"0.00",{amountList:d,minAmount:b,maxAmount:y}=P(Number(c),Number(f),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:s.bankindex??0,bankAccountId:s.list&&s.list.length>0?s.list[0].bankaccountindex??0:0,name:s.list&&s.list.length>0?s.list[0].label??"":"",accountName:s.list&&s.list.length>0?s.list[0].bankaccountname??"":"",accountNo:s.list&&s.list.length>0?s.list[0].bankaccountno??"":"",qrcode:s.list&&s.list.length>0?s.list[0].bankaccountdesc:"",amountList:d,min:b,max:y}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:F,oe=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:L.pay,promo:k(e.promo),bank:e.banklist.map(s=>{let c="0.00",f="0.00";const d=s.bankindex??0;for(let g=0;g<t.mdGatewayMinMax.length;g++)t.mdGatewayMinMax[g].bankindex==d.toString()&&(c=t.mdGatewayMinMax[g].min,f=t.mdGatewayMinMax[g].max);const{amountList:b,minAmount:y,maxAmount:_}=P(Number(c),Number(f),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),S={id:0,name:"autoChannel",amountList:b,min:y,max:_},v=s.pg.map(g=>{const x=g.mintransaction??"0.00",O=g.maxtransaction??"0.00",{amountList:B,minAmount:o,maxAmount:l}=P(Number(x),Number(O),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:g.pgindex,name:g.bankaccountname,amountList:B,min:o,max:l}});return{id:s.bankindex??0,name:s.banknameenglish??"",amountList:[],min:0,max:0,gateway:[S,...v]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:F,se=(e,t,n)=>{if(!n)return F;const r=L.auto;let s=[];const c=n.mdGatewayMinMax;if(t.bank.length>0&&n.mdPGSelection=="1")s=t.bank.map(d=>{const{amountList:b,minAmount:y,maxAmount:_}=P(d.minTransaction??0,d.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:d.pgindex,name:d.bankaccountname||"",amountList:b,min:y,max:_}});else{let d="0.00",b="0.00";for(let a=0;a<c.length;a++)c[a].bankindex===e.toString()&&(d=c[a].min,b=c[a].max);const{amountList:y,minAmount:_,maxAmount:S}=P(Number(d),Number(b),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),v={id:0,name:"autoChannel",amountList:y,min:_,max:S};s.push(v)}return{id:e,name:"autoMethod",type:r,promo:k(t.promo),bank:s,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ae=(e,t)=>{const n=L.fix;return{id:e,name:"fixAmountMethod",type:n,promo:k(t.promo),bank:t.bank.map(s=>{const c=s.amtlist.map(Number).sort((d,b)=>d-b);return{id:s.pgindex,name:s.name,amountList:s.amtlist,min:c.length>0?c[0]:0,max:c.length>0?c[c.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ie=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),re=e=>({username:e.username,birthday:e.mdUserDetail.dob,email:e.mdUserDetail.email,fullName:e.mdUserDetail.firstname,phoneNumber:e.mdUserDetail.mobileno,profilePicUrl:e.mdUserDetail.profile_pic}),le=e=>e.mdGameListResult.map(t=>({code:t.code,id:t.id,name:t.name,nextPage:t.nextPage===1,list:t.mdPlatformProducts.map(n=>({id:Number(n.id),name:n.shortName,flag:n.flag,imageUrl:n.img,rate:"0.00"}))})),ue=e=>({list:e.mdGrade.map(t=>({id:t.gradeindex,is_current_level:!1,name:t.grade_simplified,percentage:0,turnover:{isShow:!1,current:"0",total:t.min_activebet},deposit:{isShow:!1,current:"0",total:t.min_deposit},promo_list:t.promocash.filter(n=>n.isshow==1&&n.status=="1").map(n=>({name:n.promosimplified,min_deposit:n.min_deposit,promo_bonus:n.percentage,promo_limit:n.max_promo_amt,turnover_multiplier:n.multiply,type:n.promo_type})),benefit_list:t.benefit})),detail:[],bonus:{showMonthButton:!1,showWeekButton:!1,showDayButton:!1}}),me=e=>({category:e.category.sort((t,n)=>t.sequence-n.sequence).map(t=>({id:t.catid,name:t.name})),list:e.list.sort((t,n)=>t.sequence-n.sequence).map(t=>{let n="";return t.stime!==""&&t.etime!==""&&(n=`${t.stime} - ${t.etime}`),t.stime!==""&&t.etime===""&&(n=t.stime),t.stime===""&&t.etime!==""&&(n=t.etime),{category_id:t.catid,img_url:t.banner,content:t.content,time:n,name:t.title}})}),ce=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),de=e=>e.mdVipSetting.filter(t=>{t.status==1}).map(t=>({name:t.showname})),pe=e=>({current_deposit:e.deposit,current_turnover:e.turnOver,current_grade_id:e.mdCurrentGrade.gradeindex,next_grade_id:e.mdNextGrade.gradeindex,percentage:Number(e.percentage)*100}),ge=e=>{let t=4;e.vipcalculation&&(t=Number(e.vipcalculation));let n=[];return e.extralivechat&&(n=JSON.parse(e.extralivechat)),{vip_calculation:t,livechat:n.filter(r=>r.status===1).map(r=>({name:r.name,image_url:r.imgname,url:r.url})),mobileValidate:e.mobilevalidate?e.mobilevalidate=="1":!1}},fe=e=>{let t=[];e.mobileBanner&&(t=e.mobileBanner);let n=[];e.mobileAd&&(n=e.mobileAd);let r=[];return e.mobileAbout&&(r=e.mobileAbout),{banner:t.map(s=>`${s.imagepath}?${s.filemtime}`),ad:n.map(s=>`${s.imagepath}?${s.filemtime}`),about:r.map(s=>({name:s.name,content:s.content}))}},be=e=>e.data.filter(t=>t.status==="1").map(t=>({code:t.area_code,regex:t.regex,value:t.value})),ye=e=>e,_e=e=>{let t=null;return e?e.status!=1?t=0:t=e.mainwallet:t=0,{amount:t}},he=e=>e.data.filter(t=>t.status=="1").map(t=>({name:t.title,icon_url:t.flag_icon,code:t.code})),ve=e=>(console.log(e),{name:""}),Se=e=>e.data.filter(t=>t.company_status==1).map(t=>({id:t.company_id,name:t.company_name,date:[]})),xe=e=>e.data.map(t=>({id:t.key,date:t.draw_date.map(n=>Le(n.draw_tmactive))}));function Le(e){const t=new Date(e*1e3),n=t.getFullYear(),r=("0"+(t.getMonth()+1)).slice(-2),s=("0"+t.getDate()).slice(-2);return`${n}-${r}-${s}`}const Te=e=>e.data.map(t=>({id:t.company_id,list:t.drawCount.map(n=>({combination:n.combination_combination,total:n.total}))})),Re=e=>e.data.map(t=>({id:t.company_id,resultByDateList:t.draws.map(n=>{const r=n.results.filter(a=>a.combination_dimension==3).map(a=>a.combination_combination),s=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==1).map(a=>a.combination_combination),c=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==2).map(a=>a.combination_combination),f=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==3).map(a=>a.combination_combination),d=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==4).map(a=>a.combination_combination),b=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==5).map(a=>a.combination_combination),y=n.results.filter(a=>a.combination_dimension==5&&a.combination_position==1).map(a=>a.combination_combination),_=n.results.filter(a=>a.combination_dimension==5).map(a=>a.combination_combination),S=n.results.filter(a=>a.combination_dimension==6&&a.combination_position==1).map(a=>a.combination_combination),v=n.results.filter(a=>a.combination_dimension==6).map(a=>a.combination_combination);return{date:n.date,3:r,4:{1:s,2:c,3:f,4:d,5:b},5:{1:y,all:_},6:{1:S,all:v}}})})),z=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,n,r,s,c,f,d,b,y,_,S;try{e.findIndex(l=>l.name===i.vipList)!==-1&&e.push({name:i.vipBonus,query:""},{name:i.vipFieldStatus,query:""},{name:i.vipStatus,query:""},{name:i.getSetting,query:JSON.stringify({name:["vipcalculation"]})}),e.findIndex(l=>l.name===i.gameList)!==-1&&e.push({name:i.getPlatformTurnoverRate,query:""});const g=e.findIndex(l=>l.name===i.getFourDimensionData);g!==-1&&e[g].query==""&&(e.splice(g),e.push({name:i.getFourDimensionData,query:JSON.stringify({action:"getCompany",native:"1"})},{name:i.getFourDimensionData,query:JSON.stringify({action:"searchResultDate",limit:100,company:[],native:"1",splitCompany:"1"})}));const O={requests:e.map(l=>({name:l.name,query:btoa(l.query)}))},B=await M.post("/jwt",ee(JSON.stringify(O))),o={status:200,message:"",result:{}};for(const l of B.data.responses){l.error!=null&&l.error.code!=200&&(o.status=l.error.code,o.message=l.error.message);const h=l.attributes!==null&&l.attributes!==void 0?te(l.attributes):null,u=l.name,m=h?JSON.parse(h):null;if(!m)o.result[u]=null;else switch(u){case i.announcement:o.result[u]=ie(m);break;case i.gameList:o.result[u]=le(m);break;case i.cmsList:o.result[u]=fe(m);break;case i.paymentsProvider:o.result[u]=ne(m);break;case i.getUserProfile:o.result[u]=re(m);break;case i.vipList:o.result[u]=ue(m);break;case i.vipBonus:o.result[u]=ce(m);break;case i.vipFieldStatus:o.result[u]=de(m);break;case i.vipStatus:o.result[u]=pe(m);break;case i.promotion:o.result[u]=me(m);break;case i.getSetting:o.result[u]=ge(m);break;case i.getCountryMobile:o.result[u]=be(m);break;case i.getPlatformTurnoverRate:o.result[u]=ye(m);break;case i.mainWallet:o.result[u]=_e(m);break;case i.getLanguageSetting:o.result[u]=he(m);break;case i.getFourDimensionData:o.result[u]=ve(m);break;case i.getCompany:o.result[u]=Se(m);break;case i.searchResultDate:o.result[u]=xe(m);break;case i.searchHot:o.result[u]=Te(m);break;case i.searchByDate:o.result[u]=Re(m);break}}if(i.vipList in o.result&&((t=o.result)!=null&&t.vipList)){const l=o.result.vipList;let h=4;if(i.getSetting in o.result&&((n=o.result)!=null&&n.getSetting)&&(h=o.result.getSetting.vip_calculation,delete o.result.getSetting),i.vipBonus in o.result&&((r=o.result)!=null&&r.vipBonus)&&(l.bonus=o.result.vipBonus,delete o.result.vipBonus),i.vipFieldStatus in o.result&&((s=o.result)!=null&&s.vipFieldStatus)&&(console.log(o.result.vipFieldStatus),delete o.result.vipFieldStatus),i.vipStatus in o.result&&((c=o.result)!=null&&c.vipStatus)){const u=o.result.vipStatus,{current_grade_id:m,current_deposit:R,current_turnover:q,percentage:Pe}=u,A=l.list.findIndex(T=>T.id===m);l.list=l.list.map((T,G)=>{const w=G===A;let N="0",j="0",C=0;return w?(N=`${Math.min(Number(R),Number(T.deposit.total))}`,j=`${Math.min(Number(q),Number(T.turnover.total))}`,C=Pe):G<A?(N=T.deposit.total,j=T.turnover.total,C=1):G>A&&(N="0.00",j="0.00",C=0),{...T,is_current_level:w,deposit:{...T.deposit,isShow:h===1||h===3||h===4,current:N},turnover:{...T.turnover,isShow:h===2||h===3||h===4,current:j},percentage:C}}),delete o.result.vipStatus}o.result.vipList=l}if(i.gameList in o.result&&((f=o.result)!=null&&f.gameList)){const l=o.result.gameList;if(i.getPlatformTurnoverRate in o.result&&((d=o.result)!=null&&d.getPlatformTurnoverRate)){const h=o.result.getPlatformTurnoverRate;l.forEach(u=>{u.list=u.list.map(m=>{const R=h.find(q=>q.id===m.id);return{...m,rate:(R==null?void 0:R.percentage)??"0.00"}})}),delete o.result.getPlatformTurnoverRate}o.result.gameList=l}if(i.getCompany in o.result&&((b=o.result)!=null&&b.getCompany)){const l=o.result.getCompany;if(i.searchResultDate in o.result&&((y=o.result)!=null&&y.searchResultDate)){const h=o.result.searchResultDate;l.forEach(u=>{const m=h.find(R=>R.id==u.id);m&&(u.date=m==null?void 0:m.date)}),delete o.result.searchResultDate}o.result.getCompany=l}return o}catch(v){return D.isAxiosError(v)?{status:((_=v.response)==null?void 0:_.status)||600,message:JSON.stringify((S=v.response)==null?void 0:S.data),result:{}}:(console.error(v),{status:v.status||500,message:v.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),E=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const n={status:200,message:""};return await M.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),n}catch(n){return console.error(`login: ${JSON.stringify(n)}`),{status:n.status||500,message:n.message}}}},Symbol.toStringTag,{value:"Module"})),J=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await M.post("/auth/sesh/logout"),e}catch(e){return console.error(`login: ${JSON.stringify(e)}`),{status:e.status||500,message:e.message}}}},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),De={api:z,loginApi:E,logoutApi:J,apiType:$,loginType:W,logoutType:V,announcementType:H,paymentsProviderType:U,gameListType:Y,vipListType:K,promotionType:Q,cmsListType:X,mainWalletType:Z},Me={install(e){e.config.globalProperties.$library=De}};p.Repository=Me,p.announcementType=H,p.api=z,p.apiType=$,p.cmsListType=X,p.gameListType=Y,p.loginApi=E,p.loginType=W,p.logoutApi=J,p.logoutType=V,p.mainWalletType=Z,p.paymentsProviderType=U,p.promotionType=Q,p.vipListType=K,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
package/dist/api/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,cAAc,EAAiB,cAAc,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,cAAc,EAAiB,cAAc,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA+BnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CA6SnB,CAAA"}
|
package/dist/api/type.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ import { getLanguageSettingResponse } from '../model/getLanguageSetting/type';
|
|
|
16
16
|
import { getFourDimensionDataResponse } from '../model/getFourDimensionData/type';
|
|
17
17
|
import { getCompanyResponse } from '../model/getCompany/type';
|
|
18
18
|
import { searchResultDateResponse } from '../model/searchResultDate/type';
|
|
19
|
+
import { searchHotResponse } from '../model/searchHot/type';
|
|
20
|
+
import { searchByDateResponse } from '../model/searchByDate/type';
|
|
19
21
|
|
|
20
22
|
export declare enum Api {
|
|
21
23
|
announcement = "announcement",
|
|
@@ -36,7 +38,9 @@ export declare enum Api {
|
|
|
36
38
|
getLanguageSetting = "getLanguageSetting",
|
|
37
39
|
getFourDimensionData = "getfourDimensionData",
|
|
38
40
|
getCompany = "getCompany",
|
|
39
|
-
searchResultDate = "searchResultDate"
|
|
41
|
+
searchResultDate = "searchResultDate",
|
|
42
|
+
searchHot = "searchHot",
|
|
43
|
+
searchByDate = "searchByDate"
|
|
40
44
|
}
|
|
41
45
|
export type ApiResponseMap = {
|
|
42
46
|
[Api.announcement]: AnnouncementResponse;
|
|
@@ -58,6 +62,8 @@ export type ApiResponseMap = {
|
|
|
58
62
|
[Api.getFourDimensionData]: getFourDimensionDataResponse;
|
|
59
63
|
[Api.getCompany]: getCompanyResponse;
|
|
60
64
|
[Api.searchResultDate]: searchResultDateResponse;
|
|
65
|
+
[Api.searchHot]: searchHotResponse;
|
|
66
|
+
[Api.searchByDate]: searchByDateResponse;
|
|
61
67
|
};
|
|
62
68
|
export type ApiResponse<T extends keyof ApiResponseMap> = ApiResponseMap[T];
|
|
63
69
|
export type RequestPayload<T extends keyof ApiResponseMap> = {
|
package/dist/api/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/api/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAA;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAC5E,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/api/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAA;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAC5E,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAEhE,oBAAY,GAAG;IACb,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,gBAAgB,qBAAqB;IACrC,uBAAuB,4BAA4B;IACnD,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,oBAAoB,yBAAyB;IAC7C,UAAU,eAAe;IACzB,gBAAgB,qBAAqB;IACrC,SAAS,cAAc;IACvB,YAAY,iBAAiB;CAC9B;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IACxC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAChC,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IACxC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;IAC9B,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAA;IAChD,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,sBAAsB,CAAA;IAC5C,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;IAC9B,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAClC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAChC,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,eAAe,CAAA;IACrC,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAClC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAA;IACpC,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAA;IAChD,CAAC,GAAG,CAAC,uBAAuB,CAAC,EAAE,+BAA+B,CAAA;IAC9D,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAA;IACpC,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAAE,0BAA0B,CAAA;IACpD,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,4BAA4B,CAAA;IACxD,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAA;IACpC,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAA;IAChD,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAClC,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;AAE3E,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAC3D,IAAI,EAAE,CAAC,CAAA;IACP,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IACnD,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;KACrD,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;CACnC,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { searchByDateResponse } from './type';
|
|
2
|
+
|
|
3
|
+
export declare const getSearchByDateResponse: (raw: RawSearchByDateResponse) => searchByDateResponse;
|
|
4
|
+
type RawSearchByDateResponse = {
|
|
5
|
+
status: number;
|
|
6
|
+
message: string | null;
|
|
7
|
+
errormessage: string | null;
|
|
8
|
+
data: {
|
|
9
|
+
company_code: string;
|
|
10
|
+
company_id: number;
|
|
11
|
+
company_name: string;
|
|
12
|
+
company_nameshort: string;
|
|
13
|
+
company_status: number;
|
|
14
|
+
draws: {
|
|
15
|
+
date: string;
|
|
16
|
+
draw_fkcompany: number;
|
|
17
|
+
draw_id: number;
|
|
18
|
+
draw_identifier: string;
|
|
19
|
+
draw_tmactive: number;
|
|
20
|
+
results: {
|
|
21
|
+
combination_combination: string;
|
|
22
|
+
combination_dimension: number;
|
|
23
|
+
combination_fkcompany: number;
|
|
24
|
+
combination_fkdraw: number;
|
|
25
|
+
combination_id: number;
|
|
26
|
+
combination_position: number;
|
|
27
|
+
}[];
|
|
28
|
+
}[];
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=getSearchByDateResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSearchByDateResponse.d.ts","sourceRoot":"","sources":["../../../src/model/searchByDate/getSearchByDateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,eAAO,MAAM,uBAAuB,QAC7B,uBAAuB,KAC3B,oBAiFF,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,IAAI,EAAE;QACJ,YAAY,EAAE,MAAM,CAAA;QACpB,UAAU,EAAE,MAAM,CAAA;QAClB,YAAY,EAAE,MAAM,CAAA;QACpB,iBAAiB,EAAE,MAAM,CAAA;QACzB,cAAc,EAAE,MAAM,CAAA;QACtB,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAA;YACZ,cAAc,EAAE,MAAM,CAAA;YACtB,OAAO,EAAE,MAAM,CAAA;YACf,eAAe,EAAE,MAAM,CAAA;YACvB,aAAa,EAAE,MAAM,CAAA;YACrB,OAAO,EAAE;gBACP,uBAAuB,EAAE,MAAM,CAAA;gBAC/B,qBAAqB,EAAE,MAAM,CAAA;gBAC7B,qBAAqB,EAAE,MAAM,CAAA;gBAC7B,kBAAkB,EAAE,MAAM,CAAA;gBAC1B,cAAc,EAAE,MAAM,CAAA;gBACtB,oBAAoB,EAAE,MAAM,CAAA;aAC7B,EAAE,CAAA;SACJ,EAAE,CAAA;KACJ,EAAE,CAAA;CACJ,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type searchByDateResponse = {
|
|
2
|
+
id: number;
|
|
3
|
+
resultByDateList: {
|
|
4
|
+
date: string;
|
|
5
|
+
'3': string[];
|
|
6
|
+
'4': {
|
|
7
|
+
'1': string[];
|
|
8
|
+
'2': string[];
|
|
9
|
+
'3': string[];
|
|
10
|
+
'4': string[];
|
|
11
|
+
'5': string[];
|
|
12
|
+
};
|
|
13
|
+
'5': {
|
|
14
|
+
'1': string[];
|
|
15
|
+
all: string[];
|
|
16
|
+
};
|
|
17
|
+
'6': {
|
|
18
|
+
'1': string[];
|
|
19
|
+
all: string[];
|
|
20
|
+
};
|
|
21
|
+
}[];
|
|
22
|
+
}[];
|
|
23
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/searchByDate/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,gBAAgB,EAAE;QAChB,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,EAAE,CAAA;QACb,GAAG,EAAE;YACH,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;SACd,CAAA;QACD,GAAG,EAAE;YACH,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;SACd,CAAA;QACD,GAAG,EAAE;YACH,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;SACd,CAAA;KACF,EAAE,CAAA;CACJ,EAAE,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { searchHotResponse } from './type';
|
|
2
|
+
|
|
3
|
+
export declare const getSearchHotResponse: (raw: RawSearchHotResponse) => searchHotResponse;
|
|
4
|
+
type RawSearchHotResponse = {
|
|
5
|
+
status: number;
|
|
6
|
+
message: string | null;
|
|
7
|
+
errormessage: string | null;
|
|
8
|
+
data: {
|
|
9
|
+
company_code: string;
|
|
10
|
+
company_id: number;
|
|
11
|
+
company_name: string;
|
|
12
|
+
company_nameshort: string;
|
|
13
|
+
company_status: number;
|
|
14
|
+
drawCount: {
|
|
15
|
+
combination_combination: string;
|
|
16
|
+
total: number;
|
|
17
|
+
}[];
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=getSearchHotResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSearchHotResponse.d.ts","sourceRoot":"","sources":["../../../src/model/searchHot/getSearchHotResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAE1C,eAAO,MAAM,oBAAoB,QAAS,oBAAoB,KAAG,iBAYhE,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,IAAI,EAAE;QACJ,YAAY,EAAE,MAAM,CAAA;QACpB,UAAU,EAAE,MAAM,CAAA;QAClB,YAAY,EAAE,MAAM,CAAA;QACpB,iBAAiB,EAAE,MAAM,CAAA;QACzB,cAAc,EAAE,MAAM,CAAA;QACtB,SAAS,EAAE;YACT,uBAAuB,EAAE,MAAM,CAAA;YAC/B,KAAK,EAAE,MAAM,CAAA;SACd,EAAE,CAAA;KACJ,EAAE,CAAA;CACJ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/searchHot/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,GAAG,EAAE,CAAA;CACZ,EAAE,CAAA;AAEH,MAAM,MAAM,GAAG,GAAG;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA"}
|