@everymatrix/casino-tournaments-page-controller 1.76.3 → 1.76.4
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-CI9Jj7ok.js → CasinoTournamentsDetails-CV5jyv8g.js} +21 -21
- package/components/{CasinoTournamentsDetails-Dpas8Oa3.js → CasinoTournamentsDetails-_vnvzxd3.js} +21 -21
- package/components/CasinoTournamentsPageController-Czj_9f9q.cjs +37 -0
- package/components/{CasinoTournamentsPageController-BIb60qke.js → CasinoTournamentsPageController-DIjImG1k.js} +2712 -2677
- package/components/{CasinoTournamentsPageController-DrWaJk5P.js → CasinoTournamentsPageController-LRHk1OJ4.js} +2743 -2708
- package/components/{CasinoTournamentsRank-DP-cVYPO.js → CasinoTournamentsRank-BEjjLuf1.js} +35 -35
- package/components/{CasinoTournamentsRank-q82Dxoqr.js → CasinoTournamentsRank-CkgXfPdz.js} +35 -35
- package/components/{CasinoTournamentsTab-06D_e41f.js → CasinoTournamentsTab-BRIU3NDv.js} +36 -36
- package/components/{CasinoTournamentsTab-R3r2AHPH.cjs → CasinoTournamentsTab-BdBIehQV.cjs} +1 -1
- package/components/{CasinoTournamentsTab-gjYGj9YA.js → CasinoTournamentsTab-cAmru9Ol.js} +32 -32
- package/components/{CasinoTournamentsTable-D1RE_06q.cjs → CasinoTournamentsTable-3AOlf9hp.cjs} +1 -1
- package/components/{CasinoTournamentsTable-Ci48agje.js → CasinoTournamentsTable-D0-M8VIr.js} +84 -84
- package/components/{CasinoTournamentsTable-Dqppk9qx.js → CasinoTournamentsTable-RfAIxnuW.js} +84 -84
- package/components/{CasinoTournamentsThumbnail-DQp66K62.js → CasinoTournamentsThumbnail-CaIyyUlW.js} +39 -39
- package/components/{CasinoTournamentsThumbnail-UTaQ6XBt.js → CasinoTournamentsThumbnail-Cp_sIUHy.js} +39 -39
- package/components/{CasinoTournamentsThumbnail-CUbQFVZt.cjs → CasinoTournamentsThumbnail-D1JyrHrY.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-D35nG6XP.js → CasinoTournamentsThumbnailController-30_8iqch.js} +47 -47
- package/components/{CasinoTournamentsThumbnailController-Co2GBKG-.cjs → CasinoTournamentsThumbnailController-CjJaE6DJ.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-D2C4ybr1.js → CasinoTournamentsThumbnailController-wrPgna6T.js} +47 -47
- package/components/{CasinoTournamentsThumbnailDuration-CfINvPbc.js → CasinoTournamentsThumbnailDuration-BqNqjxsL.js} +65 -65
- package/components/{CasinoTournamentsThumbnailDuration-D7pJ3HDD.cjs → CasinoTournamentsThumbnailDuration-CMPeZsoj.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-egjrV7Ab.js → CasinoTournamentsThumbnailDuration-ZnRFP_h_.js} +65 -65
- package/components/{CasinoTournamentsThumbnailGames-B8X814e1.js → CasinoTournamentsThumbnailGames-BQSFsb7H.js} +54 -54
- package/components/{CasinoTournamentsThumbnailGames-DTot3kgc.cjs → CasinoTournamentsThumbnailGames-DS3GmPBl.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGames-ypNdyMoK.js → CasinoTournamentsThumbnailGames-Q4Gg_Pxp.js} +49 -49
- package/components/{CasinoTournamentsThumbnailGamesSlider-8B1qtm9V.js → CasinoTournamentsThumbnailGamesSlider-BAXfTifG.js} +34 -34
- package/components/{CasinoTournamentsThumbnailGamesSlider-oPbDMVkM.js → CasinoTournamentsThumbnailGamesSlider-CFd0JjFY.js} +34 -34
- package/components/{CasinoTournamentsThumbnailGamesSlider-kgkqO8gR.cjs → CasinoTournamentsThumbnailGamesSlider-DmOtGPsI.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BOs0DK1z.cjs → CasinoTournamentsThumbnailPrizes-CgS9w2Aq.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-CavQe9e7.js → CasinoTournamentsThumbnailPrizes-Dz4-wWGv.js} +31 -31
- package/components/{CasinoTournamentsThumbnailPrizes-Cckrc0am.js → CasinoTournamentsThumbnailPrizes-pZYtadAx.js} +31 -31
- package/components/{CasinoTournamentsThumbnailRule-KtxZtJkT.cjs → CasinoTournamentsThumbnailRule-BaJvRUJL.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-_CDIwUgM.js → CasinoTournamentsThumbnailRule-BtlW7eqt.js} +22 -22
- package/components/{CasinoTournamentsThumbnailRule-zw73Q3DJ.js → CasinoTournamentsThumbnailRule-C2uFR1vt.js} +41 -41
- package/es2015/casino-tournaments-page-controller.cjs +1 -1
- package/es2015/casino-tournaments-page-controller.js +1 -1
- package/esnext/casino-tournaments-page-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652--F7PvMq9.js} +176 -176
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-CCFHkzJw.js} +187 -187
- package/stencil/index-b2193545-BS7xFIk4.js +503 -0
- package/stencil/index-b2193545-BTdVi7--.cjs +1 -0
- package/stencil/index-b2193545-rfNAj6ri.js +519 -0
- package/stencil/{ui-image-DBXtq7Sy.cjs → ui-image-Bk8cIvcH.cjs} +1 -1
- package/stencil/{ui-image-BNRjOSaN.js → ui-image-CXqPvnQ2.js} +1 -1
- package/stencil/{ui-image-D9tkwepr.js → ui-image-DgbODkuX.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-qO3reSlr.js} +2 -2
- package/stencil/{ui-skeleton-CKaouoPt.cjs → ui-skeleton-B0BB970e.cjs} +1 -1
- package/stencil/{ui-skeleton-BecGfbnY.js → ui-skeleton-D8L-WY77.js} +2 -2
- package/stencil/{ui-skeleton-DXmvn9dE.js → ui-skeleton-DSebcnN1.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-8tswdmF8.js → ui-skeleton-ae35c6f2-BH4D8vHD.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BVAHFeog.js → ui-skeleton-ae35c6f2-CcPx4a2P.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-kPD5RoB3.cjs → ui-skeleton-ae35c6f2-DDiK5zGt.cjs} +1 -1
- package/components/CasinoTournamentsPageController-Bq1SPg48.cjs +0 -37
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
- package/stencil/index-b2193545-CD_KQ0BB.js +0 -519
- package/stencil/index-b2193545-CrHhiaNt.js +0 -503
- package/stencil/index-b2193545-ngvz84TK.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as H, b as K,
|
|
2
|
-
import { a as it, b as st } from "./CasinoTournamentsPageController-
|
|
1
|
+
import { S as H, b as K, s as Y, f as C, d as Z, n as N, e as w, k as B, p as v, j as l, u as J, v as Q, g as M, l as y, B as V, t as j, o as L, w as X, F as O, C as $, D as tt, E as et, c as nt } from "./CasinoTournamentsDetails-CV5jyv8g.js";
|
|
2
|
+
import { a as it, b as st } from "./CasinoTournamentsPageController-DIjImG1k.js";
|
|
3
3
|
function U(n, t) {
|
|
4
4
|
it(n, t);
|
|
5
5
|
}
|
|
6
|
-
const
|
|
6
|
+
const A = {
|
|
7
7
|
en: {
|
|
8
8
|
finished: "Finished",
|
|
9
9
|
starting: "Starting in ",
|
|
@@ -94,9 +94,9 @@ const q = {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
function rt(n) {
|
|
97
|
-
|
|
97
|
+
Z(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)}");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function q(n) {
|
|
100
100
|
let t, e, s = (
|
|
101
101
|
/*formatDate*/
|
|
102
102
|
n[10](
|
|
@@ -121,7 +121,7 @@ function x(n) {
|
|
|
121
121
|
)
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
|
-
let
|
|
124
|
+
let E = R(n), p = E(n);
|
|
125
125
|
function I(r, f) {
|
|
126
126
|
if (
|
|
127
127
|
/*status*/
|
|
@@ -144,10 +144,10 @@ function x(n) {
|
|
|
144
144
|
let F = I(n), c = F && F(n);
|
|
145
145
|
return {
|
|
146
146
|
c() {
|
|
147
|
-
t = v("div"), e = v("div"), a =
|
|
147
|
+
t = v("div"), e = v("div"), a = j(s), u = L(), o = v("div"), g = j(d), T = L(), b = v("div"), m = v("div"), p.c(), P = L(), 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(m, "class", "ProgressBar"), l(m, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
|
|
148
148
|
},
|
|
149
149
|
m(r, f) {
|
|
150
|
-
|
|
150
|
+
B(r, t, f), y(t, e), y(e, a), y(t, u), y(t, o), y(o, g), B(r, T, f), B(r, b, f), y(b, m), p.m(m, null), y(m, P), c && c.m(m, null), _ || (D = V(
|
|
151
151
|
/*getDuration*/
|
|
152
152
|
n[9].call(null, b)
|
|
153
153
|
), _ = !0);
|
|
@@ -158,15 +158,15 @@ function x(n) {
|
|
|
158
158
|
r[10](
|
|
159
159
|
/*startdate*/
|
|
160
160
|
r[0]
|
|
161
|
-
) + "") &&
|
|
161
|
+
) + "") && M(a, s), f & /*enddate*/
|
|
162
162
|
2 && d !== (d = /*formatDate*/
|
|
163
163
|
r[10](
|
|
164
164
|
/*enddate*/
|
|
165
165
|
r[1]
|
|
166
|
-
) + "") &&
|
|
166
|
+
) + "") && M(g, d), E === (E = R(r)) && p ? p.p(r, f) : (p.d(1), p = E(r), p && (p.c(), p.m(m, P))), F === (F = I(r)) && c ? c.p(r, f) : (c && c.d(1), c = F && F(r), c && (c.c(), c.m(m, null)));
|
|
167
167
|
},
|
|
168
168
|
d(r) {
|
|
169
|
-
r && (
|
|
169
|
+
r && (w(t), w(T), w(b)), p.d(), c && c.d(), _ = !1, D();
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
172
|
}
|
|
@@ -182,7 +182,7 @@ function at(n) {
|
|
|
182
182
|
);
|
|
183
183
|
},
|
|
184
184
|
m(e, s) {
|
|
185
|
-
|
|
185
|
+
B(e, t, s);
|
|
186
186
|
},
|
|
187
187
|
p(e, s) {
|
|
188
188
|
s & /*getProgress*/
|
|
@@ -194,7 +194,7 @@ function at(n) {
|
|
|
194
194
|
);
|
|
195
195
|
},
|
|
196
196
|
d(e) {
|
|
197
|
-
e &&
|
|
197
|
+
e && w(t);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
}
|
|
@@ -205,11 +205,11 @@ function lt(n) {
|
|
|
205
205
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
206
206
|
},
|
|
207
207
|
m(e, s) {
|
|
208
|
-
|
|
208
|
+
B(e, t, s);
|
|
209
209
|
},
|
|
210
210
|
p: N,
|
|
211
211
|
d(e) {
|
|
212
|
-
e &&
|
|
212
|
+
e && w(t);
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
}
|
|
@@ -220,11 +220,11 @@ function ot(n) {
|
|
|
220
220
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
221
221
|
},
|
|
222
222
|
m(e, s) {
|
|
223
|
-
|
|
223
|
+
B(e, t, s);
|
|
224
224
|
},
|
|
225
225
|
p: N,
|
|
226
226
|
d(e) {
|
|
227
|
-
e &&
|
|
227
|
+
e && w(t);
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
230
|
}
|
|
@@ -235,26 +235,26 @@ function ut(n) {
|
|
|
235
235
|
), u;
|
|
236
236
|
return {
|
|
237
237
|
c() {
|
|
238
|
-
t = v("div"), e =
|
|
238
|
+
t = v("div"), e = j(
|
|
239
239
|
/*showRemain*/
|
|
240
240
|
n[6]
|
|
241
|
-
), s = L(), u =
|
|
241
|
+
), s = L(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
242
242
|
},
|
|
243
243
|
m(o, d) {
|
|
244
|
-
|
|
244
|
+
B(o, t, d), y(t, e), y(t, s), y(t, u);
|
|
245
245
|
},
|
|
246
246
|
p(o, d) {
|
|
247
247
|
d & /*showRemain*/
|
|
248
|
-
64 &&
|
|
248
|
+
64 && M(
|
|
249
249
|
e,
|
|
250
250
|
/*showRemain*/
|
|
251
251
|
o[6]
|
|
252
252
|
), d & /*$_*/
|
|
253
253
|
256 && a !== (a = /*$_*/
|
|
254
|
-
o[8]("left") + "") &&
|
|
254
|
+
o[8]("left") + "") && M(u, a);
|
|
255
255
|
},
|
|
256
256
|
d(o) {
|
|
257
|
-
o &&
|
|
257
|
+
o && w(t);
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
260
|
}
|
|
@@ -271,23 +271,23 @@ function dt(n) {
|
|
|
271
271
|
), o;
|
|
272
272
|
return {
|
|
273
273
|
c() {
|
|
274
|
-
t = v("div"), s =
|
|
274
|
+
t = v("div"), s = j(e), a = L(), o = j(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
275
275
|
},
|
|
276
276
|
m(d, g) {
|
|
277
|
-
|
|
277
|
+
B(d, t, g), y(t, s), y(t, a), y(t, o);
|
|
278
278
|
},
|
|
279
279
|
p(d, g) {
|
|
280
280
|
g & /*$_*/
|
|
281
281
|
256 && e !== (e = /*$_*/
|
|
282
|
-
d[8]("starting") + "") &&
|
|
282
|
+
d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
|
|
283
283
|
32 && u !== (u = /*getTextByDiff*/
|
|
284
284
|
d[11](
|
|
285
285
|
/*tournamentUntilStartDays*/
|
|
286
286
|
d[5]
|
|
287
|
-
) + "") &&
|
|
287
|
+
) + "") && M(o, u);
|
|
288
288
|
},
|
|
289
289
|
d(d) {
|
|
290
|
-
d &&
|
|
290
|
+
d && w(t);
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
293
|
}
|
|
@@ -298,18 +298,18 @@ function ct(n) {
|
|
|
298
298
|
), s;
|
|
299
299
|
return {
|
|
300
300
|
c() {
|
|
301
|
-
t = v("div"), s =
|
|
301
|
+
t = v("div"), s = j(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
302
302
|
},
|
|
303
303
|
m(a, u) {
|
|
304
|
-
|
|
304
|
+
B(a, t, u), y(t, s);
|
|
305
305
|
},
|
|
306
306
|
p(a, u) {
|
|
307
307
|
u & /*$_*/
|
|
308
308
|
256 && e !== (e = /*$_*/
|
|
309
|
-
a[8]("finished") + "") &&
|
|
309
|
+
a[8]("finished") + "") && M(s, e);
|
|
310
310
|
},
|
|
311
311
|
d(a) {
|
|
312
|
-
a &&
|
|
312
|
+
a && w(t);
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
315
|
}
|
|
@@ -317,31 +317,31 @@ function ft(n) {
|
|
|
317
317
|
let t, e = (
|
|
318
318
|
/*startdate*/
|
|
319
319
|
n[0] && /*enddate*/
|
|
320
|
-
n[1] &&
|
|
320
|
+
n[1] && q(n)
|
|
321
321
|
);
|
|
322
322
|
return {
|
|
323
323
|
c() {
|
|
324
324
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
325
325
|
},
|
|
326
326
|
m(s, a) {
|
|
327
|
-
|
|
327
|
+
B(s, t, a), e && e.m(t, null), n[17](t);
|
|
328
328
|
},
|
|
329
329
|
p(s, [a]) {
|
|
330
330
|
/*startdate*/
|
|
331
331
|
s[0] && /*enddate*/
|
|
332
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
332
|
+
s[1] ? e ? e.p(s, a) : (e = q(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
333
333
|
},
|
|
334
334
|
i: N,
|
|
335
335
|
o: N,
|
|
336
336
|
d(s) {
|
|
337
|
-
s &&
|
|
337
|
+
s && w(t), e && e.d(), n[17](null);
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
341
|
function gt(n, t, e) {
|
|
342
342
|
let s, a;
|
|
343
|
-
|
|
344
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "", R = "",
|
|
343
|
+
J(n, st, (i) => e(8, a = i));
|
|
344
|
+
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "", R = "", E = "";
|
|
345
345
|
const p = () => {
|
|
346
346
|
fetch(m).then((h) => h.json()).then((h) => {
|
|
347
347
|
Object.keys(h).forEach((S) => {
|
|
@@ -351,28 +351,28 @@ function gt(n, t, e) {
|
|
|
351
351
|
console.log(h);
|
|
352
352
|
});
|
|
353
353
|
};
|
|
354
|
-
Object.keys(
|
|
355
|
-
U(i,
|
|
354
|
+
Object.keys(A).forEach((i) => {
|
|
355
|
+
U(i, A[i]);
|
|
356
356
|
});
|
|
357
357
|
const I = (i) => new Date(i).getTime(), F = (i, h) => (I(h) - I(i)) / (1e3 * 60), c = () => {
|
|
358
358
|
const i = /* @__PURE__ */ new Date();
|
|
359
|
-
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6,
|
|
359
|
+
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6, E = f(D));
|
|
360
360
|
}, r = (i) => {
|
|
361
361
|
const h = { month: "long" };
|
|
362
|
-
let S = new Date(i),
|
|
363
|
-
return `${S.getDate()} ${
|
|
362
|
+
let S = new Date(i), z = new Intl.DateTimeFormat(g, h).format(S);
|
|
363
|
+
return `${S.getDate()} ${z}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
364
364
|
}, f = (i) => {
|
|
365
|
-
const h = (
|
|
366
|
-
const k = Math.floor(
|
|
365
|
+
const h = (z, k) => z + " " + a(k), S = (z) => {
|
|
366
|
+
const k = Math.floor(z);
|
|
367
367
|
return k < 10 ? `0${k}` : `${k}`;
|
|
368
368
|
};
|
|
369
369
|
if (i < 1440) {
|
|
370
|
-
const
|
|
371
|
-
return [
|
|
370
|
+
const z = i / 60, k = i % 60, W = (k - Math.floor(k)) * 60;
|
|
371
|
+
return [z, k, W].map((G) => S(G)).join(":");
|
|
372
372
|
}
|
|
373
373
|
return h(Math.ceil(i / (60 * 24)), "days");
|
|
374
374
|
};
|
|
375
|
-
|
|
375
|
+
Q(() => {
|
|
376
376
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
377
377
|
const i = setInterval(
|
|
378
378
|
() => {
|
|
@@ -384,8 +384,8 @@ function gt(n, t, e) {
|
|
|
384
384
|
clearInterval(i);
|
|
385
385
|
};
|
|
386
386
|
});
|
|
387
|
-
function
|
|
388
|
-
|
|
387
|
+
function x(i) {
|
|
388
|
+
X[i ? "unshift" : "push"](() => {
|
|
389
389
|
_ = i, e(3, _);
|
|
390
390
|
});
|
|
391
391
|
}
|
|
@@ -403,9 +403,9 @@ function gt(n, t, e) {
|
|
|
403
403
|
4096 && g && c(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
404
404
|
4112 && g && f(D), n.$$.dirty & /*translationurl*/
|
|
405
405
|
32768 && m && p(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
406
|
-
8200 && T && _ &&
|
|
407
|
-
16392 && b && _ &&
|
|
408
|
-
65544 && P && _ &&
|
|
406
|
+
8200 && T && _ && $(_, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
407
|
+
16392 && b && _ && tt(_, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
408
|
+
65544 && P && _ && et(_, `${P}.Style`);
|
|
409
409
|
}, [
|
|
410
410
|
u,
|
|
411
411
|
o,
|
|
@@ -413,7 +413,7 @@ function gt(n, t, e) {
|
|
|
413
413
|
_,
|
|
414
414
|
D,
|
|
415
415
|
R,
|
|
416
|
-
|
|
416
|
+
E,
|
|
417
417
|
s,
|
|
418
418
|
a,
|
|
419
419
|
c,
|
|
@@ -424,7 +424,7 @@ function gt(n, t, e) {
|
|
|
424
424
|
b,
|
|
425
425
|
m,
|
|
426
426
|
P,
|
|
427
|
-
|
|
427
|
+
x
|
|
428
428
|
];
|
|
429
429
|
}
|
|
430
430
|
class mt extends H {
|
|
@@ -434,7 +434,7 @@ class mt extends H {
|
|
|
434
434
|
t,
|
|
435
435
|
gt,
|
|
436
436
|
ft,
|
|
437
|
-
|
|
437
|
+
Y,
|
|
438
438
|
{
|
|
439
439
|
startdate: 0,
|
|
440
440
|
enddate: 1,
|
|
@@ -452,52 +452,52 @@ class mt extends H {
|
|
|
452
452
|
return this.$$.ctx[0];
|
|
453
453
|
}
|
|
454
454
|
set startdate(t) {
|
|
455
|
-
this.$$set({ startdate: t }),
|
|
455
|
+
this.$$set({ startdate: t }), C();
|
|
456
456
|
}
|
|
457
457
|
get enddate() {
|
|
458
458
|
return this.$$.ctx[1];
|
|
459
459
|
}
|
|
460
460
|
set enddate(t) {
|
|
461
|
-
this.$$set({ enddate: t }),
|
|
461
|
+
this.$$set({ enddate: t }), C();
|
|
462
462
|
}
|
|
463
463
|
get status() {
|
|
464
464
|
return this.$$.ctx[2];
|
|
465
465
|
}
|
|
466
466
|
set status(t) {
|
|
467
|
-
this.$$set({ status: t }),
|
|
467
|
+
this.$$set({ status: t }), C();
|
|
468
468
|
}
|
|
469
469
|
get lang() {
|
|
470
470
|
return this.$$.ctx[12];
|
|
471
471
|
}
|
|
472
472
|
set lang(t) {
|
|
473
|
-
this.$$set({ lang: t }),
|
|
473
|
+
this.$$set({ lang: t }), C();
|
|
474
474
|
}
|
|
475
475
|
get clientstyling() {
|
|
476
476
|
return this.$$.ctx[13];
|
|
477
477
|
}
|
|
478
478
|
set clientstyling(t) {
|
|
479
|
-
this.$$set({ clientstyling: t }),
|
|
479
|
+
this.$$set({ clientstyling: t }), C();
|
|
480
480
|
}
|
|
481
481
|
get clientstylingurl() {
|
|
482
482
|
return this.$$.ctx[14];
|
|
483
483
|
}
|
|
484
484
|
set clientstylingurl(t) {
|
|
485
|
-
this.$$set({ clientstylingurl: t }),
|
|
485
|
+
this.$$set({ clientstylingurl: t }), C();
|
|
486
486
|
}
|
|
487
487
|
get translationurl() {
|
|
488
488
|
return this.$$.ctx[15];
|
|
489
489
|
}
|
|
490
490
|
set translationurl(t) {
|
|
491
|
-
this.$$set({ translationurl: t }),
|
|
491
|
+
this.$$set({ translationurl: t }), C();
|
|
492
492
|
}
|
|
493
493
|
get mbsource() {
|
|
494
494
|
return this.$$.ctx[16];
|
|
495
495
|
}
|
|
496
496
|
set mbsource(t) {
|
|
497
|
-
this.$$set({ mbsource: t }),
|
|
497
|
+
this.$$set({ mbsource: t }), C();
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
|
|
500
|
+
nt(mt, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
501
501
|
export {
|
|
502
502
|
mt as default
|
|
503
503
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),E=require("./CasinoTournamentsPageController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),E=require("./CasinoTournamentsPageController-Czj_9f9q.cjs");function C(r,e){E.addMessages(r,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"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}};function O(r){t.append_styles(r,"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 z(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,k,y,m,w,p,b;function S(s,f){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?L:q}let T=S(r),_=T(r);function P(s,f){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return W;if(s[5]>0)return A;if(s[4]>0)return U}let v=P(r),c=v&&v(r);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),k=t.space(),y=t.element("div"),m=t.element("div"),_.c(),w=t.space(),c&&c.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(m,"class","ProgressBar"),t.attr(m,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,f){t.insert(s,e,f),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,k,f),t.insert(s,y,f),t.append(y,m),_.m(m,null),t.append(m,w),c&&c.m(m,null),p||(b=t.action_destroyer(r[9].call(null,y)),p=!0)},p(s,f){f&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),f&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),T===(T=S(s))&&_?_.p(s,f):(_.d(1),_=T(s),_&&(_.c(),_.m(m,w))),v===(v=P(s))&&c?c.p(s,f):(c&&c.d(1),c=v&&v(s),c&&(c.c(),c.m(m,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),_.d(),c&&c.d(),p=!1,b()}}}function q(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[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 L(r){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(r){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 U(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[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(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[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 W(r){let e,n=r[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 G(r){let e,n=r[0]&&r[1]&&z(r);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),r[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=z(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(),r[17](null)}}}function H(r,e,n){let a,l;t.component_subscribe(r,E.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:m=""}=e,{mbsource:w}=e,p,b="",S="",T="";const _=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(F=>{C(F,h[F])})}).catch(h=>{console.log(h)})};Object.keys(M).forEach(i=>{C(i,M[i])});const P=i=>new Date(i).getTime(),v=(i,h)=>(P(h)-P(i))/(1e3*60),c=()=>{const i=new Date;n(4,b=v(i,o)),n(5,S=v(i,u)),n(6,T=f(b))},s=i=>{const h={month:"long"};let F=new Date(i),B=new Intl.DateTimeFormat(g,h).format(F);return`${F.getDate()} ${B}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},f=i=>{const h=(B,D)=>B+" "+l(D),F=B=>{const D=Math.floor(B);return D<10?`0${D}`:`${D}`};if(i<1440){const B=i/60,D=i%60,x=(D-Math.floor(D))*60;return[B,D,x].map(I=>F(I)).join(":")}return h(Math.ceil(i/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&c()},1e3);return()=>{clearInterval(i)}});function R(i){t.binding_callbacks[i?"unshift":"push"](()=>{p=i,n(3,p)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,k=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,m=i.translationurl),"mbsource"in i&&n(16,w=i.mbsource)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const i=v(u,o),h=100/i;return Math.floor((i-b)*h)}),r.$$.dirty&19&&u&&o&&c()&&f(b),r.$$.dirty&4096&&g&&c(),r.$$.dirty&4112&&g&&f(b),r.$$.dirty&32768&&m&&_(),r.$$.dirty&8200&&k&&p&&t.setClientStyling(p,k),r.$$.dirty&16392&&y&&p&&t.setClientStylingURL(p,y),r.$$.dirty&65544&&w&&p&&t.setStreamStyling(p,`${w}.Style`)},[u,o,d,p,b,S,T,a,l,c,s,f,g,k,y,m,w,R]}class j extends t.SvelteComponent{constructor(e){super(),t.init(this,e,H,G,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:16},O)}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()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(j,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=j;
|