60p82u21t54k 0.0.54 → 0.0.55
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 +134 -125
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/type.d.ts +4 -1
- package/dist/api/type.d.ts.map +1 -1
- package/dist/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
|
-
import
|
|
2
|
-
const D =
|
|
1
|
+
import U from "axios";
|
|
2
|
+
const D = U.create({
|
|
3
3
|
baseURL: "/graph",
|
|
4
4
|
timeout: 5e3,
|
|
5
5
|
// Request timeout
|
|
@@ -66,7 +66,7 @@ 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 o = /* @__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))(o || {});
|
|
69
|
+
var o = /* @__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))(o || {});
|
|
70
70
|
const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71
71
|
__proto__: null,
|
|
72
72
|
Api: o
|
|
@@ -86,20 +86,20 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
86
86
|
break;
|
|
87
87
|
default:
|
|
88
88
|
if (t.paymentmethod.auto.bank.length > 0 && s.push(
|
|
89
|
-
|
|
89
|
+
H(t.bankid ?? 0, t.paymentmethod.auto, e)
|
|
90
90
|
), t.paymentmethod.manual.bank.length > 0) {
|
|
91
|
-
let
|
|
91
|
+
let u = !1;
|
|
92
92
|
for (let a = 0; a < t.paymentmethod.manual.bank.length; a++) {
|
|
93
93
|
const m = t.paymentmethod.manual.bank[a];
|
|
94
94
|
if (m.list && m.list.length > 0) {
|
|
95
|
-
|
|
95
|
+
u = !0;
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
u && s.push($(t.paymentmethod.manual, e));
|
|
100
100
|
}
|
|
101
101
|
t.paymentmethod.fixamount.bank.length > 0 && s.push(
|
|
102
|
-
|
|
102
|
+
Y(t.bankid ?? 0, t.paymentmethod.fixamount)
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
return {
|
|
@@ -127,21 +127,21 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
127
127
|
name: "excludePromo",
|
|
128
128
|
value: "0",
|
|
129
129
|
disabled: !0
|
|
130
|
-
}, s = e.map((
|
|
130
|
+
}, s = e.map((u, a) => ({
|
|
131
131
|
id: a + 1,
|
|
132
|
-
name:
|
|
133
|
-
value:
|
|
132
|
+
name: u.promodesc,
|
|
133
|
+
value: u.promoindex.toString(),
|
|
134
134
|
disabled: !1
|
|
135
135
|
}));
|
|
136
136
|
return [t, ...s];
|
|
137
|
-
}, M = (e, t, s,
|
|
137
|
+
}, M = (e, t, s, u) => {
|
|
138
138
|
let a, m;
|
|
139
|
-
s > 0 ? a = e > 0 ? Math.max(s, e) : s : a = Math.max(e, 0),
|
|
139
|
+
s > 0 ? a = e > 0 ? Math.max(s, e) : s : a = Math.max(e, 0), u > 0 ? m = t > 0 ? Math.min(u, t) : u : m = Math.max(t, 0);
|
|
140
140
|
const p = Math.round(a);
|
|
141
141
|
let c = 1e3;
|
|
142
142
|
m < c && (c = Math.round(m));
|
|
143
143
|
const g = c - p;
|
|
144
|
-
let f = "",
|
|
144
|
+
let f = "", b = "";
|
|
145
145
|
if (g > 0) {
|
|
146
146
|
let d = Math.round((c - p) * 0.25).toString().split(""), h = [];
|
|
147
147
|
for (const n of d)
|
|
@@ -152,13 +152,13 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
152
152
|
for (const n of d)
|
|
153
153
|
n !== "" && h.push(n);
|
|
154
154
|
for (let n = 0; n < h.length; n++)
|
|
155
|
-
n === 0 ?
|
|
155
|
+
n === 0 ? b += (parseInt(h[n]) + 1).toString() : b += "0";
|
|
156
156
|
} else
|
|
157
|
-
f = c.toString(),
|
|
157
|
+
f = c.toString(), b = c.toString();
|
|
158
158
|
return { amountList: [
|
|
159
159
|
p.toString(),
|
|
160
160
|
f,
|
|
161
|
-
|
|
161
|
+
b,
|
|
162
162
|
c.toString()
|
|
163
163
|
], minAmount: p, maxAmount: m };
|
|
164
164
|
}, $ = (e, t) => t ? {
|
|
@@ -199,7 +199,7 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
199
199
|
const c = a.bankindex ?? 0;
|
|
200
200
|
for (let d = 0; d < t.mdGatewayMinMax.length; d++)
|
|
201
201
|
t.mdGatewayMinMax[d].bankindex == c.toString() && (m = t.mdGatewayMinMax[d].min, p = t.mdGatewayMinMax[d].max);
|
|
202
|
-
const { amountList: g, minAmount: f, maxAmount:
|
|
202
|
+
const { amountList: g, minAmount: f, maxAmount: b } = M(
|
|
203
203
|
Number(m),
|
|
204
204
|
Number(p),
|
|
205
205
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -209,8 +209,8 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
209
209
|
name: "autoChannel",
|
|
210
210
|
amountList: g,
|
|
211
211
|
min: f,
|
|
212
|
-
max:
|
|
213
|
-
},
|
|
212
|
+
max: b
|
|
213
|
+
}, _ = a.pg.map((d) => {
|
|
214
214
|
const h = d.mintransaction ?? "0.00", P = d.maxtransaction ?? "0.00", { amountList: k, minAmount: n, maxAmount: i } = M(
|
|
215
215
|
Number(h),
|
|
216
216
|
Number(P),
|
|
@@ -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: [L, ...
|
|
234
|
+
gateway: [L, ..._]
|
|
235
235
|
};
|
|
236
236
|
}),
|
|
237
237
|
requiredField: {
|
|
@@ -242,14 +242,14 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
242
242
|
depositor: !1,
|
|
243
243
|
uploadReceipt: !1
|
|
244
244
|
}
|
|
245
|
-
} : q,
|
|
245
|
+
} : q, H = (e, t, s) => {
|
|
246
246
|
if (!s) return q;
|
|
247
|
-
const
|
|
247
|
+
const u = x.auto;
|
|
248
248
|
let a = [];
|
|
249
249
|
const m = s.mdGatewayMinMax;
|
|
250
250
|
if (t.bank.length > 0 && s.mdPGSelection == "1")
|
|
251
251
|
a = t.bank.map((c) => {
|
|
252
|
-
const { amountList: g, minAmount: f, maxAmount:
|
|
252
|
+
const { amountList: g, minAmount: f, maxAmount: b } = M(
|
|
253
253
|
c.minTransaction ?? 0,
|
|
254
254
|
c.maxTransaction ?? 0,
|
|
255
255
|
s.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -260,31 +260,31 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
260
260
|
name: c.bankaccountname || "",
|
|
261
261
|
amountList: g,
|
|
262
262
|
min: f,
|
|
263
|
-
max:
|
|
263
|
+
max: b
|
|
264
264
|
};
|
|
265
265
|
});
|
|
266
266
|
else {
|
|
267
267
|
let c = "0.00", g = "0.00";
|
|
268
268
|
for (let v = 0; v < m.length; v++)
|
|
269
269
|
m[v].bankindex === e.toString() && (c = m[v].min, g = m[v].max);
|
|
270
|
-
const { amountList: f, minAmount:
|
|
270
|
+
const { amountList: f, minAmount: b, maxAmount: L } = M(
|
|
271
271
|
Number(c),
|
|
272
272
|
Number(g),
|
|
273
273
|
s.mdBankLevelDetail.onlinepayment_min,
|
|
274
274
|
s.mdBankLevelDetail.onlinepayment_max
|
|
275
|
-
),
|
|
275
|
+
), _ = {
|
|
276
276
|
id: 0,
|
|
277
277
|
name: "autoChannel",
|
|
278
278
|
amountList: f,
|
|
279
|
-
min:
|
|
279
|
+
min: b,
|
|
280
280
|
max: L
|
|
281
281
|
};
|
|
282
|
-
a.push(
|
|
282
|
+
a.push(_);
|
|
283
283
|
}
|
|
284
284
|
return {
|
|
285
285
|
id: e,
|
|
286
286
|
name: "autoMethod",
|
|
287
|
-
type:
|
|
287
|
+
type: u,
|
|
288
288
|
promo: B(t.promo),
|
|
289
289
|
bank: a,
|
|
290
290
|
requiredField: {
|
|
@@ -296,7 +296,7 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
296
296
|
uploadReceipt: !1
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
|
-
},
|
|
299
|
+
}, Y = (e, t) => {
|
|
300
300
|
const s = x.fix;
|
|
301
301
|
return {
|
|
302
302
|
id: e,
|
|
@@ -412,10 +412,10 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
412
412
|
let s = [];
|
|
413
413
|
return e.extralivechat && (s = JSON.parse(e.extralivechat)), {
|
|
414
414
|
vip_calculation: t,
|
|
415
|
-
livechat: s.filter((
|
|
416
|
-
name:
|
|
417
|
-
image_url:
|
|
418
|
-
url:
|
|
415
|
+
livechat: s.filter((u) => u.status === 1).map((u) => ({
|
|
416
|
+
name: u.name,
|
|
417
|
+
image_url: u.imgname,
|
|
418
|
+
url: u.url
|
|
419
419
|
})),
|
|
420
420
|
mobileValidate: e.mobilevalidate ? e.mobilevalidate == "1" : !1
|
|
421
421
|
};
|
|
@@ -424,11 +424,11 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
424
424
|
e.mobileBanner && (t = e.mobileBanner);
|
|
425
425
|
let s = [];
|
|
426
426
|
e.mobileAd && (s = e.mobileAd);
|
|
427
|
-
let
|
|
428
|
-
return e.mobileAbout && (
|
|
427
|
+
let u = [];
|
|
428
|
+
return e.mobileAbout && (u = e.mobileAbout), {
|
|
429
429
|
banner: t.map((a) => `${a.imagepath}?${a.filemtime}`),
|
|
430
430
|
ad: s.map((a) => `${a.imagepath}?${a.filemtime}`),
|
|
431
|
-
about:
|
|
431
|
+
about: u.map((a) => ({
|
|
432
432
|
name: a.name,
|
|
433
433
|
content: a.content
|
|
434
434
|
}))
|
|
@@ -457,11 +457,17 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
457
457
|
date: t.draw_date.map((s) => de(s.draw_tmactive))
|
|
458
458
|
}));
|
|
459
459
|
function de(e) {
|
|
460
|
-
const t = new Date(e * 1e3), s = t.getFullYear(),
|
|
461
|
-
return `${s}-${
|
|
460
|
+
const t = new Date(e * 1e3), s = t.getFullYear(), u = ("0" + (t.getMonth() + 1)).slice(-2), a = ("0" + t.getDate()).slice(-2);
|
|
461
|
+
return `${s}-${u}-${a}`;
|
|
462
462
|
}
|
|
463
|
-
const pe =
|
|
464
|
-
|
|
463
|
+
const pe = (e) => e.data.map((t) => ({
|
|
464
|
+
id: t.company_id,
|
|
465
|
+
list: t.drawCount.map((s) => ({
|
|
466
|
+
combination: s.combination_combination,
|
|
467
|
+
total: s.total
|
|
468
|
+
}))
|
|
469
|
+
})), ge = async (e) => {
|
|
470
|
+
var t, s, u, a, m, p, c, g, f, b, L;
|
|
465
471
|
try {
|
|
466
472
|
e.findIndex((i) => i.name === o.vipList) !== -1 && e.push(
|
|
467
473
|
{
|
|
@@ -478,7 +484,7 @@ const pe = async (e) => {
|
|
|
478
484
|
const d = e.findIndex(
|
|
479
485
|
(i) => i.name === o.getFourDimensionData
|
|
480
486
|
);
|
|
481
|
-
d !== -1 && (e.splice(d), e.push(
|
|
487
|
+
d !== -1 && e[d].query == "" && (e.splice(d), e.push(
|
|
482
488
|
{
|
|
483
489
|
name: o.getFourDimensionData,
|
|
484
490
|
query: JSON.stringify({ action: "getCompany", native: "1" })
|
|
@@ -509,93 +515,96 @@ const pe = async (e) => {
|
|
|
509
515
|
};
|
|
510
516
|
for (const i of k.data.responses) {
|
|
511
517
|
i.error != null && i.error.code != 200 && (n.status = i.error.code, n.message = i.error.message);
|
|
512
|
-
const y = i.attributes !== null && i.attributes !== void 0 ? z(i.attributes) : null,
|
|
513
|
-
if (!
|
|
514
|
-
n.result[
|
|
518
|
+
const y = i.attributes !== null && i.attributes !== void 0 ? z(i.attributes) : null, r = i.name, l = y ? JSON.parse(y) : null;
|
|
519
|
+
if (!l)
|
|
520
|
+
n.result[r] = null;
|
|
515
521
|
else
|
|
516
|
-
switch (
|
|
522
|
+
switch (r) {
|
|
517
523
|
case o.announcement:
|
|
518
|
-
n.result[
|
|
524
|
+
n.result[r] = K(l);
|
|
519
525
|
break;
|
|
520
526
|
case o.gameList:
|
|
521
|
-
n.result[
|
|
527
|
+
n.result[r] = X(l);
|
|
522
528
|
break;
|
|
523
529
|
case o.cmsList:
|
|
524
|
-
n.result[
|
|
530
|
+
n.result[r] = ae(l);
|
|
525
531
|
break;
|
|
526
532
|
case o.paymentsProvider:
|
|
527
|
-
n.result[
|
|
528
|
-
|
|
533
|
+
n.result[r] = V(
|
|
534
|
+
l
|
|
529
535
|
);
|
|
530
536
|
break;
|
|
531
537
|
case o.getUserProfile:
|
|
532
|
-
n.result[
|
|
538
|
+
n.result[r] = Q(l);
|
|
533
539
|
break;
|
|
534
540
|
case o.vipList:
|
|
535
|
-
n.result[
|
|
541
|
+
n.result[r] = Z(l);
|
|
536
542
|
break;
|
|
537
543
|
case o.vipBonus:
|
|
538
|
-
n.result[
|
|
544
|
+
n.result[r] = ee(l);
|
|
539
545
|
break;
|
|
540
546
|
case o.vipFieldStatus:
|
|
541
|
-
n.result[
|
|
547
|
+
n.result[r] = te(l);
|
|
542
548
|
break;
|
|
543
549
|
case o.vipStatus:
|
|
544
|
-
n.result[
|
|
550
|
+
n.result[r] = ne(l);
|
|
545
551
|
break;
|
|
546
552
|
case o.promotion:
|
|
547
|
-
n.result[
|
|
553
|
+
n.result[r] = w(l);
|
|
548
554
|
break;
|
|
549
555
|
case o.getSetting:
|
|
550
|
-
n.result[
|
|
556
|
+
n.result[r] = se(l);
|
|
551
557
|
break;
|
|
552
558
|
case o.getCountryMobile:
|
|
553
|
-
n.result[
|
|
554
|
-
|
|
559
|
+
n.result[r] = oe(
|
|
560
|
+
l
|
|
555
561
|
);
|
|
556
562
|
break;
|
|
557
563
|
case o.getPlatformTurnoverRate:
|
|
558
|
-
n.result[
|
|
559
|
-
|
|
564
|
+
n.result[r] = ie(
|
|
565
|
+
l
|
|
560
566
|
);
|
|
561
567
|
break;
|
|
562
568
|
case o.mainWallet:
|
|
563
|
-
n.result[
|
|
569
|
+
n.result[r] = re(l);
|
|
564
570
|
break;
|
|
565
571
|
case o.getLanguageSetting:
|
|
566
|
-
n.result[
|
|
567
|
-
|
|
572
|
+
n.result[r] = le(
|
|
573
|
+
l
|
|
568
574
|
);
|
|
569
575
|
break;
|
|
570
576
|
case o.getFourDimensionData:
|
|
571
|
-
n.result[
|
|
572
|
-
|
|
577
|
+
n.result[r] = ue(
|
|
578
|
+
l
|
|
573
579
|
);
|
|
574
580
|
break;
|
|
575
581
|
case o.getCompany:
|
|
576
|
-
n.result[
|
|
582
|
+
n.result[r] = me(l);
|
|
577
583
|
break;
|
|
578
584
|
case o.searchResultDate:
|
|
579
|
-
n.result[
|
|
580
|
-
|
|
585
|
+
n.result[r] = ce(
|
|
586
|
+
l
|
|
581
587
|
);
|
|
582
588
|
break;
|
|
589
|
+
case o.searchHot:
|
|
590
|
+
n.result[r] = pe(l);
|
|
591
|
+
break;
|
|
583
592
|
}
|
|
584
593
|
}
|
|
585
594
|
if (o.vipList in n.result && ((t = n.result) != null && t.vipList)) {
|
|
586
595
|
const i = n.result.vipList;
|
|
587
596
|
let y = 4;
|
|
588
|
-
if (o.getSetting in n.result && ((s = n.result) != null && s.getSetting) && (y = n.result.getSetting.vip_calculation, delete n.result.getSetting), o.vipBonus in n.result && ((
|
|
589
|
-
const
|
|
590
|
-
current_grade_id:
|
|
597
|
+
if (o.getSetting in n.result && ((s = n.result) != null && s.getSetting) && (y = n.result.getSetting.vip_calculation, delete n.result.getSetting), o.vipBonus in n.result && ((u = n.result) != null && u.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)) {
|
|
598
|
+
const r = n.result.vipStatus, {
|
|
599
|
+
current_grade_id: l,
|
|
591
600
|
current_deposit: R,
|
|
592
601
|
current_turnover: C,
|
|
593
|
-
percentage:
|
|
594
|
-
} =
|
|
602
|
+
percentage: A
|
|
603
|
+
} = r, j = i.list.findIndex((S) => S.id === l);
|
|
595
604
|
i.list = i.list.map((S, F) => {
|
|
596
605
|
const G = F === j;
|
|
597
606
|
let T = "0", O = "0", N = 0;
|
|
598
|
-
return G ? (T = `${Math.min(Number(R), Number(S.deposit.total))}`, O = `${Math.min(Number(C), Number(S.turnover.total))}`, N =
|
|
607
|
+
return G ? (T = `${Math.min(Number(R), Number(S.deposit.total))}`, O = `${Math.min(Number(C), Number(S.turnover.total))}`, N = A) : F < j ? (T = S.deposit.total, O = S.turnover.total, N = 1) : F > j && (T = "0.00", O = "0.00", N = 0), {
|
|
599
608
|
...S,
|
|
600
609
|
is_current_level: G,
|
|
601
610
|
deposit: {
|
|
@@ -618,13 +627,13 @@ const pe = async (e) => {
|
|
|
618
627
|
const i = n.result.gameList;
|
|
619
628
|
if (o.getPlatformTurnoverRate in n.result && ((c = n.result) != null && c.getPlatformTurnoverRate)) {
|
|
620
629
|
const y = n.result.getPlatformTurnoverRate;
|
|
621
|
-
i.forEach((
|
|
622
|
-
|
|
630
|
+
i.forEach((r) => {
|
|
631
|
+
r.list = r.list.map((l) => {
|
|
623
632
|
const R = y.find(
|
|
624
|
-
(C) => C.id ===
|
|
633
|
+
(C) => C.id === l.id
|
|
625
634
|
);
|
|
626
635
|
return {
|
|
627
|
-
...
|
|
636
|
+
...l,
|
|
628
637
|
rate: (R == null ? void 0 : R.percentage) ?? "0.00"
|
|
629
638
|
};
|
|
630
639
|
});
|
|
@@ -636,29 +645,29 @@ const pe = async (e) => {
|
|
|
636
645
|
const i = n.result.getCompany;
|
|
637
646
|
if (o.searchResultDate in n.result && ((f = n.result) != null && f.searchResultDate)) {
|
|
638
647
|
const y = n.result.searchResultDate;
|
|
639
|
-
i.forEach((
|
|
640
|
-
const
|
|
641
|
-
|
|
648
|
+
i.forEach((r) => {
|
|
649
|
+
const l = y.find((R) => R.id == r.id);
|
|
650
|
+
l && (r.date = l == null ? void 0 : l.date);
|
|
642
651
|
}), delete n.result.searchResultDate;
|
|
643
652
|
}
|
|
644
653
|
n.result.getCompany = i;
|
|
645
654
|
}
|
|
646
655
|
return n;
|
|
647
|
-
} catch (
|
|
648
|
-
return
|
|
649
|
-
status: ((
|
|
650
|
-
message: JSON.stringify((L =
|
|
656
|
+
} catch (_) {
|
|
657
|
+
return U.isAxiosError(_) ? {
|
|
658
|
+
status: ((b = _.response) == null ? void 0 : b.status) || 600,
|
|
659
|
+
message: JSON.stringify((L = _.response) == null ? void 0 : L.data),
|
|
651
660
|
result: {}
|
|
652
|
-
} : (console.error(
|
|
653
|
-
status:
|
|
654
|
-
message:
|
|
661
|
+
} : (console.error(_), {
|
|
662
|
+
status: _.status || 500,
|
|
663
|
+
message: _.message,
|
|
655
664
|
result: {}
|
|
656
665
|
});
|
|
657
666
|
}
|
|
658
|
-
},
|
|
667
|
+
}, fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
659
668
|
__proto__: null,
|
|
660
|
-
post:
|
|
661
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
669
|
+
post: ge
|
|
670
|
+
}, Symbol.toStringTag, { value: "Module" })), ye = async (e, t) => {
|
|
662
671
|
try {
|
|
663
672
|
const s = {
|
|
664
673
|
status: 200,
|
|
@@ -677,9 +686,9 @@ const pe = async (e) => {
|
|
|
677
686
|
message: s.message
|
|
678
687
|
};
|
|
679
688
|
}
|
|
680
|
-
},
|
|
689
|
+
}, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
681
690
|
__proto__: null,
|
|
682
|
-
call:
|
|
691
|
+
call: ye
|
|
683
692
|
}, Symbol.toStringTag, { value: "Module" })), _e = async () => {
|
|
684
693
|
try {
|
|
685
694
|
const e = {
|
|
@@ -693,11 +702,9 @@ const pe = async (e) => {
|
|
|
693
702
|
message: e.message
|
|
694
703
|
};
|
|
695
704
|
}
|
|
696
|
-
},
|
|
705
|
+
}, he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
697
706
|
__proto__: null,
|
|
698
707
|
call: _e
|
|
699
|
-
}, Symbol.toStringTag, { value: "Module" })), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
700
|
-
__proto__: null
|
|
701
708
|
}, Symbol.toStringTag, { value: "Module" })), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
702
709
|
__proto__: null
|
|
703
710
|
}, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -712,38 +719,40 @@ const pe = async (e) => {
|
|
|
712
719
|
__proto__: null
|
|
713
720
|
}, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
714
721
|
__proto__: null
|
|
715
|
-
}, Symbol.toStringTag, { value: "Module" })), Pe = {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
722
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
723
|
+
__proto__: null
|
|
724
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = {
|
|
725
|
+
api: fe,
|
|
726
|
+
loginApi: be,
|
|
727
|
+
logoutApi: he,
|
|
719
728
|
apiType: E,
|
|
720
|
-
loginType:
|
|
721
|
-
logoutType:
|
|
722
|
-
announcementType:
|
|
729
|
+
loginType: ve,
|
|
730
|
+
logoutType: Se,
|
|
731
|
+
announcementType: xe,
|
|
723
732
|
paymentsProviderType: J,
|
|
724
|
-
gameListType:
|
|
725
|
-
vipListType:
|
|
726
|
-
promotionType:
|
|
727
|
-
cmsListType:
|
|
728
|
-
mainWalletType:
|
|
729
|
-
},
|
|
733
|
+
gameListType: Le,
|
|
734
|
+
vipListType: Re,
|
|
735
|
+
promotionType: Me,
|
|
736
|
+
cmsListType: De,
|
|
737
|
+
mainWalletType: Pe
|
|
738
|
+
}, Oe = {
|
|
730
739
|
install(e) {
|
|
731
|
-
e.config.globalProperties.$library =
|
|
740
|
+
e.config.globalProperties.$library = ke;
|
|
732
741
|
}
|
|
733
742
|
};
|
|
734
743
|
export {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
744
|
+
Oe as Repository,
|
|
745
|
+
xe as announcementType,
|
|
746
|
+
fe as api,
|
|
738
747
|
E as apiType,
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
748
|
+
De as cmsListType,
|
|
749
|
+
Le as gameListType,
|
|
750
|
+
be as loginApi,
|
|
751
|
+
ve as loginType,
|
|
752
|
+
he as logoutApi,
|
|
753
|
+
Se as logoutType,
|
|
754
|
+
Pe as mainWalletType,
|
|
746
755
|
J as paymentsProviderType,
|
|
747
|
-
|
|
748
|
-
|
|
756
|
+
Me as promotionType,
|
|
757
|
+
Re as vipListType
|
|
749
758
|
};
|
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(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.searchHot="searchHot",e))(o||{});const A=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 u=!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){u=!0;break}}u&&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}},D=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},s=e.map((u,a)=>({id:a+1,name:u.promodesc,value:u.promoindex.toString(),disabled:!1}));return[t,...s]},k=(e,t,s,u)=>{let a,m;s>0?a=e>0?Math.max(s,e):s:a=Math.max(e,0),u>0?m=t>0?Math.min(u,t):u: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:D(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}=k(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:D(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:_}=k(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}=k(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 u=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:_}=k(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}=k(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:u,promo:D(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:D(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(u=>u.status===1).map(u=>({name:u.name,image_url:u.imgname,url:u.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 u=[];return e.mobileAbout&&(u=e.mobileAbout),{banner:t.map(a=>`${a.imagepath}?${a.filemtime}`),ad:s.map(a=>`${a.imagepath}?${a.filemtime}`),about:u.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(),u=("0"+(t.getMonth()+1)).slice(-2),a=("0"+t.getDate()).slice(-2);return`${s}-${u}-${a}`}const Te=e=>e.data.map(t=>({id:t.company_id,list:t.drawCount.map(s=>({combination:s.combination_combination,total:s.total}))})),z=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,s,u,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[p].query==""&&(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,r=i.name,l=b?JSON.parse(b):null;if(!l)n.result[r]=null;else switch(r){case o.announcement:n.result[r]=ie(l);break;case o.gameList:n.result[r]=le(l);break;case o.cmsList:n.result[r]=fe(l);break;case o.paymentsProvider:n.result[r]=ne(l);break;case o.getUserProfile:n.result[r]=re(l);break;case o.vipList:n.result[r]=ue(l);break;case o.vipBonus:n.result[r]=ce(l);break;case o.vipFieldStatus:n.result[r]=de(l);break;case o.vipStatus:n.result[r]=pe(l);break;case o.promotion:n.result[r]=me(l);break;case o.getSetting:n.result[r]=ge(l);break;case o.getCountryMobile:n.result[r]=ye(l);break;case o.getPlatformTurnoverRate:n.result[r]=be(l);break;case o.mainWallet:n.result[r]=_e(l);break;case o.getLanguageSetting:n.result[r]=he(l);break;case o.getFourDimensionData:n.result[r]=ve(l);break;case o.getCompany:n.result[r]=Se(l);break;case o.searchResultDate:n.result[r]=xe(l);break;case o.searchHot:n.result[r]=Te(l);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&&((u=n.result)!=null&&u.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 r=n.result.vipStatus,{current_grade_id:l,current_deposit:R,current_turnover:q,percentage:Pe}=r,G=i.list.findIndex(L=>L.id===l);i.list=i.list.map((L,$)=>{const w=$===G;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=Pe):$<G?(j=L.deposit.total,B=L.turnover.total,C=1):$>G&&(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(r=>{r.list=r.list.map(l=>{const R=b.find(q=>q.id===l.id);return{...l,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(r=>{const l=b.find(R=>R.id==r.id);l&&(r.date=l==null?void 0:l.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"})),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"})),Re={api:z,loginApi:E,logoutApi:J,apiType:A,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=Re}};d.Repository=Me,d.announcementType=H,d.api=z,d.apiType=A,d.cmsListType=X,d.gameListType=Y,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"})});
|
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;AA8BnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CA0SnB,CAAA"}
|
package/dist/api/type.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ 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';
|
|
19
20
|
|
|
20
21
|
export declare enum Api {
|
|
21
22
|
announcement = "announcement",
|
|
@@ -36,7 +37,8 @@ export declare enum Api {
|
|
|
36
37
|
getLanguageSetting = "getLanguageSetting",
|
|
37
38
|
getFourDimensionData = "getfourDimensionData",
|
|
38
39
|
getCompany = "getCompany",
|
|
39
|
-
searchResultDate = "searchResultDate"
|
|
40
|
+
searchResultDate = "searchResultDate",
|
|
41
|
+
searchHot = "searchHot"
|
|
40
42
|
}
|
|
41
43
|
export type ApiResponseMap = {
|
|
42
44
|
[Api.announcement]: AnnouncementResponse;
|
|
@@ -58,6 +60,7 @@ export type ApiResponseMap = {
|
|
|
58
60
|
[Api.getFourDimensionData]: getFourDimensionDataResponse;
|
|
59
61
|
[Api.getCompany]: getCompanyResponse;
|
|
60
62
|
[Api.searchResultDate]: searchResultDateResponse;
|
|
63
|
+
[Api.searchHot]: searchHotResponse;
|
|
61
64
|
};
|
|
62
65
|
export type ApiResponse<T extends keyof ApiResponseMap> = ApiResponseMap[T];
|
|
63
66
|
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":"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"}
|
|
@@ -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"}
|