@everymatrix/casino-tournaments-controller 1.45.0 → 1.45.3

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