@everymatrix/casino-tournaments-page-controller 1.76.0 → 1.76.1
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/{CasinoTournamentsDetails-_vnvzxd3.js → CasinoTournamentsDetails-BsekkKcF.js} +22 -22
- package/components/{CasinoTournamentsDetails-CV5jyv8g.js → CasinoTournamentsDetails-DPKqCPr7.js} +22 -22
- package/components/{CasinoTournamentsPageController-LRHk1OJ4.js → CasinoTournamentsPageController-DlDBOW7F.js} +1746 -1767
- package/components/CasinoTournamentsPageController-DpzlGcSu.cjs +37 -0
- package/components/{CasinoTournamentsPageController-DIjImG1k.js → CasinoTournamentsPageController-NBhbhWBn.js} +1761 -1782
- package/components/{CasinoTournamentsRank-CkgXfPdz.js → CasinoTournamentsRank-CNnWcewC.js} +35 -35
- package/components/{CasinoTournamentsRank-BEjjLuf1.js → CasinoTournamentsRank-Cc5pidJ-.js} +35 -35
- package/components/{CasinoTournamentsTab-cAmru9Ol.js → CasinoTournamentsTab-BMnGuGCU.js} +32 -32
- package/components/{CasinoTournamentsTab-BRIU3NDv.js → CasinoTournamentsTab-DLvxjX6q.js} +36 -36
- package/components/{CasinoTournamentsTab-BdBIehQV.cjs → CasinoTournamentsTab-pJjsTZL6.cjs} +1 -1
- package/components/{CasinoTournamentsTable-3AOlf9hp.cjs → CasinoTournamentsTable-Bs1Hodh3.cjs} +1 -1
- package/components/{CasinoTournamentsTable-D0-M8VIr.js → CasinoTournamentsTable-CPUS34EO.js} +82 -82
- package/components/{CasinoTournamentsTable-RfAIxnuW.js → CasinoTournamentsTable-D_fc5BN3.js} +82 -82
- package/components/{CasinoTournamentsThumbnail-Cp_sIUHy.js → CasinoTournamentsThumbnail-5a-pBfB5.js} +41 -41
- package/components/{CasinoTournamentsThumbnail-CaIyyUlW.js → CasinoTournamentsThumbnail-C5F15PUc.js} +41 -41
- package/components/{CasinoTournamentsThumbnail-D1JyrHrY.cjs → CasinoTournamentsThumbnail-DiCHf9fK.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-CjJaE6DJ.cjs → CasinoTournamentsThumbnailController-AlPe8dGJ.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-wrPgna6T.js → CasinoTournamentsThumbnailController-B2FV581M.js} +47 -47
- package/components/{CasinoTournamentsThumbnailController-30_8iqch.js → CasinoTournamentsThumbnailController-DFDybeTm.js} +47 -47
- package/components/{CasinoTournamentsThumbnailDuration-BqNqjxsL.js → CasinoTournamentsThumbnailDuration-7gNjuUpw.js} +65 -65
- package/components/{CasinoTournamentsThumbnailDuration-ZnRFP_h_.js → CasinoTournamentsThumbnailDuration-D3ifxW4o.js} +65 -65
- package/components/{CasinoTournamentsThumbnailDuration-CMPeZsoj.cjs → CasinoTournamentsThumbnailDuration-DfjgUs1a.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGames-DS3GmPBl.cjs → CasinoTournamentsThumbnailGames-DdCyuGxf.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGames-Q4Gg_Pxp.js → CasinoTournamentsThumbnailGames-DwcC4C7S.js} +48 -48
- package/components/{CasinoTournamentsThumbnailGames-BQSFsb7H.js → CasinoTournamentsThumbnailGames-XMZ3c1UQ.js} +53 -53
- package/components/{CasinoTournamentsThumbnailGamesSlider-DmOtGPsI.cjs → CasinoTournamentsThumbnailGamesSlider-8N3RMofV.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BAXfTifG.js → CasinoTournamentsThumbnailGamesSlider-BNVc516v.js} +36 -36
- package/components/{CasinoTournamentsThumbnailGamesSlider-CFd0JjFY.js → CasinoTournamentsThumbnailGamesSlider-mdTHZrhJ.js} +36 -36
- package/components/{CasinoTournamentsThumbnailPrizes-pZYtadAx.js → CasinoTournamentsThumbnailPrizes-AXbfcFFk.js} +31 -31
- package/components/{CasinoTournamentsThumbnailPrizes-Dz4-wWGv.js → CasinoTournamentsThumbnailPrizes-CE30X7NA.js} +31 -31
- package/components/{CasinoTournamentsThumbnailPrizes-CgS9w2Aq.cjs → CasinoTournamentsThumbnailPrizes-DJt4LD07.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-BaJvRUJL.cjs → CasinoTournamentsThumbnailRule-Bq1kg49V.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-BtlW7eqt.js → CasinoTournamentsThumbnailRule-D3U3g4vB.js} +22 -22
- package/components/{CasinoTournamentsThumbnailRule-C2uFR1vt.js → CasinoTournamentsThumbnailRule-DZVFgctQ.js} +41 -41
- package/es2015/casino-tournaments-page-controller.cjs +1 -1
- package/es2015/casino-tournaments-page-controller.js +1 -1
- package/esnext/casino-tournaments-page-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BD-QREJe.js +558 -0
- package/stencil/index-97d17652-DJqGt8q2.js +542 -0
- package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
- package/stencil/index-b2193545-CF9C6kiu.cjs +1 -0
- package/stencil/index-b2193545-OH6E7v51.js +519 -0
- package/stencil/index-b2193545-eoIiLcDl.js +503 -0
- package/stencil/{ui-image-Bk8cIvcH.cjs → ui-image-CDCn_LHy.cjs} +1 -1
- package/stencil/{ui-image-DgbODkuX.js → ui-image-CDGN3Ekj.js} +1 -1
- package/stencil/{ui-image-CXqPvnQ2.js → ui-image-CNrnXPP3.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-Dh5Eqdlm.js} +2 -2
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-_K8Pt3w9.js} +2 -2
- package/stencil/{ui-skeleton-DSebcnN1.js → ui-skeleton-C73UqtBQ.js} +2 -2
- package/stencil/{ui-skeleton-B0BB970e.cjs → ui-skeleton-Caiy-FEL.cjs} +1 -1
- package/stencil/{ui-skeleton-D8L-WY77.js → ui-skeleton-CzV3R1-p.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-DDiK5zGt.cjs → ui-skeleton-ae35c6f2-C9l5j8aK.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BH4D8vHD.js → ui-skeleton-ae35c6f2-CLOd38Ia.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CcPx4a2P.js → ui-skeleton-ae35c6f2-SCby2j53.js} +1 -1
- package/components/CasinoTournamentsPageController-Czj_9f9q.cjs +0 -37
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
- package/stencil/index-b2193545-BS7xFIk4.js +0 -503
- package/stencil/index-b2193545-BTdVi7--.cjs +0 -1
- package/stencil/index-b2193545-rfNAj6ri.js +0 -519
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as H, b as K,
|
|
2
|
-
import { a as it, b as st } from "./CasinoTournamentsPageController-
|
|
1
|
+
import { S as H, b as K, f as z, c as Y, a as Z, d as J, g as v, j as l, l as w, n as N, q as B, u as Q, v as V, w as X, x as $, t as M, e as L, m as y, E as tt, p as j, y as et, z as nt, F as O } from "./CasinoTournamentsDetails-BsekkKcF.js";
|
|
2
|
+
import { a as it, b as st } from "./CasinoTournamentsPageController-DlDBOW7F.js";
|
|
3
3
|
function U(n, t) {
|
|
4
4
|
it(n, t);
|
|
5
5
|
}
|
|
6
|
-
const
|
|
6
|
+
const q = {
|
|
7
7
|
en: {
|
|
8
8
|
finished: "Finished",
|
|
9
9
|
starting: "Starting in ",
|
|
@@ -94,9 +94,9 @@ const A = {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
function rt(n) {
|
|
97
|
-
|
|
97
|
+
J(n, "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)}");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function x(n) {
|
|
100
100
|
let t, e, s = (
|
|
101
101
|
/*formatDate*/
|
|
102
102
|
n[10](
|
|
@@ -121,7 +121,7 @@ function q(n) {
|
|
|
121
121
|
)
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
|
-
let
|
|
124
|
+
let C = R(n), p = C(n);
|
|
125
125
|
function I(r, f) {
|
|
126
126
|
if (
|
|
127
127
|
/*status*/
|
|
@@ -144,10 +144,10 @@ function q(n) {
|
|
|
144
144
|
let F = I(n), c = F && F(n);
|
|
145
145
|
return {
|
|
146
146
|
c() {
|
|
147
|
-
t = v("div"), e = v("div"), a =
|
|
147
|
+
t = v("div"), e = v("div"), a = M(s), u = L(), o = v("div"), g = M(d), T = L(), b = v("div"), m = v("div"), p.c(), P = L(), 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(m, "class", "ProgressBar"), l(m, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
|
|
148
148
|
},
|
|
149
149
|
m(r, f) {
|
|
150
|
-
|
|
150
|
+
w(r, t, f), y(t, e), y(e, a), y(t, u), y(t, o), y(o, g), w(r, T, f), w(r, b, f), y(b, m), p.m(m, null), y(m, P), c && c.m(m, null), _ || (D = tt(
|
|
151
151
|
/*getDuration*/
|
|
152
152
|
n[9].call(null, b)
|
|
153
153
|
), _ = !0);
|
|
@@ -158,15 +158,15 @@ function q(n) {
|
|
|
158
158
|
r[10](
|
|
159
159
|
/*startdate*/
|
|
160
160
|
r[0]
|
|
161
|
-
) + "") &&
|
|
161
|
+
) + "") && j(a, s), f & /*enddate*/
|
|
162
162
|
2 && d !== (d = /*formatDate*/
|
|
163
163
|
r[10](
|
|
164
164
|
/*enddate*/
|
|
165
165
|
r[1]
|
|
166
|
-
) + "") &&
|
|
166
|
+
) + "") && j(g, d), C === (C = R(r)) && p ? p.p(r, f) : (p.d(1), p = C(r), p && (p.c(), p.m(m, P))), F === (F = I(r)) && c ? c.p(r, f) : (c && c.d(1), c = F && F(r), c && (c.c(), c.m(m, null)));
|
|
167
167
|
},
|
|
168
168
|
d(r) {
|
|
169
|
-
r && (
|
|
169
|
+
r && (B(t), B(T), B(b)), p.d(), c && c.d(), _ = !1, D();
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
172
|
}
|
|
@@ -182,7 +182,7 @@ function at(n) {
|
|
|
182
182
|
);
|
|
183
183
|
},
|
|
184
184
|
m(e, s) {
|
|
185
|
-
|
|
185
|
+
w(e, t, s);
|
|
186
186
|
},
|
|
187
187
|
p(e, s) {
|
|
188
188
|
s & /*getProgress*/
|
|
@@ -194,7 +194,7 @@ function at(n) {
|
|
|
194
194
|
);
|
|
195
195
|
},
|
|
196
196
|
d(e) {
|
|
197
|
-
e &&
|
|
197
|
+
e && B(t);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
}
|
|
@@ -205,11 +205,11 @@ function lt(n) {
|
|
|
205
205
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
206
206
|
},
|
|
207
207
|
m(e, s) {
|
|
208
|
-
|
|
208
|
+
w(e, t, s);
|
|
209
209
|
},
|
|
210
210
|
p: N,
|
|
211
211
|
d(e) {
|
|
212
|
-
e &&
|
|
212
|
+
e && B(t);
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
}
|
|
@@ -220,11 +220,11 @@ function ot(n) {
|
|
|
220
220
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
221
221
|
},
|
|
222
222
|
m(e, s) {
|
|
223
|
-
|
|
223
|
+
w(e, t, s);
|
|
224
224
|
},
|
|
225
225
|
p: N,
|
|
226
226
|
d(e) {
|
|
227
|
-
e &&
|
|
227
|
+
e && B(t);
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
230
|
}
|
|
@@ -235,26 +235,26 @@ function ut(n) {
|
|
|
235
235
|
), u;
|
|
236
236
|
return {
|
|
237
237
|
c() {
|
|
238
|
-
t = v("div"), e =
|
|
238
|
+
t = v("div"), e = M(
|
|
239
239
|
/*showRemain*/
|
|
240
240
|
n[6]
|
|
241
|
-
), s = L(), u =
|
|
241
|
+
), s = L(), u = M(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
242
242
|
},
|
|
243
243
|
m(o, d) {
|
|
244
|
-
|
|
244
|
+
w(o, t, d), y(t, e), y(t, s), y(t, u);
|
|
245
245
|
},
|
|
246
246
|
p(o, d) {
|
|
247
247
|
d & /*showRemain*/
|
|
248
|
-
64 &&
|
|
248
|
+
64 && j(
|
|
249
249
|
e,
|
|
250
250
|
/*showRemain*/
|
|
251
251
|
o[6]
|
|
252
252
|
), d & /*$_*/
|
|
253
253
|
256 && a !== (a = /*$_*/
|
|
254
|
-
o[8]("left") + "") &&
|
|
254
|
+
o[8]("left") + "") && j(u, a);
|
|
255
255
|
},
|
|
256
256
|
d(o) {
|
|
257
|
-
o &&
|
|
257
|
+
o && B(t);
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
260
|
}
|
|
@@ -271,23 +271,23 @@ function dt(n) {
|
|
|
271
271
|
), o;
|
|
272
272
|
return {
|
|
273
273
|
c() {
|
|
274
|
-
t = v("div"), s =
|
|
274
|
+
t = v("div"), s = M(e), a = L(), o = M(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
275
275
|
},
|
|
276
276
|
m(d, g) {
|
|
277
|
-
|
|
277
|
+
w(d, t, g), y(t, s), y(t, a), y(t, o);
|
|
278
278
|
},
|
|
279
279
|
p(d, g) {
|
|
280
280
|
g & /*$_*/
|
|
281
281
|
256 && e !== (e = /*$_*/
|
|
282
|
-
d[8]("starting") + "") &&
|
|
282
|
+
d[8]("starting") + "") && j(s, e), g & /*tournamentUntilStartDays*/
|
|
283
283
|
32 && u !== (u = /*getTextByDiff*/
|
|
284
284
|
d[11](
|
|
285
285
|
/*tournamentUntilStartDays*/
|
|
286
286
|
d[5]
|
|
287
|
-
) + "") &&
|
|
287
|
+
) + "") && j(o, u);
|
|
288
288
|
},
|
|
289
289
|
d(d) {
|
|
290
|
-
d &&
|
|
290
|
+
d && B(t);
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
293
|
}
|
|
@@ -298,18 +298,18 @@ function ct(n) {
|
|
|
298
298
|
), s;
|
|
299
299
|
return {
|
|
300
300
|
c() {
|
|
301
|
-
t = v("div"), s =
|
|
301
|
+
t = v("div"), s = M(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
302
302
|
},
|
|
303
303
|
m(a, u) {
|
|
304
|
-
|
|
304
|
+
w(a, t, u), y(t, s);
|
|
305
305
|
},
|
|
306
306
|
p(a, u) {
|
|
307
307
|
u & /*$_*/
|
|
308
308
|
256 && e !== (e = /*$_*/
|
|
309
|
-
a[8]("finished") + "") &&
|
|
309
|
+
a[8]("finished") + "") && j(s, e);
|
|
310
310
|
},
|
|
311
311
|
d(a) {
|
|
312
|
-
a &&
|
|
312
|
+
a && B(t);
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
315
|
}
|
|
@@ -317,31 +317,31 @@ function ft(n) {
|
|
|
317
317
|
let t, e = (
|
|
318
318
|
/*startdate*/
|
|
319
319
|
n[0] && /*enddate*/
|
|
320
|
-
n[1] &&
|
|
320
|
+
n[1] && x(n)
|
|
321
321
|
);
|
|
322
322
|
return {
|
|
323
323
|
c() {
|
|
324
324
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
325
325
|
},
|
|
326
326
|
m(s, a) {
|
|
327
|
-
|
|
327
|
+
w(s, t, a), e && e.m(t, null), n[17](t);
|
|
328
328
|
},
|
|
329
329
|
p(s, [a]) {
|
|
330
330
|
/*startdate*/
|
|
331
331
|
s[0] && /*enddate*/
|
|
332
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
332
|
+
s[1] ? e ? e.p(s, a) : (e = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
333
333
|
},
|
|
334
334
|
i: N,
|
|
335
335
|
o: N,
|
|
336
336
|
d(s) {
|
|
337
|
-
s &&
|
|
337
|
+
s && B(t), e && e.d(), n[17](null);
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
341
|
function gt(n, t, e) {
|
|
342
342
|
let s, a;
|
|
343
|
-
|
|
344
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "", R = "",
|
|
343
|
+
Q(n, st, (i) => e(8, a = i));
|
|
344
|
+
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "", R = "", C = "";
|
|
345
345
|
const p = () => {
|
|
346
346
|
fetch(m).then((h) => h.json()).then((h) => {
|
|
347
347
|
Object.keys(h).forEach((S) => {
|
|
@@ -351,28 +351,28 @@ function gt(n, t, e) {
|
|
|
351
351
|
console.log(h);
|
|
352
352
|
});
|
|
353
353
|
};
|
|
354
|
-
Object.keys(
|
|
355
|
-
U(i,
|
|
354
|
+
Object.keys(q).forEach((i) => {
|
|
355
|
+
U(i, q[i]);
|
|
356
356
|
});
|
|
357
357
|
const I = (i) => new Date(i).getTime(), F = (i, h) => (I(h) - I(i)) / (1e3 * 60), c = () => {
|
|
358
358
|
const i = /* @__PURE__ */ new Date();
|
|
359
|
-
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6,
|
|
359
|
+
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6, C = f(D));
|
|
360
360
|
}, r = (i) => {
|
|
361
361
|
const h = { month: "long" };
|
|
362
|
-
let S = new Date(i),
|
|
363
|
-
return `${S.getDate()} ${
|
|
362
|
+
let S = new Date(i), E = new Intl.DateTimeFormat(g, h).format(S);
|
|
363
|
+
return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
364
364
|
}, f = (i) => {
|
|
365
|
-
const h = (
|
|
366
|
-
const k = Math.floor(
|
|
365
|
+
const h = (E, k) => E + " " + a(k), S = (E) => {
|
|
366
|
+
const k = Math.floor(E);
|
|
367
367
|
return k < 10 ? `0${k}` : `${k}`;
|
|
368
368
|
};
|
|
369
369
|
if (i < 1440) {
|
|
370
|
-
const
|
|
371
|
-
return [
|
|
370
|
+
const E = i / 60, k = i % 60, W = (k - Math.floor(k)) * 60;
|
|
371
|
+
return [E, k, W].map((G) => S(G)).join(":");
|
|
372
372
|
}
|
|
373
373
|
return h(Math.ceil(i / (60 * 24)), "days");
|
|
374
374
|
};
|
|
375
|
-
|
|
375
|
+
V(() => {
|
|
376
376
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
377
377
|
const i = setInterval(
|
|
378
378
|
() => {
|
|
@@ -384,8 +384,8 @@ function gt(n, t, e) {
|
|
|
384
384
|
clearInterval(i);
|
|
385
385
|
};
|
|
386
386
|
});
|
|
387
|
-
function
|
|
388
|
-
|
|
387
|
+
function A(i) {
|
|
388
|
+
et[i ? "unshift" : "push"](() => {
|
|
389
389
|
_ = i, e(3, _);
|
|
390
390
|
});
|
|
391
391
|
}
|
|
@@ -403,9 +403,9 @@ function gt(n, t, e) {
|
|
|
403
403
|
4096 && g && c(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
404
404
|
4112 && g && f(D), n.$$.dirty & /*translationurl*/
|
|
405
405
|
32768 && m && p(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
406
|
-
8200 && T && _ &&
|
|
407
|
-
16392 && b && _ &&
|
|
408
|
-
65544 && P && _ &&
|
|
406
|
+
8200 && T && _ && nt(_, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
407
|
+
16392 && b && _ && X(_, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
408
|
+
65544 && P && _ && $(_, `${P}.Style`);
|
|
409
409
|
}, [
|
|
410
410
|
u,
|
|
411
411
|
o,
|
|
@@ -413,7 +413,7 @@ function gt(n, t, e) {
|
|
|
413
413
|
_,
|
|
414
414
|
D,
|
|
415
415
|
R,
|
|
416
|
-
|
|
416
|
+
C,
|
|
417
417
|
s,
|
|
418
418
|
a,
|
|
419
419
|
c,
|
|
@@ -424,7 +424,7 @@ function gt(n, t, e) {
|
|
|
424
424
|
b,
|
|
425
425
|
m,
|
|
426
426
|
P,
|
|
427
|
-
|
|
427
|
+
A
|
|
428
428
|
];
|
|
429
429
|
}
|
|
430
430
|
class mt extends H {
|
|
@@ -434,7 +434,7 @@ class mt extends H {
|
|
|
434
434
|
t,
|
|
435
435
|
gt,
|
|
436
436
|
ft,
|
|
437
|
-
|
|
437
|
+
Z,
|
|
438
438
|
{
|
|
439
439
|
startdate: 0,
|
|
440
440
|
enddate: 1,
|
|
@@ -452,52 +452,52 @@ class mt extends H {
|
|
|
452
452
|
return this.$$.ctx[0];
|
|
453
453
|
}
|
|
454
454
|
set startdate(t) {
|
|
455
|
-
this.$$set({ startdate: t }),
|
|
455
|
+
this.$$set({ startdate: t }), z();
|
|
456
456
|
}
|
|
457
457
|
get enddate() {
|
|
458
458
|
return this.$$.ctx[1];
|
|
459
459
|
}
|
|
460
460
|
set enddate(t) {
|
|
461
|
-
this.$$set({ enddate: t }),
|
|
461
|
+
this.$$set({ enddate: t }), z();
|
|
462
462
|
}
|
|
463
463
|
get status() {
|
|
464
464
|
return this.$$.ctx[2];
|
|
465
465
|
}
|
|
466
466
|
set status(t) {
|
|
467
|
-
this.$$set({ status: t }),
|
|
467
|
+
this.$$set({ status: t }), z();
|
|
468
468
|
}
|
|
469
469
|
get lang() {
|
|
470
470
|
return this.$$.ctx[12];
|
|
471
471
|
}
|
|
472
472
|
set lang(t) {
|
|
473
|
-
this.$$set({ lang: t }),
|
|
473
|
+
this.$$set({ lang: t }), z();
|
|
474
474
|
}
|
|
475
475
|
get clientstyling() {
|
|
476
476
|
return this.$$.ctx[13];
|
|
477
477
|
}
|
|
478
478
|
set clientstyling(t) {
|
|
479
|
-
this.$$set({ clientstyling: t }),
|
|
479
|
+
this.$$set({ clientstyling: t }), z();
|
|
480
480
|
}
|
|
481
481
|
get clientstylingurl() {
|
|
482
482
|
return this.$$.ctx[14];
|
|
483
483
|
}
|
|
484
484
|
set clientstylingurl(t) {
|
|
485
|
-
this.$$set({ clientstylingurl: t }),
|
|
485
|
+
this.$$set({ clientstylingurl: t }), z();
|
|
486
486
|
}
|
|
487
487
|
get translationurl() {
|
|
488
488
|
return this.$$.ctx[15];
|
|
489
489
|
}
|
|
490
490
|
set translationurl(t) {
|
|
491
|
-
this.$$set({ translationurl: t }),
|
|
491
|
+
this.$$set({ translationurl: t }), z();
|
|
492
492
|
}
|
|
493
493
|
get mbsource() {
|
|
494
494
|
return this.$$.ctx[16];
|
|
495
495
|
}
|
|
496
496
|
set mbsource(t) {
|
|
497
|
-
this.$$set({ mbsource: t }),
|
|
497
|
+
this.$$set({ mbsource: t }), z();
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
|
|
500
|
+
Y(mt, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
501
501
|
export {
|
|
502
502
|
mt as default
|
|
503
503
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),E=require("./CasinoTournamentsPageController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),E=require("./CasinoTournamentsPageController-DpzlGcSu.cjs");function C(r,e){E.addMessages(r,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:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},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"}};function O(r){t.append_styles(r,"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 z(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,k,y,m,w,p,b;function S(s,f){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?L:q}let T=S(r),_=T(r);function P(s,f){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 v=P(r),c=v&&v(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),k=t.space(),y=t.element("div"),m=t.element("div"),_.c(),w=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(m,"class","ProgressBar"),t.attr(m,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,f){t.insert(s,e,f),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,k,f),t.insert(s,y,f),t.append(y,m),_.m(m,null),t.append(m,w),c&&c.m(m,null),p||(b=t.action_destroyer(r[9].call(null,y)),p=!0)},p(s,f){f&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),f&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),T===(T=S(s))&&_?_.p(s,f):(_.d(1),_=T(s),_&&(_.c(),_.m(m,w))),v===(v=P(s))&&c?c.p(s,f):(c&&c.d(1),c=v&&v(s),c&&(c.c(),c.m(m,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),_.d(),c&&c.d(),p=!1,b()}}}function q(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[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(r){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(r){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(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[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(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[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,g){t.insert(d,e,g),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function W(r){let e,n=r[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(r){let e,n=r[0]&&r[1]&&z(r);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),r[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=z(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(),r[17](null)}}}function H(r,e,n){let a,l;t.component_subscribe(r,E.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:m=""}=e,{mbsource:w}=e,p,b="",S="",T="";const _=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(F=>{C(F,h[F])})}).catch(h=>{console.log(h)})};Object.keys(M).forEach(i=>{C(i,M[i])});const P=i=>new Date(i).getTime(),v=(i,h)=>(P(h)-P(i))/(1e3*60),c=()=>{const i=new Date;n(4,b=v(i,o)),n(5,S=v(i,u)),n(6,T=f(b))},s=i=>{const h={month:"long"};let F=new Date(i),B=new Intl.DateTimeFormat(g,h).format(F);return`${F.getDate()} ${B}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},f=i=>{const h=(B,D)=>B+" "+l(D),F=B=>{const D=Math.floor(B);return D<10?`0${D}`:`${D}`};if(i<1440){const B=i/60,D=i%60,x=(D-Math.floor(D))*60;return[B,D,x].map(I=>F(I)).join(":")}return h(Math.ceil(i/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&c()},1e3);return()=>{clearInterval(i)}});function R(i){t.binding_callbacks[i?"unshift":"push"](()=>{p=i,n(3,p)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,k=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,m=i.translationurl),"mbsource"in i&&n(16,w=i.mbsource)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const i=v(u,o),h=100/i;return Math.floor((i-b)*h)}),r.$$.dirty&19&&u&&o&&c()&&f(b),r.$$.dirty&4096&&g&&c(),r.$$.dirty&4112&&g&&f(b),r.$$.dirty&32768&&m&&_(),r.$$.dirty&8200&&k&&p&&t.setClientStyling(p,k),r.$$.dirty&16392&&y&&p&&t.setClientStylingURL(p,y),r.$$.dirty&65544&&w&&p&&t.setStreamStyling(p,`${w}.Style`)},[u,o,d,p,b,S,T,a,l,c,s,f,g,k,y,m,w,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},O)}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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),G=require("./CasinoTournamentsPageController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),G=require("./CasinoTournamentsPageController-DpzlGcSu.cjs");require("../stencil/ui-image-CDCn_LHy.cjs");function j({withLocale:a,translations:t}){G.$locale.subscribe(n=>{n==null&&(G.$dictionary.set(t),G.$locale.set(a))})}function M(a,t){G.addMessages(a,t)}function F(a){G.$locale.set(a)}const z={en:{loading:"Loading, please wait ...",playNow:"Play Now",casino:"CASINO",sports:"SPORTSBOOK",contribution:"Contribution",noGamesAvailable:"No games have been configured yet!"}};function U(a){e.append_styles(a,"svelte-grpqez","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .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:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}")}function O(a,t,n){const s=a.slice();return s[20]=t[n],s}function P(a,t,n){const s=a.slice();return s[20]=t[n],s}function W(a){let t,n;return{c(){t=e.element("div"),n=e.element("casino-tournaments-tab"),e.set_custom_element_data(n,"part","TournamentGames"),e.set_custom_element_data(n,"tabs","casino,sports"),e.set_custom_element_data(n,"tab","casino"),e.set_custom_element_data(n,"tid",L),e.set_custom_element_data(n,"clientstyling",a[0]),e.set_custom_element_data(n,"clientstylingurl",a[1]),e.set_custom_element_data(n,"mbsource",a[2]),e.attr(t,"class","GamesTabNav")},m(s,l){e.insert(s,t,l),e.append(t,n)},p(s,l){l&1&&e.set_custom_element_data(n,"clientstyling",s[0]),l&2&&e.set_custom_element_data(n,"clientstylingurl",s[1]),l&4&&e.set_custom_element_data(n,"mbsource",s[2])},d(s){s&&e.detach(t)}}}function E(a){let t,n=a[8]("noGamesAvailable")+"",s;return{c(){t=e.element("div"),s=e.text(n),e.attr(t,"class","NoGames")},m(l,c){e.insert(l,t,c),e.append(t,s)},p(l,c){c&256&&n!==(n=l[8]("noGamesAvailable")+"")&&e.set_data(s,n)},d(l){l&&e.detach(t)}}}function I(a){let t,n=e.ensure_array_like(a[7]),s=[];for(let l=0;l<n.length;l+=1)s[l]=q(P(a,n,l));return{c(){for(let l=0;l<s.length;l+=1)s[l].c();t=e.empty()},m(l,c){for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(l,c);e.insert(l,t,c)},p(l,c){if(c&1408){n=e.ensure_array_like(l[7]);let i;for(i=0;i<n.length;i+=1){const u=P(l,n,i);s[i]?s[i].p(u,c):(s[i]=q(u),s[i].c(),s[i].m(t.parentNode,t))}for(;i<s.length;i+=1)s[i].d(1);s.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(s,l)}}}function q(a){let t,n,s=a[8]("playNow")+"",l,c,i,u,d,g,v,p,h;return{c(){t=e.element("div"),n=e.element("span"),l=e.text(s),c=e.space(),i=e.element("ui-image"),v=e.space(),e.attr(n,"class","PlayNowButton"),e.src_url_equal(i.src,u=a[20].thumbnail)||e.set_custom_element_data(i,"src",u),e.set_custom_element_data(i,"width","132px"),e.set_custom_element_data(i,"height","100px"),e.set_custom_element_data(i,"alt",d=a[20].name),e.set_custom_element_data(i,"title",g=a[20].name),e.attr(t,"class","item"),e.attr(t,"role","button"),e.attr(t,"tabindex","0")},m(b,m){e.insert(b,t,m),e.append(t,n),e.append(n,l),e.append(t,c),e.append(t,i),e.append(t,v),p||(h=e.listen(t,"click",function(){e.is_function(a[10](a[20]))&&a[10](a[20]).apply(this,arguments)}),p=!0)},p(b,m){a=b,m&256&&s!==(s=a[8]("playNow")+"")&&e.set_data(l,s),m&128&&!e.src_url_equal(i.src,u=a[20].thumbnail)&&e.set_custom_element_data(i,"src",u),m&128&&d!==(d=a[20].name)&&e.set_custom_element_data(i,"alt",d),m&128&&g!==(g=a[20].name)&&e.set_custom_element_data(i,"title",g)},d(b){b&&e.detach(t),p=!1,h()}}}function B(a){let t,n=a[20].rule+"",s,l,c=a[8]("contribution")+"",i;return{c(){t=e.element("li"),s=e.text(n),l=e.space(),i=e.text(c),e.attr(t,"part","li"),e.attr(t,"class","Market")},m(u,d){e.insert(u,t,d),e.append(t,s),e.append(t,l),e.append(t,i)},p(u,d){d&64&&n!==(n=u[20].rule+"")&&e.set_data(s,n),d&256&&c!==(c=u[8]("contribution")+"")&&e.set_data(i,c)},d(u){u&&e.detach(t)}}}function x(a){var k,N;let t,n,s,l,c,i,u,d,g,v,p=a[3]&&((k=a[3].wallet)==null?void 0:k.sports)&&((N=a[3].wallet)==null?void 0:N.casino)&&W(a);function h(r,y){var w;return(w=r[7])!=null&&w.length?I:E}let b=h(a),m=b(a),T=e.ensure_array_like(a[6]),f=[];for(let r=0;r<T.length;r+=1)f[r]=B(O(a,T,r));return{c(){t=e.element("div"),p&&p.c(),n=e.space(),s=e.element("div"),l=e.element("div"),c=e.element("div"),m.c(),u=e.space(),d=e.element("div"),g=e.element("ul");for(let r=0;r<f.length;r+=1)f[r].c();e.attr(c,"class","GameList items"),e.attr(l,"class",i="TabContent GamesContent "+(a[5]!="casino"?"hidden":"")),e.attr(g,"class","SportsPage"),e.attr(d,"class",v="TabContent GamesContent "+(a[5]!="sports"?"hidden":"")),e.attr(s,"class","GamesWrapper"),e.attr(t,"class",G.isMobile(a[9])?"MobileClass":"")},m(r,y){e.insert(r,t,y),p&&p.m(t,null),e.append(t,n),e.append(t,s),e.append(s,l),e.append(l,c),m.m(c,null),e.append(s,u),e.append(s,d),e.append(d,g);for(let w=0;w<f.length;w+=1)f[w]&&f[w].m(g,null);a[13](t)},p(r,[y]){var w,o;if(r[3]&&((w=r[3].wallet)!=null&&w.sports)&&((o=r[3].wallet)!=null&&o.casino)?p?p.p(r,y):(p=W(r),p.c(),p.m(t,n)):p&&(p.d(1),p=null),b===(b=h(r))&&m?m.p(r,y):(m.d(1),m=b(r),m&&(m.c(),m.m(c,null))),y&32&&i!==(i="TabContent GamesContent "+(r[5]!="casino"?"hidden":""))&&e.attr(l,"class",i),y&320){T=e.ensure_array_like(r[6]);let _;for(_=0;_<T.length;_+=1){const C=O(r,T,_);f[_]?f[_].p(C,y):(f[_]=B(C),f[_].c(),f[_].m(g,null))}for(;_<f.length;_+=1)f[_].d(1);f.length=T.length}y&32&&v!==(v="TabContent GamesContent "+(r[5]!="sports"?"hidden":""))&&e.attr(d,"class",v)},i:e.noop,o:e.noop,d(r){r&&e.detach(t),p&&p.d(),m.d(),e.destroy_each(f,r),a[13](null)}}}let L="gameTab";function D(a,t,n){let s;e.component_subscribe(a,G.$format,o=>n(8,s=o));let{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{mbsource:i}=t,{translationurl:u}=t,{lang:d="en"}=t,g="casino",v=[],p=[],h,b=window.navigator.userAgent,m;j({withLocale:"en",translations:{}});const T=()=>{fetch(u).then(o=>o.json()).then(o=>{Object.keys(o).forEach(_=>{M(_,o[_])})}).catch(o=>{console.log(o)})};Object.keys(z).forEach(o=>{M(o,z[o])});const f=()=>{F(d),setTimeout(()=>{k()},10)},k=()=>{window.postMessage({type:"TournamentsTabsLocalize",tabTitleTranslations:{casino:s("casino"),sports:s("sports")}},window.location.href)},N=o=>{window.postMessage({type:"TournamentGameAction",gameId:o.id,name:o.name,launchUrl:o.launchUrl},window.location.href)},r=()=>{var _,C,A;n(7,p=((_=h.games)==null?void 0:_.items)||[]);const o=(A=(C=h.metadata)==null?void 0:C.sports)==null?void 0:A.rules;if(o){n(5,g=h.wallet.casino?"casino":"sports");try{const S=JSON.parse(o);n(6,v=S[d]||S["*"])}catch(S){console.error("Error parsing tournament rules",S)}}},y=o=>{if(!o.data||!o.data.type)return;const _=o.data.tid||"";switch(o.data.type){case"TournamentsTabSwitch":_===L&&n(5,g=o.data.tab);break;case"TournamentsTabListenerLoaded":k();break;case"TournamentsGamesUpdate":n(3,h=o.data.details),r();break;default:console.warn(`Unhandled message type: ${o.data.type}`);break}};e.onMount(()=>(window.postMessage({type:"TournamentsGamesListenerLoaded",gamesTabTid:L},window.location.href),window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}));function w(o){e.binding_callbacks[o?"unshift":"push"](()=>{m=o,n(4,m)})}return a.$$set=o=>{"clientstyling"in o&&n(0,l=o.clientstyling),"clientstylingurl"in o&&n(1,c=o.clientstylingurl),"mbsource"in o&&n(2,i=o.mbsource),"translationurl"in o&&n(11,u=o.translationurl),"lang"in o&&n(12,d=o.lang)},a.$$.update=()=>{a.$$.dirty&8&&h&&r(),a.$$.dirty&4096&&d&&f(),a.$$.dirty&2048&&u&&T(),a.$$.dirty&17&&l&&m&&e.setClientStyling(m,l),a.$$.dirty&18&&c&&m&&e.setClientStylingURL(m,c),a.$$.dirty&20&&i&&m&&e.setStreamStyling(m,`${i}.Style`)},[l,c,i,h,m,g,v,p,s,b,N,u,d,w]}class R extends e.SvelteComponent{constructor(t){super(),e.init(this,t,D,x,e.safe_not_equal,{clientstyling:0,clientstylingurl:1,mbsource:2,translationurl:11,lang:12},U)}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[11]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}}e.create_custom_element(R,{clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},lang:{}},[],[],!0);exports.default=R;
|