@everymatrix/casino-header-controller-nd 1.64.0 → 1.64.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/{CasinoHamburgerMenuNd-O-PRlnMz.cjs → CasinoHamburgerMenuNd-BMOc3TVZ.cjs} +1 -1
- package/components/{CasinoHamburgerMenuNd-BxWLDWZ5.js → CasinoHamburgerMenuNd-CRHTyzLa.js} +49 -49
- package/components/{CasinoHamburgerMenuNd-CeWCMWYl.js → CasinoHamburgerMenuNd-kNSb5kzp.js} +44 -44
- package/components/{CasinoHeaderControllerNd-CF2vGsRQ.js → CasinoHeaderControllerNd-CyoAz7Qo.js} +4 -4
- package/components/{CasinoHeaderControllerNd-DF5K0BL3.js → CasinoHeaderControllerNd-DzJg_p4v.js} +4 -4
- package/components/{CasinoHeaderControllerNd-BcNNYIr-.cjs → CasinoHeaderControllerNd-WEq7tT9f.cjs} +1 -1
- package/components/PlayerAccountBalanceModalNd-CKkqacyC.cjs +13 -0
- package/components/{PlayerAccountBalanceModalNd-Cgj4hIFz.js → PlayerAccountBalanceModalNd-C_-z_ILo.js} +298 -298
- package/components/{PlayerAccountBalanceModalNd-C92U3Fix.js → PlayerAccountBalanceModalNd-D5LR7cHC.js} +320 -320
- package/components/{PlayerDeposit-BuNxS4QP.js → PlayerDeposit-8bunmKNP.js} +1 -1
- package/components/{PlayerDeposit-DM587AOh.js → PlayerDeposit-CGZwpLsA.js} +1 -1
- package/components/{PlayerDeposit-D44C3eN3.cjs → PlayerDeposit-OEh7dNO5.cjs} +1 -1
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/esnext/casino-header-controller-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-DkPeXKZX.cjs +0 -13
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as ut, $ as dt, N as ft, S as pt, i as ht, s as gt, f as W, d as mt, z as qe, g as pe, m as he, n as B, p as j, q as oe, r as C, v as yt, w as vt, o as Ve, A as wt, D as de, E as fe, F as Qe, y as bt, G as je, H as it, C as Bt, K as Tt, L as St, M as Ct, c as _t, J as At } from "./CasinoHamburgerMenuNd-CRHTyzLa.js";
|
|
2
2
|
function Ze(r, t) {
|
|
3
|
-
|
|
3
|
+
ut(r, t);
|
|
4
4
|
}
|
|
5
5
|
function Rt(r) {
|
|
6
|
-
|
|
6
|
+
dt.set(r);
|
|
7
7
|
}
|
|
8
8
|
const $e = {
|
|
9
9
|
en: {
|
|
@@ -213,7 +213,7 @@ var We = { exports: {} };
|
|
|
213
213
|
*/
|
|
214
214
|
(function(r, t) {
|
|
215
215
|
(function(n) {
|
|
216
|
-
var i = n.setTimeout, c = n.clearTimeout, l = n.XMLHttpRequest,
|
|
216
|
+
var i = n.setTimeout, c = n.clearTimeout, l = n.XMLHttpRequest, g = n.XDomainRequest, p = n.ActiveXObject, m = n.EventSource, y = n.document, A = n.Promise, k = n.fetch, F = n.Response, I = n.TextDecoder, N = n.TextEncoder, E = n.AbortController;
|
|
217
217
|
if (typeof window < "u" && typeof y < "u" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(e) {
|
|
218
218
|
y.readyState = "complete";
|
|
219
219
|
}, !1)), l == null && p != null && (l = function() {
|
|
@@ -225,8 +225,8 @@ var We = { exports: {} };
|
|
|
225
225
|
}), Date.now || (Date.now = function() {
|
|
226
226
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
227
227
|
}), E == null) {
|
|
228
|
-
var w =
|
|
229
|
-
|
|
228
|
+
var w = k;
|
|
229
|
+
k = function(e, o) {
|
|
230
230
|
var s = o.signal;
|
|
231
231
|
return w(e, { headers: o.headers, credentials: o.credentials, cache: o.cache }).then(function(a) {
|
|
232
232
|
var f = a.body.getReader();
|
|
@@ -254,65 +254,65 @@ var We = { exports: {} };
|
|
|
254
254
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
255
255
|
}
|
|
256
256
|
T.prototype.decode = function(e) {
|
|
257
|
-
function o(R,
|
|
257
|
+
function o(R, D, v) {
|
|
258
258
|
if (v === 1)
|
|
259
|
-
return R >= 128 >>
|
|
259
|
+
return R >= 128 >> D && R << D <= 2047;
|
|
260
260
|
if (v === 2)
|
|
261
|
-
return R >= 2048 >>
|
|
261
|
+
return R >= 2048 >> D && R << D <= 55295 || R >= 57344 >> D && R << D <= 65535;
|
|
262
262
|
if (v === 3)
|
|
263
|
-
return R >= 65536 >>
|
|
263
|
+
return R >= 65536 >> D && R << D <= 1114111;
|
|
264
264
|
throw new Error();
|
|
265
265
|
}
|
|
266
|
-
function s(R,
|
|
266
|
+
function s(R, D) {
|
|
267
267
|
if (R === 6 * 1)
|
|
268
|
-
return
|
|
268
|
+
return D >> 6 > 15 ? 3 : D > 31 ? 2 : 1;
|
|
269
269
|
if (R === 6 * 2)
|
|
270
|
-
return
|
|
270
|
+
return D > 15 ? 3 : 2;
|
|
271
271
|
if (R === 6 * 3)
|
|
272
272
|
return 3;
|
|
273
273
|
throw new Error();
|
|
274
274
|
}
|
|
275
|
-
for (var a = 65533, f = "", h = this.bitsNeeded,
|
|
276
|
-
var b = e[
|
|
277
|
-
h !== 0 && (b < 128 || b > 191 || !o(
|
|
275
|
+
for (var a = 65533, f = "", h = this.bitsNeeded, d = this.codePoint, S = 0; S < e.length; S += 1) {
|
|
276
|
+
var b = e[S];
|
|
277
|
+
h !== 0 && (b < 128 || b > 191 || !o(d << 6 | b & 63, h - 6, s(h, d))) && (h = 0, d = a, f += String.fromCharCode(d)), h === 0 ? (b >= 0 && b <= 127 ? (h = 0, d = b) : b >= 192 && b <= 223 ? (h = 6 * 1, d = b & 31) : b >= 224 && b <= 239 ? (h = 6 * 2, d = b & 15) : b >= 240 && b <= 247 ? (h = 6 * 3, d = b & 7) : (h = 0, d = a), h !== 0 && !o(d, h, s(h, d)) && (h = 0, d = a)) : (h -= 6, d = d << 6 | b & 63), h === 0 && (d <= 65535 ? f += String.fromCharCode(d) : (f += String.fromCharCode(55296 + (d - 65535 - 1 >> 10)), f += String.fromCharCode(56320 + (d - 65535 - 1 & 1023))));
|
|
278
278
|
}
|
|
279
|
-
return this.bitsNeeded = h, this.codePoint =
|
|
279
|
+
return this.bitsNeeded = h, this.codePoint = d, f;
|
|
280
280
|
};
|
|
281
281
|
var H = function() {
|
|
282
282
|
try {
|
|
283
|
-
return new
|
|
283
|
+
return new I().decode(new N().encode("test"), { stream: !0 }) === "test";
|
|
284
284
|
} catch (e) {
|
|
285
285
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
|
|
286
286
|
}
|
|
287
287
|
return !1;
|
|
288
288
|
};
|
|
289
|
-
(
|
|
290
|
-
var
|
|
289
|
+
(I == null || N == null || !H()) && (I = T);
|
|
290
|
+
var x = function() {
|
|
291
291
|
};
|
|
292
|
-
function
|
|
293
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
292
|
+
function z(e) {
|
|
293
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = x, this.onload = x, this.onerror = x, this.onreadystatechange = x, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = x;
|
|
294
294
|
}
|
|
295
|
-
|
|
295
|
+
z.prototype.open = function(e, o) {
|
|
296
296
|
this._abort(!0);
|
|
297
297
|
var s = this, a = this._xhr, f = 1, h = 0;
|
|
298
298
|
this._abort = function(v) {
|
|
299
|
-
s._sendTimeout !== 0 && (c(s._sendTimeout), s._sendTimeout = 0), (f === 1 || f === 2 || f === 3) && (f = 4, a.onload =
|
|
299
|
+
s._sendTimeout !== 0 && (c(s._sendTimeout), s._sendTimeout = 0), (f === 1 || f === 2 || f === 3) && (f = 4, a.onload = x, a.onerror = x, a.onabort = x, a.onprogress = x, a.onreadystatechange = x, a.abort(), h !== 0 && (c(h), h = 0), v || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), f = 0;
|
|
300
300
|
};
|
|
301
|
-
var
|
|
301
|
+
var d = function() {
|
|
302
302
|
if (f === 1) {
|
|
303
|
-
var v = 0,
|
|
303
|
+
var v = 0, V = "", se = void 0;
|
|
304
304
|
if ("contentType" in a)
|
|
305
|
-
v = 200,
|
|
305
|
+
v = 200, V = "OK", se = a.contentType;
|
|
306
306
|
else
|
|
307
307
|
try {
|
|
308
|
-
v = a.status,
|
|
308
|
+
v = a.status, V = a.statusText, se = a.getResponseHeader("Content-Type");
|
|
309
309
|
} catch {
|
|
310
|
-
v = 0,
|
|
310
|
+
v = 0, V = "", se = void 0;
|
|
311
311
|
}
|
|
312
|
-
v !== 0 && (f = 2, s.readyState = 2, s.status = v, s.statusText =
|
|
312
|
+
v !== 0 && (f = 2, s.readyState = 2, s.status = v, s.statusText = V, s._contentType = se, s.onreadystatechange());
|
|
313
313
|
}
|
|
314
|
-
},
|
|
315
|
-
if (
|
|
314
|
+
}, S = function() {
|
|
315
|
+
if (d(), f === 2 || f === 3) {
|
|
316
316
|
f = 3;
|
|
317
317
|
var v = "";
|
|
318
318
|
try {
|
|
@@ -321,26 +321,26 @@ var We = { exports: {} };
|
|
|
321
321
|
}
|
|
322
322
|
s.readyState = 3, s.responseText = v, s.onprogress();
|
|
323
323
|
}
|
|
324
|
-
}, b = function(v,
|
|
325
|
-
if ((
|
|
326
|
-
preventDefault:
|
|
327
|
-
}),
|
|
324
|
+
}, b = function(v, V) {
|
|
325
|
+
if ((V == null || V.preventDefault == null) && (V = {
|
|
326
|
+
preventDefault: x
|
|
327
|
+
}), S(), f === 1 || f === 2 || f === 3) {
|
|
328
328
|
if (f = 4, h !== 0 && (c(h), h = 0), s.readyState = 4, v === "load")
|
|
329
|
-
s.onload(
|
|
329
|
+
s.onload(V);
|
|
330
330
|
else if (v === "error")
|
|
331
|
-
s.onerror(
|
|
331
|
+
s.onerror(V);
|
|
332
332
|
else if (v === "abort")
|
|
333
|
-
s.onabort(
|
|
333
|
+
s.onabort(V);
|
|
334
334
|
else
|
|
335
335
|
throw new TypeError();
|
|
336
336
|
s.onreadystatechange();
|
|
337
337
|
}
|
|
338
338
|
}, R = function(v) {
|
|
339
|
-
a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && b(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a ||
|
|
340
|
-
},
|
|
339
|
+
a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && b(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a || S() : a.readyState === 2 && d());
|
|
340
|
+
}, D = function() {
|
|
341
341
|
h = i(function() {
|
|
342
|
-
|
|
343
|
-
}, 500), a.readyState === 3 &&
|
|
342
|
+
D();
|
|
343
|
+
}, 500), a.readyState === 3 && S();
|
|
344
344
|
};
|
|
345
345
|
"onload" in a && (a.onload = function(v) {
|
|
346
346
|
b("load", v);
|
|
@@ -348,21 +348,21 @@ var We = { exports: {} };
|
|
|
348
348
|
b("error", v);
|
|
349
349
|
}), "onabort" in a && (a.onabort = function(v) {
|
|
350
350
|
b("abort", v);
|
|
351
|
-
}), "onprogress" in a && (a.onprogress =
|
|
351
|
+
}), "onprogress" in a && (a.onprogress = S), "onreadystatechange" in a && (a.onreadystatechange = function(v) {
|
|
352
352
|
R(v);
|
|
353
353
|
}), ("contentType" in a || !("ontimeout" in l.prototype)) && (o += (o.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(e, o, !0), "readyState" in a && (h = i(function() {
|
|
354
|
-
|
|
354
|
+
D();
|
|
355
355
|
}, 0));
|
|
356
|
-
},
|
|
356
|
+
}, z.prototype.abort = function() {
|
|
357
357
|
this._abort(!1);
|
|
358
|
-
},
|
|
358
|
+
}, z.prototype.getResponseHeader = function(e) {
|
|
359
359
|
return this._contentType;
|
|
360
|
-
},
|
|
360
|
+
}, z.prototype.setRequestHeader = function(e, o) {
|
|
361
361
|
var s = this._xhr;
|
|
362
362
|
"setRequestHeader" in s && s.setRequestHeader(e, o);
|
|
363
|
-
},
|
|
363
|
+
}, z.prototype.getAllResponseHeaders = function() {
|
|
364
364
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
365
|
-
},
|
|
365
|
+
}, z.prototype.send = function() {
|
|
366
366
|
if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
|
|
367
367
|
var e = this;
|
|
368
368
|
e._sendTimeout = i(function() {
|
|
@@ -386,8 +386,8 @@ var We = { exports: {} };
|
|
|
386
386
|
function ee(e) {
|
|
387
387
|
for (var o = /* @__PURE__ */ Object.create(null), s = e.split(`\r
|
|
388
388
|
`), a = 0; a < s.length; a += 1) {
|
|
389
|
-
var f = s[a], h = f.split(": "),
|
|
390
|
-
o[re(
|
|
389
|
+
var f = s[a], h = f.split(": "), d = h.shift(), S = h.join(": ");
|
|
390
|
+
o[re(d)] = S;
|
|
391
391
|
}
|
|
392
392
|
this._map = o;
|
|
393
393
|
}
|
|
@@ -396,12 +396,12 @@ var We = { exports: {} };
|
|
|
396
396
|
}, l != null && l.HEADERS_RECEIVED == null && (l.HEADERS_RECEIVED = 2);
|
|
397
397
|
function Y() {
|
|
398
398
|
}
|
|
399
|
-
Y.prototype.open = function(e, o, s, a, f, h,
|
|
399
|
+
Y.prototype.open = function(e, o, s, a, f, h, d) {
|
|
400
400
|
e.open("GET", f);
|
|
401
|
-
var
|
|
401
|
+
var S = 0;
|
|
402
402
|
e.onprogress = function() {
|
|
403
|
-
var R = e.responseText,
|
|
404
|
-
|
|
403
|
+
var R = e.responseText, D = R.slice(S);
|
|
404
|
+
S += D.length, s(D);
|
|
405
405
|
}, e.onerror = function(R) {
|
|
406
406
|
R.preventDefault(), a(new Error("NetworkError"));
|
|
407
407
|
}, e.onload = function() {
|
|
@@ -410,37 +410,37 @@ var We = { exports: {} };
|
|
|
410
410
|
a(null);
|
|
411
411
|
}, e.onreadystatechange = function() {
|
|
412
412
|
if (e.readyState === l.HEADERS_RECEIVED) {
|
|
413
|
-
var R = e.status,
|
|
414
|
-
o(R,
|
|
413
|
+
var R = e.status, D = e.statusText, v = e.getResponseHeader("Content-Type"), V = e.getAllResponseHeaders();
|
|
414
|
+
o(R, D, v, new ee(V));
|
|
415
415
|
}
|
|
416
416
|
}, e.withCredentials = h;
|
|
417
|
-
for (var b in
|
|
418
|
-
Object.prototype.hasOwnProperty.call(
|
|
417
|
+
for (var b in d)
|
|
418
|
+
Object.prototype.hasOwnProperty.call(d, b) && e.setRequestHeader(b, d[b]);
|
|
419
419
|
return e.send(), e;
|
|
420
420
|
};
|
|
421
|
-
function
|
|
421
|
+
function L(e) {
|
|
422
422
|
this._headers = e;
|
|
423
423
|
}
|
|
424
|
-
|
|
424
|
+
L.prototype.get = function(e) {
|
|
425
425
|
return this._headers.get(e);
|
|
426
426
|
};
|
|
427
|
-
function
|
|
427
|
+
function _() {
|
|
428
428
|
}
|
|
429
|
-
|
|
430
|
-
var
|
|
431
|
-
return
|
|
432
|
-
headers:
|
|
429
|
+
_.prototype.open = function(e, o, s, a, f, h, d) {
|
|
430
|
+
var S = null, b = new E(), R = b.signal, D = new I();
|
|
431
|
+
return k(f, {
|
|
432
|
+
headers: d,
|
|
433
433
|
credentials: h ? "include" : "same-origin",
|
|
434
434
|
signal: R,
|
|
435
435
|
cache: "no-store"
|
|
436
436
|
}).then(function(v) {
|
|
437
|
-
return
|
|
437
|
+
return S = v.body.getReader(), o(v.status, v.statusText, v.headers.get("Content-Type"), new L(v.headers)), new A(function(V, se) {
|
|
438
438
|
var Me = function() {
|
|
439
|
-
|
|
439
|
+
S.read().then(function(Q) {
|
|
440
440
|
if (Q.done)
|
|
441
|
-
|
|
441
|
+
V(void 0);
|
|
442
442
|
else {
|
|
443
|
-
var X =
|
|
443
|
+
var X = D.decode(Q.value, { stream: !0 });
|
|
444
444
|
s(X), Me();
|
|
445
445
|
}
|
|
446
446
|
}).catch(function(Q) {
|
|
@@ -456,19 +456,19 @@ var We = { exports: {} };
|
|
|
456
456
|
a(v);
|
|
457
457
|
}), {
|
|
458
458
|
abort: function() {
|
|
459
|
-
|
|
459
|
+
S?.cancel(), b.abort();
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
462
|
};
|
|
463
|
-
function
|
|
463
|
+
function O() {
|
|
464
464
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function M(e) {
|
|
467
467
|
i(function() {
|
|
468
468
|
throw e;
|
|
469
469
|
}, 0);
|
|
470
470
|
}
|
|
471
|
-
|
|
471
|
+
O.prototype.dispatchEvent = function(e) {
|
|
472
472
|
e.target = this;
|
|
473
473
|
var o = this._listeners[e.type];
|
|
474
474
|
if (o != null)
|
|
@@ -477,17 +477,17 @@ var We = { exports: {} };
|
|
|
477
477
|
try {
|
|
478
478
|
typeof f.handleEvent == "function" ? f.handleEvent(e) : f.call(this, e);
|
|
479
479
|
} catch (h) {
|
|
480
|
-
|
|
480
|
+
M(h);
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
},
|
|
483
|
+
}, O.prototype.addEventListener = function(e, o) {
|
|
484
484
|
e = String(e);
|
|
485
485
|
var s = this._listeners, a = s[e];
|
|
486
486
|
a == null && (a = [], s[e] = a);
|
|
487
487
|
for (var f = !1, h = 0; h < a.length; h += 1)
|
|
488
488
|
a[h] === o && (f = !0);
|
|
489
489
|
f || a.push(o);
|
|
490
|
-
},
|
|
490
|
+
}, O.prototype.removeEventListener = function(e, o) {
|
|
491
491
|
e = String(e);
|
|
492
492
|
var s = this._listeners, a = s[e];
|
|
493
493
|
if (a != null) {
|
|
@@ -496,45 +496,45 @@ var We = { exports: {} };
|
|
|
496
496
|
f.length === 0 ? delete s[e] : s[e] = f;
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
|
-
function
|
|
499
|
+
function u(e) {
|
|
500
500
|
this.type = e, this.target = void 0;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
503
|
-
|
|
502
|
+
function ge(e, o) {
|
|
503
|
+
u.call(this, e), this.data = o.data, this.lastEventId = o.lastEventId;
|
|
504
504
|
}
|
|
505
|
-
|
|
505
|
+
ge.prototype = Object.create(u.prototype);
|
|
506
506
|
function Re(e, o) {
|
|
507
|
-
|
|
507
|
+
u.call(this, e), this.status = o.status, this.statusText = o.statusText, this.headers = o.headers;
|
|
508
508
|
}
|
|
509
|
-
Re.prototype = Object.create(
|
|
510
|
-
function
|
|
511
|
-
|
|
509
|
+
Re.prototype = Object.create(u.prototype);
|
|
510
|
+
function me(e, o) {
|
|
511
|
+
u.call(this, e), this.error = o.error;
|
|
512
512
|
}
|
|
513
|
-
|
|
514
|
-
var Te = -1, ie = 0, ye = 1, we = 2, be = -1, te = 0, Ee = 1, Se = 2, Le = 3,
|
|
513
|
+
me.prototype = Object.create(u.prototype);
|
|
514
|
+
var Te = -1, ie = 0, ye = 1, we = 2, be = -1, te = 0, Ee = 1, Se = 2, Le = 3, He = /^text\/event\-stream(;.*)?$/i, Oe = 1e3, ze = 18e6, xe = function(e, o) {
|
|
515
515
|
var s = e == null ? o : parseInt(e, 10);
|
|
516
516
|
return s !== s && (s = o), Ce(s);
|
|
517
517
|
}, Ce = function(e) {
|
|
518
|
-
return Math.min(Math.max(e, Oe),
|
|
518
|
+
return Math.min(Math.max(e, Oe), ze);
|
|
519
519
|
}, ve = function(e, o, s) {
|
|
520
520
|
try {
|
|
521
521
|
typeof o == "function" && o.call(e, s);
|
|
522
522
|
} catch (a) {
|
|
523
|
-
|
|
523
|
+
M(a);
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
526
|
function J(e, o) {
|
|
527
|
-
|
|
527
|
+
O.call(this), o = o || {}, 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, Ge(this, e, o);
|
|
528
528
|
}
|
|
529
529
|
function Ue() {
|
|
530
|
-
return l != null && "withCredentials" in l.prototype ||
|
|
530
|
+
return l != null && "withCredentials" in l.prototype || g == null ? new l() : new g();
|
|
531
531
|
}
|
|
532
|
-
var Pe =
|
|
532
|
+
var Pe = k != null && F != null && "body" in F.prototype;
|
|
533
533
|
function Ge(e, o, s) {
|
|
534
534
|
o = String(o);
|
|
535
|
-
var a = !!s.withCredentials, f = s.lastEventIdQueryParameterName || "lastEventId", h = Ce(1e3),
|
|
535
|
+
var a = !!s.withCredentials, f = s.lastEventIdQueryParameterName || "lastEventId", h = Ce(1e3), d = xe(s.heartbeatTimeout, 45e3), S = "", b = h, R = !1, D = 0, v = s.headers || {}, V = s.Transport, se = Pe && V == null ? void 0 : new z(V != null ? new V() : Ue()), Me = V != null && typeof V != "string" ? new V() : se == null ? new _() : new Y(), Q = void 0, X = 0, ne = Te, _e = "", Fe = "", le = "", Ie = "", K = te, Xe = 0, Be = 0, lt = function(P, U, Z, $) {
|
|
536
536
|
if (ne === ie)
|
|
537
|
-
if (P === 200 && Z != null &&
|
|
537
|
+
if (P === 200 && Z != null && He.test(Z)) {
|
|
538
538
|
ne = ye, R = Date.now(), b = h, e.readyState = ye;
|
|
539
539
|
var q = new Re("open", {
|
|
540
540
|
status: P,
|
|
@@ -558,8 +558,8 @@ var We = { exports: {} };
|
|
|
558
558
|
var $ = P.charCodeAt(Z);
|
|
559
559
|
($ === 10 || $ === 13) && (U = Z);
|
|
560
560
|
}
|
|
561
|
-
var q = (U !== -1 ?
|
|
562
|
-
|
|
561
|
+
var q = (U !== -1 ? Ie : "") + P.slice(0, U + 1);
|
|
562
|
+
Ie = (U === -1 ? Ie : "") + P.slice(U + 1), P !== "" && (R = Date.now(), D += P.length);
|
|
563
563
|
for (var G = 0; G < q.length; G += 1) {
|
|
564
564
|
var $ = q.charCodeAt(G);
|
|
565
565
|
if (K === be && $ === 10)
|
|
@@ -567,16 +567,16 @@ var We = { exports: {} };
|
|
|
567
567
|
else if (K === be && (K = te), $ === 13 || $ === 10) {
|
|
568
568
|
if (K !== te) {
|
|
569
569
|
K === Ee && (Be = G + 1);
|
|
570
|
-
var ce = q.slice(Xe, Be - 1),
|
|
570
|
+
var ce = q.slice(Xe, Be - 1), ue = q.slice(Be + (Be < G && q.charCodeAt(Be) === 32 ? 1 : 0), G);
|
|
571
571
|
ce === "data" ? (_e += `
|
|
572
|
-
`, _e +=
|
|
572
|
+
`, _e += ue) : ce === "id" ? Fe = ue : ce === "event" ? le = ue : ce === "retry" ? (h = xe(ue, h), b = h) : ce === "heartbeatTimeout" && (d = xe(ue, d), X !== 0 && (c(X), X = i(function() {
|
|
573
573
|
De();
|
|
574
|
-
},
|
|
574
|
+
}, d)));
|
|
575
575
|
}
|
|
576
576
|
if (K === te) {
|
|
577
577
|
if (_e !== "") {
|
|
578
|
-
|
|
579
|
-
var Ae = new
|
|
578
|
+
S = Fe, le === "" && (le = "message");
|
|
579
|
+
var Ae = new ge(le, {
|
|
580
580
|
data: _e.slice(1),
|
|
581
581
|
lastEventId: Fe
|
|
582
582
|
});
|
|
@@ -595,7 +595,7 @@ var We = { exports: {} };
|
|
|
595
595
|
ne = Te, X !== 0 && (c(X), X = 0), X = i(function() {
|
|
596
596
|
De();
|
|
597
597
|
}, b), b = Ce(Math.min(h * 16, b * 2)), e.readyState = ie;
|
|
598
|
-
var U = new
|
|
598
|
+
var U = new me("error", { error: P });
|
|
599
599
|
e.dispatchEvent(U), ve(e, e.onerror, U), P != null && console.error(P);
|
|
600
600
|
}
|
|
601
601
|
}, Ke = function() {
|
|
@@ -603,24 +603,24 @@ var We = { exports: {} };
|
|
|
603
603
|
}, De = function() {
|
|
604
604
|
if (X = 0, ne !== Te) {
|
|
605
605
|
if (!R && Q != null)
|
|
606
|
-
Je(new Error("No activity within " +
|
|
606
|
+
Je(new Error("No activity within " + d + " milliseconds. " + (ne === ie ? "No response received." : D + " chars received.") + " Reconnecting.")), Q != null && (Q.abort(), Q = void 0);
|
|
607
607
|
else {
|
|
608
|
-
var P = Math.max((R || Date.now()) +
|
|
608
|
+
var P = Math.max((R || Date.now()) + d - Date.now(), 1);
|
|
609
609
|
R = !1, X = i(function() {
|
|
610
610
|
De();
|
|
611
611
|
}, P);
|
|
612
612
|
}
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
|
-
R = !1,
|
|
615
|
+
R = !1, D = 0, X = i(function() {
|
|
616
616
|
De();
|
|
617
|
-
},
|
|
617
|
+
}, d), ne = ie, _e = "", le = "", Fe = S, Ie = "", Xe = 0, Be = 0, K = te;
|
|
618
618
|
var U = o;
|
|
619
|
-
if (o.slice(0, 5) !== "data:" && o.slice(0, 5) !== "blob:" &&
|
|
619
|
+
if (o.slice(0, 5) !== "data:" && o.slice(0, 5) !== "blob:" && S !== "") {
|
|
620
620
|
var Z = o.indexOf("?");
|
|
621
|
-
U = Z === -1 ? o : o.slice(0, Z + 1) + o.slice(Z + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(
|
|
622
|
-
return Ae === f ? "" :
|
|
623
|
-
}), U += (o.indexOf("?") === -1 ? "?" : "&") + f + "=" + encodeURIComponent(
|
|
621
|
+
U = Z === -1 ? o : o.slice(0, Z + 1) + o.slice(Z + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ue, Ae) {
|
|
622
|
+
return Ae === f ? "" : ue;
|
|
623
|
+
}), U += (o.indexOf("?") === -1 ? "?" : "&") + f + "=" + encodeURIComponent(S);
|
|
624
624
|
}
|
|
625
625
|
var $ = e.withCredentials, q = {};
|
|
626
626
|
q.Accept = "text/event-stream";
|
|
@@ -630,23 +630,23 @@ var We = { exports: {} };
|
|
|
630
630
|
Object.prototype.hasOwnProperty.call(G, ce) && (q[ce] = G[ce]);
|
|
631
631
|
try {
|
|
632
632
|
Q = Me.open(se, lt, ct, Je, U, $, q);
|
|
633
|
-
} catch (
|
|
634
|
-
throw Ke(),
|
|
633
|
+
} catch (ue) {
|
|
634
|
+
throw Ke(), ue;
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
e.url = o, e.readyState = ie, e.withCredentials = a, e.headers = v, e._close = Ke, De();
|
|
638
638
|
}
|
|
639
|
-
J.prototype = Object.create(
|
|
639
|
+
J.prototype = Object.create(O.prototype), J.prototype.CONNECTING = ie, J.prototype.OPEN = ye, J.prototype.CLOSED = we, J.prototype.close = function() {
|
|
640
640
|
this._close();
|
|
641
641
|
}, J.CONNECTING = ie, J.OPEN = ye, J.CLOSED = we, J.prototype.withCredentials = void 0;
|
|
642
|
-
var ke =
|
|
643
|
-
l != null && (
|
|
642
|
+
var ke = m;
|
|
643
|
+
l != null && (m == null || !("withCredentials" in m.prototype)) && (ke = J), function(e) {
|
|
644
644
|
{
|
|
645
645
|
var o = e(t);
|
|
646
646
|
o !== void 0 && (r.exports = o);
|
|
647
647
|
}
|
|
648
648
|
}(function(e) {
|
|
649
|
-
e.EventSourcePolyfill = J, e.NativeEventSource =
|
|
649
|
+
e.EventSourcePolyfill = J, e.NativeEventSource = m, e.EventSource = ke;
|
|
650
650
|
});
|
|
651
651
|
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ft : globalThis);
|
|
652
652
|
})(We, We.exports);
|
|
@@ -679,28 +679,28 @@ function ae(r, t) {
|
|
|
679
679
|
var n = this;
|
|
680
680
|
if (!(n instanceof ae))
|
|
681
681
|
return new ae(r, t);
|
|
682
|
-
var i = Object.assign({}, xt, t), c = Ye(i.precision), l =
|
|
682
|
+
var i = Object.assign({}, xt, t), c = Ye(i.precision), l = Ne(r, i);
|
|
683
683
|
n.intValue = l, n.value = l / c, i.increment = i.increment || 1 / c, i.useVedic ? i.groups = Lt : i.groups = Dt, this.s = i, this.p = c;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, i = 0, c = t.decimal, l = t.errorOnInvalid,
|
|
685
|
+
function Ne(r, t) {
|
|
686
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, i = 0, c = t.decimal, l = t.errorOnInvalid, g = t.precision, p = t.fromCents, m = Ye(g), y = typeof r == "number", A = r instanceof ae;
|
|
687
687
|
if (A && p)
|
|
688
688
|
return r.intValue;
|
|
689
689
|
if (y || A)
|
|
690
690
|
i = A ? r.value : r;
|
|
691
691
|
else if (typeof r == "string") {
|
|
692
|
-
var
|
|
693
|
-
i = r.replace(/\((.*)\)/, "-$1").replace(
|
|
692
|
+
var k = new RegExp("[^-\\d" + c + "]", "g"), F = new RegExp("\\" + c, "g");
|
|
693
|
+
i = r.replace(/\((.*)\)/, "-$1").replace(k, "").replace(F, "."), i = i || 0;
|
|
694
694
|
} else {
|
|
695
695
|
if (l)
|
|
696
696
|
throw Error("Invalid Input");
|
|
697
697
|
i = 0;
|
|
698
698
|
}
|
|
699
|
-
return p || (i *=
|
|
699
|
+
return p || (i *= m, i = i.toFixed(4)), n ? st(i) : i;
|
|
700
700
|
}
|
|
701
701
|
function Ot(r, t) {
|
|
702
|
-
var n = t.pattern, i = t.negativePattern, c = t.symbol, l = t.separator,
|
|
703
|
-
return (r.value >= 0 ? n : i).replace("!", c).replace("#", y.replace(p, "$1" + l) + (A ?
|
|
702
|
+
var n = t.pattern, i = t.negativePattern, c = t.symbol, l = t.separator, g = t.decimal, p = t.groups, m = ("" + r).replace(/^-/, "").split("."), y = m[0], A = m[1];
|
|
703
|
+
return (r.value >= 0 ? n : i).replace("!", c).replace("#", y.replace(p, "$1" + l) + (A ? g + A : ""));
|
|
704
704
|
}
|
|
705
705
|
ae.prototype = {
|
|
706
706
|
/**
|
|
@@ -710,7 +710,7 @@ ae.prototype = {
|
|
|
710
710
|
*/
|
|
711
711
|
add: function(t) {
|
|
712
712
|
var n = this.intValue, i = this.s, c = this.p;
|
|
713
|
-
return ae((n +=
|
|
713
|
+
return ae((n += Ne(t, i)) / (i.fromCents ? 1 : c), i);
|
|
714
714
|
},
|
|
715
715
|
/**
|
|
716
716
|
* Subtracts value.
|
|
@@ -719,7 +719,7 @@ ae.prototype = {
|
|
|
719
719
|
*/
|
|
720
720
|
subtract: function(t) {
|
|
721
721
|
var n = this.intValue, i = this.s, c = this.p;
|
|
722
|
-
return ae((n -=
|
|
722
|
+
return ae((n -= Ne(t, i)) / (i.fromCents ? 1 : c), i);
|
|
723
723
|
},
|
|
724
724
|
/**
|
|
725
725
|
* Multiplies values.
|
|
@@ -737,7 +737,7 @@ ae.prototype = {
|
|
|
737
737
|
*/
|
|
738
738
|
divide: function(t) {
|
|
739
739
|
var n = this.intValue, i = this.s;
|
|
740
|
-
return ae(n /=
|
|
740
|
+
return ae(n /= Ne(t, i, !1), i);
|
|
741
741
|
},
|
|
742
742
|
/**
|
|
743
743
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -746,9 +746,9 @@ ae.prototype = {
|
|
|
746
746
|
* @returns {array}
|
|
747
747
|
*/
|
|
748
748
|
distribute: function(t) {
|
|
749
|
-
for (var n = this.intValue, i = this.p, c = this.s, l = [],
|
|
750
|
-
var y = ae(
|
|
751
|
-
p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 /
|
|
749
|
+
for (var n = this.intValue, i = this.p, c = this.s, l = [], g = Math[n >= 0 ? "floor" : "ceil"](n / t), p = Math.abs(n - g * t), m = c.fromCents ? 1 : i; t !== 0; t--) {
|
|
750
|
+
var y = ae(g / m, c);
|
|
751
|
+
p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / m)), l.push(y);
|
|
752
752
|
}
|
|
753
753
|
return l;
|
|
754
754
|
},
|
|
@@ -793,7 +793,7 @@ ae.prototype = {
|
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
function kt(r) {
|
|
796
|
-
|
|
796
|
+
mt(r, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
797
797
|
}
|
|
798
798
|
function et(r, t, n) {
|
|
799
799
|
const i = r.slice();
|
|
@@ -813,20 +813,20 @@ function Ft(r) {
|
|
|
813
813
|
r[1].Total[0].amount
|
|
814
814
|
)
|
|
815
815
|
) : "0") + ""
|
|
816
|
-
), c, l,
|
|
816
|
+
), c, l, g, p, m, y, A, k, F, I, N, E, w = (
|
|
817
817
|
/*showBalance*/
|
|
818
818
|
r[4] && nt(r)
|
|
819
819
|
);
|
|
820
820
|
return {
|
|
821
821
|
c() {
|
|
822
|
-
t =
|
|
822
|
+
t = j("button"), n = j("p"), c = fe(i), l = oe(), g = fe(
|
|
823
823
|
/*currency*/
|
|
824
824
|
r[5]
|
|
825
|
-
), p = oe(),
|
|
826
|
-
r[3] ? "TriangleActive" : "TriangleInactive"),
|
|
825
|
+
), p = oe(), m = j("span"), y = Qe("svg"), A = Qe("path"), F = oe(), w && w.c(), I = bt(), C(A, "id", "arrow"), C(A, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), C(A, "transform", "translate(-274.511 -441.088)"), C(A, "fill", "#d1d1d1"), C(y, "xmlns", "http://www.w3.org/2000/svg"), C(y, "width", "14"), C(y, "height", "6.835"), C(y, "viewBox", "0 0 14 6.835"), C(m, "class", k = /*isModalDisplayed*/
|
|
826
|
+
r[3] ? "TriangleActive" : "TriangleInactive"), C(t, "class", "BalanceValue");
|
|
827
827
|
},
|
|
828
828
|
m(T, H) {
|
|
829
|
-
he(T, t, H), B(t, n), B(n, c), B(n, l), B(n,
|
|
829
|
+
he(T, t, H), B(t, n), B(n, c), B(n, l), B(n, g), B(t, p), B(t, m), B(m, y), B(y, A), he(T, F, H), w && w.m(T, H), he(T, I, H), N || (E = Ve(
|
|
830
830
|
t,
|
|
831
831
|
"click",
|
|
832
832
|
/*click_handler*/
|
|
@@ -842,29 +842,29 @@ function Ft(r) {
|
|
|
842
842
|
/*balances*/
|
|
843
843
|
T[1].Total[0].amount
|
|
844
844
|
)
|
|
845
|
-
) : "0") + "") &&
|
|
846
|
-
32 &&
|
|
847
|
-
|
|
845
|
+
) : "0") + "") && de(c, i), H[0] & /*currency*/
|
|
846
|
+
32 && de(
|
|
847
|
+
g,
|
|
848
848
|
/*currency*/
|
|
849
849
|
T[5]
|
|
850
|
-
), H[0] & /*
|
|
851
|
-
8 &&
|
|
852
|
-
T[3] ? "TriangleActive" : "TriangleInactive") &&
|
|
853
|
-
T[4] ? w ? w.p(T, H) : (w = nt(T), w.c(), w.m(
|
|
850
|
+
), H[0] & /*isModalDisplayed*/
|
|
851
|
+
8 && k !== (k = /*isModalDisplayed*/
|
|
852
|
+
T[3] ? "TriangleActive" : "TriangleInactive") && C(m, "class", k), /*showBalance*/
|
|
853
|
+
T[4] ? w ? w.p(T, H) : (w = nt(T), w.c(), w.m(I.parentNode, I)) : w && (w.d(1), w = null);
|
|
854
854
|
},
|
|
855
855
|
d(T) {
|
|
856
|
-
T && (pe(t), pe(
|
|
856
|
+
T && (pe(t), pe(F), pe(I)), w && w.d(T), N = !1, E();
|
|
857
857
|
}
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function It(r) {
|
|
861
861
|
let t, n = (
|
|
862
862
|
/*$_*/
|
|
863
863
|
r[6]("Loading") + ""
|
|
864
864
|
), i;
|
|
865
865
|
return {
|
|
866
866
|
c() {
|
|
867
|
-
t =
|
|
867
|
+
t = j("p"), i = fe(n), C(t, "class", "Loading");
|
|
868
868
|
},
|
|
869
869
|
m(c, l) {
|
|
870
870
|
he(c, t, l), B(t, i);
|
|
@@ -872,7 +872,7 @@ function Nt(r) {
|
|
|
872
872
|
p(c, l) {
|
|
873
873
|
l[0] & /*$_*/
|
|
874
874
|
64 && n !== (n = /*$_*/
|
|
875
|
-
c[6]("Loading") + "") &&
|
|
875
|
+
c[6]("Loading") + "") && de(i, n);
|
|
876
876
|
},
|
|
877
877
|
d(c) {
|
|
878
878
|
c && pe(t);
|
|
@@ -880,34 +880,34 @@ function Nt(r) {
|
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
882
|
function nt(r) {
|
|
883
|
-
let t, n, i, c, l,
|
|
883
|
+
let t, n, i, c, l, g, p, m, y = (
|
|
884
884
|
/*$_*/
|
|
885
885
|
r[6]("Title") + ""
|
|
886
|
-
), A,
|
|
886
|
+
), A, k, F, I, N, E, w = (
|
|
887
887
|
/*$_*/
|
|
888
888
|
r[6]("DepositButton") + ""
|
|
889
|
-
), T, H,
|
|
889
|
+
), T, H, x, z, re, ee, Y = je(Object.keys(
|
|
890
890
|
/*balances*/
|
|
891
891
|
r[1]
|
|
892
|
-
)),
|
|
893
|
-
for (let
|
|
894
|
-
|
|
892
|
+
)), L = [];
|
|
893
|
+
for (let _ = 0; _ < Y.length; _ += 1)
|
|
894
|
+
L[_] = ot(et(r, Y, _));
|
|
895
895
|
return {
|
|
896
896
|
c() {
|
|
897
|
-
t =
|
|
898
|
-
for (let
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
(r[3] ? "Open" : "")),
|
|
902
|
-
(r[3] ? "Open" : "")),
|
|
903
|
-
(r[3] ? "Open" : "")),
|
|
897
|
+
t = j("div"), n = j("button"), c = oe(), l = j("div"), g = j("div"), p = j("div"), m = j("p"), A = fe(y), k = oe(), F = j("div");
|
|
898
|
+
for (let _ = 0; _ < L.length; _ += 1)
|
|
899
|
+
L[_].c();
|
|
900
|
+
I = oe(), N = j("div"), E = j("button"), T = fe(w), C(n, "class", i = "BalanceModalClose " + /*isModalDisplayed*/
|
|
901
|
+
(r[3] ? "Open" : "")), C(m, "class", "BalanceModalTitle"), C(p, "class", "BalanceModalHeader"), C(F, "class", "BalanceModalBody"), C(E, "class", "BalanceModalAction"), C(N, "class", "BalanceModalFooter"), C(g, "class", H = "ModalContent " + /*isModalDisplayed*/
|
|
902
|
+
(r[3] ? "Open" : "")), C(l, "class", x = "BalanceModal " + /*isModalDisplayed*/
|
|
903
|
+
(r[3] ? "Open" : "")), C(t, "class", z = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
904
904
|
(r[3] ? "Open" : ""));
|
|
905
905
|
},
|
|
906
|
-
m(
|
|
907
|
-
he(
|
|
908
|
-
for (let
|
|
909
|
-
|
|
910
|
-
B(
|
|
906
|
+
m(_, O) {
|
|
907
|
+
he(_, t, O), B(t, n), B(t, c), B(t, l), B(l, g), B(g, p), B(p, m), B(m, A), B(g, k), B(g, F);
|
|
908
|
+
for (let M = 0; M < L.length; M += 1)
|
|
909
|
+
L[M] && L[M].m(F, null);
|
|
910
|
+
B(g, I), B(g, N), B(N, E), B(E, T), re || (ee = [
|
|
911
911
|
Ve(
|
|
912
912
|
n,
|
|
913
913
|
"click",
|
|
@@ -922,38 +922,38 @@ function nt(r) {
|
|
|
922
922
|
)
|
|
923
923
|
], re = !0);
|
|
924
924
|
},
|
|
925
|
-
p(
|
|
926
|
-
if (
|
|
927
|
-
8 && i !== (i = "BalanceModalClose " + /*
|
|
928
|
-
(
|
|
925
|
+
p(_, O) {
|
|
926
|
+
if (O[0] & /*isModalDisplayed*/
|
|
927
|
+
8 && i !== (i = "BalanceModalClose " + /*isModalDisplayed*/
|
|
928
|
+
(_[3] ? "Open" : "")) && C(n, "class", i), O[0] & /*$_*/
|
|
929
929
|
64 && y !== (y = /*$_*/
|
|
930
|
-
|
|
930
|
+
_[6]("Title") + "") && de(A, y), O[0] & /*balances, currency, formatBalance, $_*/
|
|
931
931
|
354) {
|
|
932
932
|
Y = je(Object.keys(
|
|
933
933
|
/*balances*/
|
|
934
|
-
|
|
934
|
+
_[1]
|
|
935
935
|
));
|
|
936
|
-
let
|
|
937
|
-
for (
|
|
938
|
-
const
|
|
939
|
-
|
|
936
|
+
let M;
|
|
937
|
+
for (M = 0; M < Y.length; M += 1) {
|
|
938
|
+
const u = et(_, Y, M);
|
|
939
|
+
L[M] ? L[M].p(u, O) : (L[M] = ot(u), L[M].c(), L[M].m(F, null));
|
|
940
940
|
}
|
|
941
|
-
for (;
|
|
942
|
-
|
|
943
|
-
|
|
941
|
+
for (; M < L.length; M += 1)
|
|
942
|
+
L[M].d(1);
|
|
943
|
+
L.length = Y.length;
|
|
944
944
|
}
|
|
945
|
-
|
|
945
|
+
O[0] & /*$_*/
|
|
946
946
|
64 && w !== (w = /*$_*/
|
|
947
|
-
|
|
948
|
-
8 && H !== (H = "ModalContent " + /*
|
|
949
|
-
(
|
|
950
|
-
8 &&
|
|
951
|
-
(
|
|
952
|
-
8 &&
|
|
953
|
-
(
|
|
947
|
+
_[6]("DepositButton") + "") && de(T, w), O[0] & /*isModalDisplayed*/
|
|
948
|
+
8 && H !== (H = "ModalContent " + /*isModalDisplayed*/
|
|
949
|
+
(_[3] ? "Open" : "")) && C(g, "class", H), O[0] & /*isModalDisplayed*/
|
|
950
|
+
8 && x !== (x = "BalanceModal " + /*isModalDisplayed*/
|
|
951
|
+
(_[3] ? "Open" : "")) && C(l, "class", x), O[0] & /*isModalDisplayed*/
|
|
952
|
+
8 && z !== (z = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
953
|
+
(_[3] ? "Open" : "")) && C(t, "class", z);
|
|
954
954
|
},
|
|
955
|
-
d(
|
|
956
|
-
|
|
955
|
+
d(_) {
|
|
956
|
+
_ && pe(t), it(L, _), re = !1, Bt(ee);
|
|
957
957
|
}
|
|
958
958
|
};
|
|
959
959
|
}
|
|
@@ -964,7 +964,7 @@ function at(r) {
|
|
|
964
964
|
/*k*/
|
|
965
965
|
r[50]
|
|
966
966
|
) + ""
|
|
967
|
-
), c, l,
|
|
967
|
+
), c, l, g = (
|
|
968
968
|
/*b*/
|
|
969
969
|
(r[53].productType ? (
|
|
970
970
|
/*$_*/
|
|
@@ -973,7 +973,7 @@ function at(r) {
|
|
|
973
973
|
r[53].productType
|
|
974
974
|
)
|
|
975
975
|
) : "") + ""
|
|
976
|
-
), p,
|
|
976
|
+
), p, m, y, A, k = (
|
|
977
977
|
/*b*/
|
|
978
978
|
(r[53].amount ? (
|
|
979
979
|
/*formatBalance*/
|
|
@@ -982,16 +982,16 @@ function at(r) {
|
|
|
982
982
|
r[53].amount
|
|
983
983
|
)
|
|
984
984
|
) : "0") + ""
|
|
985
|
-
),
|
|
985
|
+
), F, I, N, E;
|
|
986
986
|
return {
|
|
987
987
|
c() {
|
|
988
|
-
t =
|
|
988
|
+
t = j("div"), n = j("p"), c = fe(i), l = oe(), p = fe(g), m = oe(), y = j("p"), A = j("span"), F = fe(k), I = oe(), N = j("span"), E = fe(
|
|
989
989
|
/*currency*/
|
|
990
990
|
r[5]
|
|
991
|
-
),
|
|
991
|
+
), C(n, "class", "BalanceModalText"), C(A, "class", "BalanceModalAmount"), C(N, "class", "BalanceModalCurrency"), C(y, "class", "BalanceModalValue"), C(t, "class", "BalanceModalRowLine");
|
|
992
992
|
},
|
|
993
993
|
m(w, T) {
|
|
994
|
-
he(w, t, T), B(t, n), B(n, c), B(n, l), B(n, p), B(t,
|
|
994
|
+
he(w, t, T), B(t, n), B(n, c), B(n, l), B(n, p), B(t, m), B(t, y), B(y, A), B(A, F), B(y, I), B(y, N), B(N, E);
|
|
995
995
|
},
|
|
996
996
|
p(w, T) {
|
|
997
997
|
T[0] & /*$_, balances*/
|
|
@@ -999,24 +999,24 @@ function at(r) {
|
|
|
999
999
|
w[6](
|
|
1000
1000
|
/*k*/
|
|
1001
1001
|
w[50]
|
|
1002
|
-
) + "") &&
|
|
1003
|
-
66 &&
|
|
1002
|
+
) + "") && de(c, i), T[0] & /*balances, $_*/
|
|
1003
|
+
66 && g !== (g = /*b*/
|
|
1004
1004
|
(w[53].productType ? (
|
|
1005
1005
|
/*$_*/
|
|
1006
1006
|
w[6](
|
|
1007
1007
|
/*b*/
|
|
1008
1008
|
w[53].productType
|
|
1009
1009
|
)
|
|
1010
|
-
) : "") + "") &&
|
|
1011
|
-
2 &&
|
|
1010
|
+
) : "") + "") && de(p, g), T[0] & /*balances*/
|
|
1011
|
+
2 && k !== (k = /*b*/
|
|
1012
1012
|
(w[53].amount ? (
|
|
1013
1013
|
/*formatBalance*/
|
|
1014
1014
|
w[8](
|
|
1015
1015
|
/*b*/
|
|
1016
1016
|
w[53].amount
|
|
1017
1017
|
)
|
|
1018
|
-
) : "0") + "") &&
|
|
1019
|
-
32 &&
|
|
1018
|
+
) : "0") + "") && de(F, k), T[0] & /*currency*/
|
|
1019
|
+
32 && de(
|
|
1020
1020
|
E,
|
|
1021
1021
|
/*currency*/
|
|
1022
1022
|
w[5]
|
|
@@ -1039,19 +1039,19 @@ function ot(r) {
|
|
|
1039
1039
|
c[l] = at(tt(r, i, l));
|
|
1040
1040
|
return {
|
|
1041
1041
|
c() {
|
|
1042
|
-
t =
|
|
1042
|
+
t = j("div");
|
|
1043
1043
|
for (let l = 0; l < c.length; l += 1)
|
|
1044
1044
|
c[l].c();
|
|
1045
|
-
n = oe(),
|
|
1045
|
+
n = oe(), C(t, "class", "BalanceModalRowBoth");
|
|
1046
1046
|
},
|
|
1047
|
-
m(l,
|
|
1048
|
-
he(l, t,
|
|
1047
|
+
m(l, g) {
|
|
1048
|
+
he(l, t, g);
|
|
1049
1049
|
for (let p = 0; p < c.length; p += 1)
|
|
1050
1050
|
c[p] && c[p].m(t, null);
|
|
1051
1051
|
B(t, n);
|
|
1052
1052
|
},
|
|
1053
|
-
p(l,
|
|
1054
|
-
if (
|
|
1053
|
+
p(l, g) {
|
|
1054
|
+
if (g[0] & /*currency, balances, formatBalance, $_*/
|
|
1055
1055
|
354) {
|
|
1056
1056
|
i = je(
|
|
1057
1057
|
/*balances*/
|
|
@@ -1062,8 +1062,8 @@ function ot(r) {
|
|
|
1062
1062
|
);
|
|
1063
1063
|
let p;
|
|
1064
1064
|
for (p = 0; p < i.length; p += 1) {
|
|
1065
|
-
const
|
|
1066
|
-
c[p] ? c[p].p(
|
|
1065
|
+
const m = tt(l, i, p);
|
|
1066
|
+
c[p] ? c[p].p(m, g) : (c[p] = at(m), c[p].c(), c[p].m(t, n));
|
|
1067
1067
|
}
|
|
1068
1068
|
for (; p < c.length; p += 1)
|
|
1069
1069
|
c[p].d(1);
|
|
@@ -1079,7 +1079,7 @@ function rt(r) {
|
|
|
1079
1079
|
let t, n, i;
|
|
1080
1080
|
return {
|
|
1081
1081
|
c() {
|
|
1082
|
-
t =
|
|
1082
|
+
t = j("button"), C(t, "class", "ShowBalanceModalOverlay");
|
|
1083
1083
|
},
|
|
1084
1084
|
m(c, l) {
|
|
1085
1085
|
he(c, t, l), n || (i = Ve(
|
|
@@ -1095,45 +1095,45 @@ function rt(r) {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function Nt(r) {
|
|
1099
1099
|
let t, n, i;
|
|
1100
|
-
function c(
|
|
1100
|
+
function c(m, y) {
|
|
1101
1101
|
return (
|
|
1102
1102
|
/*isLoading*/
|
|
1103
|
-
|
|
1103
|
+
m[2] ? It : Ft
|
|
1104
1104
|
);
|
|
1105
1105
|
}
|
|
1106
|
-
let l = c(r),
|
|
1106
|
+
let l = c(r), g = l(r), p = (
|
|
1107
1107
|
/*showBalance*/
|
|
1108
1108
|
r[4] && rt(r)
|
|
1109
1109
|
);
|
|
1110
1110
|
return {
|
|
1111
1111
|
c() {
|
|
1112
|
-
t =
|
|
1112
|
+
t = j("div"), n = j("div"), g.c(), i = oe(), p && p.c(), C(n, "class", "ShowBalance");
|
|
1113
1113
|
},
|
|
1114
|
-
m(
|
|
1115
|
-
he(
|
|
1114
|
+
m(m, y) {
|
|
1115
|
+
he(m, t, y), B(t, n), g.m(n, null), B(t, i), p && p.m(t, null), r[29](t);
|
|
1116
1116
|
},
|
|
1117
|
-
p(
|
|
1118
|
-
l === (l = c(
|
|
1119
|
-
|
|
1117
|
+
p(m, y) {
|
|
1118
|
+
l === (l = c(m)) && g ? g.p(m, y) : (g.d(1), g = l(m), g && (g.c(), g.m(n, null))), /*showBalance*/
|
|
1119
|
+
m[4] ? p ? p.p(m, y) : (p = rt(m), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
|
|
1120
1120
|
},
|
|
1121
1121
|
i: qe,
|
|
1122
1122
|
o: qe,
|
|
1123
|
-
d(
|
|
1124
|
-
|
|
1123
|
+
d(m) {
|
|
1124
|
+
m && pe(t), g.d(), p && p.d(), r[29](null);
|
|
1125
1125
|
}
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
1128
|
function Vt(r, t, n) {
|
|
1129
1129
|
let i;
|
|
1130
1130
|
yt(r, At, (e) => n(6, i = e));
|
|
1131
|
-
let { userid: c = "" } = t, { session: l = "" } = t, { endpoint:
|
|
1132
|
-
const
|
|
1133
|
-
fetch(
|
|
1131
|
+
let { userid: c = "" } = t, { session: l = "" } = t, { endpoint: g = "" } = t, { lang: p = "en" } = t, { mbsource: m } = t, { clientstyling: y = "" } = t, { clientstylingurl: A = "" } = t, { translationurl: k = "" } = t, { customlocaleidentifier: F = "" } = t, { gmversion: I = "gm16" } = t, { displaybalanceoption: N = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { currencyseparator: w = "" } = t, { currencydecimal: T = "" } = t, { currencyprecision: H = "" } = t, x, z = !0, re = !1, ee = !1, Y = !1, L, _ = "", O = [], M;
|
|
1132
|
+
const u = {}, ge = ["totalCashAmount", "totalRealAmount"], Re = () => {
|
|
1133
|
+
fetch(k).then((e) => e.json()).then((e) => Object.keys(e).forEach((o) => Ze(o, e[o]))).catch((e) => console.log(e));
|
|
1134
1134
|
};
|
|
1135
1135
|
Object.keys($e).forEach((e) => Ze(e, $e[e]));
|
|
1136
|
-
const
|
|
1136
|
+
const me = (e) => {
|
|
1137
1137
|
switch (e) {
|
|
1138
1138
|
case "balance":
|
|
1139
1139
|
window.postMessage(
|
|
@@ -1160,9 +1160,9 @@ function Vt(r, t, n) {
|
|
|
1160
1160
|
break;
|
|
1161
1161
|
}
|
|
1162
1162
|
}, Te = () => {
|
|
1163
|
-
if (
|
|
1164
|
-
return
|
|
1165
|
-
}, ie = (e) =>
|
|
1163
|
+
if (F.includes(p))
|
|
1164
|
+
return F;
|
|
1165
|
+
}, ie = (e) => F ? new Intl.NumberFormat(Te(), { useGrouping: !0 }).format(e) : w && T ? ae(e, {
|
|
1166
1166
|
separator: w,
|
|
1167
1167
|
decimal: T,
|
|
1168
1168
|
symbol: "",
|
|
@@ -1173,66 +1173,66 @@ function Vt(r, t, n) {
|
|
|
1173
1173
|
symbol: "",
|
|
1174
1174
|
precision: parseInt(H || "2", 10)
|
|
1175
1175
|
}).format(), ye = async () => {
|
|
1176
|
-
n(2,
|
|
1177
|
-
const e = new URL(`${
|
|
1176
|
+
n(2, z = !0);
|
|
1177
|
+
const e = new URL(`${g}/v1/player/${c}/account`);
|
|
1178
1178
|
try {
|
|
1179
1179
|
const o = await fetch(e, {
|
|
1180
1180
|
method: "GET",
|
|
1181
1181
|
headers: { "X-SessionID": l }
|
|
1182
1182
|
}), s = await o.json();
|
|
1183
1183
|
if (o.ok)
|
|
1184
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
1184
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), O = s.items, n(5, _ = O.find((a) => a.displayName === "Casino")?.currency), n(1, u.Total = [{ amount: s.totalAmount[_] }], u), n(
|
|
1185
1185
|
1,
|
|
1186
|
-
|
|
1186
|
+
u.Real = [
|
|
1187
1187
|
{
|
|
1188
|
-
amount:
|
|
1188
|
+
amount: O.find((a) => a.displayName === "Casino")?.balanceAmount
|
|
1189
1189
|
}
|
|
1190
1190
|
],
|
|
1191
|
-
|
|
1191
|
+
u
|
|
1192
1192
|
), n(
|
|
1193
1193
|
1,
|
|
1194
|
-
|
|
1194
|
+
u.Bonus = [
|
|
1195
1195
|
{
|
|
1196
|
-
amount:
|
|
1196
|
+
amount: O.find((a) => a.displayName === "UBS")?.balanceAmount
|
|
1197
1197
|
}
|
|
1198
1198
|
],
|
|
1199
|
-
|
|
1199
|
+
u
|
|
1200
1200
|
);
|
|
1201
1201
|
else
|
|
1202
1202
|
throw new Error("Failed to fetch balance data !");
|
|
1203
1203
|
} catch (o) {
|
|
1204
1204
|
console.log("Balance error: ", o);
|
|
1205
1205
|
} finally {
|
|
1206
|
-
n(2,
|
|
1206
|
+
n(2, z = !1);
|
|
1207
1207
|
}
|
|
1208
1208
|
}, we = () => {
|
|
1209
|
-
n(2,
|
|
1210
|
-
const e = new URL(`${
|
|
1209
|
+
n(2, z = !0);
|
|
1210
|
+
const e = new URL(`${g}/v2/player/${c}/balance`), o = new Headers();
|
|
1211
1211
|
o.append("X-SessionID", l), fetch(e, { method: "GET", headers: o }).then((a) => a.json()).then((a) => {
|
|
1212
|
-
a[E] || n(10, E =
|
|
1213
|
-
const f = a.items.find((
|
|
1214
|
-
if (n(5,
|
|
1215
|
-
|
|
1212
|
+
a[E] || n(10, E = ge[0]);
|
|
1213
|
+
const f = a.items.find((d) => d.type === "Real" && d.walletAccountType === "Ordinary");
|
|
1214
|
+
if (n(5, _ = f.currency), ee = !!f.productType, n(1, u.Total = [{ amount: 0 }], u), n(1, u.Real = [], u), n(1, u.Bonus = [], u), n(1, u.Credit = [], u), !ee) {
|
|
1215
|
+
M = {
|
|
1216
1216
|
lastOrdinaryAfterAmount: 0,
|
|
1217
1217
|
showCreditLineAfterAmount: !1
|
|
1218
|
-
}, n(1,
|
|
1219
|
-
for (const
|
|
1220
|
-
switch (
|
|
1218
|
+
}, n(1, u.Total[0].amount = a[E][_], u);
|
|
1219
|
+
for (const d of a.items)
|
|
1220
|
+
switch (d.type) {
|
|
1221
1221
|
case "Bonus":
|
|
1222
|
-
|
|
1222
|
+
u.Bonus.length === 0 ? u.Bonus.push({ amount: d.amount }) : n(1, u.Bonus[0].amount += d.amount, u);
|
|
1223
1223
|
break;
|
|
1224
1224
|
case "Real":
|
|
1225
|
-
if (
|
|
1225
|
+
if (d.creditLine && u.Credit.length === 0 && u.Credit.push({ amount: d.creditLine }), E === "totalRealAmount")
|
|
1226
1226
|
continue;
|
|
1227
|
-
|
|
1227
|
+
u.Real.length === 0 ? u.Real.push({ amount: d.amount }) : n(1, u.Real[0].amount += d.amount, u);
|
|
1228
1228
|
break;
|
|
1229
1229
|
}
|
|
1230
|
-
for (const [
|
|
1231
|
-
|
|
1232
|
-
n(2,
|
|
1230
|
+
for (const [d, S] of Object.entries(u))
|
|
1231
|
+
S.length < 1 && delete u[d];
|
|
1232
|
+
n(2, z = !1);
|
|
1233
1233
|
return;
|
|
1234
1234
|
}
|
|
1235
|
-
|
|
1235
|
+
M = {
|
|
1236
1236
|
Casino: {
|
|
1237
1237
|
lastOrdinaryAfterAmount: 0,
|
|
1238
1238
|
showCreditLineAfterAmount: !1
|
|
@@ -1243,51 +1243,51 @@ function Vt(r, t, n) {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
1245
|
let h = a.items;
|
|
1246
|
-
N && N !== "All" && (h = a.items.filter((
|
|
1247
|
-
for (const
|
|
1248
|
-
let
|
|
1249
|
-
switch (
|
|
1246
|
+
N && N !== "All" && (h = a.items.filter((d) => d.productType === N));
|
|
1247
|
+
for (const d of h) {
|
|
1248
|
+
let S;
|
|
1249
|
+
switch (d.type) {
|
|
1250
1250
|
case "Bonus":
|
|
1251
|
-
|
|
1252
|
-
amount:
|
|
1253
|
-
productType:
|
|
1251
|
+
S = u.Bonus.findIndex((b) => b.productType === d.productType), S > 0 ? n(1, u.Bonus[S].amount += d.amount, u) : u.Bonus.push({
|
|
1252
|
+
amount: d.amount,
|
|
1253
|
+
productType: d.productType
|
|
1254
1254
|
});
|
|
1255
1255
|
break;
|
|
1256
1256
|
case "Real":
|
|
1257
|
-
|
|
1258
|
-
amount:
|
|
1259
|
-
productType:
|
|
1260
|
-
}),
|
|
1261
|
-
amount:
|
|
1262
|
-
productType:
|
|
1257
|
+
d.creditLine && u.Credit.push({
|
|
1258
|
+
amount: d.creditLine,
|
|
1259
|
+
productType: d.productType
|
|
1260
|
+
}), S = u.Real.findIndex((b) => b.productType === d.productType), S > 0 ? n(1, u.Real[S].amount += d.amount, u) : u.Real.push({
|
|
1261
|
+
amount: d.amount,
|
|
1262
|
+
productType: d.productType
|
|
1263
1263
|
});
|
|
1264
1264
|
break;
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
Le();
|
|
1268
|
-
for (const [
|
|
1269
|
-
|
|
1270
|
-
n(2,
|
|
1268
|
+
for (const [d, S] of Object.entries(u))
|
|
1269
|
+
S.length < 1 && delete u[d];
|
|
1270
|
+
n(2, z = !1);
|
|
1271
1271
|
}).catch((a) => {
|
|
1272
|
-
throw n(2,
|
|
1272
|
+
throw n(2, z = !1), console.log("Balance fetch error", a), new Error("Failed to fetch balance data!");
|
|
1273
1273
|
});
|
|
1274
1274
|
}, be = () => {
|
|
1275
|
-
if (
|
|
1275
|
+
if (L && L.close(), l.length < 1)
|
|
1276
1276
|
return;
|
|
1277
1277
|
let e, o;
|
|
1278
|
-
switch (
|
|
1278
|
+
switch (I) {
|
|
1279
1279
|
case "gm16":
|
|
1280
|
-
e = new URL(`${
|
|
1280
|
+
e = new URL(`${g}/v2/player/${c}/information/updates`), o = (f) => He(f);
|
|
1281
1281
|
break;
|
|
1282
1282
|
case "gmcore":
|
|
1283
|
-
e = new URL(`${
|
|
1283
|
+
e = new URL(`${g}/v1/player/${c}/balance/updates`), o = (f) => Ee(f);
|
|
1284
1284
|
break;
|
|
1285
1285
|
}
|
|
1286
1286
|
const s = {
|
|
1287
1287
|
accept: "text/event-stream",
|
|
1288
1288
|
"X-SessionId": l
|
|
1289
1289
|
}, a = new Et.EventSourcePolyfill(e, { headers: s });
|
|
1290
|
-
|
|
1290
|
+
L = a, a.addEventListener("message", o);
|
|
1291
1291
|
}, te = (e) => {
|
|
1292
1292
|
let o;
|
|
1293
1293
|
try {
|
|
@@ -1305,15 +1305,15 @@ function Vt(r, t, n) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
let s = "0";
|
|
1307
1307
|
const a = o.balanceChange;
|
|
1308
|
-
|
|
1308
|
+
O = O.map((f) => (a && a[f.id] && (f = {
|
|
1309
1309
|
...f,
|
|
1310
1310
|
balanceAmount: a[f.id].afterAmount
|
|
1311
|
-
}), s = (parseFloat(f?.balanceAmount) + parseFloat(s)).toString(), f)), n(1,
|
|
1311
|
+
}), s = (parseFloat(f?.balanceAmount) + parseFloat(s)).toString(), f)), n(1, u.Real = [{ amount: O[0]?.balanceAmount }], u), n(1, u.Bonus = [{ amount: O[1]?.balanceAmount }], u), n(1, u.Total = [{ amount: Number(s) }], u);
|
|
1312
1312
|
}, Se = (e, o, s) => {
|
|
1313
1313
|
let a = null;
|
|
1314
1314
|
switch (s.walletAccountType) {
|
|
1315
1315
|
case "Ordinary":
|
|
1316
|
-
s.afterAmount !== s.affectedAmount && (o.lastOrdinaryAfterAmount = s.afterAmount, o.showCreditLineAfterAmount || (a = s.afterAmount));
|
|
1316
|
+
(s.afterAmount !== s.affectedAmount || o.lastOrdinaryAfterAmount === 0) && (o.lastOrdinaryAfterAmount = s.afterAmount, o.showCreditLineAfterAmount || (a = s.afterAmount));
|
|
1317
1317
|
break;
|
|
1318
1318
|
case "CreditLine":
|
|
1319
1319
|
s.afterAmount !== 0 ? (a = s.afterAmount, o.showCreditLineAfterAmount = !0) : (a = o.lastOrdinaryAfterAmount, o.showCreditLineAfterAmount = !1);
|
|
@@ -1327,19 +1327,19 @@ function Vt(r, t, n) {
|
|
|
1327
1327
|
case "totalCashAmount":
|
|
1328
1328
|
let e = 0;
|
|
1329
1329
|
for (const s of ["Real", "Bonus"])
|
|
1330
|
-
for (const a of
|
|
1330
|
+
for (const a of u[s])
|
|
1331
1331
|
e += Math.max(a.amount, 0);
|
|
1332
|
-
n(1,
|
|
1332
|
+
n(1, u.Total[0].amount = e, u);
|
|
1333
1333
|
break;
|
|
1334
1334
|
case "totalRealAmount":
|
|
1335
|
-
if (!
|
|
1335
|
+
if (!ee)
|
|
1336
1336
|
return;
|
|
1337
1337
|
let o = 0;
|
|
1338
|
-
for (const s of
|
|
1338
|
+
for (const s of u.Real)
|
|
1339
1339
|
o += s.amount;
|
|
1340
|
-
n(1,
|
|
1340
|
+
n(1, u.Total[0].amount = o, u);
|
|
1341
1341
|
}
|
|
1342
|
-
},
|
|
1342
|
+
}, He = (e) => {
|
|
1343
1343
|
const o = te(e.data);
|
|
1344
1344
|
if (!o) {
|
|
1345
1345
|
be();
|
|
@@ -1349,21 +1349,21 @@ function Vt(r, t, n) {
|
|
|
1349
1349
|
return;
|
|
1350
1350
|
const s = o.body.balanceChange;
|
|
1351
1351
|
for (const [a, f] of Object.entries(s))
|
|
1352
|
-
if (E === "totalRealAmount" && a === "Real" && !
|
|
1353
|
-
for (const h of
|
|
1354
|
-
if (!
|
|
1355
|
-
h.amount = a === "Real" ? Se(h.amount,
|
|
1352
|
+
if (E === "totalRealAmount" && a === "Real" && !ee && n(1, u.Total[0].amount = Se(u.Total[0].amount, M, f), u), !!u[a])
|
|
1353
|
+
for (const h of u[a]) {
|
|
1354
|
+
if (!ee) {
|
|
1355
|
+
h.amount = a === "Real" ? Se(h.amount, M, f) : f.afterAmount;
|
|
1356
1356
|
continue;
|
|
1357
1357
|
}
|
|
1358
|
-
f.productType === h.productType && (h.amount = a === "Real" ? Se(h.amount,
|
|
1358
|
+
f.productType === h.productType && (h.amount = a === "Real" ? Se(h.amount, M[h.productType], f) : f.afterAmount);
|
|
1359
1359
|
}
|
|
1360
1360
|
Le();
|
|
1361
1361
|
}, Oe = () => {
|
|
1362
|
-
|
|
1363
|
-
},
|
|
1364
|
-
|
|
1362
|
+
me("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
1363
|
+
}, ze = () => {
|
|
1364
|
+
ge.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${ge}. Using default value ('${ge[0]}').`), n(10, E = ge[0]));
|
|
1365
1365
|
}, xe = () => {
|
|
1366
|
-
switch (Rt(p),
|
|
1366
|
+
switch (Rt(p), ze(), I) {
|
|
1367
1367
|
case "gmcore":
|
|
1368
1368
|
ye();
|
|
1369
1369
|
break;
|
|
@@ -1371,54 +1371,54 @@ function Vt(r, t, n) {
|
|
|
1371
1371
|
we();
|
|
1372
1372
|
break;
|
|
1373
1373
|
default:
|
|
1374
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
1374
|
+
throw Error(`Invalid apiversion attribute: ${I}`);
|
|
1375
1375
|
}
|
|
1376
|
-
}, Ce = (e) => e.data && e.data.type === "LogoutSuccessfull" &&
|
|
1376
|
+
}, Ce = (e) => e.data && e.data.type === "LogoutSuccessfull" && L.close(), ve = () => {
|
|
1377
1377
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
1378
1378
|
};
|
|
1379
1379
|
vt(() => (window.addEventListener("message", Ce, !1), () => {
|
|
1380
|
-
window.removeEventListener("message", Ce),
|
|
1380
|
+
window.removeEventListener("message", Ce), L && L.close();
|
|
1381
1381
|
}));
|
|
1382
|
-
const J = () =>
|
|
1382
|
+
const J = () => me("balance"), Ue = () => me("closebalance"), Pe = () => Oe(), Ge = () => me("closeBalance");
|
|
1383
1383
|
function ke(e) {
|
|
1384
1384
|
wt[e ? "unshift" : "push"](() => {
|
|
1385
|
-
|
|
1385
|
+
x = e, n(0, x);
|
|
1386
1386
|
});
|
|
1387
1387
|
}
|
|
1388
1388
|
return r.$$set = (e) => {
|
|
1389
|
-
"userid" in e && n(11, c = e.userid), "session" in e && n(12, l = e.session), "endpoint" in e && n(13,
|
|
1389
|
+
"userid" in e && n(11, c = e.userid), "session" in e && n(12, l = e.session), "endpoint" in e && n(13, g = e.endpoint), "lang" in e && n(14, p = e.lang), "mbsource" in e && n(15, m = e.mbsource), "clientstyling" in e && n(16, y = e.clientstyling), "clientstylingurl" in e && n(17, A = e.clientstylingurl), "translationurl" in e && n(18, k = e.translationurl), "customlocaleidentifier" in e && n(19, F = e.customlocaleidentifier), "gmversion" in e && n(20, I = e.gmversion), "displaybalanceoption" in e && n(21, N = e.displaybalanceoption), "totalcalculationmode" in e && n(10, E = e.totalcalculationmode), "currencyseparator" in e && n(22, w = e.currencyseparator), "currencydecimal" in e && n(23, T = e.currencydecimal), "currencyprecision" in e && n(24, H = e.currencyprecision);
|
|
1390
1390
|
}, r.$$.update = () => {
|
|
1391
1391
|
r.$$.dirty[0] & /*lang*/
|
|
1392
1392
|
16384 && p && Te(), r.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
1393
|
-
3176448 &&
|
|
1394
|
-
1062912 &&
|
|
1395
|
-
262144 &&
|
|
1396
|
-
2 &&
|
|
1397
|
-
65537 && y &&
|
|
1398
|
-
131073 && A &&
|
|
1399
|
-
32769 &&
|
|
1393
|
+
3176448 && g && c && l && p && I && N && xe(), r.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
1394
|
+
1062912 && g && c && l && I && be(), r.$$.dirty[0] & /*translationurl*/
|
|
1395
|
+
262144 && k && Re(), r.$$.dirty[0] & /*balances*/
|
|
1396
|
+
2 && u.Total && ve(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1397
|
+
65537 && y && x && Tt(x, y), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1398
|
+
131073 && A && x && St(x, A), r.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1399
|
+
32769 && m && x && Ct(x, `${m}.Style`);
|
|
1400
1400
|
}, [
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1401
|
+
x,
|
|
1402
|
+
u,
|
|
1403
|
+
z,
|
|
1404
1404
|
re,
|
|
1405
1405
|
Y,
|
|
1406
|
-
|
|
1406
|
+
_,
|
|
1407
1407
|
i,
|
|
1408
|
-
|
|
1408
|
+
me,
|
|
1409
1409
|
ie,
|
|
1410
1410
|
Oe,
|
|
1411
1411
|
E,
|
|
1412
1412
|
c,
|
|
1413
1413
|
l,
|
|
1414
|
-
m,
|
|
1415
|
-
p,
|
|
1416
1414
|
g,
|
|
1415
|
+
p,
|
|
1416
|
+
m,
|
|
1417
1417
|
y,
|
|
1418
1418
|
A,
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1419
|
+
k,
|
|
1420
|
+
F,
|
|
1421
|
+
I,
|
|
1422
1422
|
N,
|
|
1423
1423
|
w,
|
|
1424
1424
|
T,
|
|
@@ -1436,8 +1436,8 @@ class jt extends pt {
|
|
|
1436
1436
|
this,
|
|
1437
1437
|
t,
|
|
1438
1438
|
Vt,
|
|
1439
|
-
|
|
1440
|
-
|
|
1439
|
+
Nt,
|
|
1440
|
+
gt,
|
|
1441
1441
|
{
|
|
1442
1442
|
userid: 11,
|
|
1443
1443
|
session: 12,
|