@everymatrix/casino-tournaments-controller 1.54.6 → 1.54.8

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-B6mh3T8V.js → CasinoTournamentsController-D3kqTQoy.js} +442 -450
  2. package/components/CasinoTournamentsController-DeYJxMsf.js +5639 -0
  3. package/components/CasinoTournamentsController-Y02EoFCS.cjs +14 -0
  4. package/components/{CasinoTournamentsFilterController-crq752J3.js → CasinoTournamentsFilterController-Bi4mtrGz.js} +20 -20
  5. package/components/CasinoTournamentsFilterController-Pk2Wa5yj.js +536 -0
  6. package/components/CasinoTournamentsFilterController-fOgvqafN.cjs +1 -0
  7. package/components/{CasinoTournamentsListController-BHaCpLNs.js → CasinoTournamentsListController-BLr2UHB9.js} +21 -21
  8. package/components/CasinoTournamentsListController-Bkpb3QRw.cjs +13 -0
  9. package/components/CasinoTournamentsListController-CPTUlGJx.js +3117 -0
  10. package/components/{CasinoTournamentsThumbnail-BpY5tzvh.js → CasinoTournamentsThumbnail-8YRhmoBw.js} +36 -36
  11. package/components/CasinoTournamentsThumbnail-L4q_bfod.js +896 -0
  12. package/components/CasinoTournamentsThumbnail-bO_BSouL.cjs +4 -0
  13. package/components/{CasinoTournamentsThumbnailController-CmauHmt0.js → CasinoTournamentsThumbnailController-BWFh-Hhd.js} +73 -73
  14. package/components/CasinoTournamentsThumbnailController-CuHFVK14.cjs +1 -0
  15. package/components/CasinoTournamentsThumbnailController-Dr72UUqk.js +1417 -0
  16. package/components/CasinoTournamentsThumbnailDuration-BC5szfDe.cjs +1 -0
  17. package/components/CasinoTournamentsThumbnailDuration-CLfidISH.js +504 -0
  18. package/components/{CasinoTournamentsThumbnailDuration-Bl9YXTWz.js → CasinoTournamentsThumbnailDuration-CpyA1Eo1.js} +40 -40
  19. package/components/CasinoTournamentsThumbnailGamesSlider-BaWB-VH_.js +441 -0
  20. package/components/CasinoTournamentsThumbnailGamesSlider-DRGprCzj.cjs +1 -0
  21. package/components/{CasinoTournamentsThumbnailGamesSlider-7LdDhi2Q.js → CasinoTournamentsThumbnailGamesSlider-DhPlpDeb.js} +37 -37
  22. package/components/CasinoTournamentsThumbnailPrizes-BteGHS2o.js +315 -0
  23. package/components/CasinoTournamentsThumbnailPrizes-DeYHCkas.cjs +1 -0
  24. package/components/{CasinoTournamentsThumbnailPrizes-nDu0SMUv.js → CasinoTournamentsThumbnailPrizes-wp2hG8Ny.js} +15 -15
  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-D3kqTQoy.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
  };
@@ -0,0 +1,315 @@
1
+ import { a as A, S as Z, i as I, s as R, f as T, b as j, n as M, d as k, o as v, e as F, p as f, g, q as b, t as _, h as u, k as B, w as O, l as N, m as U, r as q, c as V, $ as W } from "./CasinoTournamentsController-D3kqTQoy.js";
2
+ function H(l, e) {
3
+ A(l, e);
4
+ }
5
+ const S = {
6
+ en: {
7
+ prizes: "Prizes",
8
+ noprizes: "No available prizes",
9
+ place: "place"
10
+ },
11
+ hr: {
12
+ prizes: "Nagrade",
13
+ noprizes: "Nema dostupnih nagrada",
14
+ place: "mjesto"
15
+ },
16
+ "zh-hk": {
17
+ prizes: "獎品",
18
+ noprizes: "沒有可用的獎品",
19
+ place: "位置"
20
+ },
21
+ fr: {
22
+ prizes: "Prix",
23
+ noprizes: "Aucun prix disponible",
24
+ place: "place"
25
+ },
26
+ ro: {
27
+ prizes: "Premii",
28
+ noprizes: "Nu sunt disponibile premii",
29
+ place: "poziție"
30
+ },
31
+ tr: {
32
+ prizes: "Ödüller",
33
+ noprizes: "Mevcut ödül yok",
34
+ place: "yer"
35
+ },
36
+ el: {
37
+ prizes: "Έπαθλα",
38
+ noprizes: "Μη διαθέσιμα έπαθλα",
39
+ place: "θέση"
40
+ },
41
+ es: {
42
+ prizes: "Premios",
43
+ noprizes: "No hay premios disponibles",
44
+ place: "lugar"
45
+ },
46
+ hu: {
47
+ prizes: "Nyeremények",
48
+ noprizes: "Nincs elérhető nyeremény",
49
+ place: "helyezés"
50
+ },
51
+ pt: {
52
+ prizes: "Prêmios",
53
+ noprizes: "Não há prêmios disponíveis",
54
+ place: "place"
55
+ },
56
+ "en-us": {
57
+ prizes: "Prizes",
58
+ noprizes: "No available prizes",
59
+ place: "place"
60
+ }
61
+ };
62
+ function D(l) {
63
+ j(l, "svelte-1bsrm1d", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}");
64
+ }
65
+ function E(l, e, t) {
66
+ const n = l.slice();
67
+ return n[13] = e[t], n[15] = t, n;
68
+ }
69
+ function L(l) {
70
+ let e, t = N(
71
+ /*prizes*/
72
+ l[1]
73
+ ), n = [];
74
+ for (let i = 0; i < t.length; i += 1)
75
+ n[i] = x(E(l, t, i));
76
+ let r = null;
77
+ return t.length || (r = C(l)), {
78
+ c() {
79
+ e = g("div");
80
+ for (let i = 0; i < n.length; i += 1)
81
+ n[i].c();
82
+ r && r.c(), u(e, "class", "Prizes"), u(e, "part", "Prizes");
83
+ },
84
+ m(i, c) {
85
+ F(i, e, c);
86
+ for (let s = 0; s < n.length; s += 1)
87
+ n[s] && n[s].m(e, null);
88
+ r && r.m(e, null);
89
+ },
90
+ p(i, c) {
91
+ if (c & /*prizes, $_*/
92
+ 6) {
93
+ t = N(
94
+ /*prizes*/
95
+ i[1]
96
+ );
97
+ let s;
98
+ for (s = 0; s < t.length; s += 1) {
99
+ const p = E(i, t, s);
100
+ n[s] ? n[s].p(p, c) : (n[s] = x(p), n[s].c(), n[s].m(e, null));
101
+ }
102
+ for (; s < n.length; s += 1)
103
+ n[s].d(1);
104
+ n.length = t.length, !t.length && r ? r.p(i, c) : t.length ? r && (r.d(1), r = null) : (r = C(i), r.c(), r.m(e, null));
105
+ }
106
+ },
107
+ d(i) {
108
+ i && k(e), U(n, i), r && r.d();
109
+ }
110
+ };
111
+ }
112
+ function C(l) {
113
+ let e, t = (
114
+ /*$_*/
115
+ l[2]("noprizes") + ""
116
+ ), n;
117
+ return {
118
+ c() {
119
+ e = g("p"), n = _(t);
120
+ },
121
+ m(r, i) {
122
+ F(r, e, i), f(e, n);
123
+ },
124
+ p(r, i) {
125
+ i & /*$_*/
126
+ 4 && t !== (t = /*$_*/
127
+ r[2]("noprizes") + "") && v(n, t);
128
+ },
129
+ d(r) {
130
+ r && k(e);
131
+ }
132
+ };
133
+ }
134
+ function x(l) {
135
+ let e, t, n, r = (
136
+ /*prize*/
137
+ (l[13].count > 1 ? `${/*prize*/
138
+ l[13].rank}~${/*prize*/
139
+ l[13].rank + /*prize*/
140
+ l[13].count - 1}` : (
141
+ /*prize*/
142
+ l[13].rank
143
+ )) + ""
144
+ ), i, c, s = (
145
+ /*$_*/
146
+ l[2]("place") + ""
147
+ ), p, o, d = (
148
+ /*prize*/
149
+ l[13].name + ""
150
+ ), z, w;
151
+ return {
152
+ c() {
153
+ e = g("div"), t = g("p"), n = g("span"), i = _(r), c = b(), p = _(s), o = _(": "), z = _(d), w = b(), u(n, "class", "PrizeRank"), u(n, "part", "PrizeRank"), u(t, "class", "PrizeText"), u(t, "part", "PrizeText"), u(e, "class", "Prize Prize" + /*index*/
154
+ l[15]), u(e, "part", "Prize Prize" + /*index*/
155
+ l[15]);
156
+ },
157
+ m(h, y) {
158
+ F(h, e, y), f(e, t), f(t, n), f(n, i), f(t, c), f(t, p), f(t, o), f(t, z), f(e, w);
159
+ },
160
+ p(h, y) {
161
+ y & /*prizes*/
162
+ 2 && r !== (r = /*prize*/
163
+ (h[13].count > 1 ? `${/*prize*/
164
+ h[13].rank}~${/*prize*/
165
+ h[13].rank + /*prize*/
166
+ h[13].count - 1}` : (
167
+ /*prize*/
168
+ h[13].rank
169
+ )) + "") && v(i, r), y & /*$_*/
170
+ 4 && s !== (s = /*$_*/
171
+ h[2]("place") + "") && v(p, s), y & /*prizes*/
172
+ 2 && d !== (d = /*prize*/
173
+ h[13].name + "") && v(z, d);
174
+ },
175
+ d(h) {
176
+ h && k(e);
177
+ }
178
+ };
179
+ }
180
+ function G(l) {
181
+ let e, t, n, r, i, c = (
182
+ /*$_*/
183
+ l[2]("prizes") + ""
184
+ ), s, p, o = (
185
+ /*prizes*/
186
+ l[1] && L(l)
187
+ );
188
+ return {
189
+ c() {
190
+ e = g("div"), t = g("div"), n = g("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', r = b(), i = g("p"), s = _(c), p = b(), o && o.c(), u(n, "class", "TournamentPrizesIconWrapper"), u(n, "part", "TournamentPrizesIconWrapper"), u(i, "class", "PrizesTitle"), u(i, "part", "PrizesTitle"), u(t, "class", "TournamentPrizesIconSection"), u(t, "part", "TournamentPrizesIconSection"), u(e, "class", "TournamentPrizes"), u(e, "part", "TournamentPrizes");
191
+ },
192
+ m(d, z) {
193
+ F(d, e, z), f(e, t), f(t, n), f(t, r), f(t, i), f(i, s), f(e, p), o && o.m(e, null), l[7](e);
194
+ },
195
+ p(d, [z]) {
196
+ z & /*$_*/
197
+ 4 && c !== (c = /*$_*/
198
+ d[2]("prizes") + "") && v(s, c), /*prizes*/
199
+ d[1] ? o ? o.p(d, z) : (o = L(d), o.c(), o.m(e, null)) : o && (o.d(1), o = null);
200
+ },
201
+ i: M,
202
+ o: M,
203
+ d(d) {
204
+ d && k(e), o && o.d(), l[7](null);
205
+ }
206
+ };
207
+ }
208
+ function J(l, e, t) {
209
+ let n;
210
+ B(l, W, (a) => t(2, n = a));
211
+ let { tourid: r = "" } = e, { clientstyling: i = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: s = "" } = e, p, o;
212
+ const d = () => {
213
+ fetch(s).then((m) => m.json()).then((m) => {
214
+ Object.keys(m).forEach((P) => {
215
+ H(P, m[P]);
216
+ });
217
+ }).catch((m) => {
218
+ console.log(m);
219
+ });
220
+ };
221
+ Object.keys(S).forEach((a) => {
222
+ H(a, S[a]);
223
+ });
224
+ const z = (a) => {
225
+ a.data && a.data.type == `TournamentPrizes_${r}` && t(1, o = a.data.prizes);
226
+ }, w = () => {
227
+ let a = document.createElement("style");
228
+ a.innerHTML = i, p.appendChild(a);
229
+ }, h = () => {
230
+ let a = new URL(c), m = document.createElement("style");
231
+ fetch(a.href).then((P) => P.text()).then((P) => {
232
+ m.innerHTML = P, setTimeout(
233
+ () => {
234
+ p.appendChild(m);
235
+ },
236
+ 1
237
+ ), setTimeout(
238
+ () => {
239
+ },
240
+ 500
241
+ );
242
+ });
243
+ };
244
+ O(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", z, !1), () => {
245
+ window.removeEventListener("message", z);
246
+ }));
247
+ function y(a) {
248
+ q[a ? "unshift" : "push"](() => {
249
+ p = a, t(0, p);
250
+ });
251
+ }
252
+ return l.$$set = (a) => {
253
+ "tourid" in a && t(3, r = a.tourid), "clientstyling" in a && t(4, i = a.clientstyling), "clientstylingurl" in a && t(5, c = a.clientstylingurl), "translationurl" in a && t(6, s = a.translationurl);
254
+ }, l.$$.update = () => {
255
+ l.$$.dirty & /*customStylingContainer, clientstyling*/
256
+ 17 && p && i && w(), l.$$.dirty & /*customStylingContainer, clientstylingurl*/
257
+ 33 && p && c && h(), l.$$.dirty & /*translationurl*/
258
+ 64 && s && d();
259
+ }, [
260
+ p,
261
+ o,
262
+ n,
263
+ r,
264
+ i,
265
+ c,
266
+ s,
267
+ y
268
+ ];
269
+ }
270
+ class K extends Z {
271
+ constructor(e) {
272
+ super(), I(
273
+ this,
274
+ e,
275
+ J,
276
+ G,
277
+ R,
278
+ {
279
+ tourid: 3,
280
+ clientstyling: 4,
281
+ clientstylingurl: 5,
282
+ translationurl: 6
283
+ },
284
+ D
285
+ );
286
+ }
287
+ get tourid() {
288
+ return this.$$.ctx[3];
289
+ }
290
+ set tourid(e) {
291
+ this.$$set({ tourid: e }), T();
292
+ }
293
+ get clientstyling() {
294
+ return this.$$.ctx[4];
295
+ }
296
+ set clientstyling(e) {
297
+ this.$$set({ clientstyling: e }), T();
298
+ }
299
+ get clientstylingurl() {
300
+ return this.$$.ctx[5];
301
+ }
302
+ set clientstylingurl(e) {
303
+ this.$$set({ clientstylingurl: e }), T();
304
+ }
305
+ get translationurl() {
306
+ return this.$$.ctx[6];
307
+ }
308
+ set translationurl(e) {
309
+ this.$$set({ translationurl: e }), T();
310
+ }
311
+ }
312
+ V(K, { tourid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
313
+ export {
314
+ K as default
315
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-Y02EoFCS.cjs");function y(r,t){e.addMessages(r,t)}const P={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},"en-us":{prizes:"Prizes",noprizes:"No available prizes",place:"place"}};function F(r){e.append_styles(r,"svelte-1bsrm1d","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}")}function v(r,t,n){const i=r.slice();return i[13]=t[n],i[15]=n,i}function T(r){let t,n=e.ensure_array_like(r[1]),i=[];for(let l=0;l<n.length;l+=1)i[l]=w(v(r,n,l));let a=null;return n.length||(a=b(r)),{c(){t=e.element("div");for(let l=0;l<i.length;l+=1)i[l].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(l,c){e.insert(l,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(l,c){if(c&6){n=e.ensure_array_like(l[1]);let s;for(s=0;s<n.length;s+=1){const u=v(l,n,s);i[s]?i[s].p(u,c):(i[s]=w(u),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(l,c):n.length?a&&(a.d(1),a=null):(a=b(l),a.c(),a.m(t,null))}},d(l){l&&e.detach(t),e.destroy_each(i,l),a&&a.d()}}}function b(r){let t,n=r[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,l){e.insert(a,t,l),e.append(t,i)},p(a,l){l&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function w(r){let t,n,i,a=(r[13].count>1?`${r[13].rank}~${r[13].rank+r[13].count-1}`:r[13].rank)+"",l,c,s=r[2]("place")+"",u,p,d=r[13].name+"",f,_;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),l=e.text(a),c=e.space(),u=e.text(s),p=e.text(": "),f=e.text(d),_=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+r[15]),e.attr(t,"part","Prize Prize"+r[15])},m(h,z){e.insert(h,t,z),e.append(t,n),e.append(n,i),e.append(i,l),e.append(n,c),e.append(n,u),e.append(n,p),e.append(n,f),e.append(t,_)},p(h,z){z&2&&a!==(a=(h[13].count>1?`${h[13].rank}~${h[13].rank+h[13].count-1}`:h[13].rank)+"")&&e.set_data(l,a),z&4&&s!==(s=h[2]("place")+"")&&e.set_data(u,s),z&2&&d!==(d=h[13].name+"")&&e.set_data(f,d)},d(h){h&&e.detach(t)}}}function M(r){let t,n,i,a,l,c=r[2]("prizes")+"",s,u,p=r[1]&&T(r);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',a=e.space(),l=e.element("p"),s=e.text(c),u=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(l,"class","PrizesTitle"),e.attr(l,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(d,f){e.insert(d,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,l),e.append(l,s),e.append(t,u),p&&p.m(t,null),r[7](t)},p(d,[f]){f&4&&c!==(c=d[2]("prizes")+"")&&e.set_data(s,c),d[1]?p?p.p(d,f):(p=T(d),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),p&&p.d(),r[7](null)}}}function N(r,t,n){let i;e.component_subscribe(r,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,u,p;const d=()=>{fetch(s).then(m=>m.json()).then(m=>{Object.keys(m).forEach(g=>{y(g,m[g])})}).catch(m=>{console.log(m)})};Object.keys(P).forEach(o=>{y(o,P[o])});const f=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,p=o.data.prizes)},_=()=>{let o=document.createElement("style");o.innerHTML=l,u.appendChild(o)},h=()=>{let o=new URL(c),m=document.createElement("style");fetch(o.href).then(g=>g.text()).then(g=>{m.innerHTML=g,setTimeout(()=>{u.appendChild(m)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)}));function z(o){e.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(0,u)})}return r.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,l=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl)},r.$$.update=()=>{r.$$.dirty&17&&u&&l&&_(),r.$$.dirty&33&&u&&c&&h(),r.$$.dirty&64&&s&&d()},[u,p,i,a,l,c,s,z]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,M,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},F)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(k,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=k;