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