@everymatrix/casino-header-controller 1.54.11 → 1.55.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-C8-P7sF9.cjs +8 -0
- package/components/{CasinoHamburgerMenu-Dv3mR4gk.js → CasinoHamburgerMenu-E4O8Dx5o.js} +1239 -1157
- package/components/{CasinoHamburgerMenu-DrXD2QZ-.js → CasinoHamburgerMenu-JVY4ac8I.js} +975 -969
- package/components/{CasinoHeaderController-uM2BkEPQ.js → CasinoHeaderController-9s-CNvhj.js} +762 -700
- package/components/{CasinoHeaderController-EYxUFHlv.js → CasinoHeaderController-BVCLQUCq.js} +780 -718
- package/components/CasinoHeaderController-BZk18wxU.cjs +13 -0
- package/components/{CasinoSlider-BaotiKI5.cjs → CasinoSlider-DDycojG8.cjs} +1 -1
- package/components/{CasinoSlider-5-1p-Xbc.js → CasinoSlider-xu8jCpW1.js} +325 -328
- package/components/{CasinoSlider-Dm6jniCL.js → CasinoSlider-yMz4R8ed.js} +296 -299
- package/components/PlayerAccountBalanceModal-BVQlpIy4.cjs +13 -0
- package/components/{PlayerAccountBalanceModal-Cs1yCHOI.js → PlayerAccountBalanceModal-CcASksA3.js} +401 -405
- package/components/{PlayerAccountBalanceModal-B1_uQAVA.js → PlayerAccountBalanceModal-DG6GgVDp.js} +364 -368
- package/components/PlayerDeposit-C8ZPqrpV.cjs +1 -0
- package/components/{PlayerDeposit-B89_Vs9V.js → PlayerDeposit-CIarW5H1.js} +142 -146
- package/components/{PlayerDeposit-CNy9cvEy.js → PlayerDeposit-D9xpcJp9.js} +142 -146
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-657e7a14-BQuTIY5_.js +572 -0
- package/stencil/index-657e7a14-CDqZBTHG.cjs +1 -0
- package/stencil/index-657e7a14-fo2CD-e3.js +588 -0
- package/stencil/{user-deposit-withdrawal-CJUx01Ss.cjs → user-deposit-withdrawal-BCkoyv3i.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-5ly7Quf_.js → user-deposit-withdrawal-Dg3a3KkR.js} +24 -24
- package/stencil/{user-deposit-withdrawal-BEcaqAXR.js → user-deposit-withdrawal-gu9RDhoH.js} +24 -24
- package/components/CasinoHamburgerMenu-BGHo13mn.cjs +0 -8
- package/components/CasinoHeaderController-CfFUvcEO.cjs +0 -13
- package/components/PlayerAccountBalanceModal-B_7fcnxz.cjs +0 -13
- package/components/PlayerDeposit-DqZH75Dh.cjs +0 -1
- package/stencil/index-45f4006f-B0VyePmU.js +0 -638
- package/stencil/index-45f4006f-BYSN7Lmh.js +0 -654
- package/stencil/index-45f4006f-CT7q_gcU.cjs +0 -1
package/components/{PlayerAccountBalanceModal-Cs1yCHOI.js → PlayerAccountBalanceModal-CcASksA3.js}
RENAMED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { b as ct, $ as ut,
|
1
|
+
import { b as ct, $ as ut, O as dt, S as ft, i as pt, f as K, c as ht, s as mt, d as gt, g as N, e as oe, x as V, j as he, y as R, n as Ke, k as me, l as yt, o as vt, m as wt, z as Ve, q as bt, t as Bt, u as Ct, w as fe, E as St, A as pe, v as je, B as rt, C as Tt, G as _t } from "./CasinoHamburgerMenu-JVY4ac8I.js";
|
2
2
|
function Qe(o, e) {
|
3
3
|
ct(o, e);
|
4
4
|
}
|
5
|
-
function
|
5
|
+
function At(o) {
|
6
6
|
ut.set(o);
|
7
7
|
}
|
8
8
|
const Ze = {
|
@@ -213,10 +213,10 @@ var We = { exports: {} };
|
|
213
213
|
*/
|
214
214
|
(function(o, e) {
|
215
215
|
(function(n) {
|
216
|
-
var r = n.setTimeout, l = n.clearTimeout,
|
216
|
+
var r = n.setTimeout, l = n.clearTimeout, c = n.XMLHttpRequest, m = n.XDomainRequest, p = n.ActiveXObject, g = n.EventSource, y = n.document, x = n.Promise, F = n.fetch, b = n.Response, B = n.TextDecoder, A = n.TextEncoder, U = n.AbortController;
|
217
217
|
if (typeof window < "u" && typeof y < "u" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(t) {
|
218
218
|
y.readyState = "complete";
|
219
|
-
}, !1)),
|
219
|
+
}, !1)), c == null && p != null && (c = function() {
|
220
220
|
return new p("Microsoft.XMLHTTP");
|
221
221
|
}), Object.create == null && (Object.create = function(t) {
|
222
222
|
function a() {
|
@@ -273,26 +273,26 @@ var We = { exports: {} };
|
|
273
273
|
throw new Error();
|
274
274
|
}
|
275
275
|
for (var i = 65533, d = "", h = this.bitsNeeded, w = this.codePoint, k = 0; k < t.length; k += 1) {
|
276
|
-
var
|
277
|
-
h !== 0 && (
|
276
|
+
var _ = t[k];
|
277
|
+
h !== 0 && (_ < 128 || _ > 191 || !a(w << 6 | _ & 63, h - 6, s(h, w))) && (h = 0, w = i, d += String.fromCharCode(w)), h === 0 ? (_ >= 0 && _ <= 127 ? (h = 0, w = _) : _ >= 192 && _ <= 223 ? (h = 6 * 1, w = _ & 31) : _ >= 224 && _ <= 239 ? (h = 6 * 2, w = _ & 15) : _ >= 240 && _ <= 247 ? (h = 6 * 3, w = _ & 7) : (h = 0, w = i), h !== 0 && !a(w, h, s(h, w)) && (h = 0, w = i)) : (h -= 6, w = w << 6 | _ & 63), h === 0 && (w <= 65535 ? d += String.fromCharCode(w) : (d += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), d += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
|
278
278
|
}
|
279
279
|
return this.bitsNeeded = h, this.codePoint = w, d;
|
280
280
|
};
|
281
|
-
var
|
281
|
+
var Z = function() {
|
282
282
|
try {
|
283
|
-
return new
|
283
|
+
return new B().decode(new A().encode("test"), { stream: !0 }) === "test";
|
284
284
|
} catch (t) {
|
285
285
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + t);
|
286
286
|
}
|
287
287
|
return !1;
|
288
288
|
};
|
289
|
-
(
|
289
|
+
(B == null || A == null || !Z()) && (B = H);
|
290
290
|
var T = function() {
|
291
291
|
};
|
292
|
-
function
|
292
|
+
function C(t) {
|
293
293
|
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = t, this._sendTimeout = 0, this._abort = T;
|
294
294
|
}
|
295
|
-
|
295
|
+
C.prototype.open = function(t, a) {
|
296
296
|
this._abort(!0);
|
297
297
|
var s = this, i = this._xhr, d = 1, h = 0;
|
298
298
|
this._abort = function(v) {
|
@@ -300,16 +300,16 @@ var We = { exports: {} };
|
|
300
300
|
};
|
301
301
|
var w = function() {
|
302
302
|
if (d === 1) {
|
303
|
-
var v = 0, O = "",
|
303
|
+
var v = 0, O = "", le = void 0;
|
304
304
|
if ("contentType" in i)
|
305
|
-
v = 200, O = "OK",
|
305
|
+
v = 200, O = "OK", le = i.contentType;
|
306
306
|
else
|
307
307
|
try {
|
308
|
-
v = i.status, O = i.statusText,
|
308
|
+
v = i.status, O = i.statusText, le = i.getResponseHeader("Content-Type");
|
309
309
|
} catch {
|
310
|
-
v = 0, O = "",
|
310
|
+
v = 0, O = "", le = void 0;
|
311
311
|
}
|
312
|
-
v !== 0 && (d = 2, s.readyState = 2, s.status = v, s.statusText = O, s._contentType =
|
312
|
+
v !== 0 && (d = 2, s.readyState = 2, s.status = v, s.statusText = O, s._contentType = le, s.onreadystatechange());
|
313
313
|
}
|
314
314
|
}, k = function() {
|
315
315
|
if (w(), d === 2 || d === 3) {
|
@@ -321,7 +321,7 @@ var We = { exports: {} };
|
|
321
321
|
}
|
322
322
|
s.readyState = 3, s.responseText = v, s.onprogress();
|
323
323
|
}
|
324
|
-
},
|
324
|
+
}, _ = function(v, O) {
|
325
325
|
if ((O == null || O.preventDefault == null) && (O = {
|
326
326
|
preventDefault: T
|
327
327
|
}), k(), d === 1 || d === 2 || d === 3) {
|
@@ -336,34 +336,34 @@ var We = { exports: {} };
|
|
336
336
|
s.onreadystatechange();
|
337
337
|
}
|
338
338
|
}, E = function(v) {
|
339
|
-
i != null && (i.readyState === 4 ? (!("onload" in i) || !("onerror" in i) || !("onabort" in i)) &&
|
339
|
+
i != null && (i.readyState === 4 ? (!("onload" in i) || !("onerror" in i) || !("onabort" in i)) && _(i.responseText === "" ? "error" : "load", v) : i.readyState === 3 ? "onprogress" in i || k() : i.readyState === 2 && w());
|
340
340
|
}, L = function() {
|
341
341
|
h = r(function() {
|
342
342
|
L();
|
343
343
|
}, 500), i.readyState === 3 && k();
|
344
344
|
};
|
345
345
|
"onload" in i && (i.onload = function(v) {
|
346
|
-
|
346
|
+
_("load", v);
|
347
347
|
}), "onerror" in i && (i.onerror = function(v) {
|
348
|
-
|
348
|
+
_("error", v);
|
349
349
|
}), "onabort" in i && (i.onabort = function(v) {
|
350
|
-
|
350
|
+
_("abort", v);
|
351
351
|
}), "onprogress" in i && (i.onprogress = k), "onreadystatechange" in i && (i.onreadystatechange = function(v) {
|
352
352
|
E(v);
|
353
|
-
}), ("contentType" in i || !("ontimeout" in
|
353
|
+
}), ("contentType" in i || !("ontimeout" in c.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(t, a, !0), "readyState" in i && (h = r(function() {
|
354
354
|
L();
|
355
355
|
}, 0));
|
356
|
-
},
|
356
|
+
}, C.prototype.abort = function() {
|
357
357
|
this._abort(!1);
|
358
|
-
},
|
358
|
+
}, C.prototype.getResponseHeader = function(t) {
|
359
359
|
return this._contentType;
|
360
|
-
},
|
360
|
+
}, C.prototype.setRequestHeader = function(t, a) {
|
361
361
|
var s = this._xhr;
|
362
362
|
"setRequestHeader" in s && s.setRequestHeader(t, a);
|
363
|
-
},
|
363
|
+
}, C.prototype.getAllResponseHeaders = function() {
|
364
364
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
365
|
-
},
|
366
|
-
if ((!("ontimeout" in
|
365
|
+
}, C.prototype.send = function() {
|
366
|
+
if ((!("ontimeout" in c.prototype) || !("sendAsBinary" in c.prototype) && !("mozAnon" in c.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
|
367
367
|
var t = this;
|
368
368
|
t._sendTimeout = r(function() {
|
369
369
|
t._sendTimeout = 0, t.send();
|
@@ -378,7 +378,7 @@ var We = { exports: {} };
|
|
378
378
|
throw s;
|
379
379
|
}
|
380
380
|
};
|
381
|
-
function
|
381
|
+
function P(t) {
|
382
382
|
return t.replace(/[A-Z]/g, function(a) {
|
383
383
|
return String.fromCharCode(a.charCodeAt(0) + 32);
|
384
384
|
});
|
@@ -387,16 +387,16 @@ var We = { exports: {} };
|
|
387
387
|
for (var a = /* @__PURE__ */ Object.create(null), s = t.split(`\r
|
388
388
|
`), i = 0; i < s.length; i += 1) {
|
389
389
|
var d = s[i], h = d.split(": "), w = h.shift(), k = h.join(": ");
|
390
|
-
a[
|
390
|
+
a[P(w)] = k;
|
391
391
|
}
|
392
392
|
this._map = a;
|
393
393
|
}
|
394
394
|
D.prototype.get = function(t) {
|
395
|
-
return this._map[
|
396
|
-
},
|
397
|
-
function
|
395
|
+
return this._map[P(t)];
|
396
|
+
}, c != null && c.HEADERS_RECEIVED == null && (c.HEADERS_RECEIVED = 2);
|
397
|
+
function $() {
|
398
398
|
}
|
399
|
-
|
399
|
+
$.prototype.open = function(t, a, s, i, d, h, w) {
|
400
400
|
t.open("GET", d);
|
401
401
|
var k = 0;
|
402
402
|
t.onprogress = function() {
|
@@ -409,45 +409,45 @@ var We = { exports: {} };
|
|
409
409
|
}, t.onabort = function() {
|
410
410
|
i(null);
|
411
411
|
}, t.onreadystatechange = function() {
|
412
|
-
if (t.readyState ===
|
412
|
+
if (t.readyState === c.HEADERS_RECEIVED) {
|
413
413
|
var E = t.status, L = t.statusText, v = t.getResponseHeader("Content-Type"), O = t.getAllResponseHeaders();
|
414
414
|
a(E, L, v, new D(O));
|
415
415
|
}
|
416
416
|
}, t.withCredentials = h;
|
417
|
-
for (var
|
418
|
-
Object.prototype.hasOwnProperty.call(w,
|
417
|
+
for (var _ in w)
|
418
|
+
Object.prototype.hasOwnProperty.call(w, _) && t.setRequestHeader(_, w[_]);
|
419
419
|
return t.send(), t;
|
420
420
|
};
|
421
|
-
function
|
421
|
+
function ee(t) {
|
422
422
|
this._headers = t;
|
423
423
|
}
|
424
|
-
|
424
|
+
ee.prototype.get = function(t) {
|
425
425
|
return this._headers.get(t);
|
426
426
|
};
|
427
|
-
function
|
427
|
+
function ge() {
|
428
428
|
}
|
429
|
-
|
430
|
-
var k = null,
|
429
|
+
ge.prototype.open = function(t, a, s, i, d, h, w) {
|
430
|
+
var k = null, _ = new U(), E = _.signal, L = new B();
|
431
431
|
return F(d, {
|
432
432
|
headers: w,
|
433
433
|
credentials: h ? "include" : "same-origin",
|
434
434
|
signal: E,
|
435
435
|
cache: "no-store"
|
436
436
|
}).then(function(v) {
|
437
|
-
return k = v.body.getReader(), a(v.status, v.statusText, v.headers.get("Content-Type"), new
|
438
|
-
var
|
439
|
-
k.read().then(function(
|
440
|
-
if (
|
437
|
+
return k = v.body.getReader(), a(v.status, v.statusText, v.headers.get("Content-Type"), new ee(v.headers)), new x(function(O, le) {
|
438
|
+
var Me = function() {
|
439
|
+
k.read().then(function(Y) {
|
440
|
+
if (Y.done)
|
441
441
|
O(void 0);
|
442
442
|
else {
|
443
|
-
var
|
444
|
-
s(
|
443
|
+
var G = L.decode(Y.value, { stream: !0 });
|
444
|
+
s(G), Me();
|
445
445
|
}
|
446
|
-
}).catch(function(
|
447
|
-
|
446
|
+
}).catch(function(Y) {
|
447
|
+
le(Y);
|
448
448
|
});
|
449
449
|
};
|
450
|
-
|
450
|
+
Me();
|
451
451
|
});
|
452
452
|
}).catch(function(v) {
|
453
453
|
if (v.name !== "AbortError")
|
@@ -456,19 +456,19 @@ var We = { exports: {} };
|
|
456
456
|
i(v);
|
457
457
|
}), {
|
458
458
|
abort: function() {
|
459
|
-
k?.cancel(),
|
459
|
+
k?.cancel(), _.abort();
|
460
460
|
}
|
461
461
|
};
|
462
462
|
};
|
463
|
-
function
|
463
|
+
function te() {
|
464
464
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
465
465
|
}
|
466
|
-
function
|
466
|
+
function Ae(t) {
|
467
467
|
r(function() {
|
468
468
|
throw t;
|
469
469
|
}, 0);
|
470
470
|
}
|
471
|
-
|
471
|
+
te.prototype.dispatchEvent = function(t) {
|
472
472
|
t.target = this;
|
473
473
|
var a = this._listeners[t.type];
|
474
474
|
if (a != null)
|
@@ -477,17 +477,17 @@ var We = { exports: {} };
|
|
477
477
|
try {
|
478
478
|
typeof d.handleEvent == "function" ? d.handleEvent(t) : d.call(this, t);
|
479
479
|
} catch (h) {
|
480
|
-
|
480
|
+
Ae(h);
|
481
481
|
}
|
482
482
|
}
|
483
|
-
},
|
483
|
+
}, te.prototype.addEventListener = function(t, a) {
|
484
484
|
t = String(t);
|
485
485
|
var s = this._listeners, i = s[t];
|
486
486
|
i == null && (i = [], s[t] = i);
|
487
487
|
for (var d = !1, h = 0; h < i.length; h += 1)
|
488
488
|
i[h] === a && (d = !0);
|
489
489
|
d || i.push(a);
|
490
|
-
},
|
490
|
+
}, te.prototype.removeEventListener = function(t, a) {
|
491
491
|
t = String(t);
|
492
492
|
var s = this._listeners, i = s[t];
|
493
493
|
if (i != null) {
|
@@ -496,161 +496,161 @@ var We = { exports: {} };
|
|
496
496
|
d.length === 0 ? delete s[t] : s[t] = d;
|
497
497
|
}
|
498
498
|
};
|
499
|
-
function
|
499
|
+
function f(t) {
|
500
500
|
this.type = t, this.target = void 0;
|
501
501
|
}
|
502
|
-
function
|
503
|
-
|
502
|
+
function ye(t, a) {
|
503
|
+
f.call(this, t), this.data = a.data, this.lastEventId = a.lastEventId;
|
504
504
|
}
|
505
|
-
|
506
|
-
function
|
507
|
-
|
505
|
+
ye.prototype = Object.create(f.prototype);
|
506
|
+
function Re(t, a) {
|
507
|
+
f.call(this, t), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
|
508
508
|
}
|
509
|
-
|
510
|
-
function
|
511
|
-
|
509
|
+
Re.prototype = Object.create(f.prototype);
|
510
|
+
function Ee(t, a) {
|
511
|
+
f.call(this, t), this.error = a.error;
|
512
512
|
}
|
513
|
-
|
514
|
-
var
|
513
|
+
Ee.prototype = Object.create(f.prototype);
|
514
|
+
var xe = -1, re = 0, ve = 1, se = 2, Ce = -1, ie = 0, be = 1, De = 2, He = 3, ke = /^text\/event\-stream(;.*)?$/i, ze = 1e3, Ue = 18e6, Se = function(t, a) {
|
515
515
|
var s = t == null ? a : parseInt(t, 10);
|
516
|
-
return s !== s && (s = a),
|
517
|
-
},
|
518
|
-
return Math.min(Math.max(t,
|
519
|
-
},
|
516
|
+
return s !== s && (s = a), Le(s);
|
517
|
+
}, Le = function(t) {
|
518
|
+
return Math.min(Math.max(t, ze), Ue);
|
519
|
+
}, we = function(t, a, s) {
|
520
520
|
try {
|
521
521
|
typeof a == "function" && a.call(t, s);
|
522
522
|
} catch (i) {
|
523
|
-
|
523
|
+
Ae(i);
|
524
524
|
}
|
525
525
|
};
|
526
|
-
function
|
527
|
-
|
526
|
+
function W(t, a) {
|
527
|
+
te.call(this), a = a || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, u(this, t, a);
|
528
528
|
}
|
529
529
|
function Pe() {
|
530
|
-
return
|
530
|
+
return c != null && "withCredentials" in c.prototype || m == null ? new c() : new m();
|
531
531
|
}
|
532
|
-
var Ge = F != null &&
|
533
|
-
function
|
532
|
+
var Ge = F != null && b != null && "body" in b.prototype;
|
533
|
+
function u(t, a, s) {
|
534
534
|
a = String(a);
|
535
|
-
var i = !!s.withCredentials, d = s.lastEventIdQueryParameterName || "lastEventId", h =
|
536
|
-
if (ne ===
|
537
|
-
if (j === 200 &&
|
538
|
-
ne =
|
539
|
-
var q = new
|
535
|
+
var i = !!s.withCredentials, d = s.lastEventIdQueryParameterName || "lastEventId", h = Le(1e3), w = Se(s.heartbeatTimeout, 45e3), k = "", _ = h, E = !1, L = 0, v = s.headers || {}, O = s.Transport, le = Ge && O == null ? void 0 : new C(O != null ? new O() : Pe()), Me = O != null && typeof O != "string" ? new O() : le == null ? new ge() : new $(), Y = void 0, G = 0, ne = xe, Te = "", Oe = "", ce = "", Ne = "", X = ie, Xe = 0, Be = 0, st = function(j, I, J, Q) {
|
536
|
+
if (ne === re)
|
537
|
+
if (j === 200 && J != null && ke.test(J)) {
|
538
|
+
ne = ve, E = Date.now(), _ = h, t.readyState = ve;
|
539
|
+
var q = new Re("open", {
|
540
540
|
status: j,
|
541
541
|
statusText: I,
|
542
|
-
headers:
|
542
|
+
headers: Q
|
543
543
|
});
|
544
|
-
t.dispatchEvent(q),
|
544
|
+
t.dispatchEvent(q), we(t, t.onopen, q);
|
545
545
|
} else {
|
546
546
|
var z = "";
|
547
|
-
j !== 200 ? (I && (I = I.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + I + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (
|
548
|
-
var q = new
|
547
|
+
j !== 200 ? (I && (I = I.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + I + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (J == null ? "-" : J.replace(/\s+/g, " ")) + ". Aborting the connection.", qe();
|
548
|
+
var q = new Re("error", {
|
549
549
|
status: j,
|
550
550
|
statusText: I,
|
551
|
-
headers:
|
551
|
+
headers: Q
|
552
552
|
});
|
553
|
-
t.dispatchEvent(q),
|
553
|
+
t.dispatchEvent(q), we(t, t.onerror, q), console.error(z);
|
554
554
|
}
|
555
555
|
}, lt = function(j) {
|
556
|
-
if (ne ===
|
557
|
-
for (var I = -1,
|
558
|
-
var
|
559
|
-
(
|
556
|
+
if (ne === ve) {
|
557
|
+
for (var I = -1, J = 0; J < j.length; J += 1) {
|
558
|
+
var Q = j.charCodeAt(J);
|
559
|
+
(Q === 10 || Q === 13) && (I = J);
|
560
560
|
}
|
561
561
|
var q = (I !== -1 ? Ne : "") + j.slice(0, I + 1);
|
562
562
|
Ne = (I === -1 ? Ne : "") + j.slice(I + 1), j !== "" && (E = Date.now(), L += j.length);
|
563
563
|
for (var z = 0; z < q.length; z += 1) {
|
564
|
-
var
|
565
|
-
if (
|
566
|
-
|
567
|
-
else if (
|
568
|
-
if (
|
569
|
-
|
570
|
-
var
|
571
|
-
|
572
|
-
`,
|
573
|
-
|
564
|
+
var Q = q.charCodeAt(z);
|
565
|
+
if (X === Ce && Q === 10)
|
566
|
+
X = ie;
|
567
|
+
else if (X === Ce && (X = ie), Q === 13 || Q === 10) {
|
568
|
+
if (X !== ie) {
|
569
|
+
X === be && (Be = z + 1);
|
570
|
+
var ue = q.slice(Xe, Be - 1), de = q.slice(Be + (Be < z && q.charCodeAt(Be) === 32 ? 1 : 0), z);
|
571
|
+
ue === "data" ? (Te += `
|
572
|
+
`, Te += de) : ue === "id" ? Oe = de : ue === "event" ? ce = de : ue === "retry" ? (h = Se(de, h), _ = h) : ue === "heartbeatTimeout" && (w = Se(de, w), G !== 0 && (l(G), G = r(function() {
|
573
|
+
Fe();
|
574
574
|
}, w)));
|
575
575
|
}
|
576
|
-
if (
|
577
|
-
if (
|
578
|
-
k = Oe,
|
579
|
-
var
|
580
|
-
data:
|
576
|
+
if (X === ie) {
|
577
|
+
if (Te !== "") {
|
578
|
+
k = Oe, ce === "" && (ce = "message");
|
579
|
+
var _e = new ye(ce, {
|
580
|
+
data: Te.slice(1),
|
581
581
|
lastEventId: Oe
|
582
582
|
});
|
583
|
-
if (t.dispatchEvent(
|
583
|
+
if (t.dispatchEvent(_e), ce === "open" ? we(t, t.onopen, _e) : ce === "message" ? we(t, t.onmessage, _e) : ce === "error" && we(t, t.onerror, _e), ne === se)
|
584
584
|
return;
|
585
585
|
}
|
586
|
-
|
586
|
+
Te = "", ce = "";
|
587
587
|
}
|
588
|
-
|
588
|
+
X = Q === 13 ? Ce : ie;
|
589
589
|
} else
|
590
|
-
|
590
|
+
X === ie && (Xe = z, X = be), X === be ? Q === 58 && (Be = z + 1, X = De) : X === De && (X = He);
|
591
591
|
}
|
592
592
|
}
|
593
593
|
}, Je = function(j) {
|
594
|
-
if (ne ===
|
595
|
-
ne =
|
596
|
-
|
597
|
-
},
|
598
|
-
var I = new
|
599
|
-
t.dispatchEvent(I),
|
594
|
+
if (ne === ve || ne === re) {
|
595
|
+
ne = xe, G !== 0 && (l(G), G = 0), G = r(function() {
|
596
|
+
Fe();
|
597
|
+
}, _), _ = Le(Math.min(h * 16, _ * 2)), t.readyState = re;
|
598
|
+
var I = new Ee("error", { error: j });
|
599
|
+
t.dispatchEvent(I), we(t, t.onerror, I), j != null && console.error(j);
|
600
600
|
}
|
601
|
-
},
|
602
|
-
ne =
|
603
|
-
},
|
604
|
-
if (
|
605
|
-
if (!E &&
|
606
|
-
Je(new Error("No activity within " + w + " milliseconds. " + (ne ===
|
601
|
+
}, qe = function() {
|
602
|
+
ne = se, Y != null && (Y.abort(), Y = void 0), G !== 0 && (l(G), G = 0), t.readyState = se;
|
603
|
+
}, Fe = function() {
|
604
|
+
if (G = 0, ne !== xe) {
|
605
|
+
if (!E && Y != null)
|
606
|
+
Je(new Error("No activity within " + w + " milliseconds. " + (ne === re ? "No response received." : L + " chars received.") + " Reconnecting.")), Y != null && (Y.abort(), Y = void 0);
|
607
607
|
else {
|
608
608
|
var j = Math.max((E || Date.now()) + w - Date.now(), 1);
|
609
|
-
E = !1,
|
610
|
-
|
609
|
+
E = !1, G = r(function() {
|
610
|
+
Fe();
|
611
611
|
}, j);
|
612
612
|
}
|
613
613
|
return;
|
614
614
|
}
|
615
|
-
E = !1, L = 0,
|
616
|
-
|
617
|
-
}, w), ne =
|
615
|
+
E = !1, L = 0, G = r(function() {
|
616
|
+
Fe();
|
617
|
+
}, w), ne = re, Te = "", ce = "", Oe = k, Ne = "", Xe = 0, Be = 0, X = ie;
|
618
618
|
var I = a;
|
619
619
|
if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && k !== "") {
|
620
|
-
var
|
621
|
-
I =
|
622
|
-
return
|
620
|
+
var J = a.indexOf("?");
|
621
|
+
I = J === -1 ? a : a.slice(0, J + 1) + a.slice(J + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(de, _e) {
|
622
|
+
return _e === d ? "" : de;
|
623
623
|
}), I += (a.indexOf("?") === -1 ? "?" : "&") + d + "=" + encodeURIComponent(k);
|
624
624
|
}
|
625
|
-
var
|
625
|
+
var Q = t.withCredentials, q = {};
|
626
626
|
q.Accept = "text/event-stream";
|
627
627
|
var z = t.headers;
|
628
628
|
if (z != null)
|
629
|
-
for (var
|
630
|
-
Object.prototype.hasOwnProperty.call(z,
|
629
|
+
for (var ue in z)
|
630
|
+
Object.prototype.hasOwnProperty.call(z, ue) && (q[ue] = z[ue]);
|
631
631
|
try {
|
632
|
-
|
633
|
-
} catch (
|
634
|
-
throw
|
632
|
+
Y = Me.open(le, st, lt, Je, I, Q, q);
|
633
|
+
} catch (de) {
|
634
|
+
throw qe(), de;
|
635
635
|
}
|
636
636
|
};
|
637
|
-
t.url = a, t.readyState =
|
637
|
+
t.url = a, t.readyState = re, t.withCredentials = i, t.headers = v, t._close = qe, Fe();
|
638
638
|
}
|
639
|
-
|
639
|
+
W.prototype = Object.create(te.prototype), W.prototype.CONNECTING = re, W.prototype.OPEN = ve, W.prototype.CLOSED = se, W.prototype.close = function() {
|
640
640
|
this._close();
|
641
|
-
},
|
642
|
-
var
|
643
|
-
|
641
|
+
}, W.CONNECTING = re, W.OPEN = ve, W.CLOSED = se, W.prototype.withCredentials = void 0;
|
642
|
+
var S = g;
|
643
|
+
c != null && (g == null || !("withCredentials" in g.prototype)) && (S = W), function(t) {
|
644
644
|
{
|
645
645
|
var a = t(e);
|
646
646
|
a !== void 0 && (o.exports = a);
|
647
647
|
}
|
648
648
|
}(function(t) {
|
649
|
-
t.EventSourcePolyfill =
|
649
|
+
t.EventSourcePolyfill = W, t.NativeEventSource = g, t.EventSource = S;
|
650
650
|
});
|
651
651
|
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : dt : globalThis);
|
652
652
|
})(We, We.exports);
|
653
|
-
var
|
653
|
+
var Rt = We.exports;
|
654
654
|
/*!
|
655
655
|
* currency.js - v2.0.4
|
656
656
|
* http://scurker.github.io/currency.js
|
@@ -658,7 +658,7 @@ var St = We.exports;
|
|
658
658
|
* Copyright (c) 2021 Jason Wilson
|
659
659
|
* Released under MIT license
|
660
660
|
*/
|
661
|
-
var
|
661
|
+
var Et = {
|
662
662
|
symbol: "$",
|
663
663
|
separator: ",",
|
664
664
|
decimal: ".",
|
@@ -666,41 +666,41 @@ var _t = {
|
|
666
666
|
precision: 2,
|
667
667
|
pattern: "!#",
|
668
668
|
negativePattern: "-!#",
|
669
|
-
format:
|
669
|
+
format: Mt,
|
670
670
|
fromCents: !1
|
671
671
|
}, it = function(e) {
|
672
672
|
return Math.round(e);
|
673
673
|
}, Ye = function(e) {
|
674
674
|
return Math.pow(10, e);
|
675
|
-
},
|
675
|
+
}, xt = function(e, n) {
|
676
676
|
return it(e / n) * n;
|
677
|
-
},
|
677
|
+
}, Dt = /(\d)(?=(\d{3})+\b)/g, Lt = /(\d)(?=(\d\d)+\d\b)/g;
|
678
678
|
function ae(o, e) {
|
679
679
|
var n = this;
|
680
680
|
if (!(n instanceof ae))
|
681
681
|
return new ae(o, e);
|
682
|
-
var r = Object.assign({},
|
683
|
-
n.intValue =
|
682
|
+
var r = Object.assign({}, Et, e), l = Ye(r.precision), c = Ie(o, r);
|
683
|
+
n.intValue = c, n.value = c / l, r.increment = r.increment || 1 / l, r.useVedic ? r.groups = Lt : r.groups = Dt, this.s = r, this.p = l;
|
684
684
|
}
|
685
685
|
function Ie(o, e) {
|
686
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, l = e.decimal,
|
686
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, l = e.decimal, c = e.errorOnInvalid, m = e.precision, p = e.fromCents, g = Ye(m), y = typeof o == "number", x = o instanceof ae;
|
687
687
|
if (x && p)
|
688
688
|
return o.intValue;
|
689
689
|
if (y || x)
|
690
690
|
r = x ? o.value : o;
|
691
691
|
else if (typeof o == "string") {
|
692
|
-
var F = new RegExp("[^-\\d" + l + "]", "g"),
|
693
|
-
r = o.replace(/\((.*)\)/, "-$1").replace(F, "").replace(
|
692
|
+
var F = new RegExp("[^-\\d" + l + "]", "g"), b = new RegExp("\\" + l, "g");
|
693
|
+
r = o.replace(/\((.*)\)/, "-$1").replace(F, "").replace(b, "."), r = r || 0;
|
694
694
|
} else {
|
695
|
-
if (
|
695
|
+
if (c)
|
696
696
|
throw Error("Invalid Input");
|
697
697
|
r = 0;
|
698
698
|
}
|
699
699
|
return p || (r *= g, r = r.toFixed(4)), n ? it(r) : r;
|
700
700
|
}
|
701
|
-
function
|
702
|
-
var n = e.pattern, r = e.negativePattern, l = e.symbol,
|
703
|
-
return (o.value >= 0 ? n : r).replace("!", l).replace("#", y.replace(p, "$1" +
|
701
|
+
function Mt(o, e) {
|
702
|
+
var n = e.pattern, r = e.negativePattern, l = e.symbol, c = e.separator, m = e.decimal, p = e.groups, g = ("" + o).replace(/^-/, "").split("."), y = g[0], x = g[1];
|
703
|
+
return (o.value >= 0 ? n : r).replace("!", l).replace("#", y.replace(p, "$1" + c) + (x ? m + x : ""));
|
704
704
|
}
|
705
705
|
ae.prototype = {
|
706
706
|
/**
|
@@ -746,11 +746,11 @@ ae.prototype = {
|
|
746
746
|
* @returns {array}
|
747
747
|
*/
|
748
748
|
distribute: function(e) {
|
749
|
-
for (var n = this.intValue, r = this.p, l = this.s,
|
749
|
+
for (var n = this.intValue, r = this.p, l = this.s, c = [], m = Math[n >= 0 ? "floor" : "ceil"](n / e), p = Math.abs(n - m * e), g = l.fromCents ? 1 : r; e !== 0; e--) {
|
750
750
|
var y = ae(m / g, l);
|
751
|
-
p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / g)),
|
751
|
+
p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / g)), c.push(y);
|
752
752
|
}
|
753
|
-
return
|
753
|
+
return c;
|
754
754
|
},
|
755
755
|
/**
|
756
756
|
* Returns the dollar value.
|
@@ -782,7 +782,7 @@ ae.prototype = {
|
|
782
782
|
*/
|
783
783
|
toString: function() {
|
784
784
|
var e = this.intValue, n = this.p, r = this.s;
|
785
|
-
return
|
785
|
+
return xt(e / n, r.increment).toFixed(r.precision);
|
786
786
|
},
|
787
787
|
/**
|
788
788
|
* Value for JSON serialization.
|
@@ -792,8 +792,8 @@ ae.prototype = {
|
|
792
792
|
return this.value;
|
793
793
|
}
|
794
794
|
};
|
795
|
-
function
|
796
|
-
|
795
|
+
function Ft(o) {
|
796
|
+
gt(o, "svelte-113krup", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
|
797
797
|
}
|
798
798
|
function $e(o, e, n) {
|
799
799
|
const r = o.slice();
|
@@ -803,7 +803,7 @@ function et(o, e, n) {
|
|
803
803
|
const r = o.slice();
|
804
804
|
return r[50] = e[n], r;
|
805
805
|
}
|
806
|
-
function
|
806
|
+
function kt(o) {
|
807
807
|
let e, n = (
|
808
808
|
/*balances*/
|
809
809
|
(o[4].Total ? (
|
@@ -813,132 +813,132 @@ function Lt(o) {
|
|
813
813
|
o[4].Total[0].amount
|
814
814
|
)
|
815
815
|
) : "0") + ""
|
816
|
-
), r, l,
|
816
|
+
), r, l, c, m, p, g, y, x, F, b = (
|
817
817
|
/*showBalance*/
|
818
818
|
o[2] && tt(o)
|
819
819
|
);
|
820
820
|
return {
|
821
821
|
c() {
|
822
|
-
e = N("p"), r =
|
822
|
+
e = N("p"), r = fe(n), l = oe(), c = fe(
|
823
823
|
/*currency*/
|
824
824
|
o[3]
|
825
|
-
), m = oe(), p = N("span"), p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = oe(),
|
825
|
+
), m = oe(), p = N("span"), p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = oe(), b && b.c(), y = St(), V(e, "class", "BalanceValue"), V(e, "part", "BalanceValue");
|
826
826
|
},
|
827
|
-
m(
|
828
|
-
|
827
|
+
m(B, A) {
|
828
|
+
he(B, e, A), R(e, r), R(e, l), R(e, c), R(e, m), R(e, p), he(B, g, A), b && b.m(B, A), he(B, y, A), x || (F = Ve(
|
829
829
|
e,
|
830
830
|
"click",
|
831
831
|
/*click_handler*/
|
832
|
-
o[
|
832
|
+
o[23]
|
833
833
|
), x = !0);
|
834
834
|
},
|
835
|
-
p(
|
836
|
-
|
835
|
+
p(B, A) {
|
836
|
+
A[0] & /*balances*/
|
837
837
|
16 && n !== (n = /*balances*/
|
838
|
-
(
|
838
|
+
(B[4].Total ? (
|
839
839
|
/*formatBalance*/
|
840
|
-
|
840
|
+
B[6](
|
841
841
|
/*balances*/
|
842
|
-
|
842
|
+
B[4].Total[0].amount
|
843
843
|
)
|
844
|
-
) : "0") + "") &&
|
845
|
-
8 &&
|
846
|
-
|
844
|
+
) : "0") + "") && pe(r, n), A[0] & /*currency*/
|
845
|
+
8 && pe(
|
846
|
+
c,
|
847
847
|
/*currency*/
|
848
|
-
|
848
|
+
B[3]
|
849
849
|
), /*showBalance*/
|
850
|
-
|
850
|
+
B[2] ? b ? b.p(B, A) : (b = tt(B), b.c(), b.m(y.parentNode, y)) : b && (b.d(1), b = null);
|
851
851
|
},
|
852
|
-
d(
|
853
|
-
|
852
|
+
d(B) {
|
853
|
+
B && (me(e), me(g), me(y)), b && b.d(B), x = !1, F();
|
854
854
|
}
|
855
855
|
};
|
856
856
|
}
|
857
|
-
function
|
857
|
+
function Ot(o) {
|
858
858
|
let e, n = (
|
859
859
|
/*$_*/
|
860
860
|
o[5]("Loading") + ""
|
861
861
|
), r;
|
862
862
|
return {
|
863
863
|
c() {
|
864
|
-
e = N("p"), r =
|
864
|
+
e = N("p"), r = fe(n);
|
865
865
|
},
|
866
|
-
m(l,
|
867
|
-
|
866
|
+
m(l, c) {
|
867
|
+
he(l, e, c), R(e, r);
|
868
868
|
},
|
869
|
-
p(l,
|
870
|
-
|
869
|
+
p(l, c) {
|
870
|
+
c[0] & /*$_*/
|
871
871
|
32 && n !== (n = /*$_*/
|
872
|
-
l[5]("Loading") + "") &&
|
872
|
+
l[5]("Loading") + "") && pe(r, n);
|
873
873
|
},
|
874
874
|
d(l) {
|
875
|
-
l &&
|
875
|
+
l && me(e);
|
876
876
|
}
|
877
877
|
};
|
878
878
|
}
|
879
879
|
function tt(o) {
|
880
|
-
let e, n, r, l,
|
880
|
+
let e, n, r, l, c, m, p = (
|
881
881
|
/*$_*/
|
882
882
|
o[5]("Title") + ""
|
883
|
-
), g, y, x, F,
|
883
|
+
), g, y, x, F, b, B, A = (
|
884
884
|
/*$_*/
|
885
885
|
o[5]("DepositButton") + ""
|
886
|
-
), U, M, H,
|
886
|
+
), U, M, H, Z = je(Object.keys(
|
887
887
|
/*balances*/
|
888
888
|
o[4]
|
889
889
|
)), T = [];
|
890
|
-
for (let
|
891
|
-
T[
|
890
|
+
for (let C = 0; C < Z.length; C += 1)
|
891
|
+
T[C] = at($e(o, Z, C));
|
892
892
|
return {
|
893
893
|
c() {
|
894
|
-
e = N("div"), n = N("div"), r = oe(), l = N("div"),
|
895
|
-
for (let
|
896
|
-
T[
|
897
|
-
F = oe(),
|
894
|
+
e = N("div"), n = N("div"), r = oe(), l = N("div"), c = N("div"), m = N("p"), g = fe(p), y = oe(), x = N("div");
|
895
|
+
for (let C = 0; C < T.length; C += 1)
|
896
|
+
T[C].c();
|
897
|
+
F = oe(), b = N("div"), B = N("button"), U = fe(A), V(n, "class", "BalanceModalClose"), V(m, "class", "BalanceModalTitle"), V(c, "class", "BalanceModalHeader"), V(x, "class", "BalanceModalBody"), V(B, "class", "BalanceModalAction"), V(b, "class", "BalanceModalFooter"), V(l, "class", "BalanceModal"), V(e, "class", "BalanceModalWrapper");
|
898
898
|
},
|
899
|
-
m(
|
900
|
-
|
899
|
+
m(C, P) {
|
900
|
+
he(C, e, P), R(e, n), R(e, r), R(e, l), R(l, c), R(c, m), R(m, g), R(l, y), R(l, x);
|
901
901
|
for (let D = 0; D < T.length; D += 1)
|
902
902
|
T[D] && T[D].m(x, null);
|
903
|
-
R(l, F), R(l,
|
903
|
+
R(l, F), R(l, b), R(b, B), R(B, U), M || (H = [
|
904
904
|
Ve(
|
905
905
|
n,
|
906
906
|
"click",
|
907
907
|
/*click_handler_1*/
|
908
|
-
o[
|
908
|
+
o[24]
|
909
909
|
),
|
910
910
|
Ve(
|
911
|
-
|
911
|
+
B,
|
912
912
|
"click",
|
913
913
|
/*click_handler_2*/
|
914
|
-
o[
|
914
|
+
o[25]
|
915
915
|
)
|
916
916
|
], M = !0);
|
917
917
|
},
|
918
|
-
p(
|
919
|
-
if (
|
918
|
+
p(C, P) {
|
919
|
+
if (P[0] & /*$_*/
|
920
920
|
32 && p !== (p = /*$_*/
|
921
|
-
|
921
|
+
C[5]("Title") + "") && pe(g, p), P[0] & /*balances, currency, formatBalance, $_*/
|
922
922
|
120) {
|
923
|
-
|
923
|
+
Z = je(Object.keys(
|
924
924
|
/*balances*/
|
925
|
-
|
925
|
+
C[4]
|
926
926
|
));
|
927
927
|
let D;
|
928
|
-
for (D = 0; D <
|
929
|
-
const
|
930
|
-
T[D] ? T[D].p(
|
928
|
+
for (D = 0; D < Z.length; D += 1) {
|
929
|
+
const $ = $e(C, Z, D);
|
930
|
+
T[D] ? T[D].p($, P) : (T[D] = at($), T[D].c(), T[D].m(x, null));
|
931
931
|
}
|
932
932
|
for (; D < T.length; D += 1)
|
933
933
|
T[D].d(1);
|
934
|
-
T.length =
|
934
|
+
T.length = Z.length;
|
935
935
|
}
|
936
|
-
|
937
|
-
32 &&
|
938
|
-
|
936
|
+
P[0] & /*$_*/
|
937
|
+
32 && A !== (A = /*$_*/
|
938
|
+
C[5]("DepositButton") + "") && pe(U, A);
|
939
939
|
},
|
940
|
-
d(
|
941
|
-
|
940
|
+
d(C) {
|
941
|
+
C && me(e), rt(T, C), M = !1, Tt(H);
|
942
942
|
}
|
943
943
|
};
|
944
944
|
}
|
@@ -949,7 +949,7 @@ function nt(o) {
|
|
949
949
|
/*k*/
|
950
950
|
o[47]
|
951
951
|
) + ""
|
952
|
-
), l,
|
952
|
+
), l, c, m = (
|
953
953
|
/*b*/
|
954
954
|
(o[50].productType ? (
|
955
955
|
/*$_*/
|
@@ -967,16 +967,16 @@ function nt(o) {
|
|
967
967
|
o[50].amount
|
968
968
|
)
|
969
969
|
) : "0") + ""
|
970
|
-
),
|
970
|
+
), b, B, A, U;
|
971
971
|
return {
|
972
972
|
c() {
|
973
|
-
e = N("div"), n = N("p"), l =
|
973
|
+
e = N("div"), n = N("p"), l = fe(r), c = oe(), p = fe(m), g = oe(), y = N("p"), x = N("span"), b = fe(F), B = oe(), A = N("span"), U = fe(
|
974
974
|
/*currency*/
|
975
975
|
o[3]
|
976
|
-
), V(n, "class", "BalanceModalText"), V(x, "class", "BalanceModalAmount"), V(
|
976
|
+
), V(n, "class", "BalanceModalText"), V(x, "class", "BalanceModalAmount"), V(A, "class", "BalanceModalCurrency"), V(y, "class", "BalanceModalValue"), V(e, "class", "BalanceModalRowLine");
|
977
977
|
},
|
978
978
|
m(M, H) {
|
979
|
-
|
979
|
+
he(M, e, H), R(e, n), R(n, l), R(n, c), R(n, p), R(e, g), R(e, y), R(y, x), R(x, b), R(y, B), R(y, A), R(A, U);
|
980
980
|
},
|
981
981
|
p(M, H) {
|
982
982
|
H[0] & /*$_, balances*/
|
@@ -984,7 +984,7 @@ function nt(o) {
|
|
984
984
|
M[5](
|
985
985
|
/*k*/
|
986
986
|
M[47]
|
987
|
-
) + "") &&
|
987
|
+
) + "") && pe(l, r), H[0] & /*balances, $_*/
|
988
988
|
48 && m !== (m = /*b*/
|
989
989
|
(M[50].productType ? (
|
990
990
|
/*$_*/
|
@@ -992,7 +992,7 @@ function nt(o) {
|
|
992
992
|
/*b*/
|
993
993
|
M[50].productType
|
994
994
|
)
|
995
|
-
) : "") + "") &&
|
995
|
+
) : "") + "") && pe(p, m), H[0] & /*balances*/
|
996
996
|
16 && F !== (F = /*b*/
|
997
997
|
(M[50].amount ? (
|
998
998
|
/*formatBalance*/
|
@@ -1000,15 +1000,15 @@ function nt(o) {
|
|
1000
1000
|
/*b*/
|
1001
1001
|
M[50].amount
|
1002
1002
|
)
|
1003
|
-
) : "0") + "") &&
|
1004
|
-
8 &&
|
1003
|
+
) : "0") + "") && pe(b, F), H[0] & /*currency*/
|
1004
|
+
8 && pe(
|
1005
1005
|
U,
|
1006
1006
|
/*currency*/
|
1007
1007
|
M[3]
|
1008
1008
|
);
|
1009
1009
|
},
|
1010
1010
|
d(M) {
|
1011
|
-
M &&
|
1011
|
+
M && me(e);
|
1012
1012
|
}
|
1013
1013
|
};
|
1014
1014
|
}
|
@@ -1020,34 +1020,34 @@ function at(o) {
|
|
1020
1020
|
o[47]
|
1021
1021
|
]
|
1022
1022
|
), l = [];
|
1023
|
-
for (let
|
1024
|
-
l[
|
1023
|
+
for (let c = 0; c < r.length; c += 1)
|
1024
|
+
l[c] = nt(et(o, r, c));
|
1025
1025
|
return {
|
1026
1026
|
c() {
|
1027
1027
|
e = N("div");
|
1028
|
-
for (let
|
1029
|
-
l[
|
1028
|
+
for (let c = 0; c < l.length; c += 1)
|
1029
|
+
l[c].c();
|
1030
1030
|
n = oe(), V(e, "class", "BalanceModalRowBoth");
|
1031
1031
|
},
|
1032
|
-
m(
|
1033
|
-
|
1032
|
+
m(c, m) {
|
1033
|
+
he(c, e, m);
|
1034
1034
|
for (let p = 0; p < l.length; p += 1)
|
1035
1035
|
l[p] && l[p].m(e, null);
|
1036
1036
|
R(e, n);
|
1037
1037
|
},
|
1038
|
-
p(
|
1038
|
+
p(c, m) {
|
1039
1039
|
if (m[0] & /*currency, balances, formatBalance, $_*/
|
1040
1040
|
120) {
|
1041
1041
|
r = je(
|
1042
1042
|
/*balances*/
|
1043
|
-
|
1043
|
+
c[4][
|
1044
1044
|
/*k*/
|
1045
|
-
|
1045
|
+
c[47]
|
1046
1046
|
]
|
1047
1047
|
);
|
1048
1048
|
let p;
|
1049
1049
|
for (p = 0; p < r.length; p += 1) {
|
1050
|
-
const g = et(
|
1050
|
+
const g = et(c, r, p);
|
1051
1051
|
l[p] ? l[p].p(g, m) : (l[p] = nt(g), l[p].c(), l[p].m(e, n));
|
1052
1052
|
}
|
1053
1053
|
for (; p < l.length; p += 1)
|
@@ -1055,8 +1055,8 @@ function at(o) {
|
|
1055
1055
|
l.length = r.length;
|
1056
1056
|
}
|
1057
1057
|
},
|
1058
|
-
d(
|
1059
|
-
|
1058
|
+
d(c) {
|
1059
|
+
c && me(e), rt(l, c);
|
1060
1060
|
}
|
1061
1061
|
};
|
1062
1062
|
}
|
@@ -1066,29 +1066,29 @@ function ot(o) {
|
|
1066
1066
|
c() {
|
1067
1067
|
e = N("div"), V(e, "class", "ShowBalanceModalOverlay");
|
1068
1068
|
},
|
1069
|
-
m(l,
|
1070
|
-
|
1069
|
+
m(l, c) {
|
1070
|
+
he(l, e, c), n || (r = Ve(
|
1071
1071
|
e,
|
1072
1072
|
"click",
|
1073
1073
|
/*click_handler_3*/
|
1074
|
-
o[
|
1074
|
+
o[26]
|
1075
1075
|
), n = !0);
|
1076
1076
|
},
|
1077
|
-
p:
|
1077
|
+
p: Ke,
|
1078
1078
|
d(l) {
|
1079
|
-
l &&
|
1079
|
+
l && me(e), n = !1, r();
|
1080
1080
|
}
|
1081
1081
|
};
|
1082
1082
|
}
|
1083
|
-
function
|
1083
|
+
function Nt(o) {
|
1084
1084
|
let e, n, r;
|
1085
1085
|
function l(g, y) {
|
1086
1086
|
return (
|
1087
1087
|
/*isLoading*/
|
1088
|
-
g[1] ?
|
1088
|
+
g[1] ? Ot : kt
|
1089
1089
|
);
|
1090
1090
|
}
|
1091
|
-
let
|
1091
|
+
let c = l(o), m = c(o), p = (
|
1092
1092
|
/*showBalance*/
|
1093
1093
|
o[2] && ot(o)
|
1094
1094
|
);
|
@@ -1097,54 +1097,54 @@ function Ft(o) {
|
|
1097
1097
|
e = N("div"), n = N("div"), m.c(), r = oe(), p && p.c(), V(n, "class", "ShowBalance"), V(n, "part", "ShowBalance");
|
1098
1098
|
},
|
1099
1099
|
m(g, y) {
|
1100
|
-
|
1100
|
+
he(g, e, y), R(e, n), m.m(n, null), R(e, r), p && p.m(e, null), o[27](e);
|
1101
1101
|
},
|
1102
1102
|
p(g, y) {
|
1103
|
-
|
1103
|
+
c === (c = l(g)) && m ? m.p(g, y) : (m.d(1), m = c(g), m && (m.c(), m.m(n, null))), /*showBalance*/
|
1104
1104
|
g[2] ? p ? p.p(g, y) : (p = ot(g), p.c(), p.m(e, null)) : p && (p.d(1), p = null);
|
1105
1105
|
},
|
1106
|
-
i:
|
1107
|
-
o:
|
1106
|
+
i: Ke,
|
1107
|
+
o: Ke,
|
1108
1108
|
d(g) {
|
1109
|
-
g &&
|
1109
|
+
g && me(e), m.d(), p && p.d(), o[27](null);
|
1110
1110
|
}
|
1111
1111
|
};
|
1112
1112
|
}
|
1113
|
-
function
|
1113
|
+
function It(o, e, n) {
|
1114
1114
|
let r;
|
1115
|
-
|
1116
|
-
let { userid: l = "" } = e, { session:
|
1117
|
-
const f = {},
|
1118
|
-
fetch(x).then((
|
1115
|
+
yt(o, _t, (u) => n(5, r = u));
|
1116
|
+
let { userid: l = "" } = e, { session: c = "" } = e, { endpoint: m = "" } = e, { lang: p = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: x = "" } = e, { customlocaleidentifier: F = "" } = e, { gmversion: b = "gm16" } = e, { displaybalanceoption: B = "All" } = e, { totalcalculationmode: A = "totalCashAmount" } = e, { currencyseparator: U = "" } = e, { currencydecimal: M = "" } = e, { currencyprecision: H = "" } = e, { mbsource: Z } = e, T, C, P, D = !1, $ = "", ee = [], ge, te = !1, Ae;
|
1117
|
+
const f = {}, ye = ["totalCashAmount", "totalRealAmount"], Re = () => {
|
1118
|
+
fetch(x).then((u) => u.json()).then((u) => Object.keys(u).forEach((S) => Qe(S, u[S]))).catch((u) => console.log(u));
|
1119
1119
|
};
|
1120
|
-
Object.keys(Ze).forEach((
|
1121
|
-
const
|
1120
|
+
Object.keys(Ze).forEach((u) => Qe(u, Ze[u]));
|
1121
|
+
const Ee = () => {
|
1122
1122
|
if (F.includes(p))
|
1123
1123
|
return F;
|
1124
|
-
},
|
1124
|
+
}, xe = (u) => F ? new Intl.NumberFormat(Ee(), { useGrouping: !0 }).format(u) : U && M ? ae(u, {
|
1125
1125
|
separator: U,
|
1126
1126
|
decimal: M,
|
1127
1127
|
symbol: "",
|
1128
1128
|
precision: parseInt(H || "2", 10)
|
1129
|
-
}).format() : ae(
|
1129
|
+
}).format() : ae(u, {
|
1130
1130
|
separator: ".",
|
1131
1131
|
decimal: ",",
|
1132
1132
|
symbol: "",
|
1133
1133
|
precision: parseInt(H || "2", 10)
|
1134
|
-
}).format(),
|
1135
|
-
n(1,
|
1136
|
-
const
|
1134
|
+
}).format(), re = async () => {
|
1135
|
+
n(1, T = !0);
|
1136
|
+
const u = new URL(`${m}/v1/player/${l}/account`);
|
1137
1137
|
try {
|
1138
|
-
const
|
1138
|
+
const S = await fetch(u, {
|
1139
1139
|
method: "GET",
|
1140
|
-
headers: { "X-SessionID":
|
1141
|
-
}), t = await
|
1142
|
-
if (
|
1143
|
-
|
1140
|
+
headers: { "X-SessionID": c }
|
1141
|
+
}), t = await S.json();
|
1142
|
+
if (S.ok)
|
1143
|
+
ee = t.items, n(3, $ = ee.find((a) => a.displayName === "Casino")?.currency), n(4, f.Total = [{ amount: t.totalAmount[$] }], f), n(
|
1144
1144
|
4,
|
1145
1145
|
f.Real = [
|
1146
1146
|
{
|
1147
|
-
amount:
|
1147
|
+
amount: ee.find((a) => a.displayName === "Casino")?.balanceAmount
|
1148
1148
|
}
|
1149
1149
|
],
|
1150
1150
|
f
|
@@ -1152,45 +1152,45 @@ function kt(o, e, n) {
|
|
1152
1152
|
4,
|
1153
1153
|
f.Bonus = [
|
1154
1154
|
{
|
1155
|
-
amount:
|
1155
|
+
amount: ee.find((a) => a.displayName === "UBS")?.balanceAmount
|
1156
1156
|
}
|
1157
1157
|
],
|
1158
1158
|
f
|
1159
1159
|
);
|
1160
1160
|
else
|
1161
1161
|
throw new Error("Failed to fetch balance data !");
|
1162
|
-
} catch (
|
1163
|
-
console.log("Balance error: ",
|
1162
|
+
} catch (S) {
|
1163
|
+
console.log("Balance error: ", S);
|
1164
1164
|
} finally {
|
1165
|
-
n(1,
|
1165
|
+
n(1, T = !1);
|
1166
1166
|
}
|
1167
|
-
},
|
1168
|
-
n(1,
|
1169
|
-
const
|
1170
|
-
|
1171
|
-
a[
|
1167
|
+
}, ve = () => {
|
1168
|
+
n(1, T = !0);
|
1169
|
+
const u = new URL(`${m}/v2/player/${l}/balance`), S = new Headers();
|
1170
|
+
S.append("X-SessionID", c), fetch(u, { method: "GET", headers: S }).then((a) => a.json()).then((a) => {
|
1171
|
+
a[A] || n(8, A = ye[0]);
|
1172
1172
|
const s = a.items.find((d) => d.type === "Real" && d.walletAccountType === "Ordinary");
|
1173
|
-
if (n(3,
|
1174
|
-
|
1173
|
+
if (n(3, $ = s.currency), te = !!s.productType, n(4, f.Total = [{ amount: 0 }], f), n(4, f.Real = [], f), n(4, f.Bonus = [], f), n(4, f.Credit = [], f), !te) {
|
1174
|
+
ge = {
|
1175
1175
|
lastOrdinaryAfterAmount: 0,
|
1176
1176
|
showCreditLineAfterAmount: !1
|
1177
|
-
}, n(4, f.Total[0].amount = a[
|
1177
|
+
}, n(4, f.Total[0].amount = a[A][$], f);
|
1178
1178
|
for (const d of a.items)
|
1179
1179
|
switch (d.type) {
|
1180
1180
|
case "Bonus":
|
1181
1181
|
f.Bonus.length === 0 ? f.Bonus.push({ amount: d.amount }) : n(4, f.Bonus[0].amount += d.amount, f);
|
1182
1182
|
break;
|
1183
1183
|
case "Real":
|
1184
|
-
if (d.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: d.creditLine }),
|
1184
|
+
if (d.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: d.creditLine }), A === "totalRealAmount") continue;
|
1185
1185
|
f.Real.length === 0 ? f.Real.push({ amount: d.amount }) : n(4, f.Real[0].amount += d.amount, f);
|
1186
1186
|
break;
|
1187
1187
|
}
|
1188
1188
|
for (const [d, h] of Object.entries(f))
|
1189
1189
|
h.length < 1 && delete f[d];
|
1190
|
-
n(1,
|
1190
|
+
n(1, T = !1);
|
1191
1191
|
return;
|
1192
1192
|
}
|
1193
|
-
|
1193
|
+
ge = {
|
1194
1194
|
Casino: {
|
1195
1195
|
lastOrdinaryAfterAmount: 0,
|
1196
1196
|
showCreditLineAfterAmount: !1
|
@@ -1201,7 +1201,7 @@ function kt(o, e, n) {
|
|
1201
1201
|
}
|
1202
1202
|
};
|
1203
1203
|
let i = a.items;
|
1204
|
-
|
1204
|
+
B && B !== "All" && (i = a.items.filter((d) => d.productType === B));
|
1205
1205
|
for (const d of i) {
|
1206
1206
|
let h;
|
1207
1207
|
switch (d.type) {
|
@@ -1222,184 +1222,173 @@ function kt(o, e, n) {
|
|
1222
1222
|
break;
|
1223
1223
|
}
|
1224
1224
|
}
|
1225
|
-
|
1225
|
+
De();
|
1226
1226
|
for (const [d, h] of Object.entries(f))
|
1227
1227
|
h.length < 1 && delete f[d];
|
1228
|
-
n(1,
|
1228
|
+
n(1, T = !1);
|
1229
1229
|
}).catch((a) => {
|
1230
|
-
throw n(1,
|
1230
|
+
throw n(1, T = !1), new Error("Failed to fetch balance data !");
|
1231
1231
|
});
|
1232
|
-
},
|
1233
|
-
if (
|
1234
|
-
let
|
1235
|
-
switch (
|
1232
|
+
}, se = () => {
|
1233
|
+
if (P && P.close(), c.length < 1) return;
|
1234
|
+
let u, S;
|
1235
|
+
switch (b) {
|
1236
1236
|
case "gm16":
|
1237
|
-
|
1237
|
+
u = new URL(`${m}/v2/player/${l}/information/updates`), S = (s) => He(s);
|
1238
1238
|
break;
|
1239
1239
|
case "gmcore":
|
1240
|
-
|
1240
|
+
u = new URL(`${m}/v1/player/${l}/balance/updates`), S = (s) => ie(s);
|
1241
1241
|
break;
|
1242
1242
|
}
|
1243
1243
|
const t = {
|
1244
1244
|
accept: "text/event-stream",
|
1245
|
-
"X-SessionId":
|
1246
|
-
}, a = new
|
1247
|
-
|
1248
|
-
},
|
1249
|
-
let
|
1245
|
+
"X-SessionId": c
|
1246
|
+
}, a = new Rt.EventSourcePolyfill(u, { headers: t });
|
1247
|
+
P = a, a.addEventListener("message", S);
|
1248
|
+
}, Ce = (u) => {
|
1249
|
+
let S;
|
1250
1250
|
try {
|
1251
|
-
|
1251
|
+
S = JSON.parse(u);
|
1252
1252
|
} catch (t) {
|
1253
1253
|
console.log("Balance stream failed: ", t);
|
1254
1254
|
return;
|
1255
1255
|
}
|
1256
|
-
return
|
1257
|
-
},
|
1258
|
-
const
|
1259
|
-
if (!
|
1260
|
-
|
1256
|
+
return S;
|
1257
|
+
}, ie = (u) => {
|
1258
|
+
const S = Ce(u.data);
|
1259
|
+
if (!S) {
|
1260
|
+
se();
|
1261
1261
|
return;
|
1262
1262
|
}
|
1263
1263
|
let t = "0";
|
1264
|
-
const a =
|
1265
|
-
|
1264
|
+
const a = S.balanceChange;
|
1265
|
+
ee = ee.map((s) => (a && a[s.id] && (s = {
|
1266
1266
|
...s,
|
1267
1267
|
balanceAmount: a[s.id].afterAmount
|
1268
|
-
}), t = (parseFloat(s?.balanceAmount) + parseFloat(t)).toString(), s)), n(4, f.Real = [{ amount:
|
1269
|
-
}, be = (
|
1268
|
+
}), t = (parseFloat(s?.balanceAmount) + parseFloat(t)).toString(), s)), n(4, f.Real = [{ amount: ee[0]?.balanceAmount }], f), n(4, f.Bonus = [{ amount: ee[1]?.balanceAmount }], f), n(4, f.Total = [{ amount: Number(t) }], f);
|
1269
|
+
}, be = (u, S, t) => {
|
1270
1270
|
let a = null;
|
1271
1271
|
switch (t.walletAccountType) {
|
1272
1272
|
case "Ordinary":
|
1273
|
-
t.afterAmount !== t.affectedAmount && (
|
1273
|
+
t.afterAmount !== t.affectedAmount && (S.lastOrdinaryAfterAmount = t.afterAmount, S.showCreditLineAfterAmount || (a = t.afterAmount));
|
1274
1274
|
break;
|
1275
1275
|
case "CreditLine":
|
1276
|
-
t.afterAmount !== 0 ? (a = t.afterAmount,
|
1276
|
+
t.afterAmount !== 0 ? (a = t.afterAmount, S.showCreditLineAfterAmount = !0) : (a = S.lastOrdinaryAfterAmount, S.showCreditLineAfterAmount = !1);
|
1277
1277
|
break;
|
1278
1278
|
default:
|
1279
1279
|
a = t.afterAmount;
|
1280
1280
|
}
|
1281
|
-
return a === null ?
|
1282
|
-
},
|
1283
|
-
switch (
|
1281
|
+
return a === null ? u : a;
|
1282
|
+
}, De = () => {
|
1283
|
+
switch (A) {
|
1284
1284
|
case "totalCashAmount":
|
1285
|
-
let
|
1285
|
+
let u = 0;
|
1286
1286
|
for (const t of ["Real", "Bonus"])
|
1287
1287
|
for (const a of f[t])
|
1288
|
-
|
1289
|
-
n(4, f.Total[0].amount =
|
1288
|
+
u += Math.max(a.amount, 0);
|
1289
|
+
n(4, f.Total[0].amount = u, f);
|
1290
1290
|
break;
|
1291
1291
|
case "totalRealAmount":
|
1292
|
-
if (!
|
1293
|
-
let
|
1292
|
+
if (!te) return;
|
1293
|
+
let S = 0;
|
1294
1294
|
for (const t of f.Real)
|
1295
|
-
|
1296
|
-
n(4, f.Total[0].amount =
|
1295
|
+
S += t.amount;
|
1296
|
+
n(4, f.Total[0].amount = S, f);
|
1297
1297
|
}
|
1298
|
-
},
|
1299
|
-
const
|
1300
|
-
if (!
|
1301
|
-
|
1298
|
+
}, He = (u) => {
|
1299
|
+
const S = Ce(u.data);
|
1300
|
+
if (!S) {
|
1301
|
+
se();
|
1302
1302
|
return;
|
1303
1303
|
}
|
1304
|
-
if (
|
1304
|
+
if (S.type !== "BALANCE_UPDATE_V2")
|
1305
1305
|
return;
|
1306
|
-
const t =
|
1306
|
+
const t = S.body.balanceChange;
|
1307
1307
|
for (const [a, s] of Object.entries(t))
|
1308
|
-
if (
|
1308
|
+
if (A === "totalRealAmount" && a === "Real" && !te && n(4, f.Total[0].amount = be(f.Total[0].amount, ge, s), f), !!f[a])
|
1309
1309
|
for (const i of f[a]) {
|
1310
|
-
if (!
|
1311
|
-
i.amount = a === "Real" ? be(i.amount,
|
1310
|
+
if (!te) {
|
1311
|
+
i.amount = a === "Real" ? be(i.amount, ge, s) : s.afterAmount;
|
1312
1312
|
continue;
|
1313
1313
|
}
|
1314
|
-
s.productType === i.productType && (i.amount = a === "Real" ? be(i.amount,
|
1314
|
+
s.productType === i.productType && (i.amount = a === "Real" ? be(i.amount, ge[i.productType], s) : s.afterAmount);
|
1315
1315
|
}
|
1316
|
-
|
1317
|
-
},
|
1318
|
-
n(2,
|
1319
|
-
}, He = () => {
|
1320
|
-
ge.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ge}. Using default value ('${ge[0]}').`), n(8, _ = ge[0]));
|
1316
|
+
De();
|
1317
|
+
}, ke = () => {
|
1318
|
+
n(2, D = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
1321
1319
|
}, ze = () => {
|
1322
|
-
|
1320
|
+
ye.includes(A) || (console.error(`Unsupported value ('${A}') for totalcalculationmode parameter. Only the following values are supported ${ye}. Using default value ('${ye[0]}').`), n(8, A = ye[0]));
|
1321
|
+
}, Ue = () => {
|
1322
|
+
switch (At(p), ze(), b) {
|
1323
1323
|
case "gmcore":
|
1324
|
-
|
1324
|
+
re();
|
1325
1325
|
break;
|
1326
1326
|
case "gm16":
|
1327
|
-
|
1327
|
+
ve();
|
1328
1328
|
break;
|
1329
1329
|
default:
|
1330
|
-
throw Error(`Invalid apiversion attribute: ${
|
1330
|
+
throw Error(`Invalid apiversion attribute: ${b}`);
|
1331
1331
|
}
|
1332
|
-
},
|
1333
|
-
|
1334
|
-
|
1335
|
-
}, xe = () => {
|
1336
|
-
const c = new URL(y), b = document.createElement("style");
|
1337
|
-
fetch(c.href).then((t) => t.text()).then((t) => {
|
1338
|
-
b.innerHTML = t, setTimeout(
|
1339
|
-
() => {
|
1340
|
-
T.appendChild(b);
|
1341
|
-
},
|
1342
|
-
1
|
1343
|
-
);
|
1344
|
-
});
|
1345
|
-
};
|
1346
|
-
yt(() => (window.addEventListener("message", ke, !1), () => {
|
1347
|
-
window.removeEventListener("message", ke), A && A.close();
|
1332
|
+
}, Se = (u) => u.data && u.data.type === "LogoutSuccessfull" && P.close();
|
1333
|
+
vt(() => (window.addEventListener("message", Se, !1), () => {
|
1334
|
+
window.emMessageBus && Ae && Ae.unsubscribe(), window.removeEventListener("message", Se), P && P.close();
|
1348
1335
|
}));
|
1349
|
-
const
|
1350
|
-
function Ge(
|
1351
|
-
|
1352
|
-
|
1336
|
+
const Le = () => n(2, D = !0), we = () => n(2, D = !1), W = () => ke(), Pe = () => n(2, D = !1);
|
1337
|
+
function Ge(u) {
|
1338
|
+
bt[u ? "unshift" : "push"](() => {
|
1339
|
+
C = u, n(0, C);
|
1353
1340
|
});
|
1354
1341
|
}
|
1355
|
-
return o.$$set = (
|
1356
|
-
"userid" in
|
1342
|
+
return o.$$set = (u) => {
|
1343
|
+
"userid" in u && n(9, l = u.userid), "session" in u && n(10, c = u.session), "endpoint" in u && n(11, m = u.endpoint), "lang" in u && n(12, p = u.lang), "clientstyling" in u && n(13, g = u.clientstyling), "clientstylingurl" in u && n(14, y = u.clientstylingurl), "translationurl" in u && n(15, x = u.translationurl), "customlocaleidentifier" in u && n(16, F = u.customlocaleidentifier), "gmversion" in u && n(17, b = u.gmversion), "displaybalanceoption" in u && n(18, B = u.displaybalanceoption), "totalcalculationmode" in u && n(8, A = u.totalcalculationmode), "currencyseparator" in u && n(19, U = u.currencyseparator), "currencydecimal" in u && n(20, M = u.currencydecimal), "currencyprecision" in u && n(21, H = u.currencyprecision), "mbsource" in u && n(22, Z = u.mbsource);
|
1357
1344
|
}, o.$$.update = () => {
|
1358
1345
|
o.$$.dirty[0] & /*lang*/
|
1359
|
-
4096 && p &&
|
1360
|
-
400896 && m && l &&
|
1361
|
-
134656 && m && l &&
|
1362
|
-
8193 && g &&
|
1363
|
-
16385 && y &&
|
1364
|
-
|
1346
|
+
4096 && p && Ee(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
1347
|
+
400896 && m && l && c && p && b && B && Ue(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
1348
|
+
134656 && m && l && c && b && se(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
1349
|
+
8193 && g && C && Bt(C, g), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
1350
|
+
16385 && y && C && wt(C, y), o.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
1351
|
+
4194305 && C && Ct(C, `${Z}.Style`), o.$$.dirty[0] & /*translationurl*/
|
1352
|
+
32768 && x && Re();
|
1365
1353
|
}, [
|
1354
|
+
C,
|
1366
1355
|
T,
|
1367
|
-
P,
|
1368
|
-
G,
|
1369
1356
|
D,
|
1357
|
+
$,
|
1370
1358
|
f,
|
1371
1359
|
r,
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1360
|
+
xe,
|
1361
|
+
ke,
|
1362
|
+
A,
|
1375
1363
|
l,
|
1376
|
-
|
1364
|
+
c,
|
1377
1365
|
m,
|
1378
1366
|
p,
|
1379
1367
|
g,
|
1380
1368
|
y,
|
1381
1369
|
x,
|
1382
1370
|
F,
|
1371
|
+
b,
|
1383
1372
|
B,
|
1384
|
-
C,
|
1385
1373
|
U,
|
1386
1374
|
M,
|
1387
1375
|
H,
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1376
|
+
Z,
|
1377
|
+
Le,
|
1378
|
+
we,
|
1379
|
+
W,
|
1391
1380
|
Pe,
|
1392
1381
|
Ge
|
1393
1382
|
];
|
1394
1383
|
}
|
1395
|
-
class
|
1384
|
+
class Vt extends ft {
|
1396
1385
|
constructor(e) {
|
1397
1386
|
super(), pt(
|
1398
1387
|
this,
|
1399
1388
|
e,
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1389
|
+
It,
|
1390
|
+
Nt,
|
1391
|
+
mt,
|
1403
1392
|
{
|
1404
1393
|
userid: 9,
|
1405
1394
|
session: 10,
|
@@ -1414,9 +1403,10 @@ class Ot extends ft {
|
|
1414
1403
|
totalcalculationmode: 8,
|
1415
1404
|
currencyseparator: 19,
|
1416
1405
|
currencydecimal: 20,
|
1417
|
-
currencyprecision: 21
|
1406
|
+
currencyprecision: 21,
|
1407
|
+
mbsource: 22
|
1418
1408
|
},
|
1419
|
-
|
1409
|
+
Ft,
|
1420
1410
|
[-1, -1]
|
1421
1411
|
);
|
1422
1412
|
}
|
@@ -1424,88 +1414,94 @@ class Ot extends ft {
|
|
1424
1414
|
return this.$$.ctx[9];
|
1425
1415
|
}
|
1426
1416
|
set userid(e) {
|
1427
|
-
this.$$set({ userid: e }),
|
1417
|
+
this.$$set({ userid: e }), K();
|
1428
1418
|
}
|
1429
1419
|
get session() {
|
1430
1420
|
return this.$$.ctx[10];
|
1431
1421
|
}
|
1432
1422
|
set session(e) {
|
1433
|
-
this.$$set({ session: e }),
|
1423
|
+
this.$$set({ session: e }), K();
|
1434
1424
|
}
|
1435
1425
|
get endpoint() {
|
1436
1426
|
return this.$$.ctx[11];
|
1437
1427
|
}
|
1438
1428
|
set endpoint(e) {
|
1439
|
-
this.$$set({ endpoint: e }),
|
1429
|
+
this.$$set({ endpoint: e }), K();
|
1440
1430
|
}
|
1441
1431
|
get lang() {
|
1442
1432
|
return this.$$.ctx[12];
|
1443
1433
|
}
|
1444
1434
|
set lang(e) {
|
1445
|
-
this.$$set({ lang: e }),
|
1435
|
+
this.$$set({ lang: e }), K();
|
1446
1436
|
}
|
1447
1437
|
get clientstyling() {
|
1448
1438
|
return this.$$.ctx[13];
|
1449
1439
|
}
|
1450
1440
|
set clientstyling(e) {
|
1451
|
-
this.$$set({ clientstyling: e }),
|
1441
|
+
this.$$set({ clientstyling: e }), K();
|
1452
1442
|
}
|
1453
1443
|
get clientstylingurl() {
|
1454
1444
|
return this.$$.ctx[14];
|
1455
1445
|
}
|
1456
1446
|
set clientstylingurl(e) {
|
1457
|
-
this.$$set({ clientstylingurl: e }),
|
1447
|
+
this.$$set({ clientstylingurl: e }), K();
|
1458
1448
|
}
|
1459
1449
|
get translationurl() {
|
1460
1450
|
return this.$$.ctx[15];
|
1461
1451
|
}
|
1462
1452
|
set translationurl(e) {
|
1463
|
-
this.$$set({ translationurl: e }),
|
1453
|
+
this.$$set({ translationurl: e }), K();
|
1464
1454
|
}
|
1465
1455
|
get customlocaleidentifier() {
|
1466
1456
|
return this.$$.ctx[16];
|
1467
1457
|
}
|
1468
1458
|
set customlocaleidentifier(e) {
|
1469
|
-
this.$$set({ customlocaleidentifier: e }),
|
1459
|
+
this.$$set({ customlocaleidentifier: e }), K();
|
1470
1460
|
}
|
1471
1461
|
get gmversion() {
|
1472
1462
|
return this.$$.ctx[17];
|
1473
1463
|
}
|
1474
1464
|
set gmversion(e) {
|
1475
|
-
this.$$set({ gmversion: e }),
|
1465
|
+
this.$$set({ gmversion: e }), K();
|
1476
1466
|
}
|
1477
1467
|
get displaybalanceoption() {
|
1478
1468
|
return this.$$.ctx[18];
|
1479
1469
|
}
|
1480
1470
|
set displaybalanceoption(e) {
|
1481
|
-
this.$$set({ displaybalanceoption: e }),
|
1471
|
+
this.$$set({ displaybalanceoption: e }), K();
|
1482
1472
|
}
|
1483
1473
|
get totalcalculationmode() {
|
1484
1474
|
return this.$$.ctx[8];
|
1485
1475
|
}
|
1486
1476
|
set totalcalculationmode(e) {
|
1487
|
-
this.$$set({ totalcalculationmode: e }),
|
1477
|
+
this.$$set({ totalcalculationmode: e }), K();
|
1488
1478
|
}
|
1489
1479
|
get currencyseparator() {
|
1490
1480
|
return this.$$.ctx[19];
|
1491
1481
|
}
|
1492
1482
|
set currencyseparator(e) {
|
1493
|
-
this.$$set({ currencyseparator: e }),
|
1483
|
+
this.$$set({ currencyseparator: e }), K();
|
1494
1484
|
}
|
1495
1485
|
get currencydecimal() {
|
1496
1486
|
return this.$$.ctx[20];
|
1497
1487
|
}
|
1498
1488
|
set currencydecimal(e) {
|
1499
|
-
this.$$set({ currencydecimal: e }),
|
1489
|
+
this.$$set({ currencydecimal: e }), K();
|
1500
1490
|
}
|
1501
1491
|
get currencyprecision() {
|
1502
1492
|
return this.$$.ctx[21];
|
1503
1493
|
}
|
1504
1494
|
set currencyprecision(e) {
|
1505
|
-
this.$$set({ currencyprecision: e }),
|
1495
|
+
this.$$set({ currencyprecision: e }), K();
|
1496
|
+
}
|
1497
|
+
get mbsource() {
|
1498
|
+
return this.$$.ctx[22];
|
1499
|
+
}
|
1500
|
+
set mbsource(e) {
|
1501
|
+
this.$$set({ mbsource: e }), K();
|
1506
1502
|
}
|
1507
1503
|
}
|
1508
|
-
|
1504
|
+
ht(Vt, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {}, mbsource: {} }, [], [], !0);
|
1509
1505
|
export {
|
1510
|
-
|
1506
|
+
Vt as default
|
1511
1507
|
};
|