@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
|
@@ -14,7 +14,7 @@ var ae = (r, e, t) => new Promise((n, o) => {
|
|
|
14
14
|
}, f = (m) => m.done ? n(m.value) : Promise.resolve(m.value).then(s, a);
|
|
15
15
|
f((t = t.apply(r, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import {
|
|
17
|
+
import { $ as ue, y as Ve, z as Ze, S as Qe, i as Ye, s as $e, f as _, a as et, n as Y, d as w, A as l, h as g, b, c as T, e as F, g as B, B as tt, o as nt, C as Ce, p as rt, D as fe, m as it, k as D, t as C, E as ot, l as x, r as me, q as L, u as st, v as lt, w as at, x as ut, F as ft } from "./CasinoTournamentsPageController-DpQc24NO.js";
|
|
18
18
|
function mt({ withLocale: r, translations: e }) {
|
|
19
19
|
ue.subscribe((t) => {
|
|
20
20
|
t == null && (Ve.set(e), ue.set(r));
|
|
@@ -128,7 +128,7 @@ if (typeof window != "undefined") {
|
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
131
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-APr-Vv-a.js").then(({ default: e }) => {
|
|
132
132
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", e.element);
|
|
133
133
|
});
|
|
134
134
|
}
|
|
@@ -144,7 +144,7 @@ if (typeof window != "undefined") {
|
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
147
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-DBcYG30e.js").then(({ default: e }) => {
|
|
148
148
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
149
149
|
"casino-tournaments-thumbnail-duration",
|
|
150
150
|
e.element
|
|
@@ -163,7 +163,7 @@ if (typeof window != "undefined") {
|
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
};
|
|
166
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
166
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-BrzBc2fg.js").then(({ default: e }) => {
|
|
167
167
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", e.element);
|
|
168
168
|
});
|
|
169
169
|
}
|
|
@@ -179,7 +179,7 @@ if (typeof window != "undefined") {
|
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
182
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-BlwqKAP6.js").then(
|
|
183
183
|
({ default: e }) => {
|
|
184
184
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
185
185
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -435,7 +435,7 @@ function pt(r) {
|
|
|
435
435
|
e = F("button"), n = C(t), g(e, "class", "DetailsLargeButton"), g(e, "part", "DetailsLargeButton");
|
|
436
436
|
},
|
|
437
437
|
m(a, f) {
|
|
438
|
-
b(a, e, f), T(e, n), o || (s =
|
|
438
|
+
b(a, e, f), T(e, n), o || (s = x(e, "click", function() {
|
|
439
439
|
me(
|
|
440
440
|
/*detailsAction*/
|
|
441
441
|
r[36].bind(
|
|
@@ -502,13 +502,13 @@ function bt(r) {
|
|
|
502
502
|
},
|
|
503
503
|
m(h, u) {
|
|
504
504
|
b(h, e, u), T(e, n), b(h, o, u), b(h, s, u), T(s, f), m || (p = [
|
|
505
|
-
|
|
505
|
+
x(
|
|
506
506
|
e,
|
|
507
507
|
"click",
|
|
508
508
|
/*loginAction*/
|
|
509
509
|
r[34]
|
|
510
510
|
),
|
|
511
|
-
|
|
511
|
+
x(
|
|
512
512
|
s,
|
|
513
513
|
"click",
|
|
514
514
|
/*registerAction*/
|
|
@@ -538,7 +538,7 @@ function Ae(r) {
|
|
|
538
538
|
e = F("button"), n = C(t), g(e, "class", "DetailsButton"), g(e, "part", "DetailsButton");
|
|
539
539
|
},
|
|
540
540
|
m(a, f) {
|
|
541
|
-
b(a, e, f), T(e, n), o || (s =
|
|
541
|
+
b(a, e, f), T(e, n), o || (s = x(e, "click", function() {
|
|
542
542
|
me(
|
|
543
543
|
/*detailsAction*/
|
|
544
544
|
r[36].bind(
|
|
@@ -580,7 +580,7 @@ function kt(r) {
|
|
|
580
580
|
r[18];
|
|
581
581
|
},
|
|
582
582
|
m(p, h) {
|
|
583
|
-
b(p, e, h), m.m(e, null), o || (s =
|
|
583
|
+
b(p, e, h), m.m(e, null), o || (s = x(
|
|
584
584
|
e,
|
|
585
585
|
"click",
|
|
586
586
|
/*click_handler*/
|
|
@@ -714,7 +714,7 @@ function Ie(r) {
|
|
|
714
714
|
function Oe(r) {
|
|
715
715
|
let e, t, n = (
|
|
716
716
|
/*isLoading*/
|
|
717
|
-
r[16] &&
|
|
717
|
+
r[16] && Re()
|
|
718
718
|
);
|
|
719
719
|
return {
|
|
720
720
|
c() {
|
|
@@ -755,7 +755,7 @@ function Oe(r) {
|
|
|
755
755
|
},
|
|
756
756
|
p(o, s) {
|
|
757
757
|
/*isLoading*/
|
|
758
|
-
o[16] ? n || (n =
|
|
758
|
+
o[16] ? n || (n = Re(), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), s[0] & /*clientstyling*/
|
|
759
759
|
1024 && l(
|
|
760
760
|
t,
|
|
761
761
|
"clientstyling",
|
|
@@ -798,7 +798,7 @@ function Oe(r) {
|
|
|
798
798
|
}
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function Re(r) {
|
|
802
802
|
let e;
|
|
803
803
|
return {
|
|
804
804
|
c() {
|
|
@@ -1060,10 +1060,10 @@ function Ft(r) {
|
|
|
1060
1060
|
function vt(r, e, t) {
|
|
1061
1061
|
let n;
|
|
1062
1062
|
tt(r, ft, (i) => t(33, n = i));
|
|
1063
|
-
let { session: o = "" } = e, { userid: s = "" } = e, { tournamenturl: a = "" } = e, { touridx: f } = e, { endpoint: m = "" } = e, { showdetails: p = "" } = e, { showslider: h = "" } = e, { showenrolled: u = "" } = e, { maxwidth: d = "" } = e, { fullsize: v = "" } = e, { lang: c = "" } = e, { loginevent: k = "" } = e, { registerevent:
|
|
1063
|
+
let { session: o = "" } = e, { userid: s = "" } = e, { tournamenturl: a = "" } = e, { touridx: f } = e, { endpoint: m = "" } = e, { showdetails: p = "" } = e, { showslider: h = "" } = e, { showenrolled: u = "" } = e, { maxwidth: d = "" } = e, { fullsize: v = "" } = e, { lang: c = "" } = e, { loginevent: k = "" } = e, { registerevent: J = "" } = e, { detailsevent: de = "" } = e, { loginurl: U = "" } = e, { registerurl: N = "" } = e, { currency: $ = "" } = e, { keepbrowsercontext: ce = "false" } = e, { clientstyling: H = "" } = e, { clientstylingurl: q = "" } = e, { translationurl: G = "" } = e, { tournamentinfo: W } = e, { mbsource: K } = e, { tournamentid: ee } = e, E, xe, A = !1, X = "", M = !0, ge = window.navigator.userAgent, V = !1, Z = !1, he = "There was an error while trying to join the tournament", te = !1, ne, pe, we, I, j, be, re, ke, _e, ye = [], ie = [], Te = "#", Q = !1;
|
|
1064
1064
|
mt({ withLocale: "en", translations: {} });
|
|
1065
|
-
const
|
|
1066
|
-
fetch(
|
|
1065
|
+
const Je = () => {
|
|
1066
|
+
fetch(G).then((y) => y.json()).then((y) => {
|
|
1067
1067
|
Object.keys(y).forEach((S) => {
|
|
1068
1068
|
De(S, y[S]);
|
|
1069
1069
|
});
|
|
@@ -1075,7 +1075,7 @@ function vt(r, e, t) {
|
|
|
1075
1075
|
De(i, Le[i]);
|
|
1076
1076
|
});
|
|
1077
1077
|
const Fe = (i) => {
|
|
1078
|
-
|
|
1078
|
+
Ue(i), oe(i), Se(this, j);
|
|
1079
1079
|
}, ve = (i) => {
|
|
1080
1080
|
if (i.data && i.data.type == "UserSessionID" && (t(15, A = !0), X = i.data.session, Be(m)), i.data.type == "UpdateTournamentView") {
|
|
1081
1081
|
let y = i.data.tournamentData;
|
|
@@ -1097,7 +1097,7 @@ function vt(r, e, t) {
|
|
|
1097
1097
|
S + 200
|
|
1098
1098
|
);
|
|
1099
1099
|
}
|
|
1100
|
-
},
|
|
1100
|
+
}, Ue = (i) => {
|
|
1101
1101
|
i.state != I && (t(24, I = i.state), window.postMessage(
|
|
1102
1102
|
{
|
|
1103
1103
|
type: `TournamentStatus_${j}`,
|
|
@@ -1105,21 +1105,21 @@ function vt(r, e, t) {
|
|
|
1105
1105
|
},
|
|
1106
1106
|
window.location.href
|
|
1107
1107
|
));
|
|
1108
|
-
},
|
|
1108
|
+
}, Ne = () => {
|
|
1109
1109
|
k && (window.postMessage({ type: k, transition: "Login" }, window.location.href), typeof gtag == "function" && gtag("event", "OpenLoginModal", {
|
|
1110
1110
|
context: "TournamentsThumbnailController"
|
|
1111
|
-
})),
|
|
1111
|
+
})), U && (window.location = U);
|
|
1112
1112
|
}, He = () => {
|
|
1113
|
-
|
|
1113
|
+
J && (window.postMessage(
|
|
1114
1114
|
{
|
|
1115
|
-
type:
|
|
1115
|
+
type: J,
|
|
1116
1116
|
transition: "Register"
|
|
1117
1117
|
},
|
|
1118
1118
|
window.location.href
|
|
1119
1119
|
), typeof gtag == "function" && gtag("event", "OpenRegisterModal", {
|
|
1120
1120
|
context: "TournamentsThumbnailController"
|
|
1121
|
-
})),
|
|
1122
|
-
},
|
|
1121
|
+
})), N && (window.location = N);
|
|
1122
|
+
}, qe = (i) => {
|
|
1123
1123
|
window.postMessage(
|
|
1124
1124
|
{
|
|
1125
1125
|
type: "TournamentDetailsClicked",
|
|
@@ -1153,7 +1153,7 @@ function vt(r, e, t) {
|
|
|
1153
1153
|
t(17, V = !1), t(27, re = !0);
|
|
1154
1154
|
}, le = (z) => {
|
|
1155
1155
|
t(17, V = !1), z && t(19, he = z), t(18, Z = !0);
|
|
1156
|
-
},
|
|
1156
|
+
}, R = yield ae(this, null, function* () {
|
|
1157
1157
|
let z;
|
|
1158
1158
|
try {
|
|
1159
1159
|
z = yield fetch(S, O), z = yield z.json();
|
|
@@ -1162,14 +1162,14 @@ function vt(r, e, t) {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
return z;
|
|
1164
1164
|
});
|
|
1165
|
-
if (
|
|
1166
|
-
if (
|
|
1165
|
+
if (R)
|
|
1166
|
+
if (R.success == !0)
|
|
1167
1167
|
Ee();
|
|
1168
|
-
else if (
|
|
1168
|
+
else if (R.errorMessage.match("VersionMismatchException")) {
|
|
1169
1169
|
let z;
|
|
1170
|
-
z = yield fetch(`${m}/tournaments/${j}`, { headers: { "X-SessionID": o } }), z = yield z.json(), (je = z == null ? void 0 : z.item) != null && je.playerEnrolled ? Ee() : (le(
|
|
1170
|
+
z = yield fetch(`${m}/tournaments/${j}`, { headers: { "X-SessionID": o } }), z = yield z.json(), (je = z == null ? void 0 : z.item) != null && je.playerEnrolled ? Ee() : (le(R.errorMessage), t(20, te = !0), t(18, Z = !1));
|
|
1171
1171
|
} else
|
|
1172
|
-
le(
|
|
1172
|
+
le(R.errorMessage);
|
|
1173
1173
|
}), Se = (i, y) => {
|
|
1174
1174
|
window.postMessage(
|
|
1175
1175
|
{
|
|
@@ -1188,7 +1188,7 @@ function vt(r, e, t) {
|
|
|
1188
1188
|
}).finally(() => {
|
|
1189
1189
|
t(16, M = !1);
|
|
1190
1190
|
});
|
|
1191
|
-
},
|
|
1191
|
+
}, Ge = () => {
|
|
1192
1192
|
t(15, A = (o == null ? void 0 : o.length) > 10), A && (X = o);
|
|
1193
1193
|
}, We = () => {
|
|
1194
1194
|
if (W) {
|
|
@@ -1207,16 +1207,16 @@ function vt(r, e, t) {
|
|
|
1207
1207
|
});
|
|
1208
1208
|
}
|
|
1209
1209
|
return r.$$set = (i) => {
|
|
1210
|
-
"session" in i && t(39, o = i.session), "userid" in i && t(0, s = i.userid), "tournamenturl" in i && t(1, a = i.tournamenturl), "touridx" in i && t(40, f = i.touridx), "endpoint" in i && t(41, m = i.endpoint), "showdetails" in i && t(2, p = i.showdetails), "showslider" in i && t(3, h = i.showslider), "showenrolled" in i && t(4, u = i.showenrolled), "maxwidth" in i && t(5, d = i.maxwidth), "fullsize" in i && t(6, v = i.fullsize), "lang" in i && t(7, c = i.lang), "loginevent" in i && t(42, k = i.loginevent), "registerevent" in i && t(43,
|
|
1210
|
+
"session" in i && t(39, o = i.session), "userid" in i && t(0, s = i.userid), "tournamenturl" in i && t(1, a = i.tournamenturl), "touridx" in i && t(40, f = i.touridx), "endpoint" in i && t(41, m = i.endpoint), "showdetails" in i && t(2, p = i.showdetails), "showslider" in i && t(3, h = i.showslider), "showenrolled" in i && t(4, u = i.showenrolled), "maxwidth" in i && t(5, d = i.maxwidth), "fullsize" in i && t(6, v = i.fullsize), "lang" in i && t(7, c = i.lang), "loginevent" in i && t(42, k = i.loginevent), "registerevent" in i && t(43, J = i.registerevent), "detailsevent" in i && t(8, de = i.detailsevent), "loginurl" in i && t(44, U = i.loginurl), "registerurl" in i && t(45, N = i.registerurl), "currency" in i && t(46, $ = i.currency), "keepbrowsercontext" in i && t(9, ce = i.keepbrowsercontext), "clientstyling" in i && t(10, H = i.clientstyling), "clientstylingurl" in i && t(11, q = i.clientstylingurl), "translationurl" in i && t(12, G = i.translationurl), "tournamentinfo" in i && t(47, W = i.tournamentinfo), "mbsource" in i && t(13, K = i.mbsource), "tournamentid" in i && t(48, ee = i.tournamentid);
|
|
1211
1211
|
}, r.$$.update = () => {
|
|
1212
1212
|
r.$$.dirty[0] & /*lang*/
|
|
1213
1213
|
128 && c && dt(c), r.$$.dirty[0] & /*translationurl*/
|
|
1214
|
-
4096 &&
|
|
1215
|
-
256 && o &&
|
|
1214
|
+
4096 && G && Je(), r.$$.dirty[1] & /*session*/
|
|
1215
|
+
256 && o && Ge(), r.$$.dirty[0] & /*tournamenturl, lang*/
|
|
1216
1216
|
130 && a && c && We(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1217
1217
|
17408 && H && E && st(E, H), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1218
|
-
18432 &&
|
|
1219
|
-
24576 && K && E && at(E, `${K}.Style`,
|
|
1218
|
+
18432 && q && E && lt(E, q), r.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1219
|
+
24576 && K && E && at(E, `${K}.Style`, xe);
|
|
1220
1220
|
}, [
|
|
1221
1221
|
s,
|
|
1222
1222
|
a,
|
|
@@ -1229,8 +1229,8 @@ function vt(r, e, t) {
|
|
|
1229
1229
|
de,
|
|
1230
1230
|
ce,
|
|
1231
1231
|
H,
|
|
1232
|
-
G,
|
|
1233
1232
|
q,
|
|
1233
|
+
G,
|
|
1234
1234
|
K,
|
|
1235
1235
|
E,
|
|
1236
1236
|
A,
|
|
@@ -1252,18 +1252,18 @@ function vt(r, e, t) {
|
|
|
1252
1252
|
Te,
|
|
1253
1253
|
Q,
|
|
1254
1254
|
n,
|
|
1255
|
-
|
|
1255
|
+
Ne,
|
|
1256
1256
|
He,
|
|
1257
|
-
|
|
1257
|
+
qe,
|
|
1258
1258
|
ze,
|
|
1259
1259
|
Se,
|
|
1260
1260
|
o,
|
|
1261
1261
|
f,
|
|
1262
1262
|
m,
|
|
1263
1263
|
k,
|
|
1264
|
-
|
|
1265
|
-
N,
|
|
1264
|
+
J,
|
|
1266
1265
|
U,
|
|
1266
|
+
N,
|
|
1267
1267
|
$,
|
|
1268
1268
|
W,
|
|
1269
1269
|
ee,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { z as K, S as Y, i as Z, s as J, f as z, a as Q, n as O, d as k, b as w, g as v, j as l, B as V, o as X, l as M, e as h, p as $, t as j, h as R, q as tt, L as U, v as et, w as nt, x as it, c as st, F as rt } from "./CasinoTournamentsPageController-BaLiSneC.js";
|
|
2
|
+
function q(n, t) {
|
|
3
|
+
K(n, t);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const x = {
|
|
6
6
|
en: {
|
|
7
7
|
finished: "Finished",
|
|
8
8
|
starting: "Starting in ",
|
|
@@ -95,7 +95,7 @@ const q = {
|
|
|
95
95
|
function at(n) {
|
|
96
96
|
Q(n, "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)}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function A(n) {
|
|
99
99
|
let t, e, s = (
|
|
100
100
|
/*formatDate*/
|
|
101
101
|
n[10](
|
|
@@ -173,7 +173,7 @@ function lt(n) {
|
|
|
173
173
|
let t;
|
|
174
174
|
return {
|
|
175
175
|
c() {
|
|
176
|
-
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"),
|
|
176
|
+
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), U(
|
|
177
177
|
t,
|
|
178
178
|
"width",
|
|
179
179
|
/*getProgress*/
|
|
@@ -185,7 +185,7 @@ function lt(n) {
|
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
188
|
-
128 &&
|
|
188
|
+
128 && U(
|
|
189
189
|
t,
|
|
190
190
|
"width",
|
|
191
191
|
/*getProgress*/
|
|
@@ -206,7 +206,7 @@ function ot(n) {
|
|
|
206
206
|
m(e, s) {
|
|
207
207
|
w(e, t, s);
|
|
208
208
|
},
|
|
209
|
-
p:
|
|
209
|
+
p: O,
|
|
210
210
|
d(e) {
|
|
211
211
|
e && k(t);
|
|
212
212
|
}
|
|
@@ -221,7 +221,7 @@ function ut(n) {
|
|
|
221
221
|
m(e, s) {
|
|
222
222
|
w(e, t, s);
|
|
223
223
|
},
|
|
224
|
-
p:
|
|
224
|
+
p: O,
|
|
225
225
|
d(e) {
|
|
226
226
|
e && k(t);
|
|
227
227
|
}
|
|
@@ -316,7 +316,7 @@ function gt(n) {
|
|
|
316
316
|
let t, e = (
|
|
317
317
|
/*startdate*/
|
|
318
318
|
n[0] && /*enddate*/
|
|
319
|
-
n[1] &&
|
|
319
|
+
n[1] && A(n)
|
|
320
320
|
);
|
|
321
321
|
return {
|
|
322
322
|
c() {
|
|
@@ -328,10 +328,10 @@ function gt(n) {
|
|
|
328
328
|
p(s, [a]) {
|
|
329
329
|
/*startdate*/
|
|
330
330
|
s[0] && /*enddate*/
|
|
331
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
331
|
+
s[1] ? e ? e.p(s, a) : (e = A(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
332
|
},
|
|
333
|
-
i:
|
|
334
|
-
o:
|
|
333
|
+
i: O,
|
|
334
|
+
o: O,
|
|
335
335
|
d(s) {
|
|
336
336
|
s && k(t), e && e.d(), n[17](null);
|
|
337
337
|
}
|
|
@@ -344,30 +344,30 @@ function mt(n, t, e) {
|
|
|
344
344
|
const L = () => {
|
|
345
345
|
fetch(g).then((m) => m.json()).then((m) => {
|
|
346
346
|
Object.keys(m).forEach((S) => {
|
|
347
|
-
|
|
347
|
+
q(S, m[S]);
|
|
348
348
|
});
|
|
349
349
|
}).catch((m) => {
|
|
350
350
|
console.log(m);
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
|
-
Object.keys(
|
|
354
|
-
|
|
353
|
+
Object.keys(x).forEach((i) => {
|
|
354
|
+
q(i, x[i]);
|
|
355
355
|
});
|
|
356
356
|
const B = (i) => new Date(i).getTime(), c = (i, m) => (B(m) - B(i)) / (1e3 * 60), r = () => {
|
|
357
357
|
const i = /* @__PURE__ */ new Date();
|
|
358
|
-
e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ =
|
|
358
|
+
e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ = N(D));
|
|
359
359
|
}, p = (i) => {
|
|
360
360
|
const m = { month: "long" };
|
|
361
361
|
let S = new Date(i), E = new Intl.DateTimeFormat(f, m).format(S);
|
|
362
362
|
return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
363
|
-
},
|
|
363
|
+
}, N = (i) => {
|
|
364
364
|
const m = (E, F) => E + " " + a(F), S = (E) => {
|
|
365
365
|
const F = Math.floor(E);
|
|
366
366
|
return F < 10 ? `0${F}` : `${F}`;
|
|
367
367
|
};
|
|
368
368
|
if (i < 1440) {
|
|
369
|
-
const E = i / 60, F = i % 60,
|
|
370
|
-
return [E, F,
|
|
369
|
+
const E = i / 60, F = i % 60, G = (F - Math.floor(F)) * 60;
|
|
370
|
+
return [E, F, G].map((H) => S(H)).join(":");
|
|
371
371
|
}
|
|
372
372
|
return m(Math.ceil(i / (60 * 24)), "days");
|
|
373
373
|
};
|
|
@@ -383,7 +383,7 @@ function mt(n, t, e) {
|
|
|
383
383
|
clearInterval(i);
|
|
384
384
|
};
|
|
385
385
|
});
|
|
386
|
-
function
|
|
386
|
+
function W(i) {
|
|
387
387
|
tt[i ? "unshift" : "push"](() => {
|
|
388
388
|
y = i, e(3, y);
|
|
389
389
|
});
|
|
@@ -398,9 +398,9 @@ function mt(n, t, e) {
|
|
|
398
398
|
const i = c(u, o), m = 100 / i;
|
|
399
399
|
return Math.floor((i - D) * m);
|
|
400
400
|
}), n.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
401
|
-
19 && u && o && r() &&
|
|
401
|
+
19 && u && o && r() && N(D), n.$$.dirty & /*lang*/
|
|
402
402
|
4096 && f && r(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
403
|
-
4112 && f &&
|
|
403
|
+
4112 && f && N(D), n.$$.dirty & /*translationurl*/
|
|
404
404
|
32768 && g && L(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
405
405
|
8200 && T && y && et(y, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
406
406
|
16392 && b && y && nt(y, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
@@ -417,23 +417,23 @@ function mt(n, t, e) {
|
|
|
417
417
|
a,
|
|
418
418
|
r,
|
|
419
419
|
p,
|
|
420
|
-
|
|
420
|
+
N,
|
|
421
421
|
f,
|
|
422
422
|
T,
|
|
423
423
|
b,
|
|
424
424
|
g,
|
|
425
425
|
P,
|
|
426
|
-
|
|
426
|
+
W
|
|
427
427
|
];
|
|
428
428
|
}
|
|
429
|
-
class ht extends
|
|
429
|
+
class ht extends Y {
|
|
430
430
|
constructor(t) {
|
|
431
|
-
super(),
|
|
431
|
+
super(), Z(
|
|
432
432
|
this,
|
|
433
433
|
t,
|
|
434
434
|
mt,
|
|
435
435
|
gt,
|
|
436
|
-
|
|
436
|
+
J,
|
|
437
437
|
{
|
|
438
438
|
startdate: 0,
|
|
439
439
|
enddate: 1,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { z as K, S as Y, i as Z, s as J, f as z, a as Q, n as O, d as k, b as w, e as v, h as l, B as V, o as X, k as M, c as h, m as $, t as R, g as j, p as tt, L as U, u as et, v as nt, w as it, x as st, F as rt } from "./CasinoTournamentsPageController-DpQc24NO.js";
|
|
2
|
+
function x(n, t) {
|
|
3
|
+
K(n, t);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const A = {
|
|
6
6
|
en: {
|
|
7
7
|
finished: "Finished",
|
|
8
8
|
starting: "Starting in ",
|
|
@@ -95,7 +95,7 @@ const q = {
|
|
|
95
95
|
function at(n) {
|
|
96
96
|
Q(n, "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)}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function q(n) {
|
|
99
99
|
let t, e, s = (
|
|
100
100
|
/*formatDate*/
|
|
101
101
|
n[10](
|
|
@@ -143,7 +143,7 @@ function x(n) {
|
|
|
143
143
|
let B = L(n), c = B && B(n);
|
|
144
144
|
return {
|
|
145
145
|
c() {
|
|
146
|
-
t = v("div"), e = v("div"), a =
|
|
146
|
+
t = v("div"), e = v("div"), a = R(s), u = j(), o = v("div"), f = R(d), T = j(), b = v("div"), g = v("div"), _.c(), P = j(), c && c.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(g, "class", "ProgressBar"), l(g, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
|
|
147
147
|
},
|
|
148
148
|
m(r, p) {
|
|
149
149
|
w(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), w(r, T, p), w(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (I = $(
|
|
@@ -173,7 +173,7 @@ function lt(n) {
|
|
|
173
173
|
let t;
|
|
174
174
|
return {
|
|
175
175
|
c() {
|
|
176
|
-
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"),
|
|
176
|
+
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), U(
|
|
177
177
|
t,
|
|
178
178
|
"width",
|
|
179
179
|
/*getProgress*/
|
|
@@ -185,7 +185,7 @@ function lt(n) {
|
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
188
|
-
128 &&
|
|
188
|
+
128 && U(
|
|
189
189
|
t,
|
|
190
190
|
"width",
|
|
191
191
|
/*getProgress*/
|
|
@@ -206,7 +206,7 @@ function ot(n) {
|
|
|
206
206
|
m(e, s) {
|
|
207
207
|
w(e, t, s);
|
|
208
208
|
},
|
|
209
|
-
p:
|
|
209
|
+
p: O,
|
|
210
210
|
d(e) {
|
|
211
211
|
e && k(t);
|
|
212
212
|
}
|
|
@@ -221,7 +221,7 @@ function ut(n) {
|
|
|
221
221
|
m(e, s) {
|
|
222
222
|
w(e, t, s);
|
|
223
223
|
},
|
|
224
|
-
p:
|
|
224
|
+
p: O,
|
|
225
225
|
d(e) {
|
|
226
226
|
e && k(t);
|
|
227
227
|
}
|
|
@@ -234,10 +234,10 @@ function dt(n) {
|
|
|
234
234
|
), u;
|
|
235
235
|
return {
|
|
236
236
|
c() {
|
|
237
|
-
t = v("div"), e =
|
|
237
|
+
t = v("div"), e = R(
|
|
238
238
|
/*showRemain*/
|
|
239
239
|
n[6]
|
|
240
|
-
), s =
|
|
240
|
+
), s = j(), u = R(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
241
241
|
},
|
|
242
242
|
m(o, d) {
|
|
243
243
|
w(o, t, d), h(t, e), h(t, s), h(t, u);
|
|
@@ -270,7 +270,7 @@ function ct(n) {
|
|
|
270
270
|
), o;
|
|
271
271
|
return {
|
|
272
272
|
c() {
|
|
273
|
-
t = v("div"), s =
|
|
273
|
+
t = v("div"), s = R(e), a = j(), o = R(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
274
274
|
},
|
|
275
275
|
m(d, f) {
|
|
276
276
|
w(d, t, f), h(t, s), h(t, a), h(t, o);
|
|
@@ -297,7 +297,7 @@ function ft(n) {
|
|
|
297
297
|
), s;
|
|
298
298
|
return {
|
|
299
299
|
c() {
|
|
300
|
-
t = v("div"), s =
|
|
300
|
+
t = v("div"), s = R(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
301
301
|
},
|
|
302
302
|
m(a, u) {
|
|
303
303
|
w(a, t, u), h(t, s);
|
|
@@ -316,7 +316,7 @@ function gt(n) {
|
|
|
316
316
|
let t, e = (
|
|
317
317
|
/*startdate*/
|
|
318
318
|
n[0] && /*enddate*/
|
|
319
|
-
n[1] &&
|
|
319
|
+
n[1] && q(n)
|
|
320
320
|
);
|
|
321
321
|
return {
|
|
322
322
|
c() {
|
|
@@ -328,10 +328,10 @@ function gt(n) {
|
|
|
328
328
|
p(s, [a]) {
|
|
329
329
|
/*startdate*/
|
|
330
330
|
s[0] && /*enddate*/
|
|
331
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
331
|
+
s[1] ? e ? e.p(s, a) : (e = q(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
332
|
},
|
|
333
|
-
i:
|
|
334
|
-
o:
|
|
333
|
+
i: O,
|
|
334
|
+
o: O,
|
|
335
335
|
d(s) {
|
|
336
336
|
s && k(t), e && e.d(), n[17](null);
|
|
337
337
|
}
|
|
@@ -344,30 +344,30 @@ function mt(n, t, e) {
|
|
|
344
344
|
const L = () => {
|
|
345
345
|
fetch(g).then((m) => m.json()).then((m) => {
|
|
346
346
|
Object.keys(m).forEach((S) => {
|
|
347
|
-
|
|
347
|
+
x(S, m[S]);
|
|
348
348
|
});
|
|
349
349
|
}).catch((m) => {
|
|
350
350
|
console.log(m);
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
|
-
Object.keys(
|
|
354
|
-
|
|
353
|
+
Object.keys(A).forEach((i) => {
|
|
354
|
+
x(i, A[i]);
|
|
355
355
|
});
|
|
356
356
|
const B = (i) => new Date(i).getTime(), c = (i, m) => (B(m) - B(i)) / (1e3 * 60), r = () => {
|
|
357
357
|
const i = /* @__PURE__ */ new Date();
|
|
358
|
-
e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ =
|
|
358
|
+
e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ = N(D));
|
|
359
359
|
}, p = (i) => {
|
|
360
360
|
const m = { month: "long" };
|
|
361
361
|
let S = new Date(i), E = new Intl.DateTimeFormat(f, m).format(S);
|
|
362
362
|
return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
363
|
-
},
|
|
363
|
+
}, N = (i) => {
|
|
364
364
|
const m = (E, F) => E + " " + a(F), S = (E) => {
|
|
365
365
|
const F = Math.floor(E);
|
|
366
366
|
return F < 10 ? `0${F}` : `${F}`;
|
|
367
367
|
};
|
|
368
368
|
if (i < 1440) {
|
|
369
|
-
const E = i / 60, F = i % 60,
|
|
370
|
-
return [E, F,
|
|
369
|
+
const E = i / 60, F = i % 60, G = (F - Math.floor(F)) * 60;
|
|
370
|
+
return [E, F, G].map((H) => S(H)).join(":");
|
|
371
371
|
}
|
|
372
372
|
return m(Math.ceil(i / (60 * 24)), "days");
|
|
373
373
|
};
|
|
@@ -383,7 +383,7 @@ function mt(n, t, e) {
|
|
|
383
383
|
clearInterval(i);
|
|
384
384
|
};
|
|
385
385
|
});
|
|
386
|
-
function
|
|
386
|
+
function W(i) {
|
|
387
387
|
tt[i ? "unshift" : "push"](() => {
|
|
388
388
|
y = i, e(3, y);
|
|
389
389
|
});
|
|
@@ -398,9 +398,9 @@ function mt(n, t, e) {
|
|
|
398
398
|
const i = c(u, o), m = 100 / i;
|
|
399
399
|
return Math.floor((i - D) * m);
|
|
400
400
|
}), n.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
401
|
-
19 && u && o && r() &&
|
|
401
|
+
19 && u && o && r() && N(D), n.$$.dirty & /*lang*/
|
|
402
402
|
4096 && f && r(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
403
|
-
4112 && f &&
|
|
403
|
+
4112 && f && N(D), n.$$.dirty & /*translationurl*/
|
|
404
404
|
32768 && g && L(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
405
405
|
8200 && T && y && et(y, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
406
406
|
16392 && b && y && nt(y, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
@@ -417,23 +417,23 @@ function mt(n, t, e) {
|
|
|
417
417
|
a,
|
|
418
418
|
r,
|
|
419
419
|
p,
|
|
420
|
-
|
|
420
|
+
N,
|
|
421
421
|
f,
|
|
422
422
|
T,
|
|
423
423
|
b,
|
|
424
424
|
g,
|
|
425
425
|
P,
|
|
426
|
-
|
|
426
|
+
W
|
|
427
427
|
];
|
|
428
428
|
}
|
|
429
|
-
class ht extends
|
|
429
|
+
class ht extends Y {
|
|
430
430
|
constructor(t) {
|
|
431
|
-
super(),
|
|
431
|
+
super(), Z(
|
|
432
432
|
this,
|
|
433
433
|
t,
|
|
434
434
|
mt,
|
|
435
435
|
gt,
|
|
436
|
-
|
|
436
|
+
J,
|
|
437
437
|
{
|
|
438
438
|
startdate: 0,
|
|
439
439
|
enddate: 1,
|