@everymatrix/casino-header-controller 1.53.0 → 1.53.10
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{CasinoHamburgerMenu-1MgwMavL.js → CasinoHamburgerMenu-Didvw1sl.js} +1164 -1216
- package/components/{CasinoHeaderController-BsKAR_gl.js → CasinoHeaderController-CFx6e2bY.js} +330 -353
- package/components/{CasinoSlider-DonAdyJx.js → CasinoSlider-CTCcKhAJ.js} +208 -214
- package/components/{PlayerAccountBalanceModal-CwDfcNRi.js → PlayerAccountBalanceModal-CljMbxpF.js} +406 -435
- package/components/{PlayerDeposit-DOnHqNTx.js → PlayerDeposit-BDWEQLoE.js} +1 -1
- package/esnext/casino-header-controller.js +14 -0
- package/package.json +8 -16
- package/stencil/index-33f005e1-BLR6jtB3.js +632 -0
- package/stencil/user-deposit-withdrawal-DafvBY_z.js +646 -0
- package/components/CasinoHamburgerMenu-CX83WE31.cjs +0 -8
- package/components/CasinoHeaderController-CxwirGVL.cjs +0 -13
- package/components/CasinoSlider-DsD-Fhk7.cjs +0 -1
- package/components/PlayerAccountBalanceModal-D_BA3ijd.cjs +0 -13
- package/components/PlayerDeposit-Bw-RuWFA.cjs +0 -1
- package/es2015/casino-header-controller.cjs +0 -1
- package/es2015/casino-header-controller.js +0 -16
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-657e7a14-D8XrwewT.js +0 -588
- package/stencil/index-657e7a14-Dej0SYE9.cjs +0 -1
- package/stencil/user-deposit-withdrawal-BwoHDg0W.js +0 -651
- package/stencil/user-deposit-withdrawal-RpW35qPG.cjs +0 -59
@@ -0,0 +1,646 @@
|
|
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 = () => {
|
4
|
+
const i = import.meta.url, p = {};
|
5
|
+
return i !== "" && (p.resourcesUrl = new URL(".", i).href), ie(p);
|
6
|
+
};
|
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 = {
|
9
|
+
en: {
|
10
|
+
Deposit: "Deposit",
|
11
|
+
Withdraw: "Withdraw",
|
12
|
+
denyDeposit: "Please be informed that currently you are not allowed to initiate depost transactions.",
|
13
|
+
denyWithdrawal: "Please be informed that currently you are not allowed to initiate withdrawal transactions.",
|
14
|
+
notFoundErrorCode: "Not found error code",
|
15
|
+
errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
|
16
|
+
errorCode21123: "Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"
|
17
|
+
},
|
18
|
+
"en-us": {
|
19
|
+
Deposit: "Deposit",
|
20
|
+
Withdraw: "Withdraw",
|
21
|
+
denyDeposit: "Please be informed that currently you are not allowed to initiate depost transactions.",
|
22
|
+
denyWithdrawal: "Please be informed that currently you are not allowed to initiate withdrawal transactions.",
|
23
|
+
notFoundErrorCode: "Not found error code",
|
24
|
+
errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
|
25
|
+
errorCode21123: "Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"
|
26
|
+
},
|
27
|
+
ro: {
|
28
|
+
Deposit: "Depunere",
|
29
|
+
Withdraw: "Retragere",
|
30
|
+
denyDeposit: "Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",
|
31
|
+
denyWithdrawal: "Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",
|
32
|
+
notFoundErrorCode: "Cod de eroare negăsit",
|
33
|
+
errorCode21122: "Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a iniția o tranzacție de retragere din contul dvs. de jucător. Cod de eroare: 21122",
|
34
|
+
errorCode21123: "Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a efectua o depunere în contul dvs. de jucător. Cod de eroare: 21123"
|
35
|
+
},
|
36
|
+
fr: {
|
37
|
+
Deposit: "Dépôt",
|
38
|
+
Withdraw: "Retrait",
|
39
|
+
denyDeposit: "Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de dépôt.",
|
40
|
+
denyWithdrawal: "Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de retrait.",
|
41
|
+
notFoundErrorCode: "Code d’erreur introuvable",
|
42
|
+
errorCode21122: "Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier une transaction de retrait depuis votre compte joueur. Code d’erreur : 21122",
|
43
|
+
errorCode21123: "Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à effectuer un dépôt sur votre compte joueur. Code d’erreur : 21123"
|
44
|
+
},
|
45
|
+
hr: {
|
46
|
+
Deposit: "Uplata",
|
47
|
+
Withdraw: "Isplata",
|
48
|
+
denyDeposit: "Obavještavamo Vas da trenutno nemate mogućnost uplata.",
|
49
|
+
denyWithdrawal: "Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",
|
50
|
+
notFoundErrorCode: "Not found error code",
|
51
|
+
errorCode21122: "Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",
|
52
|
+
errorCode21123: "Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"
|
53
|
+
},
|
54
|
+
de: {
|
55
|
+
Deposit: "Einzahlung",
|
56
|
+
Withdraw: "Abhebung",
|
57
|
+
denyDeposit: "Bitte beachten Sie, dass Sie derzeit keine Einzahlungs-Transaktionen durchführen dürfen.",
|
58
|
+
denyWithdrawal: "Bitte beachten Sie, dass Sie derzeit keine Abhebungs-Transaktionen durchführen dürfen.",
|
59
|
+
notFoundErrorCode: "Fehlercode nicht gefunden",
|
60
|
+
errorCode21122: "Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Abhebung von Ihrem Spielerkonto durchführen dürfen. Fehlercode: 21122",
|
61
|
+
errorCode21123: "Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Einzahlung auf Ihr Spielerkonto durchführen dürfen. Fehlercode: 21123"
|
62
|
+
},
|
63
|
+
es: {
|
64
|
+
Deposit: "Depósito",
|
65
|
+
Withdraw: "Retiro",
|
66
|
+
denyDeposit: "Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",
|
67
|
+
denyWithdrawal: "Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",
|
68
|
+
notFoundErrorCode: "Código de error no encontrado",
|
69
|
+
errorCode21122: "¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",
|
70
|
+
errorCode21123: "¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"
|
71
|
+
},
|
72
|
+
pt: {
|
73
|
+
Deposit: "Depósito",
|
74
|
+
Withdraw: "Levantamento",
|
75
|
+
denyDeposit: "Informamos que atualmente não tem permissão para iniciar transações de depósito.",
|
76
|
+
denyWithdrawal: "Informamos que atualmente não tem permissão para iniciar transações de levantamento.",
|
77
|
+
notFoundErrorCode: "Código de erro não encontrado",
|
78
|
+
errorCode21122: "Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",
|
79
|
+
errorCode21123: "Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"
|
80
|
+
},
|
81
|
+
"es-mx": {
|
82
|
+
Deposit: "Depósito",
|
83
|
+
Withdraw: "Retiro",
|
84
|
+
denyDeposit: "Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",
|
85
|
+
denyWithdrawal: "Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",
|
86
|
+
notFoundErrorCode: "Código de error no encontrado",
|
87
|
+
errorCode21122: "¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",
|
88
|
+
errorCode21123: "¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"
|
89
|
+
},
|
90
|
+
"pt-br": {
|
91
|
+
Deposit: "Depósito",
|
92
|
+
Withdraw: "Saque",
|
93
|
+
denyDeposit: "Informamos que atualmente você não tem permissão para iniciar transações de depósito.",
|
94
|
+
denyWithdrawal: "Informamos que atualmente você não tem permissão para iniciar transações de saque.",
|
95
|
+
notFoundErrorCode: "Código de erro não encontrado",
|
96
|
+
errorCode21122: "Caro jogador! Informamos que atualmente você não tem permissão para iniciar uma transação de saque em sua conta de jogador. Código de erro: 21122",
|
97
|
+
errorCode21123: "Caro jogador! Informamos que atualmente você não tem permissão para realizar um depósito em sua conta de jogador. Código de erro: 21123"
|
98
|
+
},
|
99
|
+
tr: {
|
100
|
+
Deposit: "Para Yatırma",
|
101
|
+
Withdraw: "Para Çekme",
|
102
|
+
denyDeposit: "Lütfen şu anda para yatırma işlemi başlatamayacağınızı bilgilerinize sunarız.",
|
103
|
+
denyWithdrawal: "Lütfen şu anda para çekme işlemi başlatamayacağınızı bilgilerinize sunarız.",
|
104
|
+
notFoundErrorCode: "Hata kodu bulunamadı",
|
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",
|
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"
|
107
|
+
}
|
108
|
+
}, le = (i) => new Promise((p) => {
|
109
|
+
fetch(i).then((u) => u.json()).then((u) => {
|
110
|
+
Object.keys(u).forEach((l) => {
|
111
|
+
for (let g in u[l])
|
112
|
+
K[l][g] = u[l][g];
|
113
|
+
}), p(!0);
|
114
|
+
});
|
115
|
+
}), H = (i, p) => {
|
116
|
+
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: {} };
|
120
|
+
(function(i, p) {
|
121
|
+
(function(u, l) {
|
122
|
+
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) {
|
125
|
+
var r = ["th", "st", "nd", "rd"], e = a % 100;
|
126
|
+
return "[" + a + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
|
127
|
+
} }, W = function(a, r, e) {
|
128
|
+
var n = String(a);
|
129
|
+
return !n || n.length >= r ? a : "" + Array(r + 1 - n.length).join(e) + a;
|
130
|
+
}, G = { s: W, z: function(a) {
|
131
|
+
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");
|
133
|
+
}, m: function a(r, e) {
|
134
|
+
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);
|
136
|
+
return +(-(n + (e - t) / (s ? t - d : d - t)) || 0);
|
137
|
+
}, a: function(a) {
|
138
|
+
return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
|
139
|
+
}, 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$/, "");
|
141
|
+
}, u: function(a) {
|
142
|
+
return a === void 0;
|
143
|
+
} }, E = "en", z = {};
|
144
|
+
z[E] = F;
|
145
|
+
var Y = "$isDayjsObject", A = function(a) {
|
146
|
+
return a instanceof Z || !(!a || !a[Y]);
|
147
|
+
}, j = function a(r, e, n) {
|
148
|
+
var t;
|
149
|
+
if (!r) return E;
|
150
|
+
if (typeof r == "string") {
|
151
|
+
var s = r.toLowerCase();
|
152
|
+
z[s] && (t = s), e && (z[s] = e, t = s);
|
153
|
+
var d = r.split("-");
|
154
|
+
if (!t && d.length > 1) return a(d[0]);
|
155
|
+
} else {
|
156
|
+
var f = r.name;
|
157
|
+
z[f] = r, t = f;
|
158
|
+
}
|
159
|
+
return !n && t && (E = t), t || !n && E;
|
160
|
+
}, w = function(a, r) {
|
161
|
+
if (A(a)) return a.clone();
|
162
|
+
var e = typeof r == "object" ? r : {};
|
163
|
+
return e.date = a, e.args = arguments, new Z(e);
|
164
|
+
}, h = G;
|
165
|
+
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 });
|
167
|
+
};
|
168
|
+
var Z = function() {
|
169
|
+
function a(e) {
|
170
|
+
this.$L = j(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[Y] = !0;
|
171
|
+
}
|
172
|
+
var r = a.prototype;
|
173
|
+
return r.parse = function(e) {
|
174
|
+
this.$d = function(n) {
|
175
|
+
var t = n.date, s = n.utc;
|
176
|
+
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
177
|
+
if (h.u(t)) return /* @__PURE__ */ new Date();
|
178
|
+
if (t instanceof Date) return new Date(t);
|
179
|
+
if (typeof t == "string" && !/Z$/i.test(t)) {
|
180
|
+
var d = t.match(M);
|
181
|
+
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);
|
184
|
+
}
|
185
|
+
}
|
186
|
+
return new Date(t);
|
187
|
+
}(e), this.init();
|
188
|
+
}, r.init = function() {
|
189
|
+
var e = this.$d;
|
190
|
+
this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
|
191
|
+
}, r.$utils = function() {
|
192
|
+
return h;
|
193
|
+
}, r.isValid = function() {
|
194
|
+
return this.$d.toString() !== o;
|
195
|
+
}, r.isSame = function(e, n) {
|
196
|
+
var t = w(e);
|
197
|
+
return this.startOf(n) <= t && t <= this.endOf(n);
|
198
|
+
}, r.isAfter = function(e, n) {
|
199
|
+
return w(e) < this.startOf(n);
|
200
|
+
}, r.isBefore = function(e, n) {
|
201
|
+
return this.endOf(n) < w(e);
|
202
|
+
}, r.$g = function(e, n, t) {
|
203
|
+
return h.u(e) ? this[n] : this.set(t, e);
|
204
|
+
}, r.unix = function() {
|
205
|
+
return Math.floor(this.valueOf() / 1e3);
|
206
|
+
}, r.valueOf = function() {
|
207
|
+
return this.$d.getTime();
|
208
|
+
}, 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" : "");
|
215
|
+
switch (d) {
|
216
|
+
case k:
|
217
|
+
return s ? f(1, 0) : f(31, 11);
|
218
|
+
case b:
|
219
|
+
return s ? f(1, v) : f(0, v + 1);
|
220
|
+
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:
|
224
|
+
case O:
|
225
|
+
return m(P + "Hours", 0);
|
226
|
+
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);
|
232
|
+
default:
|
233
|
+
return this.clone();
|
234
|
+
}
|
235
|
+
}, r.endOf = function(e) {
|
236
|
+
return this.startOf(e, !1);
|
237
|
+
}, 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);
|
243
|
+
return this.init(), this;
|
244
|
+
}, r.set = function(e, n) {
|
245
|
+
return this.clone().$set(e, n);
|
246
|
+
}, r.get = function(e) {
|
247
|
+
return this[h.p(e)]();
|
248
|
+
}, r.add = function(e, n) {
|
249
|
+
var t, s = this;
|
250
|
+
e = Number(e);
|
251
|
+
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);
|
254
|
+
};
|
255
|
+
if (d === b) return this.set(b, this.$M + e);
|
256
|
+
if (d === k) return this.set(k, this.$y + e);
|
257
|
+
if (d === T) return f(1);
|
258
|
+
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);
|
261
|
+
}, r.subtract = function(e, n) {
|
262
|
+
return this.add(-1 * e, n);
|
263
|
+
}, r.format = function(e) {
|
264
|
+
var n = this, t = this.$locale();
|
265
|
+
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";
|
272
|
+
return V ? J.toLowerCase() : J;
|
273
|
+
};
|
274
|
+
return s.replace(I, function(S, x) {
|
275
|
+
return x || function(V) {
|
276
|
+
switch (V) {
|
277
|
+
case "YY":
|
278
|
+
return String(n.$y).slice(-2);
|
279
|
+
case "YYYY":
|
280
|
+
return h.s(n.$y, 4, "0");
|
281
|
+
case "M":
|
282
|
+
return C + 1;
|
283
|
+
case "MM":
|
284
|
+
return h.s(C + 1, 2, "0");
|
285
|
+
case "MMM":
|
286
|
+
return _(t.monthsShort, C, U, 3);
|
287
|
+
case "MMMM":
|
288
|
+
return _(U, C);
|
289
|
+
case "D":
|
290
|
+
return n.$D;
|
291
|
+
case "DD":
|
292
|
+
return h.s(n.$D, 2, "0");
|
293
|
+
case "d":
|
294
|
+
return String(n.$W);
|
295
|
+
case "dd":
|
296
|
+
return _(t.weekdaysMin, n.$W, v, 2);
|
297
|
+
case "ddd":
|
298
|
+
return _(t.weekdaysShort, n.$W, v, 3);
|
299
|
+
case "dddd":
|
300
|
+
return v[n.$W];
|
301
|
+
case "H":
|
302
|
+
return String(f);
|
303
|
+
case "HH":
|
304
|
+
return h.s(f, 2, "0");
|
305
|
+
case "h":
|
306
|
+
return B(1);
|
307
|
+
case "hh":
|
308
|
+
return B(2);
|
309
|
+
case "a":
|
310
|
+
return R(f, m, !0);
|
311
|
+
case "A":
|
312
|
+
return R(f, m, !1);
|
313
|
+
case "m":
|
314
|
+
return String(m);
|
315
|
+
case "mm":
|
316
|
+
return h.s(m, 2, "0");
|
317
|
+
case "s":
|
318
|
+
return String(n.$s);
|
319
|
+
case "ss":
|
320
|
+
return h.s(n.$s, 2, "0");
|
321
|
+
case "SSS":
|
322
|
+
return h.s(n.$ms, 3, "0");
|
323
|
+
case "Z":
|
324
|
+
return d;
|
325
|
+
}
|
326
|
+
return null;
|
327
|
+
}(S) || d.replace(":", "");
|
328
|
+
});
|
329
|
+
}, r.utcOffset = function() {
|
330
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
331
|
+
}, 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);
|
334
|
+
};
|
335
|
+
switch (f) {
|
336
|
+
case k:
|
337
|
+
s = U() / 12;
|
338
|
+
break;
|
339
|
+
case b:
|
340
|
+
s = U();
|
341
|
+
break;
|
342
|
+
case N:
|
343
|
+
s = U() / 3;
|
344
|
+
break;
|
345
|
+
case q:
|
346
|
+
s = (v - C) / 6048e5;
|
347
|
+
break;
|
348
|
+
case T:
|
349
|
+
s = (v - C) / 864e5;
|
350
|
+
break;
|
351
|
+
case c:
|
352
|
+
s = v / g;
|
353
|
+
break;
|
354
|
+
case y:
|
355
|
+
s = v / l;
|
356
|
+
break;
|
357
|
+
case $:
|
358
|
+
s = v / u;
|
359
|
+
break;
|
360
|
+
default:
|
361
|
+
s = v;
|
362
|
+
}
|
363
|
+
return t ? s : h.a(s);
|
364
|
+
}, r.daysInMonth = function() {
|
365
|
+
return this.endOf(b).$D;
|
366
|
+
}, r.$locale = function() {
|
367
|
+
return z[this.$L];
|
368
|
+
}, r.locale = function(e, n) {
|
369
|
+
if (!e) return this.$L;
|
370
|
+
var t = this.clone(), s = j(e, n, !0);
|
371
|
+
return s && (t.$L = s), t;
|
372
|
+
}, r.clone = function() {
|
373
|
+
return h.w(this.$d, this);
|
374
|
+
}, r.toDate = function() {
|
375
|
+
return new Date(this.valueOf());
|
376
|
+
}, r.toJSON = function() {
|
377
|
+
return this.isValid() ? this.toISOString() : null;
|
378
|
+
}, r.toISOString = function() {
|
379
|
+
return this.$d.toISOString();
|
380
|
+
}, r.toString = function() {
|
381
|
+
return this.$d.toUTCString();
|
382
|
+
}, 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) {
|
386
|
+
return this.$g(r, a[0], a[1]);
|
387
|
+
};
|
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;
|
393
|
+
});
|
394
|
+
})(ee);
|
395
|
+
const te = ee.exports;
|
396
|
+
var re = { exports: {} };
|
397
|
+
(function(i, p) {
|
398
|
+
(function(u, l) {
|
399
|
+
i.exports = l();
|
400
|
+
})(X, function() {
|
401
|
+
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);
|
407
|
+
}, c.utc = function(o) {
|
408
|
+
var M = y(this.toDate(), { locale: this.$L, utc: !0 });
|
409
|
+
return o ? M.add(this.utcOffset(), u) : M;
|
410
|
+
}, c.local = function() {
|
411
|
+
return y(this.toDate(), { locale: this.$L, utc: !1 });
|
412
|
+
};
|
413
|
+
var T = c.parse;
|
414
|
+
c.parse = function(o) {
|
415
|
+
o.utc && (this.$u = !0), this.$utils().u(o.$offset) || (this.$offset = o.$offset), T.call(this, o);
|
416
|
+
};
|
417
|
+
var q = c.init;
|
418
|
+
c.init = function() {
|
419
|
+
if (this.$u) {
|
420
|
+
var o = this.$d;
|
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();
|
422
|
+
} else q.call(this);
|
423
|
+
};
|
424
|
+
var b = c.utcOffset;
|
425
|
+
c.utcOffset = function(o, M) {
|
426
|
+
var I = this.$utils().u;
|
427
|
+
if (I(o)) return this.$u ? 0 : I(this.$offset) ? b.call(this) : this.$offset;
|
428
|
+
if (typeof o == "string" && (o = function(E) {
|
429
|
+
E === void 0 && (E = "");
|
430
|
+
var z = E.match(l);
|
431
|
+
if (!z) return null;
|
432
|
+
var Y = ("" + z[0]).match(g) || ["-", 0, 0], A = Y[0], j = 60 * +Y[1] + +Y[2];
|
433
|
+
return j === 0 ? 0 : A === "+" ? j : -j;
|
434
|
+
}(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;
|
437
|
+
if (o !== 0) {
|
438
|
+
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;
|
442
|
+
};
|
443
|
+
var N = c.format;
|
444
|
+
c.format = function(o) {
|
445
|
+
var M = o || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
446
|
+
return N.call(this, M);
|
447
|
+
}, c.valueOf = function() {
|
448
|
+
var o = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
449
|
+
return this.$d.valueOf() - 6e4 * o;
|
450
|
+
}, c.isUTC = function() {
|
451
|
+
return !!this.$u;
|
452
|
+
}, c.toISOString = function() {
|
453
|
+
return this.toDate().toISOString();
|
454
|
+
}, c.toString = function() {
|
455
|
+
return this.toDate().toUTCString();
|
456
|
+
};
|
457
|
+
var k = c.toDate;
|
458
|
+
c.toDate = function(o) {
|
459
|
+
return o === "s" && this.$offset ? y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
|
460
|
+
};
|
461
|
+
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);
|
466
|
+
};
|
467
|
+
};
|
468
|
+
});
|
469
|
+
})(re);
|
470
|
+
const fe = re.exports, pe = `:host {
|
471
|
+
font: inherit;
|
472
|
+
display: block;
|
473
|
+
height: 100%;
|
474
|
+
overflow: hidden;
|
475
|
+
}
|
476
|
+
|
477
|
+
.CategoryTitle {
|
478
|
+
font-size: var(--emw--font-size-x-large, 26px);
|
479
|
+
color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
480
|
+
}
|
481
|
+
|
482
|
+
.MenuReturnButton {
|
483
|
+
font: inherit;
|
484
|
+
color: var(--emw--color-gray-300, #58586B);
|
485
|
+
display: inline-flex;
|
486
|
+
align-items: center;
|
487
|
+
column-gap: 10px;
|
488
|
+
margin-bottom: 10px;
|
489
|
+
}
|
490
|
+
.MenuReturnButton svg {
|
491
|
+
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
492
|
+
}
|
493
|
+
.MenuReturnButton h2.CategoryTitleMobile {
|
494
|
+
font-size: 16px;
|
495
|
+
color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
496
|
+
}
|
497
|
+
|
498
|
+
.ErrorMessage {
|
499
|
+
color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));
|
500
|
+
}
|
501
|
+
|
502
|
+
.DepositWithdrawalWrapper {
|
503
|
+
width: 100%;
|
504
|
+
padding: 0;
|
505
|
+
margin: 0;
|
506
|
+
height: 100vh;
|
507
|
+
}
|
508
|
+
|
509
|
+
@container (max-width: 475px) {
|
510
|
+
.DepositWithdrawalWrapper {
|
511
|
+
height: 100vh;
|
512
|
+
}
|
513
|
+
}
|
514
|
+
.ShortCashier.DepositWithdrawalWrapper {
|
515
|
+
height: 500px;
|
516
|
+
}
|
517
|
+
.ShortCashier.CategoryTitle.CategoryTitle {
|
518
|
+
margin-right: 20px;
|
519
|
+
padding-top: 20px;
|
520
|
+
color: ar(--emw--color-black, #000000);
|
521
|
+
}
|
522
|
+
.ShortCashier .ErrorMessage {
|
523
|
+
margin: auto;
|
524
|
+
width: 90%;
|
525
|
+
margin-top: 70px;
|
526
|
+
text-align: center;
|
527
|
+
color: var(--emw--color-black, #000000);
|
528
|
+
}`, me = pe;
|
529
|
+
te.extend(fe);
|
530
|
+
const ge = () => {
|
531
|
+
}, ye = class {
|
532
|
+
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 = () => {
|
534
|
+
let p = document.createElement("style");
|
535
|
+
p.innerHTML = this.clientStyling, this.stylingContainer.prepend(p);
|
536
|
+
}, this.setClientStylingURL = () => {
|
537
|
+
let p = new URL(this.clientStylingUrl), u = document.createElement("style");
|
538
|
+
fetch(p.href).then((l) => l.text()).then((l) => {
|
539
|
+
u.innerHTML = l, setTimeout(() => {
|
540
|
+
this.stylingContainer.prepend(u);
|
541
|
+
}, 1);
|
542
|
+
}).catch((l) => {
|
543
|
+
console.log("error ", l);
|
544
|
+
});
|
545
|
+
};
|
546
|
+
}
|
547
|
+
get typeParameter() {
|
548
|
+
if (this.type === "deposit")
|
549
|
+
return "Deposit";
|
550
|
+
if (this.type === "withdraw")
|
551
|
+
return "Withdraw";
|
552
|
+
}
|
553
|
+
watchLoadWidget() {
|
554
|
+
this.loadWidget();
|
555
|
+
}
|
556
|
+
async componentWillLoad() {
|
557
|
+
if (await this.loadWidget(), this.translationUrl)
|
558
|
+
return le(this.translationUrl);
|
559
|
+
}
|
560
|
+
toggleScreen(i) {
|
561
|
+
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: i }, window.location.href);
|
562
|
+
}
|
563
|
+
componentDidLoad() {
|
564
|
+
window.addEventListener("message", this.bindedHandler, !1);
|
565
|
+
}
|
566
|
+
disconnectedCallback() {
|
567
|
+
window.removeEventListener("message", this.bindedHandler, !1);
|
568
|
+
}
|
569
|
+
componentDidRender() {
|
570
|
+
!this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.limitStylingAppends = !0);
|
571
|
+
}
|
572
|
+
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)))));
|
574
|
+
}
|
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);
|
614
|
+
}
|
615
|
+
} catch (p) {
|
616
|
+
console.error(p);
|
617
|
+
}
|
618
|
+
}
|
619
|
+
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));
|
622
|
+
}
|
623
|
+
doRedirect(i, p) {
|
624
|
+
const u = { reason: i, url: p, cancel: !1 };
|
625
|
+
if (this.beforeRedirect(u), !u.cancel) {
|
626
|
+
if (!u.url) {
|
627
|
+
window.location.href = "/";
|
628
|
+
return;
|
629
|
+
}
|
630
|
+
window.location.href = u.url;
|
631
|
+
}
|
632
|
+
}
|
633
|
+
static get watchers() {
|
634
|
+
return {
|
635
|
+
session: ["watchLoadWidget"],
|
636
|
+
userId: ["watchLoadWidget"],
|
637
|
+
isShortCashier: ["watchLoadWidget"],
|
638
|
+
currency: ["watchLoadWidget"],
|
639
|
+
showBonusSelectionInput: ["watchLoadWidget"]
|
640
|
+
};
|
641
|
+
}
|
642
|
+
};
|
643
|
+
ye.style = me;
|
644
|
+
export {
|
645
|
+
ye as user_deposit_withdrawal
|
646
|
+
};
|