@everymatrix/casino-tournaments-controller 1.94.112 → 1.94.113
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--KxuMfhK.js → CasinoTournamentsController-DfLcNwyA.js} +2 -2
- package/components/{CasinoTournamentsController-BlMiKPl2.js → CasinoTournamentsController-DjLovi5n.js} +2 -2
- package/components/{CasinoTournamentsController-DFUVNRKB.cjs → CasinoTournamentsController-HuDp3UQG.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-D9bf2WMQ.cjs → CasinoTournamentsFilterController-CWmlddPN.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-Co7Y3A0Q.js → CasinoTournamentsFilterController-Ck59wGSZ.js} +1 -1
- package/components/{CasinoTournamentsFilterController-De7rBZBg.js → CasinoTournamentsFilterController-DF1GOx3T.js} +1 -1
- package/components/{CasinoTournamentsListController-BHm42kDT.js → CasinoTournamentsListController-B78hXy-w.js} +2 -2
- package/components/{CasinoTournamentsListController-D7ag5sAX.js → CasinoTournamentsListController-BMoedxvj.js} +2 -2
- package/components/{CasinoTournamentsListController-BW-f92Xs.cjs → CasinoTournamentsListController-D7cWMz-M.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnail-CiiTQcPc.js → CasinoTournamentsThumbnail-BuYKRYCv.js} +3 -3
- package/components/{CasinoTournamentsThumbnail-3SmFFZga.cjs → CasinoTournamentsThumbnail-CEAZggfs.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-K7Zj-Z65.js → CasinoTournamentsThumbnail-CqqzrCYC.js} +3 -3
- package/components/{CasinoTournamentsThumbnailController-BHg7vStj.js → CasinoTournamentsThumbnailController-BGNDK1UD.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-B86yGkIM.cjs → CasinoTournamentsThumbnailController-BiwBst2k.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-CTYS-dAC.js → CasinoTournamentsThumbnailController-CG2f0D_f.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-Dq-wZoR7.js → CasinoTournamentsThumbnailDuration-52XFMtzK.js} +38 -38
- package/components/{CasinoTournamentsThumbnailDuration-tvwJ0S7o.js → CasinoTournamentsThumbnailDuration-EwISDdqv.js} +38 -38
- package/components/{CasinoTournamentsThumbnailDuration-B6iNTWo6.cjs → CasinoTournamentsThumbnailDuration-arZBRtXZ.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-Dg8g4DuL.js → CasinoTournamentsThumbnailGamesSlider-CDE5VoUh.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-Bh-GHMfS.js → CasinoTournamentsThumbnailGamesSlider-CZQdMXF3.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BwVnrgSx.cjs → CasinoTournamentsThumbnailGamesSlider-DhAa9OOw.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-gy7cQt16.js → CasinoTournamentsThumbnailPrizes-BKbsFIcj.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DR0w4OcV.cjs → CasinoTournamentsThumbnailPrizes-DvAcX0Yb.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DZ4suPGn.js → CasinoTournamentsThumbnailPrizes-Wx_-IUZu.js} +1 -1
- 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/stencil/index-97d17652-BeQGJyxy.js +532 -0
- package/stencil/{index-97d17652-B6BYeRne.js → index-97d17652-Ce2P8K1l.js} +176 -170
- package/stencil/index-97d17652-QrAXVnlo.cjs +1 -0
- package/stencil/index-b2193545-Cwb6Y-jS.js +493 -0
- package/stencil/index-b2193545-K2OnpxTQ.js +509 -0
- package/stencil/index-b2193545-bAuKWs0t.cjs +1 -0
- package/stencil/{ui-image-DyN7Fe9v.js → ui-image-B-ffqvMi.js} +1 -1
- package/stencil/{ui-image-BiEqrTjD.js → ui-image-DPF2VUSh.js} +1 -1
- package/stencil/{ui-image-GKGnzjWQ.cjs → ui-image-YrA8NUbD.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CEPR_2Zl.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-CynWE8qT.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-DdUCzkcr.js} +1 -1
- package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-C0sJC5CL.cjs} +1 -1
- package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-Do1rIyeJ.js} +2 -2
- package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-N1zHirfP.js} +2 -2
- package/stencil/{ui-skeleton-DGlqF493.js → ui-skeleton-CfNwtLVl.js} +2 -2
- package/stencil/{ui-skeleton-CCeXOW4G.js → ui-skeleton-D8QGodCK.js} +2 -2
- package/stencil/{ui-skeleton-CImpq9cv.cjs → ui-skeleton-FgDBSZBf.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-CLXtOZ1A.js → ui-skeleton-ed169f8f-B9Q0WmRZ.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-B7StGL8M.cjs → ui-skeleton-ed169f8f-BwpJu25a.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-Dc_jq3n7.js → ui-skeleton-ed169f8f-DaSOpH4g.js} +1 -1
- package/stencil/index-97d17652-BOr4KAqq.js +0 -558
- package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
- package/stencil/index-b2193545-BB6id_PQ.cjs +0 -1
- package/stencil/index-b2193545-Dg04r8Mf.js +0 -519
- package/stencil/index-b2193545-oPMLiBVn.js +0 -503
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as J, S as K, i as Y, s as Z, f as z, b as Q, n as
|
|
1
|
+
import { a as J, S as K, i as Y, s as Z, f as z, b as Q, n as N, d as F, c as k, e as v, g as l, j as V, o as X, m as M, p as h, F as $, t as j, q as R, r as tt, J as U, w as et, x as nt, y as it, z as st, $ as rt } from "./CasinoTournamentsController-DjLovi5n.js";
|
|
2
2
|
function q(n, t) {
|
|
3
3
|
J(n, t);
|
|
4
4
|
}
|
|
@@ -109,7 +109,7 @@ function A(n) {
|
|
|
109
109
|
n[1]
|
|
110
110
|
) + ""
|
|
111
111
|
), f, T, b, g, P, y, I;
|
|
112
|
-
function
|
|
112
|
+
function w(r, p) {
|
|
113
113
|
return (
|
|
114
114
|
/*status*/
|
|
115
115
|
r[2] == "Finished" || /*status*/
|
|
@@ -120,7 +120,7 @@ function A(n) {
|
|
|
120
120
|
)
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
let C =
|
|
123
|
+
let C = w(n), _ = C(n);
|
|
124
124
|
function L(r, p) {
|
|
125
125
|
if (
|
|
126
126
|
/*status*/
|
|
@@ -146,7 +146,7 @@ function A(n) {
|
|
|
146
146
|
t = v("div"), e = v("div"), a = j(s), u = R(), o = v("div"), f = j(d), T = R(), b = v("div"), g = v("div"), _.c(), P = R(), c && c.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(g, "class", "ProgressBar"), l(g, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
|
|
147
147
|
},
|
|
148
148
|
m(r, p) {
|
|
149
|
-
|
|
149
|
+
k(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), k(r, T, p), k(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (I = $(
|
|
150
150
|
/*getDuration*/
|
|
151
151
|
n[9].call(null, b)
|
|
152
152
|
), y = !0);
|
|
@@ -162,10 +162,10 @@ function A(n) {
|
|
|
162
162
|
r[10](
|
|
163
163
|
/*enddate*/
|
|
164
164
|
r[1]
|
|
165
|
-
) + "") && M(f, d), C === (C =
|
|
165
|
+
) + "") && M(f, d), C === (C = w(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))), B === (B = L(r)) && c ? c.p(r, p) : (c && c.d(1), c = B && B(r), c && (c.c(), c.m(g, null)));
|
|
166
166
|
},
|
|
167
167
|
d(r) {
|
|
168
|
-
r && (
|
|
168
|
+
r && (F(t), F(T), F(b)), _.d(), c && c.d(), y = !1, I();
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
@@ -181,7 +181,7 @@ function lt(n) {
|
|
|
181
181
|
);
|
|
182
182
|
},
|
|
183
183
|
m(e, s) {
|
|
184
|
-
|
|
184
|
+
k(e, t, s);
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
@@ -193,7 +193,7 @@ function lt(n) {
|
|
|
193
193
|
);
|
|
194
194
|
},
|
|
195
195
|
d(e) {
|
|
196
|
-
e &&
|
|
196
|
+
e && F(t);
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
}
|
|
@@ -204,11 +204,11 @@ function ot(n) {
|
|
|
204
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
205
205
|
},
|
|
206
206
|
m(e, s) {
|
|
207
|
-
|
|
207
|
+
k(e, t, s);
|
|
208
208
|
},
|
|
209
|
-
p:
|
|
209
|
+
p: N,
|
|
210
210
|
d(e) {
|
|
211
|
-
e &&
|
|
211
|
+
e && F(t);
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
@@ -219,11 +219,11 @@ function ut(n) {
|
|
|
219
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
220
220
|
},
|
|
221
221
|
m(e, s) {
|
|
222
|
-
|
|
222
|
+
k(e, t, s);
|
|
223
223
|
},
|
|
224
|
-
p:
|
|
224
|
+
p: N,
|
|
225
225
|
d(e) {
|
|
226
|
-
e &&
|
|
226
|
+
e && F(t);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -240,7 +240,7 @@ function dt(n) {
|
|
|
240
240
|
), s = R(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
241
241
|
},
|
|
242
242
|
m(o, d) {
|
|
243
|
-
|
|
243
|
+
k(o, t, d), h(t, e), h(t, s), h(t, u);
|
|
244
244
|
},
|
|
245
245
|
p(o, d) {
|
|
246
246
|
d & /*showRemain*/
|
|
@@ -253,7 +253,7 @@ function dt(n) {
|
|
|
253
253
|
o[8]("left") + "") && M(u, a);
|
|
254
254
|
},
|
|
255
255
|
d(o) {
|
|
256
|
-
o &&
|
|
256
|
+
o && F(t);
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
@@ -273,7 +273,7 @@ function ct(n) {
|
|
|
273
273
|
t = v("div"), s = j(e), a = R(), o = j(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
274
274
|
},
|
|
275
275
|
m(d, f) {
|
|
276
|
-
|
|
276
|
+
k(d, t, f), h(t, s), h(t, a), h(t, o);
|
|
277
277
|
},
|
|
278
278
|
p(d, f) {
|
|
279
279
|
f & /*$_*/
|
|
@@ -286,7 +286,7 @@ function ct(n) {
|
|
|
286
286
|
) + "") && M(o, u);
|
|
287
287
|
},
|
|
288
288
|
d(d) {
|
|
289
|
-
d &&
|
|
289
|
+
d && F(t);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
@@ -300,7 +300,7 @@ function ft(n) {
|
|
|
300
300
|
t = v("div"), s = j(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
301
301
|
},
|
|
302
302
|
m(a, u) {
|
|
303
|
-
|
|
303
|
+
k(a, t, u), h(t, s);
|
|
304
304
|
},
|
|
305
305
|
p(a, u) {
|
|
306
306
|
u & /*$_*/
|
|
@@ -308,7 +308,7 @@ function ft(n) {
|
|
|
308
308
|
a[8]("finished") + "") && M(s, e);
|
|
309
309
|
},
|
|
310
310
|
d(a) {
|
|
311
|
-
a &&
|
|
311
|
+
a && F(t);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -323,24 +323,24 @@ function gt(n) {
|
|
|
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
|
+
k(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
331
|
s[1] ? e ? e.p(s, a) : (e = A(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
332
|
},
|
|
333
|
-
i:
|
|
334
|
-
o:
|
|
333
|
+
i: N,
|
|
334
|
+
o: N,
|
|
335
335
|
d(s) {
|
|
336
|
-
s &&
|
|
336
|
+
s && F(t), e && e.d(), n[17](null);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function mt(n, t, e) {
|
|
341
341
|
let s, a;
|
|
342
342
|
V(n, rt, (i) => e(8, a = i));
|
|
343
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: f = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: g = "" } = t, { mbsource: P } = t, y, I,
|
|
343
|
+
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: f = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: g = "" } = t, { mbsource: P } = t, y, I, w = "", C = "", _ = "";
|
|
344
344
|
const L = () => {
|
|
345
345
|
fetch(g).then((m) => m.json()).then((m) => {
|
|
346
346
|
Object.keys(m).forEach((S) => {
|
|
@@ -355,19 +355,19 @@ function mt(n, t, e) {
|
|
|
355
355
|
});
|
|
356
356
|
const B = (i) => new Date(i).getTime(), c = (i, m) => (B(m) - B(i)) / (1e3 * 60), r = () => {
|
|
357
357
|
const i = /* @__PURE__ */ new Date();
|
|
358
|
-
e(4,
|
|
358
|
+
e(4, w = c(i, o)), e(5, C = c(i, u)), e(6, _ = O(w));
|
|
359
359
|
}, p = (i) => {
|
|
360
360
|
const m = { month: "long" };
|
|
361
361
|
let S = new Date(i), E = new Intl.DateTimeFormat(f, m).format(S);
|
|
362
362
|
return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
363
|
-
},
|
|
364
|
-
const m = (E,
|
|
365
|
-
const
|
|
366
|
-
return
|
|
363
|
+
}, O = (i) => {
|
|
364
|
+
const m = (E, D) => E + " " + a(D), S = (E) => {
|
|
365
|
+
const D = Math.floor(E);
|
|
366
|
+
return D < 10 ? `0${D}` : `${D}`;
|
|
367
367
|
};
|
|
368
368
|
if (i < 1440) {
|
|
369
|
-
const E = i / 60,
|
|
370
|
-
return [E,
|
|
369
|
+
const E = i / 60, D = i % 60, G = (D - Math.floor(D)) * 60;
|
|
370
|
+
return [E, D, G].map((H) => S(H)).join(":");
|
|
371
371
|
}
|
|
372
372
|
return m(Math.ceil(i / (60 * 24)), "days");
|
|
373
373
|
};
|
|
@@ -393,14 +393,14 @@ function mt(n, t, e) {
|
|
|
393
393
|
}, n.$$.update = () => {
|
|
394
394
|
n.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
395
395
|
19 && e(7, s = () => {
|
|
396
|
-
if (
|
|
396
|
+
if (w <= 0)
|
|
397
397
|
return 100;
|
|
398
398
|
const i = c(u, o), m = 100 / i;
|
|
399
|
-
return Math.floor((i -
|
|
399
|
+
return Math.floor((i - w) * m);
|
|
400
400
|
}), n.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
401
|
-
19 && u && o && r()
|
|
401
|
+
19 && u && o && r(), n.$$.dirty & /*lang*/
|
|
402
402
|
4096 && f && r(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
403
|
-
4112 && f &&
|
|
403
|
+
4112 && f && O(w), n.$$.dirty & /*translationurl*/
|
|
404
404
|
32768 && g && L(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
405
405
|
8200 && T && y && et(y, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
406
406
|
16392 && b && y && nt(y, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
@@ -410,14 +410,14 @@ function mt(n, t, e) {
|
|
|
410
410
|
o,
|
|
411
411
|
d,
|
|
412
412
|
y,
|
|
413
|
-
|
|
413
|
+
w,
|
|
414
414
|
C,
|
|
415
415
|
_,
|
|
416
416
|
s,
|
|
417
417
|
a,
|
|
418
418
|
r,
|
|
419
419
|
p,
|
|
420
|
-
|
|
420
|
+
O,
|
|
421
421
|
f,
|
|
422
422
|
T,
|
|
423
423
|
b,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as J, S as K, i as Y, s as Z, f as z, b as Q, n as
|
|
1
|
+
import { a as J, S as K, i as Y, s as Z, f as z, b as Q, n as N, d as F, e as k, g as v, h as l, k as V, o as X, p as M, q as h, F as $, t as R, r as j, u as tt, J as U, x as et, y as nt, z as it, c as st, $ as rt } from "./CasinoTournamentsController-DfLcNwyA.js";
|
|
2
2
|
function q(n, t) {
|
|
3
3
|
J(n, t);
|
|
4
4
|
}
|
|
@@ -109,7 +109,7 @@ function A(n) {
|
|
|
109
109
|
n[1]
|
|
110
110
|
) + ""
|
|
111
111
|
), f, T, b, g, P, y, I;
|
|
112
|
-
function
|
|
112
|
+
function w(r, p) {
|
|
113
113
|
return (
|
|
114
114
|
/*status*/
|
|
115
115
|
r[2] == "Finished" || /*status*/
|
|
@@ -120,7 +120,7 @@ function A(n) {
|
|
|
120
120
|
)
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
let C =
|
|
123
|
+
let C = w(n), _ = C(n);
|
|
124
124
|
function L(r, p) {
|
|
125
125
|
if (
|
|
126
126
|
/*status*/
|
|
@@ -146,7 +146,7 @@ function A(n) {
|
|
|
146
146
|
t = v("div"), e = v("div"), a = R(s), u = j(), o = v("div"), f = R(d), T = j(), b = v("div"), g = v("div"), _.c(), P = j(), c && c.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(g, "class", "ProgressBar"), l(g, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
|
|
147
147
|
},
|
|
148
148
|
m(r, p) {
|
|
149
|
-
|
|
149
|
+
k(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), k(r, T, p), k(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (I = $(
|
|
150
150
|
/*getDuration*/
|
|
151
151
|
n[9].call(null, b)
|
|
152
152
|
), y = !0);
|
|
@@ -162,10 +162,10 @@ function A(n) {
|
|
|
162
162
|
r[10](
|
|
163
163
|
/*enddate*/
|
|
164
164
|
r[1]
|
|
165
|
-
) + "") && M(f, d), C === (C =
|
|
165
|
+
) + "") && M(f, d), C === (C = w(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))), B === (B = L(r)) && c ? c.p(r, p) : (c && c.d(1), c = B && B(r), c && (c.c(), c.m(g, null)));
|
|
166
166
|
},
|
|
167
167
|
d(r) {
|
|
168
|
-
r && (
|
|
168
|
+
r && (F(t), F(T), F(b)), _.d(), c && c.d(), y = !1, I();
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
@@ -181,7 +181,7 @@ function lt(n) {
|
|
|
181
181
|
);
|
|
182
182
|
},
|
|
183
183
|
m(e, s) {
|
|
184
|
-
|
|
184
|
+
k(e, t, s);
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
@@ -193,7 +193,7 @@ function lt(n) {
|
|
|
193
193
|
);
|
|
194
194
|
},
|
|
195
195
|
d(e) {
|
|
196
|
-
e &&
|
|
196
|
+
e && F(t);
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
}
|
|
@@ -204,11 +204,11 @@ function ot(n) {
|
|
|
204
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
205
205
|
},
|
|
206
206
|
m(e, s) {
|
|
207
|
-
|
|
207
|
+
k(e, t, s);
|
|
208
208
|
},
|
|
209
|
-
p:
|
|
209
|
+
p: N,
|
|
210
210
|
d(e) {
|
|
211
|
-
e &&
|
|
211
|
+
e && F(t);
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
@@ -219,11 +219,11 @@ function ut(n) {
|
|
|
219
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
220
220
|
},
|
|
221
221
|
m(e, s) {
|
|
222
|
-
|
|
222
|
+
k(e, t, s);
|
|
223
223
|
},
|
|
224
|
-
p:
|
|
224
|
+
p: N,
|
|
225
225
|
d(e) {
|
|
226
|
-
e &&
|
|
226
|
+
e && F(t);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -240,7 +240,7 @@ function dt(n) {
|
|
|
240
240
|
), s = j(), u = R(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
241
241
|
},
|
|
242
242
|
m(o, d) {
|
|
243
|
-
|
|
243
|
+
k(o, t, d), h(t, e), h(t, s), h(t, u);
|
|
244
244
|
},
|
|
245
245
|
p(o, d) {
|
|
246
246
|
d & /*showRemain*/
|
|
@@ -253,7 +253,7 @@ function dt(n) {
|
|
|
253
253
|
o[8]("left") + "") && M(u, a);
|
|
254
254
|
},
|
|
255
255
|
d(o) {
|
|
256
|
-
o &&
|
|
256
|
+
o && F(t);
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
@@ -273,7 +273,7 @@ function ct(n) {
|
|
|
273
273
|
t = v("div"), s = R(e), a = j(), o = R(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
274
274
|
},
|
|
275
275
|
m(d, f) {
|
|
276
|
-
|
|
276
|
+
k(d, t, f), h(t, s), h(t, a), h(t, o);
|
|
277
277
|
},
|
|
278
278
|
p(d, f) {
|
|
279
279
|
f & /*$_*/
|
|
@@ -286,7 +286,7 @@ function ct(n) {
|
|
|
286
286
|
) + "") && M(o, u);
|
|
287
287
|
},
|
|
288
288
|
d(d) {
|
|
289
|
-
d &&
|
|
289
|
+
d && F(t);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
@@ -300,7 +300,7 @@ function ft(n) {
|
|
|
300
300
|
t = v("div"), s = R(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
301
301
|
},
|
|
302
302
|
m(a, u) {
|
|
303
|
-
|
|
303
|
+
k(a, t, u), h(t, s);
|
|
304
304
|
},
|
|
305
305
|
p(a, u) {
|
|
306
306
|
u & /*$_*/
|
|
@@ -308,7 +308,7 @@ function ft(n) {
|
|
|
308
308
|
a[8]("finished") + "") && M(s, e);
|
|
309
309
|
},
|
|
310
310
|
d(a) {
|
|
311
|
-
a &&
|
|
311
|
+
a && F(t);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -323,24 +323,24 @@ function gt(n) {
|
|
|
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
|
+
k(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
331
|
s[1] ? e ? e.p(s, a) : (e = A(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
332
|
},
|
|
333
|
-
i:
|
|
334
|
-
o:
|
|
333
|
+
i: N,
|
|
334
|
+
o: N,
|
|
335
335
|
d(s) {
|
|
336
|
-
s &&
|
|
336
|
+
s && F(t), e && e.d(), n[17](null);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function mt(n, t, e) {
|
|
341
341
|
let s, a;
|
|
342
342
|
V(n, rt, (i) => e(8, a = i));
|
|
343
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: f = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: g = "" } = t, { mbsource: P } = t, y, I,
|
|
343
|
+
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: f = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: g = "" } = t, { mbsource: P } = t, y, I, w = "", C = "", _ = "";
|
|
344
344
|
const L = () => {
|
|
345
345
|
fetch(g).then((m) => m.json()).then((m) => {
|
|
346
346
|
Object.keys(m).forEach((S) => {
|
|
@@ -355,19 +355,19 @@ function mt(n, t, e) {
|
|
|
355
355
|
});
|
|
356
356
|
const B = (i) => new Date(i).getTime(), c = (i, m) => (B(m) - B(i)) / (1e3 * 60), r = () => {
|
|
357
357
|
const i = /* @__PURE__ */ new Date();
|
|
358
|
-
e(4,
|
|
358
|
+
e(4, w = c(i, o)), e(5, C = c(i, u)), e(6, _ = O(w));
|
|
359
359
|
}, p = (i) => {
|
|
360
360
|
const m = { month: "long" };
|
|
361
361
|
let S = new Date(i), E = new Intl.DateTimeFormat(f, m).format(S);
|
|
362
362
|
return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
363
|
-
},
|
|
364
|
-
const m = (E,
|
|
365
|
-
const
|
|
366
|
-
return
|
|
363
|
+
}, O = (i) => {
|
|
364
|
+
const m = (E, D) => E + " " + a(D), S = (E) => {
|
|
365
|
+
const D = Math.floor(E);
|
|
366
|
+
return D < 10 ? `0${D}` : `${D}`;
|
|
367
367
|
};
|
|
368
368
|
if (i < 1440) {
|
|
369
|
-
const E = i / 60,
|
|
370
|
-
return [E,
|
|
369
|
+
const E = i / 60, D = i % 60, G = (D - Math.floor(D)) * 60;
|
|
370
|
+
return [E, D, G].map((H) => S(H)).join(":");
|
|
371
371
|
}
|
|
372
372
|
return m(Math.ceil(i / (60 * 24)), "days");
|
|
373
373
|
};
|
|
@@ -393,14 +393,14 @@ function mt(n, t, e) {
|
|
|
393
393
|
}, n.$$.update = () => {
|
|
394
394
|
n.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
395
395
|
19 && e(7, s = () => {
|
|
396
|
-
if (
|
|
396
|
+
if (w <= 0)
|
|
397
397
|
return 100;
|
|
398
398
|
const i = c(u, o), m = 100 / i;
|
|
399
|
-
return Math.floor((i -
|
|
399
|
+
return Math.floor((i - w) * m);
|
|
400
400
|
}), n.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
401
|
-
19 && u && o && r()
|
|
401
|
+
19 && u && o && r(), n.$$.dirty & /*lang*/
|
|
402
402
|
4096 && f && r(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
403
|
-
4112 && f &&
|
|
403
|
+
4112 && f && O(w), n.$$.dirty & /*translationurl*/
|
|
404
404
|
32768 && g && L(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
405
405
|
8200 && T && y && et(y, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
406
406
|
16392 && b && y && nt(y, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
@@ -410,14 +410,14 @@ function mt(n, t, e) {
|
|
|
410
410
|
o,
|
|
411
411
|
d,
|
|
412
412
|
y,
|
|
413
|
-
|
|
413
|
+
w,
|
|
414
414
|
C,
|
|
415
415
|
_,
|
|
416
416
|
s,
|
|
417
417
|
a,
|
|
418
418
|
r,
|
|
419
419
|
p,
|
|
420
|
-
|
|
420
|
+
O,
|
|
421
421
|
f,
|
|
422
422
|
T,
|
|
423
423
|
b,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-HuDp3UQG.cjs");function z(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:"Turnuvaya kalan zaman",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},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])+"",f,k,y,g,w,h,B;function v(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?U:s[5]>0?N:L}let S=v(r),p=S(r);function P(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return W;if(s[5]>0)return A;if(s[4]>0)return q}let D=P(r),c=D&&D(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),f=t.text(d),k=t.space(),y=t.element("div"),g=t.element("div"),p.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(g,"class","ProgressBar"),t.attr(g,"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,f),t.insert(s,k,_),t.insert(s,y,_),t.append(y,g),p.m(g,null),t.append(g,w),c&&c.m(g,null),h||(B=t.action_destroyer(r[9].call(null,y)),h=!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(f,d),S===(S=v(s))&&p?p.p(s,_):(p.d(1),p=S(s),p&&(p.c(),p.m(g,w))),D===(D=P(s))&&c?c.p(s,_):(c&&c.d(1),c=D&&D(s),c&&(c.c(),c.m(g,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),p.d(),c&&c.d(),h=!1,B()}}}function L(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 N(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 U(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 q(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,f){t.insert(d,e,f),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,f){f&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),f&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[17](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[17](null)}}}function H(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:f="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:g=""}=e,{mbsource:w}=e,h,B,v="",S="",p="";const P=()=>{fetch(g).then(m=>m.json()).then(m=>{Object.keys(m).forEach(F=>{z(F,m[F])})}).catch(m=>{console.log(m)})};Object.keys(M).forEach(i=>{z(i,M[i])});const D=i=>new Date(i).getTime(),c=(i,m)=>(D(m)-D(i))/(1e3*60),s=()=>{const i=new Date;n(4,v=c(i,o)),n(5,S=c(i,u)),n(6,p=C(v))},_=i=>{const m={month:"long"};let F=new Date(i),T=new Intl.DateTimeFormat(f,m).format(F);return`${F.getDate()} ${T}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},C=i=>{const m=(T,b)=>T+" "+l(b),F=T=>{const b=Math.floor(T);return b<10?`0${b}`:`${b}`};if(i<1440){const T=i/60,b=i%60,x=(b-Math.floor(b))*60;return[T,b,x].map(I=>F(I)).join(":")}return m(Math.ceil(i/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&s()},1e3);return()=>{clearInterval(i)}});function R(i){t.binding_callbacks[i?"unshift":"push"](()=>{h=i,n(3,h)})}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,f=i.lang),"clientstyling"in i&&n(13,k=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,g=i.translationurl),"mbsource"in i&&n(16,w=i.mbsource)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const i=c(u,o),m=100/i;return Math.floor((i-v)*m)}),r.$$.dirty&19&&u&&o&&s(),r.$$.dirty&4096&&f&&s(),r.$$.dirty&4112&&f&&C(v),r.$$.dirty&32768&&g&&P(),r.$$.dirty&8200&&k&&h&&t.setClientStyling(h,k),r.$$.dirty&16392&&y&&h&&t.setClientStylingURL(h,y),r.$$.dirty&65544&&w&&h&&t.setStreamStyling(h,`${w}.Style`,B)},[u,o,d,h,v,S,p,a,l,s,_,C,f,k,y,g,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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke, s as Ne, f as T, b as Se, n as Y, d as W, e as q, g as N, k as Te, o as Fe, l as K, m as Me, G as le, K as C, J as Z, q as v, L as Pe, v as z, r as I, h as o, M as Be, E as Ee, u as G, p as Le, I as Q, t as je, x as ze, y as Ae, z as He, c as Ce, $ as Ie } from "./CasinoTournamentsController
|
|
1
|
+
import { a as be, S as ve, i as ke, s as Ne, f as T, b as Se, n as Y, d as W, e as q, g as N, k as Te, o as Fe, l as K, m as Me, G as le, K as C, J as Z, q as v, L as Pe, v as z, r as I, h as o, M as Be, E as Ee, u as G, p as Le, I as Q, t as je, x as ze, y as Ae, z as He, c as Ce, $ as Ie } from "./CasinoTournamentsController-DfLcNwyA.js";
|
|
2
2
|
function V(e, n) {
|
|
3
3
|
be(e, n);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke, s as Ne, f as T, b as Se, n as Y, d as W, c as q, e as N, j as Te, o as Fe, k as K, l as Me, G as le, K as C, J as Z, p as v, L as Pe, u as z, q as I, g as o, M as Be, E as Ee, r as G, m as je, I as Q, t as Le, w as ze, x as Ae, y as He, z as Ce, $ as Ie } from "./CasinoTournamentsController-
|
|
1
|
+
import { a as be, S as ve, i as ke, s as Ne, f as T, b as Se, n as Y, d as W, c as q, e as N, j as Te, o as Fe, k as K, l as Me, G as le, K as C, J as Z, p as v, L as Pe, u as z, q as I, g as o, M as Be, E as Ee, r as G, m as je, I as Q, t as Le, w as ze, x as Ae, y as He, z as Ce, $ as Ie } from "./CasinoTournamentsController-DjLovi5n.js";
|
|
2
2
|
function V(e, n) {
|
|
3
3
|
be(e, n);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-HuDp3UQG.cjs");function D(t,l){e.addMessages(t,l)}const I={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"},"en-us":{playNow:"Play now"}};function ie(t){e.append_styles(t,"svelte-xgd67c","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}")}function W(t,l,n){const i=t.slice();return i[49]=l[n],i[51]=n,i}function G(t){let l,n,i,d,m,y,_,a,w,b,h=e.ensure_array_like(t[1]),o=[];for(let s=0;s<h.length;s+=1)o[s]=O(W(t,h,s));return{c(){l=e.element("div"),n=e.element("div"),n.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=e.space(),d=e.element("main"),m=e.element("div");for(let s=0;s<o.length;s+=1)o[s].c();_=e.space(),a=e.element("div"),a.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(m,"class","items"),e.attr(m,"part","items"),e.set_style(m,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[29].call(d)),e.attr(a,"class","SliderNavButton"),e.attr(a,"part","SliderNavButton"),e.toggle_class(a,"disabled",t[9]),e.attr(l,"class","TournamentsGamesSlider"),e.attr(l,"part","TournamentsGamesSlider")},m(s,u){e.insert(s,l,u),e.append(l,n),e.append(l,i),e.append(l,d),e.append(d,m);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(m,null);t[28](m),y=e.add_iframe_resize_listener(d,t[29].bind(d)),e.append(l,_),e.append(l,a),t[31](l),w||(b=[e.listen(n,"click",t[24]),e.listen(a,"click",t[30])],w=!0)},p(s,u){if(u[0]&256&&e.toggle_class(n,"disabled",s[8]),u[0]&23650){h=e.ensure_array_like(s[1]);let c;for(c=0;c<h.length;c+=1){const T=W(s,h,c);o[c]?o[c].p(T,u):(o[c]=O(T),o[c].c(),o[c].m(m,null))}for(;c<o.length;c+=1)o[c].d(1);o.length=h.length}u[0]&4&&e.set_style(m,"transform","translateX("+s[2]+"px)"),u[0]&512&&e.toggle_class(a,"disabled",s[9])},d(s){s&&e.detach(l),e.destroy_each(o,s),t[28](null),y(),t[31](null),w=!1,e.run_all(b)}}}function O(t){let l,n,i=t[10]("playNow")+"",d,m,y,_,a,w,b,h,o,s,u;function c(){return t[25](t[49])}function T(){return t[26](t[51])}return{c(){l=e.element("div"),n=e.element("span"),d=e.text(i),_=e.space(),a=e.element("img"),o=e.space(),e.attr(n,"class",m="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.attr(n,"part",y="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.src_url_equal(a.src,w=t[49].thumbnail)||e.attr(a,"src",w),e.attr(a,"width","132px"),e.attr(a,"height","100px"),e.attr(a,"alt",b=t[49].name),e.attr(a,"title",h=t[49].name),e.attr(l,"class","item"),e.attr(l,"part","item")},m(v,g){e.insert(v,l,g),e.append(l,n),e.append(n,d),e.append(l,_),e.append(l,a),e.append(l,o),s||(u=[e.listen(l,"click",c),e.listen(l,"mouseenter",T),e.listen(l,"mouseleave",t[27])],s=!0)},p(v,g){t=v,g[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),g[0]&96&&m!==(m="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"class",m),g[0]&96&&y!==(y="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"part",y),g[0]&2&&!e.src_url_equal(a.src,w=t[49].thumbnail)&&e.attr(a,"src",w),g[0]&2&&b!==(b=t[49].name)&&e.attr(a,"alt",b),g[0]&2&&h!==(h=t[49].name)&&e.attr(a,"title",h)},d(v){v&&e.detach(l),s=!1,e.run_all(u)}}}function oe(t){let l,n=t[1]&&t[1].length>0&&G(t);return{c(){l=e.element("div"),n&&n.c()},m(i,d){e.insert(i,l,d),n&&n.m(l,null),t[32](l)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=G(i),n.c(),n.m(l,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(l),n&&n.d(),t[32](null)}}}let ce=30;function ue(t,l,n){let i,d,m;e.component_subscribe(t,e.$format,r=>n(10,m=r));let{tournamenturl:y=""}=l,{scrollby:_="3"}=l,{pagfactor:a="175"}=l,{lang:w=""}=l,{translationurl:b=""}=l,{clientstyling:h=""}=l,{clientstylingurl:o=""}=l,{mbsource:s}=l,u,c,T=window.navigator.userAgent,v,g=[],f=0,k,E=null,j=null,C=!1,L,P,F=0,S;const J=()=>{fetch(b).then(p=>p.json()).then(p=>{Object.keys(p).forEach(B=>{D(B,p[B])})}).catch(p=>{console.log(p)})};Object.keys(I).forEach(r=>{D(r,I[r])});const z=r=>{n(5,C=!0),n(6,L=r)},A=()=>{n(5,C=!1),n(6,L=-1)},R=r=>r.touches||r.originalEvent.touches,H=r=>{const p=R(r)[0];E=p.clientX,j=p.clientY},U=r=>{if(!E||!j)return;let p=r.touches[0].clientX,B=r.touches[0].clientY,N=E-p,se=j-B;Math.abs(N)>Math.abs(se)&&(N>0?M(1):M(-1)),E=null,j=null},M=r=>{r>0&&!d?(n(2,f-=v),n(2,f=f<F?F:f)):r<0&&!i&&(n(2,f+=v),n(2,f=f>0?0:f))},q=r=>{window.postMessage({type:"TournamentGameAction",gameId:r.id,name:r.name,launchUrl:r.launchUrl},window.location.href)},x=()=>{let r=new URL(y),p=new Headers;r.searchParams.append("expand","games"),r.searchParams.append("pagination",`games(limit=${ce},offset=${f})`),r.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),r.searchParams.append("language",w),r.searchParams.append("platform",e.getDevice(T)),fetch(r,{method:"GET",headers:p}).then(N=>N.json()).then(N=>{n(1,g=N.item.games.items),N.item.games.total})},Y=()=>{k.addEventListener("touchstart",H,{passive:!0}),k.addEventListener("touchmove",U,{passive:!0})},Z=()=>{setTimeout(()=>{n(23,F=(P.scrollWidth-P.clientWidth)*-1),n(16,a=new String(P.scrollWidth/g.length)),v=parseInt(_,10)*parseFloat(a,2).toFixed(2)},1e3)},K=()=>{S>0&&S<Math.floor((parseInt(_)+1)*a)&&n(15,_=Math.ceil(S/a).toString())};e.onMount(()=>(v=parseInt(_,10)*parseInt(a,10),()=>{k.removeEventListener("touchstart",H),k.removeEventListener("touchmove",U)}));const Q=()=>M(-1),V=r=>q(r),$=r=>z(r),ee=()=>A();function te(r){e.binding_callbacks[r?"unshift":"push"](()=>{P=r,n(7,P)})}function ne(){S=this.clientWidth,n(4,S)}const le=()=>M(1);function re(r){e.binding_callbacks[r?"unshift":"push"](()=>{k=r,n(3,k)})}function ae(r){e.binding_callbacks[r?"unshift":"push"](()=>{u=r,n(0,u)})}return t.$$set=r=>{"tournamenturl"in r&&n(17,y=r.tournamenturl),"scrollby"in r&&n(15,_=r.scrollby),"pagfactor"in r&&n(16,a=r.pagfactor),"lang"in r&&n(18,w=r.lang),"translationurl"in r&&n(19,b=r.translationurl),"clientstyling"in r&&n(20,h=r.clientstyling),"clientstylingurl"in r&&n(21,o=r.clientstylingurl),"mbsource"in r&&n(22,s=r.mbsource)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=f===0),t.$$.dirty[0]&8388612&&n(9,d=f<=F),t.$$.dirty[0]&16&&S&&K(),t.$$.dirty[0]&131072&&y&&x(),t.$$.dirty[0]&8&&k&&Y(),t.$$.dirty[0]&524288&&b&&J(),t.$$.dirty[0]&2&&g.length&&Z(),t.$$.dirty[0]&1048577&&h&&u&&e.setClientStyling(u,h),t.$$.dirty[0]&2097153&&o&&u&&e.setClientStylingURL(u,o),t.$$.dirty[0]&4194305&&s&&u&&e.setStreamStyling(u,`${s}.Style`,c)},n(2,f=0),[u,g,f,k,S,C,L,P,i,d,m,z,A,M,q,_,a,y,w,b,h,o,s,F,Q,V,$,ee,te,ne,le,re,ae]}class X extends e.SvelteComponent{constructor(l){super(),e.init(this,l,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21,mbsource:22},ie,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(l){this.$$set({tournamenturl:l}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(l){this.$$set({scrollby:l}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(l){this.$$set({pagfactor:l}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(l){this.$$set({lang:l}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(l){this.$$set({mbsource:l}),e.flush()}}e.create_custom_element(X,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=X;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as C, S as Z, i as j, s as I, f as _, b as B, n as F, d as T, m as b, c as k, p as d, e as g, q as w, t as P, g as u, j as R, o as O, k as N, l as q, r as U, w as V, x as W, y as D, z as G, $ as J } from "./CasinoTournamentsController-
|
|
1
|
+
import { a as C, S as Z, i as j, s as I, f as _, b as B, n as F, d as T, m as b, c as k, p as d, e as g, q as w, t as P, g as u, j as R, o as O, k as N, l as q, r as U, w as V, x as W, y as D, z as G, $ as J } from "./CasinoTournamentsController-DjLovi5n.js";
|
|
2
2
|
function M(l, e) {
|
|
3
3
|
C(l, e);
|
|
4
4
|
}
|