@everymatrix/casino-tournaments-page-controller 1.65.0 → 1.65.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/{CasinoTournamentsDetails-CrZw9MZh.js → CasinoTournamentsDetails-CFQUWbvj.js} +19 -19
- package/components/{CasinoTournamentsDetails-T8-0o9g0.js → CasinoTournamentsDetails-zOHDVY45.js} +19 -19
- package/components/{CasinoTournamentsPageController-DaqJVUzu.cjs → CasinoTournamentsPageController-BsbNFCug.cjs} +16 -16
- package/components/{CasinoTournamentsPageController-Cc5ERZfi.js → CasinoTournamentsPageController-CvIRnvOF.js} +1832 -1811
- package/components/{CasinoTournamentsPageController-Duaz3MBD.js → CasinoTournamentsPageController-DditZoZN.js} +1817 -1796
- package/components/{CasinoTournamentsRank-CVD6o_A-.js → CasinoTournamentsRank-COQkFUQW.js} +53 -53
- package/components/{CasinoTournamentsRank-Bge6VCcn.js → CasinoTournamentsRank-D48ge-V-.js} +53 -53
- package/components/{CasinoTournamentsTab-3_iy76Op.js → CasinoTournamentsTab-DQFmnoNK.js} +39 -39
- package/components/{CasinoTournamentsTab-CJVQX8ov.js → CasinoTournamentsTab-Fliuqza4.js} +32 -32
- package/components/{CasinoTournamentsTable-8bE-CO-E.cjs → CasinoTournamentsTable-B8y6CW60.cjs} +1 -1
- package/components/{CasinoTournamentsTable-0POhhnV1.js → CasinoTournamentsTable-BzrJtXiW.js} +81 -81
- package/components/{CasinoTournamentsTable-BUZu6L7E.js → CasinoTournamentsTable-D7UMQT7l.js} +81 -81
- package/components/{CasinoTournamentsThumbnail-Bjrv7yav.js → CasinoTournamentsThumbnail-D6gvraDN.js} +49 -49
- package/components/{CasinoTournamentsThumbnail-BO4wUnJz.js → CasinoTournamentsThumbnail-DNf2afeh.js} +49 -49
- package/components/{CasinoTournamentsThumbnail-DaS1BWvL.cjs → CasinoTournamentsThumbnail-cgfDLswI.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-B0zPBHTx.js → CasinoTournamentsThumbnailController-BMELxEo5.js} +45 -45
- package/components/{CasinoTournamentsThumbnailController-C2_FFCKZ.cjs → CasinoTournamentsThumbnailController-D-l6DdPx.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-D5qJH-fz.js → CasinoTournamentsThumbnailController-Pxp0gqob.js} +45 -45
- package/components/{CasinoTournamentsThumbnailDuration-DLyTPzlL.js → CasinoTournamentsThumbnailDuration-BnLEOvMZ.js} +50 -50
- package/components/{CasinoTournamentsThumbnailDuration-CNUbvOzq.cjs → CasinoTournamentsThumbnailDuration-DkEXX81i.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-D7_UIggy.js → CasinoTournamentsThumbnailDuration-DyywmubN.js} +50 -50
- package/components/{CasinoTournamentsThumbnailGamesSlider-BBMHne0S.js → CasinoTournamentsThumbnailGamesSlider-BUFYKK5e.js} +27 -27
- package/components/{CasinoTournamentsThumbnailGamesSlider-CNqm22fI.cjs → CasinoTournamentsThumbnailGamesSlider-CegmcJ5s.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-CCQOrQfd.js → CasinoTournamentsThumbnailGamesSlider-quCoqaaj.js} +27 -27
- package/components/{CasinoTournamentsThumbnailPrizes-Bnrn33dD.js → CasinoTournamentsThumbnailPrizes-BX-g86WS.js} +35 -35
- package/components/{CasinoTournamentsThumbnailPrizes-F0aA2PLD.cjs → CasinoTournamentsThumbnailPrizes-DiHRdSPR.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DGF5sCXa.js → CasinoTournamentsThumbnailPrizes-WRaq3I_R.js} +35 -35
- package/components/{CasinoTournamentsThumbnailRule-CsWL7Ngu.js → CasinoTournamentsThumbnailRule-BjSWRQqE.js} +61 -61
- package/components/{CasinoTournamentsThumbnailRule-BU4HQy1J.cjs → CasinoTournamentsThumbnailRule-CFXCboYr.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-Ocbm2BYX.js → CasinoTournamentsThumbnailRule-Ctb5ZR83.js} +61 -61
- 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-BEnqZAxL.js +558 -0
- package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
- package/stencil/index-97d17652-WK_DbPS4.js +542 -0
- package/stencil/index-b2193545-BOMvxBzV.js +519 -0
- package/stencil/index-b2193545-CFn9dM-v.js +503 -0
- package/stencil/index-b2193545-DPygl1Qn.cjs +1 -0
- package/stencil/{ui-image-BdKD9mn4.js → ui-image-3hy4ZvUC.js} +1 -1
- package/stencil/{ui-image-Brhx0VeQ.js → ui-image-D0wxuPze.js} +1 -1
- package/stencil/{ui-image-DEQHOm9Q.cjs → ui-image-DE8MJHCZ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-7wF4sIlr.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DQE3WxuL.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-kIlLPkYB.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
- package/stencil/{ui-image_2-oohpKuRS.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-Db7N7hzA.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-CJHJWEhi.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-CoUSUuCH.js → ui-skeleton-1cb75d00-B-R8GbLJ.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-HdJyBz6W.cjs → ui-skeleton-1cb75d00-BTnhspbc.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-DwCQPKmJ.js → ui-skeleton-1cb75d00-Dy30RNE6.js} +1 -1
- package/stencil/{ui-skeleton-DdjXy3Vl.js → ui-skeleton-CVBjRUvi.js} +2 -2
- package/stencil/{ui-skeleton-BhWinivj.js → ui-skeleton-RkXNxPG1.js} +2 -2
- package/stencil/{ui-skeleton-06DDwuG9.cjs → ui-skeleton-se83zfWh.cjs} +1 -1
- package/stencil/index-97d17652-BzQXAkmg.js +0 -558
- package/stencil/index-97d17652-DYGS0vqJ.cjs +0 -1
- package/stencil/index-97d17652-mbOyENH9.js +0 -542
- package/stencil/index-b2193545-C2pLoBGJ.js +0 -503
- package/stencil/index-b2193545-CoXVDra7.js +0 -519
- package/stencil/index-b2193545-CwpolrjE.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as K, b as Y,
|
|
2
|
-
import { a as et, b as nt } from "./CasinoTournamentsPageController-
|
|
3
|
-
function
|
|
1
|
+
import { S as K, b as Y, s as Z, f as C, d as J, n as U, e as T, g as B, p as v, q as l, k as Q, o as V, l as E, m as h, B as X, t as M, h as L, x as $, C as N, c as tt } from "./CasinoTournamentsDetails-zOHDVY45.js";
|
|
2
|
+
import { a as et, b as nt } from "./CasinoTournamentsPageController-CvIRnvOF.js";
|
|
3
|
+
function O(i, t) {
|
|
4
4
|
et(i, t);
|
|
5
5
|
}
|
|
6
|
-
const
|
|
6
|
+
const q = {
|
|
7
7
|
en: {
|
|
8
8
|
finished: "Finished",
|
|
9
9
|
starting: "Starting in ",
|
|
@@ -94,9 +94,9 @@ const O = {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
function it(i) {
|
|
97
|
-
|
|
97
|
+
J(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)}");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function x(i) {
|
|
100
100
|
let t, e, s = (
|
|
101
101
|
/*formatDate*/
|
|
102
102
|
i[10](
|
|
@@ -144,10 +144,10 @@ function q(i) {
|
|
|
144
144
|
let k = R(i), f = k && k(i);
|
|
145
145
|
return {
|
|
146
146
|
c() {
|
|
147
|
-
t = v("div"), e = v("div"), a =
|
|
147
|
+
t = v("div"), e = v("div"), a = M(s), u = L(), o = v("div"), g = M(d), S = L(), p = v("div"), m = 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(m, "class", "ProgressBar"), l(m, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
|
|
148
148
|
},
|
|
149
149
|
m(r, b) {
|
|
150
|
-
|
|
150
|
+
B(r, t, b), h(t, e), h(e, a), h(t, u), h(t, o), h(o, g), B(r, S, b), B(r, p, b), h(p, m), y.m(m, null), h(m, D), f && f.m(m, null), F || (j = X(
|
|
151
151
|
/*getDuration*/
|
|
152
152
|
i[9].call(null, p)
|
|
153
153
|
), F = !0);
|
|
@@ -158,15 +158,15 @@ function q(i) {
|
|
|
158
158
|
r[10](
|
|
159
159
|
/*startdate*/
|
|
160
160
|
r[0]
|
|
161
|
-
) + "") &&
|
|
161
|
+
) + "") && E(a, s), b & /*enddate*/
|
|
162
162
|
2 && d !== (d = /*formatDate*/
|
|
163
163
|
r[10](
|
|
164
164
|
/*enddate*/
|
|
165
165
|
r[1]
|
|
166
|
-
) + "") &&
|
|
166
|
+
) + "") && E(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(m, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(m, null)));
|
|
167
167
|
},
|
|
168
168
|
d(r) {
|
|
169
|
-
r && (
|
|
169
|
+
r && (T(t), T(S), T(p)), y.d(), f && f.d(), F = !1, j();
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
172
|
}
|
|
@@ -174,7 +174,7 @@ function st(i) {
|
|
|
174
174
|
let t;
|
|
175
175
|
return {
|
|
176
176
|
c() {
|
|
177
|
-
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"),
|
|
177
|
+
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), N(
|
|
178
178
|
t,
|
|
179
179
|
"width",
|
|
180
180
|
/*getProgress*/
|
|
@@ -182,11 +182,11 @@ function st(i) {
|
|
|
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*/
|
|
189
|
-
128 &&
|
|
189
|
+
128 && N(
|
|
190
190
|
t,
|
|
191
191
|
"width",
|
|
192
192
|
/*getProgress*/
|
|
@@ -194,7 +194,7 @@ function st(i) {
|
|
|
194
194
|
);
|
|
195
195
|
},
|
|
196
196
|
d(e) {
|
|
197
|
-
e &&
|
|
197
|
+
e && T(t);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
}
|
|
@@ -205,11 +205,11 @@ function rt(i) {
|
|
|
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: U,
|
|
211
211
|
d(e) {
|
|
212
|
-
e &&
|
|
212
|
+
e && T(t);
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
}
|
|
@@ -220,11 +220,11 @@ function at(i) {
|
|
|
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: U,
|
|
226
226
|
d(e) {
|
|
227
|
-
e &&
|
|
227
|
+
e && T(t);
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
230
|
}
|
|
@@ -235,26 +235,26 @@ function lt(i) {
|
|
|
235
235
|
), u;
|
|
236
236
|
return {
|
|
237
237
|
c() {
|
|
238
|
-
t = v("div"), e =
|
|
238
|
+
t = v("div"), e = M(
|
|
239
239
|
/*showRemain*/
|
|
240
240
|
i[6]
|
|
241
|
-
), s = L(), u =
|
|
241
|
+
), s = L(), u = M(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
242
242
|
},
|
|
243
243
|
m(o, d) {
|
|
244
|
-
|
|
244
|
+
B(o, t, d), h(t, e), h(t, s), h(t, u);
|
|
245
245
|
},
|
|
246
246
|
p(o, d) {
|
|
247
247
|
d & /*showRemain*/
|
|
248
|
-
64 &&
|
|
248
|
+
64 && E(
|
|
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") + "") && E(u, a);
|
|
255
255
|
},
|
|
256
256
|
d(o) {
|
|
257
|
-
o &&
|
|
257
|
+
o && T(t);
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
260
|
}
|
|
@@ -271,23 +271,23 @@ function ot(i) {
|
|
|
271
271
|
), o;
|
|
272
272
|
return {
|
|
273
273
|
c() {
|
|
274
|
-
t = v("div"), s =
|
|
274
|
+
t = v("div"), s = M(e), a = L(), o = M(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
275
275
|
},
|
|
276
276
|
m(d, g) {
|
|
277
|
-
|
|
277
|
+
B(d, t, g), h(t, s), h(t, a), h(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") + "") && E(s, e), g & /*tournamentUntilStartDays*/
|
|
283
283
|
32 && u !== (u = /*getTextByDiff*/
|
|
284
284
|
d[11](
|
|
285
285
|
/*tournamentUntilStartDays*/
|
|
286
286
|
d[5]
|
|
287
|
-
) + "") &&
|
|
287
|
+
) + "") && E(o, u);
|
|
288
288
|
},
|
|
289
289
|
d(d) {
|
|
290
|
-
d &&
|
|
290
|
+
d && T(t);
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
293
|
}
|
|
@@ -298,18 +298,18 @@ function ut(i) {
|
|
|
298
298
|
), s;
|
|
299
299
|
return {
|
|
300
300
|
c() {
|
|
301
|
-
t = v("div"), s =
|
|
301
|
+
t = v("div"), s = M(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
302
302
|
},
|
|
303
303
|
m(a, u) {
|
|
304
|
-
|
|
304
|
+
B(a, t, u), h(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") + "") && E(s, e);
|
|
310
310
|
},
|
|
311
311
|
d(a) {
|
|
312
|
-
a &&
|
|
312
|
+
a && T(t);
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
315
|
}
|
|
@@ -317,42 +317,42 @@ function dt(i) {
|
|
|
317
317
|
let t, e = (
|
|
318
318
|
/*startdate*/
|
|
319
319
|
i[0] && /*enddate*/
|
|
320
|
-
i[1] &&
|
|
320
|
+
i[1] && x(i)
|
|
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), i[16](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 = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
333
333
|
},
|
|
334
334
|
i: U,
|
|
335
335
|
o: U,
|
|
336
336
|
d(s) {
|
|
337
|
-
s &&
|
|
337
|
+
s && T(t), e && e.d(), i[16](null);
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
341
|
function ct(i, t, e) {
|
|
342
342
|
let s, a;
|
|
343
|
-
|
|
343
|
+
Q(i, nt, (n) => e(8, a = n));
|
|
344
344
|
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: m = "" } = t, D, F = "", j = "", I = "";
|
|
345
345
|
const z = () => {
|
|
346
346
|
fetch(m).then((c) => c.json()).then((c) => {
|
|
347
347
|
Object.keys(c).forEach((_) => {
|
|
348
|
-
|
|
348
|
+
O(_, c[_]);
|
|
349
349
|
});
|
|
350
350
|
}).catch((c) => {
|
|
351
351
|
console.log(c);
|
|
352
352
|
});
|
|
353
353
|
};
|
|
354
|
-
Object.keys(
|
|
355
|
-
|
|
354
|
+
Object.keys(q).forEach((n) => {
|
|
355
|
+
O(n, q[n]);
|
|
356
356
|
});
|
|
357
357
|
const y = (n) => new Date(n).getTime(), R = (n, c) => (y(c) - y(n)) / (1e3 * 60), k = () => {
|
|
358
358
|
const n = /* @__PURE__ */ new Date();
|
|
@@ -374,7 +374,7 @@ function ct(i, t, e) {
|
|
|
374
374
|
}, b = () => {
|
|
375
375
|
let n = document.createElement("style");
|
|
376
376
|
n.innerHTML = S, D.appendChild(n);
|
|
377
|
-
},
|
|
377
|
+
}, A = () => {
|
|
378
378
|
let n = new URL(p), c = document.createElement("style");
|
|
379
379
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
380
380
|
c.innerHTML = _, setTimeout(
|
|
@@ -389,7 +389,7 @@ function ct(i, t, e) {
|
|
|
389
389
|
);
|
|
390
390
|
});
|
|
391
391
|
};
|
|
392
|
-
|
|
392
|
+
V(() => {
|
|
393
393
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
394
394
|
const n = setInterval(
|
|
395
395
|
() => {
|
|
@@ -399,8 +399,8 @@ function ct(i, t, e) {
|
|
|
399
399
|
);
|
|
400
400
|
return () => clearInterval(n);
|
|
401
401
|
});
|
|
402
|
-
function
|
|
403
|
-
|
|
402
|
+
function H(n) {
|
|
403
|
+
$[n ? "unshift" : "push"](() => {
|
|
404
404
|
D = n, e(3, D);
|
|
405
405
|
});
|
|
406
406
|
}
|
|
@@ -419,7 +419,7 @@ function ct(i, t, e) {
|
|
|
419
419
|
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
420
420
|
32768 && m && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
421
421
|
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
422
|
-
16392 && D && p &&
|
|
422
|
+
16392 && D && p && A();
|
|
423
423
|
}, [
|
|
424
424
|
u,
|
|
425
425
|
o,
|
|
@@ -437,7 +437,7 @@ function ct(i, t, e) {
|
|
|
437
437
|
S,
|
|
438
438
|
p,
|
|
439
439
|
m,
|
|
440
|
-
|
|
440
|
+
H
|
|
441
441
|
];
|
|
442
442
|
}
|
|
443
443
|
class ft extends K {
|
|
@@ -447,7 +447,7 @@ class ft extends K {
|
|
|
447
447
|
t,
|
|
448
448
|
ct,
|
|
449
449
|
dt,
|
|
450
|
-
|
|
450
|
+
Z,
|
|
451
451
|
{
|
|
452
452
|
startdate: 0,
|
|
453
453
|
enddate: 1,
|
|
@@ -503,7 +503,7 @@ class ft extends K {
|
|
|
503
503
|
this.$$set({ translationurl: t }), C();
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
|
|
506
|
+
tt(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
507
507
|
export {
|
|
508
508
|
ft as default
|
|
509
509
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsDetails-Cfdgdrwr.cjs"),z=require("./CasinoTournamentsPageController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsDetails-Cfdgdrwr.cjs"),z=require("./CasinoTournamentsPageController-BsbNFCug.cjs");function C(r,e){z.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 E(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[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?q:U}let w=P(r),m=w(r);function B(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return W;if(s[5]>0)return H;if(s[4]>0)return A}let D=B(r),f=D&&D(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),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(r[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 U(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 q(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 A(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 H(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]&&E(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[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(),r[16](null)}}}function K(r,e,n){let a,l;t.component_subscribe(r,z.$format,i=>n(8,l=i));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(i=>{C(i,M[i])});const m=i=>new Date(i).getTime(),B=(i,c)=>(m(c)-m(i))/(1e3*60),D=()=>{const i=new Date;n(4,v=B(i,o)),n(5,S=B(i,u)),n(6,P=s(v))},f=i=>{const c={month:"long"};let p=new Date(i),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=i=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(i<1440){const k=i/60,F=i%60,I=(F-Math.floor(F))*60;return[k,F,I].map(L=>p(L)).join(":")}return c(Math.ceil(i/(60*24)),"days")},_=()=>{let i=document.createElement("style");i.innerHTML=T,b.appendChild(i)},j=()=>{let i=new URL(y),c=document.createElement("style");fetch(i.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 i=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(i)});function x(i){t.binding_callbacks[i?"unshift":"push"](()=>{b=i,n(3,b)})}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,T=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,h=i.translationurl)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const i=B(u,o),c=100/i;return Math.floor((i-v)*c)}),r.$$.dirty&19&&u&&o&&D()&&s(v),r.$$.dirty&4096&&g&&D(),r.$$.dirty&4112&&g&&s(v),r.$$.dirty&32768&&h&&w(),r.$$.dirty&8200&&b&&T&&_(),r.$$.dirty&16392&&b&&y&&j()},[u,o,d,b,v,S,P,a,l,D,f,s,g,T,y,h,x]}class R extends t.SvelteComponent{constructor(e){super(),t.init(this,e,K,G,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},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()}}t.create_custom_element(R,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=R;
|