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