@everymatrix/casino-tournaments-controller 1.98.11 → 1.98.13
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-uVAvlLtx.js → CasinoTournamentsController-ClZWffEZ.js} +2 -2
- package/components/{CasinoTournamentsController-DDIFwLvv.js → CasinoTournamentsController-sqQUnW62.js} +2 -2
- package/components/{CasinoTournamentsController-Djg5TJwL.cjs → CasinoTournamentsController-weHslg5F.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-Cyva9Ssb.js → CasinoTournamentsFilterController-CKF4I9vD.js} +1 -1
- package/components/{CasinoTournamentsFilterController-E9UAdTqn.js → CasinoTournamentsFilterController-D65kcykj.js} +1 -1
- package/components/{CasinoTournamentsFilterController-CiG7B3jD.cjs → CasinoTournamentsFilterController-e8RzVP8h.cjs} +1 -1
- package/components/{CasinoTournamentsListController-CtN9in9F.js → CasinoTournamentsListController-BNFY9kuN.js} +2 -2
- package/components/{CasinoTournamentsListController-nSKsEYr7.cjs → CasinoTournamentsListController-CzOHaKpQ.cjs} +2 -2
- package/components/{CasinoTournamentsListController-Cnv2AgTN.js → CasinoTournamentsListController-DRXcKgWc.js} +2 -2
- package/components/{CasinoTournamentsThumbnail-4hpN3i3a.js → CasinoTournamentsThumbnail-CytwmIzY.js} +240 -172
- package/components/{CasinoTournamentsThumbnail-CxU_KQgU.cjs → CasinoTournamentsThumbnail-D9krmwoJ.cjs} +3 -3
- package/components/{CasinoTournamentsThumbnail-OI2PWgEn.js → CasinoTournamentsThumbnail-IziNXhPp.js} +228 -160
- package/components/{CasinoTournamentsThumbnailController-DH5vJLNV.js → CasinoTournamentsThumbnailController-BuQq33SW.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-CM59fUz7.js → CasinoTournamentsThumbnailController-C_kJCy-_.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-CzYPc5fm.cjs → CasinoTournamentsThumbnailController-DjE3sgum.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-DDYoyc9g.js → CasinoTournamentsThumbnailDuration-BrhO3H5L.js} +36 -20
- package/components/{CasinoTournamentsThumbnailDuration-Dj3LwXcs.js → CasinoTournamentsThumbnailDuration-D1izVOFm.js} +45 -29
- package/components/CasinoTournamentsThumbnailDuration-osUzpqph.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailGamesSlider-og8zVTIG.js → CasinoTournamentsThumbnailGamesSlider-Bz3eLPHw.js} +17 -11
- package/components/CasinoTournamentsThumbnailGamesSlider-Db99miaT.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailGamesSlider-LnT75KCe.js → CasinoTournamentsThumbnailGamesSlider-Docuutex.js} +23 -17
- package/components/CasinoTournamentsThumbnailPrizes-AtRlKC7k.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailPrizes-DSMl-Ced.js → CasinoTournamentsThumbnailPrizes-C8ozHbXk.js} +111 -101
- package/components/{CasinoTournamentsThumbnailPrizes-C4qdTdYS.js → CasinoTournamentsThumbnailPrizes-Ci_OxxiL.js} +111 -101
- 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/CasinoTournamentsThumbnailDuration-C8nZqhIE.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGamesSlider-ByzjH9Jr.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-DQhyaShl.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as J, S as K, i as Y, s as Z, f as z, b as Q, n as
|
|
2
|
-
function
|
|
1
|
+
import { a as J, S as K, i as Y, s as Z, f as z, b as Q, n as N, d as k, e as B, g as v, h as l, k as V, o as X, p as M, q as h, F as $, t as R, r as j, u as tt, J as O, x as et, y as nt, z as it, c as st, $ as rt } from "./CasinoTournamentsController-ClZWffEZ.js";
|
|
2
|
+
function U(n, t) {
|
|
3
3
|
J(n, t);
|
|
4
4
|
}
|
|
5
5
|
const x = {
|
|
@@ -90,6 +90,22 @@ const x = {
|
|
|
90
90
|
minutes: "minutes",
|
|
91
91
|
hours: "hours",
|
|
92
92
|
days: "days"
|
|
93
|
+
},
|
|
94
|
+
ru: {
|
|
95
|
+
finished: "Завершён",
|
|
96
|
+
starting: "Начинается через ",
|
|
97
|
+
left: "осталось",
|
|
98
|
+
minutes: "минут",
|
|
99
|
+
hours: "часов",
|
|
100
|
+
days: "дней"
|
|
101
|
+
},
|
|
102
|
+
az: {
|
|
103
|
+
finished: "Bitib",
|
|
104
|
+
starting: "Başlayır: ",
|
|
105
|
+
left: "qalıb",
|
|
106
|
+
minutes: "dəqiqə",
|
|
107
|
+
hours: "saat",
|
|
108
|
+
days: "gün"
|
|
93
109
|
}
|
|
94
110
|
};
|
|
95
111
|
function at(n) {
|
|
@@ -121,7 +137,7 @@ function A(n) {
|
|
|
121
137
|
);
|
|
122
138
|
}
|
|
123
139
|
let C = D(n), _ = C(n);
|
|
124
|
-
function
|
|
140
|
+
function q(r, p) {
|
|
125
141
|
if (
|
|
126
142
|
/*status*/
|
|
127
143
|
r[2] == "Finished" || /*status*/
|
|
@@ -140,13 +156,13 @@ function A(n) {
|
|
|
140
156
|
)
|
|
141
157
|
return dt;
|
|
142
158
|
}
|
|
143
|
-
let
|
|
159
|
+
let w = q(n), c = w && w(n);
|
|
144
160
|
return {
|
|
145
161
|
c() {
|
|
146
162
|
t = v("div"), e = v("div"), a = R(s), u = j(), o = v("div"), f = R(d), T = j(), b = v("div"), g = v("div"), _.c(), P = j(), c && c.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(g, "class", "ProgressBar"), l(g, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
|
|
147
163
|
},
|
|
148
164
|
m(r, p) {
|
|
149
|
-
|
|
165
|
+
B(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), B(r, T, p), B(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (I = $(
|
|
150
166
|
/*getDuration*/
|
|
151
167
|
n[9].call(null, b)
|
|
152
168
|
), y = !0);
|
|
@@ -162,7 +178,7 @@ function A(n) {
|
|
|
162
178
|
r[10](
|
|
163
179
|
/*enddate*/
|
|
164
180
|
r[1]
|
|
165
|
-
) + "") && M(f, d), C === (C = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))),
|
|
181
|
+
) + "") && M(f, d), C === (C = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))), w === (w = q(r)) && c ? c.p(r, p) : (c && c.d(1), c = w && w(r), c && (c.c(), c.m(g, null)));
|
|
166
182
|
},
|
|
167
183
|
d(r) {
|
|
168
184
|
r && (k(t), k(T), k(b)), _.d(), c && c.d(), y = !1, I();
|
|
@@ -173,7 +189,7 @@ function lt(n) {
|
|
|
173
189
|
let t;
|
|
174
190
|
return {
|
|
175
191
|
c() {
|
|
176
|
-
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"),
|
|
192
|
+
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), O(
|
|
177
193
|
t,
|
|
178
194
|
"width",
|
|
179
195
|
/*getProgress*/
|
|
@@ -181,11 +197,11 @@ function lt(n) {
|
|
|
181
197
|
);
|
|
182
198
|
},
|
|
183
199
|
m(e, s) {
|
|
184
|
-
|
|
200
|
+
B(e, t, s);
|
|
185
201
|
},
|
|
186
202
|
p(e, s) {
|
|
187
203
|
s & /*getProgress*/
|
|
188
|
-
128 &&
|
|
204
|
+
128 && O(
|
|
189
205
|
t,
|
|
190
206
|
"width",
|
|
191
207
|
/*getProgress*/
|
|
@@ -204,9 +220,9 @@ function ot(n) {
|
|
|
204
220
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
205
221
|
},
|
|
206
222
|
m(e, s) {
|
|
207
|
-
|
|
223
|
+
B(e, t, s);
|
|
208
224
|
},
|
|
209
|
-
p:
|
|
225
|
+
p: N,
|
|
210
226
|
d(e) {
|
|
211
227
|
e && k(t);
|
|
212
228
|
}
|
|
@@ -219,9 +235,9 @@ function ut(n) {
|
|
|
219
235
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
220
236
|
},
|
|
221
237
|
m(e, s) {
|
|
222
|
-
|
|
238
|
+
B(e, t, s);
|
|
223
239
|
},
|
|
224
|
-
p:
|
|
240
|
+
p: N,
|
|
225
241
|
d(e) {
|
|
226
242
|
e && k(t);
|
|
227
243
|
}
|
|
@@ -240,7 +256,7 @@ function dt(n) {
|
|
|
240
256
|
), s = j(), u = R(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
241
257
|
},
|
|
242
258
|
m(o, d) {
|
|
243
|
-
|
|
259
|
+
B(o, t, d), h(t, e), h(t, s), h(t, u);
|
|
244
260
|
},
|
|
245
261
|
p(o, d) {
|
|
246
262
|
d & /*showRemain*/
|
|
@@ -273,7 +289,7 @@ function ct(n) {
|
|
|
273
289
|
t = v("div"), s = R(e), a = j(), o = R(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
274
290
|
},
|
|
275
291
|
m(d, f) {
|
|
276
|
-
|
|
292
|
+
B(d, t, f), h(t, s), h(t, a), h(t, o);
|
|
277
293
|
},
|
|
278
294
|
p(d, f) {
|
|
279
295
|
f & /*$_*/
|
|
@@ -300,7 +316,7 @@ function ft(n) {
|
|
|
300
316
|
t = v("div"), s = R(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
301
317
|
},
|
|
302
318
|
m(a, u) {
|
|
303
|
-
|
|
319
|
+
B(a, t, u), h(t, s);
|
|
304
320
|
},
|
|
305
321
|
p(a, u) {
|
|
306
322
|
u & /*$_*/
|
|
@@ -323,15 +339,15 @@ function gt(n) {
|
|
|
323
339
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
324
340
|
},
|
|
325
341
|
m(s, a) {
|
|
326
|
-
|
|
342
|
+
B(s, t, a), e && e.m(t, null), n[17](t);
|
|
327
343
|
},
|
|
328
344
|
p(s, [a]) {
|
|
329
345
|
/*startdate*/
|
|
330
346
|
s[0] && /*enddate*/
|
|
331
347
|
s[1] ? e ? e.p(s, a) : (e = A(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
348
|
},
|
|
333
|
-
i:
|
|
334
|
-
o:
|
|
349
|
+
i: N,
|
|
350
|
+
o: N,
|
|
335
351
|
d(s) {
|
|
336
352
|
s && k(t), e && e.d(), n[17](null);
|
|
337
353
|
}
|
|
@@ -341,26 +357,26 @@ function mt(n, t, e) {
|
|
|
341
357
|
let s, a;
|
|
342
358
|
V(n, rt, (i) => e(8, a = i));
|
|
343
359
|
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: f = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: g = "" } = t, { mbsource: P } = t, y, I, D = "", C = "", _ = "";
|
|
344
|
-
const
|
|
360
|
+
const q = () => {
|
|
345
361
|
fetch(g).then((m) => m.json()).then((m) => {
|
|
346
362
|
Object.keys(m).forEach((S) => {
|
|
347
|
-
|
|
363
|
+
U(S, m[S]);
|
|
348
364
|
});
|
|
349
365
|
}).catch((m) => {
|
|
350
366
|
console.log(m);
|
|
351
367
|
});
|
|
352
368
|
};
|
|
353
369
|
Object.keys(x).forEach((i) => {
|
|
354
|
-
|
|
370
|
+
U(i, x[i]);
|
|
355
371
|
});
|
|
356
|
-
const
|
|
372
|
+
const w = (i) => new Date(i).getTime(), c = (i, m) => (w(m) - w(i)) / (1e3 * 60), r = () => {
|
|
357
373
|
const i = /* @__PURE__ */ new Date();
|
|
358
|
-
e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ =
|
|
374
|
+
e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ = L(D));
|
|
359
375
|
}, p = (i) => {
|
|
360
376
|
const m = { month: "long" };
|
|
361
377
|
let S = new Date(i), E = new Intl.DateTimeFormat(f, m).format(S);
|
|
362
378
|
return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
363
|
-
},
|
|
379
|
+
}, L = (i) => {
|
|
364
380
|
const m = (E, F) => E + " " + a(F), S = (E) => {
|
|
365
381
|
const F = Math.floor(E);
|
|
366
382
|
return F < 10 ? `0${F}` : `${F}`;
|
|
@@ -398,10 +414,10 @@ function mt(n, t, e) {
|
|
|
398
414
|
const i = c(u, o), m = 100 / i;
|
|
399
415
|
return Math.floor((i - D) * m);
|
|
400
416
|
}), n.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
401
|
-
19 && u && o && r() &&
|
|
417
|
+
19 && u && o && r() && L(D), n.$$.dirty & /*lang*/
|
|
402
418
|
4096 && f && r(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
403
|
-
4112 && f &&
|
|
404
|
-
32768 && g &&
|
|
419
|
+
4112 && f && L(D), n.$$.dirty & /*translationurl*/
|
|
420
|
+
32768 && g && q(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
405
421
|
8200 && T && y && et(y, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
406
422
|
16392 && b && y && nt(y, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
407
423
|
65544 && P && y && it(y, `${P}.Style`, I);
|
|
@@ -417,7 +433,7 @@ function mt(n, t, e) {
|
|
|
417
433
|
a,
|
|
418
434
|
r,
|
|
419
435
|
p,
|
|
420
|
-
|
|
436
|
+
L,
|
|
421
437
|
f,
|
|
422
438
|
T,
|
|
423
439
|
b,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-weHslg5F.cjs");function z(i,e){t.addMessages(i,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"Turnuvaya kalan zaman",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},ru:{finished:"Завершён",starting:"Начинается через ",left:"осталось",minutes:"минут",hours:"часов",days:"дней"},az:{finished:"Bitib",starting:"Başlayır: ",left:"qalıb",minutes:"dəqiqə",hours:"saat",days:"gün"}};function q(i){t.append_styles(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)}")}function E(i){let e,n,a=i[10](i[0])+"",l,u,o,d=i[10](i[1])+"",f,k,y,g,B,h,T;function b(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?L:O}let w=b(i),p=w(i);function P(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return W;if(s[5]>0)return A;if(s[4]>0)return U}let D=P(i),c=D&&D(i);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),f=t.text(d),k=t.space(),y=t.element("div"),g=t.element("div"),p.c(),B=t.space(),c&&c.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(g,"class","ProgressBar"),t.attr(g,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,f),t.insert(s,k,_),t.insert(s,y,_),t.append(y,g),p.m(g,null),t.append(g,B),c&&c.m(g,null),h||(T=t.action_destroyer(i[9].call(null,y)),h=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(f,d),w===(w=b(s))&&p?p.p(s,_):(p.d(1),p=w(s),p&&(p.c(),p.m(g,B))),D===(D=P(s))&&c?c.p(s,_):(c&&c.d(1),c=D&&D(s),c&&(c.c(),c.m(g,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),p.d(),c&&c.d(),h=!1,T()}}}function O(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",i[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function L(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function U(i){let e,n,a,l=i[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(i[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(i){let e,n=i[8]("starting")+"",a,l,u=i[11](i[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,f){t.insert(d,e,f),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,f){f&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),f&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function W(i){let e,n=i[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function G(i){let e,n=i[0]&&i[1]&&E(i);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),i[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),i[17](null)}}}function H(i,e,n){let a,l;t.component_subscribe(i,t.$format,r=>n(8,l=r));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:f="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:g=""}=e,{mbsource:B}=e,h,T,b="",w="",p="";const P=()=>{fetch(g).then(m=>m.json()).then(m=>{Object.keys(m).forEach(F=>{z(F,m[F])})}).catch(m=>{console.log(m)})};Object.keys(M).forEach(r=>{z(r,M[r])});const D=r=>new Date(r).getTime(),c=(r,m)=>(D(m)-D(r))/(1e3*60),s=()=>{const r=new Date;n(4,b=c(r,o)),n(5,w=c(r,u)),n(6,p=C(b))},_=r=>{const m={month:"long"};let F=new Date(r),S=new Intl.DateTimeFormat(f,m).format(F);return`${F.getDate()} ${S}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},C=r=>{const m=(S,v)=>S+" "+l(v),F=S=>{const v=Math.floor(S);return v<10?`0${v}`:`${v}`};if(r<1440){const S=r/60,v=r%60,x=(v-Math.floor(v))*60;return[S,v,x].map(I=>F(I)).join(":")}return m(Math.ceil(r/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const r=setInterval(()=>{u&&o&&s()},1e3);return()=>{clearInterval(r)}});function R(r){t.binding_callbacks[r?"unshift":"push"](()=>{h=r,n(3,h)})}return i.$$set=r=>{"startdate"in r&&n(0,u=r.startdate),"enddate"in r&&n(1,o=r.enddate),"status"in r&&n(2,d=r.status),"lang"in r&&n(12,f=r.lang),"clientstyling"in r&&n(13,k=r.clientstyling),"clientstylingurl"in r&&n(14,y=r.clientstylingurl),"translationurl"in r&&n(15,g=r.translationurl),"mbsource"in r&&n(16,B=r.mbsource)},i.$$.update=()=>{i.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const r=c(u,o),m=100/r;return Math.floor((r-b)*m)}),i.$$.dirty&19&&u&&o&&s()&&C(b),i.$$.dirty&4096&&f&&s(),i.$$.dirty&4112&&f&&C(b),i.$$.dirty&32768&&g&&P(),i.$$.dirty&8200&&k&&h&&t.setClientStyling(h,k),i.$$.dirty&16392&&y&&h&&t.setClientStylingURL(h,y),i.$$.dirty&65544&&B&&h&&t.setStreamStyling(h,`${B}.Style`,T)},[u,o,d,h,b,w,p,a,l,s,_,C,f,k,y,g,B,R]}class j extends t.SvelteComponent{constructor(e){super(),t.init(this,e,H,G,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:16},q)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(j,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=j;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke, s as Ne, f as T, b as Se, n as Y, d as W, c as q, e as N, j as Te, o as Fe, k as K, l as Me, G as le, K as C, J as Z, p as v, L as Pe, u as
|
|
1
|
+
import { a as be, S as ve, i as ke, s as Ne, f as T, b as Se, n as Y, d as W, c as q, e as N, j as Te, o as Fe, k as K, l as Me, G as le, K as C, J as Z, p as v, L as Pe, u as L, q as I, g as o, M as Be, E as Ee, r as G, m as je, I as Q, t as ze, w as Le, x as Ae, y as He, z as Ce, $ as Ie } from "./CasinoTournamentsController-sqQUnW62.js";
|
|
2
2
|
function V(e, n) {
|
|
3
3
|
be(e, n);
|
|
4
4
|
}
|
|
@@ -32,6 +32,12 @@ const $ = {
|
|
|
32
32
|
},
|
|
33
33
|
"en-us": {
|
|
34
34
|
playNow: "Play now"
|
|
35
|
+
},
|
|
36
|
+
ru: {
|
|
37
|
+
playNow: "Играть сейчас"
|
|
38
|
+
},
|
|
39
|
+
az: {
|
|
40
|
+
playNow: "İndi oyna"
|
|
35
41
|
}
|
|
36
42
|
};
|
|
37
43
|
function Ue(e) {
|
|
@@ -78,13 +84,13 @@ function te(e) {
|
|
|
78
84
|
/*main_elementresize_handler*/
|
|
79
85
|
e[29].bind(m)
|
|
80
86
|
), v(n, w), v(n, s), e[31](n), _ || (b = [
|
|
81
|
-
|
|
87
|
+
L(
|
|
82
88
|
t,
|
|
83
89
|
"click",
|
|
84
90
|
/*click_handler*/
|
|
85
91
|
e[24]
|
|
86
92
|
),
|
|
87
|
-
|
|
93
|
+
L(
|
|
88
94
|
s,
|
|
89
95
|
"click",
|
|
90
96
|
/*click_handler_2*/
|
|
@@ -154,7 +160,7 @@ function ne(e) {
|
|
|
154
160
|
}
|
|
155
161
|
return {
|
|
156
162
|
c() {
|
|
157
|
-
n = N("div"), t = N("span"), m =
|
|
163
|
+
n = N("div"), t = N("span"), m = ze(a), w = I(), s = N("img"), i = I(), o(t, "class", d = "PlayNowButton " + /*hover*/
|
|
158
164
|
(e[5] && /*hoverIndex*/
|
|
159
165
|
e[6] == /*i*/
|
|
160
166
|
e[51] ? "itemHover" : "")), o(t, "part", y = "PlayNowButton " + /*hover*/
|
|
@@ -167,9 +173,9 @@ function ne(e) {
|
|
|
167
173
|
},
|
|
168
174
|
m(k, g) {
|
|
169
175
|
q(k, n, g), v(n, t), v(t, m), v(n, w), v(n, s), v(n, i), r || (u = [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
176
|
+
L(n, "click", c),
|
|
177
|
+
L(n, "mouseenter", P),
|
|
178
|
+
L(
|
|
173
179
|
n,
|
|
174
180
|
"mouseleave",
|
|
175
181
|
/*mouseleave_handler*/
|
|
@@ -233,8 +239,8 @@ function We(e, n, t) {
|
|
|
233
239
|
let { tournamenturl: y = "" } = n, { scrollby: w = "3" } = n, { pagfactor: s = "175" } = n, { lang: _ = "" } = n, { translationurl: b = "" } = n, { clientstyling: h = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, u, c, P = window.navigator.userAgent, k, g = [], f = 0, S, A = null, H = null, U = !1, D, B, E = 0, F;
|
|
234
240
|
const se = () => {
|
|
235
241
|
fetch(b).then((p) => p.json()).then((p) => {
|
|
236
|
-
Object.keys(p).forEach((
|
|
237
|
-
V(
|
|
242
|
+
Object.keys(p).forEach((z) => {
|
|
243
|
+
V(z, p[z]);
|
|
238
244
|
});
|
|
239
245
|
}).catch((p) => {
|
|
240
246
|
console.log(p);
|
|
@@ -253,7 +259,7 @@ function We(e, n, t) {
|
|
|
253
259
|
}, X = (l) => {
|
|
254
260
|
if (!A || !H)
|
|
255
261
|
return;
|
|
256
|
-
let p = l.touches[0].clientX,
|
|
262
|
+
let p = l.touches[0].clientX, z = l.touches[0].clientY, M = A - p, _e = H - z;
|
|
257
263
|
Math.abs(M) > Math.abs(_e) && (M > 0 ? j(1) : j(-1)), A = null, H = null;
|
|
258
264
|
}, j = (l) => {
|
|
259
265
|
l > 0 && !m ? (t(2, f -= k), t(2, f = f < E ? E : f)) : l < 0 && !a && (t(2, f += k), t(2, f = f > 0 ? 0 : f));
|
|
@@ -318,7 +324,7 @@ function We(e, n, t) {
|
|
|
318
324
|
8 && S && ie(), e.$$.dirty[0] & /*translationurl*/
|
|
319
325
|
524288 && b && se(), e.$$.dirty[0] & /*games*/
|
|
320
326
|
2 && g.length && oe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
321
|
-
1048577 && h && u &&
|
|
327
|
+
1048577 && h && u && Le(u, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
322
328
|
2097153 && i && u && Ae(u, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
323
329
|
4194305 && r && u && He(u, `${r}.Style`, c);
|
|
324
330
|
}, t(2, f = 0), [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-weHslg5F.cjs");function D(t,l){e.addMessages(t,l)}const I={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"},ru:{playNow:"Играть сейчас"},az:{playNow:"İndi oyna"}};function ie(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 W(t,l,n){const i=t.slice();return i[49]=l[n],i[51]=n,i}function G(t){let l,n,i,d,m,y,_,a,w,b,h=e.ensure_array_like(t[1]),o=[];for(let s=0;s<h.length;s+=1)o[s]=O(W(t,h,s));return{c(){l=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 s=0;s<o.length;s+=1)o[s].c();_=e.space(),a=e.element("div"),a.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><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[29].call(d)),e.attr(a,"class","SliderNavButton"),e.attr(a,"part","SliderNavButton"),e.toggle_class(a,"disabled",t[9]),e.attr(l,"class","TournamentsGamesSlider"),e.attr(l,"part","TournamentsGamesSlider")},m(s,u){e.insert(s,l,u),e.append(l,n),e.append(l,i),e.append(l,d),e.append(d,m);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(m,null);t[28](m),y=e.add_iframe_resize_listener(d,t[29].bind(d)),e.append(l,_),e.append(l,a),t[31](l),w||(b=[e.listen(n,"click",t[24]),e.listen(a,"click",t[30])],w=!0)},p(s,u){if(u[0]&256&&e.toggle_class(n,"disabled",s[8]),u[0]&23650){h=e.ensure_array_like(s[1]);let c;for(c=0;c<h.length;c+=1){const T=W(s,h,c);o[c]?o[c].p(T,u):(o[c]=O(T),o[c].c(),o[c].m(m,null))}for(;c<o.length;c+=1)o[c].d(1);o.length=h.length}u[0]&4&&e.set_style(m,"transform","translateX("+s[2]+"px)"),u[0]&512&&e.toggle_class(a,"disabled",s[9])},d(s){s&&e.detach(l),e.destroy_each(o,s),t[28](null),y(),t[31](null),w=!1,e.run_all(b)}}}function O(t){let l,n,i=t[10]("playNow")+"",d,m,y,_,a,w,b,h,o,s,u;function c(){return t[25](t[49])}function T(){return t[26](t[51])}return{c(){l=e.element("div"),n=e.element("span"),d=e.text(i),_=e.space(),a=e.element("img"),o=e.space(),e.attr(n,"class",m="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.attr(n,"part",y="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.src_url_equal(a.src,w=t[49].thumbnail)||e.attr(a,"src",w),e.attr(a,"width","132px"),e.attr(a,"height","100px"),e.attr(a,"alt",b=t[49].name),e.attr(a,"title",h=t[49].name),e.attr(l,"class","item"),e.attr(l,"part","item")},m(v,g){e.insert(v,l,g),e.append(l,n),e.append(n,d),e.append(l,_),e.append(l,a),e.append(l,o),s||(u=[e.listen(l,"click",c),e.listen(l,"mouseenter",T),e.listen(l,"mouseleave",t[27])],s=!0)},p(v,g){t=v,g[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),g[0]&96&&m!==(m="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"class",m),g[0]&96&&y!==(y="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"part",y),g[0]&2&&!e.src_url_equal(a.src,w=t[49].thumbnail)&&e.attr(a,"src",w),g[0]&2&&b!==(b=t[49].name)&&e.attr(a,"alt",b),g[0]&2&&h!==(h=t[49].name)&&e.attr(a,"title",h)},d(v){v&&e.detach(l),s=!1,e.run_all(u)}}}function oe(t){let l,n=t[1]&&t[1].length>0&&G(t);return{c(){l=e.element("div"),n&&n.c()},m(i,d){e.insert(i,l,d),n&&n.m(l,null),t[32](l)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=G(i),n.c(),n.m(l,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(l),n&&n.d(),t[32](null)}}}let ce=30;function ue(t,l,n){let i,d,m;e.component_subscribe(t,e.$format,r=>n(10,m=r));let{tournamenturl:y=""}=l,{scrollby:_="3"}=l,{pagfactor:a="175"}=l,{lang:w=""}=l,{translationurl:b=""}=l,{clientstyling:h=""}=l,{clientstylingurl:o=""}=l,{mbsource:s}=l,u,c,T=window.navigator.userAgent,v,g=[],f=0,k,E=null,j=null,z=!1,C,P,F=0,N;const J=()=>{fetch(b).then(p=>p.json()).then(p=>{Object.keys(p).forEach(B=>{D(B,p[B])})}).catch(p=>{console.log(p)})};Object.keys(I).forEach(r=>{D(r,I[r])});const L=r=>{n(5,z=!0),n(6,C=r)},A=()=>{n(5,z=!1),n(6,C=-1)},R=r=>r.touches||r.originalEvent.touches,H=r=>{const p=R(r)[0];E=p.clientX,j=p.clientY},U=r=>{if(!E||!j)return;let p=r.touches[0].clientX,B=r.touches[0].clientY,S=E-p,se=j-B;Math.abs(S)>Math.abs(se)&&(S>0?M(1):M(-1)),E=null,j=null},M=r=>{r>0&&!d?(n(2,f-=v),n(2,f=f<F?F:f)):r<0&&!i&&(n(2,f+=v),n(2,f=f>0?0:f))},q=r=>{window.postMessage({type:"TournamentGameAction",gameId:r.id,name:r.name,launchUrl:r.launchUrl},window.location.href)},x=()=>{let r=new URL(y),p=new Headers;r.searchParams.append("expand","games"),r.searchParams.append("pagination",`games(limit=${ce},offset=${f})`),r.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),r.searchParams.append("language",w),r.searchParams.append("platform",e.getDevice(T)),fetch(r,{method:"GET",headers:p}).then(S=>S.json()).then(S=>{n(1,g=S.item.games.items),S.item.games.total})},Y=()=>{k.addEventListener("touchstart",H,{passive:!0}),k.addEventListener("touchmove",U,{passive:!0})},Z=()=>{setTimeout(()=>{n(23,F=(P.scrollWidth-P.clientWidth)*-1),n(16,a=new String(P.scrollWidth/g.length)),v=parseInt(_,10)*parseFloat(a,2).toFixed(2)},1e3)},K=()=>{N>0&&N<Math.floor((parseInt(_)+1)*a)&&n(15,_=Math.ceil(N/a).toString())};e.onMount(()=>(v=parseInt(_,10)*parseInt(a,10),()=>{k.removeEventListener("touchstart",H),k.removeEventListener("touchmove",U)}));const Q=()=>M(-1),V=r=>q(r),$=r=>L(r),ee=()=>A();function te(r){e.binding_callbacks[r?"unshift":"push"](()=>{P=r,n(7,P)})}function ne(){N=this.clientWidth,n(4,N)}const le=()=>M(1);function re(r){e.binding_callbacks[r?"unshift":"push"](()=>{k=r,n(3,k)})}function ae(r){e.binding_callbacks[r?"unshift":"push"](()=>{u=r,n(0,u)})}return t.$$set=r=>{"tournamenturl"in r&&n(17,y=r.tournamenturl),"scrollby"in r&&n(15,_=r.scrollby),"pagfactor"in r&&n(16,a=r.pagfactor),"lang"in r&&n(18,w=r.lang),"translationurl"in r&&n(19,b=r.translationurl),"clientstyling"in r&&n(20,h=r.clientstyling),"clientstylingurl"in r&&n(21,o=r.clientstylingurl),"mbsource"in r&&n(22,s=r.mbsource)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=f===0),t.$$.dirty[0]&8388612&&n(9,d=f<=F),t.$$.dirty[0]&16&&N&&K(),t.$$.dirty[0]&131072&&y&&x(),t.$$.dirty[0]&8&&k&&Y(),t.$$.dirty[0]&524288&&b&&J(),t.$$.dirty[0]&2&&g.length&&Z(),t.$$.dirty[0]&1048577&&h&&u&&e.setClientStyling(u,h),t.$$.dirty[0]&2097153&&o&&u&&e.setClientStylingURL(u,o),t.$$.dirty[0]&4194305&&s&&u&&e.setStreamStyling(u,`${s}.Style`,c)},n(2,f=0),[u,g,f,k,N,z,C,P,i,d,m,L,A,M,q,_,a,y,w,b,h,o,s,F,Q,V,$,ee,te,ne,le,re,ae]}class X extends e.SvelteComponent{constructor(l){super(),e.init(this,l,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21,mbsource:22},ie,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(l){this.$$set({tournamenturl:l}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(l){this.$$set({scrollby:l}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(l){this.$$set({pagfactor:l}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(l){this.$$set({lang:l}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(l){this.$$set({mbsource:l}),e.flush()}}e.create_custom_element(X,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=X;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke, s as Ne, f as T, b as Se, n as Y, d as W, e as q, g as N, k as Te, o as Fe, l as K, m as Me, G as le, K as C, J as Z, q as v, L as Pe, v as
|
|
1
|
+
import { a as be, S as ve, i as ke, s as Ne, f as T, b as Se, n as Y, d as W, e as q, g as N, k as Te, o as Fe, l as K, m as Me, G as le, K as C, J as Z, q as v, L as Pe, v as j, r as I, h as o, M as Be, E as Ee, u as G, p as ze, I as Q, t as Le, x as je, y as Ae, z as He, c as Ce, $ as Ie } from "./CasinoTournamentsController-ClZWffEZ.js";
|
|
2
2
|
function V(e, n) {
|
|
3
3
|
be(e, n);
|
|
4
4
|
}
|
|
@@ -32,6 +32,12 @@ const $ = {
|
|
|
32
32
|
},
|
|
33
33
|
"en-us": {
|
|
34
34
|
playNow: "Play now"
|
|
35
|
+
},
|
|
36
|
+
ru: {
|
|
37
|
+
playNow: "Играть сейчас"
|
|
38
|
+
},
|
|
39
|
+
az: {
|
|
40
|
+
playNow: "İndi oyna"
|
|
35
41
|
}
|
|
36
42
|
};
|
|
37
43
|
function Ue(e) {
|
|
@@ -78,13 +84,13 @@ function te(e) {
|
|
|
78
84
|
/*main_elementresize_handler*/
|
|
79
85
|
e[29].bind(m)
|
|
80
86
|
), v(n, w), v(n, s), e[31](n), _ || (b = [
|
|
81
|
-
|
|
87
|
+
j(
|
|
82
88
|
t,
|
|
83
89
|
"click",
|
|
84
90
|
/*click_handler*/
|
|
85
91
|
e[24]
|
|
86
92
|
),
|
|
87
|
-
|
|
93
|
+
j(
|
|
88
94
|
s,
|
|
89
95
|
"click",
|
|
90
96
|
/*click_handler_2*/
|
|
@@ -154,7 +160,7 @@ function ne(e) {
|
|
|
154
160
|
}
|
|
155
161
|
return {
|
|
156
162
|
c() {
|
|
157
|
-
n = N("div"), t = N("span"), m =
|
|
163
|
+
n = N("div"), t = N("span"), m = Le(a), w = I(), s = N("img"), i = I(), o(t, "class", d = "PlayNowButton " + /*hover*/
|
|
158
164
|
(e[5] && /*hoverIndex*/
|
|
159
165
|
e[6] == /*i*/
|
|
160
166
|
e[51] ? "itemHover" : "")), o(t, "part", y = "PlayNowButton " + /*hover*/
|
|
@@ -167,9 +173,9 @@ function ne(e) {
|
|
|
167
173
|
},
|
|
168
174
|
m(k, g) {
|
|
169
175
|
q(k, n, g), v(n, t), v(t, m), v(n, w), v(n, s), v(n, i), r || (u = [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
176
|
+
j(n, "click", c),
|
|
177
|
+
j(n, "mouseenter", P),
|
|
178
|
+
j(
|
|
173
179
|
n,
|
|
174
180
|
"mouseleave",
|
|
175
181
|
/*mouseleave_handler*/
|
|
@@ -180,7 +186,7 @@ function ne(e) {
|
|
|
180
186
|
p(k, g) {
|
|
181
187
|
e = k, g[0] & /*$_*/
|
|
182
188
|
1024 && a !== (a = /*$_*/
|
|
183
|
-
e[10]("playNow") + "") &&
|
|
189
|
+
e[10]("playNow") + "") && ze(m, a), g[0] & /*hover, hoverIndex*/
|
|
184
190
|
96 && d !== (d = "PlayNowButton " + /*hover*/
|
|
185
191
|
(e[5] && /*hoverIndex*/
|
|
186
192
|
e[6] == /*i*/
|
|
@@ -233,8 +239,8 @@ function We(e, n, t) {
|
|
|
233
239
|
let { tournamenturl: y = "" } = n, { scrollby: w = "3" } = n, { pagfactor: s = "175" } = n, { lang: _ = "" } = n, { translationurl: b = "" } = n, { clientstyling: h = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, u, c, P = window.navigator.userAgent, k, g = [], f = 0, S, A = null, H = null, U = !1, D, B, E = 0, F;
|
|
234
240
|
const se = () => {
|
|
235
241
|
fetch(b).then((p) => p.json()).then((p) => {
|
|
236
|
-
Object.keys(p).forEach((
|
|
237
|
-
V(
|
|
242
|
+
Object.keys(p).forEach((L) => {
|
|
243
|
+
V(L, p[L]);
|
|
238
244
|
});
|
|
239
245
|
}).catch((p) => {
|
|
240
246
|
console.log(p);
|
|
@@ -253,9 +259,9 @@ function We(e, n, t) {
|
|
|
253
259
|
}, X = (l) => {
|
|
254
260
|
if (!A || !H)
|
|
255
261
|
return;
|
|
256
|
-
let p = l.touches[0].clientX,
|
|
257
|
-
Math.abs(M) > Math.abs(_e) && (M > 0 ?
|
|
258
|
-
},
|
|
262
|
+
let p = l.touches[0].clientX, L = l.touches[0].clientY, M = A - p, _e = H - L;
|
|
263
|
+
Math.abs(M) > Math.abs(_e) && (M > 0 ? z(1) : z(-1)), A = null, H = null;
|
|
264
|
+
}, z = (l) => {
|
|
259
265
|
l > 0 && !m ? (t(2, f -= k), t(2, f = f < E ? E : f)) : l < 0 && !a && (t(2, f += k), t(2, f = f > 0 ? 0 : f));
|
|
260
266
|
}, R = (l) => {
|
|
261
267
|
window.postMessage(
|
|
@@ -287,7 +293,7 @@ function We(e, n, t) {
|
|
|
287
293
|
Fe(() => (k = parseInt(w, 10) * parseInt(s, 10), () => {
|
|
288
294
|
S.removeEventListener("touchstart", O), S.removeEventListener("touchmove", X);
|
|
289
295
|
}));
|
|
290
|
-
const ue = () =>
|
|
296
|
+
const ue = () => z(-1), me = (l) => R(l), de = (l) => x(l), he = () => J();
|
|
291
297
|
function ge(l) {
|
|
292
298
|
G[l ? "unshift" : "push"](() => {
|
|
293
299
|
B = l, t(7, B);
|
|
@@ -296,7 +302,7 @@ function We(e, n, t) {
|
|
|
296
302
|
function fe() {
|
|
297
303
|
F = this.clientWidth, t(4, F);
|
|
298
304
|
}
|
|
299
|
-
const pe = () =>
|
|
305
|
+
const pe = () => z(1);
|
|
300
306
|
function ye(l) {
|
|
301
307
|
G[l ? "unshift" : "push"](() => {
|
|
302
308
|
S = l, t(3, S);
|
|
@@ -318,7 +324,7 @@ function We(e, n, t) {
|
|
|
318
324
|
8 && S && ie(), e.$$.dirty[0] & /*translationurl*/
|
|
319
325
|
524288 && b && se(), e.$$.dirty[0] & /*games*/
|
|
320
326
|
2 && g.length && oe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
321
|
-
1048577 && h && u &&
|
|
327
|
+
1048577 && h && u && je(u, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
322
328
|
2097153 && i && u && Ae(u, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
323
329
|
4194305 && r && u && He(u, `${r}.Style`, c);
|
|
324
330
|
}, t(2, f = 0), [
|
|
@@ -335,7 +341,7 @@ function We(e, n, t) {
|
|
|
335
341
|
d,
|
|
336
342
|
x,
|
|
337
343
|
J,
|
|
338
|
-
|
|
344
|
+
z,
|
|
339
345
|
R,
|
|
340
346
|
w,
|
|
341
347
|
s,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-weHslg5F.cjs");function _(l,t){e.addMessages(l,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:"Sıra"},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"},ru:{prizes:"Призы",noprizes:"Нет доступных призов",place:"место"},az:{prizes:"Mükafatlar",noprizes:"Mövcud mükafat yoxdur",place:"yer"}};function S(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 b(l,t,n){const r=l.slice();return r[12]=t[n],r[14]=n,r}function v(l){let t,n=e.ensure_array_like(l[1]),r=[];for(let i=0;i<n.length;i+=1)r[i]=T(b(l,n,i));let a=null;return n.length||(a=w(l)),{c(){t=e.element("div");for(let i=0;i<r.length;i+=1)r[i].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(i,c){e.insert(i,t,c);for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(t,null);a&&a.m(t,null)},p(i,c){if(c&6){n=e.ensure_array_like(i[1]);let s;for(s=0;s<n.length;s+=1){const d=b(i,n,s);r[s]?r[s].p(d,c):(r[s]=T(d),r[s].c(),r[s].m(t,null))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length,!n.length&&a?a.p(i,c):n.length?a&&(a.d(1),a=null):(a=w(i),a.c(),a.m(t,null))}},d(i){i&&e.detach(t),e.destroy_each(r,i),a&&a.d()}}}function w(l){let t,n=l[2]("noprizes")+"",r;return{c(){t=e.element("p"),r=e.text(n)},m(a,i){e.insert(a,t,i),e.append(t,r)},p(a,i){i&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(r,n)},d(a){a&&e.detach(t)}}}function T(l){let t,n,r,a=(l[12].count>1?`${l[12].rank}~${l[12].rank+l[12].count-1}`:l[12].rank)+"",i,c,s=l[2]("place")+"",d,o,u=l[12].name+"",f,g;return{c(){t=e.element("div"),n=e.element("p"),r=e.element("span"),i=e.text(a),c=e.space(),d=e.text(s),o=e.text(": "),f=e.text(u),g=e.space(),e.attr(r,"class","PrizeRank"),e.attr(r,"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,z){e.insert(m,t,z),e.append(t,n),e.append(n,r),e.append(r,i),e.append(n,c),e.append(n,d),e.append(n,o),e.append(n,f),e.append(t,g)},p(m,z){z&2&&a!==(a=(m[12].count>1?`${m[12].rank}~${m[12].rank+m[12].count-1}`:m[12].rank)+"")&&e.set_data(i,a),z&4&&s!==(s=m[2]("place")+"")&&e.set_data(d,s),z&2&&u!==(u=m[12].name+"")&&e.set_data(f,u)},d(m){m&&e.detach(t)}}}function F(l){let t,n,r,a,i,c=l[2]("prizes")+"",s,d,o=l[1]&&v(l);return{c(){t=e.element("div"),n=e.element("div"),r=e.element("span"),r.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(),i=e.element("p"),s=e.text(c),d=e.space(),o&&o.c(),e.attr(r,"class","TournamentPrizesIconWrapper"),e.attr(r,"part","TournamentPrizesIconWrapper"),e.attr(i,"class","PrizesTitle"),e.attr(i,"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,r),e.append(n,a),e.append(n,i),e.append(i,s),e.append(t,d),o&&o.m(t,null),l[8](t)},p(u,[f]){f&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(s,c),u[1]?o?o.p(u,f):(o=v(u),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),o&&o.d(),l[8](null)}}}function M(l,t,n){let r;e.component_subscribe(l,e.$format,p=>n(2,r=p));let{tourid:a=""}=t,{clientstyling:i=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,{mbsource:d}=t,o,u,f;const g=()=>{fetch(s).then(h=>h.json()).then(h=>{Object.keys(h).forEach(y=>{_(y,h[y])})}).catch(h=>{console.log(h)})};Object.keys(P).forEach(p=>{_(p,P[p])});const m=p=>{p.data&&p.data.type==`TournamentPrizes_${a}`&&n(1,f=p.data.prizes)};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",m,!1),()=>{window.removeEventListener("message",m)}));function z(p){e.binding_callbacks[p?"unshift":"push"](()=>{o=p,n(0,o)})}return l.$$set=p=>{"tourid"in p&&n(3,a=p.tourid),"clientstyling"in p&&n(4,i=p.clientstyling),"clientstylingurl"in p&&n(5,c=p.clientstylingurl),"translationurl"in p&&n(6,s=p.translationurl),"mbsource"in p&&n(7,d=p.mbsource)},l.$$.update=()=>{l.$$.dirty&17&&i&&o&&e.setClientStyling(o,i),l.$$.dirty&33&&c&&o&&e.setClientStylingURL(o,c),l.$$.dirty&129&&d&&o&&e.setStreamStyling(o,`${d}.Style`,u),l.$$.dirty&64&&s&&g()},[o,f,r,a,i,c,s,d,z]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,M,F,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6,mbsource:7},S)}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(k,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=k;
|