@everymatrix/casino-header-controller-nd 1.86.2 → 1.86.3

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