@everymatrix/casino-header-controller 1.54.0 → 1.54.2

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,29 +1,11 @@
1
- var Q = (i, p, u) => new Promise((l, g) => {
2
- var L = (c) => {
3
- try {
4
- m(u.next(c));
5
- } catch (S) {
6
- g(S);
7
- }
8
- }, w = (c) => {
9
- try {
10
- m(u.throw(c));
11
- } catch (S) {
12
- g(S);
13
- }
14
- }, m = (c) => c.done ? l(c.value) : Promise.resolve(c.value).then(L, w);
15
- m((u = u.apply(i, p)).next());
16
- });
17
- import { b as ie, p as ae, r as oe, h as b, H as se } from "./index-33f005e1-C1RAKo1w.js";
18
- import { g as de } from "./app-globals-0f993ce5-D-kw1sls.js";
19
- var ue = () => {
1
+ import { b as ne, p as ie, r as ae, h as D, H as oe } from "./index-33f005e1-BLR6jtB3.js";
2
+ import { g as se } from "./app-globals-0f993ce5-D-kw1sls.js";
3
+ var de = () => {
20
4
  const i = import.meta.url, p = {};
21
- return i !== "" && (p.resourcesUrl = new URL(".", i).href), ae(p);
5
+ return i !== "" && (p.resourcesUrl = new URL(".", i).href), ie(p);
22
6
  };
23
- ue().then((i) => Q(void 0, null, function* () {
24
- return yield de(), ie([["user-deposit-withdrawal", [[1, "user-deposit-withdrawal", { clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], endpoint: [513], type: [513], channel: [513], language: [513], productType: [513, "product-type"], userId: [513, "user-id"], session: [513], successUrl: [513, "success-url"], cancelUrl: [513, "cancel-url"], failUrl: [513, "fail-url"], sportsUrl: [513, "sports-url"], casinoUrl: [513, "casino-url"], contactUrl: [513, "contact-url"], depositUrl: [513, "deposit-url"], currency: [513], showBonusSelectionInput: [513, "show-bonus-selection-input"], isShortCashier: [516, "is-short-cashier"], homeUrl: [513, "home-url"], beforeRedirect: [16], limitStylingAppends: [32], dynamicHeight: [32], cashierInfoUrl: [32] }, null, { session: ["watchLoadWidget"], userId: ["watchLoadWidget"], isShortCashier: ["watchLoadWidget"], currency: ["watchLoadWidget"], showBonusSelectionInput: ["watchLoadWidget"] }]]]], i);
25
- }));
26
- const ce = "en", le = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es", "de", "pt", "tr"], X = {
7
+ de().then(async (i) => (await se(), ne([["user-deposit-withdrawal", [[1, "user-deposit-withdrawal", { clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], endpoint: [513], type: [513], channel: [513], language: [513], productType: [513, "product-type"], userId: [513, "user-id"], session: [513], successUrl: [513, "success-url"], cancelUrl: [513, "cancel-url"], failUrl: [513, "fail-url"], sportsUrl: [513, "sports-url"], casinoUrl: [513, "casino-url"], contactUrl: [513, "contact-url"], depositUrl: [513, "deposit-url"], currency: [513], showBonusSelectionInput: [513, "show-bonus-selection-input"], isShortCashier: [516, "is-short-cashier"], homeUrl: [513, "home-url"], beforeRedirect: [16], limitStylingAppends: [32], dynamicHeight: [32], cashierInfoUrl: [32] }, null, { session: ["watchLoadWidget"], userId: ["watchLoadWidget"], isShortCashier: ["watchLoadWidget"], currency: ["watchLoadWidget"], showBonusSelectionInput: ["watchLoadWidget"] }]]]], i)));
8
+ const ue = "en", ce = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es", "de", "pt", "tr"], K = {
27
9
  en: {
28
10
  Deposit: "Deposit",
29
11
  Withdraw: "Withdraw",
@@ -123,39 +105,39 @@ const ce = "en", le = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
123
105
  errorCode21122: "Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",
124
106
  errorCode21123: "Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"
125
107
  }
126
- }, he = (i) => new Promise((p) => {
108
+ }, le = (i) => new Promise((p) => {
127
109
  fetch(i).then((u) => u.json()).then((u) => {
128
110
  Object.keys(u).forEach((l) => {
129
111
  for (let g in u[l])
130
- X[l][g] = u[l][g];
112
+ K[l][g] = u[l][g];
131
113
  }), p(!0);
132
114
  });
133
115
  }), H = (i, p) => {
134
116
  const u = p;
135
- return X[u !== void 0 && le.includes(u) ? u : ce][i];
136
- }, fe = (i) => !!(i.toLowerCase().match(/android/i) || i.toLowerCase().match(/blackberry|bb/i) || i.toLowerCase().match(/iphone|ipad|ipod/i) || i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
137
- var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, te = { exports: {} };
117
+ return K[u !== void 0 && ce.includes(u) ? u : ue][i];
118
+ }, he = (i) => !!(i.toLowerCase().match(/android/i) || i.toLowerCase().match(/blackberry|bb/i) || i.toLowerCase().match(/iphone|ipad|ipod/i) || i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
119
+ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ee = { exports: {} };
138
120
  (function(i, p) {
139
121
  (function(u, l) {
140
122
  i.exports = l();
141
- })(ee, function() {
142
- var u = 1e3, l = 6e4, g = 36e5, L = "millisecond", w = "second", m = "minute", c = "hour", S = "day", q = "week", M = "month", N = "quarter", k = "year", O = "date", o = "Invalid Date", W = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(a) {
123
+ })(X, function() {
124
+ var u = 1e3, l = 6e4, g = 36e5, L = "millisecond", $ = "second", y = "minute", c = "hour", T = "day", q = "week", b = "month", N = "quarter", k = "year", O = "date", o = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(a) {
143
125
  var r = ["th", "st", "nd", "rd"], e = a % 100;
144
126
  return "[" + a + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
145
- } }, U = function(a, r, e) {
127
+ } }, W = function(a, r, e) {
146
128
  var n = String(a);
147
129
  return !n || n.length >= r ? a : "" + Array(r + 1 - n.length).join(e) + a;
148
- }, G = { s: U, z: function(a) {
130
+ }, G = { s: W, z: function(a) {
149
131
  var r = -a.utcOffset(), e = Math.abs(r), n = Math.floor(e / 60), t = e % 60;
150
- return (r <= 0 ? "+" : "-") + U(n, 2, "0") + ":" + U(t, 2, "0");
132
+ return (r <= 0 ? "+" : "-") + W(n, 2, "0") + ":" + W(t, 2, "0");
151
133
  }, m: function a(r, e) {
152
134
  if (r.date() < e.date()) return -a(e, r);
153
- var n = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(n, M), s = e - t < 0, d = r.clone().add(n + (s ? -1 : 1), M);
135
+ var n = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(n, b), s = e - t < 0, d = r.clone().add(n + (s ? -1 : 1), b);
154
136
  return +(-(n + (e - t) / (s ? t - d : d - t)) || 0);
155
137
  }, a: function(a) {
156
138
  return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
157
139
  }, p: function(a) {
158
- return { M, y: k, w: q, d: S, D: O, h: c, m, s: w, ms: L, Q: N }[a] || String(a || "").toLowerCase().replace(/s$/, "");
140
+ return { M: b, y: k, w: q, d: T, D: O, h: c, m: y, s: $, ms: L, Q: N }[a] || String(a || "").toLowerCase().replace(/s$/, "");
159
141
  }, u: function(a) {
160
142
  return a === void 0;
161
143
  } }, E = "en", z = {};
@@ -175,13 +157,13 @@ var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
175
157
  z[f] = r, t = f;
176
158
  }
177
159
  return !n && t && (E = t), t || !n && E;
178
- }, C = function(a, r) {
160
+ }, w = function(a, r) {
179
161
  if (A(a)) return a.clone();
180
162
  var e = typeof r == "object" ? r : {};
181
163
  return e.date = a, e.args = arguments, new Z(e);
182
164
  }, h = G;
183
165
  h.l = j, h.i = A, h.w = function(a, r) {
184
- return C(a, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
166
+ return w(a, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
185
167
  };
186
168
  var Z = function() {
187
169
  function a(e) {
@@ -195,10 +177,10 @@ var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
195
177
  if (h.u(t)) return /* @__PURE__ */ new Date();
196
178
  if (t instanceof Date) return new Date(t);
197
179
  if (typeof t == "string" && !/Z$/i.test(t)) {
198
- var d = t.match(W);
180
+ var d = t.match(M);
199
181
  if (d) {
200
- var f = d[2] - 1 || 0, y = (d[7] || "0").substring(0, 3);
201
- return s ? new Date(Date.UTC(d[1], f, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, y)) : new Date(d[1], f, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, y);
182
+ var f = d[2] - 1 || 0, m = (d[7] || "0").substring(0, 3);
183
+ return s ? new Date(Date.UTC(d[1], f, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, m)) : new Date(d[1], f, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, m);
202
184
  }
203
185
  }
204
186
  return new Date(t);
@@ -211,12 +193,12 @@ var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
211
193
  }, r.isValid = function() {
212
194
  return this.$d.toString() !== o;
213
195
  }, r.isSame = function(e, n) {
214
- var t = C(e);
196
+ var t = w(e);
215
197
  return this.startOf(n) <= t && t <= this.endOf(n);
216
198
  }, r.isAfter = function(e, n) {
217
- return C(e) < this.startOf(n);
199
+ return w(e) < this.startOf(n);
218
200
  }, r.isBefore = function(e, n) {
219
- return this.endOf(n) < C(e);
201
+ return this.endOf(n) < w(e);
220
202
  }, r.$g = function(e, n, t) {
221
203
  return h.u(e) ? this[n] : this.set(t, e);
222
204
  }, r.unix = function() {
@@ -224,40 +206,40 @@ var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
224
206
  }, r.valueOf = function() {
225
207
  return this.$d.getTime();
226
208
  }, r.startOf = function(e, n) {
227
- var t = this, s = !!h.u(n) || n, d = h.p(e), f = function(R, D) {
228
- var x = h.w(t.$u ? Date.UTC(t.$y, D, R) : new Date(t.$y, D, R), t);
229
- return s ? x : x.endOf(S);
230
- }, y = function(R, D) {
231
- return h.w(t.toDate()[R].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), t);
232
- }, $ = this.$W, v = this.$M, T = this.$D, P = "set" + (this.$u ? "UTC" : "");
209
+ var t = this, s = !!h.u(n) || n, d = h.p(e), f = function(R, S) {
210
+ var x = h.w(t.$u ? Date.UTC(t.$y, S, R) : new Date(t.$y, S, R), t);
211
+ return s ? x : x.endOf(T);
212
+ }, m = function(R, S) {
213
+ return h.w(t.toDate()[R].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(S)), t);
214
+ }, C = this.$W, v = this.$M, U = this.$D, P = "set" + (this.$u ? "UTC" : "");
233
215
  switch (d) {
234
216
  case k:
235
217
  return s ? f(1, 0) : f(31, 11);
236
- case M:
218
+ case b:
237
219
  return s ? f(1, v) : f(0, v + 1);
238
220
  case q:
239
- var _ = this.$locale().weekStart || 0, B = ($ < _ ? $ + 7 : $) - _;
240
- return f(s ? T - B : T + (6 - B), v);
241
- case S:
221
+ var _ = this.$locale().weekStart || 0, B = (C < _ ? C + 7 : C) - _;
222
+ return f(s ? U - B : U + (6 - B), v);
223
+ case T:
242
224
  case O:
243
- return y(P + "Hours", 0);
225
+ return m(P + "Hours", 0);
244
226
  case c:
245
- return y(P + "Minutes", 1);
246
- case m:
247
- return y(P + "Seconds", 2);
248
- case w:
249
- return y(P + "Milliseconds", 3);
227
+ return m(P + "Minutes", 1);
228
+ case y:
229
+ return m(P + "Seconds", 2);
230
+ case $:
231
+ return m(P + "Milliseconds", 3);
250
232
  default:
251
233
  return this.clone();
252
234
  }
253
235
  }, r.endOf = function(e) {
254
236
  return this.startOf(e, !1);
255
237
  }, r.$set = function(e, n) {
256
- var t, s = h.p(e), d = "set" + (this.$u ? "UTC" : ""), f = (t = {}, t[S] = d + "Date", t[O] = d + "Date", t[M] = d + "Month", t[k] = d + "FullYear", t[c] = d + "Hours", t[m] = d + "Minutes", t[w] = d + "Seconds", t[L] = d + "Milliseconds", t)[s], y = s === S ? this.$D + (n - this.$W) : n;
257
- if (s === M || s === k) {
258
- var $ = this.clone().set(O, 1);
259
- $.$d[f](y), $.init(), this.$d = $.set(O, Math.min(this.$D, $.daysInMonth())).$d;
260
- } else f && this.$d[f](y);
238
+ var t, s = h.p(e), d = "set" + (this.$u ? "UTC" : ""), f = (t = {}, t[T] = d + "Date", t[O] = d + "Date", t[b] = d + "Month", t[k] = d + "FullYear", t[c] = d + "Hours", t[y] = d + "Minutes", t[$] = d + "Seconds", t[L] = d + "Milliseconds", t)[s], m = s === T ? this.$D + (n - this.$W) : n;
239
+ if (s === b || s === k) {
240
+ var C = this.clone().set(O, 1);
241
+ C.$d[f](m), C.init(), this.$d = C.set(O, Math.min(this.$D, C.daysInMonth())).$d;
242
+ } else f && this.$d[f](m);
261
243
  return this.init(), this;
262
244
  }, r.set = function(e, n) {
263
245
  return this.clone().$set(e, n);
@@ -267,29 +249,29 @@ var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
267
249
  var t, s = this;
268
250
  e = Number(e);
269
251
  var d = h.p(n), f = function(v) {
270
- var T = C(s);
271
- return h.w(T.date(T.date() + Math.round(v * e)), s);
252
+ var U = w(s);
253
+ return h.w(U.date(U.date() + Math.round(v * e)), s);
272
254
  };
273
- if (d === M) return this.set(M, this.$M + e);
255
+ if (d === b) return this.set(b, this.$M + e);
274
256
  if (d === k) return this.set(k, this.$y + e);
275
- if (d === S) return f(1);
257
+ if (d === T) return f(1);
276
258
  if (d === q) return f(7);
277
- var y = (t = {}, t[m] = l, t[c] = g, t[w] = u, t)[d] || 1, $ = this.$d.getTime() + e * y;
278
- return h.w($, this);
259
+ var m = (t = {}, t[y] = l, t[c] = g, t[$] = u, t)[d] || 1, C = this.$d.getTime() + e * m;
260
+ return h.w(C, this);
279
261
  }, r.subtract = function(e, n) {
280
262
  return this.add(-1 * e, n);
281
263
  }, r.format = function(e) {
282
264
  var n = this, t = this.$locale();
283
265
  if (!this.isValid()) return t.invalidDate || o;
284
- var s = e || "YYYY-MM-DDTHH:mm:ssZ", d = h.z(this), f = this.$H, y = this.$m, $ = this.$M, v = t.weekdays, T = t.months, P = t.meridiem, _ = function(D, x, V, J) {
285
- return D && (D[x] || D(n, s)) || V[x].slice(0, J);
286
- }, B = function(D) {
287
- return h.s(f % 12 || 12, D, "0");
288
- }, R = P || function(D, x, V) {
289
- var J = D < 12 ? "AM" : "PM";
266
+ var s = e || "YYYY-MM-DDTHH:mm:ssZ", d = h.z(this), f = this.$H, m = this.$m, C = this.$M, v = t.weekdays, U = t.months, P = t.meridiem, _ = function(S, x, V, J) {
267
+ return S && (S[x] || S(n, s)) || V[x].slice(0, J);
268
+ }, B = function(S) {
269
+ return h.s(f % 12 || 12, S, "0");
270
+ }, R = P || function(S, x, V) {
271
+ var J = S < 12 ? "AM" : "PM";
290
272
  return V ? J.toLowerCase() : J;
291
273
  };
292
- return s.replace(I, function(D, x) {
274
+ return s.replace(I, function(S, x) {
293
275
  return x || function(V) {
294
276
  switch (V) {
295
277
  case "YY":
@@ -297,13 +279,13 @@ var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
297
279
  case "YYYY":
298
280
  return h.s(n.$y, 4, "0");
299
281
  case "M":
300
- return $ + 1;
282
+ return C + 1;
301
283
  case "MM":
302
- return h.s($ + 1, 2, "0");
284
+ return h.s(C + 1, 2, "0");
303
285
  case "MMM":
304
- return _(t.monthsShort, $, T, 3);
286
+ return _(t.monthsShort, C, U, 3);
305
287
  case "MMMM":
306
- return _(T, $);
288
+ return _(U, C);
307
289
  case "D":
308
290
  return n.$D;
309
291
  case "DD":
@@ -325,13 +307,13 @@ var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
325
307
  case "hh":
326
308
  return B(2);
327
309
  case "a":
328
- return R(f, y, !0);
310
+ return R(f, m, !0);
329
311
  case "A":
330
- return R(f, y, !1);
312
+ return R(f, m, !1);
331
313
  case "m":
332
- return String(y);
314
+ return String(m);
333
315
  case "mm":
334
- return h.s(y, 2, "0");
316
+ return h.s(m, 2, "0");
335
317
  case "s":
336
318
  return String(n.$s);
337
319
  case "ss":
@@ -342,37 +324,37 @@ var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
342
324
  return d;
343
325
  }
344
326
  return null;
345
- }(D) || d.replace(":", "");
327
+ }(S) || d.replace(":", "");
346
328
  });
347
329
  }, r.utcOffset = function() {
348
330
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
349
331
  }, r.diff = function(e, n, t) {
350
- var s, d = this, f = h.p(n), y = C(e), $ = (y.utcOffset() - this.utcOffset()) * l, v = this - y, T = function() {
351
- return h.m(d, y);
332
+ var s, d = this, f = h.p(n), m = w(e), C = (m.utcOffset() - this.utcOffset()) * l, v = this - m, U = function() {
333
+ return h.m(d, m);
352
334
  };
353
335
  switch (f) {
354
336
  case k:
355
- s = T() / 12;
337
+ s = U() / 12;
356
338
  break;
357
- case M:
358
- s = T();
339
+ case b:
340
+ s = U();
359
341
  break;
360
342
  case N:
361
- s = T() / 3;
343
+ s = U() / 3;
362
344
  break;
363
345
  case q:
364
- s = (v - $) / 6048e5;
346
+ s = (v - C) / 6048e5;
365
347
  break;
366
- case S:
367
- s = (v - $) / 864e5;
348
+ case T:
349
+ s = (v - C) / 864e5;
368
350
  break;
369
351
  case c:
370
352
  s = v / g;
371
353
  break;
372
- case m:
354
+ case y:
373
355
  s = v / l;
374
356
  break;
375
- case w:
357
+ case $:
376
358
  s = v / u;
377
359
  break;
378
360
  default:
@@ -380,7 +362,7 @@ var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
380
362
  }
381
363
  return t ? s : h.a(s);
382
364
  }, r.daysInMonth = function() {
383
- return this.endOf(M).$D;
365
+ return this.endOf(b).$D;
384
366
  }, r.$locale = function() {
385
367
  return z[this.$L];
386
368
  }, r.locale = function(e, n) {
@@ -398,39 +380,39 @@ var ee = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
398
380
  }, r.toString = function() {
399
381
  return this.$d.toUTCString();
400
382
  }, a;
401
- }(), K = Z.prototype;
402
- return C.prototype = K, [["$ms", L], ["$s", w], ["$m", m], ["$H", c], ["$W", S], ["$M", M], ["$y", k], ["$D", O]].forEach(function(a) {
403
- K[a[1]] = function(r) {
383
+ }(), Q = Z.prototype;
384
+ return w.prototype = Q, [["$ms", L], ["$s", $], ["$m", y], ["$H", c], ["$W", T], ["$M", b], ["$y", k], ["$D", O]].forEach(function(a) {
385
+ Q[a[1]] = function(r) {
404
386
  return this.$g(r, a[0], a[1]);
405
387
  };
406
- }), C.extend = function(a, r) {
407
- return a.$i || (a(r, Z, C), a.$i = !0), C;
408
- }, C.locale = j, C.isDayjs = A, C.unix = function(a) {
409
- return C(1e3 * a);
410
- }, C.en = z[E], C.Ls = z, C.p = {}, C;
388
+ }), w.extend = function(a, r) {
389
+ return a.$i || (a(r, Z, w), a.$i = !0), w;
390
+ }, w.locale = j, w.isDayjs = A, w.unix = function(a) {
391
+ return w(1e3 * a);
392
+ }, w.en = z[E], w.Ls = z, w.p = {}, w;
411
393
  });
412
- })(te);
413
- const re = te.exports;
414
- var ne = { exports: {} };
394
+ })(ee);
395
+ const te = ee.exports;
396
+ var re = { exports: {} };
415
397
  (function(i, p) {
416
398
  (function(u, l) {
417
399
  i.exports = l();
418
- })(ee, function() {
400
+ })(X, function() {
419
401
  var u = "minute", l = /[+-]\d\d(?::?\d\d)?/g, g = /([+-]|\d\d)/g;
420
- return function(L, w, m) {
421
- var c = w.prototype;
422
- m.utc = function(o) {
423
- var W = { date: o, utc: !0, args: arguments };
424
- return new w(W);
402
+ return function(L, $, y) {
403
+ var c = $.prototype;
404
+ y.utc = function(o) {
405
+ var M = { date: o, utc: !0, args: arguments };
406
+ return new $(M);
425
407
  }, c.utc = function(o) {
426
- var W = m(this.toDate(), { locale: this.$L, utc: !0 });
427
- return o ? W.add(this.utcOffset(), u) : W;
408
+ var M = y(this.toDate(), { locale: this.$L, utc: !0 });
409
+ return o ? M.add(this.utcOffset(), u) : M;
428
410
  }, c.local = function() {
429
- return m(this.toDate(), { locale: this.$L, utc: !1 });
411
+ return y(this.toDate(), { locale: this.$L, utc: !1 });
430
412
  };
431
- var S = c.parse;
413
+ var T = c.parse;
432
414
  c.parse = function(o) {
433
- o.utc && (this.$u = !0), this.$utils().u(o.$offset) || (this.$offset = o.$offset), S.call(this, o);
415
+ o.utc && (this.$u = !0), this.$utils().u(o.$offset) || (this.$offset = o.$offset), T.call(this, o);
434
416
  };
435
417
  var q = c.init;
436
418
  c.init = function() {
@@ -439,10 +421,10 @@ var ne = { exports: {} };
439
421
  this.$y = o.getUTCFullYear(), this.$M = o.getUTCMonth(), this.$D = o.getUTCDate(), this.$W = o.getUTCDay(), this.$H = o.getUTCHours(), this.$m = o.getUTCMinutes(), this.$s = o.getUTCSeconds(), this.$ms = o.getUTCMilliseconds();
440
422
  } else q.call(this);
441
423
  };
442
- var M = c.utcOffset;
443
- c.utcOffset = function(o, W) {
424
+ var b = c.utcOffset;
425
+ c.utcOffset = function(o, M) {
444
426
  var I = this.$utils().u;
445
- if (I(o)) return this.$u ? 0 : I(this.$offset) ? M.call(this) : this.$offset;
427
+ if (I(o)) return this.$u ? 0 : I(this.$offset) ? b.call(this) : this.$offset;
446
428
  if (typeof o == "string" && (o = function(E) {
447
429
  E === void 0 && (E = "");
448
430
  var z = E.match(l);
@@ -450,18 +432,18 @@ var ne = { exports: {} };
450
432
  var Y = ("" + z[0]).match(g) || ["-", 0, 0], A = Y[0], j = 60 * +Y[1] + +Y[2];
451
433
  return j === 0 ? 0 : A === "+" ? j : -j;
452
434
  }(o), o === null)) return this;
453
- var F = Math.abs(o) <= 16 ? 60 * o : o, U = this;
454
- if (W) return U.$offset = F, U.$u = o === 0, U;
435
+ var F = Math.abs(o) <= 16 ? 60 * o : o, W = this;
436
+ if (M) return W.$offset = F, W.$u = o === 0, W;
455
437
  if (o !== 0) {
456
438
  var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
457
- (U = this.local().add(F + G, u)).$offset = F, U.$x.$localOffset = G;
458
- } else U = this.utc();
459
- return U;
439
+ (W = this.local().add(F + G, u)).$offset = F, W.$x.$localOffset = G;
440
+ } else W = this.utc();
441
+ return W;
460
442
  };
461
443
  var N = c.format;
462
444
  c.format = function(o) {
463
- var W = o || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
464
- return N.call(this, W);
445
+ var M = o || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
446
+ return N.call(this, M);
465
447
  }, c.valueOf = function() {
466
448
  var o = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
467
449
  return this.$d.valueOf() - 6e4 * o;
@@ -474,18 +456,18 @@ var ne = { exports: {} };
474
456
  };
475
457
  var k = c.toDate;
476
458
  c.toDate = function(o) {
477
- return o === "s" && this.$offset ? m(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
459
+ return o === "s" && this.$offset ? y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
478
460
  };
479
461
  var O = c.diff;
480
- c.diff = function(o, W, I) {
481
- if (o && this.$u === o.$u) return O.call(this, o, W, I);
482
- var F = this.local(), U = m(o).local();
483
- return O.call(F, U, W, I);
462
+ c.diff = function(o, M, I) {
463
+ if (o && this.$u === o.$u) return O.call(this, o, M, I);
464
+ var F = this.local(), W = y(o).local();
465
+ return O.call(F, W, M, I);
484
466
  };
485
467
  };
486
468
  });
487
- })(ne);
488
- const pe = ne.exports, me = `:host {
469
+ })(re);
470
+ const fe = re.exports, pe = `:host {
489
471
  font: inherit;
490
472
  display: block;
491
473
  height: 100%;
@@ -543,12 +525,12 @@ const pe = ne.exports, me = `:host {
543
525
  margin-top: 70px;
544
526
  text-align: center;
545
527
  color: var(--emw--color-black, #000000);
546
- }`, ge = me;
547
- re.extend(pe);
548
- const ye = () => {
549
- }, we = class {
528
+ }`, me = pe;
529
+ te.extend(fe);
530
+ const ge = () => {
531
+ }, ye = class {
550
532
  constructor(i) {
551
- oe(this, i), this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.currency = "", this.showBonusSelectionInput = "true", this.isShortCashier = !1, this.beforeRedirect = ye, this.limitStylingAppends = !1, this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = fe(this.userAgent), this.errorCodes = ["21123", "21122"], this.setClientStyling = () => {
533
+ ae(this, i), this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.currency = "", this.showBonusSelectionInput = "true", this.isShortCashier = !1, this.beforeRedirect = ge, this.limitStylingAppends = !1, this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = he(this.userAgent), this.errorCodes = ["21123", "21122"], this.setClientStyling = () => {
552
534
  let p = document.createElement("style");
553
535
  p.innerHTML = this.clientStyling, this.stylingContainer.prepend(p);
554
536
  }, this.setClientStylingURL = () => {
@@ -571,11 +553,9 @@ const ye = () => {
571
553
  watchLoadWidget() {
572
554
  this.loadWidget();
573
555
  }
574
- componentWillLoad() {
575
- return Q(this, null, function* () {
576
- if (yield this.loadWidget(), this.translationUrl)
577
- return he(this.translationUrl);
578
- });
556
+ async componentWillLoad() {
557
+ if (await this.loadWidget(), this.translationUrl)
558
+ return le(this.translationUrl);
579
559
  }
580
560
  toggleScreen(i) {
581
561
  window.postMessage({ type: "PlayerAccountMenuActive", isMobile: i }, window.location.href);
@@ -590,57 +570,55 @@ const ye = () => {
590
570
  !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.limitStylingAppends = !0);
591
571
  }
592
572
  render() {
593
- return b(se, { key: "4c6783c9cccc65e31901eb8755729147da7c3771" }, b("div", { key: "afbbc15e1210ef1ade3c094b84c12485ff94e438", ref: (i) => this.stylingContainer = i }, !(this.isMobile && !this.isShortCashier) && b("h2", { key: "99b64c5ef99e55335c4f3066f448dd19a4eeaad0", class: "CategoryTitle" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), b("div", { key: "eba951ef1cb0f291a3a44fd89d8da8f70ee7eba8", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? "30px" : "0" } }, b("div", { key: "abd3d5958091437af76efb311a49a30f6ba4a7eb" }, this.isMobile && !this.isShortCashier ? b("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, b("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, b("defs", null), b("g", { transform: "translate(-20 -158)" }, b("g", { transform: "translate(20 158)" }, b("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), b("h2", { class: "CategoryTitleMobile" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? b("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : b("h3", { class: "ErrorMessage" }, this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language)))));
573
+ return D(oe, { key: "4c6783c9cccc65e31901eb8755729147da7c3771" }, D("div", { key: "afbbc15e1210ef1ade3c094b84c12485ff94e438", ref: (i) => this.stylingContainer = i }, !(this.isMobile && !this.isShortCashier) && D("h2", { key: "99b64c5ef99e55335c4f3066f448dd19a4eeaad0", class: "CategoryTitle" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), D("div", { key: "eba951ef1cb0f291a3a44fd89d8da8f70ee7eba8", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? "30px" : "0" } }, D("div", { key: "abd3d5958091437af76efb311a49a30f6ba4a7eb" }, this.isMobile && !this.isShortCashier ? D("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, D("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, D("defs", null), D("g", { transform: "translate(-20 -158)" }, D("g", { transform: "translate(20 158)" }, D("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), D("h2", { class: "CategoryTitleMobile" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? D("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : D("h3", { class: "ErrorMessage" }, this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language)))));
594
574
  }
595
- loadWidget() {
596
- return Q(this, null, function* () {
597
- const i = {
598
- Channel: this.channel,
599
- Type: this.typeParameter,
600
- SuccessUrl: this.successUrl,
601
- CancelUrl: this.cancelUrl,
602
- FailUrl: this.failUrl,
603
- Language: this.language,
604
- productType: this.productType,
605
- isShortCashier: this.isShortCashier,
606
- currency: this.currency,
607
- showBonusSelectionInput: this.showBonusSelectionInput
608
- };
609
- try {
610
- const p = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`, u = yield fetch(p, {
611
- method: "POST",
612
- headers: {
613
- "X-Sessionid": this.session,
614
- "Content-Type": "application/json",
615
- "X-Client-Request-Timestamp": re.utc().format("YYYY-MM-DD HH:mm:ss.SSS")
616
- },
617
- body: JSON.stringify(i)
618
- });
619
- if (!u.ok) {
620
- const g = yield u.text();
621
- throw new Error(g);
622
- }
623
- const l = yield u.json();
624
- if (l.CashierInfo)
625
- this.cashierInfoUrl = l.CashierInfo.Url;
626
- else {
627
- let g;
628
- if (l.ResponseMessage) {
629
- let w = this.errorCodes.find((m) => l.ResponseMessage.includes(m)) || null;
630
- w ? g = H(`errorCode${w}`, this.language) : g = H("notFoundErrorCode", this.language);
631
- } else
632
- g = this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language);
633
- const L = { type: "error", message: g };
634
- window.postMessage({ type: "DenyDepositOrWithdrawal", data: L }, window.location.href);
635
- }
636
- } catch (p) {
637
- console.error(p);
575
+ async loadWidget() {
576
+ const i = {
577
+ Channel: this.channel,
578
+ Type: this.typeParameter,
579
+ SuccessUrl: this.successUrl,
580
+ CancelUrl: this.cancelUrl,
581
+ FailUrl: this.failUrl,
582
+ Language: this.language,
583
+ productType: this.productType,
584
+ isShortCashier: this.isShortCashier,
585
+ currency: this.currency,
586
+ showBonusSelectionInput: this.showBonusSelectionInput
587
+ };
588
+ try {
589
+ const p = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`, u = await fetch(p, {
590
+ method: "POST",
591
+ headers: {
592
+ "X-Sessionid": this.session,
593
+ "Content-Type": "application/json",
594
+ "X-Client-Request-Timestamp": te.utc().format("YYYY-MM-DD HH:mm:ss.SSS")
595
+ },
596
+ body: JSON.stringify(i)
597
+ });
598
+ if (!u.ok) {
599
+ const g = await u.text();
600
+ throw new Error(g);
601
+ }
602
+ const l = await u.json();
603
+ if (l.CashierInfo)
604
+ this.cashierInfoUrl = l.CashierInfo.Url;
605
+ else {
606
+ let g;
607
+ if (l.ResponseMessage) {
608
+ let $ = this.errorCodes.find((y) => l.ResponseMessage.includes(y)) || null;
609
+ $ ? g = H(`errorCode${$}`, this.language) : g = H("notFoundErrorCode", this.language);
610
+ } else
611
+ g = this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language);
612
+ const L = { type: "error", message: g };
613
+ window.postMessage({ type: "DenyDepositOrWithdrawal", data: L }, window.location.href);
638
614
  }
639
- });
615
+ } catch (p) {
616
+ console.error(p);
617
+ }
640
618
  }
641
619
  handleMessage(i) {
642
- var p, u, l, g, L, w, m, c;
643
- i.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), i.data["MMFE:setQuickDepositHeight"] && this.isShortCashier && (this.dynamicHeight = i.data["MMFE:setQuickDepositHeight"].toString() + "px"), i.data["MMFE:setIFrameHeight"] && this.isShortCashier && (this.dynamicHeight = i.data["MMFE:setIFrameHeight"].toString() + "px"), ((p = i.data) === null || p === void 0 ? void 0 : p.type) === "mm-hcback-to-merchant" && this.doRedirect(i.data.type, this.homeUrl), ((u = i.data) === null || u === void 0 ? void 0 : u.redirect) === "mm-hc-back-tomerchant" && this.doRedirect(i.data.redirect, this.homeUrl), ((l = i.data) === null || l === void 0 ? void 0 : l.redirect) === "mm-hc-sports" && this.doRedirect((g = i.data) === null || g === void 0 ? void 0 : g.redirect, this.sportsUrl), ((L = i.data) === null || L === void 0 ? void 0 : L.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), ((w = i.data) === null || w === void 0 ? void 0 : w.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((m = i.data) === null || m === void 0 ? void 0 : m.redirect) === "mm-wm-hc-init-deposit" || ((c = i.data) === null || c === void 0 ? void 0 : c.redirect) === "mm-wm-hc-init-deposit-quick") && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.depositUrl));
620
+ var p, u, l, g, L, $, y, c;
621
+ i.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), i.data["MMFE:setQuickDepositHeight"] && this.isShortCashier && (this.dynamicHeight = i.data["MMFE:setQuickDepositHeight"].toString() + "px"), i.data["MMFE:setIFrameHeight"] && this.isShortCashier && (this.dynamicHeight = i.data["MMFE:setIFrameHeight"].toString() + "px"), ((p = i.data) === null || p === void 0 ? void 0 : p.type) === "mm-hcback-to-merchant" && this.doRedirect(i.data.type, this.homeUrl), ((u = i.data) === null || u === void 0 ? void 0 : u.redirect) === "mm-hc-back-tomerchant" && this.doRedirect(i.data.redirect, this.homeUrl), ((l = i.data) === null || l === void 0 ? void 0 : l.redirect) === "mm-hc-sports" && this.doRedirect((g = i.data) === null || g === void 0 ? void 0 : g.redirect, this.sportsUrl), ((L = i.data) === null || L === void 0 ? void 0 : L.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), (($ = i.data) === null || $ === void 0 ? void 0 : $.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((y = i.data) === null || y === void 0 ? void 0 : y.redirect) === "mm-wm-hc-init-deposit" || ((c = i.data) === null || c === void 0 ? void 0 : c.redirect) === "mm-wm-hc-init-deposit-quick") && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.depositUrl));
644
622
  }
645
623
  doRedirect(i, p) {
646
624
  const u = { reason: i, url: p, cancel: !1 };
@@ -662,7 +640,7 @@ const ye = () => {
662
640
  };
663
641
  }
664
642
  };
665
- we.style = ge;
643
+ ye.style = me;
666
644
  export {
667
- we as user_deposit_withdrawal
645
+ ye as user_deposit_withdrawal
668
646
  };