@everymatrix/casino-tournaments-page-controller 1.94.19 → 1.94.21
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/{CasinoTournamentsDetails-C93ESoLW.js → CasinoTournamentsDetails-BR4Lw1_e.js} +20 -20
- package/components/{CasinoTournamentsDetails-B3eezSw9.js → CasinoTournamentsDetails-PFnJ_OdE.js} +20 -20
- package/components/{CasinoTournamentsPageController-BEoxppZY.js → CasinoTournamentsPageController-BaLiSneC.js} +50 -50
- package/components/{CasinoTournamentsPageController-BkeYysYH.js → CasinoTournamentsPageController-DpQc24NO.js} +50 -50
- package/components/{CasinoTournamentsRank-BwROkRzo.js → CasinoTournamentsRank-Cnt0bXtG.js} +37 -37
- package/components/{CasinoTournamentsRank-DlNqXtgb.js → CasinoTournamentsRank-DNYbLNzE.js} +42 -42
- package/components/{CasinoTournamentsTab-C4v_nyLi.js → CasinoTournamentsTab-Cd3M_jtS.js} +27 -27
- package/components/{CasinoTournamentsTab-Bh1ztbzS.js → CasinoTournamentsTab-Ce6HOaFR.js} +35 -35
- package/components/{CasinoTournamentsTable-BZEGLZKU.js → CasinoTournamentsTable-BZcvhH96.js} +22 -22
- package/components/{CasinoTournamentsTable-BgTfrZ2t.js → CasinoTournamentsTable-CxR42Ea4.js} +22 -22
- package/components/{CasinoTournamentsThumbnail-yHEAdNZf.js → CasinoTournamentsThumbnail-AMu-mAA5.js} +24 -24
- package/components/{CasinoTournamentsThumbnail-D99txAC8.js → CasinoTournamentsThumbnail-APr-Vv-a.js} +29 -29
- package/components/{CasinoTournamentsThumbnailController-Cl115kQZ.js → CasinoTournamentsThumbnailController-BJw8XdmQ.js} +40 -40
- package/components/{CasinoTournamentsThumbnailController-DifMHtOP.js → CasinoTournamentsThumbnailController-C8OHBkEV.js} +41 -41
- package/components/{CasinoTournamentsThumbnailDuration-abUbEVWP.js → CasinoTournamentsThumbnailDuration-Csc9NvUB.js} +28 -28
- package/components/{CasinoTournamentsThumbnailDuration-wvtd8mff.js → CasinoTournamentsThumbnailDuration-DBcYG30e.js} +33 -33
- package/components/{CasinoTournamentsThumbnailGames-B2GsgYmM.js → CasinoTournamentsThumbnailGames-Bo0RfRKf.js} +31 -31
- package/components/{CasinoTournamentsThumbnailGames-Coq0eSw2.js → CasinoTournamentsThumbnailGames-DEnpWA5U.js} +51 -51
- package/components/{CasinoTournamentsThumbnailGamesSlider-DM0StDVK.js → CasinoTournamentsThumbnailGamesSlider-BGcSN7aa.js} +46 -46
- package/components/{CasinoTournamentsThumbnailGamesSlider-BHZ2ZM8D.js → CasinoTournamentsThumbnailGamesSlider-BlwqKAP6.js} +61 -61
- package/components/{CasinoTournamentsThumbnailPrizes-Dfm8hYbg.js → CasinoTournamentsThumbnailPrizes-BMfnYSZO.js} +78 -78
- package/components/{CasinoTournamentsThumbnailPrizes-CUmxyz9i.js → CasinoTournamentsThumbnailPrizes-BrzBc2fg.js} +100 -100
- package/components/{CasinoTournamentsThumbnailRule-TybIx7pC.js → CasinoTournamentsThumbnailRule-fwP9WVC9.js} +10 -10
- package/components/{CasinoTournamentsThumbnailRule-B----bW3.js → CasinoTournamentsThumbnailRule-iEMZ-j7T.js} +10 -10
- package/es2015/casino-tournaments-page-controller.js +1 -1
- package/esnext/casino-tournaments-page-controller.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as q, y as me, z as ce, S as ge, i as fe, s as de, f as I, a as pe, G as U, n as Q, d as S, H as le, j as o, b as A, e as m, g as w, h as M, B as he, k as be, K as _e, o as we, A as C, E as ve, l as F, m as H, r as R, t as W, q as V, D as ye, I as Y, u as Te, v as Ge, w as Ce, x as Pe, c as ke, F as Ee } from "./CasinoTournamentsPageController-BaLiSneC.js";
|
|
2
2
|
import "../stencil/ui-image-DyN7Fe9v.js";
|
|
3
3
|
function Le({ withLocale: a, translations: e }) {
|
|
4
4
|
q.subscribe((t) => {
|
|
@@ -22,7 +22,7 @@ const $ = {
|
|
|
22
22
|
noMoreGames: "No more games"
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function Be(a) {
|
|
26
26
|
pe(a, "svelte-h1f7fe", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .LoadingGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames .LoadingGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.TournamentsPaginationControlsArea{clear:both;margin-top:30px;display:flex;justify-content:center;width:100%}.TournamentsPaginationControlsArea.SinglePage{display:none}.TournamentsPaginationControls{background:var(--emw--color-green, transparent);width:60%;height:35px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px;cursor:pointer;width:190px}.TournamentsPaginationControls.Disabled{color:var(--emw--color-gray-100, #B5B5B5);border-color:var(--emw--color-gray-100, #B5B5B5);opacity:50%;cursor:default}.TournamentsPaginationControlsArea{justify-content:center;gap:30px}.TournamentsPaginationControlsArea .TournamentsPaginationControls{align-items:center}.TournamentsPaginationControlsArea .TournamentsPaginationControlsText{font-size:var(--emw--size-standard, 16px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}.MobileClass .GamesWrapper .GameList.items{max-height:calc(100vh - 350px);overflow-y:auto}");
|
|
27
27
|
}
|
|
28
28
|
function ee(a, e, t) {
|
|
@@ -37,7 +37,7 @@ function ae(a) {
|
|
|
37
37
|
let e, t;
|
|
38
38
|
return {
|
|
39
39
|
c() {
|
|
40
|
-
e = w("div"), t = w("casino-tournaments-tab"), C(t, "part", "TournamentGames"), C(t, "tabs", "casino,sports"), C(t, "defaulttab", "casino"), C(t, "tid",
|
|
40
|
+
e = w("div"), t = w("casino-tournaments-tab"), C(t, "part", "TournamentGames"), C(t, "tabs", "casino,sports"), C(t, "defaulttab", "casino"), C(t, "tid", K), C(
|
|
41
41
|
t,
|
|
42
42
|
"clientstyling",
|
|
43
43
|
/*clientstyling*/
|
|
@@ -83,7 +83,7 @@ function ae(a) {
|
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Me(a) {
|
|
87
87
|
let e, t = (
|
|
88
88
|
/*$_*/
|
|
89
89
|
a[13]("noGamesAvailable") + ""
|
|
@@ -196,14 +196,14 @@ function ne(a) {
|
|
|
196
196
|
), s, u, i, g, h, v, E, b, c;
|
|
197
197
|
return {
|
|
198
198
|
c() {
|
|
199
|
-
e = w("div"), t = w("span"), s = W(n), u =
|
|
199
|
+
e = w("div"), t = w("span"), s = W(n), u = M(), i = w("ui-image"), E = M(), o(t, "class", "PlayNowButton"), Y(i.src, g = /*item*/
|
|
200
200
|
a[32].thumbnail) || C(i, "src", g), C(i, "width", "132px"), C(i, "height", "100px"), C(i, "alt", h = /*item*/
|
|
201
201
|
a[32].name), C(i, "title", v = /*item*/
|
|
202
202
|
a[32].name), o(e, "class", "item"), o(e, "id", "g_" + /*idx*/
|
|
203
203
|
a[36]), o(e, "role", "button"), o(e, "tabindex", "0");
|
|
204
204
|
},
|
|
205
205
|
m(_, d) {
|
|
206
|
-
A(_, e, d), m(e, t), m(t, s), m(e, u), m(e, i), m(e, E), b || (c =
|
|
206
|
+
A(_, e, d), m(e, t), m(t, s), m(e, u), m(e, i), m(e, E), b || (c = H(e, "click", function() {
|
|
207
207
|
Te(
|
|
208
208
|
/*gameClicked*/
|
|
209
209
|
a[15](
|
|
@@ -239,28 +239,28 @@ function Fe(a) {
|
|
|
239
239
|
), v, E, b, c, _, d, P = (
|
|
240
240
|
/*$_*/
|
|
241
241
|
a[13]("next") + ""
|
|
242
|
-
), y, T, f, r, k, p,
|
|
242
|
+
), y, T, f, r, k, p, B, D, z, O;
|
|
243
243
|
return {
|
|
244
244
|
c() {
|
|
245
|
-
e = w("div"), t = w("button"), n = R("svg"), s = R("path"), i =
|
|
245
|
+
e = w("div"), t = w("button"), n = R("svg"), s = R("path"), i = M(), g = w("span"), v = W(h), c = M(), _ = w("button"), d = w("span"), y = W(P), T = M(), f = R("svg"), r = R("path"), o(s, "fill", u = /*hasPreviousPage*/
|
|
246
246
|
a[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), o(s, "class", "a"), o(s, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), o(s, "transform", "translate(19.246 -6.188) rotate(90)"), o(n, "xmlns", "http://www.w3.org/2000/svg"), o(n, "width", "8"), o(n, "height", "13.992"), o(n, "viewBox", "0 0 8 13.992"), o(g, "class", "TournamentsPaginationControlsText"), o(t, "class", E = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
|
|
247
247
|
a[10] ? "" : "Disabled")), t.disabled = b = /*hasPreviousPage*/
|
|
248
248
|
!a[10], o(d, "class", "TournamentsPaginationControlsText"), o(r, "fill", k = /*hasNextPage*/
|
|
249
249
|
a[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), o(r, "class", "a"), o(r, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), o(r, "transform", "translate(-11.246 20.179) rotate(-90)"), o(f, "xmlns", "http://www.w3.org/2000/svg"), o(f, "width", "8"), o(f, "height", "13.992"), o(f, "viewBox", "0 0 8 13.992"), o(_, "class", p = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
250
|
-
a[11] ? "" : "Disabled")), _.disabled =
|
|
250
|
+
a[11] ? "" : "Disabled")), _.disabled = B = /*hasNextPage*/
|
|
251
251
|
!a[11], o(e, "class", D = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
|
|
252
252
|
a[10] && !/*hasNextPage*/
|
|
253
253
|
a[11] ? "SinglePage" : ""));
|
|
254
254
|
},
|
|
255
255
|
m(G, L) {
|
|
256
256
|
A(G, e, L), m(e, t), m(t, n), m(n, s), m(t, i), m(t, g), m(g, v), m(e, c), m(e, _), m(_, d), m(d, y), m(_, T), m(_, f), m(f, r), z || (O = [
|
|
257
|
-
|
|
257
|
+
H(
|
|
258
258
|
t,
|
|
259
259
|
"click",
|
|
260
260
|
/*gotoPage*/
|
|
261
261
|
a[16].bind(this, -1)
|
|
262
262
|
),
|
|
263
|
-
|
|
263
|
+
H(
|
|
264
264
|
_,
|
|
265
265
|
"click",
|
|
266
266
|
/*gotoPage*/
|
|
@@ -284,8 +284,8 @@ function Fe(a) {
|
|
|
284
284
|
G[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(r, "fill", k), L[0] & /*hasNextPage*/
|
|
285
285
|
2048 && p !== (p = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
286
286
|
G[11] ? "" : "Disabled")) && o(_, "class", p), L[0] & /*hasNextPage*/
|
|
287
|
-
2048 &&
|
|
288
|
-
!G[11]) && (_.disabled =
|
|
287
|
+
2048 && B !== (B = /*hasNextPage*/
|
|
288
|
+
!G[11]) && (_.disabled = B), L[0] & /*hasPreviousPage, hasNextPage*/
|
|
289
289
|
3072 && D !== (D = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
|
|
290
290
|
G[10] && !/*hasNextPage*/
|
|
291
291
|
G[11] ? "SinglePage" : "")) && o(e, "class", D);
|
|
@@ -305,7 +305,7 @@ function se(a) {
|
|
|
305
305
|
), i;
|
|
306
306
|
return {
|
|
307
307
|
c() {
|
|
308
|
-
e = w("li"), n = W(t), s =
|
|
308
|
+
e = w("li"), n = W(t), s = M(), i = W(u), o(e, "part", "li"), o(e, "class", "Market");
|
|
309
309
|
},
|
|
310
310
|
m(g, h) {
|
|
311
311
|
A(g, e, h), m(e, n), m(e, s), m(e, i);
|
|
@@ -336,7 +336,7 @@ function We(a) {
|
|
|
336
336
|
/*isLoadingGames*/
|
|
337
337
|
r[12] ? Ae : (
|
|
338
338
|
/*noMoreGamesWhenPagination*/
|
|
339
|
-
r[9] ? Se :
|
|
339
|
+
r[9] ? Se : Me
|
|
340
340
|
)
|
|
341
341
|
)
|
|
342
342
|
);
|
|
@@ -350,7 +350,7 @@ function We(a) {
|
|
|
350
350
|
f[r] = se(ee(a, T, r));
|
|
351
351
|
return {
|
|
352
352
|
c() {
|
|
353
|
-
e = w("div"), c && c.c(), t =
|
|
353
|
+
e = w("div"), c && c.c(), t = M(), n = w("div"), s = w("div"), u = w("div"), P.c(), i = M(), y && y.c(), h = M(), v = w("div"), E = w("ul");
|
|
354
354
|
for (let r = 0; r < f.length; r += 1)
|
|
355
355
|
f[r].c();
|
|
356
356
|
o(u, "class", "GameList items"), o(s, "class", g = "TabContent GamesContent " + /*activeTab*/
|
|
@@ -383,8 +383,8 @@ function We(a) {
|
|
|
383
383
|
);
|
|
384
384
|
let p;
|
|
385
385
|
for (p = 0; p < T.length; p += 1) {
|
|
386
|
-
const
|
|
387
|
-
f[p] ? f[p].p(
|
|
386
|
+
const B = ee(r, T, p);
|
|
387
|
+
f[p] ? f[p].p(B, k) : (f[p] = se(B), f[p].c(), f[p].m(E, null));
|
|
388
388
|
}
|
|
389
389
|
for (; p < f.length; p += 1)
|
|
390
390
|
f[p].d(1);
|
|
@@ -401,7 +401,7 @@ function We(a) {
|
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
}
|
|
404
|
-
let
|
|
404
|
+
let K = "gameTab";
|
|
405
405
|
function Oe(a, e, t) {
|
|
406
406
|
let n;
|
|
407
407
|
he(a, Ee, (l) => t(13, n = l));
|
|
@@ -422,11 +422,11 @@ function Oe(a, e, t) {
|
|
|
422
422
|
const p = () => {
|
|
423
423
|
Ne(h), setTimeout(
|
|
424
424
|
() => {
|
|
425
|
-
|
|
425
|
+
B();
|
|
426
426
|
},
|
|
427
427
|
10
|
|
428
428
|
);
|
|
429
|
-
},
|
|
429
|
+
}, B = () => {
|
|
430
430
|
window.postMessage(
|
|
431
431
|
{
|
|
432
432
|
type: "TournamentsTabsLocalize",
|
|
@@ -458,7 +458,7 @@ function Oe(a, e, t) {
|
|
|
458
458
|
},
|
|
459
459
|
window.location.href
|
|
460
460
|
));
|
|
461
|
-
},
|
|
461
|
+
}, Z = () => {
|
|
462
462
|
t(8, b = c.games?.items || []), t(9, r = !1), t(10, z = !1), t(11, O = c.games?.total > c.games?.items.length), X();
|
|
463
463
|
const l = c.metadata?.sports?.rules;
|
|
464
464
|
if (l) {
|
|
@@ -470,19 +470,19 @@ function Oe(a, e, t) {
|
|
|
470
470
|
console.error("Error parsing tournament rules", N);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
},
|
|
473
|
+
}, J = (l) => {
|
|
474
474
|
if (!l.data || !l.data.type)
|
|
475
475
|
return;
|
|
476
476
|
const N = l.data.tid || "";
|
|
477
477
|
switch (l.data.type) {
|
|
478
478
|
case "TournamentsTabSwitch":
|
|
479
|
-
N ===
|
|
479
|
+
N === K && t(6, v = l.data.tab);
|
|
480
480
|
break;
|
|
481
481
|
case "TournamentsTabListenerLoaded":
|
|
482
|
-
|
|
482
|
+
B();
|
|
483
483
|
break;
|
|
484
484
|
case "TournamentsGamesUpdate":
|
|
485
|
-
t(3, c = l.data.details),
|
|
485
|
+
t(3, c = l.data.details), Z();
|
|
486
486
|
break;
|
|
487
487
|
case "TournamentsLoadedMoreGames":
|
|
488
488
|
f ? l.data.games?.items.length && (t(8, b = [...b, ...l.data.games.items]), X()) : (t(12, G = !1), t(8, b = [...l.data.games.items]), t(11, O = l.data.hasNextPage), t(10, z = l.data.hasPreviousPage), t(9, r = !b.length));
|
|
@@ -512,11 +512,11 @@ function Oe(a, e, t) {
|
|
|
512
512
|
_e(() => f && T && T.disconnect()), we(() => (window.postMessage(
|
|
513
513
|
{
|
|
514
514
|
type: "TournamentsGamesListenerLoaded",
|
|
515
|
-
gamesTabTid:
|
|
515
|
+
gamesTabTid: K
|
|
516
516
|
},
|
|
517
517
|
window.location.href
|
|
518
|
-
), window.addEventListener("message",
|
|
519
|
-
window.removeEventListener("message",
|
|
518
|
+
), window.addEventListener("message", J, !1), () => {
|
|
519
|
+
window.removeEventListener("message", J);
|
|
520
520
|
}));
|
|
521
521
|
function oe(l) {
|
|
522
522
|
V[l ? "unshift" : "push"](() => {
|
|
@@ -532,7 +532,7 @@ function Oe(a, e, t) {
|
|
|
532
532
|
"clientstyling" in l && t(0, s = l.clientstyling), "clientstylingurl" in l && t(1, u = l.clientstylingurl), "mbsource" in l && t(2, i = l.mbsource), "translationurl" in l && t(17, g = l.translationurl), "lang" in l && t(18, h = l.lang);
|
|
533
533
|
}, a.$$.update = () => {
|
|
534
534
|
a.$$.dirty[0] & /*tournamentdetails*/
|
|
535
|
-
8 && c &&
|
|
535
|
+
8 && c && Z(), a.$$.dirty[0] & /*lang*/
|
|
536
536
|
262144 && h && p(), a.$$.dirty[0] & /*translationurl*/
|
|
537
537
|
131072 && g && k(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
538
538
|
17 && s && d && Ge(d, s), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
@@ -578,7 +578,7 @@ class je extends ge {
|
|
|
578
578
|
translationurl: 17,
|
|
579
579
|
lang: 18
|
|
580
580
|
},
|
|
581
|
-
|
|
581
|
+
Be,
|
|
582
582
|
[-1, -1]
|
|
583
583
|
);
|
|
584
584
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as K, y as de, z as pe, S as he, i as be, s as _e, f as R, a as we, G as H, n as ee, d as F, H as me, h as o, b as W, c as m, e as v, g as z, B as ve, j as ye, K as Te, o as Ge, A as P, E as Ce, k as j, l as Z, q, t as D, p as te, D as Pe, I as ae, r as ke, u as Ee, v as Le, w as Ne, x as Be, F as Me } from "./CasinoTournamentsPageController-DpQc24NO.js";
|
|
2
2
|
import "../stencil/ui-image-BiEqrTjD.js";
|
|
3
3
|
function Se({ withLocale: a, translations: e }) {
|
|
4
|
-
|
|
5
|
-
t == null && (de.set(e),
|
|
4
|
+
K.subscribe((t) => {
|
|
5
|
+
t == null && (de.set(e), K.set(a));
|
|
6
6
|
});
|
|
7
7
|
}
|
|
8
8
|
function ne(a, e) {
|
|
9
9
|
pe(a, e);
|
|
10
10
|
}
|
|
11
11
|
function Ae(a) {
|
|
12
|
-
|
|
12
|
+
K.set(a);
|
|
13
13
|
}
|
|
14
14
|
const se = {
|
|
15
15
|
en: {
|
|
@@ -37,7 +37,7 @@ function oe(a) {
|
|
|
37
37
|
let e, t;
|
|
38
38
|
return {
|
|
39
39
|
c() {
|
|
40
|
-
e = v("div"), t = v("casino-tournaments-tab"), P(t, "part", "TournamentGames"), P(t, "tabs", "casino,sports"), P(t, "defaulttab", "casino"), P(t, "tid",
|
|
40
|
+
e = v("div"), t = v("casino-tournaments-tab"), P(t, "part", "TournamentGames"), P(t, "tabs", "casino,sports"), P(t, "defaulttab", "casino"), P(t, "tid", J), P(
|
|
41
41
|
t,
|
|
42
42
|
"clientstyling",
|
|
43
43
|
/*clientstyling*/
|
|
@@ -150,7 +150,7 @@ function je(a) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
function De(a) {
|
|
153
|
-
let e, t =
|
|
153
|
+
let e, t = H(
|
|
154
154
|
/*casinoGames*/
|
|
155
155
|
a[8]
|
|
156
156
|
), n = [];
|
|
@@ -170,7 +170,7 @@ function De(a) {
|
|
|
170
170
|
p(s, r) {
|
|
171
171
|
if (r[0] & /*gameClicked, casinoGames, $_*/
|
|
172
172
|
41216) {
|
|
173
|
-
t =
|
|
173
|
+
t = H(
|
|
174
174
|
/*casinoGames*/
|
|
175
175
|
s[8]
|
|
176
176
|
);
|
|
@@ -203,7 +203,7 @@ function re(a) {
|
|
|
203
203
|
a[36]), o(e, "role", "button"), o(e, "tabindex", "0");
|
|
204
204
|
},
|
|
205
205
|
m(b, d) {
|
|
206
|
-
W(b, e, d), m(e, t), m(t, s), m(e, r), m(e, i), m(e, L), h || (c =
|
|
206
|
+
W(b, e, d), m(e, t), m(t, s), m(e, r), m(e, i), m(e, L), h || (c = Z(e, "click", function() {
|
|
207
207
|
ke(
|
|
208
208
|
/*gameClicked*/
|
|
209
209
|
a[15](
|
|
@@ -232,14 +232,14 @@ function re(a) {
|
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Ie(a) {
|
|
236
236
|
let e, t, n, s, r, i, g, p = (
|
|
237
237
|
/*$_*/
|
|
238
238
|
a[13]("previous") + ""
|
|
239
239
|
), y, L, h, c, b, d, k = (
|
|
240
240
|
/*$_*/
|
|
241
241
|
a[13]("next") + ""
|
|
242
|
-
), T, G, f, N, S, u, C, E,
|
|
242
|
+
), T, G, f, N, S, u, C, E, M, w;
|
|
243
243
|
return {
|
|
244
244
|
c() {
|
|
245
245
|
e = v("div"), t = v("button"), n = q("svg"), s = q("path"), i = z(), g = v("span"), y = D(p), c = z(), b = v("button"), d = v("span"), T = D(k), G = z(), f = q("svg"), N = q("path"), o(s, "fill", r = /*hasPreviousPage*/
|
|
@@ -252,46 +252,46 @@ function Oe(a) {
|
|
|
252
252
|
a[10] && !/*hasNextPage*/
|
|
253
253
|
a[11] ? "SinglePage" : ""));
|
|
254
254
|
},
|
|
255
|
-
m(_,
|
|
256
|
-
W(_, e,
|
|
257
|
-
|
|
255
|
+
m(_, B) {
|
|
256
|
+
W(_, e, B), m(e, t), m(t, n), m(n, s), m(t, i), m(t, g), m(g, y), m(e, c), m(e, b), m(b, d), m(d, T), m(b, G), m(b, f), m(f, N), M || (w = [
|
|
257
|
+
Z(
|
|
258
258
|
t,
|
|
259
259
|
"click",
|
|
260
260
|
/*gotoPage*/
|
|
261
261
|
a[16].bind(this, -1)
|
|
262
262
|
),
|
|
263
|
-
|
|
263
|
+
Z(
|
|
264
264
|
b,
|
|
265
265
|
"click",
|
|
266
266
|
/*gotoPage*/
|
|
267
267
|
a[16].bind(this, 1)
|
|
268
268
|
)
|
|
269
|
-
],
|
|
269
|
+
], M = !0);
|
|
270
270
|
},
|
|
271
|
-
p(_,
|
|
272
|
-
|
|
271
|
+
p(_, B) {
|
|
272
|
+
B[0] & /*hasPreviousPage*/
|
|
273
273
|
1024 && r !== (r = /*hasPreviousPage*/
|
|
274
|
-
_[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(s, "fill", r),
|
|
274
|
+
_[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(s, "fill", r), B[0] & /*$_*/
|
|
275
275
|
8192 && p !== (p = /*$_*/
|
|
276
|
-
_[13]("previous") + "") && j(y, p),
|
|
276
|
+
_[13]("previous") + "") && j(y, p), B[0] & /*hasPreviousPage*/
|
|
277
277
|
1024 && L !== (L = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
|
|
278
|
-
_[10] ? "" : "Disabled")) && o(t, "class", L),
|
|
278
|
+
_[10] ? "" : "Disabled")) && o(t, "class", L), B[0] & /*hasPreviousPage*/
|
|
279
279
|
1024 && h !== (h = /*hasPreviousPage*/
|
|
280
|
-
!_[10]) && (t.disabled = h),
|
|
280
|
+
!_[10]) && (t.disabled = h), B[0] & /*$_*/
|
|
281
281
|
8192 && k !== (k = /*$_*/
|
|
282
|
-
_[13]("next") + "") && j(T, k),
|
|
282
|
+
_[13]("next") + "") && j(T, k), B[0] & /*hasNextPage*/
|
|
283
283
|
2048 && S !== (S = /*hasNextPage*/
|
|
284
|
-
_[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(N, "fill", S),
|
|
284
|
+
_[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(N, "fill", S), B[0] & /*hasNextPage*/
|
|
285
285
|
2048 && u !== (u = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
286
|
-
_[11] ? "" : "Disabled")) && o(b, "class", u),
|
|
286
|
+
_[11] ? "" : "Disabled")) && o(b, "class", u), B[0] & /*hasNextPage*/
|
|
287
287
|
2048 && C !== (C = /*hasNextPage*/
|
|
288
|
-
!_[11]) && (b.disabled = C),
|
|
288
|
+
!_[11]) && (b.disabled = C), B[0] & /*hasPreviousPage, hasNextPage*/
|
|
289
289
|
3072 && E !== (E = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
|
|
290
290
|
_[10] && !/*hasNextPage*/
|
|
291
291
|
_[11] ? "SinglePage" : "")) && o(e, "class", E);
|
|
292
292
|
},
|
|
293
293
|
d(_) {
|
|
294
|
-
_ && F(e),
|
|
294
|
+
_ && F(e), M = !1, Ce(w);
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
297
|
}
|
|
@@ -322,7 +322,7 @@ function ue(a) {
|
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Oe(a) {
|
|
326
326
|
var N, S;
|
|
327
327
|
let e, t, n, s, r, i, g, p, y, L, h, c = (
|
|
328
328
|
/*tournamentdetails*/
|
|
@@ -344,7 +344,7 @@ function Ie(a) {
|
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
346
|
let d = b(a), k = d(a), T = !/*isMobileDevice*/
|
|
347
|
-
a[14] &&
|
|
347
|
+
a[14] && Ie(a), G = H(
|
|
348
348
|
/*sportsRules*/
|
|
349
349
|
a[7]
|
|
350
350
|
), f = [];
|
|
@@ -371,16 +371,16 @@ function Ie(a) {
|
|
|
371
371
|
a[20](e);
|
|
372
372
|
},
|
|
373
373
|
p(u, C) {
|
|
374
|
-
var E,
|
|
374
|
+
var E, M;
|
|
375
375
|
if (/*tournamentdetails*/
|
|
376
376
|
u[3] && /*tournamentdetails*/
|
|
377
377
|
((E = u[3].wallet) != null && E.sports) && /*tournamentdetails*/
|
|
378
|
-
((
|
|
378
|
+
((M = u[3].wallet) != null && M.casino) ? c ? c.p(u, C) : (c = oe(u), c.c(), c.m(e, t)) : c && (c.d(1), c = null), d === (d = b(u)) && k ? k.p(u, C) : (k.d(1), k = d(u), k && (k.c(), k.m(r, null))), /*isMobileDevice*/
|
|
379
379
|
u[14] || T.p(u, C), C[0] & /*activeTab*/
|
|
380
380
|
64 && g !== (g = "TabContent GamesContent " + /*activeTab*/
|
|
381
381
|
(u[6] != "casino" ? "hidden" : "")) && o(s, "class", g), C[0] & /*$_, sportsRules*/
|
|
382
382
|
8320) {
|
|
383
|
-
G =
|
|
383
|
+
G = H(
|
|
384
384
|
/*sportsRules*/
|
|
385
385
|
u[7]
|
|
386
386
|
);
|
|
@@ -404,10 +404,10 @@ function Ie(a) {
|
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
|
-
let
|
|
407
|
+
let J = "gameTab";
|
|
408
408
|
function Re(a, e, t) {
|
|
409
409
|
let n;
|
|
410
|
-
ve(a,
|
|
410
|
+
ve(a, Me, (l) => t(13, n = l));
|
|
411
411
|
let { clientstyling: s = "" } = e, { clientstylingurl: r = "" } = e, { mbsource: i } = e, { translationurl: g } = e, { lang: p = "en" } = e, y = "casino", L = [], h = [], c, b = window.navigator.userAgent, d, k, T, G, f = ye(b), N = !1;
|
|
412
412
|
Se({ withLocale: "en", translations: {} });
|
|
413
413
|
const S = () => {
|
|
@@ -451,9 +451,9 @@ function Re(a, e, t) {
|
|
|
451
451
|
window.location.href
|
|
452
452
|
);
|
|
453
453
|
};
|
|
454
|
-
let
|
|
455
|
-
const
|
|
456
|
-
!
|
|
454
|
+
let M = !1, w = !1, _ = !1;
|
|
455
|
+
const B = (l) => {
|
|
456
|
+
!M && l === -1 || !w && l === 1 || (t(12, _ = !0), t(8, h = []), window.postMessage(
|
|
457
457
|
{
|
|
458
458
|
type: "TournamentsLoadMoreGames",
|
|
459
459
|
id: c.id,
|
|
@@ -462,8 +462,8 @@ function Re(a, e, t) {
|
|
|
462
462
|
window.location.href
|
|
463
463
|
));
|
|
464
464
|
}, X = () => {
|
|
465
|
-
var A,
|
|
466
|
-
t(8, h = ((A = c.games) == null ? void 0 : A.items) || []), t(9, N = !1), t(10,
|
|
465
|
+
var A, O, Y, x, $;
|
|
466
|
+
t(8, h = ((A = c.games) == null ? void 0 : A.items) || []), t(9, N = !1), t(10, M = !1), t(11, w = ((O = c.games) == null ? void 0 : O.total) > ((Y = c.games) == null ? void 0 : Y.items.length)), V();
|
|
467
467
|
const l = ($ = (x = c.metadata) == null ? void 0 : x.sports) == null ? void 0 : $.rules;
|
|
468
468
|
if (l) {
|
|
469
469
|
t(6, y = c.wallet.casino ? "casino" : "sports");
|
|
@@ -475,13 +475,13 @@ function Re(a, e, t) {
|
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
}, Q = (l) => {
|
|
478
|
-
var
|
|
478
|
+
var O;
|
|
479
479
|
if (!l.data || !l.data.type)
|
|
480
480
|
return;
|
|
481
481
|
const A = l.data.tid || "";
|
|
482
482
|
switch (l.data.type) {
|
|
483
483
|
case "TournamentsTabSwitch":
|
|
484
|
-
A ===
|
|
484
|
+
A === J && t(6, y = l.data.tab);
|
|
485
485
|
break;
|
|
486
486
|
case "TournamentsTabListenerLoaded":
|
|
487
487
|
C();
|
|
@@ -490,18 +490,18 @@ function Re(a, e, t) {
|
|
|
490
490
|
t(3, c = l.data.details), X();
|
|
491
491
|
break;
|
|
492
492
|
case "TournamentsLoadedMoreGames":
|
|
493
|
-
f ? (
|
|
493
|
+
f ? (O = l.data.games) != null && O.items.length && (t(8, h = [...h, ...l.data.games.items]), V()) : (t(12, _ = !1), t(8, h = [...l.data.games.items]), t(11, w = l.data.hasNextPage), t(10, M = l.data.hasPreviousPage), t(9, N = !h.length));
|
|
494
494
|
break;
|
|
495
495
|
default:
|
|
496
496
|
console.warn(`Unhandled message type: ${l.data.type}`);
|
|
497
497
|
break;
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
|
-
let
|
|
500
|
+
let I;
|
|
501
501
|
const ce = (l) => {
|
|
502
|
-
|
|
503
|
-
A.forEach((
|
|
504
|
-
|
|
502
|
+
I = l == null ? void 0 : l.lastElementChild, !(!f || G || !l || !I) && (G = new IntersectionObserver((A) => {
|
|
503
|
+
A.forEach((O) => {
|
|
504
|
+
O.isIntersecting && (G.unobserve(I), window.postMessage(
|
|
505
505
|
{
|
|
506
506
|
type: "TournamentsLoadMoreGames",
|
|
507
507
|
id: c.id,
|
|
@@ -512,12 +512,12 @@ function Re(a, e, t) {
|
|
|
512
512
|
});
|
|
513
513
|
}));
|
|
514
514
|
}, V = () => {
|
|
515
|
-
!f || !
|
|
515
|
+
!f || !I || !G || !h.length || (G.unobserve(I), I = T.lastElementChild, G.observe(I));
|
|
516
516
|
};
|
|
517
517
|
Te(() => f && G && G.disconnect()), Ge(() => (window.postMessage(
|
|
518
518
|
{
|
|
519
519
|
type: "TournamentsGamesListenerLoaded",
|
|
520
|
-
gamesTabTid:
|
|
520
|
+
gamesTabTid: J
|
|
521
521
|
},
|
|
522
522
|
window.location.href
|
|
523
523
|
), window.addEventListener("message", Q, !1), () => {
|
|
@@ -555,13 +555,13 @@ function Re(a, e, t) {
|
|
|
555
555
|
L,
|
|
556
556
|
h,
|
|
557
557
|
N,
|
|
558
|
-
|
|
558
|
+
M,
|
|
559
559
|
w,
|
|
560
560
|
_,
|
|
561
561
|
n,
|
|
562
562
|
f,
|
|
563
563
|
E,
|
|
564
|
-
|
|
564
|
+
B,
|
|
565
565
|
g,
|
|
566
566
|
p,
|
|
567
567
|
ge,
|
|
@@ -574,7 +574,7 @@ class Ue extends he {
|
|
|
574
574
|
this,
|
|
575
575
|
e,
|
|
576
576
|
Re,
|
|
577
|
-
|
|
577
|
+
Oe,
|
|
578
578
|
_e,
|
|
579
579
|
{
|
|
580
580
|
clientstyling: 0,
|
|
@@ -618,7 +618,7 @@ class Ue extends he {
|
|
|
618
618
|
this.$$set({ lang: e }), R();
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
|
|
621
|
+
Be(Ue, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
|
|
622
622
|
export {
|
|
623
623
|
Ue as default
|
|
624
624
|
};
|