@everymatrix/casino-tournaments-controller 1.67.0 → 1.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoTournamentsController-C99E3MCm.cjs +27 -0
- package/components/{CasinoTournamentsController-BULZ_y4b.js → CasinoTournamentsController-CtQ0SbZ1.js} +974 -934
- package/components/{CasinoTournamentsController-2bTwgvFF.js → CasinoTournamentsController-Dv0w6uxv.js} +1042 -1002
- package/components/CasinoTournamentsFilterController-CA_x2Klb.js +531 -0
- package/components/CasinoTournamentsFilterController-D8z30hIO.cjs +1 -0
- package/components/{CasinoTournamentsFilterController-CoqpuR3P.js → CasinoTournamentsFilterController-ZPodzMjS.js} +164 -169
- package/components/{CasinoTournamentsListController-DuHpRjLq.js → CasinoTournamentsListController-BYjVebPq.js} +960 -958
- package/components/CasinoTournamentsListController-CMsPWeSH.cjs +13 -0
- package/components/{CasinoTournamentsListController-DT6zQNpY.js → CasinoTournamentsListController-CWtG_Kjm.js} +960 -958
- package/components/{CasinoTournamentsThumbnail-lBi843NX.js → CasinoTournamentsThumbnail-DIFGhQrc.js} +185 -193
- package/components/{CasinoTournamentsThumbnail-CueG5cos.js → CasinoTournamentsThumbnail-Dtfyse7r.js} +185 -193
- package/components/{CasinoTournamentsThumbnail-BWfbNcYT.cjs → CasinoTournamentsThumbnail-zXFGDGG1.cjs} +2 -2
- package/components/CasinoTournamentsThumbnailController-Cjehrx7D.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailController-eBnrMpwv.js → CasinoTournamentsThumbnailController-DChZllZ4.js} +470 -434
- package/components/{CasinoTournamentsThumbnailController-CBp3ylH6.js → CasinoTournamentsThumbnailController-cPtKiglf.js} +397 -361
- package/components/{CasinoTournamentsThumbnailDuration-B87YJ1nA.js → CasinoTournamentsThumbnailDuration-CRqfmGfU.js} +156 -162
- package/components/{CasinoTournamentsThumbnailDuration-CEChJpk4.js → CasinoTournamentsThumbnailDuration-DFTngt18.js} +154 -160
- package/components/CasinoTournamentsThumbnailDuration-kjnnyoM_.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-CrfM0zwZ.js +434 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-K4TlIiKZ.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-cZ5Ks8Mw.js +434 -0
- package/components/CasinoTournamentsThumbnailPrizes-Ba3SYovQ.js +307 -0
- package/components/CasinoTournamentsThumbnailPrizes-C1nsvr3R.js +307 -0
- package/components/CasinoTournamentsThumbnailPrizes-DnyppL-K.cjs +1 -0
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/esnext/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsController-CYyTUNIz.cjs +0 -27
- package/components/CasinoTournamentsFilterController-DXDkdo0S.js +0 -536
- package/components/CasinoTournamentsFilterController-DjLEXDTC.cjs +0 -1
- package/components/CasinoTournamentsListController-DWgmnfOc.cjs +0 -13
- package/components/CasinoTournamentsThumbnailController-CE8cLaj5.cjs +0 -1
- package/components/CasinoTournamentsThumbnailDuration-DYI4yj5n.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGamesSlider-DODIM4Fk.js +0 -442
- package/components/CasinoTournamentsThumbnailGamesSlider-DWAgOpLA.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGamesSlider-LtmE1Ho2.js +0 -442
- package/components/CasinoTournamentsThumbnailPrizes-BpQPVoHy.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-CWqeOB0q.js +0 -315
- package/components/CasinoTournamentsThumbnailPrizes-DBsFGpAH.js +0 -315
|
@@ -1,442 +0,0 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke, s as Ne, f as M, b as Se, n as X, d as I, e as G, g as S, k as Te, w as Fe, l as x, m as Me, C as te, H as j, G as Y, p as v, I as Pe, u as L, q as z, h as c, J as Be, F as Ee, r as D, o as Le, D as Z, t as He, c as Ce, $ as je } from "./CasinoTournamentsController-BULZ_y4b.js";
|
|
2
|
-
function K(e, l) {
|
|
3
|
-
be(e, l);
|
|
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
|
-
"en-us": {
|
|
34
|
-
playNow: "Play now"
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
function ze(e) {
|
|
38
|
-
Se(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}");
|
|
39
|
-
}
|
|
40
|
-
function V(e, l, t) {
|
|
41
|
-
const a = e.slice();
|
|
42
|
-
return a[50] = l[t], a[52] = t, a;
|
|
43
|
-
}
|
|
44
|
-
function $(e) {
|
|
45
|
-
let l, t, a, d, h, p, y, r, w, _, f = x(
|
|
46
|
-
/*games*/
|
|
47
|
-
e[1]
|
|
48
|
-
), o = [];
|
|
49
|
-
for (let s = 0; s < f.length; s += 1)
|
|
50
|
-
o[s] = ee(V(e, f, s));
|
|
51
|
-
return {
|
|
52
|
-
c() {
|
|
53
|
-
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 = z(), d = S("main"), h = S("div");
|
|
54
|
-
for (let s = 0; s < o.length; s += 1)
|
|
55
|
-
o[s].c();
|
|
56
|
-
y = z(), 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"), j(
|
|
57
|
-
t,
|
|
58
|
-
"disabled",
|
|
59
|
-
/*atStart*/
|
|
60
|
-
e[8]
|
|
61
|
-
), c(h, "class", "items"), c(h, "part", "items"), Y(h, "transform", "translateX(" + /*offset*/
|
|
62
|
-
e[2] + "px)"), Be(() => (
|
|
63
|
-
/*main_elementresize_handler*/
|
|
64
|
-
e[28].call(d)
|
|
65
|
-
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), j(
|
|
66
|
-
r,
|
|
67
|
-
"disabled",
|
|
68
|
-
/*atEnd*/
|
|
69
|
-
e[9]
|
|
70
|
-
), c(l, "class", "TournamentsGamesSlider"), c(l, "part", "TournamentsGamesSlider");
|
|
71
|
-
},
|
|
72
|
-
m(s, b) {
|
|
73
|
-
G(s, l, b), v(l, t), v(l, a), v(l, d), v(d, h);
|
|
74
|
-
for (let i = 0; i < o.length; i += 1)
|
|
75
|
-
o[i] && o[i].m(h, null);
|
|
76
|
-
e[27](h), p = Pe(
|
|
77
|
-
d,
|
|
78
|
-
/*main_elementresize_handler*/
|
|
79
|
-
e[28].bind(d)
|
|
80
|
-
), v(l, y), v(l, r), e[30](l), w || (_ = [
|
|
81
|
-
L(
|
|
82
|
-
t,
|
|
83
|
-
"click",
|
|
84
|
-
/*click_handler*/
|
|
85
|
-
e[23]
|
|
86
|
-
),
|
|
87
|
-
L(
|
|
88
|
-
r,
|
|
89
|
-
"click",
|
|
90
|
-
/*click_handler_2*/
|
|
91
|
-
e[29]
|
|
92
|
-
)
|
|
93
|
-
], w = !0);
|
|
94
|
-
},
|
|
95
|
-
p(s, b) {
|
|
96
|
-
if (b[0] & /*atStart*/
|
|
97
|
-
256 && j(
|
|
98
|
-
t,
|
|
99
|
-
"disabled",
|
|
100
|
-
/*atStart*/
|
|
101
|
-
s[8]
|
|
102
|
-
), b[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
|
|
103
|
-
23650) {
|
|
104
|
-
f = x(
|
|
105
|
-
/*games*/
|
|
106
|
-
s[1]
|
|
107
|
-
);
|
|
108
|
-
let i;
|
|
109
|
-
for (i = 0; i < f.length; i += 1) {
|
|
110
|
-
const k = V(s, f, i);
|
|
111
|
-
o[i] ? o[i].p(k, b) : (o[i] = ee(k), o[i].c(), o[i].m(h, null));
|
|
112
|
-
}
|
|
113
|
-
for (; i < o.length; i += 1)
|
|
114
|
-
o[i].d(1);
|
|
115
|
-
o.length = f.length;
|
|
116
|
-
}
|
|
117
|
-
b[0] & /*offset*/
|
|
118
|
-
4 && Y(h, "transform", "translateX(" + /*offset*/
|
|
119
|
-
s[2] + "px)"), b[0] & /*atEnd*/
|
|
120
|
-
512 && j(
|
|
121
|
-
r,
|
|
122
|
-
"disabled",
|
|
123
|
-
/*atEnd*/
|
|
124
|
-
s[9]
|
|
125
|
-
);
|
|
126
|
-
},
|
|
127
|
-
d(s) {
|
|
128
|
-
s && I(l), Me(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
function ee(e) {
|
|
133
|
-
let l, t, a = (
|
|
134
|
-
/*$_*/
|
|
135
|
-
e[10]("playNow") + ""
|
|
136
|
-
), d, h, p, y, r, w, _, f, o, s, b;
|
|
137
|
-
function i() {
|
|
138
|
-
return (
|
|
139
|
-
/*click_handler_1*/
|
|
140
|
-
e[24](
|
|
141
|
-
/*game*/
|
|
142
|
-
e[50]
|
|
143
|
-
)
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
function k() {
|
|
147
|
-
return (
|
|
148
|
-
/*mouseenter_handler*/
|
|
149
|
-
e[25](
|
|
150
|
-
/*i*/
|
|
151
|
-
e[52]
|
|
152
|
-
)
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
return {
|
|
156
|
-
c() {
|
|
157
|
-
l = S("div"), t = S("span"), d = He(a), y = z(), r = S("img"), o = z(), c(t, "class", h = "PlayNowButton " + /*hover*/
|
|
158
|
-
(e[5] && /*hoverIndex*/
|
|
159
|
-
e[6] == /*i*/
|
|
160
|
-
e[52] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
161
|
-
(e[5] && /*hoverIndex*/
|
|
162
|
-
e[6] == /*i*/
|
|
163
|
-
e[52] ? "itemHover" : "")), Z(r.src, w = /*game*/
|
|
164
|
-
e[50].thumbnail) || c(r, "src", w), c(r, "width", "132px"), c(r, "height", "100px"), c(r, "alt", _ = /*game*/
|
|
165
|
-
e[50].name), c(r, "title", f = /*game*/
|
|
166
|
-
e[50].name), c(l, "class", "item"), c(l, "part", "item");
|
|
167
|
-
},
|
|
168
|
-
m(u, m) {
|
|
169
|
-
G(u, l, m), v(l, t), v(t, d), v(l, y), v(l, r), v(l, o), s || (b = [
|
|
170
|
-
L(l, "click", i),
|
|
171
|
-
L(l, "mouseenter", k),
|
|
172
|
-
L(
|
|
173
|
-
l,
|
|
174
|
-
"mouseleave",
|
|
175
|
-
/*mouseleave_handler*/
|
|
176
|
-
e[26]
|
|
177
|
-
)
|
|
178
|
-
], s = !0);
|
|
179
|
-
},
|
|
180
|
-
p(u, m) {
|
|
181
|
-
e = u, m[0] & /*$_*/
|
|
182
|
-
1024 && a !== (a = /*$_*/
|
|
183
|
-
e[10]("playNow") + "") && Le(d, a), m[0] & /*hover, hoverIndex*/
|
|
184
|
-
96 && h !== (h = "PlayNowButton " + /*hover*/
|
|
185
|
-
(e[5] && /*hoverIndex*/
|
|
186
|
-
e[6] == /*i*/
|
|
187
|
-
e[52] ? "itemHover" : "")) && c(t, "class", h), m[0] & /*hover, hoverIndex*/
|
|
188
|
-
96 && p !== (p = "PlayNowButton " + /*hover*/
|
|
189
|
-
(e[5] && /*hoverIndex*/
|
|
190
|
-
e[6] == /*i*/
|
|
191
|
-
e[52] ? "itemHover" : "")) && c(t, "part", p), m[0] & /*games*/
|
|
192
|
-
2 && !Z(r.src, w = /*game*/
|
|
193
|
-
e[50].thumbnail) && c(r, "src", w), m[0] & /*games*/
|
|
194
|
-
2 && _ !== (_ = /*game*/
|
|
195
|
-
e[50].name) && c(r, "alt", _), m[0] & /*games*/
|
|
196
|
-
2 && f !== (f = /*game*/
|
|
197
|
-
e[50].name) && c(r, "title", f);
|
|
198
|
-
},
|
|
199
|
-
d(u) {
|
|
200
|
-
u && I(l), s = !1, te(b);
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
function Ae(e) {
|
|
205
|
-
let l, t = (
|
|
206
|
-
/*games*/
|
|
207
|
-
e[1] && /*games*/
|
|
208
|
-
e[1].length > 0 && $(e)
|
|
209
|
-
);
|
|
210
|
-
return {
|
|
211
|
-
c() {
|
|
212
|
-
l = S("div"), t && t.c();
|
|
213
|
-
},
|
|
214
|
-
m(a, d) {
|
|
215
|
-
G(a, l, d), t && t.m(l, null), e[31](l);
|
|
216
|
-
},
|
|
217
|
-
p(a, d) {
|
|
218
|
-
/*games*/
|
|
219
|
-
a[1] && /*games*/
|
|
220
|
-
a[1].length > 0 ? t ? t.p(a, d) : (t = $(a), t.c(), t.m(l, null)) : t && (t.d(1), t = null);
|
|
221
|
-
},
|
|
222
|
-
i: X,
|
|
223
|
-
o: X,
|
|
224
|
-
d(a) {
|
|
225
|
-
a && I(l), t && t.d(), e[31](null);
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
let Ue = 30;
|
|
230
|
-
function De(e, l, t) {
|
|
231
|
-
let a, d, h;
|
|
232
|
-
Te(e, je, (n) => t(10, h = n));
|
|
233
|
-
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, m, H = null, C = null, A = !1, U, P, B = 0, T;
|
|
234
|
-
const ne = () => {
|
|
235
|
-
fetch(_).then((g) => g.json()).then((g) => {
|
|
236
|
-
Object.keys(g).forEach((N) => {
|
|
237
|
-
K(N, g[N]);
|
|
238
|
-
});
|
|
239
|
-
}).catch((g) => {
|
|
240
|
-
console.log(g);
|
|
241
|
-
});
|
|
242
|
-
};
|
|
243
|
-
Object.keys(Q).forEach((n) => {
|
|
244
|
-
K(n, Q[n]);
|
|
245
|
-
});
|
|
246
|
-
const W = (n) => {
|
|
247
|
-
t(5, A = !0), t(6, U = n);
|
|
248
|
-
}, q = () => {
|
|
249
|
-
t(5, A = !1), t(6, U = -1);
|
|
250
|
-
}, le = (n) => n.touches || n.originalEvent.touches, J = (n) => {
|
|
251
|
-
const g = le(n)[0];
|
|
252
|
-
H = g.clientX, C = g.clientY;
|
|
253
|
-
}, O = (n) => {
|
|
254
|
-
if (!H || !C)
|
|
255
|
-
return;
|
|
256
|
-
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = C - N;
|
|
257
|
-
Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, C = null;
|
|
258
|
-
}, E = (n) => {
|
|
259
|
-
n > 0 && !d ? (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));
|
|
260
|
-
}, R = (n) => {
|
|
261
|
-
window.postMessage(
|
|
262
|
-
{
|
|
263
|
-
type: "TournamentGameAction",
|
|
264
|
-
gameId: n.id,
|
|
265
|
-
name: n.name,
|
|
266
|
-
launchUrl: n.launchUrl
|
|
267
|
-
},
|
|
268
|
-
window.location.href
|
|
269
|
-
);
|
|
270
|
-
}, se = () => {
|
|
271
|
-
let n = new URL(p), g = new Headers();
|
|
272
|
-
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", Ee(b)), fetch(n, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
|
|
273
|
-
t(1, k = F.item.games.items), F.item.games.total;
|
|
274
|
-
});
|
|
275
|
-
}, re = () => {
|
|
276
|
-
m.addEventListener("touchstart", J, { passive: !0 }), m.addEventListener("touchmove", O, { passive: !0 });
|
|
277
|
-
}, ae = () => {
|
|
278
|
-
setTimeout(
|
|
279
|
-
() => {
|
|
280
|
-
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);
|
|
281
|
-
},
|
|
282
|
-
1e3
|
|
283
|
-
);
|
|
284
|
-
}, ie = () => {
|
|
285
|
-
let n = document.createElement("style");
|
|
286
|
-
n.innerHTML = f, s.appendChild(n);
|
|
287
|
-
}, oe = () => {
|
|
288
|
-
let n = new URL(o), g = document.createElement("style");
|
|
289
|
-
fetch(n.href).then((N) => N.text()).then((N) => {
|
|
290
|
-
g.innerHTML = N, setTimeout(
|
|
291
|
-
() => {
|
|
292
|
-
s.appendChild(g);
|
|
293
|
-
},
|
|
294
|
-
1
|
|
295
|
-
), setTimeout(
|
|
296
|
-
() => {
|
|
297
|
-
},
|
|
298
|
-
500
|
|
299
|
-
);
|
|
300
|
-
});
|
|
301
|
-
}, ce = () => {
|
|
302
|
-
T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
|
|
303
|
-
};
|
|
304
|
-
Fe(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
|
|
305
|
-
m.removeEventListener("touchstart", J), m.removeEventListener("touchmove", O);
|
|
306
|
-
}));
|
|
307
|
-
const ue = () => E(-1), de = (n) => R(n), he = (n) => W(n), me = () => q();
|
|
308
|
-
function fe(n) {
|
|
309
|
-
D[n ? "unshift" : "push"](() => {
|
|
310
|
-
P = n, t(7, P);
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
function ge() {
|
|
314
|
-
T = this.clientWidth, t(4, T);
|
|
315
|
-
}
|
|
316
|
-
const pe = () => E(1);
|
|
317
|
-
function ye(n) {
|
|
318
|
-
D[n ? "unshift" : "push"](() => {
|
|
319
|
-
m = n, t(3, m);
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
function we(n) {
|
|
323
|
-
D[n ? "unshift" : "push"](() => {
|
|
324
|
-
s = n, t(0, s);
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
return e.$$set = (n) => {
|
|
328
|
-
"tournamenturl" in n && t(17, p = n.tournamenturl), "scrollby" in n && t(15, y = n.scrollby), "pagfactor" in n && t(16, r = n.pagfactor), "lang" in n && t(18, w = n.lang), "translationurl" in n && t(19, _ = n.translationurl), "clientstyling" in n && t(20, f = n.clientstyling), "clientstylingurl" in n && t(21, o = n.clientstylingurl);
|
|
329
|
-
}, e.$$.update = () => {
|
|
330
|
-
e.$$.dirty[0] & /*offset*/
|
|
331
|
-
4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
332
|
-
4194308 && t(9, d = u <= B), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
333
|
-
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
334
|
-
131072 && p && se(), e.$$.dirty[0] & /*slider*/
|
|
335
|
-
8 && m && re(), e.$$.dirty[0] & /*translationurl*/
|
|
336
|
-
524288 && _ && ne(), e.$$.dirty[0] & /*games*/
|
|
337
|
-
2 && k.length && ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
338
|
-
1048577 && f && s && ie(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
339
|
-
2097153 && o && s && oe();
|
|
340
|
-
}, t(2, u = 0), [
|
|
341
|
-
s,
|
|
342
|
-
k,
|
|
343
|
-
u,
|
|
344
|
-
m,
|
|
345
|
-
T,
|
|
346
|
-
A,
|
|
347
|
-
U,
|
|
348
|
-
P,
|
|
349
|
-
a,
|
|
350
|
-
d,
|
|
351
|
-
h,
|
|
352
|
-
W,
|
|
353
|
-
q,
|
|
354
|
-
E,
|
|
355
|
-
R,
|
|
356
|
-
y,
|
|
357
|
-
r,
|
|
358
|
-
p,
|
|
359
|
-
w,
|
|
360
|
-
_,
|
|
361
|
-
f,
|
|
362
|
-
o,
|
|
363
|
-
B,
|
|
364
|
-
ue,
|
|
365
|
-
de,
|
|
366
|
-
he,
|
|
367
|
-
me,
|
|
368
|
-
fe,
|
|
369
|
-
ge,
|
|
370
|
-
pe,
|
|
371
|
-
ye,
|
|
372
|
-
we
|
|
373
|
-
];
|
|
374
|
-
}
|
|
375
|
-
class Ie extends ve {
|
|
376
|
-
constructor(l) {
|
|
377
|
-
super(), ke(
|
|
378
|
-
this,
|
|
379
|
-
l,
|
|
380
|
-
De,
|
|
381
|
-
Ae,
|
|
382
|
-
Ne,
|
|
383
|
-
{
|
|
384
|
-
tournamenturl: 17,
|
|
385
|
-
scrollby: 15,
|
|
386
|
-
pagfactor: 16,
|
|
387
|
-
lang: 18,
|
|
388
|
-
translationurl: 19,
|
|
389
|
-
clientstyling: 20,
|
|
390
|
-
clientstylingurl: 21
|
|
391
|
-
},
|
|
392
|
-
ze,
|
|
393
|
-
[-1, -1]
|
|
394
|
-
);
|
|
395
|
-
}
|
|
396
|
-
get tournamenturl() {
|
|
397
|
-
return this.$$.ctx[17];
|
|
398
|
-
}
|
|
399
|
-
set tournamenturl(l) {
|
|
400
|
-
this.$$set({ tournamenturl: l }), M();
|
|
401
|
-
}
|
|
402
|
-
get scrollby() {
|
|
403
|
-
return this.$$.ctx[15];
|
|
404
|
-
}
|
|
405
|
-
set scrollby(l) {
|
|
406
|
-
this.$$set({ scrollby: l }), M();
|
|
407
|
-
}
|
|
408
|
-
get pagfactor() {
|
|
409
|
-
return this.$$.ctx[16];
|
|
410
|
-
}
|
|
411
|
-
set pagfactor(l) {
|
|
412
|
-
this.$$set({ pagfactor: l }), M();
|
|
413
|
-
}
|
|
414
|
-
get lang() {
|
|
415
|
-
return this.$$.ctx[18];
|
|
416
|
-
}
|
|
417
|
-
set lang(l) {
|
|
418
|
-
this.$$set({ lang: l }), M();
|
|
419
|
-
}
|
|
420
|
-
get translationurl() {
|
|
421
|
-
return this.$$.ctx[19];
|
|
422
|
-
}
|
|
423
|
-
set translationurl(l) {
|
|
424
|
-
this.$$set({ translationurl: l }), M();
|
|
425
|
-
}
|
|
426
|
-
get clientstyling() {
|
|
427
|
-
return this.$$.ctx[20];
|
|
428
|
-
}
|
|
429
|
-
set clientstyling(l) {
|
|
430
|
-
this.$$set({ clientstyling: l }), M();
|
|
431
|
-
}
|
|
432
|
-
get clientstylingurl() {
|
|
433
|
-
return this.$$.ctx[21];
|
|
434
|
-
}
|
|
435
|
-
set clientstylingurl(l) {
|
|
436
|
-
this.$$set({ clientstylingurl: l }), M();
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
Ce(Ie, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
440
|
-
export {
|
|
441
|
-
Ie as default
|
|
442
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-CYyTUNIz.cjs");function y(r,t){e.addMessages(r,t)}const P={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"},"en-us":{prizes:"Prizes",noprizes:"No available prizes",place:"place"}};function F(r){e.append_styles(r,"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)}")}function v(r,t,n){const i=r.slice();return i[13]=t[n],i[15]=n,i}function T(r){let t,n=e.ensure_array_like(r[1]),i=[];for(let l=0;l<n.length;l+=1)i[l]=w(v(r,n,l));let a=null;return n.length||(a=b(r)),{c(){t=e.element("div");for(let l=0;l<i.length;l+=1)i[l].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(l,c){e.insert(l,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(l,c){if(c&6){n=e.ensure_array_like(l[1]);let s;for(s=0;s<n.length;s+=1){const u=v(l,n,s);i[s]?i[s].p(u,c):(i[s]=w(u),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(l,c):n.length?a&&(a.d(1),a=null):(a=b(l),a.c(),a.m(t,null))}},d(l){l&&e.detach(t),e.destroy_each(i,l),a&&a.d()}}}function b(r){let t,n=r[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,l){e.insert(a,t,l),e.append(t,i)},p(a,l){l&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function w(r){let t,n,i,a=(r[13].count>1?`${r[13].rank}~${r[13].rank+r[13].count-1}`:r[13].rank)+"",l,c,s=r[2]("place")+"",u,p,d=r[13].name+"",f,_;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),l=e.text(a),c=e.space(),u=e.text(s),p=e.text(": "),f=e.text(d),_=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+r[15]),e.attr(t,"part","Prize Prize"+r[15])},m(h,z){e.insert(h,t,z),e.append(t,n),e.append(n,i),e.append(i,l),e.append(n,c),e.append(n,u),e.append(n,p),e.append(n,f),e.append(t,_)},p(h,z){z&2&&a!==(a=(h[13].count>1?`${h[13].rank}~${h[13].rank+h[13].count-1}`:h[13].rank)+"")&&e.set_data(l,a),z&4&&s!==(s=h[2]("place")+"")&&e.set_data(u,s),z&2&&d!==(d=h[13].name+"")&&e.set_data(f,d)},d(h){h&&e.detach(t)}}}function M(r){let t,n,i,a,l,c=r[2]("prizes")+"",s,u,p=r[1]&&T(r);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.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>',a=e.space(),l=e.element("p"),s=e.text(c),u=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(l,"class","PrizesTitle"),e.attr(l,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(d,f){e.insert(d,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,l),e.append(l,s),e.append(t,u),p&&p.m(t,null),r[7](t)},p(d,[f]){f&4&&c!==(c=d[2]("prizes")+"")&&e.set_data(s,c),d[1]?p?p.p(d,f):(p=T(d),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),p&&p.d(),r[7](null)}}}function N(r,t,n){let i;e.component_subscribe(r,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,u,p;const d=()=>{fetch(s).then(m=>m.json()).then(m=>{Object.keys(m).forEach(g=>{y(g,m[g])})}).catch(m=>{console.log(m)})};Object.keys(P).forEach(o=>{y(o,P[o])});const f=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,p=o.data.prizes)},_=()=>{let o=document.createElement("style");o.innerHTML=l,u.appendChild(o)},h=()=>{let o=new URL(c),m=document.createElement("style");fetch(o.href).then(g=>g.text()).then(g=>{m.innerHTML=g,setTimeout(()=>{u.appendChild(m)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)}));function z(o){e.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(0,u)})}return r.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,l=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl)},r.$$.update=()=>{r.$$.dirty&17&&u&&l&&_(),r.$$.dirty&33&&u&&c&&h(),r.$$.dirty&64&&s&&d()},[u,p,i,a,l,c,s,z]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,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;
|