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