@everymatrix/casino-tournaments-page-controller 1.85.11 → 1.85.13

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,17 +1,17 @@
1
- import { $ as U, a as ue, b as me, S as ce, i as ge, s as fe, f as D, e as de, x as R, n as K, g as S, y as se, k as o, l as A, m, q as y, p as M, v as pe, u as he, L as be, w as _e, j as G, I as we, h as F, o as q, r as I, t as W, B as X, z as ve, C as Q, J as ye, F as Te, G as Ge, H as Ce, d as ke, E as Pe } from "./CasinoTournamentsDetails-BhehF_iH.js";
1
+ import { $ as q, a as ue, b as me, S as ce, i as ge, s as fe, f as I, e as de, x as U, n as X, g as A, y as se, k as o, l as z, m, q as y, p as S, v as pe, u as he, L as be, w as _e, j as G, I as we, h as W, o as H, r as R, t as O, B as Q, z as ve, C as V, J as ye, F as Te, G as Ge, H as Ce, d as Pe, E as ke } from "./CasinoTournamentsDetails-BhehF_iH.js";
2
2
  import "../stencil/ui-image-Cs_BBOYl.js";
3
3
  function Ee({ withLocale: a, translations: e }) {
4
- U.subscribe((t) => {
5
- t == null && (ue.set(e), U.set(a));
4
+ q.subscribe((t) => {
5
+ t == null && (ue.set(e), q.set(a));
6
6
  });
7
7
  }
8
- function V(a, e) {
8
+ function Y(a, e) {
9
9
  me(a, e);
10
10
  }
11
11
  function Le(a) {
12
- U.set(a);
12
+ q.set(a);
13
13
  }
14
- const Y = {
14
+ const x = {
15
15
  en: {
16
16
  loading: "Loading, please wait ...",
17
17
  playNow: "Play Now",
@@ -23,7 +23,7 @@ const Y = {
23
23
  }
24
24
  };
25
25
  function Ne(a) {
26
- de(a, "svelte-xv9pd7", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .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:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .LoadingGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames .LoadingGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.TournamentsPaginationControlsArea{clear:both;margin-top:30px;display:flex;justify-content:center;width:100%}.TournamentsPaginationControls{background:var(--emw--color-green, transparent);width:60%;height:35px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px;cursor:pointer;width:190px}.TournamentsPaginationControls.Disabled{color:var(--emw--color-gray-100, #B5B5B5);border-color:var(--emw--color-gray-100, #B5B5B5);opacity:50%;cursor:default}.TournamentsPaginationControlsArea{justify-content:center;gap:30px}.TournamentsPaginationControlsArea .TournamentsPaginationControls{align-items:center}.TournamentsPaginationControlsArea .TournamentsPaginationControlsText{font-size:var(--emw--size-standard, 16px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}.MobileClass .GamesWrapper .GameList.items{max-height:calc(100vh - 350px);overflow-y:auto}");
26
+ de(a, "svelte-h1f7fe", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .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:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .LoadingGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames .LoadingGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.TournamentsPaginationControlsArea{clear:both;margin-top:30px;display:flex;justify-content:center;width:100%}.TournamentsPaginationControlsArea.SinglePage{display:none}.TournamentsPaginationControls{background:var(--emw--color-green, transparent);width:60%;height:35px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px;cursor:pointer;width:190px}.TournamentsPaginationControls.Disabled{color:var(--emw--color-gray-100, #B5B5B5);border-color:var(--emw--color-gray-100, #B5B5B5);opacity:50%;cursor:default}.TournamentsPaginationControlsArea{justify-content:center;gap:30px}.TournamentsPaginationControlsArea .TournamentsPaginationControls{align-items:center}.TournamentsPaginationControlsArea .TournamentsPaginationControlsText{font-size:var(--emw--size-standard, 16px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}.MobileClass .GamesWrapper .GameList.items{max-height:calc(100vh - 350px);overflow-y:auto}");
27
27
  }
28
28
  function $(a, e, t) {
29
29
  const n = a.slice();
@@ -37,7 +37,7 @@ function te(a) {
37
37
  let e, t;
38
38
  return {
39
39
  c() {
40
- e = y("div"), t = y("casino-tournaments-tab"), G(t, "part", "TournamentGames"), G(t, "tabs", "casino,sports"), G(t, "tab", "casino"), G(t, "tid", x), G(
40
+ e = y("div"), t = y("casino-tournaments-tab"), G(t, "part", "TournamentGames"), G(t, "tabs", "casino,sports"), G(t, "tab", "casino"), G(t, "tid", J), G(
41
41
  t,
42
42
  "clientstyling",
43
43
  /*clientstyling*/
@@ -55,7 +55,7 @@ function te(a) {
55
55
  ), o(e, "class", "GamesTabNav");
56
56
  },
57
57
  m(n, s) {
58
- A(n, e, s), m(e, t);
58
+ z(n, e, s), m(e, t);
59
59
  },
60
60
  p(n, s) {
61
61
  s[0] & /*clientstyling*/
@@ -79,7 +79,7 @@ function te(a) {
79
79
  );
80
80
  },
81
81
  d(n) {
82
- n && S(e);
82
+ n && A(e);
83
83
  }
84
84
  };
85
85
  }
@@ -90,18 +90,18 @@ function Be(a) {
90
90
  ), n;
91
91
  return {
92
92
  c() {
93
- e = y("div"), n = W(t), o(e, "class", "NoGames");
93
+ e = y("div"), n = O(t), o(e, "class", "NoGames");
94
94
  },
95
95
  m(s, r) {
96
- A(s, e, r), m(e, n);
96
+ z(s, e, r), m(e, n);
97
97
  },
98
98
  p(s, r) {
99
99
  r[0] & /*$_*/
100
100
  8192 && t !== (t = /*$_*/
101
- s[13]("noGamesAvailable") + "") && F(n, t);
101
+ s[13]("noGamesAvailable") + "") && W(n, t);
102
102
  },
103
103
  d(s) {
104
- s && S(e);
104
+ s && A(e);
105
105
  }
106
106
  };
107
107
  }
@@ -112,18 +112,18 @@ function Me(a) {
112
112
  ), n;
113
113
  return {
114
114
  c() {
115
- e = y("div"), n = W(t), o(e, "class", "NoGames");
115
+ e = y("div"), n = O(t), o(e, "class", "NoGames");
116
116
  },
117
117
  m(s, r) {
118
- A(s, e, r), m(e, n);
118
+ z(s, e, r), m(e, n);
119
119
  },
120
120
  p(s, r) {
121
121
  r[0] & /*$_*/
122
122
  8192 && t !== (t = /*$_*/
123
- s[13]("noMoreGames") + "") && F(n, t);
123
+ s[13]("noMoreGames") + "") && W(n, t);
124
124
  },
125
125
  d(s) {
126
- s && S(e);
126
+ s && A(e);
127
127
  }
128
128
  };
129
129
  }
@@ -134,23 +134,23 @@ function Se(a) {
134
134
  ), n;
135
135
  return {
136
136
  c() {
137
- e = y("div"), n = W(t), o(e, "class", "LoadingGames");
137
+ e = y("div"), n = O(t), o(e, "class", "LoadingGames");
138
138
  },
139
139
  m(s, r) {
140
- A(s, e, r), m(e, n);
140
+ z(s, e, r), m(e, n);
141
141
  },
142
142
  p(s, r) {
143
143
  r[0] & /*$_*/
144
144
  8192 && t !== (t = /*$_*/
145
- s[13]("loading") + "") && F(n, t);
145
+ s[13]("loading") + "") && W(n, t);
146
146
  },
147
147
  d(s) {
148
- s && S(e);
148
+ s && A(e);
149
149
  }
150
150
  };
151
151
  }
152
152
  function Ae(a) {
153
- let e, t = R(
153
+ let e, t = U(
154
154
  /*casinoGames*/
155
155
  a[8]
156
156
  ), n = [];
@@ -165,12 +165,12 @@ function Ae(a) {
165
165
  m(s, r) {
166
166
  for (let i = 0; i < n.length; i += 1)
167
167
  n[i] && n[i].m(s, r);
168
- A(s, e, r);
168
+ z(s, e, r);
169
169
  },
170
170
  p(s, r) {
171
171
  if (r[0] & /*gameClicked, casinoGames, $_*/
172
172
  41216) {
173
- t = R(
173
+ t = U(
174
174
  /*casinoGames*/
175
175
  s[8]
176
176
  );
@@ -185,7 +185,7 @@ function Ae(a) {
185
185
  }
186
186
  },
187
187
  d(s) {
188
- s && S(e), se(n, s);
188
+ s && A(e), se(n, s);
189
189
  }
190
190
  };
191
191
  }
@@ -193,17 +193,17 @@ function ae(a) {
193
193
  let e, t, n = (
194
194
  /*$_*/
195
195
  a[13]("playNow") + ""
196
- ), s, r, i, g, h, T, k, b, c;
196
+ ), s, r, i, g, h, T, P, b, c;
197
197
  return {
198
198
  c() {
199
- e = y("div"), t = y("span"), s = W(n), r = M(), i = y("ui-image"), k = M(), o(t, "class", "PlayNowButton"), Q(i.src, g = /*item*/
199
+ e = y("div"), t = y("span"), s = O(n), r = S(), i = y("ui-image"), P = S(), o(t, "class", "PlayNowButton"), V(i.src, g = /*item*/
200
200
  a[32].thumbnail) || G(i, "src", g), G(i, "width", "132px"), G(i, "height", "100px"), G(i, "alt", h = /*item*/
201
201
  a[32].name), G(i, "title", T = /*item*/
202
202
  a[32].name), o(e, "class", "item"), o(e, "id", "g_" + /*idx*/
203
203
  a[36]), o(e, "role", "button"), o(e, "tabindex", "0");
204
204
  },
205
205
  m(w, d) {
206
- A(w, e, d), m(e, t), m(t, s), m(e, r), m(e, i), m(e, k), b || (c = q(e, "click", function() {
206
+ z(w, e, d), m(e, t), m(t, s), m(e, r), m(e, i), m(e, P), b || (c = H(e, "click", function() {
207
207
  ye(
208
208
  /*gameClicked*/
209
209
  a[15](
@@ -219,8 +219,8 @@ function ae(a) {
219
219
  p(w, d) {
220
220
  a = w, d[0] & /*$_*/
221
221
  8192 && n !== (n = /*$_*/
222
- a[13]("playNow") + "") && F(s, n), d[0] & /*casinoGames*/
223
- 256 && !Q(i.src, g = /*item*/
222
+ a[13]("playNow") + "") && W(s, n), d[0] & /*casinoGames*/
223
+ 256 && !V(i.src, g = /*item*/
224
224
  a[32].thumbnail) && G(i, "src", g), d[0] & /*casinoGames*/
225
225
  256 && h !== (h = /*item*/
226
226
  a[32].name) && G(i, "alt", h), d[0] & /*casinoGames*/
@@ -228,7 +228,7 @@ function ae(a) {
228
228
  a[32].name) && G(i, "title", T);
229
229
  },
230
230
  d(w) {
231
- w && S(e), b = !1, c();
231
+ w && A(e), b = !1, c();
232
232
  }
233
233
  };
234
234
  }
@@ -236,57 +236,62 @@ function ze(a) {
236
236
  let e, t, n, s, r, i, g, h = (
237
237
  /*$_*/
238
238
  a[13]("previous") + ""
239
- ), T, k, b, c, w, d, _ = (
239
+ ), T, P, b, c, w, d, _ = (
240
240
  /*$_*/
241
241
  a[13]("next") + ""
242
- ), v, E, f, u, C, p, B, z, O;
242
+ ), v, E, f, u, C, p, B, M, F, D;
243
243
  return {
244
244
  c() {
245
- e = y("div"), t = y("button"), n = I("svg"), s = I("path"), i = M(), g = y("span"), T = W(h), c = M(), w = y("button"), d = y("span"), v = W(_), E = M(), f = I("svg"), u = I("path"), o(s, "fill", r = /*hasPreviousPage*/
246
- a[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), o(s, "class", "a"), o(s, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), o(s, "transform", "translate(19.246 -6.188) rotate(90)"), o(n, "xmlns", "http://www.w3.org/2000/svg"), o(n, "width", "8"), o(n, "height", "13.992"), o(n, "viewBox", "0 0 8 13.992"), o(g, "class", "TournamentsPaginationControlsText"), o(t, "class", k = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
245
+ e = y("div"), t = y("button"), n = R("svg"), s = R("path"), i = S(), g = y("span"), T = O(h), c = S(), w = y("button"), d = y("span"), v = O(_), E = S(), f = R("svg"), u = R("path"), o(s, "fill", r = /*hasPreviousPage*/
246
+ a[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), o(s, "class", "a"), o(s, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), o(s, "transform", "translate(19.246 -6.188) rotate(90)"), o(n, "xmlns", "http://www.w3.org/2000/svg"), o(n, "width", "8"), o(n, "height", "13.992"), o(n, "viewBox", "0 0 8 13.992"), o(g, "class", "TournamentsPaginationControlsText"), o(t, "class", P = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
247
247
  a[10] ? "" : "Disabled")), t.disabled = b = /*hasPreviousPage*/
248
248
  !a[10], o(d, "class", "TournamentsPaginationControlsText"), o(u, "fill", C = /*hasNextPage*/
249
249
  a[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), o(u, "class", "a"), o(u, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), o(u, "transform", "translate(-11.246 20.179) rotate(-90)"), o(f, "xmlns", "http://www.w3.org/2000/svg"), o(f, "width", "8"), o(f, "height", "13.992"), o(f, "viewBox", "0 0 8 13.992"), o(w, "class", p = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
250
250
  a[11] ? "" : "Disabled")), w.disabled = B = /*hasNextPage*/
251
- !a[11], o(e, "class", "TournamentsPaginationControlsArea");
251
+ !a[11], o(e, "class", M = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
252
+ a[10] && !/*hasNextPage*/
253
+ a[11] ? "SinglePage" : ""));
252
254
  },
253
- m(P, L) {
254
- A(P, e, L), m(e, t), m(t, n), m(n, s), m(t, i), m(t, g), m(g, T), m(e, c), m(e, w), m(w, d), m(d, v), m(w, E), m(w, f), m(f, u), z || (O = [
255
- q(
255
+ m(k, L) {
256
+ z(k, e, L), m(e, t), m(t, n), m(n, s), m(t, i), m(t, g), m(g, T), m(e, c), m(e, w), m(w, d), m(d, v), m(w, E), m(w, f), m(f, u), F || (D = [
257
+ H(
256
258
  t,
257
259
  "click",
258
260
  /*gotoPage*/
259
261
  a[16].bind(this, -1)
260
262
  ),
261
- q(
263
+ H(
262
264
  w,
263
265
  "click",
264
266
  /*gotoPage*/
265
267
  a[16].bind(this, 1)
266
268
  )
267
- ], z = !0);
269
+ ], F = !0);
268
270
  },
269
- p(P, L) {
271
+ p(k, L) {
270
272
  L[0] & /*hasPreviousPage*/
271
273
  1024 && r !== (r = /*hasPreviousPage*/
272
- P[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(s, "fill", r), L[0] & /*$_*/
274
+ k[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(s, "fill", r), L[0] & /*$_*/
273
275
  8192 && h !== (h = /*$_*/
274
- P[13]("previous") + "") && F(T, h), L[0] & /*hasPreviousPage*/
275
- 1024 && k !== (k = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
276
- P[10] ? "" : "Disabled")) && o(t, "class", k), L[0] & /*hasPreviousPage*/
276
+ k[13]("previous") + "") && W(T, h), L[0] & /*hasPreviousPage*/
277
+ 1024 && P !== (P = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
278
+ k[10] ? "" : "Disabled")) && o(t, "class", P), L[0] & /*hasPreviousPage*/
277
279
  1024 && b !== (b = /*hasPreviousPage*/
278
- !P[10]) && (t.disabled = b), L[0] & /*$_*/
280
+ !k[10]) && (t.disabled = b), L[0] & /*$_*/
279
281
  8192 && _ !== (_ = /*$_*/
280
- P[13]("next") + "") && F(v, _), L[0] & /*hasNextPage*/
282
+ k[13]("next") + "") && W(v, _), L[0] & /*hasNextPage*/
281
283
  2048 && C !== (C = /*hasNextPage*/
282
- P[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(u, "fill", C), L[0] & /*hasNextPage*/
284
+ k[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(u, "fill", C), L[0] & /*hasNextPage*/
283
285
  2048 && p !== (p = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
284
- P[11] ? "" : "Disabled")) && o(w, "class", p), L[0] & /*hasNextPage*/
286
+ k[11] ? "" : "Disabled")) && o(w, "class", p), L[0] & /*hasNextPage*/
285
287
  2048 && B !== (B = /*hasNextPage*/
286
- !P[11]) && (w.disabled = B);
288
+ !k[11]) && (w.disabled = B), L[0] & /*hasPreviousPage, hasNextPage*/
289
+ 3072 && M !== (M = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
290
+ k[10] && !/*hasNextPage*/
291
+ k[11] ? "SinglePage" : "")) && o(e, "class", M);
287
292
  },
288
- d(P) {
289
- P && S(e), z = !1, we(O);
293
+ d(k) {
294
+ k && A(e), F = !1, we(D);
290
295
  }
291
296
  };
292
297
  }
@@ -300,25 +305,25 @@ function ne(a) {
300
305
  ), i;
301
306
  return {
302
307
  c() {
303
- e = y("li"), n = W(t), s = M(), i = W(r), o(e, "part", "li"), o(e, "class", "Market");
308
+ e = y("li"), n = O(t), s = S(), i = O(r), o(e, "part", "li"), o(e, "class", "Market");
304
309
  },
305
310
  m(g, h) {
306
- A(g, e, h), m(e, n), m(e, s), m(e, i);
311
+ z(g, e, h), m(e, n), m(e, s), m(e, i);
307
312
  },
308
313
  p(g, h) {
309
314
  h[0] & /*sportsRules*/
310
315
  128 && t !== (t = /*item*/
311
- g[32].rule + "") && F(n, t), h[0] & /*$_*/
316
+ g[32].rule + "") && W(n, t), h[0] & /*$_*/
312
317
  8192 && r !== (r = /*$_*/
313
- g[13]("contribution") + "") && F(i, r);
318
+ g[13]("contribution") + "") && W(i, r);
314
319
  },
315
320
  d(g) {
316
- g && S(e);
321
+ g && A(e);
317
322
  }
318
323
  };
319
324
  }
320
325
  function Fe(a) {
321
- let e, t, n, s, r, i, g, h, T, k, b, c = (
326
+ let e, t, n, s, r, i, g, h, T, P, b, c = (
322
327
  /*tournamentdetails*/
323
328
  a[3] && /*tournamentdetails*/
324
329
  a[3].wallet?.sports && /*tournamentdetails*/
@@ -337,7 +342,7 @@ function Fe(a) {
337
342
  );
338
343
  }
339
344
  let d = w(a), _ = d(a), v = !/*isMobileDevice*/
340
- a[14] && ze(a), E = R(
345
+ a[14] && ze(a), E = U(
341
346
  /*sportsRules*/
342
347
  a[7]
343
348
  ), f = [];
@@ -345,11 +350,11 @@ function Fe(a) {
345
350
  f[u] = ne($(a, E, u));
346
351
  return {
347
352
  c() {
348
- e = y("div"), c && c.c(), t = M(), n = y("div"), s = y("div"), r = y("div"), _.c(), i = M(), v && v.c(), h = M(), T = y("div"), k = y("ul");
353
+ e = y("div"), c && c.c(), t = S(), n = y("div"), s = y("div"), r = y("div"), _.c(), i = S(), v && v.c(), h = S(), T = y("div"), P = y("ul");
349
354
  for (let u = 0; u < f.length; u += 1)
350
355
  f[u].c();
351
356
  o(r, "class", "GameList items"), o(s, "class", g = "TabContent GamesContent " + /*activeTab*/
352
- (a[6] != "casino" ? "hidden" : "")), o(k, "class", "SportsPage"), o(T, "class", b = "TabContent GamesContent " + /*activeTab*/
357
+ (a[6] != "casino" ? "hidden" : "")), o(P, "class", "SportsPage"), o(T, "class", b = "TabContent GamesContent " + /*activeTab*/
353
358
  (a[6] != "sports" ? "hidden" : "")), o(n, "class", "GamesWrapper"), o(
354
359
  e,
355
360
  "class",
@@ -358,9 +363,9 @@ function Fe(a) {
358
363
  );
359
364
  },
360
365
  m(u, C) {
361
- A(u, e, C), c && c.m(e, null), m(e, t), m(e, n), m(n, s), m(s, r), _.m(r, null), a[19](r), m(s, i), v && v.m(s, null), m(n, h), m(n, T), m(T, k);
366
+ z(u, e, C), c && c.m(e, null), m(e, t), m(e, n), m(n, s), m(s, r), _.m(r, null), a[19](r), m(s, i), v && v.m(s, null), m(n, h), m(n, T), m(T, P);
362
367
  for (let p = 0; p < f.length; p += 1)
363
- f[p] && f[p].m(k, null);
368
+ f[p] && f[p].m(P, null);
364
369
  a[20](e);
365
370
  },
366
371
  p(u, C) {
@@ -372,14 +377,14 @@ function Fe(a) {
372
377
  64 && g !== (g = "TabContent GamesContent " + /*activeTab*/
373
378
  (u[6] != "casino" ? "hidden" : "")) && o(s, "class", g), C[0] & /*$_, sportsRules*/
374
379
  8320) {
375
- E = R(
380
+ E = U(
376
381
  /*sportsRules*/
377
382
  u[7]
378
383
  );
379
384
  let p;
380
385
  for (p = 0; p < E.length; p += 1) {
381
386
  const B = $(u, E, p);
382
- f[p] ? f[p].p(B, C) : (f[p] = ne(B), f[p].c(), f[p].m(k, null));
387
+ f[p] ? f[p].p(B, C) : (f[p] = ne(B), f[p].c(), f[p].m(P, null));
383
388
  }
384
389
  for (; p < f.length; p += 1)
385
390
  f[p].d(1);
@@ -389,30 +394,30 @@ function Fe(a) {
389
394
  64 && b !== (b = "TabContent GamesContent " + /*activeTab*/
390
395
  (u[6] != "sports" ? "hidden" : "")) && o(T, "class", b);
391
396
  },
392
- i: K,
393
- o: K,
397
+ i: X,
398
+ o: X,
394
399
  d(u) {
395
- u && S(e), c && c.d(), _.d(), a[19](null), v && v.d(), se(f, u), a[20](null);
400
+ u && A(e), c && c.d(), _.d(), a[19](null), v && v.d(), se(f, u), a[20](null);
396
401
  }
397
402
  };
398
403
  }
399
- let x = "gameTab";
404
+ let J = "gameTab";
400
405
  function We(a, e, t) {
401
406
  let n;
402
- pe(a, Pe, (l) => t(13, n = l));
403
- let { clientstyling: s = "" } = e, { clientstylingurl: r = "" } = e, { mbsource: i } = e, { translationurl: g } = e, { lang: h = "en" } = e, T = "casino", k = [], b = [], c, w = window.navigator.userAgent, d, _, v, E = he(w), f = !1;
407
+ pe(a, ke, (l) => t(13, n = l));
408
+ let { clientstyling: s = "" } = e, { clientstylingurl: r = "" } = e, { mbsource: i } = e, { translationurl: g } = e, { lang: h = "en" } = e, T = "casino", P = [], b = [], c, w = window.navigator.userAgent, d, _, v, E = he(w), f = !1;
404
409
  Ee({ withLocale: "en", translations: {} });
405
410
  const u = () => {
406
411
  fetch(g).then((l) => l.json()).then((l) => {
407
412
  Object.keys(l).forEach((N) => {
408
- V(N, l[N]);
413
+ Y(N, l[N]);
409
414
  });
410
415
  }).catch((l) => {
411
416
  console.log(l);
412
417
  });
413
418
  };
414
- Object.keys(Y).forEach((l) => {
415
- V(l, Y[l]);
419
+ Object.keys(x).forEach((l) => {
420
+ Y(l, x[l]);
416
421
  });
417
422
  const C = () => {
418
423
  Le(h), setTimeout(
@@ -443,9 +448,9 @@ function We(a, e, t) {
443
448
  window.location.href
444
449
  );
445
450
  };
446
- let z = !1, O = !1, P = !1;
447
- const L = (l) => {
448
- !z && l === -1 || !O && l === 1 || (t(12, P = !0), t(8, b = []), window.postMessage(
451
+ let M = !1, F = !1, D = !1;
452
+ const k = (l) => {
453
+ !M && l === -1 || !F && l === 1 || (t(12, D = !0), t(8, b = []), window.postMessage(
449
454
  {
450
455
  type: "TournamentsLoadMoreGames",
451
456
  id: c.id,
@@ -453,34 +458,34 @@ function We(a, e, t) {
453
458
  },
454
459
  window.location.href
455
460
  ));
456
- }, H = () => {
457
- t(8, b = c.games?.items || []), t(9, f = !1), t(10, z = !1), t(11, O = c.games?.total > c.games?.items.length), Z();
461
+ }, L = () => {
462
+ t(8, b = c.games?.items || []), t(9, f = !1), t(10, M = !1), t(11, F = c.games?.total > c.games?.items.length), K();
458
463
  const l = c.metadata?.sports?.rules;
459
464
  if (l) {
460
465
  t(6, T = c.wallet.casino ? "casino" : "sports");
461
466
  try {
462
467
  const N = JSON.parse(l);
463
- t(7, k = N[h] || N["*"]);
468
+ t(7, P = N[h] || N["*"]);
464
469
  } catch (N) {
465
470
  console.error("Error parsing tournament rules", N);
466
471
  }
467
472
  }
468
- }, J = (l) => {
473
+ }, Z = (l) => {
469
474
  if (!l.data || !l.data.type)
470
475
  return;
471
476
  const N = l.data.tid || "";
472
477
  switch (l.data.type) {
473
478
  case "TournamentsTabSwitch":
474
- N === x && t(6, T = l.data.tab);
479
+ N === J && t(6, T = l.data.tab);
475
480
  break;
476
481
  case "TournamentsTabListenerLoaded":
477
482
  p();
478
483
  break;
479
484
  case "TournamentsGamesUpdate":
480
- t(3, c = l.data.details), H();
485
+ t(3, c = l.data.details), L();
481
486
  break;
482
487
  case "TournamentsLoadedMoreGames":
483
- E ? l.data.games?.items.length && (t(8, b = [...b, ...l.data.games.items]), Z()) : (t(12, P = !1), t(8, b = [...l.data.games.items]), t(11, O = l.data.hasNextPage), t(10, z = l.data.hasPreviousPage), t(9, f = !b.length));
488
+ E ? l.data.games?.items.length && (t(8, b = [...b, ...l.data.games.items]), K()) : (t(12, D = !1), t(8, b = [...l.data.games.items]), t(11, F = l.data.hasNextPage), t(10, M = l.data.hasPreviousPage), t(9, f = !b.length));
484
489
  break;
485
490
  default:
486
491
  console.warn(`Unhandled message type: ${l.data.type}`);
@@ -501,25 +506,25 @@ function We(a, e, t) {
501
506
  ));
502
507
  });
503
508
  }));
504
- }, Z = () => {
509
+ }, K = () => {
505
510
  !E || !j || !v || !b.length || (v.unobserve(j), j = _.lastElementChild, v.observe(j));
506
511
  };
507
512
  be(() => E && v && v.disconnect()), _e(() => (window.postMessage(
508
513
  {
509
514
  type: "TournamentsGamesListenerLoaded",
510
- gamesTabTid: x
515
+ gamesTabTid: J
511
516
  },
512
517
  window.location.href
513
- ), window.addEventListener("message", J, !1), () => {
514
- window.removeEventListener("message", J);
518
+ ), window.addEventListener("message", Z, !1), () => {
519
+ window.removeEventListener("message", Z);
515
520
  }));
516
521
  function ie(l) {
517
- X[l ? "unshift" : "push"](() => {
522
+ Q[l ? "unshift" : "push"](() => {
518
523
  _ = l, t(5, _);
519
524
  });
520
525
  }
521
526
  function oe(l) {
522
- X[l ? "unshift" : "push"](() => {
527
+ Q[l ? "unshift" : "push"](() => {
523
528
  d = l, t(4, d);
524
529
  });
525
530
  }
@@ -527,7 +532,7 @@ function We(a, e, t) {
527
532
  "clientstyling" in l && t(0, s = l.clientstyling), "clientstylingurl" in l && t(1, r = l.clientstylingurl), "mbsource" in l && t(2, i = l.mbsource), "translationurl" in l && t(17, g = l.translationurl), "lang" in l && t(18, h = l.lang);
528
533
  }, a.$$.update = () => {
529
534
  a.$$.dirty[0] & /*tournamentdetails*/
530
- 8 && c && H(), a.$$.dirty[0] & /*lang*/
535
+ 8 && c && L(), a.$$.dirty[0] & /*lang*/
531
536
  262144 && h && C(), a.$$.dirty[0] & /*translationurl*/
532
537
  131072 && g && u(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
533
538
  17 && s && d && Te(d, s), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
@@ -542,16 +547,16 @@ function We(a, e, t) {
542
547
  d,
543
548
  _,
544
549
  T,
545
- k,
550
+ P,
546
551
  b,
547
552
  f,
548
- z,
549
- O,
550
- P,
553
+ M,
554
+ F,
555
+ D,
551
556
  n,
552
557
  E,
553
558
  B,
554
- L,
559
+ k,
555
560
  g,
556
561
  h,
557
562
  ie,
@@ -581,34 +586,34 @@ class Oe extends ce {
581
586
  return this.$$.ctx[0];
582
587
  }
583
588
  set clientstyling(e) {
584
- this.$$set({ clientstyling: e }), D();
589
+ this.$$set({ clientstyling: e }), I();
585
590
  }
586
591
  get clientstylingurl() {
587
592
  return this.$$.ctx[1];
588
593
  }
589
594
  set clientstylingurl(e) {
590
- this.$$set({ clientstylingurl: e }), D();
595
+ this.$$set({ clientstylingurl: e }), I();
591
596
  }
592
597
  get mbsource() {
593
598
  return this.$$.ctx[2];
594
599
  }
595
600
  set mbsource(e) {
596
- this.$$set({ mbsource: e }), D();
601
+ this.$$set({ mbsource: e }), I();
597
602
  }
598
603
  get translationurl() {
599
604
  return this.$$.ctx[17];
600
605
  }
601
606
  set translationurl(e) {
602
- this.$$set({ translationurl: e }), D();
607
+ this.$$set({ translationurl: e }), I();
603
608
  }
604
609
  get lang() {
605
610
  return this.$$.ctx[18];
606
611
  }
607
612
  set lang(e) {
608
- this.$$set({ lang: e }), D();
613
+ this.$$set({ lang: e }), I();
609
614
  }
610
615
  }
611
- ke(Oe, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
616
+ Pe(Oe, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
612
617
  export {
613
618
  Oe as default
614
619
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-C0vnKkIF.cjs");require("../stencil/ui-image-DUHLTRXs.cjs");function V({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function R(n,t){e.addMessages(n,t)}function Y(n){e.$locale.set(n)}const I={en:{loading:"Loading, please wait ...",playNow:"Play Now",casino:"CASINO",sports:"SPORTSBOOK",contribution:"Contribution",noGamesAvailable:"No games have been configured yet!",noMoreGames:"No more games"}};function $(n){e.append_styles(n,"svelte-h1f7fe","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .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:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .LoadingGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames .LoadingGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.TournamentsPaginationControlsArea{clear:both;margin-top:30px;display:flex;justify-content:center;width:100%}.TournamentsPaginationControlsArea.SinglePage{display:none}.TournamentsPaginationControls{background:var(--emw--color-green, transparent);width:60%;height:35px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px;cursor:pointer;width:190px}.TournamentsPaginationControls.Disabled{color:var(--emw--color-gray-100, #B5B5B5);border-color:var(--emw--color-gray-100, #B5B5B5);opacity:50%;cursor:default}.TournamentsPaginationControlsArea{justify-content:center;gap:30px}.TournamentsPaginationControlsArea .TournamentsPaginationControls{align-items:center}.TournamentsPaginationControlsArea .TournamentsPaginationControlsText{font-size:var(--emw--size-standard, 16px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}.MobileClass .GamesWrapper .GameList.items{max-height:calc(100vh - 350px);overflow-y:auto}")}function U(n,t,a){const s=n.slice();return s[32]=t[a],s}function q(n,t,a){const s=n.slice();return s[32]=t[a],s[36]=a,s}function x(n){let t,a;return{c(){t=e.element("div"),a=e.element("casino-tournaments-tab"),e.set_custom_element_data(a,"part","TournamentGames"),e.set_custom_element_data(a,"tabs","casino,sports"),e.set_custom_element_data(a,"tab","casino"),e.set_custom_element_data(a,"tid",W),e.set_custom_element_data(a,"clientstyling",n[0]),e.set_custom_element_data(a,"clientstylingurl",n[1]),e.set_custom_element_data(a,"mbsource",n[2]),e.attr(t,"class","GamesTabNav")},m(s,l){e.insert(s,t,l),e.append(t,a)},p(s,l){l[0]&1&&e.set_custom_element_data(a,"clientstyling",s[0]),l[0]&2&&e.set_custom_element_data(a,"clientstylingurl",s[1]),l[0]&4&&e.set_custom_element_data(a,"mbsource",s[2])},d(s){s&&e.detach(t)}}}function ee(n){let t,a=n[13]("noGamesAvailable")+"",s;return{c(){t=e.element("div"),s=e.text(a),e.attr(t,"class","NoGames")},m(l,o){e.insert(l,t,o),e.append(t,s)},p(l,o){o[0]&8192&&a!==(a=l[13]("noGamesAvailable")+"")&&e.set_data(s,a)},d(l){l&&e.detach(t)}}}function te(n){let t,a=n[13]("noMoreGames")+"",s;return{c(){t=e.element("div"),s=e.text(a),e.attr(t,"class","NoGames")},m(l,o){e.insert(l,t,o),e.append(t,s)},p(l,o){o[0]&8192&&a!==(a=l[13]("noMoreGames")+"")&&e.set_data(s,a)},d(l){l&&e.detach(t)}}}function ae(n){let t,a=n[13]("loading")+"",s;return{c(){t=e.element("div"),s=e.text(a),e.attr(t,"class","LoadingGames")},m(l,o){e.insert(l,t,o),e.append(t,s)},p(l,o){o[0]&8192&&a!==(a=l[13]("loading")+"")&&e.set_data(s,a)},d(l){l&&e.detach(t)}}}function ne(n){let t,a=e.ensure_array_like(n[8]),s=[];for(let l=0;l<a.length;l+=1)s[l]=Z(q(n,a,l));return{c(){for(let l=0;l<s.length;l+=1)s[l].c();t=e.empty()},m(l,o){for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(l,o);e.insert(l,t,o)},p(l,o){if(o[0]&41216){a=e.ensure_array_like(l[8]);let i;for(i=0;i<a.length;i+=1){const u=q(l,a,i);s[i]?s[i].p(u,o):(s[i]=Z(u),s[i].c(),s[i].m(t.parentNode,t))}for(;i<s.length;i+=1)s[i].d(1);s.length=a.length}},d(l){l&&e.detach(t),e.destroy_each(s,l)}}}function Z(n){let t,a,s=n[13]("playNow")+"",l,o,i,u,g,T,C,f,c;return{c(){t=e.element("div"),a=e.element("span"),l=e.text(s),o=e.space(),i=e.element("ui-image"),C=e.space(),e.attr(a,"class","PlayNowButton"),e.src_url_equal(i.src,u=n[32].thumbnail)||e.set_custom_element_data(i,"src",u),e.set_custom_element_data(i,"width","132px"),e.set_custom_element_data(i,"height","100px"),e.set_custom_element_data(i,"alt",g=n[32].name),e.set_custom_element_data(i,"title",T=n[32].name),e.attr(t,"class","item"),e.attr(t,"id","g_"+n[36]),e.attr(t,"role","button"),e.attr(t,"tabindex","0")},m(h,p){e.insert(h,t,p),e.append(t,a),e.append(a,l),e.append(t,o),e.append(t,i),e.append(t,C),f||(c=e.listen(t,"click",function(){e.is_function(n[15](n[32]))&&n[15](n[32]).apply(this,arguments)}),f=!0)},p(h,p){n=h,p[0]&8192&&s!==(s=n[13]("playNow")+"")&&e.set_data(l,s),p[0]&256&&!e.src_url_equal(i.src,u=n[32].thumbnail)&&e.set_custom_element_data(i,"src",u),p[0]&256&&g!==(g=n[32].name)&&e.set_custom_element_data(i,"alt",g),p[0]&256&&T!==(T=n[32].name)&&e.set_custom_element_data(i,"title",T)},d(h){h&&e.detach(t),f=!1,c()}}}function se(n){let t,a,s,l,o,i,u,g=n[13]("previous")+"",T,C,f,c,h,p,_=n[13]("next")+"",b,k,d,E,N,m,G,w,L,v;return{c(){t=e.element("div"),a=e.element("button"),s=e.svg_element("svg"),l=e.svg_element("path"),i=e.space(),u=e.element("span"),T=e.text(g),c=e.space(),h=e.element("button"),p=e.element("span"),b=e.text(_),k=e.space(),d=e.svg_element("svg"),E=e.svg_element("path"),e.attr(l,"fill",o=n[10]?"var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))":"var(--emw--color-gray-100, #E6E6E6)"),e.attr(l,"class","a"),e.attr(l,"d","M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"),e.attr(l,"transform","translate(19.246 -6.188) rotate(90)"),e.attr(s,"xmlns","http://www.w3.org/2000/svg"),e.attr(s,"width","8"),e.attr(s,"height","13.992"),e.attr(s,"viewBox","0 0 8 13.992"),e.attr(u,"class","TournamentsPaginationControlsText"),e.attr(a,"class",C="TournamentsButton TournamentsPaginationControls "+(n[10]?"":"Disabled")),a.disabled=f=!n[10],e.attr(p,"class","TournamentsPaginationControlsText"),e.attr(E,"fill",N=n[11]?"var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))":"var(--emw--color-gray-100, #E6E6E6)"),e.attr(E,"class","a"),e.attr(E,"d","M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"),e.attr(E,"transform","translate(-11.246 20.179) rotate(-90)"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"width","8"),e.attr(d,"height","13.992"),e.attr(d,"viewBox","0 0 8 13.992"),e.attr(h,"class",m="TournamentsButton TournamentsPaginationControls "+(n[11]?"":"Disabled")),h.disabled=G=!n[11],e.attr(t,"class",w="TournamentsPaginationControlsArea "+(!n[10]&&!n[11]?"SinglePage":""))},m(y,P){e.insert(y,t,P),e.append(t,a),e.append(a,s),e.append(s,l),e.append(a,i),e.append(a,u),e.append(u,T),e.append(t,c),e.append(t,h),e.append(h,p),e.append(p,b),e.append(h,k),e.append(h,d),e.append(d,E),L||(v=[e.listen(a,"click",n[16].bind(this,-1)),e.listen(h,"click",n[16].bind(this,1))],L=!0)},p(y,P){P[0]&1024&&o!==(o=y[10]?"var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))":"var(--emw--color-gray-100, #E6E6E6)")&&e.attr(l,"fill",o),P[0]&8192&&g!==(g=y[13]("previous")+"")&&e.set_data(T,g),P[0]&1024&&C!==(C="TournamentsButton TournamentsPaginationControls "+(y[10]?"":"Disabled"))&&e.attr(a,"class",C),P[0]&1024&&f!==(f=!y[10])&&(a.disabled=f),P[0]&8192&&_!==(_=y[13]("next")+"")&&e.set_data(b,_),P[0]&2048&&N!==(N=y[11]?"var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))":"var(--emw--color-gray-100, #E6E6E6)")&&e.attr(E,"fill",N),P[0]&2048&&m!==(m="TournamentsButton TournamentsPaginationControls "+(y[11]?"":"Disabled"))&&e.attr(h,"class",m),P[0]&2048&&G!==(G=!y[11])&&(h.disabled=G),P[0]&3072&&w!==(w="TournamentsPaginationControlsArea "+(!y[10]&&!y[11]?"SinglePage":""))&&e.attr(t,"class",w)},d(y){y&&e.detach(t),L=!1,e.run_all(v)}}}function H(n){let t,a=n[32].rule+"",s,l,o=n[13]("contribution")+"",i;return{c(){t=e.element("li"),s=e.text(a),l=e.space(),i=e.text(o),e.attr(t,"part","li"),e.attr(t,"class","Market")},m(u,g){e.insert(u,t,g),e.append(t,s),e.append(t,l),e.append(t,i)},p(u,g){g[0]&128&&a!==(a=u[32].rule+"")&&e.set_data(s,a),g[0]&8192&&o!==(o=u[13]("contribution")+"")&&e.set_data(i,o)},d(u){u&&e.detach(t)}}}function le(n){var E,N;let t,a,s,l,o,i,u,g,T,C,f,c=n[3]&&((E=n[3].wallet)==null?void 0:E.sports)&&((N=n[3].wallet)==null?void 0:N.casino)&&x(n);function h(m,G){var w;return(w=m[8])!=null&&w.length?ne:m[12]?ae:m[9]?te:ee}let p=h(n),_=p(n),b=!n[14]&&se(n),k=e.ensure_array_like(n[7]),d=[];for(let m=0;m<k.length;m+=1)d[m]=H(U(n,k,m));return{c(){t=e.element("div"),c&&c.c(),a=e.space(),s=e.element("div"),l=e.element("div"),o=e.element("div"),_.c(),i=e.space(),b&&b.c(),g=e.space(),T=e.element("div"),C=e.element("ul");for(let m=0;m<d.length;m+=1)d[m].c();e.attr(o,"class","GameList items"),e.attr(l,"class",u="TabContent GamesContent "+(n[6]!="casino"?"hidden":"")),e.attr(C,"class","SportsPage"),e.attr(T,"class",f="TabContent GamesContent "+(n[6]!="sports"?"hidden":"")),e.attr(s,"class","GamesWrapper"),e.attr(t,"class",n[14]?"MobileClass":"")},m(m,G){e.insert(m,t,G),c&&c.m(t,null),e.append(t,a),e.append(t,s),e.append(s,l),e.append(l,o),_.m(o,null),n[19](o),e.append(l,i),b&&b.m(l,null),e.append(s,g),e.append(s,T),e.append(T,C);for(let w=0;w<d.length;w+=1)d[w]&&d[w].m(C,null);n[20](t)},p(m,G){var w,L;if(m[3]&&((w=m[3].wallet)!=null&&w.sports)&&((L=m[3].wallet)!=null&&L.casino)?c?c.p(m,G):(c=x(m),c.c(),c.m(t,a)):c&&(c.d(1),c=null),p===(p=h(m))&&_?_.p(m,G):(_.d(1),_=p(m),_&&(_.c(),_.m(o,null))),m[14]||b.p(m,G),G[0]&64&&u!==(u="TabContent GamesContent "+(m[6]!="casino"?"hidden":""))&&e.attr(l,"class",u),G[0]&8320){k=e.ensure_array_like(m[7]);let v;for(v=0;v<k.length;v+=1){const y=U(m,k,v);d[v]?d[v].p(y,G):(d[v]=H(y),d[v].c(),d[v].m(C,null))}for(;v<d.length;v+=1)d[v].d(1);d.length=k.length}G[0]&64&&f!==(f="TabContent GamesContent "+(m[6]!="sports"?"hidden":""))&&e.attr(T,"class",f)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),c&&c.d(),_.d(),n[19](null),b&&b.d(),e.destroy_each(d,m),n[20](null)}}}let W="gameTab";function re(n,t,a){let s;e.component_subscribe(n,e.$format,r=>a(13,s=r));let{clientstyling:l=""}=t,{clientstylingurl:o=""}=t,{mbsource:i}=t,{translationurl:u}=t,{lang:g="en"}=t,T="casino",C=[],f=[],c,h=window.navigator.userAgent,p,_,b,k=e.isMobile(h),d=!1;V({withLocale:"en",translations:{}});const E=()=>{fetch(u).then(r=>r.json()).then(r=>{Object.keys(r).forEach(M=>{R(M,r[M])})}).catch(r=>{console.log(r)})};Object.keys(I).forEach(r=>{R(r,I[r])});const N=()=>{Y(g),setTimeout(()=>{m()},10)},m=()=>{window.postMessage({type:"TournamentsTabsLocalize",tabTitleTranslations:{casino:s("casino"),sports:s("sports")}},window.location.href)},G=r=>{window.postMessage({type:"TournamentGameAction",gameId:r.id,name:r.name,launchUrl:r.launchUrl},window.location.href)};let w=!1,L=!1,v=!1;const y=r=>{!w&&r===-1||!L&&r===1||(a(12,v=!0),a(8,f=[]),window.postMessage({type:"TournamentsLoadMoreGames",id:c.id,isNext:r>0},window.location.href))},P=()=>{var M,S,j,D,O;a(8,f=((M=c.games)==null?void 0:M.items)||[]),a(9,d=!1),a(10,w=!1),a(11,L=((S=c.games)==null?void 0:S.total)>((j=c.games)==null?void 0:j.items.length)),F();const r=(O=(D=c.metadata)==null?void 0:D.sports)==null?void 0:O.rules;if(r){a(6,T=c.wallet.casino?"casino":"sports");try{const A=JSON.parse(r);a(7,C=A[g]||A["*"])}catch(A){console.error("Error parsing tournament rules",A)}}},z=r=>{var S;if(!r.data||!r.data.type)return;const M=r.data.tid||"";switch(r.data.type){case"TournamentsTabSwitch":M===W&&a(6,T=r.data.tab);break;case"TournamentsTabListenerLoaded":m();break;case"TournamentsGamesUpdate":a(3,c=r.data.details),P();break;case"TournamentsLoadedMoreGames":k?(S=r.data.games)!=null&&S.items.length&&(a(8,f=[...f,...r.data.games.items]),F()):(a(12,v=!1),a(8,f=[...r.data.games.items]),a(11,L=r.data.hasNextPage),a(10,w=r.data.hasPreviousPage),a(9,d=!f.length));break;default:console.warn(`Unhandled message type: ${r.data.type}`);break}};let B;const K=r=>{B=r==null?void 0:r.lastElementChild,!(!k||b||!r||!B)&&(b=new IntersectionObserver(M=>{M.forEach(S=>{S.isIntersecting&&(b.unobserve(B),window.postMessage({type:"TournamentsLoadMoreGames",id:c.id,isNext:!0},window.location.href))})}))},F=()=>{!k||!B||!b||!f.length||(b.unobserve(B),B=_.lastElementChild,b.observe(B))};e.onDestroy(()=>k&&b&&b.disconnect()),e.onMount(()=>(window.postMessage({type:"TournamentsGamesListenerLoaded",gamesTabTid:W},window.location.href),window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));function X(r){e.binding_callbacks[r?"unshift":"push"](()=>{_=r,a(5,_)})}function Q(r){e.binding_callbacks[r?"unshift":"push"](()=>{p=r,a(4,p)})}return n.$$set=r=>{"clientstyling"in r&&a(0,l=r.clientstyling),"clientstylingurl"in r&&a(1,o=r.clientstylingurl),"mbsource"in r&&a(2,i=r.mbsource),"translationurl"in r&&a(17,u=r.translationurl),"lang"in r&&a(18,g=r.lang)},n.$$.update=()=>{n.$$.dirty[0]&8&&c&&P(),n.$$.dirty[0]&262144&&g&&N(),n.$$.dirty[0]&131072&&u&&E(),n.$$.dirty[0]&17&&l&&p&&e.setClientStyling(p,l),n.$$.dirty[0]&18&&o&&p&&e.setClientStylingURL(p,o),n.$$.dirty[0]&20&&i&&p&&e.setStreamStyling(p,`${i}.Style`),n.$$.dirty[0]&32&&_&&K(_)},[l,o,i,c,p,_,T,C,f,d,w,L,v,s,k,G,y,u,g,X,Q]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,le,e.safe_not_equal,{clientstyling:0,clientstylingurl:1,mbsource:2,translationurl:17,lang:18},$,[-1,-1])}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}}e.create_custom_element(J,{clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},lang:{}},[],[],!0);exports.default=J;