60p82u21t54k 0.0.55 → 0.0.56

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 U from "axios";
2
- const D = U.create({
1
+ import A from "axios";
2
+ const M = A.create({
3
3
  baseURL: "/graph",
4
4
  timeout: 5e3,
5
5
  // Request timeout
@@ -45,11 +45,11 @@ const D = U.create({
45
45
  // },
46
46
  // },
47
47
  });
48
- D.interceptors.request.use(
48
+ M.interceptors.request.use(
49
49
  (e) => e,
50
50
  (e) => (console.error("Error request:", e.response), Promise.reject(e))
51
51
  );
52
- D.interceptors.response.use(
52
+ M.interceptors.response.use(
53
53
  (e) => e,
54
54
  (e) => {
55
55
  const t = {
@@ -66,51 +66,51 @@ const I = (e) => new TextEncoder().encode(e), z = (e) => {
66
66
  return console.error("Failed to decode Base64:", t), "";
67
67
  }
68
68
  };
69
- var o = /* @__PURE__ */ ((e) => (e.announcement = "announcement", e.gameList = "gameList", e.fishGameList = "fishGameList", e.cmsList = "cmsList", e.paymentsProvider = "paymentsProvider", e.getUserProfile = "getUserProfile", e.vipList = "vipList", e.vipStatus = "vipStatus", e.vipBonus = "vipBonus", e.vipFieldStatus = "vipFieldStatus", e.promotion = "promotion", e.getSetting = "getSetting", e.getCountryMobile = "getCountryMobile", e.getPlatformTurnoverRate = "getPlatformTurnoverRate", e.mainWallet = "mainWallet", e.getLanguageSetting = "getLanguageSetting", e.getFourDimensionData = "getfourDimensionData", e.getCompany = "getCompany", e.searchResultDate = "searchResultDate", e.searchHot = "searchHot", e))(o || {});
69
+ var i = /* @__PURE__ */ ((e) => (e.announcement = "announcement", e.gameList = "gameList", e.fishGameList = "fishGameList", e.cmsList = "cmsList", e.paymentsProvider = "paymentsProvider", e.getUserProfile = "getUserProfile", e.vipList = "vipList", e.vipStatus = "vipStatus", e.vipBonus = "vipBonus", e.vipFieldStatus = "vipFieldStatus", e.promotion = "promotion", e.getSetting = "getSetting", e.getCountryMobile = "getCountryMobile", e.getPlatformTurnoverRate = "getPlatformTurnoverRate", e.mainWallet = "mainWallet", e.getLanguageSetting = "getLanguageSetting", e.getFourDimensionData = "getfourDimensionData", e.getCompany = "getCompany", e.searchResultDate = "searchResultDate", e.searchHot = "searchHot", e.searchByDate = "searchByDate", e))(i || {});
70
70
  const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
71
71
  __proto__: null,
72
- Api: o
72
+ Api: i
73
73
  }, Symbol.toStringTag, { value: "Module" }));
74
- var x = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(x || {});
74
+ var L = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(L || {});
75
75
  const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
76
76
  __proto__: null,
77
- PaymentType: x
77
+ PaymentType: L
78
78
  }, Symbol.toStringTag, { value: "Module" })), V = (e) => e.mdPaymentChannels.map((t) => {
79
- const s = [];
79
+ const n = [];
80
80
  switch (t.name) {
81
- case x.default:
82
- s.push($(t.paymentmethod.manual, e));
81
+ case L.default:
82
+ n.push($(t.paymentmethod.manual, e));
83
83
  break;
84
- case x.pay:
85
- s.push(W(t.paymentmethod.onlinebanking, e));
84
+ case L.pay:
85
+ n.push(W(t.paymentmethod.onlinebanking, e));
86
86
  break;
87
87
  default:
88
- if (t.paymentmethod.auto.bank.length > 0 && s.push(
88
+ if (t.paymentmethod.auto.bank.length > 0 && n.push(
89
89
  H(t.bankid ?? 0, t.paymentmethod.auto, e)
90
90
  ), t.paymentmethod.manual.bank.length > 0) {
91
- let u = !1;
92
- for (let a = 0; a < t.paymentmethod.manual.bank.length; a++) {
93
- const m = t.paymentmethod.manual.bank[a];
94
- if (m.list && m.list.length > 0) {
95
- u = !0;
91
+ let r = !1;
92
+ for (let s = 0; s < t.paymentmethod.manual.bank.length; s++) {
93
+ const c = t.paymentmethod.manual.bank[s];
94
+ if (c.list && c.list.length > 0) {
95
+ r = !0;
96
96
  break;
97
97
  }
98
98
  }
99
- u && s.push($(t.paymentmethod.manual, e));
99
+ r && n.push($(t.paymentmethod.manual, e));
100
100
  }
101
- t.paymentmethod.fixamount.bank.length > 0 && s.push(
101
+ t.paymentmethod.fixamount.bank.length > 0 && n.push(
102
102
  Y(t.bankid ?? 0, t.paymentmethod.fixamount)
103
103
  );
104
104
  }
105
105
  return {
106
106
  name: t.label,
107
107
  imageUrl: `/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,
108
- paymentList: s
108
+ paymentList: n
109
109
  };
110
110
  }), q = {
111
111
  id: 0,
112
112
  name: "",
113
- type: x.unknown,
113
+ type: L.unknown,
114
114
  promo: [],
115
115
  bank: [],
116
116
  requiredField: {
@@ -121,68 +121,68 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
121
121
  depositor: !1,
122
122
  uploadReceipt: !1
123
123
  }
124
- }, B = (e) => {
124
+ }, N = (e) => {
125
125
  const t = {
126
126
  id: 0,
127
127
  name: "excludePromo",
128
128
  value: "0",
129
129
  disabled: !0
130
- }, s = e.map((u, a) => ({
131
- id: a + 1,
132
- name: u.promodesc,
133
- value: u.promoindex.toString(),
130
+ }, n = e.map((r, s) => ({
131
+ id: s + 1,
132
+ name: r.promodesc,
133
+ value: r.promoindex.toString(),
134
134
  disabled: !1
135
135
  }));
136
- return [t, ...s];
137
- }, M = (e, t, s, u) => {
138
- let a, m;
139
- s > 0 ? a = e > 0 ? Math.max(s, e) : s : a = Math.max(e, 0), u > 0 ? m = t > 0 ? Math.min(u, t) : u : m = Math.max(t, 0);
140
- const p = Math.round(a);
141
- let c = 1e3;
142
- m < c && (c = Math.round(m));
143
- const g = c - p;
144
- let f = "", b = "";
145
- if (g > 0) {
146
- let d = Math.round((c - p) * 0.25).toString().split(""), h = [];
147
- for (const n of d)
148
- n !== "" && h.push(n);
149
- for (let n = 0; n < h.length; n++)
150
- n === 0 ? f += (parseInt(h[n]) + 1).toString() : f += "0";
151
- d = Math.round((c - p) * 0.5).toString().split(""), h = [];
152
- for (const n of d)
153
- n !== "" && h.push(n);
154
- for (let n = 0; n < h.length; n++)
155
- n === 0 ? b += (parseInt(h[n]) + 1).toString() : b += "0";
136
+ return [t, ...n];
137
+ }, D = (e, t, n, r) => {
138
+ let s, c;
139
+ n > 0 ? s = e > 0 ? Math.max(n, e) : n : s = Math.max(e, 0), r > 0 ? c = t > 0 ? Math.min(r, t) : r : c = Math.max(t, 0);
140
+ const g = Math.round(s);
141
+ let d = 1e3;
142
+ c < d && (d = Math.round(c));
143
+ const f = d - g;
144
+ let b = "", _ = "";
145
+ if (f > 0) {
146
+ let p = Math.round((d - g) * 0.25).toString().split(""), S = [];
147
+ for (const o of p)
148
+ o !== "" && S.push(o);
149
+ for (let o = 0; o < S.length; o++)
150
+ o === 0 ? b += (parseInt(S[o]) + 1).toString() : b += "0";
151
+ p = Math.round((d - g) * 0.5).toString().split(""), S = [];
152
+ for (const o of p)
153
+ o !== "" && S.push(o);
154
+ for (let o = 0; o < S.length; o++)
155
+ o === 0 ? _ += (parseInt(S[o]) + 1).toString() : _ += "0";
156
156
  } else
157
- f = c.toString(), b = c.toString();
157
+ b = d.toString(), _ = d.toString();
158
158
  return { amountList: [
159
- p.toString(),
160
- f,
159
+ g.toString(),
161
160
  b,
162
- c.toString()
163
- ], minAmount: p, maxAmount: m };
161
+ _,
162
+ d.toString()
163
+ ], minAmount: g, maxAmount: c };
164
164
  }, $ = (e, t) => t ? {
165
165
  id: 0,
166
166
  name: "manualMethod",
167
- type: x.manual,
168
- promo: B(e.promo),
169
- bank: e.bank.map((a) => {
170
- const m = a.list && a.list.length > 0 ? a.list[0].mintransaction ?? "0.00" : "0.00", p = a.list && a.list.length > 0 ? a.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: c, minAmount: g, maxAmount: f } = M(
171
- Number(m),
172
- Number(p),
167
+ type: L.manual,
168
+ promo: N(e.promo),
169
+ bank: e.bank.map((s) => {
170
+ const c = s.list && s.list.length > 0 ? s.list[0].mintransaction ?? "0.00" : "0.00", g = s.list && s.list.length > 0 ? s.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: d, minAmount: f, maxAmount: b } = D(
171
+ Number(c),
172
+ Number(g),
173
173
  t.mdBankLevelDetail.deposit_min,
174
174
  t.mdBankLevelDetail.deposit_max
175
175
  );
176
176
  return t.mdManualDepositRequireField.depositor = !0, {
177
- id: a.bankindex ?? 0,
178
- bankAccountId: a.list && a.list.length > 0 ? a.list[0].bankaccountindex ?? 0 : 0,
179
- name: a.list && a.list.length > 0 ? a.list[0].label ?? "" : "",
180
- accountName: a.list && a.list.length > 0 ? a.list[0].bankaccountname ?? "" : "",
181
- accountNo: a.list && a.list.length > 0 ? a.list[0].bankaccountno ?? "" : "",
182
- qrcode: a.list && a.list.length > 0 ? a.list[0].bankaccountdesc : "",
183
- amountList: c,
184
- min: g,
185
- max: f
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: d,
184
+ min: f,
185
+ max: b
186
186
  };
187
187
  }),
188
188
  requiredField: {
@@ -192,46 +192,46 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
192
192
  } : q, W = (e, t) => t ? {
193
193
  id: 0,
194
194
  name: "onlineBankingMethod",
195
- type: x.pay,
196
- promo: B(e.promo),
197
- bank: e.banklist.map((a) => {
198
- let m = "0.00", p = "0.00";
199
- const c = a.bankindex ?? 0;
200
- for (let d = 0; d < t.mdGatewayMinMax.length; d++)
201
- t.mdGatewayMinMax[d].bankindex == c.toString() && (m = t.mdGatewayMinMax[d].min, p = t.mdGatewayMinMax[d].max);
202
- const { amountList: g, minAmount: f, maxAmount: b } = M(
203
- Number(m),
204
- Number(p),
195
+ type: L.pay,
196
+ promo: N(e.promo),
197
+ bank: e.banklist.map((s) => {
198
+ let c = "0.00", g = "0.00";
199
+ const d = s.bankindex ?? 0;
200
+ for (let p = 0; p < t.mdGatewayMinMax.length; p++)
201
+ t.mdGatewayMinMax[p].bankindex == d.toString() && (c = t.mdGatewayMinMax[p].min, g = t.mdGatewayMinMax[p].max);
202
+ const { amountList: f, minAmount: b, maxAmount: _ } = D(
203
+ Number(c),
204
+ Number(g),
205
205
  t.mdBankLevelDetail.onlinepayment_min,
206
206
  t.mdBankLevelDetail.onlinepayment_max
207
- ), L = {
207
+ ), v = {
208
208
  id: 0,
209
209
  name: "autoChannel",
210
- amountList: g,
211
- min: f,
212
- max: b
213
- }, _ = a.pg.map((d) => {
214
- const h = d.mintransaction ?? "0.00", P = d.maxtransaction ?? "0.00", { amountList: k, minAmount: n, maxAmount: i } = M(
215
- Number(h),
216
- Number(P),
210
+ amountList: f,
211
+ min: b,
212
+ max: _
213
+ }, h = s.pg.map((p) => {
214
+ const S = p.mintransaction ?? "0.00", k = p.maxtransaction ?? "0.00", { amountList: P, minAmount: o, maxAmount: l } = D(
215
+ Number(S),
216
+ Number(k),
217
217
  t.mdBankLevelDetail.onlinepayment_min,
218
218
  t.mdBankLevelDetail.onlinepayment_max
219
219
  );
220
220
  return {
221
- id: d.pgindex,
222
- name: d.bankaccountname,
223
- amountList: k,
224
- min: n,
225
- max: i
221
+ id: p.pgindex,
222
+ name: p.bankaccountname,
223
+ amountList: P,
224
+ min: o,
225
+ max: l
226
226
  };
227
227
  });
228
228
  return {
229
- id: a.bankindex ?? 0,
230
- name: a.banknameenglish ?? "",
229
+ id: s.bankindex ?? 0,
230
+ name: s.banknameenglish ?? "",
231
231
  amountList: [],
232
232
  min: 0,
233
233
  max: 0,
234
- gateway: [L, ..._]
234
+ gateway: [v, ...h]
235
235
  };
236
236
  }),
237
237
  requiredField: {
@@ -242,51 +242,51 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
242
242
  depositor: !1,
243
243
  uploadReceipt: !1
244
244
  }
245
- } : q, H = (e, t, s) => {
246
- if (!s) return q;
247
- const u = x.auto;
248
- let a = [];
249
- const m = s.mdGatewayMinMax;
250
- if (t.bank.length > 0 && s.mdPGSelection == "1")
251
- a = t.bank.map((c) => {
252
- const { amountList: g, minAmount: f, maxAmount: b } = M(
253
- c.minTransaction ?? 0,
254
- c.maxTransaction ?? 0,
255
- s.mdBankLevelDetail.onlinepayment_min,
256
- s.mdBankLevelDetail.onlinepayment_max
245
+ } : q, H = (e, t, n) => {
246
+ if (!n) return q;
247
+ const r = L.auto;
248
+ let s = [];
249
+ const c = n.mdGatewayMinMax;
250
+ if (t.bank.length > 0 && n.mdPGSelection == "1")
251
+ s = t.bank.map((d) => {
252
+ const { amountList: f, minAmount: b, maxAmount: _ } = D(
253
+ d.minTransaction ?? 0,
254
+ d.maxTransaction ?? 0,
255
+ n.mdBankLevelDetail.onlinepayment_min,
256
+ n.mdBankLevelDetail.onlinepayment_max
257
257
  );
258
258
  return {
259
- id: c.pgindex,
260
- name: c.bankaccountname || "",
261
- amountList: g,
262
- min: f,
263
- max: b
259
+ id: d.pgindex,
260
+ name: d.bankaccountname || "",
261
+ amountList: f,
262
+ min: b,
263
+ max: _
264
264
  };
265
265
  });
266
266
  else {
267
- let c = "0.00", g = "0.00";
268
- for (let v = 0; v < m.length; v++)
269
- m[v].bankindex === e.toString() && (c = m[v].min, g = m[v].max);
270
- const { amountList: f, minAmount: b, maxAmount: L } = M(
271
- Number(c),
272
- Number(g),
273
- s.mdBankLevelDetail.onlinepayment_min,
274
- s.mdBankLevelDetail.onlinepayment_max
275
- ), _ = {
267
+ let d = "0.00", f = "0.00";
268
+ for (let a = 0; a < c.length; a++)
269
+ c[a].bankindex === e.toString() && (d = c[a].min, f = c[a].max);
270
+ const { amountList: b, minAmount: _, maxAmount: v } = D(
271
+ Number(d),
272
+ Number(f),
273
+ n.mdBankLevelDetail.onlinepayment_min,
274
+ n.mdBankLevelDetail.onlinepayment_max
275
+ ), h = {
276
276
  id: 0,
277
277
  name: "autoChannel",
278
- amountList: f,
279
- min: b,
280
- max: L
278
+ amountList: b,
279
+ min: _,
280
+ max: v
281
281
  };
282
- a.push(_);
282
+ s.push(h);
283
283
  }
284
284
  return {
285
285
  id: e,
286
286
  name: "autoMethod",
287
- type: u,
288
- promo: B(t.promo),
289
- bank: a,
287
+ type: r,
288
+ promo: N(t.promo),
289
+ bank: s,
290
290
  requiredField: {
291
291
  deposit_bank: !1,
292
292
  deposit_datetime: !1,
@@ -297,20 +297,20 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
297
297
  }
298
298
  };
299
299
  }, Y = (e, t) => {
300
- const s = x.fix;
300
+ const n = L.fix;
301
301
  return {
302
302
  id: e,
303
303
  name: "fixAmountMethod",
304
- type: s,
305
- promo: B(t.promo),
306
- bank: t.bank.map((a) => {
307
- const m = a.amtlist.map(Number).sort((c, g) => c - g);
304
+ type: n,
305
+ promo: N(t.promo),
306
+ bank: t.bank.map((s) => {
307
+ const c = s.amtlist.map(Number).sort((d, f) => d - f);
308
308
  return {
309
- id: a.pgindex,
310
- name: a.name,
311
- amountList: a.amtlist,
312
- min: m.length > 0 ? m[0] : 0,
313
- max: m.length > 0 ? m[m.length - 1] : 0
309
+ id: s.pgindex,
310
+ name: s.name,
311
+ amountList: s.amtlist,
312
+ min: c.length > 0 ? c[0] : 0,
313
+ max: c.length > 0 ? c[c.length - 1] : 0
314
314
  };
315
315
  }),
316
316
  requiredField: {
@@ -338,11 +338,11 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
338
338
  id: t.id,
339
339
  name: t.name,
340
340
  nextPage: t.nextPage === 1,
341
- list: t.mdPlatformProducts.map((s) => ({
342
- id: Number(s.id),
343
- name: s.shortName,
344
- flag: s.flag,
345
- imageUrl: s.img,
341
+ list: t.mdPlatformProducts.map((n) => ({
342
+ id: Number(n.id),
343
+ name: n.shortName,
344
+ flag: n.flag,
345
+ imageUrl: n.img,
346
346
  rate: "0.00"
347
347
  }))
348
348
  })), Z = (e) => ({
@@ -361,13 +361,13 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
361
361
  current: "0",
362
362
  total: t.min_deposit
363
363
  },
364
- promo_list: t.promocash.filter((s) => s.isshow == 1 && s.status == "1").map((s) => ({
365
- name: s.promosimplified,
366
- min_deposit: s.min_deposit,
367
- promo_bonus: s.percentage,
368
- promo_limit: s.max_promo_amt,
369
- turnover_multiplier: s.multiply,
370
- type: s.promo_type
364
+ promo_list: t.promocash.filter((n) => n.isshow == 1 && n.status == "1").map((n) => ({
365
+ name: n.promosimplified,
366
+ min_deposit: n.min_deposit,
367
+ promo_bonus: n.percentage,
368
+ promo_limit: n.max_promo_amt,
369
+ turnover_multiplier: n.multiply,
370
+ type: n.promo_type
371
371
  })),
372
372
  benefit_list: t.benefit
373
373
  })),
@@ -378,17 +378,17 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
378
378
  showDayButton: !1
379
379
  }
380
380
  }), w = (e) => ({
381
- category: e.category.sort((t, s) => t.sequence - s.sequence).map((t) => ({
381
+ category: e.category.sort((t, n) => t.sequence - n.sequence).map((t) => ({
382
382
  id: t.catid,
383
383
  name: t.name
384
384
  })),
385
- list: e.list.sort((t, s) => t.sequence - s.sequence).map((t) => {
386
- let s = "";
387
- return t.stime !== "" && t.etime !== "" && (s = `${t.stime} - ${t.etime}`), t.stime !== "" && t.etime === "" && (s = t.stime), t.stime === "" && t.etime !== "" && (s = t.etime), {
385
+ list: e.list.sort((t, n) => t.sequence - n.sequence).map((t) => {
386
+ let n = "";
387
+ return t.stime !== "" && t.etime !== "" && (n = `${t.stime} - ${t.etime}`), t.stime !== "" && t.etime === "" && (n = t.stime), t.stime === "" && t.etime !== "" && (n = t.etime), {
388
388
  category_id: t.catid,
389
389
  img_url: t.banner,
390
390
  content: t.content,
391
- time: s,
391
+ time: n,
392
392
  name: t.title
393
393
  };
394
394
  })
@@ -406,34 +406,34 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
406
406
  current_grade_id: e.mdCurrentGrade.gradeindex,
407
407
  next_grade_id: e.mdNextGrade.gradeindex,
408
408
  percentage: Number(e.percentage) * 100
409
- }), se = (e) => {
409
+ }), oe = (e) => {
410
410
  let t = 4;
411
411
  e.vipcalculation && (t = Number(e.vipcalculation));
412
- let s = [];
413
- return e.extralivechat && (s = JSON.parse(e.extralivechat)), {
412
+ let n = [];
413
+ return e.extralivechat && (n = JSON.parse(e.extralivechat)), {
414
414
  vip_calculation: t,
415
- livechat: s.filter((u) => u.status === 1).map((u) => ({
416
- name: u.name,
417
- image_url: u.imgname,
418
- url: u.url
415
+ livechat: n.filter((r) => r.status === 1).map((r) => ({
416
+ name: r.name,
417
+ image_url: r.imgname,
418
+ url: r.url
419
419
  })),
420
420
  mobileValidate: e.mobilevalidate ? e.mobilevalidate == "1" : !1
421
421
  };
422
- }, ae = (e) => {
422
+ }, se = (e) => {
423
423
  let t = [];
424
424
  e.mobileBanner && (t = e.mobileBanner);
425
- let s = [];
426
- e.mobileAd && (s = e.mobileAd);
427
- let u = [];
428
- return e.mobileAbout && (u = e.mobileAbout), {
429
- banner: t.map((a) => `${a.imagepath}?${a.filemtime}`),
430
- ad: s.map((a) => `${a.imagepath}?${a.filemtime}`),
431
- about: u.map((a) => ({
432
- name: a.name,
433
- content: a.content
425
+ let n = [];
426
+ e.mobileAd && (n = e.mobileAd);
427
+ let r = [];
428
+ return e.mobileAbout && (r = e.mobileAbout), {
429
+ banner: t.map((s) => `${s.imagepath}?${s.filemtime}`),
430
+ ad: n.map((s) => `${s.imagepath}?${s.filemtime}`),
431
+ about: r.map((s) => ({
432
+ name: s.name,
433
+ content: s.content
434
434
  }))
435
435
  };
436
- }, oe = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
436
+ }, ae = (e) => e.data.filter((t) => t.status === "1").map((t) => ({
437
437
  code: t.area_code,
438
438
  regex: t.regex,
439
439
  value: t.value
@@ -454,43 +454,81 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
454
454
  date: []
455
455
  })), ce = (e) => e.data.map((t) => ({
456
456
  id: t.key,
457
- date: t.draw_date.map((s) => de(s.draw_tmactive))
457
+ date: t.draw_date.map((n) => de(n.draw_tmactive))
458
458
  }));
459
459
  function de(e) {
460
- const t = new Date(e * 1e3), s = t.getFullYear(), u = ("0" + (t.getMonth() + 1)).slice(-2), a = ("0" + t.getDate()).slice(-2);
461
- return `${s}-${u}-${a}`;
460
+ const t = new Date(e * 1e3), n = t.getFullYear(), r = ("0" + (t.getMonth() + 1)).slice(-2), s = ("0" + t.getDate()).slice(-2);
461
+ return `${n}-${r}-${s}`;
462
462
  }
463
463
  const pe = (e) => e.data.map((t) => ({
464
464
  id: t.company_id,
465
- list: t.drawCount.map((s) => ({
466
- combination: s.combination_combination,
467
- total: s.total
465
+ list: t.drawCount.map((n) => ({
466
+ combination: n.combination_combination,
467
+ total: n.total
468
468
  }))
469
- })), ge = async (e) => {
470
- var t, s, u, a, m, p, c, g, f, b, L;
469
+ })), ge = (e) => e.data.map((t) => ({
470
+ id: t.company_id,
471
+ resultByDateList: t.draws.map((n) => {
472
+ const r = n.results.filter((a) => a.combination_dimension == 3).map((a) => a.combination_combination), s = n.results.filter(
473
+ (a) => a.combination_dimension == 4 && a.combination_position == 1
474
+ ).map((a) => a.combination_combination), c = n.results.filter(
475
+ (a) => a.combination_dimension == 4 && a.combination_position == 2
476
+ ).map((a) => a.combination_combination), g = n.results.filter(
477
+ (a) => a.combination_dimension == 4 && a.combination_position == 3
478
+ ).map((a) => a.combination_combination), d = n.results.filter(
479
+ (a) => a.combination_dimension == 4 && a.combination_position == 4
480
+ ).map((a) => a.combination_combination), f = n.results.filter(
481
+ (a) => a.combination_dimension == 4 && a.combination_position == 5
482
+ ).map((a) => a.combination_combination), b = n.results.filter(
483
+ (a) => a.combination_dimension == 5 && a.combination_position == 1
484
+ ).map((a) => a.combination_combination), _ = n.results.filter((a) => a.combination_dimension == 5).map((a) => a.combination_combination), v = n.results.filter(
485
+ (a) => a.combination_dimension == 6 && a.combination_position == 1
486
+ ).map((a) => a.combination_combination), h = n.results.filter((a) => a.combination_dimension == 6).map((a) => a.combination_combination);
487
+ return {
488
+ date: n.date,
489
+ 3: r,
490
+ 4: {
491
+ 1: s,
492
+ 2: c,
493
+ 3: g,
494
+ 4: d,
495
+ 5: f
496
+ },
497
+ 5: {
498
+ 1: b,
499
+ all: _
500
+ },
501
+ 6: {
502
+ 1: v,
503
+ all: h
504
+ }
505
+ };
506
+ })
507
+ })), fe = async (e) => {
508
+ var t, n, r, s, c, g, d, f, b, _, v;
471
509
  try {
472
- e.findIndex((i) => i.name === o.vipList) !== -1 && e.push(
510
+ e.findIndex((l) => l.name === i.vipList) !== -1 && e.push(
473
511
  {
474
- name: o.vipBonus,
512
+ name: i.vipBonus,
475
513
  query: ""
476
514
  },
477
- { name: o.vipFieldStatus, query: "" },
478
- { name: o.vipStatus, query: "" },
479
- { name: o.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
480
- ), e.findIndex((i) => i.name === o.gameList) !== -1 && e.push({
481
- name: o.getPlatformTurnoverRate,
515
+ { name: i.vipFieldStatus, query: "" },
516
+ { name: i.vipStatus, query: "" },
517
+ { name: i.getSetting, query: JSON.stringify({ name: ["vipcalculation"] }) }
518
+ ), e.findIndex((l) => l.name === i.gameList) !== -1 && e.push({
519
+ name: i.getPlatformTurnoverRate,
482
520
  query: ""
483
521
  });
484
- const d = e.findIndex(
485
- (i) => i.name === o.getFourDimensionData
522
+ const p = e.findIndex(
523
+ (l) => l.name === i.getFourDimensionData
486
524
  );
487
- d !== -1 && e[d].query == "" && (e.splice(d), e.push(
525
+ p !== -1 && e[p].query == "" && (e.splice(p), e.push(
488
526
  {
489
- name: o.getFourDimensionData,
527
+ name: i.getFourDimensionData,
490
528
  query: JSON.stringify({ action: "getCompany", native: "1" })
491
529
  },
492
530
  {
493
- name: o.getFourDimensionData,
531
+ name: i.getFourDimensionData,
494
532
  query: JSON.stringify({
495
533
  action: "searchResultDate",
496
534
  limit: 100,
@@ -500,213 +538,214 @@ const pe = (e) => e.data.map((t) => ({
500
538
  })
501
539
  }
502
540
  ));
503
- const P = {
504
- requests: e.map((i) => ({
505
- name: i.name,
506
- query: btoa(i.query)
541
+ const k = {
542
+ requests: e.map((l) => ({
543
+ name: l.name,
544
+ query: btoa(l.query)
507
545
  }))
508
- }, k = await D.post(
546
+ }, P = await M.post(
509
547
  "/jwt",
510
- I(JSON.stringify(P))
511
- ), n = {
548
+ I(JSON.stringify(k))
549
+ ), o = {
512
550
  status: 200,
513
551
  message: "",
514
552
  result: {}
515
553
  };
516
- for (const i of k.data.responses) {
517
- i.error != null && i.error.code != 200 && (n.status = i.error.code, n.message = i.error.message);
518
- const y = i.attributes !== null && i.attributes !== void 0 ? z(i.attributes) : null, r = i.name, l = y ? JSON.parse(y) : null;
519
- if (!l)
520
- n.result[r] = null;
554
+ for (const l of P.data.responses) {
555
+ l.error != null && l.error.code != 200 && (o.status = l.error.code, o.message = l.error.message);
556
+ const y = l.attributes !== null && l.attributes !== void 0 ? z(l.attributes) : null, u = l.name, m = y ? JSON.parse(y) : null;
557
+ if (!m)
558
+ o.result[u] = null;
521
559
  else
522
- switch (r) {
523
- case o.announcement:
524
- n.result[r] = K(l);
560
+ switch (u) {
561
+ case i.announcement:
562
+ o.result[u] = K(m);
525
563
  break;
526
- case o.gameList:
527
- n.result[r] = X(l);
564
+ case i.gameList:
565
+ o.result[u] = X(m);
528
566
  break;
529
- case o.cmsList:
530
- n.result[r] = ae(l);
567
+ case i.cmsList:
568
+ o.result[u] = se(m);
531
569
  break;
532
- case o.paymentsProvider:
533
- n.result[r] = V(
534
- l
570
+ case i.paymentsProvider:
571
+ o.result[u] = V(
572
+ m
535
573
  );
536
574
  break;
537
- case o.getUserProfile:
538
- n.result[r] = Q(l);
575
+ case i.getUserProfile:
576
+ o.result[u] = Q(m);
539
577
  break;
540
- case o.vipList:
541
- n.result[r] = Z(l);
578
+ case i.vipList:
579
+ o.result[u] = Z(m);
542
580
  break;
543
- case o.vipBonus:
544
- n.result[r] = ee(l);
581
+ case i.vipBonus:
582
+ o.result[u] = ee(m);
545
583
  break;
546
- case o.vipFieldStatus:
547
- n.result[r] = te(l);
584
+ case i.vipFieldStatus:
585
+ o.result[u] = te(m);
548
586
  break;
549
- case o.vipStatus:
550
- n.result[r] = ne(l);
587
+ case i.vipStatus:
588
+ o.result[u] = ne(m);
551
589
  break;
552
- case o.promotion:
553
- n.result[r] = w(l);
590
+ case i.promotion:
591
+ o.result[u] = w(m);
554
592
  break;
555
- case o.getSetting:
556
- n.result[r] = se(l);
593
+ case i.getSetting:
594
+ o.result[u] = oe(m);
557
595
  break;
558
- case o.getCountryMobile:
559
- n.result[r] = oe(
560
- l
596
+ case i.getCountryMobile:
597
+ o.result[u] = ae(
598
+ m
561
599
  );
562
600
  break;
563
- case o.getPlatformTurnoverRate:
564
- n.result[r] = ie(
565
- l
601
+ case i.getPlatformTurnoverRate:
602
+ o.result[u] = ie(
603
+ m
566
604
  );
567
605
  break;
568
- case o.mainWallet:
569
- n.result[r] = re(l);
606
+ case i.mainWallet:
607
+ o.result[u] = re(m);
570
608
  break;
571
- case o.getLanguageSetting:
572
- n.result[r] = le(
573
- l
609
+ case i.getLanguageSetting:
610
+ o.result[u] = le(
611
+ m
574
612
  );
575
613
  break;
576
- case o.getFourDimensionData:
577
- n.result[r] = ue(
578
- l
614
+ case i.getFourDimensionData:
615
+ o.result[u] = ue(
616
+ m
579
617
  );
580
618
  break;
581
- case o.getCompany:
582
- n.result[r] = me(l);
619
+ case i.getCompany:
620
+ o.result[u] = me(m);
583
621
  break;
584
- case o.searchResultDate:
585
- n.result[r] = ce(
586
- l
622
+ case i.searchResultDate:
623
+ o.result[u] = ce(
624
+ m
587
625
  );
588
626
  break;
589
- case o.searchHot:
590
- n.result[r] = pe(l);
627
+ case i.searchHot:
628
+ o.result[u] = pe(m);
629
+ break;
630
+ case i.searchByDate:
631
+ o.result[u] = ge(m);
591
632
  break;
592
633
  }
593
634
  }
594
- if (o.vipList in n.result && ((t = n.result) != null && t.vipList)) {
595
- const i = n.result.vipList;
635
+ if (i.vipList in o.result && ((t = o.result) != null && t.vipList)) {
636
+ const l = o.result.vipList;
596
637
  let y = 4;
597
- if (o.getSetting in n.result && ((s = n.result) != null && s.getSetting) && (y = n.result.getSetting.vip_calculation, delete n.result.getSetting), o.vipBonus in n.result && ((u = n.result) != null && u.vipBonus) && (i.bonus = n.result.vipBonus, delete n.result.vipBonus), o.vipFieldStatus in n.result && ((a = n.result) != null && a.vipFieldStatus) && (console.log(n.result.vipFieldStatus), delete n.result.vipFieldStatus), o.vipStatus in n.result && ((m = n.result) != null && m.vipStatus)) {
598
- const r = n.result.vipStatus, {
599
- current_grade_id: l,
638
+ if (i.getSetting in o.result && ((n = o.result) != null && n.getSetting) && (y = o.result.getSetting.vip_calculation, delete o.result.getSetting), i.vipBonus in o.result && ((r = o.result) != null && r.vipBonus) && (l.bonus = o.result.vipBonus, delete o.result.vipBonus), i.vipFieldStatus in o.result && ((s = o.result) != null && s.vipFieldStatus) && (console.log(o.result.vipFieldStatus), delete o.result.vipFieldStatus), i.vipStatus in o.result && ((c = o.result) != null && c.vipStatus)) {
639
+ const u = o.result.vipStatus, {
640
+ current_grade_id: m,
600
641
  current_deposit: R,
601
642
  current_turnover: C,
602
- percentage: A
603
- } = r, j = i.list.findIndex((S) => S.id === l);
604
- i.list = i.list.map((S, F) => {
643
+ percentage: U
644
+ } = u, j = l.list.findIndex((x) => x.id === m);
645
+ l.list = l.list.map((x, F) => {
605
646
  const G = F === j;
606
- let T = "0", O = "0", N = 0;
607
- return G ? (T = `${Math.min(Number(R), Number(S.deposit.total))}`, O = `${Math.min(Number(C), Number(S.turnover.total))}`, N = A) : F < j ? (T = S.deposit.total, O = S.turnover.total, N = 1) : F > j && (T = "0.00", O = "0.00", N = 0), {
608
- ...S,
647
+ let T = "0", O = "0", B = 0;
648
+ return G ? (T = `${Math.min(Number(R), Number(x.deposit.total))}`, O = `${Math.min(Number(C), Number(x.turnover.total))}`, B = U) : F < j ? (T = x.deposit.total, O = x.turnover.total, B = 1) : F > j && (T = "0.00", O = "0.00", B = 0), {
649
+ ...x,
609
650
  is_current_level: G,
610
651
  deposit: {
611
- ...S.deposit,
652
+ ...x.deposit,
612
653
  isShow: y === 1 || y === 3 || y === 4,
613
654
  current: T
614
655
  },
615
656
  turnover: {
616
- ...S.turnover,
657
+ ...x.turnover,
617
658
  isShow: y === 2 || y === 3 || y === 4,
618
659
  current: O
619
660
  },
620
- percentage: N
661
+ percentage: B
621
662
  };
622
- }), delete n.result.vipStatus;
663
+ }), delete o.result.vipStatus;
623
664
  }
624
- n.result.vipList = i;
665
+ o.result.vipList = l;
625
666
  }
626
- if (o.gameList in n.result && ((p = n.result) != null && p.gameList)) {
627
- const i = n.result.gameList;
628
- if (o.getPlatformTurnoverRate in n.result && ((c = n.result) != null && c.getPlatformTurnoverRate)) {
629
- const y = n.result.getPlatformTurnoverRate;
630
- i.forEach((r) => {
631
- r.list = r.list.map((l) => {
667
+ if (i.gameList in o.result && ((g = o.result) != null && g.gameList)) {
668
+ const l = o.result.gameList;
669
+ if (i.getPlatformTurnoverRate in o.result && ((d = o.result) != null && d.getPlatformTurnoverRate)) {
670
+ const y = o.result.getPlatformTurnoverRate;
671
+ l.forEach((u) => {
672
+ u.list = u.list.map((m) => {
632
673
  const R = y.find(
633
- (C) => C.id === l.id
674
+ (C) => C.id === m.id
634
675
  );
635
676
  return {
636
- ...l,
677
+ ...m,
637
678
  rate: (R == null ? void 0 : R.percentage) ?? "0.00"
638
679
  };
639
680
  });
640
- }), delete n.result.getPlatformTurnoverRate;
681
+ }), delete o.result.getPlatformTurnoverRate;
641
682
  }
642
- n.result.gameList = i;
683
+ o.result.gameList = l;
643
684
  }
644
- if (o.getCompany in n.result && ((g = n.result) != null && g.getCompany)) {
645
- const i = n.result.getCompany;
646
- if (o.searchResultDate in n.result && ((f = n.result) != null && f.searchResultDate)) {
647
- const y = n.result.searchResultDate;
648
- i.forEach((r) => {
649
- const l = y.find((R) => R.id == r.id);
650
- l && (r.date = l == null ? void 0 : l.date);
651
- }), delete n.result.searchResultDate;
685
+ if (i.getCompany in o.result && ((f = o.result) != null && f.getCompany)) {
686
+ const l = o.result.getCompany;
687
+ if (i.searchResultDate in o.result && ((b = o.result) != null && b.searchResultDate)) {
688
+ const y = o.result.searchResultDate;
689
+ l.forEach((u) => {
690
+ const m = y.find((R) => R.id == u.id);
691
+ m && (u.date = m == null ? void 0 : m.date);
692
+ }), delete o.result.searchResultDate;
652
693
  }
653
- n.result.getCompany = i;
694
+ o.result.getCompany = l;
654
695
  }
655
- return n;
656
- } catch (_) {
657
- return U.isAxiosError(_) ? {
658
- status: ((b = _.response) == null ? void 0 : b.status) || 600,
659
- message: JSON.stringify((L = _.response) == null ? void 0 : L.data),
696
+ return o;
697
+ } catch (h) {
698
+ return A.isAxiosError(h) ? {
699
+ status: ((_ = h.response) == null ? void 0 : _.status) || 600,
700
+ message: JSON.stringify((v = h.response) == null ? void 0 : v.data),
660
701
  result: {}
661
- } : (console.error(_), {
662
- status: _.status || 500,
663
- message: _.message,
702
+ } : (console.error(h), {
703
+ status: h.status || 500,
704
+ message: h.message,
664
705
  result: {}
665
706
  });
666
707
  }
667
- }, fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
708
+ }, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
668
709
  __proto__: null,
669
- post: ge
670
- }, Symbol.toStringTag, { value: "Module" })), ye = async (e, t) => {
710
+ post: fe
711
+ }, Symbol.toStringTag, { value: "Module" })), _e = async (e, t) => {
671
712
  try {
672
- const s = {
713
+ const n = {
673
714
  status: 200,
674
715
  message: ""
675
716
  };
676
- return await D.post(
717
+ return await M.post(
677
718
  "/auth/sesh",
678
719
  JSON.stringify({
679
720
  usr: e,
680
721
  pwd: t
681
722
  })
682
- ), s;
683
- } catch (s) {
684
- return console.error(`login: ${JSON.stringify(s)}`), {
685
- status: s.status || 500,
686
- message: s.message
723
+ ), n;
724
+ } catch (n) {
725
+ return console.error(`login: ${JSON.stringify(n)}`), {
726
+ status: n.status || 500,
727
+ message: n.message
687
728
  };
688
729
  }
689
- }, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
730
+ }, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
690
731
  __proto__: null,
691
- call: ye
692
- }, Symbol.toStringTag, { value: "Module" })), _e = async () => {
732
+ call: _e
733
+ }, Symbol.toStringTag, { value: "Module" })), he = async () => {
693
734
  try {
694
735
  const e = {
695
736
  status: 200,
696
737
  message: ""
697
738
  };
698
- return await D.post("/auth/sesh/logout"), e;
739
+ return await M.post("/auth/sesh/logout"), e;
699
740
  } catch (e) {
700
741
  return console.error(`login: ${JSON.stringify(e)}`), {
701
742
  status: e.status || 500,
702
743
  message: e.message
703
744
  };
704
745
  }
705
- }, he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
746
+ }, ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
706
747
  __proto__: null,
707
- call: _e
708
- }, Symbol.toStringTag, { value: "Module" })), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
709
- __proto__: null
748
+ call: he
710
749
  }, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
711
750
  __proto__: null
712
751
  }, Symbol.toStringTag, { value: "Module" })), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -715,44 +754,46 @@ const pe = (e) => e.data.map((t) => ({
715
754
  __proto__: null
716
755
  }, Symbol.toStringTag, { value: "Module" })), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
717
756
  __proto__: null
757
+ }, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
758
+ __proto__: null
718
759
  }, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
719
760
  __proto__: null
720
- }, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
761
+ }, Symbol.toStringTag, { value: "Module" })), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
721
762
  __proto__: null
722
763
  }, Symbol.toStringTag, { value: "Module" })), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
723
764
  __proto__: null
724
- }, Symbol.toStringTag, { value: "Module" })), ke = {
725
- api: fe,
726
- loginApi: be,
727
- logoutApi: he,
765
+ }, Symbol.toStringTag, { value: "Module" })), Te = {
766
+ api: be,
767
+ loginApi: ye,
768
+ logoutApi: ve,
728
769
  apiType: E,
729
- loginType: ve,
730
- logoutType: Se,
731
- announcementType: xe,
770
+ loginType: Se,
771
+ logoutType: xe,
772
+ announcementType: Le,
732
773
  paymentsProviderType: J,
733
- gameListType: Le,
734
- vipListType: Re,
774
+ gameListType: Re,
775
+ vipListType: De,
735
776
  promotionType: Me,
736
- cmsListType: De,
777
+ cmsListType: ke,
737
778
  mainWalletType: Pe
738
- }, Oe = {
779
+ }, Be = {
739
780
  install(e) {
740
- e.config.globalProperties.$library = ke;
781
+ e.config.globalProperties.$library = Te;
741
782
  }
742
783
  };
743
784
  export {
744
- Oe as Repository,
745
- xe as announcementType,
746
- fe as api,
785
+ Be as Repository,
786
+ Le as announcementType,
787
+ be as api,
747
788
  E as apiType,
748
- De as cmsListType,
749
- Le as gameListType,
750
- be as loginApi,
751
- ve as loginType,
752
- he as logoutApi,
753
- Se as logoutType,
789
+ ke as cmsListType,
790
+ Re as gameListType,
791
+ ye as loginApi,
792
+ Se as loginType,
793
+ ve as logoutApi,
794
+ xe as logoutType,
754
795
  Pe as mainWalletType,
755
796
  J as paymentsProviderType,
756
797
  Me as promotionType,
757
- Re as vipListType
798
+ De as vipListType
758
799
  };
@@ -1 +1 @@
1
- (function(d,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],M):(d=typeof globalThis<"u"?globalThis:d||self,M(d["60p82u21t54k"]={},d.axios))})(this,function(d,M){"use strict";const P=M.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});P.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),P.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};return e.response?(t.status=e.response.status,t.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(t)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(t)});const ee=e=>new TextEncoder().encode(e),te=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var o=(e=>(e.announcement="announcement",e.gameList="gameList",e.fishGameList="fishGameList",e.cmsList="cmsList",e.paymentsProvider="paymentsProvider",e.getUserProfile="getUserProfile",e.vipList="vipList",e.vipStatus="vipStatus",e.vipBonus="vipBonus",e.vipFieldStatus="vipFieldStatus",e.promotion="promotion",e.getSetting="getSetting",e.getCountryMobile="getCountryMobile",e.getPlatformTurnoverRate="getPlatformTurnoverRate",e.mainWallet="mainWallet",e.getLanguageSetting="getLanguageSetting",e.getFourDimensionData="getfourDimensionData",e.getCompany="getCompany",e.searchResultDate="searchResultDate",e.searchHot="searchHot",e))(o||{});const A=Object.freeze(Object.defineProperty({__proto__:null,Api:o},Symbol.toStringTag,{value:"Module"}));var S=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(S||{});const U=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:S},Symbol.toStringTag,{value:"Module"})),ne=e=>e.mdPaymentChannels.map(t=>{const s=[];switch(t.name){case S.default:s.push(I(t.paymentmethod.manual,e));break;case S.pay:s.push(se(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&s.push(ae(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let u=!1;for(let a=0;a<t.paymentmethod.manual.bank.length;a++){const m=t.paymentmethod.manual.bank[a];if(m.list&&m.list.length>0){u=!0;break}}u&&s.push(I(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&s.push(oe(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:s}}),F={id:0,name:"",type:S.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},D=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},s=e.map((u,a)=>({id:a+1,name:u.promodesc,value:u.promoindex.toString(),disabled:!1}));return[t,...s]},k=(e,t,s,u)=>{let a,m;s>0?a=e>0?Math.max(s,e):s:a=Math.max(e,0),u>0?m=t>0?Math.min(u,t):u:m=Math.max(t,0);const g=Math.round(a);let c=1e3;m<c&&(c=Math.round(m));const f=c-g;let y="",_="";if(f>0){let p=Math.round((c-g)*.25).toString().split(""),v=[];for(const n of p)n!==""&&v.push(n);for(let n=0;n<v.length;n++)n===0?y+=(parseInt(v[n])+1).toString():y+="0";p=Math.round((c-g)*.5).toString().split(""),v=[];for(const n of p)n!==""&&v.push(n);for(let n=0;n<v.length;n++)n===0?_+=(parseInt(v[n])+1).toString():_+="0"}else y=c.toString(),_=c.toString();return{amountList:[g.toString(),y,_,c.toString()],minAmount:g,maxAmount:m}},I=(e,t)=>t?{id:0,name:"manualMethod",type:S.manual,promo:D(e.promo),bank:e.bank.map(a=>{const m=a.list&&a.list.length>0?a.list[0].mintransaction??"0.00":"0.00",g=a.list&&a.list.length>0?a.list[0].maxtransaction??"0.00":"0.00",{amountList:c,minAmount:f,maxAmount:y}=k(Number(m),Number(g),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:a.bankindex??0,bankAccountId:a.list&&a.list.length>0?a.list[0].bankaccountindex??0:0,name:a.list&&a.list.length>0?a.list[0].label??"":"",accountName:a.list&&a.list.length>0?a.list[0].bankaccountname??"":"",accountNo:a.list&&a.list.length>0?a.list[0].bankaccountno??"":"",qrcode:a.list&&a.list.length>0?a.list[0].bankaccountdesc:"",amountList:c,min:f,max:y}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:F,se=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:S.pay,promo:D(e.promo),bank:e.banklist.map(a=>{let m="0.00",g="0.00";const c=a.bankindex??0;for(let p=0;p<t.mdGatewayMinMax.length;p++)t.mdGatewayMinMax[p].bankindex==c.toString()&&(m=t.mdGatewayMinMax[p].min,g=t.mdGatewayMinMax[p].max);const{amountList:f,minAmount:y,maxAmount:_}=k(Number(m),Number(g),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),T={id:0,name:"autoChannel",amountList:f,min:y,max:_},h=a.pg.map(p=>{const v=p.mintransaction??"0.00",O=p.maxtransaction??"0.00",{amountList:N,minAmount:n,maxAmount:i}=k(Number(v),Number(O),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:p.pgindex,name:p.bankaccountname,amountList:N,min:n,max:i}});return{id:a.bankindex??0,name:a.banknameenglish??"",amountList:[],min:0,max:0,gateway:[T,...h]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:F,ae=(e,t,s)=>{if(!s)return F;const u=S.auto;let a=[];const m=s.mdGatewayMinMax;if(t.bank.length>0&&s.mdPGSelection=="1")a=t.bank.map(c=>{const{amountList:f,minAmount:y,maxAmount:_}=k(c.minTransaction??0,c.maxTransaction??0,s.mdBankLevelDetail.onlinepayment_min,s.mdBankLevelDetail.onlinepayment_max);return{id:c.pgindex,name:c.bankaccountname||"",amountList:f,min:y,max:_}});else{let c="0.00",f="0.00";for(let x=0;x<m.length;x++)m[x].bankindex===e.toString()&&(c=m[x].min,f=m[x].max);const{amountList:y,minAmount:_,maxAmount:T}=k(Number(c),Number(f),s.mdBankLevelDetail.onlinepayment_min,s.mdBankLevelDetail.onlinepayment_max),h={id:0,name:"autoChannel",amountList:y,min:_,max:T};a.push(h)}return{id:e,name:"autoMethod",type:u,promo:D(t.promo),bank:a,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},oe=(e,t)=>{const s=S.fix;return{id:e,name:"fixAmountMethod",type:s,promo:D(t.promo),bank:t.bank.map(a=>{const m=a.amtlist.map(Number).sort((c,f)=>c-f);return{id:a.pgindex,name:a.name,amountList:a.amtlist,min:m.length>0?m[0]:0,max:m.length>0?m[m.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ie=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),re=e=>({username:e.username,birthday:e.mdUserDetail.dob,email:e.mdUserDetail.email,fullName:e.mdUserDetail.firstname,phoneNumber:e.mdUserDetail.mobileno,profilePicUrl:e.mdUserDetail.profile_pic}),le=e=>e.mdGameListResult.map(t=>({code:t.code,id:t.id,name:t.name,nextPage:t.nextPage===1,list:t.mdPlatformProducts.map(s=>({id:Number(s.id),name:s.shortName,flag:s.flag,imageUrl:s.img,rate:"0.00"}))})),ue=e=>({list:e.mdGrade.map(t=>({id:t.gradeindex,is_current_level:!1,name:t.grade_simplified,percentage:0,turnover:{isShow:!1,current:"0",total:t.min_activebet},deposit:{isShow:!1,current:"0",total:t.min_deposit},promo_list:t.promocash.filter(s=>s.isshow==1&&s.status=="1").map(s=>({name:s.promosimplified,min_deposit:s.min_deposit,promo_bonus:s.percentage,promo_limit:s.max_promo_amt,turnover_multiplier:s.multiply,type:s.promo_type})),benefit_list:t.benefit})),detail:[],bonus:{showMonthButton:!1,showWeekButton:!1,showDayButton:!1}}),me=e=>({category:e.category.sort((t,s)=>t.sequence-s.sequence).map(t=>({id:t.catid,name:t.name})),list:e.list.sort((t,s)=>t.sequence-s.sequence).map(t=>{let s="";return t.stime!==""&&t.etime!==""&&(s=`${t.stime} - ${t.etime}`),t.stime!==""&&t.etime===""&&(s=t.stime),t.stime===""&&t.etime!==""&&(s=t.etime),{category_id:t.catid,img_url:t.banner,content:t.content,time:s,name:t.title}})}),ce=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),de=e=>e.mdVipSetting.filter(t=>{t.status==1}).map(t=>({name:t.showname})),pe=e=>({current_deposit:e.deposit,current_turnover:e.turnOver,current_grade_id:e.mdCurrentGrade.gradeindex,next_grade_id:e.mdNextGrade.gradeindex,percentage:Number(e.percentage)*100}),ge=e=>{let t=4;e.vipcalculation&&(t=Number(e.vipcalculation));let s=[];return e.extralivechat&&(s=JSON.parse(e.extralivechat)),{vip_calculation:t,livechat:s.filter(u=>u.status===1).map(u=>({name:u.name,image_url:u.imgname,url:u.url})),mobileValidate:e.mobilevalidate?e.mobilevalidate=="1":!1}},fe=e=>{let t=[];e.mobileBanner&&(t=e.mobileBanner);let s=[];e.mobileAd&&(s=e.mobileAd);let u=[];return e.mobileAbout&&(u=e.mobileAbout),{banner:t.map(a=>`${a.imagepath}?${a.filemtime}`),ad:s.map(a=>`${a.imagepath}?${a.filemtime}`),about:u.map(a=>({name:a.name,content:a.content}))}},ye=e=>e.data.filter(t=>t.status==="1").map(t=>({code:t.area_code,regex:t.regex,value:t.value})),be=e=>e,_e=e=>{let t=null;return e?e.status!=1?t=0:t=e.mainwallet:t=0,{amount:t}},he=e=>e.data.filter(t=>t.status=="1").map(t=>({name:t.title,icon_url:t.flag_icon,code:t.code})),ve=e=>(console.log(e),{name:""}),Se=e=>e.data.filter(t=>t.company_status==1).map(t=>({id:t.company_id,name:t.company_name,date:[]})),xe=e=>e.data.map(t=>({id:t.key,date:t.draw_date.map(s=>Le(s.draw_tmactive))}));function Le(e){const t=new Date(e*1e3),s=t.getFullYear(),u=("0"+(t.getMonth()+1)).slice(-2),a=("0"+t.getDate()).slice(-2);return`${s}-${u}-${a}`}const Te=e=>e.data.map(t=>({id:t.company_id,list:t.drawCount.map(s=>({combination:s.combination_combination,total:s.total}))})),z=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,s,u,a,m,g,c,f,y,_,T;try{e.findIndex(i=>i.name===o.vipList)!==-1&&e.push({name:o.vipBonus,query:""},{name:o.vipFieldStatus,query:""},{name:o.vipStatus,query:""},{name:o.getSetting,query:JSON.stringify({name:["vipcalculation"]})}),e.findIndex(i=>i.name===o.gameList)!==-1&&e.push({name:o.getPlatformTurnoverRate,query:""});const p=e.findIndex(i=>i.name===o.getFourDimensionData);p!==-1&&e[p].query==""&&(e.splice(p),e.push({name:o.getFourDimensionData,query:JSON.stringify({action:"getCompany",native:"1"})},{name:o.getFourDimensionData,query:JSON.stringify({action:"searchResultDate",limit:100,company:[],native:"1",splitCompany:"1"})}));const O={requests:e.map(i=>({name:i.name,query:btoa(i.query)}))},N=await P.post("/jwt",ee(JSON.stringify(O))),n={status:200,message:"",result:{}};for(const i of N.data.responses){i.error!=null&&i.error.code!=200&&(n.status=i.error.code,n.message=i.error.message);const b=i.attributes!==null&&i.attributes!==void 0?te(i.attributes):null,r=i.name,l=b?JSON.parse(b):null;if(!l)n.result[r]=null;else switch(r){case o.announcement:n.result[r]=ie(l);break;case o.gameList:n.result[r]=le(l);break;case o.cmsList:n.result[r]=fe(l);break;case o.paymentsProvider:n.result[r]=ne(l);break;case o.getUserProfile:n.result[r]=re(l);break;case o.vipList:n.result[r]=ue(l);break;case o.vipBonus:n.result[r]=ce(l);break;case o.vipFieldStatus:n.result[r]=de(l);break;case o.vipStatus:n.result[r]=pe(l);break;case o.promotion:n.result[r]=me(l);break;case o.getSetting:n.result[r]=ge(l);break;case o.getCountryMobile:n.result[r]=ye(l);break;case o.getPlatformTurnoverRate:n.result[r]=be(l);break;case o.mainWallet:n.result[r]=_e(l);break;case o.getLanguageSetting:n.result[r]=he(l);break;case o.getFourDimensionData:n.result[r]=ve(l);break;case o.getCompany:n.result[r]=Se(l);break;case o.searchResultDate:n.result[r]=xe(l);break;case o.searchHot:n.result[r]=Te(l);break}}if(o.vipList in n.result&&((t=n.result)!=null&&t.vipList)){const i=n.result.vipList;let b=4;if(o.getSetting in n.result&&((s=n.result)!=null&&s.getSetting)&&(b=n.result.getSetting.vip_calculation,delete n.result.getSetting),o.vipBonus in n.result&&((u=n.result)!=null&&u.vipBonus)&&(i.bonus=n.result.vipBonus,delete n.result.vipBonus),o.vipFieldStatus in n.result&&((a=n.result)!=null&&a.vipFieldStatus)&&(console.log(n.result.vipFieldStatus),delete n.result.vipFieldStatus),o.vipStatus in n.result&&((m=n.result)!=null&&m.vipStatus)){const r=n.result.vipStatus,{current_grade_id:l,current_deposit:R,current_turnover:q,percentage:Pe}=r,G=i.list.findIndex(L=>L.id===l);i.list=i.list.map((L,$)=>{const w=$===G;let j="0",B="0",C=0;return w?(j=`${Math.min(Number(R),Number(L.deposit.total))}`,B=`${Math.min(Number(q),Number(L.turnover.total))}`,C=Pe):$<G?(j=L.deposit.total,B=L.turnover.total,C=1):$>G&&(j="0.00",B="0.00",C=0),{...L,is_current_level:w,deposit:{...L.deposit,isShow:b===1||b===3||b===4,current:j},turnover:{...L.turnover,isShow:b===2||b===3||b===4,current:B},percentage:C}}),delete n.result.vipStatus}n.result.vipList=i}if(o.gameList in n.result&&((g=n.result)!=null&&g.gameList)){const i=n.result.gameList;if(o.getPlatformTurnoverRate in n.result&&((c=n.result)!=null&&c.getPlatformTurnoverRate)){const b=n.result.getPlatformTurnoverRate;i.forEach(r=>{r.list=r.list.map(l=>{const R=b.find(q=>q.id===l.id);return{...l,rate:(R==null?void 0:R.percentage)??"0.00"}})}),delete n.result.getPlatformTurnoverRate}n.result.gameList=i}if(o.getCompany in n.result&&((f=n.result)!=null&&f.getCompany)){const i=n.result.getCompany;if(o.searchResultDate in n.result&&((y=n.result)!=null&&y.searchResultDate)){const b=n.result.searchResultDate;i.forEach(r=>{const l=b.find(R=>R.id==r.id);l&&(r.date=l==null?void 0:l.date)}),delete n.result.searchResultDate}n.result.getCompany=i}return n}catch(h){return M.isAxiosError(h)?{status:((_=h.response)==null?void 0:_.status)||600,message:JSON.stringify((T=h.response)==null?void 0:T.data),result:{}}:(console.error(h),{status:h.status||500,message:h.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),E=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const s={status:200,message:""};return await P.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),s}catch(s){return console.error(`login: ${JSON.stringify(s)}`),{status:s.status||500,message:s.message}}}},Symbol.toStringTag,{value:"Module"})),J=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await P.post("/auth/sesh/logout"),e}catch(e){return console.error(`login: ${JSON.stringify(e)}`),{status:e.status||500,message:e.message}}}},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Re={api:z,loginApi:E,logoutApi:J,apiType:A,loginType:W,logoutType:V,announcementType:H,paymentsProviderType:U,gameListType:Y,vipListType:K,promotionType:Q,cmsListType:X,mainWalletType:Z},Me={install(e){e.config.globalProperties.$library=Re}};d.Repository=Me,d.announcementType=H,d.api=z,d.apiType=A,d.cmsListType=X,d.gameListType=Y,d.loginApi=E,d.loginType=W,d.logoutApi=J,d.logoutType=V,d.mainWalletType=Z,d.paymentsProviderType=U,d.promotionType=Q,d.vipListType=K,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
1
+ (function(p,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("axios")):typeof define=="function"&&define.amd?define(["exports","axios"],D):(p=typeof globalThis<"u"?globalThis:p||self,D(p["60p82u21t54k"]={},p.axios))})(this,function(p,D){"use strict";const M=D.create({baseURL:"/graph",timeout:5e3,headers:{"Content-Type":"application/json"}});M.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),M.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};return e.response?(t.status=e.response.status,t.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(t)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(t)});const ee=e=>new TextEncoder().encode(e),te=e=>{try{return atob(e)}catch(t){return console.error("Failed to decode Base64:",t),""}};var i=(e=>(e.announcement="announcement",e.gameList="gameList",e.fishGameList="fishGameList",e.cmsList="cmsList",e.paymentsProvider="paymentsProvider",e.getUserProfile="getUserProfile",e.vipList="vipList",e.vipStatus="vipStatus",e.vipBonus="vipBonus",e.vipFieldStatus="vipFieldStatus",e.promotion="promotion",e.getSetting="getSetting",e.getCountryMobile="getCountryMobile",e.getPlatformTurnoverRate="getPlatformTurnoverRate",e.mainWallet="mainWallet",e.getLanguageSetting="getLanguageSetting",e.getFourDimensionData="getfourDimensionData",e.getCompany="getCompany",e.searchResultDate="searchResultDate",e.searchHot="searchHot",e.searchByDate="searchByDate",e))(i||{});const $=Object.freeze(Object.defineProperty({__proto__:null,Api:i},Symbol.toStringTag,{value:"Module"}));var L=(e=>(e.default="default",e.pay="pay",e.auto="auto",e.fix="fix",e.manual="manual",e.unknown="unknown",e))(L||{});const U=Object.freeze(Object.defineProperty({__proto__:null,PaymentType:L},Symbol.toStringTag,{value:"Module"})),ne=e=>e.mdPaymentChannels.map(t=>{const n=[];switch(t.name){case L.default:n.push(I(t.paymentmethod.manual,e));break;case L.pay:n.push(oe(t.paymentmethod.onlinebanking,e));break;default:if(t.paymentmethod.auto.bank.length>0&&n.push(se(t.bankid??0,t.paymentmethod.auto,e)),t.paymentmethod.manual.bank.length>0){let r=!1;for(let s=0;s<t.paymentmethod.manual.bank.length;s++){const c=t.paymentmethod.manual.bank[s];if(c.list&&c.list.length>0){r=!0;break}}r&&n.push(I(t.paymentmethod.manual,e))}t.paymentmethod.fixamount.bank.length>0&&n.push(ae(t.bankid??0,t.paymentmethod.fixamount))}return{name:t.label,imageUrl:`/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,paymentList:n}}),F={id:0,name:"",type:L.unknown,promo:[],bank:[],requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}},k=e=>{const t={id:0,name:"excludePromo",value:"0",disabled:!0},n=e.map((r,s)=>({id:s+1,name:r.promodesc,value:r.promoindex.toString(),disabled:!1}));return[t,...n]},P=(e,t,n,r)=>{let s,c;n>0?s=e>0?Math.max(n,e):n:s=Math.max(e,0),r>0?c=t>0?Math.min(r,t):r:c=Math.max(t,0);const f=Math.round(s);let d=1e3;c<d&&(d=Math.round(c));const b=d-f;let y="",_="";if(b>0){let g=Math.round((d-f)*.25).toString().split(""),x=[];for(const o of g)o!==""&&x.push(o);for(let o=0;o<x.length;o++)o===0?y+=(parseInt(x[o])+1).toString():y+="0";g=Math.round((d-f)*.5).toString().split(""),x=[];for(const o of g)o!==""&&x.push(o);for(let o=0;o<x.length;o++)o===0?_+=(parseInt(x[o])+1).toString():_+="0"}else y=d.toString(),_=d.toString();return{amountList:[f.toString(),y,_,d.toString()],minAmount:f,maxAmount:c}},I=(e,t)=>t?{id:0,name:"manualMethod",type:L.manual,promo:k(e.promo),bank:e.bank.map(s=>{const c=s.list&&s.list.length>0?s.list[0].mintransaction??"0.00":"0.00",f=s.list&&s.list.length>0?s.list[0].maxtransaction??"0.00":"0.00",{amountList:d,minAmount:b,maxAmount:y}=P(Number(c),Number(f),t.mdBankLevelDetail.deposit_min,t.mdBankLevelDetail.deposit_max);return t.mdManualDepositRequireField.depositor=!0,{id:s.bankindex??0,bankAccountId:s.list&&s.list.length>0?s.list[0].bankaccountindex??0:0,name:s.list&&s.list.length>0?s.list[0].label??"":"",accountName:s.list&&s.list.length>0?s.list[0].bankaccountname??"":"",accountNo:s.list&&s.list.length>0?s.list[0].bankaccountno??"":"",qrcode:s.list&&s.list.length>0?s.list[0].bankaccountdesc:"",amountList:d,min:b,max:y}}),requiredField:{...t.mdManualDepositRequireField,uploadReceipt:t.mdUploadReceipt}}:F,oe=(e,t)=>t?{id:0,name:"onlineBankingMethod",type:L.pay,promo:k(e.promo),bank:e.banklist.map(s=>{let c="0.00",f="0.00";const d=s.bankindex??0;for(let g=0;g<t.mdGatewayMinMax.length;g++)t.mdGatewayMinMax[g].bankindex==d.toString()&&(c=t.mdGatewayMinMax[g].min,f=t.mdGatewayMinMax[g].max);const{amountList:b,minAmount:y,maxAmount:_}=P(Number(c),Number(f),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max),S={id:0,name:"autoChannel",amountList:b,min:y,max:_},v=s.pg.map(g=>{const x=g.mintransaction??"0.00",O=g.maxtransaction??"0.00",{amountList:B,minAmount:o,maxAmount:l}=P(Number(x),Number(O),t.mdBankLevelDetail.onlinepayment_min,t.mdBankLevelDetail.onlinepayment_max);return{id:g.pgindex,name:g.bankaccountname,amountList:B,min:o,max:l}});return{id:s.bankindex??0,name:s.banknameenglish??"",amountList:[],min:0,max:0,gateway:[S,...v]}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}:F,se=(e,t,n)=>{if(!n)return F;const r=L.auto;let s=[];const c=n.mdGatewayMinMax;if(t.bank.length>0&&n.mdPGSelection=="1")s=t.bank.map(d=>{const{amountList:b,minAmount:y,maxAmount:_}=P(d.minTransaction??0,d.maxTransaction??0,n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max);return{id:d.pgindex,name:d.bankaccountname||"",amountList:b,min:y,max:_}});else{let d="0.00",b="0.00";for(let a=0;a<c.length;a++)c[a].bankindex===e.toString()&&(d=c[a].min,b=c[a].max);const{amountList:y,minAmount:_,maxAmount:S}=P(Number(d),Number(b),n.mdBankLevelDetail.onlinepayment_min,n.mdBankLevelDetail.onlinepayment_max),v={id:0,name:"autoChannel",amountList:y,min:_,max:S};s.push(v)}return{id:e,name:"autoMethod",type:r,promo:k(t.promo),bank:s,requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ae=(e,t)=>{const n=L.fix;return{id:e,name:"fixAmountMethod",type:n,promo:k(t.promo),bank:t.bank.map(s=>{const c=s.amtlist.map(Number).sort((d,b)=>d-b);return{id:s.pgindex,name:s.name,amountList:s.amtlist,min:c.length>0?c[0]:0,max:c.length>0?c[c.length-1]:0}}),requiredField:{deposit_bank:!1,deposit_datetime:!1,deposit_detail:!1,deposit_method:!1,depositor:!1,uploadReceipt:!1}}},ie=e=>e.map(t=>({alert:t.announcement_alert=="1",update_time:t.announcement_lastupdated,content:t.announcement_simplified})),re=e=>({username:e.username,birthday:e.mdUserDetail.dob,email:e.mdUserDetail.email,fullName:e.mdUserDetail.firstname,phoneNumber:e.mdUserDetail.mobileno,profilePicUrl:e.mdUserDetail.profile_pic}),le=e=>e.mdGameListResult.map(t=>({code:t.code,id:t.id,name:t.name,nextPage:t.nextPage===1,list:t.mdPlatformProducts.map(n=>({id:Number(n.id),name:n.shortName,flag:n.flag,imageUrl:n.img,rate:"0.00"}))})),ue=e=>({list:e.mdGrade.map(t=>({id:t.gradeindex,is_current_level:!1,name:t.grade_simplified,percentage:0,turnover:{isShow:!1,current:"0",total:t.min_activebet},deposit:{isShow:!1,current:"0",total:t.min_deposit},promo_list:t.promocash.filter(n=>n.isshow==1&&n.status=="1").map(n=>({name:n.promosimplified,min_deposit:n.min_deposit,promo_bonus:n.percentage,promo_limit:n.max_promo_amt,turnover_multiplier:n.multiply,type:n.promo_type})),benefit_list:t.benefit})),detail:[],bonus:{showMonthButton:!1,showWeekButton:!1,showDayButton:!1}}),me=e=>({category:e.category.sort((t,n)=>t.sequence-n.sequence).map(t=>({id:t.catid,name:t.name})),list:e.list.sort((t,n)=>t.sequence-n.sequence).map(t=>{let n="";return t.stime!==""&&t.etime!==""&&(n=`${t.stime} - ${t.etime}`),t.stime!==""&&t.etime===""&&(n=t.stime),t.stime===""&&t.etime!==""&&(n=t.etime),{category_id:t.catid,img_url:t.banner,content:t.content,time:n,name:t.title}})}),ce=e=>({showMonthButton:e.month===1,showWeekButton:e.week===1,showDayButton:e.day===1}),de=e=>e.mdVipSetting.filter(t=>{t.status==1}).map(t=>({name:t.showname})),pe=e=>({current_deposit:e.deposit,current_turnover:e.turnOver,current_grade_id:e.mdCurrentGrade.gradeindex,next_grade_id:e.mdNextGrade.gradeindex,percentage:Number(e.percentage)*100}),ge=e=>{let t=4;e.vipcalculation&&(t=Number(e.vipcalculation));let n=[];return e.extralivechat&&(n=JSON.parse(e.extralivechat)),{vip_calculation:t,livechat:n.filter(r=>r.status===1).map(r=>({name:r.name,image_url:r.imgname,url:r.url})),mobileValidate:e.mobilevalidate?e.mobilevalidate=="1":!1}},fe=e=>{let t=[];e.mobileBanner&&(t=e.mobileBanner);let n=[];e.mobileAd&&(n=e.mobileAd);let r=[];return e.mobileAbout&&(r=e.mobileAbout),{banner:t.map(s=>`${s.imagepath}?${s.filemtime}`),ad:n.map(s=>`${s.imagepath}?${s.filemtime}`),about:r.map(s=>({name:s.name,content:s.content}))}},be=e=>e.data.filter(t=>t.status==="1").map(t=>({code:t.area_code,regex:t.regex,value:t.value})),ye=e=>e,_e=e=>{let t=null;return e?e.status!=1?t=0:t=e.mainwallet:t=0,{amount:t}},he=e=>e.data.filter(t=>t.status=="1").map(t=>({name:t.title,icon_url:t.flag_icon,code:t.code})),ve=e=>(console.log(e),{name:""}),Se=e=>e.data.filter(t=>t.company_status==1).map(t=>({id:t.company_id,name:t.company_name,date:[]})),xe=e=>e.data.map(t=>({id:t.key,date:t.draw_date.map(n=>Le(n.draw_tmactive))}));function Le(e){const t=new Date(e*1e3),n=t.getFullYear(),r=("0"+(t.getMonth()+1)).slice(-2),s=("0"+t.getDate()).slice(-2);return`${n}-${r}-${s}`}const Te=e=>e.data.map(t=>({id:t.company_id,list:t.drawCount.map(n=>({combination:n.combination_combination,total:n.total}))})),Re=e=>e.data.map(t=>({id:t.company_id,resultByDateList:t.draws.map(n=>{const r=n.results.filter(a=>a.combination_dimension==3).map(a=>a.combination_combination),s=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==1).map(a=>a.combination_combination),c=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==2).map(a=>a.combination_combination),f=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==3).map(a=>a.combination_combination),d=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==4).map(a=>a.combination_combination),b=n.results.filter(a=>a.combination_dimension==4&&a.combination_position==5).map(a=>a.combination_combination),y=n.results.filter(a=>a.combination_dimension==5&&a.combination_position==1).map(a=>a.combination_combination),_=n.results.filter(a=>a.combination_dimension==5).map(a=>a.combination_combination),S=n.results.filter(a=>a.combination_dimension==6&&a.combination_position==1).map(a=>a.combination_combination),v=n.results.filter(a=>a.combination_dimension==6).map(a=>a.combination_combination);return{date:n.date,3:r,4:{1:s,2:c,3:f,4:d,5:b},5:{1:y,all:_},6:{1:S,all:v}}})})),z=Object.freeze(Object.defineProperty({__proto__:null,post:async e=>{var t,n,r,s,c,f,d,b,y,_,S;try{e.findIndex(l=>l.name===i.vipList)!==-1&&e.push({name:i.vipBonus,query:""},{name:i.vipFieldStatus,query:""},{name:i.vipStatus,query:""},{name:i.getSetting,query:JSON.stringify({name:["vipcalculation"]})}),e.findIndex(l=>l.name===i.gameList)!==-1&&e.push({name:i.getPlatformTurnoverRate,query:""});const g=e.findIndex(l=>l.name===i.getFourDimensionData);g!==-1&&e[g].query==""&&(e.splice(g),e.push({name:i.getFourDimensionData,query:JSON.stringify({action:"getCompany",native:"1"})},{name:i.getFourDimensionData,query:JSON.stringify({action:"searchResultDate",limit:100,company:[],native:"1",splitCompany:"1"})}));const O={requests:e.map(l=>({name:l.name,query:btoa(l.query)}))},B=await M.post("/jwt",ee(JSON.stringify(O))),o={status:200,message:"",result:{}};for(const l of B.data.responses){l.error!=null&&l.error.code!=200&&(o.status=l.error.code,o.message=l.error.message);const h=l.attributes!==null&&l.attributes!==void 0?te(l.attributes):null,u=l.name,m=h?JSON.parse(h):null;if(!m)o.result[u]=null;else switch(u){case i.announcement:o.result[u]=ie(m);break;case i.gameList:o.result[u]=le(m);break;case i.cmsList:o.result[u]=fe(m);break;case i.paymentsProvider:o.result[u]=ne(m);break;case i.getUserProfile:o.result[u]=re(m);break;case i.vipList:o.result[u]=ue(m);break;case i.vipBonus:o.result[u]=ce(m);break;case i.vipFieldStatus:o.result[u]=de(m);break;case i.vipStatus:o.result[u]=pe(m);break;case i.promotion:o.result[u]=me(m);break;case i.getSetting:o.result[u]=ge(m);break;case i.getCountryMobile:o.result[u]=be(m);break;case i.getPlatformTurnoverRate:o.result[u]=ye(m);break;case i.mainWallet:o.result[u]=_e(m);break;case i.getLanguageSetting:o.result[u]=he(m);break;case i.getFourDimensionData:o.result[u]=ve(m);break;case i.getCompany:o.result[u]=Se(m);break;case i.searchResultDate:o.result[u]=xe(m);break;case i.searchHot:o.result[u]=Te(m);break;case i.searchByDate:o.result[u]=Re(m);break}}if(i.vipList in o.result&&((t=o.result)!=null&&t.vipList)){const l=o.result.vipList;let h=4;if(i.getSetting in o.result&&((n=o.result)!=null&&n.getSetting)&&(h=o.result.getSetting.vip_calculation,delete o.result.getSetting),i.vipBonus in o.result&&((r=o.result)!=null&&r.vipBonus)&&(l.bonus=o.result.vipBonus,delete o.result.vipBonus),i.vipFieldStatus in o.result&&((s=o.result)!=null&&s.vipFieldStatus)&&(console.log(o.result.vipFieldStatus),delete o.result.vipFieldStatus),i.vipStatus in o.result&&((c=o.result)!=null&&c.vipStatus)){const u=o.result.vipStatus,{current_grade_id:m,current_deposit:R,current_turnover:q,percentage:Pe}=u,A=l.list.findIndex(T=>T.id===m);l.list=l.list.map((T,G)=>{const w=G===A;let N="0",j="0",C=0;return w?(N=`${Math.min(Number(R),Number(T.deposit.total))}`,j=`${Math.min(Number(q),Number(T.turnover.total))}`,C=Pe):G<A?(N=T.deposit.total,j=T.turnover.total,C=1):G>A&&(N="0.00",j="0.00",C=0),{...T,is_current_level:w,deposit:{...T.deposit,isShow:h===1||h===3||h===4,current:N},turnover:{...T.turnover,isShow:h===2||h===3||h===4,current:j},percentage:C}}),delete o.result.vipStatus}o.result.vipList=l}if(i.gameList in o.result&&((f=o.result)!=null&&f.gameList)){const l=o.result.gameList;if(i.getPlatformTurnoverRate in o.result&&((d=o.result)!=null&&d.getPlatformTurnoverRate)){const h=o.result.getPlatformTurnoverRate;l.forEach(u=>{u.list=u.list.map(m=>{const R=h.find(q=>q.id===m.id);return{...m,rate:(R==null?void 0:R.percentage)??"0.00"}})}),delete o.result.getPlatformTurnoverRate}o.result.gameList=l}if(i.getCompany in o.result&&((b=o.result)!=null&&b.getCompany)){const l=o.result.getCompany;if(i.searchResultDate in o.result&&((y=o.result)!=null&&y.searchResultDate)){const h=o.result.searchResultDate;l.forEach(u=>{const m=h.find(R=>R.id==u.id);m&&(u.date=m==null?void 0:m.date)}),delete o.result.searchResultDate}o.result.getCompany=l}return o}catch(v){return D.isAxiosError(v)?{status:((_=v.response)==null?void 0:_.status)||600,message:JSON.stringify((S=v.response)==null?void 0:S.data),result:{}}:(console.error(v),{status:v.status||500,message:v.message,result:{}})}}},Symbol.toStringTag,{value:"Module"})),E=Object.freeze(Object.defineProperty({__proto__:null,call:async(e,t)=>{try{const n={status:200,message:""};return await M.post("/auth/sesh",JSON.stringify({usr:e,pwd:t})),n}catch(n){return console.error(`login: ${JSON.stringify(n)}`),{status:n.status||500,message:n.message}}}},Symbol.toStringTag,{value:"Module"})),J=Object.freeze(Object.defineProperty({__proto__:null,call:async()=>{try{const e={status:200,message:""};return await M.post("/auth/sesh/logout"),e}catch(e){return console.error(`login: ${JSON.stringify(e)}`),{status:e.status||500,message:e.message}}}},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),De={api:z,loginApi:E,logoutApi:J,apiType:$,loginType:W,logoutType:V,announcementType:H,paymentsProviderType:U,gameListType:Y,vipListType:K,promotionType:Q,cmsListType:X,mainWalletType:Z},Me={install(e){e.config.globalProperties.$library=De}};p.Repository=Me,p.announcementType=H,p.api=z,p.apiType=$,p.cmsListType=X,p.gameListType=Y,p.loginApi=E,p.loginType=W,p.logoutApi=J,p.logoutType=V,p.mainWalletType=Z,p.paymentsProviderType=U,p.promotionType=Q,p.vipListType=K,Object.defineProperty(p,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;AA8BnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CA0SnB,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;AA+BnF,eAAO,MAAM,IAAI,GAAU,CAAC,SAAS,MAAM,cAAc,YAC7C,cAAc,CAAC,CAAC,CAAC,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CA6SnB,CAAA"}
@@ -17,6 +17,7 @@ import { getFourDimensionDataResponse } from '../model/getFourDimensionData/type
17
17
  import { getCompanyResponse } from '../model/getCompany/type';
18
18
  import { searchResultDateResponse } from '../model/searchResultDate/type';
19
19
  import { searchHotResponse } from '../model/searchHot/type';
20
+ import { searchByDateResponse } from '../model/searchByDate/type';
20
21
 
21
22
  export declare enum Api {
22
23
  announcement = "announcement",
@@ -38,7 +39,8 @@ export declare enum Api {
38
39
  getFourDimensionData = "getfourDimensionData",
39
40
  getCompany = "getCompany",
40
41
  searchResultDate = "searchResultDate",
41
- searchHot = "searchHot"
42
+ searchHot = "searchHot",
43
+ searchByDate = "searchByDate"
42
44
  }
43
45
  export type ApiResponseMap = {
44
46
  [Api.announcement]: AnnouncementResponse;
@@ -61,6 +63,7 @@ export type ApiResponseMap = {
61
63
  [Api.getCompany]: getCompanyResponse;
62
64
  [Api.searchResultDate]: searchResultDateResponse;
63
65
  [Api.searchHot]: searchHotResponse;
66
+ [Api.searchByDate]: searchByDateResponse;
64
67
  };
65
68
  export type ApiResponse<T extends keyof ApiResponseMap> = ApiResponseMap[T];
66
69
  export type RequestPayload<T extends keyof ApiResponseMap> = {
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/api/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAA;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0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AAA;CAChB"}
@@ -0,0 +1,32 @@
1
+ import { searchByDateResponse } from './type';
2
+
3
+ export declare const getSearchByDateResponse: (raw: RawSearchByDateResponse) => searchByDateResponse;
4
+ type RawSearchByDateResponse = {
5
+ status: number;
6
+ message: string | null;
7
+ errormessage: string | null;
8
+ data: {
9
+ company_code: string;
10
+ company_id: number;
11
+ company_name: string;
12
+ company_nameshort: string;
13
+ company_status: number;
14
+ draws: {
15
+ date: string;
16
+ draw_fkcompany: number;
17
+ draw_id: number;
18
+ draw_identifier: string;
19
+ draw_tmactive: number;
20
+ results: {
21
+ combination_combination: string;
22
+ combination_dimension: number;
23
+ combination_fkcompany: number;
24
+ combination_fkdraw: number;
25
+ combination_id: number;
26
+ combination_position: number;
27
+ }[];
28
+ }[];
29
+ }[];
30
+ };
31
+ export {};
32
+ //# sourceMappingURL=getSearchByDateResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSearchByDateResponse.d.ts","sourceRoot":"","sources":["../../../src/model/searchByDate/getSearchByDateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,eAAO,MAAM,uBAAuB,QAC7B,uBAAuB,KAC3B,oBAiFF,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,IAAI,EAAE;QACJ,YAAY,EAAE,MAAM,CAAA;QACpB,UAAU,EAAE,MAAM,CAAA;QAClB,YAAY,EAAE,MAAM,CAAA;QACpB,iBAAiB,EAAE,MAAM,CAAA;QACzB,cAAc,EAAE,MAAM,CAAA;QACtB,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAA;YACZ,cAAc,EAAE,MAAM,CAAA;YACtB,OAAO,EAAE,MAAM,CAAA;YACf,eAAe,EAAE,MAAM,CAAA;YACvB,aAAa,EAAE,MAAM,CAAA;YACrB,OAAO,EAAE;gBACP,uBAAuB,EAAE,MAAM,CAAA;gBAC/B,qBAAqB,EAAE,MAAM,CAAA;gBAC7B,qBAAqB,EAAE,MAAM,CAAA;gBAC7B,kBAAkB,EAAE,MAAM,CAAA;gBAC1B,cAAc,EAAE,MAAM,CAAA;gBACtB,oBAAoB,EAAE,MAAM,CAAA;aAC7B,EAAE,CAAA;SACJ,EAAE,CAAA;KACJ,EAAE,CAAA;CACJ,CAAA"}
@@ -0,0 +1,23 @@
1
+ export type searchByDateResponse = {
2
+ id: number;
3
+ resultByDateList: {
4
+ date: string;
5
+ '3': string[];
6
+ '4': {
7
+ '1': string[];
8
+ '2': string[];
9
+ '3': string[];
10
+ '4': string[];
11
+ '5': string[];
12
+ };
13
+ '5': {
14
+ '1': string[];
15
+ all: string[];
16
+ };
17
+ '6': {
18
+ '1': string[];
19
+ all: string[];
20
+ };
21
+ }[];
22
+ }[];
23
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/model/searchByDate/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,gBAAgB,EAAE;QAChB,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,EAAE,CAAA;QACb,GAAG,EAAE;YACH,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;SACd,CAAA;QACD,GAAG,EAAE;YACH,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;SACd,CAAA;QACD,GAAG,EAAE;YACH,GAAG,EAAE,MAAM,EAAE,CAAA;YACb,GAAG,EAAE,MAAM,EAAE,CAAA;SACd,CAAA;KACF,EAAE,CAAA;CACJ,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "60p82u21t54k",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "description": "A description of your library",
5
5
  "main": "dist/60p82u21t54k.umd.js",
6
6
  "module": "dist/60p82u21t54k.es.js",