@everymatrix/casino-tournaments-page-controller 1.76.0 → 1.76.3
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-CV5jyv8g.js → CasinoTournamentsDetails-CI9Jj7ok.js} +21 -21
- package/components/{CasinoTournamentsDetails-_vnvzxd3.js → CasinoTournamentsDetails-Dpas8Oa3.js} +21 -21
- package/components/{CasinoTournamentsPageController-DIjImG1k.js → CasinoTournamentsPageController-BIb60qke.js} +2677 -2712
- package/components/CasinoTournamentsPageController-Bq1SPg48.cjs +37 -0
- package/components/{CasinoTournamentsPageController-LRHk1OJ4.js → CasinoTournamentsPageController-DrWaJk5P.js} +2708 -2743
- package/components/{CasinoTournamentsRank-BEjjLuf1.js → CasinoTournamentsRank-DP-cVYPO.js} +35 -35
- package/components/{CasinoTournamentsRank-CkgXfPdz.js → CasinoTournamentsRank-q82Dxoqr.js} +35 -35
- package/components/{CasinoTournamentsTab-BRIU3NDv.js → CasinoTournamentsTab-06D_e41f.js} +36 -36
- package/components/{CasinoTournamentsTab-BdBIehQV.cjs → CasinoTournamentsTab-R3r2AHPH.cjs} +1 -1
- package/components/{CasinoTournamentsTab-cAmru9Ol.js → CasinoTournamentsTab-gjYGj9YA.js} +32 -32
- package/components/{CasinoTournamentsTable-D0-M8VIr.js → CasinoTournamentsTable-Ci48agje.js} +84 -84
- package/components/{CasinoTournamentsTable-3AOlf9hp.cjs → CasinoTournamentsTable-D1RE_06q.cjs} +1 -1
- package/components/{CasinoTournamentsTable-RfAIxnuW.js → CasinoTournamentsTable-Dqppk9qx.js} +84 -84
- package/components/{CasinoTournamentsThumbnail-D1JyrHrY.cjs → CasinoTournamentsThumbnail-CUbQFVZt.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-Cp_sIUHy.js → CasinoTournamentsThumbnail-DQp66K62.js} +39 -39
- package/components/{CasinoTournamentsThumbnail-CaIyyUlW.js → CasinoTournamentsThumbnail-UTaQ6XBt.js} +39 -39
- package/components/{CasinoTournamentsThumbnailController-CjJaE6DJ.cjs → CasinoTournamentsThumbnailController-Co2GBKG-.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-wrPgna6T.js → CasinoTournamentsThumbnailController-D2C4ybr1.js} +47 -47
- package/components/{CasinoTournamentsThumbnailController-30_8iqch.js → CasinoTournamentsThumbnailController-D35nG6XP.js} +47 -47
- package/components/{CasinoTournamentsThumbnailDuration-BqNqjxsL.js → CasinoTournamentsThumbnailDuration-CfINvPbc.js} +65 -65
- package/components/{CasinoTournamentsThumbnailDuration-CMPeZsoj.cjs → CasinoTournamentsThumbnailDuration-D7pJ3HDD.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-ZnRFP_h_.js → CasinoTournamentsThumbnailDuration-egjrV7Ab.js} +65 -65
- package/components/{CasinoTournamentsThumbnailGames-BQSFsb7H.js → CasinoTournamentsThumbnailGames-B8X814e1.js} +54 -54
- package/components/{CasinoTournamentsThumbnailGames-DS3GmPBl.cjs → CasinoTournamentsThumbnailGames-DTot3kgc.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGames-Q4Gg_Pxp.js → CasinoTournamentsThumbnailGames-ypNdyMoK.js} +49 -49
- package/components/{CasinoTournamentsThumbnailGamesSlider-BAXfTifG.js → CasinoTournamentsThumbnailGamesSlider-8B1qtm9V.js} +34 -34
- package/components/{CasinoTournamentsThumbnailGamesSlider-DmOtGPsI.cjs → CasinoTournamentsThumbnailGamesSlider-kgkqO8gR.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-CFd0JjFY.js → CasinoTournamentsThumbnailGamesSlider-oPbDMVkM.js} +34 -34
- package/components/{CasinoTournamentsThumbnailPrizes-CgS9w2Aq.cjs → CasinoTournamentsThumbnailPrizes-BOs0DK1z.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-pZYtadAx.js → CasinoTournamentsThumbnailPrizes-CavQe9e7.js} +31 -31
- package/components/{CasinoTournamentsThumbnailPrizes-Dz4-wWGv.js → CasinoTournamentsThumbnailPrizes-Cckrc0am.js} +31 -31
- package/components/{CasinoTournamentsThumbnailRule-BaJvRUJL.cjs → CasinoTournamentsThumbnailRule-KtxZtJkT.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-BtlW7eqt.js → CasinoTournamentsThumbnailRule-_CDIwUgM.js} +22 -22
- package/components/{CasinoTournamentsThumbnailRule-C2uFR1vt.js → CasinoTournamentsThumbnailRule-zw73Q3DJ.js} +41 -41
- 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-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-C7V2DWFg.js} +176 -176
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-DIpvPU9H.js} +187 -187
- package/stencil/index-b2193545-CD_KQ0BB.js +519 -0
- package/stencil/index-b2193545-CrHhiaNt.js +503 -0
- package/stencil/index-b2193545-ngvz84TK.cjs +1 -0
- package/stencil/{ui-image-CXqPvnQ2.js → ui-image-BNRjOSaN.js} +1 -1
- package/stencil/{ui-image-DgbODkuX.js → ui-image-D9tkwepr.js} +1 -1
- package/stencil/{ui-image-Bk8cIvcH.cjs → ui-image-DBXtq7Sy.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-CzFe50WB.js} +2 -2
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-z5LhXZY2.js} +2 -2
- package/stencil/{ui-skeleton-D8L-WY77.js → ui-skeleton-BecGfbnY.js} +2 -2
- package/stencil/{ui-skeleton-B0BB970e.cjs → ui-skeleton-CKaouoPt.cjs} +1 -1
- package/stencil/{ui-skeleton-DSebcnN1.js → ui-skeleton-DXmvn9dE.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-BH4D8vHD.js → ui-skeleton-ae35c6f2-8tswdmF8.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CcPx4a2P.js → ui-skeleton-ae35c6f2-BVAHFeog.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-DDiK5zGt.cjs → ui-skeleton-ae35c6f2-kPD5RoB3.cjs} +1 -1
- package/components/CasinoTournamentsPageController-Czj_9f9q.cjs +0 -37
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-b2193545-BS7xFIk4.js +0 -503
- package/stencil/index-b2193545-BTdVi7--.cjs +0 -1
- package/stencil/index-b2193545-rfNAj6ri.js +0 -519
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as V, b as Y,
|
|
2
|
-
import { $ as j, c as ue, a as me, i as de, b as fe } from "./CasinoTournamentsPageController-
|
|
3
|
-
import "../stencil/ui-image-
|
|
1
|
+
import { S as V, b as Y, f as z, c as Z, a as $, d as ee, A as B, g as w, e as M, j as b, l as C, m as h, n as E, q as S, C as Q, u as te, v as ae, k as g, t as P, p as R, w as ne, x as se, y as ie, z as le, B as oe, D as q, o as re, i as ce } from "./CasinoTournamentsDetails-Dpas8Oa3.js";
|
|
2
|
+
import { $ as j, c as ue, a as me, i as de, b as fe } from "./CasinoTournamentsPageController-DrWaJk5P.js";
|
|
3
|
+
import "../stencil/ui-image-D9tkwepr.js";
|
|
4
4
|
function ge({ withLocale: t, translations: e }) {
|
|
5
5
|
j.subscribe((a) => {
|
|
6
6
|
a == null && (ue.set(e), j.set(t));
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function I(t, e) {
|
|
10
10
|
me(t, e);
|
|
11
11
|
}
|
|
12
12
|
function pe(t) {
|
|
@@ -23,7 +23,7 @@ const D = {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
function he(t) {
|
|
26
|
-
|
|
26
|
+
ee(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
27
|
}
|
|
28
28
|
function H(t, e, a) {
|
|
29
29
|
const n = t.slice();
|
|
@@ -37,7 +37,7 @@ function K(t) {
|
|
|
37
37
|
let e, a;
|
|
38
38
|
return {
|
|
39
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",
|
|
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", F), g(
|
|
41
41
|
a,
|
|
42
42
|
"clientstyling",
|
|
43
43
|
/*clientstyling*/
|
|
@@ -55,7 +55,7 @@ function K(t) {
|
|
|
55
55
|
), b(e, "class", "GamesTabNav");
|
|
56
56
|
},
|
|
57
57
|
m(n, s) {
|
|
58
|
-
|
|
58
|
+
C(n, e, s), h(e, a);
|
|
59
59
|
},
|
|
60
60
|
p(n, s) {
|
|
61
61
|
s & /*clientstyling*/
|
|
@@ -79,7 +79,7 @@ function K(t) {
|
|
|
79
79
|
);
|
|
80
80
|
},
|
|
81
81
|
d(n) {
|
|
82
|
-
n &&
|
|
82
|
+
n && S(e);
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
}
|
|
@@ -90,23 +90,23 @@ function be(t) {
|
|
|
90
90
|
), n;
|
|
91
91
|
return {
|
|
92
92
|
c() {
|
|
93
|
-
e = w("div"), n =
|
|
93
|
+
e = w("div"), n = P(a), b(e, "class", "NoGames");
|
|
94
94
|
},
|
|
95
95
|
m(s, r) {
|
|
96
|
-
|
|
96
|
+
C(s, e, r), h(e, n);
|
|
97
97
|
},
|
|
98
98
|
p(s, r) {
|
|
99
99
|
r & /*$_*/
|
|
100
100
|
256 && a !== (a = /*$_*/
|
|
101
|
-
s[8]("noGamesAvailable") + "") &&
|
|
101
|
+
s[8]("noGamesAvailable") + "") && R(n, a);
|
|
102
102
|
},
|
|
103
103
|
d(s) {
|
|
104
|
-
s &&
|
|
104
|
+
s && S(e);
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
function _e(t) {
|
|
109
|
-
let e, a =
|
|
109
|
+
let e, a = B(
|
|
110
110
|
/*casinoGames*/
|
|
111
111
|
t[7]
|
|
112
112
|
), n = [];
|
|
@@ -116,17 +116,17 @@ function _e(t) {
|
|
|
116
116
|
c() {
|
|
117
117
|
for (let s = 0; s < n.length; s += 1)
|
|
118
118
|
n[s].c();
|
|
119
|
-
e =
|
|
119
|
+
e = oe();
|
|
120
120
|
},
|
|
121
121
|
m(s, r) {
|
|
122
122
|
for (let i = 0; i < n.length; i += 1)
|
|
123
123
|
n[i] && n[i].m(s, r);
|
|
124
|
-
|
|
124
|
+
C(s, e, r);
|
|
125
125
|
},
|
|
126
126
|
p(s, r) {
|
|
127
127
|
if (r & /*gameClicked, casinoGames, $_*/
|
|
128
128
|
1408) {
|
|
129
|
-
a =
|
|
129
|
+
a = B(
|
|
130
130
|
/*casinoGames*/
|
|
131
131
|
s[7]
|
|
132
132
|
);
|
|
@@ -141,7 +141,7 @@ function _e(t) {
|
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
143
|
d(s) {
|
|
144
|
-
s &&
|
|
144
|
+
s && S(e), Q(n, s);
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
}
|
|
@@ -152,14 +152,14 @@ function X(t) {
|
|
|
152
152
|
), s, r, i, u, m, _, k, d, y;
|
|
153
153
|
return {
|
|
154
154
|
c() {
|
|
155
|
-
e = w("div"), a = w("span"), s =
|
|
155
|
+
e = w("div"), a = w("span"), s = P(n), r = M(), i = w("ui-image"), k = M(), b(a, "class", "PlayNowButton"), q(i.src, u = /*item*/
|
|
156
156
|
t[20].thumbnail) || g(i, "src", u), g(i, "width", "132px"), g(i, "height", "100px"), g(i, "alt", m = /*item*/
|
|
157
157
|
t[20].name), g(i, "title", _ = /*item*/
|
|
158
158
|
t[20].name), b(e, "class", "item"), b(e, "role", "button"), b(e, "tabindex", "0");
|
|
159
159
|
},
|
|
160
160
|
m(v, c) {
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
C(v, e, c), h(e, a), h(a, s), h(e, r), h(e, i), h(e, k), d || (y = re(e, "click", function() {
|
|
162
|
+
ce(
|
|
163
163
|
/*gameClicked*/
|
|
164
164
|
t[10](
|
|
165
165
|
/*item*/
|
|
@@ -174,8 +174,8 @@ function X(t) {
|
|
|
174
174
|
p(v, c) {
|
|
175
175
|
t = v, c & /*$_*/
|
|
176
176
|
256 && n !== (n = /*$_*/
|
|
177
|
-
t[8]("playNow") + "") &&
|
|
178
|
-
128 && !
|
|
177
|
+
t[8]("playNow") + "") && R(s, n), c & /*casinoGames*/
|
|
178
|
+
128 && !q(i.src, u = /*item*/
|
|
179
179
|
t[20].thumbnail) && g(i, "src", u), c & /*casinoGames*/
|
|
180
180
|
128 && m !== (m = /*item*/
|
|
181
181
|
t[20].name) && g(i, "alt", m), c & /*casinoGames*/
|
|
@@ -183,7 +183,7 @@ function X(t) {
|
|
|
183
183
|
t[20].name) && g(i, "title", _);
|
|
184
184
|
},
|
|
185
185
|
d(v) {
|
|
186
|
-
v &&
|
|
186
|
+
v && S(e), d = !1, y();
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
}
|
|
@@ -197,20 +197,20 @@ function x(t) {
|
|
|
197
197
|
), i;
|
|
198
198
|
return {
|
|
199
199
|
c() {
|
|
200
|
-
e = w("li"), n =
|
|
200
|
+
e = w("li"), n = P(a), s = M(), i = P(r), b(e, "part", "li"), b(e, "class", "Market");
|
|
201
201
|
},
|
|
202
202
|
m(u, m) {
|
|
203
|
-
|
|
203
|
+
C(u, e, m), h(e, n), h(e, s), h(e, i);
|
|
204
204
|
},
|
|
205
205
|
p(u, m) {
|
|
206
206
|
m & /*sportsRules*/
|
|
207
207
|
64 && a !== (a = /*item*/
|
|
208
|
-
u[20].rule + "") &&
|
|
208
|
+
u[20].rule + "") && R(n, a), m & /*$_*/
|
|
209
209
|
256 && r !== (r = /*$_*/
|
|
210
|
-
u[8]("contribution") + "") &&
|
|
210
|
+
u[8]("contribution") + "") && R(i, r);
|
|
211
211
|
},
|
|
212
212
|
d(u) {
|
|
213
|
-
u &&
|
|
213
|
+
u && S(e);
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
}
|
|
@@ -229,7 +229,7 @@ function we(t) {
|
|
|
229
229
|
(G = o[7]) != null && G.length ? _e : be
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
let v = y(t), c = v(t), N =
|
|
232
|
+
let v = y(t), c = v(t), N = B(
|
|
233
233
|
/*sportsRules*/
|
|
234
234
|
t[6]
|
|
235
235
|
), p = [];
|
|
@@ -248,7 +248,7 @@ function we(t) {
|
|
|
248
248
|
) ? "MobileClass" : "");
|
|
249
249
|
},
|
|
250
250
|
m(o, T) {
|
|
251
|
-
|
|
251
|
+
C(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, _);
|
|
252
252
|
for (let G = 0; G < p.length; G += 1)
|
|
253
253
|
p[G] && p[G].m(_, null);
|
|
254
254
|
t[13](e);
|
|
@@ -262,7 +262,7 @@ function we(t) {
|
|
|
262
262
|
32 && i !== (i = "TabContent GamesContent " + /*activeTab*/
|
|
263
263
|
(o[5] != "casino" ? "hidden" : "")) && b(s, "class", i), T & /*$_, sportsRules*/
|
|
264
264
|
320) {
|
|
265
|
-
N =
|
|
265
|
+
N = B(
|
|
266
266
|
/*sportsRules*/
|
|
267
267
|
o[6]
|
|
268
268
|
);
|
|
@@ -279,30 +279,30 @@ function we(t) {
|
|
|
279
279
|
32 && k !== (k = "TabContent GamesContent " + /*activeTab*/
|
|
280
280
|
(o[5] != "sports" ? "hidden" : "")) && b(m, "class", k);
|
|
281
281
|
},
|
|
282
|
-
i:
|
|
283
|
-
o:
|
|
282
|
+
i: E,
|
|
283
|
+
o: E,
|
|
284
284
|
d(o) {
|
|
285
|
-
o &&
|
|
285
|
+
o && S(e), d && d.d(), c.d(), Q(p, o), t[13](null);
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
let
|
|
289
|
+
let F = "gameTab";
|
|
290
290
|
function ye(t, e, a) {
|
|
291
291
|
let n;
|
|
292
|
-
|
|
292
|
+
te(t, fe, (l) => a(8, n = l));
|
|
293
293
|
let { clientstyling: s = "" } = e, { clientstylingurl: r = "" } = e, { mbsource: i } = e, { translationurl: u } = e, { lang: m = "en" } = e, _ = "casino", k = [], d = [], y, v = window.navigator.userAgent, c;
|
|
294
294
|
ge({ withLocale: "en", translations: {} });
|
|
295
295
|
const N = () => {
|
|
296
296
|
fetch(u).then((l) => l.json()).then((l) => {
|
|
297
297
|
Object.keys(l).forEach((f) => {
|
|
298
|
-
|
|
298
|
+
I(f, l[f]);
|
|
299
299
|
});
|
|
300
300
|
}).catch((l) => {
|
|
301
301
|
console.log(l);
|
|
302
302
|
});
|
|
303
303
|
};
|
|
304
304
|
Object.keys(D).forEach((l) => {
|
|
305
|
-
|
|
305
|
+
I(l, D[l]);
|
|
306
306
|
});
|
|
307
307
|
const p = () => {
|
|
308
308
|
pe(m), setTimeout(
|
|
@@ -333,9 +333,9 @@ function ye(t, e, a) {
|
|
|
333
333
|
window.location.href
|
|
334
334
|
);
|
|
335
335
|
}, o = () => {
|
|
336
|
-
var f, A,
|
|
336
|
+
var f, A, U;
|
|
337
337
|
a(7, d = ((f = y.games) == null ? void 0 : f.items) || []);
|
|
338
|
-
const l = (
|
|
338
|
+
const l = (U = (A = y.metadata) == null ? void 0 : A.sports) == null ? void 0 : U.rules;
|
|
339
339
|
if (l) {
|
|
340
340
|
a(5, _ = y.wallet.casino ? "casino" : "sports");
|
|
341
341
|
try {
|
|
@@ -351,7 +351,7 @@ function ye(t, e, a) {
|
|
|
351
351
|
const f = l.data.tid || "";
|
|
352
352
|
switch (l.data.type) {
|
|
353
353
|
case "TournamentsTabSwitch":
|
|
354
|
-
f ===
|
|
354
|
+
f === F && a(5, _ = l.data.tab);
|
|
355
355
|
break;
|
|
356
356
|
case "TournamentsTabListenerLoaded":
|
|
357
357
|
L();
|
|
@@ -364,17 +364,17 @@ function ye(t, e, a) {
|
|
|
364
364
|
break;
|
|
365
365
|
}
|
|
366
366
|
};
|
|
367
|
-
|
|
367
|
+
ae(() => (window.postMessage(
|
|
368
368
|
{
|
|
369
369
|
type: "TournamentsGamesListenerLoaded",
|
|
370
|
-
gamesTabTid:
|
|
370
|
+
gamesTabTid: F
|
|
371
371
|
},
|
|
372
372
|
window.location.href
|
|
373
373
|
), window.addEventListener("message", T, !1), () => {
|
|
374
374
|
window.removeEventListener("message", T);
|
|
375
375
|
}));
|
|
376
376
|
function G(l) {
|
|
377
|
-
|
|
377
|
+
ne[l ? "unshift" : "push"](() => {
|
|
378
378
|
c = l, a(4, c);
|
|
379
379
|
});
|
|
380
380
|
}
|
|
@@ -385,9 +385,9 @@ function ye(t, e, a) {
|
|
|
385
385
|
8 && y && o(), t.$$.dirty & /*lang*/
|
|
386
386
|
4096 && m && p(), t.$$.dirty & /*translationurl*/
|
|
387
387
|
2048 && u && N(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
388
|
-
17 && s && c &&
|
|
389
|
-
18 && r && c &&
|
|
390
|
-
20 && i && c &&
|
|
388
|
+
17 && s && c && se(c, s), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
389
|
+
18 && r && c && ie(c, r), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
390
|
+
20 && i && c && le(c, `${i}.Style`);
|
|
391
391
|
}, [
|
|
392
392
|
s,
|
|
393
393
|
r,
|
|
@@ -412,7 +412,7 @@ class ve extends V {
|
|
|
412
412
|
e,
|
|
413
413
|
ye,
|
|
414
414
|
we,
|
|
415
|
-
|
|
415
|
+
$,
|
|
416
416
|
{
|
|
417
417
|
clientstyling: 0,
|
|
418
418
|
clientstylingurl: 1,
|
|
@@ -454,7 +454,7 @@ class ve extends V {
|
|
|
454
454
|
this.$$set({ lang: e }), z();
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
|
|
457
|
+
Z(ve, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
|
|
458
458
|
export {
|
|
459
459
|
ve as default
|
|
460
460
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as _e, b as be,
|
|
2
|
-
import { a as
|
|
1
|
+
import { S as _e, b as be, f as T, c as ve, a as ke, d as Ne, g as N, l as G, n as R, q as W, u as Se, v as Te, A as Y, e as C, j as c, G as L, F as Z, H as Fe, m as b, I as Pe, o as z, C as Be, r as ne, t as Me, D as K, p as Ee, w as U, x as je, y as ze, z as Ae } from "./CasinoTournamentsDetails-Dpas8Oa3.js";
|
|
2
|
+
import { a as He, g as Le, b as Ce } from "./CasinoTournamentsPageController-DrWaJk5P.js";
|
|
3
3
|
function Q(e, n) {
|
|
4
|
-
|
|
4
|
+
He(e, n);
|
|
5
5
|
}
|
|
6
6
|
const V = {
|
|
7
7
|
en: {
|
|
@@ -36,7 +36,7 @@ const V = {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
function De(e) {
|
|
39
|
-
|
|
39
|
+
Ne(e, "svelte-xgd67c", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.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:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}");
|
|
40
40
|
}
|
|
41
41
|
function $(e, n, t) {
|
|
42
42
|
const a = e.slice();
|
|
@@ -54,16 +54,16 @@ function ee(e) {
|
|
|
54
54
|
n = N("div"), t = N("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a = C(), d = N("main"), h = N("div");
|
|
55
55
|
for (let r = 0; r < i.length; r += 1)
|
|
56
56
|
i[r].c();
|
|
57
|
-
y = C(), s = N("div"), s.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"),
|
|
57
|
+
y = C(), s = N("div"), s.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"), L(
|
|
58
58
|
t,
|
|
59
59
|
"disabled",
|
|
60
60
|
/*atStart*/
|
|
61
61
|
e[8]
|
|
62
62
|
), c(h, "class", "items"), c(h, "part", "items"), Z(h, "transform", "translateX(" + /*offset*/
|
|
63
|
-
e[2] + "px)"),
|
|
63
|
+
e[2] + "px)"), Fe(() => (
|
|
64
64
|
/*main_elementresize_handler*/
|
|
65
65
|
e[29].call(d)
|
|
66
|
-
)), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"),
|
|
66
|
+
)), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"), L(
|
|
67
67
|
s,
|
|
68
68
|
"disabled",
|
|
69
69
|
/*atEnd*/
|
|
@@ -71,21 +71,21 @@ function ee(e) {
|
|
|
71
71
|
), c(n, "class", "TournamentsGamesSlider"), c(n, "part", "TournamentsGamesSlider");
|
|
72
72
|
},
|
|
73
73
|
m(r, m) {
|
|
74
|
-
|
|
74
|
+
G(r, n, m), b(n, t), b(n, a), b(n, d), b(d, h);
|
|
75
75
|
for (let u = 0; u < i.length; u += 1)
|
|
76
76
|
i[u] && i[u].m(h, null);
|
|
77
|
-
e[28](h), p =
|
|
77
|
+
e[28](h), p = Pe(
|
|
78
78
|
d,
|
|
79
79
|
/*main_elementresize_handler*/
|
|
80
80
|
e[29].bind(d)
|
|
81
81
|
), b(n, y), b(n, s), e[31](n), w || (_ = [
|
|
82
|
-
|
|
82
|
+
z(
|
|
83
83
|
t,
|
|
84
84
|
"click",
|
|
85
85
|
/*click_handler*/
|
|
86
86
|
e[24]
|
|
87
87
|
),
|
|
88
|
-
|
|
88
|
+
z(
|
|
89
89
|
s,
|
|
90
90
|
"click",
|
|
91
91
|
/*click_handler_2*/
|
|
@@ -95,7 +95,7 @@ function ee(e) {
|
|
|
95
95
|
},
|
|
96
96
|
p(r, m) {
|
|
97
97
|
if (m[0] & /*atStart*/
|
|
98
|
-
256 &&
|
|
98
|
+
256 && L(
|
|
99
99
|
t,
|
|
100
100
|
"disabled",
|
|
101
101
|
/*atStart*/
|
|
@@ -118,7 +118,7 @@ function ee(e) {
|
|
|
118
118
|
m[0] & /*offset*/
|
|
119
119
|
4 && Z(h, "transform", "translateX(" + /*offset*/
|
|
120
120
|
r[2] + "px)"), m[0] & /*atEnd*/
|
|
121
|
-
512 &&
|
|
121
|
+
512 && L(
|
|
122
122
|
s,
|
|
123
123
|
"disabled",
|
|
124
124
|
/*atEnd*/
|
|
@@ -126,7 +126,7 @@ function ee(e) {
|
|
|
126
126
|
);
|
|
127
127
|
},
|
|
128
128
|
d(r) {
|
|
129
|
-
r &&
|
|
129
|
+
r && W(n), Be(i, r), e[28](null), p(), e[31](null), w = !1, ne(_);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -167,10 +167,10 @@ function te(e) {
|
|
|
167
167
|
e[49].name), c(n, "class", "item"), c(n, "part", "item");
|
|
168
168
|
},
|
|
169
169
|
m(v, o) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
170
|
+
G(v, n, o), b(n, t), b(t, d), b(n, y), b(n, s), b(n, i), r || (m = [
|
|
171
|
+
z(n, "click", u),
|
|
172
|
+
z(n, "mouseenter", k),
|
|
173
|
+
z(
|
|
174
174
|
n,
|
|
175
175
|
"mouseleave",
|
|
176
176
|
/*mouseleave_handler*/
|
|
@@ -181,7 +181,7 @@ function te(e) {
|
|
|
181
181
|
p(v, o) {
|
|
182
182
|
e = v, o[0] & /*$_*/
|
|
183
183
|
1024 && a !== (a = /*$_*/
|
|
184
|
-
e[10]("playNow") + "") &&
|
|
184
|
+
e[10]("playNow") + "") && Ee(d, a), o[0] & /*hover, hoverIndex*/
|
|
185
185
|
96 && h !== (h = "PlayNowButton " + /*hover*/
|
|
186
186
|
(e[5] && /*hoverIndex*/
|
|
187
187
|
e[6] == /*i*/
|
|
@@ -198,7 +198,7 @@ function te(e) {
|
|
|
198
198
|
e[49].name) && c(s, "title", g);
|
|
199
199
|
},
|
|
200
200
|
d(v) {
|
|
201
|
-
v &&
|
|
201
|
+
v && W(n), r = !1, ne(m);
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
}
|
|
@@ -213,7 +213,7 @@ function Ie(e) {
|
|
|
213
213
|
n = N("div"), t && t.c();
|
|
214
214
|
},
|
|
215
215
|
m(a, d) {
|
|
216
|
-
|
|
216
|
+
G(a, n, d), t && t.m(n, null), e[32](n);
|
|
217
217
|
},
|
|
218
218
|
p(a, d) {
|
|
219
219
|
/*games*/
|
|
@@ -223,15 +223,15 @@ function Ie(e) {
|
|
|
223
223
|
i: R,
|
|
224
224
|
o: R,
|
|
225
225
|
d(a) {
|
|
226
|
-
a &&
|
|
226
|
+
a && W(n), t && t.d(), e[32](null);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
let Ue = 30;
|
|
231
231
|
function Ge(e, n, t) {
|
|
232
232
|
let a, d, h;
|
|
233
|
-
|
|
234
|
-
let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: g = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S,
|
|
233
|
+
Se(e, Ce, (l) => t(10, h = l));
|
|
234
|
+
let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: g = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S, A = null, H = null, D = !1, I, B, M = 0, F;
|
|
235
235
|
const le = () => {
|
|
236
236
|
fetch(_).then((f) => f.json()).then((f) => {
|
|
237
237
|
Object.keys(f).forEach((j) => {
|
|
@@ -250,12 +250,12 @@ function Ge(e, n, t) {
|
|
|
250
250
|
t(5, D = !1), t(6, I = -1);
|
|
251
251
|
}, se = (l) => l.touches || l.originalEvent.touches, O = (l) => {
|
|
252
252
|
const f = se(l)[0];
|
|
253
|
-
|
|
253
|
+
A = f.clientX, H = f.clientY;
|
|
254
254
|
}, X = (l) => {
|
|
255
|
-
if (!
|
|
255
|
+
if (!A || !H)
|
|
256
256
|
return;
|
|
257
|
-
let f = l.touches[0].clientX, j = l.touches[0].clientY, P =
|
|
258
|
-
Math.abs(P) > Math.abs(we) && (P > 0 ? E(1) : E(-1)),
|
|
257
|
+
let f = l.touches[0].clientX, j = l.touches[0].clientY, P = A - f, we = H - j;
|
|
258
|
+
Math.abs(P) > Math.abs(we) && (P > 0 ? E(1) : E(-1)), A = null, H = null;
|
|
259
259
|
}, E = (l) => {
|
|
260
260
|
l > 0 && !d ? (t(2, o -= k), t(2, o = o < M ? M : o)) : l < 0 && !a && (t(2, o += k), t(2, o = o > 0 ? 0 : o));
|
|
261
261
|
}, J = (l) => {
|
|
@@ -270,7 +270,7 @@ function Ge(e, n, t) {
|
|
|
270
270
|
);
|
|
271
271
|
}, re = () => {
|
|
272
272
|
let l = new URL(p), f = new Headers();
|
|
273
|
-
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform",
|
|
273
|
+
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform", Le(u)), fetch(l, { method: "GET", headers: f }).then((P) => P.json()).then((P) => {
|
|
274
274
|
t(1, v = P.item.games.items), P.item.games.total;
|
|
275
275
|
});
|
|
276
276
|
}, ae = () => {
|
|
@@ -285,7 +285,7 @@ function Ge(e, n, t) {
|
|
|
285
285
|
}, oe = () => {
|
|
286
286
|
F > 0 && F < Math.floor((parseInt(y) + 1) * s) && t(15, y = Math.ceil(F / s).toString());
|
|
287
287
|
};
|
|
288
|
-
|
|
288
|
+
Te(() => (k = parseInt(y, 10) * parseInt(s, 10), () => {
|
|
289
289
|
S.removeEventListener("touchstart", O), S.removeEventListener("touchmove", X);
|
|
290
290
|
}));
|
|
291
291
|
const ce = () => E(-1), ue = (l) => J(l), me = (l) => q(l), de = () => x();
|
|
@@ -319,8 +319,8 @@ function Ge(e, n, t) {
|
|
|
319
319
|
8 && S && ae(), e.$$.dirty[0] & /*translationurl*/
|
|
320
320
|
524288 && _ && le(), e.$$.dirty[0] & /*games*/
|
|
321
321
|
2 && v.length && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
322
|
-
1048577 && g && m &&
|
|
323
|
-
2097153 && i && m &&
|
|
322
|
+
1048577 && g && m && je(m, g), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
323
|
+
2097153 && i && m && ze(m, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
324
324
|
4194305 && r && m && Ae(m, `${r}.Style`);
|
|
325
325
|
}, t(2, o = 0), [
|
|
326
326
|
m,
|
|
@@ -365,7 +365,7 @@ class We extends _e {
|
|
|
365
365
|
n,
|
|
366
366
|
Ge,
|
|
367
367
|
Ie,
|
|
368
|
-
|
|
368
|
+
ke,
|
|
369
369
|
{
|
|
370
370
|
tournamenturl: 17,
|
|
371
371
|
scrollby: 15,
|
|
@@ -429,7 +429,7 @@ class We extends _e {
|
|
|
429
429
|
this.$$set({ mbsource: n }), T();
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
|
|
432
|
+
ve(We, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
433
433
|
export {
|
|
434
434
|
We as default
|
|
435
435
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),L=require("./CasinoTournamentsPageController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),L=require("./CasinoTournamentsPageController-Bq1SPg48.cjs");function U(t,l){L.addMessages(t,l)}const I={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"},"en-us":{playNow:"Play now"}};function ie(t){e.append_styles(t,"svelte-xgd67c","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.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:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}")}function W(t,l,n){const i=t.slice();return i[49]=l[n],i[51]=n,i}function G(t){let l,n,i,d,h,p,y,a,_,w,g=e.ensure_array_like(t[1]),o=[];for(let s=0;s<g.length;s+=1)o[s]=O(W(t,g,s));return{c(){l=e.element("div"),n=e.element("div"),n.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=e.space(),d=e.element("main"),h=e.element("div");for(let s=0;s<o.length;s+=1)o[s].c();y=e.space(),a=e.element("div"),a.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(h,"class","items"),e.attr(h,"part","items"),e.set_style(h,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[29].call(d)),e.attr(a,"class","SliderNavButton"),e.attr(a,"part","SliderNavButton"),e.toggle_class(a,"disabled",t[9]),e.attr(l,"class","TournamentsGamesSlider"),e.attr(l,"part","TournamentsGamesSlider")},m(s,m){e.insert(s,l,m),e.append(l,n),e.append(l,i),e.append(l,d),e.append(d,h);for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(h,null);t[28](h),p=e.add_iframe_resize_listener(d,t[29].bind(d)),e.append(l,y),e.append(l,a),t[31](l),_||(w=[e.listen(n,"click",t[24]),e.listen(a,"click",t[30])],_=!0)},p(s,m){if(m[0]&256&&e.toggle_class(n,"disabled",s[8]),m[0]&23650){g=e.ensure_array_like(s[1]);let u;for(u=0;u<g.length;u+=1){const v=W(s,g,u);o[u]?o[u].p(v,m):(o[u]=O(v),o[u].c(),o[u].m(h,null))}for(;u<o.length;u+=1)o[u].d(1);o.length=g.length}m[0]&4&&e.set_style(h,"transform","translateX("+s[2]+"px)"),m[0]&512&&e.toggle_class(a,"disabled",s[9])},d(s){s&&e.detach(l),e.destroy_each(o,s),t[28](null),p(),t[31](null),_=!1,e.run_all(w)}}}function O(t){let l,n,i=t[10]("playNow")+"",d,h,p,y,a,_,w,g,o,s,m;function u(){return t[25](t[49])}function v(){return t[26](t[51])}return{c(){l=e.element("div"),n=e.element("span"),d=e.text(i),y=e.space(),a=e.element("img"),o=e.space(),e.attr(n,"class",h="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.attr(n,"part",p="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.src_url_equal(a.src,_=t[49].thumbnail)||e.attr(a,"src",_),e.attr(a,"width","132px"),e.attr(a,"height","100px"),e.attr(a,"alt",w=t[49].name),e.attr(a,"title",g=t[49].name),e.attr(l,"class","item"),e.attr(l,"part","item")},m(b,c){e.insert(b,l,c),e.append(l,n),e.append(n,d),e.append(l,y),e.append(l,a),e.append(l,o),s||(m=[e.listen(l,"click",u),e.listen(l,"mouseenter",v),e.listen(l,"mouseleave",t[27])],s=!0)},p(b,c){t=b,c[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),c[0]&96&&h!==(h="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"class",h),c[0]&96&&p!==(p="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"part",p),c[0]&2&&!e.src_url_equal(a.src,_=t[49].thumbnail)&&e.attr(a,"src",_),c[0]&2&&w!==(w=t[49].name)&&e.attr(a,"alt",w),c[0]&2&&g!==(g=t[49].name)&&e.attr(a,"title",g)},d(b){b&&e.detach(l),s=!1,e.run_all(m)}}}function oe(t){let l,n=t[1]&&t[1].length>0&&G(t);return{c(){l=e.element("div"),n&&n.c()},m(i,d){e.insert(i,l,d),n&&n.m(l,null),t[32](l)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=G(i),n.c(),n.m(l,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(l),n&&n.d(),t[32](null)}}}let ce=30;function ue(t,l,n){let i,d,h;e.component_subscribe(t,L.$format,r=>n(10,h=r));let{tournamenturl:p=""}=l,{scrollby:y="3"}=l,{pagfactor:a="175"}=l,{lang:_=""}=l,{translationurl:w=""}=l,{clientstyling:g=""}=l,{clientstylingurl:o=""}=l,{mbsource:s}=l,m,u=window.navigator.userAgent,v,b=[],c=0,k,B=null,E=null,j=!1,C,T,P=0,N;const J=()=>{fetch(w).then(f=>f.json()).then(f=>{Object.keys(f).forEach(M=>{U(M,f[M])})}).catch(f=>{console.log(f)})};Object.keys(I).forEach(r=>{U(r,I[r])});const z=r=>{n(5,j=!0),n(6,C=r)},A=()=>{n(5,j=!1),n(6,C=-1)},R=r=>r.touches||r.originalEvent.touches,H=r=>{const f=R(r)[0];B=f.clientX,E=f.clientY},q=r=>{if(!B||!E)return;let f=r.touches[0].clientX,M=r.touches[0].clientY,S=B-f,se=E-M;Math.abs(S)>Math.abs(se)&&(S>0?F(1):F(-1)),B=null,E=null},F=r=>{r>0&&!d?(n(2,c-=v),n(2,c=c<P?P:c)):r<0&&!i&&(n(2,c+=v),n(2,c=c>0?0:c))},D=r=>{window.postMessage({type:"TournamentGameAction",gameId:r.id,name:r.name,launchUrl:r.launchUrl},window.location.href)},x=()=>{let r=new URL(p),f=new Headers;r.searchParams.append("expand","games"),r.searchParams.append("pagination",`games(limit=${ce},offset=${c})`),r.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),r.searchParams.append("language",_),r.searchParams.append("platform",L.getDevice(u)),fetch(r,{method:"GET",headers:f}).then(S=>S.json()).then(S=>{n(1,b=S.item.games.items),S.item.games.total})},Y=()=>{k.addEventListener("touchstart",H,{passive:!0}),k.addEventListener("touchmove",q,{passive:!0})},Z=()=>{setTimeout(()=>{n(23,P=(T.scrollWidth-T.clientWidth)*-1),n(16,a=new String(T.scrollWidth/b.length)),v=parseInt(y,10)*parseFloat(a,2).toFixed(2)},1e3)},K=()=>{N>0&&N<Math.floor((parseInt(y)+1)*a)&&n(15,y=Math.ceil(N/a).toString())};e.onMount(()=>(v=parseInt(y,10)*parseInt(a,10),()=>{k.removeEventListener("touchstart",H),k.removeEventListener("touchmove",q)}));const Q=()=>F(-1),V=r=>D(r),$=r=>z(r),ee=()=>A();function te(r){e.binding_callbacks[r?"unshift":"push"](()=>{T=r,n(7,T)})}function ne(){N=this.clientWidth,n(4,N)}const le=()=>F(1);function re(r){e.binding_callbacks[r?"unshift":"push"](()=>{k=r,n(3,k)})}function ae(r){e.binding_callbacks[r?"unshift":"push"](()=>{m=r,n(0,m)})}return t.$$set=r=>{"tournamenturl"in r&&n(17,p=r.tournamenturl),"scrollby"in r&&n(15,y=r.scrollby),"pagfactor"in r&&n(16,a=r.pagfactor),"lang"in r&&n(18,_=r.lang),"translationurl"in r&&n(19,w=r.translationurl),"clientstyling"in r&&n(20,g=r.clientstyling),"clientstylingurl"in r&&n(21,o=r.clientstylingurl),"mbsource"in r&&n(22,s=r.mbsource)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=c===0),t.$$.dirty[0]&8388612&&n(9,d=c<=P),t.$$.dirty[0]&16&&N&&K(),t.$$.dirty[0]&131072&&p&&x(),t.$$.dirty[0]&8&&k&&Y(),t.$$.dirty[0]&524288&&w&&J(),t.$$.dirty[0]&2&&b.length&&Z(),t.$$.dirty[0]&1048577&&g&&m&&e.setClientStyling(m,g),t.$$.dirty[0]&2097153&&o&&m&&e.setClientStylingURL(m,o),t.$$.dirty[0]&4194305&&s&&m&&e.setStreamStyling(m,`${s}.Style`)},n(2,c=0),[m,b,c,k,N,j,C,T,i,d,h,z,A,F,D,y,a,p,_,w,g,o,s,P,Q,V,$,ee,te,ne,le,re,ae]}class X extends e.SvelteComponent{constructor(l){super(),e.init(this,l,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21,mbsource:22},ie,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(l){this.$$set({tournamenturl:l}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(l){this.$$set({scrollby:l}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(l){this.$$set({pagfactor:l}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(l){this.$$set({lang:l}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(l){this.$$set({mbsource:l}),e.flush()}}e.create_custom_element(X,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=X;
|