@everymatrix/casino-tournaments-controller 1.64.8 → 1.65.0
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-CUMRoST-.js → CasinoTournamentsController-B-3KvRFg.js} +1158 -1179
- package/components/{CasinoTournamentsController-WufarZ8q.js → CasinoTournamentsController-CWaYayO5.js} +1033 -1054
- package/components/CasinoTournamentsController-hMroYCVq.cjs +27 -0
- package/components/{CasinoTournamentsFilterController-D92H_sdr.cjs → CasinoTournamentsFilterController-CFZXXvdI.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-LT68fjHh.js → CasinoTournamentsFilterController-DAQ8lD4F.js} +20 -20
- package/components/{CasinoTournamentsFilterController-D8NP0ZIy.js → CasinoTournamentsFilterController-DoTBrefG.js} +22 -22
- package/components/{CasinoTournamentsListController-Dd8eFRxa.js → CasinoTournamentsListController-C_ssOmZ0.js} +21 -21
- package/components/{CasinoTournamentsListController-CwxI2YAB.cjs → CasinoTournamentsListController-CkLe4wOF.cjs} +2 -2
- package/components/{CasinoTournamentsListController-CGdBHJDM.js → CasinoTournamentsListController-DGb2Vxf4.js} +21 -21
- package/components/CasinoTournamentsThumbnail-BGjJFXJ4.cjs +4 -0
- package/components/{CasinoTournamentsThumbnail-BUZX068g.js → CasinoTournamentsThumbnail-D2kJPkRh.js} +308 -264
- package/components/{CasinoTournamentsThumbnail-Co9p08Wv.js → CasinoTournamentsThumbnail-rGM6du0q.js} +308 -264
- package/components/CasinoTournamentsThumbnailController-BNr36snI.js +1381 -0
- package/components/CasinoTournamentsThumbnailController-C8sZ89TB.js +1398 -0
- package/components/CasinoTournamentsThumbnailController-Dp0x8sF0.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailDuration-DsNTjv3C.cjs → CasinoTournamentsThumbnailDuration-4Vc-Z6lV.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-Dqd8KbyC.js → CasinoTournamentsThumbnailDuration-CzVBGv1j.js} +42 -42
- package/components/{CasinoTournamentsThumbnailDuration-ChCBh4j9.js → CasinoTournamentsThumbnailDuration-PfDdm056.js} +48 -48
- package/components/{CasinoTournamentsThumbnailGamesSlider-Bn4nh16L.js → CasinoTournamentsThumbnailGamesSlider-B0lgG4Gf.js} +37 -37
- package/components/{CasinoTournamentsThumbnailGamesSlider-EO8q-zQo.js → CasinoTournamentsThumbnailGamesSlider-B6vtyr9U.js} +54 -54
- package/components/{CasinoTournamentsThumbnailGamesSlider-C7R-Ibu_.cjs → CasinoTournamentsThumbnailGamesSlider-D_KQWVhW.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-qJYsc_jA.js → CasinoTournamentsThumbnailPrizes-Czh7jFho.js} +15 -15
- package/components/{CasinoTournamentsThumbnailPrizes-DdU80aCm.cjs → CasinoTournamentsThumbnailPrizes-Dv0zCdov.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-D3W0vYEA.js → CasinoTournamentsThumbnailPrizes-OfLWNQL9.js} +15 -15
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/esnext/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-B6nNHmA4.js +7 -0
- package/stencil/app-globals-0f993ce5-DgOnOgxM.cjs +1 -0
- package/stencil/index-97d17652-BzQXAkmg.js +558 -0
- package/stencil/index-97d17652-DYGS0vqJ.cjs +1 -0
- package/stencil/index-97d17652-mbOyENH9.js +542 -0
- package/stencil/index-b2193545-C2pLoBGJ.js +503 -0
- package/stencil/index-b2193545-CoXVDra7.js +519 -0
- package/stencil/index-b2193545-CwpolrjE.cjs +1 -0
- package/stencil/ui-image-BdKD9mn4.js +25 -0
- package/stencil/ui-image-Brhx0VeQ.js +7 -0
- package/stencil/ui-image-DEQHOm9Q.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-7wF4sIlr.js +39 -0
- package/stencil/ui-image-b7b48fe5-DQE3WxuL.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-kIlLPkYB.js +39 -0
- package/stencil/ui-image_2-CJHJWEhi.cjs +73 -0
- package/stencil/ui-image_2-Db7N7hzA.js +154 -0
- package/stencil/ui-image_2-oohpKuRS.js +154 -0
- package/stencil/ui-skeleton-06DDwuG9.cjs +1 -0
- package/stencil/ui-skeleton-1cb75d00-CoUSUuCH.js +152 -0
- package/stencil/ui-skeleton-1cb75d00-DwCQPKmJ.js +152 -0
- package/stencil/ui-skeleton-1cb75d00-HdJyBz6W.cjs +73 -0
- package/stencil/ui-skeleton-BhWinivj.js +11 -0
- package/stencil/ui-skeleton-DdjXy3Vl.js +29 -0
- package/components/CasinoTournamentsController-oGL-nV5r.cjs +0 -27
- package/components/CasinoTournamentsThumbnail-CrJ40CSh.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-Cq6mNACM.cjs +0 -1
- package/components/CasinoTournamentsThumbnailController-Y3QRiL5v.js +0 -1422
- package/components/CasinoTournamentsThumbnailController-_3hlkXv6.js +0 -1405
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as K, S as Y, i as Z,
|
|
1
|
+
import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, d as l, h as T, n as U, j as B, k as X, w as $, t as E, m as L, o as m, A as tt, p as M, u as et, G as A, $ as nt } from "./CasinoTournamentsController-CWaYayO5.js";
|
|
2
2
|
function N(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
@@ -93,9 +93,9 @@ const O = {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
function it(i) {
|
|
96
|
-
|
|
96
|
+
V(i, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function H(i) {
|
|
99
99
|
let t, e, s = (
|
|
100
100
|
/*formatDate*/
|
|
101
101
|
i[10](
|
|
@@ -108,7 +108,7 @@ function q(i) {
|
|
|
108
108
|
/*enddate*/
|
|
109
109
|
i[1]
|
|
110
110
|
) + ""
|
|
111
|
-
), g, S, p,
|
|
111
|
+
), g, S, p, h, D, F, j;
|
|
112
112
|
function I(r, b) {
|
|
113
113
|
return (
|
|
114
114
|
/*status*/
|
|
@@ -143,10 +143,10 @@ function q(i) {
|
|
|
143
143
|
let k = R(i), f = k && k(i);
|
|
144
144
|
return {
|
|
145
145
|
c() {
|
|
146
|
-
t = v("div"), e = v("div"), a =
|
|
146
|
+
t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), h = v("div"), y.c(), D = L(), f && f.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(h, "class", "ProgressBar"), l(h, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
|
|
147
147
|
},
|
|
148
148
|
m(r, b) {
|
|
149
|
-
|
|
149
|
+
T(r, t, b), m(t, e), m(e, a), m(t, u), m(t, o), m(o, g), T(r, S, b), T(r, p, b), m(p, h), y.m(h, null), m(h, D), f && f.m(h, null), F || (j = tt(
|
|
150
150
|
/*getDuration*/
|
|
151
151
|
i[9].call(null, p)
|
|
152
152
|
), F = !0);
|
|
@@ -157,15 +157,15 @@ function q(i) {
|
|
|
157
157
|
r[10](
|
|
158
158
|
/*startdate*/
|
|
159
159
|
r[0]
|
|
160
|
-
) + "") &&
|
|
160
|
+
) + "") && M(a, s), b & /*enddate*/
|
|
161
161
|
2 && d !== (d = /*formatDate*/
|
|
162
162
|
r[10](
|
|
163
163
|
/*enddate*/
|
|
164
164
|
r[1]
|
|
165
|
-
) + "") &&
|
|
165
|
+
) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(h, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(h, null)));
|
|
166
166
|
},
|
|
167
167
|
d(r) {
|
|
168
|
-
r && (
|
|
168
|
+
r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
@@ -181,7 +181,7 @@ function st(i) {
|
|
|
181
181
|
);
|
|
182
182
|
},
|
|
183
183
|
m(e, s) {
|
|
184
|
-
|
|
184
|
+
T(e, t, s);
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
@@ -193,7 +193,7 @@ function st(i) {
|
|
|
193
193
|
);
|
|
194
194
|
},
|
|
195
195
|
d(e) {
|
|
196
|
-
e &&
|
|
196
|
+
e && B(t);
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
}
|
|
@@ -204,11 +204,11 @@ function rt(i) {
|
|
|
204
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
205
205
|
},
|
|
206
206
|
m(e, s) {
|
|
207
|
-
|
|
207
|
+
T(e, t, s);
|
|
208
208
|
},
|
|
209
209
|
p: U,
|
|
210
210
|
d(e) {
|
|
211
|
-
e &&
|
|
211
|
+
e && B(t);
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
@@ -219,11 +219,11 @@ function at(i) {
|
|
|
219
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
220
220
|
},
|
|
221
221
|
m(e, s) {
|
|
222
|
-
|
|
222
|
+
T(e, t, s);
|
|
223
223
|
},
|
|
224
224
|
p: U,
|
|
225
225
|
d(e) {
|
|
226
|
-
e &&
|
|
226
|
+
e && B(t);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -234,26 +234,26 @@ function lt(i) {
|
|
|
234
234
|
), u;
|
|
235
235
|
return {
|
|
236
236
|
c() {
|
|
237
|
-
t = v("div"), e =
|
|
237
|
+
t = v("div"), e = E(
|
|
238
238
|
/*showRemain*/
|
|
239
239
|
i[6]
|
|
240
|
-
), s = L(), u =
|
|
240
|
+
), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
241
241
|
},
|
|
242
242
|
m(o, d) {
|
|
243
|
-
|
|
243
|
+
T(o, t, d), m(t, e), m(t, s), m(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 && B(t);
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
@@ -270,23 +270,23 @@ function ot(i) {
|
|
|
270
270
|
), o;
|
|
271
271
|
return {
|
|
272
272
|
c() {
|
|
273
|
-
t = v("div"), s =
|
|
273
|
+
t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
274
274
|
},
|
|
275
275
|
m(d, g) {
|
|
276
|
-
|
|
276
|
+
T(d, t, g), m(t, s), m(t, a), m(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 && B(t);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
@@ -297,18 +297,18 @@ function ut(i) {
|
|
|
297
297
|
), s;
|
|
298
298
|
return {
|
|
299
299
|
c() {
|
|
300
|
-
t = v("div"), s =
|
|
300
|
+
t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
301
301
|
},
|
|
302
302
|
m(a, u) {
|
|
303
|
-
|
|
303
|
+
T(a, t, u), m(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 && B(t);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -316,33 +316,33 @@ function dt(i) {
|
|
|
316
316
|
let t, e = (
|
|
317
317
|
/*startdate*/
|
|
318
318
|
i[0] && /*enddate*/
|
|
319
|
-
i[1] &&
|
|
319
|
+
i[1] && H(i)
|
|
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
|
+
T(s, t, a), e && e.m(t, null), i[16](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 = H(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
332
|
},
|
|
333
333
|
i: U,
|
|
334
334
|
o: U,
|
|
335
335
|
d(s) {
|
|
336
|
-
s &&
|
|
336
|
+
s && B(t), e && e.d(), i[16](null);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function ct(i, t, e) {
|
|
341
341
|
let s, a;
|
|
342
|
-
|
|
343
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl:
|
|
342
|
+
X(i, nt, (n) => e(8, a = n));
|
|
343
|
+
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: h = "" } = t, D, F = "", j = "", I = "";
|
|
344
344
|
const z = () => {
|
|
345
|
-
fetch(
|
|
345
|
+
fetch(h).then((c) => c.json()).then((c) => {
|
|
346
346
|
Object.keys(c).forEach((_) => {
|
|
347
347
|
N(_, c[_]);
|
|
348
348
|
});
|
|
@@ -366,14 +366,14 @@ function ct(i, t, e) {
|
|
|
366
366
|
return w < 10 ? `0${w}` : `${w}`;
|
|
367
367
|
};
|
|
368
368
|
if (n < 1440) {
|
|
369
|
-
const P = n / 60, w = n % 60,
|
|
370
|
-
return [P, w,
|
|
369
|
+
const P = n / 60, w = n % 60, G = (w - Math.floor(w)) * 60;
|
|
370
|
+
return [P, w, G].map((W) => _(W)).join(":");
|
|
371
371
|
}
|
|
372
372
|
return c(Math.ceil(n / (60 * 24)), "days");
|
|
373
373
|
}, b = () => {
|
|
374
374
|
let n = document.createElement("style");
|
|
375
375
|
n.innerHTML = S, D.appendChild(n);
|
|
376
|
-
},
|
|
376
|
+
}, q = () => {
|
|
377
377
|
let n = new URL(p), c = document.createElement("style");
|
|
378
378
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
379
379
|
c.innerHTML = _, setTimeout(
|
|
@@ -388,7 +388,7 @@ function ct(i, t, e) {
|
|
|
388
388
|
);
|
|
389
389
|
});
|
|
390
390
|
};
|
|
391
|
-
|
|
391
|
+
$(() => {
|
|
392
392
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
393
393
|
const n = setInterval(
|
|
394
394
|
() => {
|
|
@@ -399,12 +399,12 @@ function ct(i, t, e) {
|
|
|
399
399
|
return () => clearInterval(n);
|
|
400
400
|
});
|
|
401
401
|
function x(n) {
|
|
402
|
-
|
|
402
|
+
et[n ? "unshift" : "push"](() => {
|
|
403
403
|
D = n, e(3, D);
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
return i.$$set = (n) => {
|
|
407
|
-
"startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15,
|
|
407
|
+
"startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15, h = n.translationurl);
|
|
408
408
|
}, i.$$.update = () => {
|
|
409
409
|
i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
410
410
|
19 && e(7, s = () => {
|
|
@@ -416,9 +416,9 @@ function ct(i, t, e) {
|
|
|
416
416
|
19 && u && o && k() && r(F), i.$$.dirty & /*lang*/
|
|
417
417
|
4096 && g && k(), i.$$.dirty & /*lang, tournamentLeftDays*/
|
|
418
418
|
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
419
|
-
32768 &&
|
|
419
|
+
32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
420
420
|
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
421
|
-
16392 && D && p &&
|
|
421
|
+
16392 && D && p && q();
|
|
422
422
|
}, [
|
|
423
423
|
u,
|
|
424
424
|
o,
|
|
@@ -435,7 +435,7 @@ function ct(i, t, e) {
|
|
|
435
435
|
g,
|
|
436
436
|
S,
|
|
437
437
|
p,
|
|
438
|
-
|
|
438
|
+
h,
|
|
439
439
|
x
|
|
440
440
|
];
|
|
441
441
|
}
|
|
@@ -446,7 +446,7 @@ class ft extends Y {
|
|
|
446
446
|
t,
|
|
447
447
|
ct,
|
|
448
448
|
dt,
|
|
449
|
-
|
|
449
|
+
Q,
|
|
450
450
|
{
|
|
451
451
|
startdate: 0,
|
|
452
452
|
enddate: 1,
|
|
@@ -502,7 +502,7 @@ class ft extends Y {
|
|
|
502
502
|
this.$$set({ translationurl: t }), C();
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
|
|
505
|
+
J(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
506
506
|
export {
|
|
507
507
|
ft as default
|
|
508
508
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke,
|
|
1
|
+
import { a as be, S as ve, i as ke, f as M, c as Ne, s as Se, b as Te, e as S, h as I, n as X, j as G, k as Fe, w as Me, l as x, m as z, d as c, H as C, G as Y, I as Pe, o as v, J as Be, r as L, q as Ee, C as te, t as Le, D as Z, p as He, F as je, u as D, $ as Ce } from "./CasinoTournamentsController-CWaYayO5.js";
|
|
2
2
|
function K(e, l) {
|
|
3
3
|
be(e, l);
|
|
4
4
|
}
|
|
@@ -35,7 +35,7 @@ const Q = {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
function ze(e) {
|
|
38
|
-
|
|
38
|
+
Te(e, "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}");
|
|
39
39
|
}
|
|
40
40
|
function V(e, l, t) {
|
|
41
41
|
const a = e.slice();
|
|
@@ -53,7 +53,7 @@ function $(e) {
|
|
|
53
53
|
l = S("div"), t = S("div"), t.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>', a = z(), d = S("main"), h = S("div");
|
|
54
54
|
for (let s = 0; s < o.length; s += 1)
|
|
55
55
|
o[s].c();
|
|
56
|
-
y = z(), r = S("div"), r.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>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"),
|
|
56
|
+
y = z(), r = S("div"), r.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>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"), C(
|
|
57
57
|
t,
|
|
58
58
|
"disabled",
|
|
59
59
|
/*atStart*/
|
|
@@ -62,7 +62,7 @@ function $(e) {
|
|
|
62
62
|
e[2] + "px)"), Pe(() => (
|
|
63
63
|
/*main_elementresize_handler*/
|
|
64
64
|
e[28].call(d)
|
|
65
|
-
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"),
|
|
65
|
+
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), C(
|
|
66
66
|
r,
|
|
67
67
|
"disabled",
|
|
68
68
|
/*atEnd*/
|
|
@@ -70,7 +70,7 @@ function $(e) {
|
|
|
70
70
|
), c(l, "class", "TournamentsGamesSlider"), c(l, "part", "TournamentsGamesSlider");
|
|
71
71
|
},
|
|
72
72
|
m(s, b) {
|
|
73
|
-
|
|
73
|
+
I(s, l, b), v(l, t), v(l, a), v(l, d), v(d, h);
|
|
74
74
|
for (let i = 0; i < o.length; i += 1)
|
|
75
75
|
o[i] && o[i].m(h, null);
|
|
76
76
|
e[27](h), p = Be(
|
|
@@ -94,7 +94,7 @@ function $(e) {
|
|
|
94
94
|
},
|
|
95
95
|
p(s, b) {
|
|
96
96
|
if (b[0] & /*atStart*/
|
|
97
|
-
256 &&
|
|
97
|
+
256 && C(
|
|
98
98
|
t,
|
|
99
99
|
"disabled",
|
|
100
100
|
/*atStart*/
|
|
@@ -117,7 +117,7 @@ function $(e) {
|
|
|
117
117
|
b[0] & /*offset*/
|
|
118
118
|
4 && Y(h, "transform", "translateX(" + /*offset*/
|
|
119
119
|
s[2] + "px)"), b[0] & /*atEnd*/
|
|
120
|
-
512 &&
|
|
120
|
+
512 && C(
|
|
121
121
|
r,
|
|
122
122
|
"disabled",
|
|
123
123
|
/*atEnd*/
|
|
@@ -125,7 +125,7 @@ function $(e) {
|
|
|
125
125
|
);
|
|
126
126
|
},
|
|
127
127
|
d(s) {
|
|
128
|
-
s &&
|
|
128
|
+
s && G(l), Ee(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
}
|
|
@@ -154,7 +154,7 @@ function ee(e) {
|
|
|
154
154
|
}
|
|
155
155
|
return {
|
|
156
156
|
c() {
|
|
157
|
-
l = S("div"), t = S("span"), d =
|
|
157
|
+
l = S("div"), t = S("span"), d = Le(a), y = z(), r = S("img"), o = z(), c(t, "class", h = "PlayNowButton " + /*hover*/
|
|
158
158
|
(e[5] && /*hoverIndex*/
|
|
159
159
|
e[6] == /*i*/
|
|
160
160
|
e[52] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
@@ -166,7 +166,7 @@ function ee(e) {
|
|
|
166
166
|
e[50].name), c(l, "class", "item"), c(l, "part", "item");
|
|
167
167
|
},
|
|
168
168
|
m(u, m) {
|
|
169
|
-
|
|
169
|
+
I(u, l, m), v(l, t), v(t, d), v(l, y), v(l, r), v(l, o), s || (b = [
|
|
170
170
|
L(l, "click", i),
|
|
171
171
|
L(l, "mouseenter", k),
|
|
172
172
|
L(
|
|
@@ -180,7 +180,7 @@ function ee(e) {
|
|
|
180
180
|
p(u, m) {
|
|
181
181
|
e = u, m[0] & /*$_*/
|
|
182
182
|
1024 && a !== (a = /*$_*/
|
|
183
|
-
e[10]("playNow") + "") &&
|
|
183
|
+
e[10]("playNow") + "") && He(d, a), m[0] & /*hover, hoverIndex*/
|
|
184
184
|
96 && h !== (h = "PlayNowButton " + /*hover*/
|
|
185
185
|
(e[5] && /*hoverIndex*/
|
|
186
186
|
e[6] == /*i*/
|
|
@@ -197,7 +197,7 @@ function ee(e) {
|
|
|
197
197
|
e[50].name) && c(r, "title", f);
|
|
198
198
|
},
|
|
199
199
|
d(u) {
|
|
200
|
-
u &&
|
|
200
|
+
u && G(l), s = !1, te(b);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
}
|
|
@@ -212,7 +212,7 @@ function Ae(e) {
|
|
|
212
212
|
l = S("div"), t && t.c();
|
|
213
213
|
},
|
|
214
214
|
m(a, d) {
|
|
215
|
-
|
|
215
|
+
I(a, l, d), t && t.m(l, null), e[31](l);
|
|
216
216
|
},
|
|
217
217
|
p(a, d) {
|
|
218
218
|
/*games*/
|
|
@@ -222,15 +222,15 @@ function Ae(e) {
|
|
|
222
222
|
i: X,
|
|
223
223
|
o: X,
|
|
224
224
|
d(a) {
|
|
225
|
-
a &&
|
|
225
|
+
a && G(l), t && t.d(), e[31](null);
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
let Ue = 30;
|
|
230
|
-
function
|
|
230
|
+
function De(e, l, t) {
|
|
231
231
|
let a, d, h;
|
|
232
|
-
|
|
233
|
-
let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, m, H = null,
|
|
232
|
+
Fe(e, Ce, (n) => t(10, h = n));
|
|
233
|
+
let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, m, H = null, j = null, A = !1, U, P, B = 0, T;
|
|
234
234
|
const ne = () => {
|
|
235
235
|
fetch(_).then((g) => g.json()).then((g) => {
|
|
236
236
|
Object.keys(g).forEach((N) => {
|
|
@@ -249,14 +249,14 @@ function Ie(e, l, t) {
|
|
|
249
249
|
t(5, A = !1), t(6, U = -1);
|
|
250
250
|
}, le = (n) => n.touches || n.originalEvent.touches, J = (n) => {
|
|
251
251
|
const g = le(n)[0];
|
|
252
|
-
H = g.clientX,
|
|
252
|
+
H = g.clientX, j = g.clientY;
|
|
253
253
|
}, O = (n) => {
|
|
254
|
-
if (!H || !
|
|
254
|
+
if (!H || !j)
|
|
255
255
|
return;
|
|
256
|
-
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e =
|
|
257
|
-
Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null,
|
|
256
|
+
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
|
|
257
|
+
Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, j = null;
|
|
258
258
|
}, E = (n) => {
|
|
259
|
-
n > 0 && !d ? (t(2, u -= i), t(2, u = u <
|
|
259
|
+
n > 0 && !d ? (t(2, u -= i), t(2, u = u < B ? B : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
|
|
260
260
|
}, R = (n) => {
|
|
261
261
|
window.postMessage(
|
|
262
262
|
{
|
|
@@ -269,7 +269,7 @@ function Ie(e, l, t) {
|
|
|
269
269
|
);
|
|
270
270
|
}, se = () => {
|
|
271
271
|
let n = new URL(p), g = new Headers();
|
|
272
|
-
n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform",
|
|
272
|
+
n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform", je(b)), fetch(n, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
|
|
273
273
|
t(1, k = F.item.games.items), F.item.games.total;
|
|
274
274
|
});
|
|
275
275
|
}, re = () => {
|
|
@@ -277,7 +277,7 @@ function Ie(e, l, t) {
|
|
|
277
277
|
}, ae = () => {
|
|
278
278
|
setTimeout(
|
|
279
279
|
() => {
|
|
280
|
-
t(22,
|
|
280
|
+
t(22, B = (P.scrollWidth - P.clientWidth) * -1), t(16, r = new String(P.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
|
|
281
281
|
},
|
|
282
282
|
1e3
|
|
283
283
|
);
|
|
@@ -301,13 +301,13 @@ function Ie(e, l, t) {
|
|
|
301
301
|
}, ce = () => {
|
|
302
302
|
T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
|
|
303
303
|
};
|
|
304
|
-
|
|
304
|
+
Me(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
|
|
305
305
|
m.removeEventListener("touchstart", J), m.removeEventListener("touchmove", O);
|
|
306
306
|
}));
|
|
307
307
|
const ue = () => E(-1), de = (n) => R(n), he = (n) => W(n), me = () => q();
|
|
308
308
|
function fe(n) {
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
D[n ? "unshift" : "push"](() => {
|
|
310
|
+
P = n, t(7, P);
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
313
|
function ge() {
|
|
@@ -315,12 +315,12 @@ function Ie(e, l, t) {
|
|
|
315
315
|
}
|
|
316
316
|
const pe = () => E(1);
|
|
317
317
|
function ye(n) {
|
|
318
|
-
|
|
318
|
+
D[n ? "unshift" : "push"](() => {
|
|
319
319
|
m = n, t(3, m);
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
function we(n) {
|
|
323
|
-
|
|
323
|
+
D[n ? "unshift" : "push"](() => {
|
|
324
324
|
s = n, t(0, s);
|
|
325
325
|
});
|
|
326
326
|
}
|
|
@@ -329,7 +329,7 @@ function Ie(e, l, t) {
|
|
|
329
329
|
}, e.$$.update = () => {
|
|
330
330
|
e.$$.dirty[0] & /*offset*/
|
|
331
331
|
4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
332
|
-
4194308 && t(9, d = u <=
|
|
332
|
+
4194308 && t(9, d = u <= B), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
333
333
|
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
334
334
|
131072 && p && se(), e.$$.dirty[0] & /*slider*/
|
|
335
335
|
8 && m && re(), e.$$.dirty[0] & /*translationurl*/
|
|
@@ -345,7 +345,7 @@ function Ie(e, l, t) {
|
|
|
345
345
|
T,
|
|
346
346
|
A,
|
|
347
347
|
U,
|
|
348
|
-
|
|
348
|
+
P,
|
|
349
349
|
a,
|
|
350
350
|
d,
|
|
351
351
|
h,
|
|
@@ -360,7 +360,7 @@ function Ie(e, l, t) {
|
|
|
360
360
|
_,
|
|
361
361
|
f,
|
|
362
362
|
o,
|
|
363
|
-
|
|
363
|
+
B,
|
|
364
364
|
ue,
|
|
365
365
|
de,
|
|
366
366
|
he,
|
|
@@ -372,14 +372,14 @@ function Ie(e, l, t) {
|
|
|
372
372
|
we
|
|
373
373
|
];
|
|
374
374
|
}
|
|
375
|
-
class
|
|
375
|
+
class Ie extends ve {
|
|
376
376
|
constructor(l) {
|
|
377
377
|
super(), ke(
|
|
378
378
|
this,
|
|
379
379
|
l,
|
|
380
|
-
|
|
380
|
+
De,
|
|
381
381
|
Ae,
|
|
382
|
-
|
|
382
|
+
Se,
|
|
383
383
|
{
|
|
384
384
|
tournamenturl: 17,
|
|
385
385
|
scrollby: 15,
|
|
@@ -436,7 +436,7 @@ class De extends ve {
|
|
|
436
436
|
this.$$set({ clientstylingurl: l }), M();
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
|
|
439
|
+
Ne(Ie, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
440
440
|
export {
|
|
441
|
-
|
|
441
|
+
Ie as default
|
|
442
442
|
};
|