@everymatrix/casino-header-controller-nd 1.87.25 → 1.87.27

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