@everymatrix/casino-tournaments-list-controller 1.67.3 → 1.69.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/{CasinoTournamentsListController-CtInxe7N.js → CasinoTournamentsListController-916JL4F7.js} +1822 -1828
- package/components/CasinoTournamentsListController-CLH2CE8z.cjs +15 -0
- package/components/{CasinoTournamentsListController-B462E0qG.js → CasinoTournamentsListController-DZAcldSI.js} +1834 -1840
- package/components/{CasinoTournamentsThumbnail-ByXAPz4b.js → CasinoTournamentsThumbnail-CO-eYscS.js} +177 -185
- package/components/{CasinoTournamentsThumbnail-14EXKDty.cjs → CasinoTournamentsThumbnail-CPbOt4AY.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnail-DfAXgn4t.js → CasinoTournamentsThumbnail-nwxK7LAX.js} +177 -185
- package/components/CasinoTournamentsThumbnailController-A_BKNTJR.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-hECyfAwI.js → CasinoTournamentsThumbnailController-Bq1AssJj.js} +774 -673
- package/components/{CasinoTournamentsThumbnailController-CPyJp_n-.js → CasinoTournamentsThumbnailController-CKIWWza3.js} +800 -699
- package/components/{CasinoTournamentsThumbnailDuration-B0XmmYAV.js → CasinoTournamentsThumbnailDuration-CoD7UhLT.js} +147 -153
- package/components/{CasinoTournamentsThumbnailDuration-CgopDMJt.js → CasinoTournamentsThumbnailDuration-Cs4yX-Vh.js} +147 -153
- package/components/CasinoTournamentsThumbnailDuration-D96wnUeF.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-BsYSU3V2.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-DeZzlvbO.js +435 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-DyvJUNdJ.js +435 -0
- package/components/CasinoTournamentsThumbnailPrizes-8tONX9SA.cjs +1 -0
- package/components/CasinoTournamentsThumbnailPrizes-BJHbDTCY.js +307 -0
- package/components/CasinoTournamentsThumbnailPrizes-CuVL_zHr.js +307 -0
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
- package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
- package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
- package/stencil/index-b2193545-BOMvxBzV.js +519 -0
- package/stencil/index-b2193545-CFn9dM-v.js +503 -0
- package/stencil/index-b2193545-DPygl1Qn.cjs +1 -0
- package/stencil/{ui-image-ClXqMGwp.js → ui-image-3hy4ZvUC.js} +1 -1
- package/stencil/{ui-image-YphrYZtA.js → ui-image-D0wxuPze.js} +1 -1
- package/stencil/{ui-image-Db5QCSmt.cjs → ui-image-DE8MJHCZ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
- package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-U47XWOV2.js → ui-skeleton-1cb75d00-B-R8GbLJ.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-nmwFu55Y.cjs → ui-skeleton-1cb75d00-BTnhspbc.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-bf7NJcVF.js → ui-skeleton-1cb75d00-Dy30RNE6.js} +1 -1
- package/stencil/{ui-skeleton-DSlZCsjK.js → ui-skeleton-CVBjRUvi.js} +2 -2
- package/stencil/{ui-skeleton-P9Vv-0Vy.js → ui-skeleton-RkXNxPG1.js} +2 -2
- package/stencil/{ui-skeleton-DXCQ8Yoq.cjs → ui-skeleton-se83zfWh.cjs} +1 -1
- package/components/CasinoTournamentsListController-DuFdroc_.cjs +0 -28
- package/components/CasinoTournamentsThumbnailController-qI0rc-Ej.cjs +0 -3
- package/components/CasinoTournamentsThumbnailDuration-CfNd-_JR.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGamesSlider-BuvDMzWR.js +0 -443
- package/components/CasinoTournamentsThumbnailGamesSlider-CIcdSmKi.js +0 -443
- package/components/CasinoTournamentsThumbnailGamesSlider-DuLodhfq.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-BxVgCfCL.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-CIhSfxTp.js +0 -315
- package/components/CasinoTournamentsThumbnailPrizes-Cgv1iFmY.js +0 -315
- package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
- package/stencil/index-b2193545-C1ayEiG4.js +0 -503
- package/stencil/index-b2193545-CyidmLE0.cjs +0 -1
- package/stencil/index-b2193545-s3PsNboB.js +0 -519
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import { b as _e, S as be, i as ve, s as ke, f as T, c as Ne, n as R, d as G, g as W, j as N, l as Se, o as Te, G as Y, H as Fe, u as ne, I as L, F as K, h as b, J as Be, v as z, k as C, e as c, K as Pe, p as U, m as Me, w as Z, t as Ee, z as je, A as ze, B as Ae, C as He, D as Le } from "./CasinoTournamentsListController-DZAcldSI.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-CKIWWza3.js";
|
|
3
|
+
function Q(e, n) {
|
|
4
|
+
_e(e, n);
|
|
5
|
+
}
|
|
6
|
+
const V = {
|
|
7
|
+
en: {
|
|
8
|
+
playNow: "Play now"
|
|
9
|
+
},
|
|
10
|
+
hr: {
|
|
11
|
+
playNow: "Započni sada"
|
|
12
|
+
},
|
|
13
|
+
"zh-hk": {
|
|
14
|
+
playNow: "现在播放"
|
|
15
|
+
},
|
|
16
|
+
fr: {
|
|
17
|
+
playNow: "Joue maintenant"
|
|
18
|
+
},
|
|
19
|
+
ro: {
|
|
20
|
+
playNow: "Joaca acum"
|
|
21
|
+
},
|
|
22
|
+
tr: {
|
|
23
|
+
playNow: "Şimdi oyna"
|
|
24
|
+
},
|
|
25
|
+
el: {
|
|
26
|
+
playNow: "Παίξε τώρα"
|
|
27
|
+
},
|
|
28
|
+
es: {
|
|
29
|
+
playNow: "Jugar Ya"
|
|
30
|
+
},
|
|
31
|
+
pt: {
|
|
32
|
+
playNow: "Jogue agora"
|
|
33
|
+
},
|
|
34
|
+
"en-us": {
|
|
35
|
+
playNow: "Play now"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
function De(e) {
|
|
39
|
+
Ne(e, "svelte-xgd67c", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}");
|
|
40
|
+
}
|
|
41
|
+
function $(e, n, t) {
|
|
42
|
+
const a = e.slice();
|
|
43
|
+
return a[49] = n[t], a[51] = t, a;
|
|
44
|
+
}
|
|
45
|
+
function ee(e) {
|
|
46
|
+
let n, t, a, d, h, p, y, s, w, _, g = Y(
|
|
47
|
+
/*games*/
|
|
48
|
+
e[1]
|
|
49
|
+
), i = [];
|
|
50
|
+
for (let r = 0; r < g.length; r += 1)
|
|
51
|
+
i[r] = te($(e, g, r));
|
|
52
|
+
return {
|
|
53
|
+
c() {
|
|
54
|
+
n = N("div"), t = N("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a = C(), d = N("main"), h = N("div");
|
|
55
|
+
for (let r = 0; r < i.length; r += 1)
|
|
56
|
+
i[r].c();
|
|
57
|
+
y = C(), s = N("div"), s.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"), L(
|
|
58
|
+
t,
|
|
59
|
+
"disabled",
|
|
60
|
+
/*atStart*/
|
|
61
|
+
e[8]
|
|
62
|
+
), c(h, "class", "items"), c(h, "part", "items"), K(h, "transform", "translateX(" + /*offset*/
|
|
63
|
+
e[2] + "px)"), Pe(() => (
|
|
64
|
+
/*main_elementresize_handler*/
|
|
65
|
+
e[29].call(d)
|
|
66
|
+
)), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"), L(
|
|
67
|
+
s,
|
|
68
|
+
"disabled",
|
|
69
|
+
/*atEnd*/
|
|
70
|
+
e[9]
|
|
71
|
+
), c(n, "class", "TournamentsGamesSlider"), c(n, "part", "TournamentsGamesSlider");
|
|
72
|
+
},
|
|
73
|
+
m(r, m) {
|
|
74
|
+
W(r, n, m), b(n, t), b(n, a), b(n, d), b(d, h);
|
|
75
|
+
for (let u = 0; u < i.length; u += 1)
|
|
76
|
+
i[u] && i[u].m(h, null);
|
|
77
|
+
e[28](h), p = Be(
|
|
78
|
+
d,
|
|
79
|
+
/*main_elementresize_handler*/
|
|
80
|
+
e[29].bind(d)
|
|
81
|
+
), b(n, y), b(n, s), e[31](n), w || (_ = [
|
|
82
|
+
z(
|
|
83
|
+
t,
|
|
84
|
+
"click",
|
|
85
|
+
/*click_handler*/
|
|
86
|
+
e[24]
|
|
87
|
+
),
|
|
88
|
+
z(
|
|
89
|
+
s,
|
|
90
|
+
"click",
|
|
91
|
+
/*click_handler_2*/
|
|
92
|
+
e[30]
|
|
93
|
+
)
|
|
94
|
+
], w = !0);
|
|
95
|
+
},
|
|
96
|
+
p(r, m) {
|
|
97
|
+
if (m[0] & /*atStart*/
|
|
98
|
+
256 && L(
|
|
99
|
+
t,
|
|
100
|
+
"disabled",
|
|
101
|
+
/*atStart*/
|
|
102
|
+
r[8]
|
|
103
|
+
), m[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
|
|
104
|
+
23650) {
|
|
105
|
+
g = Y(
|
|
106
|
+
/*games*/
|
|
107
|
+
r[1]
|
|
108
|
+
);
|
|
109
|
+
let u;
|
|
110
|
+
for (u = 0; u < g.length; u += 1) {
|
|
111
|
+
const k = $(r, g, u);
|
|
112
|
+
i[u] ? i[u].p(k, m) : (i[u] = te(k), i[u].c(), i[u].m(h, null));
|
|
113
|
+
}
|
|
114
|
+
for (; u < i.length; u += 1)
|
|
115
|
+
i[u].d(1);
|
|
116
|
+
i.length = g.length;
|
|
117
|
+
}
|
|
118
|
+
m[0] & /*offset*/
|
|
119
|
+
4 && K(h, "transform", "translateX(" + /*offset*/
|
|
120
|
+
r[2] + "px)"), m[0] & /*atEnd*/
|
|
121
|
+
512 && L(
|
|
122
|
+
s,
|
|
123
|
+
"disabled",
|
|
124
|
+
/*atEnd*/
|
|
125
|
+
r[9]
|
|
126
|
+
);
|
|
127
|
+
},
|
|
128
|
+
d(r) {
|
|
129
|
+
r && G(n), Fe(i, r), e[28](null), p(), e[31](null), w = !1, ne(_);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function te(e) {
|
|
134
|
+
let n, t, a = (
|
|
135
|
+
/*$_*/
|
|
136
|
+
e[10]("playNow") + ""
|
|
137
|
+
), d, h, p, y, s, w, _, g, i, r, m;
|
|
138
|
+
function u() {
|
|
139
|
+
return (
|
|
140
|
+
/*click_handler_1*/
|
|
141
|
+
e[25](
|
|
142
|
+
/*game*/
|
|
143
|
+
e[49]
|
|
144
|
+
)
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function k() {
|
|
148
|
+
return (
|
|
149
|
+
/*mouseenter_handler*/
|
|
150
|
+
e[26](
|
|
151
|
+
/*i*/
|
|
152
|
+
e[51]
|
|
153
|
+
)
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
c() {
|
|
158
|
+
n = N("div"), t = N("span"), d = Ee(a), y = C(), s = N("img"), i = C(), c(t, "class", h = "PlayNowButton " + /*hover*/
|
|
159
|
+
(e[5] && /*hoverIndex*/
|
|
160
|
+
e[6] == /*i*/
|
|
161
|
+
e[51] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
162
|
+
(e[5] && /*hoverIndex*/
|
|
163
|
+
e[6] == /*i*/
|
|
164
|
+
e[51] ? "itemHover" : "")), Z(s.src, w = /*game*/
|
|
165
|
+
e[49].thumbnail) || c(s, "src", w), c(s, "width", "132px"), c(s, "height", "100px"), c(s, "alt", _ = /*game*/
|
|
166
|
+
e[49].name), c(s, "title", g = /*game*/
|
|
167
|
+
e[49].name), c(n, "class", "item"), c(n, "part", "item");
|
|
168
|
+
},
|
|
169
|
+
m(v, o) {
|
|
170
|
+
W(v, n, o), b(n, t), b(t, d), b(n, y), b(n, s), b(n, i), r || (m = [
|
|
171
|
+
z(n, "click", u),
|
|
172
|
+
z(n, "mouseenter", k),
|
|
173
|
+
z(
|
|
174
|
+
n,
|
|
175
|
+
"mouseleave",
|
|
176
|
+
/*mouseleave_handler*/
|
|
177
|
+
e[27]
|
|
178
|
+
)
|
|
179
|
+
], r = !0);
|
|
180
|
+
},
|
|
181
|
+
p(v, o) {
|
|
182
|
+
e = v, o[0] & /*$_*/
|
|
183
|
+
1024 && a !== (a = /*$_*/
|
|
184
|
+
e[10]("playNow") + "") && Me(d, a), o[0] & /*hover, hoverIndex*/
|
|
185
|
+
96 && h !== (h = "PlayNowButton " + /*hover*/
|
|
186
|
+
(e[5] && /*hoverIndex*/
|
|
187
|
+
e[6] == /*i*/
|
|
188
|
+
e[51] ? "itemHover" : "")) && c(t, "class", h), o[0] & /*hover, hoverIndex*/
|
|
189
|
+
96 && p !== (p = "PlayNowButton " + /*hover*/
|
|
190
|
+
(e[5] && /*hoverIndex*/
|
|
191
|
+
e[6] == /*i*/
|
|
192
|
+
e[51] ? "itemHover" : "")) && c(t, "part", p), o[0] & /*games*/
|
|
193
|
+
2 && !Z(s.src, w = /*game*/
|
|
194
|
+
e[49].thumbnail) && c(s, "src", w), o[0] & /*games*/
|
|
195
|
+
2 && _ !== (_ = /*game*/
|
|
196
|
+
e[49].name) && c(s, "alt", _), o[0] & /*games*/
|
|
197
|
+
2 && g !== (g = /*game*/
|
|
198
|
+
e[49].name) && c(s, "title", g);
|
|
199
|
+
},
|
|
200
|
+
d(v) {
|
|
201
|
+
v && G(n), r = !1, ne(m);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
function Ie(e) {
|
|
206
|
+
let n, t = (
|
|
207
|
+
/*games*/
|
|
208
|
+
e[1] && /*games*/
|
|
209
|
+
e[1].length > 0 && ee(e)
|
|
210
|
+
);
|
|
211
|
+
return {
|
|
212
|
+
c() {
|
|
213
|
+
n = N("div"), t && t.c();
|
|
214
|
+
},
|
|
215
|
+
m(a, d) {
|
|
216
|
+
W(a, n, d), t && t.m(n, null), e[32](n);
|
|
217
|
+
},
|
|
218
|
+
p(a, d) {
|
|
219
|
+
/*games*/
|
|
220
|
+
a[1] && /*games*/
|
|
221
|
+
a[1].length > 0 ? t ? t.p(a, d) : (t = ee(a), t.c(), t.m(n, null)) : t && (t.d(1), t = null);
|
|
222
|
+
},
|
|
223
|
+
i: R,
|
|
224
|
+
o: R,
|
|
225
|
+
d(a) {
|
|
226
|
+
a && G(n), t && t.d(), e[32](null);
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
let Ue = 30;
|
|
231
|
+
function Ge(e, n, t) {
|
|
232
|
+
let a, d, h;
|
|
233
|
+
Se(e, Le, (l) => t(10, h = l));
|
|
234
|
+
let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: g = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S, A = null, H = null, D = !1, I, P, M = 0, F;
|
|
235
|
+
const le = () => {
|
|
236
|
+
fetch(_).then((f) => f.json()).then((f) => {
|
|
237
|
+
Object.keys(f).forEach((j) => {
|
|
238
|
+
Q(j, f[j]);
|
|
239
|
+
});
|
|
240
|
+
}).catch((f) => {
|
|
241
|
+
console.log(f);
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
Object.keys(V).forEach((l) => {
|
|
245
|
+
Q(l, V[l]);
|
|
246
|
+
});
|
|
247
|
+
const q = (l) => {
|
|
248
|
+
t(5, D = !0), t(6, I = l);
|
|
249
|
+
}, J = () => {
|
|
250
|
+
t(5, D = !1), t(6, I = -1);
|
|
251
|
+
}, se = (l) => l.touches || l.originalEvent.touches, O = (l) => {
|
|
252
|
+
const f = se(l)[0];
|
|
253
|
+
A = f.clientX, H = f.clientY;
|
|
254
|
+
}, X = (l) => {
|
|
255
|
+
if (!A || !H)
|
|
256
|
+
return;
|
|
257
|
+
let f = l.touches[0].clientX, j = l.touches[0].clientY, B = A - f, we = H - j;
|
|
258
|
+
Math.abs(B) > Math.abs(we) && (B > 0 ? E(1) : E(-1)), A = null, H = null;
|
|
259
|
+
}, E = (l) => {
|
|
260
|
+
l > 0 && !d ? (t(2, o -= k), t(2, o = o < M ? M : o)) : l < 0 && !a && (t(2, o += k), t(2, o = o > 0 ? 0 : o));
|
|
261
|
+
}, x = (l) => {
|
|
262
|
+
window.postMessage(
|
|
263
|
+
{
|
|
264
|
+
type: "TournamentGameAction",
|
|
265
|
+
gameId: l.id,
|
|
266
|
+
name: l.name,
|
|
267
|
+
launchUrl: l.launchUrl
|
|
268
|
+
},
|
|
269
|
+
window.location.href
|
|
270
|
+
);
|
|
271
|
+
}, re = () => {
|
|
272
|
+
let l = new URL(p), f = new Headers();
|
|
273
|
+
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform", Ce(u)), fetch(l, { method: "GET", headers: f }).then((B) => B.json()).then((B) => {
|
|
274
|
+
t(1, v = B.item.games.items), B.item.games.total;
|
|
275
|
+
});
|
|
276
|
+
}, ae = () => {
|
|
277
|
+
S.addEventListener("touchstart", O, { passive: !0 }), S.addEventListener("touchmove", X, { passive: !0 });
|
|
278
|
+
}, ie = () => {
|
|
279
|
+
setTimeout(
|
|
280
|
+
() => {
|
|
281
|
+
t(23, M = (P.scrollWidth - P.clientWidth) * -1), t(16, s = new String(P.scrollWidth / v.length)), k = parseInt(y, 10) * parseFloat(s, 2).toFixed(2);
|
|
282
|
+
},
|
|
283
|
+
1e3
|
|
284
|
+
);
|
|
285
|
+
}, oe = () => {
|
|
286
|
+
F > 0 && F < Math.floor((parseInt(y) + 1) * s) && t(15, y = Math.ceil(F / s).toString());
|
|
287
|
+
};
|
|
288
|
+
Te(() => (k = parseInt(y, 10) * parseInt(s, 10), () => {
|
|
289
|
+
S.removeEventListener("touchstart", O), S.removeEventListener("touchmove", X);
|
|
290
|
+
}));
|
|
291
|
+
const ce = () => E(-1), ue = (l) => x(l), me = (l) => q(l), de = () => J();
|
|
292
|
+
function he(l) {
|
|
293
|
+
U[l ? "unshift" : "push"](() => {
|
|
294
|
+
P = l, t(7, P);
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
function ge() {
|
|
298
|
+
F = this.clientWidth, t(4, F);
|
|
299
|
+
}
|
|
300
|
+
const fe = () => E(1);
|
|
301
|
+
function pe(l) {
|
|
302
|
+
U[l ? "unshift" : "push"](() => {
|
|
303
|
+
S = l, t(3, S);
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
function ye(l) {
|
|
307
|
+
U[l ? "unshift" : "push"](() => {
|
|
308
|
+
m = l, t(0, m);
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
return e.$$set = (l) => {
|
|
312
|
+
"tournamenturl" in l && t(17, p = l.tournamenturl), "scrollby" in l && t(15, y = l.scrollby), "pagfactor" in l && t(16, s = l.pagfactor), "lang" in l && t(18, w = l.lang), "translationurl" in l && t(19, _ = l.translationurl), "clientstyling" in l && t(20, g = l.clientstyling), "clientstylingurl" in l && t(21, i = l.clientstylingurl), "mbsource" in l && t(22, r = l.mbsource);
|
|
313
|
+
}, e.$$.update = () => {
|
|
314
|
+
e.$$.dirty[0] & /*offset*/
|
|
315
|
+
4 && t(8, a = o === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
316
|
+
8388612 && t(9, d = o <= M), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
317
|
+
16 && F && oe(), e.$$.dirty[0] & /*tournamenturl*/
|
|
318
|
+
131072 && p && re(), e.$$.dirty[0] & /*slider*/
|
|
319
|
+
8 && S && ae(), e.$$.dirty[0] & /*translationurl*/
|
|
320
|
+
524288 && _ && le(), e.$$.dirty[0] & /*games*/
|
|
321
|
+
2 && v.length && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
322
|
+
1048577 && g && m && je(m, g), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
323
|
+
2097153 && i && m && ze(m, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
324
|
+
4194305 && r && m && Ae(m, `${r}.Style`);
|
|
325
|
+
}, t(2, o = 0), [
|
|
326
|
+
m,
|
|
327
|
+
v,
|
|
328
|
+
o,
|
|
329
|
+
S,
|
|
330
|
+
F,
|
|
331
|
+
D,
|
|
332
|
+
I,
|
|
333
|
+
P,
|
|
334
|
+
a,
|
|
335
|
+
d,
|
|
336
|
+
h,
|
|
337
|
+
q,
|
|
338
|
+
J,
|
|
339
|
+
E,
|
|
340
|
+
x,
|
|
341
|
+
y,
|
|
342
|
+
s,
|
|
343
|
+
p,
|
|
344
|
+
w,
|
|
345
|
+
_,
|
|
346
|
+
g,
|
|
347
|
+
i,
|
|
348
|
+
r,
|
|
349
|
+
M,
|
|
350
|
+
ce,
|
|
351
|
+
ue,
|
|
352
|
+
me,
|
|
353
|
+
de,
|
|
354
|
+
he,
|
|
355
|
+
ge,
|
|
356
|
+
fe,
|
|
357
|
+
pe,
|
|
358
|
+
ye
|
|
359
|
+
];
|
|
360
|
+
}
|
|
361
|
+
class We extends be {
|
|
362
|
+
constructor(n) {
|
|
363
|
+
super(), ve(
|
|
364
|
+
this,
|
|
365
|
+
n,
|
|
366
|
+
Ge,
|
|
367
|
+
Ie,
|
|
368
|
+
ke,
|
|
369
|
+
{
|
|
370
|
+
tournamenturl: 17,
|
|
371
|
+
scrollby: 15,
|
|
372
|
+
pagfactor: 16,
|
|
373
|
+
lang: 18,
|
|
374
|
+
translationurl: 19,
|
|
375
|
+
clientstyling: 20,
|
|
376
|
+
clientstylingurl: 21,
|
|
377
|
+
mbsource: 22
|
|
378
|
+
},
|
|
379
|
+
De,
|
|
380
|
+
[-1, -1]
|
|
381
|
+
);
|
|
382
|
+
}
|
|
383
|
+
get tournamenturl() {
|
|
384
|
+
return this.$$.ctx[17];
|
|
385
|
+
}
|
|
386
|
+
set tournamenturl(n) {
|
|
387
|
+
this.$$set({ tournamenturl: n }), T();
|
|
388
|
+
}
|
|
389
|
+
get scrollby() {
|
|
390
|
+
return this.$$.ctx[15];
|
|
391
|
+
}
|
|
392
|
+
set scrollby(n) {
|
|
393
|
+
this.$$set({ scrollby: n }), T();
|
|
394
|
+
}
|
|
395
|
+
get pagfactor() {
|
|
396
|
+
return this.$$.ctx[16];
|
|
397
|
+
}
|
|
398
|
+
set pagfactor(n) {
|
|
399
|
+
this.$$set({ pagfactor: n }), T();
|
|
400
|
+
}
|
|
401
|
+
get lang() {
|
|
402
|
+
return this.$$.ctx[18];
|
|
403
|
+
}
|
|
404
|
+
set lang(n) {
|
|
405
|
+
this.$$set({ lang: n }), T();
|
|
406
|
+
}
|
|
407
|
+
get translationurl() {
|
|
408
|
+
return this.$$.ctx[19];
|
|
409
|
+
}
|
|
410
|
+
set translationurl(n) {
|
|
411
|
+
this.$$set({ translationurl: n }), T();
|
|
412
|
+
}
|
|
413
|
+
get clientstyling() {
|
|
414
|
+
return this.$$.ctx[20];
|
|
415
|
+
}
|
|
416
|
+
set clientstyling(n) {
|
|
417
|
+
this.$$set({ clientstyling: n }), T();
|
|
418
|
+
}
|
|
419
|
+
get clientstylingurl() {
|
|
420
|
+
return this.$$.ctx[21];
|
|
421
|
+
}
|
|
422
|
+
set clientstylingurl(n) {
|
|
423
|
+
this.$$set({ clientstylingurl: n }), T();
|
|
424
|
+
}
|
|
425
|
+
get mbsource() {
|
|
426
|
+
return this.$$.ctx[22];
|
|
427
|
+
}
|
|
428
|
+
set mbsource(n) {
|
|
429
|
+
this.$$set({ mbsource: n }), T();
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
He(We, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
433
|
+
export {
|
|
434
|
+
We as default
|
|
435
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-CLH2CE8z.cjs");function _(l,t){e.addMessages(l,t)}const y={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 k(l){e.append_styles(l,"svelte-1bsrm1d","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}")}function P(l,t,n){const i=l.slice();return i[12]=t[n],i[14]=n,i}function b(l){let t,n=e.ensure_array_like(l[1]),i=[];for(let r=0;r<n.length;r+=1)i[r]=w(P(l,n,r));let a=null;return n.length||(a=v(l)),{c(){t=e.element("div");for(let r=0;r<i.length;r+=1)i[r].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(r,c){e.insert(r,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(r,c){if(c&6){n=e.ensure_array_like(r[1]);let s;for(s=0;s<n.length;s+=1){const d=P(r,n,s);i[s]?i[s].p(d,c):(i[s]=w(d),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(r,c):n.length?a&&(a.d(1),a=null):(a=v(r),a.c(),a.m(t,null))}},d(r){r&&e.detach(t),e.destroy_each(i,r),a&&a.d()}}}function v(l){let t,n=l[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,r){e.insert(a,t,r),e.append(t,i)},p(a,r){r&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function w(l){let t,n,i,a=(l[12].count>1?`${l[12].rank}~${l[12].rank+l[12].count-1}`:l[12].rank)+"",r,c,s=l[2]("place")+"",d,p,u=l[12].name+"",f,g;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),r=e.text(a),c=e.space(),d=e.text(s),p=e.text(": "),f=e.text(u),g=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"+l[14]),e.attr(t,"part","Prize Prize"+l[14])},m(m,o){e.insert(m,t,o),e.append(t,n),e.append(n,i),e.append(i,r),e.append(n,c),e.append(n,d),e.append(n,p),e.append(n,f),e.append(t,g)},p(m,o){o&2&&a!==(a=(m[12].count>1?`${m[12].rank}~${m[12].rank+m[12].count-1}`:m[12].rank)+"")&&e.set_data(r,a),o&4&&s!==(s=m[2]("place")+"")&&e.set_data(d,s),o&2&&u!==(u=m[12].name+"")&&e.set_data(f,u)},d(m){m&&e.detach(t)}}}function S(l){let t,n,i,a,r,c=l[2]("prizes")+"",s,d,p=l[1]&&b(l);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(),r=e.element("p"),s=e.text(c),d=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(r,"class","PrizesTitle"),e.attr(r,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(u,f){e.insert(u,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,r),e.append(r,s),e.append(t,d),p&&p.m(t,null),l[8](t)},p(u,[f]){f&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(s,c),u[1]?p?p.p(u,f):(p=b(u),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),p&&p.d(),l[8](null)}}}function F(l,t,n){let i;e.component_subscribe(l,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,{mbsource:d}=t,p,u;const f=()=>{fetch(s).then(h=>h.json()).then(h=>{Object.keys(h).forEach(z=>{_(z,h[z])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(o=>{_(o,y[o])});const g=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,u=o.data.prizes)};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function m(o){e.binding_callbacks[o?"unshift":"push"](()=>{p=o,n(0,p)})}return l.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,r=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl),"mbsource"in o&&n(7,d=o.mbsource)},l.$$.update=()=>{l.$$.dirty&17&&r&&p&&e.setClientStyling(p,r),l.$$.dirty&33&&c&&p&&e.setClientStylingURL(p,c),l.$$.dirty&129&&d&&p&&e.setStreamStyling(p,`${d}.Style`),l.$$.dirty&64&&s&&f()},[p,u,i,a,r,c,s,d,m]}class T extends e.SvelteComponent{constructor(t){super(),e.init(this,t,F,S,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6,mbsource:7},k)}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()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(T,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=T;
|