@everymatrix/casino-header-controller-nd 1.89.0 → 1.89.2

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 (28) hide show
  1. package/components/{CasinoHamburgerMenuNd-C20WARcb.js → CasinoHamburgerMenuNd-C3GWQXmv.js} +1 -1
  2. package/components/{CasinoHamburgerMenuNd-B4QZvkD8.js → CasinoHamburgerMenuNd-Ctin9D1n.js} +1 -1
  3. package/components/{CasinoHamburgerMenuNd-v83ac_-t.cjs → CasinoHamburgerMenuNd-Dy_ZPbVP.cjs} +1 -1
  4. package/components/{CasinoHeaderControllerNd-KJVxZm0e.js → CasinoHeaderControllerNd-BNDsJ0W8.js} +1138 -1120
  5. package/components/{CasinoHeaderControllerNd-jRVeL-3S.cjs → CasinoHeaderControllerNd-BWivTr9J.cjs} +4 -4
  6. package/components/{CasinoHeaderControllerNd-C3_zgH0i.js → CasinoHeaderControllerNd-DwjT7tNR.js} +1110 -1092
  7. package/components/PlayerAccountBalanceModalNd-BcX135Ha.js +1653 -0
  8. package/components/PlayerAccountBalanceModalNd-DpqQtYYT.js +1624 -0
  9. package/components/PlayerAccountBalanceModalNd-yZ9YD5yq.cjs +7 -0
  10. package/components/{PlayerDeposit-D_tZ1EkN.js → PlayerDeposit-Bh1FyHgv.js} +1 -1
  11. package/components/{PlayerDeposit-L-iPr4Nc.cjs → PlayerDeposit-CYF8aGub.cjs} +1 -1
  12. package/components/{PlayerDeposit-C9ll9_Aq.js → PlayerDeposit-UutKx0XP.js} +1 -1
  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-B6tEilhI.js → casino-hamburger-menu-nd-3hvipqDm.js} +1 -1
  17. package/lazy/{casino-hamburger-menu-nd-YtFBUxZT.cjs → casino-hamburger-menu-nd-CmmwDN64.cjs} +1 -1
  18. package/lazy/{casino-hamburger-menu-nd-CDbuBSby.js → casino-hamburger-menu-nd-D4isZY0K.js} +1 -1
  19. package/lazy/{player-account-balance-modal-nd-DpMw9PYg.js → player-account-balance-modal-nd-5D0P7FGO.js} +1 -1
  20. package/lazy/{player-account-balance-modal-nd-DPKBYKS8.js → player-account-balance-modal-nd-Ci_Xhu6o.js} +1 -1
  21. package/lazy/{player-account-balance-modal-nd-CIfrSVe0.cjs → player-account-balance-modal-nd-D5Yd9Mmm.cjs} +1 -1
  22. package/lazy/{player-deposit-C9lyaeXY.js → player-deposit-CDrc20C1.js} +1 -1
  23. package/lazy/{player-deposit-CLHmEQX3.js → player-deposit-raELRvCH.js} +1 -1
  24. package/lazy/{player-deposit-DxKWGmMq.cjs → player-deposit-vTgh6aYY.cjs} +1 -1
  25. package/package.json +1 -1
  26. package/components/PlayerAccountBalanceModalNd-BiI31wNU.js +0 -1629
  27. package/components/PlayerAccountBalanceModalNd-DMdVVQbM.cjs +0 -7
  28. package/components/PlayerAccountBalanceModalNd-Dn8PgMqD.js +0 -1600
@@ -0,0 +1,1653 @@
1
+ var ht = Object.defineProperty, mt = Object.defineProperties;
2
+ var gt = Object.getOwnPropertyDescriptors;
3
+ var Je = 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 (Je)
9
+ for (var t of Je(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((h, g) => {
14
+ var c = (d) => {
15
+ try {
16
+ v(t.next(d));
17
+ } catch (B) {
18
+ g(B);
19
+ }
20
+ }, l = (d) => {
21
+ try {
22
+ v(t.throw(d));
23
+ } catch (B) {
24
+ g(B);
25
+ }
26
+ }, v = (d) => d.done ? h(d.value) : Promise.resolve(d.value).then(c, l);
27
+ v((t = t.apply(o, e)).next());
28
+ });
29
+ import { a as Bt, $ as bt, U as wt, S as Tt, i as St, s as At, f as X, b as Ct, z as Ye, d as ge, q as R, h as ye, r as x, j as V, v as me, k as _t, o as Rt, l as Lt, u as Fe, y as xt, A as Ce, B as _e, M as nt, H as Et, m as Ge, n as pt, J as kt, O as Mt, P as Dt, Q as Ot, R as Nt, T as Ft } from "./CasinoHeaderControllerNd-BNDsJ0W8.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 Qe = { 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 h = t.setTimeout, g = t.clearTimeout, c = t.XMLHttpRequest, l = t.XDomainRequest, v = t.ActiveXObject, d = t.EventSource, B = t.document, F = t.Promise, q = t.fetch, U = t.Response, A = t.TextDecoder, w = t.TextEncoder, P = 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)), c == null && v != null && (c = function() {
284
+ return new v("Microsoft.XMLHTTP");
285
+ }), Object.create == null && (Object.create = function(n) {
286
+ function i() {
287
+ }
288
+ return i.prototype = n, new i();
289
+ }), Date.now || (Date.now = function() {
290
+ return (/* @__PURE__ */ new Date()).getTime();
291
+ }), P == null) {
292
+ var be = q;
293
+ q = function(n, i) {
294
+ var f = i.signal;
295
+ return be(n, { headers: i.headers, credentials: i.credentials, cache: i.cache }).then(function(s) {
296
+ var T = s.body.getReader();
297
+ return f._reader = T, f._aborted && f._reader.cancel(), {
298
+ status: s.status,
299
+ statusText: s.statusText,
300
+ headers: s.headers,
301
+ body: {
302
+ getReader: function() {
303
+ return T;
304
+ }
305
+ }
306
+ };
307
+ });
308
+ }, P = 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 we() {
318
+ this.bitsNeeded = 0, this.codePoint = 0;
319
+ }
320
+ we.prototype.decode = function(n) {
321
+ function i(D, I, S) {
322
+ if (S === 1)
323
+ return D >= 128 >> I && D << I <= 2047;
324
+ if (S === 2)
325
+ return D >= 2048 >> I && D << I <= 55295 || D >= 57344 >> I && D << I <= 65535;
326
+ if (S === 3)
327
+ return D >= 65536 >> I && D << I <= 1114111;
328
+ throw new Error();
329
+ }
330
+ function f(D, I) {
331
+ if (D === 6 * 1)
332
+ return I >> 6 > 15 ? 3 : I > 31 ? 2 : 1;
333
+ if (D === 6 * 2)
334
+ return I > 15 ? 3 : 2;
335
+ if (D === 6 * 3)
336
+ return 3;
337
+ throw new Error();
338
+ }
339
+ for (var s = 65533, T = "", y = this.bitsNeeded, C = this.codePoint, j = 0; j < n.length; j += 1) {
340
+ var _ = n[j];
341
+ y !== 0 && (_ < 128 || _ > 191 || !i(C << 6 | _ & 63, y - 6, f(y, C))) && (y = 0, C = s, T += String.fromCharCode(C)), y === 0 ? (_ >= 0 && _ <= 127 ? (y = 0, C = _) : _ >= 192 && _ <= 223 ? (y = 6 * 1, C = _ & 31) : _ >= 224 && _ <= 239 ? (y = 6 * 2, C = _ & 15) : _ >= 240 && _ <= 247 ? (y = 6 * 3, C = _ & 7) : (y = 0, C = s), y !== 0 && !i(C, y, f(y, C)) && (y = 0, C = s)) : (y -= 6, C = C << 6 | _ & 63), y === 0 && (C <= 65535 ? T += String.fromCharCode(C) : (T += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), T += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
342
+ }
343
+ return this.bitsNeeded = y, this.codePoint = C, T;
344
+ };
345
+ var Re = function() {
346
+ try {
347
+ return new A().decode(new w().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 || w == null || !Re()) && (A = we);
354
+ var K = function() {
355
+ };
356
+ function Z(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
+ Z.prototype.open = function(n, i) {
360
+ this._abort(!0);
361
+ var f = this, s = this._xhr, T = 1, y = 0;
362
+ this._abort = function(S) {
363
+ f._sendTimeout !== 0 && (g(f._sendTimeout), f._sendTimeout = 0), (T === 1 || T === 2 || T === 3) && (T = 4, s.onload = K, s.onerror = K, s.onabort = K, s.onprogress = K, s.onreadystatechange = K, s.abort(), y !== 0 && (g(y), y = 0), S || (f.readyState = 4, f.onabort(null), f.onreadystatechange())), T = 0;
364
+ };
365
+ var C = function() {
366
+ if (T === 1) {
367
+ var S = 0, z = "", pe = void 0;
368
+ if ("contentType" in s)
369
+ S = 200, z = "OK", pe = s.contentType;
370
+ else
371
+ try {
372
+ S = s.status, z = s.statusText, pe = s.getResponseHeader("Content-Type");
373
+ } catch (ke) {
374
+ S = 0, z = "", pe = void 0;
375
+ }
376
+ S !== 0 && (T = 2, f.readyState = 2, f.status = S, f.statusText = z, f._contentType = pe, f.onreadystatechange());
377
+ }
378
+ }, j = function() {
379
+ if (C(), T === 2 || T === 3) {
380
+ T = 3;
381
+ var S = "";
382
+ try {
383
+ S = s.responseText;
384
+ } catch (z) {
385
+ }
386
+ f.readyState = 3, f.responseText = S, f.onprogress();
387
+ }
388
+ }, _ = function(S, z) {
389
+ if ((z == null || z.preventDefault == null) && (z = {
390
+ preventDefault: K
391
+ }), j(), T === 1 || T === 2 || T === 3) {
392
+ if (T = 4, y !== 0 && (g(y), y = 0), f.readyState = 4, S === "load")
393
+ f.onload(z);
394
+ else if (S === "error")
395
+ f.onerror(z);
396
+ else if (S === "abort")
397
+ f.onabort(z);
398
+ else
399
+ throw new TypeError();
400
+ f.onreadystatechange();
401
+ }
402
+ }, D = function(S) {
403
+ s != null && (s.readyState === 4 ? (!("onload" in s) || !("onerror" in s) || !("onabort" in s)) && _(s.responseText === "" ? "error" : "load", S) : s.readyState === 3 ? "onprogress" in s || j() : s.readyState === 2 && C());
404
+ }, I = function() {
405
+ y = h(function() {
406
+ I();
407
+ }, 500), s.readyState === 3 && j();
408
+ };
409
+ "onload" in s && (s.onload = function(S) {
410
+ _("load", S);
411
+ }), "onerror" in s && (s.onerror = function(S) {
412
+ _("error", S);
413
+ }), "onabort" in s && (s.onabort = function(S) {
414
+ _("abort", S);
415
+ }), "onprogress" in s && (s.onprogress = j), "onreadystatechange" in s && (s.onreadystatechange = function(S) {
416
+ D(S);
417
+ }), ("contentType" in s || !("ontimeout" in c.prototype)) && (i += (i.indexOf("?") === -1 ? "?" : "&") + "padding=true"), s.open(n, i, !0), "readyState" in s && (y = h(function() {
418
+ I();
419
+ }, 0));
420
+ }, Z.prototype.abort = function() {
421
+ this._abort(!1);
422
+ }, Z.prototype.getResponseHeader = function(n) {
423
+ return this._contentType;
424
+ }, Z.prototype.setRequestHeader = function(n, i) {
425
+ var f = this._xhr;
426
+ "setRequestHeader" in f && f.setRequestHeader(n, i);
427
+ }, Z.prototype.getAllResponseHeaders = function() {
428
+ return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
429
+ }, Z.prototype.send = function() {
430
+ if ((!("ontimeout" in c.prototype) || !("sendAsBinary" in c.prototype) && !("mozAnon" in c.prototype)) && B != null && B.readyState != null && B.readyState !== "complete") {
431
+ var n = this;
432
+ n._sendTimeout = h(function() {
433
+ n._sendTimeout = 0, n.send();
434
+ }, 4);
435
+ return;
436
+ }
437
+ var i = this._xhr;
438
+ "withCredentials" in i && (i.withCredentials = this.withCredentials);
439
+ try {
440
+ i.send(void 0);
441
+ } catch (f) {
442
+ throw f;
443
+ }
444
+ };
445
+ function fe(n) {
446
+ return n.replace(/[A-Z]/g, function(i) {
447
+ return String.fromCharCode(i.charCodeAt(0) + 32);
448
+ });
449
+ }
450
+ function te(n) {
451
+ for (var i = /* @__PURE__ */ Object.create(null), f = n.split(`\r
452
+ `), s = 0; s < f.length; s += 1) {
453
+ var T = f[s], y = T.split(": "), C = y.shift(), j = y.join(": ");
454
+ i[fe(C)] = j;
455
+ }
456
+ this._map = i;
457
+ }
458
+ te.prototype.get = function(n) {
459
+ return this._map[fe(n)];
460
+ }, c != null && c.HEADERS_RECEIVED == null && (c.HEADERS_RECEIVED = 2);
461
+ function ce() {
462
+ }
463
+ ce.prototype.open = function(n, i, f, s, T, y, C) {
464
+ n.open("GET", T);
465
+ var j = 0;
466
+ n.onprogress = function() {
467
+ var D = n.responseText, I = D.slice(j);
468
+ j += I.length, f(I);
469
+ }, n.onerror = function(D) {
470
+ D.preventDefault(), s(new Error("NetworkError"));
471
+ }, n.onload = function() {
472
+ s(null);
473
+ }, n.onabort = function() {
474
+ s(null);
475
+ }, n.onreadystatechange = function() {
476
+ if (n.readyState === c.HEADERS_RECEIVED) {
477
+ var D = n.status, I = n.statusText, S = n.getResponseHeader("Content-Type"), z = n.getAllResponseHeaders();
478
+ i(D, I, S, new te(z));
479
+ }
480
+ }, n.withCredentials = y;
481
+ for (var _ in C)
482
+ Object.prototype.hasOwnProperty.call(C, _) && n.setRequestHeader(_, C[_]);
483
+ return n.send(), n;
484
+ };
485
+ function ve(n) {
486
+ this._headers = n;
487
+ }
488
+ ve.prototype.get = function(n) {
489
+ return this._headers.get(n);
490
+ };
491
+ function ae() {
492
+ }
493
+ ae.prototype.open = function(n, i, f, s, T, y, C) {
494
+ var j = null, _ = new P(), D = _.signal, I = new A();
495
+ return q(T, {
496
+ headers: C,
497
+ credentials: y ? "include" : "same-origin",
498
+ signal: D,
499
+ cache: "no-store"
500
+ }).then(function(S) {
501
+ return j = S.body.getReader(), i(S.status, S.statusText, S.headers.get("Content-Type"), new ve(S.headers)), new F(function(z, pe) {
502
+ var ke = function() {
503
+ j.read().then(function(a) {
504
+ if (a.done)
505
+ z(void 0);
506
+ else {
507
+ var p = I.decode(a.value, { stream: !0 });
508
+ f(p), ke();
509
+ }
510
+ }).catch(function(a) {
511
+ pe(a);
512
+ });
513
+ };
514
+ ke();
515
+ });
516
+ }).catch(function(S) {
517
+ if (S.name !== "AbortError")
518
+ return S;
519
+ }).then(function(S) {
520
+ s(S);
521
+ }), {
522
+ abort: function() {
523
+ j != null && j.cancel(), _.abort();
524
+ }
525
+ };
526
+ };
527
+ function M() {
528
+ this._listeners = /* @__PURE__ */ Object.create(null);
529
+ }
530
+ function W(n) {
531
+ h(function() {
532
+ throw n;
533
+ }, 0);
534
+ }
535
+ M.prototype.dispatchEvent = function(n) {
536
+ n.target = this;
537
+ var i = this._listeners[n.type];
538
+ if (i != null)
539
+ for (var f = i.length, s = 0; s < f; s += 1) {
540
+ var T = i[s];
541
+ try {
542
+ typeof T.handleEvent == "function" ? T.handleEvent(n) : T.call(this, n);
543
+ } catch (y) {
544
+ W(y);
545
+ }
546
+ }
547
+ }, M.prototype.addEventListener = function(n, i) {
548
+ n = String(n);
549
+ var f = this._listeners, s = f[n];
550
+ s == null && (s = [], f[n] = s);
551
+ for (var T = !1, y = 0; y < s.length; y += 1)
552
+ s[y] === i && (T = !0);
553
+ T || s.push(i);
554
+ }, M.prototype.removeEventListener = function(n, i) {
555
+ n = String(n);
556
+ var f = this._listeners, s = f[n];
557
+ if (s != null) {
558
+ for (var T = [], y = 0; y < s.length; y += 1)
559
+ s[y] !== i && T.push(s[y]);
560
+ T.length === 0 ? delete f[n] : f[n] = T;
561
+ }
562
+ };
563
+ function O(n) {
564
+ this.type = n, this.target = void 0;
565
+ }
566
+ function L(n, i) {
567
+ O.call(this, n), this.data = i.data, this.lastEventId = i.lastEventId;
568
+ }
569
+ L.prototype = Object.create(O.prototype);
570
+ function G(n, i) {
571
+ O.call(this, n), this.status = i.status, this.statusText = i.statusText, this.headers = i.headers;
572
+ }
573
+ G.prototype = Object.create(O.prototype);
574
+ function H(n, i) {
575
+ O.call(this, n), this.error = i.error;
576
+ }
577
+ H.prototype = Object.create(O.prototype);
578
+ var Te = -1, Be = 0, oe = 1, ue = 2, de = -1, ne = 0, Me = 1, r = 2, Ee = 3, Xe = /^text\/event\-stream(;.*)?$/i, Le = 1e3, Ie = 18e6, je = function(n, i) {
579
+ var f = n == null ? i : parseInt(n, 10);
580
+ return f !== f && (f = i), ze(f);
581
+ }, ze = function(n) {
582
+ return Math.min(Math.max(n, Le), Ie);
583
+ }, xe = function(n, i, f) {
584
+ try {
585
+ typeof i == "function" && i.call(n, f);
586
+ } catch (s) {
587
+ W(s);
588
+ }
589
+ };
590
+ function $(n, i) {
591
+ M.call(this), i = i || {}, 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, He(this, n, i);
592
+ }
593
+ function Ve() {
594
+ return c != null && "withCredentials" in c.prototype || l == null ? new c() : new l();
595
+ }
596
+ var qe = q != null && U != null && "body" in U.prototype;
597
+ function He(n, i, f) {
598
+ i = String(i);
599
+ var s = !!f.withCredentials, T = f.lastEventIdQueryParameterName || "lastEventId", y = ze(1e3), C = je(f.heartbeatTimeout, 45e3), j = "", _ = y, D = !1, I = 0, S = f.headers || {}, z = f.Transport, pe = qe && z == null ? void 0 : new Z(z != null ? new z() : Ve()), ke = z != null && typeof z != "string" ? new z() : pe == null ? new ae() : new ce(), a = void 0, p = 0, m = Te, b = "", N = "", E = "", u = "", k = ne, ie = 0, re = 0, Ke = function(Q, Y, se, le) {
600
+ if (m === Be)
601
+ if (Q === 200 && se != null && Xe.test(se)) {
602
+ m = oe, D = Date.now(), _ = y, n.readyState = oe;
603
+ var ee = new G("open", {
604
+ status: Q,
605
+ statusText: Y,
606
+ headers: le
607
+ });
608
+ n.dispatchEvent(ee), xe(n, n.onopen, ee);
609
+ } else {
610
+ var J = "";
611
+ Q !== 200 ? (Y && (Y = Y.replace(/\s+/g, " ")), J = "EventSource's response has a status " + Q + " " + Y + " that is not 200. Aborting the connection.") : J = "EventSource's response has a Content-Type specifying an unsupported type: " + (se == null ? "-" : se.replace(/\s+/g, " ")) + ". Aborting the connection.", Oe();
612
+ var ee = new G("error", {
613
+ status: Q,
614
+ statusText: Y,
615
+ headers: le
616
+ });
617
+ n.dispatchEvent(ee), xe(n, n.onerror, ee), console.error(J);
618
+ }
619
+ }, De = function(Q) {
620
+ if (m === oe) {
621
+ for (var Y = -1, se = 0; se < Q.length; se += 1) {
622
+ var le = Q.charCodeAt(se);
623
+ (le === 10 || le === 13) && (Y = se);
624
+ }
625
+ var ee = (Y !== -1 ? u : "") + Q.slice(0, Y + 1);
626
+ u = (Y === -1 ? u : "") + Q.slice(Y + 1), Q !== "" && (D = Date.now(), I += Q.length);
627
+ for (var J = 0; J < ee.length; J += 1) {
628
+ var le = ee.charCodeAt(J);
629
+ if (k === de && le === 10)
630
+ k = ne;
631
+ else if (k === de && (k = ne), le === 13 || le === 10) {
632
+ if (k !== ne) {
633
+ k === Me && (re = J + 1);
634
+ var Se = ee.slice(ie, re - 1), Ae = ee.slice(re + (re < J && ee.charCodeAt(re) === 32 ? 1 : 0), J);
635
+ Se === "data" ? (b += `
636
+ `, b += Ae) : Se === "id" ? N = Ae : Se === "event" ? E = Ae : Se === "retry" ? (y = je(Ae, y), _ = y) : Se === "heartbeatTimeout" && (C = je(Ae, C), p !== 0 && (g(p), p = h(function() {
637
+ he();
638
+ }, C)));
639
+ }
640
+ if (k === ne) {
641
+ if (b !== "") {
642
+ j = N, E === "" && (E = "message");
643
+ var Ne = new L(E, {
644
+ data: b.slice(1),
645
+ lastEventId: N
646
+ });
647
+ if (n.dispatchEvent(Ne), E === "open" ? xe(n, n.onopen, Ne) : E === "message" ? xe(n, n.onmessage, Ne) : E === "error" && xe(n, n.onerror, Ne), m === ue)
648
+ return;
649
+ }
650
+ b = "", E = "";
651
+ }
652
+ k = le === 13 ? de : ne;
653
+ } else
654
+ k === ne && (ie = J, k = Me), k === Me ? le === 58 && (re = J + 1, k = r) : k === r && (k = Ee);
655
+ }
656
+ }
657
+ }, Pe = function(Q) {
658
+ if (m === oe || m === Be) {
659
+ m = Te, p !== 0 && (g(p), p = 0), p = h(function() {
660
+ he();
661
+ }, _), _ = ze(Math.min(y * 16, _ * 2)), n.readyState = Be;
662
+ var Y = new H("error", { error: Q });
663
+ n.dispatchEvent(Y), xe(n, n.onerror, Y), Q != null && console.error(Q);
664
+ }
665
+ }, Oe = function() {
666
+ m = ue, a != null && (a.abort(), a = void 0), p !== 0 && (g(p), p = 0), n.readyState = ue;
667
+ }, he = function() {
668
+ if (p = 0, m !== Te) {
669
+ if (!D && a != null)
670
+ Pe(new Error("No activity within " + C + " milliseconds. " + (m === Be ? "No response received." : I + " chars received.") + " Reconnecting.")), a != null && (a.abort(), a = void 0);
671
+ else {
672
+ var Q = Math.max((D || Date.now()) + C - Date.now(), 1);
673
+ D = !1, p = h(function() {
674
+ he();
675
+ }, Q);
676
+ }
677
+ return;
678
+ }
679
+ D = !1, I = 0, p = h(function() {
680
+ he();
681
+ }, C), m = Be, b = "", E = "", N = j, u = "", ie = 0, re = 0, k = ne;
682
+ var Y = i;
683
+ if (i.slice(0, 5) !== "data:" && i.slice(0, 5) !== "blob:" && j !== "") {
684
+ var se = i.indexOf("?");
685
+ Y = se === -1 ? i : i.slice(0, se + 1) + i.slice(se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ae, Ne) {
686
+ return Ne === T ? "" : Ae;
687
+ }), Y += (i.indexOf("?") === -1 ? "?" : "&") + T + "=" + encodeURIComponent(j);
688
+ }
689
+ var le = n.withCredentials, ee = {};
690
+ ee.Accept = "text/event-stream";
691
+ var J = n.headers;
692
+ if (J != null)
693
+ for (var Se in J)
694
+ Object.prototype.hasOwnProperty.call(J, Se) && (ee[Se] = J[Se]);
695
+ try {
696
+ a = ke.open(pe, Ke, De, Pe, Y, le, ee);
697
+ } catch (Ae) {
698
+ throw Oe(), Ae;
699
+ }
700
+ };
701
+ n.url = i, n.readyState = Be, n.withCredentials = s, n.headers = S, n._close = Oe, he();
702
+ }
703
+ $.prototype = Object.create(M.prototype), $.prototype.CONNECTING = Be, $.prototype.OPEN = oe, $.prototype.CLOSED = ue, $.prototype.close = function() {
704
+ this._close();
705
+ }, $.CONNECTING = Be, $.OPEN = oe, $.CLOSED = ue, $.prototype.withCredentials = void 0;
706
+ var Ue = d;
707
+ c != null && (d == null || !("withCredentials" in d.prototype)) && (Ue = $), function(n) {
708
+ {
709
+ var i = n(e);
710
+ i !== void 0 && (o.exports = i);
711
+ }
712
+ }(function(n) {
713
+ n.EventSourcePolyfill = $, n.NativeEventSource = d, n.EventSource = Ue;
714
+ });
715
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : wt : globalThis);
716
+ })(Qe, Qe.exports);
717
+ var jt = Qe.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 h = o.slice();
723
+ return h[64] = e[t], h;
724
+ }
725
+ function rt(o, e, t) {
726
+ const h = o.slice();
727
+ return h[67] = e[t], h;
728
+ }
729
+ function Ht(o) {
730
+ let e, t, h, g, c, l, v, d, B, F, q, U, A = (
731
+ /*showBalance*/
732
+ o[6] && st(o)
733
+ );
734
+ return {
735
+ c() {
736
+ e = V("button"), t = V("p"), h = _e(
737
+ /*displayBalance*/
738
+ o[8]
739
+ ), g = me(), c = V("span"), l = nt("svg"), v = nt("path"), B = me(), A && A.c(), F = Et(), R(v, "id", "arrow"), R(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"), R(v, "transform", "translate(-274.511 -441.088)"), R(v, "fill", "#d1d1d1"), R(l, "xmlns", "http://www.w3.org/2000/svg"), R(l, "width", "14"), R(l, "height", "6.835"), R(l, "viewBox", "0 0 14 6.835"), R(c, "class", d = /*isModalDisplayed*/
740
+ o[5] ? "TriangleActive" : "TriangleInactive"), R(e, "class", "BalanceValue");
741
+ },
742
+ m(w, P) {
743
+ ye(w, e, P), x(e, t), x(t, h), x(e, g), x(e, c), x(c, l), x(l, v), ye(w, B, P), A && A.m(w, P), ye(w, F, P), q || (U = Fe(
744
+ e,
745
+ "click",
746
+ /*click_handler*/
747
+ o[34]
748
+ ), q = !0);
749
+ },
750
+ p(w, P) {
751
+ P[0] & /*displayBalance*/
752
+ 256 && Ce(
753
+ h,
754
+ /*displayBalance*/
755
+ w[8]
756
+ ), P[0] & /*isModalDisplayed*/
757
+ 32 && d !== (d = /*isModalDisplayed*/
758
+ w[5] ? "TriangleActive" : "TriangleInactive") && R(c, "class", d), /*showBalance*/
759
+ w[6] ? A ? A.p(w, P) : (A = st(w), A.c(), A.m(F.parentNode, F)) : A && (A.d(1), A = null);
760
+ },
761
+ d(w) {
762
+ w && (ge(e), ge(B), ge(F)), A && A.d(w), q = !1, U();
763
+ }
764
+ };
765
+ }
766
+ function Ut(o) {
767
+ let e, t = (
768
+ /*$_*/
769
+ o[9]("Loading") + ""
770
+ ), h;
771
+ return {
772
+ c() {
773
+ e = V("p"), h = _e(t), R(e, "class", "Loading");
774
+ },
775
+ m(g, c) {
776
+ ye(g, e, c), x(e, h);
777
+ },
778
+ p(g, c) {
779
+ c[0] & /*$_*/
780
+ 512 && t !== (t = /*$_*/
781
+ g[9]("Loading") + "") && Ce(h, t);
782
+ },
783
+ d(g) {
784
+ g && ge(e);
785
+ }
786
+ };
787
+ }
788
+ function st(o) {
789
+ let e, t, h, g, c, l, v, d, B = (
790
+ /*$_*/
791
+ o[9]("Title") + ""
792
+ ), F, q, U, A, w, P, be = (
793
+ /*$_*/
794
+ o[9]("DepositButton") + ""
795
+ ), we, Re, K, Z, fe, te, ce, ve, ae = Ge(Object.keys(
796
+ /*balances*/
797
+ o[3]
798
+ )), M = [];
799
+ for (let L = 0; L < ae.length; L += 1)
800
+ M[L] = ct(it(o, ae, L));
801
+ let W = (
802
+ /*balancelimitsbutton*/
803
+ o[0] === "true" && ut(o)
804
+ ), O = (
805
+ /*activebonusesbutton*/
806
+ o[1] === "true" && dt(o)
807
+ );
808
+ return {
809
+ c() {
810
+ e = V("div"), t = V("button"), g = me(), c = V("div"), l = V("div"), v = V("div"), d = V("p"), F = _e(B), q = me(), U = V("div");
811
+ for (let L = 0; L < M.length; L += 1)
812
+ M[L].c();
813
+ A = me(), w = V("div"), P = V("button"), we = _e(be), Re = me(), W && W.c(), K = me(), O && O.c(), R(t, "class", h = "BalanceModalClose " + /*isModalDisplayed*/
814
+ (o[5] ? "Open" : "")), R(d, "class", "BalanceModalTitle"), R(v, "class", "BalanceModalHeader"), R(U, "class", "BalanceModalBody"), R(P, "class", "BalanceModalAction DepositButton"), R(w, "class", "BalanceModalFooter"), R(l, "class", Z = "ModalContent " + /*isModalDisplayed*/
815
+ (o[5] ? "Open" : "")), R(c, "class", fe = "BalanceModal " + /*isModalDisplayed*/
816
+ (o[5] ? "Open" : "")), R(e, "class", te = "BalanceModalWrapper " + /*isModalDisplayed*/
817
+ (o[5] ? "Open" : ""));
818
+ },
819
+ m(L, G) {
820
+ ye(L, e, G), x(e, t), x(e, g), x(e, c), x(c, l), x(l, v), x(v, d), x(d, F), x(l, q), x(l, U);
821
+ for (let H = 0; H < M.length; H += 1)
822
+ M[H] && M[H].m(U, null);
823
+ x(l, A), x(l, w), x(w, P), x(P, we), x(w, Re), W && W.m(w, null), x(w, K), O && O.m(w, null), ce || (ve = [
824
+ Fe(
825
+ t,
826
+ "click",
827
+ /*click_handler_1*/
828
+ o[35]
829
+ ),
830
+ Fe(
831
+ P,
832
+ "click",
833
+ /*click_handler_2*/
834
+ o[36]
835
+ )
836
+ ], ce = !0);
837
+ },
838
+ p(L, G) {
839
+ if (G[0] & /*isModalDisplayed*/
840
+ 32 && h !== (h = "BalanceModalClose " + /*isModalDisplayed*/
841
+ (L[5] ? "Open" : "")) && R(t, "class", h), G[0] & /*$_*/
842
+ 512 && B !== (B = /*$_*/
843
+ L[9]("Title") + "") && Ce(F, B), G[0] & /*balances, formatBalance, getProductType, $_*/
844
+ 10760) {
845
+ ae = Ge(Object.keys(
846
+ /*balances*/
847
+ L[3]
848
+ ));
849
+ let H;
850
+ for (H = 0; H < ae.length; H += 1) {
851
+ const Te = it(L, ae, H);
852
+ M[H] ? M[H].p(Te, G) : (M[H] = ct(Te), M[H].c(), M[H].m(U, null));
853
+ }
854
+ for (; H < M.length; H += 1)
855
+ M[H].d(1);
856
+ M.length = ae.length;
857
+ }
858
+ G[0] & /*$_*/
859
+ 512 && be !== (be = /*$_*/
860
+ L[9]("DepositButton") + "") && Ce(we, be), /*balancelimitsbutton*/
861
+ L[0] === "true" ? W ? W.p(L, G) : (W = ut(L), W.c(), W.m(w, K)) : W && (W.d(1), W = null), /*activebonusesbutton*/
862
+ L[1] === "true" ? O ? O.p(L, G) : (O = dt(L), O.c(), O.m(w, null)) : O && (O.d(1), O = null), G[0] & /*isModalDisplayed*/
863
+ 32 && Z !== (Z = "ModalContent " + /*isModalDisplayed*/
864
+ (L[5] ? "Open" : "")) && R(l, "class", Z), G[0] & /*isModalDisplayed*/
865
+ 32 && fe !== (fe = "BalanceModal " + /*isModalDisplayed*/
866
+ (L[5] ? "Open" : "")) && R(c, "class", fe), G[0] & /*isModalDisplayed*/
867
+ 32 && te !== (te = "BalanceModalWrapper " + /*isModalDisplayed*/
868
+ (L[5] ? "Open" : "")) && R(e, "class", te);
869
+ },
870
+ d(L) {
871
+ L && ge(e), pt(M, L), W && W.d(), O && O.d(), ce = !1, kt(ve);
872
+ }
873
+ };
874
+ }
875
+ function lt(o) {
876
+ let e, t, h = (
877
+ /*$_*/
878
+ o[9](
879
+ /*k*/
880
+ o[64]
881
+ ) + ""
882
+ ), g, c, l = (
883
+ /*getProductType*/
884
+ o[13](
885
+ /*balance*/
886
+ o[67]
887
+ ) + ""
888
+ ), v, d, B, F, q = (
889
+ /*formatBalance*/
890
+ o[11](
891
+ /*balance*/
892
+ o[67].amount
893
+ ) + ""
894
+ ), U;
895
+ return {
896
+ c() {
897
+ e = V("div"), t = V("p"), g = _e(h), c = me(), v = _e(l), d = me(), B = V("p"), F = V("span"), U = _e(q), R(t, "class", "BalanceModalText"), R(F, "class", "BalanceModalAmount"), R(B, "class", "BalanceModalValue"), R(e, "class", "BalanceModalRowLine");
898
+ },
899
+ m(A, w) {
900
+ ye(A, e, w), x(e, t), x(t, g), x(t, c), x(t, v), x(e, d), x(e, B), x(B, F), x(F, U);
901
+ },
902
+ p(A, w) {
903
+ w[0] & /*$_, balances*/
904
+ 520 && h !== (h = /*$_*/
905
+ A[9](
906
+ /*k*/
907
+ A[64]
908
+ ) + "") && Ce(g, h), w[0] & /*balances*/
909
+ 8 && l !== (l = /*getProductType*/
910
+ A[13](
911
+ /*balance*/
912
+ A[67]
913
+ ) + "") && Ce(v, l), w[0] & /*balances*/
914
+ 8 && q !== (q = /*formatBalance*/
915
+ A[11](
916
+ /*balance*/
917
+ A[67].amount
918
+ ) + "") && Ce(U, q);
919
+ },
920
+ d(A) {
921
+ A && ge(e);
922
+ }
923
+ };
924
+ }
925
+ function ct(o) {
926
+ let e, t, h, g = Ge(
927
+ /*balances*/
928
+ o[3][
929
+ /*k*/
930
+ o[64]
931
+ ]
932
+ ), c = [];
933
+ for (let l = 0; l < g.length; l += 1)
934
+ c[l] = lt(rt(o, g, l));
935
+ return {
936
+ c() {
937
+ e = V("div");
938
+ for (let l = 0; l < c.length; l += 1)
939
+ c[l].c();
940
+ t = me(), R(e, "class", h = "BalanceModalRowBoth " + /*k*/
941
+ o[64]);
942
+ },
943
+ m(l, v) {
944
+ ye(l, e, v);
945
+ for (let d = 0; d < c.length; d += 1)
946
+ c[d] && c[d].m(e, null);
947
+ x(e, t);
948
+ },
949
+ p(l, v) {
950
+ if (v[0] & /*formatBalance, balances, getProductType, $_*/
951
+ 10760) {
952
+ g = Ge(
953
+ /*balances*/
954
+ l[3][
955
+ /*k*/
956
+ l[64]
957
+ ]
958
+ );
959
+ let d;
960
+ for (d = 0; d < g.length; d += 1) {
961
+ const B = rt(l, g, d);
962
+ c[d] ? c[d].p(B, v) : (c[d] = lt(B), c[d].c(), c[d].m(e, t));
963
+ }
964
+ for (; d < c.length; d += 1)
965
+ c[d].d(1);
966
+ c.length = g.length;
967
+ }
968
+ v[0] & /*balances*/
969
+ 8 && h !== (h = "BalanceModalRowBoth " + /*k*/
970
+ l[64]) && R(e, "class", h);
971
+ },
972
+ d(l) {
973
+ l && ge(e), pt(c, l);
974
+ }
975
+ };
976
+ }
977
+ function ut(o) {
978
+ let e, t = (
979
+ /*$_*/
980
+ o[9]("LimitsButton") + ""
981
+ ), h, g, c;
982
+ return {
983
+ c() {
984
+ e = V("button"), h = _e(t), R(e, "class", "BalanceModalAction LimitsButton");
985
+ },
986
+ m(l, v) {
987
+ ye(l, e, v), x(e, h), g || (c = Fe(
988
+ e,
989
+ "click",
990
+ /*click_handler_3*/
991
+ o[37]
992
+ ), g = !0);
993
+ },
994
+ p(l, v) {
995
+ v[0] & /*$_*/
996
+ 512 && t !== (t = /*$_*/
997
+ l[9]("LimitsButton") + "") && Ce(h, t);
998
+ },
999
+ d(l) {
1000
+ l && ge(e), g = !1, c();
1001
+ }
1002
+ };
1003
+ }
1004
+ function dt(o) {
1005
+ let e, t = (
1006
+ /*$_*/
1007
+ o[9]("ActiveBonusesButton") + ""
1008
+ ), h, g, c;
1009
+ return {
1010
+ c() {
1011
+ e = V("button"), h = _e(t), R(e, "class", "BalanceModalAction ActiveBonusesButton");
1012
+ },
1013
+ m(l, v) {
1014
+ ye(l, e, v), x(e, h), g || (c = Fe(
1015
+ e,
1016
+ "click",
1017
+ /*click_handler_4*/
1018
+ o[38]
1019
+ ), g = !0);
1020
+ },
1021
+ p(l, v) {
1022
+ v[0] & /*$_*/
1023
+ 512 && t !== (t = /*$_*/
1024
+ l[9]("ActiveBonusesButton") + "") && Ce(h, t);
1025
+ },
1026
+ d(l) {
1027
+ l && ge(e), g = !1, c();
1028
+ }
1029
+ };
1030
+ }
1031
+ function ft(o) {
1032
+ let e, t, h;
1033
+ return {
1034
+ c() {
1035
+ e = V("button"), R(e, "class", "ShowBalanceModalOverlay");
1036
+ },
1037
+ m(g, c) {
1038
+ ye(g, e, c), t || (h = Fe(
1039
+ e,
1040
+ "click",
1041
+ /*click_handler_5*/
1042
+ o[39]
1043
+ ), t = !0);
1044
+ },
1045
+ p: Ye,
1046
+ d(g) {
1047
+ g && ge(e), t = !1, h();
1048
+ }
1049
+ };
1050
+ }
1051
+ function Vt(o) {
1052
+ let e, t, h, g;
1053
+ function c(B, F) {
1054
+ return (
1055
+ /*isLoading*/
1056
+ B[4] ? Ut : Ht
1057
+ );
1058
+ }
1059
+ let l = c(o), v = l(o), d = (
1060
+ /*showBalance*/
1061
+ o[6] && ft(o)
1062
+ );
1063
+ return {
1064
+ c() {
1065
+ e = V("div"), t = V("div"), v.c(), g = me(), d && d.c(), R(t, "class", h = "ShowBalance " + /*mobileView*/
1066
+ (o[7] ? "Mobile" : ""));
1067
+ },
1068
+ m(B, F) {
1069
+ ye(B, e, F), x(e, t), v.m(t, null), x(e, g), d && d.m(e, null), o[40](e);
1070
+ },
1071
+ p(B, F) {
1072
+ l === (l = c(B)) && v ? v.p(B, F) : (v.d(1), v = l(B), v && (v.c(), v.m(t, null))), F[0] & /*mobileView*/
1073
+ 128 && h !== (h = "ShowBalance " + /*mobileView*/
1074
+ (B[7] ? "Mobile" : "")) && R(t, "class", h), /*showBalance*/
1075
+ B[6] ? d ? d.p(B, F) : (d = ft(B), d.c(), d.m(e, null)) : d && (d.d(1), d = null);
1076
+ },
1077
+ i: Ye,
1078
+ o: Ye,
1079
+ d(B) {
1080
+ B && ge(e), v.d(), d && d.d(), o[40](null);
1081
+ }
1082
+ };
1083
+ }
1084
+ function Pt(o, e, t) {
1085
+ let h;
1086
+ _t(o, Ft, (a) => t(9, h = a));
1087
+ let { userid: g = "" } = e, { session: c = "" } = e, { endpoint: l = "" } = e, { lang: v = "en" } = e, { mbsource: d = "" } = e, { clientstyling: B = "" } = e, { clientstylingurl: F = "" } = e, { translationurl: q = "" } = e, { gmversion: U = "gm16" } = e, { displaybalanceoption: A = "All" } = e, { totalcalculationmode: w = "totalCashAmount" } = e, { primarybalancemode: P } = e, { balancelimitsbutton: be = "false" } = e, { activebonusesbutton: we = "false" } = e, { hideproducttype: Re = "" } = e, { shownegativebalance: K = "false" } = e, { currencylocale: Z = "en" } = e, { currencydisplay: fe = "symbol" } = e, { maximumfractiondigits: te = "2" } = e, { minimumfractiondigits: ce = "0" } = e, { customdisplayformat: ve = "" } = e, { alwaysshowdecimals: ae = "true" } = e, M, W, O = !0, L = !1, G = !1, H = !1, Te = !1, Be = window.navigator.userAgent, oe, ue = "", de = [], ne, Me = "0";
1088
+ const r = {}, Ee = ["totalCashAmount", "totalRealAmount"], Xe = () => {
1089
+ fetch(q).then((a) => a.json()).then((a) => Object.keys(a).forEach((p) => at(p, a[p]))).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, H = !0), setTimeout(() => t(5, L = !0), 150);
1102
+ break;
1103
+ case "closebalance":
1104
+ t(5, L = !1), window.postMessage(
1105
+ {
1106
+ type: "BalanceModalStatus",
1107
+ status: "close"
1108
+ },
1109
+ window.location.href
1110
+ ), setTimeout(
1111
+ () => {
1112
+ t(6, H = !1);
1113
+ },
1114
+ 150
1115
+ );
1116
+ break;
1117
+ }
1118
+ }, Ie = (a) => {
1119
+ if (ve)
1120
+ return je(a);
1121
+ const p = Z || v, m = {
1122
+ style: "currency",
1123
+ currency: ue,
1124
+ useGrouping: !0,
1125
+ currencyDisplay: fe || "code",
1126
+ maximumFractionDigits: te === "" || isNaN(Number(te)) ? 2 : Number(te),
1127
+ minimumFractionDigits: ce === "" || isNaN(Number(ce)) ? 0 : Number(ce)
1128
+ };
1129
+ return new Intl.NumberFormat(p, m).format(a);
1130
+ }, je = (a) => {
1131
+ const p = [];
1132
+ let m = "";
1133
+ for (const b of ve)
1134
+ switch (b) {
1135
+ default:
1136
+ m += b;
1137
+ break;
1138
+ case "{":
1139
+ m && p.push(m), m = "";
1140
+ break;
1141
+ case "}":
1142
+ const [N, E] = m.split("|");
1143
+ if (m = "", N.toLowerCase() === "currency")
1144
+ m = ue;
1145
+ else if (N.toLowerCase() === "amount") {
1146
+ let u = ",", k = ".", ie = 2;
1147
+ E && (E[0] !== " " && (u = E[0]), E[1] !== " " && (k = E[1]), E[2] !== " " && !isNaN(Number(E[2])) && (ie = Number(E[2])));
1148
+ let [re, Ke] = String(Math.floor(a * We(10, ie)) / We(10, ie)).split(".");
1149
+ m += re[0];
1150
+ for (let he = 1; he < re.length; ++he)
1151
+ (re.length - he) % 3 === 0 ? m += u + re[he] : m += re[he];
1152
+ let De = Ke || "";
1153
+ const Pe = ae === "true", Oe = Number(te);
1154
+ if (Pe)
1155
+ De = De.padEnd(Oe || 2, "0").substring(0, Oe);
1156
+ else if (!De)
1157
+ break;
1158
+ m += k + De;
1159
+ }
1160
+ m && p.push(m), m = "";
1161
+ break;
1162
+ }
1163
+ return p.push(m), p.join("");
1164
+ }, ze = () => tt(this, null, function* () {
1165
+ var p, m, b;
1166
+ t(4, O = !0);
1167
+ const a = new URL(`${l}/v1/player/${g}/account`);
1168
+ try {
1169
+ const N = yield fetch(a, {
1170
+ method: "GET",
1171
+ headers: { "X-SessionID": c }
1172
+ }), E = yield N.json();
1173
+ if (N.ok)
1174
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), de = E.items, ue = (p = de.find((u) => u.displayName === "Casino")) == null ? void 0 : p.currency, t(3, r.Total = [{ amount: E.totalAmount[ue] }], r), t(
1175
+ 3,
1176
+ r.Real = [
1177
+ {
1178
+ amount: (m = de.find((u) => u.displayName === "Casino")) == null ? void 0 : m.balanceAmount
1179
+ }
1180
+ ],
1181
+ r
1182
+ ), t(
1183
+ 3,
1184
+ r.Bonus = [
1185
+ {
1186
+ amount: (b = de.find((u) => u.displayName === "UBS")) == null ? void 0 : b.balanceAmount
1187
+ }
1188
+ ],
1189
+ r
1190
+ );
1191
+ else
1192
+ throw new Error("Failed to fetch balance data !");
1193
+ } catch (N) {
1194
+ console.log("Balance error: ", N);
1195
+ } finally {
1196
+ t(4, O = !1);
1197
+ }
1198
+ }), xe = () => {
1199
+ t(4, O = !0);
1200
+ const a = new URL(`${l}/v2/player/${g}/balance`), p = new Headers();
1201
+ p.append("X-SessionID", c), fetch(a, { method: "GET", headers: p }).then((b) => b.json()).then((b) => {
1202
+ b[w] || t(14, w = Ee[0]);
1203
+ const N = b.items.find((u) => u.type === "Real" && u.walletAccountType === "Ordinary");
1204
+ if (ue = N.currency, G = !!N.productType, t(3, r.Total = [{ amount: 0 }], r), t(3, r.Real = [], r), t(3, r.Bonus = [], r), t(3, r.Credit = [], r), !G) {
1205
+ ne = {
1206
+ lastOrdinaryAfterAmount: 0,
1207
+ showCreditLineAfterAmount: !1
1208
+ }, t(3, r.Total[0].amount = b[w][ue], r);
1209
+ for (const u of b.items)
1210
+ switch (u.type) {
1211
+ case "Bonus":
1212
+ r.Bonus.length === 0 ? r.Bonus.push({ amount: u.amount }) : t(3, r.Bonus[0].amount += u.amount, r);
1213
+ break;
1214
+ case "Real":
1215
+ if (u.creditLine && r.Credit.length === 0 && r.Credit.push({ amount: u.creditLine }), w === "totalRealAmount")
1216
+ continue;
1217
+ r.Real.length === 0 ? r.Real.push({ amount: u.amount }) : t(3, r.Real[0].amount += u.amount, r);
1218
+ break;
1219
+ case "RealNegativeRemainder":
1220
+ if (u.type === "RealNegativeRemainder" && K !== "true" || (u.creditLine && r.Credit.length === 0 && r.Credit.push({ amount: u.creditLine }), w === "totalRealAmount"))
1221
+ continue;
1222
+ r.Real.length === 0 ? r.Real.push({ amount: u.amount }) : t(3, r.Real[0].amount += u.amount, r);
1223
+ break;
1224
+ }
1225
+ for (const [u, k] of Object.entries(r))
1226
+ k.length < 1 && delete r[u];
1227
+ t(4, O = !1);
1228
+ return;
1229
+ }
1230
+ ne = {
1231
+ Casino: {
1232
+ lastOrdinaryAfterAmount: 0,
1233
+ showCreditLineAfterAmount: !1
1234
+ },
1235
+ Sports: {
1236
+ lastOrdinaryAfterAmount: 0,
1237
+ showCreditLineAfterAmount: !1
1238
+ }
1239
+ };
1240
+ let E = b.items;
1241
+ A && A !== "All" && (E = b.items.filter((u) => u.productType === A));
1242
+ for (const u of E) {
1243
+ let k;
1244
+ switch (u.type) {
1245
+ case "Bonus":
1246
+ k = r.Bonus.findIndex((ie) => ie.productType === u.productType), k > 0 ? t(3, r.Bonus[k].amount += u.amount, r) : r.Bonus.push({
1247
+ amount: u.amount,
1248
+ productType: u.productType
1249
+ });
1250
+ break;
1251
+ case "Real":
1252
+ u.creditLine && r.Credit.push({
1253
+ amount: u.creditLine,
1254
+ productType: u.productType
1255
+ }), k = r.Real.findIndex((ie) => ie.productType === u.productType), k > 0 ? t(3, r.Real[k].amount += u.amount, r) : r.Real.push({
1256
+ amount: u.amount,
1257
+ productType: u.productType
1258
+ });
1259
+ break;
1260
+ case "RealNegativeRemainder":
1261
+ if (u.type === "RealNegativeRemainder" && K !== "true")
1262
+ continue;
1263
+ u.creditLine && r.Credit.push({
1264
+ amount: u.creditLine,
1265
+ productType: u.productType
1266
+ }), k = r.Real.findIndex((ie) => ie.productType === u.productType), k >= 0 ? t(3, r.Real[k].amount += u.amount, r) : r.Real.push({
1267
+ amount: u.amount,
1268
+ productType: u.productType
1269
+ });
1270
+ break;
1271
+ }
1272
+ }
1273
+ Ue();
1274
+ for (const [u, k] of Object.entries(r))
1275
+ k.length < 1 && delete r[u];
1276
+ window.postMessage({ type: "playerBalanceInfo", balance: b }, window.location.href), t(4, O = !1);
1277
+ }).catch((b) => {
1278
+ throw t(4, O = !1), console.log("Balance fetch error", b), new Error("Failed to fetch balance data!");
1279
+ });
1280
+ }, $ = () => {
1281
+ if (oe && oe.close(), c.length < 1)
1282
+ return;
1283
+ let a, p;
1284
+ switch (U) {
1285
+ case "gm16":
1286
+ a = new URL(`${l}/v2/player/${g}/information/updates`), p = (N) => n(N);
1287
+ break;
1288
+ case "gmcore":
1289
+ a = new URL(`${l}/v1/player/${g}/balance/updates`), p = (N) => qe(N);
1290
+ break;
1291
+ }
1292
+ const m = {
1293
+ accept: "text/event-stream",
1294
+ "X-SessionId": c
1295
+ }, b = new jt.EventSourcePolyfill(a, { headers: m });
1296
+ oe = b, b.addEventListener("message", p);
1297
+ }, Ve = (a) => {
1298
+ let p;
1299
+ try {
1300
+ p = JSON.parse(a);
1301
+ } catch (m) {
1302
+ console.log("Balance stream failed: ", m);
1303
+ return;
1304
+ }
1305
+ return p;
1306
+ }, qe = (a) => {
1307
+ var N, E;
1308
+ const p = Ve(a.data);
1309
+ if (!p) {
1310
+ $();
1311
+ return;
1312
+ }
1313
+ let m = "0";
1314
+ const b = p.balanceChange;
1315
+ de = de.map((u) => (b && b[u.id] && (u = et($e({}, u), {
1316
+ balanceAmount: b[u.id].afterAmount
1317
+ })), m = (parseFloat(u == null ? void 0 : u.balanceAmount) + parseFloat(m)).toString(), u)), t(3, r.Real = [{ amount: (N = de[0]) == null ? void 0 : N.balanceAmount }], r), t(3, r.Bonus = [{ amount: (E = de[1]) == null ? void 0 : E.balanceAmount }], r), t(3, r.Total = [{ amount: Number(m) }], r);
1318
+ }, He = (a, p, m) => {
1319
+ let b = null;
1320
+ switch (m.walletAccountType) {
1321
+ case "Ordinary":
1322
+ (m.afterAmount !== m.affectedAmount || p.lastOrdinaryAfterAmount === 0) && (p.lastOrdinaryAfterAmount = m.afterAmount, p.showCreditLineAfterAmount || (b = m.afterAmount));
1323
+ break;
1324
+ case "CreditLine":
1325
+ m.afterAmount !== 0 ? (b = m.afterAmount, p.showCreditLineAfterAmount = !0) : (b = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
1326
+ break;
1327
+ default:
1328
+ b = m.afterAmount;
1329
+ }
1330
+ return b === null ? a : b;
1331
+ }, Ue = () => {
1332
+ switch (w) {
1333
+ case "totalCashAmount":
1334
+ let a = 0;
1335
+ for (const m of ["Real", "Bonus"])
1336
+ for (const b of r[m])
1337
+ K === "true" ? a += b.amount : a += Math.max(b.amount, 0);
1338
+ t(3, r.Total[0].amount = a, r);
1339
+ break;
1340
+ case "totalRealAmount":
1341
+ if (!G)
1342
+ return;
1343
+ let p = 0;
1344
+ for (const m of r.Real)
1345
+ p += m.amount;
1346
+ t(3, r.Total[0].amount = p, r);
1347
+ }
1348
+ }, n = (a) => {
1349
+ const p = Ve(a.data);
1350
+ if (!p) {
1351
+ $();
1352
+ return;
1353
+ }
1354
+ if (f(p == null ? void 0 : p.type) || p.type !== "BALANCE_UPDATE_V2")
1355
+ return;
1356
+ const m = p.body.balanceChange;
1357
+ for (const [b, N] of Object.entries(m))
1358
+ if (w === "totalRealAmount" && b === "Real" && !G && t(3, r.Total[0].amount = He(r.Total[0].amount, ne, N), r), !!r[b])
1359
+ for (const E of r[b]) {
1360
+ if (!G) {
1361
+ E.amount = b === "Real" ? He(E.amount, ne, N) : N.afterAmount;
1362
+ continue;
1363
+ }
1364
+ N.productType === E.productType && (E.amount = b === "Real" ? He(E.amount, ne[E.productType], N) : N.afterAmount);
1365
+ }
1366
+ Ue();
1367
+ }, i = (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
+ }, f = (a) => a === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, s = () => {
1381
+ Ee.includes(w) || (console.error(`Unsupported value ('${w}') for totalcalculationmode parameter. Only the following values are supported ${Ee}. Using default value ('${Ee[0]}').`), t(14, w = Ee[0]));
1382
+ }, T = () => {
1383
+ switch (It(v), s(), U) {
1384
+ case "gmcore":
1385
+ ze();
1386
+ break;
1387
+ case "gm16":
1388
+ xe();
1389
+ break;
1390
+ default:
1391
+ throw Error(`Invalid apiversion attribute: ${U}`);
1392
+ }
1393
+ }, y = (a) => {
1394
+ const { data: { type: p } = {} } = a || {};
1395
+ switch (p) {
1396
+ case "LogoutSuccessfull":
1397
+ oe.close();
1398
+ break;
1399
+ case "CloseBalance":
1400
+ Le("closebalance");
1401
+ break;
1402
+ }
1403
+ }, C = () => {
1404
+ window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
1405
+ }, j = (a) => {
1406
+ const p = Re.split(",").map((m) => m.trim());
1407
+ return !a.productType || p.includes(a.productType) ? "" : h(a.productType);
1408
+ };
1409
+ Rt(() => (window.addEventListener("message", y, !1), t(7, Te = Lt(Be)), () => {
1410
+ window.removeEventListener("message", y), oe && oe.close();
1411
+ }));
1412
+ const _ = () => Le("balance"), D = () => Le("closebalance"), I = () => i("deposit"), S = () => i("limits"), z = () => i("activebonuses"), pe = () => Le("closebalance");
1413
+ function ke(a) {
1414
+ xt[a ? "unshift" : "push"](() => {
1415
+ M = a, t(2, M);
1416
+ });
1417
+ }
1418
+ return o.$$set = (a) => {
1419
+ "userid" in a && t(15, g = 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, d = a.mbsource), "clientstyling" in a && t(20, B = a.clientstyling), "clientstylingurl" in a && t(21, F = a.clientstylingurl), "translationurl" in a && t(22, q = a.translationurl), "gmversion" in a && t(23, U = a.gmversion), "displaybalanceoption" in a && t(24, A = a.displaybalanceoption), "totalcalculationmode" in a && t(14, w = a.totalcalculationmode), "primarybalancemode" in a && t(25, P = a.primarybalancemode), "balancelimitsbutton" in a && t(0, be = a.balancelimitsbutton), "activebonusesbutton" in a && t(1, we = a.activebonusesbutton), "hideproducttype" in a && t(26, Re = a.hideproducttype), "shownegativebalance" in a && t(27, K = a.shownegativebalance), "currencylocale" in a && t(28, Z = a.currencylocale), "currencydisplay" in a && t(29, fe = a.currencydisplay), "maximumfractiondigits" in a && t(30, te = a.maximumfractiondigits), "minimumfractiondigits" in a && t(31, ce = a.minimumfractiondigits), "customdisplayformat" in a && t(32, ve = a.customdisplayformat), "alwaysshowdecimals" in a && t(33, ae = a.alwaysshowdecimals);
1420
+ }, o.$$.update = () => {
1421
+ o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1422
+ 25657344 && l && g && c && v && U && A && T(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1423
+ 8617984 && l && g && c && U && $(), o.$$.dirty[0] & /*translationurl*/
1424
+ 4194304 && q && Xe(), o.$$.dirty[0] & /*balances*/
1425
+ 8 && r.Total && C(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1426
+ 1048580 && B && M && Mt(M, B), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1427
+ 2097156 && F && M && Dt(M, F), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
1428
+ 524292 && d && M && Ot(M, `${d}.Style`, W), o.$$.dirty[0] & /*primarybalancemode, balances*/
1429
+ 33554440 && t(8, Me = (() => {
1430
+ switch (P) {
1431
+ case "Real":
1432
+ return r.Real ? Ie(r.Real[0].amount) : "0";
1433
+ default:
1434
+ return r.Total ? Ie(r.Total[0].amount) : "0";
1435
+ }
1436
+ })());
1437
+ }, [
1438
+ be,
1439
+ we,
1440
+ M,
1441
+ r,
1442
+ O,
1443
+ L,
1444
+ H,
1445
+ Te,
1446
+ Me,
1447
+ h,
1448
+ Le,
1449
+ Ie,
1450
+ i,
1451
+ j,
1452
+ w,
1453
+ g,
1454
+ c,
1455
+ l,
1456
+ v,
1457
+ d,
1458
+ B,
1459
+ F,
1460
+ q,
1461
+ U,
1462
+ A,
1463
+ P,
1464
+ Re,
1465
+ K,
1466
+ Z,
1467
+ fe,
1468
+ te,
1469
+ ce,
1470
+ ve,
1471
+ ae,
1472
+ _,
1473
+ D,
1474
+ I,
1475
+ S,
1476
+ z,
1477
+ pe,
1478
+ ke
1479
+ ];
1480
+ }
1481
+ class Gt extends Tt {
1482
+ constructor(e) {
1483
+ super(), St(
1484
+ this,
1485
+ e,
1486
+ Pt,
1487
+ Vt,
1488
+ At,
1489
+ {
1490
+ userid: 15,
1491
+ session: 16,
1492
+ endpoint: 17,
1493
+ lang: 18,
1494
+ mbsource: 19,
1495
+ clientstyling: 20,
1496
+ clientstylingurl: 21,
1497
+ translationurl: 22,
1498
+ gmversion: 23,
1499
+ displaybalanceoption: 24,
1500
+ totalcalculationmode: 14,
1501
+ primarybalancemode: 25,
1502
+ balancelimitsbutton: 0,
1503
+ activebonusesbutton: 1,
1504
+ hideproducttype: 26,
1505
+ shownegativebalance: 27,
1506
+ currencylocale: 28,
1507
+ currencydisplay: 29,
1508
+ maximumfractiondigits: 30,
1509
+ minimumfractiondigits: 31,
1510
+ customdisplayformat: 32,
1511
+ alwaysshowdecimals: 33
1512
+ },
1513
+ zt,
1514
+ [-1, -1, -1]
1515
+ );
1516
+ }
1517
+ get userid() {
1518
+ return this.$$.ctx[15];
1519
+ }
1520
+ set userid(e) {
1521
+ this.$$set({ userid: e }), X();
1522
+ }
1523
+ get session() {
1524
+ return this.$$.ctx[16];
1525
+ }
1526
+ set session(e) {
1527
+ this.$$set({ session: e }), X();
1528
+ }
1529
+ get endpoint() {
1530
+ return this.$$.ctx[17];
1531
+ }
1532
+ set endpoint(e) {
1533
+ this.$$set({ endpoint: e }), X();
1534
+ }
1535
+ get lang() {
1536
+ return this.$$.ctx[18];
1537
+ }
1538
+ set lang(e) {
1539
+ this.$$set({ lang: e }), X();
1540
+ }
1541
+ get mbsource() {
1542
+ return this.$$.ctx[19];
1543
+ }
1544
+ set mbsource(e) {
1545
+ this.$$set({ mbsource: e }), X();
1546
+ }
1547
+ get clientstyling() {
1548
+ return this.$$.ctx[20];
1549
+ }
1550
+ set clientstyling(e) {
1551
+ this.$$set({ clientstyling: e }), X();
1552
+ }
1553
+ get clientstylingurl() {
1554
+ return this.$$.ctx[21];
1555
+ }
1556
+ set clientstylingurl(e) {
1557
+ this.$$set({ clientstylingurl: e }), X();
1558
+ }
1559
+ get translationurl() {
1560
+ return this.$$.ctx[22];
1561
+ }
1562
+ set translationurl(e) {
1563
+ this.$$set({ translationurl: e }), X();
1564
+ }
1565
+ get gmversion() {
1566
+ return this.$$.ctx[23];
1567
+ }
1568
+ set gmversion(e) {
1569
+ this.$$set({ gmversion: e }), X();
1570
+ }
1571
+ get displaybalanceoption() {
1572
+ return this.$$.ctx[24];
1573
+ }
1574
+ set displaybalanceoption(e) {
1575
+ this.$$set({ displaybalanceoption: e }), X();
1576
+ }
1577
+ get totalcalculationmode() {
1578
+ return this.$$.ctx[14];
1579
+ }
1580
+ set totalcalculationmode(e) {
1581
+ this.$$set({ totalcalculationmode: e }), X();
1582
+ }
1583
+ get primarybalancemode() {
1584
+ return this.$$.ctx[25];
1585
+ }
1586
+ set primarybalancemode(e) {
1587
+ this.$$set({ primarybalancemode: e }), X();
1588
+ }
1589
+ get balancelimitsbutton() {
1590
+ return this.$$.ctx[0];
1591
+ }
1592
+ set balancelimitsbutton(e) {
1593
+ this.$$set({ balancelimitsbutton: e }), X();
1594
+ }
1595
+ get activebonusesbutton() {
1596
+ return this.$$.ctx[1];
1597
+ }
1598
+ set activebonusesbutton(e) {
1599
+ this.$$set({ activebonusesbutton: e }), X();
1600
+ }
1601
+ get hideproducttype() {
1602
+ return this.$$.ctx[26];
1603
+ }
1604
+ set hideproducttype(e) {
1605
+ this.$$set({ hideproducttype: e }), X();
1606
+ }
1607
+ get shownegativebalance() {
1608
+ return this.$$.ctx[27];
1609
+ }
1610
+ set shownegativebalance(e) {
1611
+ this.$$set({ shownegativebalance: e }), X();
1612
+ }
1613
+ get currencylocale() {
1614
+ return this.$$.ctx[28];
1615
+ }
1616
+ set currencylocale(e) {
1617
+ this.$$set({ currencylocale: e }), X();
1618
+ }
1619
+ get currencydisplay() {
1620
+ return this.$$.ctx[29];
1621
+ }
1622
+ set currencydisplay(e) {
1623
+ this.$$set({ currencydisplay: e }), X();
1624
+ }
1625
+ get maximumfractiondigits() {
1626
+ return this.$$.ctx[30];
1627
+ }
1628
+ set maximumfractiondigits(e) {
1629
+ this.$$set({ maximumfractiondigits: e }), X();
1630
+ }
1631
+ get minimumfractiondigits() {
1632
+ return this.$$.ctx[31];
1633
+ }
1634
+ set minimumfractiondigits(e) {
1635
+ this.$$set({ minimumfractiondigits: e }), X();
1636
+ }
1637
+ get customdisplayformat() {
1638
+ return this.$$.ctx[32];
1639
+ }
1640
+ set customdisplayformat(e) {
1641
+ this.$$set({ customdisplayformat: e }), X();
1642
+ }
1643
+ get alwaysshowdecimals() {
1644
+ return this.$$.ctx[33];
1645
+ }
1646
+ set alwaysshowdecimals(e) {
1647
+ this.$$set({ alwaysshowdecimals: e }), X();
1648
+ }
1649
+ }
1650
+ Nt(Gt, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, primarybalancemode: {}, balancelimitsbutton: {}, activebonusesbutton: {}, hideproducttype: {}, shownegativebalance: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {}, alwaysshowdecimals: {} }, [], [], !0);
1651
+ export {
1652
+ Gt as default
1653
+ };