@everymatrix/casino-tournaments-page-controller 1.77.0 → 1.77.2

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 (66) hide show
  1. package/components/CasinoTournamentsDetails-BQa2bf_j.cjs +1 -0
  2. package/components/{CasinoTournamentsDetails-_vnvzxd3.js → CasinoTournamentsDetails-CYH25Y02.js} +72 -68
  3. package/components/{CasinoTournamentsDetails-CV5jyv8g.js → CasinoTournamentsDetails-DUzKSdVm.js} +49 -45
  4. package/components/{CasinoTournamentsPageController-LRHk1OJ4.js → CasinoTournamentsPageController-CIBcI0pA.js} +2046 -2016
  5. package/components/{CasinoTournamentsPageController-DIjImG1k.js → CasinoTournamentsPageController-DfGFF6cI.js} +2006 -1981
  6. package/components/CasinoTournamentsPageController-W8fBgpMs.cjs +37 -0
  7. package/components/{CasinoTournamentsRank-CkgXfPdz.js → CasinoTournamentsRank-BdOz4ofH.js} +1 -1
  8. package/components/{CasinoTournamentsRank-BdqjuIj9.cjs → CasinoTournamentsRank-CL2PEf0q.cjs} +1 -1
  9. package/components/{CasinoTournamentsRank-BEjjLuf1.js → CasinoTournamentsRank-ThPZ3A2i.js} +1 -1
  10. package/components/{CasinoTournamentsTab-BRIU3NDv.js → CasinoTournamentsTab-78OREjop.js} +2 -2
  11. package/components/{CasinoTournamentsTab-cAmru9Ol.js → CasinoTournamentsTab-CDu2ey_V.js} +2 -2
  12. package/components/{CasinoTournamentsTab-BdBIehQV.cjs → CasinoTournamentsTab-I5WTeQJr.cjs} +1 -1
  13. package/components/{CasinoTournamentsTable-D0-M8VIr.js → CasinoTournamentsTable-BAL8YpO_.js} +2 -2
  14. package/components/{CasinoTournamentsTable-3AOlf9hp.cjs → CasinoTournamentsTable-ByiDOPdG.cjs} +1 -1
  15. package/components/{CasinoTournamentsTable-RfAIxnuW.js → CasinoTournamentsTable-CzgeAsJT.js} +2 -2
  16. package/components/{CasinoTournamentsThumbnail-D1JyrHrY.cjs → CasinoTournamentsThumbnail-2JNTLpYH.cjs} +1 -1
  17. package/components/{CasinoTournamentsThumbnail-Cp_sIUHy.js → CasinoTournamentsThumbnail-C49dWSXw.js} +3 -3
  18. package/components/{CasinoTournamentsThumbnail-CaIyyUlW.js → CasinoTournamentsThumbnail-DMkcX_-s.js} +3 -3
  19. package/components/{CasinoTournamentsThumbnailController-CjJaE6DJ.cjs → CasinoTournamentsThumbnailController-D60Kz5bS.cjs} +1 -1
  20. package/components/{CasinoTournamentsThumbnailController-30_8iqch.js → CasinoTournamentsThumbnailController-HLcvL2d3.js} +6 -6
  21. package/components/{CasinoTournamentsThumbnailController-wrPgna6T.js → CasinoTournamentsThumbnailController-TBdyPmpf.js} +6 -6
  22. package/components/{CasinoTournamentsThumbnailDuration-CMPeZsoj.cjs → CasinoTournamentsThumbnailDuration-D8XEcu_M.cjs} +1 -1
  23. package/components/{CasinoTournamentsThumbnailDuration-BqNqjxsL.js → CasinoTournamentsThumbnailDuration-DlL5W81k.js} +2 -2
  24. package/components/{CasinoTournamentsThumbnailDuration-ZnRFP_h_.js → CasinoTournamentsThumbnailDuration-R7iGzSER.js} +2 -2
  25. package/components/CasinoTournamentsThumbnailGames-2yMIl4cQ.js +597 -0
  26. package/components/CasinoTournamentsThumbnailGames-DOyto3xz.js +592 -0
  27. package/components/CasinoTournamentsThumbnailGames-DnURu4dl.cjs +1 -0
  28. package/components/{CasinoTournamentsThumbnailGamesSlider-BAXfTifG.js → CasinoTournamentsThumbnailGamesSlider-BPX6W776.js} +20 -20
  29. package/components/{CasinoTournamentsThumbnailGamesSlider-DmOtGPsI.cjs → CasinoTournamentsThumbnailGamesSlider-DwFnumBB.cjs} +1 -1
  30. package/components/{CasinoTournamentsThumbnailGamesSlider-CFd0JjFY.js → CasinoTournamentsThumbnailGamesSlider-eV-Ow_Cg.js} +20 -20
  31. package/components/{CasinoTournamentsThumbnailPrizes-pZYtadAx.js → CasinoTournamentsThumbnailPrizes-CPkHblFu.js} +2 -2
  32. package/components/{CasinoTournamentsThumbnailPrizes-Dz4-wWGv.js → CasinoTournamentsThumbnailPrizes-C_-aYSPi.js} +2 -2
  33. package/components/{CasinoTournamentsThumbnailPrizes-CgS9w2Aq.cjs → CasinoTournamentsThumbnailPrizes-CxEE1T4D.cjs} +1 -1
  34. package/components/{CasinoTournamentsThumbnailRule-BaJvRUJL.cjs → CasinoTournamentsThumbnailRule-Ct-8ur-9.cjs} +8 -8
  35. package/components/{CasinoTournamentsThumbnailRule-C2uFR1vt.js → CasinoTournamentsThumbnailRule-DJcNNymr.js} +169 -176
  36. package/components/{CasinoTournamentsThumbnailRule-BtlW7eqt.js → CasinoTournamentsThumbnailRule-Dzt2fs2c.js} +128 -136
  37. package/es2015/casino-tournaments-page-controller.cjs +1 -1
  38. package/es2015/casino-tournaments-page-controller.js +1 -1
  39. package/esnext/casino-tournaments-page-controller.js +1 -1
  40. package/package.json +1 -1
  41. package/stencil/index-242ac81a-BqeIndhr.js +554 -0
  42. package/stencil/index-242ac81a-CI4JxPRf.js +538 -0
  43. package/stencil/index-242ac81a-CjjM4VND.cjs +1 -0
  44. package/stencil/ui-image-2ff23cd5-BHGIWJop.cjs +1 -0
  45. package/stencil/ui-image-2ff23cd5-D0rXudCW.js +86 -0
  46. package/stencil/ui-image-2ff23cd5-DCLQ0SIO.js +86 -0
  47. package/stencil/ui-image-CGQNKTif.js +7 -0
  48. package/stencil/ui-image-CYCsgzdt.cjs +1 -0
  49. package/stencil/ui-image-D4MrqmCW.js +25 -0
  50. package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-B21W_djK.js} +2 -2
  51. package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-CLk629jW.cjs} +1 -1
  52. package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-VgK3B8gQ.js} +2 -2
  53. package/components/CasinoTournamentsDetails-DVRJk4kX.cjs +0 -1
  54. package/components/CasinoTournamentsPageController-Czj_9f9q.cjs +0 -37
  55. package/components/CasinoTournamentsThumbnailGames-BQSFsb7H.js +0 -456
  56. package/components/CasinoTournamentsThumbnailGames-DS3GmPBl.cjs +0 -1
  57. package/components/CasinoTournamentsThumbnailGames-Q4Gg_Pxp.js +0 -460
  58. package/stencil/index-97d17652--F7PvMq9.js +0 -542
  59. package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
  60. package/stencil/index-97d17652-CCFHkzJw.js +0 -558
  61. package/stencil/ui-image-Bk8cIvcH.cjs +0 -1
  62. package/stencil/ui-image-CXqPvnQ2.js +0 -7
  63. package/stencil/ui-image-DgbODkuX.js +0 -25
  64. package/stencil/ui-image-b7b48fe5-ByRuJtdE.js +0 -39
  65. package/stencil/ui-image-b7b48fe5-D6iig_uN.js +0 -39
  66. package/stencil/ui-image-b7b48fe5-DG83WzAo.cjs +0 -1
@@ -0,0 +1,597 @@
1
+ import { S as me, b as ge, s as de, f as I, d as fe, x as Z, n as Q, e as W, y as oe, j as o, k as j, l as c, p as v, o as F, u as pe, G as he, v as be, h as G, r as we, g as O, m as x, q, t as R, w as V, z as _e, A as Y, i as ve, C as ye, D as Te, E as Ge, c as Ce } from "./CasinoTournamentsDetails-CYH25Y02.js";
2
+ import { $ as H, c as ke, a as Pe, i as Ee, b as Le } from "./CasinoTournamentsPageController-CIBcI0pA.js";
3
+ import "../stencil/ui-image-D4MrqmCW.js";
4
+ function Ne({ withLocale: t, translations: e }) {
5
+ H.subscribe((a) => {
6
+ a == null && (ke.set(e), H.set(t));
7
+ });
8
+ }
9
+ function $(t, e) {
10
+ Pe(t, e);
11
+ }
12
+ function Be(t) {
13
+ H.set(t);
14
+ }
15
+ const ee = {
16
+ en: {
17
+ loading: "Loading, please wait ...",
18
+ playNow: "Play Now",
19
+ casino: "CASINO",
20
+ sports: "SPORTSBOOK",
21
+ contribution: "Contribution",
22
+ noGamesAvailable: "No games have been configured yet!"
23
+ }
24
+ };
25
+ function Me(t) {
26
+ fe(t, "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}");
27
+ }
28
+ function te(t, e, a) {
29
+ const n = t.slice();
30
+ return n[31] = e[a], n;
31
+ }
32
+ function ae(t, e, a) {
33
+ const n = t.slice();
34
+ return n[31] = e[a], n[35] = a, n;
35
+ }
36
+ function ne(t) {
37
+ let e, a;
38
+ return {
39
+ c() {
40
+ e = v("div"), a = v("casino-tournaments-tab"), G(a, "part", "TournamentGames"), G(a, "tabs", "casino,sports"), G(a, "tab", "casino"), G(a, "tid", J), G(
41
+ a,
42
+ "clientstyling",
43
+ /*clientstyling*/
44
+ t[0]
45
+ ), G(
46
+ a,
47
+ "clientstylingurl",
48
+ /*clientstylingurl*/
49
+ t[1]
50
+ ), G(
51
+ a,
52
+ "mbsource",
53
+ /*mbsource*/
54
+ t[2]
55
+ ), o(e, "class", "GamesTabNav");
56
+ },
57
+ m(n, s) {
58
+ j(n, e, s), c(e, a);
59
+ },
60
+ p(n, s) {
61
+ s[0] & /*clientstyling*/
62
+ 1 && G(
63
+ a,
64
+ "clientstyling",
65
+ /*clientstyling*/
66
+ n[0]
67
+ ), s[0] & /*clientstylingurl*/
68
+ 2 && G(
69
+ a,
70
+ "clientstylingurl",
71
+ /*clientstylingurl*/
72
+ n[1]
73
+ ), s[0] & /*mbsource*/
74
+ 4 && G(
75
+ a,
76
+ "mbsource",
77
+ /*mbsource*/
78
+ n[2]
79
+ );
80
+ },
81
+ d(n) {
82
+ n && W(e);
83
+ }
84
+ };
85
+ }
86
+ function Se(t) {
87
+ let e, a = (
88
+ /*$_*/
89
+ t[12]("noGamesAvailable") + ""
90
+ ), n;
91
+ return {
92
+ c() {
93
+ e = v("div"), n = R(a), o(e, "class", "NoGames");
94
+ },
95
+ m(s, u) {
96
+ j(s, e, u), c(e, n);
97
+ },
98
+ p(s, u) {
99
+ u[0] & /*$_*/
100
+ 4096 && a !== (a = /*$_*/
101
+ s[12]("noGamesAvailable") + "") && O(n, a);
102
+ },
103
+ d(s) {
104
+ s && W(e);
105
+ }
106
+ };
107
+ }
108
+ function Ae(t) {
109
+ let e, a = (
110
+ /*$_*/
111
+ t[12]("loading") + ""
112
+ ), n;
113
+ return {
114
+ c() {
115
+ e = v("div"), n = R(a), o(e, "class", "LoadingGames");
116
+ },
117
+ m(s, u) {
118
+ j(s, e, u), c(e, n);
119
+ },
120
+ p(s, u) {
121
+ u[0] & /*$_*/
122
+ 4096 && a !== (a = /*$_*/
123
+ s[12]("loading") + "") && O(n, a);
124
+ },
125
+ d(s) {
126
+ s && W(e);
127
+ }
128
+ };
129
+ }
130
+ function ze(t) {
131
+ let e, a = Z(
132
+ /*casinoGames*/
133
+ t[8]
134
+ ), n = [];
135
+ for (let s = 0; s < a.length; s += 1)
136
+ n[s] = se(ae(t, a, s));
137
+ return {
138
+ c() {
139
+ for (let s = 0; s < n.length; s += 1)
140
+ n[s].c();
141
+ e = _e();
142
+ },
143
+ m(s, u) {
144
+ for (let i = 0; i < n.length; i += 1)
145
+ n[i] && n[i].m(s, u);
146
+ j(s, e, u);
147
+ },
148
+ p(s, u) {
149
+ if (u[0] & /*gameClicked, casinoGames, $_*/
150
+ 20736) {
151
+ a = Z(
152
+ /*casinoGames*/
153
+ s[8]
154
+ );
155
+ let i;
156
+ for (i = 0; i < a.length; i += 1) {
157
+ const m = ae(s, a, i);
158
+ n[i] ? n[i].p(m, u) : (n[i] = se(m), n[i].c(), n[i].m(e.parentNode, e));
159
+ }
160
+ for (; i < n.length; i += 1)
161
+ n[i].d(1);
162
+ n.length = a.length;
163
+ }
164
+ },
165
+ d(s) {
166
+ s && W(e), oe(n, s);
167
+ }
168
+ };
169
+ }
170
+ function se(t) {
171
+ let e, a, n = (
172
+ /*$_*/
173
+ t[12]("playNow") + ""
174
+ ), s, u, i, m, h, y, P, w, g;
175
+ return {
176
+ c() {
177
+ e = v("div"), a = v("span"), s = R(n), u = F(), i = v("ui-image"), P = F(), o(a, "class", "PlayNowButton"), Y(i.src, m = /*item*/
178
+ t[31].thumbnail) || G(i, "src", m), G(i, "width", "132px"), G(i, "height", "100px"), G(i, "alt", h = /*item*/
179
+ t[31].name), G(i, "title", y = /*item*/
180
+ t[31].name), o(e, "class", "item"), o(e, "id", "g_" + /*idx*/
181
+ t[35]), o(e, "role", "button"), o(e, "tabindex", "0");
182
+ },
183
+ m(_, f) {
184
+ j(_, e, f), c(e, a), c(a, s), c(e, u), c(e, i), c(e, P), w || (g = x(e, "click", function() {
185
+ ve(
186
+ /*gameClicked*/
187
+ t[14](
188
+ /*item*/
189
+ t[31]
190
+ )
191
+ ) && t[14](
192
+ /*item*/
193
+ t[31]
194
+ ).apply(this, arguments);
195
+ }), w = !0);
196
+ },
197
+ p(_, f) {
198
+ t = _, f[0] & /*$_*/
199
+ 4096 && n !== (n = /*$_*/
200
+ t[12]("playNow") + "") && O(s, n), f[0] & /*casinoGames*/
201
+ 256 && !Y(i.src, m = /*item*/
202
+ t[31].thumbnail) && G(i, "src", m), f[0] & /*casinoGames*/
203
+ 256 && h !== (h = /*item*/
204
+ t[31].name) && G(i, "alt", h), f[0] & /*casinoGames*/
205
+ 256 && y !== (y = /*item*/
206
+ t[31].name) && G(i, "title", y);
207
+ },
208
+ d(_) {
209
+ _ && W(e), w = !1, g();
210
+ }
211
+ };
212
+ }
213
+ function le(t) {
214
+ let e, a, n, s, u, i, m, h = (
215
+ /*$_*/
216
+ t[12]("previous") + ""
217
+ ), y, P, w, g, _, f, b = (
218
+ /*$_*/
219
+ t[12]("next") + ""
220
+ ), d, L, p, B, M, A, r, T, C;
221
+ return {
222
+ c() {
223
+ e = v("div"), a = v("button"), n = q("svg"), s = q("path"), i = F(), m = v("span"), y = R(h), g = F(), _ = v("button"), f = v("span"), d = R(b), L = F(), p = q("svg"), B = q("path"), o(s, "fill", u = /*hasPreviousPage*/
224
+ t[9] ? "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(m, "class", "TournamentsPaginationControlsText"), o(a, "class", P = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
225
+ t[9] ? "" : "Disabled")), a.disabled = w = /*hasPreviousPage*/
226
+ !t[9], o(f, "class", "TournamentsPaginationControlsText"), o(B, "fill", M = /*hasNextPage*/
227
+ t[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), o(B, "class", "a"), o(B, "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(B, "transform", "translate(-11.246 20.179) rotate(-90)"), o(p, "xmlns", "http://www.w3.org/2000/svg"), o(p, "width", "8"), o(p, "height", "13.992"), o(p, "viewBox", "0 0 8 13.992"), o(_, "class", A = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
228
+ t[10] ? "" : "Disabled")), _.disabled = r = /*hasNextPage*/
229
+ !t[10], o(e, "class", "TournamentsPaginationControlsArea");
230
+ },
231
+ m(k, E) {
232
+ j(k, e, E), c(e, a), c(a, n), c(n, s), c(a, i), c(a, m), c(m, y), c(e, g), c(e, _), c(_, f), c(f, d), c(_, L), c(_, p), c(p, B), T || (C = [
233
+ x(
234
+ a,
235
+ "click",
236
+ /*gotoPage*/
237
+ t[15].bind(this, -1)
238
+ ),
239
+ x(
240
+ _,
241
+ "click",
242
+ /*gotoPage*/
243
+ t[15].bind(this, 1)
244
+ )
245
+ ], T = !0);
246
+ },
247
+ p(k, E) {
248
+ E[0] & /*hasPreviousPage*/
249
+ 512 && u !== (u = /*hasPreviousPage*/
250
+ k[9] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(s, "fill", u), E[0] & /*$_*/
251
+ 4096 && h !== (h = /*$_*/
252
+ k[12]("previous") + "") && O(y, h), E[0] & /*hasPreviousPage*/
253
+ 512 && P !== (P = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
254
+ k[9] ? "" : "Disabled")) && o(a, "class", P), E[0] & /*hasPreviousPage*/
255
+ 512 && w !== (w = /*hasPreviousPage*/
256
+ !k[9]) && (a.disabled = w), E[0] & /*$_*/
257
+ 4096 && b !== (b = /*$_*/
258
+ k[12]("next") + "") && O(d, b), E[0] & /*hasNextPage*/
259
+ 1024 && M !== (M = /*hasNextPage*/
260
+ k[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && o(B, "fill", M), E[0] & /*hasNextPage*/
261
+ 1024 && A !== (A = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
262
+ k[10] ? "" : "Disabled")) && o(_, "class", A), E[0] & /*hasNextPage*/
263
+ 1024 && r !== (r = /*hasNextPage*/
264
+ !k[10]) && (_.disabled = r);
265
+ },
266
+ d(k) {
267
+ k && W(e), T = !1, we(C);
268
+ }
269
+ };
270
+ }
271
+ function ie(t) {
272
+ let e, a = (
273
+ /*item*/
274
+ t[31].rule + ""
275
+ ), n, s, u = (
276
+ /*$_*/
277
+ t[12]("contribution") + ""
278
+ ), i;
279
+ return {
280
+ c() {
281
+ e = v("li"), n = R(a), s = F(), i = R(u), o(e, "part", "li"), o(e, "class", "Market");
282
+ },
283
+ m(m, h) {
284
+ j(m, e, h), c(e, n), c(e, s), c(e, i);
285
+ },
286
+ p(m, h) {
287
+ h[0] & /*sportsRules*/
288
+ 128 && a !== (a = /*item*/
289
+ m[31].rule + "") && O(n, a), h[0] & /*$_*/
290
+ 4096 && u !== (u = /*$_*/
291
+ m[12]("contribution") + "") && O(i, u);
292
+ },
293
+ d(m) {
294
+ m && W(e);
295
+ }
296
+ };
297
+ }
298
+ function Fe(t) {
299
+ var B, M, A;
300
+ let e, a, n, s, u, i, m, h, y, P, w, g = (
301
+ /*tournamentdetails*/
302
+ t[3] && /*tournamentdetails*/
303
+ ((B = t[3].wallet) == null ? void 0 : B.sports) && /*tournamentdetails*/
304
+ ((M = t[3].wallet) == null ? void 0 : M.casino) && ne(t)
305
+ );
306
+ function _(r, T) {
307
+ var C;
308
+ return (
309
+ /*casinoGames*/
310
+ (C = r[8]) != null && C.length ? ze : (
311
+ /*isLoadingGames*/
312
+ r[11] ? Ae : Se
313
+ )
314
+ );
315
+ }
316
+ let f = _(t), b = f(t), d = (
317
+ /*casinoGames*/
318
+ ((A = t[8]) == null ? void 0 : A.length) && !/*isMobileDevice*/
319
+ t[13] && le(t)
320
+ ), L = Z(
321
+ /*sportsRules*/
322
+ t[7]
323
+ ), p = [];
324
+ for (let r = 0; r < L.length; r += 1)
325
+ p[r] = ie(te(t, L, r));
326
+ return {
327
+ c() {
328
+ e = v("div"), g && g.c(), a = F(), n = v("div"), s = v("div"), u = v("div"), b.c(), i = F(), d && d.c(), h = F(), y = v("div"), P = v("ul");
329
+ for (let r = 0; r < p.length; r += 1)
330
+ p[r].c();
331
+ o(u, "class", "GameList items"), o(s, "class", m = "TabContent GamesContent " + /*activeTab*/
332
+ (t[6] != "casino" ? "hidden" : "")), o(P, "class", "SportsPage"), o(y, "class", w = "TabContent GamesContent " + /*activeTab*/
333
+ (t[6] != "sports" ? "hidden" : "")), o(n, "class", "GamesWrapper"), o(
334
+ e,
335
+ "class",
336
+ /*isMobileDevice*/
337
+ t[13] ? "MobileClass" : ""
338
+ );
339
+ },
340
+ m(r, T) {
341
+ j(r, e, T), g && g.m(e, null), c(e, a), c(e, n), c(n, s), c(s, u), b.m(u, null), t[18](u), c(s, i), d && d.m(s, null), c(n, h), c(n, y), c(y, P);
342
+ for (let C = 0; C < p.length; C += 1)
343
+ p[C] && p[C].m(P, null);
344
+ t[19](e);
345
+ },
346
+ p(r, T) {
347
+ var C, k, E;
348
+ if (/*tournamentdetails*/
349
+ r[3] && /*tournamentdetails*/
350
+ ((C = r[3].wallet) != null && C.sports) && /*tournamentdetails*/
351
+ ((k = r[3].wallet) != null && k.casino) ? g ? g.p(r, T) : (g = ne(r), g.c(), g.m(e, a)) : g && (g.d(1), g = null), f === (f = _(r)) && b ? b.p(r, T) : (b.d(1), b = f(r), b && (b.c(), b.m(u, null))), /*casinoGames*/
352
+ (E = r[8]) != null && E.length && !/*isMobileDevice*/
353
+ r[13] ? d ? d.p(r, T) : (d = le(r), d.c(), d.m(s, null)) : d && (d.d(1), d = null), T[0] & /*activeTab*/
354
+ 64 && m !== (m = "TabContent GamesContent " + /*activeTab*/
355
+ (r[6] != "casino" ? "hidden" : "")) && o(s, "class", m), T[0] & /*$_, sportsRules*/
356
+ 4224) {
357
+ L = Z(
358
+ /*sportsRules*/
359
+ r[7]
360
+ );
361
+ let N;
362
+ for (N = 0; N < L.length; N += 1) {
363
+ const S = te(r, L, N);
364
+ p[N] ? p[N].p(S, T) : (p[N] = ie(S), p[N].c(), p[N].m(P, null));
365
+ }
366
+ for (; N < p.length; N += 1)
367
+ p[N].d(1);
368
+ p.length = L.length;
369
+ }
370
+ T[0] & /*activeTab*/
371
+ 64 && w !== (w = "TabContent GamesContent " + /*activeTab*/
372
+ (r[6] != "sports" ? "hidden" : "")) && o(y, "class", w);
373
+ },
374
+ i: Q,
375
+ o: Q,
376
+ d(r) {
377
+ r && W(e), g && g.d(), b.d(), t[18](null), d && d.d(), oe(p, r), t[19](null);
378
+ }
379
+ };
380
+ }
381
+ let J = "gameTab";
382
+ function We(t, e, a) {
383
+ let n;
384
+ pe(t, Le, (l) => a(12, n = l));
385
+ let { clientstyling: s = "" } = e, { clientstylingurl: u = "" } = e, { mbsource: i } = e, { translationurl: m } = e, { lang: h = "en" } = e, y = "casino", P = [], w = [], g, _ = window.navigator.userAgent, f, b, d, L = Ee(_);
386
+ Ne({ withLocale: "en", translations: {} });
387
+ const p = () => {
388
+ fetch(m).then((l) => l.json()).then((l) => {
389
+ Object.keys(l).forEach((z) => {
390
+ $(z, l[z]);
391
+ });
392
+ }).catch((l) => {
393
+ console.log(l);
394
+ });
395
+ };
396
+ Object.keys(ee).forEach((l) => {
397
+ $(l, ee[l]);
398
+ });
399
+ const B = () => {
400
+ Be(h), setTimeout(
401
+ () => {
402
+ M();
403
+ },
404
+ 10
405
+ );
406
+ }, M = () => {
407
+ window.postMessage(
408
+ {
409
+ type: "TournamentsTabsLocalize",
410
+ tabTitleTranslations: {
411
+ casino: n("casino"),
412
+ sports: n("sports")
413
+ }
414
+ },
415
+ window.location.href
416
+ );
417
+ }, A = (l) => {
418
+ window.postMessage(
419
+ {
420
+ type: "TournamentGameAction",
421
+ gameId: l.id,
422
+ name: l.name,
423
+ launchUrl: l.launchUrl
424
+ },
425
+ window.location.href
426
+ );
427
+ };
428
+ let r = !1, T = !0, C = !1;
429
+ const k = (l) => {
430
+ !r && l === -1 || !T && l === 1 || (a(11, C = !0), a(8, w = []), window.postMessage(
431
+ {
432
+ type: "TournamentsLoadMoreGames",
433
+ id: g.id,
434
+ isNext: l > 0
435
+ },
436
+ window.location.href
437
+ ));
438
+ }, E = () => {
439
+ var z, D, X;
440
+ a(8, w = ((z = g.games) == null ? void 0 : z.items) || []), K();
441
+ const l = (X = (D = g.metadata) == null ? void 0 : D.sports) == null ? void 0 : X.rules;
442
+ if (l) {
443
+ a(6, y = g.wallet.casino ? "casino" : "sports");
444
+ try {
445
+ const U = JSON.parse(l);
446
+ a(7, P = U[h] || U["*"]);
447
+ } catch (U) {
448
+ console.error("Error parsing tournament rules", U);
449
+ }
450
+ }
451
+ }, N = (l) => {
452
+ var D;
453
+ if (!l.data || !l.data.type)
454
+ return;
455
+ const z = l.data.tid || "";
456
+ switch (l.data.type) {
457
+ case "TournamentsTabSwitch":
458
+ z === J && a(6, y = l.data.tab);
459
+ break;
460
+ case "TournamentsTabListenerLoaded":
461
+ M();
462
+ break;
463
+ case "TournamentsGamesUpdate":
464
+ a(3, g = l.data.details), E();
465
+ break;
466
+ case "TournamentsLoadedMoreGames":
467
+ L ? (D = l.data.games) != null && D.items.length && (a(8, w = [...w, ...l.data.games.items]), K()) : (a(11, C = !1), a(8, w = [...l.data.games.items]), a(10, T = l.data.hasNextPage), a(9, r = l.data.hasPreviousPage));
468
+ break;
469
+ default:
470
+ console.warn(`Unhandled message type: ${l.data.type}`);
471
+ break;
472
+ }
473
+ };
474
+ let S;
475
+ const re = (l) => {
476
+ S = l == null ? void 0 : l.lastElementChild, !(!L || d || !l || !S) && (d = new IntersectionObserver((z) => {
477
+ z.forEach((D) => {
478
+ D.isIntersecting && (d.unobserve(S), window.postMessage(
479
+ {
480
+ type: "TournamentsLoadMoreGames",
481
+ id: g.id,
482
+ isNext: !0
483
+ },
484
+ window.location.href
485
+ ));
486
+ });
487
+ }));
488
+ }, K = () => {
489
+ !L || !S || !d || !w.length || (d.unobserve(S), S = b.lastElementChild, d.observe(S));
490
+ };
491
+ he(() => L && d && d.disconnect()), be(() => (window.postMessage(
492
+ {
493
+ type: "TournamentsGamesListenerLoaded",
494
+ gamesTabTid: J
495
+ },
496
+ window.location.href
497
+ ), window.addEventListener("message", N, !1), () => {
498
+ window.removeEventListener("message", N);
499
+ }));
500
+ function ue(l) {
501
+ V[l ? "unshift" : "push"](() => {
502
+ b = l, a(5, b);
503
+ });
504
+ }
505
+ function ce(l) {
506
+ V[l ? "unshift" : "push"](() => {
507
+ f = l, a(4, f);
508
+ });
509
+ }
510
+ return t.$$set = (l) => {
511
+ "clientstyling" in l && a(0, s = l.clientstyling), "clientstylingurl" in l && a(1, u = l.clientstylingurl), "mbsource" in l && a(2, i = l.mbsource), "translationurl" in l && a(16, m = l.translationurl), "lang" in l && a(17, h = l.lang);
512
+ }, t.$$.update = () => {
513
+ t.$$.dirty[0] & /*tournamentdetails*/
514
+ 8 && g && E(), t.$$.dirty[0] & /*lang*/
515
+ 131072 && h && B(), t.$$.dirty[0] & /*translationurl*/
516
+ 65536 && m && p(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
517
+ 17 && s && f && ye(f, s), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
518
+ 18 && u && f && Te(f, u), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
519
+ 20 && i && f && Ge(f, `${i}.Style`), t.$$.dirty[0] & /*gameListEle*/
520
+ 32 && b && re(b);
521
+ }, [
522
+ s,
523
+ u,
524
+ i,
525
+ g,
526
+ f,
527
+ b,
528
+ y,
529
+ P,
530
+ w,
531
+ r,
532
+ T,
533
+ C,
534
+ n,
535
+ L,
536
+ A,
537
+ k,
538
+ m,
539
+ h,
540
+ ue,
541
+ ce
542
+ ];
543
+ }
544
+ class je extends me {
545
+ constructor(e) {
546
+ super(), ge(
547
+ this,
548
+ e,
549
+ We,
550
+ Fe,
551
+ de,
552
+ {
553
+ clientstyling: 0,
554
+ clientstylingurl: 1,
555
+ mbsource: 2,
556
+ translationurl: 16,
557
+ lang: 17
558
+ },
559
+ Me,
560
+ [-1, -1]
561
+ );
562
+ }
563
+ get clientstyling() {
564
+ return this.$$.ctx[0];
565
+ }
566
+ set clientstyling(e) {
567
+ this.$$set({ clientstyling: e }), I();
568
+ }
569
+ get clientstylingurl() {
570
+ return this.$$.ctx[1];
571
+ }
572
+ set clientstylingurl(e) {
573
+ this.$$set({ clientstylingurl: e }), I();
574
+ }
575
+ get mbsource() {
576
+ return this.$$.ctx[2];
577
+ }
578
+ set mbsource(e) {
579
+ this.$$set({ mbsource: e }), I();
580
+ }
581
+ get translationurl() {
582
+ return this.$$.ctx[16];
583
+ }
584
+ set translationurl(e) {
585
+ this.$$set({ translationurl: e }), I();
586
+ }
587
+ get lang() {
588
+ return this.$$.ctx[17];
589
+ }
590
+ set lang(e) {
591
+ this.$$set({ lang: e }), I();
592
+ }
593
+ }
594
+ Ce(je, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
595
+ export {
596
+ je as default
597
+ };