60p82u21t54k 0.0.46 → 0.0.47
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 +234 -208
- 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/getSetting/getSettingResponse.d.ts +7 -0
- package/dist/model/getSetting/getSettingResponse.d.ts.map +1 -0
- package/dist/model/getSetting/type.d.ts +4 -0
- package/dist/model/getSetting/type.d.ts.map +1 -0
- package/dist/model/vipBonus/type.d.ts +3 -3
- package/dist/model/vipBonus/type.d.ts.map +1 -1
- package/dist/model/vipList/getVipListResponse.d.ts.map +1 -1
- package/dist/model/vipList/type.d.ts +15 -12
- package/dist/model/vipList/type.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import R from "axios";
|
|
2
|
+
const L = R.create({
|
|
3
3
|
baseURL: "/graph",
|
|
4
4
|
timeout: 5e3,
|
|
5
5
|
// Request timeout
|
|
@@ -45,11 +45,11 @@ const h = O.create({
|
|
|
45
45
|
// },
|
|
46
46
|
// },
|
|
47
47
|
});
|
|
48
|
-
|
|
48
|
+
L.interceptors.request.use(
|
|
49
49
|
(e) => e,
|
|
50
50
|
(e) => (console.error("Error request:", e.response), Promise.reject(e))
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
L.interceptors.response.use(
|
|
53
53
|
(e) => e,
|
|
54
54
|
(e) => {
|
|
55
55
|
const t = {
|
|
@@ -66,40 +66,40 @@ const q = (e) => new TextEncoder().encode(e), A = (e) => {
|
|
|
66
66
|
return console.error("Failed to decode Base64:", t), "";
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
var
|
|
70
|
-
const
|
|
69
|
+
var c = /* @__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))(c || {});
|
|
70
|
+
const D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71
71
|
__proto__: null,
|
|
72
|
-
Api:
|
|
72
|
+
Api: c
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
|
-
var
|
|
74
|
+
var b = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(b || {});
|
|
75
75
|
const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
76
|
__proto__: null,
|
|
77
|
-
PaymentType:
|
|
78
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
77
|
+
PaymentType: b
|
|
78
|
+
}, Symbol.toStringTag, { value: "Module" })), j = (e) => e.mdPaymentChannels.map((t) => {
|
|
79
79
|
const n = [];
|
|
80
80
|
switch (t.name) {
|
|
81
|
-
case
|
|
82
|
-
n.push(
|
|
81
|
+
case b.default:
|
|
82
|
+
n.push(O(t.paymentmethod.manual, e));
|
|
83
83
|
break;
|
|
84
|
-
case
|
|
85
|
-
n.push(
|
|
84
|
+
case b.pay:
|
|
85
|
+
n.push(z(t.paymentmethod.onlinebanking, e));
|
|
86
86
|
break;
|
|
87
87
|
default:
|
|
88
88
|
if (t.paymentmethod.auto.bank.length > 0 && n.push(
|
|
89
|
-
|
|
89
|
+
C(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 o = 0; o < t.paymentmethod.manual.bank.length; o++) {
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
-
|
|
93
|
+
const r = t.paymentmethod.manual.bank[o];
|
|
94
|
+
if (r.list && r.list.length > 0) {
|
|
95
|
+
u = !0;
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
u && n.push(O(t.paymentmethod.manual, e));
|
|
100
100
|
}
|
|
101
101
|
t.paymentmethod.fixamount.bank.length > 0 && n.push(
|
|
102
|
-
|
|
102
|
+
G(t.bankid ?? 0, t.paymentmethod.fixamount)
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
return {
|
|
@@ -107,10 +107,10 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
107
107
|
imageUrl: `/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,
|
|
108
108
|
paymentList: n
|
|
109
109
|
};
|
|
110
|
-
}),
|
|
110
|
+
}), M = {
|
|
111
111
|
id: 0,
|
|
112
112
|
name: "",
|
|
113
|
-
type:
|
|
113
|
+
type: b.unknown,
|
|
114
114
|
promo: [],
|
|
115
115
|
bank: [],
|
|
116
116
|
requiredField: {
|
|
@@ -121,55 +121,55 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
121
121
|
depositor: !1,
|
|
122
122
|
uploadReceipt: !1
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, P = (e) => {
|
|
125
125
|
const t = {
|
|
126
126
|
id: 0,
|
|
127
127
|
name: "excludePromo",
|
|
128
128
|
value: "0",
|
|
129
129
|
disabled: !0
|
|
130
|
-
}, n = e.map((
|
|
130
|
+
}, n = e.map((u, o) => ({
|
|
131
131
|
id: o + 1,
|
|
132
|
-
name:
|
|
133
|
-
value:
|
|
132
|
+
name: u.promodesc,
|
|
133
|
+
value: u.promoindex.toString(),
|
|
134
134
|
disabled: !1
|
|
135
135
|
}));
|
|
136
136
|
return [t, ...n];
|
|
137
|
-
},
|
|
138
|
-
let o,
|
|
139
|
-
n > 0 ? o = e > 0 ? Math.max(n, e) : n : o = Math.max(e, 0),
|
|
140
|
-
const
|
|
137
|
+
}, x = (e, t, n, u) => {
|
|
138
|
+
let o, r;
|
|
139
|
+
n > 0 ? o = e > 0 ? Math.max(n, e) : n : o = Math.max(e, 0), u > 0 ? r = t > 0 ? Math.min(u, t) : u : r = Math.max(t, 0);
|
|
140
|
+
const f = Math.round(o);
|
|
141
141
|
let s = 1e3;
|
|
142
|
-
|
|
143
|
-
const i = s -
|
|
144
|
-
let m = "",
|
|
142
|
+
r < s && (s = Math.round(r));
|
|
143
|
+
const i = s - f;
|
|
144
|
+
let m = "", a = "";
|
|
145
145
|
if (i > 0) {
|
|
146
|
-
let g = Math.round((s -
|
|
146
|
+
let g = Math.round((s - f) * 0.25).toString().split(""), l = [];
|
|
147
147
|
for (const p of g)
|
|
148
|
-
p !== "" &&
|
|
149
|
-
for (let p = 0; p <
|
|
150
|
-
p === 0 ? m += (parseInt(
|
|
151
|
-
g = Math.round((s -
|
|
148
|
+
p !== "" && l.push(p);
|
|
149
|
+
for (let p = 0; p < l.length; p++)
|
|
150
|
+
p === 0 ? m += (parseInt(l[p]) + 1).toString() : m += "0";
|
|
151
|
+
g = Math.round((s - f) * 0.5).toString().split(""), l = [];
|
|
152
152
|
for (const p of g)
|
|
153
|
-
p !== "" &&
|
|
154
|
-
for (let p = 0; p <
|
|
155
|
-
p === 0 ?
|
|
153
|
+
p !== "" && l.push(p);
|
|
154
|
+
for (let p = 0; p < l.length; p++)
|
|
155
|
+
p === 0 ? a += (parseInt(l[p]) + 1).toString() : a += "0";
|
|
156
156
|
} else
|
|
157
|
-
m = s.toString(),
|
|
157
|
+
m = s.toString(), a = s.toString();
|
|
158
158
|
return { amountList: [
|
|
159
|
-
|
|
159
|
+
f.toString(),
|
|
160
160
|
m,
|
|
161
|
-
|
|
161
|
+
a,
|
|
162
162
|
s.toString()
|
|
163
|
-
], minAmount:
|
|
164
|
-
},
|
|
163
|
+
], minAmount: f, maxAmount: r };
|
|
164
|
+
}, O = (e, t) => t ? {
|
|
165
165
|
id: 0,
|
|
166
166
|
name: "manualMethod",
|
|
167
|
-
type:
|
|
168
|
-
promo:
|
|
167
|
+
type: b.manual,
|
|
168
|
+
promo: P(e.promo),
|
|
169
169
|
bank: e.bank.map((o) => {
|
|
170
|
-
const
|
|
171
|
-
Number(
|
|
172
|
-
Number(
|
|
170
|
+
const r = o.list && o.list.length > 0 ? o.list[0].mintransaction ?? "0.00" : "0.00", f = o.list && o.list.length > 0 ? o.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: s, minAmount: i, maxAmount: m } = x(
|
|
171
|
+
Number(r),
|
|
172
|
+
Number(f),
|
|
173
173
|
t.mdBankLevelDetail.deposit_min,
|
|
174
174
|
t.mdBankLevelDetail.deposit_max
|
|
175
175
|
);
|
|
@@ -189,40 +189,40 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
189
189
|
...t.mdManualDepositRequireField,
|
|
190
190
|
uploadReceipt: t.mdUploadReceipt
|
|
191
191
|
}
|
|
192
|
-
} :
|
|
192
|
+
} : M, z = (e, t) => t ? {
|
|
193
193
|
id: 0,
|
|
194
194
|
name: "onlineBankingMethod",
|
|
195
|
-
type:
|
|
196
|
-
promo:
|
|
195
|
+
type: b.pay,
|
|
196
|
+
promo: P(e.promo),
|
|
197
197
|
bank: e.banklist.map((o) => {
|
|
198
|
-
let
|
|
198
|
+
let r = "0.00", f = "0.00";
|
|
199
199
|
const s = o.bankindex ?? 0;
|
|
200
200
|
for (let g = 0; g < t.mdGatewayMinMax.length; g++)
|
|
201
|
-
t.mdGatewayMinMax[g].bankindex == s.toString() && (
|
|
202
|
-
const { amountList: i, minAmount: m, maxAmount:
|
|
203
|
-
Number(
|
|
204
|
-
Number(
|
|
201
|
+
t.mdGatewayMinMax[g].bankindex == s.toString() && (r = t.mdGatewayMinMax[g].min, f = t.mdGatewayMinMax[g].max);
|
|
202
|
+
const { amountList: i, minAmount: m, maxAmount: a } = x(
|
|
203
|
+
Number(r),
|
|
204
|
+
Number(f),
|
|
205
205
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
206
206
|
t.mdBankLevelDetail.onlinepayment_max
|
|
207
|
-
),
|
|
207
|
+
), d = {
|
|
208
208
|
id: 0,
|
|
209
209
|
name: "autoChannel",
|
|
210
210
|
amountList: i,
|
|
211
211
|
min: m,
|
|
212
|
-
max:
|
|
213
|
-
},
|
|
214
|
-
const
|
|
215
|
-
Number(
|
|
216
|
-
Number(
|
|
212
|
+
max: a
|
|
213
|
+
}, h = o.pg.map((g) => {
|
|
214
|
+
const l = g.mintransaction ?? "0.00", _ = g.maxtransaction ?? "0.00", { amountList: v, minAmount: p, maxAmount: S } = x(
|
|
215
|
+
Number(l),
|
|
216
|
+
Number(_),
|
|
217
217
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
218
218
|
t.mdBankLevelDetail.onlinepayment_max
|
|
219
219
|
);
|
|
220
220
|
return {
|
|
221
221
|
id: g.pgindex,
|
|
222
222
|
name: g.bankaccountname,
|
|
223
|
-
amountList:
|
|
223
|
+
amountList: v,
|
|
224
224
|
min: p,
|
|
225
|
-
max:
|
|
225
|
+
max: S
|
|
226
226
|
};
|
|
227
227
|
});
|
|
228
228
|
return {
|
|
@@ -231,7 +231,7 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
231
231
|
amountList: [],
|
|
232
232
|
min: 0,
|
|
233
233
|
max: 0,
|
|
234
|
-
gateway: [
|
|
234
|
+
gateway: [d, ...h]
|
|
235
235
|
};
|
|
236
236
|
}),
|
|
237
237
|
requiredField: {
|
|
@@ -242,14 +242,14 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
242
242
|
depositor: !1,
|
|
243
243
|
uploadReceipt: !1
|
|
244
244
|
}
|
|
245
|
-
} :
|
|
246
|
-
if (!n) return
|
|
247
|
-
const
|
|
245
|
+
} : M, C = (e, t, n) => {
|
|
246
|
+
if (!n) return M;
|
|
247
|
+
const u = b.auto;
|
|
248
248
|
let o = [];
|
|
249
|
-
const
|
|
249
|
+
const r = n.mdGatewayMinMax;
|
|
250
250
|
if (t.bank.length > 0 && n.mdPGSelection == "1")
|
|
251
251
|
o = t.bank.map((s) => {
|
|
252
|
-
const { amountList: i, minAmount: m, maxAmount:
|
|
252
|
+
const { amountList: i, minAmount: m, maxAmount: a } = x(
|
|
253
253
|
s.minTransaction ?? 0,
|
|
254
254
|
s.maxTransaction ?? 0,
|
|
255
255
|
n.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -260,32 +260,32 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
260
260
|
name: s.bankaccountname || "",
|
|
261
261
|
amountList: i,
|
|
262
262
|
min: m,
|
|
263
|
-
max:
|
|
263
|
+
max: a
|
|
264
264
|
};
|
|
265
265
|
});
|
|
266
266
|
else {
|
|
267
267
|
let s = "0.00", i = "0.00";
|
|
268
|
-
for (let y = 0; y <
|
|
269
|
-
|
|
270
|
-
const { amountList: m, minAmount:
|
|
268
|
+
for (let y = 0; y < r.length; y++)
|
|
269
|
+
r[y].bankindex === e.toString() && (s = r[y].min, i = r[y].max);
|
|
270
|
+
const { amountList: m, minAmount: a, maxAmount: d } = x(
|
|
271
271
|
Number(s),
|
|
272
272
|
Number(i),
|
|
273
273
|
n.mdBankLevelDetail.onlinepayment_min,
|
|
274
274
|
n.mdBankLevelDetail.onlinepayment_max
|
|
275
|
-
),
|
|
275
|
+
), h = {
|
|
276
276
|
id: 0,
|
|
277
277
|
name: "autoChannel",
|
|
278
278
|
amountList: m,
|
|
279
|
-
min:
|
|
280
|
-
max:
|
|
279
|
+
min: a,
|
|
280
|
+
max: d
|
|
281
281
|
};
|
|
282
|
-
o.push(
|
|
282
|
+
o.push(h);
|
|
283
283
|
}
|
|
284
284
|
return {
|
|
285
285
|
id: e,
|
|
286
286
|
name: "autoMethod",
|
|
287
|
-
type:
|
|
288
|
-
promo:
|
|
287
|
+
type: u,
|
|
288
|
+
promo: P(t.promo),
|
|
289
289
|
bank: o,
|
|
290
290
|
requiredField: {
|
|
291
291
|
deposit_bank: !1,
|
|
@@ -296,21 +296,21 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
296
296
|
uploadReceipt: !1
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
|
-
},
|
|
300
|
-
const n =
|
|
299
|
+
}, G = (e, t) => {
|
|
300
|
+
const n = b.fix;
|
|
301
301
|
return {
|
|
302
302
|
id: e,
|
|
303
303
|
name: "fixAmountMethod",
|
|
304
304
|
type: n,
|
|
305
|
-
promo:
|
|
305
|
+
promo: P(t.promo),
|
|
306
306
|
bank: t.bank.map((o) => {
|
|
307
|
-
const
|
|
307
|
+
const r = o.amtlist.map(Number).sort((s, i) => s - i);
|
|
308
308
|
return {
|
|
309
309
|
id: o.pgindex,
|
|
310
310
|
name: o.name,
|
|
311
311
|
amountList: o.amtlist,
|
|
312
|
-
min:
|
|
313
|
-
max:
|
|
312
|
+
min: r.length > 0 ? r[0] : 0,
|
|
313
|
+
max: r.length > 0 ? r[r.length - 1] : 0
|
|
314
314
|
};
|
|
315
315
|
}),
|
|
316
316
|
requiredField: {
|
|
@@ -322,16 +322,16 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
322
322
|
uploadReceipt: !1
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
|
-
},
|
|
325
|
+
}, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
326
326
|
__proto__: null,
|
|
327
|
-
getPaymentsProviderResponse:
|
|
328
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
327
|
+
getPaymentsProviderResponse: j
|
|
328
|
+
}, Symbol.toStringTag, { value: "Module" })), k = (e) => e.map((t) => ({
|
|
329
329
|
alert: t.announcement_alert == "1",
|
|
330
330
|
update_time: t.announcement_lastupdated,
|
|
331
331
|
content: t.announcement_simplified
|
|
332
|
-
})),
|
|
332
|
+
})), $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
333
333
|
__proto__: null,
|
|
334
|
-
getAnnouncementResponse:
|
|
334
|
+
getAnnouncementResponse: k
|
|
335
335
|
}, Symbol.toStringTag, { value: "Module" })), E = (e) => ({
|
|
336
336
|
username: e.username,
|
|
337
337
|
birthday: e.mdUserDetail.dob,
|
|
@@ -339,7 +339,7 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
339
339
|
fullName: e.mdUserDetail.firstname,
|
|
340
340
|
phoneNumber: e.mdUserDetail.mobileno,
|
|
341
341
|
profilePicUrl: e.mdUserDetail.profile_pic
|
|
342
|
-
}),
|
|
342
|
+
}), B = (e) => e.mdGameListResult.map((t) => ({
|
|
343
343
|
code: t.code,
|
|
344
344
|
id: t.id,
|
|
345
345
|
name: t.name,
|
|
@@ -352,14 +352,23 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
352
352
|
}))
|
|
353
353
|
})), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
354
354
|
__proto__: null,
|
|
355
|
-
getGameListResponse:
|
|
356
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
355
|
+
getGameListResponse: B
|
|
356
|
+
}, Symbol.toStringTag, { value: "Module" })), N = (e) => ({
|
|
357
357
|
list: e.mdGrade.map((t) => ({
|
|
358
358
|
id: t.gradeindex,
|
|
359
|
+
is_current_level: !1,
|
|
359
360
|
name: t.grade_simplified,
|
|
360
|
-
|
|
361
|
-
turnover:
|
|
362
|
-
|
|
361
|
+
percentage: 0,
|
|
362
|
+
turnover: {
|
|
363
|
+
isShow: !1,
|
|
364
|
+
current: "0",
|
|
365
|
+
total: t.min_activebet
|
|
366
|
+
},
|
|
367
|
+
deposit: {
|
|
368
|
+
isShow: !1,
|
|
369
|
+
current: "0",
|
|
370
|
+
total: t.min_deposit
|
|
371
|
+
},
|
|
363
372
|
promo_list: t.promocash.filter((n) => n.isshow == 1 && n.status == "1").map((n) => ({
|
|
364
373
|
name: n.promosimplified,
|
|
365
374
|
min_deposit: n.min_deposit,
|
|
@@ -372,20 +381,14 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
372
381
|
})),
|
|
373
382
|
detail: [],
|
|
374
383
|
bonus: {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
},
|
|
379
|
-
member_info: {
|
|
380
|
-
id: 0,
|
|
381
|
-
deposit: "0",
|
|
382
|
-
turnover: "0",
|
|
383
|
-
percentage: 0
|
|
384
|
+
showMonthButton: !1,
|
|
385
|
+
showWeekButton: !1,
|
|
386
|
+
showDayButton: !1
|
|
384
387
|
}
|
|
385
388
|
}), V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
386
389
|
__proto__: null,
|
|
387
|
-
getVipListResponse:
|
|
388
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
390
|
+
getVipListResponse: N
|
|
391
|
+
}, Symbol.toStringTag, { value: "Module" })), T = (e) => ({
|
|
389
392
|
category: e.category.sort((t, n) => t.sequence - n.sequence).map((t) => ({
|
|
390
393
|
id: t.catid,
|
|
391
394
|
name: t.name
|
|
@@ -402,120 +405,143 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
402
405
|
})
|
|
403
406
|
}), J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
404
407
|
__proto__: null,
|
|
405
|
-
getPromotionResponse:
|
|
406
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}),
|
|
408
|
+
getPromotionResponse: T
|
|
409
|
+
}, Symbol.toStringTag, { value: "Module" })), W = (e) => ({
|
|
410
|
+
showMonthButton: e.month === 1,
|
|
411
|
+
showWeekButton: e.week === 1,
|
|
412
|
+
showDayButton: e.day === 1
|
|
413
|
+
}), H = (e) => e.mdVipSetting.filter((t) => {
|
|
411
414
|
t.status == 1;
|
|
412
415
|
}).map((t) => ({
|
|
413
416
|
name: t.showname
|
|
414
|
-
})),
|
|
417
|
+
})), K = (e) => ({
|
|
415
418
|
current_deposit: e.deposit,
|
|
416
419
|
current_turnover: e.turnOver,
|
|
417
420
|
current_grade_id: e.mdCurrentGrade.gradeindex,
|
|
418
421
|
next_grade_id: e.mdNextGrade.gradeindex,
|
|
419
422
|
percentage: Number(e.percentage) * 100
|
|
420
|
-
}),
|
|
423
|
+
}), Q = (e) => {
|
|
424
|
+
let t = 0;
|
|
425
|
+
return e.vipcalculation ? e.vipcalculation == "" || e.vipcalculation == null || e.vipcalculation == null ? t = 4 : t = Number(e.vipcalculation) : t = 4, {
|
|
426
|
+
vipCalculation: t
|
|
427
|
+
};
|
|
428
|
+
}, X = async (e) => {
|
|
421
429
|
var t, n;
|
|
422
430
|
try {
|
|
423
|
-
e.findIndex((i) => i.name ===
|
|
431
|
+
e.findIndex((i) => i.name === c.vipList) !== -1 && e.push(
|
|
424
432
|
{
|
|
425
|
-
name:
|
|
433
|
+
name: c.vipBonus,
|
|
426
434
|
query: ""
|
|
427
435
|
},
|
|
428
|
-
{ name:
|
|
429
|
-
{ name:
|
|
436
|
+
{ name: c.vipFieldStatus, query: "" },
|
|
437
|
+
{ name: c.vipStatus, query: "" },
|
|
438
|
+
{ name: c.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
|
|
430
439
|
);
|
|
431
|
-
const
|
|
440
|
+
const r = {
|
|
432
441
|
requests: e.map((i) => ({
|
|
433
442
|
name: i.name,
|
|
434
443
|
query: btoa(i.query)
|
|
435
444
|
}))
|
|
436
|
-
},
|
|
445
|
+
}, f = await L.post(
|
|
437
446
|
"/jwt",
|
|
438
|
-
q(JSON.stringify(
|
|
447
|
+
q(JSON.stringify(r))
|
|
439
448
|
), s = {
|
|
440
449
|
status: 200,
|
|
441
450
|
message: "",
|
|
442
451
|
result: {}
|
|
443
452
|
};
|
|
444
|
-
for (const i of
|
|
453
|
+
for (const i of f.data.responses) {
|
|
445
454
|
i.error != null && i.error.code != 200 && (s.status = i.error.code, s.message = i.error.message);
|
|
446
|
-
const m = i.attributes !== null && i.attributes !== void 0 ? A(i.attributes) : null,
|
|
447
|
-
if (!
|
|
448
|
-
s.result[
|
|
455
|
+
const m = i.attributes !== null && i.attributes !== void 0 ? A(i.attributes) : null, a = i.name, d = m ? JSON.parse(m) : null;
|
|
456
|
+
if (!d)
|
|
457
|
+
s.result[a] = null;
|
|
449
458
|
else
|
|
450
|
-
switch (
|
|
451
|
-
case
|
|
452
|
-
s.result[
|
|
459
|
+
switch (a) {
|
|
460
|
+
case c.announcement:
|
|
461
|
+
s.result[a] = k(d);
|
|
453
462
|
break;
|
|
454
|
-
case
|
|
455
|
-
s.result[
|
|
463
|
+
case c.gameList:
|
|
464
|
+
s.result[a] = B(d);
|
|
456
465
|
break;
|
|
457
|
-
case
|
|
458
|
-
s.result[
|
|
466
|
+
case c.cmsList:
|
|
467
|
+
s.result[a] = d;
|
|
459
468
|
break;
|
|
460
|
-
case
|
|
461
|
-
s.result[
|
|
462
|
-
|
|
469
|
+
case c.paymentsProvider:
|
|
470
|
+
s.result[a] = j(
|
|
471
|
+
d
|
|
463
472
|
);
|
|
464
473
|
break;
|
|
465
|
-
case
|
|
466
|
-
s.result[
|
|
474
|
+
case c.getUserProfile:
|
|
475
|
+
s.result[a] = E(d);
|
|
467
476
|
break;
|
|
468
|
-
case
|
|
469
|
-
s.result[
|
|
477
|
+
case c.vipList:
|
|
478
|
+
s.result[a] = N(d);
|
|
470
479
|
break;
|
|
471
|
-
case
|
|
472
|
-
s.result[
|
|
480
|
+
case c.vipBonus:
|
|
481
|
+
s.result[a] = W(d);
|
|
473
482
|
break;
|
|
474
|
-
case
|
|
475
|
-
s.result[
|
|
483
|
+
case c.vipFieldStatus:
|
|
484
|
+
s.result[a] = H(d);
|
|
476
485
|
break;
|
|
477
|
-
case
|
|
478
|
-
s.result[
|
|
486
|
+
case c.vipStatus:
|
|
487
|
+
s.result[a] = K(d);
|
|
479
488
|
break;
|
|
480
|
-
case
|
|
481
|
-
s.result[
|
|
489
|
+
case c.promotion:
|
|
490
|
+
s.result[a] = T(d);
|
|
491
|
+
break;
|
|
492
|
+
case c.getSetting:
|
|
493
|
+
s.result[a] = Q(d);
|
|
482
494
|
break;
|
|
483
495
|
}
|
|
484
496
|
}
|
|
485
|
-
if (
|
|
497
|
+
if (c.vipList in s.result && s.result.vipList !== null) {
|
|
486
498
|
const i = s.result.vipList;
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
499
|
+
let m = 4;
|
|
500
|
+
if (c.getSetting in s.result && s.result.getSetting !== null && (m = s.result.getSetting.vipCalculation), c.vipBonus in s.result) {
|
|
501
|
+
if (s.result.vipBonus !== null) {
|
|
502
|
+
const a = s.result.vipBonus;
|
|
503
|
+
i.bonus = a;
|
|
504
|
+
}
|
|
505
|
+
delete s.result.vipBonus;
|
|
490
506
|
}
|
|
491
|
-
if (
|
|
492
|
-
|
|
493
|
-
|
|
507
|
+
if (c.vipFieldStatus in s.result && (s.result.vipFieldStatus != null && console.log(s.result.vipFieldStatus), delete s.result.vipFieldStatus), c.vipStatus in s.result) {
|
|
508
|
+
let a = -1, d = "0", h = "0", y = 0;
|
|
509
|
+
if (s.result.vipStatus !== null) {
|
|
510
|
+
const l = s.result.vipStatus;
|
|
511
|
+
a = l.current_grade_id, d = l.current_deposit, h = l.current_turnover, y = l.percentage;
|
|
512
|
+
}
|
|
513
|
+
const g = i.list.findIndex((l) => l.id == a);
|
|
514
|
+
for (let l = 0; l < i.list.length; l++) {
|
|
515
|
+
const _ = i.list[l];
|
|
516
|
+
let v = "0", p = "0", S = 0;
|
|
517
|
+
_.is_current_level = l == g, l == g && (v = `${Math.min(Number(d), Number(_.deposit.total))}`, p = `${Math.min(Number(h), Number(_.turnover.total))}`, S = y), l < g && (v = _.deposit.total, p = _.turnover.total, S = 1), l > g && (v = "0.00", p = "0.00", S = 0), _.deposit.isShow = m == 1 || m == 3 || m == 4, _.deposit.current = v, _.turnover.isShow = m == 2 || m == 3 || m == 4, _.turnover.current = p, _.percentage = S, i.list[l] = _;
|
|
518
|
+
}
|
|
519
|
+
delete s.result.vipStatus;
|
|
494
520
|
}
|
|
495
|
-
|
|
521
|
+
s.result.vipList = i;
|
|
496
522
|
}
|
|
497
523
|
return s;
|
|
498
|
-
} catch (
|
|
499
|
-
return
|
|
500
|
-
status: ((t =
|
|
501
|
-
message: JSON.stringify((n =
|
|
524
|
+
} catch (u) {
|
|
525
|
+
return R.isAxiosError(u) ? (console.error(u), {
|
|
526
|
+
status: ((t = u.response) == null ? void 0 : t.status) || 500,
|
|
527
|
+
message: JSON.stringify((n = u.response) == null ? void 0 : n.data),
|
|
502
528
|
result: {}
|
|
503
|
-
}) : (console.error(
|
|
504
|
-
status:
|
|
505
|
-
message:
|
|
529
|
+
}) : (console.error(u), {
|
|
530
|
+
status: u.status || 500,
|
|
531
|
+
message: u.message,
|
|
506
532
|
result: {}
|
|
507
533
|
});
|
|
508
534
|
}
|
|
509
|
-
},
|
|
535
|
+
}, Y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
510
536
|
__proto__: null,
|
|
511
|
-
post:
|
|
512
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
537
|
+
post: X
|
|
538
|
+
}, Symbol.toStringTag, { value: "Module" })), Z = async (e, t) => {
|
|
513
539
|
try {
|
|
514
540
|
const n = {
|
|
515
541
|
status: 200,
|
|
516
542
|
message: ""
|
|
517
543
|
};
|
|
518
|
-
return await
|
|
544
|
+
return await L.post(
|
|
519
545
|
"/auth/sesh",
|
|
520
546
|
JSON.stringify({
|
|
521
547
|
usr: e,
|
|
@@ -528,27 +554,25 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
528
554
|
message: n.message
|
|
529
555
|
};
|
|
530
556
|
}
|
|
531
|
-
},
|
|
557
|
+
}, w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
532
558
|
__proto__: null,
|
|
533
|
-
call:
|
|
534
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
559
|
+
call: Z
|
|
560
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = async () => {
|
|
535
561
|
try {
|
|
536
562
|
const e = {
|
|
537
563
|
status: 200,
|
|
538
564
|
message: ""
|
|
539
565
|
};
|
|
540
|
-
return await
|
|
566
|
+
return await L.post("/auth/sesh/logout"), e;
|
|
541
567
|
} catch (e) {
|
|
542
568
|
return console.error(`login: ${JSON.stringify(e)}`), {
|
|
543
569
|
status: e.status || 500,
|
|
544
570
|
message: e.message
|
|
545
571
|
};
|
|
546
572
|
}
|
|
547
|
-
},
|
|
573
|
+
}, te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
548
574
|
__proto__: null,
|
|
549
|
-
call:
|
|
550
|
-
}, Symbol.toStringTag, { value: "Module" })), te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
551
|
-
__proto__: null
|
|
575
|
+
call: ee
|
|
552
576
|
}, Symbol.toStringTag, { value: "Module" })), ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
553
577
|
__proto__: null
|
|
554
578
|
}, Symbol.toStringTag, { value: "Module" })), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -559,44 +583,46 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
559
583
|
__proto__: null
|
|
560
584
|
}, Symbol.toStringTag, { value: "Module" })), ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
561
585
|
__proto__: null
|
|
562
|
-
}, Symbol.toStringTag, { value: "Module" })), re = {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
586
|
+
}, Symbol.toStringTag, { value: "Module" })), re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
587
|
+
__proto__: null
|
|
588
|
+
}, Symbol.toStringTag, { value: "Module" })), le = {
|
|
589
|
+
api: Y,
|
|
590
|
+
loginApi: w,
|
|
591
|
+
logoutApi: te,
|
|
592
|
+
apiType: D,
|
|
593
|
+
loginType: ne,
|
|
594
|
+
logoutType: se,
|
|
595
|
+
getAnnouncementResponse: $,
|
|
596
|
+
announcementType: oe,
|
|
597
|
+
getPaymentsProviderResponse: U,
|
|
572
598
|
paymentsProviderType: F,
|
|
573
599
|
getGameListResponse: I,
|
|
574
|
-
gameListType:
|
|
600
|
+
gameListType: ie,
|
|
575
601
|
getVipListResponse: V,
|
|
576
|
-
vipListType:
|
|
602
|
+
vipListType: ae,
|
|
577
603
|
getPromotionResponse: J,
|
|
578
|
-
promotionType:
|
|
579
|
-
},
|
|
604
|
+
promotionType: re
|
|
605
|
+
}, ce = {
|
|
580
606
|
install(e) {
|
|
581
|
-
e.config.globalProperties.$library =
|
|
607
|
+
e.config.globalProperties.$library = le;
|
|
582
608
|
}
|
|
583
609
|
};
|
|
584
610
|
export {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
611
|
+
ce as Repository,
|
|
612
|
+
oe as announcementType,
|
|
613
|
+
Y as api,
|
|
614
|
+
D as apiType,
|
|
615
|
+
ie as gameListType,
|
|
616
|
+
$ as getAnnouncementResponse,
|
|
591
617
|
I as getGameListResponse,
|
|
592
|
-
|
|
618
|
+
U as getPaymentsProviderResponse,
|
|
593
619
|
J as getPromotionResponse,
|
|
594
620
|
V as getVipListResponse,
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
621
|
+
w as loginApi,
|
|
622
|
+
ne as loginType,
|
|
623
|
+
te as logoutApi,
|
|
624
|
+
se as logoutType,
|
|
599
625
|
F as paymentsProviderType,
|
|
600
|
-
|
|
601
|
-
|
|
626
|
+
re as promotionType,
|
|
627
|
+
ae as vipListType
|
|
602
628
|
};
|
package/dist/60p82u21t54k.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(m,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],h):(m=typeof globalThis<"u"?globalThis:m||self,h(m["60p82u21t54k"]={},m.axios))})(this,function(m,h){"use strict";const v=h.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});v.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),v.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 W=e=>new TextEncoder().encode(e),X=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var c=(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))(c||{});const M=Object.freeze(Object.defineProperty({__proto__:null,Api:c},Symbol.toStringTag,{value:"Module"}));var y=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(y||{});const O=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:y},Symbol.toStringTag,{value:"Module"})),T=e=>e.mdPaymentChannels.map(t=>{const n=[];switch(t.name){case y.default:n.push(j(t.paymentmethod.manual,e));break;case y.pay:n.push(Y(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&n.push(Z(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let r=!1;for(let o=0;o<t.paymentmethod.manual.bank.length;o++){const a=t.paymentmethod.manual.bank[o];if(a.list&&a.list.length>0){r=!0;break}}r&&n.push(j(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&n.push(w(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:n}}),P={id:0,name:"",type:y.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},x=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},n=e.map((r,o)=>({id:o+1,name:r.promodesc,value:r.promoindex.toString(),disabled:!1}));return[t,...n]},S=(e,t,n,r)=>{let o,a;n>0?o=e>0?Math.max(n,e):n:o=Math.max(e,0),r>0?a=t>0?Math.min(r,t):r:a=Math.max(t,0);const g=Math.round(o);let s=1e3;a<s&&(s=Math.round(a));const i=s-g;let u="",l="";if(i>0){let f=Math.round((s-g)*.25).toString().split(""),_=[];for(const d of f)d!==""&&_.push(d);for(let d=0;d<_.length;d++)d===0?u+=(parseInt(_[d])+1).toString():u+="0";f=Math.round((s-g)*.5).toString().split(""),_=[];for(const d of f)d!==""&&_.push(d);for(let d=0;d<_.length;d++)d===0?l+=(parseInt(_[d])+1).toString():l+="0"}else u=s.toString(),l=s.toString();return{amountList:[g.toString(),u,l,s.toString()],minAmount:g,maxAmount:a}},j=(e,t)=>t?{id:0,name:"manualMethod",type:y.manual,promo:x(e.promo),bank:e.bank.map(o=>{const a=o.list&&o.list.length>0?o.list[0].mintransaction??"0.00":"0.00",g=o.list&&o.list.length>0?o.list[0].maxtransaction??"0.00":"0.00",{amountList:s,minAmount:i,maxAmount:u}=S(Number(a),Number(g),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:o.bankindex??0,bankAccountId:o.list&&o.list.length>0?o.list[0].bankaccountindex??0:0,name:o.list&&o.list.length>0?o.list[0].label??"":"",accountName:o.list&&o.list.length>0?o.list[0].bankaccountname??"":"",accountNo:o.list&&o.list.length>0?o.list[0].bankaccountno??"":"",qrcode:o.list&&o.list.length>0?o.list[0].bankaccountdesc:"",amountList:s,min:i,max:u}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:P,Y=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:y.pay,promo:x(e.promo),bank:e.banklist.map(o=>{let a="0.00",g="0.00";const s=o.bankindex??0;for(let f=0;f<t.mdGatewayMinMax.length;f++)t.mdGatewayMinMax[f].bankindex==s.toString()&&(a=t.mdGatewayMinMax[f].min,g=t.mdGatewayMinMax[f].max);const{amountList:i,minAmount:u,maxAmount:l}=S(Number(a),Number(g),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),p={id:0,name:"autoChannel",amountList:i,min:u,max:l},L=o.pg.map(f=>{const _=f.mintransaction??"0.00",K=f.maxtransaction??"0.00",{amountList:Q,minAmount:d,maxAmount:ae}=S(Number(_),Number(K),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:f.pgindex,name:f.bankaccountname,amountList:Q,min:d,max:ae}});return{id:o.bankindex??0,name:o.banknameenglish??"",amountList:[],min:0,max:0,gateway:[p,...L]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:P,Z=(e,t,n)=>{if(!n)return P;const r=y.auto;let o=[];const a=n.mdGatewayMinMax;if(t.bank.length>0&&n.mdPGSelection=="1")o=t.bank.map(s=>{const{amountList:i,minAmount:u,maxAmount:l}=S(s.minTransaction??0,s.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:s.pgindex,name:s.bankaccountname||"",amountList:i,min:u,max:l}});else{let s="0.00",i="0.00";for(let b=0;b<a.length;b++)a[b].bankindex===e.toString()&&(s=a[b].min,i=a[b].max);const{amountList:u,minAmount:l,maxAmount:p}=S(Number(s),Number(i),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),L={id:0,name:"autoChannel",amountList:u,min:l,max:p};o.push(L)}return{id:e,name:"autoMethod",type:r,promo:x(t.promo),bank:o,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},w=(e,t)=>{const n=y.fix;return{id:e,name:"fixAmountMethod",type:n,promo:x(t.promo),bank:t.bank.map(o=>{const a=o.amtlist.map(Number).sort((s,i)=>s-i);return{id:o.pgindex,name:o.name,amountList:o.amtlist,min:a.length>0?a[0]:0,max:a.length>0?a[a.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},R=Object.freeze(Object.defineProperty({__proto__:null,getPaymentsProviderResponse:T},Symbol.toStringTag,{value:"Module"})),k=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),B=Object.freeze(Object.defineProperty({__proto__:null,getAnnouncementResponse:k},Symbol.toStringTag,{value:"Module"})),ee=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}),N=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}))})),A=Object.freeze(Object.defineProperty({__proto__:null,getGameListResponse:N},Symbol.toStringTag,{value:"Module"})),q=e=>(console.log(e),{list:e.mdGrade.map(t=>({id:t.gradeindex,name:t.grade_simplified,color_code:`#${t.colorcode}`,turnover:t.min_activebet,deposit: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:{month:0,week:0,day:0},member_info:{id:0,deposit:"0",turnover:"0",percentage:0}}),z=Object.freeze(Object.defineProperty({__proto__:null,getVipListResponse:q},Symbol.toStringTag,{value:"Module"})),F=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}})}),D=Object.freeze(Object.defineProperty({__proto__:null,getPromotionResponse:F},Symbol.toStringTag,{value:"Module"})),te=e=>({month:e.month,week:e.week,day:e.day}),ne=e=>e.mdVipSetting.filter(t=>{t.status==1}).map(t=>({name:t.showname})),se=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}),G=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,n;try{e.findIndex(i=>i.name===c.vipList)!==-1&&e.push({name:c.vipBonus,query:""},{name:c.vipFieldStatus,query:""},{name:c.vipStatus,query:""});const a={requests:e.map(i=>({name:i.name,query:btoa(i.query)}))},g=await v.post("/jwt",W(JSON.stringify(a))),s={status:200,message:"",result:{}};for(const i of g.data.responses){i.error!=null&&i.error.code!=200&&(s.status=i.error.code,s.message=i.error.message);const u=i.attributes!==null&&i.attributes!==void 0?X(i.attributes):null,l=i.name,p=u?JSON.parse(u):null;if(!p)s.result[l]=null;else switch(l){case c.announcement:s.result[l]=k(p);break;case c.gameList:s.result[l]=N(p);break;case c.cmsList:s.result[l]=p;break;case c.paymentsProvider:s.result[l]=T(p);break;case c.getUserProfile:s.result[l]=ee(p);break;case c.vipList:s.result[l]=q(p);break;case c.vipBonus:s.result[l]=te(p);break;case c.vipFieldStatus:s.result[l]=ne(p);break;case c.vipStatus:s.result[l]=se(p);break;case c.promotion:s.result[l]=F(p);break}}if(c.vipList in s.result&&s.result.vipList!==null){const i=s.result.vipList;if(c.vipBonus in s.result&&s.result.vipBonus!==null){const u=s.result.vipBonus;i.bonus=u,delete s.result.vipBonus}if(c.vipStatus in s.result&&s.result.vipStatus!==null){const u=s.result.vipStatus;i.member_info.id=u.current_grade_id,i.member_info.deposit=u.current_deposit,i.member_info.turnover=u.current_turnover,i.member_info.percentage=u.percentage,delete s.result.vipStatus}c.vipFieldStatus in s.result&&s.result.vipFieldStatus!=null&&delete s.result.vipFieldStatus,s.result.vipList=i}return s}catch(r){return h.isAxiosError(r)?(console.error(r),{status:((t=r.response)==null?void 0:t.status)||500,message:JSON.stringify((n=r.response)==null?void 0:n.data),result:{}}):(console.error(r),{status:r.status||500,message:r.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),U=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const n={status:200,message:""};return await v.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"})),$=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await v.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"})),C=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),E=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),I=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),J=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),oe={api:G,loginApi:U,logoutApi:$,apiType:M,loginType:C,logoutType:E,getAnnouncementResponse:B,announcementType:I,getPaymentsProviderResponse:R,paymentsProviderType:O,getGameListResponse:A,gameListType:V,getVipListResponse:z,vipListType:J,getPromotionResponse:D,promotionType:H},ie={install(e){e.config.globalProperties.$library=oe}};m.Repository=ie,m.announcementType=I,m.api=G,m.apiType=M,m.gameListType=V,m.getAnnouncementResponse=B,m.getGameListResponse=A,m.getPaymentsProviderResponse=R,m.getPromotionResponse=D,m.getVipListResponse=z,m.loginApi=U,m.loginType=C,m.logoutApi=$,m.logoutType=E,m.paymentsProviderType=O,m.promotionType=H,m.vipListType=J,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(m,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],x):(m=typeof globalThis<"u"?globalThis:m||self,x(m["60p82u21t54k"]={},m.axios))})(this,function(m,x){"use strict";const P=x.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 X=e=>new TextEncoder().encode(e),Y=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var c=(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))(c||{});const R=Object.freeze(Object.defineProperty({__proto__:null,Api:c},Symbol.toStringTag,{value:"Module"}));var h=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(h||{});const j=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:h},Symbol.toStringTag,{value:"Module"})),k=e=>e.mdPaymentChannels.map(t=>{const n=[];switch(t.name){case h.default:n.push(B(t.paymentmethod.manual,e));break;case h.pay:n.push(Z(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&n.push(w(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let u=!1;for(let o=0;o<t.paymentmethod.manual.bank.length;o++){const r=t.paymentmethod.manual.bank[o];if(r.list&&r.list.length>0){u=!0;break}}u&&n.push(B(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&n.push(ee(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:n}}),T={id:0,name:"",type:h.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},O=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},n=e.map((u,o)=>({id:o+1,name:u.promodesc,value:u.promoindex.toString(),disabled:!1}));return[t,...n]},M=(e,t,n,u)=>{let o,r;n>0?o=e>0?Math.max(n,e):n:o=Math.max(e,0),u>0?r=t>0?Math.min(u,t):u:r=Math.max(t,0);const y=Math.round(o);let s=1e3;r<s&&(s=Math.round(r));const i=s-y;let p="",a="";if(i>0){let f=Math.round((s-y)*.25).toString().split(""),l=[];for(const d of f)d!==""&&l.push(d);for(let d=0;d<l.length;d++)d===0?p+=(parseInt(l[d])+1).toString():p+="0";f=Math.round((s-y)*.5).toString().split(""),l=[];for(const d of f)d!==""&&l.push(d);for(let d=0;d<l.length;d++)d===0?a+=(parseInt(l[d])+1).toString():a+="0"}else p=s.toString(),a=s.toString();return{amountList:[y.toString(),p,a,s.toString()],minAmount:y,maxAmount:r}},B=(e,t)=>t?{id:0,name:"manualMethod",type:h.manual,promo:O(e.promo),bank:e.bank.map(o=>{const r=o.list&&o.list.length>0?o.list[0].mintransaction??"0.00":"0.00",y=o.list&&o.list.length>0?o.list[0].maxtransaction??"0.00":"0.00",{amountList:s,minAmount:i,maxAmount:p}=M(Number(r),Number(y),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:o.bankindex??0,bankAccountId:o.list&&o.list.length>0?o.list[0].bankaccountindex??0:0,name:o.list&&o.list.length>0?o.list[0].label??"":"",accountName:o.list&&o.list.length>0?o.list[0].bankaccountname??"":"",accountNo:o.list&&o.list.length>0?o.list[0].bankaccountno??"":"",qrcode:o.list&&o.list.length>0?o.list[0].bankaccountdesc:"",amountList:s,min:i,max:p}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:T,Z=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:h.pay,promo:O(e.promo),bank:e.banklist.map(o=>{let r="0.00",y="0.00";const s=o.bankindex??0;for(let f=0;f<t.mdGatewayMinMax.length;f++)t.mdGatewayMinMax[f].bankindex==s.toString()&&(r=t.mdGatewayMinMax[f].min,y=t.mdGatewayMinMax[f].max);const{amountList:i,minAmount:p,maxAmount:a}=M(Number(r),Number(y),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),g={id:0,name:"autoChannel",amountList:i,min:p,max:a},v=o.pg.map(f=>{const l=f.mintransaction??"0.00",_=f.maxtransaction??"0.00",{amountList:S,minAmount:d,maxAmount:L}=M(Number(l),Number(_),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:f.pgindex,name:f.bankaccountname,amountList:S,min:d,max:L}});return{id:o.bankindex??0,name:o.banknameenglish??"",amountList:[],min:0,max:0,gateway:[g,...v]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:T,w=(e,t,n)=>{if(!n)return T;const u=h.auto;let o=[];const r=n.mdGatewayMinMax;if(t.bank.length>0&&n.mdPGSelection=="1")o=t.bank.map(s=>{const{amountList:i,minAmount:p,maxAmount:a}=M(s.minTransaction??0,s.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:s.pgindex,name:s.bankaccountname||"",amountList:i,min:p,max:a}});else{let s="0.00",i="0.00";for(let b=0;b<r.length;b++)r[b].bankindex===e.toString()&&(s=r[b].min,i=r[b].max);const{amountList:p,minAmount:a,maxAmount:g}=M(Number(s),Number(i),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),v={id:0,name:"autoChannel",amountList:p,min:a,max:g};o.push(v)}return{id:e,name:"autoMethod",type:u,promo:O(t.promo),bank:o,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ee=(e,t)=>{const n=h.fix;return{id:e,name:"fixAmountMethod",type:n,promo:O(t.promo),bank:t.bank.map(o=>{const r=o.amtlist.map(Number).sort((s,i)=>s-i);return{id:o.pgindex,name:o.name,amountList:o.amtlist,min:r.length>0?r[0]:0,max:r.length>0?r[r.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},N=Object.freeze(Object.defineProperty({__proto__:null,getPaymentsProviderResponse:k},Symbol.toStringTag,{value:"Module"})),q=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),A=Object.freeze(Object.defineProperty({__proto__:null,getAnnouncementResponse:q},Symbol.toStringTag,{value:"Module"})),te=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}),D=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}))})),F=Object.freeze(Object.defineProperty({__proto__:null,getGameListResponse:D},Symbol.toStringTag,{value:"Module"})),z=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}}),C=Object.freeze(Object.defineProperty({__proto__:null,getVipListResponse:z},Symbol.toStringTag,{value:"Module"})),G=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}})}),$=Object.freeze(Object.defineProperty({__proto__:null,getPromotionResponse:G},Symbol.toStringTag,{value:"Module"})),ne=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),se=e=>e.mdVipSetting.filter(t=>{t.status==1}).map(t=>({name:t.showname})),oe=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}),ie=e=>{let t=0;return e.vipcalculation?e.vipcalculation==""||e.vipcalculation==null||e.vipcalculation==null?t=4:t=Number(e.vipcalculation):t=4,{vipCalculation:t}},U=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,n;try{e.findIndex(i=>i.name===c.vipList)!==-1&&e.push({name:c.vipBonus,query:""},{name:c.vipFieldStatus,query:""},{name:c.vipStatus,query:""},{name:c.getSetting,query:JSON.stringify({name:["vipcalculation"]})});const r={requests:e.map(i=>({name:i.name,query:btoa(i.query)}))},y=await P.post("/jwt",X(JSON.stringify(r))),s={status:200,message:"",result:{}};for(const i of y.data.responses){i.error!=null&&i.error.code!=200&&(s.status=i.error.code,s.message=i.error.message);const p=i.attributes!==null&&i.attributes!==void 0?Y(i.attributes):null,a=i.name,g=p?JSON.parse(p):null;if(!g)s.result[a]=null;else switch(a){case c.announcement:s.result[a]=q(g);break;case c.gameList:s.result[a]=D(g);break;case c.cmsList:s.result[a]=g;break;case c.paymentsProvider:s.result[a]=k(g);break;case c.getUserProfile:s.result[a]=te(g);break;case c.vipList:s.result[a]=z(g);break;case c.vipBonus:s.result[a]=ne(g);break;case c.vipFieldStatus:s.result[a]=se(g);break;case c.vipStatus:s.result[a]=oe(g);break;case c.promotion:s.result[a]=G(g);break;case c.getSetting:s.result[a]=ie(g);break}}if(c.vipList in s.result&&s.result.vipList!==null){const i=s.result.vipList;let p=4;if(c.getSetting in s.result&&s.result.getSetting!==null&&(p=s.result.getSetting.vipCalculation),c.vipBonus in s.result){if(s.result.vipBonus!==null){const a=s.result.vipBonus;i.bonus=a}delete s.result.vipBonus}if(c.vipFieldStatus in s.result&&(s.result.vipFieldStatus!=null&&console.log(s.result.vipFieldStatus),delete s.result.vipFieldStatus),c.vipStatus in s.result){let a=-1,g="0",v="0",b=0;if(s.result.vipStatus!==null){const l=s.result.vipStatus;a=l.current_grade_id,g=l.current_deposit,v=l.current_turnover,b=l.percentage}const f=i.list.findIndex(l=>l.id==a);for(let l=0;l<i.list.length;l++){const _=i.list[l];let S="0",d="0",L=0;_.is_current_level=l==f,l==f&&(S=`${Math.min(Number(g),Number(_.deposit.total))}`,d=`${Math.min(Number(v),Number(_.turnover.total))}`,L=b),l<f&&(S=_.deposit.total,d=_.turnover.total,L=1),l>f&&(S="0.00",d="0.00",L=0),_.deposit.isShow=p==1||p==3||p==4,_.deposit.current=S,_.turnover.isShow=p==2||p==3||p==4,_.turnover.current=d,_.percentage=L,i.list[l]=_}delete s.result.vipStatus}s.result.vipList=i}return s}catch(u){return x.isAxiosError(u)?(console.error(u),{status:((t=u.response)==null?void 0:t.status)||500,message:JSON.stringify((n=u.response)==null?void 0:n.data),result:{}}):(console.error(u),{status:u.status||500,message:u.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 P.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"})),I=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"})),V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),J=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),W=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"})),ae={api:U,loginApi:E,logoutApi:I,apiType:R,loginType:V,logoutType:J,getAnnouncementResponse:A,announcementType:W,getPaymentsProviderResponse:N,paymentsProviderType:j,getGameListResponse:F,gameListType:H,getVipListResponse:C,vipListType:K,getPromotionResponse:$,promotionType:Q},re={install(e){e.config.globalProperties.$library=ae}};m.Repository=re,m.announcementType=W,m.api=U,m.apiType=R,m.gameListType=H,m.getAnnouncementResponse=A,m.getGameListResponse=F,m.getPaymentsProviderResponse=N,m.getPromotionResponse=$,m.getVipListResponse=C,m.loginApi=E,m.loginType=V,m.logoutApi=I,m.logoutType=J,m.paymentsProviderType=j,m.promotionType=Q,m.vipListType=K,Object.defineProperty(m,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;AAiBnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAkMnB,CAAA"}
|
package/dist/api/type.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { CmsListResponse } from '../model/cms/type';
|
|
|
3
3
|
import { PaymentsProviderResponse } from '../model/deposit/type';
|
|
4
4
|
import { FishGameListResponse } from '../model/fishGameList/type';
|
|
5
5
|
import { GameListResponse } from '../model/gameList/type';
|
|
6
|
+
import { GetSettingResponse } from '../model/getSetting/type';
|
|
6
7
|
import { PromotionResponse } from '../model/promotion/type';
|
|
7
8
|
import { GetUserProfileResponse } from '../model/userProfile/type';
|
|
8
9
|
import { VipBonusResponse } from '../model/vipBonus/type';
|
|
@@ -20,7 +21,8 @@ export declare enum Api {
|
|
|
20
21
|
vipStatus = "vipStatus",
|
|
21
22
|
vipBonus = "vipBonus",
|
|
22
23
|
vipFieldStatus = "vipFieldStatus",
|
|
23
|
-
promotion = "promotion"
|
|
24
|
+
promotion = "promotion",
|
|
25
|
+
getSetting = "getSetting"
|
|
24
26
|
}
|
|
25
27
|
export type ApiResponseMap = {
|
|
26
28
|
[Api.announcement]: AnnouncementResponse;
|
|
@@ -34,6 +36,7 @@ export type ApiResponseMap = {
|
|
|
34
36
|
[Api.vipBonus]: VipBonusResponse;
|
|
35
37
|
[Api.vipFieldStatus]: VipListResponse;
|
|
36
38
|
[Api.promotion]: PromotionResponse;
|
|
39
|
+
[Api.getSetting]: GetSettingResponse;
|
|
37
40
|
};
|
|
38
41
|
export type ApiResponse<T extends keyof ApiResponseMap> = ApiResponseMap[T];
|
|
39
42
|
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,E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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,7 @@
|
|
|
1
|
+
import { GetSettingResponse } from './type';
|
|
2
|
+
|
|
3
|
+
export type RawGetSettingResponse = {
|
|
4
|
+
vipcalculation?: string | null;
|
|
5
|
+
};
|
|
6
|
+
export declare const getSettingResponse: (raw: RawGetSettingResponse) => GetSettingResponse;
|
|
7
|
+
//# sourceMappingURL=getSettingResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSettingResponse.d.ts","sourceRoot":"","sources":["../../../src/model/getSetting/getSettingResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,MAAM,qBAAqB,GAAG;IAClC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,kBAAkB,QAAS,qBAAqB,KAAG,kBAmB/D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/getSetting/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/vipBonus/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/vipBonus/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,EAAE,OAAO,CAAA;IACxB,cAAc,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVipListResponse.d.ts","sourceRoot":"","sources":["../../../src/model/vipList/getVipListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,kBAAkB,QAAS,kBAAkB,KAAG,
|
|
1
|
+
{"version":3,"file":"getVipListResponse.d.ts","sourceRoot":"","sources":["../../../src/model/vipList/getVipListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,kBAAkB,QAAS,kBAAkB,KAAG,eAwC5D,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAED,KAAK,OAAO,GAAG;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,Y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5B,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA"}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
export type VipListResponse = {
|
|
2
2
|
list: {
|
|
3
3
|
id: number;
|
|
4
|
+
is_current_level: boolean;
|
|
4
5
|
name: string;
|
|
5
|
-
|
|
6
|
-
turnover:
|
|
7
|
-
|
|
6
|
+
percentage: number;
|
|
7
|
+
turnover: {
|
|
8
|
+
isShow: boolean;
|
|
9
|
+
current: string;
|
|
10
|
+
total: string;
|
|
11
|
+
};
|
|
12
|
+
deposit: {
|
|
13
|
+
isShow: boolean;
|
|
14
|
+
current: string;
|
|
15
|
+
total: string;
|
|
16
|
+
};
|
|
8
17
|
promo_list: {
|
|
9
18
|
name: string;
|
|
10
19
|
min_deposit: string;
|
|
@@ -42,15 +51,9 @@ export type VipListResponse = {
|
|
|
42
51
|
}[];
|
|
43
52
|
detail: string[];
|
|
44
53
|
bonus: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
member_info: {
|
|
50
|
-
id: number;
|
|
51
|
-
deposit: string;
|
|
52
|
-
turnover: string;
|
|
53
|
-
percentage: number;
|
|
54
|
+
showMonthButton: boolean;
|
|
55
|
+
showWeekButton: boolean;
|
|
56
|
+
showDayButton: boolean;
|
|
54
57
|
};
|
|
55
58
|
};
|
|
56
59
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/vipList/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE;QACJ,EAAE,E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