@everymatrix/casino-tournament-banner 1.44.0 → 1.45.0

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 (50) hide show
  1. package/dist/casino-tournament-banner/casino-tournament-banner.esm.js +1 -1
  2. package/dist/casino-tournament-banner/p-92acdabb.js +2 -0
  3. package/dist/casino-tournament-banner/p-e1255160.js +1 -0
  4. package/dist/casino-tournament-banner/p-efee48e1.entry.js +9 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  6. package/dist/cjs/casino-tournament-banner.cjs.js +17 -11
  7. package/dist/cjs/casino-tournament-banner_2.cjs.entry.js +1509 -1503
  8. package/dist/cjs/index-78134d39.js +1309 -0
  9. package/dist/cjs/loader.cjs.js +7 -13
  10. package/dist/collection/collection-manifest.json +3 -3
  11. package/dist/collection/components/casino-tournament-banner/casino-tournament-banner.js +739 -762
  12. package/dist/collection/components/casino-tournament-banner/index.js +1 -0
  13. package/dist/collection/utils/locale.utils.js +392 -392
  14. package/dist/collection/utils/utils.js +11 -11
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/casino-tournament-banner.js +14 -11
  17. package/dist/esm/casino-tournament-banner_2.entry.js +1509 -1503
  18. package/dist/esm/index-1bdfb450.js +1281 -0
  19. package/dist/esm/loader.js +7 -13
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/casino-tournament-banner/casino-tournament-banner.d.ts +138 -138
  25. package/dist/types/components/casino-tournament-banner/index.d.ts +1 -0
  26. package/dist/types/stencil-public-runtime.d.ts +142 -33
  27. package/loader/cdn.js +1 -3
  28. package/loader/index.cjs.js +1 -3
  29. package/loader/index.d.ts +13 -1
  30. package/loader/index.es2017.js +1 -3
  31. package/loader/index.js +1 -3
  32. package/loader/package.json +1 -0
  33. package/package.json +11 -1
  34. package/dist/casino-tournament-banner/p-4576b686.js +0 -1
  35. package/dist/casino-tournament-banner/p-49e8660b.entry.js +0 -9
  36. package/dist/cjs/index-3a4744d8.js +0 -1291
  37. package/dist/components/casino-tournament-banner.d.ts +0 -11
  38. package/dist/components/casino-tournament-banner.js +0 -6352
  39. package/dist/components/casino-tournament-buttons.js +0 -6
  40. package/dist/components/casino-tournament-buttons2.js +0 -596
  41. package/dist/components/index.d.ts +0 -26
  42. package/dist/components/index.js +0 -1
  43. package/dist/esm/index-1ea7f13c.js +0 -1264
  44. package/dist/esm/polyfills/core-js.js +0 -11
  45. package/dist/esm/polyfills/css-shim.js +0 -1
  46. package/dist/esm/polyfills/dom.js +0 -79
  47. package/dist/esm/polyfills/es5-html-element.js +0 -1
  48. package/dist/esm/polyfills/index.js +0 -34
  49. package/dist/esm/polyfills/system.js +0 -6
  50. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-tournament-banner/.stencil/packages/casino-tournament-banner/stencil.config.d.ts +0 -2
@@ -1,407 +1,407 @@
1
- import { r as registerInstance, h, g as getElement, c as createEvent } from './index-1ea7f13c.js';
1
+ import { r as registerInstance, h, g as getElement, c as createEvent } from './index-1bdfb450.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE$1 = 'en';
4
4
  const TRANSLATIONS$1 = {
5
- en: {
6
- joined: 'Joined',
7
- join: 'Join',
8
- enrolled: 'Enrolled',
9
- scoreCriteria: 'Score Criteria',
10
- minbet: 'min bet count',
11
- seegames: 'You can see the games',
12
- here: 'here',
13
- scheduled: 'Scheduled',
14
- ongoing: 'Ongoing',
15
- finished: 'Finished',
16
- startingAt: 'Starting at:',
17
- startedAt: 'Started at:',
18
- startingAtWithTime: `Starts `,
19
- startedAtWithTime: `Started `,
20
- mostRounds: 'Most Rounds',
21
- betCount: 'Number of Bets',
22
- maxWinStakeRatio: 'Max Win per Stake',
23
- winStakeRatio: 'Total Win per Stake',
24
- January: 'January',
25
- February: 'February',
26
- March: 'March',
27
- April: 'April',
28
- May: 'May',
29
- June: 'June',
30
- July: 'July',
31
- August: 'August',
32
- September: 'September',
33
- October: 'October',
34
- November: 'November',
35
- December: 'December',
36
- login: 'Log in',
37
- register: 'Register',
38
- details: 'Details',
39
- joinerror: 'An error occurred while registering in the tournament, please try again.',
40
- tournament: 'Tournament',
41
- terms: 'Terms and conditions',
42
- left: 'left',
43
- minutes: 'minutes',
44
- hours: 'hours',
45
- days: 'days',
46
- },
47
- 'zh-hk': {
48
- enrolled: '已註冊',
49
- scoreCriteria: '評分標準',
50
- minbet: '最小投注數:',
51
- seegames: '你可以看比賽',
52
- here: '這裡',
53
- scheduled: '預定的',
54
- ongoing: '進行中',
55
- finished: '完成的',
56
- startingAt: '開始於',
57
- startedAt: '大多數回合',
58
- mostRounds: '投注數',
59
- betCount: '投注计数',
60
- maxWinStakeRatio: '最大勝率',
61
- winStakeRatio: '勝率',
62
- January: '一月',
63
- February: '二月',
64
- March: '行进',
65
- April: '四月',
66
- May: '可能',
67
- June: '六月',
68
- July: '七月',
69
- August: '八月',
70
- September: '九月',
71
- October: '十月',
72
- November: '十一月',
73
- December: '十二月',
74
- login: '登錄',
75
- register: '登記',
76
- details: '細節',
77
- join: '加入',
78
- joinerror: '加入錦標賽時出錯,請重試',
79
- left: '剩下',
80
- minutes: '分鐘',
81
- hours: '小時',
82
- days: '天',
83
- },
84
- fr: {
85
- enrolled: 'Inscrits',
86
- scoreCriteria: 'Critères de notation',
87
- minbet: 'nombre de paris minimum',
88
- seegames: 'Vous pouvez voir les jeux',
89
- here: 'ici',
90
- scheduled: 'Programmé',
91
- ongoing: 'En cours',
92
- finished: 'Fini',
93
- startingAt: 'À partir de:',
94
- startedAt: 'Commencé à:',
95
- mostRounds: 'Le plus grand nombre de tours',
96
- betCount: 'Nombre de paris',
97
- maxWinStakeRatio: 'Indice maximum du gain d\'une mise',
98
- winStakeRatio: 'Indice du gain d\'une mise',
99
- January: 'January',
100
- February: 'February',
101
- March: 'March',
102
- April: 'April',
103
- May: 'May',
104
- June: 'June',
105
- July: 'July',
106
- August: 'August',
107
- September: 'September',
108
- October: 'October',
109
- November: 'November',
110
- December: 'December',
111
- login: 'Connexion',
112
- register: 'Enregistre',
113
- details: 'Détails',
114
- join: 'Rejoignez',
115
- joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - ',
116
- left: 'restant',
117
- minutes: 'minutes',
118
- hours: 'heures',
119
- days: 'jours',
120
- },
121
- ro: {
122
- enrolled: 'Înscris',
123
- scoreCriteria: 'Criterii de punctaj',
124
- minbet: 'număr minim de pariuri',
125
- seegames: 'Vezi jocurile',
126
- here: 'aici',
127
- scheduled: 'Programat',
128
- ongoing: 'În desfășurare',
129
- finished: 'Finalizat',
130
- startingAt: 'Începând de la',
131
- startedAt: 'A inceput la:',
132
- startingAtWithTime: 'Începând de',
133
- startedAtWithTime: 'A inceput:',
134
- mostRounds: 'Cele mai multe runde',
135
- betCount: 'Număr de pariuri',
136
- maxWinStakeRatio: 'Pondere maximă a mizei din câștig',
137
- winStakeRatio: 'Câștig Total per Miză',
138
- January: 'Ianuarie',
139
- February: 'Februarie',
140
- March: 'Martie',
141
- April: 'Aprilie',
142
- May: 'Mai',
143
- June: 'Iunie',
144
- July: 'Iulie',
145
- August: 'August',
146
- September: 'Septembrie',
147
- October: 'Octombrie',
148
- November: 'Noiembrie',
149
- December: 'Decembrie',
150
- login: 'Autentificare',
151
- register: 'Înregistrare',
152
- details: 'Detalii',
153
- join: 'Participă',
154
- joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.',
155
- left: 'rămase',
156
- minutes: 'minute',
157
- hours: 'ore',
158
- days: 'zile',
159
- tournament: 'turneu'
160
- },
161
- tr: {
162
- enrolled: 'Katıldın',
163
- scoreCriteria: 'Skor kriteri',
164
- minbet: 'en düşük bahis sayısı',
165
- seegames: 'Turnuvadaki oyunları görmek için',
166
- here: 'tıklayın',
167
- scheduled: 'Planlanmış',
168
- ongoing: 'Devam Eden',
169
- finished: 'Sona Ermiş',
170
- startingAt: 'Başlangıç saati:',
171
- startedAt: 'Başlangıç saati:',
172
- mostRounds: 'ÇoğuRounds',
173
- betCount: 'Oynanan Tur Sayısı',
174
- maxWinStakeRatio: 'Maksimum Kazanç / Bahis Oranı',
175
- winStakeRatio: 'Kazanç / Bahis Oranı',
176
- January: 'Ocak',
177
- February: 'Şubat',
178
- March: 'Mart',
179
- April: 'Nisan',
180
- May: 'Mayıs',
181
- June: 'Haziran',
182
- July: 'Temmuz',
183
- August: 'Ağustos',
184
- September: 'Eylül',
185
- October: 'Ekim',
186
- November: 'Kasım',
187
- December: 'Aralık',
188
- login: 'Giriş',
189
- register: 'Kayıt Ol',
190
- details: 'Detaylar',
191
- join: 'Katıl',
192
- joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - ',
193
- left: 'kaldı',
194
- minutes: 'dakika',
195
- hours: 'saat',
196
- days: 'gün',
197
- },
198
- el: {
199
- enrolled: 'Εγγεγραμμένος',
200
- scoreCriteria: 'Κριτήρια Σκορ',
201
- minbet: 'Ελάχιστος αριθμός πονταρισμάτων',
202
- seegames: 'Μπορείς να δεις τα παιχνίδια',
203
- here: 'εδώ',
204
- all: 'Όλα',
205
- scheduled: 'Προγραμματισμένα',
206
- ongoing: 'Τρέχοντα',
207
- finished: 'Ολοκληρωμένα',
208
- startingAt: 'Αρχίζει στις:',
209
- startedAt: 'Άρχισε στις:',
210
- startingAtWithTime: `Αρχίζει στις `,
211
- startedAtWithTime: `Άρχισε στις `,
212
- mostRounds: 'Οι περισσότεροι γύροι',
213
- betCount: 'Οι περισσότεροι γύροι',
214
- maxWinStakeRatio: 'Μεγαλύτερο Κέρδος άνα Ποντάρισμα',
215
- winStakeRatio: 'Συνολική Αναλογία Κερδών άνα Ποντάρισμα',
216
- January: 'Ιανουαρίου',
217
- February: 'Φεβρουαρίου',
218
- March: 'Μαρτίου',
219
- April: 'Απριλίου',
220
- May: 'Μαΐου',
221
- June: 'Ιουνίου',
222
- July: 'Ιουλίου',
223
- August: 'Αυγούστου',
224
- September: 'Σεπτεμβρίου',
225
- October: 'Οκτωβρίου',
226
- November: 'Νοεμβρίου',
227
- December: 'Δεκεμβρίου',
228
- login: 'Είσοδος',
229
- register: 'Εγγραφή',
230
- details: 'Λεπτομέρειες',
231
- join: 'Συμμετοχή',
232
- joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.',
233
- left: 'απομένουν',
234
- minutes: 'λεπτά',
235
- hours: 'ώρες',
236
- days: 'ημέρες',
237
- },
238
- es: {
239
- enrolled: 'Inscrito',
240
- scoreCriteria: 'Criterios de puntuación',
241
- minbet: 'la apuesta mínima cuenta',
242
- seegames: 'Puedes ver los juegos',
243
- here: 'aquí',
244
- scheduled: 'Programado',
245
- ongoing: 'En marcha',
246
- finished: 'Terminado',
247
- startingAt: 'Desde',
248
- startedAt: 'Empezó el:',
249
- mostRounds: 'LaMayoríaDeLasRondas',
250
- betCount: 'Recuento De Apuestas',
251
- maxWinStakeRatio: 'Ratio De Ganancia Máxima',
252
- winStakeRatio: 'Ratio De Ganancia',
253
- January: 'de enero',
254
- February: 'de febrero',
255
- March: 'de marzo',
256
- April: 'de abril',
257
- May: 'de mayo',
258
- June: 'de junio',
259
- July: 'de julio',
260
- August: 'de agosto',
261
- September: 'de septiembre',
262
- October: 'de octubre',
263
- November: 'de noviembre',
264
- December: 'de diciembre',
265
- login: 'Iniciar sesión',
266
- register: 'Regístrate',
267
- details: 'Detalles',
268
- join: 'Unirse',
269
- joinerror: 'Ha ocurrido un error mientras se registra en el Torneo',
270
- left: 'izquierda',
271
- minutes: 'minutos',
272
- hours: 'horas',
273
- days: 'días',
274
- },
275
- pt: {
276
- enrolled: 'Inscrito',
277
- scoreCriteria: 'Critérios de pontuação',
278
- minbet: 'Contagens de aposta mínima',
279
- seegames: 'Você pode ver os jogos',
280
- here: 'Aqui',
281
- scheduled: 'Agendado',
282
- ongoing: 'Em progresso',
283
- finished: 'Finalizado',
284
- startingAt: 'Começando às:',
285
- startedAt: 'Começou às:',
286
- mostRounds: 'Mais rodadas',
287
- betCount: 'Contagem de Apostas',
288
- maxWinStakeRatio: 'Rácio máximo de vitórias',
289
- winStakeRatio: 'Rácio de Vitórias',
290
- January: 'January',
291
- February: 'February',
292
- March: 'March',
293
- April: 'April',
294
- May: 'May',
295
- June: 'June',
296
- July: 'July',
297
- August: 'August',
298
- September: 'September',
299
- October: 'October',
300
- November: 'November',
301
- December: 'December',
302
- login: 'Entrar',
303
- register: 'Registro',
304
- details: 'Detalhes',
305
- join: 'Junte-se',
306
- joinerror: 'Ocorreu um erro ao entrar no torneio -',
307
- left: 'Abandonou',
308
- minutes: 'Minutos',
309
- hours: 'Horas',
310
- days: 'Dias',
311
- },
312
- hu: {
313
- enrolled: 'Feliratkozott',
314
- scoreCriteria: 'Pontozási kritériumok',
315
- minbet: 'Minimális tét',
316
- seegames: 'Játékok megnézése',
317
- here: 'itt',
318
- scheduled: 'Ütemezés',
319
- ongoing: 'Folyamatban lévő',
320
- finished: 'Befejezett',
321
- startingAt: 'Kezdődik',
322
- startedAt: 'Started at:',
323
- mostRounds: 'Legtöbb kör',
324
- betCount: 'Számított tét',
325
- maxWinStakeRatio: 'Maximális nyeremény tétenként',
326
- winStakeRatio: 'Összes nyeremény tétenként',
327
- January: 'January',
328
- February: 'February',
329
- March: 'March',
330
- April: 'April',
331
- May: 'May',
332
- June: 'June',
333
- July: 'July',
334
- August: 'August',
335
- September: 'September',
336
- October: 'October',
337
- November: 'November',
338
- December: 'December',
339
- login: 'Bejelentkezés',
340
- register: 'Regisztráció',
341
- details: 'Adatok',
342
- join: 'Csatlakozás',
343
- joinerror: 'Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.',
344
- left: 'bal',
345
- minutes: 'perc',
346
- hours: 'óra',
347
- days: 'nap',
348
- },
349
- hr: {
350
- joined: 'Pridružen',
351
- enrolled: 'Upisan',
352
- scoreCriteria: 'Kriteriji bodovanja',
353
- minbet: 'minimalni broj beta',
354
- seegames: 'Možete vidjeti igre',
355
- here: 'Ovdje',
356
- scheduled: 'Zakazano',
357
- ongoing: 'U tijeku',
358
- finished: 'Gotovo',
359
- startingAt: 'S početkom u',
360
- startedAt: 'Započelo u',
361
- startingAtWithTime: `Počinje `,
362
- startedAtWithTime: `Započelo `,
363
- mostRounds: 'Najviše rundi',
364
- betCount: 'Broj betova',
365
- maxWinStakeRatio: 'Maksimalni dobitak po ulogu',
366
- winStakeRatio: 'Ukupni dobitak po ulogu',
367
- January: 'Siječanj',
368
- February: 'Veljača',
369
- March: 'Ožujak',
370
- April: 'Travanj',
371
- May: 'Svibanj',
372
- June: 'Lipanj',
373
- July: 'Srpanj',
374
- August: 'Kolovoz',
375
- September: 'Rujan',
376
- October: 'Listopad',
377
- November: 'Studeni',
378
- December: 'Prosinac',
379
- login: 'Prijaviti se',
380
- register: 'Registracija',
381
- details: 'Detalji',
382
- join: 'join',
383
- joinerror: 'Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.',
384
- left: 'lijevo',
385
- minutes: 'minute',
386
- hours: 'sati',
387
- days: 'dani',
388
- }
5
+ en: {
6
+ joined: 'Joined',
7
+ join: 'Join',
8
+ enrolled: 'Enrolled',
9
+ scoreCriteria: 'Score Criteria',
10
+ minbet: 'min bet count',
11
+ seegames: 'You can see the games',
12
+ here: 'here',
13
+ scheduled: 'Scheduled',
14
+ ongoing: 'Ongoing',
15
+ finished: 'Finished',
16
+ startingAt: 'Starting at:',
17
+ startedAt: 'Started at:',
18
+ startingAtWithTime: `Starts `,
19
+ startedAtWithTime: `Started `,
20
+ mostRounds: 'Most Rounds',
21
+ betCount: 'Number of Bets',
22
+ maxWinStakeRatio: 'Max Win per Stake',
23
+ winStakeRatio: 'Total Win per Stake',
24
+ January: 'January',
25
+ February: 'February',
26
+ March: 'March',
27
+ April: 'April',
28
+ May: 'May',
29
+ June: 'June',
30
+ July: 'July',
31
+ August: 'August',
32
+ September: 'September',
33
+ October: 'October',
34
+ November: 'November',
35
+ December: 'December',
36
+ login: 'Log in',
37
+ register: 'Register',
38
+ details: 'Details',
39
+ joinerror: 'An error occurred while registering in the tournament, please try again.',
40
+ tournament: 'Tournament',
41
+ terms: 'Terms and conditions',
42
+ left: 'left',
43
+ minutes: 'minutes',
44
+ hours: 'hours',
45
+ days: 'days',
46
+ },
47
+ 'zh-hk': {
48
+ enrolled: '已註冊',
49
+ scoreCriteria: '評分標準',
50
+ minbet: '最小投注數:',
51
+ seegames: '你可以看比賽',
52
+ here: '這裡',
53
+ scheduled: '預定的',
54
+ ongoing: '進行中',
55
+ finished: '完成的',
56
+ startingAt: '開始於',
57
+ startedAt: '大多數回合',
58
+ mostRounds: '投注數',
59
+ betCount: '投注计数',
60
+ maxWinStakeRatio: '最大勝率',
61
+ winStakeRatio: '勝率',
62
+ January: '一月',
63
+ February: '二月',
64
+ March: '行进',
65
+ April: '四月',
66
+ May: '可能',
67
+ June: '六月',
68
+ July: '七月',
69
+ August: '八月',
70
+ September: '九月',
71
+ October: '十月',
72
+ November: '十一月',
73
+ December: '十二月',
74
+ login: '登錄',
75
+ register: '登記',
76
+ details: '細節',
77
+ join: '加入',
78
+ joinerror: '加入錦標賽時出錯,請重試',
79
+ left: '剩下',
80
+ minutes: '分鐘',
81
+ hours: '小時',
82
+ days: '天',
83
+ },
84
+ fr: {
85
+ enrolled: 'Inscrits',
86
+ scoreCriteria: 'Critères de notation',
87
+ minbet: 'nombre de paris minimum',
88
+ seegames: 'Vous pouvez voir les jeux',
89
+ here: 'ici',
90
+ scheduled: 'Programmé',
91
+ ongoing: 'En cours',
92
+ finished: 'Fini',
93
+ startingAt: 'À partir de:',
94
+ startedAt: 'Commencé à:',
95
+ mostRounds: 'Le plus grand nombre de tours',
96
+ betCount: 'Nombre de paris',
97
+ maxWinStakeRatio: 'Indice maximum du gain d\'une mise',
98
+ winStakeRatio: 'Indice du gain d\'une mise',
99
+ January: 'January',
100
+ February: 'February',
101
+ March: 'March',
102
+ April: 'April',
103
+ May: 'May',
104
+ June: 'June',
105
+ July: 'July',
106
+ August: 'August',
107
+ September: 'September',
108
+ October: 'October',
109
+ November: 'November',
110
+ December: 'December',
111
+ login: 'Connexion',
112
+ register: 'Enregistre',
113
+ details: 'Détails',
114
+ join: 'Rejoignez',
115
+ joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - ',
116
+ left: 'restant',
117
+ minutes: 'minutes',
118
+ hours: 'heures',
119
+ days: 'jours',
120
+ },
121
+ ro: {
122
+ enrolled: 'Înscris',
123
+ scoreCriteria: 'Criterii de punctaj',
124
+ minbet: 'număr minim de pariuri',
125
+ seegames: 'Vezi jocurile',
126
+ here: 'aici',
127
+ scheduled: 'Programat',
128
+ ongoing: 'În desfășurare',
129
+ finished: 'Finalizat',
130
+ startingAt: 'Începând de la',
131
+ startedAt: 'A inceput la:',
132
+ startingAtWithTime: 'Începând de',
133
+ startedAtWithTime: 'A inceput:',
134
+ mostRounds: 'Cele mai multe runde',
135
+ betCount: 'Număr de pariuri',
136
+ maxWinStakeRatio: 'Pondere maximă a mizei din câștig',
137
+ winStakeRatio: 'Câștig Total per Miză',
138
+ January: 'Ianuarie',
139
+ February: 'Februarie',
140
+ March: 'Martie',
141
+ April: 'Aprilie',
142
+ May: 'Mai',
143
+ June: 'Iunie',
144
+ July: 'Iulie',
145
+ August: 'August',
146
+ September: 'Septembrie',
147
+ October: 'Octombrie',
148
+ November: 'Noiembrie',
149
+ December: 'Decembrie',
150
+ login: 'Autentificare',
151
+ register: 'Înregistrare',
152
+ details: 'Detalii',
153
+ join: 'Participă',
154
+ joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.',
155
+ left: 'rămase',
156
+ minutes: 'minute',
157
+ hours: 'ore',
158
+ days: 'zile',
159
+ tournament: 'turneu'
160
+ },
161
+ tr: {
162
+ enrolled: 'Katıldın',
163
+ scoreCriteria: 'Skor kriteri',
164
+ minbet: 'en düşük bahis sayısı',
165
+ seegames: 'Turnuvadaki oyunları görmek için',
166
+ here: 'tıklayın',
167
+ scheduled: 'Planlanmış',
168
+ ongoing: 'Devam Eden',
169
+ finished: 'Sona Ermiş',
170
+ startingAt: 'Başlangıç saati:',
171
+ startedAt: 'Başlangıç saati:',
172
+ mostRounds: 'ÇoğuRounds',
173
+ betCount: 'Oynanan Tur Sayısı',
174
+ maxWinStakeRatio: 'Maksimum Kazanç / Bahis Oranı',
175
+ winStakeRatio: 'Kazanç / Bahis Oranı',
176
+ January: 'Ocak',
177
+ February: 'Şubat',
178
+ March: 'Mart',
179
+ April: 'Nisan',
180
+ May: 'Mayıs',
181
+ June: 'Haziran',
182
+ July: 'Temmuz',
183
+ August: 'Ağustos',
184
+ September: 'Eylül',
185
+ October: 'Ekim',
186
+ November: 'Kasım',
187
+ December: 'Aralık',
188
+ login: 'Giriş',
189
+ register: 'Kayıt Ol',
190
+ details: 'Detaylar',
191
+ join: 'Katıl',
192
+ joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - ',
193
+ left: 'kaldı',
194
+ minutes: 'dakika',
195
+ hours: 'saat',
196
+ days: 'gün',
197
+ },
198
+ el: {
199
+ enrolled: 'Εγγεγραμμένος',
200
+ scoreCriteria: 'Κριτήρια Σκορ',
201
+ minbet: 'Ελάχιστος αριθμός πονταρισμάτων',
202
+ seegames: 'Μπορείς να δεις τα παιχνίδια',
203
+ here: 'εδώ',
204
+ all: 'Όλα',
205
+ scheduled: 'Προγραμματισμένα',
206
+ ongoing: 'Τρέχοντα',
207
+ finished: 'Ολοκληρωμένα',
208
+ startingAt: 'Αρχίζει στις:',
209
+ startedAt: 'Άρχισε στις:',
210
+ startingAtWithTime: `Αρχίζει στις `,
211
+ startedAtWithTime: `Άρχισε στις `,
212
+ mostRounds: 'Οι περισσότεροι γύροι',
213
+ betCount: 'Οι περισσότεροι γύροι',
214
+ maxWinStakeRatio: 'Μεγαλύτερο Κέρδος άνα Ποντάρισμα',
215
+ winStakeRatio: 'Συνολική Αναλογία Κερδών άνα Ποντάρισμα',
216
+ January: 'Ιανουαρίου',
217
+ February: 'Φεβρουαρίου',
218
+ March: 'Μαρτίου',
219
+ April: 'Απριλίου',
220
+ May: 'Μαΐου',
221
+ June: 'Ιουνίου',
222
+ July: 'Ιουλίου',
223
+ August: 'Αυγούστου',
224
+ September: 'Σεπτεμβρίου',
225
+ October: 'Οκτωβρίου',
226
+ November: 'Νοεμβρίου',
227
+ December: 'Δεκεμβρίου',
228
+ login: 'Είσοδος',
229
+ register: 'Εγγραφή',
230
+ details: 'Λεπτομέρειες',
231
+ join: 'Συμμετοχή',
232
+ joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.',
233
+ left: 'απομένουν',
234
+ minutes: 'λεπτά',
235
+ hours: 'ώρες',
236
+ days: 'ημέρες',
237
+ },
238
+ es: {
239
+ enrolled: 'Inscrito',
240
+ scoreCriteria: 'Criterios de puntuación',
241
+ minbet: 'la apuesta mínima cuenta',
242
+ seegames: 'Puedes ver los juegos',
243
+ here: 'aquí',
244
+ scheduled: 'Programado',
245
+ ongoing: 'En marcha',
246
+ finished: 'Terminado',
247
+ startingAt: 'Desde',
248
+ startedAt: 'Empezó el:',
249
+ mostRounds: 'LaMayoríaDeLasRondas',
250
+ betCount: 'Recuento De Apuestas',
251
+ maxWinStakeRatio: 'Ratio De Ganancia Máxima',
252
+ winStakeRatio: 'Ratio De Ganancia',
253
+ January: 'de enero',
254
+ February: 'de febrero',
255
+ March: 'de marzo',
256
+ April: 'de abril',
257
+ May: 'de mayo',
258
+ June: 'de junio',
259
+ July: 'de julio',
260
+ August: 'de agosto',
261
+ September: 'de septiembre',
262
+ October: 'de octubre',
263
+ November: 'de noviembre',
264
+ December: 'de diciembre',
265
+ login: 'Iniciar sesión',
266
+ register: 'Regístrate',
267
+ details: 'Detalles',
268
+ join: 'Unirse',
269
+ joinerror: 'Ha ocurrido un error mientras se registra en el Torneo',
270
+ left: 'izquierda',
271
+ minutes: 'minutos',
272
+ hours: 'horas',
273
+ days: 'días',
274
+ },
275
+ pt: {
276
+ enrolled: 'Inscrito',
277
+ scoreCriteria: 'Critérios de pontuação',
278
+ minbet: 'Contagens de aposta mínima',
279
+ seegames: 'Você pode ver os jogos',
280
+ here: 'Aqui',
281
+ scheduled: 'Agendado',
282
+ ongoing: 'Em progresso',
283
+ finished: 'Finalizado',
284
+ startingAt: 'Começando às:',
285
+ startedAt: 'Começou às:',
286
+ mostRounds: 'Mais rodadas',
287
+ betCount: 'Contagem de Apostas',
288
+ maxWinStakeRatio: 'Rácio máximo de vitórias',
289
+ winStakeRatio: 'Rácio de Vitórias',
290
+ January: 'January',
291
+ February: 'February',
292
+ March: 'March',
293
+ April: 'April',
294
+ May: 'May',
295
+ June: 'June',
296
+ July: 'July',
297
+ August: 'August',
298
+ September: 'September',
299
+ October: 'October',
300
+ November: 'November',
301
+ December: 'December',
302
+ login: 'Entrar',
303
+ register: 'Registro',
304
+ details: 'Detalhes',
305
+ join: 'Junte-se',
306
+ joinerror: 'Ocorreu um erro ao entrar no torneio -',
307
+ left: 'Abandonou',
308
+ minutes: 'Minutos',
309
+ hours: 'Horas',
310
+ days: 'Dias',
311
+ },
312
+ hu: {
313
+ enrolled: 'Feliratkozott',
314
+ scoreCriteria: 'Pontozási kritériumok',
315
+ minbet: 'Minimális tét',
316
+ seegames: 'Játékok megnézése',
317
+ here: 'itt',
318
+ scheduled: 'Ütemezés',
319
+ ongoing: 'Folyamatban lévő',
320
+ finished: 'Befejezett',
321
+ startingAt: 'Kezdődik',
322
+ startedAt: 'Started at:',
323
+ mostRounds: 'Legtöbb kör',
324
+ betCount: 'Számított tét',
325
+ maxWinStakeRatio: 'Maximális nyeremény tétenként',
326
+ winStakeRatio: 'Összes nyeremény tétenként',
327
+ January: 'January',
328
+ February: 'February',
329
+ March: 'March',
330
+ April: 'April',
331
+ May: 'May',
332
+ June: 'June',
333
+ July: 'July',
334
+ August: 'August',
335
+ September: 'September',
336
+ October: 'October',
337
+ November: 'November',
338
+ December: 'December',
339
+ login: 'Bejelentkezés',
340
+ register: 'Regisztráció',
341
+ details: 'Adatok',
342
+ join: 'Csatlakozás',
343
+ joinerror: 'Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.',
344
+ left: 'bal',
345
+ minutes: 'perc',
346
+ hours: 'óra',
347
+ days: 'nap',
348
+ },
349
+ hr: {
350
+ joined: 'Pridružen',
351
+ enrolled: 'Upisan',
352
+ scoreCriteria: 'Kriteriji bodovanja',
353
+ minbet: 'minimalni broj beta',
354
+ seegames: 'Možete vidjeti igre',
355
+ here: 'Ovdje',
356
+ scheduled: 'Zakazano',
357
+ ongoing: 'U tijeku',
358
+ finished: 'Gotovo',
359
+ startingAt: 'S početkom u',
360
+ startedAt: 'Započelo u',
361
+ startingAtWithTime: `Počinje `,
362
+ startedAtWithTime: `Započelo `,
363
+ mostRounds: 'Najviše rundi',
364
+ betCount: 'Broj betova',
365
+ maxWinStakeRatio: 'Maksimalni dobitak po ulogu',
366
+ winStakeRatio: 'Ukupni dobitak po ulogu',
367
+ January: 'Siječanj',
368
+ February: 'Veljača',
369
+ March: 'Ožujak',
370
+ April: 'Travanj',
371
+ May: 'Svibanj',
372
+ June: 'Lipanj',
373
+ July: 'Srpanj',
374
+ August: 'Kolovoz',
375
+ September: 'Rujan',
376
+ October: 'Listopad',
377
+ November: 'Studeni',
378
+ December: 'Prosinac',
379
+ login: 'Prijaviti se',
380
+ register: 'Registracija',
381
+ details: 'Detalji',
382
+ join: 'join',
383
+ joinerror: 'Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.',
384
+ left: 'lijevo',
385
+ minutes: 'minute',
386
+ hours: 'sati',
387
+ days: 'dani',
388
+ }
389
389
  };
390
390
  const translate$1 = (key, customLang) => {
391
- var _a, _b;
392
- const lang = customLang;
393
- return ((_a = TRANSLATIONS$1[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS$1[DEFAULT_LANGUAGE$1]) === null || _b === void 0 ? void 0 : _b[key]);
391
+ var _a, _b;
392
+ const lang = customLang;
393
+ return ((_a = TRANSLATIONS$1[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS$1[DEFAULT_LANGUAGE$1]) === null || _b === void 0 ? void 0 : _b[key]);
394
394
  };
395
395
  const getTranslations$1 = (data) => {
396
- Object.keys(data).forEach((item) => {
397
- for (let key in data[item]) {
398
- TRANSLATIONS$1[item][key] = data[item][key];
399
- }
400
- });
396
+ Object.keys(data).forEach((item) => {
397
+ for (let key in data[item]) {
398
+ TRANSLATIONS$1[item][key] = data[item][key];
399
+ }
400
+ });
401
401
  };
402
402
 
403
403
  //! moment.js
404
- //! version : 2.29.4
404
+ //! version : 2.30.1
405
405
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
406
406
  //! license : MIT
407
407
  //! momentjs.com
@@ -551,24 +551,25 @@ if (Array.prototype.some) {
551
551
  }
552
552
 
553
553
  function isValid(m) {
554
- if (m._isValid == null) {
555
- var flags = getParsingFlags(m),
556
- parsedParts = some.call(flags.parsedDateParts, function (i) {
557
- return i != null;
558
- }),
559
- isNowValid =
560
- !isNaN(m._d.getTime()) &&
561
- flags.overflow < 0 &&
562
- !flags.empty &&
563
- !flags.invalidEra &&
564
- !flags.invalidMonth &&
565
- !flags.invalidWeekday &&
566
- !flags.weekdayMismatch &&
567
- !flags.nullInput &&
568
- !flags.invalidFormat &&
569
- !flags.userInvalidated &&
570
- (!flags.meridiem || (flags.meridiem && parsedParts));
571
-
554
+ var flags = null,
555
+ parsedParts = false,
556
+ isNowValid = m._d && !isNaN(m._d.getTime());
557
+ if (isNowValid) {
558
+ flags = getParsingFlags(m);
559
+ parsedParts = some.call(flags.parsedDateParts, function (i) {
560
+ return i != null;
561
+ });
562
+ isNowValid =
563
+ flags.overflow < 0 &&
564
+ !flags.empty &&
565
+ !flags.invalidEra &&
566
+ !flags.invalidMonth &&
567
+ !flags.invalidWeekday &&
568
+ !flags.weekdayMismatch &&
569
+ !flags.nullInput &&
570
+ !flags.invalidFormat &&
571
+ !flags.userInvalidated &&
572
+ (!flags.meridiem || (flags.meridiem && parsedParts));
572
573
  if (m._strict) {
573
574
  isNowValid =
574
575
  isNowValid &&
@@ -576,12 +577,11 @@ function isValid(m) {
576
577
  flags.unusedTokens.length === 0 &&
577
578
  flags.bigHour === undefined;
578
579
  }
579
-
580
- if (Object.isFrozen == null || !Object.isFrozen(m)) {
581
- m._isValid = isNowValid;
582
- } else {
583
- return isNowValid;
584
- }
580
+ }
581
+ if (Object.isFrozen == null || !Object.isFrozen(m)) {
582
+ m._isValid = isNowValid;
583
+ } else {
584
+ return isNowValid;
585
585
  }
586
586
  return m._isValid;
587
587
  }
@@ -1026,12 +1026,56 @@ function pastFuture(diff, output) {
1026
1026
  return isFunction(format) ? format(output) : format.replace(/%s/i, output);
1027
1027
  }
1028
1028
 
1029
- var aliases = {};
1030
-
1031
- function addUnitAlias(unit, shorthand) {
1032
- var lowerCase = unit.toLowerCase();
1033
- aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
1034
- }
1029
+ var aliases = {
1030
+ D: 'date',
1031
+ dates: 'date',
1032
+ date: 'date',
1033
+ d: 'day',
1034
+ days: 'day',
1035
+ day: 'day',
1036
+ e: 'weekday',
1037
+ weekdays: 'weekday',
1038
+ weekday: 'weekday',
1039
+ E: 'isoWeekday',
1040
+ isoweekdays: 'isoWeekday',
1041
+ isoweekday: 'isoWeekday',
1042
+ DDD: 'dayOfYear',
1043
+ dayofyears: 'dayOfYear',
1044
+ dayofyear: 'dayOfYear',
1045
+ h: 'hour',
1046
+ hours: 'hour',
1047
+ hour: 'hour',
1048
+ ms: 'millisecond',
1049
+ milliseconds: 'millisecond',
1050
+ millisecond: 'millisecond',
1051
+ m: 'minute',
1052
+ minutes: 'minute',
1053
+ minute: 'minute',
1054
+ M: 'month',
1055
+ months: 'month',
1056
+ month: 'month',
1057
+ Q: 'quarter',
1058
+ quarters: 'quarter',
1059
+ quarter: 'quarter',
1060
+ s: 'second',
1061
+ seconds: 'second',
1062
+ second: 'second',
1063
+ gg: 'weekYear',
1064
+ weekyears: 'weekYear',
1065
+ weekyear: 'weekYear',
1066
+ GG: 'isoWeekYear',
1067
+ isoweekyears: 'isoWeekYear',
1068
+ isoweekyear: 'isoWeekYear',
1069
+ w: 'week',
1070
+ weeks: 'week',
1071
+ week: 'week',
1072
+ W: 'isoWeek',
1073
+ isoweeks: 'isoWeek',
1074
+ isoweek: 'isoWeek',
1075
+ y: 'year',
1076
+ years: 'year',
1077
+ year: 'year',
1078
+ };
1035
1079
 
1036
1080
  function normalizeUnits(units) {
1037
1081
  return typeof units === 'string'
@@ -1056,11 +1100,24 @@ function normalizeObjectUnits(inputObject) {
1056
1100
  return normalizedInput;
1057
1101
  }
1058
1102
 
1059
- var priorities = {};
1060
-
1061
- function addUnitPriority(unit, priority) {
1062
- priorities[unit] = priority;
1063
- }
1103
+ var priorities = {
1104
+ date: 9,
1105
+ day: 11,
1106
+ weekday: 11,
1107
+ isoWeekday: 11,
1108
+ dayOfYear: 4,
1109
+ hour: 13,
1110
+ millisecond: 16,
1111
+ minute: 14,
1112
+ month: 8,
1113
+ quarter: 7,
1114
+ second: 15,
1115
+ weekYear: 1,
1116
+ isoWeekYear: 1,
1117
+ week: 5,
1118
+ isoWeek: 5,
1119
+ year: 1,
1120
+ };
1064
1121
 
1065
1122
  function getPrioritizedUnits(unitsObj) {
1066
1123
  var units = [],
@@ -1076,96 +1133,6 @@ function getPrioritizedUnits(unitsObj) {
1076
1133
  return units;
1077
1134
  }
1078
1135
 
1079
- function isLeapYear(year) {
1080
- return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
1081
- }
1082
-
1083
- function absFloor(number) {
1084
- if (number < 0) {
1085
- // -0 -> 0
1086
- return Math.ceil(number) || 0;
1087
- } else {
1088
- return Math.floor(number);
1089
- }
1090
- }
1091
-
1092
- function toInt(argumentForCoercion) {
1093
- var coercedNumber = +argumentForCoercion,
1094
- value = 0;
1095
-
1096
- if (coercedNumber !== 0 && isFinite(coercedNumber)) {
1097
- value = absFloor(coercedNumber);
1098
- }
1099
-
1100
- return value;
1101
- }
1102
-
1103
- function makeGetSet(unit, keepTime) {
1104
- return function (value) {
1105
- if (value != null) {
1106
- set$1(this, unit, value);
1107
- hooks.updateOffset(this, keepTime);
1108
- return this;
1109
- } else {
1110
- return get(this, unit);
1111
- }
1112
- };
1113
- }
1114
-
1115
- function get(mom, unit) {
1116
- return mom.isValid()
1117
- ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
1118
- : NaN;
1119
- }
1120
-
1121
- function set$1(mom, unit, value) {
1122
- if (mom.isValid() && !isNaN(value)) {
1123
- if (
1124
- unit === 'FullYear' &&
1125
- isLeapYear(mom.year()) &&
1126
- mom.month() === 1 &&
1127
- mom.date() === 29
1128
- ) {
1129
- value = toInt(value);
1130
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
1131
- value,
1132
- mom.month(),
1133
- daysInMonth(value, mom.month())
1134
- );
1135
- } else {
1136
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
1137
- }
1138
- }
1139
- }
1140
-
1141
- // MOMENTS
1142
-
1143
- function stringGet(units) {
1144
- units = normalizeUnits(units);
1145
- if (isFunction(this[units])) {
1146
- return this[units]();
1147
- }
1148
- return this;
1149
- }
1150
-
1151
- function stringSet(units, value) {
1152
- if (typeof units === 'object') {
1153
- units = normalizeObjectUnits(units);
1154
- var prioritized = getPrioritizedUnits(units),
1155
- i,
1156
- prioritizedLen = prioritized.length;
1157
- for (i = 0; i < prioritizedLen; i++) {
1158
- this[prioritized[i].unit](units[prioritized[i].unit]);
1159
- }
1160
- } else {
1161
- units = normalizeUnits(units);
1162
- if (isFunction(this[units])) {
1163
- return this[units](value);
1164
- }
1165
- }
1166
- return this;
1167
- }
1168
-
1169
1136
  var match1 = /\d/, // 0 - 9
1170
1137
  match2 = /\d\d/, // 00 - 99
1171
1138
  match3 = /\d{3}/, // 000 - 999
@@ -1186,6 +1153,8 @@ var match1 = /\d/, // 0 - 9
1186
1153
  // includes scottish gaelic two word and hyphenated months
1187
1154
  matchWord =
1188
1155
  /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
1156
+ match1to2NoLeadingZero = /^[1-9]\d?/, // 1-99
1157
+ match1to2HasZero = /^([1-9]\d|\d)/, // 0-99
1189
1158
  regexes;
1190
1159
 
1191
1160
  regexes = {};
@@ -1224,6 +1193,26 @@ function regexEscape(s) {
1224
1193
  return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
1225
1194
  }
1226
1195
 
1196
+ function absFloor(number) {
1197
+ if (number < 0) {
1198
+ // -0 -> 0
1199
+ return Math.ceil(number) || 0;
1200
+ } else {
1201
+ return Math.floor(number);
1202
+ }
1203
+ }
1204
+
1205
+ function toInt(argumentForCoercion) {
1206
+ var coercedNumber = +argumentForCoercion,
1207
+ value = 0;
1208
+
1209
+ if (coercedNumber !== 0 && isFinite(coercedNumber)) {
1210
+ value = absFloor(coercedNumber);
1211
+ }
1212
+
1213
+ return value;
1214
+ }
1215
+
1227
1216
  var tokens = {};
1228
1217
 
1229
1218
  function addParseToken(token, callback) {
@@ -1257,6 +1246,10 @@ function addTimeToArrayFromToken(token, input, config) {
1257
1246
  }
1258
1247
  }
1259
1248
 
1249
+ function isLeapYear(year) {
1250
+ return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
1251
+ }
1252
+
1260
1253
  var YEAR = 0,
1261
1254
  MONTH = 1,
1262
1255
  DATE = 2,
@@ -1267,6 +1260,173 @@ var YEAR = 0,
1267
1260
  WEEK = 7,
1268
1261
  WEEKDAY = 8;
1269
1262
 
1263
+ // FORMATTING
1264
+
1265
+ addFormatToken('Y', 0, 0, function () {
1266
+ var y = this.year();
1267
+ return y <= 9999 ? zeroFill(y, 4) : '+' + y;
1268
+ });
1269
+
1270
+ addFormatToken(0, ['YY', 2], 0, function () {
1271
+ return this.year() % 100;
1272
+ });
1273
+
1274
+ addFormatToken(0, ['YYYY', 4], 0, 'year');
1275
+ addFormatToken(0, ['YYYYY', 5], 0, 'year');
1276
+ addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
1277
+
1278
+ // PARSING
1279
+
1280
+ addRegexToken('Y', matchSigned);
1281
+ addRegexToken('YY', match1to2, match2);
1282
+ addRegexToken('YYYY', match1to4, match4);
1283
+ addRegexToken('YYYYY', match1to6, match6);
1284
+ addRegexToken('YYYYYY', match1to6, match6);
1285
+
1286
+ addParseToken(['YYYYY', 'YYYYYY'], YEAR);
1287
+ addParseToken('YYYY', function (input, array) {
1288
+ array[YEAR] =
1289
+ input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
1290
+ });
1291
+ addParseToken('YY', function (input, array) {
1292
+ array[YEAR] = hooks.parseTwoDigitYear(input);
1293
+ });
1294
+ addParseToken('Y', function (input, array) {
1295
+ array[YEAR] = parseInt(input, 10);
1296
+ });
1297
+
1298
+ // HELPERS
1299
+
1300
+ function daysInYear(year) {
1301
+ return isLeapYear(year) ? 366 : 365;
1302
+ }
1303
+
1304
+ // HOOKS
1305
+
1306
+ hooks.parseTwoDigitYear = function (input) {
1307
+ return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
1308
+ };
1309
+
1310
+ // MOMENTS
1311
+
1312
+ var getSetYear = makeGetSet('FullYear', true);
1313
+
1314
+ function getIsLeapYear() {
1315
+ return isLeapYear(this.year());
1316
+ }
1317
+
1318
+ function makeGetSet(unit, keepTime) {
1319
+ return function (value) {
1320
+ if (value != null) {
1321
+ set$1(this, unit, value);
1322
+ hooks.updateOffset(this, keepTime);
1323
+ return this;
1324
+ } else {
1325
+ return get(this, unit);
1326
+ }
1327
+ };
1328
+ }
1329
+
1330
+ function get(mom, unit) {
1331
+ if (!mom.isValid()) {
1332
+ return NaN;
1333
+ }
1334
+
1335
+ var d = mom._d,
1336
+ isUTC = mom._isUTC;
1337
+
1338
+ switch (unit) {
1339
+ case 'Milliseconds':
1340
+ return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
1341
+ case 'Seconds':
1342
+ return isUTC ? d.getUTCSeconds() : d.getSeconds();
1343
+ case 'Minutes':
1344
+ return isUTC ? d.getUTCMinutes() : d.getMinutes();
1345
+ case 'Hours':
1346
+ return isUTC ? d.getUTCHours() : d.getHours();
1347
+ case 'Date':
1348
+ return isUTC ? d.getUTCDate() : d.getDate();
1349
+ case 'Day':
1350
+ return isUTC ? d.getUTCDay() : d.getDay();
1351
+ case 'Month':
1352
+ return isUTC ? d.getUTCMonth() : d.getMonth();
1353
+ case 'FullYear':
1354
+ return isUTC ? d.getUTCFullYear() : d.getFullYear();
1355
+ default:
1356
+ return NaN; // Just in case
1357
+ }
1358
+ }
1359
+
1360
+ function set$1(mom, unit, value) {
1361
+ var d, isUTC, year, month, date;
1362
+
1363
+ if (!mom.isValid() || isNaN(value)) {
1364
+ return;
1365
+ }
1366
+
1367
+ d = mom._d;
1368
+ isUTC = mom._isUTC;
1369
+
1370
+ switch (unit) {
1371
+ case 'Milliseconds':
1372
+ return void (isUTC
1373
+ ? d.setUTCMilliseconds(value)
1374
+ : d.setMilliseconds(value));
1375
+ case 'Seconds':
1376
+ return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));
1377
+ case 'Minutes':
1378
+ return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));
1379
+ case 'Hours':
1380
+ return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
1381
+ case 'Date':
1382
+ return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
1383
+ // case 'Day': // Not real
1384
+ // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
1385
+ // case 'Month': // Not used because we need to pass two variables
1386
+ // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
1387
+ case 'FullYear':
1388
+ break; // See below ...
1389
+ default:
1390
+ return; // Just in case
1391
+ }
1392
+
1393
+ year = value;
1394
+ month = mom.month();
1395
+ date = mom.date();
1396
+ date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
1397
+ void (isUTC
1398
+ ? d.setUTCFullYear(year, month, date)
1399
+ : d.setFullYear(year, month, date));
1400
+ }
1401
+
1402
+ // MOMENTS
1403
+
1404
+ function stringGet(units) {
1405
+ units = normalizeUnits(units);
1406
+ if (isFunction(this[units])) {
1407
+ return this[units]();
1408
+ }
1409
+ return this;
1410
+ }
1411
+
1412
+ function stringSet(units, value) {
1413
+ if (typeof units === 'object') {
1414
+ units = normalizeObjectUnits(units);
1415
+ var prioritized = getPrioritizedUnits(units),
1416
+ i,
1417
+ prioritizedLen = prioritized.length;
1418
+ for (i = 0; i < prioritizedLen; i++) {
1419
+ this[prioritized[i].unit](units[prioritized[i].unit]);
1420
+ }
1421
+ } else {
1422
+ units = normalizeUnits(units);
1423
+ if (isFunction(this[units])) {
1424
+ return this[units](value);
1425
+ }
1426
+ }
1427
+ return this;
1428
+ }
1429
+
1270
1430
  function mod(n, x) {
1271
1431
  return ((n % x) + x) % x;
1272
1432
  }
@@ -1315,17 +1475,9 @@ addFormatToken('MMMM', 0, 0, function (format) {
1315
1475
  return this.localeData().months(this, format);
1316
1476
  });
1317
1477
 
1318
- // ALIASES
1319
-
1320
- addUnitAlias('month', 'M');
1321
-
1322
- // PRIORITY
1323
-
1324
- addUnitPriority('month', 8);
1325
-
1326
1478
  // PARSING
1327
1479
 
1328
- addRegexToken('M', match1to2);
1480
+ addRegexToken('M', match1to2, match1to2NoLeadingZero);
1329
1481
  addRegexToken('MM', match1to2, match2);
1330
1482
  addRegexToken('MMM', function (isStrict, locale) {
1331
1483
  return locale.monthsShortRegex(isStrict);
@@ -1491,8 +1643,6 @@ function localeMonthsParse(monthName, format, strict) {
1491
1643
  // MOMENTS
1492
1644
 
1493
1645
  function setMonth(mom, value) {
1494
- var dayOfMonth;
1495
-
1496
1646
  if (!mom.isValid()) {
1497
1647
  // No op
1498
1648
  return mom;
@@ -1510,8 +1660,13 @@ function setMonth(mom, value) {
1510
1660
  }
1511
1661
  }
1512
1662
 
1513
- dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
1514
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
1663
+ var month = value,
1664
+ date = mom.date();
1665
+
1666
+ date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));
1667
+ void (mom._isUTC
1668
+ ? mom._d.setUTCMonth(month, date)
1669
+ : mom._d.setMonth(month, date));
1515
1670
  return mom;
1516
1671
  }
1517
1672
 
@@ -1578,27 +1733,24 @@ function computeMonthsParse() {
1578
1733
  longPieces = [],
1579
1734
  mixedPieces = [],
1580
1735
  i,
1581
- mom;
1736
+ mom,
1737
+ shortP,
1738
+ longP;
1582
1739
  for (i = 0; i < 12; i++) {
1583
1740
  // make the regex if we don't have it already
1584
1741
  mom = createUTC([2000, i]);
1585
- shortPieces.push(this.monthsShort(mom, ''));
1586
- longPieces.push(this.months(mom, ''));
1587
- mixedPieces.push(this.months(mom, ''));
1588
- mixedPieces.push(this.monthsShort(mom, ''));
1742
+ shortP = regexEscape(this.monthsShort(mom, ''));
1743
+ longP = regexEscape(this.months(mom, ''));
1744
+ shortPieces.push(shortP);
1745
+ longPieces.push(longP);
1746
+ mixedPieces.push(longP);
1747
+ mixedPieces.push(shortP);
1589
1748
  }
1590
1749
  // Sorting makes sure if one month (or abbr) is a prefix of another it
1591
1750
  // will match the longer piece.
1592
1751
  shortPieces.sort(cmpLenRev);
1593
1752
  longPieces.sort(cmpLenRev);
1594
1753
  mixedPieces.sort(cmpLenRev);
1595
- for (i = 0; i < 12; i++) {
1596
- shortPieces[i] = regexEscape(shortPieces[i]);
1597
- longPieces[i] = regexEscape(longPieces[i]);
1598
- }
1599
- for (i = 0; i < 24; i++) {
1600
- mixedPieces[i] = regexEscape(mixedPieces[i]);
1601
- }
1602
1754
 
1603
1755
  this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
1604
1756
  this._monthsShortRegex = this._monthsRegex;
@@ -1612,69 +1764,6 @@ function computeMonthsParse() {
1612
1764
  );
1613
1765
  }
1614
1766
 
1615
- // FORMATTING
1616
-
1617
- addFormatToken('Y', 0, 0, function () {
1618
- var y = this.year();
1619
- return y <= 9999 ? zeroFill(y, 4) : '+' + y;
1620
- });
1621
-
1622
- addFormatToken(0, ['YY', 2], 0, function () {
1623
- return this.year() % 100;
1624
- });
1625
-
1626
- addFormatToken(0, ['YYYY', 4], 0, 'year');
1627
- addFormatToken(0, ['YYYYY', 5], 0, 'year');
1628
- addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
1629
-
1630
- // ALIASES
1631
-
1632
- addUnitAlias('year', 'y');
1633
-
1634
- // PRIORITIES
1635
-
1636
- addUnitPriority('year', 1);
1637
-
1638
- // PARSING
1639
-
1640
- addRegexToken('Y', matchSigned);
1641
- addRegexToken('YY', match1to2, match2);
1642
- addRegexToken('YYYY', match1to4, match4);
1643
- addRegexToken('YYYYY', match1to6, match6);
1644
- addRegexToken('YYYYYY', match1to6, match6);
1645
-
1646
- addParseToken(['YYYYY', 'YYYYYY'], YEAR);
1647
- addParseToken('YYYY', function (input, array) {
1648
- array[YEAR] =
1649
- input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
1650
- });
1651
- addParseToken('YY', function (input, array) {
1652
- array[YEAR] = hooks.parseTwoDigitYear(input);
1653
- });
1654
- addParseToken('Y', function (input, array) {
1655
- array[YEAR] = parseInt(input, 10);
1656
- });
1657
-
1658
- // HELPERS
1659
-
1660
- function daysInYear(year) {
1661
- return isLeapYear(year) ? 366 : 365;
1662
- }
1663
-
1664
- // HOOKS
1665
-
1666
- hooks.parseTwoDigitYear = function (input) {
1667
- return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
1668
- };
1669
-
1670
- // MOMENTS
1671
-
1672
- var getSetYear = makeGetSet('FullYear', true);
1673
-
1674
- function getIsLeapYear() {
1675
- return isLeapYear(this.year());
1676
- }
1677
-
1678
1767
  function createDate(y, m, d, h, M, s, ms) {
1679
1768
  // can't just apply() to create a date:
1680
1769
  // https://stackoverflow.com/q/181348
@@ -1780,21 +1869,11 @@ function weeksInYear(year, dow, doy) {
1780
1869
  addFormatToken('w', ['ww', 2], 'wo', 'week');
1781
1870
  addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
1782
1871
 
1783
- // ALIASES
1784
-
1785
- addUnitAlias('week', 'w');
1786
- addUnitAlias('isoWeek', 'W');
1787
-
1788
- // PRIORITIES
1789
-
1790
- addUnitPriority('week', 5);
1791
- addUnitPriority('isoWeek', 5);
1792
-
1793
1872
  // PARSING
1794
1873
 
1795
- addRegexToken('w', match1to2);
1874
+ addRegexToken('w', match1to2, match1to2NoLeadingZero);
1796
1875
  addRegexToken('ww', match1to2, match2);
1797
- addRegexToken('W', match1to2);
1876
+ addRegexToken('W', match1to2, match1to2NoLeadingZero);
1798
1877
  addRegexToken('WW', match1to2, match2);
1799
1878
 
1800
1879
  addWeekParseToken(
@@ -1856,17 +1935,6 @@ addFormatToken('dddd', 0, 0, function (format) {
1856
1935
  addFormatToken('e', 0, 0, 'weekday');
1857
1936
  addFormatToken('E', 0, 0, 'isoWeekday');
1858
1937
 
1859
- // ALIASES
1860
-
1861
- addUnitAlias('day', 'd');
1862
- addUnitAlias('weekday', 'e');
1863
- addUnitAlias('isoWeekday', 'E');
1864
-
1865
- // PRIORITY
1866
- addUnitPriority('day', 11);
1867
- addUnitPriority('weekday', 11);
1868
- addUnitPriority('isoWeekday', 11);
1869
-
1870
1938
  // PARSING
1871
1939
 
1872
1940
  addRegexToken('d', match1to2);
@@ -1946,24 +2014,24 @@ function localeWeekdays(m, format) {
1946
2014
  return m === true
1947
2015
  ? shiftWeekdays(weekdays, this._week.dow)
1948
2016
  : m
1949
- ? weekdays[m.day()]
1950
- : weekdays;
2017
+ ? weekdays[m.day()]
2018
+ : weekdays;
1951
2019
  }
1952
2020
 
1953
2021
  function localeWeekdaysShort(m) {
1954
2022
  return m === true
1955
2023
  ? shiftWeekdays(this._weekdaysShort, this._week.dow)
1956
2024
  : m
1957
- ? this._weekdaysShort[m.day()]
1958
- : this._weekdaysShort;
2025
+ ? this._weekdaysShort[m.day()]
2026
+ : this._weekdaysShort;
1959
2027
  }
1960
2028
 
1961
2029
  function localeWeekdaysMin(m) {
1962
2030
  return m === true
1963
2031
  ? shiftWeekdays(this._weekdaysMin, this._week.dow)
1964
2032
  : m
1965
- ? this._weekdaysMin[m.day()]
1966
- : this._weekdaysMin;
2033
+ ? this._weekdaysMin[m.day()]
2034
+ : this._weekdaysMin;
1967
2035
  }
1968
2036
 
1969
2037
  function handleStrictParse$1(weekdayName, format, strict) {
@@ -2112,7 +2180,8 @@ function getSetDayOfWeek(input) {
2112
2180
  if (!this.isValid()) {
2113
2181
  return input != null ? this : NaN;
2114
2182
  }
2115
- var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
2183
+
2184
+ var day = get(this, 'Day');
2116
2185
  if (input != null) {
2117
2186
  input = parseWeekday(input, this.localeData());
2118
2187
  return this.add(input - day, 'd');
@@ -2311,13 +2380,6 @@ function meridiem(token, lowercase) {
2311
2380
  meridiem('a', true);
2312
2381
  meridiem('A', false);
2313
2382
 
2314
- // ALIASES
2315
-
2316
- addUnitAlias('hour', 'h');
2317
-
2318
- // PRIORITY
2319
- addUnitPriority('hour', 13);
2320
-
2321
2383
  // PARSING
2322
2384
 
2323
2385
  function matchMeridiem(isStrict, locale) {
@@ -2326,9 +2388,9 @@ function matchMeridiem(isStrict, locale) {
2326
2388
 
2327
2389
  addRegexToken('a', matchMeridiem);
2328
2390
  addRegexToken('A', matchMeridiem);
2329
- addRegexToken('H', match1to2);
2330
- addRegexToken('h', match1to2);
2331
- addRegexToken('k', match1to2);
2391
+ addRegexToken('H', match1to2, match1to2HasZero);
2392
+ addRegexToken('h', match1to2, match1to2NoLeadingZero);
2393
+ addRegexToken('k', match1to2, match1to2NoLeadingZero);
2332
2394
  addRegexToken('HH', match1to2, match2);
2333
2395
  addRegexToken('hh', match1to2, match2);
2334
2396
  addRegexToken('kk', match1to2, match2);
@@ -2478,7 +2540,8 @@ function chooseLocale(names) {
2478
2540
 
2479
2541
  function isLocaleNameSane(name) {
2480
2542
  // Prevent names that look like filesystem paths, i.e contain '/' or '\'
2481
- return name.match('^[^/\\\\]*$') != null;
2543
+ // Ensure name is available and function returns boolean
2544
+ return !!(name && name.match('^[^/\\\\]*$'));
2482
2545
  }
2483
2546
 
2484
2547
  function loadLocale(name) {
@@ -2670,21 +2733,21 @@ function checkOverflow(m) {
2670
2733
  a[MONTH] < 0 || a[MONTH] > 11
2671
2734
  ? MONTH
2672
2735
  : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
2673
- ? DATE
2674
- : a[HOUR] < 0 ||
2675
- a[HOUR] > 24 ||
2676
- (a[HOUR] === 24 &&
2677
- (a[MINUTE] !== 0 ||
2678
- a[SECOND] !== 0 ||
2679
- a[MILLISECOND] !== 0))
2680
- ? HOUR
2681
- : a[MINUTE] < 0 || a[MINUTE] > 59
2682
- ? MINUTE
2683
- : a[SECOND] < 0 || a[SECOND] > 59
2684
- ? SECOND
2685
- : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
2686
- ? MILLISECOND
2687
- : -1;
2736
+ ? DATE
2737
+ : a[HOUR] < 0 ||
2738
+ a[HOUR] > 24 ||
2739
+ (a[HOUR] === 24 &&
2740
+ (a[MINUTE] !== 0 ||
2741
+ a[SECOND] !== 0 ||
2742
+ a[MILLISECOND] !== 0))
2743
+ ? HOUR
2744
+ : a[MINUTE] < 0 || a[MINUTE] > 59
2745
+ ? MINUTE
2746
+ : a[SECOND] < 0 || a[SECOND] > 59
2747
+ ? SECOND
2748
+ : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
2749
+ ? MILLISECOND
2750
+ : -1;
2688
2751
 
2689
2752
  if (
2690
2753
  getParsingFlags(m)._overflowDayOfYear &&
@@ -4125,16 +4188,16 @@ function getCalendarFormat(myMoment, now) {
4125
4188
  return diff < -6
4126
4189
  ? 'sameElse'
4127
4190
  : diff < -1
4128
- ? 'lastWeek'
4129
- : diff < 0
4130
- ? 'lastDay'
4131
- : diff < 1
4132
- ? 'sameDay'
4133
- : diff < 2
4134
- ? 'nextDay'
4135
- : diff < 7
4136
- ? 'nextWeek'
4137
- : 'sameElse';
4191
+ ? 'lastWeek'
4192
+ : diff < 0
4193
+ ? 'lastDay'
4194
+ : diff < 1
4195
+ ? 'sameDay'
4196
+ : diff < 2
4197
+ ? 'nextDay'
4198
+ : diff < 7
4199
+ ? 'nextWeek'
4200
+ : 'sameElse';
4138
4201
  }
4139
4202
 
4140
4203
  function calendar$1(time, formats) {
@@ -4942,16 +5005,22 @@ function computeErasParse() {
4942
5005
  mixedPieces = [],
4943
5006
  i,
4944
5007
  l,
5008
+ erasName,
5009
+ erasAbbr,
5010
+ erasNarrow,
4945
5011
  eras = this.eras();
4946
5012
 
4947
5013
  for (i = 0, l = eras.length; i < l; ++i) {
4948
- namePieces.push(regexEscape(eras[i].name));
4949
- abbrPieces.push(regexEscape(eras[i].abbr));
4950
- narrowPieces.push(regexEscape(eras[i].narrow));
5014
+ erasName = regexEscape(eras[i].name);
5015
+ erasAbbr = regexEscape(eras[i].abbr);
5016
+ erasNarrow = regexEscape(eras[i].narrow);
4951
5017
 
4952
- mixedPieces.push(regexEscape(eras[i].name));
4953
- mixedPieces.push(regexEscape(eras[i].abbr));
4954
- mixedPieces.push(regexEscape(eras[i].narrow));
5018
+ namePieces.push(erasName);
5019
+ abbrPieces.push(erasAbbr);
5020
+ narrowPieces.push(erasNarrow);
5021
+ mixedPieces.push(erasName);
5022
+ mixedPieces.push(erasAbbr);
5023
+ mixedPieces.push(erasNarrow);
4955
5024
  }
4956
5025
 
4957
5026
  this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
@@ -4984,14 +5053,6 @@ addWeekYearFormatToken('GGGGG', 'isoWeekYear');
4984
5053
 
4985
5054
  // ALIASES
4986
5055
 
4987
- addUnitAlias('weekYear', 'gg');
4988
- addUnitAlias('isoWeekYear', 'GG');
4989
-
4990
- // PRIORITY
4991
-
4992
- addUnitPriority('weekYear', 1);
4993
- addUnitPriority('isoWeekYear', 1);
4994
-
4995
5056
  // PARSING
4996
5057
 
4997
5058
  addRegexToken('G', matchSigned);
@@ -5021,7 +5082,7 @@ function getSetWeekYear(input) {
5021
5082
  this,
5022
5083
  input,
5023
5084
  this.week(),
5024
- this.weekday(),
5085
+ this.weekday() + this.localeData()._week.dow,
5025
5086
  this.localeData()._week.dow,
5026
5087
  this.localeData()._week.doy
5027
5088
  );
@@ -5083,14 +5144,6 @@ function setWeekAll(weekYear, week, weekday, dow, doy) {
5083
5144
 
5084
5145
  addFormatToken('Q', 0, 'Qo', 'quarter');
5085
5146
 
5086
- // ALIASES
5087
-
5088
- addUnitAlias('quarter', 'Q');
5089
-
5090
- // PRIORITY
5091
-
5092
- addUnitPriority('quarter', 7);
5093
-
5094
5147
  // PARSING
5095
5148
 
5096
5149
  addRegexToken('Q', match1);
@@ -5110,16 +5163,9 @@ function getSetQuarter(input) {
5110
5163
 
5111
5164
  addFormatToken('D', ['DD', 2], 'Do', 'date');
5112
5165
 
5113
- // ALIASES
5114
-
5115
- addUnitAlias('date', 'D');
5116
-
5117
- // PRIORITY
5118
- addUnitPriority('date', 9);
5119
-
5120
5166
  // PARSING
5121
5167
 
5122
- addRegexToken('D', match1to2);
5168
+ addRegexToken('D', match1to2, match1to2NoLeadingZero);
5123
5169
  addRegexToken('DD', match1to2, match2);
5124
5170
  addRegexToken('Do', function (isStrict, locale) {
5125
5171
  // TODO: Remove "ordinalParse" fallback in next major release.
@@ -5141,13 +5187,6 @@ var getSetDayOfMonth = makeGetSet('Date', true);
5141
5187
 
5142
5188
  addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
5143
5189
 
5144
- // ALIASES
5145
-
5146
- addUnitAlias('dayOfYear', 'DDD');
5147
-
5148
- // PRIORITY
5149
- addUnitPriority('dayOfYear', 4);
5150
-
5151
5190
  // PARSING
5152
5191
 
5153
5192
  addRegexToken('DDD', match1to3);
@@ -5172,17 +5211,9 @@ function getSetDayOfYear(input) {
5172
5211
 
5173
5212
  addFormatToken('m', ['mm', 2], 0, 'minute');
5174
5213
 
5175
- // ALIASES
5176
-
5177
- addUnitAlias('minute', 'm');
5178
-
5179
- // PRIORITY
5180
-
5181
- addUnitPriority('minute', 14);
5182
-
5183
5214
  // PARSING
5184
5215
 
5185
- addRegexToken('m', match1to2);
5216
+ addRegexToken('m', match1to2, match1to2HasZero);
5186
5217
  addRegexToken('mm', match1to2, match2);
5187
5218
  addParseToken(['m', 'mm'], MINUTE);
5188
5219
 
@@ -5194,17 +5225,9 @@ var getSetMinute = makeGetSet('Minutes', false);
5194
5225
 
5195
5226
  addFormatToken('s', ['ss', 2], 0, 'second');
5196
5227
 
5197
- // ALIASES
5198
-
5199
- addUnitAlias('second', 's');
5200
-
5201
- // PRIORITY
5202
-
5203
- addUnitPriority('second', 15);
5204
-
5205
5228
  // PARSING
5206
5229
 
5207
- addRegexToken('s', match1to2);
5230
+ addRegexToken('s', match1to2, match1to2HasZero);
5208
5231
  addRegexToken('ss', match1to2, match2);
5209
5232
  addParseToken(['s', 'ss'], SECOND);
5210
5233
 
@@ -5242,14 +5265,6 @@ addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
5242
5265
  return this.millisecond() * 1000000;
5243
5266
  });
5244
5267
 
5245
- // ALIASES
5246
-
5247
- addUnitAlias('millisecond', 'ms');
5248
-
5249
- // PRIORITY
5250
-
5251
- addUnitPriority('millisecond', 16);
5252
-
5253
5268
  // PARSING
5254
5269
 
5255
5270
  addRegexToken('S', match1to3, match1);
@@ -5557,12 +5572,12 @@ getSetGlobalLocale('en', {
5557
5572
  toInt((number % 100) / 10) === 1
5558
5573
  ? 'th'
5559
5574
  : b === 1
5560
- ? 'st'
5561
- : b === 2
5562
- ? 'nd'
5563
- : b === 3
5564
- ? 'rd'
5565
- : 'th';
5575
+ ? 'st'
5576
+ : b === 2
5577
+ ? 'nd'
5578
+ : b === 3
5579
+ ? 'rd'
5580
+ : 'th';
5566
5581
  return number + output;
5567
5582
  },
5568
5583
  });
@@ -5735,19 +5750,6 @@ function as(units) {
5735
5750
  }
5736
5751
  }
5737
5752
 
5738
- // TODO: Use this.as('ms')?
5739
- function valueOf$1() {
5740
- if (!this.isValid()) {
5741
- return NaN;
5742
- }
5743
- return (
5744
- this._milliseconds +
5745
- this._days * 864e5 +
5746
- (this._months % 12) * 2592e6 +
5747
- toInt(this._months / 12) * 31536e6
5748
- );
5749
- }
5750
-
5751
5753
  function makeAs(alias) {
5752
5754
  return function () {
5753
5755
  return this.as(alias);
@@ -5762,7 +5764,8 @@ var asMilliseconds = makeAs('ms'),
5762
5764
  asWeeks = makeAs('w'),
5763
5765
  asMonths = makeAs('M'),
5764
5766
  asQuarters = makeAs('Q'),
5765
- asYears = makeAs('y');
5767
+ asYears = makeAs('y'),
5768
+ valueOf$1 = asMilliseconds;
5766
5769
 
5767
5770
  function clone$1() {
5768
5771
  return createDuration(this);
@@ -6031,7 +6034,7 @@ addParseToken('x', function (input, array, config) {
6031
6034
 
6032
6035
  //! moment.js
6033
6036
 
6034
- hooks.version = '2.29.4';
6037
+ hooks.version = '2.30.1';
6035
6038
 
6036
6039
  setHookCallback(createLocal);
6037
6040
 
@@ -6077,774 +6080,777 @@ hooks.HTML5_FMT = {
6077
6080
  };
6078
6081
 
6079
6082
  const casinoTournamentBannerCss = ":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#D0046C}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px;height:18px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";
6083
+ const CasinoTournamentBannerStyle0 = casinoTournamentBannerCss;
6080
6084
 
6081
6085
  const CasinoTournamentBanner = class {
6082
- constructor(hostRef) {
6083
- registerInstance(this, hostRef);
6084
- /**
6085
- * Short start time format
6086
- */
6087
- this.shortstartformat = 'DD MMM YYYY';
6088
- /**
6089
- * Show date on widget
6090
- */
6091
- this.showDate = true;
6092
- /**
6093
- * Show date on running state tournament tag
6094
- */
6095
- this.showRunningDate = false;
6096
- /**
6097
- * Show check icon on enrolled tag
6098
- */
6099
- this.showCheck = false;
6100
- /**
6101
- * Widget display as a card
6102
- */
6103
- this.cardMode = false;
6104
- /**
6105
- * Show read more button
6106
- */
6107
- this.showReadMore = false;
6108
- /**
6109
- * Client custom styling via inline styles
6110
- */
6111
- this.clientStyling = '';
6112
- /**
6113
- * Client custom styling via url
6114
- */
6115
- this.clientStylingUrl = '';
6116
- this.limitStylingAppends = false;
6117
- }
6118
- watchLanguage(newValue, oldValue) {
6119
- if (newValue && newValue != oldValue) {
6120
- this.getDuration();
6121
- }
6122
- }
6123
- infoCompletedHandler(event) {
6124
- if (event.detail && this.useEvent) {
6125
- this.state = event.detail.state;
6126
- this.stateText = this.getStateText(this.state);
6127
- this.enrolled = event.detail.playerEnrolled;
6128
- this.startTime = event.detail.startTime;
6129
- this.thumbnail = event.detail.thumbnail;
6130
- this.tournamentId = event.detail.id;
6131
- if (this.startTime) {
6132
- this.formatDate();
6133
- }
6134
- }
6135
- }
6136
- userEnrolledHandler(event) {
6137
- if (event.detail && this.tournamentId === event.detail.tournamentId) {
6138
- this.enrolled = event.detail.userenrolled;
6139
- }
6140
- }
6141
- getDateTimeDiff(dateString1, dateString2) {
6142
- return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
6143
- }
6144
- getTextByDiff(diff) {
6145
- const renderText = (amount, type) => ' - ' + amount + ' ' + translate$1(type, this.language);
6146
- const renderTimeColumn = (column) => {
6147
- const columnInt = Math.floor(column);
6148
- if (columnInt < 10) {
6149
- return `0${columnInt}`;
6150
- }
6151
- else {
6152
- return `${columnInt}`;
6153
- }
6154
- };
6155
- if (diff < 1440) {
6156
- const hours = diff / 60;
6157
- const minutes = diff % 60;
6158
- const seconds = (minutes - Math.floor(minutes)) * 60;
6159
- return [hours, minutes, seconds].map(c => renderTimeColumn(c)).join(':');
6160
- }
6161
- return renderText(Math.ceil(diff / (60 * 24)), 'days');
6162
- }
6163
- getDuration() {
6164
- const dateNow = new Date();
6165
- this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
6166
- this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
6167
- }
6168
- getStateText(state) {
6169
- let text = '';
6170
- switch (state) {
6171
- case 'Upcoming':
6172
- text = translate$1('scheduled', this.language);
6173
- break;
6174
- case 'Unstarted':
6175
- text = translate$1('scheduled', this.language);
6176
- break;
6177
- case 'Running':
6178
- text = translate$1('ongoing', this.language);
6179
- break;
6180
- default:
6181
- text = translate$1('finished', this.language);
6182
- break;
6183
- }
6184
- return text;
6185
- }
6186
- componentDidRender() {
6187
- if (!this.limitStylingAppends && this.host) {
6188
- if (this.clientStyling)
6189
- this.setClientStyling();
6190
- if (this.clientStylingUrl)
6191
- this.setClientStylingURL();
6192
- this.limitStylingAppends = true;
6193
- }
6194
- }
6195
- setClientStyling() {
6196
- const sheet = new CSSStyleSheet();
6197
- // @ts-ignore
6198
- sheet.replace(this.clientStyling);
6199
- // @ts-ignore
6200
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6201
- }
6202
- setClientStylingURL() {
6203
- let url = new URL(this.clientStylingUrl);
6204
- fetch(url.href)
6205
- .then((res) => res.text())
6206
- .then((data) => {
6207
- const sheet = new CSSStyleSheet();
6208
- // @ts-ignore
6209
- sheet.replace(data);
6210
- // @ts-ignore
6211
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6212
- });
6213
- }
6214
- formatDate() {
6215
- const dateOptions = { month: 'long' };
6216
- let currentDate = new Date(this.startTime);
6217
- const setTranslation = () => {
6218
- return (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6219
- translate$1('startedAt', this.language) :
6220
- translate$1('startingAt', this.language);
6221
- };
6222
- if (this.shortStart) {
6223
- let startTimeAsString = hooks(currentDate).format(this.shortstartformat);
6224
- this.startdate = (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6225
- translate$1('startedAtWithTime', this.language) + startTimeAsString :
6226
- translate$1('startingAtWithTime', this.language) + startTimeAsString;
6227
- }
6228
- else {
6229
- let currentMonthKey = new Intl.DateTimeFormat('en', dateOptions).format(currentDate);
6230
- let currentDay = currentDate.getDate();
6231
- let currentHour = currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric', hour12: false });
6232
- this.startdate =
6233
- `${currentDay}` + ' ' +
6234
- translate$1(`${currentMonthKey}`, this.language) + ', ' +
6235
- setTranslation() +
6236
- ` ${currentHour}`;
6237
- }
6238
- }
6239
- componentWillLoad() {
6240
- if (this.translationData) {
6241
- getTranslations$1(JSON.parse(this.translationData));
6242
- if (this.state) {
6243
- this.stateText = this.getStateText(this.state);
6244
- }
6245
- }
6246
- if (!this.useEvent && this.startTime) {
6247
- this.formatDate();
6248
- }
6249
- if (this.state) {
6250
- this.stateText = this.getStateText(this.state);
6251
- }
6252
- if (this.startTime && this.endTime) {
6253
- this.getDuration();
6254
- this.getTextByDiff(this.tournamentLeftDays);
6255
- }
6256
- if (this.tournamentLeftDays < 1440 && this.tournamentLeftDays > 0) {
6257
- this.durationInterval = window.setInterval(() => {
6086
+ constructor(hostRef) {
6087
+ registerInstance(this, hostRef);
6088
+ this.useEvent = undefined;
6089
+ this.endpoint = undefined;
6090
+ this.state = undefined;
6091
+ this.enrolled = undefined;
6092
+ this.startTime = undefined;
6093
+ this.endTime = undefined;
6094
+ this.thumbnail = undefined;
6095
+ this.language = undefined;
6096
+ this.showCalendar = undefined;
6097
+ this.shortStart = undefined;
6098
+ this.shortstartformat = 'DD MMM YYYY';
6099
+ this.showDate = true;
6100
+ this.showRunningDate = false;
6101
+ this.showCheck = false;
6102
+ this.cardMode = false;
6103
+ this.nameOrTitle = undefined;
6104
+ this.description = undefined;
6105
+ this.tournamentId = undefined;
6106
+ this.session = undefined;
6107
+ this.loginEvent = undefined;
6108
+ this.loginUrl = undefined;
6109
+ this.registerEvent = undefined;
6110
+ this.registerUrl = undefined;
6111
+ this.currency = undefined;
6112
+ this.bonusCode = undefined;
6113
+ this.showReadMore = false;
6114
+ this.clientStyling = '';
6115
+ this.clientStylingUrl = '';
6116
+ this.translationData = undefined;
6117
+ this.stateText = undefined;
6118
+ this.limitStylingAppends = false;
6119
+ this.startdate = undefined;
6120
+ this.tournamentLeftDays = undefined;
6121
+ this.showRemain = undefined;
6122
+ this.durationInterval = undefined;
6123
+ }
6124
+ watchLanguage(newValue, oldValue) {
6125
+ if (newValue && newValue != oldValue) {
6126
+ this.getDuration();
6127
+ }
6128
+ }
6129
+ infoCompletedHandler(event) {
6130
+ if (event.detail && this.useEvent) {
6131
+ this.state = event.detail.state;
6132
+ this.stateText = this.getStateText(this.state);
6133
+ this.enrolled = event.detail.playerEnrolled;
6134
+ this.startTime = event.detail.startTime;
6135
+ this.thumbnail = event.detail.thumbnail;
6136
+ this.tournamentId = event.detail.id;
6137
+ if (this.startTime) {
6138
+ this.formatDate();
6139
+ }
6140
+ }
6141
+ }
6142
+ userEnrolledHandler(event) {
6143
+ if (event.detail && this.tournamentId === event.detail.tournamentId) {
6144
+ this.enrolled = event.detail.userenrolled;
6145
+ }
6146
+ }
6147
+ getDateTimeDiff(dateString1, dateString2) {
6148
+ return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
6149
+ }
6150
+ getTextByDiff(diff) {
6151
+ const renderText = (amount, type) => ' - ' + amount + ' ' + translate$1(type, this.language);
6152
+ const renderTimeColumn = (column) => {
6153
+ const columnInt = Math.floor(column);
6154
+ if (columnInt < 10) {
6155
+ return `0${columnInt}`;
6156
+ }
6157
+ else {
6158
+ return `${columnInt}`;
6159
+ }
6160
+ };
6161
+ if (diff < 1440) {
6162
+ const hours = diff / 60;
6163
+ const minutes = diff % 60;
6164
+ const seconds = (minutes - Math.floor(minutes)) * 60;
6165
+ return [hours, minutes, seconds].map(c => renderTimeColumn(c)).join(':');
6166
+ }
6167
+ return renderText(Math.ceil(diff / (60 * 24)), 'days');
6168
+ }
6169
+ getDuration() {
6170
+ const dateNow = new Date();
6171
+ this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
6172
+ this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
6173
+ }
6174
+ getStateText(state) {
6175
+ let text = '';
6176
+ switch (state) {
6177
+ case 'Upcoming':
6178
+ text = translate$1('scheduled', this.language);
6179
+ break;
6180
+ case 'Unstarted':
6181
+ text = translate$1('scheduled', this.language);
6182
+ break;
6183
+ case 'Running':
6184
+ text = translate$1('ongoing', this.language);
6185
+ break;
6186
+ default:
6187
+ text = translate$1('finished', this.language);
6188
+ break;
6189
+ }
6190
+ return text;
6191
+ }
6192
+ componentDidRender() {
6193
+ if (!this.limitStylingAppends && this.host) {
6194
+ if (this.clientStyling)
6195
+ this.setClientStyling();
6196
+ if (this.clientStylingUrl)
6197
+ this.setClientStylingURL();
6198
+ this.limitStylingAppends = true;
6199
+ }
6200
+ }
6201
+ setClientStyling() {
6202
+ const sheet = new CSSStyleSheet();
6203
+ // @ts-ignore
6204
+ sheet.replace(this.clientStyling);
6205
+ // @ts-ignore
6206
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6207
+ }
6208
+ setClientStylingURL() {
6209
+ let url = new URL(this.clientStylingUrl);
6210
+ fetch(url.href)
6211
+ .then((res) => res.text())
6212
+ .then((data) => {
6213
+ const sheet = new CSSStyleSheet();
6214
+ // @ts-ignore
6215
+ sheet.replace(data);
6216
+ // @ts-ignore
6217
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6218
+ });
6219
+ }
6220
+ formatDate() {
6221
+ const dateOptions = { month: 'long' };
6222
+ let currentDate = new Date(this.startTime);
6223
+ const setTranslation = () => {
6224
+ return (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6225
+ translate$1('startedAt', this.language) :
6226
+ translate$1('startingAt', this.language);
6227
+ };
6228
+ if (this.shortStart) {
6229
+ let startTimeAsString = hooks(currentDate).format(this.shortstartformat);
6230
+ this.startdate = (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6231
+ translate$1('startedAtWithTime', this.language) + startTimeAsString :
6232
+ translate$1('startingAtWithTime', this.language) + startTimeAsString;
6233
+ }
6234
+ else {
6235
+ let currentMonthKey = new Intl.DateTimeFormat('en', dateOptions).format(currentDate);
6236
+ let currentDay = currentDate.getDate();
6237
+ let currentHour = currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric', hour12: false });
6238
+ this.startdate =
6239
+ `${currentDay}` + ' ' +
6240
+ translate$1(`${currentMonthKey}`, this.language) + ', ' +
6241
+ setTranslation() +
6242
+ ` ${currentHour}`;
6243
+ }
6244
+ }
6245
+ componentWillLoad() {
6246
+ if (this.translationData) {
6247
+ getTranslations$1(JSON.parse(this.translationData));
6248
+ if (this.state) {
6249
+ this.stateText = this.getStateText(this.state);
6250
+ }
6251
+ }
6252
+ if (!this.useEvent && this.startTime) {
6253
+ this.formatDate();
6254
+ }
6255
+ if (this.state) {
6256
+ this.stateText = this.getStateText(this.state);
6257
+ }
6258
6258
  if (this.startTime && this.endTime) {
6259
- this.getDuration();
6260
- }
6261
- }, 1000);
6262
- }
6263
- else {
6264
- clearInterval(this.durationInterval);
6265
- }
6266
- }
6267
- termsClick(tournamentId) {
6268
- window.postMessage({ type: 'TournamentTermsConditions', tournamentId: tournamentId }, window.location.href);
6269
- }
6270
- render() {
6271
- return h("div", { class: "TournamentBannerWrap" }, this.thumbnail && h("div", { class: `TournamentBanner ${this.state}`, part: `TournamentBanner ${this.state}` }, h("img", { src: this.thumbnail, alt: "", class: `TournamentBannerBg ${this.cardMode && this.state ? this.state : ''}` }), !this.cardMode &&
6272
- h("div", { class: "TournamentBannerInfo", part: "TournamentBannerInfo" }, h("div", { class: "BannerInfo", part: "BannerInfo" }, h("span", { class: `Tag State ${this.state}` }, this.stateText)), h("div", { class: "BannerInfo", part: "BannerInfo" }, this.showDate &&
6273
- h("span", { class: "Tag Date" }, this.showCalendar &&
6274
- h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })), this.startdate)), h("div", { class: "BannerInfo", part: "BannerInfo" }, this.enrolled &&
6275
- h("span", { class: "Tag Enroll" }, this.showCheck &&
6276
- h("svg", { class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, h("path", { d: "M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z", fill: "white" })), translate$1('enrolled', this.language)))), this.cardMode && h("div", { class: "TournamentBannerThumb", part: "TournamentBannerThumb" }, h("div", { class: "ThumbTitle", part: "ThumbTitle" }, this.description), h("div", { class: "ThumbName", part: "ThumbName" }, this.nameOrTitle), h("div", { class: "ThumbState" }, this.session && this.enrolled ?
6277
- h("span", { class: "Tag Join" }, h("svg", { class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, h("path", { d: "M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z", fill: "white" })), translate$1('joined', this.language))
6278
- :
6279
- this.session && this.state != 'Closed' &&
6280
- h("span", { class: "Tag Join" }, h("svg", { class: "JoinPlus", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "13", viewBox: "0 0 12 13", fill: "none" }, h("path", { d: "M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z", fill: "white" })), translate$1('join', this.language)), this.state == 'Running' && h("span", { class: `Tag State ${this.state}` }, this.stateText, this.showRunningDate &&
6281
- h("span", { class: "TagRemain" }, this.showRemain, " ", translate$1('left', this.language))), (this.state == 'Unstarted' || this.state == 'Upcoming' || this.state == 'Closed') &&
6282
- h("span", { class: `Tag Date ${this.state}` }, this.showCalendar &&
6283
- h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })), this.startdate)), h("div", { class: "ThumbButtons" }, h("casino-tournament-buttons", { enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData })), h("div", { class: "ThumbTC" }, h("span", { onClick: this.termsClick.bind(this, this.tournamentId) }, translate$1('terms', this.language))))));
6284
- }
6285
- get host() { return getElement(this); }
6286
- static get watchers() { return {
6287
- "language": ["watchLanguage"]
6288
- }; }
6259
+ this.getDuration();
6260
+ this.getTextByDiff(this.tournamentLeftDays);
6261
+ }
6262
+ if (this.tournamentLeftDays < 1440 && this.tournamentLeftDays > 0) {
6263
+ this.durationInterval = window.setInterval(() => {
6264
+ if (this.startTime && this.endTime) {
6265
+ this.getDuration();
6266
+ }
6267
+ }, 1000);
6268
+ }
6269
+ else {
6270
+ clearInterval(this.durationInterval);
6271
+ }
6272
+ }
6273
+ termsClick(tournamentId) {
6274
+ window.postMessage({ type: 'TournamentTermsConditions', tournamentId: tournamentId }, window.location.href);
6275
+ }
6276
+ render() {
6277
+ return h("div", { key: '30d503c748343afce01f545342ab0beb3d3d5e3f', class: "TournamentBannerWrap" }, this.thumbnail && h("div", { key: 'daaef63e759ffbaf14eabd2b54d937b957fcab6a', class: `TournamentBanner ${this.state}`, part: `TournamentBanner ${this.state}` }, h("img", { key: '9ef1116676b4bbbf7a592ca4dbe7a75f60b09f32', src: this.thumbnail, alt: "", class: `TournamentBannerBg ${this.cardMode && this.state ? this.state : ''}` }), !this.cardMode &&
6278
+ h("div", { key: '9fc34aabed34722d2e35dd40cb768bf1216e2a6f', class: "TournamentBannerInfo", part: "TournamentBannerInfo" }, h("div", { key: 'a100bd48e54e6e58deb629e3737be4d69665c43c', class: "BannerInfo", part: "BannerInfo" }, h("span", { key: 'fbd99abf8e5b9bf81a5df2840f2d3784bbf62fa5', class: `Tag State ${this.state}` }, this.stateText)), h("div", { key: '00b195d5a9e6fa9ee92d94d7273853acb3da39f1', class: "BannerInfo", part: "BannerInfo" }, this.showDate &&
6279
+ h("span", { key: '0522a16f1ff07e3e42078eab83f58b4a0e9a6fbf', class: "Tag Date" }, this.showCalendar &&
6280
+ h("svg", { key: '58cefa516aadac8e1ea97c4c7550992439d86e1a', class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'a5605e1a28f2e23f7c701d94d648071e29438669', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })), this.startdate)), h("div", { key: 'bfa79f4e8ba8db83286d4b166420535837992f29', class: "BannerInfo", part: "BannerInfo" }, this.enrolled &&
6281
+ h("span", { key: 'd42223a4dc8a71ecdde3ead177850101408c28e3', class: "Tag Enroll" }, this.showCheck &&
6282
+ h("svg", { key: 'a5ffe24ebf31216020442d4f0b27e6cf71675902', class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, h("path", { key: 'c2db6f66d8afd614f26c0a656daeb51631833ba9', d: "M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z", fill: "white" })), translate$1('enrolled', this.language)))), this.cardMode && h("div", { key: 'd66d8e41945df8fa190c635fc17448c2095a8338', class: "TournamentBannerThumb", part: "TournamentBannerThumb" }, h("div", { key: 'c18a987311a7e806b439dcab4bf8a4d96bca358a', class: "ThumbTitle", part: "ThumbTitle" }, this.description), h("div", { key: 'a7c810c1ecd87e46ef8f8972aade6db45fa902a2', class: "ThumbName", part: "ThumbName" }, this.nameOrTitle), h("div", { key: '0e4ea565959a0e61dcdd1a94889f822f86c5da56', class: "ThumbState" }, this.session && this.enrolled ?
6283
+ h("span", { class: "Tag Joined" }, h("svg", { class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, h("path", { d: "M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z", fill: "white" })), translate$1('joined', this.language))
6284
+ :
6285
+ this.session && this.state != 'Closed' &&
6286
+ h("span", { class: "Tag Join" }, h("svg", { class: "JoinPlus", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "13", viewBox: "0 0 12 13", fill: "none" }, h("path", { d: "M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z", fill: "white" })), translate$1('join', this.language)), this.state == 'Running' && h("span", { key: '659625f6d6d49b900f48511eedfd734717e52ad6', class: `Tag State ${this.state}` }, this.stateText, this.showRunningDate &&
6287
+ h("span", { key: '505b1743237cc5f867d3085dd92d0b4b38cc83d7', class: "TagRemain" }, this.showRemain, " ", translate$1('left', this.language))), (this.state == 'Unstarted' || this.state == 'Upcoming' || this.state == 'Closed') &&
6288
+ h("span", { key: '10eacb51b318ecca5f04d8fc2c5e4f3c53e2636c', class: `Tag Date ${this.state}` }, this.showCalendar &&
6289
+ h("svg", { key: 'a0551fe193454ad15fe279b8f5c46be6a3067c14', class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '2931bcda7e5f9e6baaa50f2c8e8caa38783bed2d', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })), this.startdate)), h("div", { key: '708b32bba1c7f042f62f8fe9f4229efd9094d6c8', class: "ThumbButtons" }, h("casino-tournament-buttons", { key: 'bc085c31d517644af1eb338912aa10e1c2a6a46e', enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData })), h("div", { key: '023eb9bacda76a8894ae9921863644dc323695d8', class: "ThumbTC" }, h("span", { key: 'f690d2a31ba88ffdff1892eebe276f8ca33cf7f5', onClick: this.termsClick.bind(this, this.tournamentId) }, translate$1('terms', this.language))))));
6290
+ }
6291
+ get host() { return getElement(this); }
6292
+ static get watchers() { return {
6293
+ "language": ["watchLanguage"]
6294
+ }; }
6289
6295
  };
6290
- CasinoTournamentBanner.style = casinoTournamentBannerCss;
6296
+ CasinoTournamentBanner.style = CasinoTournamentBannerStyle0;
6291
6297
 
6292
6298
  const getDevice = () => {
6293
- let userAgent = window.navigator.userAgent;
6294
- if (userAgent.toLowerCase().match(/android/i)) {
6295
- return 'Android';
6296
- }
6297
- if (userAgent.toLowerCase().match(/iphone/i)) {
6298
- return 'iPhone';
6299
- }
6300
- if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
6301
- return 'iPad';
6302
- }
6303
- return 'PC';
6299
+ let userAgent = window.navigator.userAgent;
6300
+ if (userAgent.toLowerCase().match(/android/i)) {
6301
+ return 'Android';
6302
+ }
6303
+ if (userAgent.toLowerCase().match(/iphone/i)) {
6304
+ return 'iPhone';
6305
+ }
6306
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
6307
+ return 'iPad';
6308
+ }
6309
+ return 'PC';
6304
6310
  };
6305
6311
 
6306
6312
  const DEFAULT_LANGUAGE = 'en';
6307
6313
  const TRANSLATIONS = {
6308
- en: {
6309
- joined: 'Joined',
6310
- join: 'Join',
6311
- enrolled: 'Enrolled',
6312
- scoreCriteria: 'Score Criteria',
6313
- minbet: 'min bet count',
6314
- seegames: 'You can see the games',
6315
- here: 'here',
6316
- scheduled: 'Scheduled',
6317
- ongoing: 'Ongoing',
6318
- finished: 'Finished',
6319
- startingAt: 'Starting at:',
6320
- startedAt: 'Started at:',
6321
- startingAtWithTime: `Starts `,
6322
- startedAtWithTime: `Started `,
6323
- mostRounds: 'Most Rounds',
6324
- betCount: 'Number of Bets',
6325
- maxWinStakeRatio: 'Max Win per Stake',
6326
- winStakeRatio: 'Total Win per Stake',
6327
- January: 'January',
6328
- February: 'February',
6329
- March: 'March',
6330
- April: 'April',
6331
- May: 'May',
6332
- June: 'June',
6333
- July: 'July',
6334
- August: 'August',
6335
- September: 'September',
6336
- October: 'October',
6337
- November: 'November',
6338
- December: 'December',
6339
- login: 'Log in',
6340
- register: 'Register',
6341
- details: 'Details',
6342
- joinerror: 'An error occurred while registering in the tournament, please try again.'
6343
- },
6344
- 'zh-hk': {
6345
- enrolled: '已註冊',
6346
- scoreCriteria: '評分標準',
6347
- minbet: '最小投注數:',
6348
- seegames: '你可以看比賽',
6349
- here: '這裡',
6350
- scheduled: '預定的',
6351
- ongoing: '進行中',
6352
- finished: '完成的',
6353
- startingAt: '開始於',
6354
- startedAt: '大多數回合',
6355
- mostRounds: '投注數',
6356
- betCount: '投注计数',
6357
- maxWinStakeRatio: '最大勝率',
6358
- winStakeRatio: '勝率',
6359
- January: '一月',
6360
- February: '二月',
6361
- March: '行进',
6362
- April: '四月',
6363
- May: '可能',
6364
- June: '六月',
6365
- July: '七月',
6366
- August: '八月',
6367
- September: '九月',
6368
- October: '十月',
6369
- November: '十一月',
6370
- December: '十二月',
6371
- login: '登錄',
6372
- register: '登記',
6373
- details: '細節',
6374
- join: '加入',
6375
- joinerror: '加入錦標賽時出錯,請重試'
6376
- },
6377
- fr: {
6378
- enrolled: 'Inscrits',
6379
- scoreCriteria: 'Critères de notation',
6380
- minbet: 'nombre de paris minimum',
6381
- seegames: 'Vous pouvez voir les jeux',
6382
- here: 'ici',
6383
- scheduled: 'Programmé',
6384
- ongoing: 'En cours',
6385
- finished: 'Fini',
6386
- startingAt: 'À partir de:',
6387
- startedAt: 'Commencé à:',
6388
- mostRounds: 'Le plus grand nombre de tours',
6389
- betCount: 'Nombre de paris',
6390
- maxWinStakeRatio: 'Indice maximum du gain d\'une mise',
6391
- winStakeRatio: 'Indice du gain d\'une mise',
6392
- January: 'January',
6393
- February: 'February',
6394
- March: 'March',
6395
- April: 'April',
6396
- May: 'May',
6397
- June: 'June',
6398
- July: 'July',
6399
- August: 'August',
6400
- September: 'September',
6401
- October: 'October',
6402
- November: 'November',
6403
- December: 'December',
6404
- login: 'Connexion',
6405
- register: 'Enregistre',
6406
- details: 'Détails',
6407
- join: 'Rejoignez',
6408
- joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - '
6409
- },
6410
- ro: {
6411
- enrolled: 'Înscris',
6412
- scoreCriteria: 'Criterii de punctaj',
6413
- minbet: 'număr minim de pariuri',
6414
- seegames: 'Vezi jocurile',
6415
- here: 'aici',
6416
- scheduled: 'Programat',
6417
- ongoing: 'În desfășurare',
6418
- finished: 'Finalizat',
6419
- startingAt: 'Începând de la',
6420
- startedAt: 'A inceput la:',
6421
- startingAtWithTime: 'Începând de',
6422
- startedAtWithTime: 'A inceput:',
6423
- mostRounds: 'Cele mai multe runde',
6424
- betCount: 'Număr de pariuri',
6425
- maxWinStakeRatio: 'Pondere maximă a mizei din câștig',
6426
- winStakeRatio: 'Câștig Total per Miză',
6427
- January: 'Ianuarie',
6428
- February: 'Februarie',
6429
- March: 'Martie',
6430
- April: 'Aprilie',
6431
- May: 'Mai',
6432
- June: 'Iunie',
6433
- July: 'Iulie',
6434
- August: 'August',
6435
- September: 'Septembrie',
6436
- October: 'Octombrie',
6437
- November: 'Noiembrie',
6438
- December: 'Decembrie',
6439
- login: 'Autentificare',
6440
- register: 'Înregistrare',
6441
- details: 'Detalii',
6442
- join: 'Participă',
6443
- joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.'
6444
- },
6445
- tr: {
6446
- enrolled: 'Katıldın',
6447
- scoreCriteria: 'Skor kriteri',
6448
- minbet: 'en düşük bahis sayısı',
6449
- seegames: 'Turnuvadaki oyunları görmek için',
6450
- here: 'tıklayın',
6451
- scheduled: 'Planlanmış',
6452
- ongoing: 'Devam Eden',
6453
- finished: 'Sona Ermiş',
6454
- startingAt: 'Başlangıç saati:',
6455
- startedAt: 'Başlangıç saati:',
6456
- mostRounds: 'ÇoğuRounds',
6457
- betCount: 'Oynanan Tur Sayısı',
6458
- maxWinStakeRatio: 'Maksimum Kazanç / Bahis Oranı',
6459
- winStakeRatio: 'Kazanç / Bahis Oranı',
6460
- January: 'Ocak',
6461
- February: 'Şubat',
6462
- March: 'Mart',
6463
- April: 'Nisan',
6464
- May: 'Mayıs',
6465
- June: 'Haziran',
6466
- July: 'Temmuz',
6467
- August: 'Ağustos',
6468
- September: 'Eylül',
6469
- October: 'Ekim',
6470
- November: 'Kasım',
6471
- December: 'Aralık',
6472
- login: 'Giriş',
6473
- register: 'Kayıt Ol',
6474
- details: 'Detaylar',
6475
- join: 'Katıl',
6476
- joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - '
6477
- },
6478
- el: {
6479
- enrolled: 'Εγγεγραμμένος',
6480
- scoreCriteria: 'Κριτήρια Σκορ',
6481
- minbet: 'Ελάχιστος αριθμός πονταρισμάτων',
6482
- seegames: 'Μπορείς να δεις τα παιχνίδια',
6483
- here: 'εδώ',
6484
- all: 'Όλα',
6485
- scheduled: 'Προγραμματισμένα',
6486
- ongoing: 'Τρέχοντα',
6487
- finished: 'Ολοκληρωμένα',
6488
- startingAt: 'Αρχίζει στις:',
6489
- startedAt: 'Άρχισε στις:',
6490
- startingAtWithTime: `Αρχίζει στις `,
6491
- startedAtWithTime: `Άρχισε στις `,
6492
- mostRounds: 'Οι περισσότεροι γύροι',
6493
- betCount: 'Οι περισσότεροι γύροι',
6494
- maxWinStakeRatio: 'Μεγαλύτερο Κέρδος άνα Ποντάρισμα',
6495
- winStakeRatio: 'Συνολική Αναλογία Κερδών άνα Ποντάρισμα',
6496
- January: 'Ιανουαρίου',
6497
- February: 'Φεβρουαρίου',
6498
- March: 'Μαρτίου',
6499
- April: 'Απριλίου',
6500
- May: 'Μαΐου',
6501
- June: 'Ιουνίου',
6502
- July: 'Ιουλίου',
6503
- August: 'Αυγούστου',
6504
- September: 'Σεπτεμβρίου',
6505
- October: 'Οκτωβρίου',
6506
- November: 'Νοεμβρίου',
6507
- December: 'Δεκεμβρίου',
6508
- login: 'Είσοδος',
6509
- register: 'Εγγραφή',
6510
- details: 'Λεπτομέρειες',
6511
- join: 'Συμμετοχή',
6512
- joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.'
6513
- },
6514
- es: {
6515
- enrolled: 'Inscrito',
6516
- scoreCriteria: 'Criterios de puntuación',
6517
- minbet: 'la apuesta mínima cuenta',
6518
- seegames: 'Puedes ver los juegos',
6519
- here: 'aquí',
6520
- scheduled: 'Programado',
6521
- ongoing: 'En marcha',
6522
- finished: 'Terminado',
6523
- startingAt: 'Desde',
6524
- startedAt: 'Empezó el:',
6525
- mostRounds: 'LaMayoríaDeLasRondas',
6526
- betCount: 'Recuento De Apuestas',
6527
- maxWinStakeRatio: 'Ratio De Ganancia Máxima',
6528
- winStakeRatio: 'Ratio De Ganancia',
6529
- January: 'de enero',
6530
- February: 'de febrero',
6531
- March: 'de marzo',
6532
- April: 'de abril',
6533
- May: 'de mayo',
6534
- June: 'de junio',
6535
- July: 'de julio',
6536
- August: 'de agosto',
6537
- September: 'de septiembre',
6538
- October: 'de octubre',
6539
- November: 'de noviembre',
6540
- December: 'de diciembre',
6541
- login: 'Iniciar sesión',
6542
- register: 'Regístrate',
6543
- details: 'Detalles',
6544
- join: 'Unirse',
6545
- joinerror: 'Ha ocurrido un error mientras se registra en el Torneo',
6546
- },
6547
- pt: {
6548
- enrolled: 'Inscrito',
6549
- scoreCriteria: 'Critérios de pontuação',
6550
- minbet: 'Contagens de aposta mínima',
6551
- seegames: 'Você pode ver os jogos',
6552
- here: 'Aqui',
6553
- scheduled: 'Agendado',
6554
- ongoing: 'Em progresso',
6555
- finished: 'Finalizado',
6556
- startingAt: 'Começando às:',
6557
- startedAt: 'Começou às:',
6558
- mostRounds: 'Mais rodadas',
6559
- betCount: 'Contagem de Apostas',
6560
- maxWinStakeRatio: 'Rácio máximo de vitórias',
6561
- winStakeRatio: 'Rácio de Vitórias',
6562
- January: 'January',
6563
- February: 'February',
6564
- March: 'March',
6565
- April: 'April',
6566
- May: 'May',
6567
- June: 'June',
6568
- July: 'July',
6569
- August: 'August',
6570
- September: 'September',
6571
- October: 'October',
6572
- November: 'November',
6573
- December: 'December',
6574
- login: 'Entrar',
6575
- register: 'Registro',
6576
- details: 'Detalhes',
6577
- join: 'Junte-se',
6578
- joinerror: 'Ocorreu um erro ao entrar no torneio -'
6579
- },
6580
- hu: {
6581
- enrolled: 'Feliratkozott',
6582
- scoreCriteria: 'Pontozási kritériumok',
6583
- minbet: 'Minimális tét',
6584
- seegames: 'Játékok megnézése',
6585
- here: 'itt',
6586
- scheduled: 'Ütemezés',
6587
- ongoing: 'Folyamatban lévő',
6588
- finished: 'Befejezett',
6589
- startingAt: 'Kezdődik',
6590
- startedAt: 'Started at:',
6591
- mostRounds: 'Legtöbb kör',
6592
- betCount: 'Számított tét',
6593
- maxWinStakeRatio: 'Maximális nyeremény tétenként',
6594
- winStakeRatio: 'Összes nyeremény tétenként',
6595
- January: 'January',
6596
- February: 'February',
6597
- March: 'March',
6598
- April: 'April',
6599
- May: 'May',
6600
- June: 'June',
6601
- July: 'July',
6602
- August: 'August',
6603
- September: 'September',
6604
- October: 'October',
6605
- November: 'November',
6606
- December: 'December',
6607
- login: 'Bejelentkezés',
6608
- register: 'Regisztráció',
6609
- details: 'Adatok',
6610
- join: 'Csatlakozás',
6611
- joinerror: 'Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.',
6612
- },
6613
- hr: {
6614
- joined: 'Pridružen',
6615
- enrolled: 'Upisan',
6616
- scoreCriteria: 'Kriteriji bodovanja',
6617
- minbet: 'minimalni broj beta',
6618
- seegames: 'Možete vidjeti igre',
6619
- here: 'Ovdje',
6620
- scheduled: 'Zakazano',
6621
- ongoing: 'U tijeku',
6622
- finished: 'Gotovo',
6623
- startingAt: 'S početkom u',
6624
- startedAt: 'Započelo u',
6625
- startingAtWithTime: `Počinje `,
6626
- startedAtWithTime: `Započelo `,
6627
- mostRounds: 'Najviše rundi',
6628
- betCount: 'Broj betova',
6629
- maxWinStakeRatio: 'Maksimalni dobitak po ulogu',
6630
- winStakeRatio: 'Ukupni dobitak po ulogu',
6631
- January: 'Siječanj',
6632
- February: 'Veljača',
6633
- March: 'Ožujak',
6634
- April: 'Travanj',
6635
- May: 'Svibanj',
6636
- June: 'Lipanj',
6637
- July: 'Srpanj',
6638
- August: 'Kolovoz',
6639
- September: 'Rujan',
6640
- October: 'Listopad',
6641
- November: 'Studeni',
6642
- December: 'Prosinac',
6643
- login: 'Prijaviti se',
6644
- register: 'Registracija',
6645
- details: 'Detalji',
6646
- join: 'join',
6647
- joinerror: 'Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.',
6648
- left: 'lijevo',
6649
- minutes: 'minute',
6650
- hours: 'sati',
6651
- days: 'dani',
6652
- }
6314
+ en: {
6315
+ joined: 'Joined',
6316
+ join: 'Join',
6317
+ enrolled: 'Enrolled',
6318
+ scoreCriteria: 'Score Criteria',
6319
+ minbet: 'min bet count',
6320
+ seegames: 'You can see the games',
6321
+ here: 'here',
6322
+ scheduled: 'Scheduled',
6323
+ ongoing: 'Ongoing',
6324
+ finished: 'Finished',
6325
+ startingAt: 'Starting at:',
6326
+ startedAt: 'Started at:',
6327
+ startingAtWithTime: `Starts `,
6328
+ startedAtWithTime: `Started `,
6329
+ mostRounds: 'Most Rounds',
6330
+ betCount: 'Number of Bets',
6331
+ maxWinStakeRatio: 'Max Win per Stake',
6332
+ winStakeRatio: 'Total Win per Stake',
6333
+ January: 'January',
6334
+ February: 'February',
6335
+ March: 'March',
6336
+ April: 'April',
6337
+ May: 'May',
6338
+ June: 'June',
6339
+ July: 'July',
6340
+ August: 'August',
6341
+ September: 'September',
6342
+ October: 'October',
6343
+ November: 'November',
6344
+ December: 'December',
6345
+ login: 'Log in',
6346
+ register: 'Register',
6347
+ details: 'Details',
6348
+ joinerror: 'An error occurred while registering in the tournament, please try again.'
6349
+ },
6350
+ 'zh-hk': {
6351
+ enrolled: '已註冊',
6352
+ scoreCriteria: '評分標準',
6353
+ minbet: '最小投注數:',
6354
+ seegames: '你可以看比賽',
6355
+ here: '這裡',
6356
+ scheduled: '預定的',
6357
+ ongoing: '進行中',
6358
+ finished: '完成的',
6359
+ startingAt: '開始於',
6360
+ startedAt: '大多數回合',
6361
+ mostRounds: '投注數',
6362
+ betCount: '投注计数',
6363
+ maxWinStakeRatio: '最大勝率',
6364
+ winStakeRatio: '勝率',
6365
+ January: '一月',
6366
+ February: '二月',
6367
+ March: '行进',
6368
+ April: '四月',
6369
+ May: '可能',
6370
+ June: '六月',
6371
+ July: '七月',
6372
+ August: '八月',
6373
+ September: '九月',
6374
+ October: '十月',
6375
+ November: '十一月',
6376
+ December: '十二月',
6377
+ login: '登錄',
6378
+ register: '登記',
6379
+ details: '細節',
6380
+ join: '加入',
6381
+ joinerror: '加入錦標賽時出錯,請重試'
6382
+ },
6383
+ fr: {
6384
+ enrolled: 'Inscrits',
6385
+ scoreCriteria: 'Critères de notation',
6386
+ minbet: 'nombre de paris minimum',
6387
+ seegames: 'Vous pouvez voir les jeux',
6388
+ here: 'ici',
6389
+ scheduled: 'Programmé',
6390
+ ongoing: 'En cours',
6391
+ finished: 'Fini',
6392
+ startingAt: 'À partir de:',
6393
+ startedAt: 'Commencé à:',
6394
+ mostRounds: 'Le plus grand nombre de tours',
6395
+ betCount: 'Nombre de paris',
6396
+ maxWinStakeRatio: 'Indice maximum du gain d\'une mise',
6397
+ winStakeRatio: 'Indice du gain d\'une mise',
6398
+ January: 'January',
6399
+ February: 'February',
6400
+ March: 'March',
6401
+ April: 'April',
6402
+ May: 'May',
6403
+ June: 'June',
6404
+ July: 'July',
6405
+ August: 'August',
6406
+ September: 'September',
6407
+ October: 'October',
6408
+ November: 'November',
6409
+ December: 'December',
6410
+ login: 'Connexion',
6411
+ register: 'Enregistre',
6412
+ details: 'Détails',
6413
+ join: 'Rejoignez',
6414
+ joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - '
6415
+ },
6416
+ ro: {
6417
+ enrolled: 'Înscris',
6418
+ scoreCriteria: 'Criterii de punctaj',
6419
+ minbet: 'număr minim de pariuri',
6420
+ seegames: 'Vezi jocurile',
6421
+ here: 'aici',
6422
+ scheduled: 'Programat',
6423
+ ongoing: 'În desfășurare',
6424
+ finished: 'Finalizat',
6425
+ startingAt: 'Începând de la',
6426
+ startedAt: 'A inceput la:',
6427
+ startingAtWithTime: 'Începând de',
6428
+ startedAtWithTime: 'A inceput:',
6429
+ mostRounds: 'Cele mai multe runde',
6430
+ betCount: 'Număr de pariuri',
6431
+ maxWinStakeRatio: 'Pondere maximă a mizei din câștig',
6432
+ winStakeRatio: 'Câștig Total per Miză',
6433
+ January: 'Ianuarie',
6434
+ February: 'Februarie',
6435
+ March: 'Martie',
6436
+ April: 'Aprilie',
6437
+ May: 'Mai',
6438
+ June: 'Iunie',
6439
+ July: 'Iulie',
6440
+ August: 'August',
6441
+ September: 'Septembrie',
6442
+ October: 'Octombrie',
6443
+ November: 'Noiembrie',
6444
+ December: 'Decembrie',
6445
+ login: 'Autentificare',
6446
+ register: 'Înregistrare',
6447
+ details: 'Detalii',
6448
+ join: 'Participă',
6449
+ joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.'
6450
+ },
6451
+ tr: {
6452
+ enrolled: 'Katıldın',
6453
+ scoreCriteria: 'Skor kriteri',
6454
+ minbet: 'en düşük bahis sayısı',
6455
+ seegames: 'Turnuvadaki oyunları görmek için',
6456
+ here: 'tıklayın',
6457
+ scheduled: 'Planlanmış',
6458
+ ongoing: 'Devam Eden',
6459
+ finished: 'Sona Ermiş',
6460
+ startingAt: 'Başlangıç saati:',
6461
+ startedAt: 'Başlangıç saati:',
6462
+ mostRounds: 'ÇoğuRounds',
6463
+ betCount: 'Oynanan Tur Sayısı',
6464
+ maxWinStakeRatio: 'Maksimum Kazanç / Bahis Oranı',
6465
+ winStakeRatio: 'Kazanç / Bahis Oranı',
6466
+ January: 'Ocak',
6467
+ February: 'Şubat',
6468
+ March: 'Mart',
6469
+ April: 'Nisan',
6470
+ May: 'Mayıs',
6471
+ June: 'Haziran',
6472
+ July: 'Temmuz',
6473
+ August: 'Ağustos',
6474
+ September: 'Eylül',
6475
+ October: 'Ekim',
6476
+ November: 'Kasım',
6477
+ December: 'Aralık',
6478
+ login: 'Giriş',
6479
+ register: 'Kayıt Ol',
6480
+ details: 'Detaylar',
6481
+ join: 'Katıl',
6482
+ joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - '
6483
+ },
6484
+ el: {
6485
+ enrolled: 'Εγγεγραμμένος',
6486
+ scoreCriteria: 'Κριτήρια Σκορ',
6487
+ minbet: 'Ελάχιστος αριθμός πονταρισμάτων',
6488
+ seegames: 'Μπορείς να δεις τα παιχνίδια',
6489
+ here: 'εδώ',
6490
+ all: 'Όλα',
6491
+ scheduled: 'Προγραμματισμένα',
6492
+ ongoing: 'Τρέχοντα',
6493
+ finished: 'Ολοκληρωμένα',
6494
+ startingAt: 'Αρχίζει στις:',
6495
+ startedAt: 'Άρχισε στις:',
6496
+ startingAtWithTime: `Αρχίζει στις `,
6497
+ startedAtWithTime: `Άρχισε στις `,
6498
+ mostRounds: 'Οι περισσότεροι γύροι',
6499
+ betCount: 'Οι περισσότεροι γύροι',
6500
+ maxWinStakeRatio: 'Μεγαλύτερο Κέρδος άνα Ποντάρισμα',
6501
+ winStakeRatio: 'Συνολική Αναλογία Κερδών άνα Ποντάρισμα',
6502
+ January: 'Ιανουαρίου',
6503
+ February: 'Φεβρουαρίου',
6504
+ March: 'Μαρτίου',
6505
+ April: 'Απριλίου',
6506
+ May: 'Μαΐου',
6507
+ June: 'Ιουνίου',
6508
+ July: 'Ιουλίου',
6509
+ August: 'Αυγούστου',
6510
+ September: 'Σεπτεμβρίου',
6511
+ October: 'Οκτωβρίου',
6512
+ November: 'Νοεμβρίου',
6513
+ December: 'Δεκεμβρίου',
6514
+ login: 'Είσοδος',
6515
+ register: 'Εγγραφή',
6516
+ details: 'Λεπτομέρειες',
6517
+ join: 'Συμμετοχή',
6518
+ joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.'
6519
+ },
6520
+ es: {
6521
+ enrolled: 'Inscrito',
6522
+ scoreCriteria: 'Criterios de puntuación',
6523
+ minbet: 'la apuesta mínima cuenta',
6524
+ seegames: 'Puedes ver los juegos',
6525
+ here: 'aquí',
6526
+ scheduled: 'Programado',
6527
+ ongoing: 'En marcha',
6528
+ finished: 'Terminado',
6529
+ startingAt: 'Desde',
6530
+ startedAt: 'Empezó el:',
6531
+ mostRounds: 'LaMayoríaDeLasRondas',
6532
+ betCount: 'Recuento De Apuestas',
6533
+ maxWinStakeRatio: 'Ratio De Ganancia Máxima',
6534
+ winStakeRatio: 'Ratio De Ganancia',
6535
+ January: 'de enero',
6536
+ February: 'de febrero',
6537
+ March: 'de marzo',
6538
+ April: 'de abril',
6539
+ May: 'de mayo',
6540
+ June: 'de junio',
6541
+ July: 'de julio',
6542
+ August: 'de agosto',
6543
+ September: 'de septiembre',
6544
+ October: 'de octubre',
6545
+ November: 'de noviembre',
6546
+ December: 'de diciembre',
6547
+ login: 'Iniciar sesión',
6548
+ register: 'Regístrate',
6549
+ details: 'Detalles',
6550
+ join: 'Unirse',
6551
+ joinerror: 'Ha ocurrido un error mientras se registra en el Torneo',
6552
+ },
6553
+ pt: {
6554
+ enrolled: 'Inscrito',
6555
+ scoreCriteria: 'Critérios de pontuação',
6556
+ minbet: 'Contagens de aposta mínima',
6557
+ seegames: 'Você pode ver os jogos',
6558
+ here: 'Aqui',
6559
+ scheduled: 'Agendado',
6560
+ ongoing: 'Em progresso',
6561
+ finished: 'Finalizado',
6562
+ startingAt: 'Começando às:',
6563
+ startedAt: 'Começou às:',
6564
+ mostRounds: 'Mais rodadas',
6565
+ betCount: 'Contagem de Apostas',
6566
+ maxWinStakeRatio: 'Rácio máximo de vitórias',
6567
+ winStakeRatio: 'Rácio de Vitórias',
6568
+ January: 'January',
6569
+ February: 'February',
6570
+ March: 'March',
6571
+ April: 'April',
6572
+ May: 'May',
6573
+ June: 'June',
6574
+ July: 'July',
6575
+ August: 'August',
6576
+ September: 'September',
6577
+ October: 'October',
6578
+ November: 'November',
6579
+ December: 'December',
6580
+ login: 'Entrar',
6581
+ register: 'Registro',
6582
+ details: 'Detalhes',
6583
+ join: 'Junte-se',
6584
+ joinerror: 'Ocorreu um erro ao entrar no torneio -'
6585
+ },
6586
+ hu: {
6587
+ enrolled: 'Feliratkozott',
6588
+ scoreCriteria: 'Pontozási kritériumok',
6589
+ minbet: 'Minimális tét',
6590
+ seegames: 'Játékok megnézése',
6591
+ here: 'itt',
6592
+ scheduled: 'Ütemezés',
6593
+ ongoing: 'Folyamatban lévő',
6594
+ finished: 'Befejezett',
6595
+ startingAt: 'Kezdődik',
6596
+ startedAt: 'Started at:',
6597
+ mostRounds: 'Legtöbb kör',
6598
+ betCount: 'Számított tét',
6599
+ maxWinStakeRatio: 'Maximális nyeremény tétenként',
6600
+ winStakeRatio: 'Összes nyeremény tétenként',
6601
+ January: 'January',
6602
+ February: 'February',
6603
+ March: 'March',
6604
+ April: 'April',
6605
+ May: 'May',
6606
+ June: 'June',
6607
+ July: 'July',
6608
+ August: 'August',
6609
+ September: 'September',
6610
+ October: 'October',
6611
+ November: 'November',
6612
+ December: 'December',
6613
+ login: 'Bejelentkezés',
6614
+ register: 'Regisztráció',
6615
+ details: 'Adatok',
6616
+ join: 'Csatlakozás',
6617
+ joinerror: 'Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.',
6618
+ },
6619
+ hr: {
6620
+ joined: 'Pridružen',
6621
+ enrolled: 'Upisan',
6622
+ scoreCriteria: 'Kriteriji bodovanja',
6623
+ minbet: 'minimalni broj beta',
6624
+ seegames: 'Možete vidjeti igre',
6625
+ here: 'Ovdje',
6626
+ scheduled: 'Zakazano',
6627
+ ongoing: 'U tijeku',
6628
+ finished: 'Gotovo',
6629
+ startingAt: 'S početkom u',
6630
+ startedAt: 'Započelo u',
6631
+ startingAtWithTime: `Počinje `,
6632
+ startedAtWithTime: `Započelo `,
6633
+ mostRounds: 'Najviše rundi',
6634
+ betCount: 'Broj betova',
6635
+ maxWinStakeRatio: 'Maksimalni dobitak po ulogu',
6636
+ winStakeRatio: 'Ukupni dobitak po ulogu',
6637
+ January: 'Siječanj',
6638
+ February: 'Veljača',
6639
+ March: 'Ožujak',
6640
+ April: 'Travanj',
6641
+ May: 'Svibanj',
6642
+ June: 'Lipanj',
6643
+ July: 'Srpanj',
6644
+ August: 'Kolovoz',
6645
+ September: 'Rujan',
6646
+ October: 'Listopad',
6647
+ November: 'Studeni',
6648
+ December: 'Prosinac',
6649
+ login: 'Prijaviti se',
6650
+ register: 'Registracija',
6651
+ details: 'Detalji',
6652
+ join: 'join',
6653
+ joinerror: 'Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.',
6654
+ left: 'lijevo',
6655
+ minutes: 'minute',
6656
+ hours: 'sati',
6657
+ days: 'dani',
6658
+ }
6653
6659
  };
6654
6660
  const translate = (key, customLang) => {
6655
- var _a, _b;
6656
- const lang = customLang;
6657
- return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
6661
+ var _a, _b;
6662
+ const lang = customLang;
6663
+ return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
6658
6664
  };
6659
6665
  const getTranslations = (data) => {
6660
- Object.keys(data).forEach((item) => {
6661
- for (let key in data[item]) {
6662
- TRANSLATIONS[item][key] = data[item][key];
6663
- }
6664
- });
6666
+ Object.keys(data).forEach((item) => {
6667
+ for (let key in data[item]) {
6668
+ TRANSLATIONS[item][key] = data[item][key];
6669
+ }
6670
+ });
6665
6671
  };
6666
6672
 
6667
6673
  const casinoTournamentButtonsCss = ":host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:\"\";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}";
6674
+ const CasinoTournamentButtonsStyle0 = casinoTournamentButtonsCss;
6668
6675
 
6669
6676
  const CasinoTournamentButtons = class {
6670
- constructor(hostRef) {
6671
- registerInstance(this, hostRef);
6672
- this.userEnrolled = createEvent(this, "TournamentUserEnrolled", 7);
6673
- /**
6674
- * Player enrolled
6675
- */
6676
- this.enrolled = false;
6677
- /**
6678
- * Show read more button
6679
- */
6680
- this.showReadMore = false;
6681
- /**
6682
- * Client custom styling via inline styles
6683
- */
6684
- this.clientStyling = '';
6685
- /**
6686
- * Client custom styling via url
6687
- */
6688
- this.clientStylingUrl = '';
6689
- this.limitStylingAppends = false;
6690
- this.joinButtonLoading = false;
6691
- this.errorJoin = false;
6692
- this.errorJoinConcurrently = false;
6693
- }
6694
- componentWillLoad() {
6695
- if (this.translationData) {
6696
- getTranslations(JSON.parse(this.translationData));
6697
- }
6698
- }
6699
- componentDidRender() {
6700
- if (!this.limitStylingAppends && this.host) {
6701
- if (this.clientStyling)
6702
- this.setClientStyling();
6703
- if (this.clientStylingUrl)
6704
- this.setClientStylingURL();
6705
- this.limitStylingAppends = true;
6706
- }
6707
- }
6708
- setClientStyling() {
6709
- const sheet = new CSSStyleSheet();
6710
- // @ts-ignore
6711
- sheet.replace(this.clientStyling);
6712
- // @ts-ignore
6713
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6714
- }
6715
- setClientStylingURL() {
6716
- let url = new URL(this.clientStylingUrl);
6717
- fetch(url.href)
6718
- .then((res) => res.text())
6719
- .then((data) => {
6720
- const sheet = new CSSStyleSheet();
6721
- // @ts-ignore
6722
- sheet.replace(data);
6723
- // @ts-ignore
6724
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6725
- });
6726
- }
6727
- loginAction() {
6728
- if (this.loginEvent) {
6729
- window.postMessage({ type: this.loginEvent, transition: 'Login' }, window.location.href);
6730
- // @ts-ignore Analytics event
6731
- if (typeof gtag == 'function') {
6677
+ constructor(hostRef) {
6678
+ registerInstance(this, hostRef);
6679
+ this.userEnrolled = createEvent(this, "TournamentUserEnrolled", 7);
6680
+ this.language = undefined;
6681
+ this.tournamentId = undefined;
6682
+ this.session = undefined;
6683
+ this.loginEvent = undefined;
6684
+ this.loginUrl = undefined;
6685
+ this.registerEvent = undefined;
6686
+ this.registerUrl = undefined;
6687
+ this.endpoint = undefined;
6688
+ this.currency = undefined;
6689
+ this.bonusCode = undefined;
6690
+ this.enrolled = false;
6691
+ this.showReadMore = false;
6692
+ this.clientStyling = '';
6693
+ this.clientStylingUrl = '';
6694
+ this.translationData = undefined;
6695
+ this.limitStylingAppends = false;
6696
+ this.joinButtonLoading = false;
6697
+ this.errorJoin = false;
6698
+ this.errorJoinConcurrently = false;
6699
+ }
6700
+ componentWillLoad() {
6701
+ if (this.translationData) {
6702
+ getTranslations(JSON.parse(this.translationData));
6703
+ }
6704
+ }
6705
+ componentDidRender() {
6706
+ if (!this.limitStylingAppends && this.host) {
6707
+ if (this.clientStyling)
6708
+ this.setClientStyling();
6709
+ if (this.clientStylingUrl)
6710
+ this.setClientStylingURL();
6711
+ this.limitStylingAppends = true;
6712
+ }
6713
+ }
6714
+ setClientStyling() {
6715
+ const sheet = new CSSStyleSheet();
6732
6716
  // @ts-ignore
6733
- gtag('event', 'OpenLoginModal', {
6734
- 'context': 'TournamentsThumbnailController'
6735
- });
6736
- }
6737
- }
6738
- if (this.loginUrl) {
6739
- location.href = this.loginUrl;
6740
- }
6741
- }
6742
- registerAction() {
6743
- if (this.registerEvent) {
6744
- window.postMessage({ type: this.registerEvent, transition: 'Register' }, window.location.href);
6745
- //@ts-ignoreAnalytics event
6746
- if (typeof gtag == 'function') {
6747
- //@ts-ignore
6748
- gtag('event', 'OpenRegisterModal', {
6749
- 'context': 'TournamentsThumbnailController'
6750
- });
6751
- }
6752
- }
6753
- if (this.registerUrl) {
6754
- location.href = this.registerUrl;
6755
- }
6756
- }
6757
- async joinAction(tournamentId, bonuscode) {
6758
- var _a;
6759
- this.errorJoin = false;
6760
- this.errorJoinConcurrently = false;
6761
- window.postMessage({ type: 'TournamentJoinRequest', tournamentId }, window.location.href);
6762
- this.joinButtonLoading = true;
6763
- let joinUrl = new URL(`${this.endpoint}/v1/bonus/claim`);
6764
- let reqHeaders = new Headers();
6765
- let body = {};
6766
- joinUrl.searchParams.append('language', this.language);
6767
- joinUrl.searchParams.append('platform', getDevice());
6768
- reqHeaders.append('Content-Type', 'application/json');
6769
- reqHeaders.append("X-SessionID", this.session);
6770
- if (bonuscode) {
6771
- body = {
6772
- language: this.language,
6773
- bonusCode: bonuscode,
6774
- currency: this.currency
6775
- };
6776
- }
6777
- let requestOptions = {
6778
- method: 'PUT',
6779
- headers: reqHeaders,
6780
- body: JSON.stringify(body),
6781
- };
6782
- const handlerOnSuccess = () => {
6783
- this.joinButtonLoading = false;
6784
- this.enrolled = true;
6785
- window.postMessage({ type: 'TournamentUserEnrolled', userenrolled: this.enrolled, tournamentId }, window.location.href);
6786
- this.userEnrolled.emit({ userenrolled: this.enrolled, tournamentId });
6787
- };
6788
- const handlerOnFail = () => {
6789
- this.joinButtonLoading = false;
6790
- this.errorJoin = true;
6791
- };
6792
- const fetcher = async () => {
6793
- let result;
6794
- try {
6795
- result = await fetch(`${this.endpoint}/v1/bonus/claim?${joinUrl.searchParams.toString()}`, requestOptions);
6796
- result = await result.json();
6797
- }
6798
- catch (e) {
6799
- handlerOnFail();
6800
- }
6801
- return result;
6802
- };
6803
- const data = await fetcher();
6804
- if (!data)
6805
- return;
6806
- if (data.success == true) {
6807
- handlerOnSuccess();
6808
- }
6809
- else {
6810
- if (data.errorMessage.match("VersionMismatchException")) {
6811
- let resultDoubleCheck;
6812
- resultDoubleCheck = await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`, {
6813
- headers: {
6814
- 'X-SessionID': this.session
6815
- }
6717
+ sheet.replace(this.clientStyling);
6718
+ // @ts-ignore
6719
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6720
+ }
6721
+ setClientStylingURL() {
6722
+ let url = new URL(this.clientStylingUrl);
6723
+ fetch(url.href)
6724
+ .then((res) => res.text())
6725
+ .then((data) => {
6726
+ const sheet = new CSSStyleSheet();
6727
+ // @ts-ignore
6728
+ sheet.replace(data);
6729
+ // @ts-ignore
6730
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6816
6731
  });
6817
- resultDoubleCheck = await resultDoubleCheck.json();
6818
- if ((_a = resultDoubleCheck === null || resultDoubleCheck === void 0 ? void 0 : resultDoubleCheck.item) === null || _a === void 0 ? void 0 : _a.playerEnrolled) {
6819
- handlerOnSuccess();
6732
+ }
6733
+ loginAction() {
6734
+ if (this.loginEvent) {
6735
+ window.postMessage({ type: this.loginEvent, transition: 'Login' }, window.location.href);
6736
+ // @ts-ignore Analytics event
6737
+ if (typeof gtag == 'function') {
6738
+ // @ts-ignore
6739
+ gtag('event', 'OpenLoginModal', {
6740
+ 'context': 'TournamentsThumbnailController'
6741
+ });
6742
+ }
6743
+ }
6744
+ if (this.loginUrl) {
6745
+ location.href = this.loginUrl;
6746
+ }
6747
+ }
6748
+ registerAction() {
6749
+ if (this.registerEvent) {
6750
+ window.postMessage({ type: this.registerEvent, transition: 'Register' }, window.location.href);
6751
+ //@ts-ignoreAnalytics event
6752
+ if (typeof gtag == 'function') {
6753
+ //@ts-ignore
6754
+ gtag('event', 'OpenRegisterModal', {
6755
+ 'context': 'TournamentsThumbnailController'
6756
+ });
6757
+ }
6758
+ }
6759
+ if (this.registerUrl) {
6760
+ location.href = this.registerUrl;
6761
+ }
6762
+ }
6763
+ async joinAction(tournamentId, bonuscode) {
6764
+ var _a;
6765
+ this.errorJoin = false;
6766
+ this.errorJoinConcurrently = false;
6767
+ window.postMessage({ type: 'TournamentJoinRequest', tournamentId }, window.location.href);
6768
+ this.joinButtonLoading = true;
6769
+ let joinUrl = new URL(`${this.endpoint}/v1/bonus/claim`);
6770
+ let reqHeaders = new Headers();
6771
+ let body = {};
6772
+ joinUrl.searchParams.append('language', this.language);
6773
+ joinUrl.searchParams.append('platform', getDevice());
6774
+ reqHeaders.append('Content-Type', 'application/json');
6775
+ reqHeaders.append("X-SessionID", this.session);
6776
+ if (bonuscode) {
6777
+ body = {
6778
+ language: this.language,
6779
+ bonusCode: bonuscode,
6780
+ currency: this.currency
6781
+ };
6782
+ }
6783
+ let requestOptions = {
6784
+ method: 'PUT',
6785
+ headers: reqHeaders,
6786
+ body: JSON.stringify(body),
6787
+ };
6788
+ const handlerOnSuccess = () => {
6789
+ this.joinButtonLoading = false;
6790
+ this.enrolled = true;
6791
+ window.postMessage({ type: 'TournamentUserEnrolled', userenrolled: this.enrolled, tournamentId }, window.location.href);
6792
+ this.userEnrolled.emit({ userenrolled: this.enrolled, tournamentId });
6793
+ };
6794
+ const handlerOnFail = () => {
6795
+ this.joinButtonLoading = false;
6796
+ this.errorJoin = true;
6797
+ };
6798
+ const fetcher = async () => {
6799
+ let result;
6800
+ try {
6801
+ result = await fetch(`${this.endpoint}/v1/bonus/claim?${joinUrl.searchParams.toString()}`, requestOptions);
6802
+ result = await result.json();
6803
+ }
6804
+ catch (e) {
6805
+ handlerOnFail();
6806
+ }
6807
+ return result;
6808
+ };
6809
+ const data = await fetcher();
6810
+ if (!data)
6811
+ return;
6812
+ if (data.success == true) {
6813
+ handlerOnSuccess();
6820
6814
  }
6821
6815
  else {
6822
- handlerOnFail();
6823
- this.errorJoinConcurrently = true;
6824
- this.errorJoin = false;
6825
- }
6826
- }
6827
- else {
6828
- handlerOnFail();
6829
- }
6830
- }
6831
- }
6832
- detailAction(tournamentId) {
6833
- window.postMessage({ type: 'TournamentDetailsClicked', tournamentId, showLeaderboard: true }, window.location.href);
6834
- }
6835
- moreAction(tournamentId) {
6836
- window.postMessage({ type: 'TournamentReadMoreClicked', tournamentId }, window.location.href);
6837
- }
6838
- render() {
6839
- return h("div", { class: "TournamentButtons" }, !this.session &&
6840
- h("div", { class: "ButtonGroup" }, h("button", { class: "LoginButton Button", part: "LoginButton", onClick: () => this.loginAction() }, translate('login', this.language)), h("button", { class: "RegisterButton Button", part: "RegisterButton", onClick: () => this.registerAction() }, translate('register', this.language))), this.session &&
6841
- h("div", null, !this.enrolled &&
6842
- h("div", { class: "ButtonGroup" }, h("button", { class: "Button", onClick: () => this.joinAction(this.tournamentId, this.bonusCode) }, translate('join', this.language)), this.showReadMore && h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, translate('readmore', this.language))), this.enrolled &&
6843
- h("div", { class: "ButtonGroup" }, h("button", { class: "Button", onClick: () => this.detailAction(this.tournamentId) }, translate('details', this.language)), this.showReadMore && h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, translate('readmore', this.language)))), (this.errorJoin || this.errorJoinConcurrently) &&
6844
- h("span", { class: "ErrorText", part: "ErrorText" }, translate('joinerror', this.language)));
6845
- }
6846
- get host() { return getElement(this); }
6816
+ if (data.errorMessage.match("VersionMismatchException")) {
6817
+ let resultDoubleCheck;
6818
+ resultDoubleCheck = await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`, {
6819
+ headers: {
6820
+ 'X-SessionID': this.session
6821
+ }
6822
+ });
6823
+ resultDoubleCheck = await resultDoubleCheck.json();
6824
+ if ((_a = resultDoubleCheck === null || resultDoubleCheck === void 0 ? void 0 : resultDoubleCheck.item) === null || _a === void 0 ? void 0 : _a.playerEnrolled) {
6825
+ handlerOnSuccess();
6826
+ }
6827
+ else {
6828
+ handlerOnFail();
6829
+ this.errorJoinConcurrently = true;
6830
+ this.errorJoin = false;
6831
+ }
6832
+ }
6833
+ else {
6834
+ handlerOnFail();
6835
+ }
6836
+ }
6837
+ }
6838
+ detailAction(tournamentId) {
6839
+ window.postMessage({ type: 'TournamentDetailsClicked', tournamentId, showLeaderboard: true }, window.location.href);
6840
+ }
6841
+ moreAction(tournamentId) {
6842
+ window.postMessage({ type: 'TournamentReadMoreClicked', tournamentId }, window.location.href);
6843
+ }
6844
+ render() {
6845
+ return h("div", { key: '763ee14c366708587968c9dba99dfdca14f464aa', class: "TournamentButtons" }, !this.session &&
6846
+ h("div", { key: '6cbf1242e6aaaaf1a4b22d225c851751d08e5235', class: "ButtonGroup" }, h("button", { key: '430fdc44dbd2e87b580910222b87fd015bc8cdec', class: "LoginButton Button", part: "LoginButton", onClick: () => this.loginAction() }, translate('login', this.language)), h("button", { key: 'ff655fe2a0493a1806957a0c9809d78c0e3402c9', class: "RegisterButton Button", part: "RegisterButton", onClick: () => this.registerAction() }, translate('register', this.language))), this.session &&
6847
+ h("div", { key: '7dd13f2bd91a8f0e36c01b9640906258fd037008' }, !this.enrolled &&
6848
+ h("div", { key: '86f4e6e90f5ff54f5b7b49bbb96fcbf6f6abdbd1', class: "ButtonGroup" }, h("button", { key: '3a7b08d6fd2a00b2ac54e16f7a1d30012bfb3552', class: "Button", onClick: () => this.joinAction(this.tournamentId, this.bonusCode) }, translate('join', this.language)), this.showReadMore && h("button", { key: 'b0027a4d5c78b86ea87aded7f85a6321b47f59a9', class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, translate('readmore', this.language))), this.enrolled &&
6849
+ h("div", { key: 'a69057c0e89fa520491e0cdc5541b9c9b81227d8', class: "ButtonGroup" }, h("button", { key: '2f7c353d41122018c120114870956bb3cfd7ef20', class: "Button", onClick: () => this.detailAction(this.tournamentId) }, translate('details', this.language)), this.showReadMore && h("button", { key: '45bc2dbeb283b0c4f0cda9bb88b1495fb6a74b09', class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, translate('readmore', this.language)))), (this.errorJoin || this.errorJoinConcurrently) &&
6850
+ h("span", { key: '9b80c1e71632549dd1ee395a0cf12eea1d292e1a', class: "ErrorText", part: "ErrorText" }, translate('joinerror', this.language)));
6851
+ }
6852
+ get host() { return getElement(this); }
6847
6853
  };
6848
- CasinoTournamentButtons.style = casinoTournamentButtonsCss;
6854
+ CasinoTournamentButtons.style = CasinoTournamentButtonsStyle0;
6849
6855
 
6850
6856
  export { CasinoTournamentBanner as casino_tournament_banner, CasinoTournamentButtons as casino_tournament_buttons };