@everymatrix/casino-tournaments-controller 1.64.8 → 1.65.1

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