@everymatrix/casino-tournaments-controller 1.54.6 → 1.54.9

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 (28) hide show
  1. package/components/CasinoTournamentsController-C1dCP4c5.cjs +14 -0
  2. package/components/{CasinoTournamentsController-B6mh3T8V.js → CasinoTournamentsController-CD_5uyUc.js} +499 -507
  3. package/components/CasinoTournamentsController-UUtBZIFh.js +5639 -0
  4. package/components/{CasinoTournamentsFilterController-crq752J3.js → CasinoTournamentsFilterController-C6PNRuAN.js} +20 -20
  5. package/components/CasinoTournamentsFilterController-C8EhVpC4.js +536 -0
  6. package/components/CasinoTournamentsFilterController-CDD660uA.cjs +1 -0
  7. package/components/CasinoTournamentsListController-fm8TCneo.cjs +13 -0
  8. package/components/{CasinoTournamentsListController-BHaCpLNs.js → CasinoTournamentsListController-l8AH-AQy.js} +21 -21
  9. package/components/CasinoTournamentsListController-wgytIhYX.js +3117 -0
  10. package/components/CasinoTournamentsThumbnail-BVAQJY4f.cjs +4 -0
  11. package/components/{CasinoTournamentsThumbnail-BpY5tzvh.js → CasinoTournamentsThumbnail-C1PdhLiD.js} +36 -36
  12. package/components/CasinoTournamentsThumbnail-CfBfOQ6y.js +896 -0
  13. package/components/CasinoTournamentsThumbnailController-B5QfYW6Q.cjs +1 -0
  14. package/components/CasinoTournamentsThumbnailController-DBjAq9-k.js +1417 -0
  15. package/components/{CasinoTournamentsThumbnailController-CmauHmt0.js → CasinoTournamentsThumbnailController-neX5M-sd.js} +73 -73
  16. package/components/{CasinoTournamentsThumbnailDuration-Bl9YXTWz.js → CasinoTournamentsThumbnailDuration-CGgR5XoL.js} +40 -40
  17. package/components/CasinoTournamentsThumbnailDuration-DFP9BWRc.cjs +1 -0
  18. package/components/CasinoTournamentsThumbnailDuration-sMRWK6Da.js +504 -0
  19. package/components/{CasinoTournamentsThumbnailGamesSlider-7LdDhi2Q.js → CasinoTournamentsThumbnailGamesSlider-BUainTMh.js} +37 -37
  20. package/components/CasinoTournamentsThumbnailGamesSlider-Bcgbm6UZ.js +441 -0
  21. package/components/CasinoTournamentsThumbnailGamesSlider-CU3QiSRS.cjs +1 -0
  22. package/components/{CasinoTournamentsThumbnailPrizes-nDu0SMUv.js → CasinoTournamentsThumbnailPrizes-Cb6ucU30.js} +15 -15
  23. package/components/CasinoTournamentsThumbnailPrizes-D5o6hcAd.cjs +1 -0
  24. package/components/CasinoTournamentsThumbnailPrizes-pB7CeUbv.js +315 -0
  25. package/es2015/casino-tournaments-controller.cjs +1 -0
  26. package/es2015/casino-tournaments-controller.js +16 -0
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +1 -1
@@ -1,4 +1,4 @@
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-B6mh3T8V.js";
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-CD_5uyUc.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
- 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}");
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}");
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"), 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(
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"), C(
65
+ )), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), j(
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
- I(s, l, b), v(l, t), v(l, a), v(l, d), v(d, h);
73
+ G(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 && C(
97
+ 256 && j(
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 && C(
120
+ 512 && j(
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 && G(l), Ee(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
128
+ s && D(l), Me(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 = Le(a), y = z(), r = S("img"), o = z(), c(t, "class", h = "PlayNowButton " + /*hover*/
157
+ l = S("div"), t = S("span"), d = He(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
- I(u, l, m), v(l, t), v(t, d), v(l, y), v(l, r), v(l, o), s || (b = [
169
+ G(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") + "") && He(d, a), m[0] & /*hover, hoverIndex*/
183
+ e[10]("playNow") + "") && Le(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 && G(l), s = !1, te(b);
200
+ u && D(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
- I(a, l, d), t && t.m(l, null), e[31](l);
215
+ G(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 && G(l), t && t.d(), e[31](null);
225
+ a && D(l), t && t.d(), e[31](null);
226
226
  }
227
227
  };
228
228
  }
229
229
  let Ue = 30;
230
- function De(e, l, t) {
230
+ function Ie(e, l, t) {
231
231
  let a, d, h;
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;
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;
234
234
  const ne = () => {
235
235
  fetch(_).then((g) => g.json()).then((g) => {
236
236
  Object.keys(g).forEach((N) => {
@@ -249,13 +249,13 @@ function De(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, j = g.clientY;
252
+ H = g.clientX, C = g.clientY;
253
253
  }, O = (n) => {
254
- if (!H || !j) return;
255
- let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
256
- Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, j = null;
254
+ if (!H || !C) return;
255
+ let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = C - N;
256
+ Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, C = null;
257
257
  }, E = (n) => {
258
- 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));
258
+ 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
259
  }, R = (n) => {
260
260
  window.postMessage(
261
261
  {
@@ -268,7 +268,7 @@ function De(e, l, t) {
268
268
  );
269
269
  }, se = () => {
270
270
  let n = new URL(p), g = new Headers();
271
- 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) => {
271
+ 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
272
  t(1, k = F.item.games.items), F.item.games.total;
273
273
  });
274
274
  }, re = () => {
@@ -276,7 +276,7 @@ function De(e, l, t) {
276
276
  }, ae = () => {
277
277
  setTimeout(
278
278
  () => {
279
- 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);
279
+ 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
280
  },
281
281
  1e3
282
282
  );
@@ -300,13 +300,13 @@ function De(e, l, t) {
300
300
  }, ce = () => {
301
301
  T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
302
302
  };
303
- Me(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
303
+ Fe(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
304
304
  m.removeEventListener("touchstart", J), m.removeEventListener("touchmove", O);
305
305
  }));
306
306
  const ue = () => E(-1), de = (n) => R(n), he = (n) => W(n), me = () => q();
307
307
  function fe(n) {
308
- D[n ? "unshift" : "push"](() => {
309
- P = n, t(7, P);
308
+ I[n ? "unshift" : "push"](() => {
309
+ B = n, t(7, B);
310
310
  });
311
311
  }
312
312
  function ge() {
@@ -314,12 +314,12 @@ function De(e, l, t) {
314
314
  }
315
315
  const pe = () => E(1);
316
316
  function ye(n) {
317
- D[n ? "unshift" : "push"](() => {
317
+ I[n ? "unshift" : "push"](() => {
318
318
  m = n, t(3, m);
319
319
  });
320
320
  }
321
321
  function we(n) {
322
- D[n ? "unshift" : "push"](() => {
322
+ I[n ? "unshift" : "push"](() => {
323
323
  s = n, t(0, s);
324
324
  });
325
325
  }
@@ -328,7 +328,7 @@ function De(e, l, t) {
328
328
  }, e.$$.update = () => {
329
329
  e.$$.dirty[0] & /*offset*/
330
330
  4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
331
- 4194308 && t(9, d = u <= B), e.$$.dirty[0] & /*sliderMainWidth*/
331
+ 4194308 && t(9, d = u <= P), e.$$.dirty[0] & /*sliderMainWidth*/
332
332
  16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
333
333
  131072 && p && se(), e.$$.dirty[0] & /*slider*/
334
334
  8 && m && re(), e.$$.dirty[0] & /*translationurl*/
@@ -344,7 +344,7 @@ function De(e, l, t) {
344
344
  T,
345
345
  A,
346
346
  U,
347
- P,
347
+ B,
348
348
  a,
349
349
  d,
350
350
  h,
@@ -359,7 +359,7 @@ function De(e, l, t) {
359
359
  _,
360
360
  f,
361
361
  o,
362
- B,
362
+ P,
363
363
  ue,
364
364
  de,
365
365
  he,
@@ -371,14 +371,14 @@ function De(e, l, t) {
371
371
  we
372
372
  ];
373
373
  }
374
- class Ie extends ve {
374
+ class De extends ve {
375
375
  constructor(l) {
376
376
  super(), ke(
377
377
  this,
378
378
  l,
379
- De,
379
+ Ie,
380
380
  Ae,
381
- Se,
381
+ Ne,
382
382
  {
383
383
  tournamenturl: 17,
384
384
  scrollby: 15,
@@ -435,7 +435,7 @@ class Ie extends ve {
435
435
  this.$$set({ clientstylingurl: l }), M();
436
436
  }
437
437
  }
438
- Ne(Ie, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
438
+ Ce(De, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
439
439
  export {
440
- Ie as default
440
+ De as default
441
441
  };