@everymatrix/casino-header-controller-nd 1.90.26 → 1.90.28

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