@everymatrix/casino-tournaments-list-controller 1.56.0 → 1.56.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/CasinoTournamentsListController-C-bVKhDo.cjs +28 -0
- package/components/{CasinoTournamentsListController-Be9H9tuV.js → CasinoTournamentsListController-ClNoaguG.js} +2206 -2230
- package/components/{CasinoTournamentsListController-biY7QiD5.js → CasinoTournamentsListController-DKc3JGbs.js} +2154 -2178
- package/components/{CasinoTournamentsThumbnail-SkT9VJbu.cjs → CasinoTournamentsThumbnail-CdyLHB3q.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-JVqrwB6W.js → CasinoTournamentsThumbnail-D8e-nXOD.js} +26 -26
- package/components/{CasinoTournamentsThumbnail-DB9S5Fny.js → CasinoTournamentsThumbnail-IxiD4b-e.js} +26 -26
- package/components/{CasinoTournamentsThumbnailController-qOaEDVyk.js → CasinoTournamentsThumbnailController-BcYNLikE.js} +361 -333
- package/components/{CasinoTournamentsThumbnailController-DMScLtGY.js → CasinoTournamentsThumbnailController-D49NZQP2.js} +438 -410
- package/components/CasinoTournamentsThumbnailController-DY-Ayiwy.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailDuration-BrH76kr7.js → CasinoTournamentsThumbnailDuration-BLgft2Tq.js} +43 -39
- package/components/{CasinoTournamentsThumbnailDuration-MghJsKBF.cjs → CasinoTournamentsThumbnailDuration-DAU985Oj.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-kT7eIls_.js → CasinoTournamentsThumbnailDuration-uc0cz4mz.js} +43 -39
- package/components/{CasinoTournamentsThumbnailGamesSlider-L13reqxM.cjs → CasinoTournamentsThumbnailGamesSlider-BYiStSlZ.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-C1s05Puk.js → CasinoTournamentsThumbnailGamesSlider-CMh0bAxQ.js} +40 -39
- package/components/{CasinoTournamentsThumbnailGamesSlider-DXjEb31T.js → CasinoTournamentsThumbnailGamesSlider-DyN75Aab.js} +40 -39
- package/components/{CasinoTournamentsThumbnailPrizes-CqHeg4IE.js → CasinoTournamentsThumbnailPrizes-BP5XEe6I.js} +43 -43
- package/components/{CasinoTournamentsThumbnailPrizes-o3k0uvpO.js → CasinoTournamentsThumbnailPrizes-DbXoL6RT.js} +43 -43
- package/components/{CasinoTournamentsThumbnailPrizes-PGRcOqE8.cjs → CasinoTournamentsThumbnailPrizes-DqgnwAS4.cjs} +1 -1
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsListController-BYc-oNXJ.cjs +0 -15
- package/components/CasinoTournamentsThumbnailController-Ya6dWlsm.cjs +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as K, S as Y, i as Z,
|
|
1
|
+
import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, g as l, h as T, n as U, l as B, m as X, o as $, t as E, d as L, j as m, p as tt, k as M, w as et, x as N, y as nt } from "./CasinoTournamentsListController-ClNoaguG.js";
|
|
2
2
|
function O(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
@@ -93,7 +93,7 @@ const x = {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
function it(i) {
|
|
96
|
-
|
|
96
|
+
V(i, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
97
97
|
}
|
|
98
98
|
function A(i) {
|
|
99
99
|
let t, e, s = (
|
|
@@ -127,23 +127,26 @@ function A(i) {
|
|
|
127
127
|
r[2] == "Finished" || /*status*/
|
|
128
128
|
r[2] == "Closing" || /*status*/
|
|
129
129
|
r[2] == "Closed"
|
|
130
|
-
)
|
|
130
|
+
)
|
|
131
|
+
return ut;
|
|
131
132
|
if (
|
|
132
133
|
/*tournamentUntilStartDays*/
|
|
133
134
|
r[5] > 0
|
|
134
|
-
)
|
|
135
|
+
)
|
|
136
|
+
return ot;
|
|
135
137
|
if (
|
|
136
138
|
/*tournamentLeftDays*/
|
|
137
139
|
r[4] > 0
|
|
138
|
-
)
|
|
140
|
+
)
|
|
141
|
+
return lt;
|
|
139
142
|
}
|
|
140
143
|
let k = R(i), f = k && k(i);
|
|
141
144
|
return {
|
|
142
145
|
c() {
|
|
143
|
-
t = v("div"), e = v("div"), a =
|
|
146
|
+
t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), h = v("div"), y.c(), D = L(), f && f.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(h, "class", "ProgressBar"), l(h, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
|
|
144
147
|
},
|
|
145
148
|
m(r, b) {
|
|
146
|
-
|
|
149
|
+
T(r, t, b), m(t, e), m(e, a), m(t, u), m(t, o), m(o, g), T(r, S, b), T(r, p, b), m(p, h), y.m(h, null), m(h, D), f && f.m(h, null), F || (j = tt(
|
|
147
150
|
/*getDuration*/
|
|
148
151
|
i[9].call(null, p)
|
|
149
152
|
), F = !0);
|
|
@@ -154,15 +157,15 @@ function A(i) {
|
|
|
154
157
|
r[10](
|
|
155
158
|
/*startdate*/
|
|
156
159
|
r[0]
|
|
157
|
-
) + "") &&
|
|
160
|
+
) + "") && M(a, s), b & /*enddate*/
|
|
158
161
|
2 && d !== (d = /*formatDate*/
|
|
159
162
|
r[10](
|
|
160
163
|
/*enddate*/
|
|
161
164
|
r[1]
|
|
162
|
-
) + "") &&
|
|
165
|
+
) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(h, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(h, null)));
|
|
163
166
|
},
|
|
164
167
|
d(r) {
|
|
165
|
-
r && (
|
|
168
|
+
r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
|
|
166
169
|
}
|
|
167
170
|
};
|
|
168
171
|
}
|
|
@@ -178,7 +181,7 @@ function st(i) {
|
|
|
178
181
|
);
|
|
179
182
|
},
|
|
180
183
|
m(e, s) {
|
|
181
|
-
|
|
184
|
+
T(e, t, s);
|
|
182
185
|
},
|
|
183
186
|
p(e, s) {
|
|
184
187
|
s & /*getProgress*/
|
|
@@ -190,7 +193,7 @@ function st(i) {
|
|
|
190
193
|
);
|
|
191
194
|
},
|
|
192
195
|
d(e) {
|
|
193
|
-
e &&
|
|
196
|
+
e && B(t);
|
|
194
197
|
}
|
|
195
198
|
};
|
|
196
199
|
}
|
|
@@ -201,11 +204,11 @@ function rt(i) {
|
|
|
201
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
202
205
|
},
|
|
203
206
|
m(e, s) {
|
|
204
|
-
|
|
207
|
+
T(e, t, s);
|
|
205
208
|
},
|
|
206
209
|
p: U,
|
|
207
210
|
d(e) {
|
|
208
|
-
e &&
|
|
211
|
+
e && B(t);
|
|
209
212
|
}
|
|
210
213
|
};
|
|
211
214
|
}
|
|
@@ -216,11 +219,11 @@ function at(i) {
|
|
|
216
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
217
220
|
},
|
|
218
221
|
m(e, s) {
|
|
219
|
-
|
|
222
|
+
T(e, t, s);
|
|
220
223
|
},
|
|
221
224
|
p: U,
|
|
222
225
|
d(e) {
|
|
223
|
-
e &&
|
|
226
|
+
e && B(t);
|
|
224
227
|
}
|
|
225
228
|
};
|
|
226
229
|
}
|
|
@@ -231,26 +234,26 @@ function lt(i) {
|
|
|
231
234
|
), u;
|
|
232
235
|
return {
|
|
233
236
|
c() {
|
|
234
|
-
t = v("div"), e =
|
|
237
|
+
t = v("div"), e = E(
|
|
235
238
|
/*showRemain*/
|
|
236
239
|
i[6]
|
|
237
|
-
), s = L(), u =
|
|
240
|
+
), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
238
241
|
},
|
|
239
242
|
m(o, d) {
|
|
240
|
-
|
|
243
|
+
T(o, t, d), m(t, e), m(t, s), m(t, u);
|
|
241
244
|
},
|
|
242
245
|
p(o, d) {
|
|
243
246
|
d & /*showRemain*/
|
|
244
|
-
64 &&
|
|
247
|
+
64 && M(
|
|
245
248
|
e,
|
|
246
249
|
/*showRemain*/
|
|
247
250
|
o[6]
|
|
248
251
|
), d & /*$_*/
|
|
249
252
|
256 && a !== (a = /*$_*/
|
|
250
|
-
o[8]("left") + "") &&
|
|
253
|
+
o[8]("left") + "") && M(u, a);
|
|
251
254
|
},
|
|
252
255
|
d(o) {
|
|
253
|
-
o &&
|
|
256
|
+
o && B(t);
|
|
254
257
|
}
|
|
255
258
|
};
|
|
256
259
|
}
|
|
@@ -267,23 +270,23 @@ function ot(i) {
|
|
|
267
270
|
), o;
|
|
268
271
|
return {
|
|
269
272
|
c() {
|
|
270
|
-
t = v("div"), s =
|
|
273
|
+
t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
271
274
|
},
|
|
272
275
|
m(d, g) {
|
|
273
|
-
|
|
276
|
+
T(d, t, g), m(t, s), m(t, a), m(t, o);
|
|
274
277
|
},
|
|
275
278
|
p(d, g) {
|
|
276
279
|
g & /*$_*/
|
|
277
280
|
256 && e !== (e = /*$_*/
|
|
278
|
-
d[8]("starting") + "") &&
|
|
281
|
+
d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
|
|
279
282
|
32 && u !== (u = /*getTextByDiff*/
|
|
280
283
|
d[11](
|
|
281
284
|
/*tournamentUntilStartDays*/
|
|
282
285
|
d[5]
|
|
283
|
-
) + "") &&
|
|
286
|
+
) + "") && M(o, u);
|
|
284
287
|
},
|
|
285
288
|
d(d) {
|
|
286
|
-
d &&
|
|
289
|
+
d && B(t);
|
|
287
290
|
}
|
|
288
291
|
};
|
|
289
292
|
}
|
|
@@ -294,18 +297,18 @@ function ut(i) {
|
|
|
294
297
|
), s;
|
|
295
298
|
return {
|
|
296
299
|
c() {
|
|
297
|
-
t = v("div"), s =
|
|
300
|
+
t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
298
301
|
},
|
|
299
302
|
m(a, u) {
|
|
300
|
-
|
|
303
|
+
T(a, t, u), m(t, s);
|
|
301
304
|
},
|
|
302
305
|
p(a, u) {
|
|
303
306
|
u & /*$_*/
|
|
304
307
|
256 && e !== (e = /*$_*/
|
|
305
|
-
a[8]("finished") + "") &&
|
|
308
|
+
a[8]("finished") + "") && M(s, e);
|
|
306
309
|
},
|
|
307
310
|
d(a) {
|
|
308
|
-
a &&
|
|
311
|
+
a && B(t);
|
|
309
312
|
}
|
|
310
313
|
};
|
|
311
314
|
}
|
|
@@ -320,7 +323,7 @@ function dt(i) {
|
|
|
320
323
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
321
324
|
},
|
|
322
325
|
m(s, a) {
|
|
323
|
-
|
|
326
|
+
T(s, t, a), e && e.m(t, null), i[16](t);
|
|
324
327
|
},
|
|
325
328
|
p(s, [a]) {
|
|
326
329
|
/*startdate*/
|
|
@@ -330,13 +333,13 @@ function dt(i) {
|
|
|
330
333
|
i: U,
|
|
331
334
|
o: U,
|
|
332
335
|
d(s) {
|
|
333
|
-
s &&
|
|
336
|
+
s && B(t), e && e.d(), i[16](null);
|
|
334
337
|
}
|
|
335
338
|
};
|
|
336
339
|
}
|
|
337
340
|
function ct(i, t, e) {
|
|
338
341
|
let s, a;
|
|
339
|
-
|
|
342
|
+
X(i, nt, (n) => e(8, a = n));
|
|
340
343
|
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: h = "" } = t, D, F = "", j = "", I = "";
|
|
341
344
|
const z = () => {
|
|
342
345
|
fetch(h).then((c) => c.json()).then((c) => {
|
|
@@ -385,7 +388,7 @@ function ct(i, t, e) {
|
|
|
385
388
|
);
|
|
386
389
|
});
|
|
387
390
|
};
|
|
388
|
-
|
|
391
|
+
$(() => {
|
|
389
392
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
390
393
|
const n = setInterval(
|
|
391
394
|
() => {
|
|
@@ -396,7 +399,7 @@ function ct(i, t, e) {
|
|
|
396
399
|
return () => clearInterval(n);
|
|
397
400
|
});
|
|
398
401
|
function q(n) {
|
|
399
|
-
|
|
402
|
+
et[n ? "unshift" : "push"](() => {
|
|
400
403
|
D = n, e(3, D);
|
|
401
404
|
});
|
|
402
405
|
}
|
|
@@ -405,7 +408,8 @@ function ct(i, t, e) {
|
|
|
405
408
|
}, i.$$.update = () => {
|
|
406
409
|
i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
407
410
|
19 && e(7, s = () => {
|
|
408
|
-
if (F <= 0)
|
|
411
|
+
if (F <= 0)
|
|
412
|
+
return 100;
|
|
409
413
|
const n = R(u, o), c = 100 / n;
|
|
410
414
|
return Math.floor((n - F) * c);
|
|
411
415
|
}), i.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
@@ -442,7 +446,7 @@ class ft extends Y {
|
|
|
442
446
|
t,
|
|
443
447
|
ct,
|
|
444
448
|
dt,
|
|
445
|
-
|
|
449
|
+
Q,
|
|
446
450
|
{
|
|
447
451
|
startdate: 0,
|
|
448
452
|
enddate: 1,
|
|
@@ -498,7 +502,7 @@ class ft extends Y {
|
|
|
498
502
|
this.$$set({ translationurl: t }), C();
|
|
499
503
|
}
|
|
500
504
|
}
|
|
501
|
-
|
|
505
|
+
J(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
502
506
|
export {
|
|
503
507
|
ft as default
|
|
504
508
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-C-bVKhDo.cjs"),ie=require("./CasinoTournamentsThumbnailController-DY-Ayiwy.cjs");function U(t,r){e.addMessages(t,r)}const q={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"},"en-us":{playNow:"Play now"}};function oe(t){e.append_styles(t,"svelte-xgd67c","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}")}function D(t,r,n){const i=t.slice();return i[50]=r[n],i[52]=n,i}function I(t){let r,n,i,d,m,p,_,s,y,w,g=e.ensure_array_like(t[1]),c=[];for(let a=0;a<g.length;a+=1)c[a]=W(D(t,g,a));return{c(){r=e.element("div"),n=e.element("div"),n.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=e.space(),d=e.element("main"),m=e.element("div");for(let a=0;a<c.length;a+=1)c[a].c();_=e.space(),s=e.element("div"),s.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(m,"class","items"),e.attr(m,"part","items"),e.set_style(m,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[28].call(d)),e.attr(s,"class","SliderNavButton"),e.attr(s,"part","SliderNavButton"),e.toggle_class(s,"disabled",t[9]),e.attr(r,"class","TournamentsGamesSlider"),e.attr(r,"part","TournamentsGamesSlider")},m(a,b){e.insert(a,r,b),e.append(r,n),e.append(r,i),e.append(r,d),e.append(d,m);for(let o=0;o<c.length;o+=1)c[o]&&c[o].m(m,null);t[27](m),p=e.add_iframe_resize_listener(d,t[28].bind(d)),e.append(r,_),e.append(r,s),t[30](r),y||(w=[e.listen(n,"click",t[23]),e.listen(s,"click",t[29])],y=!0)},p(a,b){if(b[0]&256&&e.toggle_class(n,"disabled",a[8]),b[0]&23650){g=e.ensure_array_like(a[1]);let o;for(o=0;o<g.length;o+=1){const v=D(a,g,o);c[o]?c[o].p(v,b):(c[o]=W(v),c[o].c(),c[o].m(m,null))}for(;o<c.length;o+=1)c[o].d(1);c.length=g.length}b[0]&4&&e.set_style(m,"transform","translateX("+a[2]+"px)"),b[0]&512&&e.toggle_class(s,"disabled",a[9])},d(a){a&&e.detach(r),e.destroy_each(c,a),t[27](null),p(),t[30](null),y=!1,e.run_all(w)}}}function W(t){let r,n,i=t[10]("playNow")+"",d,m,p,_,s,y,w,g,c,a,b;function o(){return t[24](t[50])}function v(){return t[25](t[52])}return{c(){r=e.element("div"),n=e.element("span"),d=e.text(i),_=e.space(),s=e.element("img"),c=e.space(),e.attr(n,"class",m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.attr(n,"part",p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.src_url_equal(s.src,y=t[50].thumbnail)||e.attr(s,"src",y),e.attr(s,"width","132px"),e.attr(s,"height","100px"),e.attr(s,"alt",w=t[50].name),e.attr(s,"title",g=t[50].name),e.attr(r,"class","item"),e.attr(r,"part","item")},m(u,h){e.insert(u,r,h),e.append(r,n),e.append(n,d),e.append(r,_),e.append(r,s),e.append(r,c),a||(b=[e.listen(r,"click",o),e.listen(r,"mouseenter",v),e.listen(r,"mouseleave",t[26])],a=!0)},p(u,h){t=u,h[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),h[0]&96&&m!==(m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"class",m),h[0]&96&&p!==(p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"part",p),h[0]&2&&!e.src_url_equal(s.src,y=t[50].thumbnail)&&e.attr(s,"src",y),h[0]&2&&w!==(w=t[50].name)&&e.attr(s,"alt",w),h[0]&2&&g!==(g=t[50].name)&&e.attr(s,"title",g)},d(u){u&&e.detach(r),a=!1,e.run_all(b)}}}function ce(t){let r,n=t[1]&&t[1].length>0&&I(t);return{c(){r=e.element("div"),n&&n.c()},m(i,d){e.insert(i,r,d),n&&n.m(r,null),t[31](r)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=I(i),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(r),n&&n.d(),t[31](null)}}}let ue=30;function de(t,r,n){let i,d,m;e.component_subscribe(t,e.$format,l=>n(10,m=l));let{tournamenturl:p=""}=r,{scrollby:_="3"}=r,{pagfactor:s="175"}=r,{lang:y=""}=r,{translationurl:w=""}=r,{clientstyling:g=""}=r,{clientstylingurl:c=""}=r,a,b=window.navigator.userAgent,o,v=[],u=0,h,P=null,B=null,C=!1,E,S,M=0,N;const O=()=>{fetch(w).then(f=>f.json()).then(f=>{Object.keys(f).forEach(k=>{U(k,f[k])})}).catch(f=>{console.log(f)})};Object.keys(q).forEach(l=>{U(l,q[l])});const L=l=>{n(5,C=!0),n(6,E=l)},j=()=>{n(5,C=!1),n(6,E=-1)},R=l=>l.touches||l.originalEvent.touches,H=l=>{const f=R(l)[0];P=f.clientX,B=f.clientY},z=l=>{if(!P||!B)return;let f=l.touches[0].clientX,k=l.touches[0].clientY,T=P-f,se=B-k;Math.abs(T)>Math.abs(se)&&(T>0?F(1):F(-1)),P=null,B=null},F=l=>{l>0&&!d?(n(2,u-=o),n(2,u=u<M?M:u)):l<0&&!i&&(n(2,u+=o),n(2,u=u>0?0:u))},A=l=>{window.postMessage({type:"TournamentGameAction",gameId:l.id,name:l.name,launchUrl:l.launchUrl},window.location.href)},X=()=>{let l=new URL(p),f=new Headers;l.searchParams.append("expand","games"),l.searchParams.append("pagination",`games(limit=${ue},offset=${u})`),l.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),l.searchParams.append("language",y),l.searchParams.append("platform",ie.getDevice(b)),fetch(l,{method:"GET",headers:f}).then(T=>T.json()).then(T=>{n(1,v=T.item.games.items),T.item.games.total})},J=()=>{h.addEventListener("touchstart",H,{passive:!0}),h.addEventListener("touchmove",z,{passive:!0})},x=()=>{setTimeout(()=>{n(22,M=(S.scrollWidth-S.clientWidth)*-1),n(16,s=new String(S.scrollWidth/v.length)),o=parseInt(_,10)*parseFloat(s,2).toFixed(2)},1e3)},Y=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},Z=()=>{let l=new URL(c),f=document.createElement("style");fetch(l.href).then(k=>k.text()).then(k=>{f.innerHTML=k,setTimeout(()=>{a.appendChild(f)},1),setTimeout(()=>{},500)})},K=()=>{N>0&&N<Math.floor((parseInt(_)+1)*s)&&n(15,_=Math.ceil(N/s).toString())};e.onMount(()=>(o=parseInt(_,10)*parseInt(s,10),()=>{h.removeEventListener("touchstart",H),h.removeEventListener("touchmove",z)}));const Q=()=>F(-1),V=l=>A(l),$=l=>L(l),ee=()=>j();function te(l){e.binding_callbacks[l?"unshift":"push"](()=>{S=l,n(7,S)})}function ne(){N=this.clientWidth,n(4,N)}const le=()=>F(1);function re(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,n(3,h)})}function ae(l){e.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(0,a)})}return t.$$set=l=>{"tournamenturl"in l&&n(17,p=l.tournamenturl),"scrollby"in l&&n(15,_=l.scrollby),"pagfactor"in l&&n(16,s=l.pagfactor),"lang"in l&&n(18,y=l.lang),"translationurl"in l&&n(19,w=l.translationurl),"clientstyling"in l&&n(20,g=l.clientstyling),"clientstylingurl"in l&&n(21,c=l.clientstylingurl)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=u===0),t.$$.dirty[0]&4194308&&n(9,d=u<=M),t.$$.dirty[0]&16&&N&&K(),t.$$.dirty[0]&131072&&p&&X(),t.$$.dirty[0]&8&&h&&J(),t.$$.dirty[0]&524288&&w&&O(),t.$$.dirty[0]&2&&v.length&&x(),t.$$.dirty[0]&1048577&&g&&a&&Y(),t.$$.dirty[0]&2097153&&c&&a&&Z()},n(2,u=0),[a,v,u,h,N,C,E,S,i,d,m,L,j,F,A,_,s,p,y,w,g,c,M,Q,V,$,ee,te,ne,le,re,ae]}class G extends e.SvelteComponent{constructor(r){super(),e.init(this,r,de,ce,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},oe,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(r){this.$$set({tournamenturl:r}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(r){this.$$set({scrollby:r}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(r){this.$$set({pagfactor:r}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(r){this.$$set({lang:r}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(r){this.$$set({translationurl:r}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(r){this.$$set({clientstyling:r}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),e.flush()}}e.create_custom_element(G,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=G;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke,
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { a as be, S as ve, i as ke, f as M, c as Ne, s as Se, b as Te, e as S, h as D, n as R, l as G, m as Fe, o as Me, F as X, d as z, g as c, G as C, x as Y, H as Pe, j as v, I as Be, u as L, J as Ee, v as te, t as Le, K, k as He, w as I, y as je } from "./CasinoTournamentsListController-ClNoaguG.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-BcYNLikE.js";
|
|
3
3
|
function Z(e, l) {
|
|
4
4
|
be(e, l);
|
|
5
5
|
}
|
|
@@ -36,14 +36,14 @@ const Q = {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
function ze(e) {
|
|
39
|
-
|
|
39
|
+
Te(e, "svelte-xgd67c", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}");
|
|
40
40
|
}
|
|
41
41
|
function V(e, l, t) {
|
|
42
42
|
const a = e.slice();
|
|
43
43
|
return a[50] = l[t], a[52] = t, a;
|
|
44
44
|
}
|
|
45
45
|
function $(e) {
|
|
46
|
-
let l, t, a,
|
|
46
|
+
let l, t, a, m, d, p, y, r, w, _, f = X(
|
|
47
47
|
/*games*/
|
|
48
48
|
e[1]
|
|
49
49
|
), o = [];
|
|
@@ -51,7 +51,7 @@ function $(e) {
|
|
|
51
51
|
o[s] = ee(V(e, f, s));
|
|
52
52
|
return {
|
|
53
53
|
c() {
|
|
54
|
-
l = S("div"), t = S("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a = z(),
|
|
54
|
+
l = S("div"), t = S("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a = z(), m = S("main"), d = S("div");
|
|
55
55
|
for (let s = 0; s < o.length; s += 1)
|
|
56
56
|
o[s].c();
|
|
57
57
|
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"), C(
|
|
@@ -59,10 +59,10 @@ function $(e) {
|
|
|
59
59
|
"disabled",
|
|
60
60
|
/*atStart*/
|
|
61
61
|
e[8]
|
|
62
|
-
), c(
|
|
63
|
-
e[2] + "px)"),
|
|
62
|
+
), c(d, "class", "items"), c(d, "part", "items"), Y(d, "transform", "translateX(" + /*offset*/
|
|
63
|
+
e[2] + "px)"), Pe(() => (
|
|
64
64
|
/*main_elementresize_handler*/
|
|
65
|
-
e[28].call(
|
|
65
|
+
e[28].call(m)
|
|
66
66
|
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), C(
|
|
67
67
|
r,
|
|
68
68
|
"disabled",
|
|
@@ -71,13 +71,13 @@ function $(e) {
|
|
|
71
71
|
), c(l, "class", "TournamentsGamesSlider"), c(l, "part", "TournamentsGamesSlider");
|
|
72
72
|
},
|
|
73
73
|
m(s, b) {
|
|
74
|
-
|
|
74
|
+
D(s, l, b), v(l, t), v(l, a), v(l, m), v(m, d);
|
|
75
75
|
for (let i = 0; i < o.length; i += 1)
|
|
76
|
-
o[i] && o[i].m(
|
|
77
|
-
e[27](
|
|
78
|
-
|
|
76
|
+
o[i] && o[i].m(d, null);
|
|
77
|
+
e[27](d), p = Be(
|
|
78
|
+
m,
|
|
79
79
|
/*main_elementresize_handler*/
|
|
80
|
-
e[28].bind(
|
|
80
|
+
e[28].bind(m)
|
|
81
81
|
), v(l, y), v(l, r), e[30](l), w || (_ = [
|
|
82
82
|
L(
|
|
83
83
|
t,
|
|
@@ -109,14 +109,14 @@ function $(e) {
|
|
|
109
109
|
let i;
|
|
110
110
|
for (i = 0; i < f.length; i += 1) {
|
|
111
111
|
const k = V(s, f, i);
|
|
112
|
-
o[i] ? o[i].p(k, b) : (o[i] = ee(k), o[i].c(), o[i].m(
|
|
112
|
+
o[i] ? o[i].p(k, b) : (o[i] = ee(k), o[i].c(), o[i].m(d, null));
|
|
113
113
|
}
|
|
114
114
|
for (; i < o.length; i += 1)
|
|
115
115
|
o[i].d(1);
|
|
116
116
|
o.length = f.length;
|
|
117
117
|
}
|
|
118
118
|
b[0] & /*offset*/
|
|
119
|
-
4 && Y(
|
|
119
|
+
4 && Y(d, "transform", "translateX(" + /*offset*/
|
|
120
120
|
s[2] + "px)"), b[0] & /*atEnd*/
|
|
121
121
|
512 && C(
|
|
122
122
|
r,
|
|
@@ -126,7 +126,7 @@ function $(e) {
|
|
|
126
126
|
);
|
|
127
127
|
},
|
|
128
128
|
d(s) {
|
|
129
|
-
s &&
|
|
129
|
+
s && G(l), Ee(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -134,7 +134,7 @@ function ee(e) {
|
|
|
134
134
|
let l, t, a = (
|
|
135
135
|
/*$_*/
|
|
136
136
|
e[10]("playNow") + ""
|
|
137
|
-
),
|
|
137
|
+
), m, d, p, y, r, w, _, f, o, s, b;
|
|
138
138
|
function i() {
|
|
139
139
|
return (
|
|
140
140
|
/*click_handler_1*/
|
|
@@ -155,7 +155,7 @@ function ee(e) {
|
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
157
|
c() {
|
|
158
|
-
l = S("div"), t = S("span"),
|
|
158
|
+
l = S("div"), t = S("span"), m = Le(a), y = z(), r = S("img"), o = z(), c(t, "class", d = "PlayNowButton " + /*hover*/
|
|
159
159
|
(e[5] && /*hoverIndex*/
|
|
160
160
|
e[6] == /*i*/
|
|
161
161
|
e[52] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
@@ -167,7 +167,7 @@ function ee(e) {
|
|
|
167
167
|
e[50].name), c(l, "class", "item"), c(l, "part", "item");
|
|
168
168
|
},
|
|
169
169
|
m(u, h) {
|
|
170
|
-
|
|
170
|
+
D(u, l, h), v(l, t), v(t, m), v(l, y), v(l, r), v(l, o), s || (b = [
|
|
171
171
|
L(l, "click", i),
|
|
172
172
|
L(l, "mouseenter", k),
|
|
173
173
|
L(
|
|
@@ -181,11 +181,11 @@ function ee(e) {
|
|
|
181
181
|
p(u, h) {
|
|
182
182
|
e = u, h[0] & /*$_*/
|
|
183
183
|
1024 && a !== (a = /*$_*/
|
|
184
|
-
e[10]("playNow") + "") &&
|
|
185
|
-
96 &&
|
|
184
|
+
e[10]("playNow") + "") && He(m, a), h[0] & /*hover, hoverIndex*/
|
|
185
|
+
96 && d !== (d = "PlayNowButton " + /*hover*/
|
|
186
186
|
(e[5] && /*hoverIndex*/
|
|
187
187
|
e[6] == /*i*/
|
|
188
|
-
e[52] ? "itemHover" : "")) && c(t, "class",
|
|
188
|
+
e[52] ? "itemHover" : "")) && c(t, "class", d), h[0] & /*hover, hoverIndex*/
|
|
189
189
|
96 && p !== (p = "PlayNowButton " + /*hover*/
|
|
190
190
|
(e[5] && /*hoverIndex*/
|
|
191
191
|
e[6] == /*i*/
|
|
@@ -198,7 +198,7 @@ function ee(e) {
|
|
|
198
198
|
e[50].name) && c(r, "title", f);
|
|
199
199
|
},
|
|
200
200
|
d(u) {
|
|
201
|
-
u &&
|
|
201
|
+
u && G(l), s = !1, te(b);
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
}
|
|
@@ -212,25 +212,25 @@ function Ae(e) {
|
|
|
212
212
|
c() {
|
|
213
213
|
l = S("div"), t && t.c();
|
|
214
214
|
},
|
|
215
|
-
m(a,
|
|
216
|
-
|
|
215
|
+
m(a, m) {
|
|
216
|
+
D(a, l, m), t && t.m(l, null), e[31](l);
|
|
217
217
|
},
|
|
218
|
-
p(a,
|
|
218
|
+
p(a, m) {
|
|
219
219
|
/*games*/
|
|
220
220
|
a[1] && /*games*/
|
|
221
|
-
a[1].length > 0 ? t ? t.p(a,
|
|
221
|
+
a[1].length > 0 ? t ? t.p(a, m) : (t = $(a), t.c(), t.m(l, null)) : t && (t.d(1), t = null);
|
|
222
222
|
},
|
|
223
223
|
i: R,
|
|
224
224
|
o: R,
|
|
225
225
|
d(a) {
|
|
226
|
-
a &&
|
|
226
|
+
a && G(l), t && t.d(), e[31](null);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
let Ue = 30;
|
|
231
231
|
function Ie(e, l, t) {
|
|
232
|
-
let a,
|
|
233
|
-
|
|
232
|
+
let a, m, d;
|
|
233
|
+
Fe(e, je, (n) => t(10, d = n));
|
|
234
234
|
let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, h, H = null, j = null, A = !1, U, P, B = 0, T;
|
|
235
235
|
const ne = () => {
|
|
236
236
|
fetch(_).then((g) => g.json()).then((g) => {
|
|
@@ -252,11 +252,12 @@ function Ie(e, l, t) {
|
|
|
252
252
|
const g = le(n)[0];
|
|
253
253
|
H = g.clientX, j = g.clientY;
|
|
254
254
|
}, J = (n) => {
|
|
255
|
-
if (!H || !j)
|
|
255
|
+
if (!H || !j)
|
|
256
|
+
return;
|
|
256
257
|
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
|
|
257
258
|
Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, j = null;
|
|
258
259
|
}, E = (n) => {
|
|
259
|
-
n > 0 && !
|
|
260
|
+
n > 0 && !m ? (t(2, u -= i), t(2, u = u < B ? B : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
|
|
260
261
|
}, O = (n) => {
|
|
261
262
|
window.postMessage(
|
|
262
263
|
{
|
|
@@ -301,10 +302,10 @@ function Ie(e, l, t) {
|
|
|
301
302
|
}, ce = () => {
|
|
302
303
|
T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
|
|
303
304
|
};
|
|
304
|
-
|
|
305
|
+
Me(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
|
|
305
306
|
h.removeEventListener("touchstart", x), h.removeEventListener("touchmove", J);
|
|
306
307
|
}));
|
|
307
|
-
const ue = () => E(-1),
|
|
308
|
+
const ue = () => E(-1), me = (n) => O(n), de = (n) => W(n), he = () => q();
|
|
308
309
|
function fe(n) {
|
|
309
310
|
I[n ? "unshift" : "push"](() => {
|
|
310
311
|
P = n, t(7, P);
|
|
@@ -329,7 +330,7 @@ function Ie(e, l, t) {
|
|
|
329
330
|
}, e.$$.update = () => {
|
|
330
331
|
e.$$.dirty[0] & /*offset*/
|
|
331
332
|
4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
332
|
-
4194308 && t(9,
|
|
333
|
+
4194308 && t(9, m = u <= B), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
333
334
|
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
334
335
|
131072 && p && se(), e.$$.dirty[0] & /*slider*/
|
|
335
336
|
8 && h && re(), e.$$.dirty[0] & /*translationurl*/
|
|
@@ -347,8 +348,8 @@ function Ie(e, l, t) {
|
|
|
347
348
|
U,
|
|
348
349
|
P,
|
|
349
350
|
a,
|
|
350
|
-
d,
|
|
351
351
|
m,
|
|
352
|
+
d,
|
|
352
353
|
W,
|
|
353
354
|
q,
|
|
354
355
|
E,
|
|
@@ -362,8 +363,8 @@ function Ie(e, l, t) {
|
|
|
362
363
|
o,
|
|
363
364
|
B,
|
|
364
365
|
ue,
|
|
365
|
-
de,
|
|
366
366
|
me,
|
|
367
|
+
de,
|
|
367
368
|
he,
|
|
368
369
|
fe,
|
|
369
370
|
ge,
|
|
@@ -379,7 +380,7 @@ class De extends ve {
|
|
|
379
380
|
l,
|
|
380
381
|
Ie,
|
|
381
382
|
Ae,
|
|
382
|
-
|
|
383
|
+
Se,
|
|
383
384
|
{
|
|
384
385
|
tournamenturl: 17,
|
|
385
386
|
scrollby: 15,
|
|
@@ -436,7 +437,7 @@ class De extends ve {
|
|
|
436
437
|
this.$$set({ clientstylingurl: l }), M();
|
|
437
438
|
}
|
|
438
439
|
}
|
|
439
|
-
|
|
440
|
+
Ne(De, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
440
441
|
export {
|
|
441
442
|
De as default
|
|
442
443
|
};
|