@everymatrix/casino-tournaments-controller 1.49.2 → 1.50.1
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/CasinoTournamentsController-BgOnVyOd.cjs +14 -0
- package/components/{CasinoTournamentsController-IiQpyaxn.js → CasinoTournamentsController-Bh0F1F9j.js} +276 -270
- package/components/{CasinoTournamentsFilterController-Dbrfkq2-.js → CasinoTournamentsFilterController-Cms4Mj5a.js} +2 -2
- package/components/CasinoTournamentsFilterController-Ue-NUlO5.cjs +1 -0
- package/components/{CasinoTournamentsListController-Cz3RzF7g.cjs → CasinoTournamentsListController-COIcfqhk.cjs} +2 -2
- package/components/{CasinoTournamentsListController-O9NEqeZX.js → CasinoTournamentsListController-DT-ABEal.js} +2 -2
- package/components/{CasinoTournamentsThumbnail-DK3wUAm3.cjs → CasinoTournamentsThumbnail-BqchSYJX.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-B4GIi0uV.js → CasinoTournamentsThumbnail-JPADMzmC.js} +48 -48
- package/components/{CasinoTournamentsThumbnailController-BprqRhe9.js → CasinoTournamentsThumbnailController-Cyz1tkwX.js} +7 -7
- package/components/CasinoTournamentsThumbnailController-DLec91GP.cjs +1 -0
- package/components/CasinoTournamentsThumbnailDuration-Df8PCRBm.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailDuration-B878iC-A.js → CasinoTournamentsThumbnailDuration-Dq6XZBFw.js} +2 -2
- package/components/CasinoTournamentsThumbnailGamesSlider-BqLvv5tS.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailGamesSlider-DWphkxl-.js → CasinoTournamentsThumbnailGamesSlider-DUruRKxn.js} +2 -2
- package/components/{CasinoTournamentsThumbnailPrizes-Cxulhfsv.js → CasinoTournamentsThumbnailPrizes-ATuGyLaj.js} +3 -3
- package/components/CasinoTournamentsThumbnailPrizes-CmlKwpPW.cjs +1 -0
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsController-C6cQLVlH.cjs +0 -14
- package/components/CasinoTournamentsFilterController-Bp_WEWVh.cjs +0 -1
- package/components/CasinoTournamentsThumbnailController-DacIsXf1.cjs +0 -1
- package/components/CasinoTournamentsThumbnailDuration-sxer-92L.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGamesSlider-BfcE4fkD.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-DSiUe4o4.cjs +0 -1
package/components/{CasinoTournamentsThumbnail-B4GIi0uV.js → CasinoTournamentsThumbnail-JPADMzmC.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as me, z as de, S as ce, i as ge, f as C, c as be, s as fe, b as he, e as v, m as W, t as M, d as u, h as
|
|
1
|
+
import { a as me, z as de, S as ce, i as ge, f as C, c as be, s as fe, b as he, e as v, m as W, t as M, d as u, h as z, o as c, p as D, n as q, j, k as pe, w as ke, A as L, x as ye, B as Ce, r as Se, C as Ae, u as _e, D as K, $ as Te } from "./CasinoTournamentsController-Bh0F1F9j.js";
|
|
2
2
|
function Z(i, e) {
|
|
3
3
|
me(i, e);
|
|
4
4
|
}
|
|
@@ -307,7 +307,7 @@ const Y = {
|
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
function Me(i) {
|
|
310
|
-
he(i, "svelte-
|
|
310
|
+
he(i, "svelte-1gxooas", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
|
|
311
311
|
}
|
|
312
312
|
function Q(i) {
|
|
313
313
|
let e, t, r, s, o, n;
|
|
@@ -321,7 +321,7 @@ function Q(i) {
|
|
|
321
321
|
i[15]);
|
|
322
322
|
},
|
|
323
323
|
m(l, b) {
|
|
324
|
-
|
|
324
|
+
z(l, e, b), c(e, t), o || (n = L(
|
|
325
325
|
/*matchStatus*/
|
|
326
326
|
i[18].call(null, e)
|
|
327
327
|
), o = !0);
|
|
@@ -339,7 +339,7 @@ function Q(i) {
|
|
|
339
339
|
l[15]) && u(e, "part", s);
|
|
340
340
|
},
|
|
341
341
|
d(l) {
|
|
342
|
-
l &&
|
|
342
|
+
l && j(e), o = !1, n();
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
}
|
|
@@ -350,17 +350,17 @@ function X(i) {
|
|
|
350
350
|
);
|
|
351
351
|
return {
|
|
352
352
|
c() {
|
|
353
|
-
t && t.c(), e =
|
|
353
|
+
t && t.c(), e = ye();
|
|
354
354
|
},
|
|
355
355
|
m(r, s) {
|
|
356
|
-
t && t.m(r, s),
|
|
356
|
+
t && t.m(r, s), z(r, e, s);
|
|
357
357
|
},
|
|
358
358
|
p(r, s) {
|
|
359
359
|
/*userenrolled*/
|
|
360
360
|
r[5] ? t ? t.p(r, s) : (t = $(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
|
361
361
|
},
|
|
362
362
|
d(r) {
|
|
363
|
-
r &&
|
|
363
|
+
r && j(e), t && t.d(r);
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
366
|
}
|
|
@@ -374,7 +374,7 @@ function $(i) {
|
|
|
374
374
|
e = v("div"), r = M(t), u(e, "class", "Enrolled"), u(e, "part", "Enrolled");
|
|
375
375
|
},
|
|
376
376
|
m(s, o) {
|
|
377
|
-
|
|
377
|
+
z(s, e, o), c(e, r);
|
|
378
378
|
},
|
|
379
379
|
p(s, o) {
|
|
380
380
|
o[0] & /*$_*/
|
|
@@ -382,7 +382,7 @@ function $(i) {
|
|
|
382
382
|
s[16]("enrolled") + "") && D(r, t);
|
|
383
383
|
},
|
|
384
384
|
d(s) {
|
|
385
|
-
s &&
|
|
385
|
+
s && j(e);
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
388
|
}
|
|
@@ -397,7 +397,7 @@ function we(i) {
|
|
|
397
397
|
i[0] == "Closed" ? "CardImgFinished" : "")), K(e, "background-image", "url('https://i.stack.imgur.com/y9DpT.jpg')");
|
|
398
398
|
},
|
|
399
399
|
m(n, l) {
|
|
400
|
-
|
|
400
|
+
z(n, e, l), s || (o = L(
|
|
401
401
|
/*matchStatus*/
|
|
402
402
|
i[18].call(null, e)
|
|
403
403
|
), s = !0);
|
|
@@ -412,7 +412,7 @@ function we(i) {
|
|
|
412
412
|
n[0] == "Closed" ? "CardImgFinished" : "")) && u(e, "part", r);
|
|
413
413
|
},
|
|
414
414
|
d(n) {
|
|
415
|
-
n &&
|
|
415
|
+
n && j(e), s = !1, o();
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
418
|
}
|
|
@@ -428,7 +428,7 @@ function Re(i) {
|
|
|
428
428
|
i[4] + "')");
|
|
429
429
|
},
|
|
430
430
|
m(n, l) {
|
|
431
|
-
|
|
431
|
+
z(n, e, l), s || (o = L(
|
|
432
432
|
/*matchStatus*/
|
|
433
433
|
i[18].call(null, e)
|
|
434
434
|
), s = !0);
|
|
@@ -445,7 +445,7 @@ function Re(i) {
|
|
|
445
445
|
n[4] + "')");
|
|
446
446
|
},
|
|
447
447
|
d(n) {
|
|
448
|
-
n &&
|
|
448
|
+
n && j(e), s = !1, o();
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
451
|
}
|
|
@@ -459,7 +459,7 @@ function ee(i) {
|
|
|
459
459
|
), u(e, "class", "Date"), u(e, "part", "Date");
|
|
460
460
|
},
|
|
461
461
|
m(n, l) {
|
|
462
|
-
|
|
462
|
+
z(n, e, l), c(e, t), s || (o = L(r = /*formatDate*/
|
|
463
463
|
i[17].call(
|
|
464
464
|
null,
|
|
465
465
|
e,
|
|
@@ -481,7 +481,7 @@ function ee(i) {
|
|
|
481
481
|
);
|
|
482
482
|
},
|
|
483
483
|
d(n) {
|
|
484
|
-
n &&
|
|
484
|
+
n && j(e), s = !1, o();
|
|
485
485
|
}
|
|
486
486
|
};
|
|
487
487
|
}
|
|
@@ -492,10 +492,10 @@ function te(i) {
|
|
|
492
492
|
), s, o, n, l, b, w = (
|
|
493
493
|
/*$_*/
|
|
494
494
|
i[16]("minbet") + ""
|
|
495
|
-
), f, h, A, J,
|
|
495
|
+
), f, h, A, J, y, g, d, m = (
|
|
496
496
|
/*$_*/
|
|
497
497
|
i[16]("seegames") + ""
|
|
498
|
-
),
|
|
498
|
+
), k, E, _, R = (
|
|
499
499
|
/*$_*/
|
|
500
500
|
i[16]("here") + ""
|
|
501
501
|
), B, F, I, N;
|
|
@@ -510,7 +510,7 @@ function te(i) {
|
|
|
510
510
|
(`), f = M(w), h = W(), A = M(
|
|
511
511
|
/*minbetcount*/
|
|
512
512
|
i[6]
|
|
513
|
-
), J = M(")"),
|
|
513
|
+
), J = M(")"), y = W(), g = v("div"), d = v("p"), k = M(m), E = W(), _ = v("a"), B = M(R), u(n, "part", "ScoreCriteriaSpan"), u(t, "part", "ScoreCriteriaP"), u(e, "class", "ScoreCriteria"), u(e, "part", "ScoreCriteria"), u(_, "part", "GamesAnchor"), u(
|
|
514
514
|
_,
|
|
515
515
|
"href",
|
|
516
516
|
/*gameurl*/
|
|
@@ -519,7 +519,7 @@ function te(i) {
|
|
|
519
519
|
i[9] === "true" ? "_self" : "_blank"), u(d, "part", "GamesP"), u(g, "class", "Games"), u(g, "part", "Games");
|
|
520
520
|
},
|
|
521
521
|
m(p, T) {
|
|
522
|
-
|
|
522
|
+
z(p, e, T), c(e, t), c(t, s), c(t, o), c(t, n), c(n, l), c(t, b), c(t, f), c(t, h), c(t, A), c(t, J), z(p, y, T), z(p, g, T), c(g, d), c(d, k), c(d, E), c(d, _), c(_, B), I || (N = [
|
|
523
523
|
L(
|
|
524
524
|
/*matchScoreCriteria*/
|
|
525
525
|
i[19].call(null, n)
|
|
@@ -549,7 +549,7 @@ function te(i) {
|
|
|
549
549
|
p[6]
|
|
550
550
|
), T[0] & /*$_*/
|
|
551
551
|
65536 && m !== (m = /*$_*/
|
|
552
|
-
p[16]("seegames") + "") && D(
|
|
552
|
+
p[16]("seegames") + "") && D(k, m), T[0] & /*$_*/
|
|
553
553
|
65536 && R !== (R = /*$_*/
|
|
554
554
|
p[16]("here") + "") && D(B, R), T[0] & /*gameurl*/
|
|
555
555
|
256 && u(
|
|
@@ -562,7 +562,7 @@ function te(i) {
|
|
|
562
562
|
p[9] === "true" ? "_self" : "_blank") && u(_, "target", F);
|
|
563
563
|
},
|
|
564
564
|
d(p) {
|
|
565
|
-
p && (
|
|
565
|
+
p && (j(e), j(y), j(g)), I = !1, Ae(N);
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
568
|
}
|
|
@@ -574,13 +574,13 @@ function Je(i) {
|
|
|
574
574
|
/*showenrolled*/
|
|
575
575
|
i[7] == "true" && X(i)
|
|
576
576
|
);
|
|
577
|
-
function A(m,
|
|
577
|
+
function A(m, k) {
|
|
578
578
|
return (
|
|
579
579
|
/*thumbnail*/
|
|
580
580
|
m[4] ? Re : we
|
|
581
581
|
);
|
|
582
582
|
}
|
|
583
|
-
let J = A(i),
|
|
583
|
+
let J = A(i), y = J(i), g = (
|
|
584
584
|
/*startdate*/
|
|
585
585
|
i[2] && ee(i)
|
|
586
586
|
), d = (
|
|
@@ -589,37 +589,37 @@ function Je(i) {
|
|
|
589
589
|
);
|
|
590
590
|
return {
|
|
591
591
|
c() {
|
|
592
|
-
e = v("div"), f && f.c(), t = W(), h && h.c(), r = W(),
|
|
592
|
+
e = v("div"), f && f.c(), t = W(), h && h.c(), r = W(), y.c(), s = W(), o = v("div"), n = v("div"), l = M(
|
|
593
593
|
/*title*/
|
|
594
594
|
i[1]
|
|
595
595
|
), b = W(), g && g.c(), w = W(), d && d.c(), u(n, "class", "Title"), u(n, "part", "Title"), u(o, "class", "Details"), u(o, "part", "Details"), u(e, "class", "Thumbnail"), u(e, "part", "Thumbnail");
|
|
596
596
|
},
|
|
597
|
-
m(m,
|
|
598
|
-
|
|
597
|
+
m(m, k) {
|
|
598
|
+
z(m, e, k), f && f.m(e, null), c(e, t), h && h.m(e, null), c(e, r), y.m(e, null), c(e, s), c(e, o), c(o, n), c(n, l), c(o, b), g && g.m(o, null), c(o, w), d && d.m(o, null), i[29](e);
|
|
599
599
|
},
|
|
600
|
-
p(m,
|
|
600
|
+
p(m, k) {
|
|
601
601
|
/*status*/
|
|
602
|
-
m[0] ? f ? f.p(m,
|
|
603
|
-
m[7] == "true" ? h ? h.p(m,
|
|
602
|
+
m[0] ? f ? f.p(m, k) : (f = Q(m), f.c(), f.m(e, t)) : f && (f.d(1), f = null), /*showenrolled*/
|
|
603
|
+
m[7] == "true" ? h ? h.p(m, k) : (h = X(m), h.c(), h.m(e, r)) : h && (h.d(1), h = null), J === (J = A(m)) && y ? y.p(m, k) : (y.d(1), y = J(m), y && (y.c(), y.m(e, s))), k[0] & /*title*/
|
|
604
604
|
2 && D(
|
|
605
605
|
l,
|
|
606
606
|
/*title*/
|
|
607
607
|
m[1]
|
|
608
608
|
), /*startdate*/
|
|
609
|
-
m[2] ? g ? g.p(m,
|
|
610
|
-
m[12] ? d ? d.p(m,
|
|
609
|
+
m[2] ? g ? g.p(m, k) : (g = ee(m), g.c(), g.m(o, w)) : g && (g.d(1), g = null), /*isLoggedIn*/
|
|
610
|
+
m[12] ? d ? d.p(m, k) : (d = te(m), d.c(), d.m(o, null)) : d && (d.d(1), d = null);
|
|
611
611
|
},
|
|
612
612
|
i: q,
|
|
613
613
|
o: q,
|
|
614
614
|
d(m) {
|
|
615
|
-
m &&
|
|
615
|
+
m && j(e), f && f.d(), h && h.d(), y.d(), g && g.d(), d && d.d(), i[29](null);
|
|
616
616
|
}
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
619
|
function De(i, e, t) {
|
|
620
620
|
let r;
|
|
621
621
|
pe(i, Te, (a) => t(16, r = a));
|
|
622
|
-
let { session: s = "" } = e, { userid: o = "" } = e, { title: n = "" } = e, { startdate: l = "" } = e, { status: b = "" } = e, { tourid: w = "" } = e, { thumbnail: f = "" } = e, { userenrolled: h = "" } = e, { scorecriteria: A = "" } = e, { minbetcount: J = "" } = e, { showenrolled:
|
|
622
|
+
let { session: s = "" } = e, { userid: o = "" } = e, { title: n = "" } = e, { startdate: l = "" } = e, { status: b = "" } = e, { tourid: w = "" } = e, { thumbnail: f = "" } = e, { userenrolled: h = "" } = e, { scorecriteria: A = "" } = e, { minbetcount: J = "" } = e, { showenrolled: y = "false" } = e, { gameurl: g = "" } = e, { lang: d = "en" } = e, { keepbrowsercontext: m = "false" } = e, { clientstyling: k = "" } = e, { clientstylingurl: E = "" } = e, { translationurl: _ = "" } = e, R, B = "", F = !1, I = "", N = "", p = "";
|
|
623
623
|
const T = () => {
|
|
624
624
|
fetch(_).then((S) => S.json()).then((S) => {
|
|
625
625
|
Object.keys(S).forEach((O) => {
|
|
@@ -643,9 +643,9 @@ function De(i, e, t) {
|
|
|
643
643
|
});
|
|
644
644
|
const ue = () => r(b === "Running" ? "startedAt" : "startingAt");
|
|
645
645
|
t(11, B = `${le} ` + r(`${O}`) + ", " + ue() + ` ${oe}`);
|
|
646
|
-
}, G = () => {
|
|
647
|
-
b == "Unstarted" && (t(13, I = r("scheduled")), t(15, p = "StatusUnstarted")), b == "Running" && (t(13, I = r("ongoing")), t(15, p = "StatusRunning")), (b == "Closed" || b == "Closing") && t(13, I = r("finished")), b == "Closed" && t(15, p = "StatusClosed"), b == "Closing" && t(15, p = "StatusClosing");
|
|
648
646
|
}, x = () => {
|
|
647
|
+
b == "Unstarted" && (t(13, I = r("scheduled")), t(15, p = "StatusUnstarted")), b == "Running" && (t(13, I = r("ongoing")), t(15, p = "StatusRunning")), (b == "Closed" || b == "Closing") && t(13, I = r("finished")), b == "Closed" && t(15, p = "StatusClosed"), b == "Closing" && t(15, p = "StatusClosing");
|
|
648
|
+
}, G = () => {
|
|
649
649
|
A == "BetCount" && t(14, N = r("betCount")), A == "MaxWinStakeRatio" && t(14, N = r("maxWinStakeRatio")), A == "WinStakeRatio" && t(14, N = r("winStakeRatio")), A == "Stake" && t(14, N = r("stake"));
|
|
650
650
|
}, V = (a, S) => {
|
|
651
651
|
window.postMessage({ type: "tournamentGamesClicked", tourId: S }, window.location.href);
|
|
@@ -653,7 +653,7 @@ function De(i, e, t) {
|
|
|
653
653
|
s.length > 0 && s != "false" ? t(12, F = !0) : t(12, F = !1);
|
|
654
654
|
}, ae = () => {
|
|
655
655
|
let a = document.createElement("style");
|
|
656
|
-
a.innerHTML =
|
|
656
|
+
a.innerHTML = k, R.appendChild(a);
|
|
657
657
|
}, re = () => {
|
|
658
658
|
let a = new URL(E), S = document.createElement("style");
|
|
659
659
|
fetch(a.href).then((O) => O.text()).then((O) => {
|
|
@@ -669,11 +669,11 @@ function De(i, e, t) {
|
|
|
669
669
|
);
|
|
670
670
|
});
|
|
671
671
|
};
|
|
672
|
-
|
|
672
|
+
ke(() => (setTimeout(() => H(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", U, !1), () => {
|
|
673
673
|
window.removeEventListener("message", U);
|
|
674
674
|
}));
|
|
675
675
|
const H = () => {
|
|
676
|
-
ve(d),
|
|
676
|
+
ve(d), G(), x(), l && P();
|
|
677
677
|
}, ne = () => V();
|
|
678
678
|
function se(a) {
|
|
679
679
|
_e[a ? "unshift" : "push"](() => {
|
|
@@ -681,17 +681,17 @@ function De(i, e, t) {
|
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
683
|
return i.$$set = (a) => {
|
|
684
|
-
"session" in a && t(21, s = a.session), "userid" in a && t(22, o = a.userid), "title" in a && t(1, n = a.title), "startdate" in a && t(2, l = a.startdate), "status" in a && t(0, b = a.status), "tourid" in a && t(3, w = a.tourid), "thumbnail" in a && t(4, f = a.thumbnail), "userenrolled" in a && t(5, h = a.userenrolled), "scorecriteria" in a && t(23, A = a.scorecriteria), "minbetcount" in a && t(6, J = a.minbetcount), "showenrolled" in a && t(7,
|
|
684
|
+
"session" in a && t(21, s = a.session), "userid" in a && t(22, o = a.userid), "title" in a && t(1, n = a.title), "startdate" in a && t(2, l = a.startdate), "status" in a && t(0, b = a.status), "tourid" in a && t(3, w = a.tourid), "thumbnail" in a && t(4, f = a.thumbnail), "userenrolled" in a && t(5, h = a.userenrolled), "scorecriteria" in a && t(23, A = a.scorecriteria), "minbetcount" in a && t(6, J = a.minbetcount), "showenrolled" in a && t(7, y = a.showenrolled), "gameurl" in a && t(8, g = a.gameurl), "lang" in a && t(24, d = a.lang), "keepbrowsercontext" in a && t(9, m = a.keepbrowsercontext), "clientstyling" in a && t(25, k = a.clientstyling), "clientstylingurl" in a && t(26, E = a.clientstylingurl), "translationurl" in a && t(27, _ = a.translationurl);
|
|
685
685
|
}, i.$$.update = () => {
|
|
686
686
|
i.$$.dirty[0] & /*customStylingContainer, clientstyling*/
|
|
687
|
-
33555456 && R &&
|
|
687
|
+
33555456 && R && k && ae(), i.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
|
|
688
688
|
67109888 && R && E && re(), i.$$.dirty[0] & /*translationurl*/
|
|
689
689
|
134217728 && _ && T(), i.$$.dirty[0] & /*session*/
|
|
690
690
|
2097152 && s && ie(), i.$$.dirty[0] & /*status*/
|
|
691
|
-
1 && b &&
|
|
691
|
+
1 && b && x(), i.$$.dirty[0] & /*title, lang*/
|
|
692
692
|
16777218 && n && d && H(), i.$$.dirty[0] & /*startdate*/
|
|
693
693
|
4 && l && P(), i.$$.dirty[0] & /*scorecriteria*/
|
|
694
|
-
8388608 && A &&
|
|
694
|
+
8388608 && A && G();
|
|
695
695
|
}, [
|
|
696
696
|
b,
|
|
697
697
|
n,
|
|
@@ -700,7 +700,7 @@ function De(i, e, t) {
|
|
|
700
700
|
f,
|
|
701
701
|
h,
|
|
702
702
|
J,
|
|
703
|
-
|
|
703
|
+
y,
|
|
704
704
|
g,
|
|
705
705
|
m,
|
|
706
706
|
R,
|
|
@@ -711,21 +711,21 @@ function De(i, e, t) {
|
|
|
711
711
|
p,
|
|
712
712
|
r,
|
|
713
713
|
P,
|
|
714
|
-
G,
|
|
715
714
|
x,
|
|
715
|
+
G,
|
|
716
716
|
V,
|
|
717
717
|
s,
|
|
718
718
|
o,
|
|
719
719
|
A,
|
|
720
720
|
d,
|
|
721
|
-
|
|
721
|
+
k,
|
|
722
722
|
E,
|
|
723
723
|
_,
|
|
724
724
|
ne,
|
|
725
725
|
se
|
|
726
726
|
];
|
|
727
727
|
}
|
|
728
|
-
class
|
|
728
|
+
class ze extends ce {
|
|
729
729
|
constructor(e) {
|
|
730
730
|
super(), ge(
|
|
731
731
|
this,
|
|
@@ -859,7 +859,7 @@ class je extends ce {
|
|
|
859
859
|
this.$$set({ translationurl: e }), C();
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
|
-
be(
|
|
862
|
+
be(ze, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
863
863
|
export {
|
|
864
|
-
|
|
864
|
+
ze as default
|
|
865
865
|
};
|
|
@@ -14,7 +14,7 @@ var oe = (n, e, t) => new Promise((r, o) => {
|
|
|
14
14
|
}, u = (d) => d.done ? r(d.value) : Promise.resolve(d.value).then(i, l);
|
|
15
15
|
u((t = t.apply(n, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { z as se, E as Qe, a as Ye, S as $e, i as et, f as k, c as tt, s as nt, b as rt, e as z, h as _, n as le, j as y, k as it, w as ot, F as Ee, u as st, m as j, y as a, d as c, o as b, A as lt, B as at, t as D, p as M, $ as ut, r as R, x as Pe, C as ft, v as L } from "./CasinoTournamentsController-
|
|
17
|
+
import { z as se, E as Qe, a as Ye, S as $e, i as et, f as k, c as tt, s as nt, b as rt, e as z, h as _, n as le, j as y, k as it, w as ot, F as Ee, u as st, m as j, y as a, d as c, o as b, A as lt, B as at, t as D, p as M, $ as ut, r as R, x as Pe, C as ft, v as L } from "./CasinoTournamentsController-Bh0F1F9j.js";
|
|
18
18
|
function dt({ withLocale: n, translations: e }) {
|
|
19
19
|
se.subscribe((t) => {
|
|
20
20
|
t == null && (Qe.set(e), se.set(n));
|
|
@@ -120,7 +120,7 @@ if (typeof window != "undefined") {
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
};
|
|
123
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
123
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-JPADMzmC.js").then(({ default: e }) => {
|
|
124
124
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", e.element);
|
|
125
125
|
});
|
|
126
126
|
}
|
|
@@ -136,7 +136,7 @@ if (typeof window != "undefined") {
|
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
139
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-Dq6XZBFw.js").then(({ default: e }) => {
|
|
140
140
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
141
141
|
"casino-tournaments-thumbnail-duration",
|
|
142
142
|
e.element
|
|
@@ -155,7 +155,7 @@ if (typeof window != "undefined") {
|
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
158
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-ATuGyLaj.js").then(({ default: e }) => {
|
|
159
159
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", e.element);
|
|
160
160
|
});
|
|
161
161
|
}
|
|
@@ -171,7 +171,7 @@ if (typeof window != "undefined") {
|
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
174
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-DUruRKxn.js").then(
|
|
175
175
|
({ default: e }) => {
|
|
176
176
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
177
177
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -181,7 +181,7 @@ if (typeof window != "undefined") {
|
|
|
181
181
|
);
|
|
182
182
|
}
|
|
183
183
|
function mt(n) {
|
|
184
|
-
rt(n, "svelte-
|
|
184
|
+
rt(n, "svelte-1kmemyq", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;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}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}');
|
|
185
185
|
}
|
|
186
186
|
function gt(n) {
|
|
187
187
|
let e, t, r, o, i, l, u, d, h, m = (
|
|
@@ -826,7 +826,7 @@ function kt(n) {
|
|
|
826
826
|
), r, o, i, l, u, d, h, m;
|
|
827
827
|
return {
|
|
828
828
|
c() {
|
|
829
|
-
e = z("span"), r = D(t), o = j(), i = L("svg"), l = L("defs"), u = L("style"), d = D(".a{fill:var(--
|
|
829
|
+
e = z("span"), r = D(t), o = j(), i = L("svg"), l = L("defs"), u = L("style"), d = D(".a{fill:var(--emw--color-white, #FFFFFF);}"), h = L("g"), m = L("path"), c(e, "part", "JoinButtonSpan"), c(m, "class", "a"), c(m, "part", "a JoinButtonSvgA"), c(m, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"), c(m, "transform", "translate(26 26) rotate(180)"), c(h, "transform", "translate(26 26) rotate(180)"), c(i, "part", "JoinButtonSvg"), c(i, "xmlns", "http://www.w3.org/2000/svg"), c(i, "width", "26"), c(i, "height", "26"), c(i, "viewBox", "0 0 26 26");
|
|
830
830
|
},
|
|
831
831
|
m(F, E) {
|
|
832
832
|
_(F, e, E), b(e, r), _(F, o, E), _(F, i, E), b(i, l), b(l, u), b(u, d), b(i, h), b(h, m);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var X=(r,t,n)=>new Promise((s,i)=>{var o=d=>{try{u(n.next(d))}catch(h){i(h)}},l=d=>{try{u(n.throw(d))}catch(h){i(h)}},u=d=>d.done?s(d.value):Promise.resolve(d.value).then(o,l);u((n=n.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-BgOnVyOd.cjs");function Ae({withLocale:r,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function he(r,t){e.addMessages(r,t)}function Ie(r){e.$locale.set(r)}const _e={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}};if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-BqchSYJX.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-Df8PCRBm.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-CmlKwpPW.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-BqLvv5tS.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function Je(r){e.append_styles(r,"svelte-1kmemyq",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;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}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function Re(r){let t,n,s,i,o,l,u,d,h,c=r[14]&&pe(r);function g(m,f){if(!m[14])return Ne;if(m[23]!="Closed"&&m[23]!="Closing")return He;if(m[3]=="true")return qe}let k=g(r),b=k&&k(r),p=(r[17]||r[19])&&ye(r),w=r[4]=="true"&&ke(r);return{c(){t=e.element("div"),n=e.element("casino-tournaments-thumbnail"),s=e.space(),c&&c.c(),i=e.space(),o=e.element("div"),b&&b.c(),l=e.space(),p&&p.c(),u=e.space(),w&&w.c(),e.set_custom_element_data(n,"session",r[0]),e.set_custom_element_data(n,"userid",r[1]),e.set_custom_element_data(n,"title",r[20]),e.set_custom_element_data(n,"status",r[23]),e.set_custom_element_data(n,"startdate",r[21]),e.set_custom_element_data(n,"tourid",r[24]),e.set_custom_element_data(n,"scorecriteria",r[27]),e.set_custom_element_data(n,"minbetcount",r[28]),e.set_custom_element_data(n,"thumbnail",r[25]),e.set_custom_element_data(n,"showenrolled",r[5]),e.set_custom_element_data(n,"gameurl",r[30]),e.set_custom_element_data(n,"userenrolled",r[26]),e.set_custom_element_data(n,"clientstyling",r[10]),e.set_custom_element_data(n,"clientstylingurl",r[11]),e.set_custom_element_data(n,"translationurl",r[12]),e.set_custom_element_data(n,"lang",r[8]),e.set_custom_element_data(n,"keepbrowsercontext",r[9]),e.set_custom_element_data(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),e.attr(o,"class","TournamentButtons"),e.attr(o,"part","TournamentButtons"),e.attr(t,"class",d="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")),e.attr(t,"part",h="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn"))},m(m,f){e.insert(m,t,f),e.append(t,n),e.append(t,s),c&&c.m(t,null),e.append(t,i),e.append(t,o),b&&b.m(o,null),e.append(t,l),p&&p.m(t,null),e.append(t,u),w&&w.m(t,null)},p(m,f){f[0]&1&&e.set_custom_element_data(n,"session",m[0]),f[0]&2&&e.set_custom_element_data(n,"userid",m[1]),f[0]&1048576&&e.set_custom_element_data(n,"title",m[20]),f[0]&8388608&&e.set_custom_element_data(n,"status",m[23]),f[0]&2097152&&e.set_custom_element_data(n,"startdate",m[21]),f[0]&16777216&&e.set_custom_element_data(n,"tourid",m[24]),f[0]&134217728&&e.set_custom_element_data(n,"scorecriteria",m[27]),f[0]&268435456&&e.set_custom_element_data(n,"minbetcount",m[28]),f[0]&33554432&&e.set_custom_element_data(n,"thumbnail",m[25]),f[0]&32&&e.set_custom_element_data(n,"showenrolled",m[5]),f[0]&1073741824&&e.set_custom_element_data(n,"gameurl",m[30]),f[0]&67108864&&e.set_custom_element_data(n,"userenrolled",m[26]),f[0]&1024&&e.set_custom_element_data(n,"clientstyling",m[10]),f[0]&2048&&e.set_custom_element_data(n,"clientstylingurl",m[11]),f[0]&4096&&e.set_custom_element_data(n,"translationurl",m[12]),f[0]&256&&e.set_custom_element_data(n,"lang",m[8]),f[0]&512&&e.set_custom_element_data(n,"keepbrowsercontext",m[9]),m[14]?c?c.p(m,f):(c=pe(m),c.c(),c.m(t,i)):c&&(c.d(1),c=null),k===(k=g(m))&&b?b.p(m,f):(b&&b.d(1),b=k&&k(m),b&&(b.c(),b.m(o,null))),m[17]||m[19]?p?p.p(m,f):(p=ye(m),p.c(),p.m(t,u)):p&&(p.d(1),p=null),m[4]=="true"?w?w.p(m,f):(w=ke(m),w.c(),w.m(t,null)):w&&(w.d(1),w=null),f[0]&192|f[1]&1&&d!==(d="TournamentCard "+(m[6]?"CardMaxWidth":"")+(m[7]?"CardFullSize":"")+" "+(m[31]?"elementToFadeOut":"elementToFadeIn"))&&e.attr(t,"class",d),f[0]&192|f[1]&1&&h!==(h="TournamentCard "+(m[6]?"CardMaxWidth":"")+(m[7]?"CardFullSize":"")+" "+(m[31]?"elementToFadeOut":"elementToFadeIn")+" "+(m[31]?"elementToFadeOut":"elementToFadeIn"))&&e.attr(t,"part",h)},d(m){m&&e.detach(t),c&&c.d(),b&&b.d(),p&&p.d(),w&&w.d()}}}function Ue(r){let t,n,s,i;return{c(){t=e.element("div"),n=e.element("div"),n.innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> <div class="ph-col-4" part="ph-col-4"></div> <div class="ph-col-8 empty" part="ph-col-8 empty"></div> <div class="ph-col-6" part="ph-col-6"></div> <div class="ph-col-6 empty" part="ph-col-6 empty"></div> <div class="ph-col-12" part="ph-col-12"></div></div></div>',e.attr(n,"class","ph-item"),e.attr(n,"part","ph-item"),e.attr(t,"class",s="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")),e.attr(t,"part",i="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn"))},m(o,l){e.insert(o,t,l),e.append(t,n)},p(o,l){l[0]&192|l[1]&1&&s!==(s="TournamentCard "+(o[6]?"CardMaxWidth":"")+(o[7]?"CardFullSize":"")+" "+(o[31]?"elementToFadeOut":"elementToFadeIn"))&&e.attr(t,"class",s),l[0]&192|l[1]&1&&i!==(i="TournamentCard "+(o[6]?"CardMaxWidth":"")+(o[7]?"CardFullSize":"")+" "+(o[31]?"elementToFadeOut":"elementToFadeIn")+" "+(o[31]?"elementToFadeOut":"elementToFadeIn"))&&e.attr(t,"part",i)},d(o){o&&e.detach(t)}}}function pe(r){let t,n,s=r[24]&&ge(r);return{c(){s&&s.c(),t=e.space(),n=e.element("casino-tournaments-thumbnail-duration"),e.set_custom_element_data(n,"clientstyling",r[10]),e.set_custom_element_data(n,"clientstylingurl",r[11]),e.set_custom_element_data(n,"translationurl",r[12]),e.set_custom_element_data(n,"status",r[23]),e.set_custom_element_data(n,"startdate",r[21]),e.set_custom_element_data(n,"lang",r[8]),e.set_custom_element_data(n,"enddate",r[22]),e.set_custom_element_data(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(i,o){s&&s.m(i,o),e.insert(i,t,o),e.insert(i,n,o)},p(i,o){i[24]?s?s.p(i,o):(s=ge(i),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),o[0]&1024&&e.set_custom_element_data(n,"clientstyling",i[10]),o[0]&2048&&e.set_custom_element_data(n,"clientstylingurl",i[11]),o[0]&4096&&e.set_custom_element_data(n,"translationurl",i[12]),o[0]&8388608&&e.set_custom_element_data(n,"status",i[23]),o[0]&2097152&&e.set_custom_element_data(n,"startdate",i[21]),o[0]&256&&e.set_custom_element_data(n,"lang",i[8]),o[0]&4194304&&e.set_custom_element_data(n,"enddate",i[22])},d(i){i&&(e.detach(t),e.detach(n)),s&&s.d(i)}}}function ge(r){let t,n,s,i;return{c(){t=e.element("casino-tournaments-thumbnail-prizes"),e.set_custom_element_data(t,"tourid",r[24]),e.set_custom_element_data(t,"clientstyling",r[10]),e.set_custom_element_data(t,"clientstylingurl",r[11]),e.set_custom_element_data(t,"translationurl",r[12]),e.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(o,l){e.insert(o,t,l),s||(i=e.action_destroyer(n=r[37].call(null,t,r[24])),s=!0)},p(o,l){l[0]&16777216&&e.set_custom_element_data(t,"tourid",o[24]),l[0]&1024&&e.set_custom_element_data(t,"clientstyling",o[10]),l[0]&2048&&e.set_custom_element_data(t,"clientstylingurl",o[11]),l[0]&4096&&e.set_custom_element_data(t,"translationurl",o[12]),n&&e.is_function(n.update)&&l[0]&16777216&&n.update.call(null,o[24])},d(o){o&&e.detach(t),s=!1,i()}}}function qe(r){let t,n=r[32]("details")+"",s,i,o;return{c(){t=e.element("button"),s=e.text(n),e.attr(t,"class","DetailsLargeButton"),e.attr(t,"part","DetailsLargeButton")},m(l,u){e.insert(l,t,u),e.append(t,s),i||(o=e.listen(t,"click",r[51]),i=!0)},p(l,u){u[1]&2&&n!==(n=l[32]("details")+"")&&e.set_data(s,n)},d(l){l&&e.detach(t),i=!1,o()}}}function He(r){let t,n,s=r[3]=="true"&&we(r);function i(u,d){return u[26]?Ge:We}let o=i(r),l=o(r);return{c(){s&&s.c(),t=e.space(),l.c(),n=e.empty()},m(u,d){s&&s.m(u,d),e.insert(u,t,d),l.m(u,d),e.insert(u,n,d)},p(u,d){u[3]=="true"?s?s.p(u,d):(s=we(u),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(n.parentNode,n)))},d(u){u&&(e.detach(t),e.detach(n)),s&&s.d(u),l.d(u)}}}function Ne(r){let t,n=r[32]("login")+"",s,i,o,l=r[32]("register")+"",u,d,h;return{c(){t=e.element("button"),s=e.text(n),i=e.space(),o=e.element("button"),u=e.text(l),e.attr(t,"class","LoginButton"),e.attr(t,"part","LoginButton"),e.attr(o,"class","RegisterButton"),e.attr(o,"part","RegisterButton")},m(c,g){e.insert(c,t,g),e.append(t,s),e.insert(c,i,g),e.insert(c,o,g),e.append(o,u),d||(h=[e.listen(t,"click",r[47]),e.listen(o,"click",r[48])],d=!0)},p(c,g){g[1]&2&&n!==(n=c[32]("login")+"")&&e.set_data(s,n),g[1]&2&&l!==(l=c[32]("register")+"")&&e.set_data(u,l)},d(c){c&&(e.detach(t),e.detach(i),e.detach(o)),d=!1,e.run_all(h)}}}function we(r){let t,n=r[32]("details")+"",s,i,o;return{c(){t=e.element("button"),s=e.text(n),e.attr(t,"class","DetailsButton"),e.attr(t,"part","DetailsButton")},m(l,u){e.insert(l,t,u),e.append(t,s),i||(o=e.listen(t,"click",r[49]),i=!0)},p(l,u){u[1]&2&&n!==(n=l[32]("details")+"")&&e.set_data(s,n)},d(l){l&&e.detach(t),i=!1,o()}}}function We(r){let t,n,s,i,o;function l(h,c){return h[16]==!0?Xe:Ke}let u=l(r),d=u(r);return{c(){t=e.element("button"),d.c(),e.attr(t,"class",n="JoinButton "+(r[7]?"JoinButtonFullSize":"")),e.attr(t,"part",s="JoinButton "+(r[7]?"JoinButtonFullSize":"")),t.disabled=r[17]},m(h,c){e.insert(h,t,c),d.m(t,null),i||(o=e.listen(t,"click",r[50]),i=!0)},p(h,c){u===(u=l(h))&&d?d.p(h,c):(d.d(1),d=u(h),d&&(d.c(),d.m(t,null))),c[0]&128&&n!==(n="JoinButton "+(h[7]?"JoinButtonFullSize":""))&&e.attr(t,"class",n),c[0]&128&&s!==(s="JoinButton "+(h[7]?"JoinButtonFullSize":""))&&e.attr(t,"part",s),c[0]&131072&&(t.disabled=h[17])},d(h){h&&e.detach(t),d.d(),i=!1,o()}}}function Ge(r){let t,n=r[3]=="true"&&be(r);return{c(){n&&n.c(),t=e.empty()},m(s,i){n&&n.m(s,i),e.insert(s,t,i)},p(s,i){s[3]=="true"?n?n.p(s,i):(n=be(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(s){s&&e.detach(t),n&&n.d(s)}}}function Ke(r){let t,n=r[32]("join")+"",s,i,o,l,u,d,h,c;return{c(){t=e.element("span"),s=e.text(n),i=e.space(),o=e.svg_element("svg"),l=e.svg_element("defs"),u=e.svg_element("style"),d=e.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),h=e.svg_element("g"),c=e.svg_element("path"),e.attr(t,"part","JoinButtonSpan"),e.attr(c,"class","a"),e.attr(c,"part","a JoinButtonSvgA"),e.attr(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),e.attr(c,"transform","translate(26 26) rotate(180)"),e.attr(h,"transform","translate(26 26) rotate(180)"),e.attr(o,"part","JoinButtonSvg"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","26"),e.attr(o,"height","26"),e.attr(o,"viewBox","0 0 26 26")},m(g,k){e.insert(g,t,k),e.append(t,s),e.insert(g,i,k),e.insert(g,o,k),e.append(o,l),e.append(l,u),e.append(u,d),e.append(o,h),e.append(h,c)},p(g,k){k[1]&2&&n!==(n=g[32]("join")+"")&&e.set_data(s,n)},d(g){g&&(e.detach(t),e.detach(i),e.detach(o))}}}function Xe(r){let t,n;return{c(){t=e.svg_element("svg"),n=e.svg_element("circle"),e.attr(n,"cx","20"),e.attr(n,"cy","20"),e.attr(n,"r","18"),e.attr(t,"class","spinner"),e.attr(t,"part","spinner")},m(s,i){e.insert(s,t,i),e.append(t,n)},p:e.noop,d(s){s&&e.detach(t)}}}function be(r){let t,n=r[32]("enrolled")+"",s;return{c(){t=e.element("button"),s=e.text(n),e.attr(t,"class","EnrolledButton"),e.attr(t,"part","EnrolledButton"),t.disabled=!0},m(i,o){e.insert(i,t,o),e.append(t,s)},p(i,o){o[1]&2&&n!==(n=i[32]("enrolled")+"")&&e.set_data(s,n)},d(i){i&&e.detach(t)}}}function ye(r){let t,n=r[32]("joinerror")+"",s,i,o;return{c(){t=e.element("span"),s=e.text(n),i=e.space(),o=e.text(r[18]),e.attr(t,"class","ErrorText"),e.attr(t,"part","ErrorText")},m(l,u){e.insert(l,t,u),e.append(t,s),e.append(t,i),e.append(t,o)},p(l,u){u[1]&2&&n!==(n=l[32]("joinerror")+"")&&e.set_data(s,n),u[0]&262144&&e.set_data(o,l[18])},d(l){l&&e.detach(t)}}}function ke(r){let t;return{c(){t=e.element("casino-tournaments-thumbnail-games-slider"),e.set_custom_element_data(t,"clientstyling",r[10]),e.set_custom_element_data(t,"clientstylingurl",r[11]),e.set_custom_element_data(t,"translationurl",r[12]),e.set_custom_element_data(t,"tournamenturl",r[2]),e.set_custom_element_data(t,"lang",r[8]),e.set_custom_element_data(t,"scrollby","2"),e.set_custom_element_data(t,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&1024&&e.set_custom_element_data(t,"clientstyling",n[10]),s[0]&2048&&e.set_custom_element_data(t,"clientstylingurl",n[11]),s[0]&4096&&e.set_custom_element_data(t,"translationurl",n[12]),s[0]&4&&e.set_custom_element_data(t,"tournamenturl",n[2]),s[0]&256&&e.set_custom_element_data(t,"lang",n[8])},d(n){n&&e.detach(t)}}}function Ve(r){let t;function n(o,l){if(o[15])return Ue;if(o[20])return Re}let s=n(r),i=s&&s(r);return{c(){t=e.element("div"),i&&i.c()},m(o,l){e.insert(o,t,l),i&&i.m(t,null),r[52](t)},p(o,l){s===(s=n(o))&&i?i.p(o,l):(i&&i.d(1),i=s&&s(o),i&&(i.c(),i.m(t,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(t),i&&i.d(),r[52](null)}}}function Ze(r,t,n){let s;e.component_subscribe(r,e.$format,a=>n(32,s=a));let{session:i=""}=t,{userid:o=""}=t,{tournamenturl:l=""}=t,{touridx:u}=t,{endpoint:d=""}=t,{showdetails:h=""}=t,{showslider:c=""}=t,{showenrolled:g=""}=t,{maxwidth:k=""}=t,{fullsize:b=""}=t,{lang:p=""}=t,{loginevent:w=""}=t,{registerevent:m=""}=t,{loginurl:f=""}=t,{registerurl:j=""}=t,{currency:R=""}=t,{keepbrowsercontext:V="false"}=t,{clientstyling:D=""}=t,{clientstylingurl:M=""}=t,{translationurl:P=""}=t,{tournamentinfo:O}=t,T,C=!1,L="",E=!0,Z=window.navigator.userAgent,x=!1,A=!1,Q="There was an error while trying to join the tournament",U=!1,Y,$,ee,S,v,te,q,ne,re,se=[],H=[],oe="#",N,I=!1;Ae({withLocale:"en",translations:{}});const ve=()=>{fetch(P).then(_=>_.json()).then(_=>{Object.keys(_).forEach(y=>{he(y,_[y])})}).catch(_=>{console.log(_)})};Object.keys(_e).forEach(a=>{he(a,_e[a])});const ie=a=>{Te(a),G(a),de(this,v)},ae=a=>{if(a.data&&a.data.type=="UserSessionID"&&(n(14,C=!0),L=a.data.session),a.data.type=="UpdateTournamentView"){let _=a.data.tournamentData;if(v&&v!=_.id)return;ie(_)}if(a.data&&a.data.type==`UpdateSingleTournament_${u}`){let _=a.data.tournamentData,y=u<4?u*100:Math.random()*300+300;n(31,I=u==1),setTimeout(()=>{n(31,I=!0),n(24,v=_.id),ie(_)},y),setTimeout(()=>{n(31,I=!1)},y+200)}},Te=a=>{a.state!=S&&(n(23,S=a.state),window.postMessage({type:`TournamentStatus_${v}`,status:S},window.location.href))},le=()=>{w&&(window.postMessage({type:w,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),f&&(window.location=f)},ue=()=>{m&&(window.postMessage({type:m,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),j&&(window.location=j)},W=a=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:a,showLeaderboard:!0},window.location.href)},me=(a,_)=>X(this,null,function*(){var fe;n(17,A=!1),n(19,U=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:a},window.location.href),n(16,x=!0);let y=new URL(`${d}/v1/bonus/claim`),J=new Headers,z={};y.searchParams.append("language",p),y.searchParams.append("platform",e.getDevice(Z)),J.append("Content-Type","application/json"),J.append("X-SessionID",L),_&&_.length>=1&&(z={language:p,bonusCode:_[0].code,currency:R,type:"tournament"});let xe={method:"PUT",headers:J,body:JSON.stringify(z)};const ce=()=>{n(16,x=!1),n(26,q=!0)},K=F=>{n(16,x=!1),F&&n(18,Q=F),n(17,A=!0)},B=yield X(this,null,function*(){let F;try{F=yield fetch(y,xe),F=yield F.json()}catch(Ye){K()}return F});if(B)if(B.success==!0)ce();else if(B.errorMessage.match("VersionMismatchException")){let F;F=yield fetch(`${d}/tournaments/${v}`,{headers:{"X-SessionID":i}}),F=yield F.json(),(fe=F==null?void 0:F.item)!=null&&fe.playerEnrolled?ce():(K(B.errorMessage),n(19,U=!0),n(17,A=!1))}else K(B.errorMessage)}),de=(a,_)=>{window.postMessage({type:`TournamentPrizes_${_}`,prizes:se},window.location.href)},G=a=>{a&&(n(20,Y=a.nameOrTitle||""),n(21,$=a.startTime),n(22,ee=a.endTime),n(23,S=a.state),n(24,v=a.id),n(25,te=a.thumbnail),n(26,q=a.playerEnrolled==="true"||a.playerEnrolled==!0||!1),n(27,ne=a.scoreCriteria),n(28,re=a.minBetCount),se=a.prizes,n(29,H=a.wallets||[]),n(30,oe=a.termsUrl||"#"))},ze=a=>{n(15,E=!0);let _=new URL(a),y=new Headers;_.searchParams.append("language",p),_.searchParams.append("platform",e.getDevice(Z)),C&&y.append("X-SessionID",L),fetch(_,{method:"GET",headers:y}).then(z=>z.json()).then(z=>{n(15,E=!1),G(z.item)})},Ce=()=>{i.length>0&&i!="false"?(L=i,n(14,C=!0)):n(14,C=!1)},Ee=()=>{if(O){G(O);return}n(15,E=!0),ze(l)},Se=()=>{let a=document.createElement("style");a.innerHTML=D,T.appendChild(a)},Be=()=>{let a=new URL(M),_=document.createElement("style");fetch(a.href).then(y=>y.text()).then(y=>{_.innerHTML=y,setTimeout(()=>{T.appendChild(_)},1),setTimeout(()=>{},500)})};e.onMount(()=>(n(15,E=!1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ae,!1),()=>{window.removeEventListener("message",ae)}));const je=()=>le(),De=()=>ue(),Me=()=>W(v),Pe=()=>me(v,H),Oe=()=>W(v);function Le(a){e.binding_callbacks[a?"unshift":"push"](()=>{T=a,n(13,T)})}return r.$$set=a=>{"session"in a&&n(0,i=a.session),"userid"in a&&n(1,o=a.userid),"tournamenturl"in a&&n(2,l=a.tournamenturl),"touridx"in a&&n(38,u=a.touridx),"endpoint"in a&&n(39,d=a.endpoint),"showdetails"in a&&n(3,h=a.showdetails),"showslider"in a&&n(4,c=a.showslider),"showenrolled"in a&&n(5,g=a.showenrolled),"maxwidth"in a&&n(6,k=a.maxwidth),"fullsize"in a&&n(7,b=a.fullsize),"lang"in a&&n(8,p=a.lang),"loginevent"in a&&n(40,w=a.loginevent),"registerevent"in a&&n(41,m=a.registerevent),"loginurl"in a&&n(42,f=a.loginurl),"registerurl"in a&&n(43,j=a.registerurl),"currency"in a&&n(44,R=a.currency),"keepbrowsercontext"in a&&n(9,V=a.keepbrowsercontext),"clientstyling"in a&&n(10,D=a.clientstyling),"clientstylingurl"in a&&n(11,M=a.clientstylingurl),"translationurl"in a&&n(12,P=a.translationurl),"tournamentinfo"in a&&n(45,O=a.tournamentinfo)},r.$$.update=()=>{r.$$.dirty[0]&256&&p&&Ie(p),r.$$.dirty[0]&9216&&T&&D&&Se(),r.$$.dirty[0]&10240&&T&&M&&Be(),r.$$.dirty[0]&4096&&P&&ve(),r.$$.dirty[0]&1&&i&&Ce(),r.$$.dirty[0]&260&&n(46,N=l&&p),r.$$.dirty[1]&32768&&N&&Ee()},[i,o,l,h,c,g,k,b,p,V,D,M,P,T,C,E,x,A,Q,U,Y,$,ee,S,v,te,q,ne,re,H,oe,I,s,le,ue,W,me,de,u,d,w,m,f,j,R,O,N,je,De,Me,Pe,Oe,Le]}class Fe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ze,Ve,e.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:38,endpoint:39,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:40,registerevent:41,loginurl:42,registerurl:43,currency:44,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:45},Je,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),e.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),e.flush()}get touridx(){return this.$$.ctx[38]}set touridx(t){this.$$set({touridx:t}),e.flush()}get endpoint(){return this.$$.ctx[39]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),e.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),e.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),e.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),e.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),e.flush()}get loginevent(){return this.$$.ctx[40]}set loginevent(t){this.$$set({loginevent:t}),e.flush()}get registerevent(){return this.$$.ctx[41]}set registerevent(t){this.$$set({registerevent:t}),e.flush()}get loginurl(){return this.$$.ctx[42]}set loginurl(t){this.$$set({loginurl:t}),e.flush()}get registerurl(){return this.$$.ctx[43]}set registerurl(t){this.$$set({registerurl:t}),e.flush()}get currency(){return this.$$.ctx[44]}set currency(t){this.$$set({currency:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get tournamentinfo(){return this.$$.ctx[45]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),e.flush()}}e.create_custom_element(Fe,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);exports.default=Fe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-BgOnVyOd.cjs");function C(i,e){t.addMessages(i,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}};function L(i){t.append_styles(i,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(i){let e,n,a=i[10](i[0])+"",l,u,o,d=i[10](i[1])+"",g,T,y,h,b,v,S;function P(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?U:O}let w=P(i),m=w(i);function B(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return H;if(s[5]>0)return A;if(s[4]>0)return q}let D=B(i),f=D&&D(i);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),T=t.space(),y=t.element("div"),h=t.element("div"),m.c(),b=t.space(),f&&f.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(h,"class","ProgressBar"),t.attr(h,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,T,_),t.insert(s,y,_),t.append(y,h),m.m(h,null),t.append(h,b),f&&f.m(h,null),v||(S=t.action_destroyer(i[9].call(null,y)),v=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),w===(w=P(s))&&m?m.p(s,_):(m.d(1),m=w(s),m&&(m.c(),m.m(h,b))),D===(D=B(s))&&f?f.p(s,_):(f&&f.d(1),f=D&&D(s),f&&(f.c(),f.m(h,null)))},d(s){s&&(t.detach(e),t.detach(T),t.detach(y)),m.d(),f&&f.d(),v=!1,S()}}}function O(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",i[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function U(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function q(i){let e,n,a,l=i[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(i[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(i){let e,n=i[8]("starting")+"",a,l,u=i[11](i[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,g){t.insert(d,e,g),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function H(i){let e,n=i[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function W(i){let e,n=i[0]&&i[1]&&E(i);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),i[16](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),i[16](null)}}}function G(i,e,n){let a,l;t.component_subscribe(i,t.$format,r=>n(8,l=r));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:T=""}=e,{clientstylingurl:y=""}=e,{translationurl:h=""}=e,b,v="",S="",P="";const w=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(p=>{C(p,c[p])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(r=>{C(r,M[r])});const m=r=>new Date(r).getTime(),B=(r,c)=>(m(c)-m(r))/(1e3*60),D=()=>{const r=new Date;n(4,v=B(r,o)),n(5,S=B(r,u)),n(6,P=s(v))},f=r=>{const c={month:"long"};let p=new Date(r),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=r=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(r<1440){const k=r/60,F=r%60,x=(F-Math.floor(F))*60;return[k,F,x].map(I=>p(I)).join(":")}return c(Math.ceil(r/(60*24)),"days")},_=()=>{let r=document.createElement("style");r.innerHTML=T,b.appendChild(r)},R=()=>{let r=new URL(y),c=document.createElement("style");fetch(r.href).then(p=>p.text()).then(p=>{c.innerHTML=p,setTimeout(()=>{b.appendChild(c)},1),setTimeout(()=>{},500)})};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const r=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(r)});function j(r){t.binding_callbacks[r?"unshift":"push"](()=>{b=r,n(3,b)})}return i.$$set=r=>{"startdate"in r&&n(0,u=r.startdate),"enddate"in r&&n(1,o=r.enddate),"status"in r&&n(2,d=r.status),"lang"in r&&n(12,g=r.lang),"clientstyling"in r&&n(13,T=r.clientstyling),"clientstylingurl"in r&&n(14,y=r.clientstylingurl),"translationurl"in r&&n(15,h=r.translationurl)},i.$$.update=()=>{i.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const r=B(u,o),c=100/r;return Math.floor((r-v)*c)}),i.$$.dirty&19&&u&&o&&D()&&s(v),i.$$.dirty&4096&&g&&D(),i.$$.dirty&4112&&g&&s(v),i.$$.dirty&32768&&h&&w(),i.$$.dirty&8200&&b&&T&&_(),i.$$.dirty&16392&&b&&y&&R()},[u,o,d,b,v,S,P,a,l,D,f,s,g,T,y,h,j]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,G,W,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},L)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(z,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=z;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, d as l, h as T, n as U, j as B, k as X, w as $, t as E, m as L, o as h, A as tt, p as M, u as et, D as A, $ as nt } from "./CasinoTournamentsController-
|
|
1
|
+
import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, d as l, h as T, n as U, j as B, k as X, w as $, t as E, m as L, o as h, A as tt, p as M, u as et, D as A, $ as nt } from "./CasinoTournamentsController-Bh0F1F9j.js";
|
|
2
2
|
function N(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
@@ -85,7 +85,7 @@ const O = {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
function it(i) {
|
|
88
|
-
V(i, "svelte-
|
|
88
|
+
V(i, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
89
89
|
}
|
|
90
90
|
function H(i) {
|
|
91
91
|
let t, e, s = (
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-BgOnVyOd.cjs");function U(t,r){e.addMessages(t,r)}const q={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"}};function ie(t){e.append_styles(t,"svelte-xgd67c","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.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:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}")}function D(t,r,n){const i=t.slice();return i[50]=r[n],i[52]=n,i}function I(t){let r,n,i,d,m,p,_,s,y,w,g=e.ensure_array_like(t[1]),c=[];for(let a=0;a<g.length;a+=1)c[a]=W(D(t,g,a));return{c(){r=e.element("div"),n=e.element("div"),n.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=e.space(),d=e.element("main"),m=e.element("div");for(let a=0;a<c.length;a+=1)c[a].c();_=e.space(),s=e.element("div"),s.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(m,"class","items"),e.attr(m,"part","items"),e.set_style(m,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[28].call(d)),e.attr(s,"class","SliderNavButton"),e.attr(s,"part","SliderNavButton"),e.toggle_class(s,"disabled",t[9]),e.attr(r,"class","TournamentsGamesSlider"),e.attr(r,"part","TournamentsGamesSlider")},m(a,b){e.insert(a,r,b),e.append(r,n),e.append(r,i),e.append(r,d),e.append(d,m);for(let o=0;o<c.length;o+=1)c[o]&&c[o].m(m,null);t[27](m),p=e.add_iframe_resize_listener(d,t[28].bind(d)),e.append(r,_),e.append(r,s),t[30](r),y||(w=[e.listen(n,"click",t[23]),e.listen(s,"click",t[29])],y=!0)},p(a,b){if(b[0]&256&&e.toggle_class(n,"disabled",a[8]),b[0]&23650){g=e.ensure_array_like(a[1]);let o;for(o=0;o<g.length;o+=1){const v=D(a,g,o);c[o]?c[o].p(v,b):(c[o]=W(v),c[o].c(),c[o].m(m,null))}for(;o<c.length;o+=1)c[o].d(1);c.length=g.length}b[0]&4&&e.set_style(m,"transform","translateX("+a[2]+"px)"),b[0]&512&&e.toggle_class(s,"disabled",a[9])},d(a){a&&e.detach(r),e.destroy_each(c,a),t[27](null),p(),t[30](null),y=!1,e.run_all(w)}}}function W(t){let r,n,i=t[10]("playNow")+"",d,m,p,_,s,y,w,g,c,a,b;function o(){return t[24](t[50])}function v(){return t[25](t[52])}return{c(){r=e.element("div"),n=e.element("span"),d=e.text(i),_=e.space(),s=e.element("img"),c=e.space(),e.attr(n,"class",m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.attr(n,"part",p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.src_url_equal(s.src,y=t[50].thumbnail)||e.attr(s,"src",y),e.attr(s,"width","132px"),e.attr(s,"height","100px"),e.attr(s,"alt",w=t[50].name),e.attr(s,"title",g=t[50].name),e.attr(r,"class","item"),e.attr(r,"part","item")},m(u,h){e.insert(u,r,h),e.append(r,n),e.append(n,d),e.append(r,_),e.append(r,s),e.append(r,c),a||(b=[e.listen(r,"click",o),e.listen(r,"mouseenter",v),e.listen(r,"mouseleave",t[26])],a=!0)},p(u,h){t=u,h[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),h[0]&96&&m!==(m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"class",m),h[0]&96&&p!==(p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"part",p),h[0]&2&&!e.src_url_equal(s.src,y=t[50].thumbnail)&&e.attr(s,"src",y),h[0]&2&&w!==(w=t[50].name)&&e.attr(s,"alt",w),h[0]&2&&g!==(g=t[50].name)&&e.attr(s,"title",g)},d(u){u&&e.detach(r),a=!1,e.run_all(b)}}}function oe(t){let r,n=t[1]&&t[1].length>0&&I(t);return{c(){r=e.element("div"),n&&n.c()},m(i,d){e.insert(i,r,d),n&&n.m(r,null),t[31](r)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=I(i),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(r),n&&n.d(),t[31](null)}}}let ce=30;function ue(t,r,n){let i,d,m;e.component_subscribe(t,e.$format,l=>n(10,m=l));let{tournamenturl:p=""}=r,{scrollby:_="3"}=r,{pagfactor:s="175"}=r,{lang:y=""}=r,{translationurl:w=""}=r,{clientstyling:g=""}=r,{clientstylingurl:c=""}=r,a,b=window.navigator.userAgent,o,v=[],u=0,h,P=null,B=null,E=!1,L,T,M=0,N;const O=()=>{fetch(w).then(f=>f.json()).then(f=>{Object.keys(f).forEach(k=>{U(k,f[k])})}).catch(f=>{console.log(f)})};Object.keys(q).forEach(l=>{U(l,q[l])});const C=l=>{n(5,E=!0),n(6,L=l)},j=()=>{n(5,E=!1),n(6,L=-1)},R=l=>l.touches||l.originalEvent.touches,H=l=>{const f=R(l)[0];P=f.clientX,B=f.clientY},z=l=>{if(!P||!B)return;let f=l.touches[0].clientX,k=l.touches[0].clientY,S=P-f,se=B-k;Math.abs(S)>Math.abs(se)&&(S>0?F(1):F(-1)),P=null,B=null},F=l=>{l>0&&!d?(n(2,u-=o),n(2,u=u<M?M:u)):l<0&&!i&&(n(2,u+=o),n(2,u=u>0?0:u))},A=l=>{window.postMessage({type:"TournamentGameAction",gameId:l.id,name:l.name,launchUrl:l.launchUrl},window.location.href)},X=()=>{let l=new URL(p),f=new Headers;l.searchParams.append("expand","games"),l.searchParams.append("pagination",`games(limit=${ce},offset=${u})`),l.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),l.searchParams.append("language",y),l.searchParams.append("platform",e.getDevice(b)),fetch(l,{method:"GET",headers:f}).then(S=>S.json()).then(S=>{n(1,v=S.item.games.items),S.item.games.total})},J=()=>{h.addEventListener("touchstart",H,{passive:!0}),h.addEventListener("touchmove",z,{passive:!0})},x=()=>{setTimeout(()=>{n(22,M=(T.scrollWidth-T.clientWidth)*-1),n(16,s=new String(T.scrollWidth/v.length)),o=parseInt(_,10)*parseFloat(s,2).toFixed(2)},1e3)},Y=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},Z=()=>{let l=new URL(c),f=document.createElement("style");fetch(l.href).then(k=>k.text()).then(k=>{f.innerHTML=k,setTimeout(()=>{a.appendChild(f)},1),setTimeout(()=>{},500)})},K=()=>{N>0&&N<Math.floor((parseInt(_)+1)*s)&&n(15,_=Math.ceil(N/s).toString())};e.onMount(()=>(o=parseInt(_,10)*parseInt(s,10),()=>{h.removeEventListener("touchstart",H),h.removeEventListener("touchmove",z)}));const Q=()=>F(-1),V=l=>A(l),$=l=>C(l),ee=()=>j();function te(l){e.binding_callbacks[l?"unshift":"push"](()=>{T=l,n(7,T)})}function ne(){N=this.clientWidth,n(4,N)}const le=()=>F(1);function re(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,n(3,h)})}function ae(l){e.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(0,a)})}return t.$$set=l=>{"tournamenturl"in l&&n(17,p=l.tournamenturl),"scrollby"in l&&n(15,_=l.scrollby),"pagfactor"in l&&n(16,s=l.pagfactor),"lang"in l&&n(18,y=l.lang),"translationurl"in l&&n(19,w=l.translationurl),"clientstyling"in l&&n(20,g=l.clientstyling),"clientstylingurl"in l&&n(21,c=l.clientstylingurl)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=u===0),t.$$.dirty[0]&4194308&&n(9,d=u<=M),t.$$.dirty[0]&16&&N&&K(),t.$$.dirty[0]&131072&&p&&X(),t.$$.dirty[0]&8&&h&&J(),t.$$.dirty[0]&524288&&w&&O(),t.$$.dirty[0]&2&&v.length&&x(),t.$$.dirty[0]&1048577&&g&&a&&Y(),t.$$.dirty[0]&2097153&&c&&a&&Z()},n(2,u=0),[a,v,u,h,N,E,L,T,i,d,m,C,j,F,A,_,s,p,y,w,g,c,M,Q,V,$,ee,te,ne,le,re,ae]}class G extends e.SvelteComponent{constructor(r){super(),e.init(this,r,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},ie,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(r){this.$$set({tournamenturl:r}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(r){this.$$set({scrollby:r}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(r){this.$$set({pagfactor:r}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(r){this.$$set({lang:r}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(r){this.$$set({translationurl:r}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(r){this.$$set({clientstyling:r}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),e.flush()}}e.create_custom_element(G,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=G;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke, f as M, c as Ne, s as Se, b as Te, e as S, h as I, n as X, j as G, k as Fe, w as Me, l as x, m as z, d as c, G as C, D as Y, H as Be, o as v, I as Ee, r as L, q as Pe, C as te, t as Le, J as Z, p as He, F as je, u as D, $ as Ce } from "./CasinoTournamentsController-
|
|
1
|
+
import { a as be, S as ve, i as ke, f as M, c as Ne, s as Se, b as Te, e as S, h as I, n as X, j as G, k as Fe, w as Me, l as x, m as z, d as c, G as C, D as Y, H as Be, o as v, I as Ee, r as L, q as Pe, C as te, t as Le, J as Z, p as He, F as je, u as D, $ as Ce } from "./CasinoTournamentsController-Bh0F1F9j.js";
|
|
2
2
|
function K(e, l) {
|
|
3
3
|
be(e, l);
|
|
4
4
|
}
|
|
@@ -32,7 +32,7 @@ const Q = {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
function ze(e) {
|
|
35
|
-
Te(e, "svelte-
|
|
35
|
+
Te(e, "svelte-xgd67c", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.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:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}");
|
|
36
36
|
}
|
|
37
37
|
function V(e, l, t) {
|
|
38
38
|
const a = e.slice();
|