@everymatrix/casino-tournaments-page-controller 1.75.1 → 1.76.0
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/{CasinoTournamentsPageController-CnJI83A9.cjs → CasinoTournamentsPageController-Czj_9f9q.cjs} +1 -1
- package/components/{CasinoTournamentsPageController-C-Uk-Tt2.js → CasinoTournamentsPageController-DIjImG1k.js} +5 -5
- package/components/{CasinoTournamentsPageController-DU4PycZ3.js → CasinoTournamentsPageController-LRHk1OJ4.js} +5 -5
- package/components/{CasinoTournamentsTab-DlJcJoiK.js → CasinoTournamentsTab-BRIU3NDv.js} +81 -78
- package/components/{CasinoTournamentsTab-CoYUpFyg.cjs → CasinoTournamentsTab-BdBIehQV.cjs} +1 -1
- package/components/{CasinoTournamentsTab-C4QtfmRe.js → CasinoTournamentsTab-cAmru9Ol.js} +69 -66
- package/components/{CasinoTournamentsTable-ePNeu0bk.cjs → CasinoTournamentsTable-3AOlf9hp.cjs} +1 -1
- package/components/{CasinoTournamentsTable-CmLZmr_A.js → CasinoTournamentsTable-D0-M8VIr.js} +1 -1
- package/components/{CasinoTournamentsTable-DL3jb8JX.js → CasinoTournamentsTable-RfAIxnuW.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-4Xu_6A3t.js → CasinoTournamentsThumbnail-CaIyyUlW.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-DnrbR7gJ.js → CasinoTournamentsThumbnail-Cp_sIUHy.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-B9Z47xXW.cjs → CasinoTournamentsThumbnail-D1JyrHrY.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-CtPuPaVt.js → CasinoTournamentsThumbnailController-30_8iqch.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-D1ya-JlU.cjs → CasinoTournamentsThumbnailController-CjJaE6DJ.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-BcU1gfA9.js → CasinoTournamentsThumbnailController-wrPgna6T.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-DhymbgYk.js → CasinoTournamentsThumbnailDuration-BqNqjxsL.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-DN4hpAUZ.cjs → CasinoTournamentsThumbnailDuration-CMPeZsoj.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-CPqvLc7F.js → CasinoTournamentsThumbnailDuration-ZnRFP_h_.js} +1 -1
- package/components/CasinoTournamentsThumbnailGames-BQSFsb7H.js +456 -0
- package/components/CasinoTournamentsThumbnailGames-DS3GmPBl.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGames-Q4Gg_Pxp.js +460 -0
- package/components/{CasinoTournamentsThumbnailGamesSlider-DXiYGISF.js → CasinoTournamentsThumbnailGamesSlider-BAXfTifG.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-DPUNfSaG.js → CasinoTournamentsThumbnailGamesSlider-CFd0JjFY.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-B9oGcy0I.cjs → CasinoTournamentsThumbnailGamesSlider-DmOtGPsI.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-D5dPFiRS.cjs → CasinoTournamentsThumbnailPrizes-CgS9w2Aq.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-ar2_tNn2.js → CasinoTournamentsThumbnailPrizes-Dz4-wWGv.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-PO28MAQZ.js → CasinoTournamentsThumbnailPrizes-pZYtadAx.js} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-DYz79cxO.cjs → CasinoTournamentsThumbnailRule-BaJvRUJL.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-DllZAjJM.js → CasinoTournamentsThumbnailRule-BtlW7eqt.js} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-Co-wkllh.js → CasinoTournamentsThumbnailRule-C2uFR1vt.js} +1 -1
- 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/components/CasinoTournamentsThumbnailGames-B5H5TlcP.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGames-BhtnsKEe.js +0 -416
- package/components/CasinoTournamentsThumbnailGames-CoyCcHGz.js +0 -413
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import { S as X, b as x, s as Q, f as A, d as V, x as M, n as R, e as C, y as J, j as b, k as S, l as h, p as w, o as z, u as Y, v as Z, h as g, g as W, t as O, w as $, z as ee, A as j, m as te, i as ae, C as ne, D as se, E as ie, c as le } from "./CasinoTournamentsDetails-CV5jyv8g.js";
|
|
2
|
+
import { $ as P, c as oe, a as re, i as ce, b as ue } from "./CasinoTournamentsPageController-DIjImG1k.js";
|
|
3
|
+
import "../stencil/ui-image-CXqPvnQ2.js";
|
|
4
|
+
function me({ withLocale: t, translations: e }) {
|
|
5
|
+
P.subscribe((a) => {
|
|
6
|
+
a == null && (oe.set(e), P.set(t));
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function E(t, e) {
|
|
10
|
+
re(t, e);
|
|
11
|
+
}
|
|
12
|
+
function de(t) {
|
|
13
|
+
P.set(t);
|
|
14
|
+
}
|
|
15
|
+
const F = {
|
|
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 fe(t) {
|
|
26
|
+
V(t, "svelte-grpqez", "*,*::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 .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames{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)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}");
|
|
27
|
+
}
|
|
28
|
+
function U(t, e, a) {
|
|
29
|
+
const n = t.slice();
|
|
30
|
+
return n[20] = e[a], n;
|
|
31
|
+
}
|
|
32
|
+
function I(t, e, a) {
|
|
33
|
+
const n = t.slice();
|
|
34
|
+
return n[20] = e[a], n;
|
|
35
|
+
}
|
|
36
|
+
function q(t) {
|
|
37
|
+
let e, a;
|
|
38
|
+
return {
|
|
39
|
+
c() {
|
|
40
|
+
e = w("div"), a = w("casino-tournaments-tab"), g(a, "part", "TournamentGames"), g(a, "tabs", "casino,sports"), g(a, "tab", "casino"), g(a, "tid", B), 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
|
+
), b(e, "class", "GamesTabNav");
|
|
56
|
+
},
|
|
57
|
+
m(n, s) {
|
|
58
|
+
S(n, e, s), h(e, a);
|
|
59
|
+
},
|
|
60
|
+
p(n, s) {
|
|
61
|
+
s & /*clientstyling*/
|
|
62
|
+
1 && g(
|
|
63
|
+
a,
|
|
64
|
+
"clientstyling",
|
|
65
|
+
/*clientstyling*/
|
|
66
|
+
n[0]
|
|
67
|
+
), s & /*clientstylingurl*/
|
|
68
|
+
2 && g(
|
|
69
|
+
a,
|
|
70
|
+
"clientstylingurl",
|
|
71
|
+
/*clientstylingurl*/
|
|
72
|
+
n[1]
|
|
73
|
+
), s & /*mbsource*/
|
|
74
|
+
4 && g(
|
|
75
|
+
a,
|
|
76
|
+
"mbsource",
|
|
77
|
+
/*mbsource*/
|
|
78
|
+
n[2]
|
|
79
|
+
);
|
|
80
|
+
},
|
|
81
|
+
d(n) {
|
|
82
|
+
n && C(e);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function ge(t) {
|
|
87
|
+
let e, a = (
|
|
88
|
+
/*$_*/
|
|
89
|
+
t[8]("noGamesAvailable") + ""
|
|
90
|
+
), n;
|
|
91
|
+
return {
|
|
92
|
+
c() {
|
|
93
|
+
e = w("div"), n = O(a), b(e, "class", "NoGames");
|
|
94
|
+
},
|
|
95
|
+
m(s, r) {
|
|
96
|
+
S(s, e, r), h(e, n);
|
|
97
|
+
},
|
|
98
|
+
p(s, r) {
|
|
99
|
+
r & /*$_*/
|
|
100
|
+
256 && a !== (a = /*$_*/
|
|
101
|
+
s[8]("noGamesAvailable") + "") && W(n, a);
|
|
102
|
+
},
|
|
103
|
+
d(s) {
|
|
104
|
+
s && C(e);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function pe(t) {
|
|
109
|
+
let e, a = M(
|
|
110
|
+
/*casinoGames*/
|
|
111
|
+
t[7]
|
|
112
|
+
), n = [];
|
|
113
|
+
for (let s = 0; s < a.length; s += 1)
|
|
114
|
+
n[s] = D(I(t, a, s));
|
|
115
|
+
return {
|
|
116
|
+
c() {
|
|
117
|
+
for (let s = 0; s < n.length; s += 1)
|
|
118
|
+
n[s].c();
|
|
119
|
+
e = ee();
|
|
120
|
+
},
|
|
121
|
+
m(s, r) {
|
|
122
|
+
for (let i = 0; i < n.length; i += 1)
|
|
123
|
+
n[i] && n[i].m(s, r);
|
|
124
|
+
S(s, e, r);
|
|
125
|
+
},
|
|
126
|
+
p(s, r) {
|
|
127
|
+
if (r & /*gameClicked, casinoGames, $_*/
|
|
128
|
+
1408) {
|
|
129
|
+
a = M(
|
|
130
|
+
/*casinoGames*/
|
|
131
|
+
s[7]
|
|
132
|
+
);
|
|
133
|
+
let i;
|
|
134
|
+
for (i = 0; i < a.length; i += 1) {
|
|
135
|
+
const u = I(s, a, i);
|
|
136
|
+
n[i] ? n[i].p(u, r) : (n[i] = D(u), n[i].c(), n[i].m(e.parentNode, e));
|
|
137
|
+
}
|
|
138
|
+
for (; i < n.length; i += 1)
|
|
139
|
+
n[i].d(1);
|
|
140
|
+
n.length = a.length;
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
d(s) {
|
|
144
|
+
s && C(e), J(n, s);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function D(t) {
|
|
149
|
+
let e, a, n = (
|
|
150
|
+
/*$_*/
|
|
151
|
+
t[8]("playNow") + ""
|
|
152
|
+
), s, r, i, u, m, _, G, d, y;
|
|
153
|
+
return {
|
|
154
|
+
c() {
|
|
155
|
+
e = w("div"), a = w("span"), s = O(n), r = z(), i = w("ui-image"), G = z(), b(a, "class", "PlayNowButton"), j(i.src, u = /*item*/
|
|
156
|
+
t[20].thumbnail) || g(i, "src", u), g(i, "width", "132px"), g(i, "height", "100px"), g(i, "alt", m = /*item*/
|
|
157
|
+
t[20].name), g(i, "title", _ = /*item*/
|
|
158
|
+
t[20].name), b(e, "class", "item"), b(e, "role", "button"), b(e, "tabindex", "0");
|
|
159
|
+
},
|
|
160
|
+
m(v, c) {
|
|
161
|
+
S(v, e, c), h(e, a), h(a, s), h(e, r), h(e, i), h(e, G), d || (y = te(e, "click", function() {
|
|
162
|
+
ae(
|
|
163
|
+
/*gameClicked*/
|
|
164
|
+
t[10](
|
|
165
|
+
/*item*/
|
|
166
|
+
t[20]
|
|
167
|
+
)
|
|
168
|
+
) && t[10](
|
|
169
|
+
/*item*/
|
|
170
|
+
t[20]
|
|
171
|
+
).apply(this, arguments);
|
|
172
|
+
}), d = !0);
|
|
173
|
+
},
|
|
174
|
+
p(v, c) {
|
|
175
|
+
t = v, c & /*$_*/
|
|
176
|
+
256 && n !== (n = /*$_*/
|
|
177
|
+
t[8]("playNow") + "") && W(s, n), c & /*casinoGames*/
|
|
178
|
+
128 && !j(i.src, u = /*item*/
|
|
179
|
+
t[20].thumbnail) && g(i, "src", u), c & /*casinoGames*/
|
|
180
|
+
128 && m !== (m = /*item*/
|
|
181
|
+
t[20].name) && g(i, "alt", m), c & /*casinoGames*/
|
|
182
|
+
128 && _ !== (_ = /*item*/
|
|
183
|
+
t[20].name) && g(i, "title", _);
|
|
184
|
+
},
|
|
185
|
+
d(v) {
|
|
186
|
+
v && C(e), d = !1, y();
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function H(t) {
|
|
191
|
+
let e, a = (
|
|
192
|
+
/*item*/
|
|
193
|
+
t[20].rule + ""
|
|
194
|
+
), n, s, r = (
|
|
195
|
+
/*$_*/
|
|
196
|
+
t[8]("contribution") + ""
|
|
197
|
+
), i;
|
|
198
|
+
return {
|
|
199
|
+
c() {
|
|
200
|
+
e = w("li"), n = O(a), s = z(), i = O(r), b(e, "part", "li"), b(e, "class", "Market");
|
|
201
|
+
},
|
|
202
|
+
m(u, m) {
|
|
203
|
+
S(u, e, m), h(e, n), h(e, s), h(e, i);
|
|
204
|
+
},
|
|
205
|
+
p(u, m) {
|
|
206
|
+
m & /*sportsRules*/
|
|
207
|
+
64 && a !== (a = /*item*/
|
|
208
|
+
u[20].rule + "") && W(n, a), m & /*$_*/
|
|
209
|
+
256 && r !== (r = /*$_*/
|
|
210
|
+
u[8]("contribution") + "") && W(i, r);
|
|
211
|
+
},
|
|
212
|
+
d(u) {
|
|
213
|
+
u && C(e);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
function he(t) {
|
|
218
|
+
let e, a, n, s, r, i, u, m, _, G, d = (
|
|
219
|
+
/*tournamentdetails*/
|
|
220
|
+
t[3] && /*tournamentdetails*/
|
|
221
|
+
t[3].wallet?.sports && /*tournamentdetails*/
|
|
222
|
+
t[3].wallet?.casino && q(t)
|
|
223
|
+
);
|
|
224
|
+
function y(o, T) {
|
|
225
|
+
return (
|
|
226
|
+
/*casinoGames*/
|
|
227
|
+
o[7]?.length ? pe : ge
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
let v = y(t), c = v(t), N = M(
|
|
231
|
+
/*sportsRules*/
|
|
232
|
+
t[6]
|
|
233
|
+
), p = [];
|
|
234
|
+
for (let o = 0; o < N.length; o += 1)
|
|
235
|
+
p[o] = H(U(t, N, o));
|
|
236
|
+
return {
|
|
237
|
+
c() {
|
|
238
|
+
e = w("div"), d && d.c(), a = z(), n = w("div"), s = w("div"), r = w("div"), c.c(), u = z(), m = w("div"), _ = w("ul");
|
|
239
|
+
for (let o = 0; o < p.length; o += 1)
|
|
240
|
+
p[o].c();
|
|
241
|
+
b(r, "class", "GameList items"), b(s, "class", i = "TabContent GamesContent " + /*activeTab*/
|
|
242
|
+
(t[5] != "casino" ? "hidden" : "")), b(_, "class", "SportsPage"), b(m, "class", G = "TabContent GamesContent " + /*activeTab*/
|
|
243
|
+
(t[5] != "sports" ? "hidden" : "")), b(n, "class", "GamesWrapper"), b(e, "class", ce(
|
|
244
|
+
/*userAgent*/
|
|
245
|
+
t[9]
|
|
246
|
+
) ? "MobileClass" : "");
|
|
247
|
+
},
|
|
248
|
+
m(o, T) {
|
|
249
|
+
S(o, e, T), d && d.m(e, null), h(e, a), h(e, n), h(n, s), h(s, r), c.m(r, null), h(n, u), h(n, m), h(m, _);
|
|
250
|
+
for (let f = 0; f < p.length; f += 1)
|
|
251
|
+
p[f] && p[f].m(_, null);
|
|
252
|
+
t[13](e);
|
|
253
|
+
},
|
|
254
|
+
p(o, [T]) {
|
|
255
|
+
if (/*tournamentdetails*/
|
|
256
|
+
o[3] && /*tournamentdetails*/
|
|
257
|
+
o[3].wallet?.sports && /*tournamentdetails*/
|
|
258
|
+
o[3].wallet?.casino ? d ? d.p(o, T) : (d = q(o), d.c(), d.m(e, a)) : d && (d.d(1), d = null), v === (v = y(o)) && c ? c.p(o, T) : (c.d(1), c = v(o), c && (c.c(), c.m(r, null))), T & /*activeTab*/
|
|
259
|
+
32 && i !== (i = "TabContent GamesContent " + /*activeTab*/
|
|
260
|
+
(o[5] != "casino" ? "hidden" : "")) && b(s, "class", i), T & /*$_, sportsRules*/
|
|
261
|
+
320) {
|
|
262
|
+
N = M(
|
|
263
|
+
/*sportsRules*/
|
|
264
|
+
o[6]
|
|
265
|
+
);
|
|
266
|
+
let f;
|
|
267
|
+
for (f = 0; f < N.length; f += 1) {
|
|
268
|
+
const L = U(o, N, f);
|
|
269
|
+
p[f] ? p[f].p(L, T) : (p[f] = H(L), p[f].c(), p[f].m(_, null));
|
|
270
|
+
}
|
|
271
|
+
for (; f < p.length; f += 1)
|
|
272
|
+
p[f].d(1);
|
|
273
|
+
p.length = N.length;
|
|
274
|
+
}
|
|
275
|
+
T & /*activeTab*/
|
|
276
|
+
32 && G !== (G = "TabContent GamesContent " + /*activeTab*/
|
|
277
|
+
(o[5] != "sports" ? "hidden" : "")) && b(m, "class", G);
|
|
278
|
+
},
|
|
279
|
+
i: R,
|
|
280
|
+
o: R,
|
|
281
|
+
d(o) {
|
|
282
|
+
o && C(e), d && d.d(), c.d(), J(p, o), t[13](null);
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
let B = "gameTab";
|
|
287
|
+
function be(t, e, a) {
|
|
288
|
+
let n;
|
|
289
|
+
Y(t, ue, (l) => a(8, n = l));
|
|
290
|
+
let { clientstyling: s = "" } = e, { clientstylingurl: r = "" } = e, { mbsource: i } = e, { translationurl: u } = e, { lang: m = "en" } = e, _ = "casino", G = [], d = [], y, v = window.navigator.userAgent, c;
|
|
291
|
+
me({ withLocale: "en", translations: {} });
|
|
292
|
+
const N = () => {
|
|
293
|
+
fetch(u).then((l) => l.json()).then((l) => {
|
|
294
|
+
Object.keys(l).forEach((k) => {
|
|
295
|
+
E(k, l[k]);
|
|
296
|
+
});
|
|
297
|
+
}).catch((l) => {
|
|
298
|
+
console.log(l);
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
Object.keys(F).forEach((l) => {
|
|
302
|
+
E(l, F[l]);
|
|
303
|
+
});
|
|
304
|
+
const p = () => {
|
|
305
|
+
de(m), setTimeout(
|
|
306
|
+
() => {
|
|
307
|
+
o();
|
|
308
|
+
},
|
|
309
|
+
10
|
|
310
|
+
);
|
|
311
|
+
}, o = () => {
|
|
312
|
+
window.postMessage(
|
|
313
|
+
{
|
|
314
|
+
type: "TournamentsTabsLocalize",
|
|
315
|
+
tabTitleTranslations: {
|
|
316
|
+
casino: n("casino"),
|
|
317
|
+
sports: n("sports")
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
window.location.href
|
|
321
|
+
);
|
|
322
|
+
}, T = (l) => {
|
|
323
|
+
window.postMessage(
|
|
324
|
+
{
|
|
325
|
+
type: "TournamentGameAction",
|
|
326
|
+
gameId: l.id,
|
|
327
|
+
name: l.name,
|
|
328
|
+
launchUrl: l.launchUrl
|
|
329
|
+
},
|
|
330
|
+
window.location.href
|
|
331
|
+
);
|
|
332
|
+
}, f = () => {
|
|
333
|
+
a(7, d = y.games?.items || []);
|
|
334
|
+
const l = y.metadata?.sports?.rules;
|
|
335
|
+
if (l) {
|
|
336
|
+
a(5, _ = y.wallet.casino ? "casino" : "sports");
|
|
337
|
+
try {
|
|
338
|
+
const k = JSON.parse(l);
|
|
339
|
+
a(6, G = k[m] || k["*"]);
|
|
340
|
+
} catch (k) {
|
|
341
|
+
console.error("Error parsing tournament rules", k);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}, L = (l) => {
|
|
345
|
+
if (!l.data || !l.data.type)
|
|
346
|
+
return;
|
|
347
|
+
const k = l.data.tid || "";
|
|
348
|
+
switch (l.data.type) {
|
|
349
|
+
case "TournamentsTabSwitch":
|
|
350
|
+
k === B && a(5, _ = l.data.tab);
|
|
351
|
+
break;
|
|
352
|
+
case "TournamentsTabListenerLoaded":
|
|
353
|
+
o();
|
|
354
|
+
break;
|
|
355
|
+
case "TournamentsGamesUpdate":
|
|
356
|
+
a(3, y = l.data.details), f();
|
|
357
|
+
break;
|
|
358
|
+
default:
|
|
359
|
+
console.warn(`Unhandled message type: ${l.data.type}`);
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
Z(() => (window.postMessage(
|
|
364
|
+
{
|
|
365
|
+
type: "TournamentsGamesListenerLoaded",
|
|
366
|
+
gamesTabTid: B
|
|
367
|
+
},
|
|
368
|
+
window.location.href
|
|
369
|
+
), window.addEventListener("message", L, !1), () => {
|
|
370
|
+
window.removeEventListener("message", L);
|
|
371
|
+
}));
|
|
372
|
+
function K(l) {
|
|
373
|
+
$[l ? "unshift" : "push"](() => {
|
|
374
|
+
c = l, a(4, c);
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
return t.$$set = (l) => {
|
|
378
|
+
"clientstyling" in l && a(0, s = l.clientstyling), "clientstylingurl" in l && a(1, r = l.clientstylingurl), "mbsource" in l && a(2, i = l.mbsource), "translationurl" in l && a(11, u = l.translationurl), "lang" in l && a(12, m = l.lang);
|
|
379
|
+
}, t.$$.update = () => {
|
|
380
|
+
t.$$.dirty & /*tournamentdetails*/
|
|
381
|
+
8 && y && f(), t.$$.dirty & /*lang*/
|
|
382
|
+
4096 && m && p(), t.$$.dirty & /*translationurl*/
|
|
383
|
+
2048 && u && N(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
384
|
+
17 && s && c && ne(c, s), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
385
|
+
18 && r && c && se(c, r), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
386
|
+
20 && i && c && ie(c, `${i}.Style`);
|
|
387
|
+
}, [
|
|
388
|
+
s,
|
|
389
|
+
r,
|
|
390
|
+
i,
|
|
391
|
+
y,
|
|
392
|
+
c,
|
|
393
|
+
_,
|
|
394
|
+
G,
|
|
395
|
+
d,
|
|
396
|
+
n,
|
|
397
|
+
v,
|
|
398
|
+
T,
|
|
399
|
+
u,
|
|
400
|
+
m,
|
|
401
|
+
K
|
|
402
|
+
];
|
|
403
|
+
}
|
|
404
|
+
class _e extends X {
|
|
405
|
+
constructor(e) {
|
|
406
|
+
super(), x(
|
|
407
|
+
this,
|
|
408
|
+
e,
|
|
409
|
+
be,
|
|
410
|
+
he,
|
|
411
|
+
Q,
|
|
412
|
+
{
|
|
413
|
+
clientstyling: 0,
|
|
414
|
+
clientstylingurl: 1,
|
|
415
|
+
mbsource: 2,
|
|
416
|
+
translationurl: 11,
|
|
417
|
+
lang: 12
|
|
418
|
+
},
|
|
419
|
+
fe
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
get clientstyling() {
|
|
423
|
+
return this.$$.ctx[0];
|
|
424
|
+
}
|
|
425
|
+
set clientstyling(e) {
|
|
426
|
+
this.$$set({ clientstyling: e }), A();
|
|
427
|
+
}
|
|
428
|
+
get clientstylingurl() {
|
|
429
|
+
return this.$$.ctx[1];
|
|
430
|
+
}
|
|
431
|
+
set clientstylingurl(e) {
|
|
432
|
+
this.$$set({ clientstylingurl: e }), A();
|
|
433
|
+
}
|
|
434
|
+
get mbsource() {
|
|
435
|
+
return this.$$.ctx[2];
|
|
436
|
+
}
|
|
437
|
+
set mbsource(e) {
|
|
438
|
+
this.$$set({ mbsource: e }), A();
|
|
439
|
+
}
|
|
440
|
+
get translationurl() {
|
|
441
|
+
return this.$$.ctx[11];
|
|
442
|
+
}
|
|
443
|
+
set translationurl(e) {
|
|
444
|
+
this.$$set({ translationurl: e }), A();
|
|
445
|
+
}
|
|
446
|
+
get lang() {
|
|
447
|
+
return this.$$.ctx[12];
|
|
448
|
+
}
|
|
449
|
+
set lang(e) {
|
|
450
|
+
this.$$set({ lang: e }), A();
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
le(_e, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
|
|
454
|
+
export {
|
|
455
|
+
_e as default
|
|
456
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),G=require("./CasinoTournamentsPageController-Czj_9f9q.cjs");require("../stencil/ui-image-Bk8cIvcH.cjs");function j({withLocale:a,translations:t}){G.$locale.subscribe(n=>{n==null&&(G.$dictionary.set(t),G.$locale.set(a))})}function M(a,t){G.addMessages(a,t)}function F(a){G.$locale.set(a)}const z={en:{loading:"Loading, please wait ...",playNow:"Play Now",casino:"CASINO",sports:"SPORTSBOOK",contribution:"Contribution",noGamesAvailable:"No games have been configured yet!"}};function U(a){e.append_styles(a,"svelte-grpqez","*,*::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 .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames{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)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}")}function O(a,t,n){const s=a.slice();return s[20]=t[n],s}function P(a,t,n){const s=a.slice();return s[20]=t[n],s}function W(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",L),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&1&&e.set_custom_element_data(n,"clientstyling",s[0]),l&2&&e.set_custom_element_data(n,"clientstylingurl",s[1]),l&4&&e.set_custom_element_data(n,"mbsource",s[2])},d(s){s&&e.detach(t)}}}function E(a){let t,n=a[8]("noGamesAvailable")+"",s;return{c(){t=e.element("div"),s=e.text(n),e.attr(t,"class","NoGames")},m(l,c){e.insert(l,t,c),e.append(t,s)},p(l,c){c&256&&n!==(n=l[8]("noGamesAvailable")+"")&&e.set_data(s,n)},d(l){l&&e.detach(t)}}}function I(a){let t,n=e.ensure_array_like(a[7]),s=[];for(let l=0;l<n.length;l+=1)s[l]=q(P(a,n,l));return{c(){for(let l=0;l<s.length;l+=1)s[l].c();t=e.empty()},m(l,c){for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(l,c);e.insert(l,t,c)},p(l,c){if(c&1408){n=e.ensure_array_like(l[7]);let i;for(i=0;i<n.length;i+=1){const u=P(l,n,i);s[i]?s[i].p(u,c):(s[i]=q(u),s[i].c(),s[i].m(t.parentNode,t))}for(;i<s.length;i+=1)s[i].d(1);s.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(s,l)}}}function q(a){let t,n,s=a[8]("playNow")+"",l,c,i,u,d,g,v,p,h;return{c(){t=e.element("div"),n=e.element("span"),l=e.text(s),c=e.space(),i=e.element("ui-image"),v=e.space(),e.attr(n,"class","PlayNowButton"),e.src_url_equal(i.src,u=a[20].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",d=a[20].name),e.set_custom_element_data(i,"title",g=a[20].name),e.attr(t,"class","item"),e.attr(t,"role","button"),e.attr(t,"tabindex","0")},m(b,m){e.insert(b,t,m),e.append(t,n),e.append(n,l),e.append(t,c),e.append(t,i),e.append(t,v),p||(h=e.listen(t,"click",function(){e.is_function(a[10](a[20]))&&a[10](a[20]).apply(this,arguments)}),p=!0)},p(b,m){a=b,m&256&&s!==(s=a[8]("playNow")+"")&&e.set_data(l,s),m&128&&!e.src_url_equal(i.src,u=a[20].thumbnail)&&e.set_custom_element_data(i,"src",u),m&128&&d!==(d=a[20].name)&&e.set_custom_element_data(i,"alt",d),m&128&&g!==(g=a[20].name)&&e.set_custom_element_data(i,"title",g)},d(b){b&&e.detach(t),p=!1,h()}}}function B(a){let t,n=a[20].rule+"",s,l,c=a[8]("contribution")+"",i;return{c(){t=e.element("li"),s=e.text(n),l=e.space(),i=e.text(c),e.attr(t,"part","li"),e.attr(t,"class","Market")},m(u,d){e.insert(u,t,d),e.append(t,s),e.append(t,l),e.append(t,i)},p(u,d){d&64&&n!==(n=u[20].rule+"")&&e.set_data(s,n),d&256&&c!==(c=u[8]("contribution")+"")&&e.set_data(i,c)},d(u){u&&e.detach(t)}}}function x(a){var k,N;let t,n,s,l,c,i,u,d,g,v,p=a[3]&&((k=a[3].wallet)==null?void 0:k.sports)&&((N=a[3].wallet)==null?void 0:N.casino)&&W(a);function h(r,y){var w;return(w=r[7])!=null&&w.length?I:E}let b=h(a),m=b(a),T=e.ensure_array_like(a[6]),f=[];for(let r=0;r<T.length;r+=1)f[r]=B(O(a,T,r));return{c(){t=e.element("div"),p&&p.c(),n=e.space(),s=e.element("div"),l=e.element("div"),c=e.element("div"),m.c(),u=e.space(),d=e.element("div"),g=e.element("ul");for(let r=0;r<f.length;r+=1)f[r].c();e.attr(c,"class","GameList items"),e.attr(l,"class",i="TabContent GamesContent "+(a[5]!="casino"?"hidden":"")),e.attr(g,"class","SportsPage"),e.attr(d,"class",v="TabContent GamesContent "+(a[5]!="sports"?"hidden":"")),e.attr(s,"class","GamesWrapper"),e.attr(t,"class",G.isMobile(a[9])?"MobileClass":"")},m(r,y){e.insert(r,t,y),p&&p.m(t,null),e.append(t,n),e.append(t,s),e.append(s,l),e.append(l,c),m.m(c,null),e.append(s,u),e.append(s,d),e.append(d,g);for(let w=0;w<f.length;w+=1)f[w]&&f[w].m(g,null);a[13](t)},p(r,[y]){var w,o;if(r[3]&&((w=r[3].wallet)!=null&&w.sports)&&((o=r[3].wallet)!=null&&o.casino)?p?p.p(r,y):(p=W(r),p.c(),p.m(t,n)):p&&(p.d(1),p=null),b===(b=h(r))&&m?m.p(r,y):(m.d(1),m=b(r),m&&(m.c(),m.m(c,null))),y&32&&i!==(i="TabContent GamesContent "+(r[5]!="casino"?"hidden":""))&&e.attr(l,"class",i),y&320){T=e.ensure_array_like(r[6]);let _;for(_=0;_<T.length;_+=1){const C=O(r,T,_);f[_]?f[_].p(C,y):(f[_]=B(C),f[_].c(),f[_].m(g,null))}for(;_<f.length;_+=1)f[_].d(1);f.length=T.length}y&32&&v!==(v="TabContent GamesContent "+(r[5]!="sports"?"hidden":""))&&e.attr(d,"class",v)},i:e.noop,o:e.noop,d(r){r&&e.detach(t),p&&p.d(),m.d(),e.destroy_each(f,r),a[13](null)}}}let L="gameTab";function D(a,t,n){let s;e.component_subscribe(a,G.$format,o=>n(8,s=o));let{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{mbsource:i}=t,{translationurl:u}=t,{lang:d="en"}=t,g="casino",v=[],p=[],h,b=window.navigator.userAgent,m;j({withLocale:"en",translations:{}});const T=()=>{fetch(u).then(o=>o.json()).then(o=>{Object.keys(o).forEach(_=>{M(_,o[_])})}).catch(o=>{console.log(o)})};Object.keys(z).forEach(o=>{M(o,z[o])});const f=()=>{F(d),setTimeout(()=>{k()},10)},k=()=>{window.postMessage({type:"TournamentsTabsLocalize",tabTitleTranslations:{casino:s("casino"),sports:s("sports")}},window.location.href)},N=o=>{window.postMessage({type:"TournamentGameAction",gameId:o.id,name:o.name,launchUrl:o.launchUrl},window.location.href)},r=()=>{var _,C,A;n(7,p=((_=h.games)==null?void 0:_.items)||[]);const o=(A=(C=h.metadata)==null?void 0:C.sports)==null?void 0:A.rules;if(o){n(5,g=h.wallet.casino?"casino":"sports");try{const S=JSON.parse(o);n(6,v=S[d]||S["*"])}catch(S){console.error("Error parsing tournament rules",S)}}},y=o=>{if(!o.data||!o.data.type)return;const _=o.data.tid||"";switch(o.data.type){case"TournamentsTabSwitch":_===L&&n(5,g=o.data.tab);break;case"TournamentsTabListenerLoaded":k();break;case"TournamentsGamesUpdate":n(3,h=o.data.details),r();break;default:console.warn(`Unhandled message type: ${o.data.type}`);break}};e.onMount(()=>(window.postMessage({type:"TournamentsGamesListenerLoaded",gamesTabTid:L},window.location.href),window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}));function w(o){e.binding_callbacks[o?"unshift":"push"](()=>{m=o,n(4,m)})}return a.$$set=o=>{"clientstyling"in o&&n(0,l=o.clientstyling),"clientstylingurl"in o&&n(1,c=o.clientstylingurl),"mbsource"in o&&n(2,i=o.mbsource),"translationurl"in o&&n(11,u=o.translationurl),"lang"in o&&n(12,d=o.lang)},a.$$.update=()=>{a.$$.dirty&8&&h&&r(),a.$$.dirty&4096&&d&&f(),a.$$.dirty&2048&&u&&T(),a.$$.dirty&17&&l&&m&&e.setClientStyling(m,l),a.$$.dirty&18&&c&&m&&e.setClientStylingURL(m,c),a.$$.dirty&20&&i&&m&&e.setStreamStyling(m,`${i}.Style`)},[l,c,i,h,m,g,v,p,s,b,N,u,d,w]}class R extends e.SvelteComponent{constructor(t){super(),e.init(this,t,D,x,e.safe_not_equal,{clientstyling:0,clientstylingurl:1,mbsource:2,translationurl:11,lang:12},U)}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[11]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}}e.create_custom_element(R,{clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},lang:{}},[],[],!0);exports.default=R;
|