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