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