@everymatrix/casino-tournaments-controller 1.0.69 → 1.0.71

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.
@@ -0,0 +1,1365 @@
1
+ var ne = (i, e, t) => new Promise((n, r) => {
2
+ var s = (d) => {
3
+ try {
4
+ m(t.next(d));
5
+ } catch (h) {
6
+ r(h);
7
+ }
8
+ }, o = (d) => {
9
+ try {
10
+ m(t.throw(d));
11
+ } catch (h) {
12
+ r(h);
13
+ }
14
+ }, m = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(s, o);
15
+ m((t = t.apply(i, e)).next());
16
+ });
17
+ import { z as Fe, E as Ze, a as Qe, S as Ye, i as $e, f as y, c as et, s as tt, b as it, e as F, d as u, h as z, n as se, j as w, k as nt, w as st, F as Ce, u as rt, m as E, y as a, o as v, A as lt, B as ot, t as D, p as M, $ as at, r as R, x as Pe, C as mt, v as O } from "./CasinoTournamentsController-o9ci4V-7.js";
18
+ function ut({ withLocale: i, translations: e }) {
19
+ Fe.subscribe((t) => {
20
+ t == null && (Ze.set(e), Fe.set(i));
21
+ });
22
+ }
23
+ function Be(i, e) {
24
+ Qe(i, e);
25
+ }
26
+ const Se = {
27
+ en: {
28
+ tournamentsThController: {
29
+ login: "Log in",
30
+ register: "Register",
31
+ details: "Details",
32
+ enrolled: "Enrolled",
33
+ join: "Join",
34
+ joinerror: "An error occurred while registering in the tournament, please try again."
35
+ }
36
+ },
37
+ hr: {
38
+ tournamentsThController: {
39
+ login: "Prijava",
40
+ register: "Registracija",
41
+ details: "Detalji",
42
+ enrolled: "Upisan",
43
+ join: "Pridruži se",
44
+ joinerror: "Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."
45
+ }
46
+ },
47
+ "zh-hk": {
48
+ tournamentsThController: {
49
+ login: "登錄",
50
+ register: "登記",
51
+ details: "細節",
52
+ enrolled: "已註冊",
53
+ join: "加入",
54
+ joinerror: "加入錦標賽時出錯,請重試"
55
+ }
56
+ },
57
+ fr: {
58
+ tournamentsThController: {
59
+ login: "Connexion",
60
+ register: "Enregistre",
61
+ details: "Détails",
62
+ enrolled: "Inscrits",
63
+ join: "Rejoignez",
64
+ joinerror: "Une erreur s'est produite lors de l'inscription au tournoi"
65
+ }
66
+ },
67
+ ro: {
68
+ tournamentsThController: {
69
+ login: "Autentificare",
70
+ register: "Înregistrare",
71
+ details: "Detalii",
72
+ enrolled: "Înscris",
73
+ join: "Participă",
74
+ joinerror: "A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."
75
+ }
76
+ },
77
+ tr: {
78
+ tournamentsThController: {
79
+ login: "Giriş yapmak",
80
+ register: "Kayıt olmak",
81
+ details: "Detaylar",
82
+ enrolled: "Katıldın",
83
+ join: "Katılmak",
84
+ joinerror: "Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."
85
+ }
86
+ },
87
+ el: {
88
+ tournamentsThController: {
89
+ login: "Είσοδος",
90
+ register: "Εγγραφή",
91
+ details: "Λεπτομέρειες",
92
+ enrolled: "Εγγεγραμμένος",
93
+ join: "Συμμετοχή",
94
+ joinerror: "Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."
95
+ }
96
+ },
97
+ es: {
98
+ tournamentsThController: {
99
+ login: "Iniciar sesión",
100
+ register: "Regístrate",
101
+ details: "Detalles",
102
+ enrolled: "Participando",
103
+ join: "Unirse",
104
+ joinerror: "Ha ocurrido un error mientras se registra en el Torneo"
105
+ }
106
+ },
107
+ hu: {
108
+ tournamentsThController: {
109
+ login: "Bejelentkezés",
110
+ register: "Regisztráció",
111
+ details: "Adatok",
112
+ enrolled: "Feliratkozott",
113
+ join: "Csatlakozás",
114
+ joinerror: "Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."
115
+ }
116
+ },
117
+ pt: {
118
+ tournamentsThController: {
119
+ login: "Entrar",
120
+ register: "Registro",
121
+ details: "Detalhes",
122
+ enrolled: "Inscrito",
123
+ join: "Junte-se",
124
+ joinerror: "Ocorreu um erro ao entrar no torneio"
125
+ }
126
+ }
127
+ };
128
+ if (typeof window != "undefined") {
129
+ let i = function(e) {
130
+ return function(...t) {
131
+ try {
132
+ return e.apply(this, t);
133
+ } catch (n) {
134
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
135
+ return !1;
136
+ throw n;
137
+ }
138
+ };
139
+ };
140
+ customElements.define = i(customElements.define), import("./CasinoTournamentsThumbnail-1UjlSmfk.js").then(({ default: e }) => {
141
+ !customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", e.element);
142
+ });
143
+ }
144
+ if (typeof window != "undefined") {
145
+ let i = function(e) {
146
+ return function(...t) {
147
+ try {
148
+ return e.apply(this, t);
149
+ } catch (n) {
150
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
151
+ return !1;
152
+ throw n;
153
+ }
154
+ };
155
+ };
156
+ customElements.define = i(customElements.define), import("./CasinoTournamentsThumbnailDuration-GKFyPIZf.js").then(({ default: e }) => {
157
+ !customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
158
+ "casino-tournaments-thumbnail-duration",
159
+ e.element
160
+ );
161
+ });
162
+ }
163
+ if (typeof window != "undefined") {
164
+ let i = function(e) {
165
+ return function(...t) {
166
+ try {
167
+ return e.apply(this, t);
168
+ } catch (n) {
169
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
170
+ return !1;
171
+ throw n;
172
+ }
173
+ };
174
+ };
175
+ customElements.define = i(customElements.define), import("./CasinoTournamentsThumbnailPrizes-Dy-t1Zna.js").then(({ default: e }) => {
176
+ !customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", e.element);
177
+ });
178
+ }
179
+ if (typeof window != "undefined") {
180
+ let i = function(e) {
181
+ return function(...t) {
182
+ try {
183
+ return e.apply(this, t);
184
+ } catch (n) {
185
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
186
+ return !1;
187
+ throw n;
188
+ }
189
+ };
190
+ };
191
+ customElements.define = i(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-DVPC0-Qc.js").then(
192
+ ({ default: e }) => {
193
+ !customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
194
+ "casino-tournaments-thumbnail-games-slider",
195
+ e.element
196
+ );
197
+ }
198
+ );
199
+ }
200
+ function ft(i) {
201
+ it(i, "svelte-m5izi2", '.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2,.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::before,.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{cursor:pointer}.TournamentCard.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%}.CardMaxWidth.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{max-width:600px}.TournamentButtons.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons.svelte-m5izi2 button.svelte-m5izi2.svelte-m5izi2{cursor:pointer}.LoginButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.RegisterButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.DetailsButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.DetailsLargeButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.EnrolledButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%}.ErrorText.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2::after,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2::before{box-sizing:border-box}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:svelte-m5izi2-phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item.svelte-m5izi2>.svelte-m5izi2.svelte-m5izi2{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row.svelte-m5izi2 div.svelte-m5izi2.svelte-m5izi2{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row.svelte-m5izi2 .big.svelte-m5izi2.svelte-m5izi2{height:20px}.ph-row.svelte-m5izi2 .empty.svelte-m5izi2.svelte-m5izi2{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 33.3333333333%}.ph-col-6.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 50%}.ph-col-8.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 66.6666666667%}.ph-col-12.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 100%}[class*=ph-col].svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{direction:ltr}[class*=ph-col].svelte-m5izi2>.svelte-m5izi2+.ph-row.svelte-m5izi2{margin-top:0}[class*=ph-col].svelte-m5izi2>.svelte-m5izi2+.svelte-m5izi2{margin-top:7.5px}.ph-picture.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes svelte-m5izi2-phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner.svelte-m5izi2 circle.svelte-m5izi2.svelte-m5izi2{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:svelte-m5izi2-spinner 2s linear infinite;-moz-animation:svelte-m5izi2-spinner 2s linear infinite;-ms-animation:svelte-m5izi2-spinner 2s linear infinite;-o-animation:svelte-m5izi2-spinner 2s linear infinite;animation:svelte-m5izi2-spinner 2s linear infinite}@-webkit-keyframes svelte-m5izi2-spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes svelte-m5izi2-spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes svelte-m5izi2-spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes svelte-m5izi2-spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes svelte-m5izi2-spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes svelte-m5izi2-fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes svelte-m5izi2-fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes svelte-m5izi2-fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes svelte-m5izi2-fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{-webkit-animation:svelte-m5izi2-fadein 2s linear forwards;animation:svelte-m5izi2-fadein 2s linear forwards}.elementToFadeOut.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{-webkit-animation:svelte-m5izi2-fadeout 0.1s ease-out forwards;animation:svelte-m5izi2-fadeout 0.1s ease-out forwards}');
202
+ }
203
+ function dt(i) {
204
+ let e, t, n, r, s, o, m, d, h, c = (
205
+ /*isLoggedIn*/
206
+ i[13] && je(i)
207
+ );
208
+ function _(f, g) {
209
+ if (!/*isLoggedIn*/
210
+ f[13]) return pt;
211
+ if (
212
+ /*status*/
213
+ f[22] != "Closed" && /*status*/
214
+ f[22] != "Closing"
215
+ ) return gt;
216
+ if (
217
+ /*showdetails*/
218
+ f[3] == "true"
219
+ ) return ht;
220
+ }
221
+ let B = _(i), T = B && B(i), b = (
222
+ /*errorJoin*/
223
+ (i[16] || /*errorJoinConcurrently*/
224
+ i[18]) && Ae(i)
225
+ ), k = (
226
+ /*showslider*/
227
+ i[4] == "true" && Oe(i)
228
+ );
229
+ return {
230
+ c() {
231
+ e = F("div"), t = F("casino-tournaments-thumbnail"), n = E(), c && c.c(), r = E(), s = F("div"), T && T.c(), o = E(), b && b.c(), m = E(), k && k.c(), a(
232
+ t,
233
+ "session",
234
+ /*session*/
235
+ i[0]
236
+ ), a(
237
+ t,
238
+ "userid",
239
+ /*userid*/
240
+ i[1]
241
+ ), a(
242
+ t,
243
+ "title",
244
+ /*title*/
245
+ i[19]
246
+ ), a(
247
+ t,
248
+ "status",
249
+ /*status*/
250
+ i[22]
251
+ ), a(
252
+ t,
253
+ "startdate",
254
+ /*startdate*/
255
+ i[20]
256
+ ), a(
257
+ t,
258
+ "tourid",
259
+ /*tourid*/
260
+ i[23]
261
+ ), a(
262
+ t,
263
+ "scorecriteria",
264
+ /*scorecriteria*/
265
+ i[26]
266
+ ), a(
267
+ t,
268
+ "minbetcount",
269
+ /*minbetcount*/
270
+ i[27]
271
+ ), a(
272
+ t,
273
+ "thumbnail",
274
+ /*thumbnail*/
275
+ i[24]
276
+ ), a(
277
+ t,
278
+ "userenrolled",
279
+ /*userenrolled*/
280
+ i[25]
281
+ ), a(
282
+ t,
283
+ "showenrolled",
284
+ /*showenrolled*/
285
+ i[5]
286
+ ), a(
287
+ t,
288
+ "gameurl",
289
+ /*gameurl*/
290
+ i[29]
291
+ ), a(
292
+ t,
293
+ "clientstyling",
294
+ /*clientstyling*/
295
+ i[10]
296
+ ), a(
297
+ t,
298
+ "clientstylingurl",
299
+ /*clientstylingurl*/
300
+ i[11]
301
+ ), a(
302
+ t,
303
+ "lang",
304
+ /*lang*/
305
+ i[8]
306
+ ), a(
307
+ t,
308
+ "keepbrowsercontext",
309
+ /*keepbrowsercontext*/
310
+ i[9]
311
+ ), a(t, "exportparts", "Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"), a(t, "class", "svelte-m5izi2"), u(s, "class", "TournamentButtons svelte-m5izi2"), u(s, "part", "TournamentButtons"), u(e, "class", d = "TournamentCard " + /*maxwidth*/
312
+ (i[6] ? "CardMaxWidth" : "") + /*fullsize*/
313
+ (i[7] ? "CardFullSize" : "") + " " + /*isChanging*/
314
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn") + " svelte-m5izi2"), u(e, "part", h = "TournamentCard " + /*maxwidth*/
315
+ (i[6] ? "CardMaxWidth" : "") + /*fullsize*/
316
+ (i[7] ? "CardFullSize" : "") + " " + /*isChanging*/
317
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn") + " " + /*isChanging*/
318
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn"));
319
+ },
320
+ m(f, g) {
321
+ z(f, e, g), v(e, t), v(e, n), c && c.m(e, null), v(e, r), v(e, s), T && T.m(s, null), v(e, o), b && b.m(e, null), v(e, m), k && k.m(e, null);
322
+ },
323
+ p(f, g) {
324
+ g[0] & /*session*/
325
+ 1 && a(
326
+ t,
327
+ "session",
328
+ /*session*/
329
+ f[0]
330
+ ), g[0] & /*userid*/
331
+ 2 && a(
332
+ t,
333
+ "userid",
334
+ /*userid*/
335
+ f[1]
336
+ ), g[0] & /*title*/
337
+ 524288 && a(
338
+ t,
339
+ "title",
340
+ /*title*/
341
+ f[19]
342
+ ), g[0] & /*status*/
343
+ 4194304 && a(
344
+ t,
345
+ "status",
346
+ /*status*/
347
+ f[22]
348
+ ), g[0] & /*startdate*/
349
+ 1048576 && a(
350
+ t,
351
+ "startdate",
352
+ /*startdate*/
353
+ f[20]
354
+ ), g[0] & /*tourid*/
355
+ 8388608 && a(
356
+ t,
357
+ "tourid",
358
+ /*tourid*/
359
+ f[23]
360
+ ), g[0] & /*scorecriteria*/
361
+ 67108864 && a(
362
+ t,
363
+ "scorecriteria",
364
+ /*scorecriteria*/
365
+ f[26]
366
+ ), g[0] & /*minbetcount*/
367
+ 134217728 && a(
368
+ t,
369
+ "minbetcount",
370
+ /*minbetcount*/
371
+ f[27]
372
+ ), g[0] & /*thumbnail*/
373
+ 16777216 && a(
374
+ t,
375
+ "thumbnail",
376
+ /*thumbnail*/
377
+ f[24]
378
+ ), g[0] & /*userenrolled*/
379
+ 33554432 && a(
380
+ t,
381
+ "userenrolled",
382
+ /*userenrolled*/
383
+ f[25]
384
+ ), g[0] & /*showenrolled*/
385
+ 32 && a(
386
+ t,
387
+ "showenrolled",
388
+ /*showenrolled*/
389
+ f[5]
390
+ ), g[0] & /*gameurl*/
391
+ 536870912 && a(
392
+ t,
393
+ "gameurl",
394
+ /*gameurl*/
395
+ f[29]
396
+ ), g[0] & /*clientstyling*/
397
+ 1024 && a(
398
+ t,
399
+ "clientstyling",
400
+ /*clientstyling*/
401
+ f[10]
402
+ ), g[0] & /*clientstylingurl*/
403
+ 2048 && a(
404
+ t,
405
+ "clientstylingurl",
406
+ /*clientstylingurl*/
407
+ f[11]
408
+ ), g[0] & /*lang*/
409
+ 256 && a(
410
+ t,
411
+ "lang",
412
+ /*lang*/
413
+ f[8]
414
+ ), g[0] & /*keepbrowsercontext*/
415
+ 512 && a(
416
+ t,
417
+ "keepbrowsercontext",
418
+ /*keepbrowsercontext*/
419
+ f[9]
420
+ ), /*isLoggedIn*/
421
+ f[13] ? c ? c.p(f, g) : (c = je(f), c.c(), c.m(e, r)) : c && (c.d(1), c = null), B === (B = _(f)) && T ? T.p(f, g) : (T && T.d(1), T = B && B(f), T && (T.c(), T.m(s, null))), /*errorJoin*/
422
+ f[16] || /*errorJoinConcurrently*/
423
+ f[18] ? b ? b.p(f, g) : (b = Ae(f), b.c(), b.m(e, m)) : b && (b.d(1), b = null), /*showslider*/
424
+ f[4] == "true" ? k ? k.p(f, g) : (k = Oe(f), k.c(), k.m(e, null)) : k && (k.d(1), k = null), g[0] & /*maxwidth, fullsize, isChanging*/
425
+ 1073742016 && d !== (d = "TournamentCard " + /*maxwidth*/
426
+ (f[6] ? "CardMaxWidth" : "") + /*fullsize*/
427
+ (f[7] ? "CardFullSize" : "") + " " + /*isChanging*/
428
+ (f[30] ? "elementToFadeOut" : "elementToFadeIn") + " svelte-m5izi2") && u(e, "class", d), g[0] & /*maxwidth, fullsize, isChanging*/
429
+ 1073742016 && h !== (h = "TournamentCard " + /*maxwidth*/
430
+ (f[6] ? "CardMaxWidth" : "") + /*fullsize*/
431
+ (f[7] ? "CardFullSize" : "") + " " + /*isChanging*/
432
+ (f[30] ? "elementToFadeOut" : "elementToFadeIn") + " " + /*isChanging*/
433
+ (f[30] ? "elementToFadeOut" : "elementToFadeIn")) && u(e, "part", h);
434
+ },
435
+ d(f) {
436
+ f && w(e), c && c.d(), T && T.d(), b && b.d(), k && k.d();
437
+ }
438
+ };
439
+ }
440
+ function ct(i) {
441
+ let e, t, n, r;
442
+ return {
443
+ c() {
444
+ e = F("div"), t = F("div"), t.innerHTML = '<div class="ph-col-12 svelte-m5izi2" part="ph-col-12"><div class="ph-picture svelte-m5izi2" part="ph-picture"></div> <div class="ph-row svelte-m5izi2" part="ph-row"><div class="ph-col-6 big svelte-m5izi2" part="ph-col-6 big"></div> <div class="ph-col-4 empty big svelte-m5izi2" part="ph-col-4 empty big"></div> <div class="ph-col-4 svelte-m5izi2" part="ph-col-4"></div> <div class="ph-col-8 empty svelte-m5izi2" part="ph-col-8 empty"></div> <div class="ph-col-6 svelte-m5izi2" part="ph-col-6"></div> <div class="ph-col-6 empty svelte-m5izi2" part="ph-col-6 empty"></div> <div class="ph-col-12 svelte-m5izi2" part="ph-col-12"></div></div></div>', u(t, "class", "ph-item svelte-m5izi2"), u(t, "part", "ph-item"), u(e, "class", n = "TournamentCard " + /*maxwidth*/
445
+ (i[6] ? "CardMaxWidth" : "") + /*fullsize*/
446
+ (i[7] ? "CardFullSize" : "") + " " + /*isChanging*/
447
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn") + " svelte-m5izi2"), u(e, "part", r = "TournamentCard " + /*maxwidth*/
448
+ (i[6] ? "CardMaxWidth" : "") + /*fullsize*/
449
+ (i[7] ? "CardFullSize" : "") + " " + /*isChanging*/
450
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn") + " " + /*isChanging*/
451
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn"));
452
+ },
453
+ m(s, o) {
454
+ z(s, e, o), v(e, t);
455
+ },
456
+ p(s, o) {
457
+ o[0] & /*maxwidth, fullsize, isChanging*/
458
+ 1073742016 && n !== (n = "TournamentCard " + /*maxwidth*/
459
+ (s[6] ? "CardMaxWidth" : "") + /*fullsize*/
460
+ (s[7] ? "CardFullSize" : "") + " " + /*isChanging*/
461
+ (s[30] ? "elementToFadeOut" : "elementToFadeIn") + " svelte-m5izi2") && u(e, "class", n), o[0] & /*maxwidth, fullsize, isChanging*/
462
+ 1073742016 && r !== (r = "TournamentCard " + /*maxwidth*/
463
+ (s[6] ? "CardMaxWidth" : "") + /*fullsize*/
464
+ (s[7] ? "CardFullSize" : "") + " " + /*isChanging*/
465
+ (s[30] ? "elementToFadeOut" : "elementToFadeIn") + " " + /*isChanging*/
466
+ (s[30] ? "elementToFadeOut" : "elementToFadeIn")) && u(e, "part", r);
467
+ },
468
+ d(s) {
469
+ s && w(e);
470
+ }
471
+ };
472
+ }
473
+ function je(i) {
474
+ let e, t, n = (
475
+ /*tourid*/
476
+ i[23] && Ee(i)
477
+ );
478
+ return {
479
+ c() {
480
+ n && n.c(), e = E(), t = F("casino-tournaments-thumbnail-duration"), a(
481
+ t,
482
+ "clientstyling",
483
+ /*clientstyling*/
484
+ i[10]
485
+ ), a(
486
+ t,
487
+ "clientstylingurl",
488
+ /*clientstylingurl*/
489
+ i[11]
490
+ ), a(
491
+ t,
492
+ "status",
493
+ /*status*/
494
+ i[22]
495
+ ), a(
496
+ t,
497
+ "startdate",
498
+ /*startdate*/
499
+ i[20]
500
+ ), a(
501
+ t,
502
+ "lang",
503
+ /*lang*/
504
+ i[8]
505
+ ), a(
506
+ t,
507
+ "enddate",
508
+ /*enddate*/
509
+ i[21]
510
+ ), a(t, "exportparts", "TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"), a(t, "class", "svelte-m5izi2");
511
+ },
512
+ m(r, s) {
513
+ n && n.m(r, s), z(r, e, s), z(r, t, s);
514
+ },
515
+ p(r, s) {
516
+ /*tourid*/
517
+ r[23] ? n ? n.p(r, s) : (n = Ee(r), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), s[0] & /*clientstyling*/
518
+ 1024 && a(
519
+ t,
520
+ "clientstyling",
521
+ /*clientstyling*/
522
+ r[10]
523
+ ), s[0] & /*clientstylingurl*/
524
+ 2048 && a(
525
+ t,
526
+ "clientstylingurl",
527
+ /*clientstylingurl*/
528
+ r[11]
529
+ ), s[0] & /*status*/
530
+ 4194304 && a(
531
+ t,
532
+ "status",
533
+ /*status*/
534
+ r[22]
535
+ ), s[0] & /*startdate*/
536
+ 1048576 && a(
537
+ t,
538
+ "startdate",
539
+ /*startdate*/
540
+ r[20]
541
+ ), s[0] & /*lang*/
542
+ 256 && a(
543
+ t,
544
+ "lang",
545
+ /*lang*/
546
+ r[8]
547
+ ), s[0] & /*enddate*/
548
+ 2097152 && a(
549
+ t,
550
+ "enddate",
551
+ /*enddate*/
552
+ r[21]
553
+ );
554
+ },
555
+ d(r) {
556
+ r && (w(e), w(t)), n && n.d(r);
557
+ }
558
+ };
559
+ }
560
+ function Ee(i) {
561
+ let e, t, n, r;
562
+ return {
563
+ c() {
564
+ e = F("casino-tournaments-thumbnail-prizes"), a(
565
+ e,
566
+ "tourid",
567
+ /*tourid*/
568
+ i[23]
569
+ ), a(
570
+ e,
571
+ "clientstyling",
572
+ /*clientstyling*/
573
+ i[10]
574
+ ), a(
575
+ e,
576
+ "clientstylingurl",
577
+ /*clientstylingurl*/
578
+ i[11]
579
+ ), a(e, "exportparts", "TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper"), a(e, "class", "svelte-m5izi2");
580
+ },
581
+ m(s, o) {
582
+ z(s, e, o), n || (r = lt(t = /*sendTournamentPrizes*/
583
+ i[36].call(
584
+ null,
585
+ e,
586
+ /*tourid*/
587
+ i[23]
588
+ )), n = !0);
589
+ },
590
+ p(s, o) {
591
+ o[0] & /*tourid*/
592
+ 8388608 && a(
593
+ e,
594
+ "tourid",
595
+ /*tourid*/
596
+ s[23]
597
+ ), o[0] & /*clientstyling*/
598
+ 1024 && a(
599
+ e,
600
+ "clientstyling",
601
+ /*clientstyling*/
602
+ s[10]
603
+ ), o[0] & /*clientstylingurl*/
604
+ 2048 && a(
605
+ e,
606
+ "clientstylingurl",
607
+ /*clientstylingurl*/
608
+ s[11]
609
+ ), t && ot(t.update) && o[0] & /*tourid*/
610
+ 8388608 && t.update.call(
611
+ null,
612
+ /*tourid*/
613
+ s[23]
614
+ );
615
+ },
616
+ d(s) {
617
+ s && w(e), n = !1, r();
618
+ }
619
+ };
620
+ }
621
+ function ht(i) {
622
+ let e, t = (
623
+ /*$_*/
624
+ i[31]("tournamentsThController.details") + ""
625
+ ), n, r, s;
626
+ return {
627
+ c() {
628
+ e = F("button"), n = D(t), u(e, "class", "DetailsLargeButton svelte-m5izi2"), u(e, "part", "DetailsLargeButton");
629
+ },
630
+ m(o, m) {
631
+ z(o, e, m), v(e, n), r || (s = R(
632
+ e,
633
+ "click",
634
+ /*click_handler_4*/
635
+ i[50]
636
+ ), r = !0);
637
+ },
638
+ p(o, m) {
639
+ m[1] & /*$_*/
640
+ 1 && t !== (t = /*$_*/
641
+ o[31]("tournamentsThController.details") + "") && M(n, t);
642
+ },
643
+ d(o) {
644
+ o && w(e), r = !1, s();
645
+ }
646
+ };
647
+ }
648
+ function gt(i) {
649
+ let e, t, n = (
650
+ /*showdetails*/
651
+ i[3] == "true" && De(i)
652
+ );
653
+ function r(m, d) {
654
+ return (
655
+ /*userenrolled*/
656
+ m[25] == !0 ? zt : vt
657
+ );
658
+ }
659
+ let s = r(i), o = s(i);
660
+ return {
661
+ c() {
662
+ n && n.c(), e = E(), o.c(), t = Pe();
663
+ },
664
+ m(m, d) {
665
+ n && n.m(m, d), z(m, e, d), o.m(m, d), z(m, t, d);
666
+ },
667
+ p(m, d) {
668
+ /*showdetails*/
669
+ m[3] == "true" ? n ? n.p(m, d) : (n = De(m), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), s === (s = r(m)) && o ? o.p(m, d) : (o.d(1), o = s(m), o && (o.c(), o.m(t.parentNode, t)));
670
+ },
671
+ d(m) {
672
+ m && (w(e), w(t)), n && n.d(m), o.d(m);
673
+ }
674
+ };
675
+ }
676
+ function pt(i) {
677
+ let e, t = (
678
+ /*$_*/
679
+ i[31]("tournamentsThController.login") + ""
680
+ ), n, r, s, o = (
681
+ /*$_*/
682
+ i[31]("tournamentsThController.register") + ""
683
+ ), m, d, h;
684
+ return {
685
+ c() {
686
+ e = F("button"), n = D(t), r = E(), s = F("button"), m = D(o), u(e, "class", "LoginButton svelte-m5izi2"), u(e, "part", "LoginButton"), u(s, "class", "RegisterButton svelte-m5izi2"), u(s, "part", "RegisterButton");
687
+ },
688
+ m(c, _) {
689
+ z(c, e, _), v(e, n), z(c, r, _), z(c, s, _), v(s, m), d || (h = [
690
+ R(
691
+ e,
692
+ "click",
693
+ /*click_handler*/
694
+ i[46]
695
+ ),
696
+ R(
697
+ s,
698
+ "click",
699
+ /*click_handler_1*/
700
+ i[47]
701
+ )
702
+ ], d = !0);
703
+ },
704
+ p(c, _) {
705
+ _[1] & /*$_*/
706
+ 1 && t !== (t = /*$_*/
707
+ c[31]("tournamentsThController.login") + "") && M(n, t), _[1] & /*$_*/
708
+ 1 && o !== (o = /*$_*/
709
+ c[31]("tournamentsThController.register") + "") && M(m, o);
710
+ },
711
+ d(c) {
712
+ c && (w(e), w(r), w(s)), d = !1, mt(h);
713
+ }
714
+ };
715
+ }
716
+ function De(i) {
717
+ let e, t = (
718
+ /*$_*/
719
+ i[31]("tournamentsThController.details") + ""
720
+ ), n, r, s;
721
+ return {
722
+ c() {
723
+ e = F("button"), n = D(t), u(e, "class", "DetailsButton svelte-m5izi2"), u(e, "part", "DetailsButton");
724
+ },
725
+ m(o, m) {
726
+ z(o, e, m), v(e, n), r || (s = R(
727
+ e,
728
+ "click",
729
+ /*click_handler_2*/
730
+ i[48]
731
+ ), r = !0);
732
+ },
733
+ p(o, m) {
734
+ m[1] & /*$_*/
735
+ 1 && t !== (t = /*$_*/
736
+ o[31]("tournamentsThController.details") + "") && M(n, t);
737
+ },
738
+ d(o) {
739
+ o && w(e), r = !1, s();
740
+ }
741
+ };
742
+ }
743
+ function vt(i) {
744
+ let e, t, n, r, s;
745
+ function o(h, c) {
746
+ return (
747
+ /*joinButtonLoading*/
748
+ h[15] == !0 ? bt : wt
749
+ );
750
+ }
751
+ let m = o(i), d = m(i);
752
+ return {
753
+ c() {
754
+ e = F("button"), d.c(), u(e, "class", t = "JoinButton " + /*fullsize*/
755
+ (i[7] ? "JoinButtonFullSize" : "") + " svelte-m5izi2"), u(e, "part", n = "JoinButton " + /*fullsize*/
756
+ (i[7] ? "JoinButtonFullSize" : "")), e.disabled = /*errorJoin*/
757
+ i[16];
758
+ },
759
+ m(h, c) {
760
+ z(h, e, c), d.m(e, null), r || (s = R(
761
+ e,
762
+ "click",
763
+ /*click_handler_3*/
764
+ i[49]
765
+ ), r = !0);
766
+ },
767
+ p(h, c) {
768
+ m === (m = o(h)) && d ? d.p(h, c) : (d.d(1), d = m(h), d && (d.c(), d.m(e, null))), c[0] & /*fullsize*/
769
+ 128 && t !== (t = "JoinButton " + /*fullsize*/
770
+ (h[7] ? "JoinButtonFullSize" : "") + " svelte-m5izi2") && u(e, "class", t), c[0] & /*fullsize*/
771
+ 128 && n !== (n = "JoinButton " + /*fullsize*/
772
+ (h[7] ? "JoinButtonFullSize" : "")) && u(e, "part", n), c[0] & /*errorJoin*/
773
+ 65536 && (e.disabled = /*errorJoin*/
774
+ h[16]);
775
+ },
776
+ d(h) {
777
+ h && w(e), d.d(), r = !1, s();
778
+ }
779
+ };
780
+ }
781
+ function zt(i) {
782
+ let e, t = (
783
+ /*showdetails*/
784
+ i[3] == "true" && Me(i)
785
+ );
786
+ return {
787
+ c() {
788
+ t && t.c(), e = Pe();
789
+ },
790
+ m(n, r) {
791
+ t && t.m(n, r), z(n, e, r);
792
+ },
793
+ p(n, r) {
794
+ /*showdetails*/
795
+ n[3] == "true" ? t ? t.p(n, r) : (t = Me(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
796
+ },
797
+ d(n) {
798
+ n && w(e), t && t.d(n);
799
+ }
800
+ };
801
+ }
802
+ function wt(i) {
803
+ let e, t = (
804
+ /*$_*/
805
+ i[31]("tournamentsThController.join") + ""
806
+ ), n, r, s, o, m, d, h, c;
807
+ return {
808
+ c() {
809
+ e = F("span"), n = D(t), r = E(), s = O("svg"), o = O("defs"), m = O("style"), d = D(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"), h = O("g"), c = O("path"), u(e, "part", "JoinButtonSpan"), u(e, "class", "svelte-m5izi2"), u(m, "class", "svelte-m5izi2"), u(o, "class", "svelte-m5izi2"), u(c, "class", "a svelte-m5izi2"), u(c, "part", "a JoinButtonSvgA"), u(c, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"), u(c, "transform", "translate(26 26) rotate(180)"), u(h, "transform", "translate(26 26) rotate(180)"), u(h, "class", "svelte-m5izi2"), u(s, "part", "JoinButtonSvg"), u(s, "xmlns", "http://www.w3.org/2000/svg"), u(s, "width", "26"), u(s, "height", "26"), u(s, "viewBox", "0 0 26 26"), u(s, "class", "svelte-m5izi2");
810
+ },
811
+ m(_, B) {
812
+ z(_, e, B), v(e, n), z(_, r, B), z(_, s, B), v(s, o), v(o, m), v(m, d), v(s, h), v(h, c);
813
+ },
814
+ p(_, B) {
815
+ B[1] & /*$_*/
816
+ 1 && t !== (t = /*$_*/
817
+ _[31]("tournamentsThController.join") + "") && M(n, t);
818
+ },
819
+ d(_) {
820
+ _ && (w(e), w(r), w(s));
821
+ }
822
+ };
823
+ }
824
+ function bt(i) {
825
+ let e, t;
826
+ return {
827
+ c() {
828
+ e = O("svg"), t = O("circle"), u(t, "cx", "20"), u(t, "cy", "20"), u(t, "r", "18"), u(t, "class", "svelte-m5izi2"), u(e, "class", "spinner svelte-m5izi2"), u(e, "part", "spinner");
829
+ },
830
+ m(n, r) {
831
+ z(n, e, r), v(e, t);
832
+ },
833
+ p: se,
834
+ d(n) {
835
+ n && w(e);
836
+ }
837
+ };
838
+ }
839
+ function Me(i) {
840
+ let e, t = (
841
+ /*$_*/
842
+ i[31]("tournamentsThController.enrolled") + ""
843
+ ), n;
844
+ return {
845
+ c() {
846
+ e = F("button"), n = D(t), u(e, "class", "EnrolledButton svelte-m5izi2"), u(e, "part", "EnrolledButton"), e.disabled = !0;
847
+ },
848
+ m(r, s) {
849
+ z(r, e, s), v(e, n);
850
+ },
851
+ p(r, s) {
852
+ s[1] & /*$_*/
853
+ 1 && t !== (t = /*$_*/
854
+ r[31]("tournamentsThController.enrolled") + "") && M(n, t);
855
+ },
856
+ d(r) {
857
+ r && w(e);
858
+ }
859
+ };
860
+ }
861
+ function Ae(i) {
862
+ let e, t = (
863
+ /*$_*/
864
+ i[31]("tournamentsThController.joinerror") + ""
865
+ ), n, r, s;
866
+ return {
867
+ c() {
868
+ e = F("span"), n = D(t), r = E(), s = D(
869
+ /*errorJoinText*/
870
+ i[17]
871
+ ), u(e, "class", "ErrorText svelte-m5izi2"), u(e, "part", "ErrorText");
872
+ },
873
+ m(o, m) {
874
+ z(o, e, m), v(e, n), v(e, r), v(e, s);
875
+ },
876
+ p(o, m) {
877
+ m[1] & /*$_*/
878
+ 1 && t !== (t = /*$_*/
879
+ o[31]("tournamentsThController.joinerror") + "") && M(n, t), m[0] & /*errorJoinText*/
880
+ 131072 && M(
881
+ s,
882
+ /*errorJoinText*/
883
+ o[17]
884
+ );
885
+ },
886
+ d(o) {
887
+ o && w(e);
888
+ }
889
+ };
890
+ }
891
+ function Oe(i) {
892
+ let e;
893
+ return {
894
+ c() {
895
+ e = F("casino-tournaments-thumbnail-games-slider"), a(
896
+ e,
897
+ "clientstyling",
898
+ /*clientstyling*/
899
+ i[10]
900
+ ), a(
901
+ e,
902
+ "clientstylingurl",
903
+ /*clientstylingurl*/
904
+ i[11]
905
+ ), a(
906
+ e,
907
+ "tournamenturl",
908
+ /*tournamenturl*/
909
+ i[2]
910
+ ), a(
911
+ e,
912
+ "lang",
913
+ /*lang*/
914
+ i[8]
915
+ ), a(e, "scrollby", "2"), a(e, "exportparts", "TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton"), a(e, "class", "svelte-m5izi2");
916
+ },
917
+ m(t, n) {
918
+ z(t, e, n);
919
+ },
920
+ p(t, n) {
921
+ n[0] & /*clientstyling*/
922
+ 1024 && a(
923
+ e,
924
+ "clientstyling",
925
+ /*clientstyling*/
926
+ t[10]
927
+ ), n[0] & /*clientstylingurl*/
928
+ 2048 && a(
929
+ e,
930
+ "clientstylingurl",
931
+ /*clientstylingurl*/
932
+ t[11]
933
+ ), n[0] & /*tournamenturl*/
934
+ 4 && a(
935
+ e,
936
+ "tournamenturl",
937
+ /*tournamenturl*/
938
+ t[2]
939
+ ), n[0] & /*lang*/
940
+ 256 && a(
941
+ e,
942
+ "lang",
943
+ /*lang*/
944
+ t[8]
945
+ );
946
+ },
947
+ d(t) {
948
+ t && w(e);
949
+ }
950
+ };
951
+ }
952
+ function _t(i) {
953
+ let e;
954
+ function t(s, o) {
955
+ if (
956
+ /*isLoading*/
957
+ s[14]
958
+ ) return ct;
959
+ if (
960
+ /*title*/
961
+ s[19]
962
+ ) return dt;
963
+ }
964
+ let n = t(i), r = n && n(i);
965
+ return {
966
+ c() {
967
+ e = F("div"), r && r.c(), u(e, "class", "svelte-m5izi2");
968
+ },
969
+ m(s, o) {
970
+ z(s, e, o), r && r.m(e, null), i[51](e);
971
+ },
972
+ p(s, o) {
973
+ n === (n = t(s)) && r ? r.p(s, o) : (r && r.d(1), r = n && n(s), r && (r.c(), r.m(e, null)));
974
+ },
975
+ i: se,
976
+ o: se,
977
+ d(s) {
978
+ s && w(e), r && r.d(), i[51](null);
979
+ }
980
+ };
981
+ }
982
+ function yt(i, e, t) {
983
+ let n;
984
+ nt(i, at, (l) => t(31, n = l));
985
+ let { session: r = "" } = e, { userid: s = "" } = e, { tournamenturl: o = "" } = e, { touridx: m } = e, { endpoint: d = "" } = e, { showdetails: h = "" } = e, { showslider: c = "" } = e, { showenrolled: _ = "" } = e, { maxwidth: B = "" } = e, { fullsize: T = "" } = e, { lang: b = "" } = e, { loginevent: k = "" } = e, { registerevent: f = "" } = e, { loginurl: g = "" } = e, { registerurl: U = "" } = e, { currency: Z = "" } = e, { keepbrowsercontext: re = "false" } = e, { clientstyling: H = "" } = e, { clientstylingurl: N = "" } = e, { translationurl: W = "" } = e, A, L = !1, q = "", I = !0, le = window.navigator.userAgent, G = !1, K = !1, oe = "There was an error while trying to join the tournament", Q = !1, ae, me, ue, x, j, fe, Y, de, ce, he = [], $ = [], ge = "#", ee, X = !1;
986
+ ut({ withLocale: "en", translations: {} });
987
+ const Le = () => {
988
+ fetch(W).then((p) => p.json()).then((p) => {
989
+ Object.keys(p).forEach((C) => {
990
+ Be(C, p[C]);
991
+ });
992
+ }).catch((p) => {
993
+ console.log(p);
994
+ });
995
+ };
996
+ Object.keys(Se).forEach((l) => {
997
+ Be(l, Se[l]);
998
+ });
999
+ const pe = (l) => {
1000
+ Ie(l), ye(l), _e(this, j);
1001
+ }, ve = (l) => {
1002
+ if (l.data && l.data.type == "UserSessionID" && (t(13, L = !0), q = l.data.session), l.data.type == "UpdateTournamentView") {
1003
+ let p = l.data.tournamentData;
1004
+ if (j && j != p.id)
1005
+ return;
1006
+ pe(p);
1007
+ }
1008
+ if (l.data && l.data.type == `UpdateSingleTournament_${m}`) {
1009
+ let p = l.data.tournamentData, C = m < 4 ? m * 100 : Math.random() * 300 + 300;
1010
+ t(30, X = m == 1), setTimeout(
1011
+ () => {
1012
+ t(30, X = !0), t(23, j = p.id), pe(p);
1013
+ },
1014
+ C
1015
+ ), setTimeout(
1016
+ () => {
1017
+ t(30, X = !1);
1018
+ },
1019
+ C + 200
1020
+ );
1021
+ }
1022
+ }, Ie = (l) => {
1023
+ l.state != x && (t(22, x = l.state), window.postMessage(
1024
+ {
1025
+ type: `TournamentStatus_${j}`,
1026
+ status: x
1027
+ },
1028
+ window.location.href
1029
+ ));
1030
+ }, ze = () => {
1031
+ k && (window.postMessage({ type: k, transition: "Login" }, window.location.href), typeof gtag == "function" && gtag("event", "OpenLoginModal", {
1032
+ context: "TournamentsThumbnailController"
1033
+ })), g && (window.location = g);
1034
+ }, we = () => {
1035
+ f && (window.postMessage(
1036
+ {
1037
+ type: f,
1038
+ transition: "Register"
1039
+ },
1040
+ window.location.href
1041
+ ), typeof gtag == "function" && gtag("event", "OpenRegisterModal", {
1042
+ context: "TournamentsThumbnailController"
1043
+ })), U && (window.location = U);
1044
+ }, te = (l) => {
1045
+ window.postMessage(
1046
+ {
1047
+ type: "TournamentDetailsClicked",
1048
+ tournamentId: l,
1049
+ showLeaderboard: !0
1050
+ },
1051
+ window.location.href
1052
+ );
1053
+ }, be = (l, p) => ne(this, null, function* () {
1054
+ var Te;
1055
+ t(16, K = !1), t(18, Q = !1), window.postMessage(
1056
+ {
1057
+ type: "TournamentJoinRequest",
1058
+ tournamentId: l
1059
+ },
1060
+ window.location.href
1061
+ ), t(15, G = !0);
1062
+ let C = new URL(`${d}/v1/bonus/claim`), V = new Headers(), P = {};
1063
+ C.searchParams.append("language", b), C.searchParams.append("platform", Ce(le)), V.append("Content-Type", "application/json"), V.append("X-SessionID", q), p && p.length >= 1 && (P = {
1064
+ language: b,
1065
+ bonusCode: p[0].code,
1066
+ currency: Z,
1067
+ type: "tournament"
1068
+ });
1069
+ let Ve = {
1070
+ method: "PUT",
1071
+ headers: V,
1072
+ body: JSON.stringify(P)
1073
+ };
1074
+ const ke = () => {
1075
+ t(15, G = !1), t(25, Y = !0);
1076
+ }, ie = (S) => {
1077
+ t(15, G = !1), S && t(17, oe = S), t(16, K = !0);
1078
+ }, J = yield ne(this, null, function* () {
1079
+ let S;
1080
+ try {
1081
+ S = yield fetch(C, Ve), S = yield S.json();
1082
+ } catch (Ft) {
1083
+ ie();
1084
+ }
1085
+ return S;
1086
+ });
1087
+ if (J)
1088
+ if (J.success == !0)
1089
+ ke();
1090
+ else if (J.errorMessage.match("VersionMismatchException")) {
1091
+ let S;
1092
+ S = yield fetch(`${d}/tournaments/${j}`, { headers: { "X-SessionID": r } }), S = yield S.json(), (Te = S == null ? void 0 : S.item) != null && Te.playerEnrolled ? ke() : (ie(J.errorMessage), t(18, Q = !0), t(16, K = !1));
1093
+ } else
1094
+ ie(J.errorMessage);
1095
+ }), _e = (l, p) => {
1096
+ window.postMessage(
1097
+ {
1098
+ type: `TournamentPrizes_${p}`,
1099
+ prizes: he
1100
+ },
1101
+ window.location.href
1102
+ );
1103
+ }, ye = (l) => {
1104
+ l && (t(19, ae = l.nameOrTitle || ""), t(20, me = l.startTime), t(21, ue = l.endTime), t(22, x = l.state), t(23, j = l.id), t(24, fe = l.thumbnail), t(25, Y = l.playerEnrolled || !1), t(26, de = l.scoreCriteria), t(27, ce = l.minBetCount), he = l.prizes, t(28, $ = l.wallets || []), t(29, ge = l.termsUrl || "#"));
1105
+ }, xe = (l) => {
1106
+ t(14, I = !0);
1107
+ let p = new URL(l), C = new Headers();
1108
+ p.searchParams.append("language", b), p.searchParams.append("platform", Ce(le)), L && C.append("X-SessionID", q), fetch(p, { method: "GET", headers: C }).then((P) => P.json()).then((P) => {
1109
+ t(14, I = !1), ye(P.item);
1110
+ });
1111
+ }, Je = () => {
1112
+ r.length > 0 && r != "false" ? (q = r, t(13, L = !0)) : t(13, L = !1);
1113
+ }, Re = () => {
1114
+ t(14, I = !0), xe(o);
1115
+ }, Ue = () => {
1116
+ let l = document.createElement("style");
1117
+ l.innerHTML = H, A.appendChild(l);
1118
+ }, He = () => {
1119
+ let l = new URL(N), p = document.createElement("style");
1120
+ fetch(l.href).then((C) => C.text()).then((C) => {
1121
+ p.innerHTML = C, setTimeout(
1122
+ () => {
1123
+ A.appendChild(p);
1124
+ },
1125
+ 1
1126
+ ), setTimeout(
1127
+ () => {
1128
+ },
1129
+ 500
1130
+ );
1131
+ });
1132
+ };
1133
+ st(() => (t(14, I = !1), window.addEventListener("message", ve, !1), () => {
1134
+ window.removeEventListener("message", ve);
1135
+ }));
1136
+ const Ne = () => ze(), We = () => we(), qe = () => te(j), Ge = () => be(j, $), Ke = () => te(j);
1137
+ function Xe(l) {
1138
+ rt[l ? "unshift" : "push"](() => {
1139
+ A = l, t(12, A);
1140
+ });
1141
+ }
1142
+ return i.$$set = (l) => {
1143
+ "session" in l && t(0, r = l.session), "userid" in l && t(1, s = l.userid), "tournamenturl" in l && t(2, o = l.tournamenturl), "touridx" in l && t(37, m = l.touridx), "endpoint" in l && t(38, d = l.endpoint), "showdetails" in l && t(3, h = l.showdetails), "showslider" in l && t(4, c = l.showslider), "showenrolled" in l && t(5, _ = l.showenrolled), "maxwidth" in l && t(6, B = l.maxwidth), "fullsize" in l && t(7, T = l.fullsize), "lang" in l && t(8, b = l.lang), "loginevent" in l && t(39, k = l.loginevent), "registerevent" in l && t(40, f = l.registerevent), "loginurl" in l && t(41, g = l.loginurl), "registerurl" in l && t(42, U = l.registerurl), "currency" in l && t(43, Z = l.currency), "keepbrowsercontext" in l && t(9, re = l.keepbrowsercontext), "clientstyling" in l && t(10, H = l.clientstyling), "clientstylingurl" in l && t(11, N = l.clientstylingurl), "translationurl" in l && t(44, W = l.translationurl);
1144
+ }, i.$$.update = () => {
1145
+ i.$$.dirty[0] & /*customStylingContainer, clientstyling*/
1146
+ 5120 && A && H && Ue(), i.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
1147
+ 6144 && A && N && He(), i.$$.dirty[1] & /*translationurl*/
1148
+ 8192 && W && Le(), i.$$.dirty[0] & /*session*/
1149
+ 1 && r && Je(), i.$$.dirty[0] & /*tournamenturl, lang*/
1150
+ 260 && t(45, ee = o && b), i.$$.dirty[1] & /*initialParameters*/
1151
+ 16384 && ee && Re();
1152
+ }, [
1153
+ r,
1154
+ s,
1155
+ o,
1156
+ h,
1157
+ c,
1158
+ _,
1159
+ B,
1160
+ T,
1161
+ b,
1162
+ re,
1163
+ H,
1164
+ N,
1165
+ A,
1166
+ L,
1167
+ I,
1168
+ G,
1169
+ K,
1170
+ oe,
1171
+ Q,
1172
+ ae,
1173
+ me,
1174
+ ue,
1175
+ x,
1176
+ j,
1177
+ fe,
1178
+ Y,
1179
+ de,
1180
+ ce,
1181
+ $,
1182
+ ge,
1183
+ X,
1184
+ n,
1185
+ ze,
1186
+ we,
1187
+ te,
1188
+ be,
1189
+ _e,
1190
+ m,
1191
+ d,
1192
+ k,
1193
+ f,
1194
+ g,
1195
+ U,
1196
+ Z,
1197
+ W,
1198
+ ee,
1199
+ Ne,
1200
+ We,
1201
+ qe,
1202
+ Ge,
1203
+ Ke,
1204
+ Xe
1205
+ ];
1206
+ }
1207
+ class kt extends Ye {
1208
+ constructor(e) {
1209
+ super(), $e(
1210
+ this,
1211
+ e,
1212
+ yt,
1213
+ _t,
1214
+ tt,
1215
+ {
1216
+ session: 0,
1217
+ userid: 1,
1218
+ tournamenturl: 2,
1219
+ touridx: 37,
1220
+ endpoint: 38,
1221
+ showdetails: 3,
1222
+ showslider: 4,
1223
+ showenrolled: 5,
1224
+ maxwidth: 6,
1225
+ fullsize: 7,
1226
+ lang: 8,
1227
+ loginevent: 39,
1228
+ registerevent: 40,
1229
+ loginurl: 41,
1230
+ registerurl: 42,
1231
+ currency: 43,
1232
+ keepbrowsercontext: 9,
1233
+ clientstyling: 10,
1234
+ clientstylingurl: 11,
1235
+ translationurl: 44
1236
+ },
1237
+ ft,
1238
+ [-1, -1, -1]
1239
+ );
1240
+ }
1241
+ get session() {
1242
+ return this.$$.ctx[0];
1243
+ }
1244
+ set session(e) {
1245
+ this.$$set({ session: e }), y();
1246
+ }
1247
+ get userid() {
1248
+ return this.$$.ctx[1];
1249
+ }
1250
+ set userid(e) {
1251
+ this.$$set({ userid: e }), y();
1252
+ }
1253
+ get tournamenturl() {
1254
+ return this.$$.ctx[2];
1255
+ }
1256
+ set tournamenturl(e) {
1257
+ this.$$set({ tournamenturl: e }), y();
1258
+ }
1259
+ get touridx() {
1260
+ return this.$$.ctx[37];
1261
+ }
1262
+ set touridx(e) {
1263
+ this.$$set({ touridx: e }), y();
1264
+ }
1265
+ get endpoint() {
1266
+ return this.$$.ctx[38];
1267
+ }
1268
+ set endpoint(e) {
1269
+ this.$$set({ endpoint: e }), y();
1270
+ }
1271
+ get showdetails() {
1272
+ return this.$$.ctx[3];
1273
+ }
1274
+ set showdetails(e) {
1275
+ this.$$set({ showdetails: e }), y();
1276
+ }
1277
+ get showslider() {
1278
+ return this.$$.ctx[4];
1279
+ }
1280
+ set showslider(e) {
1281
+ this.$$set({ showslider: e }), y();
1282
+ }
1283
+ get showenrolled() {
1284
+ return this.$$.ctx[5];
1285
+ }
1286
+ set showenrolled(e) {
1287
+ this.$$set({ showenrolled: e }), y();
1288
+ }
1289
+ get maxwidth() {
1290
+ return this.$$.ctx[6];
1291
+ }
1292
+ set maxwidth(e) {
1293
+ this.$$set({ maxwidth: e }), y();
1294
+ }
1295
+ get fullsize() {
1296
+ return this.$$.ctx[7];
1297
+ }
1298
+ set fullsize(e) {
1299
+ this.$$set({ fullsize: e }), y();
1300
+ }
1301
+ get lang() {
1302
+ return this.$$.ctx[8];
1303
+ }
1304
+ set lang(e) {
1305
+ this.$$set({ lang: e }), y();
1306
+ }
1307
+ get loginevent() {
1308
+ return this.$$.ctx[39];
1309
+ }
1310
+ set loginevent(e) {
1311
+ this.$$set({ loginevent: e }), y();
1312
+ }
1313
+ get registerevent() {
1314
+ return this.$$.ctx[40];
1315
+ }
1316
+ set registerevent(e) {
1317
+ this.$$set({ registerevent: e }), y();
1318
+ }
1319
+ get loginurl() {
1320
+ return this.$$.ctx[41];
1321
+ }
1322
+ set loginurl(e) {
1323
+ this.$$set({ loginurl: e }), y();
1324
+ }
1325
+ get registerurl() {
1326
+ return this.$$.ctx[42];
1327
+ }
1328
+ set registerurl(e) {
1329
+ this.$$set({ registerurl: e }), y();
1330
+ }
1331
+ get currency() {
1332
+ return this.$$.ctx[43];
1333
+ }
1334
+ set currency(e) {
1335
+ this.$$set({ currency: e }), y();
1336
+ }
1337
+ get keepbrowsercontext() {
1338
+ return this.$$.ctx[9];
1339
+ }
1340
+ set keepbrowsercontext(e) {
1341
+ this.$$set({ keepbrowsercontext: e }), y();
1342
+ }
1343
+ get clientstyling() {
1344
+ return this.$$.ctx[10];
1345
+ }
1346
+ set clientstyling(e) {
1347
+ this.$$set({ clientstyling: e }), y();
1348
+ }
1349
+ get clientstylingurl() {
1350
+ return this.$$.ctx[11];
1351
+ }
1352
+ set clientstylingurl(e) {
1353
+ this.$$set({ clientstylingurl: e }), y();
1354
+ }
1355
+ get translationurl() {
1356
+ return this.$$.ctx[44];
1357
+ }
1358
+ set translationurl(e) {
1359
+ this.$$set({ translationurl: e }), y();
1360
+ }
1361
+ }
1362
+ et(kt, { session: {}, userid: {}, tournamenturl: {}, touridx: {}, endpoint: {}, showdetails: {}, showslider: {}, showenrolled: {}, maxwidth: {}, fullsize: {}, lang: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
1363
+ export {
1364
+ kt as default
1365
+ };