@everymatrix/casino-tournaments-controller 1.0.69 → 1.0.70
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-DZ0LEvCR.cjs +14 -0
- package/components/CasinoTournamentsController-o9ci4V-7.js +5673 -0
- package/components/CasinoTournamentsFilterController-CiS0QN_2.js +549 -0
- package/components/CasinoTournamentsFilterController-FBpFN99X.cjs +1 -0
- package/components/CasinoTournamentsListController-DIfWzrAy.cjs +13 -0
- package/components/CasinoTournamentsListController-TZbe8_p2.js +3128 -0
- package/components/CasinoTournamentsThumbnail-1UjlSmfk.js +885 -0
- package/components/CasinoTournamentsThumbnail-CU_I-u5x.cjs +4 -0
- package/components/CasinoTournamentsThumbnailController-B35mMuea.cjs +1 -0
- package/components/CasinoTournamentsThumbnailController-CoX3AMmZ.js +1365 -0
- package/components/CasinoTournamentsThumbnailDuration-C_EXZ3qI.cjs +1 -0
- package/components/CasinoTournamentsThumbnailDuration-GKFyPIZf.js +515 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-D1ki4K15.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-DVPC0-Qc.js +456 -0
- package/components/CasinoTournamentsThumbnailPrizes-C233jAWN.cjs +1 -0
- package/components/CasinoTournamentsThumbnailPrizes-Dy-t1Zna.js +330 -0
- package/package.json +6 -5
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import { a as we, S as _e, i as be, f as M, c as Se, s as Ne, b as Te, e as N, 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-o9ci4V-7.js";
|
|
2
|
+
function K(e, n) {
|
|
3
|
+
we(e, n);
|
|
4
|
+
}
|
|
5
|
+
const Q = {
|
|
6
|
+
en: {
|
|
7
|
+
gamesSlider: {
|
|
8
|
+
playNow: "Play now"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
hr: {
|
|
12
|
+
gamesSlider: {
|
|
13
|
+
playNow: "Započni sada"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"zh-hk": {
|
|
17
|
+
gamesSlider: {
|
|
18
|
+
playNow: "现在播放"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
fr: {
|
|
22
|
+
gamesSlider: {
|
|
23
|
+
playNow: "Joue maintenant"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
ro: {
|
|
27
|
+
gamesSlider: {
|
|
28
|
+
playNow: "Joaca acum"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
tr: {
|
|
32
|
+
gamesSlider: {
|
|
33
|
+
playNow: "Şimdi oyna"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
el: {
|
|
37
|
+
gamesSlider: {
|
|
38
|
+
playNow: "Παίξε τώρα"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
es: {
|
|
42
|
+
gamesSlider: {
|
|
43
|
+
playNow: "Jugar Ya"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
pt: {
|
|
47
|
+
gamesSlider: {
|
|
48
|
+
playNow: "Jogue agora"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
function ze(e) {
|
|
53
|
+
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}");
|
|
54
|
+
}
|
|
55
|
+
function V(e, n, t) {
|
|
56
|
+
const i = e.slice();
|
|
57
|
+
return i[50] = n[t], i[52] = t, i;
|
|
58
|
+
}
|
|
59
|
+
function $(e) {
|
|
60
|
+
let n, t, i, h, m, k, v, r, p, y, f = Y(
|
|
61
|
+
/*games*/
|
|
62
|
+
e[1]
|
|
63
|
+
), c = [];
|
|
64
|
+
for (let s = 0; s < f.length; s += 1)
|
|
65
|
+
c[s] = ee(V(e, f, s));
|
|
66
|
+
return {
|
|
67
|
+
c() {
|
|
68
|
+
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" 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 = N("main"), m = N("div");
|
|
69
|
+
for (let s = 0; s < c.length; s += 1)
|
|
70
|
+
c[s].c();
|
|
71
|
+
v = z(), r = N("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(
|
|
72
|
+
t,
|
|
73
|
+
"disabled",
|
|
74
|
+
/*atStart*/
|
|
75
|
+
e[8]
|
|
76
|
+
), a(m, "class", "items svelte-erkhk0"), a(m, "part", "items"), Z(m, "transform", "translateX(" + /*offset*/
|
|
77
|
+
e[2] + "px)"), a(h, "class", "svelte-erkhk0"), Ee(() => (
|
|
78
|
+
/*main_elementresize_handler*/
|
|
79
|
+
e[28].call(h)
|
|
80
|
+
)), a(r, "class", "SliderNavButton svelte-erkhk0"), a(r, "part", "SliderNavButton"), j(
|
|
81
|
+
r,
|
|
82
|
+
"disabled",
|
|
83
|
+
/*atEnd*/
|
|
84
|
+
e[9]
|
|
85
|
+
), a(n, "class", "TournamentsGamesSlider svelte-erkhk0"), a(n, "part", "TournamentsGamesSlider");
|
|
86
|
+
},
|
|
87
|
+
m(s, w) {
|
|
88
|
+
I(s, n, w), _(n, t), _(n, i), _(n, h), _(h, m);
|
|
89
|
+
for (let o = 0; o < c.length; o += 1)
|
|
90
|
+
c[o] && c[o].m(m, null);
|
|
91
|
+
e[27](m), k = Pe(
|
|
92
|
+
h,
|
|
93
|
+
/*main_elementresize_handler*/
|
|
94
|
+
e[28].bind(h)
|
|
95
|
+
), _(n, v), _(n, r), e[30](n), p || (y = [
|
|
96
|
+
L(
|
|
97
|
+
t,
|
|
98
|
+
"click",
|
|
99
|
+
/*click_handler*/
|
|
100
|
+
e[23]
|
|
101
|
+
),
|
|
102
|
+
L(
|
|
103
|
+
r,
|
|
104
|
+
"click",
|
|
105
|
+
/*click_handler_2*/
|
|
106
|
+
e[29]
|
|
107
|
+
)
|
|
108
|
+
], p = !0);
|
|
109
|
+
},
|
|
110
|
+
p(s, w) {
|
|
111
|
+
if (w[0] & /*atStart*/
|
|
112
|
+
256 && j(
|
|
113
|
+
t,
|
|
114
|
+
"disabled",
|
|
115
|
+
/*atStart*/
|
|
116
|
+
s[8]
|
|
117
|
+
), w[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
|
|
118
|
+
23650) {
|
|
119
|
+
f = Y(
|
|
120
|
+
/*games*/
|
|
121
|
+
s[1]
|
|
122
|
+
);
|
|
123
|
+
let o;
|
|
124
|
+
for (o = 0; o < f.length; o += 1) {
|
|
125
|
+
const b = V(s, f, o);
|
|
126
|
+
c[o] ? c[o].p(b, w) : (c[o] = ee(b), c[o].c(), c[o].m(m, null));
|
|
127
|
+
}
|
|
128
|
+
for (; o < c.length; o += 1)
|
|
129
|
+
c[o].d(1);
|
|
130
|
+
c.length = f.length;
|
|
131
|
+
}
|
|
132
|
+
w[0] & /*offset*/
|
|
133
|
+
4 && Z(m, "transform", "translateX(" + /*offset*/
|
|
134
|
+
s[2] + "px)"), w[0] & /*atEnd*/
|
|
135
|
+
512 && j(
|
|
136
|
+
r,
|
|
137
|
+
"disabled",
|
|
138
|
+
/*atEnd*/
|
|
139
|
+
s[9]
|
|
140
|
+
);
|
|
141
|
+
},
|
|
142
|
+
d(s) {
|
|
143
|
+
s && G(n), Be(c, s), e[27](null), k(), e[30](null), p = !1, te(y);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function ee(e) {
|
|
148
|
+
let n, t, i = (
|
|
149
|
+
/*$_*/
|
|
150
|
+
e[10]("gamesSlider.playNow") + ""
|
|
151
|
+
), h, m, k, v, r, p, y, f, c, s, w;
|
|
152
|
+
function o() {
|
|
153
|
+
return (
|
|
154
|
+
/*click_handler_1*/
|
|
155
|
+
e[24](
|
|
156
|
+
/*game*/
|
|
157
|
+
e[50]
|
|
158
|
+
)
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
function b() {
|
|
162
|
+
return (
|
|
163
|
+
/*mouseenter_handler*/
|
|
164
|
+
e[25](
|
|
165
|
+
/*i*/
|
|
166
|
+
e[52]
|
|
167
|
+
)
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
return {
|
|
171
|
+
c() {
|
|
172
|
+
n = N("div"), t = N("span"), h = Le(i), v = z(), r = N("img"), c = z(), a(t, "class", m = "PlayNowButton " + /*hover*/
|
|
173
|
+
(e[5] && /*hoverIndex*/
|
|
174
|
+
e[6] == /*i*/
|
|
175
|
+
e[52] ? "itemHover" : "") + " svelte-erkhk0"), a(t, "part", k = "PlayNowButton " + /*hover*/
|
|
176
|
+
(e[5] && /*hoverIndex*/
|
|
177
|
+
e[6] == /*i*/
|
|
178
|
+
e[52] ? "itemHover" : "")), x(r.src, p = /*game*/
|
|
179
|
+
e[50].thumbnail) || a(r, "src", p), a(r, "width", "132px"), a(r, "height", "100px"), a(r, "alt", y = /*game*/
|
|
180
|
+
e[50].name), a(r, "title", f = /*game*/
|
|
181
|
+
e[50].name), a(r, "class", "svelte-erkhk0"), a(n, "class", "item svelte-erkhk0"), a(n, "part", "item");
|
|
182
|
+
},
|
|
183
|
+
m(u, d) {
|
|
184
|
+
I(u, n, d), _(n, t), _(t, h), _(n, v), _(n, r), _(n, c), s || (w = [
|
|
185
|
+
L(n, "click", o),
|
|
186
|
+
L(n, "mouseenter", b),
|
|
187
|
+
L(
|
|
188
|
+
n,
|
|
189
|
+
"mouseleave",
|
|
190
|
+
/*mouseleave_handler*/
|
|
191
|
+
e[26]
|
|
192
|
+
)
|
|
193
|
+
], s = !0);
|
|
194
|
+
},
|
|
195
|
+
p(u, d) {
|
|
196
|
+
e = u, d[0] & /*$_*/
|
|
197
|
+
1024 && i !== (i = /*$_*/
|
|
198
|
+
e[10]("gamesSlider.playNow") + "") && He(h, i), d[0] & /*hover, hoverIndex*/
|
|
199
|
+
96 && m !== (m = "PlayNowButton " + /*hover*/
|
|
200
|
+
(e[5] && /*hoverIndex*/
|
|
201
|
+
e[6] == /*i*/
|
|
202
|
+
e[52] ? "itemHover" : "") + " svelte-erkhk0") && a(t, "class", m), d[0] & /*hover, hoverIndex*/
|
|
203
|
+
96 && k !== (k = "PlayNowButton " + /*hover*/
|
|
204
|
+
(e[5] && /*hoverIndex*/
|
|
205
|
+
e[6] == /*i*/
|
|
206
|
+
e[52] ? "itemHover" : "")) && a(t, "part", k), d[0] & /*games*/
|
|
207
|
+
2 && !x(r.src, p = /*game*/
|
|
208
|
+
e[50].thumbnail) && a(r, "src", p), d[0] & /*games*/
|
|
209
|
+
2 && y !== (y = /*game*/
|
|
210
|
+
e[50].name) && a(r, "alt", y), d[0] & /*games*/
|
|
211
|
+
2 && f !== (f = /*game*/
|
|
212
|
+
e[50].name) && a(r, "title", f);
|
|
213
|
+
},
|
|
214
|
+
d(u) {
|
|
215
|
+
u && G(n), s = !1, te(w);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
function Ue(e) {
|
|
220
|
+
let n, t = (
|
|
221
|
+
/*games*/
|
|
222
|
+
e[1] && /*games*/
|
|
223
|
+
e[1].length > 0 && $(e)
|
|
224
|
+
);
|
|
225
|
+
return {
|
|
226
|
+
c() {
|
|
227
|
+
n = N("div"), t && t.c(), a(n, "class", "svelte-erkhk0");
|
|
228
|
+
},
|
|
229
|
+
m(i, h) {
|
|
230
|
+
I(i, n, h), t && t.m(n, null), e[31](n);
|
|
231
|
+
},
|
|
232
|
+
p(i, h) {
|
|
233
|
+
/*games*/
|
|
234
|
+
i[1] && /*games*/
|
|
235
|
+
i[1].length > 0 ? t ? t.p(i, h) : (t = $(i), t.c(), t.m(n, null)) : t && (t.d(1), t = null);
|
|
236
|
+
},
|
|
237
|
+
i: X,
|
|
238
|
+
o: X,
|
|
239
|
+
d(i) {
|
|
240
|
+
i && G(n), t && t.d(), e[31](null);
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
let Ae = 30;
|
|
245
|
+
function De(e, n, t) {
|
|
246
|
+
let i, h, m;
|
|
247
|
+
Fe(e, je, (l) => t(10, m = l));
|
|
248
|
+
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;
|
|
249
|
+
const le = () => {
|
|
250
|
+
fetch(y).then((g) => g.json()).then((g) => {
|
|
251
|
+
Object.keys(g).forEach((S) => {
|
|
252
|
+
K(S, g[S]);
|
|
253
|
+
});
|
|
254
|
+
}).catch((g) => {
|
|
255
|
+
console.log(g);
|
|
256
|
+
});
|
|
257
|
+
};
|
|
258
|
+
Object.keys(Q).forEach((l) => {
|
|
259
|
+
K(l, Q[l]);
|
|
260
|
+
});
|
|
261
|
+
const W = (l) => {
|
|
262
|
+
t(5, U = !0), t(6, A = l);
|
|
263
|
+
}, q = () => {
|
|
264
|
+
t(5, U = !1), t(6, A = -1);
|
|
265
|
+
}, ne = (l) => l.touches || l.originalEvent.touches, J = (l) => {
|
|
266
|
+
const g = ne(l)[0];
|
|
267
|
+
H = g.clientX, C = g.clientY;
|
|
268
|
+
}, O = (l) => {
|
|
269
|
+
if (!H || !C) return;
|
|
270
|
+
let g = l.touches[0].clientX, S = l.touches[0].clientY, F = H - g, ye = C - S;
|
|
271
|
+
Math.abs(F) > Math.abs(ye) && (F > 0 ? B(1) : B(-1)), H = null, C = null;
|
|
272
|
+
}, B = (l) => {
|
|
273
|
+
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));
|
|
274
|
+
}, R = (l) => {
|
|
275
|
+
window.postMessage(
|
|
276
|
+
{
|
|
277
|
+
type: "TournamentGameAction",
|
|
278
|
+
gameId: l.id,
|
|
279
|
+
name: l.name,
|
|
280
|
+
launchUrl: l.launchUrl
|
|
281
|
+
},
|
|
282
|
+
window.location.href
|
|
283
|
+
);
|
|
284
|
+
}, se = () => {
|
|
285
|
+
let l = new URL(k), g = new Headers();
|
|
286
|
+
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) => {
|
|
287
|
+
t(1, b = F.item.games.items), F.item.games.total;
|
|
288
|
+
});
|
|
289
|
+
}, re = () => {
|
|
290
|
+
d.addEventListener("touchstart", J, { passive: !0 }), d.addEventListener("touchmove", O, { passive: !0 });
|
|
291
|
+
}, ae = () => {
|
|
292
|
+
setTimeout(
|
|
293
|
+
() => {
|
|
294
|
+
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);
|
|
295
|
+
},
|
|
296
|
+
1e3
|
|
297
|
+
);
|
|
298
|
+
}, ie = () => {
|
|
299
|
+
let l = document.createElement("style");
|
|
300
|
+
l.innerHTML = f, s.appendChild(l);
|
|
301
|
+
}, oe = () => {
|
|
302
|
+
let l = new URL(c), g = document.createElement("style");
|
|
303
|
+
fetch(l.href).then((S) => S.text()).then((S) => {
|
|
304
|
+
g.innerHTML = S, setTimeout(
|
|
305
|
+
() => {
|
|
306
|
+
s.appendChild(g);
|
|
307
|
+
},
|
|
308
|
+
1
|
|
309
|
+
), setTimeout(
|
|
310
|
+
() => {
|
|
311
|
+
},
|
|
312
|
+
500
|
|
313
|
+
);
|
|
314
|
+
});
|
|
315
|
+
}, ce = () => {
|
|
316
|
+
T > 0 && T < Math.floor((parseInt(v) + 1) * r) && t(15, v = Math.ceil(T / r).toString());
|
|
317
|
+
};
|
|
318
|
+
Me(() => (o = parseInt(v, 10) * parseInt(r, 10), () => {
|
|
319
|
+
d.removeEventListener("touchstart", J), d.removeEventListener("touchmove", O);
|
|
320
|
+
}));
|
|
321
|
+
const he = () => B(-1), ue = (l) => R(l), me = (l) => W(l), de = () => q();
|
|
322
|
+
function fe(l) {
|
|
323
|
+
D[l ? "unshift" : "push"](() => {
|
|
324
|
+
E = l, t(7, E);
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function ge() {
|
|
328
|
+
T = this.clientWidth, t(4, T);
|
|
329
|
+
}
|
|
330
|
+
const ke = () => B(1);
|
|
331
|
+
function ve(l) {
|
|
332
|
+
D[l ? "unshift" : "push"](() => {
|
|
333
|
+
d = l, t(3, d);
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
function pe(l) {
|
|
337
|
+
D[l ? "unshift" : "push"](() => {
|
|
338
|
+
s = l, t(0, s);
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
return e.$$set = (l) => {
|
|
342
|
+
"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);
|
|
343
|
+
}, e.$$.update = () => {
|
|
344
|
+
e.$$.dirty[0] & /*offset*/
|
|
345
|
+
4 && t(8, i = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
346
|
+
4194308 && t(9, h = u <= P), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
347
|
+
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
348
|
+
131072 && k && se(), e.$$.dirty[0] & /*slider*/
|
|
349
|
+
8 && d && re(), e.$$.dirty[0] & /*translationurl*/
|
|
350
|
+
524288 && y && le(), e.$$.dirty[0] & /*games*/
|
|
351
|
+
2 && b.length && ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
352
|
+
1048577 && f && s && ie(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
353
|
+
2097153 && c && s && oe();
|
|
354
|
+
}, t(2, u = 0), [
|
|
355
|
+
s,
|
|
356
|
+
b,
|
|
357
|
+
u,
|
|
358
|
+
d,
|
|
359
|
+
T,
|
|
360
|
+
U,
|
|
361
|
+
A,
|
|
362
|
+
E,
|
|
363
|
+
i,
|
|
364
|
+
h,
|
|
365
|
+
m,
|
|
366
|
+
W,
|
|
367
|
+
q,
|
|
368
|
+
B,
|
|
369
|
+
R,
|
|
370
|
+
v,
|
|
371
|
+
r,
|
|
372
|
+
k,
|
|
373
|
+
p,
|
|
374
|
+
y,
|
|
375
|
+
f,
|
|
376
|
+
c,
|
|
377
|
+
P,
|
|
378
|
+
he,
|
|
379
|
+
ue,
|
|
380
|
+
me,
|
|
381
|
+
de,
|
|
382
|
+
fe,
|
|
383
|
+
ge,
|
|
384
|
+
ke,
|
|
385
|
+
ve,
|
|
386
|
+
pe
|
|
387
|
+
];
|
|
388
|
+
}
|
|
389
|
+
class Ie extends _e {
|
|
390
|
+
constructor(n) {
|
|
391
|
+
super(), be(
|
|
392
|
+
this,
|
|
393
|
+
n,
|
|
394
|
+
De,
|
|
395
|
+
Ue,
|
|
396
|
+
Ne,
|
|
397
|
+
{
|
|
398
|
+
tournamenturl: 17,
|
|
399
|
+
scrollby: 15,
|
|
400
|
+
pagfactor: 16,
|
|
401
|
+
lang: 18,
|
|
402
|
+
translationurl: 19,
|
|
403
|
+
clientstyling: 20,
|
|
404
|
+
clientstylingurl: 21
|
|
405
|
+
},
|
|
406
|
+
ze,
|
|
407
|
+
[-1, -1]
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
get tournamenturl() {
|
|
411
|
+
return this.$$.ctx[17];
|
|
412
|
+
}
|
|
413
|
+
set tournamenturl(n) {
|
|
414
|
+
this.$$set({ tournamenturl: n }), M();
|
|
415
|
+
}
|
|
416
|
+
get scrollby() {
|
|
417
|
+
return this.$$.ctx[15];
|
|
418
|
+
}
|
|
419
|
+
set scrollby(n) {
|
|
420
|
+
this.$$set({ scrollby: n }), M();
|
|
421
|
+
}
|
|
422
|
+
get pagfactor() {
|
|
423
|
+
return this.$$.ctx[16];
|
|
424
|
+
}
|
|
425
|
+
set pagfactor(n) {
|
|
426
|
+
this.$$set({ pagfactor: n }), M();
|
|
427
|
+
}
|
|
428
|
+
get lang() {
|
|
429
|
+
return this.$$.ctx[18];
|
|
430
|
+
}
|
|
431
|
+
set lang(n) {
|
|
432
|
+
this.$$set({ lang: n }), M();
|
|
433
|
+
}
|
|
434
|
+
get translationurl() {
|
|
435
|
+
return this.$$.ctx[19];
|
|
436
|
+
}
|
|
437
|
+
set translationurl(n) {
|
|
438
|
+
this.$$set({ translationurl: n }), M();
|
|
439
|
+
}
|
|
440
|
+
get clientstyling() {
|
|
441
|
+
return this.$$.ctx[20];
|
|
442
|
+
}
|
|
443
|
+
set clientstyling(n) {
|
|
444
|
+
this.$$set({ clientstyling: n }), M();
|
|
445
|
+
}
|
|
446
|
+
get clientstylingurl() {
|
|
447
|
+
return this.$$.ctx[21];
|
|
448
|
+
}
|
|
449
|
+
set clientstylingurl(n) {
|
|
450
|
+
this.$$set({ clientstylingurl: n }), M();
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
Se(Ie, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
454
|
+
export {
|
|
455
|
+
Ie as default
|
|
456
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-DZ0LEvCR.cjs");function v(r,t){e.addMessages(r,t)}const P={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},hr:{tournamentsPrizes:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},"zh-hk":{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function F(r){e.append_styles(r,"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 _(r,t,n){const s=r.slice();return s[13]=t[n],s[15]=n,s}function T(r){let t,n=e.ensure_array_like(r[1]),s=[];for(let l=0;l<n.length;l+=1)s[l]=w(_(r,n,l));let i=null;return n.length||(i=b(r)),{c(){t=e.element("div");for(let l=0;l<s.length;l+=1)s[l].c();i&&i.c(),e.attr(t,"class","Prizes svelte-ypey7g"),e.attr(t,"part","Prizes")},m(l,c){e.insert(l,t,c);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(t,null);i&&i.m(t,null)},p(l,c){if(c&6){n=e.ensure_array_like(l[1]);let a;for(a=0;a<n.length;a+=1){const u=_(l,n,a);s[a]?s[a].p(u,c):(s[a]=w(u),s[a].c(),s[a].m(t,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=n.length,!n.length&&i?i.p(l,c):n.length?i&&(i.d(1),i=null):(i=b(l),i.c(),i.m(t,null))}},d(l){l&&e.detach(t),e.destroy_each(s,l),i&&i.d()}}}function b(r){let t,n=r[2]("tournamentsPrizes.noprizes")+"",s;return{c(){t=e.element("p"),s=e.text(n),e.attr(t,"class","svelte-ypey7g")},m(i,l){e.insert(i,t,l),e.append(t,s)},p(i,l){l&4&&n!==(n=i[2]("tournamentsPrizes.noprizes")+"")&&e.set_data(s,n)},d(i){i&&e.detach(t)}}}function w(r){let t,n,s,i=(r[13].count>1?`${r[13].rank}~${r[13].rank+r[13].count-1}`:r[13].rank)+"",l,c,a=r[2]("tournamentsPrizes.place")+"",u,o,y=r[13].name+"",d,h;return{c(){t=e.element("div"),n=e.element("p"),s=e.element("span"),l=e.text(i),c=e.space(),u=e.text(a),o=e.text(": "),d=e.text(y),h=e.space(),e.attr(s,"class","PrizeRank svelte-ypey7g"),e.attr(s,"part","PrizeRank"),e.attr(n,"class","PrizeText svelte-ypey7g"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+r[15]+" svelte-ypey7g"),e.attr(t,"part","Prize Prize"+r[15])},m(g,z){e.insert(g,t,z),e.append(t,n),e.append(n,s),e.append(s,l),e.append(n,c),e.append(n,u),e.append(n,o),e.append(n,d),e.append(t,h)},p(g,z){z&2&&i!==(i=(g[13].count>1?`${g[13].rank}~${g[13].rank+g[13].count-1}`:g[13].rank)+"")&&e.set_data(l,i),z&4&&a!==(a=g[2]("tournamentsPrizes.place")+"")&&e.set_data(u,a),z&2&&y!==(y=g[13].name+"")&&e.set_data(d,y)},d(g){g&&e.detach(t)}}}function M(r){let t,n,s,i,l,c=r[2]("tournamentsPrizes.prizes")+"",a,u,o=r[1]&&T(r);return{c(){t=e.element("div"),n=e.element("div"),s=e.element("span"),s.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>',i=e.space(),l=e.element("p"),a=e.text(c),u=e.space(),o&&o.c(),e.attr(s,"class","TournamentPrizesIconWrapper svelte-ypey7g"),e.attr(s,"part","TournamentPrizesIconWrapper"),e.attr(l,"class","PrizesTitle svelte-ypey7g"),e.attr(l,"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(y,d){e.insert(y,t,d),e.append(t,n),e.append(n,s),e.append(n,i),e.append(n,l),e.append(l,a),e.append(t,u),o&&o.m(t,null),r[7](t)},p(y,[d]){d&4&&c!==(c=y[2]("tournamentsPrizes.prizes")+"")&&e.set_data(a,c),y[1]?o?o.p(y,d):(o=T(y),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(y){y&&e.detach(t),o&&o.d(),r[7](null)}}}function S(r,t,n){let s;e.component_subscribe(r,e.$format,p=>n(2,s=p));let{tourid:i=""}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:a=""}=t,u,o;const y=()=>{fetch(a).then(m=>m.json()).then(m=>{Object.keys(m).forEach(f=>{v(f,m[f])})}).catch(m=>{console.log(m)})};Object.keys(P).forEach(p=>{v(p,P[p])});const d=p=>{p.data&&p.data.type==`TournamentPrizes_${i}`&&n(1,o=p.data.prizes)},h=()=>{let p=document.createElement("style");p.innerHTML=l,u.appendChild(p)},g=()=>{let p=new URL(c),m=document.createElement("style");fetch(p.href).then(f=>f.text()).then(f=>{m.innerHTML=f,setTimeout(()=>{u.appendChild(m)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function z(p){e.binding_callbacks[p?"unshift":"push"](()=>{u=p,n(0,u)})}return r.$$set=p=>{"tourid"in p&&n(3,i=p.tourid),"clientstyling"in p&&n(4,l=p.clientstyling),"clientstylingurl"in p&&n(5,c=p.clientstylingurl),"translationurl"in p&&n(6,a=p.translationurl)},r.$$.update=()=>{r.$$.dirty&17&&u&&l&&h(),r.$$.dirty&33&&u&&c&&g(),r.$$.dirty&64&&a&&y()},[u,o,s,i,l,c,a,z]}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;
|