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