@everymatrix/casino-tournaments-thumbnail-controller 1.86.4 → 1.86.5

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 (48) hide show
  1. package/components/{CasinoTournamentsThumbnail-b84P5LC-.js → CasinoTournamentsThumbnail-Cm8ygS_j.js} +636 -668
  2. package/components/CasinoTournamentsThumbnail-DgXXegVa.cjs +5 -0
  3. package/components/{CasinoTournamentsThumbnail-BQPDlD-6.js → CasinoTournamentsThumbnail-J7Of-3j4.js} +633 -665
  4. package/components/CasinoTournamentsThumbnailController-DD3a1bpc.cjs +16 -0
  5. package/components/{CasinoTournamentsThumbnailController-Dk5ObYFQ.js → CasinoTournamentsThumbnailController-DGTv-6Vg.js} +571 -522
  6. package/components/{CasinoTournamentsThumbnailController-CHXnZMEK.js → CasinoTournamentsThumbnailController-yXv_8aa_.js} +615 -566
  7. package/components/{CasinoTournamentsThumbnailDuration-BRCX2YcD.js → CasinoTournamentsThumbnailDuration-DMSfakAi.js} +65 -65
  8. package/components/{CasinoTournamentsThumbnailDuration-BmsYPOji.cjs → CasinoTournamentsThumbnailDuration-IvKEkgj7.cjs} +1 -1
  9. package/components/{CasinoTournamentsThumbnailDuration-DesoRPY7.js → CasinoTournamentsThumbnailDuration-ShCMXlPG.js} +65 -65
  10. package/components/{CasinoTournamentsThumbnailGamesSlider-CuFhSsUz.js → CasinoTournamentsThumbnailGamesSlider-C9n0GZT3.js} +88 -88
  11. package/components/{CasinoTournamentsThumbnailGamesSlider-DsUSEf8W.cjs → CasinoTournamentsThumbnailGamesSlider-HEUEl0MK.cjs} +1 -1
  12. package/components/{CasinoTournamentsThumbnailGamesSlider-BumjreGL.js → CasinoTournamentsThumbnailGamesSlider-l7mPDvzQ.js} +88 -88
  13. package/components/{CasinoTournamentsThumbnailPrizes-DMD910A-.cjs → CasinoTournamentsThumbnailPrizes-BRbgsA4Y.cjs} +1 -1
  14. package/components/{CasinoTournamentsThumbnailPrizes-BrDPw5rZ.js → CasinoTournamentsThumbnailPrizes-CEvbFf9m.js} +85 -85
  15. package/components/{CasinoTournamentsThumbnailPrizes-CReAnTE_.js → CasinoTournamentsThumbnailPrizes-Ctx2j7e2.js} +85 -85
  16. package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
  17. package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
  18. package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/index-97d17652-B6BYeRne.js +542 -0
  21. package/stencil/index-97d17652-BOr4KAqq.js +558 -0
  22. package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
  23. package/stencil/index-b2193545-BpG2toSK.js +503 -0
  24. package/stencil/index-b2193545-DfeVnolx.cjs +1 -0
  25. package/stencil/index-b2193545-DuA2iMSm.js +519 -0
  26. package/stencil/{ui-image-DLoBAw4w.js → ui-image-Cs_BBOYl.js} +1 -1
  27. package/stencil/{ui-image-83gG286t.cjs → ui-image-DUHLTRXs.cjs} +1 -1
  28. package/stencil/{ui-image-2Wo8bNh1.js → ui-image-O0NdjWCu.js} +1 -1
  29. package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
  30. package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
  31. package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
  32. package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
  33. package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
  34. package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
  35. package/stencil/{ui-skeleton-hbyf6ZV-.cjs → ui-skeleton-B0E7XBJC.cjs} +1 -1
  36. package/stencil/{ui-skeleton-Czz99elh.js → ui-skeleton-Yn79cPkz.js} +2 -2
  37. package/stencil/{ui-skeleton-ed169f8f-F5Pn7BxE.js → ui-skeleton-ed169f8f-B-SERL0D.js} +1 -1
  38. package/stencil/{ui-skeleton-ed169f8f-DiR5y84l.cjs → ui-skeleton-ed169f8f-BRUG1h6n.cjs} +1 -1
  39. package/stencil/{ui-skeleton-ed169f8f-DTd-f9E3.js → ui-skeleton-ed169f8f-UdVwF_E9.js} +1 -1
  40. package/stencil/{ui-skeleton-BOZjVV7m.js → ui-skeleton-i9jZ615T.js} +2 -2
  41. package/components/CasinoTournamentsThumbnail-CSDNBS1u.cjs +0 -18
  42. package/components/CasinoTournamentsThumbnailController-B5oA7xOB.cjs +0 -3
  43. package/stencil/index-97d17652-DvplcHtm.js +0 -558
  44. package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
  45. package/stencil/index-97d17652-p-iQtjus.js +0 -542
  46. package/stencil/index-b2193545-RI3PckwN.js +0 -503
  47. package/stencil/index-b2193545-qC7jkIQW.cjs +0 -1
  48. package/stencil/index-b2193545-w9rTFozR.js +0 -519
@@ -1,5 +1,5 @@
1
- import { e as _e, S as be, i as ve, f as T, g as ke, s as Ne, h as Se, j as N, n as W, p as R, q, r as Te, t as Fe, u as Be, I as Y, k as C, m as c, J as A, H as K, K as Me, o as b, L as Pe, E as L, M as Ee, F as ne, B as je, N as Z, C as Le, v as U, w as He, x as ze, D as Ae } from "./CasinoTournamentsThumbnail-b84P5LC-.js";
2
- import { g as Ce } from "./CasinoTournamentsThumbnailController-CHXnZMEK.js";
1
+ import { b as _e, S as be, i as ve, s as ke, f as T, d as Ne, n as R, e as G, j as W, l as N, o as Se, p as Te, F as Y, G as Fe, w as ne, H as z, E as K, k as b, I as Be, x as A, m as C, h as c, J as Pe, q as U, u as Me, K as Z, v as Ee, B as je, C as Ae, D as He, c as Le, A as ze } from "./CasinoTournamentsThumbnail-Cm8ygS_j.js";
2
+ import { g as Ce } from "./CasinoTournamentsThumbnailController-yXv_8aa_.js";
3
3
  function Q(e, n) {
4
4
  _e(e, n);
5
5
  }
@@ -36,34 +36,34 @@ const V = {
36
36
  }
37
37
  };
38
38
  function De(e) {
39
- 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
+ Ne(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}");
40
40
  }
41
41
  function $(e, n, t) {
42
42
  const a = e.slice();
43
43
  return a[49] = n[t], a[51] = t, a;
44
44
  }
45
45
  function ee(e) {
46
- let n, t, a, h, d, p, y, s, w, _, g = Y(
46
+ let n, t, a, d, h, p, y, s, w, _, f = Y(
47
47
  /*games*/
48
48
  e[1]
49
49
  ), i = [];
50
- for (let r = 0; r < g.length; r += 1)
51
- i[r] = te($(e, g, r));
50
+ for (let r = 0; r < f.length; r += 1)
51
+ i[r] = te($(e, f, r));
52
52
  return {
53
53
  c() {
54
- n = N("div"), t = N("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 = C(), h = N("main"), d = N("div");
54
+ n = N("div"), t = N("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 = C(), d = N("main"), h = N("div");
55
55
  for (let r = 0; r < i.length; r += 1)
56
56
  i[r].c();
57
- y = C(), s = N("div"), s.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"), A(
57
+ y = C(), s = N("div"), s.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"), z(
58
58
  t,
59
59
  "disabled",
60
60
  /*atStart*/
61
61
  e[8]
62
- ), c(d, "class", "items"), c(d, "part", "items"), K(d, "transform", "translateX(" + /*offset*/
63
- e[2] + "px)"), Me(() => (
62
+ ), c(h, "class", "items"), c(h, "part", "items"), K(h, "transform", "translateX(" + /*offset*/
63
+ e[2] + "px)"), Pe(() => (
64
64
  /*main_elementresize_handler*/
65
- e[29].call(h)
66
- )), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"), A(
65
+ e[29].call(d)
66
+ )), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"), z(
67
67
  s,
68
68
  "disabled",
69
69
  /*atEnd*/
@@ -71,21 +71,21 @@ function ee(e) {
71
71
  ), c(n, "class", "TournamentsGamesSlider"), c(n, "part", "TournamentsGamesSlider");
72
72
  },
73
73
  m(r, m) {
74
- W(r, n, m), b(n, t), b(n, a), b(n, h), b(h, d);
74
+ W(r, n, m), b(n, t), b(n, a), b(n, d), b(d, h);
75
75
  for (let u = 0; u < i.length; u += 1)
76
- i[u] && i[u].m(d, null);
77
- e[28](d), p = Pe(
78
- h,
76
+ i[u] && i[u].m(h, null);
77
+ e[28](h), p = Be(
78
+ d,
79
79
  /*main_elementresize_handler*/
80
- e[29].bind(h)
80
+ e[29].bind(d)
81
81
  ), b(n, y), b(n, s), e[31](n), w || (_ = [
82
- L(
82
+ A(
83
83
  t,
84
84
  "click",
85
85
  /*click_handler*/
86
86
  e[24]
87
87
  ),
88
- L(
88
+ A(
89
89
  s,
90
90
  "click",
91
91
  /*click_handler_2*/
@@ -95,30 +95,30 @@ function ee(e) {
95
95
  },
96
96
  p(r, m) {
97
97
  if (m[0] & /*atStart*/
98
- 256 && A(
98
+ 256 && z(
99
99
  t,
100
100
  "disabled",
101
101
  /*atStart*/
102
102
  r[8]
103
103
  ), m[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
104
104
  23650) {
105
- g = Y(
105
+ f = Y(
106
106
  /*games*/
107
107
  r[1]
108
108
  );
109
109
  let u;
110
- for (u = 0; u < g.length; u += 1) {
111
- const k = $(r, g, u);
112
- i[u] ? i[u].p(k, m) : (i[u] = te(k), i[u].c(), i[u].m(d, null));
110
+ for (u = 0; u < f.length; u += 1) {
111
+ const k = $(r, f, u);
112
+ i[u] ? i[u].p(k, m) : (i[u] = te(k), i[u].c(), i[u].m(h, null));
113
113
  }
114
114
  for (; u < i.length; u += 1)
115
115
  i[u].d(1);
116
- i.length = g.length;
116
+ i.length = f.length;
117
117
  }
118
118
  m[0] & /*offset*/
119
- 4 && K(d, "transform", "translateX(" + /*offset*/
119
+ 4 && K(h, "transform", "translateX(" + /*offset*/
120
120
  r[2] + "px)"), m[0] & /*atEnd*/
121
- 512 && A(
121
+ 512 && z(
122
122
  s,
123
123
  "disabled",
124
124
  /*atEnd*/
@@ -126,7 +126,7 @@ function ee(e) {
126
126
  );
127
127
  },
128
128
  d(r) {
129
- r && q(n), Ee(i, r), e[28](null), p(), e[31](null), w = !1, ne(_);
129
+ r && G(n), Fe(i, r), e[28](null), p(), e[31](null), w = !1, ne(_);
130
130
  }
131
131
  };
132
132
  }
@@ -134,7 +134,7 @@ function te(e) {
134
134
  let n, t, a = (
135
135
  /*$_*/
136
136
  e[10]("playNow") + ""
137
- ), h, d, p, y, s, w, _, g, i, r, m;
137
+ ), d, h, p, y, s, w, _, f, i, r, m;
138
138
  function u() {
139
139
  return (
140
140
  /*click_handler_1*/
@@ -155,7 +155,7 @@ function te(e) {
155
155
  }
156
156
  return {
157
157
  c() {
158
- n = N("div"), t = N("span"), h = je(a), y = C(), s = N("img"), i = C(), c(t, "class", d = "PlayNowButton " + /*hover*/
158
+ n = N("div"), t = N("span"), d = Ee(a), y = C(), s = N("img"), i = C(), c(t, "class", h = "PlayNowButton " + /*hover*/
159
159
  (e[5] && /*hoverIndex*/
160
160
  e[6] == /*i*/
161
161
  e[51] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
@@ -163,14 +163,14 @@ function te(e) {
163
163
  e[6] == /*i*/
164
164
  e[51] ? "itemHover" : "")), Z(s.src, w = /*game*/
165
165
  e[49].thumbnail) || c(s, "src", w), c(s, "width", "132px"), c(s, "height", "100px"), c(s, "alt", _ = /*game*/
166
- e[49].name), c(s, "title", g = /*game*/
166
+ e[49].name), c(s, "title", f = /*game*/
167
167
  e[49].name), c(n, "class", "item"), c(n, "part", "item");
168
168
  },
169
169
  m(v, o) {
170
- W(v, n, o), b(n, t), b(t, h), b(n, y), b(n, s), b(n, i), r || (m = [
171
- L(n, "click", u),
172
- L(n, "mouseenter", k),
173
- L(
170
+ W(v, n, o), b(n, t), b(t, d), b(n, y), b(n, s), b(n, i), r || (m = [
171
+ A(n, "click", u),
172
+ A(n, "mouseenter", k),
173
+ A(
174
174
  n,
175
175
  "mouseleave",
176
176
  /*mouseleave_handler*/
@@ -181,11 +181,11 @@ function te(e) {
181
181
  p(v, o) {
182
182
  e = v, o[0] & /*$_*/
183
183
  1024 && a !== (a = /*$_*/
184
- e[10]("playNow") + "") && Le(h, a), o[0] & /*hover, hoverIndex*/
185
- 96 && d !== (d = "PlayNowButton " + /*hover*/
184
+ e[10]("playNow") + "") && Me(d, a), o[0] & /*hover, hoverIndex*/
185
+ 96 && h !== (h = "PlayNowButton " + /*hover*/
186
186
  (e[5] && /*hoverIndex*/
187
187
  e[6] == /*i*/
188
- e[51] ? "itemHover" : "")) && c(t, "class", d), o[0] & /*hover, hoverIndex*/
188
+ e[51] ? "itemHover" : "")) && c(t, "class", h), o[0] & /*hover, hoverIndex*/
189
189
  96 && p !== (p = "PlayNowButton " + /*hover*/
190
190
  (e[5] && /*hoverIndex*/
191
191
  e[6] == /*i*/
@@ -194,11 +194,11 @@ function te(e) {
194
194
  e[49].thumbnail) && c(s, "src", w), o[0] & /*games*/
195
195
  2 && _ !== (_ = /*game*/
196
196
  e[49].name) && c(s, "alt", _), o[0] & /*games*/
197
- 2 && g !== (g = /*game*/
198
- e[49].name) && c(s, "title", g);
197
+ 2 && f !== (f = /*game*/
198
+ e[49].name) && c(s, "title", f);
199
199
  },
200
200
  d(v) {
201
- v && q(n), r = !1, ne(m);
201
+ v && G(n), r = !1, ne(m);
202
202
  }
203
203
  };
204
204
  }
@@ -212,52 +212,52 @@ function Ie(e) {
212
212
  c() {
213
213
  n = N("div"), t && t.c();
214
214
  },
215
- m(a, h) {
216
- W(a, n, h), t && t.m(n, null), e[32](n);
215
+ m(a, d) {
216
+ W(a, n, d), t && t.m(n, null), e[32](n);
217
217
  },
218
- p(a, h) {
218
+ p(a, d) {
219
219
  /*games*/
220
220
  a[1] && /*games*/
221
- a[1].length > 0 ? t ? t.p(a, h) : (t = ee(a), t.c(), t.m(n, null)) : t && (t.d(1), t = null);
221
+ a[1].length > 0 ? t ? t.p(a, d) : (t = ee(a), t.c(), t.m(n, null)) : t && (t.d(1), t = null);
222
222
  },
223
223
  i: R,
224
224
  o: R,
225
225
  d(a) {
226
- a && q(n), t && t.d(), e[32](null);
226
+ a && G(n), t && t.d(), e[32](null);
227
227
  }
228
228
  };
229
229
  }
230
230
  let Ue = 30;
231
- function We(e, n, t) {
232
- let a, h, d;
233
- Te(e, Ae, (l) => t(10, d = l));
234
- let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: g = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S, H = null, z = null, D = !1, I, M, P = 0, F;
231
+ function Ge(e, n, t) {
232
+ let a, d, h;
233
+ Se(e, ze, (l) => t(10, h = l));
234
+ let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: f = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S, H = null, L = null, D = !1, I, P, M = 0, F;
235
235
  const le = () => {
236
- fetch(_).then((f) => f.json()).then((f) => {
237
- Object.keys(f).forEach((j) => {
238
- Q(j, f[j]);
236
+ fetch(_).then((g) => g.json()).then((g) => {
237
+ Object.keys(g).forEach((j) => {
238
+ Q(j, g[j]);
239
239
  });
240
- }).catch((f) => {
241
- console.log(f);
240
+ }).catch((g) => {
241
+ console.log(g);
242
242
  });
243
243
  };
244
244
  Object.keys(V).forEach((l) => {
245
245
  Q(l, V[l]);
246
246
  });
247
- const G = (l) => {
247
+ const q = (l) => {
248
248
  t(5, D = !0), t(6, I = l);
249
249
  }, x = () => {
250
250
  t(5, D = !1), t(6, I = -1);
251
251
  }, se = (l) => l.touches || l.originalEvent.touches, J = (l) => {
252
- const f = se(l)[0];
253
- H = f.clientX, z = f.clientY;
252
+ const g = se(l)[0];
253
+ H = g.clientX, L = g.clientY;
254
254
  }, O = (l) => {
255
- if (!H || !z)
255
+ if (!H || !L)
256
256
  return;
257
- let f = l.touches[0].clientX, j = l.touches[0].clientY, B = H - f, we = z - j;
258
- Math.abs(B) > Math.abs(we) && (B > 0 ? E(1) : E(-1)), H = null, z = null;
257
+ let g = l.touches[0].clientX, j = l.touches[0].clientY, B = H - g, we = L - j;
258
+ Math.abs(B) > Math.abs(we) && (B > 0 ? E(1) : E(-1)), H = null, L = null;
259
259
  }, E = (l) => {
260
- l > 0 && !h ? (t(2, o -= k), t(2, o = o < P ? P : o)) : l < 0 && !a && (t(2, o += k), t(2, o = o > 0 ? 0 : o));
260
+ l > 0 && !d ? (t(2, o -= k), t(2, o = o < M ? M : o)) : l < 0 && !a && (t(2, o += k), t(2, o = o > 0 ? 0 : o));
261
261
  }, X = (l) => {
262
262
  window.postMessage(
263
263
  {
@@ -269,8 +269,8 @@ function We(e, n, t) {
269
269
  window.location.href
270
270
  );
271
271
  }, re = () => {
272
- let l = new URL(p), f = new Headers();
273
- l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform", Ce(u)), fetch(l, { method: "GET", headers: f }).then((B) => B.json()).then((B) => {
272
+ let l = new URL(p), g = new Headers();
273
+ l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform", Ce(u)), fetch(l, { method: "GET", headers: g }).then((B) => B.json()).then((B) => {
274
274
  t(1, v = B.item.games.items), B.item.games.total;
275
275
  });
276
276
  }, ae = () => {
@@ -278,26 +278,26 @@ function We(e, n, t) {
278
278
  }, ie = () => {
279
279
  setTimeout(
280
280
  () => {
281
- t(23, P = (M.scrollWidth - M.clientWidth) * -1), t(16, s = new String(M.scrollWidth / v.length)), k = parseInt(y, 10) * parseFloat(s, 2).toFixed(2);
281
+ t(23, M = (P.scrollWidth - P.clientWidth) * -1), t(16, s = new String(P.scrollWidth / v.length)), k = parseInt(y, 10) * parseFloat(s, 2).toFixed(2);
282
282
  },
283
283
  1e3
284
284
  );
285
285
  }, oe = () => {
286
286
  F > 0 && F < Math.floor((parseInt(y) + 1) * s) && t(15, y = Math.ceil(F / s).toString());
287
287
  };
288
- Fe(() => (k = parseInt(y, 10) * parseInt(s, 10), () => {
288
+ Te(() => (k = parseInt(y, 10) * parseInt(s, 10), () => {
289
289
  S.removeEventListener("touchstart", J), S.removeEventListener("touchmove", O);
290
290
  }));
291
- const ce = () => E(-1), ue = (l) => X(l), me = (l) => G(l), he = () => x();
292
- function de(l) {
291
+ const ce = () => E(-1), ue = (l) => X(l), me = (l) => q(l), de = () => x();
292
+ function he(l) {
293
293
  U[l ? "unshift" : "push"](() => {
294
- M = l, t(7, M);
294
+ P = l, t(7, P);
295
295
  });
296
296
  }
297
- function ge() {
297
+ function fe() {
298
298
  F = this.clientWidth, t(4, F);
299
299
  }
300
- const fe = () => E(1);
300
+ const ge = () => E(1);
301
301
  function pe(l) {
302
302
  U[l ? "unshift" : "push"](() => {
303
303
  S = l, t(3, S);
@@ -309,19 +309,19 @@ function We(e, n, t) {
309
309
  });
310
310
  }
311
311
  return e.$$set = (l) => {
312
- "tournamenturl" in l && t(17, p = l.tournamenturl), "scrollby" in l && t(15, y = l.scrollby), "pagfactor" in l && t(16, s = l.pagfactor), "lang" in l && t(18, w = l.lang), "translationurl" in l && t(19, _ = l.translationurl), "clientstyling" in l && t(20, g = l.clientstyling), "clientstylingurl" in l && t(21, i = l.clientstylingurl), "mbsource" in l && t(22, r = l.mbsource);
312
+ "tournamenturl" in l && t(17, p = l.tournamenturl), "scrollby" in l && t(15, y = l.scrollby), "pagfactor" in l && t(16, s = l.pagfactor), "lang" in l && t(18, w = l.lang), "translationurl" in l && t(19, _ = l.translationurl), "clientstyling" in l && t(20, f = l.clientstyling), "clientstylingurl" in l && t(21, i = l.clientstylingurl), "mbsource" in l && t(22, r = l.mbsource);
313
313
  }, e.$$.update = () => {
314
314
  e.$$.dirty[0] & /*offset*/
315
315
  4 && t(8, a = o === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
316
- 8388612 && t(9, h = o <= P), e.$$.dirty[0] & /*sliderMainWidth*/
316
+ 8388612 && t(9, d = o <= M), e.$$.dirty[0] & /*sliderMainWidth*/
317
317
  16 && F && oe(), e.$$.dirty[0] & /*tournamenturl*/
318
318
  131072 && p && re(), e.$$.dirty[0] & /*slider*/
319
319
  8 && S && ae(), e.$$.dirty[0] & /*translationurl*/
320
320
  524288 && _ && le(), e.$$.dirty[0] & /*games*/
321
321
  2 && v.length && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
322
- 1048577 && g && m && He(m, g), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
323
- 2097153 && i && m && ze(m, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
324
- 4194305 && r && m && Be(m, `${r}.Style`);
322
+ 1048577 && f && m && je(m, f), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
323
+ 2097153 && i && m && Ae(m, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
324
+ 4194305 && r && m && He(m, `${r}.Style`);
325
325
  }, t(2, o = 0), [
326
326
  m,
327
327
  v,
@@ -330,11 +330,11 @@ function We(e, n, t) {
330
330
  F,
331
331
  D,
332
332
  I,
333
- M,
333
+ P,
334
334
  a,
335
- h,
336
335
  d,
337
- G,
336
+ h,
337
+ q,
338
338
  x,
339
339
  E,
340
340
  X,
@@ -343,29 +343,29 @@ function We(e, n, t) {
343
343
  p,
344
344
  w,
345
345
  _,
346
- g,
346
+ f,
347
347
  i,
348
348
  r,
349
- P,
349
+ M,
350
350
  ce,
351
351
  ue,
352
352
  me,
353
- he,
354
353
  de,
355
- ge,
354
+ he,
356
355
  fe,
356
+ ge,
357
357
  pe,
358
358
  ye
359
359
  ];
360
360
  }
361
- class qe extends be {
361
+ class We extends be {
362
362
  constructor(n) {
363
363
  super(), ve(
364
364
  this,
365
365
  n,
366
- We,
366
+ Ge,
367
367
  Ie,
368
- Ne,
368
+ ke,
369
369
  {
370
370
  tournamenturl: 17,
371
371
  scrollby: 15,
@@ -429,7 +429,7 @@ class qe extends be {
429
429
  this.$$set({ mbsource: n }), T();
430
430
  }
431
431
  }
432
- ke(qe, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
432
+ Le(We, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
433
433
  export {
434
- qe as default
434
+ We as default
435
435
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-CSDNBS1u.cjs");function _(l,t){e.addMessages(l,t)}const y={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 k(l){e.append_styles(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)}")}function P(l,t,n){const i=l.slice();return i[12]=t[n],i[14]=n,i}function b(l){let t,n=e.ensure_array_like(l[1]),i=[];for(let r=0;r<n.length;r+=1)i[r]=T(P(l,n,r));let a=null;return n.length||(a=v(l)),{c(){t=e.element("div");for(let r=0;r<i.length;r+=1)i[r].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(r,c){e.insert(r,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(r,c){if(c&6){n=e.ensure_array_like(r[1]);let s;for(s=0;s<n.length;s+=1){const d=P(r,n,s);i[s]?i[s].p(d,c):(i[s]=T(d),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(r,c):n.length?a&&(a.d(1),a=null):(a=v(r),a.c(),a.m(t,null))}},d(r){r&&e.detach(t),e.destroy_each(i,r),a&&a.d()}}}function v(l){let t,n=l[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,r){e.insert(a,t,r),e.append(t,i)},p(a,r){r&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function T(l){let t,n,i,a=(l[12].count>1?`${l[12].rank}~${l[12].rank+l[12].count-1}`:l[12].rank)+"",r,c,s=l[2]("place")+"",d,p,u=l[12].name+"",f,g;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),r=e.text(a),c=e.space(),d=e.text(s),p=e.text(": "),f=e.text(u),g=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"+l[14]),e.attr(t,"part","Prize Prize"+l[14])},m(m,o){e.insert(m,t,o),e.append(t,n),e.append(n,i),e.append(i,r),e.append(n,c),e.append(n,d),e.append(n,p),e.append(n,f),e.append(t,g)},p(m,o){o&2&&a!==(a=(m[12].count>1?`${m[12].rank}~${m[12].rank+m[12].count-1}`:m[12].rank)+"")&&e.set_data(r,a),o&4&&s!==(s=m[2]("place")+"")&&e.set_data(d,s),o&2&&u!==(u=m[12].name+"")&&e.set_data(f,u)},d(m){m&&e.detach(t)}}}function S(l){let t,n,i,a,r,c=l[2]("prizes")+"",s,d,p=l[1]&&b(l);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(),r=e.element("p"),s=e.text(c),d=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(r,"class","PrizesTitle"),e.attr(r,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(u,f){e.insert(u,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,r),e.append(r,s),e.append(t,d),p&&p.m(t,null),l[8](t)},p(u,[f]){f&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(s,c),u[1]?p?p.p(u,f):(p=b(u),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),p&&p.d(),l[8](null)}}}function F(l,t,n){let i;e.component_subscribe(l,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,{mbsource:d}=t,p,u;const f=()=>{fetch(s).then(h=>h.json()).then(h=>{Object.keys(h).forEach(z=>{_(z,h[z])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(o=>{_(o,y[o])});const g=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,u=o.data.prizes)};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function m(o){e.binding_callbacks[o?"unshift":"push"](()=>{p=o,n(0,p)})}return l.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,r=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl),"mbsource"in o&&n(7,d=o.mbsource)},l.$$.update=()=>{l.$$.dirty&17&&r&&p&&e.setClientStyling(p,r),l.$$.dirty&33&&c&&p&&e.setClientStylingURL(p,c),l.$$.dirty&129&&d&&p&&e.setStreamStyling(p,`${d}.Style`),l.$$.dirty&64&&s&&f()},[p,u,i,a,r,c,s,d,m]}class w extends e.SvelteComponent{constructor(t){super(),e.init(this,t,F,S,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6,mbsource:7},k)}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()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(w,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-DgXXegVa.cjs");function _(l,t){e.addMessages(l,t)}const y={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 k(l){e.append_styles(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)}")}function P(l,t,n){const i=l.slice();return i[12]=t[n],i[14]=n,i}function b(l){let t,n=e.ensure_array_like(l[1]),i=[];for(let r=0;r<n.length;r+=1)i[r]=T(P(l,n,r));let a=null;return n.length||(a=v(l)),{c(){t=e.element("div");for(let r=0;r<i.length;r+=1)i[r].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(r,c){e.insert(r,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(r,c){if(c&6){n=e.ensure_array_like(r[1]);let s;for(s=0;s<n.length;s+=1){const d=P(r,n,s);i[s]?i[s].p(d,c):(i[s]=T(d),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(r,c):n.length?a&&(a.d(1),a=null):(a=v(r),a.c(),a.m(t,null))}},d(r){r&&e.detach(t),e.destroy_each(i,r),a&&a.d()}}}function v(l){let t,n=l[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,r){e.insert(a,t,r),e.append(t,i)},p(a,r){r&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function T(l){let t,n,i,a=(l[12].count>1?`${l[12].rank}~${l[12].rank+l[12].count-1}`:l[12].rank)+"",r,c,s=l[2]("place")+"",d,p,u=l[12].name+"",f,g;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),r=e.text(a),c=e.space(),d=e.text(s),p=e.text(": "),f=e.text(u),g=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"+l[14]),e.attr(t,"part","Prize Prize"+l[14])},m(m,o){e.insert(m,t,o),e.append(t,n),e.append(n,i),e.append(i,r),e.append(n,c),e.append(n,d),e.append(n,p),e.append(n,f),e.append(t,g)},p(m,o){o&2&&a!==(a=(m[12].count>1?`${m[12].rank}~${m[12].rank+m[12].count-1}`:m[12].rank)+"")&&e.set_data(r,a),o&4&&s!==(s=m[2]("place")+"")&&e.set_data(d,s),o&2&&u!==(u=m[12].name+"")&&e.set_data(f,u)},d(m){m&&e.detach(t)}}}function S(l){let t,n,i,a,r,c=l[2]("prizes")+"",s,d,p=l[1]&&b(l);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(),r=e.element("p"),s=e.text(c),d=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(r,"class","PrizesTitle"),e.attr(r,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(u,f){e.insert(u,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,r),e.append(r,s),e.append(t,d),p&&p.m(t,null),l[8](t)},p(u,[f]){f&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(s,c),u[1]?p?p.p(u,f):(p=b(u),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),p&&p.d(),l[8](null)}}}function F(l,t,n){let i;e.component_subscribe(l,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,{mbsource:d}=t,p,u;const f=()=>{fetch(s).then(h=>h.json()).then(h=>{Object.keys(h).forEach(z=>{_(z,h[z])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(o=>{_(o,y[o])});const g=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,u=o.data.prizes)};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function m(o){e.binding_callbacks[o?"unshift":"push"](()=>{p=o,n(0,p)})}return l.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,r=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl),"mbsource"in o&&n(7,d=o.mbsource)},l.$$.update=()=>{l.$$.dirty&17&&r&&p&&e.setClientStyling(p,r),l.$$.dirty&33&&c&&p&&e.setClientStylingURL(p,c),l.$$.dirty&129&&d&&p&&e.setStreamStyling(p,`${d}.Style`),l.$$.dirty&64&&s&&f()},[p,u,i,a,r,c,s,d,m]}class w extends e.SvelteComponent{constructor(t){super(),e.init(this,t,F,S,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6,mbsource:7},k)}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()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(w,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=w;