60p82u21t54k 0.0.26 → 0.0.28
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 +246 -218
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/type.d.ts +7 -1
- package/dist/api/type.d.ts.map +1 -1
- package/dist/model/promotion/getPromotionResponse.d.ts +5 -0
- package/dist/model/promotion/getPromotionResponse.d.ts.map +1 -0
- package/dist/model/promotion/rawType.d.ts +37 -0
- package/dist/model/promotion/rawType.d.ts.map +1 -0
- package/dist/model/promotion/type.d.ts +11 -32
- package/dist/model/promotion/type.d.ts.map +1 -1
- package/dist/model/vipList/getVipListResponse.d.ts +5 -0
- package/dist/model/vipList/getVipListResponse.d.ts.map +1 -0
- package/dist/model/vipList/rawType.d.ts +4 -0
- package/dist/model/vipList/rawType.d.ts.map +1 -0
- package/dist/model/vipList/type.d.ts +4 -0
- package/dist/model/vipList/type.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import O from "axios";
|
|
2
|
+
const x = O.create({
|
|
3
3
|
baseURL: "/graph",
|
|
4
4
|
timeout: 5e3,
|
|
5
5
|
// Request timeout
|
|
@@ -45,72 +45,72 @@ const b = k.create({
|
|
|
45
45
|
// },
|
|
46
46
|
// },
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
(
|
|
50
|
-
(
|
|
48
|
+
x.interceptors.request.use(
|
|
49
|
+
(t) => t,
|
|
50
|
+
(t) => (console.error("Error request:", t.response), Promise.reject(t))
|
|
51
51
|
);
|
|
52
|
-
|
|
53
|
-
(
|
|
54
|
-
(
|
|
55
|
-
const
|
|
52
|
+
x.interceptors.response.use(
|
|
53
|
+
(t) => t,
|
|
54
|
+
(t) => {
|
|
55
|
+
const e = {
|
|
56
56
|
status: null,
|
|
57
57
|
message: "An error occurred"
|
|
58
58
|
};
|
|
59
|
-
return
|
|
59
|
+
return t.response ? (e.status = t.response.status, e.message = t.response.data.message || t.response.statusText, console.error("Error response:", JSON.stringify(e)), t.response.status === 401 ? console.error("Unauthorized access - redirecting to login.") : t.response.status === 404 ? console.error("Resource not found.") : t.response.status >= 500 && console.error("Server error. Please try again later.")) : t.request ? console.error("No response received:", t.request) : console.error("Error setting up request:", t.message), Promise.reject(e);
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
const
|
|
62
|
+
const N = (t) => new TextEncoder().encode(t), T = (t) => {
|
|
63
63
|
try {
|
|
64
|
-
return atob(
|
|
65
|
-
} catch (
|
|
66
|
-
return console.error("Failed to decode Base64:",
|
|
64
|
+
return atob(t);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
return console.error("Failed to decode Base64:", e), "";
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
var
|
|
70
|
-
const
|
|
69
|
+
var g = /* @__PURE__ */ ((t) => (t.announcement = "announcement", t.gameList = "gameList", t.fishGameList = "fishGameList", t.cmsList = "cmsList", t.paymentsProvider = "paymentsProvider", t.getUserProfile = "getUserProfile", t.vipList = "vipList", t.promotion = "promotion", t))(g || {});
|
|
70
|
+
const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71
71
|
__proto__: null,
|
|
72
|
-
Api:
|
|
72
|
+
Api: g
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
|
-
var
|
|
75
|
-
const
|
|
74
|
+
var f = /* @__PURE__ */ ((t) => (t.default = "default", t.pay = "pay", t.auto = "auto", t.fix = "fix", t.manual = "manual", t.unknown = "unknown", t))(f || {});
|
|
75
|
+
const I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
76
|
__proto__: null,
|
|
77
|
-
PaymentType:
|
|
78
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
77
|
+
PaymentType: f
|
|
78
|
+
}, Symbol.toStringTag, { value: "Module" })), R = (t) => t.mdPaymentChannels.map((e) => {
|
|
79
79
|
const s = [];
|
|
80
|
-
switch (
|
|
81
|
-
case
|
|
82
|
-
s.push(
|
|
80
|
+
switch (e.name) {
|
|
81
|
+
case f.default:
|
|
82
|
+
s.push(k(e.paymentmethod.manual, t));
|
|
83
83
|
break;
|
|
84
|
-
case
|
|
85
|
-
s.push(
|
|
84
|
+
case f.pay:
|
|
85
|
+
s.push(q(e.paymentmethod.onlinebanking, t));
|
|
86
86
|
break;
|
|
87
87
|
default:
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
),
|
|
91
|
-
let
|
|
92
|
-
for (let n = 0; n <
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
-
|
|
88
|
+
if (e.paymentmethod.auto.bank.length > 0 && s.push(
|
|
89
|
+
D(e.bankid ?? 0, e.paymentmethod.auto, t)
|
|
90
|
+
), e.paymentmethod.manual.bank.length > 0) {
|
|
91
|
+
let i = !1;
|
|
92
|
+
for (let n = 0; n < e.paymentmethod.manual.bank.length; n++) {
|
|
93
|
+
const a = e.paymentmethod.manual.bank[n];
|
|
94
|
+
if (a.list && a.list.length > 0) {
|
|
95
|
+
i = !0;
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
i && s.push(k(e.paymentmethod.manual, t));
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
e.paymentmethod.fixamount.bank.length > 0 && s.push(
|
|
102
|
+
B(e.bankid ?? 0, e.paymentmethod.fixamount)
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
return {
|
|
106
|
-
name:
|
|
107
|
-
imageUrl: `/image/game/native/deposit/sidemenu/${
|
|
106
|
+
name: e.label,
|
|
107
|
+
imageUrl: `/image/game/native/deposit/sidemenu/${e.name}.png?${t.systemtime}`,
|
|
108
108
|
paymentList: s
|
|
109
109
|
};
|
|
110
|
-
}),
|
|
110
|
+
}), S = {
|
|
111
111
|
id: 0,
|
|
112
112
|
name: "",
|
|
113
|
-
type:
|
|
113
|
+
type: f.unknown,
|
|
114
114
|
promo: [],
|
|
115
115
|
bank: [],
|
|
116
116
|
requiredField: {
|
|
@@ -121,108 +121,108 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
121
121
|
depositor: !1,
|
|
122
122
|
uploadReceipt: !1
|
|
123
123
|
}
|
|
124
|
-
},
|
|
125
|
-
const
|
|
124
|
+
}, L = (t) => {
|
|
125
|
+
const e = {
|
|
126
126
|
id: 0,
|
|
127
127
|
name: "excludePromo",
|
|
128
128
|
value: "0",
|
|
129
129
|
disabled: !0
|
|
130
|
-
}, s =
|
|
130
|
+
}, s = t.map((i, n) => ({
|
|
131
131
|
id: n + 1,
|
|
132
|
-
name:
|
|
133
|
-
value:
|
|
132
|
+
name: i.promodesc,
|
|
133
|
+
value: i.promoindex.toString(),
|
|
134
134
|
disabled: !1
|
|
135
135
|
}));
|
|
136
|
-
return [
|
|
137
|
-
}, _ = (
|
|
138
|
-
let n,
|
|
139
|
-
s > 0 ? n =
|
|
140
|
-
const
|
|
141
|
-
let
|
|
142
|
-
|
|
143
|
-
const
|
|
144
|
-
let r = "",
|
|
145
|
-
if (
|
|
146
|
-
let
|
|
147
|
-
for (const u of
|
|
136
|
+
return [e, ...s];
|
|
137
|
+
}, _ = (t, e, s, i) => {
|
|
138
|
+
let n, a;
|
|
139
|
+
s > 0 ? n = t > 0 ? Math.max(s, t) : s : n = Math.max(t, 0), i > 0 ? a = e > 0 ? Math.min(i, e) : i : a = Math.max(e, 0);
|
|
140
|
+
const m = Math.round(n);
|
|
141
|
+
let o = 1e3;
|
|
142
|
+
a < o && (o = Math.round(a));
|
|
143
|
+
const c = o - m;
|
|
144
|
+
let r = "", l = "";
|
|
145
|
+
if (c > 0) {
|
|
146
|
+
let d = Math.round((o - m) * 0.25).toString().split(""), p = [];
|
|
147
|
+
for (const u of d)
|
|
148
148
|
u !== "" && p.push(u);
|
|
149
149
|
for (let u = 0; u < p.length; u++)
|
|
150
150
|
u === 0 ? r += (parseInt(p[u]) + 1).toString() : r += "0";
|
|
151
|
-
|
|
152
|
-
for (const u of
|
|
151
|
+
d = Math.round((o - m) * 0.5).toString().split(""), p = [];
|
|
152
|
+
for (const u of d)
|
|
153
153
|
u !== "" && p.push(u);
|
|
154
154
|
for (let u = 0; u < p.length; u++)
|
|
155
|
-
u === 0 ?
|
|
155
|
+
u === 0 ? l += (parseInt(p[u]) + 1).toString() : l += "0";
|
|
156
156
|
} else
|
|
157
|
-
r =
|
|
157
|
+
r = o.toString(), l = o.toString();
|
|
158
158
|
return { amountList: [
|
|
159
|
-
|
|
159
|
+
m.toString(),
|
|
160
160
|
r,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
], minAmount:
|
|
164
|
-
},
|
|
161
|
+
l,
|
|
162
|
+
o.toString()
|
|
163
|
+
], minAmount: m, maxAmount: a };
|
|
164
|
+
}, k = (t, e) => e ? {
|
|
165
165
|
id: 0,
|
|
166
166
|
name: "manualMethod",
|
|
167
|
-
type:
|
|
168
|
-
promo:
|
|
169
|
-
bank:
|
|
170
|
-
const
|
|
171
|
-
Number(
|
|
172
|
-
Number(
|
|
173
|
-
|
|
174
|
-
|
|
167
|
+
type: f.manual,
|
|
168
|
+
promo: L(t.promo),
|
|
169
|
+
bank: t.bank.map((n) => {
|
|
170
|
+
const a = n.list && n.list.length > 0 ? n.list[0].mintransaction ?? "0.00" : "0.00", m = n.list && n.list.length > 0 ? n.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: o, minAmount: c, maxAmount: r } = _(
|
|
171
|
+
Number(a),
|
|
172
|
+
Number(m),
|
|
173
|
+
e.mdBankLevelDetail.deposit_min,
|
|
174
|
+
e.mdBankLevelDetail.deposit_max
|
|
175
175
|
);
|
|
176
|
-
return
|
|
176
|
+
return e.mdManualDepositRequireField.depositor = !0, {
|
|
177
177
|
id: n.bankindex ?? 0,
|
|
178
178
|
bankAccountId: n.list && n.list.length > 0 ? n.list[0].bankaccountindex ?? 0 : 0,
|
|
179
179
|
name: n.list && n.list.length > 0 ? n.list[0].label ?? "" : "",
|
|
180
180
|
accountName: n.list && n.list.length > 0 ? n.list[0].bankaccountname ?? "" : "",
|
|
181
181
|
accountNo: n.list && n.list.length > 0 ? n.list[0].bankaccountno ?? "" : "",
|
|
182
182
|
qrcode: n.list && n.list.length > 0 ? n.list[0].bankaccountdesc : "",
|
|
183
|
-
amountList:
|
|
184
|
-
min:
|
|
183
|
+
amountList: o,
|
|
184
|
+
min: c,
|
|
185
185
|
max: r
|
|
186
186
|
};
|
|
187
187
|
}),
|
|
188
188
|
requiredField: {
|
|
189
|
-
...
|
|
190
|
-
uploadReceipt:
|
|
189
|
+
...e.mdManualDepositRequireField,
|
|
190
|
+
uploadReceipt: e.mdUploadReceipt
|
|
191
191
|
}
|
|
192
|
-
} :
|
|
192
|
+
} : S, q = (t, e) => e ? {
|
|
193
193
|
id: 0,
|
|
194
194
|
name: "onlineBankingMethod",
|
|
195
|
-
type:
|
|
196
|
-
promo:
|
|
197
|
-
bank:
|
|
198
|
-
let
|
|
199
|
-
const
|
|
200
|
-
for (let
|
|
201
|
-
|
|
202
|
-
const { amountList:
|
|
203
|
-
Number(
|
|
204
|
-
Number(
|
|
205
|
-
|
|
206
|
-
|
|
195
|
+
type: f.pay,
|
|
196
|
+
promo: L(t.promo),
|
|
197
|
+
bank: t.banklist.map((n) => {
|
|
198
|
+
let a = "0.00", m = "0.00";
|
|
199
|
+
const o = n.bankindex ?? 0;
|
|
200
|
+
for (let d = 0; d < e.mdGatewayMinMax.length; d++)
|
|
201
|
+
e.mdGatewayMinMax[d].bankindex == o.toString() && (a = e.mdGatewayMinMax[d].min, m = e.mdGatewayMinMax[d].max);
|
|
202
|
+
const { amountList: c, minAmount: r, maxAmount: l } = _(
|
|
203
|
+
Number(a),
|
|
204
|
+
Number(m),
|
|
205
|
+
e.mdBankLevelDetail.onlinepayment_min,
|
|
206
|
+
e.mdBankLevelDetail.onlinepayment_max
|
|
207
207
|
), h = {
|
|
208
208
|
id: 0,
|
|
209
209
|
name: "autoChannel",
|
|
210
|
-
amountList:
|
|
210
|
+
amountList: c,
|
|
211
211
|
min: r,
|
|
212
|
-
max:
|
|
213
|
-
},
|
|
214
|
-
const p =
|
|
212
|
+
max: l
|
|
213
|
+
}, b = n.pg.map((d) => {
|
|
214
|
+
const p = d.mintransaction ?? "0.00", M = d.maxtransaction ?? "0.00", { amountList: P, minAmount: u, maxAmount: A } = _(
|
|
215
215
|
Number(p),
|
|
216
216
|
Number(M),
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
e.mdBankLevelDetail.onlinepayment_min,
|
|
218
|
+
e.mdBankLevelDetail.onlinepayment_max
|
|
219
219
|
);
|
|
220
220
|
return {
|
|
221
|
-
id:
|
|
222
|
-
name:
|
|
221
|
+
id: d.pgindex,
|
|
222
|
+
name: d.bankaccountname,
|
|
223
223
|
amountList: P,
|
|
224
224
|
min: u,
|
|
225
|
-
max:
|
|
225
|
+
max: A
|
|
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: [h, ...
|
|
234
|
+
gateway: [h, ...b]
|
|
235
235
|
};
|
|
236
236
|
}),
|
|
237
237
|
requiredField: {
|
|
@@ -242,50 +242,50 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
242
242
|
depositor: !1,
|
|
243
243
|
uploadReceipt: !1
|
|
244
244
|
}
|
|
245
|
-
} :
|
|
246
|
-
if (!s) return
|
|
247
|
-
const
|
|
245
|
+
} : S, D = (t, e, s) => {
|
|
246
|
+
if (!s) return S;
|
|
247
|
+
const i = f.auto;
|
|
248
248
|
let n = [];
|
|
249
|
-
const
|
|
250
|
-
if (
|
|
251
|
-
n =
|
|
252
|
-
const { amountList:
|
|
253
|
-
|
|
254
|
-
|
|
249
|
+
const a = s.mdGatewayMinMax;
|
|
250
|
+
if (e.bank.length > 0 && s.mdPGSelection == "1")
|
|
251
|
+
n = e.bank.map((o) => {
|
|
252
|
+
const { amountList: c, minAmount: r, maxAmount: l } = _(
|
|
253
|
+
o.minTransaction ?? 0,
|
|
254
|
+
o.maxTransaction ?? 0,
|
|
255
255
|
s.mdBankLevelDetail.onlinepayment_min,
|
|
256
256
|
s.mdBankLevelDetail.onlinepayment_max
|
|
257
257
|
);
|
|
258
258
|
return {
|
|
259
|
-
id:
|
|
260
|
-
name:
|
|
261
|
-
amountList:
|
|
259
|
+
id: o.pgindex,
|
|
260
|
+
name: o.bankaccountname || "",
|
|
261
|
+
amountList: c,
|
|
262
262
|
min: r,
|
|
263
|
-
max:
|
|
263
|
+
max: l
|
|
264
264
|
};
|
|
265
265
|
});
|
|
266
266
|
else {
|
|
267
|
-
let
|
|
268
|
-
for (let
|
|
269
|
-
|
|
270
|
-
const { amountList: r, minAmount:
|
|
271
|
-
Number(
|
|
272
|
-
Number(
|
|
267
|
+
let o = "0.00", c = "0.00";
|
|
268
|
+
for (let y = 0; y < a.length; y++)
|
|
269
|
+
a[y].bankindex === t.toString() && (o = a[y].min, c = a[y].max);
|
|
270
|
+
const { amountList: r, minAmount: l, maxAmount: h } = _(
|
|
271
|
+
Number(o),
|
|
272
|
+
Number(c),
|
|
273
273
|
s.mdBankLevelDetail.onlinepayment_min,
|
|
274
274
|
s.mdBankLevelDetail.onlinepayment_max
|
|
275
|
-
),
|
|
275
|
+
), b = {
|
|
276
276
|
id: 0,
|
|
277
277
|
name: "autoChannel",
|
|
278
278
|
amountList: r,
|
|
279
|
-
min:
|
|
279
|
+
min: l,
|
|
280
280
|
max: h
|
|
281
281
|
};
|
|
282
|
-
n.push(
|
|
282
|
+
n.push(b);
|
|
283
283
|
}
|
|
284
284
|
return {
|
|
285
|
-
id:
|
|
285
|
+
id: t,
|
|
286
286
|
name: "autoMethod",
|
|
287
|
-
type:
|
|
288
|
-
promo:
|
|
287
|
+
type: i,
|
|
288
|
+
promo: L(e.promo),
|
|
289
289
|
bank: n,
|
|
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 s =
|
|
299
|
+
}, B = (t, e) => {
|
|
300
|
+
const s = f.fix;
|
|
301
301
|
return {
|
|
302
|
-
id:
|
|
302
|
+
id: t,
|
|
303
303
|
name: "fixAmountMethod",
|
|
304
304
|
type: s,
|
|
305
|
-
promo:
|
|
306
|
-
bank:
|
|
307
|
-
const
|
|
305
|
+
promo: L(e.promo),
|
|
306
|
+
bank: e.bank.map((n) => {
|
|
307
|
+
const a = n.amtlist.map(Number).sort((o, c) => o - c);
|
|
308
308
|
return {
|
|
309
309
|
id: n.pgindex,
|
|
310
310
|
name: n.name,
|
|
311
311
|
amountList: n.amtlist,
|
|
312
|
-
min:
|
|
313
|
-
max:
|
|
312
|
+
min: a.length > 0 ? a[0] : 0,
|
|
313
|
+
max: a.length > 0 ? a[a.length - 1] : 0
|
|
314
314
|
};
|
|
315
315
|
}),
|
|
316
316
|
requiredField: {
|
|
@@ -322,99 +322,127 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
322
322
|
uploadReceipt: !1
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
|
-
},
|
|
325
|
+
}, V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
326
326
|
__proto__: null,
|
|
327
|
-
getPaymentsProviderResponse:
|
|
328
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
329
|
-
alert:
|
|
330
|
-
update_time:
|
|
331
|
-
content:
|
|
332
|
-
})),
|
|
327
|
+
getPaymentsProviderResponse: R
|
|
328
|
+
}, Symbol.toStringTag, { value: "Module" })), j = (t) => t.map((e) => ({
|
|
329
|
+
alert: e.announcement_alert == "1",
|
|
330
|
+
update_time: e.announcement_lastupdated,
|
|
331
|
+
content: e.announcement_simplified
|
|
332
|
+
})), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
333
333
|
__proto__: null,
|
|
334
|
-
getAnnouncementResponse:
|
|
335
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
336
|
-
username:
|
|
337
|
-
birthday:
|
|
338
|
-
email:
|
|
339
|
-
fullName:
|
|
340
|
-
phoneNumber:
|
|
341
|
-
profilePicUrl:
|
|
342
|
-
}),
|
|
343
|
-
code:
|
|
344
|
-
id:
|
|
345
|
-
name:
|
|
346
|
-
nextPage:
|
|
347
|
-
list:
|
|
334
|
+
getAnnouncementResponse: j
|
|
335
|
+
}, Symbol.toStringTag, { value: "Module" })), U = (t) => ({
|
|
336
|
+
username: t.username,
|
|
337
|
+
birthday: t.mdUserDetail.dob,
|
|
338
|
+
email: t.mdUserDetail.email,
|
|
339
|
+
fullName: t.mdUserDetail.firstname,
|
|
340
|
+
phoneNumber: t.mdUserDetail.mobileno,
|
|
341
|
+
profilePicUrl: t.mdUserDetail.profile_pic
|
|
342
|
+
}), v = (t) => t.mdGameListResult.map((e) => ({
|
|
343
|
+
code: e.code,
|
|
344
|
+
id: e.id,
|
|
345
|
+
name: e.name,
|
|
346
|
+
nextPage: e.nextPage === 1,
|
|
347
|
+
list: e.mdPlatformProducts.map((s) => ({
|
|
348
348
|
id: Number(s.id),
|
|
349
349
|
name: s.shortName,
|
|
350
350
|
flag: s.flag,
|
|
351
351
|
imageUrl: s.img
|
|
352
352
|
}))
|
|
353
|
-
})),
|
|
353
|
+
})), K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
354
354
|
__proto__: null,
|
|
355
|
-
getGameListResponse:
|
|
356
|
-
}, Symbol.toStringTag, { value: "Module" })), C =
|
|
357
|
-
|
|
355
|
+
getGameListResponse: v
|
|
356
|
+
}, Symbol.toStringTag, { value: "Module" })), C = (t) => (console.log(t), {
|
|
357
|
+
name: ""
|
|
358
|
+
}), G = (t) => ({
|
|
359
|
+
category: t.category.sort((e, s) => e.sequence - s.sequence).map((e) => ({
|
|
360
|
+
id: e.catid,
|
|
361
|
+
name: e.name
|
|
362
|
+
})),
|
|
363
|
+
list: t.list.sort((e, s) => e.sequence - s.sequence).map((e) => {
|
|
364
|
+
let s = "";
|
|
365
|
+
return e.stime !== "" && e.etime !== "" && (s = `${e.stime} - ${e.etime}`), e.stime !== "" && e.etime === "" && (s = e.stime), e.stime === "" && e.etime !== "" && (s = e.etime), {
|
|
366
|
+
category_id: e.catid,
|
|
367
|
+
img_url: e.banner,
|
|
368
|
+
content: e.content,
|
|
369
|
+
time: s,
|
|
370
|
+
name: e.title
|
|
371
|
+
};
|
|
372
|
+
})
|
|
373
|
+
}), $ = async (t) => {
|
|
374
|
+
var e, s;
|
|
358
375
|
try {
|
|
359
|
-
const
|
|
360
|
-
requests:
|
|
361
|
-
|
|
376
|
+
const n = {
|
|
377
|
+
requests: t.map((o) => ({
|
|
378
|
+
name: o.name,
|
|
379
|
+
query: btoa(o.query)
|
|
380
|
+
}))
|
|
381
|
+
}, a = await x.post(
|
|
362
382
|
"/jwt",
|
|
363
|
-
|
|
364
|
-
),
|
|
383
|
+
N(JSON.stringify(n))
|
|
384
|
+
), m = {
|
|
365
385
|
status: 200,
|
|
366
386
|
message: "",
|
|
367
387
|
result: {}
|
|
368
388
|
};
|
|
369
|
-
for (const
|
|
370
|
-
const
|
|
371
|
-
if (!
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
389
|
+
for (const o of a.data.responses) {
|
|
390
|
+
const c = o.attributes !== null && o.attributes !== void 0 ? T(o.attributes) : null, r = o.name, l = c ? JSON.parse(c) : null;
|
|
391
|
+
if (!l)
|
|
392
|
+
m.result[r] = null;
|
|
393
|
+
else
|
|
394
|
+
switch (r) {
|
|
395
|
+
case g.announcement:
|
|
396
|
+
m.result[r] = j(l);
|
|
397
|
+
break;
|
|
398
|
+
case g.gameList:
|
|
399
|
+
m.result[r] = v(l);
|
|
400
|
+
break;
|
|
401
|
+
case g.cmsList:
|
|
402
|
+
m.result[r] = l;
|
|
403
|
+
break;
|
|
404
|
+
case g.paymentsProvider:
|
|
405
|
+
m.result[r] = R(
|
|
406
|
+
l
|
|
407
|
+
);
|
|
408
|
+
break;
|
|
409
|
+
case g.getUserProfile:
|
|
410
|
+
m.result[r] = U(l);
|
|
411
|
+
break;
|
|
412
|
+
case g.vipList:
|
|
413
|
+
m.result[r] = C(l);
|
|
414
|
+
break;
|
|
415
|
+
case g.promotion:
|
|
416
|
+
m.result[r] = G(l);
|
|
417
|
+
break;
|
|
386
418
|
}
|
|
387
|
-
case y.getUserProfile:
|
|
388
|
-
o.result[m] = q(r);
|
|
389
|
-
break;
|
|
390
|
-
}
|
|
391
419
|
}
|
|
392
|
-
return
|
|
393
|
-
} catch (
|
|
394
|
-
return
|
|
395
|
-
status: ((
|
|
396
|
-
message: JSON.stringify((s =
|
|
420
|
+
return m;
|
|
421
|
+
} catch (i) {
|
|
422
|
+
return O.isAxiosError(i) ? (console.error(i), {
|
|
423
|
+
status: ((e = i.response) == null ? void 0 : e.status) || 500,
|
|
424
|
+
message: JSON.stringify((s = i.response) == null ? void 0 : s.data),
|
|
397
425
|
result: {}
|
|
398
|
-
}) : (console.error(
|
|
399
|
-
status:
|
|
400
|
-
message:
|
|
426
|
+
}) : (console.error(i), {
|
|
427
|
+
status: i.status || 500,
|
|
428
|
+
message: i.message,
|
|
401
429
|
result: {}
|
|
402
430
|
});
|
|
403
431
|
}
|
|
404
|
-
},
|
|
432
|
+
}, Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
405
433
|
__proto__: null,
|
|
406
|
-
post:
|
|
407
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
434
|
+
post: $
|
|
435
|
+
}, Symbol.toStringTag, { value: "Module" })), z = async (t, e) => {
|
|
408
436
|
try {
|
|
409
437
|
const s = {
|
|
410
438
|
status: 200,
|
|
411
439
|
message: ""
|
|
412
440
|
};
|
|
413
|
-
return await
|
|
441
|
+
return await x.post(
|
|
414
442
|
"/auth/sesh",
|
|
415
443
|
JSON.stringify({
|
|
416
|
-
usr:
|
|
417
|
-
pwd:
|
|
444
|
+
usr: t,
|
|
445
|
+
pwd: e
|
|
418
446
|
})
|
|
419
447
|
), s;
|
|
420
448
|
} catch (s) {
|
|
@@ -423,29 +451,29 @@ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
423
451
|
message: s.message
|
|
424
452
|
};
|
|
425
453
|
}
|
|
426
|
-
},
|
|
454
|
+
}, W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
427
455
|
__proto__: null,
|
|
428
|
-
login:
|
|
429
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
456
|
+
login: z
|
|
457
|
+
}, Symbol.toStringTag, { value: "Module" })), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
430
458
|
__proto__: null
|
|
431
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
459
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
432
460
|
__proto__: null
|
|
433
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
461
|
+
}, Symbol.toStringTag, { value: "Module" })), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
434
462
|
__proto__: null
|
|
435
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
463
|
+
}, Symbol.toStringTag, { value: "Module" })), w = {
|
|
436
464
|
install() {
|
|
437
465
|
}
|
|
438
466
|
};
|
|
439
467
|
export {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
468
|
+
w as Repository,
|
|
469
|
+
Y as announcementType,
|
|
470
|
+
Q as api,
|
|
471
|
+
J as apiType,
|
|
472
|
+
Z as gameListType,
|
|
473
|
+
H as getAnnouncementResponse,
|
|
474
|
+
K as getGameListResponse,
|
|
475
|
+
V as getPaymentsProviderResponse,
|
|
476
|
+
W as loginApi,
|
|
477
|
+
X as loginType,
|
|
478
|
+
I as paymentsProviderType
|
|
451
479
|
};
|
package/dist/60p82u21t54k.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(u,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],_):(u=typeof globalThis<"u"?globalThis:u||self,_(u["60p82u21t54k"]={},u.axios))})(this,function(u,_){"use strict";const S=_.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});S.interceptors.request.use(t=>t,t=>(console.error("Error request:",t.response),Promise.reject(t))),S.interceptors.response.use(t=>t,t=>{const e={status:null,message:"An error occurred"};return t.response?(e.status=t.response.status,e.message=t.response.data.message||t.response.statusText,console.error("Error response:",JSON.stringify(e)),t.response.status===401?console.error("Unauthorized access - redirecting to login."):t.response.status===404?console.error("Resource not found."):t.response.status>=500&&console.error("Server error. Please try again later.")):t.request?console.error("No response received:",t.request):console.error("Error setting up request:",t.message),Promise.reject(e)});const A=t=>new TextEncoder().encode(t),N=t=>{try{return atob(t)}catch(e){return console.error("Failed to decode Base64:",e),""}};var g=(t=>(t.announcement="announcement",t.gameList="gameList",t.fishGameList="fishGameList",t.cmsList="cmsList",t.paymentsProvider="paymentsProvider",t.getUserProfile="getUserProfile",t.vipList="vipList",t.promotion="promotion",t))(g||{});const q=Object.freeze(Object.defineProperty({__proto__:null,Api:g},Symbol.toStringTag,{value:"Module"}));var f=(t=>(t.default="default",t.pay="pay",t.auto="auto",t.fix="fix",t.manual="manual",t.unknown="unknown",t))(f||{});const D=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:f},Symbol.toStringTag,{value:"Module"})),k=t=>t.mdPaymentChannels.map(e=>{const s=[];switch(e.name){case f.default:s.push(O(e.paymentmethod.manual,t));break;case f.pay:s.push(B(e.paymentmethod.onlinebanking,t));break;default:if(e.paymentmethod.auto.bank.length>0&&s.push(U(e.bankid??0,e.paymentmethod.auto,t)),e.paymentmethod.manual.bank.length>0){let i=!1;for(let n=0;n<e.paymentmethod.manual.bank.length;n++){const a=e.paymentmethod.manual.bank[n];if(a.list&&a.list.length>0){i=!0;break}}i&&s.push(O(e.paymentmethod.manual,t))}e.paymentmethod.fixamount.bank.length>0&&s.push(C(e.bankid??0,e.paymentmethod.fixamount))}return{name:e.label,imageUrl:`/image/game/native/deposit/sidemenu/${e.name}.png?${t.systemtime}`,paymentList:s}}),P={id:0,name:"",type:f.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},L=t=>{const e={id:0,name:"excludePromo",value:"0",disabled:!0},s=t.map((i,n)=>({id:n+1,name:i.promodesc,value:i.promoindex.toString(),disabled:!1}));return[e,...s]},b=(t,e,s,i)=>{let n,a;s>0?n=t>0?Math.max(s,t):s:n=Math.max(t,0),i>0?a=e>0?Math.min(i,e):i:a=Math.max(e,0);const m=Math.round(n);let o=1e3;a<o&&(o=Math.round(a));const d=o-m;let l="",r="";if(d>0){let p=Math.round((o-m)*.25).toString().split(""),y=[];for(const c of p)c!==""&&y.push(c);for(let c=0;c<y.length;c++)c===0?l+=(parseInt(y[c])+1).toString():l+="0";p=Math.round((o-m)*.5).toString().split(""),y=[];for(const c of p)c!==""&&y.push(c);for(let c=0;c<y.length;c++)c===0?r+=(parseInt(y[c])+1).toString():r+="0"}else l=o.toString(),r=o.toString();return{amountList:[m.toString(),l,r,o.toString()],minAmount:m,maxAmount:a}},O=(t,e)=>e?{id:0,name:"manualMethod",type:f.manual,promo:L(t.promo),bank:t.bank.map(n=>{const a=n.list&&n.list.length>0?n.list[0].mintransaction??"0.00":"0.00",m=n.list&&n.list.length>0?n.list[0].maxtransaction??"0.00":"0.00",{amountList:o,minAmount:d,maxAmount:l}=b(Number(a),Number(m),e.mdBankLevelDetail.deposit_min,e.mdBankLevelDetail.deposit_max);return e.mdManualDepositRequireField.depositor=!0,{id:n.bankindex??0,bankAccountId:n.list&&n.list.length>0?n.list[0].bankaccountindex??0:0,name:n.list&&n.list.length>0?n.list[0].label??"":"",accountName:n.list&&n.list.length>0?n.list[0].bankaccountname??"":"",accountNo:n.list&&n.list.length>0?n.list[0].bankaccountno??"":"",qrcode:n.list&&n.list.length>0?n.list[0].bankaccountdesc:"",amountList:o,min:d,max:l}}),requiredField:{...e.mdManualDepositRequireField,uploadReceipt:e.mdUploadReceipt}}:P,B=(t,e)=>e?{id:0,name:"onlineBankingMethod",type:f.pay,promo:L(t.promo),bank:t.banklist.map(n=>{let a="0.00",m="0.00";const o=n.bankindex??0;for(let p=0;p<e.mdGatewayMinMax.length;p++)e.mdGatewayMinMax[p].bankindex==o.toString()&&(a=e.mdGatewayMinMax[p].min,m=e.mdGatewayMinMax[p].max);const{amountList:d,minAmount:l,maxAmount:r}=b(Number(a),Number(m),e.mdBankLevelDetail.onlinepayment_min,e.mdBankLevelDetail.onlinepayment_max),x={id:0,name:"autoChannel",amountList:d,min:l,max:r},M=n.pg.map(p=>{const y=p.mintransaction??"0.00",v=p.maxtransaction??"0.00",{amountList:T,minAmount:c,maxAmount:X}=b(Number(y),Number(v),e.mdBankLevelDetail.onlinepayment_min,e.mdBankLevelDetail.onlinepayment_max);return{id:p.pgindex,name:p.bankaccountname,amountList:T,min:c,max:X}});return{id:n.bankindex??0,name:n.banknameenglish??"",amountList:[],min:0,max:0,gateway:[x,...M]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:P,U=(t,e,s)=>{if(!s)return P;const i=f.auto;let n=[];const a=s.mdGatewayMinMax;if(e.bank.length>0&&s.mdPGSelection=="1")n=e.bank.map(o=>{const{amountList:d,minAmount:l,maxAmount:r}=b(o.minTransaction??0,o.maxTransaction??0,s.mdBankLevelDetail.onlinepayment_min,s.mdBankLevelDetail.onlinepayment_max);return{id:o.pgindex,name:o.bankaccountname||"",amountList:d,min:l,max:r}});else{let o="0.00",d="0.00";for(let h=0;h<a.length;h++)a[h].bankindex===t.toString()&&(o=a[h].min,d=a[h].max);const{amountList:l,minAmount:r,maxAmount:x}=b(Number(o),Number(d),s.mdBankLevelDetail.onlinepayment_min,s.mdBankLevelDetail.onlinepayment_max),M={id:0,name:"autoChannel",amountList:l,min:r,max:x};n.push(M)}return{id:t,name:"autoMethod",type:i,promo:L(e.promo),bank:n,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},C=(t,e)=>{const s=f.fix;return{id:t,name:"fixAmountMethod",type:s,promo:L(e.promo),bank:e.bank.map(n=>{const a=n.amtlist.map(Number).sort((o,d)=>o-d);return{id:n.pgindex,name:n.name,amountList:n.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}}},G=Object.freeze(Object.defineProperty({__proto__:null,getPaymentsProviderResponse:k},Symbol.toStringTag,{value:"Module"})),j=t=>t.map(e=>({alert:e.announcement_alert=="1",update_time:e.announcement_lastupdated,content:e.announcement_simplified})),$=Object.freeze(Object.defineProperty({__proto__:null,getAnnouncementResponse:j},Symbol.toStringTag,{value:"Module"})),z=t=>({username:t.username,birthday:t.mdUserDetail.dob,email:t.mdUserDetail.email,fullName:t.mdUserDetail.firstname,phoneNumber:t.mdUserDetail.mobileno,profilePicUrl:t.mdUserDetail.profile_pic}),R=t=>t.mdGameListResult.map(e=>({code:e.code,id:e.id,name:e.name,nextPage:e.nextPage===1,list:e.mdPlatformProducts.map(s=>({id:Number(s.id),name:s.shortName,flag:s.flag,imageUrl:s.img}))})),E=Object.freeze(Object.defineProperty({__proto__:null,getGameListResponse:R},Symbol.toStringTag,{value:"Module"})),F=t=>(console.log(t),{name:""}),J=t=>({category:t.category.sort((e,s)=>e.sequence-s.sequence).map(e=>({id:e.catid,name:e.name})),list:t.list.sort((e,s)=>e.sequence-s.sequence).map(e=>{let s="";return e.stime!==""&&e.etime!==""&&(s=`${e.stime} - ${e.etime}`),e.stime!==""&&e.etime===""&&(s=e.stime),e.stime===""&&e.etime!==""&&(s=e.etime),{category_id:e.catid,img_url:e.banner,content:e.content,time:s,name:e.title}})}),I=Object.freeze(Object.defineProperty({__proto__:null,post:async t=>{var e,s;try{const n={requests:t.map(o=>({name:o.name,query:btoa(o.query)}))},a=await S.post("/jwt",A(JSON.stringify(n))),m={status:200,message:"",result:{}};for(const o of a.data.responses){const d=o.attributes!==null&&o.attributes!==void 0?N(o.attributes):null,l=o.name,r=d?JSON.parse(d):null;if(!r)m.result[l]=null;else switch(l){case g.announcement:m.result[l]=j(r);break;case g.gameList:m.result[l]=R(r);break;case g.cmsList:m.result[l]=r;break;case g.paymentsProvider:m.result[l]=k(r);break;case g.getUserProfile:m.result[l]=z(r);break;case g.vipList:m.result[l]=F(r);break;case g.promotion:m.result[l]=J(r);break}}return m}catch(i){return _.isAxiosError(i)?(console.error(i),{status:((e=i.response)==null?void 0:e.status)||500,message:JSON.stringify((s=i.response)==null?void 0:s.data),result:{}}):(console.error(i),{status:i.status||500,message:i.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null,login:async(t,e)=>{try{const s={status:200,message:""};return await S.post("/auth/sesh",JSON.stringify({usr:t,pwd:e})),s}catch(s){return console.error(`login: ${JSON.stringify(s)}`),{status:s.status||500,message:s.message}}}},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"})),W={install(){}};u.Repository=W,u.announcementType=K,u.api=I,u.apiType=q,u.gameListType=Q,u.getAnnouncementResponse=$,u.getGameListResponse=E,u.getPaymentsProviderResponse=G,u.loginApi=V,u.loginType=H,u.paymentsProviderType=D,Object.defineProperty(u,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;AASnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAgFnB,CAAA"}
|
package/dist/api/type.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ 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 { PromotionResponse } from '../model/promotion/type';
|
|
6
7
|
import { GetUserProfileResponse } from '../model/userProfile/type';
|
|
8
|
+
import { VipListResponse } from '../model/vipList/type';
|
|
7
9
|
|
|
8
10
|
export declare enum Api {
|
|
9
11
|
announcement = "announcement",
|
|
@@ -11,7 +13,9 @@ export declare enum Api {
|
|
|
11
13
|
fishGameList = "fishGameList",
|
|
12
14
|
cmsList = "cmsList",
|
|
13
15
|
paymentsProvider = "paymentsProvider",
|
|
14
|
-
getUserProfile = "getUserProfile"
|
|
16
|
+
getUserProfile = "getUserProfile",
|
|
17
|
+
vipList = "vipList",
|
|
18
|
+
promotion = "promotion"
|
|
15
19
|
}
|
|
16
20
|
export type ApiResponseMap = {
|
|
17
21
|
[Api.announcement]: AnnouncementResponse;
|
|
@@ -20,6 +24,8 @@ export type ApiResponseMap = {
|
|
|
20
24
|
[Api.cmsList]: CmsListResponse;
|
|
21
25
|
[Api.paymentsProvider]: PaymentsProviderResponse;
|
|
22
26
|
[Api.getUserProfile]: GetUserProfileResponse;
|
|
27
|
+
[Api.vipList]: VipListResponse;
|
|
28
|
+
[Api.promotion]: PromotionResponse;
|
|
23
29
|
};
|
|
24
30
|
export type ApiResponse<T extends keyof ApiResponseMap> = ApiResponseMap[T];
|
|
25
31
|
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,sBAAsB,EAAE,MAAM,0BAA0B,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,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,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;CACxB;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;CACnC,CAAA;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;AAE3E,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAC3D,IAAI,EAAE,CAAC,CAAA;IACP,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IACnD,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;KACrD,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;CACnC,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPromotionResponse.d.ts","sourceRoot":"","sources":["../../../src/model/promotion/getPromotionResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAE1C,eAAO,MAAM,oBAAoB,QAAS,oBAAoB,KAAG,iBAgChE,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type ApplyPromo = {
|
|
2
|
+
status: number;
|
|
3
|
+
msg: string;
|
|
4
|
+
amount: string;
|
|
5
|
+
};
|
|
6
|
+
export type PromotionCategory = {
|
|
7
|
+
catid: number;
|
|
8
|
+
name: string;
|
|
9
|
+
sequence: number;
|
|
10
|
+
};
|
|
11
|
+
export type PromotionList = {
|
|
12
|
+
promoindex: number;
|
|
13
|
+
title: string;
|
|
14
|
+
display_time: string;
|
|
15
|
+
content: string;
|
|
16
|
+
sequence: number;
|
|
17
|
+
status: number;
|
|
18
|
+
timer: string;
|
|
19
|
+
stime: string;
|
|
20
|
+
etime: string;
|
|
21
|
+
banner: string;
|
|
22
|
+
catid: number;
|
|
23
|
+
promo_category: {
|
|
24
|
+
catid: number;
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
promo_image: {
|
|
28
|
+
filename: string;
|
|
29
|
+
lastupdated: string;
|
|
30
|
+
};
|
|
31
|
+
link: string;
|
|
32
|
+
};
|
|
33
|
+
export type RawPromotionResponse = {
|
|
34
|
+
category: PromotionCategory[];
|
|
35
|
+
list: PromotionList[];
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=rawType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rawType.d.ts","sourceRoot":"","sources":["../../../src/model/promotion/rawType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE;QACd,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,CAAA;QAChB,WAAW,EAAE,MAAM,CAAA;KACpB,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,iBAAiB,EAAE,CAAA;IAC7B,IAAI,EAAE,aAAa,EAAE,CAAA;CACtB,CAAA"}
|
|
@@ -1,35 +1,14 @@
|
|
|
1
|
-
export type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
amount: string;
|
|
5
|
-
};
|
|
6
|
-
export type PromotionCategory = {
|
|
7
|
-
catid: number;
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
10
|
-
export type PromotionList = {
|
|
11
|
-
promoindex: number;
|
|
12
|
-
title: string;
|
|
13
|
-
display_time: string;
|
|
14
|
-
content: string;
|
|
15
|
-
sequence: number;
|
|
16
|
-
status: number;
|
|
17
|
-
timer: string;
|
|
18
|
-
stime: string;
|
|
19
|
-
etime: string;
|
|
20
|
-
banner: string;
|
|
21
|
-
promo_category: {
|
|
22
|
-
catid: number;
|
|
1
|
+
export type PromotionResponse = {
|
|
2
|
+
category: {
|
|
3
|
+
id: number;
|
|
23
4
|
name: string;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
category: PromotionCategory[];
|
|
33
|
-
list: PromotionList[];
|
|
5
|
+
}[];
|
|
6
|
+
list: {
|
|
7
|
+
category_id: number;
|
|
8
|
+
img_url: string;
|
|
9
|
+
content: string;
|
|
10
|
+
time: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}[];
|
|
34
13
|
};
|
|
35
14
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/promotion/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/promotion/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACxC,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM,CAAA;QACnB,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;KACb,EAAE,CAAA;CACJ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getVipListResponse.d.ts","sourceRoot":"","sources":["../../../src/model/vipList/getVipListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,kBAAkB,QAAS,kBAAkB,KAAG,eAK5D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rawType.d.ts","sourceRoot":"","sources":["../../../src/model/vipList/rawType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
@@ -0,0 +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,MAAM,CAAA;CACb,CAAA"}
|