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