@everymatrix/casino-header-controller-nd 1.50.0 → 1.52.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/{CasinoHamburgerMenuNd-BnENP9MM.cjs → CasinoHamburgerMenuNd-BZ67WYAG.cjs} +3 -3
- package/components/{CasinoHamburgerMenuNd-Bs3cob6Z.js → CasinoHamburgerMenuNd-zaMLQqFG.js} +294 -285
- package/components/{CasinoHeaderControllerNd-geqjLjIz.js → CasinoHeaderControllerNd-1rDV2VOr.js} +49 -43
- package/components/CasinoHeaderControllerNd-CPfJUdB_.cjs +1 -0
- package/components/{PlayerAccountBalanceModalNd-D9D6AWYC.js → PlayerAccountBalanceModalNd-BhOHwnw5.js} +81 -70
- package/components/PlayerAccountBalanceModalNd-DtlIScQl.cjs +13 -0
- package/components/{PlayerDeposit-Dok-qi_l.cjs → PlayerDeposit-CB-HaILi.cjs} +1 -1
- package/components/{PlayerDeposit-DNfu5HDn.js → PlayerDeposit-wVbCjsPY.js} +32 -32
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/package.json +3 -2
- package/stencil/{gamification-dropdown-498ae904-DpZf5Exb.cjs → gamification-dropdown-456bb56a-BNBBLNsh.cjs} +1 -1
- package/stencil/{gamification-dropdown-498ae904-Dvuugqyp.js → gamification-dropdown-456bb56a-BdUyUmVP.js} +1 -1
- package/stencil/gamification-dropdown-DiubO5ew.cjs +1 -0
- package/stencil/{gamification-dropdown-Dx5S6y_S.js → gamification-dropdown-Dz6DNlrv.js} +1 -1
- package/stencil/{gamification-dropdown_4-CtZI21hk.cjs → gamification-dropdown_4-BEPN8PGr.cjs} +2 -2
- package/stencil/{gamification-dropdown_4-De9Z-Zt_.js → gamification-dropdown_4-BkIgVyzQ.js} +4 -4
- package/stencil/{index-0ad2daf0-BKeWSFX3.js → index-171550cf-BERgCb0j.js} +199 -191
- package/stencil/index-171550cf-Dl1Iozjj.cjs +1 -0
- package/stencil/{player-elevate-card-BQnhai7H.cjs → player-elevate-card-B9D3G-JZ.cjs} +1 -1
- package/stencil/{player-elevate-card-DgFw98B3.js → player-elevate-card-ClnI63vD.js} +2 -2
- package/stencil/{player-elevate-card-items-7f8f7bd8-DYuv0i85.cjs → player-elevate-card-items-2078bd83-BXFKNOJZ.cjs} +1 -1
- package/stencil/{player-elevate-card-items-7f8f7bd8-BNjjXUCI.js → player-elevate-card-items-2078bd83-Bbsxz5tr.js} +1 -1
- package/stencil/{player-elevate-pointcard-DidFBWJW.cjs → player-elevate-pointcard-CBAMD0_H.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-DlzEmeiG.js → player-elevate-pointcard-EE4MG3CK.js} +2 -2
- package/components/CasinoHeaderControllerNd-CJwIkZaD.cjs +0 -1
- package/components/PlayerAccountBalanceModalNd-CSPJovW9.cjs +0 -13
- package/stencil/gamification-dropdown-D8vUxPGk.cjs +0 -1
- package/stencil/index-0ad2daf0-BHol-vm2.cjs +0 -1
|
@@ -26,7 +26,7 @@ var tt = (o, e, t) => new Promise((s, u) => {
|
|
|
26
26
|
}, h = (m) => m.done ? s(m.value) : Promise.resolve(m.value).then(d, g);
|
|
27
27
|
h((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { b as bt, $ as Bt, L as Tt, S as
|
|
29
|
+
import { b as bt, $ as Bt, L as Tt, S as Ct, i as St, f as Y, c as _t, s as At, d as Rt, g as V, h as ae, j as _, l as ge, m as T, D as We, r as me, v as Et, w as xt, n as Ne, F as Mt, B as pe, z as nt, x as Dt, C as he, y as Ve, A as ut, H as Lt, J as Ot } from "./CasinoHamburgerMenuNd-zaMLQqFG.js";
|
|
30
30
|
function at(o, e) {
|
|
31
31
|
bt(o, e);
|
|
32
32
|
}
|
|
@@ -220,6 +220,17 @@ const ot = {
|
|
|
220
220
|
Sports: "Deportes",
|
|
221
221
|
DepositButton: "Depósito",
|
|
222
222
|
Loading: "Cargando ..."
|
|
223
|
+
},
|
|
224
|
+
"en-us": {
|
|
225
|
+
Title: "Your Balance",
|
|
226
|
+
Total: "Total Balance",
|
|
227
|
+
Real: "Cash Balance",
|
|
228
|
+
Bonus: "Bonus Balance",
|
|
229
|
+
Credit: "Credit Balance",
|
|
230
|
+
Casino: "Casino",
|
|
231
|
+
Sports: "Sports",
|
|
232
|
+
DepositButton: "Deposit",
|
|
233
|
+
Loading: "Loading ..."
|
|
223
234
|
}
|
|
224
235
|
};
|
|
225
236
|
var qe = { exports: {} };
|
|
@@ -267,25 +278,25 @@ var qe = { exports: {} };
|
|
|
267
278
|
};
|
|
268
279
|
};
|
|
269
280
|
}
|
|
270
|
-
function
|
|
281
|
+
function C() {
|
|
271
282
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
272
283
|
}
|
|
273
|
-
|
|
274
|
-
function n(
|
|
284
|
+
C.prototype.decode = function(a) {
|
|
285
|
+
function n(S, D, b) {
|
|
275
286
|
if (b === 1)
|
|
276
|
-
return
|
|
287
|
+
return S >= 128 >> D && S << D <= 2047;
|
|
277
288
|
if (b === 2)
|
|
278
|
-
return
|
|
289
|
+
return S >= 2048 >> D && S << D <= 55295 || S >= 57344 >> D && S << D <= 65535;
|
|
279
290
|
if (b === 3)
|
|
280
|
-
return
|
|
291
|
+
return S >= 65536 >> D && S << D <= 1114111;
|
|
281
292
|
throw new Error();
|
|
282
293
|
}
|
|
283
|
-
function i(
|
|
284
|
-
if (
|
|
294
|
+
function i(S, D) {
|
|
295
|
+
if (S === 6 * 1)
|
|
285
296
|
return D >> 6 > 15 ? 3 : D > 31 ? 2 : 1;
|
|
286
|
-
if (
|
|
297
|
+
if (S === 6 * 2)
|
|
287
298
|
return D > 15 ? 3 : 2;
|
|
288
|
-
if (
|
|
299
|
+
if (S === 6 * 3)
|
|
289
300
|
return 3;
|
|
290
301
|
throw new Error();
|
|
291
302
|
}
|
|
@@ -303,7 +314,7 @@ var qe = { exports: {} };
|
|
|
303
314
|
}
|
|
304
315
|
return !1;
|
|
305
316
|
};
|
|
306
|
-
(F == null || E == null || !O()) && (F =
|
|
317
|
+
(F == null || E == null || !O()) && (F = C);
|
|
307
318
|
var k = function() {
|
|
308
319
|
};
|
|
309
320
|
function P(a) {
|
|
@@ -352,7 +363,7 @@ var qe = { exports: {} };
|
|
|
352
363
|
throw new TypeError();
|
|
353
364
|
i.onreadystatechange();
|
|
354
365
|
}
|
|
355
|
-
},
|
|
366
|
+
}, S = function(b) {
|
|
356
367
|
r != null && (r.readyState === 4 ? (!("onload" in r) || !("onerror" in r) || !("onabort" in r)) && w(r.responseText === "" ? "error" : "load", b) : r.readyState === 3 ? "onprogress" in r || p() : r.readyState === 2 && v());
|
|
357
368
|
}, D = function() {
|
|
358
369
|
f = s(function() {
|
|
@@ -366,7 +377,7 @@ var qe = { exports: {} };
|
|
|
366
377
|
}), "onabort" in r && (r.onabort = function(b) {
|
|
367
378
|
w("abort", b);
|
|
368
379
|
}), "onprogress" in r && (r.onprogress = p), "onreadystatechange" in r && (r.onreadystatechange = function(b) {
|
|
369
|
-
|
|
380
|
+
S(b);
|
|
370
381
|
}), ("contentType" in r || !("ontimeout" in d.prototype)) && (n += (n.indexOf("?") === -1 ? "?" : "&") + "padding=true"), r.open(a, n, !0), "readyState" in r && (f = s(function() {
|
|
371
382
|
D();
|
|
372
383
|
}, 0));
|
|
@@ -417,18 +428,18 @@ var qe = { exports: {} };
|
|
|
417
428
|
a.open("GET", c);
|
|
418
429
|
var p = 0;
|
|
419
430
|
a.onprogress = function() {
|
|
420
|
-
var
|
|
431
|
+
var S = a.responseText, D = S.slice(p);
|
|
421
432
|
p += D.length, i(D);
|
|
422
|
-
}, a.onerror = function(
|
|
423
|
-
|
|
433
|
+
}, a.onerror = function(S) {
|
|
434
|
+
S.preventDefault(), r(new Error("NetworkError"));
|
|
424
435
|
}, a.onload = function() {
|
|
425
436
|
r(null);
|
|
426
437
|
}, a.onabort = function() {
|
|
427
438
|
r(null);
|
|
428
439
|
}, a.onreadystatechange = function() {
|
|
429
440
|
if (a.readyState === d.HEADERS_RECEIVED) {
|
|
430
|
-
var
|
|
431
|
-
n(
|
|
441
|
+
var S = a.status, D = a.statusText, b = a.getResponseHeader("Content-Type"), I = a.getAllResponseHeaders();
|
|
442
|
+
n(S, D, b, new ie(I));
|
|
432
443
|
}
|
|
433
444
|
}, a.withCredentials = f;
|
|
434
445
|
for (var w in v)
|
|
@@ -444,11 +455,11 @@ var qe = { exports: {} };
|
|
|
444
455
|
function A() {
|
|
445
456
|
}
|
|
446
457
|
A.prototype.open = function(a, n, i, r, c, f, v) {
|
|
447
|
-
var p = null, w = new j(),
|
|
458
|
+
var p = null, w = new j(), S = w.signal, D = new F();
|
|
448
459
|
return L(c, {
|
|
449
460
|
headers: v,
|
|
450
461
|
credentials: f ? "include" : "same-origin",
|
|
451
|
-
signal:
|
|
462
|
+
signal: S,
|
|
452
463
|
cache: "no-store"
|
|
453
464
|
}).then(function(b) {
|
|
454
465
|
return p = b.body.getReader(), n(b.status, b.statusText, b.headers.get("Content-Type"), new x(b.headers)), new R(function(I, ce) {
|
|
@@ -549,10 +560,10 @@ var qe = { exports: {} };
|
|
|
549
560
|
var Pe = L != null && M != null && "body" in M.prototype;
|
|
550
561
|
function Xe(a, n, i) {
|
|
551
562
|
n = String(n);
|
|
552
|
-
var r = !!i.withCredentials, c = i.lastEventIdQueryParameterName || "lastEventId", f = Ee(1e3), v = Te(i.heartbeatTimeout, 45e3), p = "", w = f,
|
|
563
|
+
var r = !!i.withCredentials, c = i.lastEventIdQueryParameterName || "lastEventId", f = Ee(1e3), v = Te(i.heartbeatTimeout, 45e3), p = "", w = f, S = !1, D = 0, b = i.headers || {}, I = i.Transport, ce = Pe && I == null ? void 0 : new P(I != null ? new I() : Ue()), xe = I != null && typeof I != "string" ? new I() : ce == null ? new A() : new X(), Z = void 0, K = 0, te = Ae, Ce = "", ke = "", de = "", Fe = "", W = re, Ge = 0, be = 0, pt = function(z, H, $, ee) {
|
|
553
564
|
if (te === oe)
|
|
554
565
|
if (z === 200 && $ != null && Le.test($)) {
|
|
555
|
-
te = ve,
|
|
566
|
+
te = ve, S = Date.now(), w = f, a.readyState = ve;
|
|
556
567
|
var q = new se("open", {
|
|
557
568
|
status: z,
|
|
558
569
|
statusText: H,
|
|
@@ -576,7 +587,7 @@ var qe = { exports: {} };
|
|
|
576
587
|
(ee === 10 || ee === 13) && (H = $);
|
|
577
588
|
}
|
|
578
589
|
var q = (H !== -1 ? Fe : "") + z.slice(0, H + 1);
|
|
579
|
-
Fe = (H === -1 ? Fe : "") + z.slice(H + 1), z !== "" && (
|
|
590
|
+
Fe = (H === -1 ? Fe : "") + z.slice(H + 1), z !== "" && (S = Date.now(), D += z.length);
|
|
580
591
|
for (var U = 0; U < q.length; U += 1) {
|
|
581
592
|
var ee = q.charCodeAt(U);
|
|
582
593
|
if (W === Be && ee === 10)
|
|
@@ -585,22 +596,22 @@ var qe = { exports: {} };
|
|
|
585
596
|
if (W !== re) {
|
|
586
597
|
W === we && (be = U + 1);
|
|
587
598
|
var ue = q.slice(Ge, be - 1), fe = q.slice(be + (be < U && q.charCodeAt(be) === 32 ? 1 : 0), U);
|
|
588
|
-
ue === "data" ? (
|
|
589
|
-
`,
|
|
599
|
+
ue === "data" ? (Ce += `
|
|
600
|
+
`, Ce += fe) : ue === "id" ? ke = fe : ue === "event" ? de = fe : ue === "retry" ? (f = Te(fe, f), w = f) : ue === "heartbeatTimeout" && (v = Te(fe, v), K !== 0 && (u(K), K = s(function() {
|
|
590
601
|
Me();
|
|
591
602
|
}, v)));
|
|
592
603
|
}
|
|
593
604
|
if (W === re) {
|
|
594
|
-
if (
|
|
605
|
+
if (Ce !== "") {
|
|
595
606
|
p = ke, de === "" && (de = "message");
|
|
596
|
-
var
|
|
597
|
-
data:
|
|
607
|
+
var Se = new De(de, {
|
|
608
|
+
data: Ce.slice(1),
|
|
598
609
|
lastEventId: ke
|
|
599
610
|
});
|
|
600
|
-
if (a.dispatchEvent(
|
|
611
|
+
if (a.dispatchEvent(Se), de === "open" ? ye(a, a.onopen, Se) : de === "message" ? ye(a, a.onmessage, Se) : de === "error" && ye(a, a.onerror, Se), te === le)
|
|
601
612
|
return;
|
|
602
613
|
}
|
|
603
|
-
|
|
614
|
+
Ce = "", de = "";
|
|
604
615
|
}
|
|
605
616
|
W = ee === 13 ? Be : re;
|
|
606
617
|
} else
|
|
@@ -619,24 +630,24 @@ var qe = { exports: {} };
|
|
|
619
630
|
te = le, Z != null && (Z.abort(), Z = void 0), K !== 0 && (u(K), K = 0), a.readyState = le;
|
|
620
631
|
}, Me = function() {
|
|
621
632
|
if (K = 0, te !== Ae) {
|
|
622
|
-
if (!
|
|
633
|
+
if (!S && Z != null)
|
|
623
634
|
Je(new Error("No activity within " + v + " milliseconds. " + (te === oe ? "No response received." : D + " chars received.") + " Reconnecting.")), Z != null && (Z.abort(), Z = void 0);
|
|
624
635
|
else {
|
|
625
|
-
var z = Math.max((
|
|
626
|
-
|
|
636
|
+
var z = Math.max((S || Date.now()) + v - Date.now(), 1);
|
|
637
|
+
S = !1, K = s(function() {
|
|
627
638
|
Me();
|
|
628
639
|
}, z);
|
|
629
640
|
}
|
|
630
641
|
return;
|
|
631
642
|
}
|
|
632
|
-
|
|
643
|
+
S = !1, D = 0, K = s(function() {
|
|
633
644
|
Me();
|
|
634
|
-
}, v), te = oe,
|
|
645
|
+
}, v), te = oe, Ce = "", de = "", ke = p, Fe = "", Ge = 0, be = 0, W = re;
|
|
635
646
|
var H = n;
|
|
636
647
|
if (n.slice(0, 5) !== "data:" && n.slice(0, 5) !== "blob:" && p !== "") {
|
|
637
648
|
var $ = n.indexOf("?");
|
|
638
|
-
H = $ === -1 ? n : n.slice(0, $ + 1) + n.slice($ + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(fe,
|
|
639
|
-
return
|
|
649
|
+
H = $ === -1 ? n : n.slice(0, $ + 1) + n.slice($ + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(fe, Se) {
|
|
650
|
+
return Se === c ? "" : fe;
|
|
640
651
|
}), H += (n.indexOf("?") === -1 ? "?" : "&") + c + "=" + encodeURIComponent(p);
|
|
641
652
|
}
|
|
642
653
|
var ee = a.withCredentials, q = {};
|
|
@@ -810,7 +821,7 @@ ne.prototype = {
|
|
|
810
821
|
}
|
|
811
822
|
};
|
|
812
823
|
function zt(o) {
|
|
813
|
-
Rt(o, "svelte-
|
|
824
|
+
Rt(o, "svelte-13i7jhd", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(-emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(-emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(-emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(-emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
814
825
|
}
|
|
815
826
|
function rt(o, e, t) {
|
|
816
827
|
const s = o.slice();
|
|
@@ -842,35 +853,35 @@ function Ut(o) {
|
|
|
842
853
|
), h = ae(), m = V("span"), y = nt("svg"), R = nt("path"), M = ae(), B && B.c(), F = Dt(), _(R, "id", "arrow"), _(R, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), _(R, "transform", "translate(-274.511 -441.088)"), _(R, "fill", "#d1d1d1"), _(y, "xmlns", "http://www.w3.org/2000/svg"), _(y, "width", "14"), _(y, "height", "6.835"), _(y, "viewBox", "0 0 14 6.835"), _(m, "class", L = /*modalOpened*/
|
|
843
854
|
o[3] ? "TriangleActive" : "TriangleInactive"), _(e, "class", "BalanceValue");
|
|
844
855
|
},
|
|
845
|
-
m(
|
|
846
|
-
ge(
|
|
856
|
+
m(C, O) {
|
|
857
|
+
ge(C, e, O), T(e, t), T(t, u), T(t, d), T(t, g), T(e, h), T(e, m), T(m, y), T(y, R), ge(C, M, O), B && B.m(C, O), ge(C, F, O), E || (j = Ne(
|
|
847
858
|
e,
|
|
848
859
|
"click",
|
|
849
860
|
/*click_handler*/
|
|
850
861
|
o[24]
|
|
851
862
|
), E = !0);
|
|
852
863
|
},
|
|
853
|
-
p(
|
|
864
|
+
p(C, O) {
|
|
854
865
|
O[0] & /*balances*/
|
|
855
866
|
2 && s !== (s = /*balances*/
|
|
856
|
-
(
|
|
867
|
+
(C[1].Total ? (
|
|
857
868
|
/*formatBalance*/
|
|
858
|
-
|
|
869
|
+
C[8](
|
|
859
870
|
/*balances*/
|
|
860
|
-
|
|
871
|
+
C[1].Total[0].amount
|
|
861
872
|
)
|
|
862
873
|
) : "0") + "") && he(u, s), O[0] & /*currency*/
|
|
863
874
|
32 && he(
|
|
864
875
|
g,
|
|
865
876
|
/*currency*/
|
|
866
|
-
|
|
877
|
+
C[5]
|
|
867
878
|
), O[0] & /*modalOpened*/
|
|
868
879
|
8 && L !== (L = /*modalOpened*/
|
|
869
|
-
|
|
870
|
-
|
|
880
|
+
C[3] ? "TriangleActive" : "TriangleInactive") && _(m, "class", L), /*showBalance*/
|
|
881
|
+
C[4] ? B ? B.p(C, O) : (B = st(C), B.c(), B.m(F.parentNode, F)) : B && (B.d(1), B = null);
|
|
871
882
|
},
|
|
872
|
-
d(
|
|
873
|
-
|
|
883
|
+
d(C) {
|
|
884
|
+
C && (me(e), me(M), me(F)), B && B.d(C), E = !1, j();
|
|
874
885
|
}
|
|
875
886
|
};
|
|
876
887
|
}
|
|
@@ -903,7 +914,7 @@ function st(o) {
|
|
|
903
914
|
), R, L, M, F, E, j, B = (
|
|
904
915
|
/*$_*/
|
|
905
916
|
o[6]("DepositButton") + ""
|
|
906
|
-
),
|
|
917
|
+
), C, O, k, P, J, ie, X = Ve(Object.keys(
|
|
907
918
|
/*balances*/
|
|
908
919
|
o[1]
|
|
909
920
|
)), x = [];
|
|
@@ -914,7 +925,7 @@ function st(o) {
|
|
|
914
925
|
e = V("div"), t = V("div"), u = ae(), d = V("div"), g = V("div"), h = V("div"), m = V("p"), R = pe(y), L = ae(), M = V("div");
|
|
915
926
|
for (let A = 0; A < x.length; A += 1)
|
|
916
927
|
x[A].c();
|
|
917
|
-
F = ae(), E = V("div"), j = V("button"),
|
|
928
|
+
F = ae(), E = V("div"), j = V("button"), C = pe(B), _(t, "class", s = "BalanceModalClose " + /*modalOpened*/
|
|
918
929
|
(o[3] ? "Open" : "")), _(m, "class", "BalanceModalTitle"), _(h, "class", "BalanceModalHeader"), _(M, "class", "BalanceModalBody"), _(j, "class", "BalanceModalAction"), _(E, "class", "BalanceModalFooter"), _(g, "class", O = "ModalContent " + /*modalOpened*/
|
|
919
930
|
(o[3] ? "Open" : "")), _(d, "class", k = "BalanceModal " + /*modalOpened*/
|
|
920
931
|
(o[3] ? "Open" : "")), _(e, "class", P = "BalanceModalWrapper " + /*modalOpened*/
|
|
@@ -924,7 +935,7 @@ function st(o) {
|
|
|
924
935
|
ge(A, e, N), T(e, t), T(e, u), T(e, d), T(d, g), T(g, h), T(h, m), T(m, R), T(g, L), T(g, M);
|
|
925
936
|
for (let l = 0; l < x.length; l += 1)
|
|
926
937
|
x[l] && x[l].m(M, null);
|
|
927
|
-
T(g, F), T(g, E), T(E, j), T(j,
|
|
938
|
+
T(g, F), T(g, E), T(E, j), T(j, C), J || (ie = [
|
|
928
939
|
Ne(
|
|
929
940
|
t,
|
|
930
941
|
"click",
|
|
@@ -961,7 +972,7 @@ function st(o) {
|
|
|
961
972
|
}
|
|
962
973
|
N[0] & /*$_*/
|
|
963
974
|
64 && B !== (B = /*$_*/
|
|
964
|
-
A[6]("DepositButton") + "") && he(
|
|
975
|
+
A[6]("DepositButton") + "") && he(C, B), N[0] & /*modalOpened*/
|
|
965
976
|
8 && O !== (O = "ModalContent " + /*modalOpened*/
|
|
966
977
|
(A[3] ? "Open" : "")) && _(g, "class", O), N[0] & /*modalOpened*/
|
|
967
978
|
8 && k !== (k = "BalanceModal " + /*modalOpened*/
|
|
@@ -1007,16 +1018,16 @@ function lt(o) {
|
|
|
1007
1018
|
o[5]
|
|
1008
1019
|
), _(t, "class", "BalanceModalText"), _(R, "class", "BalanceModalAmount"), _(E, "class", "BalanceModalCurrency"), _(y, "class", "BalanceModalValue"), _(e, "class", "BalanceModalRowLine");
|
|
1009
1020
|
},
|
|
1010
|
-
m(B,
|
|
1011
|
-
ge(B, e,
|
|
1021
|
+
m(B, C) {
|
|
1022
|
+
ge(B, e, C), T(e, t), T(t, u), T(t, d), T(t, h), T(e, m), T(e, y), T(y, R), T(R, M), T(y, F), T(y, E), T(E, j);
|
|
1012
1023
|
},
|
|
1013
|
-
p(B,
|
|
1014
|
-
|
|
1024
|
+
p(B, C) {
|
|
1025
|
+
C[0] & /*$_, balances*/
|
|
1015
1026
|
66 && s !== (s = /*$_*/
|
|
1016
1027
|
B[6](
|
|
1017
1028
|
/*k*/
|
|
1018
1029
|
B[50]
|
|
1019
|
-
) + "") && he(u, s),
|
|
1030
|
+
) + "") && he(u, s), C[0] & /*balances, $_*/
|
|
1020
1031
|
66 && g !== (g = /*b*/
|
|
1021
1032
|
(B[53].productType ? (
|
|
1022
1033
|
/*$_*/
|
|
@@ -1024,7 +1035,7 @@ function lt(o) {
|
|
|
1024
1035
|
/*b*/
|
|
1025
1036
|
B[53].productType
|
|
1026
1037
|
)
|
|
1027
|
-
) : "") + "") && he(h, g),
|
|
1038
|
+
) : "") + "") && he(h, g), C[0] & /*balances*/
|
|
1028
1039
|
2 && L !== (L = /*b*/
|
|
1029
1040
|
(B[53].amount ? (
|
|
1030
1041
|
/*formatBalance*/
|
|
@@ -1032,7 +1043,7 @@ function lt(o) {
|
|
|
1032
1043
|
/*b*/
|
|
1033
1044
|
B[53].amount
|
|
1034
1045
|
)
|
|
1035
|
-
) : "0") + "") && he(M, L),
|
|
1046
|
+
) : "0") + "") && he(M, L), C[0] & /*currency*/
|
|
1036
1047
|
32 && he(
|
|
1037
1048
|
j,
|
|
1038
1049
|
/*currency*/
|
|
@@ -1145,7 +1156,7 @@ function Xt(o) {
|
|
|
1145
1156
|
function Gt(o, e, t) {
|
|
1146
1157
|
let s;
|
|
1147
1158
|
Et(o, Ot, (n) => t(6, s = n));
|
|
1148
|
-
let { userid: u = "" } = e, { session: d = "" } = e, { endpoint: g = "" } = e, { lang: h = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: R = "" } = e, { customlocaleidentifier: L = "" } = e, { gmversion: M = "gm16" } = e, { displaybalanceoption: F = "All" } = e, { totalcalculationmode: E = "totalCashAmount" } = e, { currencyseparator: j = "" } = e, { currencydecimal: B = "" } = e, { currencyprecision:
|
|
1159
|
+
let { userid: u = "" } = e, { session: d = "" } = e, { endpoint: g = "" } = e, { lang: h = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: R = "" } = e, { customlocaleidentifier: L = "" } = e, { gmversion: M = "gm16" } = e, { displaybalanceoption: F = "All" } = e, { totalcalculationmode: E = "totalCashAmount" } = e, { currencyseparator: j = "" } = e, { currencydecimal: B = "" } = e, { currencyprecision: C = "" } = e, O, k, P, J, ie = !1, X = "", x = [], A, N = !1;
|
|
1149
1160
|
const l = {}, G = ["totalCashAmount", "totalRealAmount"], De = () => {
|
|
1150
1161
|
fetch(R).then((n) => n.json()).then((n) => Object.keys(n).forEach((i) => at(i, n[i]))).catch((n) => console.log(n));
|
|
1151
1162
|
};
|
|
@@ -1183,12 +1194,12 @@ function Gt(o, e, t) {
|
|
|
1183
1194
|
separator: j,
|
|
1184
1195
|
decimal: B,
|
|
1185
1196
|
symbol: "",
|
|
1186
|
-
precision: parseInt(
|
|
1197
|
+
precision: parseInt(C || "2", 10)
|
|
1187
1198
|
}).format() : ne(n, {
|
|
1188
1199
|
separator: ".",
|
|
1189
1200
|
decimal: ",",
|
|
1190
1201
|
symbol: "",
|
|
1191
|
-
precision: parseInt(
|
|
1202
|
+
precision: parseInt(C || "2", 10)
|
|
1192
1203
|
}).format(), oe = () => tt(this, null, function* () {
|
|
1193
1204
|
var i, r, c;
|
|
1194
1205
|
t(2, O = !0);
|
|
@@ -1265,7 +1276,7 @@ function Gt(o, e, t) {
|
|
|
1265
1276
|
let w;
|
|
1266
1277
|
switch (p.type) {
|
|
1267
1278
|
case "Bonus":
|
|
1268
|
-
w = l.Bonus.findIndex((
|
|
1279
|
+
w = l.Bonus.findIndex((S) => S.productType === p.productType), w > 0 ? t(1, l.Bonus[w].amount += p.amount, l) : l.Bonus.push({
|
|
1269
1280
|
amount: p.amount,
|
|
1270
1281
|
productType: p.productType
|
|
1271
1282
|
});
|
|
@@ -1274,7 +1285,7 @@ function Gt(o, e, t) {
|
|
|
1274
1285
|
p.creditLine && l.Credit.push({
|
|
1275
1286
|
amount: p.creditLine,
|
|
1276
1287
|
productType: p.productType
|
|
1277
|
-
}), w = l.Real.findIndex((
|
|
1288
|
+
}), w = l.Real.findIndex((S) => S.productType === p.productType), w > 0 ? t(1, l.Real[w].amount += p.amount, l) : l.Real.push({
|
|
1278
1289
|
amount: p.amount,
|
|
1279
1290
|
productType: p.productType
|
|
1280
1291
|
});
|
|
@@ -1414,7 +1425,7 @@ function Gt(o, e, t) {
|
|
|
1414
1425
|
});
|
|
1415
1426
|
}
|
|
1416
1427
|
return o.$$set = (n) => {
|
|
1417
|
-
"userid" in n && t(11, u = n.userid), "session" in n && t(12, d = n.session), "endpoint" in n && t(13, g = n.endpoint), "lang" in n && t(14, h = n.lang), "clientstyling" in n && t(15, m = n.clientstyling), "clientstylingurl" in n && t(16, y = n.clientstylingurl), "translationurl" in n && t(17, R = n.translationurl), "customlocaleidentifier" in n && t(18, L = n.customlocaleidentifier), "gmversion" in n && t(19, M = n.gmversion), "displaybalanceoption" in n && t(20, F = n.displaybalanceoption), "totalcalculationmode" in n && t(10, E = n.totalcalculationmode), "currencyseparator" in n && t(21, j = n.currencyseparator), "currencydecimal" in n && t(22, B = n.currencydecimal), "currencyprecision" in n && t(23,
|
|
1428
|
+
"userid" in n && t(11, u = n.userid), "session" in n && t(12, d = n.session), "endpoint" in n && t(13, g = n.endpoint), "lang" in n && t(14, h = n.lang), "clientstyling" in n && t(15, m = n.clientstyling), "clientstylingurl" in n && t(16, y = n.clientstylingurl), "translationurl" in n && t(17, R = n.translationurl), "customlocaleidentifier" in n && t(18, L = n.customlocaleidentifier), "gmversion" in n && t(19, M = n.gmversion), "displaybalanceoption" in n && t(20, F = n.displaybalanceoption), "totalcalculationmode" in n && t(10, E = n.totalcalculationmode), "currencyseparator" in n && t(21, j = n.currencyseparator), "currencydecimal" in n && t(22, B = n.currencydecimal), "currencyprecision" in n && t(23, C = n.currencyprecision);
|
|
1418
1429
|
}, o.$$.update = () => {
|
|
1419
1430
|
o.$$.dirty[0] & /*lang*/
|
|
1420
1431
|
16384 && h && _e(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
@@ -1448,7 +1459,7 @@ function Gt(o, e, t) {
|
|
|
1448
1459
|
F,
|
|
1449
1460
|
j,
|
|
1450
1461
|
B,
|
|
1451
|
-
|
|
1462
|
+
C,
|
|
1452
1463
|
Ue,
|
|
1453
1464
|
Pe,
|
|
1454
1465
|
Xe,
|
|
@@ -1456,9 +1467,9 @@ function Gt(o, e, t) {
|
|
|
1456
1467
|
a
|
|
1457
1468
|
];
|
|
1458
1469
|
}
|
|
1459
|
-
class Kt extends
|
|
1470
|
+
class Kt extends Ct {
|
|
1460
1471
|
constructor(e) {
|
|
1461
|
-
super(),
|
|
1472
|
+
super(), St(
|
|
1462
1473
|
this,
|
|
1463
1474
|
e,
|
|
1464
1475
|
Gt,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";var at=Object.defineProperty,ot=Object.defineProperties;var rt=Object.getOwnPropertyDescriptors;var He=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var ze=(r,t,n)=>t in r?at(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n,Ue=(r,t)=>{for(var n in t||(t={}))it.call(t,n)&&ze(r,n,t[n]);if(He)for(var n of He(t))lt.call(t,n)&&ze(r,n,t[n]);return r},Pe=(r,t)=>ot(r,rt(t));var Xe=(r,t,n)=>new Promise((s,f)=>{var u=y=>{try{m(n.next(y))}catch(w){f(w)}},g=y=>{try{m(n.throw(y))}catch(w){f(w)}},m=y=>y.done?s(y.value):Promise.resolve(y.value).then(u,g);m((n=n.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-BZ67WYAG.cjs");function Ge(r,t){e.addMessages(r,t)}function st(r){e.$locale.set(r)}const qe={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen",Loading:"Wird geladen ..."},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita",Loading:"Caricamento ..."},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt",Loading:"Chargement ..."},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit",Loading:"Se încarcă ..."},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit",Loading:"Učitavanje ..."},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés",Loading:"Betöltés ..."},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać",Loading:"Ładowanie ..."},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit",Loading:"Učitavanje ..."},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},"en-us":{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."}};var Ie={exports:{}};/** @license
|
|
2
|
+
* eventsource.js
|
|
3
|
+
* Available under MIT License (MIT)
|
|
4
|
+
* https://github.com/Yaffle/EventSource/
|
|
5
|
+
*/(function(r,t){(function(n){var s=n.setTimeout,f=n.clearTimeout,u=n.XMLHttpRequest,g=n.XDomainRequest,m=n.ActiveXObject,y=n.EventSource,w=n.document,A=n.Promise,D=n.fetch,E=n.Response,k=n.TextDecoder,R=n.TextEncoder,I=n.AbortController;if(typeof window!="undefined"&&typeof w!="undefined"&&!("readyState"in w)&&w.body==null&&(w.readyState="loading",window.addEventListener("load",function(o){w.readyState="complete"},!1)),u==null&&m!=null&&(u=function(){return new m("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(o){function a(){}return a.prototype=o,new a}),Date.now||(Date.now=function(){return new Date().getTime()}),I==null){var T=D;D=function(o,a){var l=a.signal;return T(o,{headers:a.headers,credentials:a.credentials,cache:a.cache}).then(function(i){var d=i.body.getReader();return l._reader=d,l._aborted&&l._reader.cancel(),{status:i.status,statusText:i.statusText,headers:i.headers,body:{getReader:function(){return d}}}})},I=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function C(){this.bitsNeeded=0,this.codePoint=0}C.prototype.decode=function(o){function a(S,M,B){if(B===1)return S>=128>>M&&S<<M<=2047;if(B===2)return S>=2048>>M&&S<<M<=55295||S>=57344>>M&&S<<M<=65535;if(B===3)return S>=65536>>M&&S<<M<=1114111;throw new Error}function l(S,M){if(S===6*1)return M>>6>15?3:M>31?2:1;if(S===6*2)return M>15?3:2;if(S===6*3)return 3;throw new Error}for(var i=65533,d="",p=this.bitsNeeded,v=this.codePoint,h=0;h<o.length;h+=1){var b=o[h];p!==0&&(b<128||b>191||!a(v<<6|b&63,p-6,l(p,v)))&&(p=0,v=i,d+=String.fromCharCode(v)),p===0?(b>=0&&b<=127?(p=0,v=b):b>=192&&b<=223?(p=6*1,v=b&31):b>=224&&b<=239?(p=6*2,v=b&15):b>=240&&b<=247?(p=6*3,v=b&7):(p=0,v=i),p!==0&&!a(v,p,l(p,v))&&(p=0,v=i)):(p-=6,v=v<<6|b&63),p===0&&(v<=65535?d+=String.fromCharCode(v):(d+=String.fromCharCode(55296+(v-65535-1>>10)),d+=String.fromCharCode(56320+(v-65535-1&1023))))}return this.bitsNeeded=p,this.codePoint=v,d};var L=function(){try{return new k().decode(new R().encode("test"),{stream:!0})==="test"}catch(o){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+o)}return!1};(k==null||R==null||!L())&&(k=C);var O=function(){};function z(o){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=O,this.onload=O,this.onerror=O,this.onreadystatechange=O,this._contentType="",this._xhr=o,this._sendTimeout=0,this._abort=O}z.prototype.open=function(o,a){this._abort(!0);var l=this,i=this._xhr,d=1,p=0;this._abort=function(B){l._sendTimeout!==0&&(f(l._sendTimeout),l._sendTimeout=0),(d===1||d===2||d===3)&&(d=4,i.onload=O,i.onerror=O,i.onabort=O,i.onprogress=O,i.onreadystatechange=O,i.abort(),p!==0&&(f(p),p=0),B||(l.readyState=4,l.onabort(null),l.onreadystatechange())),d=0};var v=function(){if(d===1){var B=0,F="",re=void 0;if("contentType"in i)B=200,F="OK",re=i.contentType;else try{B=i.status,F=i.statusText,re=i.getResponseHeader("Content-Type")}catch(Be){B=0,F="",re=void 0}B!==0&&(d=2,l.readyState=2,l.status=B,l.statusText=F,l._contentType=re,l.onreadystatechange())}},h=function(){if(v(),d===2||d===3){d=3;var B="";try{B=i.responseText}catch(F){}l.readyState=3,l.responseText=B,l.onprogress()}},b=function(B,F){if((F==null||F.preventDefault==null)&&(F={preventDefault:O}),h(),d===1||d===2||d===3){if(d=4,p!==0&&(f(p),p=0),l.readyState=4,B==="load")l.onload(F);else if(B==="error")l.onerror(F);else if(B==="abort")l.onabort(F);else throw new TypeError;l.onreadystatechange()}},S=function(B){i!=null&&(i.readyState===4?(!("onload"in i)||!("onerror"in i)||!("onabort"in i))&&b(i.responseText===""?"error":"load",B):i.readyState===3?"onprogress"in i||h():i.readyState===2&&v())},M=function(){p=s(function(){M()},500),i.readyState===3&&h()};"onload"in i&&(i.onload=function(B){b("load",B)}),"onerror"in i&&(i.onerror=function(B){b("error",B)}),"onabort"in i&&(i.onabort=function(B){b("abort",B)}),"onprogress"in i&&(i.onprogress=h),"onreadystatechange"in i&&(i.onreadystatechange=function(B){S(B)}),("contentType"in i||!("ontimeout"in u.prototype))&&(a+=(a.indexOf("?")===-1?"?":"&")+"padding=true"),i.open(o,a,!0),"readyState"in i&&(p=s(function(){M()},0))},z.prototype.abort=function(){this._abort(!1)},z.prototype.getResponseHeader=function(o){return this._contentType},z.prototype.setRequestHeader=function(o,a){var l=this._xhr;"setRequestHeader"in l&&l.setRequestHeader(o,a)},z.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},z.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&w!=null&&w.readyState!=null&&w.readyState!=="complete"){var o=this;o._sendTimeout=s(function(){o._sendTimeout=0,o.send()},4);return}var a=this._xhr;"withCredentials"in a&&(a.withCredentials=this.withCredentials);try{a.send(void 0)}catch(l){throw l}};function K(o){return o.replace(/[A-Z]/g,function(a){return String.fromCharCode(a.charCodeAt(0)+32)})}function ne(o){for(var a=Object.create(null),l=o.split(`\r
|
|
6
|
+
`),i=0;i<l.length;i+=1){var d=l[i],p=d.split(": "),v=p.shift(),h=p.join(": ");a[K(v)]=h}this._map=a}ne.prototype.get=function(o){return this._map[K(o)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function U(){}U.prototype.open=function(o,a,l,i,d,p,v){o.open("GET",d);var h=0;o.onprogress=function(){var S=o.responseText,M=S.slice(h);h+=M.length,l(M)},o.onerror=function(S){S.preventDefault(),i(new Error("NetworkError"))},o.onload=function(){i(null)},o.onabort=function(){i(null)},o.onreadystatechange=function(){if(o.readyState===u.HEADERS_RECEIVED){var S=o.status,M=o.statusText,B=o.getResponseHeader("Content-Type"),F=o.getAllResponseHeaders();a(S,M,B,new ne(F))}},o.withCredentials=p;for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&o.setRequestHeader(b,v[b]);return o.send(),o};function x(o){this._headers=o}x.prototype.get=function(o){return this._headers.get(o)};function _(){}_.prototype.open=function(o,a,l,i,d,p,v){var h=null,b=new I,S=b.signal,M=new k;return D(d,{headers:v,credentials:p?"include":"same-origin",signal:S,cache:"no-store"}).then(function(B){return h=B.body.getReader(),a(B.status,B.statusText,B.headers.get("Content-Type"),new x(B.headers)),new A(function(F,re){var Be=function(){h.read().then(function(Y){if(Y.done)F(void 0);else{var X=M.decode(Y.value,{stream:!0});l(X),Be()}}).catch(function(Y){re(Y)})};Be()})}).catch(function(B){if(B.name!=="AbortError")return B}).then(function(B){i(B)}),{abort:function(){h!=null&&h.cancel(),b.abort()}}};function N(){this._listeners=Object.create(null)}function c(o){s(function(){throw o},0)}N.prototype.dispatchEvent=function(o){o.target=this;var a=this._listeners[o.type];if(a!=null)for(var l=a.length,i=0;i<l;i+=1){var d=a[i];try{typeof d.handleEvent=="function"?d.handleEvent(o):d.call(this,o)}catch(p){c(p)}}},N.prototype.addEventListener=function(o,a){o=String(o);var l=this._listeners,i=l[o];i==null&&(i=[],l[o]=i);for(var d=!1,p=0;p<i.length;p+=1)i[p]===a&&(d=!0);d||i.push(a)},N.prototype.removeEventListener=function(o,a){o=String(o);var l=this._listeners,i=l[o];if(i!=null){for(var d=[],p=0;p<i.length;p+=1)i[p]!==a&&d.push(i[p]);d.length===0?delete l[o]:l[o]=d}};function P(o){this.type=o,this.target=void 0}function Ce(o,a){P.call(this,o),this.data=a.data,this.lastEventId=a.lastEventId}Ce.prototype=Object.create(P.prototype);function ae(o,a){P.call(this,o),this.status=a.status,this.statusText=a.statusText,this.headers=a.headers}ae.prototype=Object.create(P.prototype);function ye(o,a){P.call(this,o),this.error=a.error}ye.prototype=Object.create(P.prototype);var ve=-1,ee=0,ce=1,oe=2,pe=-1,te=0,ue=1,we=2,Ee=3,Se=/^text\/event\-stream(;.*)?$/i,Me=1e3,De=18e6,he=function(o,a){var l=o==null?a:parseInt(o,10);return l!==l&&(l=a),be(l)},be=function(o){return Math.min(Math.max(o,Me),De)},de=function(o,a,l){try{typeof a=="function"&&a.call(o,l)}catch(i){c(i)}};function W(o,a){N.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,ke(this,o,a)}function Le(){return u!=null&&"withCredentials"in u.prototype||g==null?new u:new g}var Oe=D!=null&&E!=null&&"body"in E.prototype;function ke(o,a,l){a=String(a);var i=!!l.withCredentials,d=l.lastEventIdQueryParameterName||"lastEventId",p=be(1e3),v=he(l.heartbeatTimeout,45e3),h="",b=p,S=!1,M=0,B=l.headers||{},F=l.Transport,re=Oe&&F==null?void 0:new z(F!=null?new F:Le()),Be=F!=null&&typeof F!="string"?new F:re==null?new _:new U,Y=void 0,X=0,Z=ve,me="",Ae="",ie="",Re="",G=te,Fe=0,fe=0,tt=function(j,V,J,Q){if(Z===ee)if(j===200&&J!=null&&Se.test(J)){Z=ce,S=Date.now(),b=p,o.readyState=ce;var q=new ae("open",{status:j,statusText:V,headers:Q});o.dispatchEvent(q),de(o,o.onopen,q)}else{var H="";j!==200?(V&&(V=V.replace(/\s+/g," ")),H="EventSource's response has a status "+j+" "+V+" that is not 200. Aborting the connection."):H="EventSource's response has a Content-Type specifying an unsupported type: "+(J==null?"-":J.replace(/\s+/g," "))+". Aborting the connection.",Ne();var q=new ae("error",{status:j,statusText:V,headers:Q});o.dispatchEvent(q),de(o,o.onerror,q),console.error(H)}},nt=function(j){if(Z===ce){for(var V=-1,J=0;J<j.length;J+=1){var Q=j.charCodeAt(J);(Q===10||Q===13)&&(V=J)}var q=(V!==-1?Re:"")+j.slice(0,V+1);Re=(V===-1?Re:"")+j.slice(V+1),j!==""&&(S=Date.now(),M+=j.length);for(var H=0;H<q.length;H+=1){var Q=q.charCodeAt(H);if(G===pe&&Q===10)G=te;else if(G===pe&&(G=te),Q===13||Q===10){if(G!==te){G===ue&&(fe=H+1);var le=q.slice(Fe,fe-1),se=q.slice(fe+(fe<H&&q.charCodeAt(fe)===32?1:0),H);le==="data"?(me+=`
|
|
7
|
+
`,me+=se):le==="id"?Ae=se:le==="event"?ie=se:le==="retry"?(p=he(se,p),b=p):le==="heartbeatTimeout"&&(v=he(se,v),X!==0&&(f(X),X=s(function(){Te()},v)))}if(G===te){if(me!==""){h=Ae,ie===""&&(ie="message");var ge=new Ce(ie,{data:me.slice(1),lastEventId:Ae});if(o.dispatchEvent(ge),ie==="open"?de(o,o.onopen,ge):ie==="message"?de(o,o.onmessage,ge):ie==="error"&&de(o,o.onerror,ge),Z===oe)return}me="",ie=""}G=Q===13?pe:te}else G===te&&(Fe=H,G=ue),G===ue?Q===58&&(fe=H+1,G=we):G===we&&(G=Ee)}}},je=function(j){if(Z===ce||Z===ee){Z=ve,X!==0&&(f(X),X=0),X=s(function(){Te()},b),b=be(Math.min(p*16,b*2)),o.readyState=ee;var V=new ye("error",{error:j});o.dispatchEvent(V),de(o,o.onerror,V),j!=null&&console.error(j)}},Ne=function(){Z=oe,Y!=null&&(Y.abort(),Y=void 0),X!==0&&(f(X),X=0),o.readyState=oe},Te=function(){if(X=0,Z!==ve){if(!S&&Y!=null)je(new Error("No activity within "+v+" milliseconds. "+(Z===ee?"No response received.":M+" chars received.")+" Reconnecting.")),Y!=null&&(Y.abort(),Y=void 0);else{var j=Math.max((S||Date.now())+v-Date.now(),1);S=!1,X=s(function(){Te()},j)}return}S=!1,M=0,X=s(function(){Te()},v),Z=ee,me="",ie="",Ae=h,Re="",Fe=0,fe=0,G=te;var V=a;if(a.slice(0,5)!=="data:"&&a.slice(0,5)!=="blob:"&&h!==""){var J=a.indexOf("?");V=J===-1?a:a.slice(0,J+1)+a.slice(J+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(se,ge){return ge===d?"":se}),V+=(a.indexOf("?")===-1?"?":"&")+d+"="+encodeURIComponent(h)}var Q=o.withCredentials,q={};q.Accept="text/event-stream";var H=o.headers;if(H!=null)for(var le in H)Object.prototype.hasOwnProperty.call(H,le)&&(q[le]=H[le]);try{Y=Be.open(re,tt,nt,je,V,Q,q)}catch(se){throw Ne(),se}};o.url=a,o.readyState=ee,o.withCredentials=i,o.headers=B,o._close=Ne,Te()}W.prototype=Object.create(N.prototype),W.prototype.CONNECTING=ee,W.prototype.OPEN=ce,W.prototype.CLOSED=oe,W.prototype.close=function(){this._close()},W.CONNECTING=ee,W.OPEN=ce,W.CLOSED=oe,W.prototype.withCredentials=void 0;var _e=y;u!=null&&(y==null||!("withCredentials"in y.prototype))&&(_e=W),function(o){{var a=o(t);a!==void 0&&(r.exports=a)}}(function(o){o.EventSourcePolyfill=W,o.NativeEventSource=y,o.EventSource=_e})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(Ie,Ie.exports);var ct=Ie.exports;/*!
|
|
8
|
+
* currency.js - v2.0.4
|
|
9
|
+
* http://scurker.github.io/currency.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2021 Jason Wilson
|
|
12
|
+
* Released under MIT license
|
|
13
|
+
*/var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(t){return Math.round(t)},Ve=function(t){return Math.pow(10,t)},ut=function(t,n){return $e(t/n)*n},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function $(r,t){var n=this;if(!(n instanceof $))return new $(r,t);var s=Object.assign({},dt,t),f=Ve(s.precision),u=xe(r,s);n.intValue=u,n.value=u/f,s.increment=s.increment||1/f,s.useVedic?s.groups=pt:s.groups=ft,this.s=s,this.p=f}function xe(r,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=0,f=t.decimal,u=t.errorOnInvalid,g=t.precision,m=t.fromCents,y=Ve(g),w=typeof r=="number",A=r instanceof $;if(A&&m)return r.intValue;if(w||A)s=A?r.value:r;else if(typeof r=="string"){var D=new RegExp("[^-\\d"+f+"]","g"),E=new RegExp("\\"+f,"g");s=r.replace(/\((.*)\)/,"-$1").replace(D,"").replace(E,"."),s=s||0}else{if(u)throw Error("Invalid Input");s=0}return m||(s*=y,s=s.toFixed(4)),n?$e(s):s}function ht(r,t){var n=t.pattern,s=t.negativePattern,f=t.symbol,u=t.separator,g=t.decimal,m=t.groups,y=(""+r).replace(/^-/,"").split("."),w=y[0],A=y[1];return(r.value>=0?n:s).replace("!",f).replace("#",w.replace(m,"$1"+u)+(A?g+A:""))}$.prototype={add:function(t){var n=this.intValue,s=this.s,f=this.p;return $((n+=xe(t,s))/(s.fromCents?1:f),s)},subtract:function(t){var n=this.intValue,s=this.s,f=this.p;return $((n-=xe(t,s))/(s.fromCents?1:f),s)},multiply:function(t){var n=this.intValue,s=this.s;return $((n*=t)/(s.fromCents?1:Ve(s.precision)),s)},divide:function(t){var n=this.intValue,s=this.s;return $(n/=xe(t,s,!1),s)},distribute:function(t){for(var n=this.intValue,s=this.p,f=this.s,u=[],g=Math[n>=0?"floor":"ceil"](n/t),m=Math.abs(n-g*t),y=f.fromCents?1:s;t!==0;t--){var w=$(g/y,f);m-- >0&&(w=w[n>=0?"add":"subtract"](1/y)),u.push(w)}return u},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,n=this.p;return~~(t%n)},format:function(t){var n=this.s;return typeof t=="function"?t(this,n):n.format(this,Object.assign({},n,t))},toString:function(){var t=this.intValue,n=this.p,s=this.s;return ut(t/n,s.increment).toFixed(s.precision)},toJSON:function(){return this.value}};function mt(r){e.append_styles(r,"svelte-13i7jhd",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(-emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(-emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(-emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(-emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}')}function Ke(r,t,n){const s=r.slice();return s[50]=t[n],s}function We(r,t,n){const s=r.slice();return s[53]=t[n],s}function gt(r){let t,n,s=(r[1].Total?r[8](r[1].Total[0].amount):"0")+"",f,u,g,m,y,w,A,D,E,k,R,I,T=r[4]&&Ye(r);return{c(){t=e.element("div"),n=e.element("p"),f=e.text(s),u=e.space(),g=e.text(r[5]),m=e.space(),y=e.element("span"),w=e.svg_element("svg"),A=e.svg_element("path"),E=e.space(),T&&T.c(),k=e.empty(),e.attr(A,"id","arrow"),e.attr(A,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(A,"transform","translate(-274.511 -441.088)"),e.attr(A,"fill","#d1d1d1"),e.attr(w,"xmlns","http://www.w3.org/2000/svg"),e.attr(w,"width","14"),e.attr(w,"height","6.835"),e.attr(w,"viewBox","0 0 14 6.835"),e.attr(y,"class",D=r[3]?"TriangleActive":"TriangleInactive"),e.attr(t,"class","BalanceValue")},m(C,L){e.insert(C,t,L),e.append(t,n),e.append(n,f),e.append(n,u),e.append(n,g),e.append(t,m),e.append(t,y),e.append(y,w),e.append(w,A),e.insert(C,E,L),T&&T.m(C,L),e.insert(C,k,L),R||(I=e.listen(t,"click",r[24]),R=!0)},p(C,L){L[0]&2&&s!==(s=(C[1].Total?C[8](C[1].Total[0].amount):"0")+"")&&e.set_data(f,s),L[0]&32&&e.set_data(g,C[5]),L[0]&8&&D!==(D=C[3]?"TriangleActive":"TriangleInactive")&&e.attr(y,"class",D),C[4]?T?T.p(C,L):(T=Ye(C),T.c(),T.m(k.parentNode,k)):T&&(T.d(1),T=null)},d(C){C&&(e.detach(t),e.detach(E),e.detach(k)),T&&T.d(C),R=!1,I()}}}function yt(r){let t,n=r[6]("Loading")+"",s;return{c(){t=e.element("p"),s=e.text(n),e.attr(t,"class","Loading")},m(f,u){e.insert(f,t,u),e.append(t,s)},p(f,u){u[0]&64&&n!==(n=f[6]("Loading")+"")&&e.set_data(s,n)},d(f){f&&e.detach(t)}}}function Ye(r){let t,n,s,f,u,g,m,y,w=r[6]("Title")+"",A,D,E,k,R,I,T=r[6]("DepositButton")+"",C,L,O,z,K,ne,U=e.ensure_array_like(Object.keys(r[1])),x=[];for(let _=0;_<U.length;_+=1)x[_]=Qe(Ke(r,U,_));return{c(){t=e.element("div"),n=e.element("div"),f=e.space(),u=e.element("div"),g=e.element("div"),m=e.element("div"),y=e.element("p"),A=e.text(w),D=e.space(),E=e.element("div");for(let _=0;_<x.length;_+=1)x[_].c();k=e.space(),R=e.element("div"),I=e.element("button"),C=e.text(T),e.attr(n,"class",s="BalanceModalClose "+(r[3]?"Open":"")),e.attr(y,"class","BalanceModalTitle"),e.attr(m,"class","BalanceModalHeader"),e.attr(E,"class","BalanceModalBody"),e.attr(I,"class","BalanceModalAction"),e.attr(R,"class","BalanceModalFooter"),e.attr(g,"class",L="ModalContent "+(r[3]?"Open":"")),e.attr(u,"class",O="BalanceModal "+(r[3]?"Open":"")),e.attr(t,"class",z="BalanceModalWrapper "+(r[3]?"Open":""))},m(_,N){e.insert(_,t,N),e.append(t,n),e.append(t,f),e.append(t,u),e.append(u,g),e.append(g,m),e.append(m,y),e.append(y,A),e.append(g,D),e.append(g,E);for(let c=0;c<x.length;c+=1)x[c]&&x[c].m(E,null);e.append(g,k),e.append(g,R),e.append(R,I),e.append(I,C),K||(ne=[e.listen(n,"click",r[25]),e.listen(I,"click",r[26])],K=!0)},p(_,N){if(N[0]&8&&s!==(s="BalanceModalClose "+(_[3]?"Open":""))&&e.attr(n,"class",s),N[0]&64&&w!==(w=_[6]("Title")+"")&&e.set_data(A,w),N[0]&354){U=e.ensure_array_like(Object.keys(_[1]));let c;for(c=0;c<U.length;c+=1){const P=Ke(_,U,c);x[c]?x[c].p(P,N):(x[c]=Qe(P),x[c].c(),x[c].m(E,null))}for(;c<x.length;c+=1)x[c].d(1);x.length=U.length}N[0]&64&&T!==(T=_[6]("DepositButton")+"")&&e.set_data(C,T),N[0]&8&&L!==(L="ModalContent "+(_[3]?"Open":""))&&e.attr(g,"class",L),N[0]&8&&O!==(O="BalanceModal "+(_[3]?"Open":""))&&e.attr(u,"class",O),N[0]&8&&z!==(z="BalanceModalWrapper "+(_[3]?"Open":""))&&e.attr(t,"class",z)},d(_){_&&e.detach(t),e.destroy_each(x,_),K=!1,e.run_all(ne)}}}function Je(r){let t,n,s=r[6](r[50])+"",f,u,g=(r[53].productType?r[6](r[53].productType):"")+"",m,y,w,A,D=(r[53].amount?r[8](r[53].amount):"0")+"",E,k,R,I;return{c(){t=e.element("div"),n=e.element("p"),f=e.text(s),u=e.space(),m=e.text(g),y=e.space(),w=e.element("p"),A=e.element("span"),E=e.text(D),k=e.space(),R=e.element("span"),I=e.text(r[5]),e.attr(n,"class","BalanceModalText"),e.attr(A,"class","BalanceModalAmount"),e.attr(R,"class","BalanceModalCurrency"),e.attr(w,"class","BalanceModalValue"),e.attr(t,"class","BalanceModalRowLine")},m(T,C){e.insert(T,t,C),e.append(t,n),e.append(n,f),e.append(n,u),e.append(n,m),e.append(t,y),e.append(t,w),e.append(w,A),e.append(A,E),e.append(w,k),e.append(w,R),e.append(R,I)},p(T,C){C[0]&66&&s!==(s=T[6](T[50])+"")&&e.set_data(f,s),C[0]&66&&g!==(g=(T[53].productType?T[6](T[53].productType):"")+"")&&e.set_data(m,g),C[0]&2&&D!==(D=(T[53].amount?T[8](T[53].amount):"0")+"")&&e.set_data(E,D),C[0]&32&&e.set_data(I,T[5])},d(T){T&&e.detach(t)}}}function Qe(r){let t,n,s=e.ensure_array_like(r[1][r[50]]),f=[];for(let u=0;u<s.length;u+=1)f[u]=Je(We(r,s,u));return{c(){t=e.element("div");for(let u=0;u<f.length;u+=1)f[u].c();n=e.space(),e.attr(t,"class","BalanceModalRowBoth")},m(u,g){e.insert(u,t,g);for(let m=0;m<f.length;m+=1)f[m]&&f[m].m(t,null);e.append(t,n)},p(u,g){if(g[0]&354){s=e.ensure_array_like(u[1][u[50]]);let m;for(m=0;m<s.length;m+=1){const y=We(u,s,m);f[m]?f[m].p(y,g):(f[m]=Je(y),f[m].c(),f[m].m(t,n))}for(;m<f.length;m+=1)f[m].d(1);f.length=s.length}},d(u){u&&e.detach(t),e.destroy_each(f,u)}}}function Ze(r){let t,n,s;return{c(){t=e.element("div"),e.attr(t,"class","ShowBalanceModalOverlay")},m(f,u){e.insert(f,t,u),n||(s=e.listen(t,"click",r[27]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,s()}}}function vt(r){let t,n,s;function f(y,w){return y[2]?yt:gt}let u=f(r),g=u(r),m=r[4]&&Ze(r);return{c(){t=e.element("div"),n=e.element("div"),g.c(),s=e.space(),m&&m.c(),e.attr(n,"class","ShowBalance")},m(y,w){e.insert(y,t,w),e.append(t,n),g.m(n,null),e.append(t,s),m&&m.m(t,null),r[28](t)},p(y,w){u===(u=f(y))&&g?g.p(y,w):(g.d(1),g=u(y),g&&(g.c(),g.m(n,null))),y[4]?m?m.p(y,w):(m=Ze(y),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},i:e.noop,o:e.noop,d(y){y&&e.detach(t),g.d(),m&&m.d(),r[28](null)}}}function wt(r,t,n){let s;e.component_subscribe(r,e.$format,a=>n(6,s=a));let{userid:f=""}=t,{session:u=""}=t,{endpoint:g=""}=t,{lang:m="en"}=t,{clientstyling:y=""}=t,{clientstylingurl:w=""}=t,{translationurl:A=""}=t,{customlocaleidentifier:D=""}=t,{gmversion:E="gm16"}=t,{displaybalanceoption:k="All"}=t,{totalcalculationmode:R="totalCashAmount"}=t,{currencyseparator:I=""}=t,{currencydecimal:T=""}=t,{currencyprecision:C=""}=t,L,O,z,K,ne=!1,U="",x=[],_,N=!1;const c={},P=["totalCashAmount","totalRealAmount"],Ce=()=>{fetch(A).then(a=>a.json()).then(a=>Object.keys(a).forEach(l=>Ge(l,a[l]))).catch(a=>console.log(a))};Object.keys(qe).forEach(a=>Ge(a,qe[a]));const ae=a=>{switch(a){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),n(4,ne=!0),setTimeout(()=>n(3,z=!0),150);break;case"closebalance":n(3,z=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{n(4,ne=!1)},150);break}},ye=()=>{if(D.includes(m))return D},ve=a=>D?new Intl.NumberFormat(ye(),{useGrouping:!0}).format(a):I&&T?$(a,{separator:I,decimal:T,symbol:"",precision:parseInt(C||"2",10)}).format():$(a,{separator:".",decimal:",",symbol:"",precision:parseInt(C||"2",10)}).format(),ee=()=>Xe(this,null,function*(){var l,i,d;n(2,L=!0);const a=new URL(`${g}/v1/player/${f}/account`);try{const p=yield fetch(a,{method:"GET",headers:{"X-SessionID":u}}),v=yield p.json();if(p.ok)window.postMessage({type:"BalancedFetched"},window.location.href),x=v.items,n(5,U=(l=x.find(h=>h.displayName==="Casino"))==null?void 0:l.currency),n(1,c.Total=[{amount:v.totalAmount[U]}],c),n(1,c.Real=[{amount:(i=x.find(h=>h.displayName==="Casino"))==null?void 0:i.balanceAmount}],c),n(1,c.Bonus=[{amount:(d=x.find(h=>h.displayName==="UBS"))==null?void 0:d.balanceAmount}],c);else throw new Error("Failed to fetch balance data !")}catch(p){console.log("Balance error: ",p)}finally{n(2,L=!1)}}),ce=()=>{n(2,L=!0);const a=new URL(`${g}/v2/player/${f}/balance`),l=new Headers;l.append("X-SessionID",u),fetch(a,{method:"GET",headers:l}).then(d=>d.json()).then(d=>{d[R]||n(10,R=P[0]);const p=d.items.find(h=>h.type==="Real"&&h.walletAccountType==="Ordinary");if(n(5,U=p.currency),N=!!p.productType,n(1,c.Total=[{amount:0}],c),n(1,c.Real=[],c),n(1,c.Bonus=[],c),n(1,c.Credit=[],c),!N){_={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},n(1,c.Total[0].amount=d[R][U],c);for(const h of d.items)switch(h.type){case"Bonus":c.Bonus.length===0?c.Bonus.push({amount:h.amount}):n(1,c.Bonus[0].amount+=h.amount,c);break;case"Real":if(h.creditLine&&c.Credit.length===0&&c.Credit.push({amount:h.creditLine}),R==="totalRealAmount")continue;c.Real.length===0?c.Real.push({amount:h.amount}):n(1,c.Real[0].amount+=h.amount,c);break}for(const[h,b]of Object.entries(c))b.length<1&&delete c[h];n(2,L=!1);return}_={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let v=d.items;k&&k!=="All"&&(v=d.items.filter(h=>h.productType===k));for(const h of v){let b;switch(h.type){case"Bonus":b=c.Bonus.findIndex(S=>S.productType===h.productType),b>0?n(1,c.Bonus[b].amount+=h.amount,c):c.Bonus.push({amount:h.amount,productType:h.productType});break;case"Real":h.creditLine&&c.Credit.push({amount:h.creditLine,productType:h.productType}),b=c.Real.findIndex(S=>S.productType===h.productType),b>0?n(1,c.Real[b].amount+=h.amount,c):c.Real.push({amount:h.amount,productType:h.productType});break}}we();for(const[h,b]of Object.entries(c))b.length<1&&delete c[h];n(2,L=!1)}).catch(d=>{throw n(2,L=!1),new Error("Failed to fetch balance data !")})},oe=()=>{if(K&&K.close(),u.length<1)return;let a,l;switch(E){case"gm16":a=new URL(`${g}/v2/player/${f}/information/updates`),l=p=>Ee(p);break;case"gmcore":a=new URL(`${g}/v1/player/${f}/balance/updates`),l=p=>te(p);break}const i={accept:"text/event-stream","X-SessionId":u},d=new ct.EventSourcePolyfill(a,{headers:i});K=d,d.addEventListener("message",l)},pe=a=>{let l;try{l=JSON.parse(a)}catch(i){console.log("Balance stream failed: ",i);return}return l},te=a=>{var p,v;const l=pe(a.data);if(!l){oe();return}let i="0";const d=l.balanceChange;x=x.map(h=>(d&&d[h.id]&&(h=Pe(Ue({},h),{balanceAmount:d[h.id].afterAmount})),i=(parseFloat(h==null?void 0:h.balanceAmount)+parseFloat(i)).toString(),h)),n(1,c.Real=[{amount:(p=x[0])==null?void 0:p.balanceAmount}],c),n(1,c.Bonus=[{amount:(v=x[1])==null?void 0:v.balanceAmount}],c),n(1,c.Total=[{amount:Number(i)}],c)},ue=(a,l,i)=>{let d=null;switch(i.walletAccountType){case"Ordinary":i.afterAmount!==i.affectedAmount&&(l.lastOrdinaryAfterAmount=i.afterAmount,l.showCreditLineAfterAmount||(d=i.afterAmount));break;case"CreditLine":i.afterAmount!==0?(d=i.afterAmount,l.showCreditLineAfterAmount=!0):(d=l.lastOrdinaryAfterAmount,l.showCreditLineAfterAmount=!1);break;default:d=i.afterAmount}return d===null?a:d},we=()=>{switch(R){case"totalCashAmount":let a=0;for(const i of["Real","Bonus"])for(const d of c[i])a+=Math.max(d.amount,0);n(1,c.Total[0].amount=a,c);break;case"totalRealAmount":if(!N)return;let l=0;for(const i of c.Real)l+=i.amount;n(1,c.Total[0].amount=l,c)}},Ee=a=>{const l=pe(a.data);if(!l){oe();return}if(l.type!=="BALANCE_UPDATE_V2")return;const i=l.body.balanceChange;for(const[d,p]of Object.entries(i))if(R==="totalRealAmount"&&d==="Real"&&!N&&n(1,c.Total[0].amount=ue(c.Total[0].amount,_,p),c),!!c[d])for(const v of c[d]){if(!N){v.amount=d==="Real"?ue(v.amount,_,p):p.afterAmount;continue}p.productType===v.productType&&(v.amount=d==="Real"?ue(v.amount,_[v.productType],p):p.afterAmount)}we()},Se=()=>{ae("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Me=()=>{P.includes(R)||(console.error(`Unsupported value ('${R}') for totalcalculationmode parameter. Only the following values are supported ${P}. Using default value ('${P[0]}').`),n(10,R=P[0]))},De=()=>{switch(st(m),Me(),E){case"gmcore":ee();break;case"gm16":ce();break;default:throw Error(`Invalid apiversion attribute: ${E}`)}},he=a=>a.data&&a.data.type==="LogoutSuccessfull"&&K.close(),be=()=>{const a=document.createElement("style");a.innerHTML=y,O.appendChild(a)},de=()=>{const a=new URL(w),l=document.createElement("style");fetch(a.href).then(i=>i.text()).then(i=>{l.innerHTML=i,setTimeout(()=>{O.appendChild(l)},1)})},W=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};e.onMount(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he),K&&K.close()}));const Le=()=>ae("balance"),Oe=()=>ae("closebalance"),ke=()=>Se(),_e=()=>ae("closeBalance");function o(a){e.binding_callbacks[a?"unshift":"push"](()=>{O=a,n(0,O)})}return r.$$set=a=>{"userid"in a&&n(11,f=a.userid),"session"in a&&n(12,u=a.session),"endpoint"in a&&n(13,g=a.endpoint),"lang"in a&&n(14,m=a.lang),"clientstyling"in a&&n(15,y=a.clientstyling),"clientstylingurl"in a&&n(16,w=a.clientstylingurl),"translationurl"in a&&n(17,A=a.translationurl),"customlocaleidentifier"in a&&n(18,D=a.customlocaleidentifier),"gmversion"in a&&n(19,E=a.gmversion),"displaybalanceoption"in a&&n(20,k=a.displaybalanceoption),"totalcalculationmode"in a&&n(10,R=a.totalcalculationmode),"currencyseparator"in a&&n(21,I=a.currencyseparator),"currencydecimal"in a&&n(22,T=a.currencydecimal),"currencyprecision"in a&&n(23,C=a.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&16384&&m&&ye(),r.$$.dirty[0]&1603584&&g&&f&&u&&m&&E&&k&&De(),r.$$.dirty[0]&538624&&g&&f&&u&&E&&oe(),r.$$.dirty[0]&32769&&y&&O&&be(),r.$$.dirty[0]&65537&&w&&O&&de(),r.$$.dirty[0]&131072&&A&&Ce(),r.$$.dirty[0]&2&&c.Total&&W()},[O,c,L,z,ne,U,s,ae,ve,Se,R,f,u,g,m,y,w,A,D,E,k,I,T,C,Le,Oe,ke,_e,o]}class et extends e.SvelteComponent{constructor(t){super(),e.init(this,t,wt,vt,e.safe_not_equal,{userid:11,session:12,endpoint:13,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17,customlocaleidentifier:18,gmversion:19,displaybalanceoption:20,totalcalculationmode:10,currencyseparator:21,currencydecimal:22,currencyprecision:23},mt,[-1,-1])}get userid(){return this.$$.ctx[11]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[12]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get customlocaleidentifier(){return this.$$.ctx[18]}set customlocaleidentifier(t){this.$$set({customlocaleidentifier:t}),e.flush()}get gmversion(){return this.$$.ctx[19]}set gmversion(t){this.$$set({gmversion:t}),e.flush()}get displaybalanceoption(){return this.$$.ctx[20]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),e.flush()}get totalcalculationmode(){return this.$$.ctx[10]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),e.flush()}get currencyseparator(){return this.$$.ctx[21]}set currencyseparator(t){this.$$set({currencyseparator:t}),e.flush()}get currencydecimal(){return this.$$.ctx[22]}set currencydecimal(t){this.$$set({currencydecimal:t}),e.flush()}get currencyprecision(){return this.$$.ctx[23]}set currencyprecision(t){this.$$set({currencyprecision:t}),e.flush()}}e.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-BZ67WYAG.cjs");function x(n,t){e.addMessages(n,t)}function A(n){e.$locale.set(n)}const L={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function W(n){e.append_styles(n,"svelte-lvm6lo","button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}")}function j(n){let t,a,l,r,c,m,d,h,f,o,s=n[4]("titleDeposit")+"",p,w,b;return{c(){t=e.element("div"),a=e.svg_element("svg"),l=e.svg_element("defs"),r=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),d=e.svg_element("g"),h=e.svg_element("path"),f=e.space(),o=e.element("h2"),p=e.text(s),e.attr(h,"class","aaa"),e.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(h,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(o,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(u,D){e.insert(u,t,D),e.append(t,a),e.append(a,l),e.append(l,r),e.append(r,c),e.append(a,m),e.append(m,d),e.append(d,h),e.append(t,f),e.append(t,o),e.append(o,p),w||(b=e.listen(t,"click",n[17]),w=!0)},p(u,D){D&16&&s!==(s=u[4]("titleDeposit")+"")&&e.set_data(p,s)},d(u){u&&e.detach(t),w=!1,b()}}}function z(n){let t,a,l;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,l=n[3])||e.attr(a,"src",l),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&8&&!e.src_url_equal(a.src,l=r[3])&&e.attr(a,"src",l)},d(r){r&&e.detach(t)}}}function G(n){let t,a=n[4]("loading")+"",l;return{c(){t=e.element("p"),l=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,l)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function N(n){let t,a,l,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&j(n);function h(s,p){return s[1]?G:z}let f=h(n),o=f(n);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),l=e.element("h2"),c=e.text(r),m=e.space(),o.c(),e.attr(l,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,p){e.insert(s,t,p),d&&d.m(t,null),e.append(t,a),e.append(t,l),e.append(l,c),e.append(t,m),o.m(t,null),n[18](t)},p(s,[p]){s[5]&&d.p(s,p),p&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=h(s))&&o?o.p(s,p):(o.d(1),o=f(s),o&&(o.c(),o.m(t,null))),p&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),d&&d.d(),o.d(),n[18](null)}}}function q(n,t,a){let l,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:h="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:o=""}=t,{clientstylingurl:s=""}=t,{translationurl:p=""}=t,{playercurrency:w=""}=t,{shortcashierenabled:b="false"}=t,u,D=window.navigator.userAgent,v=e.getDevice(D)!=="PC",M=!0,C,_=0,k="";const R=()=>{fetch(p).then(y=>y.json()).then(y=>{Object.keys(y).forEach(g=>{x(g,y[g])})}).catch(y=>{console.log(y)})};Object.keys(L).forEach(i=>{x(i,L[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},T=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,w=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,C=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},B=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",h),l&&i.searchParams.append("isShortCashier",b),f)switch(w){case"USD":_=.4;break;case"CDF":_=1e3;break}let y={method:"POST",headers:{"X-SessionId":m,currency:w||"EUR",amount:_,cashierMode:"Default",IsShortCashier:b,accept:"application/json"}};fetch(i.href,y).then(g=>g.json()).then(g=>{a(1,M=!1),a(3,k=g.CashierUrl)},g=>{console.error(g)})},H=()=>{A(h)},P=()=>{let i=document.createElement("style");i.innerHTML=o,u.appendChild(i)},U=()=>{let i=new URL(s),y=document.createElement("style");fetch(i.href).then(g=>g.text()).then(g=>{y.innerHTML=g,setTimeout(()=>{u.appendChild(y)},1)})};e.onMount(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)}));const F=()=>S();function I(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,a(0,u)})}return n.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,d=i.playerid),"lang"in i&&a(11,h=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,o=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,p=i.translationurl),"playercurrency"in i&&a(7,w=i.playercurrency),"shortcashierenabled"in i&&a(16,b=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&h&&H(),n.$$.dirty&65536&&(l=b.toLocaleLowerCase()==="true"),n.$$.dirty&16385&&s&&u&&U(),n.$$.dirty&8193&&o&&u&&P(),n.$$.dirty&32768&&p&&R(),n.$$.dirty&69504&&m&&d&&c&&w&&h&&b&&B()},[u,M,C,k,r,v,S,w,c,m,d,h,f,o,s,p,b,F,I]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,q,N,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},W)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(t){this.$$set({playercurrency:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(E,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},playercurrency:{},shortcashierenabled:{}},[],[],!0);exports.default=E;
|