@everymatrix/casino-header-controller 1.54.12 → 1.56.0
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.
- package/components/{CasinoHamburgerMenu-Dv3mR4gk.js → CasinoHamburgerMenu-B2TeHkyB.js} +1023 -1001
- package/components/{CasinoHamburgerMenu-DrXD2QZ-.js → CasinoHamburgerMenu-CUR5gaxv.js} +1048 -1026
- package/components/CasinoHamburgerMenu-DYL1HIps.cjs +8 -0
- package/components/CasinoHeaderController-CfLLPnem.cjs +13 -0
- package/components/{CasinoHeaderController-uM2BkEPQ.js → CasinoHeaderController-CrEqMU6h.js} +1019 -923
- package/components/{CasinoHeaderController-EYxUFHlv.js → CasinoHeaderController-Cv1RNj2L.js} +1056 -960
- package/components/CasinoSlider-BU9fkHDu.cjs +1 -0
- package/components/CasinoSlider-CS-q7BSV.js +803 -0
- package/components/CasinoSlider-DrD2osTb.js +797 -0
- package/components/PlayerAccountBalanceModal--zdJlg4L.js +1507 -0
- package/components/PlayerAccountBalanceModal-C31JpnHA.cjs +13 -0
- package/components/PlayerAccountBalanceModal-aiqQaHCF.js +1536 -0
- package/components/{PlayerDeposit-B89_Vs9V.js → PlayerDeposit-BlD-xNdY.js} +128 -132
- package/components/{PlayerDeposit-CNy9cvEy.js → PlayerDeposit-DwGrlu-U.js} +128 -132
- package/components/PlayerDeposit-DzkmDtD0.cjs +1 -0
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-c7e52808-DGZdfQYz.cjs +1 -0
- package/stencil/{index-45f4006f-B0VyePmU.js → index-c7e52808-RGphQbEA.js} +44 -44
- package/stencil/{index-45f4006f-BYSN7Lmh.js → index-c7e52808-yJXIboHF.js} +46 -46
- package/stencil/{user-deposit-withdrawal-BEcaqAXR.js → user-deposit-withdrawal-1SJnPWvi.js} +257 -240
- package/stencil/{user-deposit-withdrawal-5ly7Quf_.js → user-deposit-withdrawal-BiZKbrT_.js} +181 -164
- package/stencil/user-deposit-withdrawal-CzeoKH00.cjs +59 -0
- package/components/CasinoHamburgerMenu-BGHo13mn.cjs +0 -8
- package/components/CasinoHeaderController-CfFUvcEO.cjs +0 -13
- package/components/CasinoSlider-5-1p-Xbc.js +0 -800
- package/components/CasinoSlider-BaotiKI5.cjs +0 -1
- package/components/CasinoSlider-Dm6jniCL.js +0 -806
- package/components/PlayerAccountBalanceModal-B1_uQAVA.js +0 -1540
- package/components/PlayerAccountBalanceModal-B_7fcnxz.cjs +0 -13
- package/components/PlayerAccountBalanceModal-Cs1yCHOI.js +0 -1511
- package/components/PlayerDeposit-DqZH75Dh.cjs +0 -1
- package/stencil/index-45f4006f-CT7q_gcU.cjs +0 -1
- package/stencil/user-deposit-withdrawal-CJUx01Ss.cjs +0 -59
@@ -1,1511 +0,0 @@
|
|
1
|
-
import { b as ct, $ as ut, L as dt, S as ft, i as pt, s as ht, f as Y, d as mt, n as qe, e as fe, h as pe, v as R, k as N, j as oe, z as V, l as gt, o as yt, w as Ve, p as vt, u as ue, y as de, r as wt, A as je, B as rt, t as bt, c as Bt, I as Ct } from "./CasinoHamburgerMenu-Dv3mR4gk.js";
|
2
|
-
function Qe(o, e) {
|
3
|
-
ct(o, e);
|
4
|
-
}
|
5
|
-
function Tt(o) {
|
6
|
-
ut.set(o);
|
7
|
-
}
|
8
|
-
const Ze = {
|
9
|
-
en: {
|
10
|
-
Title: "Your Balance",
|
11
|
-
Total: "Total Balance",
|
12
|
-
Real: "Cash Balance",
|
13
|
-
Bonus: "Bonus Balance",
|
14
|
-
Credit: "Credit Balance",
|
15
|
-
Casino: "Casino",
|
16
|
-
Sports: "Sports",
|
17
|
-
DepositButton: "Deposit",
|
18
|
-
Loading: "Loading ..."
|
19
|
-
},
|
20
|
-
"zh-hk": {
|
21
|
-
Title: "您的結餘",
|
22
|
-
Total: "總結餘",
|
23
|
-
Real: "現金結餘",
|
24
|
-
Bonus: "紅利結餘",
|
25
|
-
Credit: "信用結餘",
|
26
|
-
Casino: "賭場",
|
27
|
-
Sports: "體育",
|
28
|
-
DepositButton: "存款",
|
29
|
-
Loading: "載入中 ..."
|
30
|
-
},
|
31
|
-
de: {
|
32
|
-
Title: "Ihr Guthaben",
|
33
|
-
Total: "Gesamtguthaben",
|
34
|
-
Real: "Barguthaben",
|
35
|
-
Bonus: "Bonusguthaben",
|
36
|
-
Credit: "Kreditguthaben",
|
37
|
-
Casino: "Casino",
|
38
|
-
Sports: "Sport",
|
39
|
-
DepositButton: "Einzahlen",
|
40
|
-
Loading: "Wird geladen ..."
|
41
|
-
},
|
42
|
-
it: {
|
43
|
-
Title: "Il tuo saldo",
|
44
|
-
Total: "Saldo totale",
|
45
|
-
Real: "Saldo in contanti",
|
46
|
-
Bonus: "Saldo bonus",
|
47
|
-
Credit: "Saldo di credito",
|
48
|
-
Casino: "Casinò",
|
49
|
-
Sports: "Sport",
|
50
|
-
DepositButton: "Deposita",
|
51
|
-
Loading: "Caricamento ..."
|
52
|
-
},
|
53
|
-
fr: {
|
54
|
-
Title: "Votre solde",
|
55
|
-
Total: "Solde total",
|
56
|
-
Real: "Solde en espèces",
|
57
|
-
Bonus: "Solde bonus",
|
58
|
-
Credit: "Solde de crédit",
|
59
|
-
Casino: "Casino",
|
60
|
-
Sports: "Sports",
|
61
|
-
DepositButton: "Dépôt",
|
62
|
-
Loading: "Chargement ..."
|
63
|
-
},
|
64
|
-
es: {
|
65
|
-
Title: "Tu saldo",
|
66
|
-
Total: "Saldo total",
|
67
|
-
Real: "Saldo en efectivo",
|
68
|
-
Bonus: "Saldo de bono",
|
69
|
-
Credit: "Saldo de crédito",
|
70
|
-
Casino: "Casino",
|
71
|
-
Sports: "Deportes",
|
72
|
-
DepositButton: "Depósito",
|
73
|
-
Loading: "Cargando ..."
|
74
|
-
},
|
75
|
-
tr: {
|
76
|
-
Title: "Bakiyeniz",
|
77
|
-
Total: "Toplam Bakiye",
|
78
|
-
Real: "Nakit Bakiye",
|
79
|
-
Bonus: "Bonus Bakiyesi",
|
80
|
-
Credit: "Kredi Bakiyesi",
|
81
|
-
Casino: "Kumarhane",
|
82
|
-
Sports: "Spor",
|
83
|
-
DepositButton: "Yatır",
|
84
|
-
Loading: "Yükleniyor ..."
|
85
|
-
},
|
86
|
-
ru: {
|
87
|
-
Title: "Ваш баланс",
|
88
|
-
Total: "Общий баланс",
|
89
|
-
Real: "Денежный баланс",
|
90
|
-
Bonus: "Бонусный баланс",
|
91
|
-
Credit: "Кредитный баланс",
|
92
|
-
Casino: "Казино",
|
93
|
-
Sports: "Спорт",
|
94
|
-
DepositButton: "Депозит",
|
95
|
-
Loading: "Загружается ..."
|
96
|
-
},
|
97
|
-
ro: {
|
98
|
-
Title: "Soldul tău",
|
99
|
-
Total: "Sold total",
|
100
|
-
Real: "Sold în numerar",
|
101
|
-
Bonus: "Sold bonus",
|
102
|
-
Credit: "Sold credit",
|
103
|
-
Casino: "Cazinou",
|
104
|
-
Sports: "Sporturi",
|
105
|
-
DepositButton: "Depozit",
|
106
|
-
Loading: "Se încarcă ..."
|
107
|
-
},
|
108
|
-
hr: {
|
109
|
-
Title: "Vaš saldo",
|
110
|
-
Total: "Ukupni saldo",
|
111
|
-
Real: "Gotovinski saldo",
|
112
|
-
Bonus: "Bonus saldo",
|
113
|
-
Credit: "Kreditni saldo",
|
114
|
-
Casino: "Casino",
|
115
|
-
Sports: "Sportovi",
|
116
|
-
DepositButton: "Depozit",
|
117
|
-
Loading: "Učitavanje ..."
|
118
|
-
},
|
119
|
-
hu: {
|
120
|
-
Title: "Az egyenleged",
|
121
|
-
Total: "Teljes egyenleg",
|
122
|
-
Real: "Készpénz egyenleg",
|
123
|
-
Bonus: "Bónusz egyenleg",
|
124
|
-
Credit: "Hitel egyenleg",
|
125
|
-
Casino: "Kaszinó",
|
126
|
-
Sports: "Sport",
|
127
|
-
DepositButton: "Befizetés",
|
128
|
-
Loading: "Betöltés ..."
|
129
|
-
},
|
130
|
-
pl: {
|
131
|
-
Title: "Twoje saldo",
|
132
|
-
Total: "Całkowite saldo",
|
133
|
-
Real: "Saldo gotówkowe",
|
134
|
-
Bonus: "Saldo bonusowe",
|
135
|
-
Credit: "Saldo kredytowe",
|
136
|
-
Casino: "Kasyno",
|
137
|
-
Sports: "Sport",
|
138
|
-
DepositButton: "Wpłać",
|
139
|
-
Loading: "Ładowanie ..."
|
140
|
-
},
|
141
|
-
pt: {
|
142
|
-
Title: "Seu Saldo",
|
143
|
-
Total: "Saldo Total",
|
144
|
-
Real: "Saldo em Dinheiro",
|
145
|
-
Bonus: "Saldo de Bônus",
|
146
|
-
Credit: "Saldo de Crédito",
|
147
|
-
Casino: "Cassino",
|
148
|
-
Sports: "Esportes",
|
149
|
-
DepositButton: "Depositar",
|
150
|
-
Loading: "Carregando ..."
|
151
|
-
},
|
152
|
-
sl: {
|
153
|
-
Title: "Vaš saldo",
|
154
|
-
Total: "Skupni saldo",
|
155
|
-
Real: "Gotovinski saldo",
|
156
|
-
Bonus: "Bonus saldo",
|
157
|
-
Credit: "Kreditni saldo",
|
158
|
-
Casino: "Kasino",
|
159
|
-
Sports: "Šport",
|
160
|
-
DepositButton: "Depozit",
|
161
|
-
Loading: "Nalaganje ..."
|
162
|
-
},
|
163
|
-
sr: {
|
164
|
-
Title: "Vaš saldo",
|
165
|
-
Total: "Ukupan saldo",
|
166
|
-
Real: "Gotovinski saldo",
|
167
|
-
Bonus: "Bonus saldo",
|
168
|
-
Credit: "Kreditni saldo",
|
169
|
-
Casino: "Kasino",
|
170
|
-
Sports: "Sport",
|
171
|
-
DepositButton: "Depozit",
|
172
|
-
Loading: "Učitavanje ..."
|
173
|
-
},
|
174
|
-
"pt-br": {
|
175
|
-
Title: "Seu Saldo",
|
176
|
-
Total: "Saldo Total",
|
177
|
-
Real: "Saldo em Dinheiro",
|
178
|
-
Bonus: "Saldo de Bônus",
|
179
|
-
Credit: "Saldo de Crédito",
|
180
|
-
Casino: "Cassino",
|
181
|
-
Sports: "Esportes",
|
182
|
-
DepositButton: "Depositar",
|
183
|
-
Loading: "Carregando ..."
|
184
|
-
},
|
185
|
-
"es-mx": {
|
186
|
-
Title: "Tu saldo",
|
187
|
-
Total: "Saldo total",
|
188
|
-
Real: "Saldo en efectivo",
|
189
|
-
Bonus: "Saldo de bono",
|
190
|
-
Credit: "Saldo de crédito",
|
191
|
-
Casino: "Casino",
|
192
|
-
Sports: "Deportes",
|
193
|
-
DepositButton: "Depósito",
|
194
|
-
Loading: "Cargando ..."
|
195
|
-
},
|
196
|
-
"en-us": {
|
197
|
-
Title: "Your Balance",
|
198
|
-
Total: "Total Balance",
|
199
|
-
Real: "Cash Balance",
|
200
|
-
Bonus: "Bonus Balance",
|
201
|
-
Credit: "Credit Balance",
|
202
|
-
Casino: "Casino",
|
203
|
-
Sports: "Sports",
|
204
|
-
DepositButton: "Deposit",
|
205
|
-
Loading: "Loading ..."
|
206
|
-
}
|
207
|
-
};
|
208
|
-
var We = { exports: {} };
|
209
|
-
/** @license
|
210
|
-
* eventsource.js
|
211
|
-
* Available under MIT License (MIT)
|
212
|
-
* https://github.com/Yaffle/EventSource/
|
213
|
-
*/
|
214
|
-
(function(o, e) {
|
215
|
-
(function(n) {
|
216
|
-
var r = n.setTimeout, l = n.clearTimeout, u = n.XMLHttpRequest, m = n.XDomainRequest, p = n.ActiveXObject, g = n.EventSource, y = n.document, x = n.Promise, F = n.fetch, B = n.Response, C = n.TextDecoder, _ = n.TextEncoder, U = n.AbortController;
|
217
|
-
if (typeof window < "u" && typeof y < "u" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(t) {
|
218
|
-
y.readyState = "complete";
|
219
|
-
}, !1)), u == null && p != null && (u = function() {
|
220
|
-
return new p("Microsoft.XMLHTTP");
|
221
|
-
}), Object.create == null && (Object.create = function(t) {
|
222
|
-
function a() {
|
223
|
-
}
|
224
|
-
return a.prototype = t, new a();
|
225
|
-
}), Date.now || (Date.now = function() {
|
226
|
-
return (/* @__PURE__ */ new Date()).getTime();
|
227
|
-
}), U == null) {
|
228
|
-
var M = F;
|
229
|
-
F = function(t, a) {
|
230
|
-
var s = a.signal;
|
231
|
-
return M(t, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(i) {
|
232
|
-
var d = i.body.getReader();
|
233
|
-
return s._reader = d, s._aborted && s._reader.cancel(), {
|
234
|
-
status: i.status,
|
235
|
-
statusText: i.statusText,
|
236
|
-
headers: i.headers,
|
237
|
-
body: {
|
238
|
-
getReader: function() {
|
239
|
-
return d;
|
240
|
-
}
|
241
|
-
}
|
242
|
-
};
|
243
|
-
});
|
244
|
-
}, U = function() {
|
245
|
-
this.signal = {
|
246
|
-
_reader: null,
|
247
|
-
_aborted: !1
|
248
|
-
}, this.abort = function() {
|
249
|
-
this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
|
250
|
-
};
|
251
|
-
};
|
252
|
-
}
|
253
|
-
function H() {
|
254
|
-
this.bitsNeeded = 0, this.codePoint = 0;
|
255
|
-
}
|
256
|
-
H.prototype.decode = function(t) {
|
257
|
-
function a(E, L, v) {
|
258
|
-
if (v === 1)
|
259
|
-
return E >= 128 >> L && E << L <= 2047;
|
260
|
-
if (v === 2)
|
261
|
-
return E >= 2048 >> L && E << L <= 55295 || E >= 57344 >> L && E << L <= 65535;
|
262
|
-
if (v === 3)
|
263
|
-
return E >= 65536 >> L && E << L <= 1114111;
|
264
|
-
throw new Error();
|
265
|
-
}
|
266
|
-
function s(E, L) {
|
267
|
-
if (E === 6 * 1)
|
268
|
-
return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
|
269
|
-
if (E === 6 * 2)
|
270
|
-
return L > 15 ? 3 : 2;
|
271
|
-
if (E === 6 * 3)
|
272
|
-
return 3;
|
273
|
-
throw new Error();
|
274
|
-
}
|
275
|
-
for (var i = 65533, d = "", h = this.bitsNeeded, w = this.codePoint, k = 0; k < t.length; k += 1) {
|
276
|
-
var S = t[k];
|
277
|
-
h !== 0 && (S < 128 || S > 191 || !a(w << 6 | S & 63, h - 6, s(h, w))) && (h = 0, w = i, d += String.fromCharCode(w)), h === 0 ? (S >= 0 && S <= 127 ? (h = 0, w = S) : S >= 192 && S <= 223 ? (h = 6 * 1, w = S & 31) : S >= 224 && S <= 239 ? (h = 6 * 2, w = S & 15) : S >= 240 && S <= 247 ? (h = 6 * 3, w = S & 7) : (h = 0, w = i), h !== 0 && !a(w, h, s(h, w)) && (h = 0, w = i)) : (h -= 6, w = w << 6 | S & 63), h === 0 && (w <= 65535 ? d += String.fromCharCode(w) : (d += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), d += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
|
278
|
-
}
|
279
|
-
return this.bitsNeeded = h, this.codePoint = w, d;
|
280
|
-
};
|
281
|
-
var P = function() {
|
282
|
-
try {
|
283
|
-
return new C().decode(new _().encode("test"), { stream: !0 }) === "test";
|
284
|
-
} catch (t) {
|
285
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + t);
|
286
|
-
}
|
287
|
-
return !1;
|
288
|
-
};
|
289
|
-
(C == null || _ == null || !P()) && (C = H);
|
290
|
-
var T = function() {
|
291
|
-
};
|
292
|
-
function A(t) {
|
293
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = t, this._sendTimeout = 0, this._abort = T;
|
294
|
-
}
|
295
|
-
A.prototype.open = function(t, a) {
|
296
|
-
this._abort(!0);
|
297
|
-
var s = this, i = this._xhr, d = 1, h = 0;
|
298
|
-
this._abort = function(v) {
|
299
|
-
s._sendTimeout !== 0 && (l(s._sendTimeout), s._sendTimeout = 0), (d === 1 || d === 2 || d === 3) && (d = 4, i.onload = T, i.onerror = T, i.onabort = T, i.onprogress = T, i.onreadystatechange = T, i.abort(), h !== 0 && (l(h), h = 0), v || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), d = 0;
|
300
|
-
};
|
301
|
-
var w = function() {
|
302
|
-
if (d === 1) {
|
303
|
-
var v = 0, O = "", ie = void 0;
|
304
|
-
if ("contentType" in i)
|
305
|
-
v = 200, O = "OK", ie = i.contentType;
|
306
|
-
else
|
307
|
-
try {
|
308
|
-
v = i.status, O = i.statusText, ie = i.getResponseHeader("Content-Type");
|
309
|
-
} catch {
|
310
|
-
v = 0, O = "", ie = void 0;
|
311
|
-
}
|
312
|
-
v !== 0 && (d = 2, s.readyState = 2, s.status = v, s.statusText = O, s._contentType = ie, s.onreadystatechange());
|
313
|
-
}
|
314
|
-
}, k = function() {
|
315
|
-
if (w(), d === 2 || d === 3) {
|
316
|
-
d = 3;
|
317
|
-
var v = "";
|
318
|
-
try {
|
319
|
-
v = i.responseText;
|
320
|
-
} catch {
|
321
|
-
}
|
322
|
-
s.readyState = 3, s.responseText = v, s.onprogress();
|
323
|
-
}
|
324
|
-
}, S = function(v, O) {
|
325
|
-
if ((O == null || O.preventDefault == null) && (O = {
|
326
|
-
preventDefault: T
|
327
|
-
}), k(), d === 1 || d === 2 || d === 3) {
|
328
|
-
if (d = 4, h !== 0 && (l(h), h = 0), s.readyState = 4, v === "load")
|
329
|
-
s.onload(O);
|
330
|
-
else if (v === "error")
|
331
|
-
s.onerror(O);
|
332
|
-
else if (v === "abort")
|
333
|
-
s.onabort(O);
|
334
|
-
else
|
335
|
-
throw new TypeError();
|
336
|
-
s.onreadystatechange();
|
337
|
-
}
|
338
|
-
}, E = function(v) {
|
339
|
-
i != null && (i.readyState === 4 ? (!("onload" in i) || !("onerror" in i) || !("onabort" in i)) && S(i.responseText === "" ? "error" : "load", v) : i.readyState === 3 ? "onprogress" in i || k() : i.readyState === 2 && w());
|
340
|
-
}, L = function() {
|
341
|
-
h = r(function() {
|
342
|
-
L();
|
343
|
-
}, 500), i.readyState === 3 && k();
|
344
|
-
};
|
345
|
-
"onload" in i && (i.onload = function(v) {
|
346
|
-
S("load", v);
|
347
|
-
}), "onerror" in i && (i.onerror = function(v) {
|
348
|
-
S("error", v);
|
349
|
-
}), "onabort" in i && (i.onabort = function(v) {
|
350
|
-
S("abort", v);
|
351
|
-
}), "onprogress" in i && (i.onprogress = k), "onreadystatechange" in i && (i.onreadystatechange = function(v) {
|
352
|
-
E(v);
|
353
|
-
}), ("contentType" in i || !("ontimeout" in u.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(t, a, !0), "readyState" in i && (h = r(function() {
|
354
|
-
L();
|
355
|
-
}, 0));
|
356
|
-
}, A.prototype.abort = function() {
|
357
|
-
this._abort(!1);
|
358
|
-
}, A.prototype.getResponseHeader = function(t) {
|
359
|
-
return this._contentType;
|
360
|
-
}, A.prototype.setRequestHeader = function(t, a) {
|
361
|
-
var s = this._xhr;
|
362
|
-
"setRequestHeader" in s && s.setRequestHeader(t, a);
|
363
|
-
}, A.prototype.getAllResponseHeaders = function() {
|
364
|
-
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
365
|
-
}, A.prototype.send = function() {
|
366
|
-
if ((!("ontimeout" in u.prototype) || !("sendAsBinary" in u.prototype) && !("mozAnon" in u.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
|
367
|
-
var t = this;
|
368
|
-
t._sendTimeout = r(function() {
|
369
|
-
t._sendTimeout = 0, t.send();
|
370
|
-
}, 4);
|
371
|
-
return;
|
372
|
-
}
|
373
|
-
var a = this._xhr;
|
374
|
-
"withCredentials" in a && (a.withCredentials = this.withCredentials);
|
375
|
-
try {
|
376
|
-
a.send(void 0);
|
377
|
-
} catch (s) {
|
378
|
-
throw s;
|
379
|
-
}
|
380
|
-
};
|
381
|
-
function G(t) {
|
382
|
-
return t.replace(/[A-Z]/g, function(a) {
|
383
|
-
return String.fromCharCode(a.charCodeAt(0) + 32);
|
384
|
-
});
|
385
|
-
}
|
386
|
-
function D(t) {
|
387
|
-
for (var a = /* @__PURE__ */ Object.create(null), s = t.split(`\r
|
388
|
-
`), i = 0; i < s.length; i += 1) {
|
389
|
-
var d = s[i], h = d.split(": "), w = h.shift(), k = h.join(": ");
|
390
|
-
a[G(w)] = k;
|
391
|
-
}
|
392
|
-
this._map = a;
|
393
|
-
}
|
394
|
-
D.prototype.get = function(t) {
|
395
|
-
return this._map[G(t)];
|
396
|
-
}, u != null && u.HEADERS_RECEIVED == null && (u.HEADERS_RECEIVED = 2);
|
397
|
-
function W() {
|
398
|
-
}
|
399
|
-
W.prototype.open = function(t, a, s, i, d, h, w) {
|
400
|
-
t.open("GET", d);
|
401
|
-
var k = 0;
|
402
|
-
t.onprogress = function() {
|
403
|
-
var E = t.responseText, L = E.slice(k);
|
404
|
-
k += L.length, s(L);
|
405
|
-
}, t.onerror = function(E) {
|
406
|
-
E.preventDefault(), i(new Error("NetworkError"));
|
407
|
-
}, t.onload = function() {
|
408
|
-
i(null);
|
409
|
-
}, t.onabort = function() {
|
410
|
-
i(null);
|
411
|
-
}, t.onreadystatechange = function() {
|
412
|
-
if (t.readyState === u.HEADERS_RECEIVED) {
|
413
|
-
var E = t.status, L = t.statusText, v = t.getResponseHeader("Content-Type"), O = t.getAllResponseHeaders();
|
414
|
-
a(E, L, v, new D(O));
|
415
|
-
}
|
416
|
-
}, t.withCredentials = h;
|
417
|
-
for (var S in w)
|
418
|
-
Object.prototype.hasOwnProperty.call(w, S) && t.setRequestHeader(S, w[S]);
|
419
|
-
return t.send(), t;
|
420
|
-
};
|
421
|
-
function he(t) {
|
422
|
-
this._headers = t;
|
423
|
-
}
|
424
|
-
he.prototype.get = function(t) {
|
425
|
-
return this._headers.get(t);
|
426
|
-
};
|
427
|
-
function me() {
|
428
|
-
}
|
429
|
-
me.prototype.open = function(t, a, s, i, d, h, w) {
|
430
|
-
var k = null, S = new U(), E = S.signal, L = new C();
|
431
|
-
return F(d, {
|
432
|
-
headers: w,
|
433
|
-
credentials: h ? "include" : "same-origin",
|
434
|
-
signal: E,
|
435
|
-
cache: "no-store"
|
436
|
-
}).then(function(v) {
|
437
|
-
return k = v.body.getReader(), a(v.status, v.statusText, v.headers.get("Content-Type"), new he(v.headers)), new x(function(O, ie) {
|
438
|
-
var Le = function() {
|
439
|
-
k.read().then(function(Q) {
|
440
|
-
if (Q.done)
|
441
|
-
O(void 0);
|
442
|
-
else {
|
443
|
-
var X = L.decode(Q.value, { stream: !0 });
|
444
|
-
s(X), Le();
|
445
|
-
}
|
446
|
-
}).catch(function(Q) {
|
447
|
-
ie(Q);
|
448
|
-
});
|
449
|
-
};
|
450
|
-
Le();
|
451
|
-
});
|
452
|
-
}).catch(function(v) {
|
453
|
-
if (v.name !== "AbortError")
|
454
|
-
return v;
|
455
|
-
}).then(function(v) {
|
456
|
-
i(v);
|
457
|
-
}), {
|
458
|
-
abort: function() {
|
459
|
-
k?.cancel(), S.abort();
|
460
|
-
}
|
461
|
-
};
|
462
|
-
};
|
463
|
-
function f() {
|
464
|
-
this._listeners = /* @__PURE__ */ Object.create(null);
|
465
|
-
}
|
466
|
-
function ge(t) {
|
467
|
-
r(function() {
|
468
|
-
throw t;
|
469
|
-
}, 0);
|
470
|
-
}
|
471
|
-
f.prototype.dispatchEvent = function(t) {
|
472
|
-
t.target = this;
|
473
|
-
var a = this._listeners[t.type];
|
474
|
-
if (a != null)
|
475
|
-
for (var s = a.length, i = 0; i < s; i += 1) {
|
476
|
-
var d = a[i];
|
477
|
-
try {
|
478
|
-
typeof d.handleEvent == "function" ? d.handleEvent(t) : d.call(this, t);
|
479
|
-
} catch (h) {
|
480
|
-
ge(h);
|
481
|
-
}
|
482
|
-
}
|
483
|
-
}, f.prototype.addEventListener = function(t, a) {
|
484
|
-
t = String(t);
|
485
|
-
var s = this._listeners, i = s[t];
|
486
|
-
i == null && (i = [], s[t] = i);
|
487
|
-
for (var d = !1, h = 0; h < i.length; h += 1)
|
488
|
-
i[h] === a && (d = !0);
|
489
|
-
d || i.push(a);
|
490
|
-
}, f.prototype.removeEventListener = function(t, a) {
|
491
|
-
t = String(t);
|
492
|
-
var s = this._listeners, i = s[t];
|
493
|
-
if (i != null) {
|
494
|
-
for (var d = [], h = 0; h < i.length; h += 1)
|
495
|
-
i[h] !== a && d.push(i[h]);
|
496
|
-
d.length === 0 ? delete s[t] : s[t] = d;
|
497
|
-
}
|
498
|
-
};
|
499
|
-
function ye(t) {
|
500
|
-
this.type = t, this.target = void 0;
|
501
|
-
}
|
502
|
-
function Se(t, a) {
|
503
|
-
ye.call(this, t), this.data = a.data, this.lastEventId = a.lastEventId;
|
504
|
-
}
|
505
|
-
Se.prototype = Object.create(ye.prototype);
|
506
|
-
function _e(t, a) {
|
507
|
-
ye.call(this, t), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
|
508
|
-
}
|
509
|
-
_e.prototype = Object.create(ye.prototype);
|
510
|
-
function Fe(t, a) {
|
511
|
-
ye.call(this, t), this.error = a.error;
|
512
|
-
}
|
513
|
-
Fe.prototype = Object.create(ye.prototype);
|
514
|
-
var Ae = -1, ee = 0, re = 1, we = 2, be = -1, te = 0, Re = 1, Ee = 2, He = 3, ze = /^text\/event\-stream(;.*)?$/i, ke = 1e3, Ue = 18e6, xe = function(t, a) {
|
515
|
-
var s = t == null ? a : parseInt(t, 10);
|
516
|
-
return s !== s && (s = a), De(s);
|
517
|
-
}, De = function(t) {
|
518
|
-
return Math.min(Math.max(t, ke), Ue);
|
519
|
-
}, ve = function(t, a, s) {
|
520
|
-
try {
|
521
|
-
typeof a == "function" && a.call(t, s);
|
522
|
-
} catch (i) {
|
523
|
-
ge(i);
|
524
|
-
}
|
525
|
-
};
|
526
|
-
function J(t, a) {
|
527
|
-
f.call(this), a = a || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, c(this, t, a);
|
528
|
-
}
|
529
|
-
function Pe() {
|
530
|
-
return u != null && "withCredentials" in u.prototype || m == null ? new u() : new m();
|
531
|
-
}
|
532
|
-
var Ge = F != null && B != null && "body" in B.prototype;
|
533
|
-
function c(t, a, s) {
|
534
|
-
a = String(a);
|
535
|
-
var i = !!s.withCredentials, d = s.lastEventIdQueryParameterName || "lastEventId", h = De(1e3), w = xe(s.heartbeatTimeout, 45e3), k = "", S = h, E = !1, L = 0, v = s.headers || {}, O = s.Transport, ie = Ge && O == null ? void 0 : new A(O != null ? new O() : Pe()), Le = O != null && typeof O != "string" ? new O() : ie == null ? new me() : new W(), Q = void 0, X = 0, ne = Ae, Ce = "", Oe = "", se = "", Ne = "", K = te, Xe = 0, Be = 0, st = function(j, I, Z, $) {
|
536
|
-
if (ne === ee)
|
537
|
-
if (j === 200 && Z != null && ze.test(Z)) {
|
538
|
-
ne = re, E = Date.now(), S = h, t.readyState = re;
|
539
|
-
var q = new _e("open", {
|
540
|
-
status: j,
|
541
|
-
statusText: I,
|
542
|
-
headers: $
|
543
|
-
});
|
544
|
-
t.dispatchEvent(q), ve(t, t.onopen, q);
|
545
|
-
} else {
|
546
|
-
var z = "";
|
547
|
-
j !== 200 ? (I && (I = I.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + I + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (Z == null ? "-" : Z.replace(/\s+/g, " ")) + ". Aborting the connection.", Ke();
|
548
|
-
var q = new _e("error", {
|
549
|
-
status: j,
|
550
|
-
statusText: I,
|
551
|
-
headers: $
|
552
|
-
});
|
553
|
-
t.dispatchEvent(q), ve(t, t.onerror, q), console.error(z);
|
554
|
-
}
|
555
|
-
}, lt = function(j) {
|
556
|
-
if (ne === re) {
|
557
|
-
for (var I = -1, Z = 0; Z < j.length; Z += 1) {
|
558
|
-
var $ = j.charCodeAt(Z);
|
559
|
-
($ === 10 || $ === 13) && (I = Z);
|
560
|
-
}
|
561
|
-
var q = (I !== -1 ? Ne : "") + j.slice(0, I + 1);
|
562
|
-
Ne = (I === -1 ? Ne : "") + j.slice(I + 1), j !== "" && (E = Date.now(), L += j.length);
|
563
|
-
for (var z = 0; z < q.length; z += 1) {
|
564
|
-
var $ = q.charCodeAt(z);
|
565
|
-
if (K === be && $ === 10)
|
566
|
-
K = te;
|
567
|
-
else if (K === be && (K = te), $ === 13 || $ === 10) {
|
568
|
-
if (K !== te) {
|
569
|
-
K === Re && (Be = z + 1);
|
570
|
-
var le = q.slice(Xe, Be - 1), ce = q.slice(Be + (Be < z && q.charCodeAt(Be) === 32 ? 1 : 0), z);
|
571
|
-
le === "data" ? (Ce += `
|
572
|
-
`, Ce += ce) : le === "id" ? Oe = ce : le === "event" ? se = ce : le === "retry" ? (h = xe(ce, h), S = h) : le === "heartbeatTimeout" && (w = xe(ce, w), X !== 0 && (l(X), X = r(function() {
|
573
|
-
Me();
|
574
|
-
}, w)));
|
575
|
-
}
|
576
|
-
if (K === te) {
|
577
|
-
if (Ce !== "") {
|
578
|
-
k = Oe, se === "" && (se = "message");
|
579
|
-
var Te = new Se(se, {
|
580
|
-
data: Ce.slice(1),
|
581
|
-
lastEventId: Oe
|
582
|
-
});
|
583
|
-
if (t.dispatchEvent(Te), se === "open" ? ve(t, t.onopen, Te) : se === "message" ? ve(t, t.onmessage, Te) : se === "error" && ve(t, t.onerror, Te), ne === we)
|
584
|
-
return;
|
585
|
-
}
|
586
|
-
Ce = "", se = "";
|
587
|
-
}
|
588
|
-
K = $ === 13 ? be : te;
|
589
|
-
} else
|
590
|
-
K === te && (Xe = z, K = Re), K === Re ? $ === 58 && (Be = z + 1, K = Ee) : K === Ee && (K = He);
|
591
|
-
}
|
592
|
-
}
|
593
|
-
}, Je = function(j) {
|
594
|
-
if (ne === re || ne === ee) {
|
595
|
-
ne = Ae, X !== 0 && (l(X), X = 0), X = r(function() {
|
596
|
-
Me();
|
597
|
-
}, S), S = De(Math.min(h * 16, S * 2)), t.readyState = ee;
|
598
|
-
var I = new Fe("error", { error: j });
|
599
|
-
t.dispatchEvent(I), ve(t, t.onerror, I), j != null && console.error(j);
|
600
|
-
}
|
601
|
-
}, Ke = function() {
|
602
|
-
ne = we, Q != null && (Q.abort(), Q = void 0), X !== 0 && (l(X), X = 0), t.readyState = we;
|
603
|
-
}, Me = function() {
|
604
|
-
if (X = 0, ne !== Ae) {
|
605
|
-
if (!E && Q != null)
|
606
|
-
Je(new Error("No activity within " + w + " milliseconds. " + (ne === ee ? "No response received." : L + " chars received.") + " Reconnecting.")), Q != null && (Q.abort(), Q = void 0);
|
607
|
-
else {
|
608
|
-
var j = Math.max((E || Date.now()) + w - Date.now(), 1);
|
609
|
-
E = !1, X = r(function() {
|
610
|
-
Me();
|
611
|
-
}, j);
|
612
|
-
}
|
613
|
-
return;
|
614
|
-
}
|
615
|
-
E = !1, L = 0, X = r(function() {
|
616
|
-
Me();
|
617
|
-
}, w), ne = ee, Ce = "", se = "", Oe = k, Ne = "", Xe = 0, Be = 0, K = te;
|
618
|
-
var I = a;
|
619
|
-
if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && k !== "") {
|
620
|
-
var Z = a.indexOf("?");
|
621
|
-
I = Z === -1 ? a : a.slice(0, Z + 1) + a.slice(Z + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ce, Te) {
|
622
|
-
return Te === d ? "" : ce;
|
623
|
-
}), I += (a.indexOf("?") === -1 ? "?" : "&") + d + "=" + encodeURIComponent(k);
|
624
|
-
}
|
625
|
-
var $ = t.withCredentials, q = {};
|
626
|
-
q.Accept = "text/event-stream";
|
627
|
-
var z = t.headers;
|
628
|
-
if (z != null)
|
629
|
-
for (var le in z)
|
630
|
-
Object.prototype.hasOwnProperty.call(z, le) && (q[le] = z[le]);
|
631
|
-
try {
|
632
|
-
Q = Le.open(ie, st, lt, Je, I, $, q);
|
633
|
-
} catch (ce) {
|
634
|
-
throw Ke(), ce;
|
635
|
-
}
|
636
|
-
};
|
637
|
-
t.url = a, t.readyState = ee, t.withCredentials = i, t.headers = v, t._close = Ke, Me();
|
638
|
-
}
|
639
|
-
J.prototype = Object.create(f.prototype), J.prototype.CONNECTING = ee, J.prototype.OPEN = re, J.prototype.CLOSED = we, J.prototype.close = function() {
|
640
|
-
this._close();
|
641
|
-
}, J.CONNECTING = ee, J.OPEN = re, J.CLOSED = we, J.prototype.withCredentials = void 0;
|
642
|
-
var b = g;
|
643
|
-
u != null && (g == null || !("withCredentials" in g.prototype)) && (b = J), function(t) {
|
644
|
-
{
|
645
|
-
var a = t(e);
|
646
|
-
a !== void 0 && (o.exports = a);
|
647
|
-
}
|
648
|
-
}(function(t) {
|
649
|
-
t.EventSourcePolyfill = J, t.NativeEventSource = g, t.EventSource = b;
|
650
|
-
});
|
651
|
-
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : dt : globalThis);
|
652
|
-
})(We, We.exports);
|
653
|
-
var St = We.exports;
|
654
|
-
/*!
|
655
|
-
* currency.js - v2.0.4
|
656
|
-
* http://scurker.github.io/currency.js
|
657
|
-
*
|
658
|
-
* Copyright (c) 2021 Jason Wilson
|
659
|
-
* Released under MIT license
|
660
|
-
*/
|
661
|
-
var _t = {
|
662
|
-
symbol: "$",
|
663
|
-
separator: ",",
|
664
|
-
decimal: ".",
|
665
|
-
errorOnInvalid: !1,
|
666
|
-
precision: 2,
|
667
|
-
pattern: "!#",
|
668
|
-
negativePattern: "-!#",
|
669
|
-
format: xt,
|
670
|
-
fromCents: !1
|
671
|
-
}, it = function(e) {
|
672
|
-
return Math.round(e);
|
673
|
-
}, Ye = function(e) {
|
674
|
-
return Math.pow(10, e);
|
675
|
-
}, At = function(e, n) {
|
676
|
-
return it(e / n) * n;
|
677
|
-
}, Rt = /(\d)(?=(\d{3})+\b)/g, Et = /(\d)(?=(\d\d)+\d\b)/g;
|
678
|
-
function ae(o, e) {
|
679
|
-
var n = this;
|
680
|
-
if (!(n instanceof ae))
|
681
|
-
return new ae(o, e);
|
682
|
-
var r = Object.assign({}, _t, e), l = Ye(r.precision), u = Ie(o, r);
|
683
|
-
n.intValue = u, n.value = u / l, r.increment = r.increment || 1 / l, r.useVedic ? r.groups = Et : r.groups = Rt, this.s = r, this.p = l;
|
684
|
-
}
|
685
|
-
function Ie(o, e) {
|
686
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, l = e.decimal, u = e.errorOnInvalid, m = e.precision, p = e.fromCents, g = Ye(m), y = typeof o == "number", x = o instanceof ae;
|
687
|
-
if (x && p)
|
688
|
-
return o.intValue;
|
689
|
-
if (y || x)
|
690
|
-
r = x ? o.value : o;
|
691
|
-
else if (typeof o == "string") {
|
692
|
-
var F = new RegExp("[^-\\d" + l + "]", "g"), B = new RegExp("\\" + l, "g");
|
693
|
-
r = o.replace(/\((.*)\)/, "-$1").replace(F, "").replace(B, "."), r = r || 0;
|
694
|
-
} else {
|
695
|
-
if (u)
|
696
|
-
throw Error("Invalid Input");
|
697
|
-
r = 0;
|
698
|
-
}
|
699
|
-
return p || (r *= g, r = r.toFixed(4)), n ? it(r) : r;
|
700
|
-
}
|
701
|
-
function xt(o, e) {
|
702
|
-
var n = e.pattern, r = e.negativePattern, l = e.symbol, u = e.separator, m = e.decimal, p = e.groups, g = ("" + o).replace(/^-/, "").split("."), y = g[0], x = g[1];
|
703
|
-
return (o.value >= 0 ? n : r).replace("!", l).replace("#", y.replace(p, "$1" + u) + (x ? m + x : ""));
|
704
|
-
}
|
705
|
-
ae.prototype = {
|
706
|
-
/**
|
707
|
-
* Adds values together.
|
708
|
-
* @param {number} number
|
709
|
-
* @returns {currency}
|
710
|
-
*/
|
711
|
-
add: function(e) {
|
712
|
-
var n = this.intValue, r = this.s, l = this.p;
|
713
|
-
return ae((n += Ie(e, r)) / (r.fromCents ? 1 : l), r);
|
714
|
-
},
|
715
|
-
/**
|
716
|
-
* Subtracts value.
|
717
|
-
* @param {number} number
|
718
|
-
* @returns {currency}
|
719
|
-
*/
|
720
|
-
subtract: function(e) {
|
721
|
-
var n = this.intValue, r = this.s, l = this.p;
|
722
|
-
return ae((n -= Ie(e, r)) / (r.fromCents ? 1 : l), r);
|
723
|
-
},
|
724
|
-
/**
|
725
|
-
* Multiplies values.
|
726
|
-
* @param {number} number
|
727
|
-
* @returns {currency}
|
728
|
-
*/
|
729
|
-
multiply: function(e) {
|
730
|
-
var n = this.intValue, r = this.s;
|
731
|
-
return ae((n *= e) / (r.fromCents ? 1 : Ye(r.precision)), r);
|
732
|
-
},
|
733
|
-
/**
|
734
|
-
* Divides value.
|
735
|
-
* @param {number} number
|
736
|
-
* @returns {currency}
|
737
|
-
*/
|
738
|
-
divide: function(e) {
|
739
|
-
var n = this.intValue, r = this.s;
|
740
|
-
return ae(n /= Ie(e, r, !1), r);
|
741
|
-
},
|
742
|
-
/**
|
743
|
-
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
744
|
-
* left over from the distribution will be stacked onto the first set of entries.
|
745
|
-
* @param {number} count
|
746
|
-
* @returns {array}
|
747
|
-
*/
|
748
|
-
distribute: function(e) {
|
749
|
-
for (var n = this.intValue, r = this.p, l = this.s, u = [], m = Math[n >= 0 ? "floor" : "ceil"](n / e), p = Math.abs(n - m * e), g = l.fromCents ? 1 : r; e !== 0; e--) {
|
750
|
-
var y = ae(m / g, l);
|
751
|
-
p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / g)), u.push(y);
|
752
|
-
}
|
753
|
-
return u;
|
754
|
-
},
|
755
|
-
/**
|
756
|
-
* Returns the dollar value.
|
757
|
-
* @returns {number}
|
758
|
-
*/
|
759
|
-
dollars: function() {
|
760
|
-
return ~~this.value;
|
761
|
-
},
|
762
|
-
/**
|
763
|
-
* Returns the cent value.
|
764
|
-
* @returns {number}
|
765
|
-
*/
|
766
|
-
cents: function() {
|
767
|
-
var e = this.intValue, n = this.p;
|
768
|
-
return ~~(e % n);
|
769
|
-
},
|
770
|
-
/**
|
771
|
-
* Formats the value as a string according to the formatting settings.
|
772
|
-
* @param {boolean} useSymbol - format with currency symbol
|
773
|
-
* @returns {string}
|
774
|
-
*/
|
775
|
-
format: function(e) {
|
776
|
-
var n = this.s;
|
777
|
-
return typeof e == "function" ? e(this, n) : n.format(this, Object.assign({}, n, e));
|
778
|
-
},
|
779
|
-
/**
|
780
|
-
* Formats the value as a string according to the formatting settings.
|
781
|
-
* @returns {string}
|
782
|
-
*/
|
783
|
-
toString: function() {
|
784
|
-
var e = this.intValue, n = this.p, r = this.s;
|
785
|
-
return At(e / n, r.increment).toFixed(r.precision);
|
786
|
-
},
|
787
|
-
/**
|
788
|
-
* Value for JSON serialization.
|
789
|
-
* @returns {float}
|
790
|
-
*/
|
791
|
-
toJSON: function() {
|
792
|
-
return this.value;
|
793
|
-
}
|
794
|
-
};
|
795
|
-
function Dt(o) {
|
796
|
-
mt(o, "svelte-113krup", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
|
797
|
-
}
|
798
|
-
function $e(o, e, n) {
|
799
|
-
const r = o.slice();
|
800
|
-
return r[47] = e[n], r;
|
801
|
-
}
|
802
|
-
function et(o, e, n) {
|
803
|
-
const r = o.slice();
|
804
|
-
return r[50] = e[n], r;
|
805
|
-
}
|
806
|
-
function Lt(o) {
|
807
|
-
let e, n = (
|
808
|
-
/*balances*/
|
809
|
-
(o[4].Total ? (
|
810
|
-
/*formatBalance*/
|
811
|
-
o[6](
|
812
|
-
/*balances*/
|
813
|
-
o[4].Total[0].amount
|
814
|
-
)
|
815
|
-
) : "0") + ""
|
816
|
-
), r, l, u, m, p, g, y, x, F, B = (
|
817
|
-
/*showBalance*/
|
818
|
-
o[2] && tt(o)
|
819
|
-
);
|
820
|
-
return {
|
821
|
-
c() {
|
822
|
-
e = N("p"), r = de(n), l = oe(), u = de(
|
823
|
-
/*currency*/
|
824
|
-
o[3]
|
825
|
-
), m = oe(), p = N("span"), p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = oe(), B && B.c(), y = wt(), V(e, "class", "BalanceValue"), V(e, "part", "BalanceValue");
|
826
|
-
},
|
827
|
-
m(C, _) {
|
828
|
-
pe(C, e, _), R(e, r), R(e, l), R(e, u), R(e, m), R(e, p), pe(C, g, _), B && B.m(C, _), pe(C, y, _), x || (F = Ve(
|
829
|
-
e,
|
830
|
-
"click",
|
831
|
-
/*click_handler*/
|
832
|
-
o[22]
|
833
|
-
), x = !0);
|
834
|
-
},
|
835
|
-
p(C, _) {
|
836
|
-
_[0] & /*balances*/
|
837
|
-
16 && n !== (n = /*balances*/
|
838
|
-
(C[4].Total ? (
|
839
|
-
/*formatBalance*/
|
840
|
-
C[6](
|
841
|
-
/*balances*/
|
842
|
-
C[4].Total[0].amount
|
843
|
-
)
|
844
|
-
) : "0") + "") && ue(r, n), _[0] & /*currency*/
|
845
|
-
8 && ue(
|
846
|
-
u,
|
847
|
-
/*currency*/
|
848
|
-
C[3]
|
849
|
-
), /*showBalance*/
|
850
|
-
C[2] ? B ? B.p(C, _) : (B = tt(C), B.c(), B.m(y.parentNode, y)) : B && (B.d(1), B = null);
|
851
|
-
},
|
852
|
-
d(C) {
|
853
|
-
C && (fe(e), fe(g), fe(y)), B && B.d(C), x = !1, F();
|
854
|
-
}
|
855
|
-
};
|
856
|
-
}
|
857
|
-
function Mt(o) {
|
858
|
-
let e, n = (
|
859
|
-
/*$_*/
|
860
|
-
o[5]("Loading") + ""
|
861
|
-
), r;
|
862
|
-
return {
|
863
|
-
c() {
|
864
|
-
e = N("p"), r = de(n);
|
865
|
-
},
|
866
|
-
m(l, u) {
|
867
|
-
pe(l, e, u), R(e, r);
|
868
|
-
},
|
869
|
-
p(l, u) {
|
870
|
-
u[0] & /*$_*/
|
871
|
-
32 && n !== (n = /*$_*/
|
872
|
-
l[5]("Loading") + "") && ue(r, n);
|
873
|
-
},
|
874
|
-
d(l) {
|
875
|
-
l && fe(e);
|
876
|
-
}
|
877
|
-
};
|
878
|
-
}
|
879
|
-
function tt(o) {
|
880
|
-
let e, n, r, l, u, m, p = (
|
881
|
-
/*$_*/
|
882
|
-
o[5]("Title") + ""
|
883
|
-
), g, y, x, F, B, C, _ = (
|
884
|
-
/*$_*/
|
885
|
-
o[5]("DepositButton") + ""
|
886
|
-
), U, M, H, P = je(Object.keys(
|
887
|
-
/*balances*/
|
888
|
-
o[4]
|
889
|
-
)), T = [];
|
890
|
-
for (let A = 0; A < P.length; A += 1)
|
891
|
-
T[A] = at($e(o, P, A));
|
892
|
-
return {
|
893
|
-
c() {
|
894
|
-
e = N("div"), n = N("div"), r = oe(), l = N("div"), u = N("div"), m = N("p"), g = de(p), y = oe(), x = N("div");
|
895
|
-
for (let A = 0; A < T.length; A += 1)
|
896
|
-
T[A].c();
|
897
|
-
F = oe(), B = N("div"), C = N("button"), U = de(_), V(n, "class", "BalanceModalClose"), V(m, "class", "BalanceModalTitle"), V(u, "class", "BalanceModalHeader"), V(x, "class", "BalanceModalBody"), V(C, "class", "BalanceModalAction"), V(B, "class", "BalanceModalFooter"), V(l, "class", "BalanceModal"), V(e, "class", "BalanceModalWrapper");
|
898
|
-
},
|
899
|
-
m(A, G) {
|
900
|
-
pe(A, e, G), R(e, n), R(e, r), R(e, l), R(l, u), R(u, m), R(m, g), R(l, y), R(l, x);
|
901
|
-
for (let D = 0; D < T.length; D += 1)
|
902
|
-
T[D] && T[D].m(x, null);
|
903
|
-
R(l, F), R(l, B), R(B, C), R(C, U), M || (H = [
|
904
|
-
Ve(
|
905
|
-
n,
|
906
|
-
"click",
|
907
|
-
/*click_handler_1*/
|
908
|
-
o[23]
|
909
|
-
),
|
910
|
-
Ve(
|
911
|
-
C,
|
912
|
-
"click",
|
913
|
-
/*click_handler_2*/
|
914
|
-
o[24]
|
915
|
-
)
|
916
|
-
], M = !0);
|
917
|
-
},
|
918
|
-
p(A, G) {
|
919
|
-
if (G[0] & /*$_*/
|
920
|
-
32 && p !== (p = /*$_*/
|
921
|
-
A[5]("Title") + "") && ue(g, p), G[0] & /*balances, currency, formatBalance, $_*/
|
922
|
-
120) {
|
923
|
-
P = je(Object.keys(
|
924
|
-
/*balances*/
|
925
|
-
A[4]
|
926
|
-
));
|
927
|
-
let D;
|
928
|
-
for (D = 0; D < P.length; D += 1) {
|
929
|
-
const W = $e(A, P, D);
|
930
|
-
T[D] ? T[D].p(W, G) : (T[D] = at(W), T[D].c(), T[D].m(x, null));
|
931
|
-
}
|
932
|
-
for (; D < T.length; D += 1)
|
933
|
-
T[D].d(1);
|
934
|
-
T.length = P.length;
|
935
|
-
}
|
936
|
-
G[0] & /*$_*/
|
937
|
-
32 && _ !== (_ = /*$_*/
|
938
|
-
A[5]("DepositButton") + "") && ue(U, _);
|
939
|
-
},
|
940
|
-
d(A) {
|
941
|
-
A && fe(e), rt(T, A), M = !1, bt(H);
|
942
|
-
}
|
943
|
-
};
|
944
|
-
}
|
945
|
-
function nt(o) {
|
946
|
-
let e, n, r = (
|
947
|
-
/*$_*/
|
948
|
-
o[5](
|
949
|
-
/*k*/
|
950
|
-
o[47]
|
951
|
-
) + ""
|
952
|
-
), l, u, m = (
|
953
|
-
/*b*/
|
954
|
-
(o[50].productType ? (
|
955
|
-
/*$_*/
|
956
|
-
o[5](
|
957
|
-
/*b*/
|
958
|
-
o[50].productType
|
959
|
-
)
|
960
|
-
) : "") + ""
|
961
|
-
), p, g, y, x, F = (
|
962
|
-
/*b*/
|
963
|
-
(o[50].amount ? (
|
964
|
-
/*formatBalance*/
|
965
|
-
o[6](
|
966
|
-
/*b*/
|
967
|
-
o[50].amount
|
968
|
-
)
|
969
|
-
) : "0") + ""
|
970
|
-
), B, C, _, U;
|
971
|
-
return {
|
972
|
-
c() {
|
973
|
-
e = N("div"), n = N("p"), l = de(r), u = oe(), p = de(m), g = oe(), y = N("p"), x = N("span"), B = de(F), C = oe(), _ = N("span"), U = de(
|
974
|
-
/*currency*/
|
975
|
-
o[3]
|
976
|
-
), V(n, "class", "BalanceModalText"), V(x, "class", "BalanceModalAmount"), V(_, "class", "BalanceModalCurrency"), V(y, "class", "BalanceModalValue"), V(e, "class", "BalanceModalRowLine");
|
977
|
-
},
|
978
|
-
m(M, H) {
|
979
|
-
pe(M, e, H), R(e, n), R(n, l), R(n, u), R(n, p), R(e, g), R(e, y), R(y, x), R(x, B), R(y, C), R(y, _), R(_, U);
|
980
|
-
},
|
981
|
-
p(M, H) {
|
982
|
-
H[0] & /*$_, balances*/
|
983
|
-
48 && r !== (r = /*$_*/
|
984
|
-
M[5](
|
985
|
-
/*k*/
|
986
|
-
M[47]
|
987
|
-
) + "") && ue(l, r), H[0] & /*balances, $_*/
|
988
|
-
48 && m !== (m = /*b*/
|
989
|
-
(M[50].productType ? (
|
990
|
-
/*$_*/
|
991
|
-
M[5](
|
992
|
-
/*b*/
|
993
|
-
M[50].productType
|
994
|
-
)
|
995
|
-
) : "") + "") && ue(p, m), H[0] & /*balances*/
|
996
|
-
16 && F !== (F = /*b*/
|
997
|
-
(M[50].amount ? (
|
998
|
-
/*formatBalance*/
|
999
|
-
M[6](
|
1000
|
-
/*b*/
|
1001
|
-
M[50].amount
|
1002
|
-
)
|
1003
|
-
) : "0") + "") && ue(B, F), H[0] & /*currency*/
|
1004
|
-
8 && ue(
|
1005
|
-
U,
|
1006
|
-
/*currency*/
|
1007
|
-
M[3]
|
1008
|
-
);
|
1009
|
-
},
|
1010
|
-
d(M) {
|
1011
|
-
M && fe(e);
|
1012
|
-
}
|
1013
|
-
};
|
1014
|
-
}
|
1015
|
-
function at(o) {
|
1016
|
-
let e, n, r = je(
|
1017
|
-
/*balances*/
|
1018
|
-
o[4][
|
1019
|
-
/*k*/
|
1020
|
-
o[47]
|
1021
|
-
]
|
1022
|
-
), l = [];
|
1023
|
-
for (let u = 0; u < r.length; u += 1)
|
1024
|
-
l[u] = nt(et(o, r, u));
|
1025
|
-
return {
|
1026
|
-
c() {
|
1027
|
-
e = N("div");
|
1028
|
-
for (let u = 0; u < l.length; u += 1)
|
1029
|
-
l[u].c();
|
1030
|
-
n = oe(), V(e, "class", "BalanceModalRowBoth");
|
1031
|
-
},
|
1032
|
-
m(u, m) {
|
1033
|
-
pe(u, e, m);
|
1034
|
-
for (let p = 0; p < l.length; p += 1)
|
1035
|
-
l[p] && l[p].m(e, null);
|
1036
|
-
R(e, n);
|
1037
|
-
},
|
1038
|
-
p(u, m) {
|
1039
|
-
if (m[0] & /*currency, balances, formatBalance, $_*/
|
1040
|
-
120) {
|
1041
|
-
r = je(
|
1042
|
-
/*balances*/
|
1043
|
-
u[4][
|
1044
|
-
/*k*/
|
1045
|
-
u[47]
|
1046
|
-
]
|
1047
|
-
);
|
1048
|
-
let p;
|
1049
|
-
for (p = 0; p < r.length; p += 1) {
|
1050
|
-
const g = et(u, r, p);
|
1051
|
-
l[p] ? l[p].p(g, m) : (l[p] = nt(g), l[p].c(), l[p].m(e, n));
|
1052
|
-
}
|
1053
|
-
for (; p < l.length; p += 1)
|
1054
|
-
l[p].d(1);
|
1055
|
-
l.length = r.length;
|
1056
|
-
}
|
1057
|
-
},
|
1058
|
-
d(u) {
|
1059
|
-
u && fe(e), rt(l, u);
|
1060
|
-
}
|
1061
|
-
};
|
1062
|
-
}
|
1063
|
-
function ot(o) {
|
1064
|
-
let e, n, r;
|
1065
|
-
return {
|
1066
|
-
c() {
|
1067
|
-
e = N("div"), V(e, "class", "ShowBalanceModalOverlay");
|
1068
|
-
},
|
1069
|
-
m(l, u) {
|
1070
|
-
pe(l, e, u), n || (r = Ve(
|
1071
|
-
e,
|
1072
|
-
"click",
|
1073
|
-
/*click_handler_3*/
|
1074
|
-
o[25]
|
1075
|
-
), n = !0);
|
1076
|
-
},
|
1077
|
-
p: qe,
|
1078
|
-
d(l) {
|
1079
|
-
l && fe(e), n = !1, r();
|
1080
|
-
}
|
1081
|
-
};
|
1082
|
-
}
|
1083
|
-
function Ft(o) {
|
1084
|
-
let e, n, r;
|
1085
|
-
function l(g, y) {
|
1086
|
-
return (
|
1087
|
-
/*isLoading*/
|
1088
|
-
g[1] ? Mt : Lt
|
1089
|
-
);
|
1090
|
-
}
|
1091
|
-
let u = l(o), m = u(o), p = (
|
1092
|
-
/*showBalance*/
|
1093
|
-
o[2] && ot(o)
|
1094
|
-
);
|
1095
|
-
return {
|
1096
|
-
c() {
|
1097
|
-
e = N("div"), n = N("div"), m.c(), r = oe(), p && p.c(), V(n, "class", "ShowBalance"), V(n, "part", "ShowBalance");
|
1098
|
-
},
|
1099
|
-
m(g, y) {
|
1100
|
-
pe(g, e, y), R(e, n), m.m(n, null), R(e, r), p && p.m(e, null), o[26](e);
|
1101
|
-
},
|
1102
|
-
p(g, y) {
|
1103
|
-
u === (u = l(g)) && m ? m.p(g, y) : (m.d(1), m = u(g), m && (m.c(), m.m(n, null))), /*showBalance*/
|
1104
|
-
g[2] ? p ? p.p(g, y) : (p = ot(g), p.c(), p.m(e, null)) : p && (p.d(1), p = null);
|
1105
|
-
},
|
1106
|
-
i: qe,
|
1107
|
-
o: qe,
|
1108
|
-
d(g) {
|
1109
|
-
g && fe(e), m.d(), p && p.d(), o[26](null);
|
1110
|
-
}
|
1111
|
-
};
|
1112
|
-
}
|
1113
|
-
function kt(o, e, n) {
|
1114
|
-
let r;
|
1115
|
-
gt(o, Ct, (c) => n(5, r = c));
|
1116
|
-
let { userid: l = "" } = e, { session: u = "" } = e, { endpoint: m = "" } = e, { lang: p = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: x = "" } = e, { customlocaleidentifier: F = "" } = e, { gmversion: B = "gm16" } = e, { displaybalanceoption: C = "All" } = e, { totalcalculationmode: _ = "totalCashAmount" } = e, { currencyseparator: U = "" } = e, { currencydecimal: M = "" } = e, { currencyprecision: H = "" } = e, P, T, A, G = !1, D = "", W = [], he, me = !1;
|
1117
|
-
const f = {}, ge = ["totalCashAmount", "totalRealAmount"], ye = () => {
|
1118
|
-
fetch(x).then((c) => c.json()).then((c) => Object.keys(c).forEach((b) => Qe(b, c[b]))).catch((c) => console.log(c));
|
1119
|
-
};
|
1120
|
-
Object.keys(Ze).forEach((c) => Qe(c, Ze[c]));
|
1121
|
-
const Se = () => {
|
1122
|
-
if (F.includes(p))
|
1123
|
-
return F;
|
1124
|
-
}, _e = (c) => F ? new Intl.NumberFormat(Se(), { useGrouping: !0 }).format(c) : U && M ? ae(c, {
|
1125
|
-
separator: U,
|
1126
|
-
decimal: M,
|
1127
|
-
symbol: "",
|
1128
|
-
precision: parseInt(H || "2", 10)
|
1129
|
-
}).format() : ae(c, {
|
1130
|
-
separator: ".",
|
1131
|
-
decimal: ",",
|
1132
|
-
symbol: "",
|
1133
|
-
precision: parseInt(H || "2", 10)
|
1134
|
-
}).format(), Fe = async () => {
|
1135
|
-
n(1, P = !0);
|
1136
|
-
const c = new URL(`${m}/v1/player/${l}/account`);
|
1137
|
-
try {
|
1138
|
-
const b = await fetch(c, {
|
1139
|
-
method: "GET",
|
1140
|
-
headers: { "X-SessionID": u }
|
1141
|
-
}), t = await b.json();
|
1142
|
-
if (b.ok)
|
1143
|
-
W = t.items, n(3, D = W.find((a) => a.displayName === "Casino")?.currency), n(4, f.Total = [{ amount: t.totalAmount[D] }], f), n(
|
1144
|
-
4,
|
1145
|
-
f.Real = [
|
1146
|
-
{
|
1147
|
-
amount: W.find((a) => a.displayName === "Casino")?.balanceAmount
|
1148
|
-
}
|
1149
|
-
],
|
1150
|
-
f
|
1151
|
-
), n(
|
1152
|
-
4,
|
1153
|
-
f.Bonus = [
|
1154
|
-
{
|
1155
|
-
amount: W.find((a) => a.displayName === "UBS")?.balanceAmount
|
1156
|
-
}
|
1157
|
-
],
|
1158
|
-
f
|
1159
|
-
);
|
1160
|
-
else
|
1161
|
-
throw new Error("Failed to fetch balance data !");
|
1162
|
-
} catch (b) {
|
1163
|
-
console.log("Balance error: ", b);
|
1164
|
-
} finally {
|
1165
|
-
n(1, P = !1);
|
1166
|
-
}
|
1167
|
-
}, Ae = () => {
|
1168
|
-
n(1, P = !0);
|
1169
|
-
const c = new URL(`${m}/v2/player/${l}/balance`), b = new Headers();
|
1170
|
-
b.append("X-SessionID", u), fetch(c, { method: "GET", headers: b }).then((a) => a.json()).then((a) => {
|
1171
|
-
a[_] || n(8, _ = ge[0]);
|
1172
|
-
const s = a.items.find((d) => d.type === "Real" && d.walletAccountType === "Ordinary");
|
1173
|
-
if (n(3, D = s.currency), me = !!s.productType, n(4, f.Total = [{ amount: 0 }], f), n(4, f.Real = [], f), n(4, f.Bonus = [], f), n(4, f.Credit = [], f), !me) {
|
1174
|
-
he = {
|
1175
|
-
lastOrdinaryAfterAmount: 0,
|
1176
|
-
showCreditLineAfterAmount: !1
|
1177
|
-
}, n(4, f.Total[0].amount = a[_][D], f);
|
1178
|
-
for (const d of a.items)
|
1179
|
-
switch (d.type) {
|
1180
|
-
case "Bonus":
|
1181
|
-
f.Bonus.length === 0 ? f.Bonus.push({ amount: d.amount }) : n(4, f.Bonus[0].amount += d.amount, f);
|
1182
|
-
break;
|
1183
|
-
case "Real":
|
1184
|
-
if (d.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: d.creditLine }), _ === "totalRealAmount") continue;
|
1185
|
-
f.Real.length === 0 ? f.Real.push({ amount: d.amount }) : n(4, f.Real[0].amount += d.amount, f);
|
1186
|
-
break;
|
1187
|
-
}
|
1188
|
-
for (const [d, h] of Object.entries(f))
|
1189
|
-
h.length < 1 && delete f[d];
|
1190
|
-
n(1, P = !1);
|
1191
|
-
return;
|
1192
|
-
}
|
1193
|
-
he = {
|
1194
|
-
Casino: {
|
1195
|
-
lastOrdinaryAfterAmount: 0,
|
1196
|
-
showCreditLineAfterAmount: !1
|
1197
|
-
},
|
1198
|
-
Sports: {
|
1199
|
-
lastOrdinaryAfterAmount: 0,
|
1200
|
-
showCreditLineAfterAmount: !1
|
1201
|
-
}
|
1202
|
-
};
|
1203
|
-
let i = a.items;
|
1204
|
-
C && C !== "All" && (i = a.items.filter((d) => d.productType === C));
|
1205
|
-
for (const d of i) {
|
1206
|
-
let h;
|
1207
|
-
switch (d.type) {
|
1208
|
-
case "Bonus":
|
1209
|
-
h = f.Bonus.findIndex((w) => w.productType === d.productType), h > 0 ? n(4, f.Bonus[h].amount += d.amount, f) : f.Bonus.push({
|
1210
|
-
amount: d.amount,
|
1211
|
-
productType: d.productType
|
1212
|
-
});
|
1213
|
-
break;
|
1214
|
-
case "Real":
|
1215
|
-
d.creditLine && f.Credit.push({
|
1216
|
-
amount: d.creditLine,
|
1217
|
-
productType: d.productType
|
1218
|
-
}), h = f.Real.findIndex((w) => w.productType === d.productType), h > 0 ? n(4, f.Real[h].amount += d.amount, f) : f.Real.push({
|
1219
|
-
amount: d.amount,
|
1220
|
-
productType: d.productType
|
1221
|
-
});
|
1222
|
-
break;
|
1223
|
-
}
|
1224
|
-
}
|
1225
|
-
te();
|
1226
|
-
for (const [d, h] of Object.entries(f))
|
1227
|
-
h.length < 1 && delete f[d];
|
1228
|
-
n(1, P = !1);
|
1229
|
-
}).catch((a) => {
|
1230
|
-
throw n(1, P = !1), new Error("Failed to fetch balance data !");
|
1231
|
-
});
|
1232
|
-
}, ee = () => {
|
1233
|
-
if (A && A.close(), u.length < 1) return;
|
1234
|
-
let c, b;
|
1235
|
-
switch (B) {
|
1236
|
-
case "gm16":
|
1237
|
-
c = new URL(`${m}/v2/player/${l}/information/updates`), b = (s) => Re(s);
|
1238
|
-
break;
|
1239
|
-
case "gmcore":
|
1240
|
-
c = new URL(`${m}/v1/player/${l}/balance/updates`), b = (s) => we(s);
|
1241
|
-
break;
|
1242
|
-
}
|
1243
|
-
const t = {
|
1244
|
-
accept: "text/event-stream",
|
1245
|
-
"X-SessionId": u
|
1246
|
-
}, a = new St.EventSourcePolyfill(c, { headers: t });
|
1247
|
-
A = a, a.addEventListener("message", b);
|
1248
|
-
}, re = (c) => {
|
1249
|
-
let b;
|
1250
|
-
try {
|
1251
|
-
b = JSON.parse(c);
|
1252
|
-
} catch (t) {
|
1253
|
-
console.log("Balance stream failed: ", t);
|
1254
|
-
return;
|
1255
|
-
}
|
1256
|
-
return b;
|
1257
|
-
}, we = (c) => {
|
1258
|
-
const b = re(c.data);
|
1259
|
-
if (!b) {
|
1260
|
-
ee();
|
1261
|
-
return;
|
1262
|
-
}
|
1263
|
-
let t = "0";
|
1264
|
-
const a = b.balanceChange;
|
1265
|
-
W = W.map((s) => (a && a[s.id] && (s = {
|
1266
|
-
...s,
|
1267
|
-
balanceAmount: a[s.id].afterAmount
|
1268
|
-
}), t = (parseFloat(s?.balanceAmount) + parseFloat(t)).toString(), s)), n(4, f.Real = [{ amount: W[0]?.balanceAmount }], f), n(4, f.Bonus = [{ amount: W[1]?.balanceAmount }], f), n(4, f.Total = [{ amount: Number(t) }], f);
|
1269
|
-
}, be = (c, b, t) => {
|
1270
|
-
let a = null;
|
1271
|
-
switch (t.walletAccountType) {
|
1272
|
-
case "Ordinary":
|
1273
|
-
t.afterAmount !== t.affectedAmount && (b.lastOrdinaryAfterAmount = t.afterAmount, b.showCreditLineAfterAmount || (a = t.afterAmount));
|
1274
|
-
break;
|
1275
|
-
case "CreditLine":
|
1276
|
-
t.afterAmount !== 0 ? (a = t.afterAmount, b.showCreditLineAfterAmount = !0) : (a = b.lastOrdinaryAfterAmount, b.showCreditLineAfterAmount = !1);
|
1277
|
-
break;
|
1278
|
-
default:
|
1279
|
-
a = t.afterAmount;
|
1280
|
-
}
|
1281
|
-
return a === null ? c : a;
|
1282
|
-
}, te = () => {
|
1283
|
-
switch (_) {
|
1284
|
-
case "totalCashAmount":
|
1285
|
-
let c = 0;
|
1286
|
-
for (const t of ["Real", "Bonus"])
|
1287
|
-
for (const a of f[t])
|
1288
|
-
c += Math.max(a.amount, 0);
|
1289
|
-
n(4, f.Total[0].amount = c, f);
|
1290
|
-
break;
|
1291
|
-
case "totalRealAmount":
|
1292
|
-
if (!me) return;
|
1293
|
-
let b = 0;
|
1294
|
-
for (const t of f.Real)
|
1295
|
-
b += t.amount;
|
1296
|
-
n(4, f.Total[0].amount = b, f);
|
1297
|
-
}
|
1298
|
-
}, Re = (c) => {
|
1299
|
-
const b = re(c.data);
|
1300
|
-
if (!b) {
|
1301
|
-
ee();
|
1302
|
-
return;
|
1303
|
-
}
|
1304
|
-
if (b.type !== "BALANCE_UPDATE_V2")
|
1305
|
-
return;
|
1306
|
-
const t = b.body.balanceChange;
|
1307
|
-
for (const [a, s] of Object.entries(t))
|
1308
|
-
if (_ === "totalRealAmount" && a === "Real" && !me && n(4, f.Total[0].amount = be(f.Total[0].amount, he, s), f), !!f[a])
|
1309
|
-
for (const i of f[a]) {
|
1310
|
-
if (!me) {
|
1311
|
-
i.amount = a === "Real" ? be(i.amount, he, s) : s.afterAmount;
|
1312
|
-
continue;
|
1313
|
-
}
|
1314
|
-
s.productType === i.productType && (i.amount = a === "Real" ? be(i.amount, he[i.productType], s) : s.afterAmount);
|
1315
|
-
}
|
1316
|
-
te();
|
1317
|
-
}, Ee = () => {
|
1318
|
-
n(2, G = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
1319
|
-
}, He = () => {
|
1320
|
-
ge.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ge}. Using default value ('${ge[0]}').`), n(8, _ = ge[0]));
|
1321
|
-
}, ze = () => {
|
1322
|
-
switch (Tt(p), He(), B) {
|
1323
|
-
case "gmcore":
|
1324
|
-
Fe();
|
1325
|
-
break;
|
1326
|
-
case "gm16":
|
1327
|
-
Ae();
|
1328
|
-
break;
|
1329
|
-
default:
|
1330
|
-
throw Error(`Invalid apiversion attribute: ${B}`);
|
1331
|
-
}
|
1332
|
-
}, ke = (c) => c.data && c.data.type === "LogoutSuccessfull" && A.close(), Ue = () => {
|
1333
|
-
const c = document.createElement("style");
|
1334
|
-
c.innerHTML = g, T.appendChild(c);
|
1335
|
-
}, xe = () => {
|
1336
|
-
const c = new URL(y), b = document.createElement("style");
|
1337
|
-
fetch(c.href).then((t) => t.text()).then((t) => {
|
1338
|
-
b.innerHTML = t, setTimeout(
|
1339
|
-
() => {
|
1340
|
-
T.appendChild(b);
|
1341
|
-
},
|
1342
|
-
1
|
1343
|
-
);
|
1344
|
-
});
|
1345
|
-
};
|
1346
|
-
yt(() => (window.addEventListener("message", ke, !1), () => {
|
1347
|
-
window.removeEventListener("message", ke), A && A.close();
|
1348
|
-
}));
|
1349
|
-
const De = () => n(2, G = !0), ve = () => n(2, G = !1), J = () => Ee(), Pe = () => n(2, G = !1);
|
1350
|
-
function Ge(c) {
|
1351
|
-
vt[c ? "unshift" : "push"](() => {
|
1352
|
-
T = c, n(0, T);
|
1353
|
-
});
|
1354
|
-
}
|
1355
|
-
return o.$$set = (c) => {
|
1356
|
-
"userid" in c && n(9, l = c.userid), "session" in c && n(10, u = c.session), "endpoint" in c && n(11, m = c.endpoint), "lang" in c && n(12, p = c.lang), "clientstyling" in c && n(13, g = c.clientstyling), "clientstylingurl" in c && n(14, y = c.clientstylingurl), "translationurl" in c && n(15, x = c.translationurl), "customlocaleidentifier" in c && n(16, F = c.customlocaleidentifier), "gmversion" in c && n(17, B = c.gmversion), "displaybalanceoption" in c && n(18, C = c.displaybalanceoption), "totalcalculationmode" in c && n(8, _ = c.totalcalculationmode), "currencyseparator" in c && n(19, U = c.currencyseparator), "currencydecimal" in c && n(20, M = c.currencydecimal), "currencyprecision" in c && n(21, H = c.currencyprecision);
|
1357
|
-
}, o.$$.update = () => {
|
1358
|
-
o.$$.dirty[0] & /*lang*/
|
1359
|
-
4096 && p && Se(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
1360
|
-
400896 && m && l && u && p && B && C && ze(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
1361
|
-
134656 && m && l && u && B && ee(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
1362
|
-
8193 && g && T && Ue(), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
1363
|
-
16385 && y && T && xe(), o.$$.dirty[0] & /*translationurl*/
|
1364
|
-
32768 && x && ye();
|
1365
|
-
}, [
|
1366
|
-
T,
|
1367
|
-
P,
|
1368
|
-
G,
|
1369
|
-
D,
|
1370
|
-
f,
|
1371
|
-
r,
|
1372
|
-
_e,
|
1373
|
-
Ee,
|
1374
|
-
_,
|
1375
|
-
l,
|
1376
|
-
u,
|
1377
|
-
m,
|
1378
|
-
p,
|
1379
|
-
g,
|
1380
|
-
y,
|
1381
|
-
x,
|
1382
|
-
F,
|
1383
|
-
B,
|
1384
|
-
C,
|
1385
|
-
U,
|
1386
|
-
M,
|
1387
|
-
H,
|
1388
|
-
De,
|
1389
|
-
ve,
|
1390
|
-
J,
|
1391
|
-
Pe,
|
1392
|
-
Ge
|
1393
|
-
];
|
1394
|
-
}
|
1395
|
-
class Ot extends ft {
|
1396
|
-
constructor(e) {
|
1397
|
-
super(), pt(
|
1398
|
-
this,
|
1399
|
-
e,
|
1400
|
-
kt,
|
1401
|
-
Ft,
|
1402
|
-
ht,
|
1403
|
-
{
|
1404
|
-
userid: 9,
|
1405
|
-
session: 10,
|
1406
|
-
endpoint: 11,
|
1407
|
-
lang: 12,
|
1408
|
-
clientstyling: 13,
|
1409
|
-
clientstylingurl: 14,
|
1410
|
-
translationurl: 15,
|
1411
|
-
customlocaleidentifier: 16,
|
1412
|
-
gmversion: 17,
|
1413
|
-
displaybalanceoption: 18,
|
1414
|
-
totalcalculationmode: 8,
|
1415
|
-
currencyseparator: 19,
|
1416
|
-
currencydecimal: 20,
|
1417
|
-
currencyprecision: 21
|
1418
|
-
},
|
1419
|
-
Dt,
|
1420
|
-
[-1, -1]
|
1421
|
-
);
|
1422
|
-
}
|
1423
|
-
get userid() {
|
1424
|
-
return this.$$.ctx[9];
|
1425
|
-
}
|
1426
|
-
set userid(e) {
|
1427
|
-
this.$$set({ userid: e }), Y();
|
1428
|
-
}
|
1429
|
-
get session() {
|
1430
|
-
return this.$$.ctx[10];
|
1431
|
-
}
|
1432
|
-
set session(e) {
|
1433
|
-
this.$$set({ session: e }), Y();
|
1434
|
-
}
|
1435
|
-
get endpoint() {
|
1436
|
-
return this.$$.ctx[11];
|
1437
|
-
}
|
1438
|
-
set endpoint(e) {
|
1439
|
-
this.$$set({ endpoint: e }), Y();
|
1440
|
-
}
|
1441
|
-
get lang() {
|
1442
|
-
return this.$$.ctx[12];
|
1443
|
-
}
|
1444
|
-
set lang(e) {
|
1445
|
-
this.$$set({ lang: e }), Y();
|
1446
|
-
}
|
1447
|
-
get clientstyling() {
|
1448
|
-
return this.$$.ctx[13];
|
1449
|
-
}
|
1450
|
-
set clientstyling(e) {
|
1451
|
-
this.$$set({ clientstyling: e }), Y();
|
1452
|
-
}
|
1453
|
-
get clientstylingurl() {
|
1454
|
-
return this.$$.ctx[14];
|
1455
|
-
}
|
1456
|
-
set clientstylingurl(e) {
|
1457
|
-
this.$$set({ clientstylingurl: e }), Y();
|
1458
|
-
}
|
1459
|
-
get translationurl() {
|
1460
|
-
return this.$$.ctx[15];
|
1461
|
-
}
|
1462
|
-
set translationurl(e) {
|
1463
|
-
this.$$set({ translationurl: e }), Y();
|
1464
|
-
}
|
1465
|
-
get customlocaleidentifier() {
|
1466
|
-
return this.$$.ctx[16];
|
1467
|
-
}
|
1468
|
-
set customlocaleidentifier(e) {
|
1469
|
-
this.$$set({ customlocaleidentifier: e }), Y();
|
1470
|
-
}
|
1471
|
-
get gmversion() {
|
1472
|
-
return this.$$.ctx[17];
|
1473
|
-
}
|
1474
|
-
set gmversion(e) {
|
1475
|
-
this.$$set({ gmversion: e }), Y();
|
1476
|
-
}
|
1477
|
-
get displaybalanceoption() {
|
1478
|
-
return this.$$.ctx[18];
|
1479
|
-
}
|
1480
|
-
set displaybalanceoption(e) {
|
1481
|
-
this.$$set({ displaybalanceoption: e }), Y();
|
1482
|
-
}
|
1483
|
-
get totalcalculationmode() {
|
1484
|
-
return this.$$.ctx[8];
|
1485
|
-
}
|
1486
|
-
set totalcalculationmode(e) {
|
1487
|
-
this.$$set({ totalcalculationmode: e }), Y();
|
1488
|
-
}
|
1489
|
-
get currencyseparator() {
|
1490
|
-
return this.$$.ctx[19];
|
1491
|
-
}
|
1492
|
-
set currencyseparator(e) {
|
1493
|
-
this.$$set({ currencyseparator: e }), Y();
|
1494
|
-
}
|
1495
|
-
get currencydecimal() {
|
1496
|
-
return this.$$.ctx[20];
|
1497
|
-
}
|
1498
|
-
set currencydecimal(e) {
|
1499
|
-
this.$$set({ currencydecimal: e }), Y();
|
1500
|
-
}
|
1501
|
-
get currencyprecision() {
|
1502
|
-
return this.$$.ctx[21];
|
1503
|
-
}
|
1504
|
-
set currencyprecision(e) {
|
1505
|
-
this.$$set({ currencyprecision: e }), Y();
|
1506
|
-
}
|
1507
|
-
}
|
1508
|
-
Bt(Ot, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
1509
|
-
export {
|
1510
|
-
Ot as default
|
1511
|
-
};
|