@everymatrix/casino-tournaments-list-controller 1.65.2 → 1.65.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/{CasinoTournamentsListController-BbMxlacs.js → CasinoTournamentsListController-CwQp-szg.js} +2145 -2152
- package/components/{CasinoTournamentsListController-BmResUm1.js → CasinoTournamentsListController-DARzYiXJ.js} +1866 -1791
- package/components/CasinoTournamentsListController-FixxxVPw.cjs +28 -0
- package/components/{CasinoTournamentsThumbnail-GGpqWUUU.cjs → CasinoTournamentsThumbnail-BE01XfdC.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-BctgkfiG.js → CasinoTournamentsThumbnail-DBtRh3qP.js} +30 -30
- package/components/{CasinoTournamentsThumbnail-BLl6r3kP.js → CasinoTournamentsThumbnail-DGFer4iB.js} +30 -30
- package/components/CasinoTournamentsThumbnailController-CiYmD0OC.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailController-qtMqHOKR.js → CasinoTournamentsThumbnailController-DgMcOUG-.js} +327 -392
- package/components/{CasinoTournamentsThumbnailController-LQRpg-1c.js → CasinoTournamentsThumbnailController-DpEF5YwW.js} +340 -405
- package/components/{CasinoTournamentsThumbnailDuration-C5E3xPWt.js → CasinoTournamentsThumbnailDuration-9957mVyI.js} +35 -35
- package/components/{CasinoTournamentsThumbnailDuration-CLG474CZ.js → CasinoTournamentsThumbnailDuration-CRsTbsdJ.js} +35 -35
- package/components/{CasinoTournamentsThumbnailDuration-BEkKAuX-.cjs → CasinoTournamentsThumbnailDuration-DX9aKZsv.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BZPzU1n_.js → CasinoTournamentsThumbnailGamesSlider-2_ISHpMn.js} +56 -56
- package/components/{CasinoTournamentsThumbnailGamesSlider-gRsycWHT.js → CasinoTournamentsThumbnailGamesSlider-Cing6yG3.js} +56 -56
- package/components/{CasinoTournamentsThumbnailGamesSlider-Cs5RTcj-.cjs → CasinoTournamentsThumbnailGamesSlider-DDxzPtNz.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BGoHCct2.js → CasinoTournamentsThumbnailPrizes-DdUal0Lm.js} +37 -37
- package/components/{CasinoTournamentsThumbnailPrizes-BRyr6n6l.js → CasinoTournamentsThumbnailPrizes-DyQGQYuY.js} +37 -37
- package/components/{CasinoTournamentsThumbnailPrizes-1UaFyOK_.cjs → CasinoTournamentsThumbnailPrizes-GlkjX8Xm.cjs} +1 -1
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-ChRvzjAp.js} +186 -186
- package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-DKsTmN3Z.js} +175 -175
- package/stencil/index-97d17652-qWThG1U9.cjs +1 -0
- package/stencil/index-b2193545-C1ayEiG4.js +503 -0
- package/stencil/index-b2193545-CyidmLE0.cjs +1 -0
- package/stencil/index-b2193545-s3PsNboB.js +519 -0
- package/stencil/{ui-image-3hy4ZvUC.js → ui-image-ClXqMGwp.js} +1 -1
- package/stencil/{ui-image-DE8MJHCZ.cjs → ui-image-Db5QCSmt.cjs} +1 -1
- package/stencil/{ui-image-D0wxuPze.js → ui-image-YphrYZtA.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-B43lELFk.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-CRQDt62Z.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-DVcK_myk.js} +1 -1
- package/stencil/{ui-image_2-YkYxLKu7.cjs → ui-image_2-CyHaM9Na.cjs} +1 -1
- package/stencil/{ui-image_2-BncuYpLi.js → ui-image_2-Df0q0jE8.js} +2 -2
- package/stencil/{ui-image_2-B56t6kXT.js → ui-image_2-EP2dwjfi.js} +2 -2
- package/stencil/{ui-skeleton-1cb75d00-B-R8GbLJ.js → ui-skeleton-1cb75d00-U47XWOV2.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-Dy30RNE6.js → ui-skeleton-1cb75d00-bf7NJcVF.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-BTnhspbc.cjs → ui-skeleton-1cb75d00-nmwFu55Y.cjs} +1 -1
- package/stencil/{ui-skeleton-CVBjRUvi.js → ui-skeleton-DSlZCsjK.js} +2 -2
- package/stencil/{ui-skeleton-se83zfWh.cjs → ui-skeleton-DXCQ8Yoq.cjs} +1 -1
- package/stencil/{ui-skeleton-RkXNxPG1.js → ui-skeleton-P9Vv-0Vy.js} +2 -2
- package/components/CasinoTournamentsListController-QOpDP1gT.cjs +0 -15
- package/components/CasinoTournamentsThumbnailController-Bdh5qjnp.cjs +0 -16
- package/stencil/index-97d17652-D5_8Vwfn.cjs +0 -1
- package/stencil/index-b2193545-BOMvxBzV.js +0 -519
- package/stencil/index-b2193545-CFn9dM-v.js +0 -503
- package/stencil/index-b2193545-DPygl1Qn.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke,
|
|
2
|
-
import { g as
|
|
3
|
-
function
|
|
1
|
+
import { a as be, S as ve, i as ke, f as M, c as Ne, s as Se, b as Te, e as S, h as D, n as R, k as G, l as Fe, o as Me, G as X, d as C, g as c, H as z, F as Y, I as Pe, j as v, J as Be, u as L, K as Ee, v as te, t as Le, x as K, m as He, w as I, z as je } from "./CasinoTournamentsListController-DARzYiXJ.js";
|
|
2
|
+
import { g as ze } from "./CasinoTournamentsThumbnailController-DpEF5YwW.js";
|
|
3
|
+
function Z(e, l) {
|
|
4
4
|
be(e, l);
|
|
5
5
|
}
|
|
6
6
|
const Q = {
|
|
@@ -35,15 +35,15 @@ const Q = {
|
|
|
35
35
|
playNow: "Play now"
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
function
|
|
39
|
-
|
|
38
|
+
function Ce(e) {
|
|
39
|
+
Te(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 V(e, l, t) {
|
|
42
42
|
const a = e.slice();
|
|
43
43
|
return a[50] = l[t], a[52] = t, a;
|
|
44
44
|
}
|
|
45
45
|
function $(e) {
|
|
46
|
-
let l, t, a, m, d, p, y, r, w, _, f =
|
|
46
|
+
let l, t, a, m, d, p, y, r, w, _, f = X(
|
|
47
47
|
/*games*/
|
|
48
48
|
e[1]
|
|
49
49
|
), o = [];
|
|
@@ -51,10 +51,10 @@ function $(e) {
|
|
|
51
51
|
o[s] = ee(V(e, f, s));
|
|
52
52
|
return {
|
|
53
53
|
c() {
|
|
54
|
-
l = S("div"), t = S("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 =
|
|
54
|
+
l = S("div"), t = S("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(), m = S("main"), d = S("div");
|
|
55
55
|
for (let s = 0; s < o.length; s += 1)
|
|
56
56
|
o[s].c();
|
|
57
|
-
y =
|
|
57
|
+
y = C(), r = S("div"), r.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"), z(
|
|
58
58
|
t,
|
|
59
59
|
"disabled",
|
|
60
60
|
/*atStart*/
|
|
@@ -63,7 +63,7 @@ function $(e) {
|
|
|
63
63
|
e[2] + "px)"), Pe(() => (
|
|
64
64
|
/*main_elementresize_handler*/
|
|
65
65
|
e[28].call(m)
|
|
66
|
-
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"),
|
|
66
|
+
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), z(
|
|
67
67
|
r,
|
|
68
68
|
"disabled",
|
|
69
69
|
/*atEnd*/
|
|
@@ -71,10 +71,10 @@ function $(e) {
|
|
|
71
71
|
), c(l, "class", "TournamentsGamesSlider"), c(l, "part", "TournamentsGamesSlider");
|
|
72
72
|
},
|
|
73
73
|
m(s, b) {
|
|
74
|
-
|
|
74
|
+
D(s, l, b), v(l, t), v(l, a), v(l, m), v(m, d);
|
|
75
75
|
for (let i = 0; i < o.length; i += 1)
|
|
76
76
|
o[i] && o[i].m(d, null);
|
|
77
|
-
e[27](d), p =
|
|
77
|
+
e[27](d), p = Be(
|
|
78
78
|
m,
|
|
79
79
|
/*main_elementresize_handler*/
|
|
80
80
|
e[28].bind(m)
|
|
@@ -95,14 +95,14 @@ function $(e) {
|
|
|
95
95
|
},
|
|
96
96
|
p(s, b) {
|
|
97
97
|
if (b[0] & /*atStart*/
|
|
98
|
-
256 &&
|
|
98
|
+
256 && z(
|
|
99
99
|
t,
|
|
100
100
|
"disabled",
|
|
101
101
|
/*atStart*/
|
|
102
102
|
s[8]
|
|
103
103
|
), b[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
|
|
104
104
|
23650) {
|
|
105
|
-
f =
|
|
105
|
+
f = X(
|
|
106
106
|
/*games*/
|
|
107
107
|
s[1]
|
|
108
108
|
);
|
|
@@ -118,7 +118,7 @@ function $(e) {
|
|
|
118
118
|
b[0] & /*offset*/
|
|
119
119
|
4 && Y(d, "transform", "translateX(" + /*offset*/
|
|
120
120
|
s[2] + "px)"), b[0] & /*atEnd*/
|
|
121
|
-
512 &&
|
|
121
|
+
512 && z(
|
|
122
122
|
r,
|
|
123
123
|
"disabled",
|
|
124
124
|
/*atEnd*/
|
|
@@ -126,7 +126,7 @@ function $(e) {
|
|
|
126
126
|
);
|
|
127
127
|
},
|
|
128
128
|
d(s) {
|
|
129
|
-
s && G(l),
|
|
129
|
+
s && G(l), Ee(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -155,19 +155,19 @@ function ee(e) {
|
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
157
|
c() {
|
|
158
|
-
l = S("div"), t = S("span"), m = Le(a), y =
|
|
158
|
+
l = S("div"), t = S("span"), m = Le(a), y = C(), r = S("img"), o = C(), c(t, "class", d = "PlayNowButton " + /*hover*/
|
|
159
159
|
(e[5] && /*hoverIndex*/
|
|
160
160
|
e[6] == /*i*/
|
|
161
161
|
e[52] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
162
162
|
(e[5] && /*hoverIndex*/
|
|
163
163
|
e[6] == /*i*/
|
|
164
|
-
e[52] ? "itemHover" : "")),
|
|
164
|
+
e[52] ? "itemHover" : "")), K(r.src, w = /*game*/
|
|
165
165
|
e[50].thumbnail) || c(r, "src", w), c(r, "width", "132px"), c(r, "height", "100px"), c(r, "alt", _ = /*game*/
|
|
166
166
|
e[50].name), c(r, "title", f = /*game*/
|
|
167
167
|
e[50].name), c(l, "class", "item"), c(l, "part", "item");
|
|
168
168
|
},
|
|
169
169
|
m(u, h) {
|
|
170
|
-
|
|
170
|
+
D(u, l, h), v(l, t), v(t, m), v(l, y), v(l, r), v(l, o), s || (b = [
|
|
171
171
|
L(l, "click", i),
|
|
172
172
|
L(l, "mouseenter", k),
|
|
173
173
|
L(
|
|
@@ -181,7 +181,7 @@ function ee(e) {
|
|
|
181
181
|
p(u, h) {
|
|
182
182
|
e = u, h[0] & /*$_*/
|
|
183
183
|
1024 && a !== (a = /*$_*/
|
|
184
|
-
e[10]("playNow") + "") &&
|
|
184
|
+
e[10]("playNow") + "") && He(m, a), h[0] & /*hover, hoverIndex*/
|
|
185
185
|
96 && d !== (d = "PlayNowButton " + /*hover*/
|
|
186
186
|
(e[5] && /*hoverIndex*/
|
|
187
187
|
e[6] == /*i*/
|
|
@@ -190,7 +190,7 @@ function ee(e) {
|
|
|
190
190
|
(e[5] && /*hoverIndex*/
|
|
191
191
|
e[6] == /*i*/
|
|
192
192
|
e[52] ? "itemHover" : "")) && c(t, "part", p), h[0] & /*games*/
|
|
193
|
-
2 && !
|
|
193
|
+
2 && !K(r.src, w = /*game*/
|
|
194
194
|
e[50].thumbnail) && c(r, "src", w), h[0] & /*games*/
|
|
195
195
|
2 && _ !== (_ = /*game*/
|
|
196
196
|
e[50].name) && c(r, "alt", _), h[0] & /*games*/
|
|
@@ -213,52 +213,52 @@ function Ae(e) {
|
|
|
213
213
|
l = S("div"), t && t.c();
|
|
214
214
|
},
|
|
215
215
|
m(a, m) {
|
|
216
|
-
|
|
216
|
+
D(a, l, m), t && t.m(l, null), e[31](l);
|
|
217
217
|
},
|
|
218
218
|
p(a, m) {
|
|
219
219
|
/*games*/
|
|
220
220
|
a[1] && /*games*/
|
|
221
221
|
a[1].length > 0 ? t ? t.p(a, m) : (t = $(a), t.c(), t.m(l, null)) : t && (t.d(1), t = null);
|
|
222
222
|
},
|
|
223
|
-
i:
|
|
224
|
-
o:
|
|
223
|
+
i: R,
|
|
224
|
+
o: R,
|
|
225
225
|
d(a) {
|
|
226
226
|
a && G(l), t && t.d(), e[31](null);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
let Ue = 30;
|
|
231
|
-
function
|
|
231
|
+
function Ie(e, l, t) {
|
|
232
232
|
let a, m, d;
|
|
233
|
-
|
|
234
|
-
let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, h, H = null, j = null, A = !1, U,
|
|
233
|
+
Fe(e, je, (n) => t(10, d = n));
|
|
234
|
+
let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, h, H = null, j = null, A = !1, U, P, B = 0, T;
|
|
235
235
|
const ne = () => {
|
|
236
236
|
fetch(_).then((g) => g.json()).then((g) => {
|
|
237
237
|
Object.keys(g).forEach((N) => {
|
|
238
|
-
|
|
238
|
+
Z(N, g[N]);
|
|
239
239
|
});
|
|
240
240
|
}).catch((g) => {
|
|
241
241
|
console.log(g);
|
|
242
242
|
});
|
|
243
243
|
};
|
|
244
244
|
Object.keys(Q).forEach((n) => {
|
|
245
|
-
|
|
245
|
+
Z(n, Q[n]);
|
|
246
246
|
});
|
|
247
247
|
const W = (n) => {
|
|
248
248
|
t(5, A = !0), t(6, U = n);
|
|
249
249
|
}, q = () => {
|
|
250
250
|
t(5, A = !1), t(6, U = -1);
|
|
251
|
-
}, le = (n) => n.touches || n.originalEvent.touches,
|
|
251
|
+
}, le = (n) => n.touches || n.originalEvent.touches, x = (n) => {
|
|
252
252
|
const g = le(n)[0];
|
|
253
253
|
H = g.clientX, j = g.clientY;
|
|
254
|
-
},
|
|
254
|
+
}, J = (n) => {
|
|
255
255
|
if (!H || !j)
|
|
256
256
|
return;
|
|
257
257
|
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
|
|
258
|
-
Math.abs(F) > Math.abs(_e) && (F > 0 ?
|
|
259
|
-
},
|
|
260
|
-
n > 0 && !m ? (t(2, u -= i), t(2, u = u <
|
|
261
|
-
},
|
|
258
|
+
Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, j = null;
|
|
259
|
+
}, E = (n) => {
|
|
260
|
+
n > 0 && !m ? (t(2, u -= i), t(2, u = u < B ? B : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
|
|
261
|
+
}, O = (n) => {
|
|
262
262
|
window.postMessage(
|
|
263
263
|
{
|
|
264
264
|
type: "TournamentGameAction",
|
|
@@ -270,15 +270,15 @@ function De(e, l, t) {
|
|
|
270
270
|
);
|
|
271
271
|
}, se = () => {
|
|
272
272
|
let n = new URL(p), g = new Headers();
|
|
273
|
-
n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform",
|
|
273
|
+
n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform", ze(b)), fetch(n, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
|
|
274
274
|
t(1, k = F.item.games.items), F.item.games.total;
|
|
275
275
|
});
|
|
276
276
|
}, re = () => {
|
|
277
|
-
h.addEventListener("touchstart",
|
|
277
|
+
h.addEventListener("touchstart", x, { passive: !0 }), h.addEventListener("touchmove", J, { passive: !0 });
|
|
278
278
|
}, ae = () => {
|
|
279
279
|
setTimeout(
|
|
280
280
|
() => {
|
|
281
|
-
t(22,
|
|
281
|
+
t(22, B = (P.scrollWidth - P.clientWidth) * -1), t(16, r = new String(P.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
|
|
282
282
|
},
|
|
283
283
|
1e3
|
|
284
284
|
);
|
|
@@ -302,26 +302,26 @@ function De(e, l, t) {
|
|
|
302
302
|
}, ce = () => {
|
|
303
303
|
T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
|
|
304
304
|
};
|
|
305
|
-
|
|
306
|
-
h.removeEventListener("touchstart",
|
|
305
|
+
Me(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
|
|
306
|
+
h.removeEventListener("touchstart", x), h.removeEventListener("touchmove", J);
|
|
307
307
|
}));
|
|
308
|
-
const ue = () =>
|
|
308
|
+
const ue = () => E(-1), me = (n) => O(n), de = (n) => W(n), he = () => q();
|
|
309
309
|
function fe(n) {
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
I[n ? "unshift" : "push"](() => {
|
|
311
|
+
P = n, t(7, P);
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
function ge() {
|
|
315
315
|
T = this.clientWidth, t(4, T);
|
|
316
316
|
}
|
|
317
|
-
const pe = () =>
|
|
317
|
+
const pe = () => E(1);
|
|
318
318
|
function ye(n) {
|
|
319
|
-
|
|
319
|
+
I[n ? "unshift" : "push"](() => {
|
|
320
320
|
h = n, t(3, h);
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
function we(n) {
|
|
324
|
-
|
|
324
|
+
I[n ? "unshift" : "push"](() => {
|
|
325
325
|
s = n, t(0, s);
|
|
326
326
|
});
|
|
327
327
|
}
|
|
@@ -330,7 +330,7 @@ function De(e, l, t) {
|
|
|
330
330
|
}, e.$$.update = () => {
|
|
331
331
|
e.$$.dirty[0] & /*offset*/
|
|
332
332
|
4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
333
|
-
4194308 && t(9, m = u <=
|
|
333
|
+
4194308 && t(9, m = u <= B), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
334
334
|
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
335
335
|
131072 && p && se(), e.$$.dirty[0] & /*slider*/
|
|
336
336
|
8 && h && re(), e.$$.dirty[0] & /*translationurl*/
|
|
@@ -346,14 +346,14 @@ function De(e, l, t) {
|
|
|
346
346
|
T,
|
|
347
347
|
A,
|
|
348
348
|
U,
|
|
349
|
-
|
|
349
|
+
P,
|
|
350
350
|
a,
|
|
351
351
|
m,
|
|
352
352
|
d,
|
|
353
353
|
W,
|
|
354
354
|
q,
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
E,
|
|
356
|
+
O,
|
|
357
357
|
y,
|
|
358
358
|
r,
|
|
359
359
|
p,
|
|
@@ -361,7 +361,7 @@ function De(e, l, t) {
|
|
|
361
361
|
_,
|
|
362
362
|
f,
|
|
363
363
|
o,
|
|
364
|
-
|
|
364
|
+
B,
|
|
365
365
|
ue,
|
|
366
366
|
me,
|
|
367
367
|
de,
|
|
@@ -373,14 +373,14 @@ function De(e, l, t) {
|
|
|
373
373
|
we
|
|
374
374
|
];
|
|
375
375
|
}
|
|
376
|
-
class
|
|
376
|
+
class De extends ve {
|
|
377
377
|
constructor(l) {
|
|
378
378
|
super(), ke(
|
|
379
379
|
this,
|
|
380
380
|
l,
|
|
381
|
-
|
|
381
|
+
Ie,
|
|
382
382
|
Ae,
|
|
383
|
-
|
|
383
|
+
Se,
|
|
384
384
|
{
|
|
385
385
|
tournamenturl: 17,
|
|
386
386
|
scrollby: 15,
|
|
@@ -390,7 +390,7 @@ class Ge extends ve {
|
|
|
390
390
|
clientstyling: 20,
|
|
391
391
|
clientstylingurl: 21
|
|
392
392
|
},
|
|
393
|
-
|
|
393
|
+
Ce,
|
|
394
394
|
[-1, -1]
|
|
395
395
|
);
|
|
396
396
|
}
|
|
@@ -437,7 +437,7 @@ class Ge extends ve {
|
|
|
437
437
|
this.$$set({ clientstylingurl: l }), M();
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
|
|
440
|
+
Ne(De, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
441
441
|
export {
|
|
442
|
-
|
|
442
|
+
De as default
|
|
443
443
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-FixxxVPw.cjs"),ie=require("./CasinoTournamentsThumbnailController-CiYmD0OC.cjs");function U(t,r){e.addMessages(t,r)}const q={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 oe(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 D(t,r,n){const i=t.slice();return i[50]=r[n],i[52]=n,i}function I(t){let r,n,i,d,m,p,_,s,y,w,g=e.ensure_array_like(t[1]),c=[];for(let a=0;a<g.length;a+=1)c[a]=W(D(t,g,a));return{c(){r=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"),m=e.element("div");for(let a=0;a<c.length;a+=1)c[a].c();_=e.space(),s=e.element("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>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(m,"class","items"),e.attr(m,"part","items"),e.set_style(m,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[28].call(d)),e.attr(s,"class","SliderNavButton"),e.attr(s,"part","SliderNavButton"),e.toggle_class(s,"disabled",t[9]),e.attr(r,"class","TournamentsGamesSlider"),e.attr(r,"part","TournamentsGamesSlider")},m(a,b){e.insert(a,r,b),e.append(r,n),e.append(r,i),e.append(r,d),e.append(d,m);for(let o=0;o<c.length;o+=1)c[o]&&c[o].m(m,null);t[27](m),p=e.add_iframe_resize_listener(d,t[28].bind(d)),e.append(r,_),e.append(r,s),t[30](r),y||(w=[e.listen(n,"click",t[23]),e.listen(s,"click",t[29])],y=!0)},p(a,b){if(b[0]&256&&e.toggle_class(n,"disabled",a[8]),b[0]&23650){g=e.ensure_array_like(a[1]);let o;for(o=0;o<g.length;o+=1){const v=D(a,g,o);c[o]?c[o].p(v,b):(c[o]=W(v),c[o].c(),c[o].m(m,null))}for(;o<c.length;o+=1)c[o].d(1);c.length=g.length}b[0]&4&&e.set_style(m,"transform","translateX("+a[2]+"px)"),b[0]&512&&e.toggle_class(s,"disabled",a[9])},d(a){a&&e.detach(r),e.destroy_each(c,a),t[27](null),p(),t[30](null),y=!1,e.run_all(w)}}}function W(t){let r,n,i=t[10]("playNow")+"",d,m,p,_,s,y,w,g,c,a,b;function o(){return t[24](t[50])}function v(){return t[25](t[52])}return{c(){r=e.element("div"),n=e.element("span"),d=e.text(i),_=e.space(),s=e.element("img"),c=e.space(),e.attr(n,"class",m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.attr(n,"part",p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.src_url_equal(s.src,y=t[50].thumbnail)||e.attr(s,"src",y),e.attr(s,"width","132px"),e.attr(s,"height","100px"),e.attr(s,"alt",w=t[50].name),e.attr(s,"title",g=t[50].name),e.attr(r,"class","item"),e.attr(r,"part","item")},m(u,h){e.insert(u,r,h),e.append(r,n),e.append(n,d),e.append(r,_),e.append(r,s),e.append(r,c),a||(b=[e.listen(r,"click",o),e.listen(r,"mouseenter",v),e.listen(r,"mouseleave",t[26])],a=!0)},p(u,h){t=u,h[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),h[0]&96&&m!==(m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"class",m),h[0]&96&&p!==(p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"part",p),h[0]&2&&!e.src_url_equal(s.src,y=t[50].thumbnail)&&e.attr(s,"src",y),h[0]&2&&w!==(w=t[50].name)&&e.attr(s,"alt",w),h[0]&2&&g!==(g=t[50].name)&&e.attr(s,"title",g)},d(u){u&&e.detach(r),a=!1,e.run_all(b)}}}function ce(t){let r,n=t[1]&&t[1].length>0&&I(t);return{c(){r=e.element("div"),n&&n.c()},m(i,d){e.insert(i,r,d),n&&n.m(r,null),t[31](r)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=I(i),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(r),n&&n.d(),t[31](null)}}}let ue=30;function de(t,r,n){let i,d,m;e.component_subscribe(t,e.$format,l=>n(10,m=l));let{tournamenturl:p=""}=r,{scrollby:_="3"}=r,{pagfactor:s="175"}=r,{lang:y=""}=r,{translationurl:w=""}=r,{clientstyling:g=""}=r,{clientstylingurl:c=""}=r,a,b=window.navigator.userAgent,o,v=[],u=0,h,P=null,B=null,C=!1,E,S,M=0,N;const O=()=>{fetch(w).then(f=>f.json()).then(f=>{Object.keys(f).forEach(k=>{U(k,f[k])})}).catch(f=>{console.log(f)})};Object.keys(q).forEach(l=>{U(l,q[l])});const L=l=>{n(5,C=!0),n(6,E=l)},j=()=>{n(5,C=!1),n(6,E=-1)},R=l=>l.touches||l.originalEvent.touches,H=l=>{const f=R(l)[0];P=f.clientX,B=f.clientY},z=l=>{if(!P||!B)return;let f=l.touches[0].clientX,k=l.touches[0].clientY,T=P-f,se=B-k;Math.abs(T)>Math.abs(se)&&(T>0?F(1):F(-1)),P=null,B=null},F=l=>{l>0&&!d?(n(2,u-=o),n(2,u=u<M?M:u)):l<0&&!i&&(n(2,u+=o),n(2,u=u>0?0:u))},A=l=>{window.postMessage({type:"TournamentGameAction",gameId:l.id,name:l.name,launchUrl:l.launchUrl},window.location.href)},X=()=>{let l=new URL(p),f=new Headers;l.searchParams.append("expand","games"),l.searchParams.append("pagination",`games(limit=${ue},offset=${u})`),l.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),l.searchParams.append("language",y),l.searchParams.append("platform",ie.getDevice(b)),fetch(l,{method:"GET",headers:f}).then(T=>T.json()).then(T=>{n(1,v=T.item.games.items),T.item.games.total})},J=()=>{h.addEventListener("touchstart",H,{passive:!0}),h.addEventListener("touchmove",z,{passive:!0})},x=()=>{setTimeout(()=>{n(22,M=(S.scrollWidth-S.clientWidth)*-1),n(16,s=new String(S.scrollWidth/v.length)),o=parseInt(_,10)*parseFloat(s,2).toFixed(2)},1e3)},Y=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},Z=()=>{let l=new URL(c),f=document.createElement("style");fetch(l.href).then(k=>k.text()).then(k=>{f.innerHTML=k,setTimeout(()=>{a.appendChild(f)},1),setTimeout(()=>{},500)})},K=()=>{N>0&&N<Math.floor((parseInt(_)+1)*s)&&n(15,_=Math.ceil(N/s).toString())};e.onMount(()=>(o=parseInt(_,10)*parseInt(s,10),()=>{h.removeEventListener("touchstart",H),h.removeEventListener("touchmove",z)}));const Q=()=>F(-1),V=l=>A(l),$=l=>L(l),ee=()=>j();function te(l){e.binding_callbacks[l?"unshift":"push"](()=>{S=l,n(7,S)})}function ne(){N=this.clientWidth,n(4,N)}const le=()=>F(1);function re(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,n(3,h)})}function ae(l){e.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(0,a)})}return t.$$set=l=>{"tournamenturl"in l&&n(17,p=l.tournamenturl),"scrollby"in l&&n(15,_=l.scrollby),"pagfactor"in l&&n(16,s=l.pagfactor),"lang"in l&&n(18,y=l.lang),"translationurl"in l&&n(19,w=l.translationurl),"clientstyling"in l&&n(20,g=l.clientstyling),"clientstylingurl"in l&&n(21,c=l.clientstylingurl)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=u===0),t.$$.dirty[0]&4194308&&n(9,d=u<=M),t.$$.dirty[0]&16&&N&&K(),t.$$.dirty[0]&131072&&p&&X(),t.$$.dirty[0]&8&&h&&J(),t.$$.dirty[0]&524288&&w&&O(),t.$$.dirty[0]&2&&v.length&&x(),t.$$.dirty[0]&1048577&&g&&a&&Y(),t.$$.dirty[0]&2097153&&c&&a&&Z()},n(2,u=0),[a,v,u,h,N,C,E,S,i,d,m,L,j,F,A,_,s,p,y,w,g,c,M,Q,V,$,ee,te,ne,le,re,ae]}class G extends e.SvelteComponent{constructor(r){super(),e.init(this,r,de,ce,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},oe,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(r){this.$$set({tournamenturl:r}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(r){this.$$set({scrollby:r}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(r){this.$$set({pagfactor:r}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(r){this.$$set({lang:r}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(r){this.$$set({translationurl:r}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(r){this.$$set({clientstyling:r}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),e.flush()}}e.create_custom_element(G,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=G;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as A, S as Z, i as j,
|
|
2
|
-
function
|
|
1
|
+
import { a as A, S as Z, i as j, f as T, c as I, s as R, b as B, e as g, d as b, t as _, g as u, h as k, j as f, m as v, n as M, k as F, l as O, o as U, G as N, K as V, w as W, z as q } from "./CasinoTournamentsListController-DARzYiXJ.js";
|
|
2
|
+
function H(l, e) {
|
|
3
3
|
A(l, e);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const S = {
|
|
6
6
|
en: {
|
|
7
7
|
prizes: "Prizes",
|
|
8
8
|
noprizes: "No available prizes",
|
|
@@ -59,10 +59,10 @@ const H = {
|
|
|
59
59
|
place: "place"
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
function
|
|
63
|
-
|
|
62
|
+
function D(l) {
|
|
63
|
+
B(l, "svelte-1bsrm1d", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function E(l, e, t) {
|
|
66
66
|
const n = l.slice();
|
|
67
67
|
return n[13] = e[t], n[15] = t, n;
|
|
68
68
|
}
|
|
@@ -72,7 +72,7 @@ function L(l) {
|
|
|
72
72
|
l[1]
|
|
73
73
|
), n = [];
|
|
74
74
|
for (let i = 0; i < t.length; i += 1)
|
|
75
|
-
n[i] = x(
|
|
75
|
+
n[i] = x(E(l, t, i));
|
|
76
76
|
let r = null;
|
|
77
77
|
return t.length || (r = C(l)), {
|
|
78
78
|
c() {
|
|
@@ -82,7 +82,7 @@ function L(l) {
|
|
|
82
82
|
r && r.c(), u(e, "class", "Prizes"), u(e, "part", "Prizes");
|
|
83
83
|
},
|
|
84
84
|
m(i, c) {
|
|
85
|
-
|
|
85
|
+
k(i, e, c);
|
|
86
86
|
for (let s = 0; s < n.length; s += 1)
|
|
87
87
|
n[s] && n[s].m(e, null);
|
|
88
88
|
r && r.m(e, null);
|
|
@@ -96,7 +96,7 @@ function L(l) {
|
|
|
96
96
|
);
|
|
97
97
|
let s;
|
|
98
98
|
for (s = 0; s < t.length; s += 1) {
|
|
99
|
-
const p =
|
|
99
|
+
const p = E(i, t, s);
|
|
100
100
|
n[s] ? n[s].p(p, c) : (n[s] = x(p), n[s].c(), n[s].m(e, null));
|
|
101
101
|
}
|
|
102
102
|
for (; s < n.length; s += 1)
|
|
@@ -105,7 +105,7 @@ function L(l) {
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
d(i) {
|
|
108
|
-
i &&
|
|
108
|
+
i && F(e), V(n, i), r && r.d();
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
}
|
|
@@ -119,7 +119,7 @@ function C(l) {
|
|
|
119
119
|
e = g("p"), n = _(t);
|
|
120
120
|
},
|
|
121
121
|
m(r, i) {
|
|
122
|
-
|
|
122
|
+
k(r, e, i), f(e, n);
|
|
123
123
|
},
|
|
124
124
|
p(r, i) {
|
|
125
125
|
i & /*$_*/
|
|
@@ -127,7 +127,7 @@ function C(l) {
|
|
|
127
127
|
r[2]("noprizes") + "") && v(n, t);
|
|
128
128
|
},
|
|
129
129
|
d(r) {
|
|
130
|
-
r &&
|
|
130
|
+
r && F(e);
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
}
|
|
@@ -147,15 +147,15 @@ function x(l) {
|
|
|
147
147
|
), p, o, d = (
|
|
148
148
|
/*prize*/
|
|
149
149
|
l[13].name + ""
|
|
150
|
-
), z,
|
|
150
|
+
), z, w;
|
|
151
151
|
return {
|
|
152
152
|
c() {
|
|
153
|
-
e = g("div"), t = g("p"), n = g("span"), i = _(r), c = b(), p = _(s), o = _(": "), z = _(d),
|
|
153
|
+
e = g("div"), t = g("p"), n = g("span"), i = _(r), c = b(), p = _(s), o = _(": "), z = _(d), w = b(), u(n, "class", "PrizeRank"), u(n, "part", "PrizeRank"), u(t, "class", "PrizeText"), u(t, "part", "PrizeText"), u(e, "class", "Prize Prize" + /*index*/
|
|
154
154
|
l[15]), u(e, "part", "Prize Prize" + /*index*/
|
|
155
155
|
l[15]);
|
|
156
156
|
},
|
|
157
157
|
m(h, y) {
|
|
158
|
-
|
|
158
|
+
k(h, e, y), f(e, t), f(t, n), f(n, i), f(t, c), f(t, p), f(t, o), f(t, z), f(e, w);
|
|
159
159
|
},
|
|
160
160
|
p(h, y) {
|
|
161
161
|
y & /*prizes*/
|
|
@@ -173,7 +173,7 @@ function x(l) {
|
|
|
173
173
|
h[13].name + "") && v(z, d);
|
|
174
174
|
},
|
|
175
175
|
d(h) {
|
|
176
|
-
h &&
|
|
176
|
+
h && F(e);
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
}
|
|
@@ -190,7 +190,7 @@ function G(l) {
|
|
|
190
190
|
e = g("div"), t = g("div"), n = g("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', r = b(), i = g("p"), s = _(c), p = b(), o && o.c(), u(n, "class", "TournamentPrizesIconWrapper"), u(n, "part", "TournamentPrizesIconWrapper"), u(i, "class", "PrizesTitle"), u(i, "part", "PrizesTitle"), u(t, "class", "TournamentPrizesIconSection"), u(t, "part", "TournamentPrizesIconSection"), u(e, "class", "TournamentPrizes"), u(e, "part", "TournamentPrizes");
|
|
191
191
|
},
|
|
192
192
|
m(d, z) {
|
|
193
|
-
|
|
193
|
+
k(d, e, z), f(e, t), f(t, n), f(t, r), f(t, i), f(i, s), f(e, p), o && o.m(e, null), l[7](e);
|
|
194
194
|
},
|
|
195
195
|
p(d, [z]) {
|
|
196
196
|
z & /*$_*/
|
|
@@ -201,29 +201,29 @@ function G(l) {
|
|
|
201
201
|
i: M,
|
|
202
202
|
o: M,
|
|
203
203
|
d(d) {
|
|
204
|
-
d &&
|
|
204
|
+
d && F(e), o && o.d(), l[7](null);
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function K(l, e, t) {
|
|
209
209
|
let n;
|
|
210
|
-
|
|
210
|
+
O(l, q, (a) => t(2, n = a));
|
|
211
211
|
let { tourid: r = "" } = e, { clientstyling: i = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: s = "" } = e, p, o;
|
|
212
212
|
const d = () => {
|
|
213
213
|
fetch(s).then((m) => m.json()).then((m) => {
|
|
214
214
|
Object.keys(m).forEach((P) => {
|
|
215
|
-
|
|
215
|
+
H(P, m[P]);
|
|
216
216
|
});
|
|
217
217
|
}).catch((m) => {
|
|
218
218
|
console.log(m);
|
|
219
219
|
});
|
|
220
220
|
};
|
|
221
|
-
Object.keys(
|
|
222
|
-
|
|
221
|
+
Object.keys(S).forEach((a) => {
|
|
222
|
+
H(a, S[a]);
|
|
223
223
|
});
|
|
224
224
|
const z = (a) => {
|
|
225
225
|
a.data && a.data.type == `TournamentPrizes_${r}` && t(1, o = a.data.prizes);
|
|
226
|
-
},
|
|
226
|
+
}, w = () => {
|
|
227
227
|
let a = document.createElement("style");
|
|
228
228
|
a.innerHTML = i, p.appendChild(a);
|
|
229
229
|
}, h = () => {
|
|
@@ -241,11 +241,11 @@ function J(l, e, t) {
|
|
|
241
241
|
);
|
|
242
242
|
});
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
U(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", z, !1), () => {
|
|
245
245
|
window.removeEventListener("message", z);
|
|
246
246
|
}));
|
|
247
247
|
function y(a) {
|
|
248
|
-
|
|
248
|
+
W[a ? "unshift" : "push"](() => {
|
|
249
249
|
p = a, t(0, p);
|
|
250
250
|
});
|
|
251
251
|
}
|
|
@@ -253,7 +253,7 @@ function J(l, e, t) {
|
|
|
253
253
|
"tourid" in a && t(3, r = a.tourid), "clientstyling" in a && t(4, i = a.clientstyling), "clientstylingurl" in a && t(5, c = a.clientstylingurl), "translationurl" in a && t(6, s = a.translationurl);
|
|
254
254
|
}, l.$$.update = () => {
|
|
255
255
|
l.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
256
|
-
17 && p && i &&
|
|
256
|
+
17 && p && i && w(), l.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
257
257
|
33 && p && c && h(), l.$$.dirty & /*translationurl*/
|
|
258
258
|
64 && s && d();
|
|
259
259
|
}, [
|
|
@@ -267,49 +267,49 @@ function J(l, e, t) {
|
|
|
267
267
|
y
|
|
268
268
|
];
|
|
269
269
|
}
|
|
270
|
-
class
|
|
270
|
+
class J extends Z {
|
|
271
271
|
constructor(e) {
|
|
272
272
|
super(), j(
|
|
273
273
|
this,
|
|
274
274
|
e,
|
|
275
|
-
|
|
275
|
+
K,
|
|
276
276
|
G,
|
|
277
|
-
|
|
277
|
+
R,
|
|
278
278
|
{
|
|
279
279
|
tourid: 3,
|
|
280
280
|
clientstyling: 4,
|
|
281
281
|
clientstylingurl: 5,
|
|
282
282
|
translationurl: 6
|
|
283
283
|
},
|
|
284
|
-
|
|
284
|
+
D
|
|
285
285
|
);
|
|
286
286
|
}
|
|
287
287
|
get tourid() {
|
|
288
288
|
return this.$$.ctx[3];
|
|
289
289
|
}
|
|
290
290
|
set tourid(e) {
|
|
291
|
-
this.$$set({ tourid: e }),
|
|
291
|
+
this.$$set({ tourid: e }), T();
|
|
292
292
|
}
|
|
293
293
|
get clientstyling() {
|
|
294
294
|
return this.$$.ctx[4];
|
|
295
295
|
}
|
|
296
296
|
set clientstyling(e) {
|
|
297
|
-
this.$$set({ clientstyling: e }),
|
|
297
|
+
this.$$set({ clientstyling: e }), T();
|
|
298
298
|
}
|
|
299
299
|
get clientstylingurl() {
|
|
300
300
|
return this.$$.ctx[5];
|
|
301
301
|
}
|
|
302
302
|
set clientstylingurl(e) {
|
|
303
|
-
this.$$set({ clientstylingurl: e }),
|
|
303
|
+
this.$$set({ clientstylingurl: e }), T();
|
|
304
304
|
}
|
|
305
305
|
get translationurl() {
|
|
306
306
|
return this.$$.ctx[6];
|
|
307
307
|
}
|
|
308
308
|
set translationurl(e) {
|
|
309
|
-
this.$$set({ translationurl: e }),
|
|
309
|
+
this.$$set({ translationurl: e }), T();
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
|
|
312
|
+
I(J, { tourid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
313
313
|
export {
|
|
314
|
-
|
|
314
|
+
J as default
|
|
315
315
|
};
|