@everymatrix/tournament-details-page 0.0.5 → 0.0.6

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,28 +1,28 @@
1
- var ce = (T, d, p) => new Promise((V, I) => {
2
- var M = (f) => {
1
+ var ce = (T, d, m) => new Promise((V, H) => {
2
+ var j = (u) => {
3
3
  try {
4
- k(p.next(f));
4
+ x(m.next(u));
5
5
  } catch (G) {
6
- I(G);
6
+ H(G);
7
7
  }
8
- }, W = (f) => {
8
+ }, W = (u) => {
9
9
  try {
10
- k(p.throw(f));
10
+ x(m.throw(u));
11
11
  } catch (G) {
12
- I(G);
12
+ H(G);
13
13
  }
14
- }, k = (f) => f.done ? V(f.value) : Promise.resolve(f.value).then(M, W);
15
- k((p = p.apply(T, d)).next());
14
+ }, x = (u) => u.done ? V(u.value) : Promise.resolve(u.value).then(j, W);
15
+ x((m = m.apply(T, d)).next());
16
16
  });
17
- import { a as Fe, $ as He, m as Xe, e as Ue, p as P, u as de, s as z, f as Je, g as _, r as x, q as i, i as D, n as a, y as A, C as qe, E as w, A as O, h as c, j as Ke, k as Qe, F as Ve, w as y, l as S, J, K as q, I as K, x as Q, L as oe, t as Ye, v as Ze, B as r, D as fe } from "./TournamentDetails-DIGjTSwQ.js";
18
- import { g as $e } from "./TournamentDetailsPage-Dlv02xHw.js";
19
- function et(T, d) {
17
+ import { a as Fe, $ as Xe, m as Ue, e as Je, p as P, u as de, s as z, f as qe, g as _, r as w, q as i, i as D, n as a, y as B, C as Ke, E as y, A as M, h as c, j as Qe, k as Ve, F as Ye, w as k, l as S, J, K as q, I as K, x as Q, L as oe, t as Ze, v as $e, B as r, D as fe } from "./TournamentDetails-wSkU01Xy.js";
18
+ import { g as et } from "./TournamentDetailsPage-9QiBj_5p.js";
19
+ function tt(T, d) {
20
20
  Fe(T, d);
21
21
  }
22
- function tt(T) {
23
- He.set(T);
22
+ function ue(T) {
23
+ Xe.set(T);
24
24
  }
25
- const ue = {
25
+ const ge = {
26
26
  en: {
27
27
  previousButton: "Previous",
28
28
  nextButton: "Next",
@@ -40,7 +40,7 @@ const ue = {
40
40
  sportsbookTab: "Sportsbook"
41
41
  }
42
42
  }, at = () => typeof window == "undefined";
43
- var nt = _('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'), ot = _('<p class="svelte-p7mf8l"> </p>'), st = _("<div></div>"), rt = _('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'), lt = _('<div class="TournamentGameThumbnail svelte-p7mf8l"><div class="ImageContainer svelte-p7mf8l"><img class="svelte-p7mf8l"/> <div class="PlayButtonOverlay svelte-p7mf8l"><button class="PlayGameButton svelte-p7mf8l"> </button></div></div></div>'), it = _('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'), pt = _("<button> </button>"), mt = _('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'), vt = _('<p class="NoGamesAvailable svelte-p7mf8l"> </p>'), ct = _('<div class="PaginationSkeleton svelte-p7mf8l"><div class="PaginationSkeletonButton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationSkeletonButton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div></div>'), dt = _('<div class="TournamentGamesWrapper svelte-p7mf8l"><div class="GamesDescription svelte-p7mf8l"><p class="GamesDescriptionTitle svelte-p7mf8l"> </p> <p class="GamesDescriptionSubTitle svelte-p7mf8l"> </p></div> <!> <!> <div><!></div> <!> <!></div>');
43
+ var nt = _('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'), ot = _('<p class="svelte-p7mf8l"> </p>'), st = _("<div></div>"), rt = _('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'), lt = _('<div class="TournamentGameThumbnail svelte-p7mf8l"><div class="ImageContainer svelte-p7mf8l"><img class="svelte-p7mf8l"/> <div class="PlayButtonOverlay svelte-p7mf8l"><button class="PlayGameButton svelte-p7mf8l"> </button></div></div></div>'), it = _('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'), pt = _("<button> </button>"), mt = _('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'), vt = _("<p> </p>"), ct = _('<div class="PaginationSkeleton svelte-p7mf8l"><div class="PaginationSkeletonButton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationSkeletonButton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div></div>'), dt = _('<div class="TournamentGamesWrapper svelte-p7mf8l"><div class="GamesDescription svelte-p7mf8l"><p class="GamesDescriptionTitle svelte-p7mf8l"> </p> <p class="GamesDescriptionSubTitle svelte-p7mf8l"> </p></div> <!> <!> <div><!></div> <!> <!></div>');
44
44
  const ft = {
45
45
  hash: "svelte-p7mf8l",
46
46
  code: `.svelte-p7mf8l,
@@ -50,7 +50,7 @@ const ft = {
50
50
  var(--emw-color-primary, #FF1D4E),
51
51
  transparent
52
52
  );background-size:100% 200%;
53
- animation: pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0, 0, 0, 0.6);display:flex;justify-content:center;align-items:center;opacity:0;&:hover {opacity:1;transition:opacity 0.5s;}.PlayGameButton:where(.svelte-p7mf8l) {background-color:var(--emw-color-primary, #FF1D4E);border-radius:6px;color:var(--emw-color-typography, #ffffff);padding:10px;border:none;outline:none;min-width:50%;cursor:pointer;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}}}}.PaginationWrapper.svelte-p7mf8l {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-p7mf8l) {display:flex;gap:3px;}.PaginationButton:where(.svelte-p7mf8l) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.NoGamesAvailable.svelte-p7mf8l {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-p7mf8l {display:flex;justify-content:space-between;gap:6px;}.PaginationSkeletonButton.svelte-p7mf8l {width:80px;height:40px;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;}.PaginationNumberSkeleton.svelte-p7mf8l {width:40px;height:40px;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;}.SkeletonShimmer.svelte-p7mf8l {width:100%;height:100%;background:linear-gradient(
53
+ animation: pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0, 0, 0, 0.6);display:flex;justify-content:center;align-items:center;opacity:0;&:hover {opacity:1;transition:opacity 0.5s;}.PlayGameButton:where(.svelte-p7mf8l) {background-color:var(--emw-color-primary, #FF1D4E);border-radius:6px;color:var(--emw-color-typography, #ffffff);padding:10px;border:none;outline:none;min-width:50%;cursor:pointer;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}}}}.PaginationWrapper.svelte-p7mf8l {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-p7mf8l) {display:flex;gap:3px;}.PaginationButton:where(.svelte-p7mf8l) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.NoGamesAvailable.svelte-p7mf8l {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-p7mf8l {display:flex;justify-content:space-between;gap:6px;}.PaginationSkeletonButton.svelte-p7mf8l {width:80px;height:35px;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;}.PaginationNumberSkeleton.svelte-p7mf8l {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;}.SkeletonShimmer.svelte-p7mf8l {width:100%;height:100%;background:linear-gradient(
54
54
  90deg,
55
55
  transparent 0%,
56
56
  var(--emw-color-skeleton, #333232) 50%,
@@ -67,69 +67,69 @@ const ft = {
67
67
  }
68
68
  }
69
69
 
70
- @media (min-width: 750px) {.TournamentGamesTabs.svelte-p7mf8l {width:fit-content;}.PaginationWrapper.svelte-p7mf8l {justify-content:end;gap:10px;}.PaginationButton.svelte-p7mf8l {width:auto;min-width:75px;}
70
+ @media (min-width: 750px) {.TournamentGamesTabs.svelte-p7mf8l {width:fit-content;}.PaginationWrapper.svelte-p7mf8l, .PaginationSkeleton.svelte-p7mf8l {justify-content:end;gap:10px;}.PaginationButton.svelte-p7mf8l {min-width:75px;}.PaginationSkeleton.svelte-p7mf8l {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-p7mf8l) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-p7mf8l) {width:35px;}}
71
+
71
72
  }.Hidden.svelte-p7mf8l {display:none;}`
72
73
  };
73
74
  function ut(T, d) {
74
75
  var me;
75
- Xe(d, !0), Ue(T, ft);
76
- const p = () => qe(Ve, "$_", V), [V, I] = Qe(), M = P(d, "initialGames"), W = P(d, "endpoint"), k = P(d, "language", 7, "en"), f = P(d, "session"), G = P(d, "tournamentid"), g = P(d, "gamesLimit", 7, 6), C = P(d, "totalGames"), Y = P(d, "platformProp", 7, null), j = P(d, "tournamentMetadata");
77
- Object.keys(ue).forEach((e) => {
78
- et(e, ue[e]);
79
- });
80
- const ge = () => {
81
- tt(k());
76
+ Ue(d, !0), Je(T, ft);
77
+ const m = () => Ke(Ye, "$_", V), [V, H] = Ve(), j = P(d, "initialGames"), W = P(d, "endpoint"), x = P(d, "language", 7, "en"), u = P(d, "session"), G = P(d, "tournamentid"), b = P(d, "gamesLimit", 7, 6), C = P(d, "totalGames"), Y = P(d, "platformProp", 7, null), E = P(d, "tournamentMetadata");
78
+ Object.keys(ge).forEach((e) => {
79
+ tt(e, ge[e]);
80
+ }), ue(x());
81
+ const be = () => {
82
+ ue(x());
82
83
  };
83
84
  de(() => {
84
- ge();
85
+ be();
85
86
  });
86
- let R = z(Je(M() || [])), E = z(!1), u = z(0), F = z(void 0);
87
- const be = at() ? (me = Y()) != null ? me : "dk" : $e(window.navigator.userAgent), Z = () => ce(this, null, function* () {
88
- if ($.has(a(H)))
87
+ let R = z(qe(j() || [])), L = z(!1), g = z(0), I = z(void 0);
88
+ const he = at() ? (me = Y()) != null ? me : "dk" : et(window.navigator.userAgent), Z = () => ce(this, null, function* () {
89
+ if ($.has(a(F)))
89
90
  return;
90
- y(E, !0);
91
+ k(L, !0);
91
92
  const e = new URL(`${W()}/v1/tournaments/${G()}`), t = new Headers();
92
- f() && t.append("X-SessionId", f());
93
+ u() && t.append("X-SessionId", u());
93
94
  const n = { method: "GET", headers: t };
94
- e.searchParams.append("filter", `id=${G()}`), e.searchParams.append("language", k()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${g()},offset=${a(u)})`), e.searchParams.append("platform", be), fetch(e, n).then((s) => s.json()).then((s) => {
95
+ e.searchParams.append("filter", `id=${G()}`), e.searchParams.append("language", x()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${b()},offset=${a(g)})`), e.searchParams.append("platform", he), fetch(e, n).then((s) => s.json()).then((s) => {
95
96
  var l, o;
96
- y(R, (o = (l = s == null ? void 0 : s.item) == null ? void 0 : l.games) == null ? void 0 : o.items, !0), $.set(a(H), a(R));
97
- }).catch((s) => console.log(s)).finally(() => y(E, !1));
98
- }), he = () => {
99
- const e = Math.ceil(C() / g()), t = Math.floor(a(u) / g()) + 1;
97
+ k(R, (o = (l = s == null ? void 0 : s.item) == null ? void 0 : l.games) == null ? void 0 : o.items, !0), $.set(a(F), a(R));
98
+ }).catch((s) => console.log(s)).finally(() => k(L, !1));
99
+ }), _e = () => {
100
+ const e = Math.ceil(C() / b()), t = Math.floor(a(g) / b()) + 1;
100
101
  if (e <= 5)
101
102
  return Array.from({ length: e }, (s, l) => l + 1);
102
103
  const n = [];
103
104
  return n.push(1), t <= 3 ? (n.push(2, 3), n.push("..."), n.push(e)) : t >= e - 2 ? (n.push("..."), n.push(e - 2, e - 1, e)) : (n.push("..."), n.push(t - 1, t, t + 1), n.push("..."), n.push(e)), n;
104
- }, _e = () => {
105
- a(u) < C() && (y(u, a(u) + g()), Z());
106
105
  }, xe = () => {
107
- a(u) !== 0 && (y(u, a(u) - g()), Z());
108
- }, we = (e) => {
109
- y(u, (e - 1) * g()), Z();
110
- }, ye = oe(he), H = oe(() => Math.floor(a(u) / g()) + 1);
111
- let $ = /* @__PURE__ */ new Map([[1, M()]]), ke = oe(() => {
106
+ a(g) < C() && (k(g, a(g) + b()), Z());
107
+ }, we = () => {
108
+ a(g) !== 0 && (k(g, a(g) - b()), Z());
109
+ }, ye = (e) => {
110
+ k(g, (e - 1) * b()), Z();
111
+ }, ke = oe(_e), F = oe(() => Math.floor(a(g) / b()) + 1);
112
+ let $ = /* @__PURE__ */ new Map([[1, j()]]), Pe = oe(() => {
112
113
  var e;
113
- return (e = $.get(a(H))) != null ? e : [];
114
- }), B = z("casino");
115
- const Pe = () => {
114
+ return (e = $.get(a(F))) != null ? e : [];
115
+ }), A = z("casino");
116
+ const Se = () => {
116
117
  var n;
117
- if (!j()) return;
118
- const e = (n = j().sports) == null ? void 0 : n.rules;
118
+ if (!E()) return;
119
+ const e = (n = E().sports) == null ? void 0 : n.rules;
119
120
  let t;
120
121
  if (e)
121
122
  try {
122
- t = JSON.parse(e), y(F, t[k()] || t["*"], !0);
123
+ t = JSON.parse(e), k(I, t[x()] || t["*"], !0);
123
124
  } catch (s) {
124
- console.log(s), y(F, `${p()("sportsRulesParseError")}`);
125
+ console.log(s), k(I, `${m()("sportsRulesParseError")}`);
125
126
  }
126
- }, Se = (e) => {
127
+ }, Te = (e) => {
127
128
  window.postMessage(
128
129
  {
129
130
  type: "Tournaments:PlayGame",
130
131
  launchUrl: e.launchUrl,
131
132
  id: e.gameId,
132
- platform: e.platform,
133
133
  thumbnail: e.thumbnail,
134
134
  name: e.name
135
135
  },
@@ -137,14 +137,14 @@ function ut(T, d) {
137
137
  );
138
138
  };
139
139
  de(() => {
140
- Object.keys(j()).length !== 0 && Pe();
140
+ Object.keys(E()).length !== 0 && Se();
141
141
  });
142
- var Te = {
142
+ var Ge = {
143
143
  get initialGames() {
144
- return M();
144
+ return j();
145
145
  },
146
146
  set initialGames(e) {
147
- M(e), S();
147
+ j(e), S();
148
148
  },
149
149
  get endpoint() {
150
150
  return W();
@@ -153,16 +153,16 @@ function ut(T, d) {
153
153
  W(e), S();
154
154
  },
155
155
  get language() {
156
- return k();
156
+ return x();
157
157
  },
158
158
  set language(e = "en") {
159
- k(e), S();
159
+ x(e), S();
160
160
  },
161
161
  get session() {
162
- return f();
162
+ return u();
163
163
  },
164
164
  set session(e) {
165
- f(e), S();
165
+ u(e), S();
166
166
  },
167
167
  get tournamentid() {
168
168
  return G();
@@ -171,10 +171,10 @@ function ut(T, d) {
171
171
  G(e), S();
172
172
  },
173
173
  get gamesLimit() {
174
- return g();
174
+ return b();
175
175
  },
176
176
  set gamesLimit(e = 6) {
177
- g(e), S();
177
+ b(e), S();
178
178
  },
179
179
  get totalGames() {
180
180
  return C();
@@ -189,137 +189,144 @@ function ut(T, d) {
189
189
  Y(e), S();
190
190
  },
191
191
  get tournamentMetadata() {
192
- return j();
192
+ return E();
193
193
  },
194
194
  set tournamentMetadata(e) {
195
- j(e), S();
195
+ E(e), S();
196
196
  }
197
- }, ee = dt(), te = i(ee), ae = i(te), Ge = i(ae, !0);
197
+ }, ee = dt(), te = i(ee), ae = i(te), Ae = i(ae, !0);
198
198
  r(ae);
199
- var se = x(ae, 2), Ae = i(se, !0);
199
+ var se = w(ae, 2), Be = i(se, !0);
200
200
  r(se), r(te);
201
- var re = x(te, 2);
201
+ var re = w(te, 2);
202
202
  {
203
- var Be = (e) => {
203
+ var Ne = (e) => {
204
204
  var t = nt(), n = i(t);
205
205
  let s;
206
- n.__click = () => y(B, "casino");
206
+ n.__click = () => k(A, "casino");
207
207
  var l = i(n, !0);
208
208
  r(n);
209
- var o = x(n, 2);
210
- let m;
211
- o.__click = () => y(B, "sports");
209
+ var o = w(n, 2);
210
+ let p;
211
+ o.__click = () => k(A, "sports");
212
212
  var v = i(o, !0);
213
- r(o), r(t), A(
214
- (b, h) => {
215
- s = O(n, 1, "Tab svelte-p7mf8l", null, s, { Active: a(B) === "casino" }), w(l, b), m = O(o, 1, "Tab svelte-p7mf8l", null, m, { Active: a(B) === "sports" }), w(v, h);
213
+ r(o), r(t), B(
214
+ (f, h) => {
215
+ s = M(n, 1, "Tab svelte-p7mf8l", null, s, { Active: a(A) === "casino" }), y(l, f), p = M(o, 1, "Tab svelte-p7mf8l", null, p, { Active: a(A) === "sports" }), y(v, h);
216
216
  },
217
- [() => p()("casinoTab"), () => p()("sportsbookTab")]
217
+ [() => m()("casinoTab"), () => m()("sportsbookTab")]
218
218
  ), c(e, t);
219
219
  };
220
220
  D(re, (e) => {
221
- Object.keys(j()).length !== 0 && e(Be);
221
+ Object.keys(E()).length !== 0 && e(Ne);
222
222
  });
223
223
  }
224
- var le = x(re, 2);
224
+ var le = w(re, 2);
225
225
  {
226
- var Ne = (e) => {
226
+ var De = (e) => {
227
227
  var t = st();
228
228
  let n;
229
- J(t, 21, () => a(F), q, (s, l) => {
230
- var o = ot(), m = i(o);
231
- r(o), A((v) => {
232
- var b;
233
- return w(m, `${(b = a(l).rule) != null ? b : ""} ${v != null ? v : ""}`);
234
- }, [() => p()("contribution")]), c(s, o);
235
- }), r(t), A(() => n = O(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(B) === "casino" })), c(e, t);
229
+ J(t, 21, () => a(I), q, (s, l) => {
230
+ var o = ot(), p = i(o);
231
+ r(o), B((v) => {
232
+ var f;
233
+ return y(p, `${(f = a(l).rule) != null ? f : ""} ${v != null ? v : ""}`);
234
+ }, [() => m()("contribution")]), c(s, o);
235
+ }), r(t), B(() => n = M(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(A) === "casino" })), c(e, t);
236
236
  };
237
237
  D(le, (e) => {
238
- a(F) && e(Ne);
238
+ a(I) && e(De);
239
239
  });
240
240
  }
241
- var X = x(le, 2);
241
+ var X = w(le, 2);
242
242
  let ie;
243
- var De = i(X);
243
+ var Me = i(X);
244
244
  {
245
- var Me = (e) => {
245
+ var je = (e) => {
246
246
  var t = K(), n = Q(t);
247
- J(n, 17, () => Array(g()), q, (s, l, o, m) => {
247
+ J(n, 17, () => Array(b()), q, (s, l, o, p) => {
248
248
  var v = rt();
249
249
  c(s, v);
250
250
  }), c(e, t);
251
- }, je = (e) => {
251
+ }, Ee = (e) => {
252
252
  var t = K(), n = Q(t);
253
- J(n, 17, () => a(ke), q, (s, l) => {
253
+ J(n, 17, () => a(Pe), q, (s, l) => {
254
254
  var o = lt();
255
- o.__click = () => Se(a(l));
256
- var m = i(o), v = i(m), b = x(v, 2), h = i(b), U = i(h, !0);
257
- r(h), r(b), r(m), r(o), A(
255
+ o.__click = () => Te(a(l));
256
+ var p = i(o), v = i(p), f = w(v, 2), h = i(f), U = i(h, !0);
257
+ r(h), r(f), r(p), r(o), B(
258
258
  (ne) => {
259
- fe(v, "src", `https:${a(l).thumbnail}`), fe(v, "alt", a(l).name), w(U, ne);
259
+ fe(v, "src", `https:${a(l).thumbnail}`), fe(v, "alt", a(l).name), y(U, ne);
260
260
  },
261
- [() => p()("play")]
261
+ [() => m()("play")]
262
262
  ), c(s, o);
263
263
  }), c(e, t);
264
264
  };
265
- D(De, (e) => {
265
+ D(Me, (e) => {
266
266
  var t;
267
- a(E) || ((t = a(R)) == null ? void 0 : t.length) === 0 ? e(Me) : e(je, !1);
267
+ a(L) || ((t = a(R)) == null ? void 0 : t.length) === 0 ? e(je) : e(Ee, !1);
268
268
  });
269
269
  }
270
270
  r(X);
271
- var pe = x(X, 2);
271
+ var pe = w(X, 2);
272
272
  {
273
- var Ee = (e) => {
273
+ var Le = (e) => {
274
274
  var t = mt();
275
275
  let n;
276
276
  var s = i(t);
277
- s.__click = xe;
277
+ s.__click = we;
278
278
  var l = i(s, !0);
279
279
  r(s);
280
- var o = x(s, 2);
281
- J(o, 21, () => a(ye), q, (b, h) => {
280
+ var o = w(s, 2);
281
+ J(o, 21, () => a(ke), q, (f, h) => {
282
282
  var U = K(), ne = Q(U);
283
283
  {
284
- var Re = (L) => {
284
+ var ze = (O) => {
285
285
  var N = it();
286
- c(L, N);
287
- }, ze = (L) => {
286
+ c(O, N);
287
+ }, He = (O) => {
288
288
  var N = pt();
289
289
  let ve;
290
- N.__click = () => we(a(h));
290
+ N.__click = () => ye(a(h));
291
291
  var Ie = i(N, !0);
292
- r(N), A(() => {
293
- ve = O(N, 1, "PaginationButton Number svelte-p7mf8l", null, ve, { Active: a(h) === a(H) }), w(Ie, a(h));
294
- }), c(L, N);
292
+ r(N), B(() => {
293
+ ve = M(N, 1, "PaginationButton Number svelte-p7mf8l", null, ve, { Active: a(h) === a(F) }), y(Ie, a(h));
294
+ }), c(O, N);
295
295
  };
296
- D(ne, (L) => {
297
- typeof a(h) != "number" ? L(Re) : L(ze, !1);
296
+ D(ne, (O) => {
297
+ typeof a(h) != "number" ? O(ze) : O(He, !1);
298
298
  });
299
299
  }
300
- c(b, U);
300
+ c(f, U);
301
301
  }), r(o);
302
- var m = x(o, 2);
303
- m.__click = _e;
304
- var v = i(m, !0);
305
- r(m), r(t), A(
306
- (b, h) => {
307
- n = O(t, 1, "PaginationWrapper svelte-p7mf8l", null, n, { Hidden: a(B) === "sports" }), s.disabled = a(u) === 0, w(l, b), m.disabled = a(u) >= C() - g(), w(v, h);
302
+ var p = w(o, 2);
303
+ p.__click = xe;
304
+ var v = i(p, !0);
305
+ r(p), r(t), B(
306
+ (f, h) => {
307
+ n = M(t, 1, "PaginationWrapper svelte-p7mf8l", null, n, { Hidden: a(A) === "sports" }), s.disabled = a(g) === 0, y(l, f), p.disabled = a(g) >= C() - b(), y(v, h);
308
308
  },
309
- [() => p()("previousButton"), () => p()("nextButton")]
309
+ [() => m()("previousButton"), () => m()("nextButton")]
310
310
  ), c(e, t);
311
- }, Le = (e) => {
311
+ }, Oe = (e) => {
312
312
  var t = K(), n = Q(t);
313
313
  {
314
314
  var s = (l) => {
315
- var o = vt(), m = i(o, !0);
316
- r(o), A((v) => w(m, v), [() => p()("noAvailableGames")]), c(l, o);
315
+ var o = vt();
316
+ let p;
317
+ var v = i(o, !0);
318
+ r(o), B(
319
+ (f) => {
320
+ p = M(o, 1, "NoGamesAvailable svelte-p7mf8l", null, p, { Hidden: a(A) === "sports" }), y(v, f);
321
+ },
322
+ [() => m()("noAvailableGames")]
323
+ ), c(l, o);
317
324
  };
318
325
  D(
319
326
  n,
320
327
  (l) => {
321
328
  var o;
322
- !a(E) && ((o = a(R)) == null ? void 0 : o.length) === 0 && l(s);
329
+ !a(L) && ((o = a(R)) == null ? void 0 : o.length) === 0 && l(s);
323
330
  },
324
331
  !0
325
332
  );
@@ -328,33 +335,33 @@ function ut(T, d) {
328
335
  };
329
336
  D(pe, (e) => {
330
337
  var t;
331
- !a(E) && ((t = a(R)) == null ? void 0 : t.length) > 0 ? e(Ee) : e(Le, !1);
338
+ !a(L) && ((t = a(R)) == null ? void 0 : t.length) > 0 ? e(Le) : e(Oe, !1);
332
339
  });
333
340
  }
334
- var Oe = x(pe, 2);
341
+ var We = w(pe, 2);
335
342
  {
336
- var We = (e) => {
343
+ var Ce = (e) => {
337
344
  var t = ct();
338
345
  c(e, t);
339
346
  };
340
- D(Oe, (e) => {
341
- a(E) && e(We);
347
+ D(We, (e) => {
348
+ a(L) && e(Ce);
342
349
  });
343
350
  }
344
- r(ee), A(
351
+ r(ee), B(
345
352
  (e, t) => {
346
- w(Ge, e), w(Ae, t), ie = O(X, 1, "TournamentGamesContainer svelte-p7mf8l", null, ie, { Hidden: a(B) === "sports" });
353
+ y(Ae, e), y(Be, t), ie = M(X, 1, "TournamentGamesContainer svelte-p7mf8l", null, ie, { Hidden: a(A) === "sports" });
347
354
  },
348
355
  [
349
- () => p()("gamesDescriptionTitle"),
350
- () => p()("gamesDescriptionSubtitle")
356
+ () => m()("gamesDescriptionTitle"),
357
+ () => m()("gamesDescriptionSubtitle")
351
358
  ]
352
359
  ), c(T, ee);
353
- var Ce = Ke(Te);
354
- return I(), Ce;
360
+ var Re = Qe(Ge);
361
+ return H(), Re;
355
362
  }
356
- Ye(["click"]);
357
- customElements.define("tournament-games", Ze(
363
+ Ze(["click"]);
364
+ customElements.define("tournament-games", $e(
358
365
  ut,
359
366
  {
360
367
  initialGames: {},