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