@everymatrix/casino-header-controller 1.73.0 → 1.73.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,10 +1,10 @@
1
- import { b as ae, p as oe, r as se, h as b, H as de } from "./index-1ef3a64c-D5DD0Cbe.js";
1
+ import { b as ae, p as oe, r as se, h as b, H as de } from "./index-1ef3a64c-BEUZTO5_.js";
2
2
  import { a as ue } from "./app-globals-0f993ce5-B6nNHmA4.js";
3
3
  var le = () => {
4
- const n = import.meta.url, h = {};
5
- return n !== "" && (h.resourcesUrl = new URL(".", n).href), oe(h);
4
+ const n = import.meta.url, c = {};
5
+ return n !== "" && (c.resourcesUrl = new URL(".", n).href), oe(c);
6
6
  };
7
- le().then(async (n) => (await ue(), ae([["user-deposit-withdrawal", [[1, "user-deposit-withdrawal", { mbSource: [513, "mb-source"], 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], dynamicHeight: [32], cashierInfoUrl: [32] }, null, { session: ["watchLoadWidget"], userId: ["watchLoadWidget"], isShortCashier: ["watchLoadWidget"], currency: ["watchLoadWidget"], showBonusSelectionInput: ["watchLoadWidget"], endpoint: ["watchLoadWidget"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n)));
7
+ le().then(async (n) => (await ue(), ae([["user-deposit-withdrawal", [[1, "user-deposit-withdrawal", { mbSource: [513, "mb-source"], 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], dynamicHeight: [32], cashierInfoUrl: [32] }, null, { clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n)));
8
8
  const ce = "en", he = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es", "de", "pt", "tr"], ee = {
9
9
  en: {
10
10
  Deposit: "Deposit",
@@ -107,25 +107,25 @@ const ce = "en", he = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
107
107
  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",
108
108
  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"
109
109
  }
110
- }, fe = (n) => new Promise((h) => {
110
+ }, fe = (n) => new Promise((c) => {
111
111
  fetch(n).then((u) => u.json()).then((u) => {
112
112
  Object.keys(u).forEach((l) => {
113
113
  for (let m in u[l])
114
114
  ee[l][m] = u[l][m];
115
- }), h(!0);
115
+ }), c(!0);
116
116
  });
117
- }), H = (n, h) => {
118
- const u = h;
117
+ }), H = (n, c) => {
118
+ const u = c;
119
119
  return ee[u !== void 0 && he.includes(u) ? u : ce][n];
120
120
  };
121
- function K(n, h) {
121
+ function K(n, c) {
122
122
  if (n) {
123
123
  const u = document.createElement("style");
124
- u.innerHTML = h, n.appendChild(u);
124
+ u.innerHTML = c, n.appendChild(u);
125
125
  }
126
126
  }
127
- function X(n, h) {
128
- const u = new URL(h);
127
+ function X(n, c) {
128
+ const u = new URL(c);
129
129
  fetch(u.href).then((l) => l.text()).then((l) => {
130
130
  const m = document.createElement("style");
131
131
  m.innerHTML = l, n && n.appendChild(m);
@@ -133,21 +133,21 @@ function X(n, h) {
133
133
  console.error("There was an error while trying to load client styling from URL", l);
134
134
  });
135
135
  }
136
- function pe(n, h, u) {
136
+ function pe(n, c, u) {
137
137
  if (window.emMessageBus) {
138
138
  const l = document.createElement("style");
139
- window.emMessageBus.subscribe(h, (m) => {
139
+ window.emMessageBus.subscribe(c, (m) => {
140
140
  l.innerHTML = m, n && n.appendChild(l);
141
141
  });
142
142
  }
143
143
  }
144
144
  const me = (n) => !!(n.toLowerCase().match(/android/i) || n.toLowerCase().match(/blackberry|bb/i) || n.toLowerCase().match(/iphone|ipad|ipod/i) || n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
145
145
  var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = { exports: {} };
146
- (function(n, h) {
146
+ (function(n, c) {
147
147
  (function(u, l) {
148
148
  n.exports = l();
149
149
  })(te, function() {
150
- var u = 1e3, l = 6e4, m = 36e5, L = "millisecond", v = "second", y = "minute", c = "hour", T = "day", P = "week", D = "month", N = "quarter", z = "year", E = "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) {
150
+ var u = 1e3, l = 6e4, m = 36e5, T = "millisecond", v = "second", g = "minute", h = "hour", z = "day", P = "week", D = "month", N = "quarter", k = "year", L = "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+)?$/, F = /\[([^\]]+)]|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, I = { 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) {
151
151
  var r = ["th", "st", "nd", "rd"], e = a % 100;
152
152
  return "[" + a + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
153
153
  } }, U = function(a, r, e) {
@@ -164,11 +164,11 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
164
164
  }, a: function(a) {
165
165
  return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
166
166
  }, p: function(a) {
167
- return { M: D, y: z, w: P, d: T, D: E, h: c, m: y, s: v, ms: L, Q: N }[a] || String(a || "").toLowerCase().replace(/s$/, "");
167
+ return { M: D, y: k, w: P, d: z, D: L, h, m: g, s: v, ms: T, Q: N }[a] || String(a || "").toLowerCase().replace(/s$/, "");
168
168
  }, u: function(a) {
169
169
  return a === void 0;
170
- } }, x = "en", k = {};
171
- k[x] = F;
170
+ } }, x = "en", E = {};
171
+ E[x] = I;
172
172
  var q = "$isDayjsObject", B = function(a) {
173
173
  return a instanceof Z || !(!a || !a[q]);
174
174
  }, O = function a(r, e, i) {
@@ -177,13 +177,13 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
177
177
  return x;
178
178
  if (typeof r == "string") {
179
179
  var s = r.toLowerCase();
180
- k[s] && (t = s), e && (k[s] = e, t = s);
180
+ E[s] && (t = s), e && (E[s] = e, t = s);
181
181
  var d = r.split("-");
182
182
  if (!t && d.length > 1)
183
183
  return a(d[0]);
184
184
  } else {
185
185
  var p = r.name;
186
- k[p] = r, t = p;
186
+ E[p] = r, t = p;
187
187
  }
188
188
  return !i && t && (x = t), t || !i && x;
189
189
  }, w = function(a, r) {
@@ -212,8 +212,8 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
212
212
  if (typeof t == "string" && !/Z$/i.test(t)) {
213
213
  var d = t.match(M);
214
214
  if (d) {
215
- var p = d[2] - 1 || 0, g = (d[7] || "0").substring(0, 3);
216
- return s ? new Date(Date.UTC(d[1], p, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, g)) : new Date(d[1], p, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, g);
215
+ var p = d[2] - 1 || 0, y = (d[7] || "0").substring(0, 3);
216
+ return s ? new Date(Date.UTC(d[1], p, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, y)) : new Date(d[1], p, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, y);
217
217
  }
218
218
  }
219
219
  return new Date(t);
@@ -239,41 +239,41 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
239
239
  }, r.valueOf = function() {
240
240
  return this.$d.getTime();
241
241
  }, r.startOf = function(e, i) {
242
- var t = this, s = !!f.u(i) || i, d = f.p(e), p = function(R, $) {
243
- var j = f.w(t.$u ? Date.UTC(t.$y, $, R) : new Date(t.$y, $, R), t);
244
- return s ? j : j.endOf(T);
245
- }, g = function(R, $) {
246
- return f.w(t.toDate()[R].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), t);
247
- }, C = this.$W, S = this.$M, W = this.$D, Y = "set" + (this.$u ? "UTC" : "");
242
+ var t = this, s = !!f.u(i) || i, d = f.p(e), p = function(R, S) {
243
+ var j = f.w(t.$u ? Date.UTC(t.$y, S, R) : new Date(t.$y, S, R), t);
244
+ return s ? j : j.endOf(z);
245
+ }, y = function(R, S) {
246
+ return f.w(t.toDate()[R].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(S)), t);
247
+ }, C = this.$W, $ = this.$M, W = this.$D, Y = "set" + (this.$u ? "UTC" : "");
248
248
  switch (d) {
249
- case z:
249
+ case k:
250
250
  return s ? p(1, 0) : p(31, 11);
251
251
  case D:
252
- return s ? p(1, S) : p(0, S + 1);
252
+ return s ? p(1, $) : p(0, $ + 1);
253
253
  case P:
254
254
  var _ = this.$locale().weekStart || 0, A = (C < _ ? C + 7 : C) - _;
255
- return p(s ? W - A : W + (6 - A), S);
256
- case T:
257
- case E:
258
- return g(Y + "Hours", 0);
259
- case c:
260
- return g(Y + "Minutes", 1);
261
- case y:
262
- return g(Y + "Seconds", 2);
255
+ return p(s ? W - A : W + (6 - A), $);
256
+ case z:
257
+ case L:
258
+ return y(Y + "Hours", 0);
259
+ case h:
260
+ return y(Y + "Minutes", 1);
261
+ case g:
262
+ return y(Y + "Seconds", 2);
263
263
  case v:
264
- return g(Y + "Milliseconds", 3);
264
+ return y(Y + "Milliseconds", 3);
265
265
  default:
266
266
  return this.clone();
267
267
  }
268
268
  }, r.endOf = function(e) {
269
269
  return this.startOf(e, !1);
270
270
  }, r.$set = function(e, i) {
271
- var t, s = f.p(e), d = "set" + (this.$u ? "UTC" : ""), p = (t = {}, t[T] = d + "Date", t[E] = d + "Date", t[D] = d + "Month", t[z] = d + "FullYear", t[c] = d + "Hours", t[y] = d + "Minutes", t[v] = d + "Seconds", t[L] = d + "Milliseconds", t)[s], g = s === T ? this.$D + (i - this.$W) : i;
272
- if (s === D || s === z) {
273
- var C = this.clone().set(E, 1);
274
- C.$d[p](g), C.init(), this.$d = C.set(E, Math.min(this.$D, C.daysInMonth())).$d;
271
+ var t, s = f.p(e), d = "set" + (this.$u ? "UTC" : ""), p = (t = {}, t[z] = d + "Date", t[L] = d + "Date", t[D] = d + "Month", t[k] = d + "FullYear", t[h] = d + "Hours", t[g] = d + "Minutes", t[v] = d + "Seconds", t[T] = d + "Milliseconds", t)[s], y = s === z ? this.$D + (i - this.$W) : i;
272
+ if (s === D || s === k) {
273
+ var C = this.clone().set(L, 1);
274
+ C.$d[p](y), C.init(), this.$d = C.set(L, Math.min(this.$D, C.daysInMonth())).$d;
275
275
  } else
276
- p && this.$d[p](g);
276
+ p && this.$d[p](y);
277
277
  return this.init(), this;
278
278
  }, r.set = function(e, i) {
279
279
  return this.clone().$set(e, i);
@@ -282,19 +282,19 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
282
282
  }, r.add = function(e, i) {
283
283
  var t, s = this;
284
284
  e = Number(e);
285
- var d = f.p(i), p = function(S) {
285
+ var d = f.p(i), p = function($) {
286
286
  var W = w(s);
287
- return f.w(W.date(W.date() + Math.round(S * e)), s);
287
+ return f.w(W.date(W.date() + Math.round($ * e)), s);
288
288
  };
289
289
  if (d === D)
290
290
  return this.set(D, this.$M + e);
291
+ if (d === k)
292
+ return this.set(k, this.$y + e);
291
293
  if (d === z)
292
- return this.set(z, this.$y + e);
293
- if (d === T)
294
294
  return p(1);
295
295
  if (d === P)
296
296
  return p(7);
297
- var g = (t = {}, t[y] = l, t[c] = m, t[v] = u, t)[d] || 1, C = this.$d.getTime() + e * g;
297
+ var y = (t = {}, t[g] = l, t[h] = m, t[v] = u, t)[d] || 1, C = this.$d.getTime() + e * y;
298
298
  return f.w(C, this);
299
299
  }, r.subtract = function(e, i) {
300
300
  return this.add(-1 * e, i);
@@ -302,15 +302,15 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
302
302
  var i = this, t = this.$locale();
303
303
  if (!this.isValid())
304
304
  return t.invalidDate || o;
305
- var s = e || "YYYY-MM-DDTHH:mm:ssZ", d = f.z(this), p = this.$H, g = this.$m, C = this.$M, S = t.weekdays, W = t.months, Y = t.meridiem, _ = function($, j, V, J) {
306
- return $ && ($[j] || $(i, s)) || V[j].slice(0, J);
307
- }, A = function($) {
308
- return f.s(p % 12 || 12, $, "0");
309
- }, R = Y || function($, j, V) {
310
- var J = $ < 12 ? "AM" : "PM";
305
+ var s = e || "YYYY-MM-DDTHH:mm:ssZ", d = f.z(this), p = this.$H, y = this.$m, C = this.$M, $ = t.weekdays, W = t.months, Y = t.meridiem, _ = function(S, j, V, J) {
306
+ return S && (S[j] || S(i, s)) || V[j].slice(0, J);
307
+ }, A = function(S) {
308
+ return f.s(p % 12 || 12, S, "0");
309
+ }, R = Y || function(S, j, V) {
310
+ var J = S < 12 ? "AM" : "PM";
311
311
  return V ? J.toLowerCase() : J;
312
312
  };
313
- return s.replace(I, function($, j) {
313
+ return s.replace(F, function(S, j) {
314
314
  return j || function(V) {
315
315
  switch (V) {
316
316
  case "YY":
@@ -332,11 +332,11 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
332
332
  case "d":
333
333
  return String(i.$W);
334
334
  case "dd":
335
- return _(t.weekdaysMin, i.$W, S, 2);
335
+ return _(t.weekdaysMin, i.$W, $, 2);
336
336
  case "ddd":
337
- return _(t.weekdaysShort, i.$W, S, 3);
337
+ return _(t.weekdaysShort, i.$W, $, 3);
338
338
  case "dddd":
339
- return S[i.$W];
339
+ return $[i.$W];
340
340
  case "H":
341
341
  return String(p);
342
342
  case "HH":
@@ -346,13 +346,13 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
346
346
  case "hh":
347
347
  return A(2);
348
348
  case "a":
349
- return R(p, g, !0);
349
+ return R(p, y, !0);
350
350
  case "A":
351
- return R(p, g, !1);
351
+ return R(p, y, !1);
352
352
  case "m":
353
- return String(g);
353
+ return String(y);
354
354
  case "mm":
355
- return f.s(g, 2, "0");
355
+ return f.s(y, 2, "0");
356
356
  case "s":
357
357
  return String(i.$s);
358
358
  case "ss":
@@ -363,16 +363,16 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
363
363
  return d;
364
364
  }
365
365
  return null;
366
- }($) || d.replace(":", "");
366
+ }(S) || d.replace(":", "");
367
367
  });
368
368
  }, r.utcOffset = function() {
369
369
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
370
370
  }, r.diff = function(e, i, t) {
371
- var s, d = this, p = f.p(i), g = w(e), C = (g.utcOffset() - this.utcOffset()) * l, S = this - g, W = function() {
372
- return f.m(d, g);
371
+ var s, d = this, p = f.p(i), y = w(e), C = (y.utcOffset() - this.utcOffset()) * l, $ = this - y, W = function() {
372
+ return f.m(d, y);
373
373
  };
374
374
  switch (p) {
375
- case z:
375
+ case k:
376
376
  s = W() / 12;
377
377
  break;
378
378
  case D:
@@ -382,28 +382,28 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
382
382
  s = W() / 3;
383
383
  break;
384
384
  case P:
385
- s = (S - C) / 6048e5;
385
+ s = ($ - C) / 6048e5;
386
386
  break;
387
- case T:
388
- s = (S - C) / 864e5;
387
+ case z:
388
+ s = ($ - C) / 864e5;
389
389
  break;
390
- case c:
391
- s = S / m;
390
+ case h:
391
+ s = $ / m;
392
392
  break;
393
- case y:
394
- s = S / l;
393
+ case g:
394
+ s = $ / l;
395
395
  break;
396
396
  case v:
397
- s = S / u;
397
+ s = $ / u;
398
398
  break;
399
399
  default:
400
- s = S;
400
+ s = $;
401
401
  }
402
402
  return t ? s : f.a(s);
403
403
  }, r.daysInMonth = function() {
404
404
  return this.endOf(D).$D;
405
405
  }, r.$locale = function() {
406
- return k[this.$L];
406
+ return E[this.$L];
407
407
  }, r.locale = function(e, i) {
408
408
  if (!e)
409
409
  return this.$L;
@@ -421,7 +421,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
421
421
  return this.$d.toUTCString();
422
422
  }, a;
423
423
  }(), Q = Z.prototype;
424
- return w.prototype = Q, [["$ms", L], ["$s", v], ["$m", y], ["$H", c], ["$W", T], ["$M", D], ["$y", z], ["$D", E]].forEach(function(a) {
424
+ return w.prototype = Q, [["$ms", T], ["$s", v], ["$m", g], ["$H", h], ["$W", z], ["$M", D], ["$y", k], ["$D", L]].forEach(function(a) {
425
425
  Q[a[1]] = function(r) {
426
426
  return this.$g(r, a[0], a[1]);
427
427
  };
@@ -429,92 +429,92 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
429
429
  return a.$i || (a(r, Z, w), a.$i = !0), w;
430
430
  }, w.locale = O, w.isDayjs = B, w.unix = function(a) {
431
431
  return w(1e3 * a);
432
- }, w.en = k[x], w.Ls = k, w.p = {}, w;
432
+ }, w.en = E[x], w.Ls = E, w.p = {}, w;
433
433
  });
434
434
  })(re);
435
435
  const ne = re.exports;
436
436
  var ie = { exports: {} };
437
- (function(n, h) {
437
+ (function(n, c) {
438
438
  (function(u, l) {
439
439
  n.exports = l();
440
440
  })(te, function() {
441
441
  var u = "minute", l = /[+-]\d\d(?::?\d\d)?/g, m = /([+-]|\d\d)/g;
442
- return function(L, v, y) {
443
- var c = v.prototype;
444
- y.utc = function(o) {
442
+ return function(T, v, g) {
443
+ var h = v.prototype;
444
+ g.utc = function(o) {
445
445
  var M = { date: o, utc: !0, args: arguments };
446
446
  return new v(M);
447
- }, c.utc = function(o) {
448
- var M = y(this.toDate(), { locale: this.$L, utc: !0 });
447
+ }, h.utc = function(o) {
448
+ var M = g(this.toDate(), { locale: this.$L, utc: !0 });
449
449
  return o ? M.add(this.utcOffset(), u) : M;
450
- }, c.local = function() {
451
- return y(this.toDate(), { locale: this.$L, utc: !1 });
450
+ }, h.local = function() {
451
+ return g(this.toDate(), { locale: this.$L, utc: !1 });
452
452
  };
453
- var T = c.parse;
454
- c.parse = function(o) {
455
- o.utc && (this.$u = !0), this.$utils().u(o.$offset) || (this.$offset = o.$offset), T.call(this, o);
453
+ var z = h.parse;
454
+ h.parse = function(o) {
455
+ o.utc && (this.$u = !0), this.$utils().u(o.$offset) || (this.$offset = o.$offset), z.call(this, o);
456
456
  };
457
- var P = c.init;
458
- c.init = function() {
457
+ var P = h.init;
458
+ h.init = function() {
459
459
  if (this.$u) {
460
460
  var o = this.$d;
461
461
  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();
462
462
  } else
463
463
  P.call(this);
464
464
  };
465
- var D = c.utcOffset;
466
- c.utcOffset = function(o, M) {
467
- var I = this.$utils().u;
468
- if (I(o))
469
- return this.$u ? 0 : I(this.$offset) ? D.call(this) : this.$offset;
465
+ var D = h.utcOffset;
466
+ h.utcOffset = function(o, M) {
467
+ var F = this.$utils().u;
468
+ if (F(o))
469
+ return this.$u ? 0 : F(this.$offset) ? D.call(this) : this.$offset;
470
470
  if (typeof o == "string" && (o = function(x) {
471
471
  x === void 0 && (x = "");
472
- var k = x.match(l);
473
- if (!k)
472
+ var E = x.match(l);
473
+ if (!E)
474
474
  return null;
475
- var q = ("" + k[0]).match(m) || ["-", 0, 0], B = q[0], O = 60 * +q[1] + +q[2];
475
+ var q = ("" + E[0]).match(m) || ["-", 0, 0], B = q[0], O = 60 * +q[1] + +q[2];
476
476
  return O === 0 ? 0 : B === "+" ? O : -O;
477
477
  }(o), o === null))
478
478
  return this;
479
- var F = Math.abs(o) <= 16 ? 60 * o : o, U = this;
479
+ var I = Math.abs(o) <= 16 ? 60 * o : o, U = this;
480
480
  if (M)
481
- return U.$offset = F, U.$u = o === 0, U;
481
+ return U.$offset = I, U.$u = o === 0, U;
482
482
  if (o !== 0) {
483
483
  var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
484
- (U = this.local().add(F + G, u)).$offset = F, U.$x.$localOffset = G;
484
+ (U = this.local().add(I + G, u)).$offset = I, U.$x.$localOffset = G;
485
485
  } else
486
486
  U = this.utc();
487
487
  return U;
488
488
  };
489
- var N = c.format;
490
- c.format = function(o) {
489
+ var N = h.format;
490
+ h.format = function(o) {
491
491
  var M = o || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
492
492
  return N.call(this, M);
493
- }, c.valueOf = function() {
493
+ }, h.valueOf = function() {
494
494
  var o = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
495
495
  return this.$d.valueOf() - 6e4 * o;
496
- }, c.isUTC = function() {
496
+ }, h.isUTC = function() {
497
497
  return !!this.$u;
498
- }, c.toISOString = function() {
498
+ }, h.toISOString = function() {
499
499
  return this.toDate().toISOString();
500
- }, c.toString = function() {
500
+ }, h.toString = function() {
501
501
  return this.toDate().toUTCString();
502
502
  };
503
- var z = c.toDate;
504
- c.toDate = function(o) {
505
- return o === "s" && this.$offset ? y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : z.call(this);
503
+ var k = h.toDate;
504
+ h.toDate = function(o) {
505
+ return o === "s" && this.$offset ? g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
506
506
  };
507
- var E = c.diff;
508
- c.diff = function(o, M, I) {
507
+ var L = h.diff;
508
+ h.diff = function(o, M, F) {
509
509
  if (o && this.$u === o.$u)
510
- return E.call(this, o, M, I);
511
- var F = this.local(), U = y(o).local();
512
- return E.call(F, U, M, I);
510
+ return L.call(this, o, M, F);
511
+ var I = this.local(), U = g(o).local();
512
+ return L.call(I, U, M, F);
513
513
  };
514
514
  };
515
515
  });
516
516
  })(ie);
517
- const ge = ie.exports, ye = `:host {
517
+ const ye = ie.exports, ge = `:host {
518
518
  font: inherit;
519
519
  display: block;
520
520
  height: 100%;
@@ -585,14 +585,14 @@ const ge = ie.exports, ye = `:host {
585
585
  .DepositWithdrawalWrapper:not(.ShortCashier) {
586
586
  overflow: visible;
587
587
  }
588
- }`, we = ye;
589
- ne.extend(ge);
588
+ }`, we = ge;
589
+ ne.extend(ye);
590
590
  const Ce = () => {
591
591
  }, ve = class {
592
592
  constructor(n) {
593
593
  se(this, n), this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = me(this.userAgent), this.errorCodes = ["21123", "21122", "21121"], this.toggleScreen = () => {
594
594
  window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.isMobile }, window.location.href);
595
- }, this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.endpoint = void 0, this.type = void 0, this.channel = void 0, this.language = void 0, this.productType = void 0, this.userId = void 0, this.session = void 0, this.successUrl = void 0, this.cancelUrl = void 0, this.failUrl = void 0, this.sportsUrl = void 0, this.casinoUrl = void 0, this.contactUrl = void 0, this.depositUrl = void 0, this.currency = "", this.showBonusSelectionInput = "true", this.isShortCashier = !1, this.homeUrl = void 0, this.beforeRedirect = Ce, this.dynamicHeight = void 0, this.cashierInfoUrl = void 0;
595
+ }, this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.endpoint = void 0, this.type = void 0, this.channel = void 0, this.language = void 0, this.productType = "", this.userId = void 0, this.session = void 0, this.successUrl = void 0, this.cancelUrl = void 0, this.failUrl = void 0, this.sportsUrl = void 0, this.casinoUrl = void 0, this.contactUrl = void 0, this.depositUrl = void 0, this.currency = "", this.showBonusSelectionInput = "true", this.isShortCashier = !1, this.homeUrl = void 0, this.beforeRedirect = Ce, this.dynamicHeight = void 0, this.cashierInfoUrl = void 0;
596
596
  }
597
597
  get typeParameter() {
598
598
  if (this.type === "deposit")
@@ -600,14 +600,11 @@ const Ce = () => {
600
600
  if (this.type === "withdraw")
601
601
  return "Withdraw";
602
602
  }
603
- watchLoadWidget() {
604
- this.loadWidget();
605
- }
606
- handleClientStylingChange(n, h) {
607
- n != h && K(this.stylingContainer, this.clientStyling);
603
+ handleClientStylingChange(n, c) {
604
+ n != c && K(this.stylingContainer, this.clientStyling);
608
605
  }
609
- handleClientStylingChangeURL(n, h) {
610
- n != h && this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl);
606
+ handleClientStylingChangeURL(n, c) {
607
+ n != c && this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl);
611
608
  }
612
609
  async componentWillLoad() {
613
610
  if (await this.loadWidget(), this.translationUrl)
@@ -620,11 +617,9 @@ const Ce = () => {
620
617
  window.removeEventListener("message", this.bindedHandler, !1), this.stylingSubscription && this.stylingSubscription.unsubscribe();
621
618
  }
622
619
  render() {
623
- return b(de, { key: "5a39e65dfb429f0b8d2763c2b5aff83f3aaa1a57" }, b("div", { key: "f2920f2181a8579b5c619beba8b29e5c391b5717", ref: (n) => this.stylingContainer = n, class: "" }, b("div", { key: "c3950a8d01343bf160f1a96a7c8334ef0342fe11", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}` }, !(this.isMobile && !this.isShortCashier) && b("h2", { key: "1d2f6f40bd58fa6f3cdb6f52b30632ffd934f677", class: "CategoryTitle" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), b("div", { key: "cc0aed9136041143f94ecf98fb2f14ef316a75ad", style: { marginTop: this.isShortCashier ? "30px" : "0" } }, this.isMobile && !this.isShortCashier ? b("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, 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: this.dynamicHeight, src: this.cashierInfoUrl }) : b("h3", { innerHTML: this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language), class: "ErrorMessage" }))));
620
+ return b(de, { key: "4c6783c9cccc65e31901eb8755729147da7c3771" }, b("div", { key: "cceae92ea2c7fb63f2de79e0d8748b7847c67842", ref: (n) => this.stylingContainer = n, class: "" }, b("div", { key: "5171e7159682058314022e47d93d4d20b377d7e1", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}` }, !(this.isMobile && !this.isShortCashier) && b("h2", { key: "9d517ae70d3f6a654ffaff66d86d19c4259fa679", class: "CategoryTitle" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), b("div", { key: "97c991c8a18e44e50307a9bd3de11f446783a630", style: { marginTop: this.isShortCashier ? "30px" : "0" } }, this.isMobile && !this.isShortCashier ? b("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, 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: this.dynamicHeight, src: this.cashierInfoUrl }) : b("h3", { innerHTML: this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language), class: "ErrorMessage" }))));
624
621
  }
625
622
  async loadWidget() {
626
- if (!this.endpoint)
627
- return;
628
623
  const n = {
629
624
  Channel: this.channel,
630
625
  Type: this.typeParameter,
@@ -637,43 +632,44 @@ const Ce = () => {
637
632
  currency: this.currency,
638
633
  showBonusSelectionInput: this.showBonusSelectionInput
639
634
  };
640
- try {
641
- const h = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`, u = await fetch(h, {
642
- method: "POST",
643
- headers: {
644
- "X-Sessionid": this.session,
645
- "Content-Type": "application/json",
646
- "X-Client-Request-Timestamp": ne.utc().format("YYYY-MM-DD HH:mm:ss.SSS")
647
- },
648
- body: JSON.stringify(n)
649
- });
650
- if (!u.ok) {
651
- const m = await u.text();
652
- throw new Error(m);
653
- }
654
- const l = await u.json();
655
- if (l.CashierInfo)
656
- this.cashierInfoUrl = l.CashierInfo.Url;
657
- else {
658
- let m;
659
- if (l.ResponseMessage) {
660
- let v = this.errorCodes.find((y) => l.ResponseMessage.includes(y)) || null;
661
- v ? m = H(`errorCode${v}`, this.language) : m = H("notFoundErrorCode", this.language);
662
- } else
663
- m = this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language);
664
- const L = { type: "error", message: m };
665
- window.postMessage({ type: "DenyDepositOrWithdrawal", data: L }, window.location.href);
635
+ if (!(Object.values(n).some((c) => c === void 0) || !this.endpoint))
636
+ try {
637
+ const c = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`, u = await fetch(c, {
638
+ method: "POST",
639
+ headers: {
640
+ "X-Sessionid": this.session,
641
+ "Content-Type": "application/json",
642
+ "X-Client-Request-Timestamp": ne.utc().format("YYYY-MM-DD HH:mm:ss.SSS")
643
+ },
644
+ body: JSON.stringify(n)
645
+ });
646
+ if (!u.ok) {
647
+ const m = await u.text();
648
+ throw new Error(m);
649
+ }
650
+ const l = await u.json();
651
+ if (l.CashierInfo)
652
+ this.cashierInfoUrl = l.CashierInfo.Url;
653
+ else {
654
+ let m;
655
+ if (l.ResponseMessage) {
656
+ let v = this.errorCodes.find((g) => l.ResponseMessage.includes(g)) || null;
657
+ v ? m = H(`errorCode${v}`, this.language) : m = H("notFoundErrorCode", this.language);
658
+ } else
659
+ m = this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language);
660
+ const T = { type: "error", message: m };
661
+ window.postMessage({ type: "DenyDepositOrWithdrawal", data: T }, window.location.href);
662
+ }
663
+ } catch (c) {
664
+ console.error(c);
666
665
  }
667
- } catch (h) {
668
- console.error(h);
669
- }
670
666
  }
671
667
  handleMessage(n) {
672
- var h, u, l, m, L, v, y, c;
673
- n.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), n.data["MMFE:setQuickDepositHeight"] && this.isShortCashier && (this.dynamicHeight = n.data["MMFE:setQuickDepositHeight"].toString() + "px"), n.data["MMFE:setIFrameHeight"] && (this.dynamicHeight = n.data["MMFE:setIFrameHeight"].toString() + "px"), ((h = n.data) === null || h === void 0 ? void 0 : h.type) === "mm-hcback-to-merchant" && this.doRedirect(n.data.type, this.homeUrl), ((u = n.data) === null || u === void 0 ? void 0 : u.redirect) === "mm-hc-back-tomerchant" && this.doRedirect(n.data.redirect, this.homeUrl), ((l = n.data) === null || l === void 0 ? void 0 : l.redirect) === "mm-hc-sports" && this.doRedirect((m = n.data) === null || m === void 0 ? void 0 : m.redirect, this.sportsUrl), ((L = n.data) === null || L === void 0 ? void 0 : L.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), ((v = n.data) === null || v === void 0 ? void 0 : v.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((y = n.data) === null || y === void 0 ? void 0 : y.redirect) === "mm-wm-hc-init-deposit" || ((c = n.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));
668
+ var c, u, l, m, T, v, g, h;
669
+ n.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), n.data["MMFE:setQuickDepositHeight"] && this.isShortCashier && (this.dynamicHeight = n.data["MMFE:setQuickDepositHeight"].toString() + "px"), n.data["MMFE:setIFrameHeight"] && (this.dynamicHeight = n.data["MMFE:setIFrameHeight"].toString() + "px"), ((c = n.data) === null || c === void 0 ? void 0 : c.type) === "mm-hcback-to-merchant" && this.doRedirect(n.data.type, this.homeUrl), ((u = n.data) === null || u === void 0 ? void 0 : u.redirect) === "mm-hc-back-tomerchant" && this.doRedirect(n.data.redirect, this.homeUrl), ((l = n.data) === null || l === void 0 ? void 0 : l.redirect) === "mm-hc-sports" && this.doRedirect((m = n.data) === null || m === void 0 ? void 0 : m.redirect, this.sportsUrl), ((T = n.data) === null || T === void 0 ? void 0 : T.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), ((v = n.data) === null || v === void 0 ? void 0 : v.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((g = n.data) === null || g === void 0 ? void 0 : g.redirect) === "mm-wm-hc-init-deposit" || ((h = n.data) === null || h === void 0 ? void 0 : h.redirect) === "mm-wm-hc-init-deposit-quick") && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.depositUrl));
674
670
  }
675
- doRedirect(n, h) {
676
- const u = { reason: n, url: h, cancel: !1 };
671
+ doRedirect(n, c) {
672
+ const u = { reason: n, url: c, cancel: !1 };
677
673
  if (this.beforeRedirect(u), !u.cancel) {
678
674
  if (!u.url) {
679
675
  window.location.href = "/";
@@ -684,12 +680,6 @@ const Ce = () => {
684
680
  }
685
681
  static get watchers() {
686
682
  return {
687
- session: ["watchLoadWidget"],
688
- userId: ["watchLoadWidget"],
689
- isShortCashier: ["watchLoadWidget"],
690
- currency: ["watchLoadWidget"],
691
- showBonusSelectionInput: ["watchLoadWidget"],
692
- endpoint: ["watchLoadWidget"],
693
683
  clientStyling: ["handleClientStylingChange"],
694
684
  clientStylingUrl: ["handleClientStylingChangeURL"]
695
685
  };