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