@everymatrix/tournament-details-page 0.1.2 → 0.1.4

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,27 +1,27 @@
1
- var ge = (A, p, m) => new Promise((te, C) => {
2
- var L = (f) => {
1
+ var ge = (A, p, m) => new Promise((te, H) => {
2
+ var L = (d) => {
3
3
  try {
4
- y(m.next(f));
4
+ w(m.next(d));
5
5
  } catch (B) {
6
- C(B);
6
+ H(B);
7
7
  }
8
- }, z = (f) => {
8
+ }, W = (d) => {
9
9
  try {
10
- y(m.throw(f));
10
+ w(m.throw(d));
11
11
  } catch (B) {
12
- C(B);
12
+ H(B);
13
13
  }
14
- }, y = (f) => f.done ? te(f.value) : Promise.resolve(f.value).then(L, z);
15
- y((m = m.apply(A, p)).next());
14
+ }, w = (d) => d.done ? te(d.value) : Promise.resolve(d.value).then(L, W);
15
+ w((m = m.apply(A, p)).next());
16
16
  });
17
- import { a as Je, $ as Ke, p as Xe, b as Qe, d as w, u as Ve, e as be, j as W, L as Ye, P as Ze, w as k, i as M, g as a, t as D, y as P, H as E, f as c, h as $e, C as et, D as tt, s as at, k as _, m as T, n as l, v as Y, z as Z, q as $, r as ee, x, l as pe, A as nt, B as ot, E as i, N as he } from "./TournamentDetailsPage-CqwgEfgR.js";
18
- function _e(A, p) {
17
+ import { a as Je, $ as Ke, p as Xe, b as Qe, d as y, u as Ve, e as he, j as C, L as Ye, P as Ze, w as P, i as M, g as a, t as D, y as k, H as E, f as u, h as $e, C as et, D as tt, s as at, k as x, m as T, n as l, v as Y, z as Z, q as $, r as ee, x as _, l as pe, A as nt, B as ot, E as i, N as be } from "./TournamentDetailsPage-h9UAjavK.js";
18
+ function xe(A, p) {
19
19
  Je(A, p);
20
20
  }
21
- function xe(A) {
21
+ function _e(A) {
22
22
  Ke.set(A);
23
23
  }
24
- const ye = {
24
+ const we = {
25
25
  en: {
26
26
  previousButton: "Previous",
27
27
  nextButton: "Next",
@@ -43,8 +43,8 @@ const ye = {
43
43
  noAvailableGames: "Henüz oyun yapılandırılmamış!"
44
44
  }
45
45
  }, rt = () => typeof window == "undefined";
46
- var st = x('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'), it = x('<p class="svelte-p7mf8l"> </p>'), lt = x("<div></div>"), pt = x('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'), mt = x("<p> </p>"), ct = x('<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>'), vt = x('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'), ut = x("<button> </button>"), dt = x('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'), ft = x('<div class="PaginationSkeleton svelte-p7mf8l"><div class="PaginationSkeletonButton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationSkeletonButton svelte-p7mf8l"></div></div>'), gt = x('<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>');
47
- const bt = {
46
+ var st = _('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'), it = _('<p class="svelte-p7mf8l"> </p>'), lt = _("<div></div>"), pt = _('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'), mt = _("<p> </p>"), ut = _('<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>'), ct = _('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'), vt = _("<button> </button>"), ft = _('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'), dt = _('<div class="PaginationSkeleton svelte-p7mf8l"><div class="PaginationSkeletonButton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationSkeletonButton svelte-p7mf8l"></div></div>'), gt = _('<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>');
47
+ const ht = {
48
48
  hash: "svelte-p7mf8l",
49
49
  code: `.svelte-p7mf8l,
50
50
  .svelte-p7mf8l::before,
@@ -72,71 +72,80 @@ const bt = {
72
72
 
73
73
  @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;}}
74
74
 
75
+ }
76
+
77
+ @media (max-width: 475px) {.TournamentGamesContainer.svelte-p7mf8l {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(150px, 100%), 1fr));}.PaginationWrapper.svelte-p7mf8l {& .PaginationButton:where(.svelte-p7mf8l) {font-size:11px;&.Number {font-size:11px;}}}.TournamentGamesTabs.svelte-p7mf8l {font-size:12px;}
78
+ }
79
+
80
+ @media (max-width: 380px) {.TournamentGamesContainer.svelte-p7mf8l {grid-template-columns:repeat(auto-fill, minmax(min(145px, 100%), 1fr));}
81
+ }
82
+
83
+ @media (min-width: 1500px) {.TournamentGamesContainer.svelte-p7mf8l {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(215px, 100%), 1fr));}
75
84
  }.Hidden.svelte-p7mf8l {display:none;}`
76
85
  };
77
- function ht(A, p) {
78
- var fe;
79
- Xe(p, !0), Qe(A, bt);
80
- const m = () => et(tt, "$_", te), [te, C] = at(), L = w(p, "initialGames"), z = w(p, "endpoint"), y = w(p, "language", 7, "en"), f = w(p, "session"), B = w(p, "tournamentid"), g = w(p, "gamesLimit", 7, 6), O = w(p, "totalGames"), ae = w(p, "platformProp", 7, null), R = w(p, "tournamentMetadata"), I = w(p, "translationurl"), we = () => {
86
+ function bt(A, p) {
87
+ var de;
88
+ Xe(p, !0), Qe(A, ht);
89
+ const m = () => et(tt, "$_", te), [te, H] = at(), L = y(p, "initialGames"), W = y(p, "endpoint"), w = y(p, "language", 7, "en"), d = y(p, "session"), B = y(p, "tournamentid"), g = y(p, "gamesLimit", 7, 6), z = y(p, "totalGames"), ae = y(p, "platformProp", 7, null), O = y(p, "tournamentMetadata"), I = y(p, "translationurl"), ye = () => {
81
90
  let e = new URL(I());
82
91
  fetch(e.href).then((t) => t.json()).then((t) => {
83
92
  Object.keys(t).forEach((n) => {
84
- _e(n, t[n]);
93
+ xe(n, t[n]);
85
94
  });
86
95
  }).catch((t) => {
87
96
  console.log(t);
88
97
  });
89
98
  };
90
- Object.keys(ye).forEach((e) => {
91
- _e(e, ye[e]);
92
- }), xe(y());
93
- const ke = () => {
94
- xe(y());
99
+ Object.keys(we).forEach((e) => {
100
+ xe(e, we[e]);
101
+ }), _e(w());
102
+ const Pe = () => {
103
+ _e(w());
95
104
  };
96
105
  Ve(() => {
97
- I() && we();
98
- }), be(() => {
99
- ke();
106
+ I() && ye();
107
+ }), he(() => {
108
+ Pe();
100
109
  });
101
- let ne = W(Ye(L() || [])), U = W(!1), b = W(0), F = W(void 0), q = W(!0);
102
- const Pe = rt() ? (fe = ae()) != null ? fe : "dk" : Ze(window.navigator.userAgent), oe = () => ge(this, null, function* () {
110
+ let ne = C(Ye(L() || [])), U = C(!1), h = C(0), F = C(void 0), q = C(!0);
111
+ const ke = rt() ? (de = ae()) != null ? de : "dk" : Ze(window.navigator.userAgent), oe = () => ge(this, null, function* () {
103
112
  if (re.has(a(J)))
104
113
  return;
105
- _(U, !0);
106
- const e = new URL(`${z()}/v1/tournaments/${B()}`), t = new Headers();
107
- f() && t.append("X-SessionId", f());
114
+ x(U, !0);
115
+ const e = new URL(`${W()}/v1/tournaments/${B()}`), t = new Headers();
116
+ d() && t.append("X-SessionId", d());
108
117
  const n = { method: "GET", headers: t };
109
- e.searchParams.append("filter", `id=${B()}`), e.searchParams.append("language", y()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${g()},offset=${a(b)})`), e.searchParams.append("platform", Pe), fetch(e, n).then((o) => o.json()).then((o) => {
110
- var d, r;
111
- _(ne, (r = (d = o == null ? void 0 : o.item) == null ? void 0 : d.games) == null ? void 0 : r.items, !0), re.set(a(J), a(ne)), a(q) || _(q, !0);
112
- }).catch((o) => console.log(o)).finally(() => _(U, !1));
118
+ e.searchParams.append("filter", `id=${B()}`), e.searchParams.append("language", w()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${g()},offset=${a(h)})`), e.searchParams.append("platform", ke), fetch(e, n).then((o) => o.json()).then((o) => {
119
+ var f, r;
120
+ x(ne, (r = (f = o == null ? void 0 : o.item) == null ? void 0 : f.games) == null ? void 0 : r.items, !0), re.set(a(J), a(ne)), a(q) || x(q, !0);
121
+ }).catch((o) => console.log(o)).finally(() => x(U, !1));
113
122
  }), Te = () => {
114
- const e = Math.ceil(O() / g()), t = Math.floor(a(b) / g()) + 1;
123
+ const e = Math.ceil(z() / g()), t = Math.floor(a(h) / g()) + 1;
115
124
  if (e <= 5)
116
- return Array.from({ length: e }, (o, d) => d + 1);
125
+ return Array.from({ length: e }, (o, f) => f + 1);
117
126
  const n = [];
118
127
  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;
119
128
  }, Ge = () => {
120
- a(b) < O() && (_(b, a(b) + g()), oe());
129
+ a(h) < z() && (x(h, a(h) + g()), oe());
121
130
  }, Se = () => {
122
- a(b) !== 0 && (_(b, a(b) - g()), oe());
131
+ a(h) !== 0 && (x(h, a(h) - g()), oe());
123
132
  }, Ae = (e) => {
124
- _(b, (e - 1) * g()), oe();
125
- }, Be = pe(Te), J = pe(() => Math.floor(a(b) / g()) + 1);
133
+ x(h, (e - 1) * g()), oe();
134
+ }, Be = pe(Te), J = pe(() => Math.floor(a(h) / g()) + 1);
126
135
  let re = /* @__PURE__ */ new Map([[1, L()]]), Ne = pe(() => {
127
136
  var e;
128
137
  return (e = re.get(a(J))) != null ? e : [];
129
- }), N = W("casino");
138
+ }), N = C("casino");
130
139
  const De = () => {
131
140
  var n;
132
- if (!R()) return;
133
- const e = (n = R().sports) == null ? void 0 : n.rules;
141
+ if (!O()) return;
142
+ const e = (n = O().sports) == null ? void 0 : n.rules;
134
143
  let t;
135
144
  if (e)
136
145
  try {
137
- t = JSON.parse(e), _(F, t[y()] || t["*"], !0);
146
+ t = JSON.parse(e), x(F, t[w()] || t["*"], !0);
138
147
  } catch (o) {
139
- console.log(o), _(F, `${m()("sportsRulesParseError")}`);
148
+ console.log(o), x(F, `${m()("sportsRulesParseError")}`);
140
149
  }
141
150
  }, je = (e) => {
142
151
  window.postMessage(
@@ -150,8 +159,8 @@ function ht(A, p) {
150
159
  window.location.href
151
160
  );
152
161
  };
153
- be(() => {
154
- Object.keys(R()).length !== 0 && De();
162
+ he(() => {
163
+ Object.keys(O()).length !== 0 && De();
155
164
  });
156
165
  var Me = {
157
166
  get initialGames() {
@@ -161,22 +170,22 @@ function ht(A, p) {
161
170
  L(e), T();
162
171
  },
163
172
  get endpoint() {
164
- return z();
173
+ return W();
165
174
  },
166
175
  set endpoint(e) {
167
- z(e), T();
176
+ W(e), T();
168
177
  },
169
178
  get language() {
170
- return y();
179
+ return w();
171
180
  },
172
181
  set language(e = "en") {
173
- y(e), T();
182
+ w(e), T();
174
183
  },
175
184
  get session() {
176
- return f();
185
+ return d();
177
186
  },
178
187
  set session(e) {
179
- f(e), T();
188
+ d(e), T();
180
189
  },
181
190
  get tournamentid() {
182
191
  return B();
@@ -191,10 +200,10 @@ function ht(A, p) {
191
200
  g(e), T();
192
201
  },
193
202
  get totalGames() {
194
- return O();
203
+ return z();
195
204
  },
196
205
  set totalGames(e) {
197
- O(e), T();
206
+ z(e), T();
198
207
  },
199
208
  get platformProp() {
200
209
  return ae();
@@ -203,10 +212,10 @@ function ht(A, p) {
203
212
  ae(e), T();
204
213
  },
205
214
  get tournamentMetadata() {
206
- return R();
215
+ return O();
207
216
  },
208
217
  set tournamentMetadata(e) {
209
- R(e), T();
218
+ O(e), T();
210
219
  },
211
220
  get translationurl() {
212
221
  return I();
@@ -216,151 +225,151 @@ function ht(A, p) {
216
225
  }
217
226
  }, se = gt(), ie = l(se), le = l(ie), Ee = l(le, !0);
218
227
  i(le);
219
- var me = k(le, 2), Le = l(me, !0);
228
+ var me = P(le, 2), Le = l(me, !0);
220
229
  i(me), i(ie);
221
- var ce = k(ie, 2);
230
+ var ue = P(ie, 2);
222
231
  {
223
- var Oe = (e) => {
232
+ var ze = (e) => {
224
233
  var t = st(), n = l(t);
225
234
  let o;
226
- n.__click = () => _(N, "casino");
227
- var d = l(n, !0);
235
+ n.__click = () => x(N, "casino");
236
+ var f = l(n, !0);
228
237
  i(n);
229
- var r = k(n, 2);
238
+ var r = P(n, 2);
230
239
  let s;
231
- r.__click = () => _(N, "sports");
232
- var v = l(r, !0);
240
+ r.__click = () => x(N, "sports");
241
+ var c = l(r, !0);
233
242
  i(r), i(t), D(
234
- (h, u) => {
235
- o = E(n, 1, "Tab svelte-p7mf8l", null, o, { Active: a(N) === "casino" }), P(d, h), s = E(r, 1, "Tab svelte-p7mf8l", null, s, { Active: a(N) === "sports" }), P(v, u);
243
+ (b, v) => {
244
+ o = E(n, 1, "Tab svelte-p7mf8l", null, o, { Active: a(N) === "casino" }), k(f, b), s = E(r, 1, "Tab svelte-p7mf8l", null, s, { Active: a(N) === "sports" }), k(c, v);
236
245
  },
237
246
  [() => m()("casinoTab"), () => m()("sportsbookTab")]
238
- ), c(e, t);
247
+ ), u(e, t);
239
248
  };
240
- M(ce, (e) => {
241
- Object.keys(R()).length !== 0 && e(Oe);
249
+ M(ue, (e) => {
250
+ Object.keys(O()).length !== 0 && e(ze);
242
251
  });
243
252
  }
244
- var ve = k(ce, 2);
253
+ var ce = P(ue, 2);
245
254
  {
246
- var Re = (e) => {
255
+ var Oe = (e) => {
247
256
  var t = lt();
248
257
  let n;
249
- Y(t, 21, () => a(F), Z, (o, d) => {
258
+ Y(t, 21, () => a(F), Z, (o, f) => {
250
259
  var r = it(), s = l(r);
251
- i(r), D((v) => {
252
- var h;
253
- return P(s, `${(h = a(d).rule) != null ? h : ""} ${v != null ? v : ""}`);
254
- }, [() => m()("contribution")]), c(o, r);
255
- }), i(t), D(() => n = E(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(N) === "casino" })), c(e, t);
260
+ i(r), D((c) => {
261
+ var b;
262
+ return k(s, `${(b = a(f).rule) != null ? b : ""} ${c != null ? c : ""}`);
263
+ }, [() => m()("contribution")]), u(o, r);
264
+ }), i(t), D(() => n = E(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(N) === "casino" })), u(e, t);
256
265
  };
257
- M(ve, (e) => {
258
- a(F) && e(Re);
266
+ M(ce, (e) => {
267
+ a(F) && e(Oe);
259
268
  });
260
269
  }
261
- var K = k(ve, 2);
262
- let ue;
263
- var We = l(K);
270
+ var K = P(ce, 2);
271
+ let ve;
272
+ var Ce = l(K);
264
273
  {
265
- var ze = (e) => {
274
+ var We = (e) => {
266
275
  var t = $(), n = ee(t);
267
- Y(n, 17, () => Array(g()), Z, (o, d, r, s) => {
268
- var v = pt();
269
- c(o, v);
270
- }), c(e, t);
271
- }, He = (e) => {
276
+ Y(n, 17, () => Array(g()), Z, (o, f, r, s) => {
277
+ var c = pt();
278
+ u(o, c);
279
+ }), u(e, t);
280
+ }, Re = (e) => {
272
281
  var t = $(), n = ee(t);
273
282
  {
274
283
  var o = (r) => {
275
284
  var s = mt();
276
- let v;
277
- var h = l(s, !0);
285
+ let c;
286
+ var b = l(s, !0);
278
287
  i(s), D(
279
- (u) => {
280
- v = E(s, 1, "NoGamesAvailable svelte-p7mf8l", null, v, { Hidden: a(N) === "sports" }), P(h, u);
288
+ (v) => {
289
+ c = E(s, 1, "NoGamesAvailable svelte-p7mf8l", null, c, { Hidden: a(N) === "sports" }), k(b, v);
281
290
  },
282
291
  [() => m()("noAvailableGames")]
283
- ), c(r, s);
284
- }, d = (r) => {
285
- var s = $(), v = ee(s);
286
- Y(v, 17, () => a(Ne), Z, (h, u) => {
287
- var j = ct();
288
- j.__click = () => je(a(u));
289
- var X = l(j), H = l(X), Q = k(H, 2), G = l(Q), S = l(G, !0);
292
+ ), u(r, s);
293
+ }, f = (r) => {
294
+ var s = $(), c = ee(s);
295
+ Y(c, 17, () => a(Ne), Z, (b, v) => {
296
+ var j = ut();
297
+ j.__click = () => je(a(v));
298
+ var X = l(j), R = l(X), Q = P(R, 2), G = l(Q), S = l(G, !0);
290
299
  i(G), i(Q), i(X), i(j), D(
291
300
  (V) => {
292
- he(H, "src", `https:${a(u).thumbnail}`), he(H, "alt", a(u).name), P(S, V);
301
+ be(R, "src", `https:${a(v).thumbnail}`), be(R, "alt", a(v).name), k(S, V);
293
302
  },
294
303
  [() => m()("play")]
295
- ), c(h, j);
296
- }), c(r, s);
304
+ ), u(b, j);
305
+ }), u(r, s);
297
306
  };
298
307
  M(
299
308
  n,
300
309
  (r) => {
301
310
  var s;
302
- !a(U) && ((s = a(ne)) == null ? void 0 : s.length) === 0 ? r(o) : r(d, !1);
311
+ !a(U) && ((s = a(ne)) == null ? void 0 : s.length) === 0 ? r(o) : r(f, !1);
303
312
  },
304
313
  !0
305
314
  );
306
315
  }
307
- c(e, t);
316
+ u(e, t);
308
317
  };
309
- M(We, (e) => {
310
- a(U) ? e(ze) : e(He, !1);
318
+ M(Ce, (e) => {
319
+ a(U) ? e(We) : e(Re, !1);
311
320
  });
312
321
  }
313
322
  i(K);
314
- var de = k(K, 2);
323
+ var fe = P(K, 2);
315
324
  {
316
- var Ce = (e) => {
317
- var t = dt();
325
+ var He = (e) => {
326
+ var t = ft();
318
327
  let n;
319
328
  var o = l(t);
320
329
  o.__click = Se;
321
- var d = l(o, !0);
330
+ var f = l(o, !0);
322
331
  i(o);
323
- var r = k(o, 2);
324
- Y(r, 21, () => a(Be), Z, (h, u) => {
332
+ var r = P(o, 2);
333
+ Y(r, 21, () => a(Be), Z, (b, v) => {
325
334
  var j = $(), X = ee(j);
326
335
  {
327
- var H = (G) => {
328
- var S = vt();
329
- c(G, S);
336
+ var R = (G) => {
337
+ var S = ct();
338
+ u(G, S);
330
339
  }, Q = (G) => {
331
- var S = ut();
340
+ var S = vt();
332
341
  let V;
333
- S.__click = () => Ae(a(u));
342
+ S.__click = () => Ae(a(v));
334
343
  var qe = l(S, !0);
335
344
  i(S), D(() => {
336
- V = E(S, 1, "PaginationButton Number svelte-p7mf8l", null, V, { Active: a(u) === a(J) }), P(qe, a(u));
337
- }), c(G, S);
345
+ V = E(S, 1, "PaginationButton Number svelte-p7mf8l", null, V, { Active: a(v) === a(J) }), k(qe, a(v));
346
+ }), u(G, S);
338
347
  };
339
348
  M(X, (G) => {
340
- typeof a(u) != "number" ? G(H) : G(Q, !1);
349
+ typeof a(v) != "number" ? G(R) : G(Q, !1);
341
350
  });
342
351
  }
343
- c(h, j);
352
+ u(b, j);
344
353
  }), i(r);
345
- var s = k(r, 2);
354
+ var s = P(r, 2);
346
355
  s.__click = Ge;
347
- var v = l(s, !0);
356
+ var c = l(s, !0);
348
357
  i(s), i(t), D(
349
- (h, u) => {
350
- n = E(t, 1, "PaginationWrapper svelte-p7mf8l", null, n, { Hidden: a(N) === "sports" }), o.disabled = a(b) === 0, P(d, h), s.disabled = a(b) >= O() - g(), P(v, u);
358
+ (b, v) => {
359
+ n = E(t, 1, "PaginationWrapper svelte-p7mf8l", null, n, { Hidden: a(N) === "sports" }), o.disabled = a(h) === 0, k(f, b), s.disabled = a(h) >= z() - g(), k(c, v);
351
360
  },
352
361
  [() => m()("previousButton"), () => m()("nextButton")]
353
- ), c(e, t);
362
+ ), u(e, t);
354
363
  };
355
- M(de, (e) => {
356
- a(q) && O() > g() && e(Ce);
364
+ M(fe, (e) => {
365
+ a(q) && z() > g() && e(He);
357
366
  });
358
367
  }
359
- var Ie = k(de, 2);
368
+ var Ie = P(fe, 2);
360
369
  {
361
370
  var Ue = (e) => {
362
- var t = ft();
363
- c(e, t);
371
+ var t = dt();
372
+ u(e, t);
364
373
  };
365
374
  M(Ie, (e) => {
366
375
  a(q) || e(Ue);
@@ -368,19 +377,19 @@ function ht(A, p) {
368
377
  }
369
378
  i(se), D(
370
379
  (e, t) => {
371
- P(Ee, e), P(Le, t), ue = E(K, 1, "TournamentGamesContainer svelte-p7mf8l", null, ue, { Hidden: a(N) === "sports" });
380
+ k(Ee, e), k(Le, t), ve = E(K, 1, "TournamentGamesContainer svelte-p7mf8l", null, ve, { Hidden: a(N) === "sports" });
372
381
  },
373
382
  [
374
383
  () => m()("gamesDescriptionTitle"),
375
384
  () => m()("gamesDescriptionSubtitle")
376
385
  ]
377
- ), c(A, se);
386
+ ), u(A, se);
378
387
  var Fe = $e(Me);
379
- return C(), Fe;
388
+ return H(), Fe;
380
389
  }
381
390
  nt(["click"]);
382
391
  customElements.define("tournament-games", ot(
383
- ht,
392
+ bt,
384
393
  {
385
394
  initialGames: {},
386
395
  endpoint: {},
@@ -398,5 +407,5 @@ customElements.define("tournament-games", ot(
398
407
  !1
399
408
  ));
400
409
  export {
401
- ht as default
410
+ bt as default
402
411
  };