@everymatrix/casino-header-controller 1.83.2 → 1.83.4
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-BrGIqFtN.js → CasinoHeaderController-B-NhEHXD.js} +794 -765
- package/components/{CasinoHeaderController-C7BL1nTC.js → CasinoHeaderController-C4LKVIgj.js} +858 -829
- package/components/CasinoHeaderController-DgulIxf0.cjs +13 -0
- package/components/PlayerAccountBalanceModal-BSYXp5VQ.cjs +7 -0
- package/components/PlayerAccountBalanceModal-De-U72Tp.js +1415 -0
- package/components/PlayerAccountBalanceModal-DkOsFTrU.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-BE2airM_.cjs +0 -13
- package/components/PlayerAccountBalanceModal-B9zCQZQg.js +0 -1409
- package/components/PlayerAccountBalanceModal-Cq-1fTb6.js +0 -1380
- package/components/PlayerAccountBalanceModal-ECuzDR7V.cjs +0 -7
|
@@ -0,0 +1,1415 @@
|
|
|
1
|
+
var ut = Object.defineProperty, ft = Object.defineProperties;
|
|
2
|
+
var pt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ye = Object.getOwnPropertySymbols;
|
|
4
|
+
var ht = Object.prototype.hasOwnProperty, mt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Xe = Math.pow, Qe = (c, t, a) => t in c ? ut(c, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : c[t] = a, Je = (c, t) => {
|
|
6
|
+
for (var a in t || (t = {}))
|
|
7
|
+
ht.call(t, a) && Qe(c, a, t[a]);
|
|
8
|
+
if (Ye)
|
|
9
|
+
for (var a of Ye(t))
|
|
10
|
+
mt.call(t, a) && Qe(c, a, t[a]);
|
|
11
|
+
return c;
|
|
12
|
+
}, Ze = (c, t) => ft(c, pt(t));
|
|
13
|
+
var $e = (c, t, a) => new Promise((m, u) => {
|
|
14
|
+
var d = (w) => {
|
|
15
|
+
try {
|
|
16
|
+
p(a.next(w));
|
|
17
|
+
} catch (B) {
|
|
18
|
+
u(B);
|
|
19
|
+
}
|
|
20
|
+
}, v = (w) => {
|
|
21
|
+
try {
|
|
22
|
+
p(a.throw(w));
|
|
23
|
+
} catch (B) {
|
|
24
|
+
u(B);
|
|
25
|
+
}
|
|
26
|
+
}, p = (w) => w.done ? m(w.value) : Promise.resolve(w.value).then(d, v);
|
|
27
|
+
p((a = a.apply(c, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import { b as yt, $ as gt, Q as vt, S as wt, i as bt, s as Bt, f as j, d as Tt, n as Ke, e as de, h as ue, x as L, k as O, j as fe, v as H, l as St, o as Ct, y as Ne, p as At, w as we, A as be, r as _t, B as Ie, C as lt, t as xt, J as Rt, K as Et, L as Dt, c as Lt, I as Mt } from "./CasinoHamburgerMenu-BXmoYELH.js";
|
|
30
|
+
function et(c, t) {
|
|
31
|
+
yt(c, t);
|
|
32
|
+
}
|
|
33
|
+
function Ft(c) {
|
|
34
|
+
gt.set(c);
|
|
35
|
+
}
|
|
36
|
+
const tt = {
|
|
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 qe = { exports: {} };
|
|
237
|
+
/** @license
|
|
238
|
+
* eventsource.js
|
|
239
|
+
* Available under MIT License (MIT)
|
|
240
|
+
* https://github.com/Yaffle/EventSource/
|
|
241
|
+
*/
|
|
242
|
+
(function(c, t) {
|
|
243
|
+
(function(a) {
|
|
244
|
+
var m = a.setTimeout, u = a.clearTimeout, d = a.XMLHttpRequest, v = a.XDomainRequest, p = a.ActiveXObject, w = a.EventSource, B = a.document, S = a.Promise, C = a.fetch, D = a.Response, R = a.TextDecoder, M = a.TextEncoder, Q = a.AbortController;
|
|
245
|
+
if (typeof window != "undefined" && typeof B != "undefined" && !("readyState" in B) && B.body == null && (B.readyState = "loading", window.addEventListener("load", function(o) {
|
|
246
|
+
B.readyState = "complete";
|
|
247
|
+
}, !1)), d == null && p != null && (d = function() {
|
|
248
|
+
return new p("Microsoft.XMLHTTP");
|
|
249
|
+
}), Object.create == null && (Object.create = function(o) {
|
|
250
|
+
function e() {
|
|
251
|
+
}
|
|
252
|
+
return e.prototype = o, new e();
|
|
253
|
+
}), Date.now || (Date.now = function() {
|
|
254
|
+
return (/* @__PURE__ */ new Date()).getTime();
|
|
255
|
+
}), Q == null) {
|
|
256
|
+
var ne = C;
|
|
257
|
+
C = function(o, e) {
|
|
258
|
+
var r = e.signal;
|
|
259
|
+
return ne(o, { headers: e.headers, credentials: e.credentials, cache: e.cache }).then(function(n) {
|
|
260
|
+
var i = n.body.getReader();
|
|
261
|
+
return r._reader = i, r._aborted && r._reader.cancel(), {
|
|
262
|
+
status: n.status,
|
|
263
|
+
statusText: n.statusText,
|
|
264
|
+
headers: n.headers,
|
|
265
|
+
body: {
|
|
266
|
+
getReader: function() {
|
|
267
|
+
return i;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
});
|
|
272
|
+
}, Q = 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 ae() {
|
|
282
|
+
this.bitsNeeded = 0, this.codePoint = 0;
|
|
283
|
+
}
|
|
284
|
+
ae.prototype.decode = function(o) {
|
|
285
|
+
function e(b, A, g) {
|
|
286
|
+
if (g === 1)
|
|
287
|
+
return b >= 128 >> A && b << A <= 2047;
|
|
288
|
+
if (g === 2)
|
|
289
|
+
return b >= 2048 >> A && b << A <= 55295 || b >= 57344 >> A && b << A <= 65535;
|
|
290
|
+
if (g === 3)
|
|
291
|
+
return b >= 65536 >> A && b << A <= 1114111;
|
|
292
|
+
throw new Error();
|
|
293
|
+
}
|
|
294
|
+
function r(b, A) {
|
|
295
|
+
if (b === 6 * 1)
|
|
296
|
+
return A >> 6 > 15 ? 3 : A > 31 ? 2 : 1;
|
|
297
|
+
if (b === 6 * 2)
|
|
298
|
+
return A > 15 ? 3 : 2;
|
|
299
|
+
if (b === 6 * 3)
|
|
300
|
+
return 3;
|
|
301
|
+
throw new Error();
|
|
302
|
+
}
|
|
303
|
+
for (var n = 65533, i = "", s = this.bitsNeeded, f = this.codePoint, l = 0; l < o.length; l += 1) {
|
|
304
|
+
var y = o[l];
|
|
305
|
+
s !== 0 && (y < 128 || y > 191 || !e(f << 6 | y & 63, s - 6, r(s, f))) && (s = 0, f = n, i += String.fromCharCode(f)), s === 0 ? (y >= 0 && y <= 127 ? (s = 0, f = y) : y >= 192 && y <= 223 ? (s = 6 * 1, f = y & 31) : y >= 224 && y <= 239 ? (s = 6 * 2, f = y & 15) : y >= 240 && y <= 247 ? (s = 6 * 3, f = y & 7) : (s = 0, f = n), s !== 0 && !e(f, s, r(s, f)) && (s = 0, f = n)) : (s -= 6, f = f << 6 | y & 63), s === 0 && (f <= 65535 ? i += String.fromCharCode(f) : (i += String.fromCharCode(55296 + (f - 65535 - 1 >> 10)), i += String.fromCharCode(56320 + (f - 65535 - 1 & 1023))));
|
|
306
|
+
}
|
|
307
|
+
return this.bitsNeeded = s, this.codePoint = f, i;
|
|
308
|
+
};
|
|
309
|
+
var V = function() {
|
|
310
|
+
try {
|
|
311
|
+
return new R().decode(new M().encode("test"), { stream: !0 }) === "test";
|
|
312
|
+
} catch (o) {
|
|
313
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + o);
|
|
314
|
+
}
|
|
315
|
+
return !1;
|
|
316
|
+
};
|
|
317
|
+
(R == null || M == null || !V()) && (R = ae);
|
|
318
|
+
var T = function() {
|
|
319
|
+
};
|
|
320
|
+
function _(o) {
|
|
321
|
+
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 = o, this._sendTimeout = 0, this._abort = T;
|
|
322
|
+
}
|
|
323
|
+
_.prototype.open = function(o, e) {
|
|
324
|
+
this._abort(!0);
|
|
325
|
+
var r = this, n = this._xhr, i = 1, s = 0;
|
|
326
|
+
this._abort = function(g) {
|
|
327
|
+
r._sendTimeout !== 0 && (u(r._sendTimeout), r._sendTimeout = 0), (i === 1 || i === 2 || i === 3) && (i = 4, n.onload = T, n.onerror = T, n.onabort = T, n.onprogress = T, n.onreadystatechange = T, n.abort(), s !== 0 && (u(s), s = 0), g || (r.readyState = 4, r.onabort(null), r.onreadystatechange())), i = 0;
|
|
328
|
+
};
|
|
329
|
+
var f = function() {
|
|
330
|
+
if (i === 1) {
|
|
331
|
+
var g = 0, x = "", ie = void 0;
|
|
332
|
+
if ("contentType" in n)
|
|
333
|
+
g = 200, x = "OK", ie = n.contentType;
|
|
334
|
+
else
|
|
335
|
+
try {
|
|
336
|
+
g = n.status, x = n.statusText, ie = n.getResponseHeader("Content-Type");
|
|
337
|
+
} catch (Re) {
|
|
338
|
+
g = 0, x = "", ie = void 0;
|
|
339
|
+
}
|
|
340
|
+
g !== 0 && (i = 2, r.readyState = 2, r.status = g, r.statusText = x, r._contentType = ie, r.onreadystatechange());
|
|
341
|
+
}
|
|
342
|
+
}, l = function() {
|
|
343
|
+
if (f(), i === 2 || i === 3) {
|
|
344
|
+
i = 3;
|
|
345
|
+
var g = "";
|
|
346
|
+
try {
|
|
347
|
+
g = n.responseText;
|
|
348
|
+
} catch (x) {
|
|
349
|
+
}
|
|
350
|
+
r.readyState = 3, r.responseText = g, r.onprogress();
|
|
351
|
+
}
|
|
352
|
+
}, y = function(g, x) {
|
|
353
|
+
if ((x == null || x.preventDefault == null) && (x = {
|
|
354
|
+
preventDefault: T
|
|
355
|
+
}), l(), i === 1 || i === 2 || i === 3) {
|
|
356
|
+
if (i = 4, s !== 0 && (u(s), s = 0), r.readyState = 4, g === "load")
|
|
357
|
+
r.onload(x);
|
|
358
|
+
else if (g === "error")
|
|
359
|
+
r.onerror(x);
|
|
360
|
+
else if (g === "abort")
|
|
361
|
+
r.onabort(x);
|
|
362
|
+
else
|
|
363
|
+
throw new TypeError();
|
|
364
|
+
r.onreadystatechange();
|
|
365
|
+
}
|
|
366
|
+
}, b = function(g) {
|
|
367
|
+
n != null && (n.readyState === 4 ? (!("onload" in n) || !("onerror" in n) || !("onabort" in n)) && y(n.responseText === "" ? "error" : "load", g) : n.readyState === 3 ? "onprogress" in n || l() : n.readyState === 2 && f());
|
|
368
|
+
}, A = function() {
|
|
369
|
+
s = m(function() {
|
|
370
|
+
A();
|
|
371
|
+
}, 500), n.readyState === 3 && l();
|
|
372
|
+
};
|
|
373
|
+
"onload" in n && (n.onload = function(g) {
|
|
374
|
+
y("load", g);
|
|
375
|
+
}), "onerror" in n && (n.onerror = function(g) {
|
|
376
|
+
y("error", g);
|
|
377
|
+
}), "onabort" in n && (n.onabort = function(g) {
|
|
378
|
+
y("abort", g);
|
|
379
|
+
}), "onprogress" in n && (n.onprogress = l), "onreadystatechange" in n && (n.onreadystatechange = function(g) {
|
|
380
|
+
b(g);
|
|
381
|
+
}), ("contentType" in n || !("ontimeout" in d.prototype)) && (e += (e.indexOf("?") === -1 ? "?" : "&") + "padding=true"), n.open(o, e, !0), "readyState" in n && (s = m(function() {
|
|
382
|
+
A();
|
|
383
|
+
}, 0));
|
|
384
|
+
}, _.prototype.abort = function() {
|
|
385
|
+
this._abort(!1);
|
|
386
|
+
}, _.prototype.getResponseHeader = function(o) {
|
|
387
|
+
return this._contentType;
|
|
388
|
+
}, _.prototype.setRequestHeader = function(o, e) {
|
|
389
|
+
var r = this._xhr;
|
|
390
|
+
"setRequestHeader" in r && r.setRequestHeader(o, e);
|
|
391
|
+
}, _.prototype.getAllResponseHeaders = function() {
|
|
392
|
+
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
393
|
+
}, _.prototype.send = function() {
|
|
394
|
+
if ((!("ontimeout" in d.prototype) || !("sendAsBinary" in d.prototype) && !("mozAnon" in d.prototype)) && B != null && B.readyState != null && B.readyState !== "complete") {
|
|
395
|
+
var o = this;
|
|
396
|
+
o._sendTimeout = m(function() {
|
|
397
|
+
o._sendTimeout = 0, o.send();
|
|
398
|
+
}, 4);
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
var e = this._xhr;
|
|
402
|
+
"withCredentials" in e && (e.withCredentials = this.withCredentials);
|
|
403
|
+
try {
|
|
404
|
+
e.send(void 0);
|
|
405
|
+
} catch (r) {
|
|
406
|
+
throw r;
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
function F(o) {
|
|
410
|
+
return o.replace(/[A-Z]/g, function(e) {
|
|
411
|
+
return String.fromCharCode(e.charCodeAt(0) + 32);
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
function E(o) {
|
|
415
|
+
for (var e = /* @__PURE__ */ Object.create(null), r = o.split(`\r
|
|
416
|
+
`), n = 0; n < r.length; n += 1) {
|
|
417
|
+
var i = r[n], s = i.split(": "), f = s.shift(), l = s.join(": ");
|
|
418
|
+
e[F(f)] = l;
|
|
419
|
+
}
|
|
420
|
+
this._map = e;
|
|
421
|
+
}
|
|
422
|
+
E.prototype.get = function(o) {
|
|
423
|
+
return this._map[F(o)];
|
|
424
|
+
}, d != null && d.HEADERS_RECEIVED == null && (d.HEADERS_RECEIVED = 2);
|
|
425
|
+
function J() {
|
|
426
|
+
}
|
|
427
|
+
J.prototype.open = function(o, e, r, n, i, s, f) {
|
|
428
|
+
o.open("GET", i);
|
|
429
|
+
var l = 0;
|
|
430
|
+
o.onprogress = function() {
|
|
431
|
+
var b = o.responseText, A = b.slice(l);
|
|
432
|
+
l += A.length, r(A);
|
|
433
|
+
}, o.onerror = function(b) {
|
|
434
|
+
b.preventDefault(), n(new Error("NetworkError"));
|
|
435
|
+
}, o.onload = function() {
|
|
436
|
+
n(null);
|
|
437
|
+
}, o.onabort = function() {
|
|
438
|
+
n(null);
|
|
439
|
+
}, o.onreadystatechange = function() {
|
|
440
|
+
if (o.readyState === d.HEADERS_RECEIVED) {
|
|
441
|
+
var b = o.status, A = o.statusText, g = o.getResponseHeader("Content-Type"), x = o.getAllResponseHeaders();
|
|
442
|
+
e(b, A, g, new E(x));
|
|
443
|
+
}
|
|
444
|
+
}, o.withCredentials = s;
|
|
445
|
+
for (var y in f)
|
|
446
|
+
Object.prototype.hasOwnProperty.call(f, y) && o.setRequestHeader(y, f[y]);
|
|
447
|
+
return o.send(), o;
|
|
448
|
+
};
|
|
449
|
+
function pe(o) {
|
|
450
|
+
this._headers = o;
|
|
451
|
+
}
|
|
452
|
+
pe.prototype.get = function(o) {
|
|
453
|
+
return this._headers.get(o);
|
|
454
|
+
};
|
|
455
|
+
function oe() {
|
|
456
|
+
}
|
|
457
|
+
oe.prototype.open = function(o, e, r, n, i, s, f) {
|
|
458
|
+
var l = null, y = new Q(), b = y.signal, A = new R();
|
|
459
|
+
return C(i, {
|
|
460
|
+
headers: f,
|
|
461
|
+
credentials: s ? "include" : "same-origin",
|
|
462
|
+
signal: b,
|
|
463
|
+
cache: "no-store"
|
|
464
|
+
}).then(function(g) {
|
|
465
|
+
return l = g.body.getReader(), e(g.status, g.statusText, g.headers.get("Content-Type"), new pe(g.headers)), new S(function(x, ie) {
|
|
466
|
+
var Re = function() {
|
|
467
|
+
l.read().then(function(X) {
|
|
468
|
+
if (X.done)
|
|
469
|
+
x(void 0);
|
|
470
|
+
else {
|
|
471
|
+
var z = A.decode(X.value, { stream: !0 });
|
|
472
|
+
r(z), Re();
|
|
473
|
+
}
|
|
474
|
+
}).catch(function(X) {
|
|
475
|
+
ie(X);
|
|
476
|
+
});
|
|
477
|
+
};
|
|
478
|
+
Re();
|
|
479
|
+
});
|
|
480
|
+
}).catch(function(g) {
|
|
481
|
+
if (g.name !== "AbortError")
|
|
482
|
+
return g;
|
|
483
|
+
}).then(function(g) {
|
|
484
|
+
n(g);
|
|
485
|
+
}), {
|
|
486
|
+
abort: function() {
|
|
487
|
+
l != null && l.cancel(), y.abort();
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
function W() {
|
|
492
|
+
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
493
|
+
}
|
|
494
|
+
function Z(o) {
|
|
495
|
+
m(function() {
|
|
496
|
+
throw o;
|
|
497
|
+
}, 0);
|
|
498
|
+
}
|
|
499
|
+
W.prototype.dispatchEvent = function(o) {
|
|
500
|
+
o.target = this;
|
|
501
|
+
var e = this._listeners[o.type];
|
|
502
|
+
if (e != null)
|
|
503
|
+
for (var r = e.length, n = 0; n < r; n += 1) {
|
|
504
|
+
var i = e[n];
|
|
505
|
+
try {
|
|
506
|
+
typeof i.handleEvent == "function" ? i.handleEvent(o) : i.call(this, o);
|
|
507
|
+
} catch (s) {
|
|
508
|
+
Z(s);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}, W.prototype.addEventListener = function(o, e) {
|
|
512
|
+
o = String(o);
|
|
513
|
+
var r = this._listeners, n = r[o];
|
|
514
|
+
n == null && (n = [], r[o] = n);
|
|
515
|
+
for (var i = !1, s = 0; s < n.length; s += 1)
|
|
516
|
+
n[s] === e && (i = !0);
|
|
517
|
+
i || n.push(e);
|
|
518
|
+
}, W.prototype.removeEventListener = function(o, e) {
|
|
519
|
+
o = String(o);
|
|
520
|
+
var r = this._listeners, n = r[o];
|
|
521
|
+
if (n != null) {
|
|
522
|
+
for (var i = [], s = 0; s < n.length; s += 1)
|
|
523
|
+
n[s] !== e && i.push(n[s]);
|
|
524
|
+
i.length === 0 ? delete r[o] : r[o] = i;
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
function Y(o) {
|
|
528
|
+
this.type = o, this.target = void 0;
|
|
529
|
+
}
|
|
530
|
+
function h(o, e) {
|
|
531
|
+
Y.call(this, o), this.data = e.data, this.lastEventId = e.lastEventId;
|
|
532
|
+
}
|
|
533
|
+
h.prototype = Object.create(Y.prototype);
|
|
534
|
+
function re(o, e) {
|
|
535
|
+
Y.call(this, o), this.status = e.status, this.statusText = e.statusText, this.headers = e.headers;
|
|
536
|
+
}
|
|
537
|
+
re.prototype = Object.create(Y.prototype);
|
|
538
|
+
function De(o, e) {
|
|
539
|
+
Y.call(this, o), this.error = e.error;
|
|
540
|
+
}
|
|
541
|
+
De.prototype = Object.create(Y.prototype);
|
|
542
|
+
var Ce = -1, te = 0, he = 1, ye = 2, ge = -1, $ = 0, Ae = 1, Be = 2, Le = 3, je = /^text\/event\-stream(;.*)?$/i, Me = 1e3, He = 18e6, _e = function(o, e) {
|
|
543
|
+
var r = o == null ? e : parseInt(o, 10);
|
|
544
|
+
return r !== r && (r = e), xe(r);
|
|
545
|
+
}, xe = function(o) {
|
|
546
|
+
return Math.min(Math.max(o, Me), He);
|
|
547
|
+
}, me = function(o, e, r) {
|
|
548
|
+
try {
|
|
549
|
+
typeof e == "function" && e.call(o, r);
|
|
550
|
+
} catch (n) {
|
|
551
|
+
Z(n);
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
function G(o, e) {
|
|
555
|
+
W.call(this), e = e || {}, 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, Pe(this, o, e);
|
|
556
|
+
}
|
|
557
|
+
function ze() {
|
|
558
|
+
return d != null && "withCredentials" in d.prototype || v == null ? new d() : new v();
|
|
559
|
+
}
|
|
560
|
+
var Ue = C != null && D != null && "body" in D.prototype;
|
|
561
|
+
function Pe(o, e, r) {
|
|
562
|
+
e = String(e);
|
|
563
|
+
var n = !!r.withCredentials, i = r.lastEventIdQueryParameterName || "lastEventId", s = xe(1e3), f = _e(r.heartbeatTimeout, 45e3), l = "", y = s, b = !1, A = 0, g = r.headers || {}, x = r.Transport, ie = Ue && x == null ? void 0 : new _(x != null ? new x() : ze()), Re = x != null && typeof x != "string" ? new x() : ie == null ? new oe() : new J(), X = void 0, z = 0, ee = Ce, Te = "", ke = "", se = "", Oe = "", U = $, Ve = 0, ve = 0, ct = function(N, k, K, q) {
|
|
564
|
+
if (ee === te)
|
|
565
|
+
if (N === 200 && K != null && je.test(K)) {
|
|
566
|
+
ee = he, b = Date.now(), y = s, o.readyState = he;
|
|
567
|
+
var P = new re("open", {
|
|
568
|
+
status: N,
|
|
569
|
+
statusText: k,
|
|
570
|
+
headers: q
|
|
571
|
+
});
|
|
572
|
+
o.dispatchEvent(P), me(o, o.onopen, P);
|
|
573
|
+
} else {
|
|
574
|
+
var I = "";
|
|
575
|
+
N !== 200 ? (k && (k = k.replace(/\s+/g, " ")), I = "EventSource's response has a status " + N + " " + k + " that is not 200. Aborting the connection.") : I = "EventSource's response has a Content-Type specifying an unsupported type: " + (K == null ? "-" : K.replace(/\s+/g, " ")) + ". Aborting the connection.", Ge();
|
|
576
|
+
var P = new re("error", {
|
|
577
|
+
status: N,
|
|
578
|
+
statusText: k,
|
|
579
|
+
headers: q
|
|
580
|
+
});
|
|
581
|
+
o.dispatchEvent(P), me(o, o.onerror, P), console.error(I);
|
|
582
|
+
}
|
|
583
|
+
}, dt = function(N) {
|
|
584
|
+
if (ee === he) {
|
|
585
|
+
for (var k = -1, K = 0; K < N.length; K += 1) {
|
|
586
|
+
var q = N.charCodeAt(K);
|
|
587
|
+
(q === 10 || q === 13) && (k = K);
|
|
588
|
+
}
|
|
589
|
+
var P = (k !== -1 ? Oe : "") + N.slice(0, k + 1);
|
|
590
|
+
Oe = (k === -1 ? Oe : "") + N.slice(k + 1), N !== "" && (b = Date.now(), A += N.length);
|
|
591
|
+
for (var I = 0; I < P.length; I += 1) {
|
|
592
|
+
var q = P.charCodeAt(I);
|
|
593
|
+
if (U === ge && q === 10)
|
|
594
|
+
U = $;
|
|
595
|
+
else if (U === ge && (U = $), q === 13 || q === 10) {
|
|
596
|
+
if (U !== $) {
|
|
597
|
+
U === Ae && (ve = I + 1);
|
|
598
|
+
var le = P.slice(Ve, ve - 1), ce = P.slice(ve + (ve < I && P.charCodeAt(ve) === 32 ? 1 : 0), I);
|
|
599
|
+
le === "data" ? (Te += `
|
|
600
|
+
`, Te += ce) : le === "id" ? ke = ce : le === "event" ? se = ce : le === "retry" ? (s = _e(ce, s), y = s) : le === "heartbeatTimeout" && (f = _e(ce, f), z !== 0 && (u(z), z = m(function() {
|
|
601
|
+
Ee();
|
|
602
|
+
}, f)));
|
|
603
|
+
}
|
|
604
|
+
if (U === $) {
|
|
605
|
+
if (Te !== "") {
|
|
606
|
+
l = ke, se === "" && (se = "message");
|
|
607
|
+
var Se = new h(se, {
|
|
608
|
+
data: Te.slice(1),
|
|
609
|
+
lastEventId: ke
|
|
610
|
+
});
|
|
611
|
+
if (o.dispatchEvent(Se), se === "open" ? me(o, o.onopen, Se) : se === "message" ? me(o, o.onmessage, Se) : se === "error" && me(o, o.onerror, Se), ee === ye)
|
|
612
|
+
return;
|
|
613
|
+
}
|
|
614
|
+
Te = "", se = "";
|
|
615
|
+
}
|
|
616
|
+
U = q === 13 ? ge : $;
|
|
617
|
+
} else
|
|
618
|
+
U === $ && (Ve = I, U = Ae), U === Ae ? q === 58 && (ve = I + 1, U = Be) : U === Be && (U = Le);
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}, We = function(N) {
|
|
622
|
+
if (ee === he || ee === te) {
|
|
623
|
+
ee = Ce, z !== 0 && (u(z), z = 0), z = m(function() {
|
|
624
|
+
Ee();
|
|
625
|
+
}, y), y = xe(Math.min(s * 16, y * 2)), o.readyState = te;
|
|
626
|
+
var k = new De("error", { error: N });
|
|
627
|
+
o.dispatchEvent(k), me(o, o.onerror, k), N != null && console.error(N);
|
|
628
|
+
}
|
|
629
|
+
}, Ge = function() {
|
|
630
|
+
ee = ye, X != null && (X.abort(), X = void 0), z !== 0 && (u(z), z = 0), o.readyState = ye;
|
|
631
|
+
}, Ee = function() {
|
|
632
|
+
if (z = 0, ee !== Ce) {
|
|
633
|
+
if (!b && X != null)
|
|
634
|
+
We(new Error("No activity within " + f + " milliseconds. " + (ee === te ? "No response received." : A + " chars received.") + " Reconnecting.")), X != null && (X.abort(), X = void 0);
|
|
635
|
+
else {
|
|
636
|
+
var N = Math.max((b || Date.now()) + f - Date.now(), 1);
|
|
637
|
+
b = !1, z = m(function() {
|
|
638
|
+
Ee();
|
|
639
|
+
}, N);
|
|
640
|
+
}
|
|
641
|
+
return;
|
|
642
|
+
}
|
|
643
|
+
b = !1, A = 0, z = m(function() {
|
|
644
|
+
Ee();
|
|
645
|
+
}, f), ee = te, Te = "", se = "", ke = l, Oe = "", Ve = 0, ve = 0, U = $;
|
|
646
|
+
var k = e;
|
|
647
|
+
if (e.slice(0, 5) !== "data:" && e.slice(0, 5) !== "blob:" && l !== "") {
|
|
648
|
+
var K = e.indexOf("?");
|
|
649
|
+
k = K === -1 ? e : e.slice(0, K + 1) + e.slice(K + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ce, Se) {
|
|
650
|
+
return Se === i ? "" : ce;
|
|
651
|
+
}), k += (e.indexOf("?") === -1 ? "?" : "&") + i + "=" + encodeURIComponent(l);
|
|
652
|
+
}
|
|
653
|
+
var q = o.withCredentials, P = {};
|
|
654
|
+
P.Accept = "text/event-stream";
|
|
655
|
+
var I = o.headers;
|
|
656
|
+
if (I != null)
|
|
657
|
+
for (var le in I)
|
|
658
|
+
Object.prototype.hasOwnProperty.call(I, le) && (P[le] = I[le]);
|
|
659
|
+
try {
|
|
660
|
+
X = Re.open(ie, ct, dt, We, k, q, P);
|
|
661
|
+
} catch (ce) {
|
|
662
|
+
throw Ge(), ce;
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
o.url = e, o.readyState = te, o.withCredentials = n, o.headers = g, o._close = Ge, Ee();
|
|
666
|
+
}
|
|
667
|
+
G.prototype = Object.create(W.prototype), G.prototype.CONNECTING = te, G.prototype.OPEN = he, G.prototype.CLOSED = ye, G.prototype.close = function() {
|
|
668
|
+
this._close();
|
|
669
|
+
}, G.CONNECTING = te, G.OPEN = he, G.CLOSED = ye, G.prototype.withCredentials = void 0;
|
|
670
|
+
var Fe = w;
|
|
671
|
+
d != null && (w == null || !("withCredentials" in w.prototype)) && (Fe = G), function(o) {
|
|
672
|
+
{
|
|
673
|
+
var e = o(t);
|
|
674
|
+
e !== void 0 && (c.exports = e);
|
|
675
|
+
}
|
|
676
|
+
}(function(o) {
|
|
677
|
+
o.EventSourcePolyfill = G, o.NativeEventSource = w, o.EventSource = Fe;
|
|
678
|
+
});
|
|
679
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : vt : globalThis);
|
|
680
|
+
})(qe, qe.exports);
|
|
681
|
+
var kt = qe.exports;
|
|
682
|
+
function Ot(c) {
|
|
683
|
+
Tt(c, "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}');
|
|
684
|
+
}
|
|
685
|
+
function nt(c, t, a) {
|
|
686
|
+
const m = c.slice();
|
|
687
|
+
return m[51] = t[a], m;
|
|
688
|
+
}
|
|
689
|
+
function at(c, t, a) {
|
|
690
|
+
const m = c.slice();
|
|
691
|
+
return m[54] = t[a], m;
|
|
692
|
+
}
|
|
693
|
+
function Nt(c) {
|
|
694
|
+
let t, a = (
|
|
695
|
+
/*balances*/
|
|
696
|
+
(c[3].Total ? (
|
|
697
|
+
/*formatBalance*/
|
|
698
|
+
c[5](
|
|
699
|
+
/*balances*/
|
|
700
|
+
c[3].Total[0].amount
|
|
701
|
+
)
|
|
702
|
+
) : "0") + ""
|
|
703
|
+
), m, u, d, v, p, w, B, S = (
|
|
704
|
+
/*isModalDisplayed*/
|
|
705
|
+
c[2] && ot(c)
|
|
706
|
+
);
|
|
707
|
+
return {
|
|
708
|
+
c() {
|
|
709
|
+
t = O("button"), m = be(a), u = fe(), d = O("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>', v = fe(), S && S.c(), p = _t(), H(t, "class", "BalanceValue");
|
|
710
|
+
},
|
|
711
|
+
m(C, D) {
|
|
712
|
+
ue(C, t, D), L(t, m), L(t, u), L(t, d), ue(C, v, D), S && S.m(C, D), ue(C, p, D), w || (B = Ne(
|
|
713
|
+
t,
|
|
714
|
+
"click",
|
|
715
|
+
/*click_handler*/
|
|
716
|
+
c[25]
|
|
717
|
+
), w = !0);
|
|
718
|
+
},
|
|
719
|
+
p(C, D) {
|
|
720
|
+
D[0] & /*balances*/
|
|
721
|
+
8 && a !== (a = /*balances*/
|
|
722
|
+
(C[3].Total ? (
|
|
723
|
+
/*formatBalance*/
|
|
724
|
+
C[5](
|
|
725
|
+
/*balances*/
|
|
726
|
+
C[3].Total[0].amount
|
|
727
|
+
)
|
|
728
|
+
) : "0") + "") && we(m, a), /*isModalDisplayed*/
|
|
729
|
+
C[2] ? S ? S.p(C, D) : (S = ot(C), S.c(), S.m(p.parentNode, p)) : S && (S.d(1), S = null);
|
|
730
|
+
},
|
|
731
|
+
d(C) {
|
|
732
|
+
C && (de(t), de(v), de(p)), S && S.d(C), w = !1, B();
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
function It(c) {
|
|
737
|
+
let t, a = (
|
|
738
|
+
/*$_*/
|
|
739
|
+
c[4]("Loading") + ""
|
|
740
|
+
), m;
|
|
741
|
+
return {
|
|
742
|
+
c() {
|
|
743
|
+
t = O("p"), m = be(a);
|
|
744
|
+
},
|
|
745
|
+
m(u, d) {
|
|
746
|
+
ue(u, t, d), L(t, m);
|
|
747
|
+
},
|
|
748
|
+
p(u, d) {
|
|
749
|
+
d[0] & /*$_*/
|
|
750
|
+
16 && a !== (a = /*$_*/
|
|
751
|
+
u[4]("Loading") + "") && we(m, a);
|
|
752
|
+
},
|
|
753
|
+
d(u) {
|
|
754
|
+
u && de(t);
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
function ot(c) {
|
|
759
|
+
let t, a, m, u, d, v, p = (
|
|
760
|
+
/*$_*/
|
|
761
|
+
c[4]("Title") + ""
|
|
762
|
+
), w, B, S, C, D, R, M = (
|
|
763
|
+
/*$_*/
|
|
764
|
+
c[4]("DepositButton") + ""
|
|
765
|
+
), Q, ne, ae, V = Ie(Object.keys(
|
|
766
|
+
/*balances*/
|
|
767
|
+
c[3]
|
|
768
|
+
)), T = [];
|
|
769
|
+
for (let _ = 0; _ < V.length; _ += 1)
|
|
770
|
+
T[_] = it(nt(c, V, _));
|
|
771
|
+
return {
|
|
772
|
+
c() {
|
|
773
|
+
t = O("div"), a = O("button"), m = fe(), u = O("div"), d = O("div"), v = O("p"), w = be(p), B = fe(), S = O("div");
|
|
774
|
+
for (let _ = 0; _ < T.length; _ += 1)
|
|
775
|
+
T[_].c();
|
|
776
|
+
C = fe(), D = O("div"), R = O("button"), Q = be(M), H(a, "class", "BalanceModalClose"), H(v, "class", "BalanceModalTitle"), H(d, "class", "BalanceModalHeader"), H(S, "class", "BalanceModalBody"), H(R, "class", "BalanceModalAction"), H(D, "class", "BalanceModalFooter"), H(u, "class", "BalanceModal"), H(t, "class", "BalanceModalWrapper");
|
|
777
|
+
},
|
|
778
|
+
m(_, F) {
|
|
779
|
+
ue(_, t, F), L(t, a), L(t, m), L(t, u), L(u, d), L(d, v), L(v, w), L(u, B), L(u, S);
|
|
780
|
+
for (let E = 0; E < T.length; E += 1)
|
|
781
|
+
T[E] && T[E].m(S, null);
|
|
782
|
+
L(u, C), L(u, D), L(D, R), L(R, Q), ne || (ae = [
|
|
783
|
+
Ne(
|
|
784
|
+
a,
|
|
785
|
+
"click",
|
|
786
|
+
/*click_handler_1*/
|
|
787
|
+
c[26]
|
|
788
|
+
),
|
|
789
|
+
Ne(
|
|
790
|
+
R,
|
|
791
|
+
"click",
|
|
792
|
+
/*click_handler_2*/
|
|
793
|
+
c[27]
|
|
794
|
+
)
|
|
795
|
+
], ne = !0);
|
|
796
|
+
},
|
|
797
|
+
p(_, F) {
|
|
798
|
+
if (F[0] & /*$_*/
|
|
799
|
+
16 && p !== (p = /*$_*/
|
|
800
|
+
_[4]("Title") + "") && we(w, p), F[0] & /*balances, formatBalance, getProductType, $_*/
|
|
801
|
+
184) {
|
|
802
|
+
V = Ie(Object.keys(
|
|
803
|
+
/*balances*/
|
|
804
|
+
_[3]
|
|
805
|
+
));
|
|
806
|
+
let E;
|
|
807
|
+
for (E = 0; E < V.length; E += 1) {
|
|
808
|
+
const J = nt(_, V, E);
|
|
809
|
+
T[E] ? T[E].p(J, F) : (T[E] = it(J), T[E].c(), T[E].m(S, null));
|
|
810
|
+
}
|
|
811
|
+
for (; E < T.length; E += 1)
|
|
812
|
+
T[E].d(1);
|
|
813
|
+
T.length = V.length;
|
|
814
|
+
}
|
|
815
|
+
F[0] & /*$_*/
|
|
816
|
+
16 && M !== (M = /*$_*/
|
|
817
|
+
_[4]("DepositButton") + "") && we(Q, M);
|
|
818
|
+
},
|
|
819
|
+
d(_) {
|
|
820
|
+
_ && de(t), lt(T, _), ne = !1, xt(ae);
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
function rt(c) {
|
|
825
|
+
let t, a, m = (
|
|
826
|
+
/*$_*/
|
|
827
|
+
c[4](
|
|
828
|
+
/*k*/
|
|
829
|
+
c[51]
|
|
830
|
+
) + ""
|
|
831
|
+
), u, d, v = (
|
|
832
|
+
/*getProductType*/
|
|
833
|
+
c[7](
|
|
834
|
+
/*balance*/
|
|
835
|
+
c[54]
|
|
836
|
+
) + ""
|
|
837
|
+
), p, w, B, S, C = (
|
|
838
|
+
/*formatBalance*/
|
|
839
|
+
c[5](
|
|
840
|
+
/*balance*/
|
|
841
|
+
c[54].amount
|
|
842
|
+
) + ""
|
|
843
|
+
), D;
|
|
844
|
+
return {
|
|
845
|
+
c() {
|
|
846
|
+
t = O("div"), a = O("p"), u = be(m), d = fe(), p = be(v), w = fe(), B = O("p"), S = O("span"), D = be(C), H(a, "class", "BalanceModalText"), H(S, "class", "BalanceModalAmount"), H(B, "class", "BalanceModalValue"), H(t, "class", "BalanceModalRowLine");
|
|
847
|
+
},
|
|
848
|
+
m(R, M) {
|
|
849
|
+
ue(R, t, M), L(t, a), L(a, u), L(a, d), L(a, p), L(t, w), L(t, B), L(B, S), L(S, D);
|
|
850
|
+
},
|
|
851
|
+
p(R, M) {
|
|
852
|
+
M[0] & /*$_, balances*/
|
|
853
|
+
24 && m !== (m = /*$_*/
|
|
854
|
+
R[4](
|
|
855
|
+
/*k*/
|
|
856
|
+
R[51]
|
|
857
|
+
) + "") && we(u, m), M[0] & /*balances*/
|
|
858
|
+
8 && v !== (v = /*getProductType*/
|
|
859
|
+
R[7](
|
|
860
|
+
/*balance*/
|
|
861
|
+
R[54]
|
|
862
|
+
) + "") && we(p, v), M[0] & /*balances*/
|
|
863
|
+
8 && C !== (C = /*formatBalance*/
|
|
864
|
+
R[5](
|
|
865
|
+
/*balance*/
|
|
866
|
+
R[54].amount
|
|
867
|
+
) + "") && we(D, C);
|
|
868
|
+
},
|
|
869
|
+
d(R) {
|
|
870
|
+
R && de(t);
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
function it(c) {
|
|
875
|
+
let t, a, m = Ie(
|
|
876
|
+
/*balances*/
|
|
877
|
+
c[3][
|
|
878
|
+
/*k*/
|
|
879
|
+
c[51]
|
|
880
|
+
]
|
|
881
|
+
), u = [];
|
|
882
|
+
for (let d = 0; d < m.length; d += 1)
|
|
883
|
+
u[d] = rt(at(c, m, d));
|
|
884
|
+
return {
|
|
885
|
+
c() {
|
|
886
|
+
t = O("div");
|
|
887
|
+
for (let d = 0; d < u.length; d += 1)
|
|
888
|
+
u[d].c();
|
|
889
|
+
a = fe(), H(t, "class", "BalanceModalRowBoth");
|
|
890
|
+
},
|
|
891
|
+
m(d, v) {
|
|
892
|
+
ue(d, t, v);
|
|
893
|
+
for (let p = 0; p < u.length; p += 1)
|
|
894
|
+
u[p] && u[p].m(t, null);
|
|
895
|
+
L(t, a);
|
|
896
|
+
},
|
|
897
|
+
p(d, v) {
|
|
898
|
+
if (v[0] & /*formatBalance, balances, getProductType, $_*/
|
|
899
|
+
184) {
|
|
900
|
+
m = Ie(
|
|
901
|
+
/*balances*/
|
|
902
|
+
d[3][
|
|
903
|
+
/*k*/
|
|
904
|
+
d[51]
|
|
905
|
+
]
|
|
906
|
+
);
|
|
907
|
+
let p;
|
|
908
|
+
for (p = 0; p < m.length; p += 1) {
|
|
909
|
+
const w = at(d, m, p);
|
|
910
|
+
u[p] ? u[p].p(w, v) : (u[p] = rt(w), u[p].c(), u[p].m(t, a));
|
|
911
|
+
}
|
|
912
|
+
for (; p < u.length; p += 1)
|
|
913
|
+
u[p].d(1);
|
|
914
|
+
u.length = m.length;
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
d(d) {
|
|
918
|
+
d && de(t), lt(u, d);
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
function st(c) {
|
|
923
|
+
let t, a, m;
|
|
924
|
+
return {
|
|
925
|
+
c() {
|
|
926
|
+
t = O("button"), H(t, "class", "ShowBalanceModalOverlay");
|
|
927
|
+
},
|
|
928
|
+
m(u, d) {
|
|
929
|
+
ue(u, t, d), a || (m = Ne(
|
|
930
|
+
t,
|
|
931
|
+
"click",
|
|
932
|
+
/*click_handler_3*/
|
|
933
|
+
c[28]
|
|
934
|
+
), a = !0);
|
|
935
|
+
},
|
|
936
|
+
p: Ke,
|
|
937
|
+
d(u) {
|
|
938
|
+
u && de(t), a = !1, m();
|
|
939
|
+
}
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
function jt(c) {
|
|
943
|
+
let t, a, m;
|
|
944
|
+
function u(w, B) {
|
|
945
|
+
return (
|
|
946
|
+
/*isLoading*/
|
|
947
|
+
w[1] ? It : Nt
|
|
948
|
+
);
|
|
949
|
+
}
|
|
950
|
+
let d = u(c), v = d(c), p = (
|
|
951
|
+
/*isModalDisplayed*/
|
|
952
|
+
c[2] && st(c)
|
|
953
|
+
);
|
|
954
|
+
return {
|
|
955
|
+
c() {
|
|
956
|
+
t = O("div"), a = O("div"), v.c(), m = fe(), p && p.c(), H(a, "class", "ShowBalance");
|
|
957
|
+
},
|
|
958
|
+
m(w, B) {
|
|
959
|
+
ue(w, t, B), L(t, a), v.m(a, null), L(t, m), p && p.m(t, null), c[29](t);
|
|
960
|
+
},
|
|
961
|
+
p(w, B) {
|
|
962
|
+
d === (d = u(w)) && v ? v.p(w, B) : (v.d(1), v = d(w), v && (v.c(), v.m(a, null))), /*isModalDisplayed*/
|
|
963
|
+
w[2] ? p ? p.p(w, B) : (p = st(w), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
|
|
964
|
+
},
|
|
965
|
+
i: Ke,
|
|
966
|
+
o: Ke,
|
|
967
|
+
d(w) {
|
|
968
|
+
w && de(t), v.d(), p && p.d(), c[29](null);
|
|
969
|
+
}
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
function Ht(c, t, a) {
|
|
973
|
+
let m;
|
|
974
|
+
St(c, Mt, (e) => a(4, m = e));
|
|
975
|
+
let { userid: u = "" } = t, { session: d = "" } = t, { endpoint: v = "" } = t, { lang: p = "en" } = t, { mbsource: w } = t, { clientstyling: B = "" } = t, { clientstylingurl: S = "" } = t, { translationurl: C = "" } = t, { gmversion: D = "gm16" } = t, { displaybalanceoption: R = "All" } = t, { totalcalculationmode: M = "totalCashAmount" } = t, { hideproducttype: Q } = t, { currencylocale: ne = "en" } = t, { currencydisplay: ae = "symbol" } = t, { maximumfractiondigits: V = "2" } = t, { minimumfractiondigits: T = "0" } = t, { customdisplayformat: _ = "" } = t, F, E = !0, J = !1, pe = !1, oe, W = "", Z = [], Y;
|
|
976
|
+
const h = {}, re = ["totalCashAmount", "totalRealAmount"], De = () => {
|
|
977
|
+
fetch(C).then((e) => e.json()).then((e) => Object.keys(e).forEach((r) => et(r, e[r]))).catch((e) => console.log(e));
|
|
978
|
+
};
|
|
979
|
+
Object.keys(tt).forEach((e) => et(e, tt[e]));
|
|
980
|
+
const Ce = (e) => {
|
|
981
|
+
if (_)
|
|
982
|
+
return te(e);
|
|
983
|
+
const r = ne || p, n = {
|
|
984
|
+
style: "currency",
|
|
985
|
+
currency: W,
|
|
986
|
+
useGrouping: !0,
|
|
987
|
+
currencyDisplay: ae || "code",
|
|
988
|
+
maximumFractionDigits: V === "" || isNaN(Number(V)) ? 2 : Number(V),
|
|
989
|
+
minimumFractionDigits: T === "" || isNaN(Number(T)) ? 0 : Number(T)
|
|
990
|
+
};
|
|
991
|
+
return new Intl.NumberFormat(r, n).format(e);
|
|
992
|
+
}, te = (e) => {
|
|
993
|
+
const r = [];
|
|
994
|
+
let n = "";
|
|
995
|
+
for (const i of _)
|
|
996
|
+
switch (i) {
|
|
997
|
+
default:
|
|
998
|
+
n += i;
|
|
999
|
+
break;
|
|
1000
|
+
case "{":
|
|
1001
|
+
n && r.push(n), n = "";
|
|
1002
|
+
break;
|
|
1003
|
+
case "}":
|
|
1004
|
+
const [s, f] = n.split("|");
|
|
1005
|
+
if (n = "", s.toLowerCase() === "currency")
|
|
1006
|
+
n = W;
|
|
1007
|
+
else if (s.toLowerCase() === "amount") {
|
|
1008
|
+
let l = ",", y = ".", b = 2;
|
|
1009
|
+
f && (f[0] !== " " && (l = f[0]), f[1] !== " " && (y = f[1]), f[2] !== " " && !isNaN(Number(f[2])) && (b = Number(f[2])));
|
|
1010
|
+
let [A, g] = String(Math.floor(e * Xe(10, b)) / Xe(10, b)).split(".");
|
|
1011
|
+
n += A[0];
|
|
1012
|
+
for (let x = 1; x < A.length; ++x)
|
|
1013
|
+
(A.length - x) % 3 === 0 ? n += l + A[x] : n += A[x];
|
|
1014
|
+
g && (n += y + g);
|
|
1015
|
+
}
|
|
1016
|
+
n && r.push(n), n = "";
|
|
1017
|
+
break;
|
|
1018
|
+
}
|
|
1019
|
+
return r.push(n), r.join("");
|
|
1020
|
+
}, he = () => $e(this, null, function* () {
|
|
1021
|
+
var r, n, i;
|
|
1022
|
+
a(1, E = !0);
|
|
1023
|
+
const e = new URL(`${v}/v1/player/${u}/account`);
|
|
1024
|
+
try {
|
|
1025
|
+
const s = yield fetch(e, {
|
|
1026
|
+
method: "GET",
|
|
1027
|
+
headers: { "X-SessionID": d }
|
|
1028
|
+
}), f = yield s.json();
|
|
1029
|
+
if (s.ok)
|
|
1030
|
+
Z = f.items, W = (r = Z.find((l) => l.displayName === "Casino")) == null ? void 0 : r.currency, a(3, h.Total = [{ amount: f.totalAmount[W] }], h), a(
|
|
1031
|
+
3,
|
|
1032
|
+
h.Real = [
|
|
1033
|
+
{
|
|
1034
|
+
amount: (n = Z.find((l) => l.displayName === "Casino")) == null ? void 0 : n.balanceAmount
|
|
1035
|
+
}
|
|
1036
|
+
],
|
|
1037
|
+
h
|
|
1038
|
+
), a(
|
|
1039
|
+
3,
|
|
1040
|
+
h.Bonus = [
|
|
1041
|
+
{
|
|
1042
|
+
amount: (i = Z.find((l) => l.displayName === "UBS")) == null ? void 0 : i.balanceAmount
|
|
1043
|
+
}
|
|
1044
|
+
],
|
|
1045
|
+
h
|
|
1046
|
+
);
|
|
1047
|
+
else
|
|
1048
|
+
throw new Error("Failed to fetch balance data !");
|
|
1049
|
+
} catch (s) {
|
|
1050
|
+
console.log("Balance error: ", s);
|
|
1051
|
+
} finally {
|
|
1052
|
+
a(1, E = !1);
|
|
1053
|
+
}
|
|
1054
|
+
}), ye = () => {
|
|
1055
|
+
a(1, E = !0);
|
|
1056
|
+
const e = new URL(`${v}/v2/player/${u}/balance`), r = new Headers();
|
|
1057
|
+
r.append("X-SessionID", d), fetch(e, { method: "GET", headers: r }).then((i) => i.json()).then((i) => {
|
|
1058
|
+
i[M] || a(8, M = re[0]);
|
|
1059
|
+
const s = i.items.find((l) => l.type === "Real" && l.walletAccountType === "Ordinary");
|
|
1060
|
+
if (W = s.currency, pe = !!s.productType, a(3, h.Total = [{ amount: 0 }], h), a(3, h.Real = [], h), a(3, h.Bonus = [], h), a(3, h.Credit = [], h), !pe) {
|
|
1061
|
+
Y = {
|
|
1062
|
+
lastOrdinaryAfterAmount: 0,
|
|
1063
|
+
showCreditLineAfterAmount: !1
|
|
1064
|
+
}, a(3, h.Total[0].amount = i[M][W], h);
|
|
1065
|
+
for (const l of i.items)
|
|
1066
|
+
switch (l.type) {
|
|
1067
|
+
case "Bonus":
|
|
1068
|
+
h.Bonus.length === 0 ? h.Bonus.push({ amount: l.amount }) : a(3, h.Bonus[0].amount += l.amount, h);
|
|
1069
|
+
break;
|
|
1070
|
+
case "Real":
|
|
1071
|
+
if (l.creditLine && h.Credit.length === 0 && h.Credit.push({ amount: l.creditLine }), M === "totalRealAmount")
|
|
1072
|
+
continue;
|
|
1073
|
+
h.Real.length === 0 ? h.Real.push({ amount: l.amount }) : a(3, h.Real[0].amount += l.amount, h);
|
|
1074
|
+
break;
|
|
1075
|
+
}
|
|
1076
|
+
for (const [l, y] of Object.entries(h))
|
|
1077
|
+
y.length < 1 && delete h[l];
|
|
1078
|
+
a(1, E = !1);
|
|
1079
|
+
return;
|
|
1080
|
+
}
|
|
1081
|
+
Y = {
|
|
1082
|
+
Casino: {
|
|
1083
|
+
lastOrdinaryAfterAmount: 0,
|
|
1084
|
+
showCreditLineAfterAmount: !1
|
|
1085
|
+
},
|
|
1086
|
+
Sports: {
|
|
1087
|
+
lastOrdinaryAfterAmount: 0,
|
|
1088
|
+
showCreditLineAfterAmount: !1
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
let f = i.items;
|
|
1092
|
+
R && R !== "All" && (f = i.items.filter((l) => l.productType === R));
|
|
1093
|
+
for (const l of f) {
|
|
1094
|
+
let y;
|
|
1095
|
+
switch (l.type) {
|
|
1096
|
+
case "Bonus":
|
|
1097
|
+
y = h.Bonus.findIndex((b) => b.productType === l.productType), y > 0 ? a(3, h.Bonus[y].amount += l.amount, h) : h.Bonus.push({
|
|
1098
|
+
amount: l.amount,
|
|
1099
|
+
productType: l.productType
|
|
1100
|
+
});
|
|
1101
|
+
break;
|
|
1102
|
+
case "Real":
|
|
1103
|
+
l.creditLine && h.Credit.push({
|
|
1104
|
+
amount: l.creditLine,
|
|
1105
|
+
productType: l.productType
|
|
1106
|
+
}), y = h.Real.findIndex((b) => b.productType === l.productType), y > 0 ? a(3, h.Real[y].amount += l.amount, h) : h.Real.push({
|
|
1107
|
+
amount: l.amount,
|
|
1108
|
+
productType: l.productType
|
|
1109
|
+
});
|
|
1110
|
+
break;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
Le();
|
|
1114
|
+
for (const [l, y] of Object.entries(h))
|
|
1115
|
+
y.length < 1 && delete h[l];
|
|
1116
|
+
a(1, E = !1);
|
|
1117
|
+
}).catch(() => {
|
|
1118
|
+
throw a(1, E = !1), new Error("Failed to fetch balance data !");
|
|
1119
|
+
});
|
|
1120
|
+
}, ge = () => {
|
|
1121
|
+
if (oe && oe.close(), d.length < 1)
|
|
1122
|
+
return;
|
|
1123
|
+
let e, r;
|
|
1124
|
+
switch (D) {
|
|
1125
|
+
case "gm16":
|
|
1126
|
+
e = new URL(`${v}/v2/player/${u}/information/updates`), r = (s) => je(s);
|
|
1127
|
+
break;
|
|
1128
|
+
case "gmcore":
|
|
1129
|
+
e = new URL(`${v}/v1/player/${u}/balance/updates`), r = (s) => Ae(s);
|
|
1130
|
+
break;
|
|
1131
|
+
}
|
|
1132
|
+
const n = {
|
|
1133
|
+
accept: "text/event-stream",
|
|
1134
|
+
"X-SessionId": d
|
|
1135
|
+
}, i = new kt.EventSourcePolyfill(e, { headers: n });
|
|
1136
|
+
oe = i, i.addEventListener("message", r);
|
|
1137
|
+
}, $ = (e) => {
|
|
1138
|
+
let r;
|
|
1139
|
+
try {
|
|
1140
|
+
r = JSON.parse(e);
|
|
1141
|
+
} catch (n) {
|
|
1142
|
+
console.log("Balance stream failed: ", n);
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1145
|
+
return r;
|
|
1146
|
+
}, Ae = (e) => {
|
|
1147
|
+
var s, f;
|
|
1148
|
+
const r = $(e.data);
|
|
1149
|
+
if (!r) {
|
|
1150
|
+
ge();
|
|
1151
|
+
return;
|
|
1152
|
+
}
|
|
1153
|
+
let n = "0";
|
|
1154
|
+
const i = r.balanceChange;
|
|
1155
|
+
Z = Z.map((l) => (i && i[l.id] && (l = Ze(Je({}, l), {
|
|
1156
|
+
balanceAmount: i[l.id].afterAmount
|
|
1157
|
+
})), n = (parseFloat(l == null ? void 0 : l.balanceAmount) + parseFloat(n)).toString(), l)), a(3, h.Real = [{ amount: (s = Z[0]) == null ? void 0 : s.balanceAmount }], h), a(3, h.Bonus = [{ amount: (f = Z[1]) == null ? void 0 : f.balanceAmount }], h), a(3, h.Total = [{ amount: Number(n) }], h);
|
|
1158
|
+
}, Be = (e, r, n) => {
|
|
1159
|
+
let i = null;
|
|
1160
|
+
switch (n.walletAccountType) {
|
|
1161
|
+
case "Ordinary":
|
|
1162
|
+
(n.afterAmount !== n.affectedAmount || r.lastOrdinaryAfterAmount === 0) && (r.lastOrdinaryAfterAmount = n.afterAmount, r.showCreditLineAfterAmount || (i = n.afterAmount));
|
|
1163
|
+
break;
|
|
1164
|
+
case "CreditLine":
|
|
1165
|
+
n.afterAmount !== 0 ? (i = n.afterAmount, r.showCreditLineAfterAmount = !0) : (i = r.lastOrdinaryAfterAmount, r.showCreditLineAfterAmount = !1);
|
|
1166
|
+
break;
|
|
1167
|
+
default:
|
|
1168
|
+
i = n.afterAmount;
|
|
1169
|
+
}
|
|
1170
|
+
return i === null ? e : i;
|
|
1171
|
+
}, Le = () => {
|
|
1172
|
+
switch (M) {
|
|
1173
|
+
case "totalCashAmount":
|
|
1174
|
+
let e = 0;
|
|
1175
|
+
for (const n of ["Real", "Bonus"])
|
|
1176
|
+
for (const i of h[n])
|
|
1177
|
+
e += Math.max(i.amount, 0);
|
|
1178
|
+
a(3, h.Total[0].amount = e, h);
|
|
1179
|
+
break;
|
|
1180
|
+
case "totalRealAmount":
|
|
1181
|
+
if (!pe)
|
|
1182
|
+
return;
|
|
1183
|
+
let r = 0;
|
|
1184
|
+
for (const n of h.Real)
|
|
1185
|
+
r += n.amount;
|
|
1186
|
+
a(3, h.Total[0].amount = r, h);
|
|
1187
|
+
}
|
|
1188
|
+
}, je = (e) => {
|
|
1189
|
+
const r = $(e.data);
|
|
1190
|
+
if (!r) {
|
|
1191
|
+
ge();
|
|
1192
|
+
return;
|
|
1193
|
+
}
|
|
1194
|
+
if (He(r == null ? void 0 : r.type) || r.type !== "BALANCE_UPDATE_V2")
|
|
1195
|
+
return;
|
|
1196
|
+
const n = r.body.balanceChange;
|
|
1197
|
+
for (const [i, s] of Object.entries(n))
|
|
1198
|
+
if (M === "totalRealAmount" && i === "Real" && !pe && a(3, h.Total[0].amount = Be(h.Total[0].amount, Y, s), h), !!h[i])
|
|
1199
|
+
for (const f of h[i]) {
|
|
1200
|
+
if (!pe) {
|
|
1201
|
+
f.amount = i === "Real" ? Be(f.amount, Y, s) : s.afterAmount;
|
|
1202
|
+
continue;
|
|
1203
|
+
}
|
|
1204
|
+
s.productType === f.productType && (f.amount = i === "Real" ? Be(f.amount, Y[f.productType], s) : s.afterAmount);
|
|
1205
|
+
}
|
|
1206
|
+
Le();
|
|
1207
|
+
}, Me = () => {
|
|
1208
|
+
a(2, J = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
1209
|
+
}, He = (e) => e === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, _e = () => {
|
|
1210
|
+
re.includes(M) || (console.error(`Unsupported value ('${M}') for totalcalculationmode parameter. Only the following values are supported ${re}. Using default value ('${re[0]}').`), a(8, M = re[0]));
|
|
1211
|
+
}, xe = (e) => {
|
|
1212
|
+
const r = Q.split(",").map((n) => n.trim());
|
|
1213
|
+
return !e.productType || r.includes(e.productType) ? "" : m(e.productType);
|
|
1214
|
+
}, me = () => {
|
|
1215
|
+
switch (Ft(p), _e(), D) {
|
|
1216
|
+
case "gmcore":
|
|
1217
|
+
he();
|
|
1218
|
+
break;
|
|
1219
|
+
case "gm16":
|
|
1220
|
+
ye();
|
|
1221
|
+
break;
|
|
1222
|
+
default:
|
|
1223
|
+
throw Error(`Invalid apiversion attribute: ${D}`);
|
|
1224
|
+
}
|
|
1225
|
+
}, G = (e) => e.data && e.data.type === "LogoutSuccessfull" && oe.close();
|
|
1226
|
+
Ct(() => (window.addEventListener("message", G, !1), () => {
|
|
1227
|
+
window.removeEventListener("message", G), oe && oe.close();
|
|
1228
|
+
}));
|
|
1229
|
+
const ze = () => a(2, J = !0), Ue = () => a(2, J = !1), Pe = () => Me(), Fe = () => a(2, J = !1);
|
|
1230
|
+
function o(e) {
|
|
1231
|
+
At[e ? "unshift" : "push"](() => {
|
|
1232
|
+
F = e, a(0, F);
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
return c.$$set = (e) => {
|
|
1236
|
+
"userid" in e && a(9, u = e.userid), "session" in e && a(10, d = e.session), "endpoint" in e && a(11, v = e.endpoint), "lang" in e && a(12, p = e.lang), "mbsource" in e && a(13, w = e.mbsource), "clientstyling" in e && a(14, B = e.clientstyling), "clientstylingurl" in e && a(15, S = e.clientstylingurl), "translationurl" in e && a(16, C = e.translationurl), "gmversion" in e && a(17, D = e.gmversion), "displaybalanceoption" in e && a(18, R = e.displaybalanceoption), "totalcalculationmode" in e && a(8, M = e.totalcalculationmode), "hideproducttype" in e && a(19, Q = e.hideproducttype), "currencylocale" in e && a(20, ne = e.currencylocale), "currencydisplay" in e && a(21, ae = e.currencydisplay), "maximumfractiondigits" in e && a(22, V = e.maximumfractiondigits), "minimumfractiondigits" in e && a(23, T = e.minimumfractiondigits), "customdisplayformat" in e && a(24, _ = e.customdisplayformat);
|
|
1237
|
+
}, c.$$.update = () => {
|
|
1238
|
+
c.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
1239
|
+
400896 && v && u && d && p && D && R && me(), c.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
1240
|
+
134656 && v && u && d && D && ge(), c.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1241
|
+
16385 && B && F && Rt(F, B), c.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1242
|
+
32769 && S && F && Et(F, S), c.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
1243
|
+
8193 && F && Dt(F, `${w}.Style`), c.$$.dirty[0] & /*translationurl*/
|
|
1244
|
+
65536 && C && De();
|
|
1245
|
+
}, [
|
|
1246
|
+
F,
|
|
1247
|
+
E,
|
|
1248
|
+
J,
|
|
1249
|
+
h,
|
|
1250
|
+
m,
|
|
1251
|
+
Ce,
|
|
1252
|
+
Me,
|
|
1253
|
+
xe,
|
|
1254
|
+
M,
|
|
1255
|
+
u,
|
|
1256
|
+
d,
|
|
1257
|
+
v,
|
|
1258
|
+
p,
|
|
1259
|
+
w,
|
|
1260
|
+
B,
|
|
1261
|
+
S,
|
|
1262
|
+
C,
|
|
1263
|
+
D,
|
|
1264
|
+
R,
|
|
1265
|
+
Q,
|
|
1266
|
+
ne,
|
|
1267
|
+
ae,
|
|
1268
|
+
V,
|
|
1269
|
+
T,
|
|
1270
|
+
_,
|
|
1271
|
+
ze,
|
|
1272
|
+
Ue,
|
|
1273
|
+
Pe,
|
|
1274
|
+
Fe,
|
|
1275
|
+
o
|
|
1276
|
+
];
|
|
1277
|
+
}
|
|
1278
|
+
class zt extends wt {
|
|
1279
|
+
constructor(t) {
|
|
1280
|
+
super(), bt(
|
|
1281
|
+
this,
|
|
1282
|
+
t,
|
|
1283
|
+
Ht,
|
|
1284
|
+
jt,
|
|
1285
|
+
Bt,
|
|
1286
|
+
{
|
|
1287
|
+
userid: 9,
|
|
1288
|
+
session: 10,
|
|
1289
|
+
endpoint: 11,
|
|
1290
|
+
lang: 12,
|
|
1291
|
+
mbsource: 13,
|
|
1292
|
+
clientstyling: 14,
|
|
1293
|
+
clientstylingurl: 15,
|
|
1294
|
+
translationurl: 16,
|
|
1295
|
+
gmversion: 17,
|
|
1296
|
+
displaybalanceoption: 18,
|
|
1297
|
+
totalcalculationmode: 8,
|
|
1298
|
+
hideproducttype: 19,
|
|
1299
|
+
currencylocale: 20,
|
|
1300
|
+
currencydisplay: 21,
|
|
1301
|
+
maximumfractiondigits: 22,
|
|
1302
|
+
minimumfractiondigits: 23,
|
|
1303
|
+
customdisplayformat: 24
|
|
1304
|
+
},
|
|
1305
|
+
Ot,
|
|
1306
|
+
[-1, -1]
|
|
1307
|
+
);
|
|
1308
|
+
}
|
|
1309
|
+
get userid() {
|
|
1310
|
+
return this.$$.ctx[9];
|
|
1311
|
+
}
|
|
1312
|
+
set userid(t) {
|
|
1313
|
+
this.$$set({ userid: t }), j();
|
|
1314
|
+
}
|
|
1315
|
+
get session() {
|
|
1316
|
+
return this.$$.ctx[10];
|
|
1317
|
+
}
|
|
1318
|
+
set session(t) {
|
|
1319
|
+
this.$$set({ session: t }), j();
|
|
1320
|
+
}
|
|
1321
|
+
get endpoint() {
|
|
1322
|
+
return this.$$.ctx[11];
|
|
1323
|
+
}
|
|
1324
|
+
set endpoint(t) {
|
|
1325
|
+
this.$$set({ endpoint: t }), j();
|
|
1326
|
+
}
|
|
1327
|
+
get lang() {
|
|
1328
|
+
return this.$$.ctx[12];
|
|
1329
|
+
}
|
|
1330
|
+
set lang(t) {
|
|
1331
|
+
this.$$set({ lang: t }), j();
|
|
1332
|
+
}
|
|
1333
|
+
get mbsource() {
|
|
1334
|
+
return this.$$.ctx[13];
|
|
1335
|
+
}
|
|
1336
|
+
set mbsource(t) {
|
|
1337
|
+
this.$$set({ mbsource: t }), j();
|
|
1338
|
+
}
|
|
1339
|
+
get clientstyling() {
|
|
1340
|
+
return this.$$.ctx[14];
|
|
1341
|
+
}
|
|
1342
|
+
set clientstyling(t) {
|
|
1343
|
+
this.$$set({ clientstyling: t }), j();
|
|
1344
|
+
}
|
|
1345
|
+
get clientstylingurl() {
|
|
1346
|
+
return this.$$.ctx[15];
|
|
1347
|
+
}
|
|
1348
|
+
set clientstylingurl(t) {
|
|
1349
|
+
this.$$set({ clientstylingurl: t }), j();
|
|
1350
|
+
}
|
|
1351
|
+
get translationurl() {
|
|
1352
|
+
return this.$$.ctx[16];
|
|
1353
|
+
}
|
|
1354
|
+
set translationurl(t) {
|
|
1355
|
+
this.$$set({ translationurl: t }), j();
|
|
1356
|
+
}
|
|
1357
|
+
get gmversion() {
|
|
1358
|
+
return this.$$.ctx[17];
|
|
1359
|
+
}
|
|
1360
|
+
set gmversion(t) {
|
|
1361
|
+
this.$$set({ gmversion: t }), j();
|
|
1362
|
+
}
|
|
1363
|
+
get displaybalanceoption() {
|
|
1364
|
+
return this.$$.ctx[18];
|
|
1365
|
+
}
|
|
1366
|
+
set displaybalanceoption(t) {
|
|
1367
|
+
this.$$set({ displaybalanceoption: t }), j();
|
|
1368
|
+
}
|
|
1369
|
+
get totalcalculationmode() {
|
|
1370
|
+
return this.$$.ctx[8];
|
|
1371
|
+
}
|
|
1372
|
+
set totalcalculationmode(t) {
|
|
1373
|
+
this.$$set({ totalcalculationmode: t }), j();
|
|
1374
|
+
}
|
|
1375
|
+
get hideproducttype() {
|
|
1376
|
+
return this.$$.ctx[19];
|
|
1377
|
+
}
|
|
1378
|
+
set hideproducttype(t) {
|
|
1379
|
+
this.$$set({ hideproducttype: t }), j();
|
|
1380
|
+
}
|
|
1381
|
+
get currencylocale() {
|
|
1382
|
+
return this.$$.ctx[20];
|
|
1383
|
+
}
|
|
1384
|
+
set currencylocale(t) {
|
|
1385
|
+
this.$$set({ currencylocale: t }), j();
|
|
1386
|
+
}
|
|
1387
|
+
get currencydisplay() {
|
|
1388
|
+
return this.$$.ctx[21];
|
|
1389
|
+
}
|
|
1390
|
+
set currencydisplay(t) {
|
|
1391
|
+
this.$$set({ currencydisplay: t }), j();
|
|
1392
|
+
}
|
|
1393
|
+
get maximumfractiondigits() {
|
|
1394
|
+
return this.$$.ctx[22];
|
|
1395
|
+
}
|
|
1396
|
+
set maximumfractiondigits(t) {
|
|
1397
|
+
this.$$set({ maximumfractiondigits: t }), j();
|
|
1398
|
+
}
|
|
1399
|
+
get minimumfractiondigits() {
|
|
1400
|
+
return this.$$.ctx[23];
|
|
1401
|
+
}
|
|
1402
|
+
set minimumfractiondigits(t) {
|
|
1403
|
+
this.$$set({ minimumfractiondigits: t }), j();
|
|
1404
|
+
}
|
|
1405
|
+
get customdisplayformat() {
|
|
1406
|
+
return this.$$.ctx[24];
|
|
1407
|
+
}
|
|
1408
|
+
set customdisplayformat(t) {
|
|
1409
|
+
this.$$set({ customdisplayformat: t }), j();
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
Lt(zt, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
1413
|
+
export {
|
|
1414
|
+
zt as default
|
|
1415
|
+
};
|