60p82u21t54k 0.0.52 → 0.0.53
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 +321 -276
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/type.d.ts +7 -1
- package/dist/api/type.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/model/gameList/getGameListResponse.d.ts.map +1 -1
- package/dist/model/gameList/type.d.ts +1 -0
- package/dist/model/gameList/type.d.ts.map +1 -1
- package/dist/model/getPlatformTurnoverRate/getGetPlatformTurnoverRateResponse.d.ts +4 -0
- package/dist/model/getPlatformTurnoverRate/getGetPlatformTurnoverRateResponse.d.ts.map +1 -0
- package/dist/model/getPlatformTurnoverRate/type.d.ts +5 -0
- package/dist/model/getPlatformTurnoverRate/type.d.ts.map +1 -0
- package/dist/model/mainWallet/getMainWalletResponse.d.ts +11 -0
- package/dist/model/mainWallet/getMainWalletResponse.d.ts.map +1 -0
- package/dist/model/mainWallet/type.d.ts +4 -0
- package/dist/model/mainWallet/type.d.ts.map +1 -0
- package/dist/plugin.d.ts +2 -1
- package/dist/plugin.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/model/gameList/rawType.d.ts +0 -1
- package/dist/model/gameList/rawType.d.ts.map +0 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import D from "axios";
|
|
2
|
+
const P = D.create({
|
|
3
3
|
baseURL: "/graph",
|
|
4
4
|
timeout: 5e3,
|
|
5
5
|
// Request timeout
|
|
@@ -45,11 +45,11 @@ const L = B.create({
|
|
|
45
45
|
// },
|
|
46
46
|
// },
|
|
47
47
|
});
|
|
48
|
-
|
|
48
|
+
P.interceptors.request.use(
|
|
49
49
|
(e) => e,
|
|
50
50
|
(e) => (console.error("Error request:", e.response), Promise.reject(e))
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
P.interceptors.response.use(
|
|
53
53
|
(e) => e,
|
|
54
54
|
(e) => {
|
|
55
55
|
const t = {
|
|
@@ -59,47 +59,47 @@ L.interceptors.response.use(
|
|
|
59
59
|
return e.response ? (t.status = e.response.status, t.message = e.response.data.message || e.response.statusText, console.error("Error response:", JSON.stringify(t)), e.response.status === 401 ? console.error("Unauthorized access - redirecting to login.") : e.response.status === 404 ? console.error("Resource not found.") : e.response.status >= 500 && console.error("Server error. Please try again later.")) : e.request ? console.error("No response received:", e.request) : console.error("Error setting up request:", e.message), Promise.reject(t);
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
const
|
|
62
|
+
const G = (e) => new TextEncoder().encode(e), U = (e) => {
|
|
63
63
|
try {
|
|
64
64
|
return atob(e);
|
|
65
65
|
} catch (t) {
|
|
66
66
|
return console.error("Failed to decode Base64:", t), "";
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
var
|
|
70
|
-
const
|
|
69
|
+
var i = /* @__PURE__ */ ((e) => (e.announcement = "announcement", e.gameList = "gameList", e.fishGameList = "fishGameList", e.cmsList = "cmsList", e.paymentsProvider = "paymentsProvider", e.getUserProfile = "getUserProfile", e.vipList = "vipList", e.vipStatus = "vipStatus", e.vipBonus = "vipBonus", e.vipFieldStatus = "vipFieldStatus", e.promotion = "promotion", e.getSetting = "getSetting", e.getCountryMobile = "getCountryMobile", e.getPlatformTurnoverRate = "getPlatformTurnoverRate", e.mainWallet = "mainWallet", e))(i || {});
|
|
70
|
+
const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71
71
|
__proto__: null,
|
|
72
|
-
Api:
|
|
72
|
+
Api: i
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
|
-
var
|
|
75
|
-
const
|
|
74
|
+
var v = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(v || {});
|
|
75
|
+
const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
76
|
__proto__: null,
|
|
77
|
-
PaymentType:
|
|
78
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
77
|
+
PaymentType: v
|
|
78
|
+
}, Symbol.toStringTag, { value: "Module" })), I = (e) => e.mdPaymentChannels.map((t) => {
|
|
79
79
|
const n = [];
|
|
80
80
|
switch (t.name) {
|
|
81
|
-
case
|
|
82
|
-
n.push(
|
|
81
|
+
case v.default:
|
|
82
|
+
n.push(A(t.paymentmethod.manual, e));
|
|
83
83
|
break;
|
|
84
|
-
case
|
|
85
|
-
n.push(
|
|
84
|
+
case v.pay:
|
|
85
|
+
n.push(E(t.paymentmethod.onlinebanking, e));
|
|
86
86
|
break;
|
|
87
87
|
default:
|
|
88
88
|
if (t.paymentmethod.auto.bank.length > 0 && n.push(
|
|
89
|
-
|
|
89
|
+
J(t.bankid ?? 0, t.paymentmethod.auto, e)
|
|
90
90
|
), t.paymentmethod.manual.bank.length > 0) {
|
|
91
|
-
let
|
|
92
|
-
for (let
|
|
93
|
-
const l = t.paymentmethod.manual.bank[
|
|
91
|
+
let r = !1;
|
|
92
|
+
for (let s = 0; s < t.paymentmethod.manual.bank.length; s++) {
|
|
93
|
+
const l = t.paymentmethod.manual.bank[s];
|
|
94
94
|
if (l.list && l.list.length > 0) {
|
|
95
|
-
|
|
95
|
+
r = !0;
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
r && n.push(A(t.paymentmethod.manual, e));
|
|
100
100
|
}
|
|
101
101
|
t.paymentmethod.fixamount.bank.length > 0 && n.push(
|
|
102
|
-
|
|
102
|
+
V(t.bankid ?? 0, t.paymentmethod.fixamount)
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
return {
|
|
@@ -107,10 +107,10 @@ const T = /* @__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
|
+
}), q = {
|
|
111
111
|
id: 0,
|
|
112
112
|
name: "",
|
|
113
|
-
type:
|
|
113
|
+
type: v.unknown,
|
|
114
114
|
promo: [],
|
|
115
115
|
bank: [],
|
|
116
116
|
requiredField: {
|
|
@@ -121,117 +121,117 @@ const T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
121
121
|
depositor: !1,
|
|
122
122
|
uploadReceipt: !1
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, O = (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((
|
|
131
|
-
id:
|
|
132
|
-
name:
|
|
133
|
-
value:
|
|
130
|
+
}, n = e.map((r, s) => ({
|
|
131
|
+
id: s + 1,
|
|
132
|
+
name: r.promodesc,
|
|
133
|
+
value: r.promoindex.toString(),
|
|
134
134
|
disabled: !1
|
|
135
135
|
}));
|
|
136
136
|
return [t, ...n];
|
|
137
|
-
},
|
|
138
|
-
let
|
|
139
|
-
n > 0 ?
|
|
140
|
-
const
|
|
141
|
-
let
|
|
142
|
-
l <
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
if (
|
|
146
|
-
let
|
|
147
|
-
for (const
|
|
148
|
-
|
|
149
|
-
for (let
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
for (const
|
|
153
|
-
|
|
154
|
-
for (let
|
|
155
|
-
|
|
137
|
+
}, M = (e, t, n, r) => {
|
|
138
|
+
let s, l;
|
|
139
|
+
n > 0 ? s = e > 0 ? Math.max(n, e) : n : s = Math.max(e, 0), r > 0 ? l = t > 0 ? Math.min(r, t) : r : l = Math.max(t, 0);
|
|
140
|
+
const g = Math.round(s);
|
|
141
|
+
let m = 1e3;
|
|
142
|
+
l < m && (m = Math.round(l));
|
|
143
|
+
const f = m - g;
|
|
144
|
+
let y = "", d = "";
|
|
145
|
+
if (f > 0) {
|
|
146
|
+
let p = Math.round((m - g) * 0.25).toString().split(""), o = [];
|
|
147
|
+
for (const a of p)
|
|
148
|
+
a !== "" && o.push(a);
|
|
149
|
+
for (let a = 0; a < o.length; a++)
|
|
150
|
+
a === 0 ? y += (parseInt(o[a]) + 1).toString() : y += "0";
|
|
151
|
+
p = Math.round((m - g) * 0.5).toString().split(""), o = [];
|
|
152
|
+
for (const a of p)
|
|
153
|
+
a !== "" && o.push(a);
|
|
154
|
+
for (let a = 0; a < o.length; a++)
|
|
155
|
+
a === 0 ? d += (parseInt(o[a]) + 1).toString() : d += "0";
|
|
156
156
|
} else
|
|
157
|
-
|
|
157
|
+
y = m.toString(), d = m.toString();
|
|
158
158
|
return { amountList: [
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
], minAmount:
|
|
164
|
-
},
|
|
159
|
+
g.toString(),
|
|
160
|
+
y,
|
|
161
|
+
d,
|
|
162
|
+
m.toString()
|
|
163
|
+
], minAmount: g, maxAmount: l };
|
|
164
|
+
}, A = (e, t) => t ? {
|
|
165
165
|
id: 0,
|
|
166
166
|
name: "manualMethod",
|
|
167
|
-
type:
|
|
168
|
-
promo:
|
|
169
|
-
bank: e.bank.map((
|
|
170
|
-
const l =
|
|
167
|
+
type: v.manual,
|
|
168
|
+
promo: O(e.promo),
|
|
169
|
+
bank: e.bank.map((s) => {
|
|
170
|
+
const l = s.list && s.list.length > 0 ? s.list[0].mintransaction ?? "0.00" : "0.00", g = s.list && s.list.length > 0 ? s.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: m, minAmount: f, maxAmount: y } = M(
|
|
171
171
|
Number(l),
|
|
172
|
-
Number(
|
|
172
|
+
Number(g),
|
|
173
173
|
t.mdBankLevelDetail.deposit_min,
|
|
174
174
|
t.mdBankLevelDetail.deposit_max
|
|
175
175
|
);
|
|
176
176
|
return t.mdManualDepositRequireField.depositor = !0, {
|
|
177
|
-
id:
|
|
178
|
-
bankAccountId:
|
|
179
|
-
name:
|
|
180
|
-
accountName:
|
|
181
|
-
accountNo:
|
|
182
|
-
qrcode:
|
|
183
|
-
amountList:
|
|
184
|
-
min:
|
|
185
|
-
max:
|
|
177
|
+
id: s.bankindex ?? 0,
|
|
178
|
+
bankAccountId: s.list && s.list.length > 0 ? s.list[0].bankaccountindex ?? 0 : 0,
|
|
179
|
+
name: s.list && s.list.length > 0 ? s.list[0].label ?? "" : "",
|
|
180
|
+
accountName: s.list && s.list.length > 0 ? s.list[0].bankaccountname ?? "" : "",
|
|
181
|
+
accountNo: s.list && s.list.length > 0 ? s.list[0].bankaccountno ?? "" : "",
|
|
182
|
+
qrcode: s.list && s.list.length > 0 ? s.list[0].bankaccountdesc : "",
|
|
183
|
+
amountList: m,
|
|
184
|
+
min: f,
|
|
185
|
+
max: y
|
|
186
186
|
};
|
|
187
187
|
}),
|
|
188
188
|
requiredField: {
|
|
189
189
|
...t.mdManualDepositRequireField,
|
|
190
190
|
uploadReceipt: t.mdUploadReceipt
|
|
191
191
|
}
|
|
192
|
-
} :
|
|
192
|
+
} : q, E = (e, t) => t ? {
|
|
193
193
|
id: 0,
|
|
194
194
|
name: "onlineBankingMethod",
|
|
195
|
-
type:
|
|
196
|
-
promo:
|
|
197
|
-
bank: e.banklist.map((
|
|
198
|
-
let l = "0.00",
|
|
199
|
-
const
|
|
200
|
-
for (let
|
|
201
|
-
t.mdGatewayMinMax[
|
|
202
|
-
const { amountList:
|
|
195
|
+
type: v.pay,
|
|
196
|
+
promo: O(e.promo),
|
|
197
|
+
bank: e.banklist.map((s) => {
|
|
198
|
+
let l = "0.00", g = "0.00";
|
|
199
|
+
const m = s.bankindex ?? 0;
|
|
200
|
+
for (let p = 0; p < t.mdGatewayMinMax.length; p++)
|
|
201
|
+
t.mdGatewayMinMax[p].bankindex == m.toString() && (l = t.mdGatewayMinMax[p].min, g = t.mdGatewayMinMax[p].max);
|
|
202
|
+
const { amountList: f, minAmount: y, maxAmount: d } = M(
|
|
203
203
|
Number(l),
|
|
204
|
-
Number(
|
|
204
|
+
Number(g),
|
|
205
205
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
206
206
|
t.mdBankLevelDetail.onlinepayment_max
|
|
207
|
-
),
|
|
207
|
+
), x = {
|
|
208
208
|
id: 0,
|
|
209
209
|
name: "autoChannel",
|
|
210
|
-
amountList:
|
|
211
|
-
min:
|
|
212
|
-
max:
|
|
213
|
-
},
|
|
214
|
-
const
|
|
210
|
+
amountList: f,
|
|
211
|
+
min: y,
|
|
212
|
+
max: d
|
|
213
|
+
}, L = s.pg.map((p) => {
|
|
214
|
+
const o = p.mintransaction ?? "0.00", u = p.maxtransaction ?? "0.00", { amountList: b, minAmount: a, maxAmount: c } = M(
|
|
215
|
+
Number(o),
|
|
215
216
|
Number(u),
|
|
216
|
-
Number(y),
|
|
217
217
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
218
218
|
t.mdBankLevelDetail.onlinepayment_max
|
|
219
219
|
);
|
|
220
220
|
return {
|
|
221
|
-
id:
|
|
222
|
-
name:
|
|
223
|
-
amountList:
|
|
224
|
-
min:
|
|
225
|
-
max:
|
|
221
|
+
id: p.pgindex,
|
|
222
|
+
name: p.bankaccountname,
|
|
223
|
+
amountList: b,
|
|
224
|
+
min: a,
|
|
225
|
+
max: c
|
|
226
226
|
};
|
|
227
227
|
});
|
|
228
228
|
return {
|
|
229
|
-
id:
|
|
230
|
-
name:
|
|
229
|
+
id: s.bankindex ?? 0,
|
|
230
|
+
name: s.banknameenglish ?? "",
|
|
231
231
|
amountList: [],
|
|
232
232
|
min: 0,
|
|
233
233
|
max: 0,
|
|
234
|
-
gateway: [
|
|
234
|
+
gateway: [x, ...L]
|
|
235
235
|
};
|
|
236
236
|
}),
|
|
237
237
|
requiredField: {
|
|
@@ -242,51 +242,51 @@ const T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
242
242
|
depositor: !1,
|
|
243
243
|
uploadReceipt: !1
|
|
244
244
|
}
|
|
245
|
-
} :
|
|
246
|
-
if (!n) return
|
|
247
|
-
const
|
|
248
|
-
let
|
|
245
|
+
} : q, J = (e, t, n) => {
|
|
246
|
+
if (!n) return q;
|
|
247
|
+
const r = v.auto;
|
|
248
|
+
let s = [];
|
|
249
249
|
const l = n.mdGatewayMinMax;
|
|
250
250
|
if (t.bank.length > 0 && n.mdPGSelection == "1")
|
|
251
|
-
|
|
252
|
-
const { amountList:
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
s = t.bank.map((m) => {
|
|
252
|
+
const { amountList: f, minAmount: y, maxAmount: d } = M(
|
|
253
|
+
m.minTransaction ?? 0,
|
|
254
|
+
m.maxTransaction ?? 0,
|
|
255
255
|
n.mdBankLevelDetail.onlinepayment_min,
|
|
256
256
|
n.mdBankLevelDetail.onlinepayment_max
|
|
257
257
|
);
|
|
258
258
|
return {
|
|
259
|
-
id:
|
|
260
|
-
name:
|
|
261
|
-
amountList:
|
|
262
|
-
min:
|
|
263
|
-
max:
|
|
259
|
+
id: m.pgindex,
|
|
260
|
+
name: m.bankaccountname || "",
|
|
261
|
+
amountList: f,
|
|
262
|
+
min: y,
|
|
263
|
+
max: d
|
|
264
264
|
};
|
|
265
265
|
});
|
|
266
266
|
else {
|
|
267
|
-
let
|
|
268
|
-
for (let
|
|
269
|
-
l[
|
|
270
|
-
const { amountList:
|
|
271
|
-
Number(
|
|
272
|
-
Number(
|
|
267
|
+
let m = "0.00", f = "0.00";
|
|
268
|
+
for (let _ = 0; _ < l.length; _++)
|
|
269
|
+
l[_].bankindex === e.toString() && (m = l[_].min, f = l[_].max);
|
|
270
|
+
const { amountList: y, minAmount: d, maxAmount: x } = M(
|
|
271
|
+
Number(m),
|
|
272
|
+
Number(f),
|
|
273
273
|
n.mdBankLevelDetail.onlinepayment_min,
|
|
274
274
|
n.mdBankLevelDetail.onlinepayment_max
|
|
275
|
-
),
|
|
275
|
+
), L = {
|
|
276
276
|
id: 0,
|
|
277
277
|
name: "autoChannel",
|
|
278
|
-
amountList:
|
|
279
|
-
min:
|
|
280
|
-
max:
|
|
278
|
+
amountList: y,
|
|
279
|
+
min: d,
|
|
280
|
+
max: x
|
|
281
281
|
};
|
|
282
|
-
|
|
282
|
+
s.push(L);
|
|
283
283
|
}
|
|
284
284
|
return {
|
|
285
285
|
id: e,
|
|
286
286
|
name: "autoMethod",
|
|
287
|
-
type:
|
|
288
|
-
promo:
|
|
289
|
-
bank:
|
|
287
|
+
type: r,
|
|
288
|
+
promo: O(t.promo),
|
|
289
|
+
bank: s,
|
|
290
290
|
requiredField: {
|
|
291
291
|
deposit_bank: !1,
|
|
292
292
|
deposit_datetime: !1,
|
|
@@ -296,19 +296,19 @@ const T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
296
296
|
uploadReceipt: !1
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
|
-
},
|
|
300
|
-
const n =
|
|
299
|
+
}, V = (e, t) => {
|
|
300
|
+
const n = v.fix;
|
|
301
301
|
return {
|
|
302
302
|
id: e,
|
|
303
303
|
name: "fixAmountMethod",
|
|
304
304
|
type: n,
|
|
305
|
-
promo:
|
|
306
|
-
bank: t.bank.map((
|
|
307
|
-
const l =
|
|
305
|
+
promo: O(t.promo),
|
|
306
|
+
bank: t.bank.map((s) => {
|
|
307
|
+
const l = s.amtlist.map(Number).sort((m, f) => m - f);
|
|
308
308
|
return {
|
|
309
|
-
id:
|
|
310
|
-
name:
|
|
311
|
-
amountList:
|
|
309
|
+
id: s.pgindex,
|
|
310
|
+
name: s.name,
|
|
311
|
+
amountList: s.amtlist,
|
|
312
312
|
min: l.length > 0 ? l[0] : 0,
|
|
313
313
|
max: l.length > 0 ? l[l.length - 1] : 0
|
|
314
314
|
};
|
|
@@ -322,18 +322,18 @@ const T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
322
322
|
uploadReceipt: !1
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
|
-
},
|
|
325
|
+
}, W = (e) => e.map((t) => ({
|
|
326
326
|
alert: t.announcement_alert == "1",
|
|
327
327
|
update_time: t.announcement_lastupdated,
|
|
328
328
|
content: t.announcement_simplified
|
|
329
|
-
})),
|
|
329
|
+
})), H = (e) => ({
|
|
330
330
|
username: e.username,
|
|
331
331
|
birthday: e.mdUserDetail.dob,
|
|
332
332
|
email: e.mdUserDetail.email,
|
|
333
333
|
fullName: e.mdUserDetail.firstname,
|
|
334
334
|
phoneNumber: e.mdUserDetail.mobileno,
|
|
335
335
|
profilePicUrl: e.mdUserDetail.profile_pic
|
|
336
|
-
}),
|
|
336
|
+
}), K = (e) => e.mdGameListResult.map((t) => ({
|
|
337
337
|
code: t.code,
|
|
338
338
|
id: t.id,
|
|
339
339
|
name: t.name,
|
|
@@ -342,9 +342,10 @@ const T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
342
342
|
id: Number(n.id),
|
|
343
343
|
name: n.shortName,
|
|
344
344
|
flag: n.flag,
|
|
345
|
-
imageUrl: n.img
|
|
345
|
+
imageUrl: n.img,
|
|
346
|
+
rate: "0.00"
|
|
346
347
|
}))
|
|
347
|
-
})),
|
|
348
|
+
})), Q = (e) => ({
|
|
348
349
|
list: e.mdGrade.map((t) => ({
|
|
349
350
|
id: t.gradeindex,
|
|
350
351
|
is_current_level: !1,
|
|
@@ -376,7 +377,7 @@ const T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
376
377
|
showWeekButton: !1,
|
|
377
378
|
showDayButton: !1
|
|
378
379
|
}
|
|
379
|
-
}),
|
|
380
|
+
}), X = (e) => ({
|
|
380
381
|
category: e.category.sort((t, n) => t.sequence - n.sequence).map((t) => ({
|
|
381
382
|
id: t.catid,
|
|
382
383
|
name: t.name
|
|
@@ -391,173 +392,213 @@ const T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
391
392
|
name: t.title
|
|
392
393
|
};
|
|
393
394
|
})
|
|
394
|
-
}),
|
|
395
|
+
}), Y = (e) => ({
|
|
395
396
|
showMonthButton: e.month === 1,
|
|
396
397
|
showWeekButton: e.week === 1,
|
|
397
398
|
showDayButton: e.day === 1
|
|
398
|
-
}),
|
|
399
|
+
}), Z = (e) => e.mdVipSetting.filter((t) => {
|
|
399
400
|
t.status == 1;
|
|
400
401
|
}).map((t) => ({
|
|
401
402
|
name: t.showname
|
|
402
|
-
})),
|
|
403
|
+
})), w = (e) => ({
|
|
403
404
|
current_deposit: e.deposit,
|
|
404
405
|
current_turnover: e.turnOver,
|
|
405
406
|
current_grade_id: e.mdCurrentGrade.gradeindex,
|
|
406
407
|
next_grade_id: e.mdNextGrade.gradeindex,
|
|
407
408
|
percentage: Number(e.percentage) * 100
|
|
408
|
-
}),
|
|
409
|
+
}), ee = (e) => {
|
|
409
410
|
let t = 4;
|
|
410
411
|
e.vipcalculation && (t = Number(e.vipcalculation));
|
|
411
412
|
let n = [];
|
|
412
413
|
return e.extralivechat && (n = JSON.parse(e.extralivechat)), {
|
|
413
414
|
vip_calculation: t,
|
|
414
|
-
livechat: n.filter((
|
|
415
|
-
name:
|
|
416
|
-
image_url:
|
|
417
|
-
url:
|
|
415
|
+
livechat: n.filter((r) => r.status === 1).map((r) => ({
|
|
416
|
+
name: r.name,
|
|
417
|
+
image_url: r.imgname,
|
|
418
|
+
url: r.url
|
|
418
419
|
})),
|
|
419
420
|
mobileValidate: e.mobilevalidate ? e.mobilevalidate == "1" : !1
|
|
420
421
|
};
|
|
421
|
-
},
|
|
422
|
+
}, te = (e) => {
|
|
422
423
|
let t = [];
|
|
423
424
|
e.mobileBanner && (t = e.mobileBanner);
|
|
424
425
|
let n = [];
|
|
425
426
|
e.mobileAd && (n = e.mobileAd);
|
|
426
|
-
let
|
|
427
|
-
return e.mobileAbout && (
|
|
428
|
-
banner: t.map((
|
|
429
|
-
ad: n.map((
|
|
430
|
-
about:
|
|
431
|
-
name:
|
|
432
|
-
content:
|
|
427
|
+
let r = [];
|
|
428
|
+
return e.mobileAbout && (r = e.mobileAbout), {
|
|
429
|
+
banner: t.map((s) => `${s.imagepath}?${s.filemtime}`),
|
|
430
|
+
ad: n.map((s) => `${s.imagepath}?${s.filemtime}`),
|
|
431
|
+
about: r.map((s) => ({
|
|
432
|
+
name: s.name,
|
|
433
|
+
content: s.content
|
|
433
434
|
}))
|
|
434
435
|
};
|
|
435
|
-
},
|
|
436
|
+
}, ne = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
|
|
436
437
|
code: t.area_code,
|
|
437
438
|
regex: t.regex,
|
|
438
439
|
value: t.value
|
|
439
|
-
})),
|
|
440
|
-
|
|
440
|
+
})), se = (e) => e, oe = (e) => {
|
|
441
|
+
let t = null;
|
|
442
|
+
return e ? e.status != 1 ? t = 0 : t = e.mainwallet : t = 0, {
|
|
443
|
+
amount: t
|
|
444
|
+
};
|
|
445
|
+
}, ae = async (e) => {
|
|
446
|
+
var t, n, r, s, l, g, m, f, y;
|
|
441
447
|
try {
|
|
442
|
-
e.findIndex((
|
|
448
|
+
e.findIndex((u) => u.name === i.vipList) !== -1 && e.push(
|
|
443
449
|
{
|
|
444
|
-
name:
|
|
450
|
+
name: i.vipBonus,
|
|
445
451
|
query: ""
|
|
446
452
|
},
|
|
447
|
-
{ name:
|
|
448
|
-
{ name:
|
|
449
|
-
{ name:
|
|
450
|
-
)
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
{ name: i.vipFieldStatus, query: "" },
|
|
454
|
+
{ name: i.vipStatus, query: "" },
|
|
455
|
+
{ name: i.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
|
|
456
|
+
), e.findIndex((u) => u.name === i.gameList) !== -1 && e.push({
|
|
457
|
+
name: i.getPlatformTurnoverRate,
|
|
458
|
+
query: ""
|
|
459
|
+
});
|
|
460
|
+
const _ = {
|
|
461
|
+
requests: e.map((u) => ({
|
|
462
|
+
name: u.name,
|
|
463
|
+
query: btoa(u.query)
|
|
455
464
|
}))
|
|
456
|
-
},
|
|
465
|
+
}, p = await P.post(
|
|
457
466
|
"/jwt",
|
|
458
|
-
|
|
459
|
-
),
|
|
467
|
+
G(JSON.stringify(_))
|
|
468
|
+
), o = {
|
|
460
469
|
status: 200,
|
|
461
470
|
message: "",
|
|
462
471
|
result: {}
|
|
463
472
|
};
|
|
464
|
-
for (const
|
|
465
|
-
|
|
466
|
-
const
|
|
467
|
-
if (!
|
|
468
|
-
|
|
473
|
+
for (const u of p.data.responses) {
|
|
474
|
+
u.error != null && u.error.code != 200 && (o.status = u.error.code, o.message = u.error.message);
|
|
475
|
+
const b = u.attributes !== null && u.attributes !== void 0 ? U(u.attributes) : null, a = u.name, c = b ? JSON.parse(b) : null;
|
|
476
|
+
if (!c)
|
|
477
|
+
o.result[a] = null;
|
|
469
478
|
else
|
|
470
|
-
switch (
|
|
471
|
-
case
|
|
472
|
-
|
|
479
|
+
switch (a) {
|
|
480
|
+
case i.announcement:
|
|
481
|
+
o.result[a] = W(c);
|
|
473
482
|
break;
|
|
474
|
-
case
|
|
475
|
-
|
|
483
|
+
case i.gameList:
|
|
484
|
+
o.result[a] = K(c);
|
|
476
485
|
break;
|
|
477
|
-
case
|
|
478
|
-
|
|
486
|
+
case i.cmsList:
|
|
487
|
+
o.result[a] = te(c);
|
|
479
488
|
break;
|
|
480
|
-
case
|
|
481
|
-
|
|
482
|
-
|
|
489
|
+
case i.paymentsProvider:
|
|
490
|
+
o.result[a] = I(
|
|
491
|
+
c
|
|
483
492
|
);
|
|
484
493
|
break;
|
|
485
|
-
case
|
|
486
|
-
|
|
494
|
+
case i.getUserProfile:
|
|
495
|
+
o.result[a] = H(c);
|
|
487
496
|
break;
|
|
488
|
-
case
|
|
489
|
-
|
|
497
|
+
case i.vipList:
|
|
498
|
+
o.result[a] = Q(c);
|
|
490
499
|
break;
|
|
491
|
-
case
|
|
492
|
-
|
|
500
|
+
case i.vipBonus:
|
|
501
|
+
o.result[a] = Y(c);
|
|
493
502
|
break;
|
|
494
|
-
case
|
|
495
|
-
|
|
503
|
+
case i.vipFieldStatus:
|
|
504
|
+
o.result[a] = Z(c);
|
|
496
505
|
break;
|
|
497
|
-
case
|
|
498
|
-
|
|
506
|
+
case i.vipStatus:
|
|
507
|
+
o.result[a] = w(c);
|
|
499
508
|
break;
|
|
500
|
-
case
|
|
501
|
-
|
|
509
|
+
case i.promotion:
|
|
510
|
+
o.result[a] = X(c);
|
|
502
511
|
break;
|
|
503
|
-
case
|
|
504
|
-
|
|
512
|
+
case i.getSetting:
|
|
513
|
+
o.result[a] = ee(c);
|
|
505
514
|
break;
|
|
506
|
-
case
|
|
507
|
-
|
|
508
|
-
|
|
515
|
+
case i.getCountryMobile:
|
|
516
|
+
o.result[a] = ne(
|
|
517
|
+
c
|
|
509
518
|
);
|
|
510
519
|
break;
|
|
520
|
+
case i.getPlatformTurnoverRate:
|
|
521
|
+
o.result[a] = se(
|
|
522
|
+
c
|
|
523
|
+
);
|
|
524
|
+
break;
|
|
525
|
+
case i.mainWallet:
|
|
526
|
+
o.result[a] = oe(c);
|
|
527
|
+
break;
|
|
511
528
|
}
|
|
512
529
|
}
|
|
513
|
-
if (
|
|
514
|
-
const
|
|
515
|
-
let
|
|
516
|
-
if (
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
530
|
+
if (i.vipList in o.result && ((t = o.result) != null && t.vipList)) {
|
|
531
|
+
const u = o.result.vipList;
|
|
532
|
+
let b = 4;
|
|
533
|
+
if (i.getSetting in o.result && ((n = o.result) != null && n.getSetting) && (b = o.result.getSetting.vip_calculation, delete o.result.getSetting), i.vipBonus in o.result && ((r = o.result) != null && r.vipBonus) && (u.bonus = o.result.vipBonus, delete o.result.vipBonus), i.vipFieldStatus in o.result && ((s = o.result) != null && s.vipFieldStatus) && (console.log(o.result.vipFieldStatus), delete o.result.vipFieldStatus), i.vipStatus in o.result && ((l = o.result) != null && l.vipStatus)) {
|
|
534
|
+
const a = o.result.vipStatus, {
|
|
535
|
+
current_grade_id: c,
|
|
536
|
+
current_deposit: S,
|
|
537
|
+
current_turnover: B,
|
|
538
|
+
percentage: F
|
|
539
|
+
} = a, N = u.list.findIndex((h) => h.id === c);
|
|
540
|
+
u.list = u.list.map((h, j) => {
|
|
541
|
+
const C = j === N;
|
|
542
|
+
let T = "0", R = "0", k = 0;
|
|
543
|
+
return C ? (T = `${Math.min(Number(S), Number(h.deposit.total))}`, R = `${Math.min(Number(B), Number(h.turnover.total))}`, k = F) : j < N ? (T = h.deposit.total, R = h.turnover.total, k = 1) : j > N && (T = "0.00", R = "0.00", k = 0), {
|
|
544
|
+
...h,
|
|
545
|
+
is_current_level: C,
|
|
546
|
+
deposit: {
|
|
547
|
+
...h.deposit,
|
|
548
|
+
isShow: b === 1 || b === 3 || b === 4,
|
|
549
|
+
current: T
|
|
550
|
+
},
|
|
551
|
+
turnover: {
|
|
552
|
+
...h.turnover,
|
|
553
|
+
isShow: b === 2 || b === 3 || b === 4,
|
|
554
|
+
current: R
|
|
555
|
+
},
|
|
556
|
+
percentage: k
|
|
557
|
+
};
|
|
558
|
+
}), delete o.result.vipStatus;
|
|
522
559
|
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
560
|
+
o.result.vipList = u;
|
|
561
|
+
}
|
|
562
|
+
if (i.gameList in o.result && ((g = o.result) != null && g.gameList)) {
|
|
563
|
+
const u = o.result.gameList;
|
|
564
|
+
if (i.getPlatformTurnoverRate in o.result && ((m = o.result) != null && m.getPlatformTurnoverRate)) {
|
|
565
|
+
const b = o.result.getPlatformTurnoverRate;
|
|
566
|
+
u.forEach((a) => {
|
|
567
|
+
a.list = a.list.map((c) => {
|
|
568
|
+
const S = b.find(
|
|
569
|
+
(B) => B.id === c.id
|
|
570
|
+
);
|
|
571
|
+
return {
|
|
572
|
+
...c,
|
|
573
|
+
rate: (S == null ? void 0 : S.percentage) ?? "0.00"
|
|
574
|
+
};
|
|
575
|
+
});
|
|
576
|
+
}), delete o.result.getPlatformTurnoverRate;
|
|
536
577
|
}
|
|
537
|
-
|
|
578
|
+
o.result.gameList = u;
|
|
538
579
|
}
|
|
539
|
-
return
|
|
540
|
-
} catch (
|
|
541
|
-
return
|
|
542
|
-
status: ((
|
|
543
|
-
message: JSON.stringify((
|
|
580
|
+
return o;
|
|
581
|
+
} catch (d) {
|
|
582
|
+
return D.isAxiosError(d) ? {
|
|
583
|
+
status: ((f = d.response) == null ? void 0 : f.status) || 600,
|
|
584
|
+
message: JSON.stringify((y = d.response) == null ? void 0 : y.data),
|
|
544
585
|
result: {}
|
|
545
|
-
}
|
|
546
|
-
status:
|
|
547
|
-
message:
|
|
586
|
+
} : (console.error(d), {
|
|
587
|
+
status: d.status || 500,
|
|
588
|
+
message: d.message,
|
|
548
589
|
result: {}
|
|
549
590
|
});
|
|
550
591
|
}
|
|
551
|
-
},
|
|
592
|
+
}, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
552
593
|
__proto__: null,
|
|
553
|
-
post:
|
|
554
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
594
|
+
post: ae
|
|
595
|
+
}, Symbol.toStringTag, { value: "Module" })), re = async (e, t) => {
|
|
555
596
|
try {
|
|
556
597
|
const n = {
|
|
557
598
|
status: 200,
|
|
558
599
|
message: ""
|
|
559
600
|
};
|
|
560
|
-
return await
|
|
601
|
+
return await P.post(
|
|
561
602
|
"/auth/sesh",
|
|
562
603
|
JSON.stringify({
|
|
563
604
|
usr: e,
|
|
@@ -570,69 +611,73 @@ const T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
570
611
|
message: n.message
|
|
571
612
|
};
|
|
572
613
|
}
|
|
573
|
-
},
|
|
614
|
+
}, le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
574
615
|
__proto__: null,
|
|
575
|
-
call:
|
|
576
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
616
|
+
call: re
|
|
617
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = async () => {
|
|
577
618
|
try {
|
|
578
619
|
const e = {
|
|
579
620
|
status: 200,
|
|
580
621
|
message: ""
|
|
581
622
|
};
|
|
582
|
-
return await
|
|
623
|
+
return await P.post("/auth/sesh/logout"), e;
|
|
583
624
|
} catch (e) {
|
|
584
625
|
return console.error(`login: ${JSON.stringify(e)}`), {
|
|
585
626
|
status: e.status || 500,
|
|
586
627
|
message: e.message
|
|
587
628
|
};
|
|
588
629
|
}
|
|
589
|
-
},
|
|
630
|
+
}, me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
590
631
|
__proto__: null,
|
|
591
|
-
call:
|
|
592
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
632
|
+
call: ue
|
|
633
|
+
}, Symbol.toStringTag, { value: "Module" })), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
634
|
+
__proto__: null
|
|
635
|
+
}, Symbol.toStringTag, { value: "Module" })), de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
593
636
|
__proto__: null
|
|
594
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
637
|
+
}, Symbol.toStringTag, { value: "Module" })), pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
595
638
|
__proto__: null
|
|
596
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
639
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
597
640
|
__proto__: null
|
|
598
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
641
|
+
}, Symbol.toStringTag, { value: "Module" })), fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
599
642
|
__proto__: null
|
|
600
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
643
|
+
}, Symbol.toStringTag, { value: "Module" })), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
601
644
|
__proto__: null
|
|
602
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
645
|
+
}, Symbol.toStringTag, { value: "Module" })), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
603
646
|
__proto__: null
|
|
604
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
647
|
+
}, Symbol.toStringTag, { value: "Module" })), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
605
648
|
__proto__: null
|
|
606
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
607
|
-
api:
|
|
608
|
-
loginApi:
|
|
609
|
-
logoutApi:
|
|
610
|
-
apiType:
|
|
611
|
-
loginType:
|
|
612
|
-
logoutType:
|
|
613
|
-
announcementType:
|
|
614
|
-
paymentsProviderType:
|
|
615
|
-
gameListType:
|
|
616
|
-
vipListType:
|
|
617
|
-
promotionType:
|
|
618
|
-
cmsListType:
|
|
619
|
-
|
|
649
|
+
}, Symbol.toStringTag, { value: "Module" })), he = {
|
|
650
|
+
api: ie,
|
|
651
|
+
loginApi: le,
|
|
652
|
+
logoutApi: me,
|
|
653
|
+
apiType: z,
|
|
654
|
+
loginType: ce,
|
|
655
|
+
logoutType: de,
|
|
656
|
+
announcementType: pe,
|
|
657
|
+
paymentsProviderType: $,
|
|
658
|
+
gameListType: ge,
|
|
659
|
+
vipListType: fe,
|
|
660
|
+
promotionType: ye,
|
|
661
|
+
cmsListType: be,
|
|
662
|
+
mainWalletType: _e
|
|
663
|
+
}, xe = {
|
|
620
664
|
install(e) {
|
|
621
|
-
e.config.globalProperties.$library =
|
|
665
|
+
e.config.globalProperties.$library = he;
|
|
622
666
|
}
|
|
623
667
|
};
|
|
624
668
|
export {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
669
|
+
xe as Repository,
|
|
670
|
+
pe as announcementType,
|
|
671
|
+
ie as api,
|
|
672
|
+
z as apiType,
|
|
673
|
+
be as cmsListType,
|
|
674
|
+
ge as gameListType,
|
|
675
|
+
le as loginApi,
|
|
676
|
+
ce as loginType,
|
|
677
|
+
me as logoutApi,
|
|
678
|
+
de as logoutType,
|
|
679
|
+
_e as mainWalletType,
|
|
680
|
+
$ as paymentsProviderType,
|
|
681
|
+
ye as promotionType,
|
|
682
|
+
fe as vipListType
|
|
638
683
|
};
|
package/dist/60p82u21t54k.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(g,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],x):(g=typeof globalThis<"u"?globalThis:g||self,x(g["60p82u21t54k"]={},g.axios))})(this,function(g,x){"use strict";const M=x.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});M.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),M.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};return e.response?(t.status=e.response.status,t.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(t)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(t)});const z=e=>new TextEncoder().encode(e),E=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var m=(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))(m||{});const P=Object.freeze(Object.defineProperty({__proto__:null,Api:m},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 B=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:h},Symbol.toStringTag,{value:"Module"})),I=e=>e.mdPaymentChannels.map(t=>{const n=[];switch(t.name){case h.default:n.push(N(t.paymentmethod.manual,e));break;case h.pay:n.push(J(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&n.push(V(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let o=!1;for(let i=0;i<t.paymentmethod.manual.bank.length;i++){const r=t.paymentmethod.manual.bank[i];if(r.list&&r.list.length>0){o=!0;break}}o&&n.push(N(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}}),O={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}},k=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},n=e.map((o,i)=>({id:i+1,name:o.promodesc,value:o.promoindex.toString(),disabled:!1}));return[t,...n]},T=(e,t,n,o)=>{let i,r;n>0?i=e>0?Math.max(n,e):n:i=Math.max(e,0),o>0?r=t>0?Math.min(o,t):o:r=Math.max(t,0);const y=Math.round(i);let s=1e3;r<s&&(s=Math.round(r));const a=s-y;let c="",l="";if(a>0){let f=Math.round((s-y)*.25).toString().split(""),u=[];for(const p of f)p!==""&&u.push(p);for(let p=0;p<u.length;p++)p===0?c+=(parseInt(u[p])+1).toString():c+="0";f=Math.round((s-y)*.5).toString().split(""),u=[];for(const p of f)p!==""&&u.push(p);for(let p=0;p<u.length;p++)p===0?l+=(parseInt(u[p])+1).toString():l+="0"}else c=s.toString(),l=s.toString();return{amountList:[y.toString(),c,l,s.toString()],minAmount:y,maxAmount:r}},N=(e,t)=>t?{id:0,name:"manualMethod",type:h.manual,promo:k(e.promo),bank:e.bank.map(i=>{const r=i.list&&i.list.length>0?i.list[0].mintransaction??"0.00":"0.00",y=i.list&&i.list.length>0?i.list[0].maxtransaction??"0.00":"0.00",{amountList:s,minAmount:a,maxAmount:c}=T(Number(r),Number(y),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:i.bankindex??0,bankAccountId:i.list&&i.list.length>0?i.list[0].bankaccountindex??0:0,name:i.list&&i.list.length>0?i.list[0].label??"":"",accountName:i.list&&i.list.length>0?i.list[0].bankaccountname??"":"",accountNo:i.list&&i.list.length>0?i.list[0].bankaccountno??"":"",qrcode:i.list&&i.list.length>0?i.list[0].bankaccountdesc:"",amountList:s,min:a,max:c}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:O,J=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:h.pay,promo:k(e.promo),bank:e.banklist.map(i=>{let r="0.00",y="0.00";const s=i.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:a,minAmount:c,maxAmount:l}=T(Number(r),Number(y),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),d={id:0,name:"autoChannel",amountList:a,min:c,max:l},v=i.pg.map(f=>{const u=f.mintransaction??"0.00",b=f.maxtransaction??"0.00",{amountList:S,minAmount:p,maxAmount:L}=T(Number(u),Number(b),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:f.pgindex,name:f.bankaccountname,amountList:S,min:p,max:L}});return{id:i.bankindex??0,name:i.banknameenglish??"",amountList:[],min:0,max:0,gateway:[d,...v]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:O,V=(e,t,n)=>{if(!n)return O;const o=h.auto;let i=[];const r=n.mdGatewayMinMax;if(t.bank.length>0&&n.mdPGSelection=="1")i=t.bank.map(s=>{const{amountList:a,minAmount:c,maxAmount:l}=T(s.minTransaction??0,s.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:s.pgindex,name:s.bankaccountname||"",amountList:a,min:c,max:l}});else{let s="0.00",a="0.00";for(let _=0;_<r.length;_++)r[_].bankindex===e.toString()&&(s=r[_].min,a=r[_].max);const{amountList:c,minAmount:l,maxAmount:d}=T(Number(s),Number(a),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),v={id:0,name:"autoChannel",amountList:c,min:l,max:d};i.push(v)}return{id:e,name:"autoMethod",type:o,promo:k(t.promo),bank:i,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},W=(e,t)=>{const n=h.fix;return{id:e,name:"fixAmountMethod",type:n,promo:k(t.promo),bank:t.bank.map(i=>{const r=i.amtlist.map(Number).sort((s,a)=>s-a);return{id:i.pgindex,name:i.name,amountList:i.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}}},H=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),K=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}),Q=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}))})),X=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}}),Y=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}})}),Z=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),w=e=>e.mdVipSetting.filter(t=>{t.status==1}).map(t=>({name:t.showname})),ee=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}),te=e=>{let t=4;e.vipcalculation&&(t=Number(e.vipcalculation));let n=[];return e.extralivechat&&(n=JSON.parse(e.extralivechat)),{vip_calculation:t,livechat:n.filter(o=>o.status===1).map(o=>({name:o.name,image_url:o.imgname,url:o.url})),mobileValidate:e.mobilevalidate?e.mobilevalidate=="1":!1}},ne=e=>{let t=[];e.mobileBanner&&(t=e.mobileBanner);let n=[];e.mobileAd&&(n=e.mobileAd);let o=[];return e.mobileAbout&&(o=e.mobileAbout),{banner:t.map(i=>`${i.imagepath}?${i.filemtime}`),ad:n.map(i=>`${i.imagepath}?${i.filemtime}`),about:o.map(i=>({name:i.name,content:i.content}))}},se=e=>e.data.filter(t=>t.status==="1").map(t=>({code:t.area_code,regex:t.regex,value:t.value})),j=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,n;try{e.findIndex(a=>a.name===m.vipList)!==-1&&e.push({name:m.vipBonus,query:""},{name:m.vipFieldStatus,query:""},{name:m.vipStatus,query:""},{name:m.getSetting,query:JSON.stringify({name:["vipcalculation"]})});const r={requests:e.map(a=>({name:a.name,query:btoa(a.query)}))},y=await M.post("/jwt",z(JSON.stringify(r))),s={status:200,message:"",result:{}};for(const a of y.data.responses){a.error!=null&&a.error.code!=200&&(s.status=a.error.code,s.message=a.error.message);const c=a.attributes!==null&&a.attributes!==void 0?E(a.attributes):null,l=a.name,d=c?JSON.parse(c):null;if(!d)s.result[l]=null;else switch(l){case m.announcement:s.result[l]=H(d);break;case m.gameList:s.result[l]=Q(d);break;case m.cmsList:s.result[l]=ne(d);break;case m.paymentsProvider:s.result[l]=I(d);break;case m.getUserProfile:s.result[l]=K(d);break;case m.vipList:s.result[l]=X(d);break;case m.vipBonus:s.result[l]=Z(d);break;case m.vipFieldStatus:s.result[l]=w(d);break;case m.vipStatus:s.result[l]=ee(d);break;case m.promotion:s.result[l]=Y(d);break;case m.getSetting:s.result[l]=te(d);break;case m.getCountryMobile:s.result[l]=se(d);break}}if(m.vipList in s.result&&s.result.vipList!==null){const a=s.result.vipList;let c=4;if(m.getSetting in s.result&&(s.result.getSetting!==null&&(c=s.result.getSetting.vip_calculation),delete s.result.getSetting),m.vipBonus in s.result){if(s.result.vipBonus!==null){const l=s.result.vipBonus;a.bonus=l}delete s.result.vipBonus}if(m.vipFieldStatus in s.result&&(s.result.vipFieldStatus!=null&&console.log(s.result.vipFieldStatus),delete s.result.vipFieldStatus),m.vipStatus in s.result){let l=-1,d="0",v="0",_=0;if(s.result.vipStatus!==null){const u=s.result.vipStatus;l=u.current_grade_id,d=u.current_deposit,v=u.current_turnover,_=u.percentage}const f=a.list.findIndex(u=>u.id==l);for(let u=0;u<a.list.length;u++){const b=a.list[u];let S="0",p="0",L=0;b.is_current_level=u==f,u==f&&(S=`${Math.min(Number(d),Number(b.deposit.total))}`,p=`${Math.min(Number(v),Number(b.turnover.total))}`,L=_),u<f&&(S=b.deposit.total,p=b.turnover.total,L=1),u>f&&(S="0.00",p="0.00",L=0),b.deposit.isShow=c==1||c==3||c==4,b.deposit.current=S,b.turnover.isShow=c==2||c==3||c==4,b.turnover.current=p,b.percentage=L,a.list[u]=b}delete s.result.vipStatus}s.result.vipList=a}return s}catch(o){return x.isAxiosError(o)?(console.error(o),{status:((t=o.response)==null?void 0:t.status)||500,message:JSON.stringify((n=o.response)==null?void 0:n.data),result:{}}):(console.error(o),{status:o.status||500,message:o.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),R=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const n={status:200,message:""};return await M.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),n}catch(n){return console.error(`login: ${JSON.stringify(n)}`),{status:n.status||500,message:n.message}}}},Symbol.toStringTag,{value:"Module"})),A=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await M.post("/auth/sesh/logout"),e}catch(e){return console.error(`login: ${JSON.stringify(e)}`),{status:e.status||500,message:e.message}}}},Symbol.toStringTag,{value:"Module"})),q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),C=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),D=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),F=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),U=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),$=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),G=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ie={api:j,loginApi:R,logoutApi:A,apiType:P,loginType:q,logoutType:C,announcementType:D,paymentsProviderType:B,gameListType:F,vipListType:U,promotionType:$,cmsListType:G},oe={install(e){e.config.globalProperties.$library=ie}};g.Repository=oe,g.announcementType=D,g.api=j,g.apiType=P,g.cmsListType=G,g.gameListType=F,g.loginApi=R,g.loginType=q,g.logoutApi=A,g.logoutType=C,g.paymentsProviderType=B,g.promotionType=$,g.vipListType=U,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(d,L){typeof exports=="object"&&typeof module<"u"?L(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],L):(d=typeof globalThis<"u"?globalThis:d||self,L(d["60p82u21t54k"]={},d.axios))})(this,function(d,L){"use strict";const M=L.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});M.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),M.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};return e.response?(t.status=e.response.status,t.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(t)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(t)});const Y=e=>new TextEncoder().encode(e),Z=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var a=(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))(a||{});const D=Object.freeze(Object.defineProperty({__proto__:null,Api:a},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 F=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:h},Symbol.toStringTag,{value:"Module"})),w=e=>e.mdPaymentChannels.map(t=>{const n=[];switch(t.name){case h.default:n.push(G(t.paymentmethod.manual,e));break;case h.pay:n.push(ee(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&n.push(te(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let r=!1;for(let s=0;s<t.paymentmethod.manual.bank.length;s++){const l=t.paymentmethod.manual.bank[s];if(l.list&&l.list.length>0){r=!0;break}}r&&n.push(G(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&n.push(ne(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:n}}),N={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}},R=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},n=e.map((r,s)=>({id:s+1,name:r.promodesc,value:r.promoindex.toString(),disabled:!1}));return[t,...n]},P=(e,t,n,r)=>{let s,l;n>0?s=e>0?Math.max(n,e):n:s=Math.max(e,0),r>0?l=t>0?Math.min(r,t):r:l=Math.max(t,0);const f=Math.round(s);let m=1e3;l<m&&(m=Math.round(l));const y=m-f;let b="",p="";if(y>0){let g=Math.round((m-f)*.25).toString().split(""),o=[];for(const i of g)i!==""&&o.push(i);for(let i=0;i<o.length;i++)i===0?b+=(parseInt(o[i])+1).toString():b+="0";g=Math.round((m-f)*.5).toString().split(""),o=[];for(const i of g)i!==""&&o.push(i);for(let i=0;i<o.length;i++)i===0?p+=(parseInt(o[i])+1).toString():p+="0"}else b=m.toString(),p=m.toString();return{amountList:[f.toString(),b,p,m.toString()],minAmount:f,maxAmount:l}},G=(e,t)=>t?{id:0,name:"manualMethod",type:h.manual,promo:R(e.promo),bank:e.bank.map(s=>{const l=s.list&&s.list.length>0?s.list[0].mintransaction??"0.00":"0.00",f=s.list&&s.list.length>0?s.list[0].maxtransaction??"0.00":"0.00",{amountList:m,minAmount:y,maxAmount:b}=P(Number(l),Number(f),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:s.bankindex??0,bankAccountId:s.list&&s.list.length>0?s.list[0].bankaccountindex??0:0,name:s.list&&s.list.length>0?s.list[0].label??"":"",accountName:s.list&&s.list.length>0?s.list[0].bankaccountname??"":"",accountNo:s.list&&s.list.length>0?s.list[0].bankaccountno??"":"",qrcode:s.list&&s.list.length>0?s.list[0].bankaccountdesc:"",amountList:m,min:y,max:b}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:N,ee=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:h.pay,promo:R(e.promo),bank:e.banklist.map(s=>{let l="0.00",f="0.00";const m=s.bankindex??0;for(let g=0;g<t.mdGatewayMinMax.length;g++)t.mdGatewayMinMax[g].bankindex==m.toString()&&(l=t.mdGatewayMinMax[g].min,f=t.mdGatewayMinMax[g].max);const{amountList:y,minAmount:b,maxAmount:p}=P(Number(l),Number(f),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),x={id:0,name:"autoChannel",amountList:y,min:b,max:p},k=s.pg.map(g=>{const o=g.mintransaction??"0.00",u=g.maxtransaction??"0.00",{amountList:_,minAmount:i,maxAmount:c}=P(Number(o),Number(u),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:g.pgindex,name:g.bankaccountname,amountList:_,min:i,max:c}});return{id:s.bankindex??0,name:s.banknameenglish??"",amountList:[],min:0,max:0,gateway:[x,...k]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:N,te=(e,t,n)=>{if(!n)return N;const r=h.auto;let s=[];const l=n.mdGatewayMinMax;if(t.bank.length>0&&n.mdPGSelection=="1")s=t.bank.map(m=>{const{amountList:y,minAmount:b,maxAmount:p}=P(m.minTransaction??0,m.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:m.pgindex,name:m.bankaccountname||"",amountList:y,min:b,max:p}});else{let m="0.00",y="0.00";for(let v=0;v<l.length;v++)l[v].bankindex===e.toString()&&(m=l[v].min,y=l[v].max);const{amountList:b,minAmount:p,maxAmount:x}=P(Number(m),Number(y),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),k={id:0,name:"autoChannel",amountList:b,min:p,max:x};s.push(k)}return{id:e,name:"autoMethod",type:r,promo:R(t.promo),bank:s,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ne=(e,t)=>{const n=h.fix;return{id:e,name:"fixAmountMethod",type:n,promo:R(t.promo),bank:t.bank.map(s=>{const l=s.amtlist.map(Number).sort((m,y)=>m-y);return{id:s.pgindex,name:s.name,amountList:s.amtlist,min:l.length>0?l[0]:0,max:l.length>0?l[l.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},se=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),oe=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}),ie=e=>e.mdGameListResult.map(t=>({code:t.code,id:t.id,name:t.name,nextPage:t.nextPage===1,list:t.mdPlatformProducts.map(n=>({id:Number(n.id),name:n.shortName,flag:n.flag,imageUrl:n.img,rate:"0.00"}))})),ae=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}}),re=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}})}),le=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),ue=e=>e.mdVipSetting.filter(t=>{t.status==1}).map(t=>({name:t.showname})),me=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}),ce=e=>{let t=4;e.vipcalculation&&(t=Number(e.vipcalculation));let n=[];return e.extralivechat&&(n=JSON.parse(e.extralivechat)),{vip_calculation:t,livechat:n.filter(r=>r.status===1).map(r=>({name:r.name,image_url:r.imgname,url:r.url})),mobileValidate:e.mobilevalidate?e.mobilevalidate=="1":!1}},de=e=>{let t=[];e.mobileBanner&&(t=e.mobileBanner);let n=[];e.mobileAd&&(n=e.mobileAd);let r=[];return e.mobileAbout&&(r=e.mobileAbout),{banner:t.map(s=>`${s.imagepath}?${s.filemtime}`),ad:n.map(s=>`${s.imagepath}?${s.filemtime}`),about:r.map(s=>({name:s.name,content:s.content}))}},pe=e=>e.data.filter(t=>t.status==="1").map(t=>({code:t.area_code,regex:t.regex,value:t.value})),ge=e=>e,fe=e=>{let t=null;return e?e.status!=1?t=0:t=e.mainwallet:t=0,{amount:t}},U=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,n,r,s,l,f,m,y,b;try{e.findIndex(u=>u.name===a.vipList)!==-1&&e.push({name:a.vipBonus,query:""},{name:a.vipFieldStatus,query:""},{name:a.vipStatus,query:""},{name:a.getSetting,query:JSON.stringify({name:["vipcalculation"]})}),e.findIndex(u=>u.name===a.gameList)!==-1&&e.push({name:a.getPlatformTurnoverRate,query:""});const v={requests:e.map(u=>({name:u.name,query:btoa(u.query)}))},g=await M.post("/jwt",Y(JSON.stringify(v))),o={status:200,message:"",result:{}};for(const u of g.data.responses){u.error!=null&&u.error.code!=200&&(o.status=u.error.code,o.message=u.error.message);const _=u.attributes!==null&&u.attributes!==void 0?Z(u.attributes):null,i=u.name,c=_?JSON.parse(_):null;if(!c)o.result[i]=null;else switch(i){case a.announcement:o.result[i]=se(c);break;case a.gameList:o.result[i]=ie(c);break;case a.cmsList:o.result[i]=de(c);break;case a.paymentsProvider:o.result[i]=w(c);break;case a.getUserProfile:o.result[i]=oe(c);break;case a.vipList:o.result[i]=ae(c);break;case a.vipBonus:o.result[i]=le(c);break;case a.vipFieldStatus:o.result[i]=ue(c);break;case a.vipStatus:o.result[i]=me(c);break;case a.promotion:o.result[i]=re(c);break;case a.getSetting:o.result[i]=ce(c);break;case a.getCountryMobile:o.result[i]=pe(c);break;case a.getPlatformTurnoverRate:o.result[i]=ge(c);break;case a.mainWallet:o.result[i]=fe(c);break}}if(a.vipList in o.result&&((t=o.result)!=null&&t.vipList)){const u=o.result.vipList;let _=4;if(a.getSetting in o.result&&((n=o.result)!=null&&n.getSetting)&&(_=o.result.getSetting.vip_calculation,delete o.result.getSetting),a.vipBonus in o.result&&((r=o.result)!=null&&r.vipBonus)&&(u.bonus=o.result.vipBonus,delete o.result.vipBonus),a.vipFieldStatus in o.result&&((s=o.result)!=null&&s.vipFieldStatus)&&(console.log(o.result.vipFieldStatus),delete o.result.vipFieldStatus),a.vipStatus in o.result&&((l=o.result)!=null&&l.vipStatus)){const i=o.result.vipStatus,{current_grade_id:c,current_deposit:T,current_turnover:q,percentage:_e}=i,A=u.list.findIndex(S=>S.id===c);u.list=u.list.map((S,C)=>{const X=C===A;let O="0",j="0",B=0;return X?(O=`${Math.min(Number(T),Number(S.deposit.total))}`,j=`${Math.min(Number(q),Number(S.turnover.total))}`,B=_e):C<A?(O=S.deposit.total,j=S.turnover.total,B=1):C>A&&(O="0.00",j="0.00",B=0),{...S,is_current_level:X,deposit:{...S.deposit,isShow:_===1||_===3||_===4,current:O},turnover:{...S.turnover,isShow:_===2||_===3||_===4,current:j},percentage:B}}),delete o.result.vipStatus}o.result.vipList=u}if(a.gameList in o.result&&((f=o.result)!=null&&f.gameList)){const u=o.result.gameList;if(a.getPlatformTurnoverRate in o.result&&((m=o.result)!=null&&m.getPlatformTurnoverRate)){const _=o.result.getPlatformTurnoverRate;u.forEach(i=>{i.list=i.list.map(c=>{const T=_.find(q=>q.id===c.id);return{...c,rate:(T==null?void 0:T.percentage)??"0.00"}})}),delete o.result.getPlatformTurnoverRate}o.result.gameList=u}return o}catch(p){return L.isAxiosError(p)?{status:((y=p.response)==null?void 0:y.status)||600,message:JSON.stringify((b=p.response)==null?void 0:b.data),result:{}}:(console.error(p),{status:p.status||500,message:p.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),$=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const n={status:200,message:""};return await M.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),n}catch(n){return console.error(`login: ${JSON.stringify(n)}`),{status:n.status||500,message:n.message}}}},Symbol.toStringTag,{value:"Module"})),z=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await M.post("/auth/sesh/logout"),e}catch(e){return console.error(`login: ${JSON.stringify(e)}`),{status:e.status||500,message:e.message}}}},Symbol.toStringTag,{value:"Module"})),I=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),E=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"})),V=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"})),ye={api:U,loginApi:$,logoutApi:z,apiType:D,loginType:I,logoutType:E,announcementType:J,paymentsProviderType:F,gameListType:W,vipListType:V,promotionType:H,cmsListType:K,mainWalletType:Q},be={install(e){e.config.globalProperties.$library=ye}};d.Repository=be,d.announcementType=J,d.api=U,d.apiType=D,d.cmsListType=K,d.gameListType=W,d.loginApi=$,d.loginType=I,d.logoutApi=z,d.logoutType=E,d.mainWalletType=Q,d.paymentsProviderType=F,d.promotionType=H,d.vipListType=V,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;AAuBnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAyOnB,CAAA"}
|
package/dist/api/type.d.ts
CHANGED
|
@@ -4,12 +4,14 @@ import { PaymentsProviderResponse } from '../model/deposit/type';
|
|
|
4
4
|
import { FishGameListResponse } from '../model/fishGameList/type';
|
|
5
5
|
import { GameListResponse } from '../model/gameList/type';
|
|
6
6
|
import { getCountryMobileResponse } from '../model/getCountryMobile/type';
|
|
7
|
+
import { getPlatformTurnoverRateResponse } from '../model/getPlatformTurnoverRate/type';
|
|
7
8
|
import { GetSettingResponse } from '../model/getSetting/type';
|
|
8
9
|
import { PromotionResponse } from '../model/promotion/type';
|
|
9
10
|
import { GetUserProfileResponse } from '../model/userProfile/type';
|
|
10
11
|
import { VipBonusResponse } from '../model/vipBonus/type';
|
|
11
12
|
import { VipListResponse } from '../model/vipList/type';
|
|
12
13
|
import { VipStatusResponse } from '../model/vipStatus/type';
|
|
14
|
+
import { mainWalletResponse } from '../model/mainWallet/type';
|
|
13
15
|
|
|
14
16
|
export declare enum Api {
|
|
15
17
|
announcement = "announcement",
|
|
@@ -24,7 +26,9 @@ export declare enum Api {
|
|
|
24
26
|
vipFieldStatus = "vipFieldStatus",
|
|
25
27
|
promotion = "promotion",
|
|
26
28
|
getSetting = "getSetting",
|
|
27
|
-
getCountryMobile = "getCountryMobile"
|
|
29
|
+
getCountryMobile = "getCountryMobile",
|
|
30
|
+
getPlatformTurnoverRate = "getPlatformTurnoverRate",
|
|
31
|
+
mainWallet = "mainWallet"
|
|
28
32
|
}
|
|
29
33
|
export type ApiResponseMap = {
|
|
30
34
|
[Api.announcement]: AnnouncementResponse;
|
|
@@ -40,6 +44,8 @@ export type ApiResponseMap = {
|
|
|
40
44
|
[Api.promotion]: PromotionResponse;
|
|
41
45
|
[Api.getSetting]: GetSettingResponse;
|
|
42
46
|
[Api.getCountryMobile]: getCountryMobileResponse;
|
|
47
|
+
[Api.getPlatformTurnoverRate]: getPlatformTurnoverRateResponse;
|
|
48
|
+
[Api.mainWallet]: mainWalletResponse;
|
|
43
49
|
};
|
|
44
50
|
export type ApiResponse<T extends keyof ApiResponseMap> = ApiResponseMap[T];
|
|
45
51
|
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,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;
|
|
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;AAE5D,oBAAY,GAAG;IACb,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,gBAAgB,qBAAqB;IACrC,uBAAuB,4BAA4B;IACnD,UAAU,eAAe;CAC1B;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IACxC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAChC,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IACxC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;IAC9B,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAA;IAChD,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,sBAAsB,CAAA;IAC5C,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;IAC9B,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAClC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAChC,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,eAAe,CAAA;IACrC,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAClC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAA;IACpC,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAA;IAChD,CAAC,GAAG,CAAC,uBAAuB,CAAC,EAAE,+BAA+B,CAAA;IAC9D,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;AAE3E,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAC3D,IAAI,EAAE,CAAC,CAAA;IACP,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IACnD,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;KACrD,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;CACnC,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ import * as gameListType from './model/gameList/type';
|
|
|
10
10
|
import * as vipListType from './model/vipList/type';
|
|
11
11
|
import * as promotionType from './model/promotion/type';
|
|
12
12
|
import * as cmsListType from './model/cms/type';
|
|
13
|
-
|
|
13
|
+
import * as mainWalletType from './model/mainWallet/type';
|
|
14
|
+
export { api, loginApi, logoutApi, apiType, loginType, logoutType, announcementType, paymentsProviderType, gameListType, vipListType, promotionType, cmsListType, mainWalletType, };
|
|
14
15
|
export type RepositoryType = {
|
|
15
16
|
api: typeof api;
|
|
16
17
|
loginApi: typeof loginApi;
|
|
@@ -24,6 +25,7 @@ export type RepositoryType = {
|
|
|
24
25
|
vipListType: typeof vipListType;
|
|
25
26
|
promotionType: typeof promotionType;
|
|
26
27
|
cmsListType: typeof cmsListType;
|
|
28
|
+
mainWalletType: typeof mainWalletType;
|
|
27
29
|
};
|
|
28
30
|
export { default as Repository } from './plugin';
|
|
29
31
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,WAAW,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAA;AAClD,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAA;AACrD,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAA;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAA;AACrD,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,aAAa,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,WAAW,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAA;AAClD,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAA;AACrD,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAA;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAA;AACrD,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,aAAa,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAA;AAEzD,OAAO,EACL,GAAG,EACH,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,WAAW,EACX,cAAc,GACf,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,OAAO,GAAG,CAAA;IACf,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,SAAS,EAAE,OAAO,SAAS,CAAA;IAC3B,OAAO,EAAE,OAAO,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,SAAS,CAAA;IAC3B,UAAU,EAAE,OAAO,UAAU,CAAA;IAC7B,gBAAgB,EAAE,OAAO,gBAAgB,CAAA;IACzC,oBAAoB,EAAE,OAAO,oBAAoB,CAAA;IACjD,YAAY,EAAE,OAAO,YAAY,CAAA;IACjC,WAAW,EAAE,OAAO,WAAW,CAAA;IAC/B,aAAa,EAAE,OAAO,aAAa,CAAA;IACnC,WAAW,EAAE,OAAO,WAAW,CAAA;IAC/B,cAAc,EAAE,OAAO,cAAc,CAAA;CACtC,CAAA;AAED,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGameListResponse.d.ts","sourceRoot":"","sources":["../../../src/model/gameList/getGameListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,mBAAmB,QAAS,mBAAmB,KAAG,
|
|
1
|
+
{"version":3,"file":"getGameListResponse.d.ts","sourceRoot":"","sources":["../../../src/model/gameList/getGameListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,mBAAmB,QAAS,mBAAmB,KAAG,gBAkB9D,CAAA;AAED,KAAK,mBAAmB,GAAG;IACzB,gBAAgB,EAAE,UAAU,EAAE,CAAA;IAC9B,gBAAgB,EAAE,iBAAiB,EAAE,CAAA;IACrC,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,WAAW,EAAE,OAAO,EAAE,CAAA;CACvB,CAAA;AAED,KAAK,UAAU,GAAG;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,kBAAkB,EAAE,WAAW,EAAE,CAAA;CAClC,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,KAAK,OAAO,GAAG;IACb,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/gameList/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,OAAO,EAAE,CAAA;AAExC,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/gameList/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,OAAO,EAAE,CAAA;AAExC,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGetPlatformTurnoverRateResponse.d.ts","sourceRoot":"","sources":["../../../src/model/getPlatformTurnoverRate/getGetPlatformTurnoverRateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,QAAQ,CAAA;AAExD,eAAO,MAAM,kCAAkC,QACxC,+BAA+B,KACnC,+BAEF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/getPlatformTurnoverRate/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,+BAA+B,GAAG;IAC5C,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;CACnB,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { mainWalletResponse } from './type';
|
|
2
|
+
|
|
3
|
+
export declare const getMainWalletResponse: (raw: RawMainWalletResponse) => mainWalletResponse;
|
|
4
|
+
type RawMainWalletResponse = {
|
|
5
|
+
status: number;
|
|
6
|
+
message: string;
|
|
7
|
+
errormessage: string;
|
|
8
|
+
mainwallet: number;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=getMainWalletResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMainWalletResponse.d.ts","sourceRoot":"","sources":["../../../src/model/mainWallet/getMainWalletResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,eAAO,MAAM,qBAAqB,QAAS,qBAAqB,KAAG,kBAelE,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/mainWallet/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import { api, loginApi, logoutApi, apiType, loginType, logoutType, announcementType, paymentsProviderType, gameListType, vipListType, promotionType, cmsListType } from './index';
|
|
2
|
+
import { api, loginApi, logoutApi, apiType, loginType, logoutType, announcementType, paymentsProviderType, gameListType, vipListType, promotionType, cmsListType, mainWalletType } from './index';
|
|
3
3
|
|
|
4
4
|
export declare const Repository: {
|
|
5
5
|
api: typeof api;
|
|
@@ -14,6 +14,7 @@ export declare const Repository: {
|
|
|
14
14
|
vipListType: typeof vipListType;
|
|
15
15
|
promotionType: typeof promotionType;
|
|
16
16
|
cmsListType: typeof cmsListType;
|
|
17
|
+
mainWalletType: typeof mainWalletType;
|
|
17
18
|
};
|
|
18
19
|
declare const _default: {
|
|
19
20
|
install(app: App): void;
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzB,OAAO,EACL,GAAG,EACH,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,WAAW,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzB,OAAO,EACL,GAAG,EACH,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,WAAW,EACX,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CActB,CAAA;;iBAGc,GAAG;;AADlB,wBAIC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=rawType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rawType.d.ts","sourceRoot":"","sources":["../../../src/model/gameList/rawType.ts"],"names":[],"mappings":""}
|