@everymatrix/casino-tournaments-controller 1.56.0 → 1.56.2
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-UUtBZIFh.js → CasinoTournamentsController--v7Db-nS.js} +628 -574
- package/components/{CasinoTournamentsController-CD_5uyUc.js → CasinoTournamentsController-B7T1o6MJ.js} +786 -732
- package/components/CasinoTournamentsController-CZ-9rz_b.cjs +27 -0
- package/components/{CasinoTournamentsFilterController-C6PNRuAN.js → CasinoTournamentsFilterController-D87dskAM.js} +20 -20
- package/components/{CasinoTournamentsFilterController-CDD660uA.cjs → CasinoTournamentsFilterController-NmQFysPE.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-C8EhVpC4.js → CasinoTournamentsFilterController-dCThVL3G.js} +22 -22
- package/components/{CasinoTournamentsListController-wgytIhYX.js → CasinoTournamentsListController-C0Tn6XLC.js} +1164 -1218
- package/components/{CasinoTournamentsListController-l8AH-AQy.js → CasinoTournamentsListController-CVKwStEk.js} +1164 -1218
- package/components/CasinoTournamentsListController-qLXWt65S.cjs +13 -0
- package/components/{CasinoTournamentsThumbnail-C1PdhLiD.js → CasinoTournamentsThumbnail-B6vVUkXU.js} +36 -36
- package/components/{CasinoTournamentsThumbnail-BVAQJY4f.cjs → CasinoTournamentsThumbnail-CutNBEY9.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-CfBfOQ6y.js → CasinoTournamentsThumbnail-Dh5yOBII.js} +41 -41
- package/components/{CasinoTournamentsThumbnailController-B5QfYW6Q.cjs → CasinoTournamentsThumbnailController-B4LzyUAt.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-neX5M-sd.js → CasinoTournamentsThumbnailController-Csobnf4h.js} +83 -78
- package/components/{CasinoTournamentsThumbnailController-DBjAq9-k.js → CasinoTournamentsThumbnailController-ImrFDGq7.js} +53 -48
- package/components/{CasinoTournamentsThumbnailDuration-CGgR5XoL.js → CasinoTournamentsThumbnailDuration-BIHBBD4m.js} +48 -44
- package/components/{CasinoTournamentsThumbnailDuration-sMRWK6Da.js → CasinoTournamentsThumbnailDuration-BOSDqPIP.js} +54 -50
- package/components/{CasinoTournamentsThumbnailDuration-DFP9BWRc.cjs → CasinoTournamentsThumbnailDuration-DLOov4TV.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BUainTMh.js → CasinoTournamentsThumbnailGamesSlider-BKEUZ6M0.js} +38 -37
- package/components/{CasinoTournamentsThumbnailGamesSlider-CU3QiSRS.cjs → CasinoTournamentsThumbnailGamesSlider-Blv_3Sia.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-Bcgbm6UZ.js → CasinoTournamentsThumbnailGamesSlider-C7uGGzGz.js} +56 -55
- package/components/{CasinoTournamentsThumbnailPrizes-Cb6ucU30.js → CasinoTournamentsThumbnailPrizes-BmPaa3r7.js} +15 -15
- package/components/{CasinoTournamentsThumbnailPrizes-D5o6hcAd.cjs → CasinoTournamentsThumbnailPrizes-CdcFiTcf.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-pB7CeUbv.js → CasinoTournamentsThumbnailPrizes-Cgjahh7G.js} +15 -15
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/esnext/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsController-C1dCP4c5.cjs +0 -14
- package/components/CasinoTournamentsListController-fm8TCneo.cjs +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as K, S as Y, i as Z,
|
|
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 m, A as tt, p as M, u as et, D as A, $ as nt } from "./CasinoTournamentsController-B7T1o6MJ.js";
|
|
2
2
|
function N(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
@@ -93,9 +93,9 @@ const O = {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
function it(i) {
|
|
96
|
-
|
|
96
|
+
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)}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function H(i) {
|
|
99
99
|
let t, e, s = (
|
|
100
100
|
/*formatDate*/
|
|
101
101
|
i[10](
|
|
@@ -127,23 +127,26 @@ function q(i) {
|
|
|
127
127
|
r[2] == "Finished" || /*status*/
|
|
128
128
|
r[2] == "Closing" || /*status*/
|
|
129
129
|
r[2] == "Closed"
|
|
130
|
-
)
|
|
130
|
+
)
|
|
131
|
+
return ut;
|
|
131
132
|
if (
|
|
132
133
|
/*tournamentUntilStartDays*/
|
|
133
134
|
r[5] > 0
|
|
134
|
-
)
|
|
135
|
+
)
|
|
136
|
+
return ot;
|
|
135
137
|
if (
|
|
136
138
|
/*tournamentLeftDays*/
|
|
137
139
|
r[4] > 0
|
|
138
|
-
)
|
|
140
|
+
)
|
|
141
|
+
return lt;
|
|
139
142
|
}
|
|
140
143
|
let k = R(i), f = k && k(i);
|
|
141
144
|
return {
|
|
142
145
|
c() {
|
|
143
|
-
t = v("div"), e = v("div"), a =
|
|
146
|
+
t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), h = v("div"), y.c(), D = L(), f && f.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(h, "class", "ProgressBar"), l(h, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
|
|
144
147
|
},
|
|
145
148
|
m(r, b) {
|
|
146
|
-
|
|
149
|
+
T(r, t, b), m(t, e), m(e, a), m(t, u), m(t, o), m(o, g), T(r, S, b), T(r, p, b), m(p, h), y.m(h, null), m(h, D), f && f.m(h, null), F || (j = tt(
|
|
147
150
|
/*getDuration*/
|
|
148
151
|
i[9].call(null, p)
|
|
149
152
|
), F = !0);
|
|
@@ -154,15 +157,15 @@ function q(i) {
|
|
|
154
157
|
r[10](
|
|
155
158
|
/*startdate*/
|
|
156
159
|
r[0]
|
|
157
|
-
) + "") &&
|
|
160
|
+
) + "") && M(a, s), b & /*enddate*/
|
|
158
161
|
2 && d !== (d = /*formatDate*/
|
|
159
162
|
r[10](
|
|
160
163
|
/*enddate*/
|
|
161
164
|
r[1]
|
|
162
|
-
) + "") &&
|
|
165
|
+
) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(h, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(h, null)));
|
|
163
166
|
},
|
|
164
167
|
d(r) {
|
|
165
|
-
r && (
|
|
168
|
+
r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
|
|
166
169
|
}
|
|
167
170
|
};
|
|
168
171
|
}
|
|
@@ -178,7 +181,7 @@ function st(i) {
|
|
|
178
181
|
);
|
|
179
182
|
},
|
|
180
183
|
m(e, s) {
|
|
181
|
-
|
|
184
|
+
T(e, t, s);
|
|
182
185
|
},
|
|
183
186
|
p(e, s) {
|
|
184
187
|
s & /*getProgress*/
|
|
@@ -190,7 +193,7 @@ function st(i) {
|
|
|
190
193
|
);
|
|
191
194
|
},
|
|
192
195
|
d(e) {
|
|
193
|
-
e &&
|
|
196
|
+
e && B(t);
|
|
194
197
|
}
|
|
195
198
|
};
|
|
196
199
|
}
|
|
@@ -201,11 +204,11 @@ function rt(i) {
|
|
|
201
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
202
205
|
},
|
|
203
206
|
m(e, s) {
|
|
204
|
-
|
|
207
|
+
T(e, t, s);
|
|
205
208
|
},
|
|
206
209
|
p: U,
|
|
207
210
|
d(e) {
|
|
208
|
-
e &&
|
|
211
|
+
e && B(t);
|
|
209
212
|
}
|
|
210
213
|
};
|
|
211
214
|
}
|
|
@@ -216,11 +219,11 @@ function at(i) {
|
|
|
216
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
217
220
|
},
|
|
218
221
|
m(e, s) {
|
|
219
|
-
|
|
222
|
+
T(e, t, s);
|
|
220
223
|
},
|
|
221
224
|
p: U,
|
|
222
225
|
d(e) {
|
|
223
|
-
e &&
|
|
226
|
+
e && B(t);
|
|
224
227
|
}
|
|
225
228
|
};
|
|
226
229
|
}
|
|
@@ -231,26 +234,26 @@ function lt(i) {
|
|
|
231
234
|
), u;
|
|
232
235
|
return {
|
|
233
236
|
c() {
|
|
234
|
-
t = v("div"), e =
|
|
237
|
+
t = v("div"), e = E(
|
|
235
238
|
/*showRemain*/
|
|
236
239
|
i[6]
|
|
237
|
-
), s = L(), u =
|
|
240
|
+
), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
238
241
|
},
|
|
239
242
|
m(o, d) {
|
|
240
|
-
|
|
243
|
+
T(o, t, d), m(t, e), m(t, s), m(t, u);
|
|
241
244
|
},
|
|
242
245
|
p(o, d) {
|
|
243
246
|
d & /*showRemain*/
|
|
244
|
-
64 &&
|
|
247
|
+
64 && M(
|
|
245
248
|
e,
|
|
246
249
|
/*showRemain*/
|
|
247
250
|
o[6]
|
|
248
251
|
), d & /*$_*/
|
|
249
252
|
256 && a !== (a = /*$_*/
|
|
250
|
-
o[8]("left") + "") &&
|
|
253
|
+
o[8]("left") + "") && M(u, a);
|
|
251
254
|
},
|
|
252
255
|
d(o) {
|
|
253
|
-
o &&
|
|
256
|
+
o && B(t);
|
|
254
257
|
}
|
|
255
258
|
};
|
|
256
259
|
}
|
|
@@ -267,23 +270,23 @@ function ot(i) {
|
|
|
267
270
|
), o;
|
|
268
271
|
return {
|
|
269
272
|
c() {
|
|
270
|
-
t = v("div"), s =
|
|
273
|
+
t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
271
274
|
},
|
|
272
275
|
m(d, g) {
|
|
273
|
-
|
|
276
|
+
T(d, t, g), m(t, s), m(t, a), m(t, o);
|
|
274
277
|
},
|
|
275
278
|
p(d, g) {
|
|
276
279
|
g & /*$_*/
|
|
277
280
|
256 && e !== (e = /*$_*/
|
|
278
|
-
d[8]("starting") + "") &&
|
|
281
|
+
d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
|
|
279
282
|
32 && u !== (u = /*getTextByDiff*/
|
|
280
283
|
d[11](
|
|
281
284
|
/*tournamentUntilStartDays*/
|
|
282
285
|
d[5]
|
|
283
|
-
) + "") &&
|
|
286
|
+
) + "") && M(o, u);
|
|
284
287
|
},
|
|
285
288
|
d(d) {
|
|
286
|
-
d &&
|
|
289
|
+
d && B(t);
|
|
287
290
|
}
|
|
288
291
|
};
|
|
289
292
|
}
|
|
@@ -294,18 +297,18 @@ function ut(i) {
|
|
|
294
297
|
), s;
|
|
295
298
|
return {
|
|
296
299
|
c() {
|
|
297
|
-
t = v("div"), s =
|
|
300
|
+
t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
298
301
|
},
|
|
299
302
|
m(a, u) {
|
|
300
|
-
|
|
303
|
+
T(a, t, u), m(t, s);
|
|
301
304
|
},
|
|
302
305
|
p(a, u) {
|
|
303
306
|
u & /*$_*/
|
|
304
307
|
256 && e !== (e = /*$_*/
|
|
305
|
-
a[8]("finished") + "") &&
|
|
308
|
+
a[8]("finished") + "") && M(s, e);
|
|
306
309
|
},
|
|
307
310
|
d(a) {
|
|
308
|
-
a &&
|
|
311
|
+
a && B(t);
|
|
309
312
|
}
|
|
310
313
|
};
|
|
311
314
|
}
|
|
@@ -313,30 +316,30 @@ function dt(i) {
|
|
|
313
316
|
let t, e = (
|
|
314
317
|
/*startdate*/
|
|
315
318
|
i[0] && /*enddate*/
|
|
316
|
-
i[1] &&
|
|
319
|
+
i[1] && H(i)
|
|
317
320
|
);
|
|
318
321
|
return {
|
|
319
322
|
c() {
|
|
320
323
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
321
324
|
},
|
|
322
325
|
m(s, a) {
|
|
323
|
-
|
|
326
|
+
T(s, t, a), e && e.m(t, null), i[16](t);
|
|
324
327
|
},
|
|
325
328
|
p(s, [a]) {
|
|
326
329
|
/*startdate*/
|
|
327
330
|
s[0] && /*enddate*/
|
|
328
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
331
|
+
s[1] ? e ? e.p(s, a) : (e = H(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
329
332
|
},
|
|
330
333
|
i: U,
|
|
331
334
|
o: U,
|
|
332
335
|
d(s) {
|
|
333
|
-
s &&
|
|
336
|
+
s && B(t), e && e.d(), i[16](null);
|
|
334
337
|
}
|
|
335
338
|
};
|
|
336
339
|
}
|
|
337
340
|
function ct(i, t, e) {
|
|
338
341
|
let s, a;
|
|
339
|
-
|
|
342
|
+
X(i, nt, (n) => e(8, a = n));
|
|
340
343
|
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: h = "" } = t, D, F = "", j = "", I = "";
|
|
341
344
|
const z = () => {
|
|
342
345
|
fetch(h).then((c) => c.json()).then((c) => {
|
|
@@ -370,7 +373,7 @@ function ct(i, t, e) {
|
|
|
370
373
|
}, b = () => {
|
|
371
374
|
let n = document.createElement("style");
|
|
372
375
|
n.innerHTML = S, D.appendChild(n);
|
|
373
|
-
},
|
|
376
|
+
}, q = () => {
|
|
374
377
|
let n = new URL(p), c = document.createElement("style");
|
|
375
378
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
376
379
|
c.innerHTML = _, setTimeout(
|
|
@@ -385,7 +388,7 @@ function ct(i, t, e) {
|
|
|
385
388
|
);
|
|
386
389
|
});
|
|
387
390
|
};
|
|
388
|
-
|
|
391
|
+
$(() => {
|
|
389
392
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
390
393
|
const n = setInterval(
|
|
391
394
|
() => {
|
|
@@ -396,7 +399,7 @@ function ct(i, t, e) {
|
|
|
396
399
|
return () => clearInterval(n);
|
|
397
400
|
});
|
|
398
401
|
function x(n) {
|
|
399
|
-
|
|
402
|
+
et[n ? "unshift" : "push"](() => {
|
|
400
403
|
D = n, e(3, D);
|
|
401
404
|
});
|
|
402
405
|
}
|
|
@@ -405,7 +408,8 @@ function ct(i, t, e) {
|
|
|
405
408
|
}, i.$$.update = () => {
|
|
406
409
|
i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
407
410
|
19 && e(7, s = () => {
|
|
408
|
-
if (F <= 0)
|
|
411
|
+
if (F <= 0)
|
|
412
|
+
return 100;
|
|
409
413
|
const n = R(u, o), c = 100 / n;
|
|
410
414
|
return Math.floor((n - F) * c);
|
|
411
415
|
}), i.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
@@ -414,7 +418,7 @@ function ct(i, t, e) {
|
|
|
414
418
|
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
415
419
|
32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
416
420
|
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
417
|
-
16392 && D && p &&
|
|
421
|
+
16392 && D && p && q();
|
|
418
422
|
}, [
|
|
419
423
|
u,
|
|
420
424
|
o,
|
|
@@ -442,7 +446,7 @@ class ft extends Y {
|
|
|
442
446
|
t,
|
|
443
447
|
ct,
|
|
444
448
|
dt,
|
|
445
|
-
|
|
449
|
+
Q,
|
|
446
450
|
{
|
|
447
451
|
startdate: 0,
|
|
448
452
|
enddate: 1,
|
|
@@ -498,7 +502,7 @@ class ft extends Y {
|
|
|
498
502
|
this.$$set({ translationurl: t }), C();
|
|
499
503
|
}
|
|
500
504
|
}
|
|
501
|
-
|
|
505
|
+
J(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
502
506
|
export {
|
|
503
507
|
ft as default
|
|
504
508
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as K, S as Y, i as Z,
|
|
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 m, A as tt, p as M, u as et, D as A, $ as nt } from "./CasinoTournamentsController--v7Db-nS.js";
|
|
2
2
|
function N(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
@@ -93,9 +93,9 @@ const O = {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
function it(i) {
|
|
96
|
-
|
|
96
|
+
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)}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function H(i) {
|
|
99
99
|
let t, e, s = (
|
|
100
100
|
/*formatDate*/
|
|
101
101
|
i[10](
|
|
@@ -108,7 +108,7 @@ function q(i) {
|
|
|
108
108
|
/*enddate*/
|
|
109
109
|
i[1]
|
|
110
110
|
) + ""
|
|
111
|
-
), g, S, p,
|
|
111
|
+
), g, S, p, h, D, F, j;
|
|
112
112
|
function I(r, b) {
|
|
113
113
|
return (
|
|
114
114
|
/*status*/
|
|
@@ -127,23 +127,26 @@ function q(i) {
|
|
|
127
127
|
r[2] == "Finished" || /*status*/
|
|
128
128
|
r[2] == "Closing" || /*status*/
|
|
129
129
|
r[2] == "Closed"
|
|
130
|
-
)
|
|
130
|
+
)
|
|
131
|
+
return ut;
|
|
131
132
|
if (
|
|
132
133
|
/*tournamentUntilStartDays*/
|
|
133
134
|
r[5] > 0
|
|
134
|
-
)
|
|
135
|
+
)
|
|
136
|
+
return ot;
|
|
135
137
|
if (
|
|
136
138
|
/*tournamentLeftDays*/
|
|
137
139
|
r[4] > 0
|
|
138
|
-
)
|
|
140
|
+
)
|
|
141
|
+
return lt;
|
|
139
142
|
}
|
|
140
143
|
let k = R(i), f = k && k(i);
|
|
141
144
|
return {
|
|
142
145
|
c() {
|
|
143
|
-
t = v("div"), e = v("div"), a =
|
|
146
|
+
t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), h = v("div"), y.c(), D = L(), f && f.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(h, "class", "ProgressBar"), l(h, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
|
|
144
147
|
},
|
|
145
148
|
m(r, b) {
|
|
146
|
-
|
|
149
|
+
T(r, t, b), m(t, e), m(e, a), m(t, u), m(t, o), m(o, g), T(r, S, b), T(r, p, b), m(p, h), y.m(h, null), m(h, D), f && f.m(h, null), F || (j = tt(
|
|
147
150
|
/*getDuration*/
|
|
148
151
|
i[9].call(null, p)
|
|
149
152
|
), F = !0);
|
|
@@ -154,15 +157,15 @@ function q(i) {
|
|
|
154
157
|
r[10](
|
|
155
158
|
/*startdate*/
|
|
156
159
|
r[0]
|
|
157
|
-
) + "") &&
|
|
160
|
+
) + "") && M(a, s), b & /*enddate*/
|
|
158
161
|
2 && d !== (d = /*formatDate*/
|
|
159
162
|
r[10](
|
|
160
163
|
/*enddate*/
|
|
161
164
|
r[1]
|
|
162
|
-
) + "") &&
|
|
165
|
+
) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(h, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(h, null)));
|
|
163
166
|
},
|
|
164
167
|
d(r) {
|
|
165
|
-
r && (
|
|
168
|
+
r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
|
|
166
169
|
}
|
|
167
170
|
};
|
|
168
171
|
}
|
|
@@ -178,7 +181,7 @@ function st(i) {
|
|
|
178
181
|
);
|
|
179
182
|
},
|
|
180
183
|
m(e, s) {
|
|
181
|
-
|
|
184
|
+
T(e, t, s);
|
|
182
185
|
},
|
|
183
186
|
p(e, s) {
|
|
184
187
|
s & /*getProgress*/
|
|
@@ -190,7 +193,7 @@ function st(i) {
|
|
|
190
193
|
);
|
|
191
194
|
},
|
|
192
195
|
d(e) {
|
|
193
|
-
e &&
|
|
196
|
+
e && B(t);
|
|
194
197
|
}
|
|
195
198
|
};
|
|
196
199
|
}
|
|
@@ -201,11 +204,11 @@ function rt(i) {
|
|
|
201
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
202
205
|
},
|
|
203
206
|
m(e, s) {
|
|
204
|
-
|
|
207
|
+
T(e, t, s);
|
|
205
208
|
},
|
|
206
209
|
p: U,
|
|
207
210
|
d(e) {
|
|
208
|
-
e &&
|
|
211
|
+
e && B(t);
|
|
209
212
|
}
|
|
210
213
|
};
|
|
211
214
|
}
|
|
@@ -216,11 +219,11 @@ function at(i) {
|
|
|
216
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
217
220
|
},
|
|
218
221
|
m(e, s) {
|
|
219
|
-
|
|
222
|
+
T(e, t, s);
|
|
220
223
|
},
|
|
221
224
|
p: U,
|
|
222
225
|
d(e) {
|
|
223
|
-
e &&
|
|
226
|
+
e && B(t);
|
|
224
227
|
}
|
|
225
228
|
};
|
|
226
229
|
}
|
|
@@ -231,26 +234,26 @@ function lt(i) {
|
|
|
231
234
|
), u;
|
|
232
235
|
return {
|
|
233
236
|
c() {
|
|
234
|
-
t = v("div"), e =
|
|
237
|
+
t = v("div"), e = E(
|
|
235
238
|
/*showRemain*/
|
|
236
239
|
i[6]
|
|
237
|
-
), s = L(), u =
|
|
240
|
+
), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
238
241
|
},
|
|
239
242
|
m(o, d) {
|
|
240
|
-
|
|
243
|
+
T(o, t, d), m(t, e), m(t, s), m(t, u);
|
|
241
244
|
},
|
|
242
245
|
p(o, d) {
|
|
243
246
|
d & /*showRemain*/
|
|
244
|
-
64 &&
|
|
247
|
+
64 && M(
|
|
245
248
|
e,
|
|
246
249
|
/*showRemain*/
|
|
247
250
|
o[6]
|
|
248
251
|
), d & /*$_*/
|
|
249
252
|
256 && a !== (a = /*$_*/
|
|
250
|
-
o[8]("left") + "") &&
|
|
253
|
+
o[8]("left") + "") && M(u, a);
|
|
251
254
|
},
|
|
252
255
|
d(o) {
|
|
253
|
-
o &&
|
|
256
|
+
o && B(t);
|
|
254
257
|
}
|
|
255
258
|
};
|
|
256
259
|
}
|
|
@@ -267,23 +270,23 @@ function ot(i) {
|
|
|
267
270
|
), o;
|
|
268
271
|
return {
|
|
269
272
|
c() {
|
|
270
|
-
t = v("div"), s =
|
|
273
|
+
t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
271
274
|
},
|
|
272
275
|
m(d, g) {
|
|
273
|
-
|
|
276
|
+
T(d, t, g), m(t, s), m(t, a), m(t, o);
|
|
274
277
|
},
|
|
275
278
|
p(d, g) {
|
|
276
279
|
g & /*$_*/
|
|
277
280
|
256 && e !== (e = /*$_*/
|
|
278
|
-
d[8]("starting") + "") &&
|
|
281
|
+
d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
|
|
279
282
|
32 && u !== (u = /*getTextByDiff*/
|
|
280
283
|
d[11](
|
|
281
284
|
/*tournamentUntilStartDays*/
|
|
282
285
|
d[5]
|
|
283
|
-
) + "") &&
|
|
286
|
+
) + "") && M(o, u);
|
|
284
287
|
},
|
|
285
288
|
d(d) {
|
|
286
|
-
d &&
|
|
289
|
+
d && B(t);
|
|
287
290
|
}
|
|
288
291
|
};
|
|
289
292
|
}
|
|
@@ -294,18 +297,18 @@ function ut(i) {
|
|
|
294
297
|
), s;
|
|
295
298
|
return {
|
|
296
299
|
c() {
|
|
297
|
-
t = v("div"), s =
|
|
300
|
+
t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
298
301
|
},
|
|
299
302
|
m(a, u) {
|
|
300
|
-
|
|
303
|
+
T(a, t, u), m(t, s);
|
|
301
304
|
},
|
|
302
305
|
p(a, u) {
|
|
303
306
|
u & /*$_*/
|
|
304
307
|
256 && e !== (e = /*$_*/
|
|
305
|
-
a[8]("finished") + "") &&
|
|
308
|
+
a[8]("finished") + "") && M(s, e);
|
|
306
309
|
},
|
|
307
310
|
d(a) {
|
|
308
|
-
a &&
|
|
311
|
+
a && B(t);
|
|
309
312
|
}
|
|
310
313
|
};
|
|
311
314
|
}
|
|
@@ -313,33 +316,33 @@ function dt(i) {
|
|
|
313
316
|
let t, e = (
|
|
314
317
|
/*startdate*/
|
|
315
318
|
i[0] && /*enddate*/
|
|
316
|
-
i[1] &&
|
|
319
|
+
i[1] && H(i)
|
|
317
320
|
);
|
|
318
321
|
return {
|
|
319
322
|
c() {
|
|
320
323
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
321
324
|
},
|
|
322
325
|
m(s, a) {
|
|
323
|
-
|
|
326
|
+
T(s, t, a), e && e.m(t, null), i[16](t);
|
|
324
327
|
},
|
|
325
328
|
p(s, [a]) {
|
|
326
329
|
/*startdate*/
|
|
327
330
|
s[0] && /*enddate*/
|
|
328
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
331
|
+
s[1] ? e ? e.p(s, a) : (e = H(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
329
332
|
},
|
|
330
333
|
i: U,
|
|
331
334
|
o: U,
|
|
332
335
|
d(s) {
|
|
333
|
-
s &&
|
|
336
|
+
s && B(t), e && e.d(), i[16](null);
|
|
334
337
|
}
|
|
335
338
|
};
|
|
336
339
|
}
|
|
337
340
|
function ct(i, t, e) {
|
|
338
341
|
let s, a;
|
|
339
|
-
|
|
340
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl:
|
|
342
|
+
X(i, nt, (n) => e(8, a = n));
|
|
343
|
+
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: h = "" } = t, D, F = "", j = "", I = "";
|
|
341
344
|
const z = () => {
|
|
342
|
-
fetch(
|
|
345
|
+
fetch(h).then((c) => c.json()).then((c) => {
|
|
343
346
|
Object.keys(c).forEach((_) => {
|
|
344
347
|
N(_, c[_]);
|
|
345
348
|
});
|
|
@@ -370,7 +373,7 @@ function ct(i, t, e) {
|
|
|
370
373
|
}, b = () => {
|
|
371
374
|
let n = document.createElement("style");
|
|
372
375
|
n.innerHTML = S, D.appendChild(n);
|
|
373
|
-
},
|
|
376
|
+
}, q = () => {
|
|
374
377
|
let n = new URL(p), c = document.createElement("style");
|
|
375
378
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
376
379
|
c.innerHTML = _, setTimeout(
|
|
@@ -385,7 +388,7 @@ function ct(i, t, e) {
|
|
|
385
388
|
);
|
|
386
389
|
});
|
|
387
390
|
};
|
|
388
|
-
|
|
391
|
+
$(() => {
|
|
389
392
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
390
393
|
const n = setInterval(
|
|
391
394
|
() => {
|
|
@@ -396,25 +399,26 @@ function ct(i, t, e) {
|
|
|
396
399
|
return () => clearInterval(n);
|
|
397
400
|
});
|
|
398
401
|
function x(n) {
|
|
399
|
-
|
|
402
|
+
et[n ? "unshift" : "push"](() => {
|
|
400
403
|
D = n, e(3, D);
|
|
401
404
|
});
|
|
402
405
|
}
|
|
403
406
|
return i.$$set = (n) => {
|
|
404
|
-
"startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15,
|
|
407
|
+
"startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15, h = n.translationurl);
|
|
405
408
|
}, i.$$.update = () => {
|
|
406
409
|
i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
407
410
|
19 && e(7, s = () => {
|
|
408
|
-
if (F <= 0)
|
|
411
|
+
if (F <= 0)
|
|
412
|
+
return 100;
|
|
409
413
|
const n = R(u, o), c = 100 / n;
|
|
410
414
|
return Math.floor((n - F) * c);
|
|
411
415
|
}), i.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
412
416
|
19 && u && o && k() && r(F), i.$$.dirty & /*lang*/
|
|
413
417
|
4096 && g && k(), i.$$.dirty & /*lang, tournamentLeftDays*/
|
|
414
418
|
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
415
|
-
32768 &&
|
|
419
|
+
32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
416
420
|
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
417
|
-
16392 && D && p &&
|
|
421
|
+
16392 && D && p && q();
|
|
418
422
|
}, [
|
|
419
423
|
u,
|
|
420
424
|
o,
|
|
@@ -431,7 +435,7 @@ function ct(i, t, e) {
|
|
|
431
435
|
g,
|
|
432
436
|
S,
|
|
433
437
|
p,
|
|
434
|
-
|
|
438
|
+
h,
|
|
435
439
|
x
|
|
436
440
|
];
|
|
437
441
|
}
|
|
@@ -442,7 +446,7 @@ class ft extends Y {
|
|
|
442
446
|
t,
|
|
443
447
|
ct,
|
|
444
448
|
dt,
|
|
445
|
-
|
|
449
|
+
Q,
|
|
446
450
|
{
|
|
447
451
|
startdate: 0,
|
|
448
452
|
enddate: 1,
|
|
@@ -498,7 +502,7 @@ class ft extends Y {
|
|
|
498
502
|
this.$$set({ translationurl: t }), C();
|
|
499
503
|
}
|
|
500
504
|
}
|
|
501
|
-
|
|
505
|
+
J(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
502
506
|
export {
|
|
503
507
|
ft as default
|
|
504
508
|
};
|