@everymatrix/casino-header-controller 1.53.12 → 1.54.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,29 @@
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 = () => {
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 = () => {
4
20
  const i = import.meta.url, p = {};
5
- return i !== "" && (p.resourcesUrl = new URL(".", i).href), ie(p);
21
+ return i !== "" && (p.resourcesUrl = new URL(".", i).href), ae(p);
6
22
  };
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 = {
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 = {
9
27
  en: {
10
28
  Deposit: "Deposit",
11
29
  Withdraw: "Withdraw",
@@ -105,39 +123,39 @@ const ue = "en", ce = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
105
123
  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",
106
124
  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"
107
125
  }
108
- }, le = (i) => new Promise((p) => {
126
+ }, he = (i) => new Promise((p) => {
109
127
  fetch(i).then((u) => u.json()).then((u) => {
110
128
  Object.keys(u).forEach((l) => {
111
129
  for (let g in u[l])
112
- K[l][g] = u[l][g];
130
+ X[l][g] = u[l][g];
113
131
  }), p(!0);
114
132
  });
115
133
  }), H = (i, p) => {
116
134
  const u = p;
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: {} };
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: {} };
120
138
  (function(i, p) {
121
139
  (function(u, l) {
122
140
  i.exports = l();
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) {
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) {
125
143
  var r = ["th", "st", "nd", "rd"], e = a % 100;
126
144
  return "[" + a + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
127
- } }, W = function(a, r, e) {
145
+ } }, U = function(a, r, e) {
128
146
  var n = String(a);
129
147
  return !n || n.length >= r ? a : "" + Array(r + 1 - n.length).join(e) + a;
130
- }, G = { s: W, z: function(a) {
148
+ }, G = { s: U, z: function(a) {
131
149
  var r = -a.utcOffset(), e = Math.abs(r), n = Math.floor(e / 60), t = e % 60;
132
- return (r <= 0 ? "+" : "-") + W(n, 2, "0") + ":" + W(t, 2, "0");
150
+ return (r <= 0 ? "+" : "-") + U(n, 2, "0") + ":" + U(t, 2, "0");
133
151
  }, m: function a(r, e) {
134
152
  if (r.date() < e.date()) return -a(e, r);
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);
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);
136
154
  return +(-(n + (e - t) / (s ? t - d : d - t)) || 0);
137
155
  }, a: function(a) {
138
156
  return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
139
157
  }, p: function(a) {
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$/, "");
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$/, "");
141
159
  }, u: function(a) {
142
160
  return a === void 0;
143
161
  } }, E = "en", z = {};
@@ -157,13 +175,13 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
157
175
  z[f] = r, t = f;
158
176
  }
159
177
  return !n && t && (E = t), t || !n && E;
160
- }, w = function(a, r) {
178
+ }, C = function(a, r) {
161
179
  if (A(a)) return a.clone();
162
180
  var e = typeof r == "object" ? r : {};
163
181
  return e.date = a, e.args = arguments, new Z(e);
164
182
  }, h = G;
165
183
  h.l = j, h.i = A, h.w = function(a, r) {
166
- return w(a, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
184
+ return C(a, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
167
185
  };
168
186
  var Z = function() {
169
187
  function a(e) {
@@ -177,10 +195,10 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
177
195
  if (h.u(t)) return /* @__PURE__ */ new Date();
178
196
  if (t instanceof Date) return new Date(t);
179
197
  if (typeof t == "string" && !/Z$/i.test(t)) {
180
- var d = t.match(M);
198
+ var d = t.match(W);
181
199
  if (d) {
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);
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);
184
202
  }
185
203
  }
186
204
  return new Date(t);
@@ -193,12 +211,12 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
193
211
  }, r.isValid = function() {
194
212
  return this.$d.toString() !== o;
195
213
  }, r.isSame = function(e, n) {
196
- var t = w(e);
214
+ var t = C(e);
197
215
  return this.startOf(n) <= t && t <= this.endOf(n);
198
216
  }, r.isAfter = function(e, n) {
199
- return w(e) < this.startOf(n);
217
+ return C(e) < this.startOf(n);
200
218
  }, r.isBefore = function(e, n) {
201
- return this.endOf(n) < w(e);
219
+ return this.endOf(n) < C(e);
202
220
  }, r.$g = function(e, n, t) {
203
221
  return h.u(e) ? this[n] : this.set(t, e);
204
222
  }, r.unix = function() {
@@ -206,40 +224,40 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
206
224
  }, r.valueOf = function() {
207
225
  return this.$d.getTime();
208
226
  }, r.startOf = function(e, n) {
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" : "");
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" : "");
215
233
  switch (d) {
216
234
  case k:
217
235
  return s ? f(1, 0) : f(31, 11);
218
- case b:
236
+ case M:
219
237
  return s ? f(1, v) : f(0, v + 1);
220
238
  case q:
221
- var _ = this.$locale().weekStart || 0, B = (C < _ ? C + 7 : C) - _;
222
- return f(s ? U - B : U + (6 - B), v);
223
- case T:
239
+ var _ = this.$locale().weekStart || 0, B = ($ < _ ? $ + 7 : $) - _;
240
+ return f(s ? T - B : T + (6 - B), v);
241
+ case S:
224
242
  case O:
225
- return m(P + "Hours", 0);
243
+ return y(P + "Hours", 0);
226
244
  case c:
227
- return m(P + "Minutes", 1);
228
- case y:
229
- return m(P + "Seconds", 2);
230
- case $:
231
- return m(P + "Milliseconds", 3);
245
+ return y(P + "Minutes", 1);
246
+ case m:
247
+ return y(P + "Seconds", 2);
248
+ case w:
249
+ return y(P + "Milliseconds", 3);
232
250
  default:
233
251
  return this.clone();
234
252
  }
235
253
  }, r.endOf = function(e) {
236
254
  return this.startOf(e, !1);
237
255
  }, r.$set = function(e, n) {
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);
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);
243
261
  return this.init(), this;
244
262
  }, r.set = function(e, n) {
245
263
  return this.clone().$set(e, n);
@@ -249,29 +267,29 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
249
267
  var t, s = this;
250
268
  e = Number(e);
251
269
  var d = h.p(n), f = function(v) {
252
- var U = w(s);
253
- return h.w(U.date(U.date() + Math.round(v * e)), s);
270
+ var T = C(s);
271
+ return h.w(T.date(T.date() + Math.round(v * e)), s);
254
272
  };
255
- if (d === b) return this.set(b, this.$M + e);
273
+ if (d === M) return this.set(M, this.$M + e);
256
274
  if (d === k) return this.set(k, this.$y + e);
257
- if (d === T) return f(1);
275
+ if (d === S) return f(1);
258
276
  if (d === q) return f(7);
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);
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);
261
279
  }, r.subtract = function(e, n) {
262
280
  return this.add(-1 * e, n);
263
281
  }, r.format = function(e) {
264
282
  var n = this, t = this.$locale();
265
283
  if (!this.isValid()) return t.invalidDate || o;
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";
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";
272
290
  return V ? J.toLowerCase() : J;
273
291
  };
274
- return s.replace(I, function(S, x) {
292
+ return s.replace(I, function(D, x) {
275
293
  return x || function(V) {
276
294
  switch (V) {
277
295
  case "YY":
@@ -279,13 +297,13 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
279
297
  case "YYYY":
280
298
  return h.s(n.$y, 4, "0");
281
299
  case "M":
282
- return C + 1;
300
+ return $ + 1;
283
301
  case "MM":
284
- return h.s(C + 1, 2, "0");
302
+ return h.s($ + 1, 2, "0");
285
303
  case "MMM":
286
- return _(t.monthsShort, C, U, 3);
304
+ return _(t.monthsShort, $, T, 3);
287
305
  case "MMMM":
288
- return _(U, C);
306
+ return _(T, $);
289
307
  case "D":
290
308
  return n.$D;
291
309
  case "DD":
@@ -307,13 +325,13 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
307
325
  case "hh":
308
326
  return B(2);
309
327
  case "a":
310
- return R(f, m, !0);
328
+ return R(f, y, !0);
311
329
  case "A":
312
- return R(f, m, !1);
330
+ return R(f, y, !1);
313
331
  case "m":
314
- return String(m);
332
+ return String(y);
315
333
  case "mm":
316
- return h.s(m, 2, "0");
334
+ return h.s(y, 2, "0");
317
335
  case "s":
318
336
  return String(n.$s);
319
337
  case "ss":
@@ -324,37 +342,37 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
324
342
  return d;
325
343
  }
326
344
  return null;
327
- }(S) || d.replace(":", "");
345
+ }(D) || d.replace(":", "");
328
346
  });
329
347
  }, r.utcOffset = function() {
330
348
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
331
349
  }, r.diff = function(e, n, t) {
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);
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);
334
352
  };
335
353
  switch (f) {
336
354
  case k:
337
- s = U() / 12;
355
+ s = T() / 12;
338
356
  break;
339
- case b:
340
- s = U();
357
+ case M:
358
+ s = T();
341
359
  break;
342
360
  case N:
343
- s = U() / 3;
361
+ s = T() / 3;
344
362
  break;
345
363
  case q:
346
- s = (v - C) / 6048e5;
364
+ s = (v - $) / 6048e5;
347
365
  break;
348
- case T:
349
- s = (v - C) / 864e5;
366
+ case S:
367
+ s = (v - $) / 864e5;
350
368
  break;
351
369
  case c:
352
370
  s = v / g;
353
371
  break;
354
- case y:
372
+ case m:
355
373
  s = v / l;
356
374
  break;
357
- case $:
375
+ case w:
358
376
  s = v / u;
359
377
  break;
360
378
  default:
@@ -362,7 +380,7 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
362
380
  }
363
381
  return t ? s : h.a(s);
364
382
  }, r.daysInMonth = function() {
365
- return this.endOf(b).$D;
383
+ return this.endOf(M).$D;
366
384
  }, r.$locale = function() {
367
385
  return z[this.$L];
368
386
  }, r.locale = function(e, n) {
@@ -380,39 +398,39 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
380
398
  }, r.toString = function() {
381
399
  return this.$d.toUTCString();
382
400
  }, a;
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) {
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) {
386
404
  return this.$g(r, a[0], a[1]);
387
405
  };
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;
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;
393
411
  });
394
- })(ee);
395
- const te = ee.exports;
396
- var re = { exports: {} };
412
+ })(te);
413
+ const re = te.exports;
414
+ var ne = { exports: {} };
397
415
  (function(i, p) {
398
416
  (function(u, l) {
399
417
  i.exports = l();
400
- })(X, function() {
418
+ })(ee, function() {
401
419
  var u = "minute", l = /[+-]\d\d(?::?\d\d)?/g, g = /([+-]|\d\d)/g;
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);
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);
407
425
  }, c.utc = function(o) {
408
- var M = y(this.toDate(), { locale: this.$L, utc: !0 });
409
- return o ? M.add(this.utcOffset(), u) : M;
426
+ var W = m(this.toDate(), { locale: this.$L, utc: !0 });
427
+ return o ? W.add(this.utcOffset(), u) : W;
410
428
  }, c.local = function() {
411
- return y(this.toDate(), { locale: this.$L, utc: !1 });
429
+ return m(this.toDate(), { locale: this.$L, utc: !1 });
412
430
  };
413
- var T = c.parse;
431
+ var S = c.parse;
414
432
  c.parse = function(o) {
415
- o.utc && (this.$u = !0), this.$utils().u(o.$offset) || (this.$offset = o.$offset), T.call(this, o);
433
+ o.utc && (this.$u = !0), this.$utils().u(o.$offset) || (this.$offset = o.$offset), S.call(this, o);
416
434
  };
417
435
  var q = c.init;
418
436
  c.init = function() {
@@ -421,10 +439,10 @@ var re = { exports: {} };
421
439
  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();
422
440
  } else q.call(this);
423
441
  };
424
- var b = c.utcOffset;
425
- c.utcOffset = function(o, M) {
442
+ var M = c.utcOffset;
443
+ c.utcOffset = function(o, W) {
426
444
  var I = this.$utils().u;
427
- if (I(o)) return this.$u ? 0 : I(this.$offset) ? b.call(this) : this.$offset;
445
+ if (I(o)) return this.$u ? 0 : I(this.$offset) ? M.call(this) : this.$offset;
428
446
  if (typeof o == "string" && (o = function(E) {
429
447
  E === void 0 && (E = "");
430
448
  var z = E.match(l);
@@ -432,18 +450,18 @@ var re = { exports: {} };
432
450
  var Y = ("" + z[0]).match(g) || ["-", 0, 0], A = Y[0], j = 60 * +Y[1] + +Y[2];
433
451
  return j === 0 ? 0 : A === "+" ? j : -j;
434
452
  }(o), o === null)) return this;
435
- var F = Math.abs(o) <= 16 ? 60 * o : o, W = this;
436
- if (M) return W.$offset = F, W.$u = o === 0, W;
453
+ var F = Math.abs(o) <= 16 ? 60 * o : o, U = this;
454
+ if (W) return U.$offset = F, U.$u = o === 0, U;
437
455
  if (o !== 0) {
438
456
  var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
439
- (W = this.local().add(F + G, u)).$offset = F, W.$x.$localOffset = G;
440
- } else W = this.utc();
441
- return W;
457
+ (U = this.local().add(F + G, u)).$offset = F, U.$x.$localOffset = G;
458
+ } else U = this.utc();
459
+ return U;
442
460
  };
443
461
  var N = c.format;
444
462
  c.format = function(o) {
445
- var M = o || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
446
- return N.call(this, M);
463
+ var W = o || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
464
+ return N.call(this, W);
447
465
  }, c.valueOf = function() {
448
466
  var o = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
449
467
  return this.$d.valueOf() - 6e4 * o;
@@ -456,18 +474,18 @@ var re = { exports: {} };
456
474
  };
457
475
  var k = c.toDate;
458
476
  c.toDate = function(o) {
459
- return o === "s" && this.$offset ? y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
477
+ return o === "s" && this.$offset ? m(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
460
478
  };
461
479
  var O = c.diff;
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);
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);
466
484
  };
467
485
  };
468
486
  });
469
- })(re);
470
- const fe = re.exports, pe = `:host {
487
+ })(ne);
488
+ const pe = ne.exports, me = `:host {
471
489
  font: inherit;
472
490
  display: block;
473
491
  height: 100%;
@@ -525,12 +543,12 @@ const fe = re.exports, pe = `:host {
525
543
  margin-top: 70px;
526
544
  text-align: center;
527
545
  color: var(--emw--color-black, #000000);
528
- }`, me = pe;
529
- te.extend(fe);
530
- const ge = () => {
531
- }, ye = class {
546
+ }`, ge = me;
547
+ re.extend(pe);
548
+ const ye = () => {
549
+ }, we = class {
532
550
  constructor(i) {
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 = () => {
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 = () => {
534
552
  let p = document.createElement("style");
535
553
  p.innerHTML = this.clientStyling, this.stylingContainer.prepend(p);
536
554
  }, this.setClientStylingURL = () => {
@@ -553,9 +571,11 @@ const ge = () => {
553
571
  watchLoadWidget() {
554
572
  this.loadWidget();
555
573
  }
556
- async componentWillLoad() {
557
- if (await this.loadWidget(), this.translationUrl)
558
- return le(this.translationUrl);
574
+ componentWillLoad() {
575
+ return Q(this, null, function* () {
576
+ if (yield this.loadWidget(), this.translationUrl)
577
+ return he(this.translationUrl);
578
+ });
559
579
  }
560
580
  toggleScreen(i) {
561
581
  window.postMessage({ type: "PlayerAccountMenuActive", isMobile: i }, window.location.href);
@@ -570,55 +590,57 @@ const ge = () => {
570
590
  !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.limitStylingAppends = !0);
571
591
  }
572
592
  render() {
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)))));
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)))));
574
594
  }
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);
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);
614
638
  }
615
- } catch (p) {
616
- console.error(p);
617
- }
639
+ });
618
640
  }
619
641
  handleMessage(i) {
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));
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));
622
644
  }
623
645
  doRedirect(i, p) {
624
646
  const u = { reason: i, url: p, cancel: !1 };
@@ -640,7 +662,7 @@ const ge = () => {
640
662
  };
641
663
  }
642
664
  };
643
- ye.style = me;
665
+ we.style = ge;
644
666
  export {
645
- ye as user_deposit_withdrawal
667
+ we as user_deposit_withdrawal
646
668
  };