@everymatrix/casino-tournaments-controller 1.45.0 → 1.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsController-BgoGP80M.cjs → CasinoTournamentsController-CQ5C1jDl.cjs} +7 -7
- package/components/{CasinoTournamentsController-BBv1Hyoc.js → CasinoTournamentsController-Cr8b4j7l.js} +332 -332
- package/components/CasinoTournamentsFilterController-BtuK-ddv.cjs +1 -0
- package/components/{CasinoTournamentsFilterController-BqjTkXsP.js → CasinoTournamentsFilterController-Chy_sE0V.js} +118 -118
- package/components/{CasinoTournamentsListController-nfyqtXdi.cjs → CasinoTournamentsListController-BinvLjvx.cjs} +3 -3
- package/components/{CasinoTournamentsListController-BHZPf1Di.js → CasinoTournamentsListController-DXHqP9An.js} +111 -111
- package/components/{CasinoTournamentsThumbnail-DdkzbUpk.js → CasinoTournamentsThumbnail-BFS6MlWH.js} +190 -190
- package/components/CasinoTournamentsThumbnail-CM3Rfdn3.cjs +4 -0
- package/components/CasinoTournamentsThumbnailController-C71hXcQP.cjs +1 -0
- package/components/CasinoTournamentsThumbnailController-NEf6XMRB.js +1405 -0
- package/components/CasinoTournamentsThumbnailDuration-CrS_PUCZ.cjs +1 -0
- package/components/CasinoTournamentsThumbnailDuration-bu3Mm2Ay.js +495 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-DNrAc-zm.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-_haSuIUI.js +438 -0
- package/components/CasinoTournamentsThumbnailPrizes-BRcfU1P4.js +310 -0
- package/components/CasinoTournamentsThumbnailPrizes-E5pafLaj.cjs +1 -0
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/package.json +2 -2
- package/components/CasinoTournamentsFilterController-DRPLlsmH.cjs +0 -1
- package/components/CasinoTournamentsThumbnail-B5svaS7p.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-BnIRoSw0.cjs +0 -1
- package/components/CasinoTournamentsThumbnailController-DX_9tXvb.js +0 -1405
- package/components/CasinoTournamentsThumbnailDuration-BZyUIEUp.cjs +0 -1
- package/components/CasinoTournamentsThumbnailDuration-CVtlYaVM.js +0 -495
- package/components/CasinoTournamentsThumbnailGamesSlider-CPUoPnwu.js +0 -438
- package/components/CasinoTournamentsThumbnailGamesSlider-CuGCo4r6.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-CPmYLRmC.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-DD7Zhrne.js +0 -310
|
@@ -1,438 +0,0 @@
|
|
|
1
|
-
import { a as we, S as _e, i as be, f as M, c as Ne, s as Se, b as Te, e as S, d as a, h as I, n as X, j as G, k as Fe, w as Me, l as Y, m as z, G as j, D as Z, H as Ee, o as _, I as Pe, r as L, q as Be, C as te, t as Le, J as x, p as He, F as Ce, u as D, $ as je } from "./CasinoTournamentsController-BBv1Hyoc.js";
|
|
2
|
-
function K(e, n) {
|
|
3
|
-
we(e, n);
|
|
4
|
-
}
|
|
5
|
-
const Q = {
|
|
6
|
-
en: {
|
|
7
|
-
playNow: "Play now"
|
|
8
|
-
},
|
|
9
|
-
hr: {
|
|
10
|
-
playNow: "Započni sada"
|
|
11
|
-
},
|
|
12
|
-
"zh-hk": {
|
|
13
|
-
playNow: "现在播放"
|
|
14
|
-
},
|
|
15
|
-
fr: {
|
|
16
|
-
playNow: "Joue maintenant"
|
|
17
|
-
},
|
|
18
|
-
ro: {
|
|
19
|
-
playNow: "Joaca acum"
|
|
20
|
-
},
|
|
21
|
-
tr: {
|
|
22
|
-
playNow: "Şimdi oyna"
|
|
23
|
-
},
|
|
24
|
-
el: {
|
|
25
|
-
playNow: "Παίξε τώρα"
|
|
26
|
-
},
|
|
27
|
-
es: {
|
|
28
|
-
playNow: "Jugar Ya"
|
|
29
|
-
},
|
|
30
|
-
pt: {
|
|
31
|
-
playNow: "Jogue agora"
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
function ze(e) {
|
|
35
|
-
Te(e, "svelte-erkhk0", ".svelte-erkhk0.svelte-erkhk0,.svelte-erkhk0.svelte-erkhk0::before,.svelte-erkhk0.svelte-erkhk0::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider.svelte-erkhk0.svelte-erkhk0{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled.svelte-erkhk0.svelte-erkhk0{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton.svelte-erkhk0.svelte-erkhk0{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton.svelte-erkhk0 svg.svelte-erkhk0{width:20px}main.svelte-erkhk0.svelte-erkhk0{width:95%;overflow:hidden}.items.svelte-erkhk0.svelte-erkhk0{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item.svelte-erkhk0.svelte-erkhk0{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-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.svelte-erkhk0.svelte-erkhk0{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-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.svelte-erkhk0.svelte-erkhk0{opacity:1}.items.svelte-erkhk0 .item.svelte-erkhk0:first-child{margin-left:0}.items.svelte-erkhk0 .item.svelte-erkhk0:last-child{margin-right:0}");
|
|
36
|
-
}
|
|
37
|
-
function V(e, n, t) {
|
|
38
|
-
const i = e.slice();
|
|
39
|
-
return i[50] = n[t], i[52] = t, i;
|
|
40
|
-
}
|
|
41
|
-
function $(e) {
|
|
42
|
-
let n, t, i, h, m, k, v, r, p, y, f = Y(
|
|
43
|
-
/*games*/
|
|
44
|
-
e[1]
|
|
45
|
-
), c = [];
|
|
46
|
-
for (let s = 0; s < f.length; s += 1)
|
|
47
|
-
c[s] = ee(V(e, f, s));
|
|
48
|
-
return {
|
|
49
|
-
c() {
|
|
50
|
-
n = S("div"), t = S("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="svelte-erkhk0"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" class="svelte-erkhk0"></path></svg>', i = z(), h = S("main"), m = S("div");
|
|
51
|
-
for (let s = 0; s < c.length; s += 1)
|
|
52
|
-
c[s].c();
|
|
53
|
-
v = z(), r = S("div"), r.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="svelte-erkhk0"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" class="svelte-erkhk0"></path></svg>', a(t, "class", "SliderNavButton svelte-erkhk0"), a(t, "part", "SliderNavButton"), j(
|
|
54
|
-
t,
|
|
55
|
-
"disabled",
|
|
56
|
-
/*atStart*/
|
|
57
|
-
e[8]
|
|
58
|
-
), a(m, "class", "items svelte-erkhk0"), a(m, "part", "items"), Z(m, "transform", "translateX(" + /*offset*/
|
|
59
|
-
e[2] + "px)"), a(h, "class", "svelte-erkhk0"), Ee(() => (
|
|
60
|
-
/*main_elementresize_handler*/
|
|
61
|
-
e[28].call(h)
|
|
62
|
-
)), a(r, "class", "SliderNavButton svelte-erkhk0"), a(r, "part", "SliderNavButton"), j(
|
|
63
|
-
r,
|
|
64
|
-
"disabled",
|
|
65
|
-
/*atEnd*/
|
|
66
|
-
e[9]
|
|
67
|
-
), a(n, "class", "TournamentsGamesSlider svelte-erkhk0"), a(n, "part", "TournamentsGamesSlider");
|
|
68
|
-
},
|
|
69
|
-
m(s, w) {
|
|
70
|
-
I(s, n, w), _(n, t), _(n, i), _(n, h), _(h, m);
|
|
71
|
-
for (let o = 0; o < c.length; o += 1)
|
|
72
|
-
c[o] && c[o].m(m, null);
|
|
73
|
-
e[27](m), k = Pe(
|
|
74
|
-
h,
|
|
75
|
-
/*main_elementresize_handler*/
|
|
76
|
-
e[28].bind(h)
|
|
77
|
-
), _(n, v), _(n, r), e[30](n), p || (y = [
|
|
78
|
-
L(
|
|
79
|
-
t,
|
|
80
|
-
"click",
|
|
81
|
-
/*click_handler*/
|
|
82
|
-
e[23]
|
|
83
|
-
),
|
|
84
|
-
L(
|
|
85
|
-
r,
|
|
86
|
-
"click",
|
|
87
|
-
/*click_handler_2*/
|
|
88
|
-
e[29]
|
|
89
|
-
)
|
|
90
|
-
], p = !0);
|
|
91
|
-
},
|
|
92
|
-
p(s, w) {
|
|
93
|
-
if (w[0] & /*atStart*/
|
|
94
|
-
256 && j(
|
|
95
|
-
t,
|
|
96
|
-
"disabled",
|
|
97
|
-
/*atStart*/
|
|
98
|
-
s[8]
|
|
99
|
-
), w[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
|
|
100
|
-
23650) {
|
|
101
|
-
f = Y(
|
|
102
|
-
/*games*/
|
|
103
|
-
s[1]
|
|
104
|
-
);
|
|
105
|
-
let o;
|
|
106
|
-
for (o = 0; o < f.length; o += 1) {
|
|
107
|
-
const b = V(s, f, o);
|
|
108
|
-
c[o] ? c[o].p(b, w) : (c[o] = ee(b), c[o].c(), c[o].m(m, null));
|
|
109
|
-
}
|
|
110
|
-
for (; o < c.length; o += 1)
|
|
111
|
-
c[o].d(1);
|
|
112
|
-
c.length = f.length;
|
|
113
|
-
}
|
|
114
|
-
w[0] & /*offset*/
|
|
115
|
-
4 && Z(m, "transform", "translateX(" + /*offset*/
|
|
116
|
-
s[2] + "px)"), w[0] & /*atEnd*/
|
|
117
|
-
512 && j(
|
|
118
|
-
r,
|
|
119
|
-
"disabled",
|
|
120
|
-
/*atEnd*/
|
|
121
|
-
s[9]
|
|
122
|
-
);
|
|
123
|
-
},
|
|
124
|
-
d(s) {
|
|
125
|
-
s && G(n), Be(c, s), e[27](null), k(), e[30](null), p = !1, te(y);
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
function ee(e) {
|
|
130
|
-
let n, t, i = (
|
|
131
|
-
/*$_*/
|
|
132
|
-
e[10]("playNow") + ""
|
|
133
|
-
), h, m, k, v, r, p, y, f, c, s, w;
|
|
134
|
-
function o() {
|
|
135
|
-
return (
|
|
136
|
-
/*click_handler_1*/
|
|
137
|
-
e[24](
|
|
138
|
-
/*game*/
|
|
139
|
-
e[50]
|
|
140
|
-
)
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
function b() {
|
|
144
|
-
return (
|
|
145
|
-
/*mouseenter_handler*/
|
|
146
|
-
e[25](
|
|
147
|
-
/*i*/
|
|
148
|
-
e[52]
|
|
149
|
-
)
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
return {
|
|
153
|
-
c() {
|
|
154
|
-
n = S("div"), t = S("span"), h = Le(i), v = z(), r = S("img"), c = z(), a(t, "class", m = "PlayNowButton " + /*hover*/
|
|
155
|
-
(e[5] && /*hoverIndex*/
|
|
156
|
-
e[6] == /*i*/
|
|
157
|
-
e[52] ? "itemHover" : "") + " svelte-erkhk0"), a(t, "part", k = "PlayNowButton " + /*hover*/
|
|
158
|
-
(e[5] && /*hoverIndex*/
|
|
159
|
-
e[6] == /*i*/
|
|
160
|
-
e[52] ? "itemHover" : "")), x(r.src, p = /*game*/
|
|
161
|
-
e[50].thumbnail) || a(r, "src", p), a(r, "width", "132px"), a(r, "height", "100px"), a(r, "alt", y = /*game*/
|
|
162
|
-
e[50].name), a(r, "title", f = /*game*/
|
|
163
|
-
e[50].name), a(r, "class", "svelte-erkhk0"), a(n, "class", "item svelte-erkhk0"), a(n, "part", "item");
|
|
164
|
-
},
|
|
165
|
-
m(u, d) {
|
|
166
|
-
I(u, n, d), _(n, t), _(t, h), _(n, v), _(n, r), _(n, c), s || (w = [
|
|
167
|
-
L(n, "click", o),
|
|
168
|
-
L(n, "mouseenter", b),
|
|
169
|
-
L(
|
|
170
|
-
n,
|
|
171
|
-
"mouseleave",
|
|
172
|
-
/*mouseleave_handler*/
|
|
173
|
-
e[26]
|
|
174
|
-
)
|
|
175
|
-
], s = !0);
|
|
176
|
-
},
|
|
177
|
-
p(u, d) {
|
|
178
|
-
e = u, d[0] & /*$_*/
|
|
179
|
-
1024 && i !== (i = /*$_*/
|
|
180
|
-
e[10]("playNow") + "") && He(h, i), d[0] & /*hover, hoverIndex*/
|
|
181
|
-
96 && m !== (m = "PlayNowButton " + /*hover*/
|
|
182
|
-
(e[5] && /*hoverIndex*/
|
|
183
|
-
e[6] == /*i*/
|
|
184
|
-
e[52] ? "itemHover" : "") + " svelte-erkhk0") && a(t, "class", m), d[0] & /*hover, hoverIndex*/
|
|
185
|
-
96 && k !== (k = "PlayNowButton " + /*hover*/
|
|
186
|
-
(e[5] && /*hoverIndex*/
|
|
187
|
-
e[6] == /*i*/
|
|
188
|
-
e[52] ? "itemHover" : "")) && a(t, "part", k), d[0] & /*games*/
|
|
189
|
-
2 && !x(r.src, p = /*game*/
|
|
190
|
-
e[50].thumbnail) && a(r, "src", p), d[0] & /*games*/
|
|
191
|
-
2 && y !== (y = /*game*/
|
|
192
|
-
e[50].name) && a(r, "alt", y), d[0] & /*games*/
|
|
193
|
-
2 && f !== (f = /*game*/
|
|
194
|
-
e[50].name) && a(r, "title", f);
|
|
195
|
-
},
|
|
196
|
-
d(u) {
|
|
197
|
-
u && G(n), s = !1, te(w);
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
function Ue(e) {
|
|
202
|
-
let n, t = (
|
|
203
|
-
/*games*/
|
|
204
|
-
e[1] && /*games*/
|
|
205
|
-
e[1].length > 0 && $(e)
|
|
206
|
-
);
|
|
207
|
-
return {
|
|
208
|
-
c() {
|
|
209
|
-
n = S("div"), t && t.c(), a(n, "class", "svelte-erkhk0");
|
|
210
|
-
},
|
|
211
|
-
m(i, h) {
|
|
212
|
-
I(i, n, h), t && t.m(n, null), e[31](n);
|
|
213
|
-
},
|
|
214
|
-
p(i, h) {
|
|
215
|
-
/*games*/
|
|
216
|
-
i[1] && /*games*/
|
|
217
|
-
i[1].length > 0 ? t ? t.p(i, h) : (t = $(i), t.c(), t.m(n, null)) : t && (t.d(1), t = null);
|
|
218
|
-
},
|
|
219
|
-
i: X,
|
|
220
|
-
o: X,
|
|
221
|
-
d(i) {
|
|
222
|
-
i && G(n), t && t.d(), e[31](null);
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
let Ae = 30;
|
|
227
|
-
function De(e, n, t) {
|
|
228
|
-
let i, h, m;
|
|
229
|
-
Fe(e, je, (l) => t(10, m = l));
|
|
230
|
-
let { tournamenturl: k = "" } = n, { scrollby: v = "3" } = n, { pagfactor: r = "175" } = n, { lang: p = "" } = n, { translationurl: y = "" } = n, { clientstyling: f = "" } = n, { clientstylingurl: c = "" } = n, s, w = window.navigator.userAgent, o, b = [], u = 0, d, H = null, C = null, U = !1, A, E, P = 0, T;
|
|
231
|
-
const le = () => {
|
|
232
|
-
fetch(y).then((g) => g.json()).then((g) => {
|
|
233
|
-
Object.keys(g).forEach((N) => {
|
|
234
|
-
K(N, g[N]);
|
|
235
|
-
});
|
|
236
|
-
}).catch((g) => {
|
|
237
|
-
console.log(g);
|
|
238
|
-
});
|
|
239
|
-
};
|
|
240
|
-
Object.keys(Q).forEach((l) => {
|
|
241
|
-
K(l, Q[l]);
|
|
242
|
-
});
|
|
243
|
-
const W = (l) => {
|
|
244
|
-
t(5, U = !0), t(6, A = l);
|
|
245
|
-
}, q = () => {
|
|
246
|
-
t(5, U = !1), t(6, A = -1);
|
|
247
|
-
}, ne = (l) => l.touches || l.originalEvent.touches, J = (l) => {
|
|
248
|
-
const g = ne(l)[0];
|
|
249
|
-
H = g.clientX, C = g.clientY;
|
|
250
|
-
}, O = (l) => {
|
|
251
|
-
if (!H || !C) return;
|
|
252
|
-
let g = l.touches[0].clientX, N = l.touches[0].clientY, F = H - g, ye = C - N;
|
|
253
|
-
Math.abs(F) > Math.abs(ye) && (F > 0 ? B(1) : B(-1)), H = null, C = null;
|
|
254
|
-
}, B = (l) => {
|
|
255
|
-
l > 0 && !h ? (t(2, u -= o), t(2, u = u < P ? P : u)) : l < 0 && !i && (t(2, u += o), t(2, u = u > 0 ? 0 : u));
|
|
256
|
-
}, R = (l) => {
|
|
257
|
-
window.postMessage(
|
|
258
|
-
{
|
|
259
|
-
type: "TournamentGameAction",
|
|
260
|
-
gameId: l.id,
|
|
261
|
-
name: l.name,
|
|
262
|
-
launchUrl: l.launchUrl
|
|
263
|
-
},
|
|
264
|
-
window.location.href
|
|
265
|
-
);
|
|
266
|
-
}, se = () => {
|
|
267
|
-
let l = new URL(k), g = new Headers();
|
|
268
|
-
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ae},offset=${u})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", p), l.searchParams.append("platform", Ce(w)), fetch(l, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
|
|
269
|
-
t(1, b = F.item.games.items), F.item.games.total;
|
|
270
|
-
});
|
|
271
|
-
}, re = () => {
|
|
272
|
-
d.addEventListener("touchstart", J, { passive: !0 }), d.addEventListener("touchmove", O, { passive: !0 });
|
|
273
|
-
}, ae = () => {
|
|
274
|
-
setTimeout(
|
|
275
|
-
() => {
|
|
276
|
-
t(22, P = (E.scrollWidth - E.clientWidth) * -1), t(16, r = new String(E.scrollWidth / b.length)), o = parseInt(v, 10) * parseFloat(r, 2).toFixed(2);
|
|
277
|
-
},
|
|
278
|
-
1e3
|
|
279
|
-
);
|
|
280
|
-
}, ie = () => {
|
|
281
|
-
let l = document.createElement("style");
|
|
282
|
-
l.innerHTML = f, s.appendChild(l);
|
|
283
|
-
}, oe = () => {
|
|
284
|
-
let l = new URL(c), g = document.createElement("style");
|
|
285
|
-
fetch(l.href).then((N) => N.text()).then((N) => {
|
|
286
|
-
g.innerHTML = N, setTimeout(
|
|
287
|
-
() => {
|
|
288
|
-
s.appendChild(g);
|
|
289
|
-
},
|
|
290
|
-
1
|
|
291
|
-
), setTimeout(
|
|
292
|
-
() => {
|
|
293
|
-
},
|
|
294
|
-
500
|
|
295
|
-
);
|
|
296
|
-
});
|
|
297
|
-
}, ce = () => {
|
|
298
|
-
T > 0 && T < Math.floor((parseInt(v) + 1) * r) && t(15, v = Math.ceil(T / r).toString());
|
|
299
|
-
};
|
|
300
|
-
Me(() => (o = parseInt(v, 10) * parseInt(r, 10), () => {
|
|
301
|
-
d.removeEventListener("touchstart", J), d.removeEventListener("touchmove", O);
|
|
302
|
-
}));
|
|
303
|
-
const he = () => B(-1), ue = (l) => R(l), me = (l) => W(l), de = () => q();
|
|
304
|
-
function fe(l) {
|
|
305
|
-
D[l ? "unshift" : "push"](() => {
|
|
306
|
-
E = l, t(7, E);
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
function ge() {
|
|
310
|
-
T = this.clientWidth, t(4, T);
|
|
311
|
-
}
|
|
312
|
-
const ke = () => B(1);
|
|
313
|
-
function ve(l) {
|
|
314
|
-
D[l ? "unshift" : "push"](() => {
|
|
315
|
-
d = l, t(3, d);
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
function pe(l) {
|
|
319
|
-
D[l ? "unshift" : "push"](() => {
|
|
320
|
-
s = l, t(0, s);
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
return e.$$set = (l) => {
|
|
324
|
-
"tournamenturl" in l && t(17, k = l.tournamenturl), "scrollby" in l && t(15, v = l.scrollby), "pagfactor" in l && t(16, r = l.pagfactor), "lang" in l && t(18, p = l.lang), "translationurl" in l && t(19, y = l.translationurl), "clientstyling" in l && t(20, f = l.clientstyling), "clientstylingurl" in l && t(21, c = l.clientstylingurl);
|
|
325
|
-
}, e.$$.update = () => {
|
|
326
|
-
e.$$.dirty[0] & /*offset*/
|
|
327
|
-
4 && t(8, i = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
328
|
-
4194308 && t(9, h = u <= P), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
329
|
-
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
330
|
-
131072 && k && se(), e.$$.dirty[0] & /*slider*/
|
|
331
|
-
8 && d && re(), e.$$.dirty[0] & /*translationurl*/
|
|
332
|
-
524288 && y && le(), e.$$.dirty[0] & /*games*/
|
|
333
|
-
2 && b.length && ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
334
|
-
1048577 && f && s && ie(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
335
|
-
2097153 && c && s && oe();
|
|
336
|
-
}, t(2, u = 0), [
|
|
337
|
-
s,
|
|
338
|
-
b,
|
|
339
|
-
u,
|
|
340
|
-
d,
|
|
341
|
-
T,
|
|
342
|
-
U,
|
|
343
|
-
A,
|
|
344
|
-
E,
|
|
345
|
-
i,
|
|
346
|
-
h,
|
|
347
|
-
m,
|
|
348
|
-
W,
|
|
349
|
-
q,
|
|
350
|
-
B,
|
|
351
|
-
R,
|
|
352
|
-
v,
|
|
353
|
-
r,
|
|
354
|
-
k,
|
|
355
|
-
p,
|
|
356
|
-
y,
|
|
357
|
-
f,
|
|
358
|
-
c,
|
|
359
|
-
P,
|
|
360
|
-
he,
|
|
361
|
-
ue,
|
|
362
|
-
me,
|
|
363
|
-
de,
|
|
364
|
-
fe,
|
|
365
|
-
ge,
|
|
366
|
-
ke,
|
|
367
|
-
ve,
|
|
368
|
-
pe
|
|
369
|
-
];
|
|
370
|
-
}
|
|
371
|
-
class Ie extends _e {
|
|
372
|
-
constructor(n) {
|
|
373
|
-
super(), be(
|
|
374
|
-
this,
|
|
375
|
-
n,
|
|
376
|
-
De,
|
|
377
|
-
Ue,
|
|
378
|
-
Se,
|
|
379
|
-
{
|
|
380
|
-
tournamenturl: 17,
|
|
381
|
-
scrollby: 15,
|
|
382
|
-
pagfactor: 16,
|
|
383
|
-
lang: 18,
|
|
384
|
-
translationurl: 19,
|
|
385
|
-
clientstyling: 20,
|
|
386
|
-
clientstylingurl: 21
|
|
387
|
-
},
|
|
388
|
-
ze,
|
|
389
|
-
[-1, -1]
|
|
390
|
-
);
|
|
391
|
-
}
|
|
392
|
-
get tournamenturl() {
|
|
393
|
-
return this.$$.ctx[17];
|
|
394
|
-
}
|
|
395
|
-
set tournamenturl(n) {
|
|
396
|
-
this.$$set({ tournamenturl: n }), M();
|
|
397
|
-
}
|
|
398
|
-
get scrollby() {
|
|
399
|
-
return this.$$.ctx[15];
|
|
400
|
-
}
|
|
401
|
-
set scrollby(n) {
|
|
402
|
-
this.$$set({ scrollby: n }), M();
|
|
403
|
-
}
|
|
404
|
-
get pagfactor() {
|
|
405
|
-
return this.$$.ctx[16];
|
|
406
|
-
}
|
|
407
|
-
set pagfactor(n) {
|
|
408
|
-
this.$$set({ pagfactor: n }), M();
|
|
409
|
-
}
|
|
410
|
-
get lang() {
|
|
411
|
-
return this.$$.ctx[18];
|
|
412
|
-
}
|
|
413
|
-
set lang(n) {
|
|
414
|
-
this.$$set({ lang: n }), M();
|
|
415
|
-
}
|
|
416
|
-
get translationurl() {
|
|
417
|
-
return this.$$.ctx[19];
|
|
418
|
-
}
|
|
419
|
-
set translationurl(n) {
|
|
420
|
-
this.$$set({ translationurl: n }), M();
|
|
421
|
-
}
|
|
422
|
-
get clientstyling() {
|
|
423
|
-
return this.$$.ctx[20];
|
|
424
|
-
}
|
|
425
|
-
set clientstyling(n) {
|
|
426
|
-
this.$$set({ clientstyling: n }), M();
|
|
427
|
-
}
|
|
428
|
-
get clientstylingurl() {
|
|
429
|
-
return this.$$.ctx[21];
|
|
430
|
-
}
|
|
431
|
-
set clientstylingurl(n) {
|
|
432
|
-
this.$$set({ clientstylingurl: n }), M();
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
Ne(Ie, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
436
|
-
export {
|
|
437
|
-
Ie as default
|
|
438
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-BgoGP80M.cjs");function A(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"}};function ie(t){e.append_styles(t,"svelte-erkhk0",".svelte-erkhk0.svelte-erkhk0,.svelte-erkhk0.svelte-erkhk0::before,.svelte-erkhk0.svelte-erkhk0::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider.svelte-erkhk0.svelte-erkhk0{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled.svelte-erkhk0.svelte-erkhk0{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton.svelte-erkhk0.svelte-erkhk0{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton.svelte-erkhk0 svg.svelte-erkhk0{width:20px}main.svelte-erkhk0.svelte-erkhk0{width:95%;overflow:hidden}.items.svelte-erkhk0.svelte-erkhk0{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item.svelte-erkhk0.svelte-erkhk0{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-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.svelte-erkhk0.svelte-erkhk0{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-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.svelte-erkhk0.svelte-erkhk0{opacity:1}.items.svelte-erkhk0 .item.svelte-erkhk0:first-child{margin-left:0}.items.svelte-erkhk0 .item.svelte-erkhk0:last-child{margin-right:0}")}function D(t,r,l){const i=t.slice();return i[50]=r[l],i[52]=l,i}function I(t){let r,l,i,u,d,k,p,a,v,_,f=e.ensure_array_like(t[1]),c=[];for(let s=0;s<f.length;s+=1)c[s]=W(D(t,f,s));return{c(){r=e.element("div"),l=e.element("div"),l.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="svelte-erkhk0"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" class="svelte-erkhk0"></path></svg>',i=e.space(),u=e.element("main"),d=e.element("div");for(let s=0;s<c.length;s+=1)c[s].c();p=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" class="svelte-erkhk0"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" class="svelte-erkhk0"></path></svg>',e.attr(l,"class","SliderNavButton svelte-erkhk0"),e.attr(l,"part","SliderNavButton"),e.toggle_class(l,"disabled",t[8]),e.attr(d,"class","items svelte-erkhk0"),e.attr(d,"part","items"),e.set_style(d,"transform","translateX("+t[2]+"px)"),e.attr(u,"class","svelte-erkhk0"),e.add_render_callback(()=>t[28].call(u)),e.attr(a,"class","SliderNavButton svelte-erkhk0"),e.attr(a,"part","SliderNavButton"),e.toggle_class(a,"disabled",t[9]),e.attr(r,"class","TournamentsGamesSlider svelte-erkhk0"),e.attr(r,"part","TournamentsGamesSlider")},m(s,y){e.insert(s,r,y),e.append(r,l),e.append(r,i),e.append(r,u),e.append(u,d);for(let o=0;o<c.length;o+=1)c[o]&&c[o].m(d,null);t[27](d),k=e.add_iframe_resize_listener(u,t[28].bind(u)),e.append(r,p),e.append(r,a),t[30](r),v||(_=[e.listen(l,"click",t[23]),e.listen(a,"click",t[29])],v=!0)},p(s,y){if(y[0]&256&&e.toggle_class(l,"disabled",s[8]),y[0]&23650){f=e.ensure_array_like(s[1]);let o;for(o=0;o<f.length;o+=1){const w=D(s,f,o);c[o]?c[o].p(w,y):(c[o]=W(w),c[o].c(),c[o].m(d,null))}for(;o<c.length;o+=1)c[o].d(1);c.length=f.length}y[0]&4&&e.set_style(d,"transform","translateX("+s[2]+"px)"),y[0]&512&&e.toggle_class(a,"disabled",s[9])},d(s){s&&e.detach(r),e.destroy_each(c,s),t[27](null),k(),t[30](null),v=!1,e.run_all(_)}}}function W(t){let r,l,i=t[10]("playNow")+"",u,d,k,p,a,v,_,f,c,s,y;function o(){return t[24](t[50])}function w(){return t[25](t[52])}return{c(){r=e.element("div"),l=e.element("span"),u=e.text(i),p=e.space(),a=e.element("img"),c=e.space(),e.attr(l,"class",d="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")+" svelte-erkhk0"),e.attr(l,"part",k="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.src_url_equal(a.src,v=t[50].thumbnail)||e.attr(a,"src",v),e.attr(a,"width","132px"),e.attr(a,"height","100px"),e.attr(a,"alt",_=t[50].name),e.attr(a,"title",f=t[50].name),e.attr(a,"class","svelte-erkhk0"),e.attr(r,"class","item svelte-erkhk0"),e.attr(r,"part","item")},m(h,m){e.insert(h,r,m),e.append(r,l),e.append(l,u),e.append(r,p),e.append(r,a),e.append(r,c),s||(y=[e.listen(r,"click",o),e.listen(r,"mouseenter",w),e.listen(r,"mouseleave",t[26])],s=!0)},p(h,m){t=h,m[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(u,i),m[0]&96&&d!==(d="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")+" svelte-erkhk0")&&e.attr(l,"class",d),m[0]&96&&k!==(k="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(l,"part",k),m[0]&2&&!e.src_url_equal(a.src,v=t[50].thumbnail)&&e.attr(a,"src",v),m[0]&2&&_!==(_=t[50].name)&&e.attr(a,"alt",_),m[0]&2&&f!==(f=t[50].name)&&e.attr(a,"title",f)},d(h){h&&e.detach(r),s=!1,e.run_all(y)}}}function oe(t){let r,l=t[1]&&t[1].length>0&&I(t);return{c(){r=e.element("div"),l&&l.c(),e.attr(r,"class","svelte-erkhk0")},m(i,u){e.insert(i,r,u),l&&l.m(r,null),t[31](r)},p(i,u){i[1]&&i[1].length>0?l?l.p(i,u):(l=I(i),l.c(),l.m(r,null)):l&&(l.d(1),l=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(r),l&&l.d(),t[31](null)}}}let ce=30;function ue(t,r,l){let i,u,d;e.component_subscribe(t,e.$format,n=>l(10,d=n));let{tournamenturl:k=""}=r,{scrollby:p="3"}=r,{pagfactor:a="175"}=r,{lang:v=""}=r,{translationurl:_=""}=r,{clientstyling:f=""}=r,{clientstylingurl:c=""}=r,s,y=window.navigator.userAgent,o,w=[],h=0,m,P=null,E=null,B=!1,L,T,M=0,N;const O=()=>{fetch(_).then(g=>g.json()).then(g=>{Object.keys(g).forEach(b=>{A(b,g[b])})}).catch(g=>{console.log(g)})};Object.keys(q).forEach(n=>{A(n,q[n])});const C=n=>{l(5,B=!0),l(6,L=n)},H=()=>{l(5,B=!1),l(6,L=-1)},R=n=>n.touches||n.originalEvent.touches,j=n=>{const g=R(n)[0];P=g.clientX,E=g.clientY},z=n=>{if(!P||!E)return;let g=n.touches[0].clientX,b=n.touches[0].clientY,S=P-g,ae=E-b;Math.abs(S)>Math.abs(ae)&&(S>0?F(1):F(-1)),P=null,E=null},F=n=>{n>0&&!u?(l(2,h-=o),l(2,h=h<M?M:h)):n<0&&!i&&(l(2,h+=o),l(2,h=h>0?0:h))},U=n=>{window.postMessage({type:"TournamentGameAction",gameId:n.id,name:n.name,launchUrl:n.launchUrl},window.location.href)},X=()=>{let n=new URL(k),g=new Headers;n.searchParams.append("expand","games"),n.searchParams.append("pagination",`games(limit=${ce},offset=${h})`),n.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),n.searchParams.append("language",v),n.searchParams.append("platform",e.getDevice(y)),fetch(n,{method:"GET",headers:g}).then(S=>S.json()).then(S=>{l(1,w=S.item.games.items),S.item.games.total})},J=()=>{m.addEventListener("touchstart",j,{passive:!0}),m.addEventListener("touchmove",z,{passive:!0})},Y=()=>{setTimeout(()=>{l(22,M=(T.scrollWidth-T.clientWidth)*-1),l(16,a=new String(T.scrollWidth/w.length)),o=parseInt(p,10)*parseFloat(a,2).toFixed(2)},1e3)},Z=()=>{let n=document.createElement("style");n.innerHTML=f,s.appendChild(n)},K=()=>{let n=new URL(c),g=document.createElement("style");fetch(n.href).then(b=>b.text()).then(b=>{g.innerHTML=b,setTimeout(()=>{s.appendChild(g)},1),setTimeout(()=>{},500)})},Q=()=>{N>0&&N<Math.floor((parseInt(p)+1)*a)&&l(15,p=Math.ceil(N/a).toString())};e.onMount(()=>(o=parseInt(p,10)*parseInt(a,10),()=>{m.removeEventListener("touchstart",j),m.removeEventListener("touchmove",z)}));const V=()=>F(-1),x=n=>U(n),$=n=>C(n),ee=()=>H();function te(n){e.binding_callbacks[n?"unshift":"push"](()=>{T=n,l(7,T)})}function le(){N=this.clientWidth,l(4,N)}const ne=()=>F(1);function re(n){e.binding_callbacks[n?"unshift":"push"](()=>{m=n,l(3,m)})}function se(n){e.binding_callbacks[n?"unshift":"push"](()=>{s=n,l(0,s)})}return t.$$set=n=>{"tournamenturl"in n&&l(17,k=n.tournamenturl),"scrollby"in n&&l(15,p=n.scrollby),"pagfactor"in n&&l(16,a=n.pagfactor),"lang"in n&&l(18,v=n.lang),"translationurl"in n&&l(19,_=n.translationurl),"clientstyling"in n&&l(20,f=n.clientstyling),"clientstylingurl"in n&&l(21,c=n.clientstylingurl)},t.$$.update=()=>{t.$$.dirty[0]&4&&l(8,i=h===0),t.$$.dirty[0]&4194308&&l(9,u=h<=M),t.$$.dirty[0]&16&&N&&Q(),t.$$.dirty[0]&131072&&k&&X(),t.$$.dirty[0]&8&&m&&J(),t.$$.dirty[0]&524288&&_&&O(),t.$$.dirty[0]&2&&w.length&&Y(),t.$$.dirty[0]&1048577&&f&&s&&Z(),t.$$.dirty[0]&2097153&&c&&s&&K()},l(2,h=0),[s,w,h,m,N,B,L,T,i,u,d,C,H,F,U,p,a,k,v,_,f,c,M,V,x,$,ee,te,le,ne,re,se]}class G extends e.SvelteComponent{constructor(r){super(),e.init(this,r,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},ie,[-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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-BgoGP80M.cjs");function v(i,t){e.addMessages(i,t)}const _={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}};function F(i){e.append_styles(i,"svelte-ypey7g",".svelte-ypey7g.svelte-ypey7g,.svelte-ypey7g.svelte-ypey7g::before,.svelte-ypey7g.svelte-ypey7g::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span.svelte-ypey7g.svelte-ypey7g{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes.svelte-ypey7g.svelte-ypey7g{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle.svelte-ypey7g.svelte-ypey7g{padding-top:8px}.Prizes.svelte-ypey7g.svelte-ypey7g{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize.svelte-ypey7g.svelte-ypey7g{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0.svelte-ypey7g span.svelte-ypey7g{color:#FECF00}.Prize.Prize1.svelte-ypey7g span.svelte-ypey7g{color:#D9B206}.Prize.Prize2.svelte-ypey7g span.svelte-ypey7g{color:#9B8007}.Prize.svelte-ypey7g p.svelte-ypey7g{color:var(--emfe-w-color-white, #FFFFFF)}")}function P(i,t,n){const l=i.slice();return l[13]=t[n],l[15]=n,l}function T(i){let t,n=e.ensure_array_like(i[1]),l=[];for(let s=0;s<n.length;s+=1)l[s]=b(P(i,n,s));let r=null;return n.length||(r=w(i)),{c(){t=e.element("div");for(let s=0;s<l.length;s+=1)l[s].c();r&&r.c(),e.attr(t,"class","Prizes svelte-ypey7g"),e.attr(t,"part","Prizes")},m(s,c){e.insert(s,t,c);for(let a=0;a<l.length;a+=1)l[a]&&l[a].m(t,null);r&&r.m(t,null)},p(s,c){if(c&6){n=e.ensure_array_like(s[1]);let a;for(a=0;a<n.length;a+=1){const y=P(s,n,a);l[a]?l[a].p(y,c):(l[a]=b(y),l[a].c(),l[a].m(t,null))}for(;a<l.length;a+=1)l[a].d(1);l.length=n.length,!n.length&&r?r.p(s,c):n.length?r&&(r.d(1),r=null):(r=w(s),r.c(),r.m(t,null))}},d(s){s&&e.detach(t),e.destroy_each(l,s),r&&r.d()}}}function w(i){let t,n=i[2]("noprizes")+"",l;return{c(){t=e.element("p"),l=e.text(n),e.attr(t,"class","svelte-ypey7g")},m(r,s){e.insert(r,t,s),e.append(t,l)},p(r,s){s&4&&n!==(n=r[2]("noprizes")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function b(i){let t,n,l,r=(i[13].count>1?`${i[13].rank}~${i[13].rank+i[13].count-1}`:i[13].rank)+"",s,c,a=i[2]("place")+"",y,o,u=i[13].name+"",d,z;return{c(){t=e.element("div"),n=e.element("p"),l=e.element("span"),s=e.text(r),c=e.space(),y=e.text(a),o=e.text(": "),d=e.text(u),z=e.space(),e.attr(l,"class","PrizeRank svelte-ypey7g"),e.attr(l,"part","PrizeRank"),e.attr(n,"class","PrizeText svelte-ypey7g"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+i[15]+" svelte-ypey7g"),e.attr(t,"part","Prize Prize"+i[15])},m(g,h){e.insert(g,t,h),e.append(t,n),e.append(n,l),e.append(l,s),e.append(n,c),e.append(n,y),e.append(n,o),e.append(n,d),e.append(t,z)},p(g,h){h&2&&r!==(r=(g[13].count>1?`${g[13].rank}~${g[13].rank+g[13].count-1}`:g[13].rank)+"")&&e.set_data(s,r),h&4&&a!==(a=g[2]("place")+"")&&e.set_data(y,a),h&2&&u!==(u=g[13].name+"")&&e.set_data(d,u)},d(g){g&&e.detach(t)}}}function M(i){let t,n,l,r,s,c=i[2]("prizes")+"",a,y,o=i[1]&&T(i);return{c(){t=e.element("div"),n=e.element("div"),l=e.element("span"),l.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454" class="svelte-ypey7g"><defs class="svelte-ypey7g"><style class="svelte-ypey7g">.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a svelte-ypey7g" 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=e.space(),s=e.element("p"),a=e.text(c),y=e.space(),o&&o.c(),e.attr(l,"class","TournamentPrizesIconWrapper svelte-ypey7g"),e.attr(l,"part","TournamentPrizesIconWrapper"),e.attr(s,"class","PrizesTitle svelte-ypey7g"),e.attr(s,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection svelte-ypey7g"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes svelte-ypey7g"),e.attr(t,"part","TournamentPrizes")},m(u,d){e.insert(u,t,d),e.append(t,n),e.append(n,l),e.append(n,r),e.append(n,s),e.append(s,a),e.append(t,y),o&&o.m(t,null),i[7](t)},p(u,[d]){d&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(a,c),u[1]?o?o.p(u,d):(o=T(u),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),o&&o.d(),i[7](null)}}}function S(i,t,n){let l;e.component_subscribe(i,e.$format,p=>n(2,l=p));let{tourid:r=""}=t,{clientstyling:s=""}=t,{clientstylingurl:c=""}=t,{translationurl:a=""}=t,y,o;const u=()=>{fetch(a).then(f=>f.json()).then(f=>{Object.keys(f).forEach(m=>{v(m,f[m])})}).catch(f=>{console.log(f)})};Object.keys(_).forEach(p=>{v(p,_[p])});const d=p=>{p.data&&p.data.type==`TournamentPrizes_${r}`&&n(1,o=p.data.prizes)},z=()=>{let p=document.createElement("style");p.innerHTML=s,y.appendChild(p)},g=()=>{let p=new URL(c),f=document.createElement("style");fetch(p.href).then(m=>m.text()).then(m=>{f.innerHTML=m,setTimeout(()=>{y.appendChild(f)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function h(p){e.binding_callbacks[p?"unshift":"push"](()=>{y=p,n(0,y)})}return i.$$set=p=>{"tourid"in p&&n(3,r=p.tourid),"clientstyling"in p&&n(4,s=p.clientstyling),"clientstylingurl"in p&&n(5,c=p.clientstylingurl),"translationurl"in p&&n(6,a=p.translationurl)},i.$$.update=()=>{i.$$.dirty&17&&y&&s&&z(),i.$$.dirty&33&&y&&c&&g(),i.$$.dirty&64&&a&&u()},[y,o,l,r,s,c,a,h]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,S,M,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},F)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(k,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=k;
|