@everymatrix/casino-tournaments-thumbnail-controller 1.94.20 → 1.94.21

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.
@@ -1,8 +1,8 @@
1
- import { d as W, S as Y, t as Z, A as J, r as z, h as Q, x as N, n as k, u as w, o as v, i as l, k as V, y as X, G as M, g as h, c as $, K as j, I, j as tt, H as O, B as et, D as nt, E as it, l as st, a as rt } from "./CasinoTournamentsThumbnailController-CJ5s9xEE.js";
1
+ import { b as K, S as Y, i as Z, s as J, f as C, d as Q, n as N, e as k, h as w, k as v, g as l, m as V, o as X, p as M, j as h, t as $, u as j, l as R, v as tt, E as O, B as et, C as nt, D as it, c as st, A as rt } from "./CasinoTournamentsThumbnailController-BR8vFeoL.js";
2
2
  function U(n, t) {
3
- W(n, t);
3
+ K(n, t);
4
4
  }
5
- const x = {
5
+ const q = {
6
6
  en: {
7
7
  finished: "Finished",
8
8
  starting: "Starting in ",
@@ -95,7 +95,7 @@ const x = {
95
95
  function at(n) {
96
96
  Q(n, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
97
97
  }
98
- function q(n) {
98
+ function x(n) {
99
99
  let t, e, s = (
100
100
  /*formatDate*/
101
101
  n[10](
@@ -108,7 +108,7 @@ function q(n) {
108
108
  /*enddate*/
109
109
  n[1]
110
110
  ) + ""
111
- ), f, T, b, g, P, y, R;
111
+ ), f, T, b, g, P, y, I;
112
112
  function D(r, p) {
113
113
  return (
114
114
  /*status*/
@@ -120,7 +120,7 @@ function q(n) {
120
120
  )
121
121
  );
122
122
  }
123
- let C = D(n), _ = C(n);
123
+ let z = D(n), _ = z(n);
124
124
  function A(r, p) {
125
125
  if (
126
126
  /*status*/
@@ -143,10 +143,10 @@ function q(n) {
143
143
  let B = A(n), c = B && B(n);
144
144
  return {
145
145
  c() {
146
- t = v("div"), e = v("div"), a = j(s), u = I(), o = v("div"), f = j(d), T = I(), b = v("div"), g = v("div"), _.c(), P = I(), 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");
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
- w(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), w(r, T, p), w(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (R = $(
149
+ w(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), w(r, T, p), w(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 q(n) {
162
162
  r[10](
163
163
  /*enddate*/
164
164
  r[1]
165
- ) + "") && M(f, d), C === (C = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))), B === (B = A(r)) && c ? c.p(r, p) : (c && c.d(1), c = B && B(r), c && (c.c(), c.m(g, null)));
165
+ ) + "") && M(f, d), z === (z = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = z(r), _ && (_.c(), _.m(g, P))), B === (B = A(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 && (k(t), k(T), k(b)), _.d(), c && c.d(), y = !1, R();
168
+ r && (k(t), k(T), k(b)), _.d(), c && c.d(), y = !1, I();
169
169
  }
170
170
  };
171
171
  }
@@ -237,7 +237,7 @@ function dt(n) {
237
237
  t = v("div"), e = j(
238
238
  /*showRemain*/
239
239
  n[6]
240
- ), s = I(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
240
+ ), s = R(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
241
241
  },
242
242
  m(o, d) {
243
243
  w(o, t, d), h(t, e), h(t, s), h(t, u);
@@ -270,7 +270,7 @@ function ct(n) {
270
270
  ), o;
271
271
  return {
272
272
  c() {
273
- t = v("div"), s = j(e), a = I(), o = j(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
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
  w(d, t, f), h(t, s), h(t, a), h(t, o);
@@ -316,7 +316,7 @@ function gt(n) {
316
316
  let t, e = (
317
317
  /*startdate*/
318
318
  n[0] && /*enddate*/
319
- n[1] && q(n)
319
+ n[1] && x(n)
320
320
  );
321
321
  return {
322
322
  c() {
@@ -328,7 +328,7 @@ function gt(n) {
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 = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
332
332
  },
333
333
  i: N,
334
334
  o: N,
@@ -340,7 +340,7 @@ function gt(n) {
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, R, D = "", C = "", _ = "";
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, D = "", z = "", _ = "";
344
344
  const A = () => {
345
345
  fetch(g).then((m) => m.json()).then((m) => {
346
346
  Object.keys(m).forEach((S) => {
@@ -350,12 +350,12 @@ function mt(n, t, e) {
350
350
  console.log(m);
351
351
  });
352
352
  };
353
- Object.keys(x).forEach((i) => {
354
- U(i, x[i]);
353
+ Object.keys(q).forEach((i) => {
354
+ U(i, q[i]);
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, D = c(i, o)), e(5, C = c(i, u)), e(6, _ = L(D));
358
+ e(4, D = c(i, o)), e(5, z = c(i, u)), e(6, _ = L(D));
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);
@@ -366,8 +366,8 @@ function mt(n, t, e) {
366
366
  return F < 10 ? `0${F}` : `${F}`;
367
367
  };
368
368
  if (i < 1440) {
369
- const E = i / 60, F = i % 60, H = (F - Math.floor(F)) * 60;
370
- return [E, F, H].map((K) => S(K)).join(":");
369
+ const E = i / 60, F = i % 60, G = (F - Math.floor(F)) * 60;
370
+ return [E, F, G].map((H) => S(H)).join(":");
371
371
  }
372
372
  return m(Math.ceil(i / (60 * 24)), "days");
373
373
  };
@@ -383,7 +383,7 @@ function mt(n, t, e) {
383
383
  clearInterval(i);
384
384
  };
385
385
  });
386
- function G(i) {
386
+ function W(i) {
387
387
  tt[i ? "unshift" : "push"](() => {
388
388
  y = i, e(3, y);
389
389
  });
@@ -404,14 +404,14 @@ function mt(n, t, e) {
404
404
  32768 && g && A(), 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*/
407
- 65544 && P && y && it(y, `${P}.Style`, R);
407
+ 65544 && P && y && it(y, `${P}.Style`, I);
408
408
  }, [
409
409
  u,
410
410
  o,
411
411
  d,
412
412
  y,
413
413
  D,
414
- C,
414
+ z,
415
415
  _,
416
416
  s,
417
417
  a,
@@ -423,7 +423,7 @@ function mt(n, t, e) {
423
423
  b,
424
424
  g,
425
425
  P,
426
- G
426
+ W
427
427
  ];
428
428
  }
429
429
  class ht extends Y {
@@ -451,49 +451,49 @@ class ht extends Y {
451
451
  return this.$$.ctx[0];
452
452
  }
453
453
  set startdate(t) {
454
- this.$$set({ startdate: t }), z();
454
+ this.$$set({ startdate: t }), C();
455
455
  }
456
456
  get enddate() {
457
457
  return this.$$.ctx[1];
458
458
  }
459
459
  set enddate(t) {
460
- this.$$set({ enddate: t }), z();
460
+ this.$$set({ enddate: t }), C();
461
461
  }
462
462
  get status() {
463
463
  return this.$$.ctx[2];
464
464
  }
465
465
  set status(t) {
466
- this.$$set({ status: t }), z();
466
+ this.$$set({ status: t }), C();
467
467
  }
468
468
  get lang() {
469
469
  return this.$$.ctx[12];
470
470
  }
471
471
  set lang(t) {
472
- this.$$set({ lang: t }), z();
472
+ this.$$set({ lang: t }), C();
473
473
  }
474
474
  get clientstyling() {
475
475
  return this.$$.ctx[13];
476
476
  }
477
477
  set clientstyling(t) {
478
- this.$$set({ clientstyling: t }), z();
478
+ this.$$set({ clientstyling: t }), C();
479
479
  }
480
480
  get clientstylingurl() {
481
481
  return this.$$.ctx[14];
482
482
  }
483
483
  set clientstylingurl(t) {
484
- this.$$set({ clientstylingurl: t }), z();
484
+ this.$$set({ clientstylingurl: t }), C();
485
485
  }
486
486
  get translationurl() {
487
487
  return this.$$.ctx[15];
488
488
  }
489
489
  set translationurl(t) {
490
- this.$$set({ translationurl: t }), z();
490
+ this.$$set({ translationurl: t }), C();
491
491
  }
492
492
  get mbsource() {
493
493
  return this.$$.ctx[16];
494
494
  }
495
495
  set mbsource(t) {
496
- this.$$set({ mbsource: t }), z();
496
+ this.$$set({ mbsource: t }), C();
497
497
  }
498
498
  }
499
499
  st(ht, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
@@ -1,8 +1,8 @@
1
- import { d as W, S as Y, t as Z, A as J, r as z, h as Q, x as N, n as k, u as w, o as v, i as l, k as V, y as X, G as M, g as h, c as $, K as j, I, j as tt, H as O, B as et, D as nt, E as it, l as st, a as rt } from "./CasinoTournamentsThumbnailController-B9Drlihg.js";
1
+ import { b as K, S as Y, i as Z, s as J, f as z, c as Q, n as N, d as k, g as w, j as v, e as l, l as V, o as X, m as M, h, q as $, t as j, k as R, u as tt, E as O, z as et, A as nt, B as it, C as st, D as rt } from "./CasinoTournamentsThumbnailController-DfF0ST18.js";
2
2
  function U(n, t) {
3
- W(n, t);
3
+ K(n, t);
4
4
  }
5
- const x = {
5
+ const q = {
6
6
  en: {
7
7
  finished: "Finished",
8
8
  starting: "Starting in ",
@@ -95,7 +95,7 @@ const x = {
95
95
  function at(n) {
96
96
  Q(n, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
97
97
  }
98
- function q(n) {
98
+ function x(n) {
99
99
  let t, e, s = (
100
100
  /*formatDate*/
101
101
  n[10](
@@ -108,7 +108,7 @@ function q(n) {
108
108
  /*enddate*/
109
109
  n[1]
110
110
  ) + ""
111
- ), f, T, b, g, P, y, R;
111
+ ), f, T, b, g, P, y, I;
112
112
  function D(r, p) {
113
113
  return (
114
114
  /*status*/
@@ -143,10 +143,10 @@ function q(n) {
143
143
  let B = A(n), c = B && B(n);
144
144
  return {
145
145
  c() {
146
- t = v("div"), e = v("div"), a = j(s), u = I(), o = v("div"), f = j(d), T = I(), b = v("div"), g = v("div"), _.c(), P = I(), 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");
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
- w(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), w(r, T, p), w(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (R = $(
149
+ w(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), w(r, T, p), w(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);
@@ -165,7 +165,7 @@ function q(n) {
165
165
  ) + "") && M(f, d), C === (C = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))), B === (B = A(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 && (k(t), k(T), k(b)), _.d(), c && c.d(), y = !1, R();
168
+ r && (k(t), k(T), k(b)), _.d(), c && c.d(), y = !1, I();
169
169
  }
170
170
  };
171
171
  }
@@ -237,7 +237,7 @@ function dt(n) {
237
237
  t = v("div"), e = j(
238
238
  /*showRemain*/
239
239
  n[6]
240
- ), s = I(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
240
+ ), s = R(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
241
241
  },
242
242
  m(o, d) {
243
243
  w(o, t, d), h(t, e), h(t, s), h(t, u);
@@ -270,7 +270,7 @@ function ct(n) {
270
270
  ), o;
271
271
  return {
272
272
  c() {
273
- t = v("div"), s = j(e), a = I(), o = j(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
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
  w(d, t, f), h(t, s), h(t, a), h(t, o);
@@ -316,7 +316,7 @@ function gt(n) {
316
316
  let t, e = (
317
317
  /*startdate*/
318
318
  n[0] && /*enddate*/
319
- n[1] && q(n)
319
+ n[1] && x(n)
320
320
  );
321
321
  return {
322
322
  c() {
@@ -328,7 +328,7 @@ function gt(n) {
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 = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
332
332
  },
333
333
  i: N,
334
334
  o: N,
@@ -340,7 +340,7 @@ function gt(n) {
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, R, D = "", C = "", _ = "";
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, D = "", C = "", _ = "";
344
344
  const A = () => {
345
345
  fetch(g).then((m) => m.json()).then((m) => {
346
346
  Object.keys(m).forEach((S) => {
@@ -350,8 +350,8 @@ function mt(n, t, e) {
350
350
  console.log(m);
351
351
  });
352
352
  };
353
- Object.keys(x).forEach((i) => {
354
- U(i, x[i]);
353
+ Object.keys(q).forEach((i) => {
354
+ U(i, q[i]);
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();
@@ -366,8 +366,8 @@ function mt(n, t, e) {
366
366
  return F < 10 ? `0${F}` : `${F}`;
367
367
  };
368
368
  if (i < 1440) {
369
- const E = i / 60, F = i % 60, H = (F - Math.floor(F)) * 60;
370
- return [E, F, H].map((K) => S(K)).join(":");
369
+ const E = i / 60, F = i % 60, G = (F - Math.floor(F)) * 60;
370
+ return [E, F, G].map((H) => S(H)).join(":");
371
371
  }
372
372
  return m(Math.ceil(i / (60 * 24)), "days");
373
373
  };
@@ -383,7 +383,7 @@ function mt(n, t, e) {
383
383
  clearInterval(i);
384
384
  };
385
385
  });
386
- function G(i) {
386
+ function W(i) {
387
387
  tt[i ? "unshift" : "push"](() => {
388
388
  y = i, e(3, y);
389
389
  });
@@ -404,7 +404,7 @@ function mt(n, t, e) {
404
404
  32768 && g && A(), 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*/
407
- 65544 && P && y && it(y, `${P}.Style`, R);
407
+ 65544 && P && y && it(y, `${P}.Style`, I);
408
408
  }, [
409
409
  u,
410
410
  o,
@@ -423,7 +423,7 @@ function mt(n, t, e) {
423
423
  b,
424
424
  g,
425
425
  P,
426
- G
426
+ W
427
427
  ];
428
428
  }
429
429
  class ht extends Y {
@@ -1,4 +1,4 @@
1
- import { d as be, S as ve, t as ke, A as Ne, r as T, h as Se, x as Y, n as W, u as q, o as N, k as Te, y as Be, q as K, m as Fe, z as le, L as C, H as Z, g as v, e as Pe, w as z, I as D, i as o, f as Me, s as Ee, j as G, G as je, J as Q, K as Le, B as ze, D as Ae, E as He, l as Ce, a as De } from "./CasinoTournamentsThumbnailController-CJ5s9xEE.js";
1
+ import { b as be, S as ve, i as ke, s as Ne, f as T, c as Se, n as Y, d as W, g as q, j as N, l as Te, o as Fe, F as K, G as Be, r as le, H as C, E as Z, h as v, I as Pe, p as A, k as D, e as o, J as Me, K as Ee, u as G, m as je, w as Q, t as ze, z as Ae, A as He, B as Le, C as Ce, D as De } from "./CasinoTournamentsThumbnailController-DfF0ST18.js";
2
2
  function V(e, n) {
3
3
  be(e, n);
4
4
  }
@@ -78,13 +78,13 @@ function te(e) {
78
78
  /*main_elementresize_handler*/
79
79
  e[29].bind(m)
80
80
  ), v(n, w), v(n, s), e[31](n), _ || (b = [
81
- z(
81
+ A(
82
82
  t,
83
83
  "click",
84
84
  /*click_handler*/
85
85
  e[24]
86
86
  ),
87
- z(
87
+ A(
88
88
  s,
89
89
  "click",
90
90
  /*click_handler_2*/
@@ -125,7 +125,7 @@ function te(e) {
125
125
  );
126
126
  },
127
127
  d(r) {
128
- r && W(n), Fe(i, r), e[28](null), y(), e[31](null), _ = !1, le(b);
128
+ r && W(n), Be(i, r), e[28](null), y(), e[31](null), _ = !1, le(b);
129
129
  }
130
130
  };
131
131
  }
@@ -154,7 +154,7 @@ function ne(e) {
154
154
  }
155
155
  return {
156
156
  c() {
157
- n = N("div"), t = N("span"), m = Le(a), w = D(), s = N("img"), i = D(), o(t, "class", d = "PlayNowButton " + /*hover*/
157
+ n = N("div"), t = N("span"), m = ze(a), w = D(), s = N("img"), i = D(), o(t, "class", d = "PlayNowButton " + /*hover*/
158
158
  (e[5] && /*hoverIndex*/
159
159
  e[6] == /*i*/
160
160
  e[51] ? "itemHover" : "")), o(t, "part", y = "PlayNowButton " + /*hover*/
@@ -167,9 +167,9 @@ function ne(e) {
167
167
  },
168
168
  m(k, g) {
169
169
  q(k, n, g), v(n, t), v(t, m), v(n, w), v(n, s), v(n, i), r || (u = [
170
- z(n, "click", c),
171
- z(n, "mouseenter", P),
172
- z(
170
+ A(n, "click", c),
171
+ A(n, "mouseenter", P),
172
+ A(
173
173
  n,
174
174
  "mouseleave",
175
175
  /*mouseleave_handler*/
@@ -230,11 +230,11 @@ let Ge = 30;
230
230
  function We(e, n, t) {
231
231
  let a, m, d;
232
232
  Te(e, De, (l) => t(10, d = l));
233
- let { tournamenturl: y = "" } = n, { scrollby: w = "3" } = n, { pagfactor: s = "175" } = n, { lang: _ = "" } = n, { translationurl: b = "" } = n, { clientstyling: h = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, u, c, P = window.navigator.userAgent, k, g = [], f = 0, S, A = null, H = null, I = !1, U, M, E = 0, B;
233
+ let { tournamenturl: y = "" } = n, { scrollby: w = "3" } = n, { pagfactor: s = "175" } = n, { lang: _ = "" } = n, { translationurl: b = "" } = n, { clientstyling: h = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, u, c, P = window.navigator.userAgent, k, g = [], f = 0, S, H = null, L = null, I = !1, U, M, E = 0, F;
234
234
  const se = () => {
235
235
  fetch(b).then((p) => p.json()).then((p) => {
236
- Object.keys(p).forEach((L) => {
237
- V(L, p[L]);
236
+ Object.keys(p).forEach((z) => {
237
+ V(z, p[z]);
238
238
  });
239
239
  }).catch((p) => {
240
240
  console.log(p);
@@ -243,18 +243,18 @@ function We(e, n, t) {
243
243
  Object.keys($).forEach((l) => {
244
244
  V(l, $[l]);
245
245
  });
246
- const x = (l) => {
246
+ const J = (l) => {
247
247
  t(5, I = !0), t(6, U = l);
248
- }, J = () => {
248
+ }, O = () => {
249
249
  t(5, I = !1), t(6, U = -1);
250
- }, re = (l) => l.touches || l.originalEvent.touches, O = (l) => {
250
+ }, re = (l) => l.touches || l.originalEvent.touches, X = (l) => {
251
251
  const p = re(l)[0];
252
- A = p.clientX, H = p.clientY;
253
- }, X = (l) => {
254
- if (!A || !H)
252
+ H = p.clientX, L = p.clientY;
253
+ }, x = (l) => {
254
+ if (!H || !L)
255
255
  return;
256
- let p = l.touches[0].clientX, L = l.touches[0].clientY, F = A - p, _e = H - L;
257
- Math.abs(F) > Math.abs(_e) && (F > 0 ? j(1) : j(-1)), A = null, H = null;
256
+ let p = l.touches[0].clientX, z = l.touches[0].clientY, B = H - p, _e = L - z;
257
+ Math.abs(B) > Math.abs(_e) && (B > 0 ? j(1) : j(-1)), H = null, L = null;
258
258
  }, j = (l) => {
259
259
  l > 0 && !m ? (t(2, f -= k), t(2, f = f < E ? E : f)) : l < 0 && !a && (t(2, f += k), t(2, f = f > 0 ? 0 : f));
260
260
  }, R = (l) => {
@@ -269,11 +269,11 @@ function We(e, n, t) {
269
269
  );
270
270
  }, ae = () => {
271
271
  let l = new URL(y), p = new Headers();
272
- l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ge},offset=${f})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", _), l.searchParams.append("platform", Ee(P)), fetch(l, { method: "GET", headers: p }).then((F) => F.json()).then((F) => {
273
- t(1, g = F.item.games.items), F.item.games.total;
272
+ l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ge},offset=${f})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", _), l.searchParams.append("platform", Ee(P)), fetch(l, { method: "GET", headers: p }).then((B) => B.json()).then((B) => {
273
+ t(1, g = B.item.games.items), B.item.games.total;
274
274
  });
275
275
  }, ie = () => {
276
- S.addEventListener("touchstart", O, { passive: !0 }), S.addEventListener("touchmove", X, { passive: !0 });
276
+ S.addEventListener("touchstart", X, { passive: !0 }), S.addEventListener("touchmove", x, { passive: !0 });
277
277
  }, oe = () => {
278
278
  setTimeout(
279
279
  () => {
@@ -282,19 +282,19 @@ function We(e, n, t) {
282
282
  1e3
283
283
  );
284
284
  }, ce = () => {
285
- B > 0 && B < Math.floor((parseInt(w) + 1) * s) && t(15, w = Math.ceil(B / s).toString());
285
+ F > 0 && F < Math.floor((parseInt(w) + 1) * s) && t(15, w = Math.ceil(F / s).toString());
286
286
  };
287
- Be(() => (k = parseInt(w, 10) * parseInt(s, 10), () => {
288
- S.removeEventListener("touchstart", O), S.removeEventListener("touchmove", X);
287
+ Fe(() => (k = parseInt(w, 10) * parseInt(s, 10), () => {
288
+ S.removeEventListener("touchstart", X), S.removeEventListener("touchmove", x);
289
289
  }));
290
- const ue = () => j(-1), me = (l) => R(l), de = (l) => x(l), he = () => J();
290
+ const ue = () => j(-1), me = (l) => R(l), de = (l) => J(l), he = () => O();
291
291
  function ge(l) {
292
292
  G[l ? "unshift" : "push"](() => {
293
293
  M = l, t(7, M);
294
294
  });
295
295
  }
296
296
  function fe() {
297
- B = this.clientWidth, t(4, B);
297
+ F = this.clientWidth, t(4, F);
298
298
  }
299
299
  const pe = () => j(1);
300
300
  function ye(l) {
@@ -313,28 +313,28 @@ function We(e, n, t) {
313
313
  e.$$.dirty[0] & /*offset*/
314
314
  4 && t(8, a = f === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
315
315
  8388612 && t(9, m = f <= E), e.$$.dirty[0] & /*sliderMainWidth*/
316
- 16 && B && ce(), e.$$.dirty[0] & /*tournamenturl*/
316
+ 16 && F && ce(), e.$$.dirty[0] & /*tournamenturl*/
317
317
  131072 && y && ae(), e.$$.dirty[0] & /*slider*/
318
318
  8 && S && ie(), e.$$.dirty[0] & /*translationurl*/
319
319
  524288 && b && se(), e.$$.dirty[0] & /*games*/
320
320
  2 && g.length && oe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
321
- 1048577 && h && u && ze(u, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
322
- 2097153 && i && u && Ae(u, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
323
- 4194305 && r && u && He(u, `${r}.Style`, c);
321
+ 1048577 && h && u && Ae(u, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
322
+ 2097153 && i && u && He(u, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
323
+ 4194305 && r && u && Le(u, `${r}.Style`, c);
324
324
  }, t(2, f = 0), [
325
325
  u,
326
326
  g,
327
327
  f,
328
328
  S,
329
- B,
329
+ F,
330
330
  I,
331
331
  U,
332
332
  M,
333
333
  a,
334
334
  m,
335
335
  d,
336
- x,
337
336
  J,
337
+ O,
338
338
  j,
339
339
  R,
340
340
  w,