@everymatrix/casino-header-controller 1.64.8 → 1.65.0
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-BMkeLxFw.js → CasinoHamburgerMenu-B1dY3jHB.js} +886 -907
- package/components/CasinoHamburgerMenu-CaFkIr3d.cjs +21 -0
- package/components/{CasinoHamburgerMenu-CTVc2-UF.js → CasinoHamburgerMenu-pBvrxlJy.js} +830 -851
- package/components/CasinoHeaderController-B0cFJgaJ.cjs +13 -0
- package/components/CasinoHeaderController-Bn2AwIyI.js +3246 -0
- package/components/CasinoHeaderController-DOdeXoey.js +3223 -0
- package/components/{CasinoSlider-Deb0x84t.js → CasinoSlider-BEx_hpVM.js} +88 -88
- package/components/{CasinoSlider-CTcAOyCp.js → CasinoSlider-CKGPxibK.js} +57 -57
- package/components/{CasinoSlider-DqTtsMWh.cjs → CasinoSlider-CL_Uac-c.cjs} +1 -1
- package/components/PlayerAccountBalanceModal-BKMugmnm.js +1539 -0
- package/components/PlayerAccountBalanceModal-CK68FRSV.js +1510 -0
- package/components/PlayerAccountBalanceModal-iP2HDeoz.cjs +13 -0
- package/components/PlayerDeposit-BsUiL_LS.cjs +1 -0
- package/components/{PlayerDeposit-BZuTQSyp.js → PlayerDeposit-Byf7G3yu.js} +72 -72
- package/components/{PlayerDeposit-eY_YGhMJ.js → PlayerDeposit-C-Fbg92q.js} +72 -72
- 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/app-globals-0f993ce5-B6nNHmA4.js +7 -0
- package/stencil/app-globals-0f993ce5-DgOnOgxM.cjs +1 -0
- package/stencil/gamification-dropdown-8eb8a896-BXV0d81L.cjs +1 -0
- package/stencil/gamification-dropdown-8eb8a896-CxTBD8Oq.js +144 -0
- package/stencil/gamification-dropdown-8eb8a896-DsjvIRRh.js +126 -0
- package/stencil/gamification-dropdown-C_xYxEL8.js +7 -0
- package/stencil/gamification-dropdown-DG0vAJtO.js +25 -0
- package/stencil/gamification-dropdown-DUk8bbFT.cjs +1 -0
- package/stencil/gamification-dropdown_4-Be_N4EeF.js +451 -0
- package/stencil/gamification-dropdown_4-DuMaGjcI.cjs +192 -0
- package/stencil/gamification-dropdown_4-zImC9hF9.js +469 -0
- package/stencil/index-1ef3a64c-C31PLQx3.js +572 -0
- package/stencil/index-1ef3a64c-CkoGfMtU.cjs +1 -0
- package/stencil/index-1ef3a64c-WzZ9mlMM.js +556 -0
- package/stencil/index-71b1bdfa-Dm7yvsrK.js +784 -0
- package/stencil/index-71b1bdfa-DzyepuUf.js +757 -0
- package/stencil/index-71b1bdfa-urw3SgKF.cjs +1 -0
- package/stencil/locale-DHn5ZpQu.cjs +1 -0
- package/stencil/locale-DuSXBQwH.js +215 -0
- package/stencil/player-elevate-card-C6V7VROS.cjs +64 -0
- package/stencil/player-elevate-card-Cmxvkrge.js +106 -0
- package/stencil/player-elevate-card-DL6XwNnq.js +106 -0
- package/stencil/player-elevate-card-items-66be34fb-BUkxBwF8.js +1292 -0
- package/stencil/player-elevate-card-items-66be34fb-BjQeJ-p9.js +1292 -0
- package/stencil/player-elevate-card-items-66be34fb-DeUY02M2.cjs +1 -0
- package/stencil/player-elevate-pointcard-CbCIvh8I.cjs +1 -0
- package/stencil/player-elevate-pointcard-DYOUbwi3.js +44 -0
- package/stencil/player-elevate-pointcard-dDiPwAiV.js +44 -0
- package/stencil/player-rakeback-card-BMHeEc3P.cjs +1 -0
- package/stencil/player-rakeback-card-CixEJCwY.js +137 -0
- package/stencil/player-rakeback-card-CxD8OOP-.js +111 -0
- package/stencil/{user-deposit-withdrawal-4aK-1zzW.js → user-deposit-withdrawal-CXMt1MVo.js} +2 -2
- package/stencil/user-deposit-withdrawal-Ck524nr-.cjs +68 -0
- package/stencil/{user-deposit-withdrawal-BhsnZiSd.js → user-deposit-withdrawal-DU6VQt9M.js} +2 -2
- package/components/CasinoHamburgerMenu-CrZ5l9tM.cjs +0 -21
- package/components/CasinoHeaderController-BIefUWQL.js +0 -3114
- package/components/CasinoHeaderController-DSyglpDF.cjs +0 -13
- package/components/CasinoHeaderController-KfLekr0Q.js +0 -3137
- package/components/PlayerAccountBalanceModal-BFDpI9Sy.cjs +0 -13
- package/components/PlayerAccountBalanceModal-CNXuqjqU.js +0 -1539
- package/components/PlayerAccountBalanceModal-DbULiu-f.js +0 -1510
- package/components/PlayerDeposit-BXwT7NVp.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-1ef3a64c-B6t9gkO1.js +0 -556
- package/stencil/index-1ef3a64c-BdrVNGQe.cjs +0 -1
- package/stencil/index-1ef3a64c-BfGbBN_r.js +0 -572
- package/stencil/user-deposit-withdrawal-HQmDGKFu.cjs +0 -68
@@ -0,0 +1,1510 @@
|
|
1
|
+
import { b as ct, $ as ut, O as dt, S as ft, i as pt, f as K, c as ht, s as mt, d as gt, g as N, e as ae, x as U, j as he, y as A, n as Ke, k as me, l as yt, o as vt, m as bt, z as Ve, q as wt, t as Bt, u as Ct, w as fe, E as Tt, A as pe, v as je, B as rt, C as St, G as _t } from "./CasinoHamburgerMenu-pBvrxlJy.js";
|
2
|
+
function Qe(o, e) {
|
3
|
+
ct(o, e);
|
4
|
+
}
|
5
|
+
function At(o) {
|
6
|
+
ut.set(o);
|
7
|
+
}
|
8
|
+
const Ze = {
|
9
|
+
en: {
|
10
|
+
Title: "Your Balance",
|
11
|
+
Total: "Total Balance",
|
12
|
+
Real: "Cash Balance",
|
13
|
+
Bonus: "Bonus Balance",
|
14
|
+
Credit: "Credit Balance",
|
15
|
+
Casino: "Casino",
|
16
|
+
Sports: "Sports",
|
17
|
+
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 We = { exports: {} };
|
209
|
+
/** @license
|
210
|
+
* eventsource.js
|
211
|
+
* Available under MIT License (MIT)
|
212
|
+
* https://github.com/Yaffle/EventSource/
|
213
|
+
*/
|
214
|
+
(function(o, e) {
|
215
|
+
(function(n) {
|
216
|
+
var r = n.setTimeout, l = n.clearTimeout, c = n.XMLHttpRequest, m = n.XDomainRequest, p = n.ActiveXObject, g = n.EventSource, y = n.document, x = n.Promise, F = n.fetch, C = n.Response, T = n.TextDecoder, _ = n.TextEncoder, P = n.AbortController;
|
217
|
+
if (typeof window < "u" && typeof y < "u" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(t) {
|
218
|
+
y.readyState = "complete";
|
219
|
+
}, !1)), c == null && p != null && (c = function() {
|
220
|
+
return new p("Microsoft.XMLHTTP");
|
221
|
+
}), Object.create == null && (Object.create = function(t) {
|
222
|
+
function a() {
|
223
|
+
}
|
224
|
+
return a.prototype = t, new a();
|
225
|
+
}), Date.now || (Date.now = function() {
|
226
|
+
return (/* @__PURE__ */ new Date()).getTime();
|
227
|
+
}), P == null) {
|
228
|
+
var M = F;
|
229
|
+
F = function(t, a) {
|
230
|
+
var s = a.signal;
|
231
|
+
return M(t, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(i) {
|
232
|
+
var d = i.body.getReader();
|
233
|
+
return s._reader = d, s._aborted && s._reader.cancel(), {
|
234
|
+
status: i.status,
|
235
|
+
statusText: i.statusText,
|
236
|
+
headers: i.headers,
|
237
|
+
body: {
|
238
|
+
getReader: function() {
|
239
|
+
return d;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
};
|
243
|
+
});
|
244
|
+
}, P = 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 j() {
|
254
|
+
this.bitsNeeded = 0, this.codePoint = 0;
|
255
|
+
}
|
256
|
+
j.prototype.decode = function(t) {
|
257
|
+
function a(E, L, v) {
|
258
|
+
if (v === 1)
|
259
|
+
return E >= 128 >> L && E << L <= 2047;
|
260
|
+
if (v === 2)
|
261
|
+
return E >= 2048 >> L && E << L <= 55295 || E >= 57344 >> L && E << L <= 65535;
|
262
|
+
if (v === 3)
|
263
|
+
return E >= 65536 >> L && E << L <= 1114111;
|
264
|
+
throw new Error();
|
265
|
+
}
|
266
|
+
function s(E, L) {
|
267
|
+
if (E === 6 * 1)
|
268
|
+
return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
|
269
|
+
if (E === 6 * 2)
|
270
|
+
return L > 15 ? 3 : 2;
|
271
|
+
if (E === 6 * 3)
|
272
|
+
return 3;
|
273
|
+
throw new Error();
|
274
|
+
}
|
275
|
+
for (var i = 65533, d = "", h = this.bitsNeeded, b = this.codePoint, O = 0; O < t.length; O += 1) {
|
276
|
+
var S = t[O];
|
277
|
+
h !== 0 && (S < 128 || S > 191 || !a(b << 6 | S & 63, h - 6, s(h, b))) && (h = 0, b = i, d += String.fromCharCode(b)), h === 0 ? (S >= 0 && S <= 127 ? (h = 0, b = S) : S >= 192 && S <= 223 ? (h = 6 * 1, b = S & 31) : S >= 224 && S <= 239 ? (h = 6 * 2, b = S & 15) : S >= 240 && S <= 247 ? (h = 6 * 3, b = S & 7) : (h = 0, b = i), h !== 0 && !a(b, h, s(h, b)) && (h = 0, b = i)) : (h -= 6, b = b << 6 | S & 63), h === 0 && (b <= 65535 ? d += String.fromCharCode(b) : (d += String.fromCharCode(55296 + (b - 65535 - 1 >> 10)), d += String.fromCharCode(56320 + (b - 65535 - 1 & 1023))));
|
278
|
+
}
|
279
|
+
return this.bitsNeeded = h, this.codePoint = b, d;
|
280
|
+
};
|
281
|
+
var $ = function() {
|
282
|
+
try {
|
283
|
+
return new T().decode(new _().encode("test"), { stream: !0 }) === "test";
|
284
|
+
} catch (t) {
|
285
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + t);
|
286
|
+
}
|
287
|
+
return !1;
|
288
|
+
};
|
289
|
+
(T == null || _ == null || !$()) && (T = j);
|
290
|
+
var w = function() {
|
291
|
+
};
|
292
|
+
function R(t) {
|
293
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = w, this.onload = w, this.onerror = w, this.onreadystatechange = w, this._contentType = "", this._xhr = t, this._sendTimeout = 0, this._abort = w;
|
294
|
+
}
|
295
|
+
R.prototype.open = function(t, a) {
|
296
|
+
this._abort(!0);
|
297
|
+
var s = this, i = this._xhr, d = 1, h = 0;
|
298
|
+
this._abort = function(v) {
|
299
|
+
s._sendTimeout !== 0 && (l(s._sendTimeout), s._sendTimeout = 0), (d === 1 || d === 2 || d === 3) && (d = 4, i.onload = w, i.onerror = w, i.onabort = w, i.onprogress = w, i.onreadystatechange = w, i.abort(), h !== 0 && (l(h), h = 0), v || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), d = 0;
|
300
|
+
};
|
301
|
+
var b = function() {
|
302
|
+
if (d === 1) {
|
303
|
+
var v = 0, k = "", le = void 0;
|
304
|
+
if ("contentType" in i)
|
305
|
+
v = 200, k = "OK", le = i.contentType;
|
306
|
+
else
|
307
|
+
try {
|
308
|
+
v = i.status, k = i.statusText, le = i.getResponseHeader("Content-Type");
|
309
|
+
} catch {
|
310
|
+
v = 0, k = "", le = void 0;
|
311
|
+
}
|
312
|
+
v !== 0 && (d = 2, s.readyState = 2, s.status = v, s.statusText = k, s._contentType = le, s.onreadystatechange());
|
313
|
+
}
|
314
|
+
}, O = function() {
|
315
|
+
if (b(), d === 2 || d === 3) {
|
316
|
+
d = 3;
|
317
|
+
var v = "";
|
318
|
+
try {
|
319
|
+
v = i.responseText;
|
320
|
+
} catch {
|
321
|
+
}
|
322
|
+
s.readyState = 3, s.responseText = v, s.onprogress();
|
323
|
+
}
|
324
|
+
}, S = function(v, k) {
|
325
|
+
if ((k == null || k.preventDefault == null) && (k = {
|
326
|
+
preventDefault: w
|
327
|
+
}), O(), d === 1 || d === 2 || d === 3) {
|
328
|
+
if (d = 4, h !== 0 && (l(h), h = 0), s.readyState = 4, v === "load")
|
329
|
+
s.onload(k);
|
330
|
+
else if (v === "error")
|
331
|
+
s.onerror(k);
|
332
|
+
else if (v === "abort")
|
333
|
+
s.onabort(k);
|
334
|
+
else
|
335
|
+
throw new TypeError();
|
336
|
+
s.onreadystatechange();
|
337
|
+
}
|
338
|
+
}, E = function(v) {
|
339
|
+
i != null && (i.readyState === 4 ? (!("onload" in i) || !("onerror" in i) || !("onabort" in i)) && S(i.responseText === "" ? "error" : "load", v) : i.readyState === 3 ? "onprogress" in i || O() : i.readyState === 2 && b());
|
340
|
+
}, L = function() {
|
341
|
+
h = r(function() {
|
342
|
+
L();
|
343
|
+
}, 500), i.readyState === 3 && O();
|
344
|
+
};
|
345
|
+
"onload" in i && (i.onload = function(v) {
|
346
|
+
S("load", v);
|
347
|
+
}), "onerror" in i && (i.onerror = function(v) {
|
348
|
+
S("error", v);
|
349
|
+
}), "onabort" in i && (i.onabort = function(v) {
|
350
|
+
S("abort", v);
|
351
|
+
}), "onprogress" in i && (i.onprogress = O), "onreadystatechange" in i && (i.onreadystatechange = function(v) {
|
352
|
+
E(v);
|
353
|
+
}), ("contentType" in i || !("ontimeout" in c.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(t, a, !0), "readyState" in i && (h = r(function() {
|
354
|
+
L();
|
355
|
+
}, 0));
|
356
|
+
}, R.prototype.abort = function() {
|
357
|
+
this._abort(!1);
|
358
|
+
}, R.prototype.getResponseHeader = function(t) {
|
359
|
+
return this._contentType;
|
360
|
+
}, R.prototype.setRequestHeader = function(t, a) {
|
361
|
+
var s = this._xhr;
|
362
|
+
"setRequestHeader" in s && s.setRequestHeader(t, a);
|
363
|
+
}, R.prototype.getAllResponseHeaders = function() {
|
364
|
+
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
365
|
+
}, R.prototype.send = function() {
|
366
|
+
if ((!("ontimeout" in c.prototype) || !("sendAsBinary" in c.prototype) && !("mozAnon" in c.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
|
367
|
+
var t = this;
|
368
|
+
t._sendTimeout = r(function() {
|
369
|
+
t._sendTimeout = 0, t.send();
|
370
|
+
}, 4);
|
371
|
+
return;
|
372
|
+
}
|
373
|
+
var a = this._xhr;
|
374
|
+
"withCredentials" in a && (a.withCredentials = this.withCredentials);
|
375
|
+
try {
|
376
|
+
a.send(void 0);
|
377
|
+
} catch (s) {
|
378
|
+
throw s;
|
379
|
+
}
|
380
|
+
};
|
381
|
+
function H(t) {
|
382
|
+
return t.replace(/[A-Z]/g, function(a) {
|
383
|
+
return String.fromCharCode(a.charCodeAt(0) + 32);
|
384
|
+
});
|
385
|
+
}
|
386
|
+
function D(t) {
|
387
|
+
for (var a = /* @__PURE__ */ Object.create(null), s = t.split(`\r
|
388
|
+
`), i = 0; i < s.length; i += 1) {
|
389
|
+
var d = s[i], h = d.split(": "), b = h.shift(), O = h.join(": ");
|
390
|
+
a[H(b)] = O;
|
391
|
+
}
|
392
|
+
this._map = a;
|
393
|
+
}
|
394
|
+
D.prototype.get = function(t) {
|
395
|
+
return this._map[H(t)];
|
396
|
+
}, c != null && c.HEADERS_RECEIVED == null && (c.HEADERS_RECEIVED = 2);
|
397
|
+
function ee() {
|
398
|
+
}
|
399
|
+
ee.prototype.open = function(t, a, s, i, d, h, b) {
|
400
|
+
t.open("GET", d);
|
401
|
+
var O = 0;
|
402
|
+
t.onprogress = function() {
|
403
|
+
var E = t.responseText, L = E.slice(O);
|
404
|
+
O += L.length, s(L);
|
405
|
+
}, t.onerror = function(E) {
|
406
|
+
E.preventDefault(), i(new Error("NetworkError"));
|
407
|
+
}, t.onload = function() {
|
408
|
+
i(null);
|
409
|
+
}, t.onabort = function() {
|
410
|
+
i(null);
|
411
|
+
}, t.onreadystatechange = function() {
|
412
|
+
if (t.readyState === c.HEADERS_RECEIVED) {
|
413
|
+
var E = t.status, L = t.statusText, v = t.getResponseHeader("Content-Type"), k = t.getAllResponseHeaders();
|
414
|
+
a(E, L, v, new D(k));
|
415
|
+
}
|
416
|
+
}, t.withCredentials = h;
|
417
|
+
for (var S in b)
|
418
|
+
Object.prototype.hasOwnProperty.call(b, S) && t.setRequestHeader(S, b[S]);
|
419
|
+
return t.send(), t;
|
420
|
+
};
|
421
|
+
function ie(t) {
|
422
|
+
this._headers = t;
|
423
|
+
}
|
424
|
+
ie.prototype.get = function(t) {
|
425
|
+
return this._headers.get(t);
|
426
|
+
};
|
427
|
+
function ge() {
|
428
|
+
}
|
429
|
+
ge.prototype.open = function(t, a, s, i, d, h, b) {
|
430
|
+
var O = null, S = new P(), E = S.signal, L = new T();
|
431
|
+
return F(d, {
|
432
|
+
headers: b,
|
433
|
+
credentials: h ? "include" : "same-origin",
|
434
|
+
signal: E,
|
435
|
+
cache: "no-store"
|
436
|
+
}).then(function(v) {
|
437
|
+
return O = v.body.getReader(), a(v.status, v.statusText, v.headers.get("Content-Type"), new ie(v.headers)), new x(function(k, le) {
|
438
|
+
var Me = function() {
|
439
|
+
O.read().then(function(J) {
|
440
|
+
if (J.done)
|
441
|
+
k(void 0);
|
442
|
+
else {
|
443
|
+
var G = L.decode(J.value, { stream: !0 });
|
444
|
+
s(G), Me();
|
445
|
+
}
|
446
|
+
}).catch(function(J) {
|
447
|
+
le(J);
|
448
|
+
});
|
449
|
+
};
|
450
|
+
Me();
|
451
|
+
});
|
452
|
+
}).catch(function(v) {
|
453
|
+
if (v.name !== "AbortError")
|
454
|
+
return v;
|
455
|
+
}).then(function(v) {
|
456
|
+
i(v);
|
457
|
+
}), {
|
458
|
+
abort: function() {
|
459
|
+
O?.cancel(), S.abort();
|
460
|
+
}
|
461
|
+
};
|
462
|
+
};
|
463
|
+
function W() {
|
464
|
+
this._listeners = /* @__PURE__ */ Object.create(null);
|
465
|
+
}
|
466
|
+
function ye(t) {
|
467
|
+
r(function() {
|
468
|
+
throw t;
|
469
|
+
}, 0);
|
470
|
+
}
|
471
|
+
W.prototype.dispatchEvent = function(t) {
|
472
|
+
t.target = this;
|
473
|
+
var a = this._listeners[t.type];
|
474
|
+
if (a != null)
|
475
|
+
for (var s = a.length, i = 0; i < s; i += 1) {
|
476
|
+
var d = a[i];
|
477
|
+
try {
|
478
|
+
typeof d.handleEvent == "function" ? d.handleEvent(t) : d.call(this, t);
|
479
|
+
} catch (h) {
|
480
|
+
ye(h);
|
481
|
+
}
|
482
|
+
}
|
483
|
+
}, W.prototype.addEventListener = function(t, a) {
|
484
|
+
t = String(t);
|
485
|
+
var s = this._listeners, i = s[t];
|
486
|
+
i == null && (i = [], s[t] = i);
|
487
|
+
for (var d = !1, h = 0; h < i.length; h += 1)
|
488
|
+
i[h] === a && (d = !0);
|
489
|
+
d || i.push(a);
|
490
|
+
}, W.prototype.removeEventListener = function(t, a) {
|
491
|
+
t = String(t);
|
492
|
+
var s = this._listeners, i = s[t];
|
493
|
+
if (i != null) {
|
494
|
+
for (var d = [], h = 0; h < i.length; h += 1)
|
495
|
+
i[h] !== a && d.push(i[h]);
|
496
|
+
d.length === 0 ? delete s[t] : s[t] = d;
|
497
|
+
}
|
498
|
+
};
|
499
|
+
function f(t) {
|
500
|
+
this.type = t, this.target = void 0;
|
501
|
+
}
|
502
|
+
function ve(t, a) {
|
503
|
+
f.call(this, t), this.data = a.data, this.lastEventId = a.lastEventId;
|
504
|
+
}
|
505
|
+
ve.prototype = Object.create(f.prototype);
|
506
|
+
function Re(t, a) {
|
507
|
+
f.call(this, t), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
|
508
|
+
}
|
509
|
+
Re.prototype = Object.create(f.prototype);
|
510
|
+
function Ee(t, a) {
|
511
|
+
f.call(this, t), this.error = a.error;
|
512
|
+
}
|
513
|
+
Ee.prototype = Object.create(f.prototype);
|
514
|
+
var xe = -1, oe = 0, be = 1, se = 2, Te = -1, re = 0, Be = 1, De = 2, He = 3, Oe = /^text\/event\-stream(;.*)?$/i, ze = 1e3, Ue = 18e6, Se = function(t, a) {
|
515
|
+
var s = t == null ? a : parseInt(t, 10);
|
516
|
+
return s !== s && (s = a), Le(s);
|
517
|
+
}, Le = function(t) {
|
518
|
+
return Math.min(Math.max(t, ze), Ue);
|
519
|
+
}, we = function(t, a, s) {
|
520
|
+
try {
|
521
|
+
typeof a == "function" && a.call(t, s);
|
522
|
+
} catch (i) {
|
523
|
+
ye(i);
|
524
|
+
}
|
525
|
+
};
|
526
|
+
function Y(t, a) {
|
527
|
+
W.call(this), a = a || {}, 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, u(this, t, a);
|
528
|
+
}
|
529
|
+
function Pe() {
|
530
|
+
return c != null && "withCredentials" in c.prototype || m == null ? new c() : new m();
|
531
|
+
}
|
532
|
+
var Ge = F != null && C != null && "body" in C.prototype;
|
533
|
+
function u(t, a, s) {
|
534
|
+
a = String(a);
|
535
|
+
var i = !!s.withCredentials, d = s.lastEventIdQueryParameterName || "lastEventId", h = Le(1e3), b = Se(s.heartbeatTimeout, 45e3), O = "", S = h, E = !1, L = 0, v = s.headers || {}, k = s.Transport, le = Ge && k == null ? void 0 : new R(k != null ? new k() : Pe()), Me = k != null && typeof k != "string" ? new k() : le == null ? new ge() : new ee(), J = void 0, G = 0, te = xe, _e = "", ke = "", ce = "", Ne = "", X = re, Xe = 0, Ce = 0, st = function(V, I, Q, Z) {
|
536
|
+
if (te === oe)
|
537
|
+
if (V === 200 && Q != null && Oe.test(Q)) {
|
538
|
+
te = be, E = Date.now(), S = h, t.readyState = be;
|
539
|
+
var q = new Re("open", {
|
540
|
+
status: V,
|
541
|
+
statusText: I,
|
542
|
+
headers: Z
|
543
|
+
});
|
544
|
+
t.dispatchEvent(q), we(t, t.onopen, q);
|
545
|
+
} else {
|
546
|
+
var z = "";
|
547
|
+
V !== 200 ? (I && (I = I.replace(/\s+/g, " ")), z = "EventSource's response has a status " + V + " " + I + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (Q == null ? "-" : Q.replace(/\s+/g, " ")) + ". Aborting the connection.", qe();
|
548
|
+
var q = new Re("error", {
|
549
|
+
status: V,
|
550
|
+
statusText: I,
|
551
|
+
headers: Z
|
552
|
+
});
|
553
|
+
t.dispatchEvent(q), we(t, t.onerror, q), console.error(z);
|
554
|
+
}
|
555
|
+
}, lt = function(V) {
|
556
|
+
if (te === be) {
|
557
|
+
for (var I = -1, Q = 0; Q < V.length; Q += 1) {
|
558
|
+
var Z = V.charCodeAt(Q);
|
559
|
+
(Z === 10 || Z === 13) && (I = Q);
|
560
|
+
}
|
561
|
+
var q = (I !== -1 ? Ne : "") + V.slice(0, I + 1);
|
562
|
+
Ne = (I === -1 ? Ne : "") + V.slice(I + 1), V !== "" && (E = Date.now(), L += V.length);
|
563
|
+
for (var z = 0; z < q.length; z += 1) {
|
564
|
+
var Z = q.charCodeAt(z);
|
565
|
+
if (X === Te && Z === 10)
|
566
|
+
X = re;
|
567
|
+
else if (X === Te && (X = re), Z === 13 || Z === 10) {
|
568
|
+
if (X !== re) {
|
569
|
+
X === Be && (Ce = z + 1);
|
570
|
+
var ue = q.slice(Xe, Ce - 1), de = q.slice(Ce + (Ce < z && q.charCodeAt(Ce) === 32 ? 1 : 0), z);
|
571
|
+
ue === "data" ? (_e += `
|
572
|
+
`, _e += de) : ue === "id" ? ke = de : ue === "event" ? ce = de : ue === "retry" ? (h = Se(de, h), S = h) : ue === "heartbeatTimeout" && (b = Se(de, b), G !== 0 && (l(G), G = r(function() {
|
573
|
+
Fe();
|
574
|
+
}, b)));
|
575
|
+
}
|
576
|
+
if (X === re) {
|
577
|
+
if (_e !== "") {
|
578
|
+
O = ke, ce === "" && (ce = "message");
|
579
|
+
var Ae = new ve(ce, {
|
580
|
+
data: _e.slice(1),
|
581
|
+
lastEventId: ke
|
582
|
+
});
|
583
|
+
if (t.dispatchEvent(Ae), ce === "open" ? we(t, t.onopen, Ae) : ce === "message" ? we(t, t.onmessage, Ae) : ce === "error" && we(t, t.onerror, Ae), te === se)
|
584
|
+
return;
|
585
|
+
}
|
586
|
+
_e = "", ce = "";
|
587
|
+
}
|
588
|
+
X = Z === 13 ? Te : re;
|
589
|
+
} else
|
590
|
+
X === re && (Xe = z, X = Be), X === Be ? Z === 58 && (Ce = z + 1, X = De) : X === De && (X = He);
|
591
|
+
}
|
592
|
+
}
|
593
|
+
}, Je = function(V) {
|
594
|
+
if (te === be || te === oe) {
|
595
|
+
te = xe, G !== 0 && (l(G), G = 0), G = r(function() {
|
596
|
+
Fe();
|
597
|
+
}, S), S = Le(Math.min(h * 16, S * 2)), t.readyState = oe;
|
598
|
+
var I = new Ee("error", { error: V });
|
599
|
+
t.dispatchEvent(I), we(t, t.onerror, I), V != null && console.error(V);
|
600
|
+
}
|
601
|
+
}, qe = function() {
|
602
|
+
te = se, J != null && (J.abort(), J = void 0), G !== 0 && (l(G), G = 0), t.readyState = se;
|
603
|
+
}, Fe = function() {
|
604
|
+
if (G = 0, te !== xe) {
|
605
|
+
if (!E && J != null)
|
606
|
+
Je(new Error("No activity within " + b + " milliseconds. " + (te === oe ? "No response received." : L + " chars received.") + " Reconnecting.")), J != null && (J.abort(), J = void 0);
|
607
|
+
else {
|
608
|
+
var V = Math.max((E || Date.now()) + b - Date.now(), 1);
|
609
|
+
E = !1, G = r(function() {
|
610
|
+
Fe();
|
611
|
+
}, V);
|
612
|
+
}
|
613
|
+
return;
|
614
|
+
}
|
615
|
+
E = !1, L = 0, G = r(function() {
|
616
|
+
Fe();
|
617
|
+
}, b), te = oe, _e = "", ce = "", ke = O, Ne = "", Xe = 0, Ce = 0, X = re;
|
618
|
+
var I = a;
|
619
|
+
if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && O !== "") {
|
620
|
+
var Q = a.indexOf("?");
|
621
|
+
I = Q === -1 ? a : a.slice(0, Q + 1) + a.slice(Q + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(de, Ae) {
|
622
|
+
return Ae === d ? "" : de;
|
623
|
+
}), I += (a.indexOf("?") === -1 ? "?" : "&") + d + "=" + encodeURIComponent(O);
|
624
|
+
}
|
625
|
+
var Z = t.withCredentials, q = {};
|
626
|
+
q.Accept = "text/event-stream";
|
627
|
+
var z = t.headers;
|
628
|
+
if (z != null)
|
629
|
+
for (var ue in z)
|
630
|
+
Object.prototype.hasOwnProperty.call(z, ue) && (q[ue] = z[ue]);
|
631
|
+
try {
|
632
|
+
J = Me.open(le, st, lt, Je, I, Z, q);
|
633
|
+
} catch (de) {
|
634
|
+
throw qe(), de;
|
635
|
+
}
|
636
|
+
};
|
637
|
+
t.url = a, t.readyState = oe, t.withCredentials = i, t.headers = v, t._close = qe, Fe();
|
638
|
+
}
|
639
|
+
Y.prototype = Object.create(W.prototype), Y.prototype.CONNECTING = oe, Y.prototype.OPEN = be, Y.prototype.CLOSED = se, Y.prototype.close = function() {
|
640
|
+
this._close();
|
641
|
+
}, Y.CONNECTING = oe, Y.OPEN = be, Y.CLOSED = se, Y.prototype.withCredentials = void 0;
|
642
|
+
var B = g;
|
643
|
+
c != null && (g == null || !("withCredentials" in g.prototype)) && (B = Y), function(t) {
|
644
|
+
{
|
645
|
+
var a = t(e);
|
646
|
+
a !== void 0 && (o.exports = a);
|
647
|
+
}
|
648
|
+
}(function(t) {
|
649
|
+
t.EventSourcePolyfill = Y, t.NativeEventSource = g, t.EventSource = B;
|
650
|
+
});
|
651
|
+
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : dt : globalThis);
|
652
|
+
})(We, We.exports);
|
653
|
+
var Rt = We.exports;
|
654
|
+
/*!
|
655
|
+
* currency.js - v2.0.4
|
656
|
+
* http://scurker.github.io/currency.js
|
657
|
+
*
|
658
|
+
* Copyright (c) 2021 Jason Wilson
|
659
|
+
* Released under MIT license
|
660
|
+
*/
|
661
|
+
var Et = {
|
662
|
+
symbol: "$",
|
663
|
+
separator: ",",
|
664
|
+
decimal: ".",
|
665
|
+
errorOnInvalid: !1,
|
666
|
+
precision: 2,
|
667
|
+
pattern: "!#",
|
668
|
+
negativePattern: "-!#",
|
669
|
+
format: Mt,
|
670
|
+
fromCents: !1
|
671
|
+
}, it = function(e) {
|
672
|
+
return Math.round(e);
|
673
|
+
}, Ye = function(e) {
|
674
|
+
return Math.pow(10, e);
|
675
|
+
}, xt = function(e, n) {
|
676
|
+
return it(e / n) * n;
|
677
|
+
}, Dt = /(\d)(?=(\d{3})+\b)/g, Lt = /(\d)(?=(\d\d)+\d\b)/g;
|
678
|
+
function ne(o, e) {
|
679
|
+
var n = this;
|
680
|
+
if (!(n instanceof ne))
|
681
|
+
return new ne(o, e);
|
682
|
+
var r = Object.assign({}, Et, e), l = Ye(r.precision), c = Ie(o, r);
|
683
|
+
n.intValue = c, n.value = c / l, r.increment = r.increment || 1 / l, r.useVedic ? r.groups = Lt : r.groups = Dt, this.s = r, this.p = l;
|
684
|
+
}
|
685
|
+
function Ie(o, e) {
|
686
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, l = e.decimal, c = e.errorOnInvalid, m = e.precision, p = e.fromCents, g = Ye(m), y = typeof o == "number", x = o instanceof ne;
|
687
|
+
if (x && p)
|
688
|
+
return o.intValue;
|
689
|
+
if (y || x)
|
690
|
+
r = x ? o.value : o;
|
691
|
+
else if (typeof o == "string") {
|
692
|
+
var F = new RegExp("[^-\\d" + l + "]", "g"), C = new RegExp("\\" + l, "g");
|
693
|
+
r = o.replace(/\((.*)\)/, "-$1").replace(F, "").replace(C, "."), r = r || 0;
|
694
|
+
} else {
|
695
|
+
if (c)
|
696
|
+
throw Error("Invalid Input");
|
697
|
+
r = 0;
|
698
|
+
}
|
699
|
+
return p || (r *= g, r = r.toFixed(4)), n ? it(r) : r;
|
700
|
+
}
|
701
|
+
function Mt(o, e) {
|
702
|
+
var n = e.pattern, r = e.negativePattern, l = e.symbol, c = e.separator, m = e.decimal, p = e.groups, g = ("" + o).replace(/^-/, "").split("."), y = g[0], x = g[1];
|
703
|
+
return (o.value >= 0 ? n : r).replace("!", l).replace("#", y.replace(p, "$1" + c) + (x ? m + x : ""));
|
704
|
+
}
|
705
|
+
ne.prototype = {
|
706
|
+
/**
|
707
|
+
* Adds values together.
|
708
|
+
* @param {number} number
|
709
|
+
* @returns {currency}
|
710
|
+
*/
|
711
|
+
add: function(e) {
|
712
|
+
var n = this.intValue, r = this.s, l = this.p;
|
713
|
+
return ne((n += Ie(e, r)) / (r.fromCents ? 1 : l), r);
|
714
|
+
},
|
715
|
+
/**
|
716
|
+
* Subtracts value.
|
717
|
+
* @param {number} number
|
718
|
+
* @returns {currency}
|
719
|
+
*/
|
720
|
+
subtract: function(e) {
|
721
|
+
var n = this.intValue, r = this.s, l = this.p;
|
722
|
+
return ne((n -= Ie(e, r)) / (r.fromCents ? 1 : l), r);
|
723
|
+
},
|
724
|
+
/**
|
725
|
+
* Multiplies values.
|
726
|
+
* @param {number} number
|
727
|
+
* @returns {currency}
|
728
|
+
*/
|
729
|
+
multiply: function(e) {
|
730
|
+
var n = this.intValue, r = this.s;
|
731
|
+
return ne((n *= e) / (r.fromCents ? 1 : Ye(r.precision)), r);
|
732
|
+
},
|
733
|
+
/**
|
734
|
+
* Divides value.
|
735
|
+
* @param {number} number
|
736
|
+
* @returns {currency}
|
737
|
+
*/
|
738
|
+
divide: function(e) {
|
739
|
+
var n = this.intValue, r = this.s;
|
740
|
+
return ne(n /= Ie(e, r, !1), r);
|
741
|
+
},
|
742
|
+
/**
|
743
|
+
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
744
|
+
* left over from the distribution will be stacked onto the first set of entries.
|
745
|
+
* @param {number} count
|
746
|
+
* @returns {array}
|
747
|
+
*/
|
748
|
+
distribute: function(e) {
|
749
|
+
for (var n = this.intValue, r = this.p, l = this.s, c = [], m = Math[n >= 0 ? "floor" : "ceil"](n / e), p = Math.abs(n - m * e), g = l.fromCents ? 1 : r; e !== 0; e--) {
|
750
|
+
var y = ne(m / g, l);
|
751
|
+
p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / g)), c.push(y);
|
752
|
+
}
|
753
|
+
return c;
|
754
|
+
},
|
755
|
+
/**
|
756
|
+
* Returns the dollar value.
|
757
|
+
* @returns {number}
|
758
|
+
*/
|
759
|
+
dollars: function() {
|
760
|
+
return ~~this.value;
|
761
|
+
},
|
762
|
+
/**
|
763
|
+
* Returns the cent value.
|
764
|
+
* @returns {number}
|
765
|
+
*/
|
766
|
+
cents: function() {
|
767
|
+
var e = this.intValue, n = this.p;
|
768
|
+
return ~~(e % n);
|
769
|
+
},
|
770
|
+
/**
|
771
|
+
* Formats the value as a string according to the formatting settings.
|
772
|
+
* @param {boolean} useSymbol - format with currency symbol
|
773
|
+
* @returns {string}
|
774
|
+
*/
|
775
|
+
format: function(e) {
|
776
|
+
var n = this.s;
|
777
|
+
return typeof e == "function" ? e(this, n) : n.format(this, Object.assign({}, n, e));
|
778
|
+
},
|
779
|
+
/**
|
780
|
+
* Formats the value as a string according to the formatting settings.
|
781
|
+
* @returns {string}
|
782
|
+
*/
|
783
|
+
toString: function() {
|
784
|
+
var e = this.intValue, n = this.p, r = this.s;
|
785
|
+
return xt(e / n, r.increment).toFixed(r.precision);
|
786
|
+
},
|
787
|
+
/**
|
788
|
+
* Value for JSON serialization.
|
789
|
+
* @returns {float}
|
790
|
+
*/
|
791
|
+
toJSON: function() {
|
792
|
+
return this.value;
|
793
|
+
}
|
794
|
+
};
|
795
|
+
function Ft(o) {
|
796
|
+
gt(o, "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}');
|
797
|
+
}
|
798
|
+
function $e(o, e, n) {
|
799
|
+
const r = o.slice();
|
800
|
+
return r[47] = e[n], r;
|
801
|
+
}
|
802
|
+
function et(o, e, n) {
|
803
|
+
const r = o.slice();
|
804
|
+
return r[50] = e[n], r;
|
805
|
+
}
|
806
|
+
function Ot(o) {
|
807
|
+
let e, n = (
|
808
|
+
/*balances*/
|
809
|
+
(o[4].Total ? (
|
810
|
+
/*formatBalance*/
|
811
|
+
o[6](
|
812
|
+
/*balances*/
|
813
|
+
o[4].Total[0].amount
|
814
|
+
)
|
815
|
+
) : "0") + ""
|
816
|
+
), r, l, c, m, p, g, y, x, F, C = (
|
817
|
+
/*isModalDisplayed*/
|
818
|
+
o[2] && tt(o)
|
819
|
+
);
|
820
|
+
return {
|
821
|
+
c() {
|
822
|
+
e = N("button"), r = fe(n), l = ae(), c = fe(
|
823
|
+
/*currency*/
|
824
|
+
o[3]
|
825
|
+
), m = ae(), p = N("span"), p.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>', g = ae(), C && C.c(), y = Tt(), U(e, "class", "BalanceValue");
|
826
|
+
},
|
827
|
+
m(T, _) {
|
828
|
+
he(T, e, _), A(e, r), A(e, l), A(e, c), A(e, m), A(e, p), he(T, g, _), C && C.m(T, _), he(T, y, _), x || (F = Ve(
|
829
|
+
e,
|
830
|
+
"click",
|
831
|
+
/*click_handler*/
|
832
|
+
o[23]
|
833
|
+
), x = !0);
|
834
|
+
},
|
835
|
+
p(T, _) {
|
836
|
+
_[0] & /*balances*/
|
837
|
+
16 && n !== (n = /*balances*/
|
838
|
+
(T[4].Total ? (
|
839
|
+
/*formatBalance*/
|
840
|
+
T[6](
|
841
|
+
/*balances*/
|
842
|
+
T[4].Total[0].amount
|
843
|
+
)
|
844
|
+
) : "0") + "") && pe(r, n), _[0] & /*currency*/
|
845
|
+
8 && pe(
|
846
|
+
c,
|
847
|
+
/*currency*/
|
848
|
+
T[3]
|
849
|
+
), /*isModalDisplayed*/
|
850
|
+
T[2] ? C ? C.p(T, _) : (C = tt(T), C.c(), C.m(y.parentNode, y)) : C && (C.d(1), C = null);
|
851
|
+
},
|
852
|
+
d(T) {
|
853
|
+
T && (me(e), me(g), me(y)), C && C.d(T), x = !1, F();
|
854
|
+
}
|
855
|
+
};
|
856
|
+
}
|
857
|
+
function kt(o) {
|
858
|
+
let e, n = (
|
859
|
+
/*$_*/
|
860
|
+
o[5]("Loading") + ""
|
861
|
+
), r;
|
862
|
+
return {
|
863
|
+
c() {
|
864
|
+
e = N("p"), r = fe(n);
|
865
|
+
},
|
866
|
+
m(l, c) {
|
867
|
+
he(l, e, c), A(e, r);
|
868
|
+
},
|
869
|
+
p(l, c) {
|
870
|
+
c[0] & /*$_*/
|
871
|
+
32 && n !== (n = /*$_*/
|
872
|
+
l[5]("Loading") + "") && pe(r, n);
|
873
|
+
},
|
874
|
+
d(l) {
|
875
|
+
l && me(e);
|
876
|
+
}
|
877
|
+
};
|
878
|
+
}
|
879
|
+
function tt(o) {
|
880
|
+
let e, n, r, l, c, m, p = (
|
881
|
+
/*$_*/
|
882
|
+
o[5]("Title") + ""
|
883
|
+
), g, y, x, F, C, T, _ = (
|
884
|
+
/*$_*/
|
885
|
+
o[5]("DepositButton") + ""
|
886
|
+
), P, M, j, $ = je(Object.keys(
|
887
|
+
/*balances*/
|
888
|
+
o[4]
|
889
|
+
)), w = [];
|
890
|
+
for (let R = 0; R < $.length; R += 1)
|
891
|
+
w[R] = at($e(o, $, R));
|
892
|
+
return {
|
893
|
+
c() {
|
894
|
+
e = N("div"), n = N("button"), r = ae(), l = N("div"), c = N("div"), m = N("p"), g = fe(p), y = ae(), x = N("div");
|
895
|
+
for (let R = 0; R < w.length; R += 1)
|
896
|
+
w[R].c();
|
897
|
+
F = ae(), C = N("div"), T = N("button"), P = fe(_), U(n, "class", "BalanceModalClose"), U(m, "class", "BalanceModalTitle"), U(c, "class", "BalanceModalHeader"), U(x, "class", "BalanceModalBody"), U(T, "class", "BalanceModalAction"), U(C, "class", "BalanceModalFooter"), U(l, "class", "BalanceModal"), U(e, "class", "BalanceModalWrapper");
|
898
|
+
},
|
899
|
+
m(R, H) {
|
900
|
+
he(R, e, H), A(e, n), A(e, r), A(e, l), A(l, c), A(c, m), A(m, g), A(l, y), A(l, x);
|
901
|
+
for (let D = 0; D < w.length; D += 1)
|
902
|
+
w[D] && w[D].m(x, null);
|
903
|
+
A(l, F), A(l, C), A(C, T), A(T, P), M || (j = [
|
904
|
+
Ve(
|
905
|
+
n,
|
906
|
+
"click",
|
907
|
+
/*click_handler_1*/
|
908
|
+
o[24]
|
909
|
+
),
|
910
|
+
Ve(
|
911
|
+
T,
|
912
|
+
"click",
|
913
|
+
/*click_handler_2*/
|
914
|
+
o[25]
|
915
|
+
)
|
916
|
+
], M = !0);
|
917
|
+
},
|
918
|
+
p(R, H) {
|
919
|
+
if (H[0] & /*$_*/
|
920
|
+
32 && p !== (p = /*$_*/
|
921
|
+
R[5]("Title") + "") && pe(g, p), H[0] & /*balances, currency, formatBalance, $_*/
|
922
|
+
120) {
|
923
|
+
$ = je(Object.keys(
|
924
|
+
/*balances*/
|
925
|
+
R[4]
|
926
|
+
));
|
927
|
+
let D;
|
928
|
+
for (D = 0; D < $.length; D += 1) {
|
929
|
+
const ee = $e(R, $, D);
|
930
|
+
w[D] ? w[D].p(ee, H) : (w[D] = at(ee), w[D].c(), w[D].m(x, null));
|
931
|
+
}
|
932
|
+
for (; D < w.length; D += 1)
|
933
|
+
w[D].d(1);
|
934
|
+
w.length = $.length;
|
935
|
+
}
|
936
|
+
H[0] & /*$_*/
|
937
|
+
32 && _ !== (_ = /*$_*/
|
938
|
+
R[5]("DepositButton") + "") && pe(P, _);
|
939
|
+
},
|
940
|
+
d(R) {
|
941
|
+
R && me(e), rt(w, R), M = !1, St(j);
|
942
|
+
}
|
943
|
+
};
|
944
|
+
}
|
945
|
+
function nt(o) {
|
946
|
+
let e, n, r = (
|
947
|
+
/*$_*/
|
948
|
+
o[5](
|
949
|
+
/*k*/
|
950
|
+
o[47]
|
951
|
+
) + ""
|
952
|
+
), l, c, m = (
|
953
|
+
/*b*/
|
954
|
+
(o[50].productType ? (
|
955
|
+
/*$_*/
|
956
|
+
o[5](
|
957
|
+
/*b*/
|
958
|
+
o[50].productType
|
959
|
+
)
|
960
|
+
) : "") + ""
|
961
|
+
), p, g, y, x, F = (
|
962
|
+
/*b*/
|
963
|
+
(o[50].amount ? (
|
964
|
+
/*formatBalance*/
|
965
|
+
o[6](
|
966
|
+
/*b*/
|
967
|
+
o[50].amount
|
968
|
+
)
|
969
|
+
) : "0") + ""
|
970
|
+
), C, T, _, P;
|
971
|
+
return {
|
972
|
+
c() {
|
973
|
+
e = N("div"), n = N("p"), l = fe(r), c = ae(), p = fe(m), g = ae(), y = N("p"), x = N("span"), C = fe(F), T = ae(), _ = N("span"), P = fe(
|
974
|
+
/*currency*/
|
975
|
+
o[3]
|
976
|
+
), U(n, "class", "BalanceModalText"), U(x, "class", "BalanceModalAmount"), U(_, "class", "BalanceModalCurrency"), U(y, "class", "BalanceModalValue"), U(e, "class", "BalanceModalRowLine");
|
977
|
+
},
|
978
|
+
m(M, j) {
|
979
|
+
he(M, e, j), A(e, n), A(n, l), A(n, c), A(n, p), A(e, g), A(e, y), A(y, x), A(x, C), A(y, T), A(y, _), A(_, P);
|
980
|
+
},
|
981
|
+
p(M, j) {
|
982
|
+
j[0] & /*$_, balances*/
|
983
|
+
48 && r !== (r = /*$_*/
|
984
|
+
M[5](
|
985
|
+
/*k*/
|
986
|
+
M[47]
|
987
|
+
) + "") && pe(l, r), j[0] & /*balances, $_*/
|
988
|
+
48 && m !== (m = /*b*/
|
989
|
+
(M[50].productType ? (
|
990
|
+
/*$_*/
|
991
|
+
M[5](
|
992
|
+
/*b*/
|
993
|
+
M[50].productType
|
994
|
+
)
|
995
|
+
) : "") + "") && pe(p, m), j[0] & /*balances*/
|
996
|
+
16 && F !== (F = /*b*/
|
997
|
+
(M[50].amount ? (
|
998
|
+
/*formatBalance*/
|
999
|
+
M[6](
|
1000
|
+
/*b*/
|
1001
|
+
M[50].amount
|
1002
|
+
)
|
1003
|
+
) : "0") + "") && pe(C, F), j[0] & /*currency*/
|
1004
|
+
8 && pe(
|
1005
|
+
P,
|
1006
|
+
/*currency*/
|
1007
|
+
M[3]
|
1008
|
+
);
|
1009
|
+
},
|
1010
|
+
d(M) {
|
1011
|
+
M && me(e);
|
1012
|
+
}
|
1013
|
+
};
|
1014
|
+
}
|
1015
|
+
function at(o) {
|
1016
|
+
let e, n, r = je(
|
1017
|
+
/*balances*/
|
1018
|
+
o[4][
|
1019
|
+
/*k*/
|
1020
|
+
o[47]
|
1021
|
+
]
|
1022
|
+
), l = [];
|
1023
|
+
for (let c = 0; c < r.length; c += 1)
|
1024
|
+
l[c] = nt(et(o, r, c));
|
1025
|
+
return {
|
1026
|
+
c() {
|
1027
|
+
e = N("div");
|
1028
|
+
for (let c = 0; c < l.length; c += 1)
|
1029
|
+
l[c].c();
|
1030
|
+
n = ae(), U(e, "class", "BalanceModalRowBoth");
|
1031
|
+
},
|
1032
|
+
m(c, m) {
|
1033
|
+
he(c, e, m);
|
1034
|
+
for (let p = 0; p < l.length; p += 1)
|
1035
|
+
l[p] && l[p].m(e, null);
|
1036
|
+
A(e, n);
|
1037
|
+
},
|
1038
|
+
p(c, m) {
|
1039
|
+
if (m[0] & /*currency, balances, formatBalance, $_*/
|
1040
|
+
120) {
|
1041
|
+
r = je(
|
1042
|
+
/*balances*/
|
1043
|
+
c[4][
|
1044
|
+
/*k*/
|
1045
|
+
c[47]
|
1046
|
+
]
|
1047
|
+
);
|
1048
|
+
let p;
|
1049
|
+
for (p = 0; p < r.length; p += 1) {
|
1050
|
+
const g = et(c, r, p);
|
1051
|
+
l[p] ? l[p].p(g, m) : (l[p] = nt(g), l[p].c(), l[p].m(e, n));
|
1052
|
+
}
|
1053
|
+
for (; p < l.length; p += 1)
|
1054
|
+
l[p].d(1);
|
1055
|
+
l.length = r.length;
|
1056
|
+
}
|
1057
|
+
},
|
1058
|
+
d(c) {
|
1059
|
+
c && me(e), rt(l, c);
|
1060
|
+
}
|
1061
|
+
};
|
1062
|
+
}
|
1063
|
+
function ot(o) {
|
1064
|
+
let e, n, r;
|
1065
|
+
return {
|
1066
|
+
c() {
|
1067
|
+
e = N("button"), U(e, "class", "ShowBalanceModalOverlay");
|
1068
|
+
},
|
1069
|
+
m(l, c) {
|
1070
|
+
he(l, e, c), n || (r = Ve(
|
1071
|
+
e,
|
1072
|
+
"click",
|
1073
|
+
/*click_handler_3*/
|
1074
|
+
o[26]
|
1075
|
+
), n = !0);
|
1076
|
+
},
|
1077
|
+
p: Ke,
|
1078
|
+
d(l) {
|
1079
|
+
l && me(e), n = !1, r();
|
1080
|
+
}
|
1081
|
+
};
|
1082
|
+
}
|
1083
|
+
function Nt(o) {
|
1084
|
+
let e, n, r;
|
1085
|
+
function l(g, y) {
|
1086
|
+
return (
|
1087
|
+
/*isLoading*/
|
1088
|
+
g[1] ? kt : Ot
|
1089
|
+
);
|
1090
|
+
}
|
1091
|
+
let c = l(o), m = c(o), p = (
|
1092
|
+
/*isModalDisplayed*/
|
1093
|
+
o[2] && ot(o)
|
1094
|
+
);
|
1095
|
+
return {
|
1096
|
+
c() {
|
1097
|
+
e = N("div"), n = N("div"), m.c(), r = ae(), p && p.c(), U(n, "class", "ShowBalance");
|
1098
|
+
},
|
1099
|
+
m(g, y) {
|
1100
|
+
he(g, e, y), A(e, n), m.m(n, null), A(e, r), p && p.m(e, null), o[27](e);
|
1101
|
+
},
|
1102
|
+
p(g, y) {
|
1103
|
+
c === (c = l(g)) && m ? m.p(g, y) : (m.d(1), m = c(g), m && (m.c(), m.m(n, null))), /*isModalDisplayed*/
|
1104
|
+
g[2] ? p ? p.p(g, y) : (p = ot(g), p.c(), p.m(e, null)) : p && (p.d(1), p = null);
|
1105
|
+
},
|
1106
|
+
i: Ke,
|
1107
|
+
o: Ke,
|
1108
|
+
d(g) {
|
1109
|
+
g && me(e), m.d(), p && p.d(), o[27](null);
|
1110
|
+
}
|
1111
|
+
};
|
1112
|
+
}
|
1113
|
+
function It(o, e, n) {
|
1114
|
+
let r;
|
1115
|
+
yt(o, _t, (u) => n(5, r = u));
|
1116
|
+
let { userid: l = "" } = e, { session: c = "" } = e, { endpoint: m = "" } = e, { lang: p = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: x = "" } = e, { customlocaleidentifier: F = "" } = e, { gmversion: C = "gm16" } = e, { displaybalanceoption: T = "All" } = e, { totalcalculationmode: _ = "totalCashAmount" } = e, { currencyseparator: P = "" } = e, { currencydecimal: M = "" } = e, { currencyprecision: j = "" } = e, { mbsource: $ } = e, w, R, H = !0, D = !1, ee = !1, ie, ge = "", W = [], ye;
|
1117
|
+
const f = {}, ve = ["totalCashAmount", "totalRealAmount"], Re = () => {
|
1118
|
+
fetch(x).then((u) => u.json()).then((u) => Object.keys(u).forEach((B) => Qe(B, u[B]))).catch((u) => console.log(u));
|
1119
|
+
};
|
1120
|
+
Object.keys(Ze).forEach((u) => Qe(u, Ze[u]));
|
1121
|
+
const Ee = () => {
|
1122
|
+
if (F.includes(p))
|
1123
|
+
return F;
|
1124
|
+
}, xe = (u) => F ? new Intl.NumberFormat(Ee(), { useGrouping: !0 }).format(u) : P && M ? ne(u, {
|
1125
|
+
separator: P,
|
1126
|
+
decimal: M,
|
1127
|
+
symbol: "",
|
1128
|
+
precision: parseInt(j || "2", 10)
|
1129
|
+
}).format() : ne(u, {
|
1130
|
+
separator: ".",
|
1131
|
+
decimal: ",",
|
1132
|
+
symbol: "",
|
1133
|
+
precision: parseInt(j || "2", 10)
|
1134
|
+
}).format(), oe = async () => {
|
1135
|
+
n(1, H = !0);
|
1136
|
+
const u = new URL(`${m}/v1/player/${l}/account`);
|
1137
|
+
try {
|
1138
|
+
const B = await fetch(u, {
|
1139
|
+
method: "GET",
|
1140
|
+
headers: { "X-SessionID": c }
|
1141
|
+
}), t = await B.json();
|
1142
|
+
if (B.ok)
|
1143
|
+
W = t.items, n(3, ge = W.find((a) => a.displayName === "Casino")?.currency), n(4, f.Total = [{ amount: t.totalAmount[ge] }], f), n(
|
1144
|
+
4,
|
1145
|
+
f.Real = [
|
1146
|
+
{
|
1147
|
+
amount: W.find((a) => a.displayName === "Casino")?.balanceAmount
|
1148
|
+
}
|
1149
|
+
],
|
1150
|
+
f
|
1151
|
+
), n(
|
1152
|
+
4,
|
1153
|
+
f.Bonus = [
|
1154
|
+
{
|
1155
|
+
amount: W.find((a) => a.displayName === "UBS")?.balanceAmount
|
1156
|
+
}
|
1157
|
+
],
|
1158
|
+
f
|
1159
|
+
);
|
1160
|
+
else
|
1161
|
+
throw new Error("Failed to fetch balance data !");
|
1162
|
+
} catch (B) {
|
1163
|
+
console.log("Balance error: ", B);
|
1164
|
+
} finally {
|
1165
|
+
n(1, H = !1);
|
1166
|
+
}
|
1167
|
+
}, be = () => {
|
1168
|
+
n(1, H = !0);
|
1169
|
+
const u = new URL(`${m}/v2/player/${l}/balance`), B = new Headers();
|
1170
|
+
B.append("X-SessionID", c), fetch(u, { method: "GET", headers: B }).then((a) => a.json()).then((a) => {
|
1171
|
+
a[_] || n(8, _ = ve[0]);
|
1172
|
+
const s = a.items.find((d) => d.type === "Real" && d.walletAccountType === "Ordinary");
|
1173
|
+
if (n(3, ge = s.currency), ee = !!s.productType, n(4, f.Total = [{ amount: 0 }], f), n(4, f.Real = [], f), n(4, f.Bonus = [], f), n(4, f.Credit = [], f), !ee) {
|
1174
|
+
ye = {
|
1175
|
+
lastOrdinaryAfterAmount: 0,
|
1176
|
+
showCreditLineAfterAmount: !1
|
1177
|
+
}, n(4, f.Total[0].amount = a[_][ge], f);
|
1178
|
+
for (const d of a.items)
|
1179
|
+
switch (d.type) {
|
1180
|
+
case "Bonus":
|
1181
|
+
f.Bonus.length === 0 ? f.Bonus.push({ amount: d.amount }) : n(4, f.Bonus[0].amount += d.amount, f);
|
1182
|
+
break;
|
1183
|
+
case "Real":
|
1184
|
+
if (d.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: d.creditLine }), _ === "totalRealAmount")
|
1185
|
+
continue;
|
1186
|
+
f.Real.length === 0 ? f.Real.push({ amount: d.amount }) : n(4, f.Real[0].amount += d.amount, f);
|
1187
|
+
break;
|
1188
|
+
}
|
1189
|
+
for (const [d, h] of Object.entries(f))
|
1190
|
+
h.length < 1 && delete f[d];
|
1191
|
+
n(1, H = !1);
|
1192
|
+
return;
|
1193
|
+
}
|
1194
|
+
ye = {
|
1195
|
+
Casino: {
|
1196
|
+
lastOrdinaryAfterAmount: 0,
|
1197
|
+
showCreditLineAfterAmount: !1
|
1198
|
+
},
|
1199
|
+
Sports: {
|
1200
|
+
lastOrdinaryAfterAmount: 0,
|
1201
|
+
showCreditLineAfterAmount: !1
|
1202
|
+
}
|
1203
|
+
};
|
1204
|
+
let i = a.items;
|
1205
|
+
T && T !== "All" && (i = a.items.filter((d) => d.productType === T));
|
1206
|
+
for (const d of i) {
|
1207
|
+
let h;
|
1208
|
+
switch (d.type) {
|
1209
|
+
case "Bonus":
|
1210
|
+
h = f.Bonus.findIndex((b) => b.productType === d.productType), h > 0 ? n(4, f.Bonus[h].amount += d.amount, f) : f.Bonus.push({
|
1211
|
+
amount: d.amount,
|
1212
|
+
productType: d.productType
|
1213
|
+
});
|
1214
|
+
break;
|
1215
|
+
case "Real":
|
1216
|
+
d.creditLine && f.Credit.push({
|
1217
|
+
amount: d.creditLine,
|
1218
|
+
productType: d.productType
|
1219
|
+
}), h = f.Real.findIndex((b) => b.productType === d.productType), h > 0 ? n(4, f.Real[h].amount += d.amount, f) : f.Real.push({
|
1220
|
+
amount: d.amount,
|
1221
|
+
productType: d.productType
|
1222
|
+
});
|
1223
|
+
break;
|
1224
|
+
}
|
1225
|
+
}
|
1226
|
+
De();
|
1227
|
+
for (const [d, h] of Object.entries(f))
|
1228
|
+
h.length < 1 && delete f[d];
|
1229
|
+
n(1, H = !1);
|
1230
|
+
}).catch(() => {
|
1231
|
+
throw n(1, H = !1), new Error("Failed to fetch balance data !");
|
1232
|
+
});
|
1233
|
+
}, se = () => {
|
1234
|
+
if (ie && ie.close(), c.length < 1)
|
1235
|
+
return;
|
1236
|
+
let u, B;
|
1237
|
+
switch (C) {
|
1238
|
+
case "gm16":
|
1239
|
+
u = new URL(`${m}/v2/player/${l}/information/updates`), B = (s) => He(s);
|
1240
|
+
break;
|
1241
|
+
case "gmcore":
|
1242
|
+
u = new URL(`${m}/v1/player/${l}/balance/updates`), B = (s) => re(s);
|
1243
|
+
break;
|
1244
|
+
}
|
1245
|
+
const t = {
|
1246
|
+
accept: "text/event-stream",
|
1247
|
+
"X-SessionId": c
|
1248
|
+
}, a = new Rt.EventSourcePolyfill(u, { headers: t });
|
1249
|
+
ie = a, a.addEventListener("message", B);
|
1250
|
+
}, Te = (u) => {
|
1251
|
+
let B;
|
1252
|
+
try {
|
1253
|
+
B = JSON.parse(u);
|
1254
|
+
} catch (t) {
|
1255
|
+
console.log("Balance stream failed: ", t);
|
1256
|
+
return;
|
1257
|
+
}
|
1258
|
+
return B;
|
1259
|
+
}, re = (u) => {
|
1260
|
+
const B = Te(u.data);
|
1261
|
+
if (!B) {
|
1262
|
+
se();
|
1263
|
+
return;
|
1264
|
+
}
|
1265
|
+
let t = "0";
|
1266
|
+
const a = B.balanceChange;
|
1267
|
+
W = W.map((s) => (a && a[s.id] && (s = {
|
1268
|
+
...s,
|
1269
|
+
balanceAmount: a[s.id].afterAmount
|
1270
|
+
}), t = (parseFloat(s?.balanceAmount) + parseFloat(t)).toString(), s)), n(4, f.Real = [{ amount: W[0]?.balanceAmount }], f), n(4, f.Bonus = [{ amount: W[1]?.balanceAmount }], f), n(4, f.Total = [{ amount: Number(t) }], f);
|
1271
|
+
}, Be = (u, B, t) => {
|
1272
|
+
let a = null;
|
1273
|
+
switch (t.walletAccountType) {
|
1274
|
+
case "Ordinary":
|
1275
|
+
(t.afterAmount !== t.affectedAmount || B.lastOrdinaryAfterAmount === 0) && (B.lastOrdinaryAfterAmount = t.afterAmount, B.showCreditLineAfterAmount || (a = t.afterAmount));
|
1276
|
+
break;
|
1277
|
+
case "CreditLine":
|
1278
|
+
t.afterAmount !== 0 ? (a = t.afterAmount, B.showCreditLineAfterAmount = !0) : (a = B.lastOrdinaryAfterAmount, B.showCreditLineAfterAmount = !1);
|
1279
|
+
break;
|
1280
|
+
default:
|
1281
|
+
a = t.afterAmount;
|
1282
|
+
}
|
1283
|
+
return a === null ? u : a;
|
1284
|
+
}, De = () => {
|
1285
|
+
switch (_) {
|
1286
|
+
case "totalCashAmount":
|
1287
|
+
let u = 0;
|
1288
|
+
for (const t of ["Real", "Bonus"])
|
1289
|
+
for (const a of f[t])
|
1290
|
+
u += Math.max(a.amount, 0);
|
1291
|
+
n(4, f.Total[0].amount = u, f);
|
1292
|
+
break;
|
1293
|
+
case "totalRealAmount":
|
1294
|
+
if (!ee)
|
1295
|
+
return;
|
1296
|
+
let B = 0;
|
1297
|
+
for (const t of f.Real)
|
1298
|
+
B += t.amount;
|
1299
|
+
n(4, f.Total[0].amount = B, f);
|
1300
|
+
}
|
1301
|
+
}, He = (u) => {
|
1302
|
+
const B = Te(u.data);
|
1303
|
+
if (!B) {
|
1304
|
+
se();
|
1305
|
+
return;
|
1306
|
+
}
|
1307
|
+
if (B.type !== "BALANCE_UPDATE_V2")
|
1308
|
+
return;
|
1309
|
+
const t = B.body.balanceChange;
|
1310
|
+
for (const [a, s] of Object.entries(t))
|
1311
|
+
if (_ === "totalRealAmount" && a === "Real" && !ee && n(4, f.Total[0].amount = Be(f.Total[0].amount, ye, s), f), !!f[a])
|
1312
|
+
for (const i of f[a]) {
|
1313
|
+
if (!ee) {
|
1314
|
+
i.amount = a === "Real" ? Be(i.amount, ye, s) : s.afterAmount;
|
1315
|
+
continue;
|
1316
|
+
}
|
1317
|
+
s.productType === i.productType && (i.amount = a === "Real" ? Be(i.amount, ye[i.productType], s) : s.afterAmount);
|
1318
|
+
}
|
1319
|
+
De();
|
1320
|
+
}, Oe = () => {
|
1321
|
+
n(2, D = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
1322
|
+
}, ze = () => {
|
1323
|
+
ve.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ve}. Using default value ('${ve[0]}').`), n(8, _ = ve[0]));
|
1324
|
+
}, Ue = () => {
|
1325
|
+
switch (At(p), ze(), C) {
|
1326
|
+
case "gmcore":
|
1327
|
+
oe();
|
1328
|
+
break;
|
1329
|
+
case "gm16":
|
1330
|
+
be();
|
1331
|
+
break;
|
1332
|
+
default:
|
1333
|
+
throw Error(`Invalid apiversion attribute: ${C}`);
|
1334
|
+
}
|
1335
|
+
}, Se = (u) => u.data && u.data.type === "LogoutSuccessfull" && ie.close();
|
1336
|
+
vt(() => (window.addEventListener("message", Se, !1), () => {
|
1337
|
+
window.emMessageBus && R && R.unsubscribe(), window.removeEventListener("message", Se), ie && ie.close();
|
1338
|
+
}));
|
1339
|
+
const Le = () => n(2, D = !0), we = () => n(2, D = !1), Y = () => Oe(), Pe = () => n(2, D = !1);
|
1340
|
+
function Ge(u) {
|
1341
|
+
wt[u ? "unshift" : "push"](() => {
|
1342
|
+
w = u, n(0, w);
|
1343
|
+
});
|
1344
|
+
}
|
1345
|
+
return o.$$set = (u) => {
|
1346
|
+
"userid" in u && n(9, l = u.userid), "session" in u && n(10, c = u.session), "endpoint" in u && n(11, m = u.endpoint), "lang" in u && n(12, p = u.lang), "clientstyling" in u && n(13, g = u.clientstyling), "clientstylingurl" in u && n(14, y = u.clientstylingurl), "translationurl" in u && n(15, x = u.translationurl), "customlocaleidentifier" in u && n(16, F = u.customlocaleidentifier), "gmversion" in u && n(17, C = u.gmversion), "displaybalanceoption" in u && n(18, T = u.displaybalanceoption), "totalcalculationmode" in u && n(8, _ = u.totalcalculationmode), "currencyseparator" in u && n(19, P = u.currencyseparator), "currencydecimal" in u && n(20, M = u.currencydecimal), "currencyprecision" in u && n(21, j = u.currencyprecision), "mbsource" in u && n(22, $ = u.mbsource);
|
1347
|
+
}, o.$$.update = () => {
|
1348
|
+
o.$$.dirty[0] & /*lang*/
|
1349
|
+
4096 && p && Ee(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
1350
|
+
400896 && m && l && c && p && C && T && Ue(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
1351
|
+
134656 && m && l && c && C && se(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
1352
|
+
8193 && g && w && Bt(w, g), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
1353
|
+
16385 && y && w && bt(w, y), o.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
1354
|
+
4194305 && w && Ct(w, `${$}.Style`), o.$$.dirty[0] & /*translationurl*/
|
1355
|
+
32768 && x && Re();
|
1356
|
+
}, [
|
1357
|
+
w,
|
1358
|
+
H,
|
1359
|
+
D,
|
1360
|
+
ge,
|
1361
|
+
f,
|
1362
|
+
r,
|
1363
|
+
xe,
|
1364
|
+
Oe,
|
1365
|
+
_,
|
1366
|
+
l,
|
1367
|
+
c,
|
1368
|
+
m,
|
1369
|
+
p,
|
1370
|
+
g,
|
1371
|
+
y,
|
1372
|
+
x,
|
1373
|
+
F,
|
1374
|
+
C,
|
1375
|
+
T,
|
1376
|
+
P,
|
1377
|
+
M,
|
1378
|
+
j,
|
1379
|
+
$,
|
1380
|
+
Le,
|
1381
|
+
we,
|
1382
|
+
Y,
|
1383
|
+
Pe,
|
1384
|
+
Ge
|
1385
|
+
];
|
1386
|
+
}
|
1387
|
+
class Vt extends ft {
|
1388
|
+
constructor(e) {
|
1389
|
+
super(), pt(
|
1390
|
+
this,
|
1391
|
+
e,
|
1392
|
+
It,
|
1393
|
+
Nt,
|
1394
|
+
mt,
|
1395
|
+
{
|
1396
|
+
userid: 9,
|
1397
|
+
session: 10,
|
1398
|
+
endpoint: 11,
|
1399
|
+
lang: 12,
|
1400
|
+
clientstyling: 13,
|
1401
|
+
clientstylingurl: 14,
|
1402
|
+
translationurl: 15,
|
1403
|
+
customlocaleidentifier: 16,
|
1404
|
+
gmversion: 17,
|
1405
|
+
displaybalanceoption: 18,
|
1406
|
+
totalcalculationmode: 8,
|
1407
|
+
currencyseparator: 19,
|
1408
|
+
currencydecimal: 20,
|
1409
|
+
currencyprecision: 21,
|
1410
|
+
mbsource: 22
|
1411
|
+
},
|
1412
|
+
Ft,
|
1413
|
+
[-1, -1]
|
1414
|
+
);
|
1415
|
+
}
|
1416
|
+
get userid() {
|
1417
|
+
return this.$$.ctx[9];
|
1418
|
+
}
|
1419
|
+
set userid(e) {
|
1420
|
+
this.$$set({ userid: e }), K();
|
1421
|
+
}
|
1422
|
+
get session() {
|
1423
|
+
return this.$$.ctx[10];
|
1424
|
+
}
|
1425
|
+
set session(e) {
|
1426
|
+
this.$$set({ session: e }), K();
|
1427
|
+
}
|
1428
|
+
get endpoint() {
|
1429
|
+
return this.$$.ctx[11];
|
1430
|
+
}
|
1431
|
+
set endpoint(e) {
|
1432
|
+
this.$$set({ endpoint: e }), K();
|
1433
|
+
}
|
1434
|
+
get lang() {
|
1435
|
+
return this.$$.ctx[12];
|
1436
|
+
}
|
1437
|
+
set lang(e) {
|
1438
|
+
this.$$set({ lang: e }), K();
|
1439
|
+
}
|
1440
|
+
get clientstyling() {
|
1441
|
+
return this.$$.ctx[13];
|
1442
|
+
}
|
1443
|
+
set clientstyling(e) {
|
1444
|
+
this.$$set({ clientstyling: e }), K();
|
1445
|
+
}
|
1446
|
+
get clientstylingurl() {
|
1447
|
+
return this.$$.ctx[14];
|
1448
|
+
}
|
1449
|
+
set clientstylingurl(e) {
|
1450
|
+
this.$$set({ clientstylingurl: e }), K();
|
1451
|
+
}
|
1452
|
+
get translationurl() {
|
1453
|
+
return this.$$.ctx[15];
|
1454
|
+
}
|
1455
|
+
set translationurl(e) {
|
1456
|
+
this.$$set({ translationurl: e }), K();
|
1457
|
+
}
|
1458
|
+
get customlocaleidentifier() {
|
1459
|
+
return this.$$.ctx[16];
|
1460
|
+
}
|
1461
|
+
set customlocaleidentifier(e) {
|
1462
|
+
this.$$set({ customlocaleidentifier: e }), K();
|
1463
|
+
}
|
1464
|
+
get gmversion() {
|
1465
|
+
return this.$$.ctx[17];
|
1466
|
+
}
|
1467
|
+
set gmversion(e) {
|
1468
|
+
this.$$set({ gmversion: e }), K();
|
1469
|
+
}
|
1470
|
+
get displaybalanceoption() {
|
1471
|
+
return this.$$.ctx[18];
|
1472
|
+
}
|
1473
|
+
set displaybalanceoption(e) {
|
1474
|
+
this.$$set({ displaybalanceoption: e }), K();
|
1475
|
+
}
|
1476
|
+
get totalcalculationmode() {
|
1477
|
+
return this.$$.ctx[8];
|
1478
|
+
}
|
1479
|
+
set totalcalculationmode(e) {
|
1480
|
+
this.$$set({ totalcalculationmode: e }), K();
|
1481
|
+
}
|
1482
|
+
get currencyseparator() {
|
1483
|
+
return this.$$.ctx[19];
|
1484
|
+
}
|
1485
|
+
set currencyseparator(e) {
|
1486
|
+
this.$$set({ currencyseparator: e }), K();
|
1487
|
+
}
|
1488
|
+
get currencydecimal() {
|
1489
|
+
return this.$$.ctx[20];
|
1490
|
+
}
|
1491
|
+
set currencydecimal(e) {
|
1492
|
+
this.$$set({ currencydecimal: e }), K();
|
1493
|
+
}
|
1494
|
+
get currencyprecision() {
|
1495
|
+
return this.$$.ctx[21];
|
1496
|
+
}
|
1497
|
+
set currencyprecision(e) {
|
1498
|
+
this.$$set({ currencyprecision: e }), K();
|
1499
|
+
}
|
1500
|
+
get mbsource() {
|
1501
|
+
return this.$$.ctx[22];
|
1502
|
+
}
|
1503
|
+
set mbsource(e) {
|
1504
|
+
this.$$set({ mbsource: e }), K();
|
1505
|
+
}
|
1506
|
+
}
|
1507
|
+
ht(Vt, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {}, mbsource: {} }, [], [], !0);
|
1508
|
+
export {
|
1509
|
+
Vt as default
|
1510
|
+
};
|