60p82u21t54k 0.0.32 → 0.0.34

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.
@@ -1,5 +1,5 @@
1
- import j from "axios";
2
- const b = j.create({
1
+ import k from "axios";
2
+ const h = k.create({
3
3
  baseURL: "/graph",
4
4
  timeout: 5e3,
5
5
  // Request timeout
@@ -45,11 +45,11 @@ const b = j.create({
45
45
  // },
46
46
  // },
47
47
  });
48
- b.interceptors.request.use(
48
+ h.interceptors.request.use(
49
49
  (t) => t,
50
50
  (t) => (console.error("Error request:", t.response), Promise.reject(t))
51
51
  );
52
- b.interceptors.response.use(
52
+ h.interceptors.response.use(
53
53
  (t) => t,
54
54
  (t) => {
55
55
  const e = {
@@ -59,14 +59,14 @@ b.interceptors.response.use(
59
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 N = (t) => new TextEncoder().encode(t), A = (t) => {
62
+ const N = (t) => new TextEncoder().encode(t), q = (t) => {
63
63
  try {
64
64
  return atob(t);
65
65
  } catch (e) {
66
66
  return console.error("Failed to decode Base64:", e), "";
67
67
  }
68
68
  };
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 || {});
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.vipStatus = "vipStatus", t.vipBonus = "vipBonus", t.vipFieldStatus = "vipFieldStatus", t.promotion = "promotion", t))(g || {});
70
70
  const I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
71
71
  __proto__: null,
72
72
  Api: g
@@ -75,37 +75,37 @@ var f = /* @__PURE__ */ ((t) => (t.default = "default", t.pay = "pay", t.auto =
75
75
  const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
76
76
  __proto__: null,
77
77
  PaymentType: f
78
- }, Symbol.toStringTag, { value: "Module" })), k = (t) => t.mdPaymentChannels.map((e) => {
79
- const s = [];
78
+ }, Symbol.toStringTag, { value: "Module" })), O = (t) => t.mdPaymentChannels.map((e) => {
79
+ const n = [];
80
80
  switch (e.name) {
81
81
  case f.default:
82
- s.push(O(e.paymentmethod.manual, t));
82
+ n.push(P(e.paymentmethod.manual, t));
83
83
  break;
84
84
  case f.pay:
85
- s.push(q(e.paymentmethod.onlinebanking, t));
85
+ n.push(A(e.paymentmethod.onlinebanking, t));
86
86
  break;
87
87
  default:
88
- if (e.paymentmethod.auto.bank.length > 0 && s.push(
89
- D(e.bankid ?? 0, e.paymentmethod.auto, t)
88
+ if (e.paymentmethod.auto.bank.length > 0 && n.push(
89
+ B(e.bankid ?? 0, e.paymentmethod.auto, t)
90
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;
91
+ let o = !1;
92
+ for (let s = 0; s < e.paymentmethod.manual.bank.length; s++) {
93
+ const i = e.paymentmethod.manual.bank[s];
94
+ if (i.list && i.list.length > 0) {
95
+ o = !0;
96
96
  break;
97
97
  }
98
98
  }
99
- i && s.push(O(e.paymentmethod.manual, t));
99
+ o && n.push(P(e.paymentmethod.manual, t));
100
100
  }
101
- e.paymentmethod.fixamount.bank.length > 0 && s.push(
102
- B(e.bankid ?? 0, e.paymentmethod.fixamount)
101
+ e.paymentmethod.fixamount.bank.length > 0 && n.push(
102
+ D(e.bankid ?? 0, e.paymentmethod.fixamount)
103
103
  );
104
104
  }
105
105
  return {
106
106
  name: e.label,
107
107
  imageUrl: `/image/game/native/deposit/sidemenu/${e.name}.png?${t.systemtime}`,
108
- paymentList: s
108
+ paymentList: n
109
109
  };
110
110
  }), L = {
111
111
  id: 0,
@@ -127,60 +127,60 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
127
127
  name: "excludePromo",
128
128
  value: "0",
129
129
  disabled: !0
130
- }, s = t.map((i, n) => ({
131
- id: n + 1,
132
- name: i.promodesc,
133
- value: i.promoindex.toString(),
130
+ }, n = t.map((o, s) => ({
131
+ id: s + 1,
132
+ name: o.promodesc,
133
+ value: o.promoindex.toString(),
134
134
  disabled: !1
135
135
  }));
136
- return [e, ...s];
137
- }, h = (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 r = Math.round(n);
141
- let o = 1e3;
142
- a < o && (o = Math.round(a));
143
- const c = o - r;
136
+ return [e, ...n];
137
+ }, b = (t, e, n, o) => {
138
+ let s, i;
139
+ n > 0 ? s = t > 0 ? Math.max(n, t) : n : s = Math.max(t, 0), o > 0 ? i = e > 0 ? Math.min(o, e) : o : i = Math.max(e, 0);
140
+ const r = Math.round(s);
141
+ let a = 1e3;
142
+ i < a && (a = Math.round(i));
143
+ const c = a - r;
144
144
  let l = "", m = "";
145
145
  if (c > 0) {
146
- let d = Math.round((o - r) * 0.25).toString().split(""), p = [];
146
+ let d = Math.round((a - r) * 0.25).toString().split(""), p = [];
147
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 ? l += (parseInt(p[u]) + 1).toString() : l += "0";
151
- d = Math.round((o - r) * 0.5).toString().split(""), p = [];
151
+ d = Math.round((a - r) * 0.5).toString().split(""), p = [];
152
152
  for (const u of d)
153
153
  u !== "" && p.push(u);
154
154
  for (let u = 0; u < p.length; u++)
155
155
  u === 0 ? m += (parseInt(p[u]) + 1).toString() : m += "0";
156
156
  } else
157
- l = o.toString(), m = o.toString();
157
+ l = a.toString(), m = a.toString();
158
158
  return { amountList: [
159
159
  r.toString(),
160
160
  l,
161
161
  m,
162
- o.toString()
163
- ], minAmount: r, maxAmount: a };
164
- }, O = (t, e) => e ? {
162
+ a.toString()
163
+ ], minAmount: r, maxAmount: i };
164
+ }, P = (t, e) => e ? {
165
165
  id: 0,
166
166
  name: "manualMethod",
167
167
  type: f.manual,
168
168
  promo: S(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", r = n.list && n.list.length > 0 ? n.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: o, minAmount: c, maxAmount: l } = h(
171
- Number(a),
169
+ bank: t.bank.map((s) => {
170
+ const i = s.list && s.list.length > 0 ? s.list[0].mintransaction ?? "0.00" : "0.00", r = s.list && s.list.length > 0 ? s.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: a, minAmount: c, maxAmount: l } = b(
171
+ Number(i),
172
172
  Number(r),
173
173
  e.mdBankLevelDetail.deposit_min,
174
174
  e.mdBankLevelDetail.deposit_max
175
175
  );
176
176
  return e.mdManualDepositRequireField.depositor = !0, {
177
- id: n.bankindex ?? 0,
178
- bankAccountId: n.list && n.list.length > 0 ? n.list[0].bankaccountindex ?? 0 : 0,
179
- name: n.list && n.list.length > 0 ? n.list[0].label ?? "" : "",
180
- accountName: n.list && n.list.length > 0 ? n.list[0].bankaccountname ?? "" : "",
181
- accountNo: n.list && n.list.length > 0 ? n.list[0].bankaccountno ?? "" : "",
182
- qrcode: n.list && n.list.length > 0 ? n.list[0].bankaccountdesc : "",
183
- amountList: o,
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: a,
184
184
  min: c,
185
185
  max: l
186
186
  };
@@ -189,18 +189,18 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
189
189
  ...e.mdManualDepositRequireField,
190
190
  uploadReceipt: e.mdUploadReceipt
191
191
  }
192
- } : L, q = (t, e) => e ? {
192
+ } : L, A = (t, e) => e ? {
193
193
  id: 0,
194
194
  name: "onlineBankingMethod",
195
195
  type: f.pay,
196
196
  promo: S(t.promo),
197
- bank: t.banklist.map((n) => {
198
- let a = "0.00", r = "0.00";
199
- const o = n.bankindex ?? 0;
197
+ bank: t.banklist.map((s) => {
198
+ let i = "0.00", r = "0.00";
199
+ const a = s.bankindex ?? 0;
200
200
  for (let d = 0; d < e.mdGatewayMinMax.length; d++)
201
- e.mdGatewayMinMax[d].bankindex == o.toString() && (a = e.mdGatewayMinMax[d].min, r = e.mdGatewayMinMax[d].max);
202
- const { amountList: c, minAmount: l, maxAmount: m } = h(
203
- Number(a),
201
+ e.mdGatewayMinMax[d].bankindex == a.toString() && (i = e.mdGatewayMinMax[d].min, r = e.mdGatewayMinMax[d].max);
202
+ const { amountList: c, minAmount: l, maxAmount: m } = b(
203
+ Number(i),
204
204
  Number(r),
205
205
  e.mdBankLevelDetail.onlinepayment_min,
206
206
  e.mdBankLevelDetail.onlinepayment_max
@@ -210,24 +210,24 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
210
210
  amountList: c,
211
211
  min: l,
212
212
  max: m
213
- }, x = n.pg.map((d) => {
214
- const p = d.mintransaction ?? "0.00", M = d.maxtransaction ?? "0.00", { amountList: P, minAmount: u, maxAmount: T } = h(
213
+ }, x = s.pg.map((d) => {
214
+ const p = d.mintransaction ?? "0.00", v = d.maxtransaction ?? "0.00", { amountList: M, minAmount: u, maxAmount: T } = b(
215
215
  Number(p),
216
- Number(M),
216
+ Number(v),
217
217
  e.mdBankLevelDetail.onlinepayment_min,
218
218
  e.mdBankLevelDetail.onlinepayment_max
219
219
  );
220
220
  return {
221
221
  id: d.pgindex,
222
222
  name: d.bankaccountname,
223
- amountList: P,
223
+ amountList: M,
224
224
  min: u,
225
225
  max: T
226
226
  };
227
227
  });
228
228
  return {
229
- id: n.bankindex ?? 0,
230
- name: n.banknameenglish ?? "",
229
+ id: s.bankindex ?? 0,
230
+ name: s.banknameenglish ?? "",
231
231
  amountList: [],
232
232
  min: 0,
233
233
  max: 0,
@@ -242,36 +242,36 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
242
242
  depositor: !1,
243
243
  uploadReceipt: !1
244
244
  }
245
- } : L, D = (t, e, s) => {
246
- if (!s) return L;
247
- const i = f.auto;
248
- let n = [];
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: l, maxAmount: m } = h(
253
- o.minTransaction ?? 0,
254
- o.maxTransaction ?? 0,
255
- s.mdBankLevelDetail.onlinepayment_min,
256
- s.mdBankLevelDetail.onlinepayment_max
245
+ } : L, B = (t, e, n) => {
246
+ if (!n) return L;
247
+ const o = f.auto;
248
+ let s = [];
249
+ const i = n.mdGatewayMinMax;
250
+ if (e.bank.length > 0 && n.mdPGSelection == "1")
251
+ s = e.bank.map((a) => {
252
+ const { amountList: c, minAmount: l, maxAmount: m } = b(
253
+ a.minTransaction ?? 0,
254
+ a.maxTransaction ?? 0,
255
+ n.mdBankLevelDetail.onlinepayment_min,
256
+ n.mdBankLevelDetail.onlinepayment_max
257
257
  );
258
258
  return {
259
- id: o.pgindex,
260
- name: o.bankaccountname || "",
259
+ id: a.pgindex,
260
+ name: a.bankaccountname || "",
261
261
  amountList: c,
262
262
  min: l,
263
263
  max: m
264
264
  };
265
265
  });
266
266
  else {
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: l, minAmount: m, maxAmount: _ } = h(
271
- Number(o),
267
+ let a = "0.00", c = "0.00";
268
+ for (let y = 0; y < i.length; y++)
269
+ i[y].bankindex === t.toString() && (a = i[y].min, c = i[y].max);
270
+ const { amountList: l, minAmount: m, maxAmount: _ } = b(
271
+ Number(a),
272
272
  Number(c),
273
- s.mdBankLevelDetail.onlinepayment_min,
274
- s.mdBankLevelDetail.onlinepayment_max
273
+ n.mdBankLevelDetail.onlinepayment_min,
274
+ n.mdBankLevelDetail.onlinepayment_max
275
275
  ), x = {
276
276
  id: 0,
277
277
  name: "autoChannel",
@@ -279,14 +279,14 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
279
279
  min: m,
280
280
  max: _
281
281
  };
282
- n.push(x);
282
+ s.push(x);
283
283
  }
284
284
  return {
285
285
  id: t,
286
286
  name: "autoMethod",
287
- type: i,
287
+ type: o,
288
288
  promo: S(e.promo),
289
- bank: n,
289
+ bank: s,
290
290
  requiredField: {
291
291
  deposit_bank: !1,
292
292
  deposit_datetime: !1,
@@ -296,21 +296,21 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
296
296
  uploadReceipt: !1
297
297
  }
298
298
  };
299
- }, B = (t, e) => {
300
- const s = f.fix;
299
+ }, D = (t, e) => {
300
+ const n = f.fix;
301
301
  return {
302
302
  id: t,
303
303
  name: "fixAmountMethod",
304
- type: s,
304
+ type: n,
305
305
  promo: S(e.promo),
306
- bank: e.bank.map((n) => {
307
- const a = n.amtlist.map(Number).sort((o, c) => o - c);
306
+ bank: e.bank.map((s) => {
307
+ const i = s.amtlist.map(Number).sort((a, c) => a - c);
308
308
  return {
309
- id: n.pgindex,
310
- name: n.name,
311
- amountList: n.amtlist,
312
- min: a.length > 0 ? a[0] : 0,
313
- max: a.length > 0 ? a[a.length - 1] : 0
309
+ id: s.pgindex,
310
+ name: s.name,
311
+ amountList: s.amtlist,
312
+ min: i.length > 0 ? i[0] : 0,
313
+ max: i.length > 0 ? i[i.length - 1] : 0
314
314
  };
315
315
  }),
316
316
  requiredField: {
@@ -322,17 +322,17 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
322
322
  uploadReceipt: !1
323
323
  }
324
324
  };
325
- }, H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
325
+ }, W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
326
326
  __proto__: null,
327
- getPaymentsProviderResponse: k
328
- }, Symbol.toStringTag, { value: "Module" })), v = (t) => t.map((e) => ({
327
+ getPaymentsProviderResponse: O
328
+ }, Symbol.toStringTag, { value: "Module" })), j = (t) => t.map((e) => ({
329
329
  alert: e.announcement_alert == "1",
330
330
  update_time: e.announcement_lastupdated,
331
331
  content: e.announcement_simplified
332
- })), K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
332
+ })), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
333
333
  __proto__: null,
334
- getAnnouncementResponse: v
335
- }, Symbol.toStringTag, { value: "Module" })), U = (t) => ({
334
+ getAnnouncementResponse: j
335
+ }, Symbol.toStringTag, { value: "Module" })), $ = (t) => ({
336
336
  username: t.username,
337
337
  birthday: t.mdUserDetail.dob,
338
338
  email: t.mdUserDetail.email,
@@ -344,56 +344,93 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
344
344
  id: e.id,
345
345
  name: e.name,
346
346
  nextPage: e.nextPage === 1,
347
- list: e.mdPlatformProducts.map((s) => ({
348
- id: Number(s.id),
349
- name: s.shortName,
350
- flag: s.flag,
351
- imageUrl: s.img
347
+ list: e.mdPlatformProducts.map((n) => ({
348
+ id: Number(n.id),
349
+ name: n.shortName,
350
+ flag: n.flag,
351
+ imageUrl: n.img
352
352
  }))
353
- })), Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
353
+ })), K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
354
354
  __proto__: null,
355
355
  getGameListResponse: R
356
- }, Symbol.toStringTag, { value: "Module" })), $ = (t) => (console.log(t), {
357
- name: ""
358
- }), z = (t) => ({
359
- category: t.category.sort((e, s) => e.sequence - s.sequence).map((e) => ({
356
+ }, Symbol.toStringTag, { value: "Module" })), U = (t) => (console.table(t), t.mdGrade.map((e) => ({
357
+ name: e.grade_simplified,
358
+ color_code: `#${e.colorcode}`,
359
+ turnover: e.min_activebet,
360
+ deposit: e.min_deposit,
361
+ promo_list: e.promocash.filter((n) => n.isshow == 1 && n.status == "1").map((n) => {
362
+ let o = "";
363
+ switch (n.type) {
364
+ case "F":
365
+ o = "first_time";
366
+ break;
367
+ case "D":
368
+ o = "everyday";
369
+ break;
370
+ case "W":
371
+ o = "every_week";
372
+ break;
373
+ case "M":
374
+ o = "every_month";
375
+ break;
376
+ case "E":
377
+ o = "everytime";
378
+ break;
379
+ case "O":
380
+ o = "only_once";
381
+ break;
382
+ default:
383
+ o = "-";
384
+ break;
385
+ }
386
+ return {
387
+ name: n.promosimplified,
388
+ min_deposit: n.min_deposit,
389
+ promo_bonus: n.percentage,
390
+ promo_limit: n.max_promo_amt,
391
+ turnover_multiplier: n.multiply,
392
+ type: o
393
+ };
394
+ })
395
+ }))), z = (t) => ({
396
+ category: t.category.sort((e, n) => e.sequence - n.sequence).map((e) => ({
360
397
  id: e.catid,
361
398
  name: e.name
362
399
  })),
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), {
400
+ list: t.list.sort((e, n) => e.sequence - n.sequence).map((e) => {
401
+ let n = "";
402
+ return e.stime !== "" && e.etime !== "" && (n = `${e.stime} - ${e.etime}`), e.stime !== "" && e.etime === "" && (n = e.stime), e.stime === "" && e.etime !== "" && (n = e.etime), {
366
403
  category_id: e.catid,
367
404
  img_url: e.banner,
368
405
  content: e.content,
369
- time: s,
406
+ time: n,
370
407
  name: e.title
371
408
  };
372
409
  })
373
- }), C = async (t) => {
374
- var e, s;
410
+ }), G = async (t) => {
411
+ var e, n;
375
412
  try {
376
- const n = {
377
- requests: t.map((o) => ({
378
- name: o.name,
379
- query: btoa(o.query)
413
+ const s = {
414
+ requests: t.map((a) => ({
415
+ name: a.name,
416
+ query: btoa(a.query)
380
417
  }))
381
- }, a = await b.post(
418
+ }, i = await h.post(
382
419
  "/jwt",
383
- N(JSON.stringify(n))
420
+ N(JSON.stringify(s))
384
421
  ), r = {
385
422
  status: 200,
386
423
  message: "",
387
424
  result: {}
388
425
  };
389
- for (const o of a.data.responses) {
390
- const c = o.attributes !== null && o.attributes !== void 0 ? A(o.attributes) : null, l = o.name, m = c ? JSON.parse(c) : null;
391
- if (!m)
426
+ for (const a of i.data.responses) {
427
+ const c = a.attributes !== null && a.attributes !== void 0 ? q(a.attributes) : null, l = a.name, m = c ? JSON.parse(c) : null;
428
+ if (console.log(m), !m)
392
429
  r.result[l] = null;
393
430
  else
394
431
  switch (l) {
395
432
  case g.announcement:
396
- r.result[l] = v(m);
433
+ r.result[l] = j(m);
397
434
  break;
398
435
  case g.gameList:
399
436
  r.result[l] = R(m);
@@ -402,15 +439,15 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
402
439
  r.result[l] = m;
403
440
  break;
404
441
  case g.paymentsProvider:
405
- r.result[l] = k(
442
+ r.result[l] = O(
406
443
  m
407
444
  );
408
445
  break;
409
446
  case g.getUserProfile:
410
- r.result[l] = U(m);
447
+ r.result[l] = $(m);
411
448
  break;
412
449
  case g.vipList:
413
- r.result[l] = $(m);
450
+ r.result[l] = U(m);
414
451
  break;
415
452
  case g.promotion:
416
453
  r.result[l] = z(m);
@@ -418,49 +455,49 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
418
455
  }
419
456
  }
420
457
  return r;
421
- } catch (i) {
422
- return j.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),
458
+ } catch (o) {
459
+ return k.isAxiosError(o) ? (console.error(o), {
460
+ status: ((e = o.response) == null ? void 0 : e.status) || 500,
461
+ message: JSON.stringify((n = o.response) == null ? void 0 : n.data),
425
462
  result: {}
426
- }) : (console.error(i), {
427
- status: i.status || 500,
428
- message: i.message,
463
+ }) : (console.error(o), {
464
+ status: o.status || 500,
465
+ message: o.message,
429
466
  result: {}
430
467
  });
431
468
  }
432
- }, W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
469
+ }, Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
433
470
  __proto__: null,
434
- post: C
435
- }, Symbol.toStringTag, { value: "Module" })), G = async (t, e) => {
471
+ post: G
472
+ }, Symbol.toStringTag, { value: "Module" })), C = async (t, e) => {
436
473
  try {
437
- const s = {
474
+ const n = {
438
475
  status: 200,
439
476
  message: ""
440
477
  };
441
- return await b.post(
478
+ return await h.post(
442
479
  "/auth/sesh",
443
480
  JSON.stringify({
444
481
  usr: t,
445
482
  pwd: e
446
483
  })
447
- ), s;
448
- } catch (s) {
449
- return console.error(`login: ${JSON.stringify(s)}`), {
450
- status: s.status || 500,
451
- message: s.message
484
+ ), n;
485
+ } catch (n) {
486
+ return console.error(`login: ${JSON.stringify(n)}`), {
487
+ status: n.status || 500,
488
+ message: n.message
452
489
  };
453
490
  }
454
491
  }, X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
455
492
  __proto__: null,
456
- login: G
493
+ call: C
457
494
  }, Symbol.toStringTag, { value: "Module" })), E = async () => {
458
495
  try {
459
496
  const t = {
460
497
  status: 200,
461
498
  message: ""
462
- }, e = await b.post("/auth/sesh/logout");
463
- return console.log(JSON.stringify(e)), t;
499
+ };
500
+ return await h.post("/auth/sesh/logout"), t;
464
501
  } catch (t) {
465
502
  return console.error(`login: ${JSON.stringify(t)}`), {
466
503
  status: t.status || 500,
@@ -469,7 +506,7 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
469
506
  }
470
507
  }, Y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
471
508
  __proto__: null,
472
- logout: E
509
+ call: E
473
510
  }, Symbol.toStringTag, { value: "Module" })), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
474
511
  __proto__: null
475
512
  }, Symbol.toStringTag, { value: "Module" })), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -485,12 +522,12 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
485
522
  export {
486
523
  ne as Repository,
487
524
  ee as announcementType,
488
- W as api,
525
+ Q as api,
489
526
  I as apiType,
490
527
  te as gameListType,
491
- K as getAnnouncementResponse,
492
- Q as getGameListResponse,
493
- H as getPaymentsProviderResponse,
528
+ H as getAnnouncementResponse,
529
+ K as getGameListResponse,
530
+ W as getPaymentsProviderResponse,
494
531
  X as loginApi,
495
532
  Z as loginType,
496
533
  Y as logoutApi,
@@ -1 +1 @@
1
- (function(u,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],h):(u=typeof globalThis<"u"?globalThis:u||self,h(u["60p82u21t54k"]={},u.axios))})(this,function(u,h){"use strict";const b=h.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});b.interceptors.request.use(t=>t,t=>(console.error("Error request:",t.response),Promise.reject(t))),b.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"})),O=t=>t.mdPaymentChannels.map(e=>{const s=[];switch(e.name){case f.default:s.push(j(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(j(e.paymentmethod.manual,t))}e.paymentmethod.fixamount.bank.length>0&&s.push($(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]},x=(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 r=Math.round(n);let o=1e3;a<o&&(o=Math.round(a));const d=o-r;let l="",m="";if(d>0){let p=Math.round((o-r)*.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-r)*.5).toString().split(""),y=[];for(const c of p)c!==""&&y.push(c);for(let c=0;c<y.length;c++)c===0?m+=(parseInt(y[c])+1).toString():m+="0"}else l=o.toString(),m=o.toString();return{amountList:[r.toString(),l,m,o.toString()],minAmount:r,maxAmount:a}},j=(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",r=n.list&&n.list.length>0?n.list[0].maxtransaction??"0.00":"0.00",{amountList:o,minAmount:d,maxAmount:l}=x(Number(a),Number(r),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",r="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,r=e.mdGatewayMinMax[p].max);const{amountList:d,minAmount:l,maxAmount:m}=x(Number(a),Number(r),e.mdBankLevelDetail.onlinepayment_min,e.mdBankLevelDetail.onlinepayment_max),S={id:0,name:"autoChannel",amountList:d,min:l,max:m},M=n.pg.map(p=>{const y=p.mintransaction??"0.00",v=p.maxtransaction??"0.00",{amountList:R,minAmount:c,maxAmount:Z}=x(Number(y),Number(v),e.mdBankLevelDetail.onlinepayment_min,e.mdBankLevelDetail.onlinepayment_max);return{id:p.pgindex,name:p.bankaccountname,amountList:R,min:c,max:Z}});return{id:n.bankindex??0,name:n.banknameenglish??"",amountList:[],min:0,max:0,gateway:[S,...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:m}=x(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:m}});else{let o="0.00",d="0.00";for(let _=0;_<a.length;_++)a[_].bankindex===t.toString()&&(o=a[_].min,d=a[_].max);const{amountList:l,minAmount:m,maxAmount:S}=x(Number(o),Number(d),s.mdBankLevelDetail.onlinepayment_min,s.mdBankLevelDetail.onlinepayment_max),M={id:0,name:"autoChannel",amountList:l,min:m,max:S};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}}},$=(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}}},z=Object.freeze(Object.defineProperty({__proto__:null,getPaymentsProviderResponse:O},Symbol.toStringTag,{value:"Module"})),k=t=>t.map(e=>({alert:e.announcement_alert=="1",update_time:e.announcement_lastupdated,content:e.announcement_simplified})),C=Object.freeze(Object.defineProperty({__proto__:null,getAnnouncementResponse:k},Symbol.toStringTag,{value:"Module"})),G=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}),T=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:T},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 b.post("/jwt",A(JSON.stringify(n))),r={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,m=d?JSON.parse(d):null;if(!m)r.result[l]=null;else switch(l){case g.announcement:r.result[l]=k(m);break;case g.gameList:r.result[l]=T(m);break;case g.cmsList:r.result[l]=m;break;case g.paymentsProvider:r.result[l]=O(m);break;case g.getUserProfile:r.result[l]=G(m);break;case g.vipList:r.result[l]=F(m);break;case g.promotion:r.result[l]=J(m);break}}return r}catch(i){return h.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 b.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,logout:async()=>{try{const t={status:200,message:""},e=await b.post("/auth/sesh/logout");return console.log(JSON.stringify(e)),t}catch(t){return console.error(`login: ${JSON.stringify(t)}`),{status:t.status||500,message:t.message}}}},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=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y={install(){}};u.Repository=Y,u.announcementType=W,u.api=I,u.apiType=q,u.gameListType=X,u.getAnnouncementResponse=C,u.getGameListResponse=E,u.getPaymentsProviderResponse=z,u.loginApi=V,u.loginType=K,u.logoutApi=H,u.logoutType=Q,u.paymentsProviderType=D,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
1
+ (function(u,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],b):(u=typeof globalThis<"u"?globalThis:u||self,b(u["60p82u21t54k"]={},u.axios))})(this,function(u,b){"use strict";const h=b.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});h.interceptors.request.use(t=>t,t=>(console.error("Error request:",t.response),Promise.reject(t))),h.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 N=t=>new TextEncoder().encode(t),A=t=>{try{return atob(t)}catch(e){return console.error("Failed to decode Base64:",e),""}};var f=(t=>(t.announcement="announcement",t.gameList="gameList",t.fishGameList="fishGameList",t.cmsList="cmsList",t.paymentsProvider="paymentsProvider",t.getUserProfile="getUserProfile",t.vipList="vipList",t.vipStatus="vipStatus",t.vipBonus="vipBonus",t.vipFieldStatus="vipFieldStatus",t.promotion="promotion",t))(f||{});const q=Object.freeze(Object.defineProperty({__proto__:null,Api:f},Symbol.toStringTag,{value:"Module"}));var g=(t=>(t.default="default",t.pay="pay",t.auto="auto",t.fix="fix",t.manual="manual",t.unknown="unknown",t))(g||{});const B=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:g},Symbol.toStringTag,{value:"Module"})),P=t=>t.mdPaymentChannels.map(e=>{const n=[];switch(e.name){case g.default:n.push(k(e.paymentmethod.manual,t));break;case g.pay:n.push(D(e.paymentmethod.onlinebanking,t));break;default:if(e.paymentmethod.auto.bank.length>0&&n.push($(e.bankid??0,e.paymentmethod.auto,t)),e.paymentmethod.manual.bank.length>0){let o=!1;for(let s=0;s<e.paymentmethod.manual.bank.length;s++){const i=e.paymentmethod.manual.bank[s];if(i.list&&i.list.length>0){o=!0;break}}o&&n.push(k(e.paymentmethod.manual,t))}e.paymentmethod.fixamount.bank.length>0&&n.push(U(e.bankid??0,e.paymentmethod.fixamount))}return{name:e.label,imageUrl:`/image/game/native/deposit/sidemenu/${e.name}.png?${t.systemtime}`,paymentList:n}}),M={id:0,name:"",type:g.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},v=t=>{const e={id:0,name:"excludePromo",value:"0",disabled:!0},n=t.map((o,s)=>({id:s+1,name:o.promodesc,value:o.promoindex.toString(),disabled:!1}));return[e,...n]},x=(t,e,n,o)=>{let s,i;n>0?s=t>0?Math.max(n,t):n:s=Math.max(t,0),o>0?i=e>0?Math.min(o,e):o:i=Math.max(e,0);const r=Math.round(s);let a=1e3;i<a&&(a=Math.round(i));const d=a-r;let l="",m="";if(d>0){let p=Math.round((a-r)*.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((a-r)*.5).toString().split(""),y=[];for(const c of p)c!==""&&y.push(c);for(let c=0;c<y.length;c++)c===0?m+=(parseInt(y[c])+1).toString():m+="0"}else l=a.toString(),m=a.toString();return{amountList:[r.toString(),l,m,a.toString()],minAmount:r,maxAmount:i}},k=(t,e)=>e?{id:0,name:"manualMethod",type:g.manual,promo:v(t.promo),bank:t.bank.map(s=>{const i=s.list&&s.list.length>0?s.list[0].mintransaction??"0.00":"0.00",r=s.list&&s.list.length>0?s.list[0].maxtransaction??"0.00":"0.00",{amountList:a,minAmount:d,maxAmount:l}=x(Number(i),Number(r),e.mdBankLevelDetail.deposit_min,e.mdBankLevelDetail.deposit_max);return e.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:a,min:d,max:l}}),requiredField:{...e.mdManualDepositRequireField,uploadReceipt:e.mdUploadReceipt}}:M,D=(t,e)=>e?{id:0,name:"onlineBankingMethod",type:g.pay,promo:v(t.promo),bank:t.banklist.map(s=>{let i="0.00",r="0.00";const a=s.bankindex??0;for(let p=0;p<e.mdGatewayMinMax.length;p++)e.mdGatewayMinMax[p].bankindex==a.toString()&&(i=e.mdGatewayMinMax[p].min,r=e.mdGatewayMinMax[p].max);const{amountList:d,minAmount:l,maxAmount:m}=x(Number(i),Number(r),e.mdBankLevelDetail.onlinepayment_min,e.mdBankLevelDetail.onlinepayment_max),S={id:0,name:"autoChannel",amountList:d,min:l,max:m},L=s.pg.map(p=>{const y=p.mintransaction??"0.00",T=p.maxtransaction??"0.00",{amountList:R,minAmount:c,maxAmount:Z}=x(Number(y),Number(T),e.mdBankLevelDetail.onlinepayment_min,e.mdBankLevelDetail.onlinepayment_max);return{id:p.pgindex,name:p.bankaccountname,amountList:R,min:c,max:Z}});return{id:s.bankindex??0,name:s.banknameenglish??"",amountList:[],min:0,max:0,gateway:[S,...L]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:M,$=(t,e,n)=>{if(!n)return M;const o=g.auto;let s=[];const i=n.mdGatewayMinMax;if(e.bank.length>0&&n.mdPGSelection=="1")s=e.bank.map(a=>{const{amountList:d,minAmount:l,maxAmount:m}=x(a.minTransaction??0,a.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:a.pgindex,name:a.bankaccountname||"",amountList:d,min:l,max:m}});else{let a="0.00",d="0.00";for(let _=0;_<i.length;_++)i[_].bankindex===t.toString()&&(a=i[_].min,d=i[_].max);const{amountList:l,minAmount:m,maxAmount:S}=x(Number(a),Number(d),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),L={id:0,name:"autoChannel",amountList:l,min:m,max:S};s.push(L)}return{id:t,name:"autoMethod",type:o,promo:v(e.promo),bank:s,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},U=(t,e)=>{const n=g.fix;return{id:t,name:"fixAmountMethod",type:n,promo:v(e.promo),bank:e.bank.map(s=>{const i=s.amtlist.map(Number).sort((a,d)=>a-d);return{id:s.pgindex,name:s.name,amountList:s.amtlist,min:i.length>0?i[0]:0,max:i.length>0?i[i.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},z=Object.freeze(Object.defineProperty({__proto__:null,getPaymentsProviderResponse:P},Symbol.toStringTag,{value:"Module"})),O=t=>t.map(e=>({alert:e.announcement_alert=="1",update_time:e.announcement_lastupdated,content:e.announcement_simplified})),G=Object.freeze(Object.defineProperty({__proto__:null,getAnnouncementResponse:O},Symbol.toStringTag,{value:"Module"})),C=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}),j=t=>t.mdGameListResult.map(e=>({code:e.code,id:e.id,name:e.name,nextPage:e.nextPage===1,list:e.mdPlatformProducts.map(n=>({id:Number(n.id),name:n.shortName,flag:n.flag,imageUrl:n.img}))})),E=Object.freeze(Object.defineProperty({__proto__:null,getGameListResponse:j},Symbol.toStringTag,{value:"Module"})),F=t=>(console.table(t),t.mdGrade.map(e=>({name:e.grade_simplified,color_code:`#${e.colorcode}`,turnover:e.min_activebet,deposit:e.min_deposit,promo_list:e.promocash.filter(n=>n.isshow==1&&n.status=="1").map(n=>{let o="";switch(n.type){case"F":o="first_time";break;case"D":o="everyday";break;case"W":o="every_week";break;case"M":o="every_month";break;case"E":o="everytime";break;case"O":o="only_once";break;default:o="-";break}return{name:n.promosimplified,min_deposit:n.min_deposit,promo_bonus:n.percentage,promo_limit:n.max_promo_amt,turnover_multiplier:n.multiply,type:o}})}))),J=t=>({category:t.category.sort((e,n)=>e.sequence-n.sequence).map(e=>({id:e.catid,name:e.name})),list:t.list.sort((e,n)=>e.sequence-n.sequence).map(e=>{let n="";return e.stime!==""&&e.etime!==""&&(n=`${e.stime} - ${e.etime}`),e.stime!==""&&e.etime===""&&(n=e.stime),e.stime===""&&e.etime!==""&&(n=e.etime),{category_id:e.catid,img_url:e.banner,content:e.content,time:n,name:e.title}})}),I=Object.freeze(Object.defineProperty({__proto__:null,post:async t=>{var e,n;try{const s={requests:t.map(a=>({name:a.name,query:btoa(a.query)}))},i=await h.post("/jwt",N(JSON.stringify(s))),r={status:200,message:"",result:{}};for(const a of i.data.responses){const d=a.attributes!==null&&a.attributes!==void 0?A(a.attributes):null,l=a.name,m=d?JSON.parse(d):null;if(console.log(m),!m)r.result[l]=null;else switch(l){case f.announcement:r.result[l]=O(m);break;case f.gameList:r.result[l]=j(m);break;case f.cmsList:r.result[l]=m;break;case f.paymentsProvider:r.result[l]=P(m);break;case f.getUserProfile:r.result[l]=C(m);break;case f.vipList:r.result[l]=F(m);break;case f.promotion:r.result[l]=J(m);break}}return r}catch(o){return b.isAxiosError(o)?(console.error(o),{status:((e=o.response)==null?void 0:e.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"})),V=Object.freeze(Object.defineProperty({__proto__:null,call:async(t,e)=>{try{const n={status:200,message:""};return await h.post("/auth/sesh",JSON.stringify({usr:t,pwd:e})),n}catch(n){return console.error(`login: ${JSON.stringify(n)}`),{status:n.status||500,message:n.message}}}},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const t={status:200,message:""};return await h.post("/auth/sesh/logout"),t}catch(t){return console.error(`login: ${JSON.stringify(t)}`),{status:t.status||500,message:t.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"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y={install(){}};u.Repository=Y,u.announcementType=Q,u.api=I,u.apiType=q,u.gameListType=X,u.getAnnouncementResponse=G,u.getGameListResponse=E,u.getPaymentsProviderResponse=z,u.loginApi=V,u.loginType=H,u.logoutApi=W,u.logoutType=K,u.paymentsProviderType=B,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
@@ -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;AASnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAgFnB,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,CAiFnB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { LoginResponse } from '../model/login/type';
2
2
 
3
- export declare const login: (username: string, password: string) => Promise<LoginResponse>;
3
+ export declare const call: (username: string, password: string) => Promise<LoginResponse>;
4
4
  //# sourceMappingURL=loginApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loginApi.d.ts","sourceRoot":"","sources":["../../src/api/loginApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAIlD,eAAO,MAAM,KAAK,aACN,MAAM,YACN,MAAM,KACf,OAAO,CAAC,aAAa,CAwBvB,CAAA"}
1
+ {"version":3,"file":"loginApi.d.ts","sourceRoot":"","sources":["../../src/api/loginApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAIlD,eAAO,MAAM,IAAI,aACL,MAAM,YACN,MAAM,KACf,OAAO,CAAC,aAAa,CAwBvB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { LogoutResponse } from '../model/logout/type';
2
2
 
3
- export declare const logout: () => Promise<LogoutResponse>;
3
+ export declare const call: () => Promise<LogoutResponse>;
4
4
  //# sourceMappingURL=logoutApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logoutApi.d.ts","sourceRoot":"","sources":["../../src/api/logoutApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,eAAO,MAAM,MAAM,QAAa,OAAO,CAAC,cAAc,CAmBrD,CAAA"}
1
+ {"version":3,"file":"logoutApi.d.ts","sourceRoot":"","sources":["../../src/api/logoutApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,eAAO,MAAM,IAAI,QAAa,OAAO,CAAC,cAAc,CAkBnD,CAAA"}
@@ -5,7 +5,9 @@ import { FishGameListResponse } from '../model/fishGameList/type';
5
5
  import { GameListResponse } from '../model/gameList/type';
6
6
  import { PromotionResponse } from '../model/promotion/type';
7
7
  import { GetUserProfileResponse } from '../model/userProfile/type';
8
+ import { VipBonusResponse } from '../model/vipBonus/type';
8
9
  import { VipListResponse } from '../model/vipList/type';
10
+ import { VipStatusResponse } from '../model/vipStatus/type';
9
11
 
10
12
  export declare enum Api {
11
13
  announcement = "announcement",
@@ -15,6 +17,9 @@ export declare enum Api {
15
17
  paymentsProvider = "paymentsProvider",
16
18
  getUserProfile = "getUserProfile",
17
19
  vipList = "vipList",
20
+ vipStatus = "vipStatus",
21
+ vipBonus = "vipBonus",
22
+ vipFieldStatus = "vipFieldStatus",
18
23
  promotion = "promotion"
19
24
  }
20
25
  export type ApiResponseMap = {
@@ -24,7 +29,10 @@ export type ApiResponseMap = {
24
29
  [Api.cmsList]: CmsListResponse;
25
30
  [Api.paymentsProvider]: PaymentsProviderResponse;
26
31
  [Api.getUserProfile]: GetUserProfileResponse;
27
- [Api.vipList]: VipListResponse;
32
+ [Api.vipList]: VipListResponse[];
33
+ [Api.vipStatus]: VipStatusResponse;
34
+ [Api.vipBonus]: VipBonusResponse;
35
+ [Api.vipFieldStatus]: VipListResponse;
28
36
  [Api.promotion]: PromotionResponse;
29
37
  };
30
38
  export type ApiResponse<T extends keyof ApiResponseMap> = ApiResponseMap[T];
@@ -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,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"}
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,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,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;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,EAAE,CAAA;IAChC,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;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,9 @@
1
+ export type RawVipBonusResponse = {
2
+ status: number;
3
+ message: string | null;
4
+ errormessage: string | null;
5
+ month: number;
6
+ week: number;
7
+ day: number;
8
+ };
9
+ //# sourceMappingURL=rawType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rawType.d.ts","sourceRoot":"","sources":["../../../src/model/vipBonus/rawType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
@@ -0,0 +1,8 @@
1
+ export type VipBonusResponse = {
2
+ status: number;
3
+ message: string;
4
+ month: number;
5
+ week: number;
6
+ day: number;
7
+ };
8
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/vipBonus/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { RawVipListResponse } from './rawType';
2
2
  import { VipListResponse } from './type';
3
3
 
4
- export declare const getVipListResponse: (raw: RawVipListResponse) => VipListResponse;
4
+ export declare const getVipListResponse: (raw: RawVipListResponse) => VipListResponse[];
5
5
  //# sourceMappingURL=getVipListResponse.d.ts.map
@@ -1 +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"}
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,eAAe,EA+C3E,CAAA"}
@@ -1,4 +1,79 @@
1
1
  export type RawVipListResponse = {
2
- name: string;
2
+ mdGrade: MdGrade[];
3
+ mdVipPromo: string[];
3
4
  };
5
+ type MdGrade = {
6
+ gradeindex: number;
7
+ subprefix: string | null;
8
+ grade_english: string;
9
+ grade_simplified: string;
10
+ grade_traditional: string;
11
+ status: string;
12
+ sequence: number;
13
+ companyindex: number;
14
+ colorcode: string;
15
+ incentive: string;
16
+ style: number;
17
+ category: string;
18
+ min_deposit: string;
19
+ min_activebet: string;
20
+ check_activebet: string;
21
+ auto_upgrade: string;
22
+ promocash: PromoCash[];
23
+ };
24
+ type PromoCash = {
25
+ promoindex: number;
26
+ subprefix: string | null;
27
+ promoenglish: string;
28
+ promosimplified: string;
29
+ promotraditional: string;
30
+ min_deposit: string;
31
+ percentage: string;
32
+ max_promo_amt: string;
33
+ multiply: number;
34
+ type: string;
35
+ tcenglish: string;
36
+ tcsimplified: string;
37
+ tctraditional: string;
38
+ featureindex: string;
39
+ banklevel: string | null;
40
+ image_path: string;
41
+ status: string;
42
+ sequence: number;
43
+ companyindex: number;
44
+ dtype: string;
45
+ groupindex: number;
46
+ upline_share: string;
47
+ daily_limit: string;
48
+ limit_count: number;
49
+ limit_interval: number;
50
+ sma: string | null;
51
+ autoconfirm: number;
52
+ stime: string;
53
+ etime: string;
54
+ isshow: number;
55
+ subdtype: number;
56
+ gradeindex: string;
57
+ withdraw_limit: string;
58
+ maximum_bonus: string;
59
+ time_limit: string;
60
+ turnover_multiple: string;
61
+ allowance_ratio: string;
62
+ upgrade_bonus: string;
63
+ upgrade_bonus_multiply: string;
64
+ bonus_type: string;
65
+ monthly_bonus: string;
66
+ monthly_bonus_multiply: string;
67
+ weekly_bonus: string;
68
+ weekly_bonus_multiply: string;
69
+ daily_bonus: string;
70
+ daily_bonus_multiply: string;
71
+ deposit_date: string;
72
+ autoconfirm_bonus: number | null;
73
+ autoflagindex: string;
74
+ cont_bonus_count: number | null;
75
+ cont_bonus_limit: number | null;
76
+ promo_content: string;
77
+ };
78
+ export {};
4
79
  //# sourceMappingURL=rawType.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"rawType.d.ts","sourceRoot":"","sources":["../../../src/model/vipList/rawType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAED,KAAK,OAAO,GAAG;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,SAAS,EAAE,CAAA;CACvB,CAAA;AAED,KAAK,SAAS,GAAG;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,MAAM,CAAA;IACzB,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,sBAAsB,EAAE,MAAM,CAAA;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,sBAAsB,EAAE,MAAM,CAAA;IAC9B,YAAY,EAAE,MAAM,CAAA;IACpB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA"}
@@ -1,4 +1,15 @@
1
1
  export type VipListResponse = {
2
2
  name: string;
3
+ color_code: string;
4
+ turnover: string;
5
+ deposit: string;
6
+ promo_list: {
7
+ name: string;
8
+ min_deposit: string;
9
+ promo_bonus: string;
10
+ promo_limit: string;
11
+ turnover_multiplier: number;
12
+ type: string;
13
+ }[];
3
14
  };
4
15
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/vipList/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
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;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,WAAW,EAAE,MAAM,CAAA;QACnB,WAAW,EAAE,MAAM,CAAA;QACnB,WAAW,EAAE,MAAM,CAAA;QACnB,mBAAmB,EAAE,MAAM,CAAA;QAC3B,IAAI,EAAE,MAAM,CAAA;KACb,EAAE,CAAA;CACJ,CAAA"}
@@ -0,0 +1,28 @@
1
+ export type Grade = {
2
+ gradeindex: number;
3
+ subprefix: string | null;
4
+ grade_english: string;
5
+ grade_simplified: string;
6
+ grade_traditional: string;
7
+ status: string;
8
+ sequence: number;
9
+ companyindex: number;
10
+ colorcode: string;
11
+ incentive: string;
12
+ style: number;
13
+ category: string;
14
+ min_deposit: string;
15
+ min_activebet: string;
16
+ check_activebet: string;
17
+ auto_upgrade: string;
18
+ };
19
+ export type RawVipStatusResponse = {
20
+ mdCurrentGrade: Grade;
21
+ mdNextGrade: Grade;
22
+ percentBet: string;
23
+ turnOver: string;
24
+ percentDeposit: string;
25
+ deposit: string;
26
+ percentage: string;
27
+ };
28
+ //# sourceMappingURL=rawType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rawType.d.ts","sourceRoot":"","sources":["../../../src/model/vipStatus/rawType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,cAAc,EAAE,KAAK,CAAA;IACrB,WAAW,EAAE,KAAK,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA"}
@@ -0,0 +1,12 @@
1
+ export type VipStatusResponse = {
2
+ currentGrade: {
3
+ deposit: number;
4
+ turnover: number;
5
+ };
6
+ nextGrade: {
7
+ deposit: number;
8
+ turnover: number;
9
+ };
10
+ percentage: number;
11
+ };
12
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/vipStatus/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE;QACZ,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,SAAS,EAAE;QACT,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "60p82u21t54k",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "A description of your library",
5
5
  "main": "dist/60p82u21t54k.umd.js",
6
6
  "module": "dist/60p82u21t54k.es.js",