@everymatrix/casino-header-controller-nd 1.86.1 → 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
@@ -1,1564 +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((h, d) => {
14
- var s = (w) => {
15
- try {
16
- f(a.next(w));
17
- } catch (b) {
18
- d(b);
19
- }
20
- }, y = (w) => {
21
- try {
22
- f(a.throw(w));
23
- } catch (b) {
24
- d(b);
25
- }
26
- }, f = (w) => w.done ? h(w.value) : Promise.resolve(w.value).then(s, y);
27
- f((a = a.apply(o, e)).next());
28
- });
29
- import { b as wt, $ as bt, T as vt, S as Bt, i as Tt, s as St, f as K, d as Ct, A as qe, g as pe, m as R, 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
- bt.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 h = a.setTimeout, d = a.clearTimeout, s = a.XMLHttpRequest, y = a.XDomainRequest, f = a.ActiveXObject, w = a.EventSource, b = 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 b != "undefined" && !("readyState" in b) && b.body == null && (b.readyState = "loading", window.addEventListener("load", function(n) {
264
- b.readyState = "complete";
265
- }, !1)), s == null && f != null && (s = function() {
266
- return new f("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 u = r.signal;
277
- return me(n, { headers: r.headers, credentials: r.credentials, cache: r.cache }).then(function(i) {
278
- var v = i.body.getReader();
279
- return u._reader = v, u._aborted && u._reader.cancel(), {
280
- status: i.status,
281
- statusText: i.statusText,
282
- headers: i.headers,
283
- body: {
284
- getReader: function() {
285
- return v;
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 u(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, v = "", 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, u(g, _))) && (g = 0, _ = i, v += 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, u(g, _)) && (g = 0, _ = i)) : (g -= 6, _ = _ << 6 | L & 63), g === 0 && (_ <= 65535 ? v += String.fromCharCode(_) : (v += String.fromCharCode(55296 + (_ - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (_ - 65535 - 1 & 1023))));
324
- }
325
- return this.bitsNeeded = g, this.codePoint = _, v;
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 u = this, i = this._xhr, v = 1, g = 0;
344
- this._abort = function(t) {
345
- u._sendTimeout !== 0 && (d(u._sendTimeout), u._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, i.onload = P, i.onerror = P, i.onabort = P, i.onprogress = P, i.onreadystatechange = P, i.abort(), g !== 0 && (d(g), g = 0), t || (u.readyState = 4, u.onabort(null), u.onreadystatechange())), v = 0;
346
- };
347
- var _ = function() {
348
- if (v === 1) {
349
- var t = 0, l = "", m = void 0;
350
- if ("contentType" in i)
351
- t = 200, l = "OK", m = i.contentType;
352
- else
353
- try {
354
- t = i.status, l = i.statusText, m = i.getResponseHeader("Content-Type");
355
- } catch (B) {
356
- t = 0, l = "", m = void 0;
357
- }
358
- t !== 0 && (v = 2, u.readyState = 2, u.status = t, u.statusText = l, u._contentType = m, u.onreadystatechange());
359
- }
360
- }, N = function() {
361
- if (_(), v === 2 || v === 3) {
362
- v = 3;
363
- var t = "";
364
- try {
365
- t = i.responseText;
366
- } catch (l) {
367
- }
368
- u.readyState = 3, u.responseText = t, u.onprogress();
369
- }
370
- }, L = function(t, l) {
371
- if ((l == null || l.preventDefault == null) && (l = {
372
- preventDefault: P
373
- }), N(), v === 1 || v === 2 || v === 3) {
374
- if (v = 4, g !== 0 && (d(g), g = 0), u.readyState = 4, t === "load")
375
- u.onload(l);
376
- else if (t === "error")
377
- u.onerror(l);
378
- else if (t === "abort")
379
- u.onabort(l);
380
- else
381
- throw new TypeError();
382
- u.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 = h(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 s.prototype)) && (r += (r.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(n, r, !0), "readyState" in i && (g = h(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 u = this._xhr;
408
- "setRequestHeader" in u && u.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 s.prototype) || !("sendAsBinary" in s.prototype) && !("mozAnon" in s.prototype)) && b != null && b.readyState != null && b.readyState !== "complete") {
413
- var n = this;
414
- n._sendTimeout = h(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 (u) {
424
- throw u;
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), u = n.split(`\r
434
- `), i = 0; i < u.length; i += 1) {
435
- var v = u[i], g = v.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
- }, s != null && s.HEADERS_RECEIVED == null && (s.HEADERS_RECEIVED = 2);
443
- function ge() {
444
- }
445
- ge.prototype.open = function(n, r, u, i, v, g, _) {
446
- n.open("GET", v);
447
- var N = 0;
448
- n.onprogress = function() {
449
- var M = n.responseText, k = M.slice(N);
450
- N += k.length, u(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 === s.HEADERS_RECEIVED) {
459
- var M = n.status, k = n.statusText, t = n.getResponseHeader("Content-Type"), l = n.getAllResponseHeaders();
460
- r(M, k, t, new le(l));
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, u, i, v, g, _) {
476
- var N = null, L = new H(), M = L.signal, k = new S();
477
- return U(v, {
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(l, m) {
484
- var B = function() {
485
- N.read().then(function(A) {
486
- if (A.done)
487
- l(void 0);
488
- else {
489
- var C = k.decode(A.value, { stream: !0 });
490
- u(C), B();
491
- }
492
- }).catch(function(A) {
493
- m(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 x(n) {
513
- h(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 u = r.length, i = 0; i < u; i += 1) {
522
- var v = r[i];
523
- try {
524
- typeof v.handleEvent == "function" ? v.handleEvent(n) : v.call(this, n);
525
- } catch (g) {
526
- x(g);
527
- }
528
- }
529
- }, F.prototype.addEventListener = function(n, r) {
530
- n = String(n);
531
- var u = this._listeners, i = u[n];
532
- i == null && (i = [], u[n] = i);
533
- for (var v = !1, g = 0; g < i.length; g += 1)
534
- i[g] === r && (v = !0);
535
- v || i.push(r);
536
- }, F.prototype.removeEventListener = function(n, r) {
537
- n = String(n);
538
- var u = this._listeners, i = u[n];
539
- if (i != null) {
540
- for (var v = [], g = 0; g < i.length; g += 1)
541
- i[g] !== r && v.push(i[g]);
542
- v.length === 0 ? delete u[n] : u[n] = v;
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, c = -1, ae = 0, De = 1, we = 2, ke = 3, Ve = /^text\/event\-stream(;.*)?$/i, Ue = 1e3, Pe = 18e6, Le = function(n, r) {
561
- var u = n == null ? r : parseInt(n, 10);
562
- return u !== u && (u = r), Re(u);
563
- }, Re = function(n) {
564
- return Math.min(Math.max(n, Ue), Pe);
565
- }, Ce = function(n, r, u) {
566
- try {
567
- typeof r == "function" && r.call(n, u);
568
- } catch (i) {
569
- x(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 s != null && "withCredentials" in s.prototype || y == null ? new s() : new y();
577
- }
578
- var Ge = U != null && I != null && "body" in I.prototype;
579
- function Oe(n, r, u) {
580
- r = String(r);
581
- var i = !!u.withCredentials, v = u.lastEventIdQueryParameterName || "lastEventId", g = Re(1e3), _ = Le(u.heartbeatTimeout, 45e3), N = "", L = g, M = !1, k = 0, t = u.headers || {}, l = u.Transport, m = Ge && l == null ? void 0 : new q(l != null ? new l() : je()), B = l != null && typeof l != "string" ? new l() : m == 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 === c && ie === 10)
612
- X = ae;
613
- else if (X === c && (X = ae), ie === 13 || ie === 10) {
614
- if (X !== ae) {
615
- X === De && (de = Z + 1);
616
- var be = te.slice(Ne, de - 1), ve = te.slice(de + (de < Z && te.charCodeAt(de) === 32 ? 1 : 0), Z);
617
- be === "data" ? (G += `
618
- `, G += ve) : be === "id" ? se = ve : be === "event" ? ee = ve : be === "retry" ? (g = Le(ve, g), L = g) : be === "heartbeatTimeout" && (_ = Le(ve, _), C !== 0 && (d(C), C = h(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 ? c : 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 && (d(C), C = 0), C = h(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 && (d(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 = h(function() {
656
- Fe();
657
- }, Q);
658
- }
659
- return;
660
- }
661
- M = !1, k = 0, C = h(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(ve, Me) {
668
- return Me === v ? "" : ve;
669
- }), Y += (r.indexOf("?") === -1 ? "?" : "&") + v + "=" + 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 be in Z)
676
- Object.prototype.hasOwnProperty.call(Z, be) && (te[be] = Z[be]);
677
- try {
678
- A = B.open(m, xe, ft, Ye, Y, ie, te);
679
- } catch (ve) {
680
- throw Xe(), ve;
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 = w;
689
- s != null && (w == null || !("withCredentials" in w.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 = w, n.EventSource = He;
696
- });
697
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : vt : 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 h = o.slice();
705
- return h[61] = e[a], h;
706
- }
707
- function it(o, e, a) {
708
- const h = o.slice();
709
- return h[64] = e[a], h;
710
- }
711
- function Ht(o) {
712
- let e, a, h, d, s, y, f, w, b, D, U, I, S = (
713
- /*showBalance*/
714
- o[5] && rt(o)
715
- );
716
- return {
717
- c() {
718
- e = V("button"), a = V("p"), h = Ae(
719
- /*displayBalance*/
720
- o[7]
721
- ), d = fe(), s = V("span"), y = tt("svg"), f = tt("path"), b = fe(), S && S.c(), D = Rt(), R(f, "id", "arrow"), R(f, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), R(f, "transform", "translate(-274.511 -441.088)"), R(f, "fill", "#d1d1d1"), R(y, "xmlns", "http://www.w3.org/2000/svg"), R(y, "width", "14"), R(y, "height", "6.835"), R(y, "viewBox", "0 0 14 6.835"), R(s, "class", w = /*isModalDisplayed*/
722
- o[4] ? "TriangleActive" : "TriangleInactive"), R(e, "class", "BalanceValue");
723
- },
724
- m(T, H) {
725
- he(T, e, H), E(e, a), E(a, h), E(e, d), E(e, s), E(s, y), E(y, f), he(T, b, 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
- h,
736
- /*displayBalance*/
737
- T[7]
738
- ), H[0] & /*isModalDisplayed*/
739
- 16 && w !== (w = /*isModalDisplayed*/
740
- T[4] ? "TriangleActive" : "TriangleInactive") && R(s, "class", w), /*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(b), 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
- ), h;
753
- return {
754
- c() {
755
- e = V("p"), h = Ae(a), R(e, "class", "Loading");
756
- },
757
- m(d, s) {
758
- he(d, e, s), E(e, h);
759
- },
760
- p(d, s) {
761
- s[0] & /*$_*/
762
- 256 && a !== (a = /*$_*/
763
- d[8]("Loading") + "") && _e(h, a);
764
- },
765
- d(d) {
766
- d && pe(e);
767
- }
768
- };
769
- }
770
- function rt(o) {
771
- let e, a, h, d, s, y, f, w, b = (
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 x = 0; x < W.length; x += 1)
782
- O[x] = lt(ot(o, W, x));
783
- let F = (
784
- /*balancelimitsbutton*/
785
- o[0] === "true" && ct(o)
786
- );
787
- return {
788
- c() {
789
- e = V("div"), a = V("button"), d = fe(), s = V("div"), y = V("div"), f = V("div"), w = V("p"), D = Ae(b), U = fe(), I = V("div");
790
- for (let x = 0; x < O.length; x += 1)
791
- O[x].c();
792
- S = fe(), T = V("div"), H = V("button"), ce = Ae(me), Be = fe(), F && F.c(), R(a, "class", h = "BalanceModalClose " + /*isModalDisplayed*/
793
- (o[4] ? "Open" : "")), R(w, "class", "BalanceModalTitle"), R(f, "class", "BalanceModalHeader"), R(I, "class", "BalanceModalBody"), R(H, "class", "BalanceModalAction DepositButton"), R(T, "class", "BalanceModalFooter"), R(y, "class", P = "ModalContent " + /*isModalDisplayed*/
794
- (o[4] ? "Open" : "")), R(s, "class", q = "BalanceModal " + /*isModalDisplayed*/
795
- (o[4] ? "Open" : "")), R(e, "class", ne = "BalanceModalWrapper " + /*isModalDisplayed*/
796
- (o[4] ? "Open" : ""));
797
- },
798
- m(x, z) {
799
- he(x, e, z), E(e, a), E(e, d), E(e, s), E(s, y), E(y, f), E(f, w), E(w, D), E(y, U), E(y, I);
800
- for (let j = 0; j < O.length; j += 1)
801
- O[j] && O[j].m(I, null);
802
- E(y, S), E(y, 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(x, z) {
818
- if (z[0] & /*isModalDisplayed*/
819
- 16 && h !== (h = "BalanceModalClose " + /*isModalDisplayed*/
820
- (x[4] ? "Open" : "")) && R(a, "class", h), z[0] & /*$_*/
821
- 256 && b !== (b = /*$_*/
822
- x[8]("Title") + "") && _e(D, b), z[0] & /*balances, formatBalance, getProductType, $_*/
823
- 5380) {
824
- W = ze(Object.keys(
825
- /*balances*/
826
- x[2]
827
- ));
828
- let j;
829
- for (j = 0; j < W.length; j += 1) {
830
- const Te = ot(x, 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
- x[8]("DepositButton") + "") && _e(ce, me), /*balancelimitsbutton*/
840
- x[0] === "true" ? F ? F.p(x, z) : (F = ct(x), F.c(), F.m(T, null)) : F && (F.d(1), F = null), z[0] & /*isModalDisplayed*/
841
- 16 && P !== (P = "ModalContent " + /*isModalDisplayed*/
842
- (x[4] ? "Open" : "")) && R(y, "class", P), z[0] & /*isModalDisplayed*/
843
- 16 && q !== (q = "BalanceModal " + /*isModalDisplayed*/
844
- (x[4] ? "Open" : "")) && R(s, "class", q), z[0] & /*isModalDisplayed*/
845
- 16 && ne !== (ne = "BalanceModalWrapper " + /*isModalDisplayed*/
846
- (x[4] ? "Open" : "")) && R(e, "class", ne);
847
- },
848
- d(x) {
849
- x && pe(e), dt(O, x), F && F.d(), le = !1, Et(ge);
850
- }
851
- };
852
- }
853
- function st(o) {
854
- let e, a, h = (
855
- /*$_*/
856
- o[8](
857
- /*k*/
858
- o[61]
859
- ) + ""
860
- ), d, s, y = (
861
- /*getProductType*/
862
- o[12](
863
- /*balance*/
864
- o[64]
865
- ) + ""
866
- ), f, w, b, 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"), d = Ae(h), s = fe(), f = Ae(y), w = fe(), b = V("p"), D = V("span"), I = Ae(U), R(a, "class", "BalanceModalText"), R(D, "class", "BalanceModalAmount"), R(b, "class", "BalanceModalValue"), R(e, "class", "BalanceModalRowLine");
876
- },
877
- m(S, T) {
878
- he(S, e, T), E(e, a), E(a, d), E(a, s), E(a, f), E(e, w), E(e, b), E(b, D), E(D, I);
879
- },
880
- p(S, T) {
881
- T[0] & /*$_, balances*/
882
- 260 && h !== (h = /*$_*/
883
- S[8](
884
- /*k*/
885
- S[61]
886
- ) + "") && _e(d, h), T[0] & /*balances*/
887
- 4 && y !== (y = /*getProductType*/
888
- S[12](
889
- /*balance*/
890
- S[64]
891
- ) + "") && _e(f, y), 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, h = ze(
905
- /*balances*/
906
- o[2][
907
- /*k*/
908
- o[61]
909
- ]
910
- ), d = [];
911
- for (let s = 0; s < h.length; s += 1)
912
- d[s] = st(it(o, h, s));
913
- return {
914
- c() {
915
- e = V("div");
916
- for (let s = 0; s < d.length; s += 1)
917
- d[s].c();
918
- a = fe(), R(e, "class", "BalanceModalRowBoth");
919
- },
920
- m(s, y) {
921
- he(s, e, y);
922
- for (let f = 0; f < d.length; f += 1)
923
- d[f] && d[f].m(e, null);
924
- E(e, a);
925
- },
926
- p(s, y) {
927
- if (y[0] & /*formatBalance, balances, getProductType, $_*/
928
- 5380) {
929
- h = ze(
930
- /*balances*/
931
- s[2][
932
- /*k*/
933
- s[61]
934
- ]
935
- );
936
- let f;
937
- for (f = 0; f < h.length; f += 1) {
938
- const w = it(s, h, f);
939
- d[f] ? d[f].p(w, y) : (d[f] = st(w), d[f].c(), d[f].m(e, a));
940
- }
941
- for (; f < d.length; f += 1)
942
- d[f].d(1);
943
- d.length = h.length;
944
- }
945
- },
946
- d(s) {
947
- s && pe(e), dt(d, s);
948
- }
949
- };
950
- }
951
- function ct(o) {
952
- let e, a = (
953
- /*$_*/
954
- o[8]("LimitsButton") + ""
955
- ), h, d, s;
956
- return {
957
- c() {
958
- e = V("button"), h = Ae(a), R(e, "class", "BalanceModalAction LimitsButton");
959
- },
960
- m(y, f) {
961
- he(y, e, f), E(e, h), d || (s = Ie(
962
- e,
963
- "click",
964
- /*click_handler_3*/
965
- o[35]
966
- ), d = !0);
967
- },
968
- p(y, f) {
969
- f[0] & /*$_*/
970
- 256 && a !== (a = /*$_*/
971
- y[8]("LimitsButton") + "") && _e(h, a);
972
- },
973
- d(y) {
974
- y && pe(e), d = !1, s();
975
- }
976
- };
977
- }
978
- function ut(o) {
979
- let e, a, h;
980
- return {
981
- c() {
982
- e = V("button"), R(e, "class", "ShowBalanceModalOverlay");
983
- },
984
- m(d, s) {
985
- he(d, e, s), a || (h = Ie(
986
- e,
987
- "click",
988
- /*click_handler_4*/
989
- o[36]
990
- ), a = !0);
991
- },
992
- p: qe,
993
- d(d) {
994
- d && pe(e), a = !1, h();
995
- }
996
- };
997
- }
998
- function Vt(o) {
999
- let e, a, h, d;
1000
- function s(b, D) {
1001
- return (
1002
- /*isLoading*/
1003
- b[3] ? zt : Ht
1004
- );
1005
- }
1006
- let y = s(o), f = y(o), w = (
1007
- /*showBalance*/
1008
- o[5] && ut(o)
1009
- );
1010
- return {
1011
- c() {
1012
- e = V("div"), a = V("div"), f.c(), d = fe(), w && w.c(), R(a, "class", h = "ShowBalance " + /*mobileView*/
1013
- (o[6] ? "Mobile" : ""));
1014
- },
1015
- m(b, D) {
1016
- he(b, e, D), E(e, a), f.m(a, null), E(e, d), w && w.m(e, null), o[37](e);
1017
- },
1018
- p(b, D) {
1019
- y === (y = s(b)) && f ? f.p(b, D) : (f.d(1), f = y(b), f && (f.c(), f.m(a, null))), D[0] & /*mobileView*/
1020
- 64 && h !== (h = "ShowBalance " + /*mobileView*/
1021
- (b[6] ? "Mobile" : "")) && R(a, "class", h), /*showBalance*/
1022
- b[5] ? w ? w.p(b, D) : (w = ut(b), w.c(), w.m(e, null)) : w && (w.d(1), w = null);
1023
- },
1024
- i: qe,
1025
- o: qe,
1026
- d(b) {
1027
- b && pe(e), f.d(), w && w.d(), o[37](null);
1028
- }
1029
- };
1030
- }
1031
- function Ut(o, e, a) {
1032
- let h;
1033
- _t(o, Nt, (t) => a(8, h = t));
1034
- let { userid: d = "" } = e, { session: s = "" } = e, { endpoint: y = "" } = e, { lang: f = "en" } = e, { mbsource: w = "" } = e, { clientstyling: b = "" } = 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, x = !1, z = !1, j = !1, Te = window.navigator.userAgent, ye, ue = "", J = [], re, Se = "0";
1035
- const c = {}, ae = ["totalCashAmount", "totalRealAmount"], De = () => {
1036
- fetch(U).then((t) => t.json()).then((t) => Object.keys(t).forEach((l) => at(l, t[l]))).catch((t) => console.log(t));
1037
- };
1038
- Object.keys(nt).forEach((t) => at(t, nt[t]));
1039
- const we = (t) => {
1040
- switch (t) {
1041
- case "balance":
1042
- window.postMessage(
1043
- {
1044
- type: "BalanceModalStatus",
1045
- status: "open"
1046
- },
1047
- window.location.href
1048
- ), a(5, z = !0), setTimeout(() => a(4, F = !0), 150);
1049
- break;
1050
- case "closebalance":
1051
- a(4, F = !1), window.postMessage(
1052
- {
1053
- type: "BalanceModalStatus",
1054
- status: "close"
1055
- },
1056
- window.location.href
1057
- ), setTimeout(
1058
- () => {
1059
- a(5, z = !1);
1060
- },
1061
- 150
1062
- );
1063
- break;
1064
- }
1065
- }, ke = (t) => {
1066
- if (le)
1067
- return Ve(t);
1068
- const l = Be || f, m = {
1069
- style: "currency",
1070
- currency: ue,
1071
- useGrouping: !0,
1072
- currencyDisplay: P || "code",
1073
- maximumFractionDigits: q === "" || isNaN(Number(q)) ? 2 : Number(q),
1074
- minimumFractionDigits: ne === "" || isNaN(Number(ne)) ? 0 : Number(ne)
1075
- };
1076
- return new Intl.NumberFormat(l, m).format(t);
1077
- }, Ve = (t) => {
1078
- const l = [];
1079
- let m = "";
1080
- for (const B of le)
1081
- switch (B) {
1082
- default:
1083
- m += B;
1084
- break;
1085
- case "{":
1086
- m && l.push(m), m = "";
1087
- break;
1088
- case "}":
1089
- const [A, C] = m.split("|");
1090
- if (m = "", A.toLowerCase() === "currency")
1091
- m = ue;
1092
- else if (A.toLowerCase() === "amount") {
1093
- let p = ",", G = ".", se = 2;
1094
- C && (C[0] !== " " && (p = C[0]), C[1] !== " " && (G = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (se = Number(C[2])));
1095
- let [ee, Ee] = String(Math.floor(t * Ke(10, se)) / Ke(10, se)).split(".");
1096
- m += ee[0];
1097
- for (let xe = 1; xe < ee.length; ++xe)
1098
- (ee.length - xe) % 3 === 0 ? m += p + ee[xe] : m += ee[xe];
1099
- let X = Ee || "";
1100
- const Ne = ge === "true", de = Number(q);
1101
- if (Ne)
1102
- X = X.padEnd(de || 2, "0").substring(0, de);
1103
- else if (!X)
1104
- break;
1105
- m += G + X;
1106
- }
1107
- m && l.push(m), m = "";
1108
- break;
1109
- }
1110
- return l.push(m), l.join("");
1111
- }, Ue = () => et(this, null, function* () {
1112
- var l, m, B;
1113
- a(3, O = !0);
1114
- const t = new URL(`${y}/v1/player/${d}/account`);
1115
- try {
1116
- const A = yield fetch(t, {
1117
- method: "GET",
1118
- headers: { "X-SessionID": s }
1119
- }), C = yield A.json();
1120
- if (A.ok)
1121
- window.postMessage({ type: "BalancedFetched" }, window.location.href), J = C.items, ue = (l = J.find((p) => p.displayName === "Casino")) == null ? void 0 : l.currency, a(2, c.Total = [{ amount: C.totalAmount[ue] }], c), a(
1122
- 2,
1123
- c.Real = [
1124
- {
1125
- amount: (m = J.find((p) => p.displayName === "Casino")) == null ? void 0 : m.balanceAmount
1126
- }
1127
- ],
1128
- c
1129
- ), a(
1130
- 2,
1131
- c.Bonus = [
1132
- {
1133
- amount: (B = J.find((p) => p.displayName === "UBS")) == null ? void 0 : B.balanceAmount
1134
- }
1135
- ],
1136
- c
1137
- );
1138
- else
1139
- throw new Error("Failed to fetch balance data !");
1140
- } catch (A) {
1141
- console.log("Balance error: ", A);
1142
- } finally {
1143
- a(3, O = !1);
1144
- }
1145
- }), Pe = () => {
1146
- a(3, O = !0);
1147
- const t = new URL(`${y}/v2/player/${d}/balance`), l = new Headers();
1148
- l.append("X-SessionID", s), fetch(t, { method: "GET", headers: l }).then((B) => B.json()).then((B) => {
1149
- B[T] || a(13, T = ae[0]);
1150
- const A = B.items.find((p) => p.type === "Real" && p.walletAccountType === "Ordinary");
1151
- if (ue = A.currency, x = !!A.productType, a(2, c.Total = [{ amount: 0 }], c), a(2, c.Real = [], c), a(2, c.Bonus = [], c), a(2, c.Credit = [], c), !x) {
1152
- re = {
1153
- lastOrdinaryAfterAmount: 0,
1154
- showCreditLineAfterAmount: !1
1155
- }, a(2, c.Total[0].amount = B[T][ue], c);
1156
- for (const p of B.items)
1157
- switch (p.type) {
1158
- case "Bonus":
1159
- c.Bonus.length === 0 ? c.Bonus.push({ amount: p.amount }) : a(2, c.Bonus[0].amount += p.amount, c);
1160
- break;
1161
- case "Real":
1162
- if (p.creditLine && c.Credit.length === 0 && c.Credit.push({ amount: p.creditLine }), T === "totalRealAmount")
1163
- continue;
1164
- c.Real.length === 0 ? c.Real.push({ amount: p.amount }) : a(2, c.Real[0].amount += p.amount, c);
1165
- break;
1166
- }
1167
- for (const [p, G] of Object.entries(c))
1168
- G.length < 1 && delete c[p];
1169
- a(3, O = !1);
1170
- return;
1171
- }
1172
- re = {
1173
- Casino: {
1174
- lastOrdinaryAfterAmount: 0,
1175
- showCreditLineAfterAmount: !1
1176
- },
1177
- Sports: {
1178
- lastOrdinaryAfterAmount: 0,
1179
- showCreditLineAfterAmount: !1
1180
- }
1181
- };
1182
- let C = B.items;
1183
- S && S !== "All" && (C = B.items.filter((p) => p.productType === S));
1184
- for (const p of C) {
1185
- let G;
1186
- switch (p.type) {
1187
- case "Bonus":
1188
- G = c.Bonus.findIndex((se) => se.productType === p.productType), G > 0 ? a(2, c.Bonus[G].amount += p.amount, c) : c.Bonus.push({
1189
- amount: p.amount,
1190
- productType: p.productType
1191
- });
1192
- break;
1193
- case "Real":
1194
- p.creditLine && c.Credit.push({
1195
- amount: p.creditLine,
1196
- productType: p.productType
1197
- }), G = c.Real.findIndex((se) => se.productType === p.productType), G > 0 ? a(2, c.Real[G].amount += p.amount, c) : c.Real.push({
1198
- amount: p.amount,
1199
- productType: p.productType
1200
- });
1201
- break;
1202
- }
1203
- }
1204
- je();
1205
- for (const [p, G] of Object.entries(c))
1206
- G.length < 1 && delete c[p];
1207
- window.postMessage({ type: "playerBalanceInfo", balance: B }, window.location.href), a(3, O = !1);
1208
- }).catch((B) => {
1209
- throw a(3, O = !1), console.log("Balance fetch error", B), new Error("Failed to fetch balance data!");
1210
- });
1211
- }, Le = () => {
1212
- if (ye && ye.close(), s.length < 1)
1213
- return;
1214
- let t, l;
1215
- switch (I) {
1216
- case "gm16":
1217
- t = new URL(`${y}/v2/player/${d}/information/updates`), l = (A) => Ge(A);
1218
- break;
1219
- case "gmcore":
1220
- t = new URL(`${y}/v1/player/${d}/balance/updates`), l = (A) => Ce(A);
1221
- break;
1222
- }
1223
- const m = {
1224
- accept: "text/event-stream",
1225
- "X-SessionId": s
1226
- }, B = new It.EventSourcePolyfill(t, { headers: m });
1227
- ye = B, B.addEventListener("message", l);
1228
- }, Re = (t) => {
1229
- let l;
1230
- try {
1231
- l = JSON.parse(t);
1232
- } catch (m) {
1233
- console.log("Balance stream failed: ", m);
1234
- return;
1235
- }
1236
- return l;
1237
- }, Ce = (t) => {
1238
- var A, C;
1239
- const l = Re(t.data);
1240
- if (!l) {
1241
- Le();
1242
- return;
1243
- }
1244
- let m = "0";
1245
- const B = l.balanceChange;
1246
- J = J.map((p) => (B && B[p.id] && (p = $e(Ze({}, p), {
1247
- balanceAmount: B[p.id].afterAmount
1248
- })), m = (parseFloat(p == null ? void 0 : p.balanceAmount) + parseFloat(m)).toString(), p)), a(2, c.Real = [{ amount: (A = J[0]) == null ? void 0 : A.balanceAmount }], c), a(2, c.Bonus = [{ amount: (C = J[1]) == null ? void 0 : C.balanceAmount }], c), a(2, c.Total = [{ amount: Number(m) }], c);
1249
- }, $ = (t, l, m) => {
1250
- let B = null;
1251
- switch (m.walletAccountType) {
1252
- case "Ordinary":
1253
- (m.afterAmount !== m.affectedAmount || l.lastOrdinaryAfterAmount === 0) && (l.lastOrdinaryAfterAmount = m.afterAmount, l.showCreditLineAfterAmount || (B = m.afterAmount));
1254
- break;
1255
- case "CreditLine":
1256
- m.afterAmount !== 0 ? (B = m.afterAmount, l.showCreditLineAfterAmount = !0) : (B = l.lastOrdinaryAfterAmount, l.showCreditLineAfterAmount = !1);
1257
- break;
1258
- default:
1259
- B = m.afterAmount;
1260
- }
1261
- return B === null ? t : B;
1262
- }, je = () => {
1263
- switch (T) {
1264
- case "totalCashAmount":
1265
- let t = 0;
1266
- for (const m of ["Real", "Bonus"])
1267
- for (const B of c[m])
1268
- t += Math.max(B.amount, 0);
1269
- a(2, c.Total[0].amount = t, c);
1270
- break;
1271
- case "totalRealAmount":
1272
- if (!x)
1273
- return;
1274
- let l = 0;
1275
- for (const m of c.Real)
1276
- l += m.amount;
1277
- a(2, c.Total[0].amount = l, c);
1278
- }
1279
- }, Ge = (t) => {
1280
- const l = Re(t.data);
1281
- if (!l) {
1282
- Le();
1283
- return;
1284
- }
1285
- if (He(l == null ? void 0 : l.type) || l.type !== "BALANCE_UPDATE_V2")
1286
- return;
1287
- const m = l.body.balanceChange;
1288
- for (const [B, A] of Object.entries(m))
1289
- if (T === "totalRealAmount" && B === "Real" && !x && a(2, c.Total[0].amount = $(c.Total[0].amount, re, A), c), !!c[B])
1290
- for (const C of c[B]) {
1291
- if (!x) {
1292
- C.amount = B === "Real" ? $(C.amount, re, A) : A.afterAmount;
1293
- continue;
1294
- }
1295
- A.productType === C.productType && (C.amount = B === "Real" ? $(C.amount, re[C.productType], A) : A.afterAmount);
1296
- }
1297
- je();
1298
- }, Oe = (t) => {
1299
- switch (we("closebalance"), t) {
1300
- case "deposit":
1301
- window.postMessage({ type: "GoToDeposit" }, window.location.href);
1302
- break;
1303
- case "limits":
1304
- window.postMessage({ type: "GoToLimits" }, window.location.href);
1305
- break;
1306
- }
1307
- typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1308
- }, He = (t) => t === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, n = () => {
1309
- 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]));
1310
- }, r = () => {
1311
- switch (Ft(f), n(), I) {
1312
- case "gmcore":
1313
- Ue();
1314
- break;
1315
- case "gm16":
1316
- Pe();
1317
- break;
1318
- default:
1319
- throw Error(`Invalid apiversion attribute: ${I}`);
1320
- }
1321
- }, u = (t) => {
1322
- const { data: { type: l } = {} } = t || {};
1323
- switch (l) {
1324
- case "LogoutSuccessfull":
1325
- ye.close();
1326
- break;
1327
- case "CloseBalance":
1328
- we("closebalance");
1329
- break;
1330
- }
1331
- }, i = () => {
1332
- window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
1333
- }, v = (t) => {
1334
- const l = ce.split(",").map((m) => m.trim());
1335
- return !t.productType || l.includes(t.productType) ? "" : h(t.productType);
1336
- };
1337
- At(() => (window.addEventListener("message", u, !1), a(6, j = Lt(Te)), () => {
1338
- window.removeEventListener("message", u), ye && ye.close();
1339
- }));
1340
- const g = () => we("balance"), _ = () => we("closebalance"), N = () => Oe("deposit"), L = () => Oe("limits"), M = () => we("closebalance");
1341
- function k(t) {
1342
- xt[t ? "unshift" : "push"](() => {
1343
- W = t, a(1, W);
1344
- });
1345
- }
1346
- return o.$$set = (t) => {
1347
- "userid" in t && a(14, d = t.userid), "session" in t && a(15, s = t.session), "endpoint" in t && a(16, y = t.endpoint), "lang" in t && a(17, f = t.lang), "mbsource" in t && a(18, w = t.mbsource), "clientstyling" in t && a(19, b = 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);
1348
- }, o.$$.update = () => {
1349
- o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1350
- 12828672 && y && d && s && f && I && S && r(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1351
- 4308992 && y && d && s && I && Le(), o.$$.dirty[0] & /*translationurl*/
1352
- 2097152 && U && De(), o.$$.dirty[0] & /*balances*/
1353
- 4 && c.Total && i(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1354
- 524290 && b && W && Mt(W, b), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1355
- 1048578 && D && W && Dt(W, D), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
1356
- 262146 && w && W && kt(W, `${w}.Style`), o.$$.dirty[0] & /*primarybalancemode, balances*/
1357
- 16777220 && a(7, Se = (() => {
1358
- switch (H) {
1359
- case "Real":
1360
- return c.Real ? ke(c.Real[0].amount) : "0";
1361
- default:
1362
- return c.Total ? ke(c.Total[0].amount) : "0";
1363
- }
1364
- })());
1365
- }, [
1366
- me,
1367
- W,
1368
- c,
1369
- O,
1370
- F,
1371
- z,
1372
- j,
1373
- Se,
1374
- h,
1375
- we,
1376
- ke,
1377
- Oe,
1378
- v,
1379
- T,
1380
- d,
1381
- s,
1382
- y,
1383
- f,
1384
- w,
1385
- b,
1386
- D,
1387
- U,
1388
- I,
1389
- S,
1390
- H,
1391
- ce,
1392
- Be,
1393
- P,
1394
- q,
1395
- ne,
1396
- le,
1397
- ge,
1398
- g,
1399
- _,
1400
- N,
1401
- L,
1402
- M,
1403
- k
1404
- ];
1405
- }
1406
- class Pt extends Bt {
1407
- constructor(e) {
1408
- super(), Tt(
1409
- this,
1410
- e,
1411
- Ut,
1412
- Vt,
1413
- St,
1414
- {
1415
- userid: 14,
1416
- session: 15,
1417
- endpoint: 16,
1418
- lang: 17,
1419
- mbsource: 18,
1420
- clientstyling: 19,
1421
- clientstylingurl: 20,
1422
- translationurl: 21,
1423
- gmversion: 22,
1424
- displaybalanceoption: 23,
1425
- totalcalculationmode: 13,
1426
- primarybalancemode: 24,
1427
- balancelimitsbutton: 0,
1428
- hideproducttype: 25,
1429
- currencylocale: 26,
1430
- currencydisplay: 27,
1431
- maximumfractiondigits: 28,
1432
- minimumfractiondigits: 29,
1433
- customdisplayformat: 30,
1434
- alwaysshowdecimals: 31
1435
- },
1436
- jt,
1437
- [-1, -1, -1]
1438
- );
1439
- }
1440
- get userid() {
1441
- return this.$$.ctx[14];
1442
- }
1443
- set userid(e) {
1444
- this.$$set({ userid: e }), K();
1445
- }
1446
- get session() {
1447
- return this.$$.ctx[15];
1448
- }
1449
- set session(e) {
1450
- this.$$set({ session: e }), K();
1451
- }
1452
- get endpoint() {
1453
- return this.$$.ctx[16];
1454
- }
1455
- set endpoint(e) {
1456
- this.$$set({ endpoint: e }), K();
1457
- }
1458
- get lang() {
1459
- return this.$$.ctx[17];
1460
- }
1461
- set lang(e) {
1462
- this.$$set({ lang: e }), K();
1463
- }
1464
- get mbsource() {
1465
- return this.$$.ctx[18];
1466
- }
1467
- set mbsource(e) {
1468
- this.$$set({ mbsource: e }), K();
1469
- }
1470
- get clientstyling() {
1471
- return this.$$.ctx[19];
1472
- }
1473
- set clientstyling(e) {
1474
- this.$$set({ clientstyling: e }), K();
1475
- }
1476
- get clientstylingurl() {
1477
- return this.$$.ctx[20];
1478
- }
1479
- set clientstylingurl(e) {
1480
- this.$$set({ clientstylingurl: e }), K();
1481
- }
1482
- get translationurl() {
1483
- return this.$$.ctx[21];
1484
- }
1485
- set translationurl(e) {
1486
- this.$$set({ translationurl: e }), K();
1487
- }
1488
- get gmversion() {
1489
- return this.$$.ctx[22];
1490
- }
1491
- set gmversion(e) {
1492
- this.$$set({ gmversion: e }), K();
1493
- }
1494
- get displaybalanceoption() {
1495
- return this.$$.ctx[23];
1496
- }
1497
- set displaybalanceoption(e) {
1498
- this.$$set({ displaybalanceoption: e }), K();
1499
- }
1500
- get totalcalculationmode() {
1501
- return this.$$.ctx[13];
1502
- }
1503
- set totalcalculationmode(e) {
1504
- this.$$set({ totalcalculationmode: e }), K();
1505
- }
1506
- get primarybalancemode() {
1507
- return this.$$.ctx[24];
1508
- }
1509
- set primarybalancemode(e) {
1510
- this.$$set({ primarybalancemode: e }), K();
1511
- }
1512
- get balancelimitsbutton() {
1513
- return this.$$.ctx[0];
1514
- }
1515
- set balancelimitsbutton(e) {
1516
- this.$$set({ balancelimitsbutton: e }), K();
1517
- }
1518
- get hideproducttype() {
1519
- return this.$$.ctx[25];
1520
- }
1521
- set hideproducttype(e) {
1522
- this.$$set({ hideproducttype: e }), K();
1523
- }
1524
- get currencylocale() {
1525
- return this.$$.ctx[26];
1526
- }
1527
- set currencylocale(e) {
1528
- this.$$set({ currencylocale: e }), K();
1529
- }
1530
- get currencydisplay() {
1531
- return this.$$.ctx[27];
1532
- }
1533
- set currencydisplay(e) {
1534
- this.$$set({ currencydisplay: e }), K();
1535
- }
1536
- get maximumfractiondigits() {
1537
- return this.$$.ctx[28];
1538
- }
1539
- set maximumfractiondigits(e) {
1540
- this.$$set({ maximumfractiondigits: e }), K();
1541
- }
1542
- get minimumfractiondigits() {
1543
- return this.$$.ctx[29];
1544
- }
1545
- set minimumfractiondigits(e) {
1546
- this.$$set({ minimumfractiondigits: e }), K();
1547
- }
1548
- get customdisplayformat() {
1549
- return this.$$.ctx[30];
1550
- }
1551
- set customdisplayformat(e) {
1552
- this.$$set({ customdisplayformat: e }), K();
1553
- }
1554
- get alwaysshowdecimals() {
1555
- return this.$$.ctx[31];
1556
- }
1557
- set alwaysshowdecimals(e) {
1558
- this.$$set({ alwaysshowdecimals: e }), K();
1559
- }
1560
- }
1561
- Ot(Pt, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, primarybalancemode: {}, balancelimitsbutton: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {}, alwaysshowdecimals: {} }, [], [], !0);
1562
- export {
1563
- Pt as default
1564
- };