@everymatrix/casino-tournaments-controller 1.59.0 → 1.59.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/components/{CasinoTournamentsController-D6vZoeoj.js → CasinoTournamentsController--v7Db-nS.js} +574 -552
  2. package/components/{CasinoTournamentsController-Cf2DQVn2.js → CasinoTournamentsController-B7T1o6MJ.js} +735 -713
  3. package/components/CasinoTournamentsController-CZ-9rz_b.cjs +27 -0
  4. package/components/{CasinoTournamentsFilterController-CdMh8n3B.js → CasinoTournamentsFilterController-D87dskAM.js} +20 -20
  5. package/components/{CasinoTournamentsFilterController-BtN_XgvH.cjs → CasinoTournamentsFilterController-NmQFysPE.cjs} +1 -1
  6. package/components/{CasinoTournamentsFilterController-Tx9mruBX.js → CasinoTournamentsFilterController-dCThVL3G.js} +22 -22
  7. package/components/{CasinoTournamentsListController-EAJbvzEx.js → CasinoTournamentsListController-C0Tn6XLC.js} +21 -21
  8. package/components/{CasinoTournamentsListController-DZqBQlj6.js → CasinoTournamentsListController-CVKwStEk.js} +21 -21
  9. package/components/{CasinoTournamentsListController-CYBH9J8C.cjs → CasinoTournamentsListController-qLXWt65S.cjs} +2 -2
  10. package/components/{CasinoTournamentsThumbnail-zYhefJ1_.js → CasinoTournamentsThumbnail-B6vVUkXU.js} +36 -36
  11. package/components/{CasinoTournamentsThumbnail-DU9HLE4D.cjs → CasinoTournamentsThumbnail-CutNBEY9.cjs} +1 -1
  12. package/components/{CasinoTournamentsThumbnail-C8RmbAI-.js → CasinoTournamentsThumbnail-Dh5yOBII.js} +41 -41
  13. package/components/{CasinoTournamentsThumbnailController-CRzezmPu.cjs → CasinoTournamentsThumbnailController-B4LzyUAt.cjs} +1 -1
  14. package/components/{CasinoTournamentsThumbnailController-CmkBRABp.js → CasinoTournamentsThumbnailController-Csobnf4h.js} +73 -73
  15. package/components/{CasinoTournamentsThumbnailController-DDD5ArFE.js → CasinoTournamentsThumbnailController-ImrFDGq7.js} +43 -43
  16. package/components/{CasinoTournamentsThumbnailDuration-BHrVYN85.js → CasinoTournamentsThumbnailDuration-BIHBBD4m.js} +40 -40
  17. package/components/{CasinoTournamentsThumbnailDuration-Dm-htkCW.js → CasinoTournamentsThumbnailDuration-BOSDqPIP.js} +46 -46
  18. package/components/{CasinoTournamentsThumbnailDuration-BEMD3bKM.cjs → CasinoTournamentsThumbnailDuration-DLOov4TV.cjs} +1 -1
  19. package/components/{CasinoTournamentsThumbnailGamesSlider-t0ZbTDnq.js → CasinoTournamentsThumbnailGamesSlider-BKEUZ6M0.js} +37 -37
  20. package/components/{CasinoTournamentsThumbnailGamesSlider-D8RrwqTu.cjs → CasinoTournamentsThumbnailGamesSlider-Blv_3Sia.cjs} +1 -1
  21. package/components/{CasinoTournamentsThumbnailGamesSlider-FbfeqM_U.js → CasinoTournamentsThumbnailGamesSlider-C7uGGzGz.js} +54 -54
  22. package/components/{CasinoTournamentsThumbnailPrizes-DK71Uz6a.js → CasinoTournamentsThumbnailPrizes-BmPaa3r7.js} +15 -15
  23. package/components/{CasinoTournamentsThumbnailPrizes-ChVRuO0C.cjs → CasinoTournamentsThumbnailPrizes-CdcFiTcf.cjs} +1 -1
  24. package/components/{CasinoTournamentsThumbnailPrizes-DsKcbeBA.js → CasinoTournamentsThumbnailPrizes-Cgjahh7G.js} +15 -15
  25. package/es2015/casino-tournaments-controller.cjs +1 -1
  26. package/es2015/casino-tournaments-controller.js +1 -1
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +3 -2
  29. package/components/CasinoTournamentsController-Cs0Zwt7u.cjs +0 -27
@@ -1,4 +1,4 @@
1
- import { a as K, S as Y, i as Z, s as J, f as C, b as Q, n as U, d as T, c as B, e as v, g as l, j as V, w as X, m as E, o as h, A as $, t as M, p as L, q as tt, C as A, v as et, $ as nt } from "./CasinoTournamentsController-D6vZoeoj.js";
1
+ import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, d as l, h as T, n as U, j as B, k as X, w as $, t as E, m as L, o as m, A as tt, p as M, u as et, D as A, $ as nt } from "./CasinoTournamentsController--v7Db-nS.js";
2
2
  function N(i, t) {
3
3
  K(i, t);
4
4
  }
@@ -93,9 +93,9 @@ const O = {
93
93
  }
94
94
  };
95
95
  function it(i) {
96
- Q(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)}");
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 q(i) {
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, m, D, F, j;
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 = M(s), u = L(), o = v("div"), g = M(d), S = L(), p = v("div"), m = v("div"), y.c(), D = L(), f && f.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(m, "class", "ProgressBar"), l(m, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
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
- B(r, t, b), h(t, e), h(e, a), h(t, u), h(t, o), h(o, g), B(r, S, b), B(r, p, b), h(p, m), y.m(m, null), h(m, D), f && f.m(m, null), F || (j = $(
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
- ) + "") && E(a, s), b & /*enddate*/
160
+ ) + "") && M(a, s), b & /*enddate*/
161
161
  2 && d !== (d = /*formatDate*/
162
162
  r[10](
163
163
  /*enddate*/
164
164
  r[1]
165
- ) + "") && E(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(m, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(m, null)));
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 && (T(t), T(S), T(p)), y.d(), f && f.d(), F = !1, j();
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
- B(e, t, s);
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 && T(t);
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
- B(e, t, s);
207
+ T(e, t, s);
208
208
  },
209
209
  p: U,
210
210
  d(e) {
211
- e && T(t);
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
- B(e, t, s);
222
+ T(e, t, s);
223
223
  },
224
224
  p: U,
225
225
  d(e) {
226
- e && T(t);
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 = M(
237
+ t = v("div"), e = E(
238
238
  /*showRemain*/
239
239
  i[6]
240
- ), s = L(), u = M(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
240
+ ), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
241
241
  },
242
242
  m(o, d) {
243
- B(o, t, d), h(t, e), h(t, s), h(t, u);
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 && E(
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") + "") && E(u, a);
253
+ o[8]("left") + "") && M(u, a);
254
254
  },
255
255
  d(o) {
256
- o && T(t);
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 = M(e), a = L(), o = M(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
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
- B(d, t, g), h(t, s), h(t, a), h(t, o);
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") + "") && E(s, e), g & /*tournamentUntilStartDays*/
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
- ) + "") && E(o, u);
286
+ ) + "") && M(o, u);
287
287
  },
288
288
  d(d) {
289
- d && T(t);
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 = M(e), l(t, "class", "Finished"), l(t, "part", "Finished");
300
+ t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
301
301
  },
302
302
  m(a, u) {
303
- B(a, t, u), h(t, s);
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") + "") && E(s, e);
308
+ a[8]("finished") + "") && M(s, e);
309
309
  },
310
310
  d(a) {
311
- a && T(t);
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] && q(i)
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
- B(s, t, a), e && e.m(t, null), i[16](t);
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 = q(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
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 && T(t), e && e.d(), i[16](null);
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
- V(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: m = "" } = t, D, F = "", j = "", I = "";
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(m).then((c) => c.json()).then((c) => {
345
+ fetch(h).then((c) => c.json()).then((c) => {
346
346
  Object.keys(c).forEach((_) => {
347
347
  N(_, c[_]);
348
348
  });
@@ -373,7 +373,7 @@ function ct(i, t, e) {
373
373
  }, b = () => {
374
374
  let n = document.createElement("style");
375
375
  n.innerHTML = S, D.appendChild(n);
376
- }, H = () => {
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
- X(() => {
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
- tt[n ? "unshift" : "push"](() => {
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, m = n.translationurl);
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 && m && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
419
+ 32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
420
420
  8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
421
- 16392 && D && p && H();
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
- m,
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
- J,
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
- et(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
505
+ J(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
506
506
  export {
507
507
  ft as default
508
508
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-Cs0Zwt7u.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 L(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,T,y,h,b,v,S;function P(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?U:O}let w=P(r),m=w(r);function B(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return H;if(s[5]>0)return A;if(s[4]>0)return q}let D=B(r),f=D&&D(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),T=t.space(),y=t.element("div"),h=t.element("div"),m.c(),b=t.space(),f&&f.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(h,"class","ProgressBar"),t.attr(h,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,T,_),t.insert(s,y,_),t.append(y,h),m.m(h,null),t.append(h,b),f&&f.m(h,null),v||(S=t.action_destroyer(r[9].call(null,y)),v=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),w===(w=P(s))&&m?m.p(s,_):(m.d(1),m=w(s),m&&(m.c(),m.m(h,b))),D===(D=B(s))&&f?f.p(s,_):(f&&f.d(1),f=D&&D(s),f&&(f.c(),f.m(h,null)))},d(s){s&&(t.detach(e),t.detach(T),t.detach(y)),m.d(),f&&f.d(),v=!1,S()}}}function 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 U(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 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,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 H(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]&&E(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[16](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[16](null)}}}function 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:T=""}=e,{clientstylingurl:y=""}=e,{translationurl:h=""}=e,b,v="",S="",P="";const w=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(p=>{C(p,c[p])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(i=>{C(i,M[i])});const m=i=>new Date(i).getTime(),B=(i,c)=>(m(c)-m(i))/(1e3*60),D=()=>{const i=new Date;n(4,v=B(i,o)),n(5,S=B(i,u)),n(6,P=s(v))},f=i=>{const c={month:"long"};let p=new Date(i),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=i=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(i<1440){const k=i/60,F=i%60,x=(F-Math.floor(F))*60;return[k,F,x].map(I=>p(I)).join(":")}return c(Math.ceil(i/(60*24)),"days")},_=()=>{let i=document.createElement("style");i.innerHTML=T,b.appendChild(i)},R=()=>{let i=new URL(y),c=document.createElement("style");fetch(i.href).then(p=>p.text()).then(p=>{c.innerHTML=p,setTimeout(()=>{b.appendChild(c)},1),setTimeout(()=>{},500)})};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(i)});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{b=i,n(3,b)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,T=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,h=i.translationurl)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const i=B(u,o),c=100/i;return Math.floor((i-v)*c)}),r.$$.dirty&19&&u&&o&&D()&&s(v),r.$$.dirty&4096&&g&&D(),r.$$.dirty&4112&&g&&s(v),r.$$.dirty&32768&&h&&w(),r.$$.dirty&8200&&b&&T&&_(),r.$$.dirty&16392&&b&&y&&R()},[u,o,d,b,v,S,P,a,l,D,f,s,g,T,y,h,j]}class z 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},L)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(z,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-CZ-9rz_b.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 L(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,T,y,h,b,v,S;function P(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?U:O}let w=P(r),m=w(r);function B(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return H;if(s[5]>0)return A;if(s[4]>0)return q}let D=B(r),f=D&&D(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),T=t.space(),y=t.element("div"),h=t.element("div"),m.c(),b=t.space(),f&&f.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(h,"class","ProgressBar"),t.attr(h,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,T,_),t.insert(s,y,_),t.append(y,h),m.m(h,null),t.append(h,b),f&&f.m(h,null),v||(S=t.action_destroyer(r[9].call(null,y)),v=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),w===(w=P(s))&&m?m.p(s,_):(m.d(1),m=w(s),m&&(m.c(),m.m(h,b))),D===(D=B(s))&&f?f.p(s,_):(f&&f.d(1),f=D&&D(s),f&&(f.c(),f.m(h,null)))},d(s){s&&(t.detach(e),t.detach(T),t.detach(y)),m.d(),f&&f.d(),v=!1,S()}}}function 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 U(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 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,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 H(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]&&E(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[16](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[16](null)}}}function 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:T=""}=e,{clientstylingurl:y=""}=e,{translationurl:h=""}=e,b,v="",S="",P="";const w=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(p=>{C(p,c[p])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(i=>{C(i,M[i])});const m=i=>new Date(i).getTime(),B=(i,c)=>(m(c)-m(i))/(1e3*60),D=()=>{const i=new Date;n(4,v=B(i,o)),n(5,S=B(i,u)),n(6,P=s(v))},f=i=>{const c={month:"long"};let p=new Date(i),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=i=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(i<1440){const k=i/60,F=i%60,x=(F-Math.floor(F))*60;return[k,F,x].map(I=>p(I)).join(":")}return c(Math.ceil(i/(60*24)),"days")},_=()=>{let i=document.createElement("style");i.innerHTML=T,b.appendChild(i)},R=()=>{let i=new URL(y),c=document.createElement("style");fetch(i.href).then(p=>p.text()).then(p=>{c.innerHTML=p,setTimeout(()=>{b.appendChild(c)},1),setTimeout(()=>{},500)})};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(i)});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{b=i,n(3,b)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,T=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,h=i.translationurl)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const i=B(u,o),c=100/i;return Math.floor((i-v)*c)}),r.$$.dirty&19&&u&&o&&D()&&s(v),r.$$.dirty&4096&&g&&D(),r.$$.dirty&4112&&g&&s(v),r.$$.dirty&32768&&h&&w(),r.$$.dirty&8200&&b&&T&&_(),r.$$.dirty&16392&&b&&y&&R()},[u,o,d,b,v,S,P,a,l,D,f,s,g,T,y,h,j]}class z 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},L)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(z,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=z;
@@ -1,4 +1,4 @@
1
- import { a as be, S as ve, i as ke, s as Ne, f as M, b as Se, n as X, d as D, e as G, g as S, k as Te, w as Fe, l as x, m as Me, B as te, G as j, C as Y, p as v, H as Be, u as L, q as z, h as c, I as Pe, F as Ee, r as I, o as Le, J as Z, t as He, c as Ce, $ as je } from "./CasinoTournamentsController-Cf2DQVn2.js";
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, G as C, D as Y, H as Pe, o as v, I as Be, r as L, q as Ee, C as te, t as Le, J as Z, p as He, F as je, u as D, $ as Ce } from "./CasinoTournamentsController--v7Db-nS.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
- Se(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}");
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"), j(
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"), j(
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
- G(s, l, b), v(l, t), v(l, a), v(l, d), v(d, h);
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 && j(
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 && j(
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 && D(l), Me(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
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 = He(a), y = z(), r = S("img"), o = z(), c(t, "class", h = "PlayNowButton " + /*hover*/
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
- G(u, l, m), v(l, t), v(t, d), v(l, y), v(l, r), v(l, o), s || (b = [
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") + "") && Le(d, a), m[0] & /*hover, hoverIndex*/
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 && D(l), s = !1, te(b);
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
- G(a, l, d), t && t.m(l, null), e[31](l);
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 && D(l), t && t.d(), e[31](null);
225
+ a && G(l), t && t.d(), e[31](null);
226
226
  }
227
227
  };
228
228
  }
229
229
  let Ue = 30;
230
- function Ie(e, l, t) {
230
+ function De(e, l, t) {
231
231
  let a, d, h;
232
- Te(e, je, (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, C = null, A = !1, U, B, P = 0, T;
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, C = g.clientY;
252
+ H = g.clientX, j = g.clientY;
253
253
  }, O = (n) => {
254
- if (!H || !C)
254
+ if (!H || !j)
255
255
  return;
256
- let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = C - N;
257
- Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, C = 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 < P ? P : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : 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", Ee(b)), fetch(n, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
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, P = (B.scrollWidth - B.clientWidth) * -1), t(16, r = new String(B.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
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
- Fe(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
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
- I[n ? "unshift" : "push"](() => {
310
- B = n, t(7, B);
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
- I[n ? "unshift" : "push"](() => {
318
+ D[n ? "unshift" : "push"](() => {
319
319
  m = n, t(3, m);
320
320
  });
321
321
  }
322
322
  function we(n) {
323
- I[n ? "unshift" : "push"](() => {
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 <= P), e.$$.dirty[0] & /*sliderMainWidth*/
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
- B,
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
- P,
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 De extends ve {
375
+ class Ie extends ve {
376
376
  constructor(l) {
377
377
  super(), ke(
378
378
  this,
379
379
  l,
380
- Ie,
380
+ De,
381
381
  Ae,
382
- Ne,
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
- Ce(De, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
439
+ Ne(Ie, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
440
440
  export {
441
- De as default
441
+ Ie as default
442
442
  };