@everymatrix/casino-tournaments-thumbnail-controller 1.86.3 → 1.86.5
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/{CasinoTournamentsThumbnail-b84P5LC-.js → CasinoTournamentsThumbnail-Cm8ygS_j.js} +636 -668
- package/components/CasinoTournamentsThumbnail-DgXXegVa.cjs +5 -0
- package/components/{CasinoTournamentsThumbnail-BQPDlD-6.js → CasinoTournamentsThumbnail-J7Of-3j4.js} +633 -665
- package/components/CasinoTournamentsThumbnailController-DD3a1bpc.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-Dk5ObYFQ.js → CasinoTournamentsThumbnailController-DGTv-6Vg.js} +571 -522
- package/components/{CasinoTournamentsThumbnailController-CHXnZMEK.js → CasinoTournamentsThumbnailController-yXv_8aa_.js} +615 -566
- package/components/{CasinoTournamentsThumbnailDuration-BRCX2YcD.js → CasinoTournamentsThumbnailDuration-DMSfakAi.js} +65 -65
- package/components/{CasinoTournamentsThumbnailDuration-BmsYPOji.cjs → CasinoTournamentsThumbnailDuration-IvKEkgj7.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-DesoRPY7.js → CasinoTournamentsThumbnailDuration-ShCMXlPG.js} +65 -65
- package/components/{CasinoTournamentsThumbnailGamesSlider-CuFhSsUz.js → CasinoTournamentsThumbnailGamesSlider-C9n0GZT3.js} +88 -88
- package/components/{CasinoTournamentsThumbnailGamesSlider-DsUSEf8W.cjs → CasinoTournamentsThumbnailGamesSlider-HEUEl0MK.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BumjreGL.js → CasinoTournamentsThumbnailGamesSlider-l7mPDvzQ.js} +88 -88
- package/components/{CasinoTournamentsThumbnailPrizes-DMD910A-.cjs → CasinoTournamentsThumbnailPrizes-BRbgsA4Y.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BrDPw5rZ.js → CasinoTournamentsThumbnailPrizes-CEvbFf9m.js} +85 -85
- package/components/{CasinoTournamentsThumbnailPrizes-CReAnTE_.js → CasinoTournamentsThumbnailPrizes-Ctx2j7e2.js} +85 -85
- package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/index-b2193545-BpG2toSK.js +503 -0
- package/stencil/index-b2193545-DfeVnolx.cjs +1 -0
- package/stencil/index-b2193545-DuA2iMSm.js +519 -0
- package/stencil/{ui-image-DLoBAw4w.js → ui-image-Cs_BBOYl.js} +1 -1
- package/stencil/{ui-image-83gG286t.cjs → ui-image-DUHLTRXs.cjs} +1 -1
- package/stencil/{ui-image-2Wo8bNh1.js → ui-image-O0NdjWCu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
- package/stencil/{ui-skeleton-hbyf6ZV-.cjs → ui-skeleton-B0E7XBJC.cjs} +1 -1
- package/stencil/{ui-skeleton-Czz99elh.js → ui-skeleton-Yn79cPkz.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-F5Pn7BxE.js → ui-skeleton-ed169f8f-B-SERL0D.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-DiR5y84l.cjs → ui-skeleton-ed169f8f-BRUG1h6n.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-DTd-f9E3.js → ui-skeleton-ed169f8f-UdVwF_E9.js} +1 -1
- package/stencil/{ui-skeleton-BOZjVV7m.js → ui-skeleton-i9jZ615T.js} +2 -2
- package/components/CasinoTournamentsThumbnail-CSDNBS1u.cjs +0 -18
- package/components/CasinoTournamentsThumbnailController-B5oA7xOB.cjs +0 -3
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
- package/stencil/index-b2193545-RI3PckwN.js +0 -503
- package/stencil/index-b2193545-qC7jkIQW.cjs +0 -1
- package/stencil/index-b2193545-w9rTFozR.js +0 -519
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { b as H, S as K, i as Y, s as Z, f as C, d as J, n as L, e as w, j as B, l as v, h as l, o as Q, p as V, u as M, k as y, t as X, v as j, m as A, q as $, E as N, B as tt, C as et, D as nt, c as it, A as st } from "./CasinoTournamentsThumbnail-Cm8ygS_j.js";
|
|
2
|
+
function O(n, t) {
|
|
3
|
+
H(n, t);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const U = {
|
|
6
6
|
en: {
|
|
7
7
|
finished: "Finished",
|
|
8
8
|
starting: "Starting in ",
|
|
@@ -93,9 +93,9 @@ const q = {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
function rt(n) {
|
|
96
|
-
|
|
96
|
+
J(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](
|
|
@@ -120,7 +120,7 @@ function x(n) {
|
|
|
120
120
|
)
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
let
|
|
123
|
+
let E = R(n), p = E(n);
|
|
124
124
|
function I(r, f) {
|
|
125
125
|
if (
|
|
126
126
|
/*status*/
|
|
@@ -143,10 +143,10 @@ function x(n) {
|
|
|
143
143
|
let F = I(n), c = F && F(n);
|
|
144
144
|
return {
|
|
145
145
|
c() {
|
|
146
|
-
t = v("div"), e = v("div"), a =
|
|
146
|
+
t = v("div"), e = v("div"), a = j(s), u = A(), o = v("div"), g = j(d), T = A(), b = v("div"), m = v("div"), p.c(), P = A(), 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");
|
|
147
147
|
},
|
|
148
148
|
m(r, f) {
|
|
149
|
-
|
|
149
|
+
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 = X(
|
|
150
150
|
/*getDuration*/
|
|
151
151
|
n[9].call(null, b)
|
|
152
152
|
), _ = !0);
|
|
@@ -157,15 +157,15 @@ function x(n) {
|
|
|
157
157
|
r[10](
|
|
158
158
|
/*startdate*/
|
|
159
159
|
r[0]
|
|
160
|
-
) + "") &&
|
|
160
|
+
) + "") && M(a, s), f & /*enddate*/
|
|
161
161
|
2 && d !== (d = /*formatDate*/
|
|
162
162
|
r[10](
|
|
163
163
|
/*enddate*/
|
|
164
164
|
r[1]
|
|
165
|
-
) + "") &&
|
|
165
|
+
) + "") && 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)));
|
|
166
166
|
},
|
|
167
167
|
d(r) {
|
|
168
|
-
r && (
|
|
168
|
+
r && (w(t), w(T), w(b)), p.d(), c && c.d(), _ = !1, D();
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
@@ -173,7 +173,7 @@ function at(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"), N(
|
|
177
177
|
t,
|
|
178
178
|
"width",
|
|
179
179
|
/*getProgress*/
|
|
@@ -181,11 +181,11 @@ function at(n) {
|
|
|
181
181
|
);
|
|
182
182
|
},
|
|
183
183
|
m(e, s) {
|
|
184
|
-
|
|
184
|
+
B(e, t, s);
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
188
|
-
128 &&
|
|
188
|
+
128 && N(
|
|
189
189
|
t,
|
|
190
190
|
"width",
|
|
191
191
|
/*getProgress*/
|
|
@@ -193,7 +193,7 @@ function at(n) {
|
|
|
193
193
|
);
|
|
194
194
|
},
|
|
195
195
|
d(e) {
|
|
196
|
-
e &&
|
|
196
|
+
e && w(t);
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
}
|
|
@@ -204,11 +204,11 @@ function lt(n) {
|
|
|
204
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
205
205
|
},
|
|
206
206
|
m(e, s) {
|
|
207
|
-
|
|
207
|
+
B(e, t, s);
|
|
208
208
|
},
|
|
209
|
-
p:
|
|
209
|
+
p: L,
|
|
210
210
|
d(e) {
|
|
211
|
-
e &&
|
|
211
|
+
e && w(t);
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
@@ -219,11 +219,11 @@ function ot(n) {
|
|
|
219
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
220
220
|
},
|
|
221
221
|
m(e, s) {
|
|
222
|
-
|
|
222
|
+
B(e, t, s);
|
|
223
223
|
},
|
|
224
|
-
p:
|
|
224
|
+
p: L,
|
|
225
225
|
d(e) {
|
|
226
|
-
e &&
|
|
226
|
+
e && w(t);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -234,26 +234,26 @@ function ut(n) {
|
|
|
234
234
|
), u;
|
|
235
235
|
return {
|
|
236
236
|
c() {
|
|
237
|
-
t = v("div"), e =
|
|
237
|
+
t = v("div"), e = j(
|
|
238
238
|
/*showRemain*/
|
|
239
239
|
n[6]
|
|
240
|
-
), s =
|
|
240
|
+
), s = A(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
241
241
|
},
|
|
242
242
|
m(o, d) {
|
|
243
|
-
|
|
243
|
+
B(o, t, d), y(t, e), y(t, s), y(t, u);
|
|
244
244
|
},
|
|
245
245
|
p(o, d) {
|
|
246
246
|
d & /*showRemain*/
|
|
247
|
-
64 &&
|
|
247
|
+
64 && M(
|
|
248
248
|
e,
|
|
249
249
|
/*showRemain*/
|
|
250
250
|
o[6]
|
|
251
251
|
), d & /*$_*/
|
|
252
252
|
256 && a !== (a = /*$_*/
|
|
253
|
-
o[8]("left") + "") &&
|
|
253
|
+
o[8]("left") + "") && M(u, a);
|
|
254
254
|
},
|
|
255
255
|
d(o) {
|
|
256
|
-
o &&
|
|
256
|
+
o && w(t);
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
@@ -270,23 +270,23 @@ function dt(n) {
|
|
|
270
270
|
), o;
|
|
271
271
|
return {
|
|
272
272
|
c() {
|
|
273
|
-
t = v("div"), s =
|
|
273
|
+
t = v("div"), s = j(e), a = A(), o = j(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
274
274
|
},
|
|
275
275
|
m(d, g) {
|
|
276
|
-
|
|
276
|
+
B(d, t, g), y(t, s), y(t, a), y(t, o);
|
|
277
277
|
},
|
|
278
278
|
p(d, g) {
|
|
279
279
|
g & /*$_*/
|
|
280
280
|
256 && e !== (e = /*$_*/
|
|
281
|
-
d[8]("starting") + "") &&
|
|
281
|
+
d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
|
|
282
282
|
32 && u !== (u = /*getTextByDiff*/
|
|
283
283
|
d[11](
|
|
284
284
|
/*tournamentUntilStartDays*/
|
|
285
285
|
d[5]
|
|
286
|
-
) + "") &&
|
|
286
|
+
) + "") && M(o, u);
|
|
287
287
|
},
|
|
288
288
|
d(d) {
|
|
289
|
-
d &&
|
|
289
|
+
d && w(t);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
@@ -297,18 +297,18 @@ function ct(n) {
|
|
|
297
297
|
), s;
|
|
298
298
|
return {
|
|
299
299
|
c() {
|
|
300
|
-
t = v("div"), s =
|
|
300
|
+
t = v("div"), s = j(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
301
301
|
},
|
|
302
302
|
m(a, u) {
|
|
303
|
-
|
|
303
|
+
B(a, t, u), y(t, s);
|
|
304
304
|
},
|
|
305
305
|
p(a, u) {
|
|
306
306
|
u & /*$_*/
|
|
307
307
|
256 && e !== (e = /*$_*/
|
|
308
|
-
a[8]("finished") + "") &&
|
|
308
|
+
a[8]("finished") + "") && M(s, e);
|
|
309
309
|
},
|
|
310
310
|
d(a) {
|
|
311
|
-
a &&
|
|
311
|
+
a && w(t);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -316,62 +316,62 @@ function ft(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() {
|
|
323
323
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
324
324
|
},
|
|
325
325
|
m(s, a) {
|
|
326
|
-
|
|
326
|
+
B(s, t, a), e && e.m(t, null), n[17](t);
|
|
327
327
|
},
|
|
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: L,
|
|
334
|
+
o: L,
|
|
335
335
|
d(s) {
|
|
336
|
-
s &&
|
|
336
|
+
s && w(t), e && e.d(), n[17](null);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function gt(n, t, e) {
|
|
341
341
|
let s, a;
|
|
342
|
-
|
|
343
|
-
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 = "",
|
|
342
|
+
Q(n, st, (i) => e(8, a = i));
|
|
343
|
+
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 = "";
|
|
344
344
|
const p = () => {
|
|
345
345
|
fetch(m).then((h) => h.json()).then((h) => {
|
|
346
346
|
Object.keys(h).forEach((S) => {
|
|
347
|
-
|
|
347
|
+
O(S, h[S]);
|
|
348
348
|
});
|
|
349
349
|
}).catch((h) => {
|
|
350
350
|
console.log(h);
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
|
-
Object.keys(
|
|
354
|
-
|
|
353
|
+
Object.keys(U).forEach((i) => {
|
|
354
|
+
O(i, U[i]);
|
|
355
355
|
});
|
|
356
356
|
const I = (i) => new Date(i).getTime(), F = (i, h) => (I(h) - I(i)) / (1e3 * 60), c = () => {
|
|
357
357
|
const i = /* @__PURE__ */ new Date();
|
|
358
|
-
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6,
|
|
358
|
+
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6, E = f(D));
|
|
359
359
|
}, r = (i) => {
|
|
360
360
|
const h = { month: "long" };
|
|
361
|
-
let S = new Date(i),
|
|
362
|
-
return `${S.getDate()} ${
|
|
361
|
+
let S = new Date(i), z = new Intl.DateTimeFormat(g, h).format(S);
|
|
362
|
+
return `${S.getDate()} ${z}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
363
363
|
}, f = (i) => {
|
|
364
|
-
const h = (
|
|
365
|
-
const k = Math.floor(
|
|
364
|
+
const h = (z, k) => z + " " + a(k), S = (z) => {
|
|
365
|
+
const k = Math.floor(z);
|
|
366
366
|
return k < 10 ? `0${k}` : `${k}`;
|
|
367
367
|
};
|
|
368
368
|
if (i < 1440) {
|
|
369
|
-
const
|
|
370
|
-
return [
|
|
369
|
+
const z = i / 60, k = i % 60, W = (k - Math.floor(k)) * 60;
|
|
370
|
+
return [z, k, W].map((G) => S(G)).join(":");
|
|
371
371
|
}
|
|
372
372
|
return h(Math.ceil(i / (60 * 24)), "days");
|
|
373
373
|
};
|
|
374
|
-
|
|
374
|
+
V(() => {
|
|
375
375
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
376
376
|
const i = setInterval(
|
|
377
377
|
() => {
|
|
@@ -383,8 +383,8 @@ function gt(n, t, e) {
|
|
|
383
383
|
clearInterval(i);
|
|
384
384
|
};
|
|
385
385
|
});
|
|
386
|
-
function
|
|
387
|
-
|
|
386
|
+
function x(i) {
|
|
387
|
+
$[i ? "unshift" : "push"](() => {
|
|
388
388
|
_ = i, e(3, _);
|
|
389
389
|
});
|
|
390
390
|
}
|
|
@@ -402,9 +402,9 @@ function gt(n, t, e) {
|
|
|
402
402
|
4096 && g && c(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
403
403
|
4112 && g && f(D), n.$$.dirty & /*translationurl*/
|
|
404
404
|
32768 && m && p(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
405
|
-
8200 && T && _ &&
|
|
406
|
-
16392 && b && _ &&
|
|
407
|
-
65544 && P && _ &&
|
|
405
|
+
8200 && T && _ && tt(_, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
406
|
+
16392 && b && _ && et(_, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
407
|
+
65544 && P && _ && nt(_, `${P}.Style`);
|
|
408
408
|
}, [
|
|
409
409
|
u,
|
|
410
410
|
o,
|
|
@@ -412,7 +412,7 @@ function gt(n, t, e) {
|
|
|
412
412
|
_,
|
|
413
413
|
D,
|
|
414
414
|
R,
|
|
415
|
-
|
|
415
|
+
E,
|
|
416
416
|
s,
|
|
417
417
|
a,
|
|
418
418
|
c,
|
|
@@ -423,7 +423,7 @@ function gt(n, t, e) {
|
|
|
423
423
|
b,
|
|
424
424
|
m,
|
|
425
425
|
P,
|
|
426
|
-
|
|
426
|
+
x
|
|
427
427
|
];
|
|
428
428
|
}
|
|
429
429
|
class mt extends K {
|
|
@@ -433,7 +433,7 @@ class mt extends K {
|
|
|
433
433
|
t,
|
|
434
434
|
gt,
|
|
435
435
|
ft,
|
|
436
|
-
|
|
436
|
+
Z,
|
|
437
437
|
{
|
|
438
438
|
startdate: 0,
|
|
439
439
|
enddate: 1,
|
|
@@ -496,7 +496,7 @@ class mt extends K {
|
|
|
496
496
|
this.$$set({ mbsource: t }), C();
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
it(mt, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
500
500
|
export {
|
|
501
501
|
mt as default
|
|
502
502
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnail-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnail-DgXXegVa.cjs");function C(r,e){t.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 I(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:O}let T=S(r),_=T(r);function P(s,f){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return A;if(s[5]>0)return q;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 O(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 q(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 A(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 W(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 G(r,e,n){let a,l;t.component_subscribe(r,t.$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,R=(D-Math.floor(D))*60;return[B,D,R].map(x=>F(x)).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 j(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,j]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,G,W,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:16},I)}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(E,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=E;
|