@everymatrix/casino-tournaments-controller 1.47.1 → 1.47.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/{CasinoTournamentsController-COIiFc-x.cjs → CasinoTournamentsController-CPH58bQV.cjs} +1 -1
- package/components/{CasinoTournamentsController-B3OvVS_7.js → CasinoTournamentsController-CvioNHGJ.js} +2 -2
- package/components/{CasinoTournamentsFilterController-BWVXr8cb.js → CasinoTournamentsFilterController-Mwfxr6Rz.js} +1 -1
- package/components/{CasinoTournamentsFilterController-Cj49p9F0.cjs → CasinoTournamentsFilterController-xuSUDvBV.cjs} +1 -1
- package/components/{CasinoTournamentsListController-5AAbmc2X.js → CasinoTournamentsListController-D1vpFleZ.js} +2 -2
- package/components/{CasinoTournamentsListController-Zi6Nk1Td.cjs → CasinoTournamentsListController-Idt4D-0X.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnail-kK8eTJVM.js → CasinoTournamentsThumbnail-CScJH1pw.js} +237 -229
- package/components/CasinoTournamentsThumbnail-Cg2BAKDj.cjs +4 -0
- package/components/CasinoTournamentsThumbnailController-CEtau-5d.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailController-DZ5V6qTv.js → CasinoTournamentsThumbnailController-DHH0NbKV.js} +257 -241
- package/components/{CasinoTournamentsThumbnailDuration-D6-gp03Q.js → CasinoTournamentsThumbnailDuration-BNdXqtZm.js} +99 -98
- package/components/CasinoTournamentsThumbnailDuration-CZWQGL5W.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailGamesSlider-CfyER909.cjs → CasinoTournamentsThumbnailGamesSlider-B4rnmekl.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BsX-aRFF.js → CasinoTournamentsThumbnailGamesSlider-DwSidOLK.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-Dq7XD8vA.cjs → CasinoTournamentsThumbnailPrizes-B5TWZfpZ.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-D8MMxd0D.js → CasinoTournamentsThumbnailPrizes-Der5Oby0.js} +1 -1
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnail-BgzPt-Bq.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-CO_JNQKh.cjs +0 -1
- package/components/CasinoTournamentsThumbnailDuration-DxX6hlRg.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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, d as l, h as T, n as U, j as B, k as X, w as $, t as E, m as L, o as h, A as tt, p as M, u as et, D as A, $ as nt } from "./CasinoTournamentsController-CvioNHGJ.js";
|
|
2
2
|
function N(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
@@ -88,7 +88,7 @@ function it(i) {
|
|
|
88
88
|
V(i, "svelte-n7yu38", "*,*::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(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}");
|
|
89
89
|
}
|
|
90
90
|
function H(i) {
|
|
91
|
-
let t, e,
|
|
91
|
+
let t, e, s = (
|
|
92
92
|
/*formatDate*/
|
|
93
93
|
i[10](
|
|
94
94
|
/*startdate*/
|
|
@@ -100,80 +100,80 @@ function H(i) {
|
|
|
100
100
|
/*enddate*/
|
|
101
101
|
i[1]
|
|
102
102
|
) + ""
|
|
103
|
-
), g, S, p, m,
|
|
104
|
-
function I(
|
|
103
|
+
), g, S, p, m, D, F, j;
|
|
104
|
+
function I(r, b) {
|
|
105
105
|
return (
|
|
106
106
|
/*status*/
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
r[2] == "Finished" || /*status*/
|
|
108
|
+
r[2] == "Closing" || /*status*/
|
|
109
|
+
r[2] == "Closed" ? at : (
|
|
110
110
|
/*tournamentUntilStartDays*/
|
|
111
|
-
|
|
111
|
+
r[5] > 0 ? rt : st
|
|
112
112
|
)
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
|
-
let
|
|
116
|
-
function R(
|
|
115
|
+
let z = I(i), y = z(i);
|
|
116
|
+
function R(r, b) {
|
|
117
117
|
if (
|
|
118
118
|
/*status*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
r[2] == "Finished" || /*status*/
|
|
120
|
+
r[2] == "Closing" || /*status*/
|
|
121
|
+
r[2] == "Closed"
|
|
122
122
|
) return ut;
|
|
123
123
|
if (
|
|
124
124
|
/*tournamentUntilStartDays*/
|
|
125
|
-
|
|
125
|
+
r[5] > 0
|
|
126
126
|
) return ot;
|
|
127
127
|
if (
|
|
128
128
|
/*tournamentLeftDays*/
|
|
129
|
-
|
|
129
|
+
r[4] > 0
|
|
130
130
|
) return lt;
|
|
131
131
|
}
|
|
132
132
|
let k = R(i), f = k && k(i);
|
|
133
133
|
return {
|
|
134
134
|
c() {
|
|
135
|
-
t =
|
|
135
|
+
t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), m = 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(m, "class", "ProgressBar"), l(m, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
|
|
136
136
|
},
|
|
137
|
-
m(
|
|
138
|
-
T(
|
|
137
|
+
m(r, b) {
|
|
138
|
+
T(r, t, b), h(t, e), h(e, a), h(t, u), h(t, o), h(o, g), T(r, S, b), T(r, p, b), h(p, m), y.m(m, null), h(m, D), f && f.m(m, null), F || (j = tt(
|
|
139
139
|
/*getDuration*/
|
|
140
140
|
i[9].call(null, p)
|
|
141
141
|
), F = !0);
|
|
142
142
|
},
|
|
143
|
-
p(
|
|
144
|
-
|
|
145
|
-
1 &&
|
|
146
|
-
|
|
143
|
+
p(r, b) {
|
|
144
|
+
b & /*startdate*/
|
|
145
|
+
1 && s !== (s = /*formatDate*/
|
|
146
|
+
r[10](
|
|
147
147
|
/*startdate*/
|
|
148
|
-
|
|
149
|
-
) + "") &&
|
|
148
|
+
r[0]
|
|
149
|
+
) + "") && M(a, s), b & /*enddate*/
|
|
150
150
|
2 && d !== (d = /*formatDate*/
|
|
151
|
-
|
|
151
|
+
r[10](
|
|
152
152
|
/*enddate*/
|
|
153
|
-
|
|
154
|
-
) + "") &&
|
|
153
|
+
r[1]
|
|
154
|
+
) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(m, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(m, null)));
|
|
155
155
|
},
|
|
156
|
-
d(
|
|
157
|
-
|
|
156
|
+
d(r) {
|
|
157
|
+
r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function st(i) {
|
|
162
162
|
let t;
|
|
163
163
|
return {
|
|
164
164
|
c() {
|
|
165
|
-
t =
|
|
165
|
+
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), A(
|
|
166
166
|
t,
|
|
167
167
|
"width",
|
|
168
168
|
/*getProgress*/
|
|
169
169
|
i[7]() + "%"
|
|
170
170
|
);
|
|
171
171
|
},
|
|
172
|
-
m(e,
|
|
173
|
-
T(e, t,
|
|
172
|
+
m(e, s) {
|
|
173
|
+
T(e, t, s);
|
|
174
174
|
},
|
|
175
|
-
p(e,
|
|
176
|
-
|
|
175
|
+
p(e, s) {
|
|
176
|
+
s & /*getProgress*/
|
|
177
177
|
128 && A(
|
|
178
178
|
t,
|
|
179
179
|
"width",
|
|
@@ -182,22 +182,22 @@ function rt(i) {
|
|
|
182
182
|
);
|
|
183
183
|
},
|
|
184
184
|
d(e) {
|
|
185
|
-
e &&
|
|
185
|
+
e && B(t);
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function rt(i) {
|
|
190
190
|
let t;
|
|
191
191
|
return {
|
|
192
192
|
c() {
|
|
193
|
-
t =
|
|
193
|
+
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
194
194
|
},
|
|
195
|
-
m(e,
|
|
196
|
-
T(e, t,
|
|
195
|
+
m(e, s) {
|
|
196
|
+
T(e, t, s);
|
|
197
197
|
},
|
|
198
198
|
p: U,
|
|
199
199
|
d(e) {
|
|
200
|
-
e &&
|
|
200
|
+
e && B(t);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
}
|
|
@@ -205,52 +205,52 @@ function at(i) {
|
|
|
205
205
|
let t;
|
|
206
206
|
return {
|
|
207
207
|
c() {
|
|
208
|
-
t =
|
|
208
|
+
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
209
209
|
},
|
|
210
|
-
m(e,
|
|
211
|
-
T(e, t,
|
|
210
|
+
m(e, s) {
|
|
211
|
+
T(e, t, s);
|
|
212
212
|
},
|
|
213
213
|
p: U,
|
|
214
214
|
d(e) {
|
|
215
|
-
e &&
|
|
215
|
+
e && B(t);
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
219
|
function lt(i) {
|
|
220
|
-
let t, e,
|
|
220
|
+
let t, e, s, a = (
|
|
221
221
|
/*$_*/
|
|
222
|
-
i[8]("
|
|
222
|
+
i[8]("left") + ""
|
|
223
223
|
), u;
|
|
224
224
|
return {
|
|
225
225
|
c() {
|
|
226
|
-
t =
|
|
226
|
+
t = v("div"), e = E(
|
|
227
227
|
/*showRemain*/
|
|
228
228
|
i[6]
|
|
229
|
-
),
|
|
229
|
+
), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
230
230
|
},
|
|
231
231
|
m(o, d) {
|
|
232
|
-
T(o, t, d), h(t, e), h(t,
|
|
232
|
+
T(o, t, d), h(t, e), h(t, s), h(t, u);
|
|
233
233
|
},
|
|
234
234
|
p(o, d) {
|
|
235
235
|
d & /*showRemain*/
|
|
236
|
-
64 &&
|
|
236
|
+
64 && M(
|
|
237
237
|
e,
|
|
238
238
|
/*showRemain*/
|
|
239
239
|
o[6]
|
|
240
240
|
), d & /*$_*/
|
|
241
241
|
256 && a !== (a = /*$_*/
|
|
242
|
-
o[8]("
|
|
242
|
+
o[8]("left") + "") && M(u, a);
|
|
243
243
|
},
|
|
244
244
|
d(o) {
|
|
245
|
-
o &&
|
|
245
|
+
o && B(t);
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
function ot(i) {
|
|
250
250
|
let t, e = (
|
|
251
251
|
/*$_*/
|
|
252
|
-
i[8]("
|
|
253
|
-
),
|
|
252
|
+
i[8]("starting") + ""
|
|
253
|
+
), s, a, u = (
|
|
254
254
|
/*getTextByDiff*/
|
|
255
255
|
i[11](
|
|
256
256
|
/*tournamentUntilStartDays*/
|
|
@@ -259,45 +259,45 @@ function ot(i) {
|
|
|
259
259
|
), o;
|
|
260
260
|
return {
|
|
261
261
|
c() {
|
|
262
|
-
t =
|
|
262
|
+
t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
263
263
|
},
|
|
264
264
|
m(d, g) {
|
|
265
|
-
T(d, t, g), h(t,
|
|
265
|
+
T(d, t, g), h(t, s), h(t, a), h(t, o);
|
|
266
266
|
},
|
|
267
267
|
p(d, g) {
|
|
268
268
|
g & /*$_*/
|
|
269
269
|
256 && e !== (e = /*$_*/
|
|
270
|
-
d[8]("
|
|
270
|
+
d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
|
|
271
271
|
32 && u !== (u = /*getTextByDiff*/
|
|
272
272
|
d[11](
|
|
273
273
|
/*tournamentUntilStartDays*/
|
|
274
274
|
d[5]
|
|
275
|
-
) + "") &&
|
|
275
|
+
) + "") && M(o, u);
|
|
276
276
|
},
|
|
277
277
|
d(d) {
|
|
278
|
-
d &&
|
|
278
|
+
d && B(t);
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
function ut(i) {
|
|
283
283
|
let t, e = (
|
|
284
284
|
/*$_*/
|
|
285
|
-
i[8]("
|
|
286
|
-
),
|
|
285
|
+
i[8]("finished") + ""
|
|
286
|
+
), s;
|
|
287
287
|
return {
|
|
288
288
|
c() {
|
|
289
|
-
t =
|
|
289
|
+
t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
290
290
|
},
|
|
291
291
|
m(a, u) {
|
|
292
|
-
T(a, t, u), h(t,
|
|
292
|
+
T(a, t, u), h(t, s);
|
|
293
293
|
},
|
|
294
294
|
p(a, u) {
|
|
295
295
|
u & /*$_*/
|
|
296
296
|
256 && e !== (e = /*$_*/
|
|
297
|
-
a[8]("
|
|
297
|
+
a[8]("finished") + "") && M(s, e);
|
|
298
298
|
},
|
|
299
299
|
d(a) {
|
|
300
|
-
a &&
|
|
300
|
+
a && B(t);
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
}
|
|
@@ -309,28 +309,28 @@ function dt(i) {
|
|
|
309
309
|
);
|
|
310
310
|
return {
|
|
311
311
|
c() {
|
|
312
|
-
t =
|
|
312
|
+
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
313
313
|
},
|
|
314
|
-
m(
|
|
315
|
-
T(
|
|
314
|
+
m(s, a) {
|
|
315
|
+
T(s, t, a), e && e.m(t, null), i[16](t);
|
|
316
316
|
},
|
|
317
|
-
p(
|
|
317
|
+
p(s, [a]) {
|
|
318
318
|
/*startdate*/
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
s[0] && /*enddate*/
|
|
320
|
+
s[1] ? e ? e.p(s, a) : (e = H(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
321
321
|
},
|
|
322
322
|
i: U,
|
|
323
323
|
o: U,
|
|
324
|
-
d(
|
|
325
|
-
|
|
324
|
+
d(s) {
|
|
325
|
+
s && B(t), e && e.d(), i[16](null);
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
329
|
function ct(i, t, e) {
|
|
330
|
-
let
|
|
330
|
+
let s, a;
|
|
331
331
|
X(i, nt, (n) => e(8, a = n));
|
|
332
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: m = "" } = t,
|
|
333
|
-
const
|
|
332
|
+
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: m = "" } = t, D, F = "", j = "", I = "";
|
|
333
|
+
const z = () => {
|
|
334
334
|
fetch(m).then((c) => c.json()).then((c) => {
|
|
335
335
|
Object.keys(c).forEach((_) => {
|
|
336
336
|
N(_, c[_]);
|
|
@@ -344,30 +344,30 @@ function ct(i, t, e) {
|
|
|
344
344
|
});
|
|
345
345
|
const y = (n) => new Date(n).getTime(), R = (n, c) => (y(c) - y(n)) / (1e3 * 60), k = () => {
|
|
346
346
|
const n = /* @__PURE__ */ new Date();
|
|
347
|
-
e(4, F = R(n, o)), e(5, j = R(n, u)), e(6, I =
|
|
347
|
+
e(4, F = R(n, o)), e(5, j = R(n, u)), e(6, I = r(F));
|
|
348
348
|
}, f = (n) => {
|
|
349
349
|
const c = { month: "long" };
|
|
350
350
|
let _ = new Date(n), P = new Intl.DateTimeFormat(g, c).format(_);
|
|
351
351
|
return `${_.getDate()} ${P}, ${_.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${_.getUTCFullYear()}`;
|
|
352
|
-
},
|
|
353
|
-
const c = (P,
|
|
354
|
-
const
|
|
355
|
-
return
|
|
352
|
+
}, r = (n) => {
|
|
353
|
+
const c = (P, w) => P + " " + a(w), _ = (P) => {
|
|
354
|
+
const w = Math.floor(P);
|
|
355
|
+
return w < 10 ? `0${w}` : `${w}`;
|
|
356
356
|
};
|
|
357
357
|
if (n < 1440) {
|
|
358
|
-
const P = n / 60,
|
|
359
|
-
return [P,
|
|
358
|
+
const P = n / 60, w = n % 60, W = (w - Math.floor(w)) * 60;
|
|
359
|
+
return [P, w, W].map((G) => _(G)).join(":");
|
|
360
360
|
}
|
|
361
|
-
return c(Math.ceil(n / (60 * 24)), "
|
|
362
|
-
},
|
|
361
|
+
return c(Math.ceil(n / (60 * 24)), "days");
|
|
362
|
+
}, b = () => {
|
|
363
363
|
let n = document.createElement("style");
|
|
364
|
-
n.innerHTML = S,
|
|
364
|
+
n.innerHTML = S, D.appendChild(n);
|
|
365
365
|
}, q = () => {
|
|
366
366
|
let n = new URL(p), c = document.createElement("style");
|
|
367
367
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
368
368
|
c.innerHTML = _, setTimeout(
|
|
369
369
|
() => {
|
|
370
|
-
|
|
370
|
+
D.appendChild(c);
|
|
371
371
|
},
|
|
372
372
|
1
|
|
373
373
|
), setTimeout(
|
|
@@ -378,6 +378,7 @@ function ct(i, t, e) {
|
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
380
|
$(() => {
|
|
381
|
+
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
381
382
|
const n = setInterval(
|
|
382
383
|
() => {
|
|
383
384
|
u && o && k();
|
|
@@ -388,37 +389,37 @@ function ct(i, t, e) {
|
|
|
388
389
|
});
|
|
389
390
|
function x(n) {
|
|
390
391
|
et[n ? "unshift" : "push"](() => {
|
|
391
|
-
|
|
392
|
+
D = n, e(3, D);
|
|
392
393
|
});
|
|
393
394
|
}
|
|
394
395
|
return i.$$set = (n) => {
|
|
395
396
|
"startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15, m = n.translationurl);
|
|
396
397
|
}, i.$$.update = () => {
|
|
397
398
|
i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
398
|
-
19 && e(7,
|
|
399
|
+
19 && e(7, s = () => {
|
|
399
400
|
if (F <= 0) return 100;
|
|
400
401
|
const n = R(u, o), c = 100 / n;
|
|
401
402
|
return Math.floor((n - F) * c);
|
|
402
403
|
}), i.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
403
|
-
19 && u && o && k() &&
|
|
404
|
+
19 && u && o && k() && r(F), i.$$.dirty & /*lang*/
|
|
404
405
|
4096 && g && k(), i.$$.dirty & /*lang, tournamentLeftDays*/
|
|
405
|
-
4112 && g &&
|
|
406
|
-
32768 && m &&
|
|
407
|
-
8200 &&
|
|
408
|
-
16392 &&
|
|
406
|
+
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
407
|
+
32768 && m && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
408
|
+
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
409
|
+
16392 && D && p && q();
|
|
409
410
|
}, [
|
|
410
411
|
u,
|
|
411
412
|
o,
|
|
412
413
|
d,
|
|
413
|
-
|
|
414
|
+
D,
|
|
414
415
|
F,
|
|
415
416
|
j,
|
|
416
417
|
I,
|
|
417
|
-
|
|
418
|
+
s,
|
|
418
419
|
a,
|
|
419
420
|
k,
|
|
420
421
|
f,
|
|
421
|
-
|
|
422
|
+
r,
|
|
422
423
|
g,
|
|
423
424
|
S,
|
|
424
425
|
p,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-CPH58bQV.cjs");function C(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:"İç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"}};function L(i){t.append_styles(i,"svelte-n7yu38","*,*::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(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}")}function E(i){let e,n,a=i[10](i[0])+"",l,u,o,d=i[10](i[1])+"",g,T,y,h,b,v,S;function P(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?U:O}let w=P(i),m=w(i);function B(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return H;if(s[5]>0)return A;if(s[4]>0)return q}let D=B(i),f=D&&D(i);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),T=t.space(),y=t.element("div"),h=t.element("div"),m.c(),b=t.space(),f&&f.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(h,"class","ProgressBar"),t.attr(h,"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,g),t.insert(s,T,_),t.insert(s,y,_),t.append(y,h),m.m(h,null),t.append(h,b),f&&f.m(h,null),v||(S=t.action_destroyer(i[9].call(null,y)),v=!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(g,d),w===(w=P(s))&&m?m.p(s,_):(m.d(1),m=w(s),m&&(m.c(),m.m(h,b))),D===(D=B(s))&&f?f.p(s,_):(f&&f.d(1),f=D&&D(s),f&&(f.c(),f.m(h,null)))},d(s){s&&(t.detach(e),t.detach(T),t.detach(y)),m.d(),f&&f.d(),v=!1,S()}}}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 U(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 q(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,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 H(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 W(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[16](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[16](null)}}}function G(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:g="en"}=e,{clientstyling:T=""}=e,{clientstylingurl:y=""}=e,{translationurl:h=""}=e,b,v="",S="",P="";const w=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(p=>{C(p,c[p])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(r=>{C(r,M[r])});const m=r=>new Date(r).getTime(),B=(r,c)=>(m(c)-m(r))/(1e3*60),D=()=>{const r=new Date;n(4,v=B(r,o)),n(5,S=B(r,u)),n(6,P=s(v))},f=r=>{const c={month:"long"};let p=new Date(r),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=r=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(r<1440){const k=r/60,F=r%60,x=(F-Math.floor(F))*60;return[k,F,x].map(I=>p(I)).join(":")}return c(Math.ceil(r/(60*24)),"days")},_=()=>{let r=document.createElement("style");r.innerHTML=T,b.appendChild(r)},R=()=>{let r=new URL(y),c=document.createElement("style");fetch(r.href).then(p=>p.text()).then(p=>{c.innerHTML=p,setTimeout(()=>{b.appendChild(c)},1),setTimeout(()=>{},500)})};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const r=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(r)});function j(r){t.binding_callbacks[r?"unshift":"push"](()=>{b=r,n(3,b)})}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,g=r.lang),"clientstyling"in r&&n(13,T=r.clientstyling),"clientstylingurl"in r&&n(14,y=r.clientstylingurl),"translationurl"in r&&n(15,h=r.translationurl)},i.$$.update=()=>{i.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const r=B(u,o),c=100/r;return Math.floor((r-v)*c)}),i.$$.dirty&19&&u&&o&&D()&&s(v),i.$$.dirty&4096&&g&&D(),i.$$.dirty&4112&&g&&s(v),i.$$.dirty&32768&&h&&w(),i.$$.dirty&8200&&b&&T&&_(),i.$$.dirty&16392&&b&&y&&R()},[u,o,d,b,v,S,P,a,l,D,f,s,g,T,y,h,j]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,G,W,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},L)}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()}}t.create_custom_element(z,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-CPH58bQV.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"}};function ie(t){e.append_styles(t,"svelte-1pdib0y","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emfe-w-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(--emfe-w-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(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-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,f=e.ensure_array_like(t[1]),c=[];for(let a=0;a<f.length;a+=1)c[a]=W(D(t,f,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){f=e.ensure_array_like(a[1]);let o;for(o=0;o<f.length;o+=1){const v=D(a,f,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=f.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,f,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",f=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&&f!==(f=t[50].name)&&e.attr(s,"title",f)},d(u){u&&e.detach(r),a=!1,e.run_all(b)}}}function oe(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 ce=30;function ue(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:f=""}=r,{clientstylingurl:c=""}=r,a,b=window.navigator.userAgent,o,v=[],u=0,h,P=null,B=null,E=!1,L,T,M=0,N;const O=()=>{fetch(w).then(g=>g.json()).then(g=>{Object.keys(g).forEach(k=>{U(k,g[k])})}).catch(g=>{console.log(g)})};Object.keys(q).forEach(l=>{U(l,q[l])});const C=l=>{n(5,E=!0),n(6,L=l)},j=()=>{n(5,E=!1),n(6,L=-1)},R=l=>l.touches||l.originalEvent.touches,H=l=>{const g=R(l)[0];P=g.clientX,B=g.clientY},z=l=>{if(!P||!B)return;let g=l.touches[0].clientX,k=l.touches[0].clientY,S=P-g,se=B-k;Math.abs(S)>Math.abs(se)&&(S>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),g=new Headers;l.searchParams.append("expand","games"),l.searchParams.append("pagination",`games(limit=${ce},offset=${u})`),l.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),l.searchParams.append("language",y),l.searchParams.append("platform",e.getDevice(b)),fetch(l,{method:"GET",headers:g}).then(S=>S.json()).then(S=>{n(1,v=S.item.games.items),S.item.games.total})},J=()=>{h.addEventListener("touchstart",H,{passive:!0}),h.addEventListener("touchmove",z,{passive:!0})},Y=()=>{setTimeout(()=>{n(22,M=(T.scrollWidth-T.clientWidth)*-1),n(16,s=new String(T.scrollWidth/v.length)),o=parseInt(_,10)*parseFloat(s,2).toFixed(2)},1e3)},x=()=>{let l=document.createElement("style");l.innerHTML=f,a.appendChild(l)},Z=()=>{let l=new URL(c),g=document.createElement("style");fetch(l.href).then(k=>k.text()).then(k=>{g.innerHTML=k,setTimeout(()=>{a.appendChild(g)},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=>C(l),ee=()=>j();function te(l){e.binding_callbacks[l?"unshift":"push"](()=>{T=l,n(7,T)})}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,f=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&&Y(),t.$$.dirty[0]&1048577&&f&&a&&x(),t.$$.dirty[0]&2097153&&c&&a&&Z()},n(2,u=0),[a,v,u,h,N,E,L,T,i,d,m,C,j,F,A,_,s,p,y,w,f,c,M,Q,V,$,ee,te,ne,le,re,ae]}class G extends e.SvelteComponent{constructor(r){super(),e.init(this,r,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},ie,[-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,4 +1,4 @@
|
|
|
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 I, n as X, j as G, k as Fe, w as Me, l as x, m as z, d as c, G as C, D as Y, H as Be, o as v, I as Ee, r as L, q as Pe, C as te, t as Le, J as Z, p as He, F as je, u as D, $ as Ce } from "./CasinoTournamentsController-
|
|
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 I, n as X, j as G, k as Fe, w as Me, l as x, m as z, d as c, G as C, D as Y, H as Be, o as v, I as Ee, r as L, q as Pe, C as te, t as Le, J as Z, p as He, F as je, u as D, $ as Ce } from "./CasinoTournamentsController-CvioNHGJ.js";
|
|
2
2
|
function K(e, l) {
|
|
3
3
|
be(e, l);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-CPH58bQV.cjs");function y(r,t){e.addMessages(r,t)}const P={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}};function F(r){e.append_styles(r,"svelte-1t3fr3e","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}")}function T(r,t,n){const i=r.slice();return i[13]=t[n],i[15]=n,i}function v(r){let t,n=e.ensure_array_like(r[1]),i=[];for(let l=0;l<n.length;l+=1)i[l]=b(T(r,n,l));let a=null;return n.length||(a=w(r)),{c(){t=e.element("div");for(let l=0;l<i.length;l+=1)i[l].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(l,c){e.insert(l,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(l,c){if(c&6){n=e.ensure_array_like(l[1]);let s;for(s=0;s<n.length;s+=1){const u=T(l,n,s);i[s]?i[s].p(u,c):(i[s]=b(u),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(l,c):n.length?a&&(a.d(1),a=null):(a=w(l),a.c(),a.m(t,null))}},d(l){l&&e.detach(t),e.destroy_each(i,l),a&&a.d()}}}function w(r){let t,n=r[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,l){e.insert(a,t,l),e.append(t,i)},p(a,l){l&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function b(r){let t,n,i,a=(r[13].count>1?`${r[13].rank}~${r[13].rank+r[13].count-1}`:r[13].rank)+"",l,c,s=r[2]("place")+"",u,p,d=r[13].name+"",h,_;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),l=e.text(a),c=e.space(),u=e.text(s),p=e.text(": "),h=e.text(d),_=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+r[15]),e.attr(t,"part","Prize Prize"+r[15])},m(f,g){e.insert(f,t,g),e.append(t,n),e.append(n,i),e.append(i,l),e.append(n,c),e.append(n,u),e.append(n,p),e.append(n,h),e.append(t,_)},p(f,g){g&2&&a!==(a=(f[13].count>1?`${f[13].rank}~${f[13].rank+f[13].count-1}`:f[13].rank)+"")&&e.set_data(l,a),g&4&&s!==(s=f[2]("place")+"")&&e.set_data(u,s),g&2&&d!==(d=f[13].name+"")&&e.set_data(h,d)},d(f){f&&e.detach(t)}}}function M(r){let t,n,i,a,l,c=r[2]("prizes")+"",s,u,p=r[1]&&v(r);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',a=e.space(),l=e.element("p"),s=e.text(c),u=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(l,"class","PrizesTitle"),e.attr(l,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(d,h){e.insert(d,t,h),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,l),e.append(l,s),e.append(t,u),p&&p.m(t,null),r[7](t)},p(d,[h]){h&4&&c!==(c=d[2]("prizes")+"")&&e.set_data(s,c),d[1]?p?p.p(d,h):(p=v(d),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),p&&p.d(),r[7](null)}}}function S(r,t,n){let i;e.component_subscribe(r,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,u,p;const d=()=>{fetch(s).then(m=>m.json()).then(m=>{Object.keys(m).forEach(z=>{y(z,m[z])})}).catch(m=>{console.log(m)})};Object.keys(P).forEach(o=>{y(o,P[o])});const h=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,p=o.data.prizes)},_=()=>{let o=document.createElement("style");o.innerHTML=l,u.appendChild(o)},f=()=>{let o=new URL(c),m=document.createElement("style");fetch(o.href).then(z=>z.text()).then(z=>{m.innerHTML=z,setTimeout(()=>{u.appendChild(m)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));function g(o){e.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(0,u)})}return r.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,l=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl)},r.$$.update=()=>{r.$$.dirty&17&&u&&l&&_(),r.$$.dirty&33&&u&&c&&f(),r.$$.dirty&64&&s&&d()},[u,p,i,a,l,c,s,g]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,S,M,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},F)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(k,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=k;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as A, S as Z, i as j, f as T, c as I, s as R, b as B, e as z, m as b, t as _, d as u, h as k, o as f, p as v, n as M, j as F, k as O, w as U, l as H, q, u as V, $ as W } from "./CasinoTournamentsController-
|
|
1
|
+
import { a as A, S as Z, i as j, f as T, c as I, s as R, b as B, e as z, m as b, t as _, d as u, h as k, o as f, p as v, n as M, j as F, k as O, w as U, l as H, q, u as V, $ as W } from "./CasinoTournamentsController-CvioNHGJ.js";
|
|
2
2
|
function N(l, e) {
|
|
3
3
|
A(l, e);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsController-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsController-CPH58bQV.cjs")).then(e=>e.CasinoTournamentsController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-controller")&&customElements.define("casino-tournaments-controller",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsController-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsController-CvioNHGJ.js").then((e) => e.K).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("casino-tournaments-controller") && customElements.define("casino-tournaments-controller", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|