@everymatrix/casino-tournament-list 1.20.5
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.
- package/dist/casino-tournament-list/casino-tournament-list.esm.js +1 -0
- package/dist/casino-tournament-list/index.esm.js +0 -0
- package/dist/casino-tournament-list/p-1368789d.js +1 -0
- package/dist/casino-tournament-list/p-908908a6.entry.js +15 -0
- package/dist/cjs/casino-tournament-banner_6.cjs.entry.js +8911 -0
- package/dist/cjs/casino-tournament-list.cjs.js +19 -0
- package/dist/cjs/index-c1b4bd7d.js +1284 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/collection/collection-manifest.json +43 -0
- package/dist/collection/components/casino-tournament-list/casino-tournament-list.css +97 -0
- package/dist/collection/components/casino-tournament-list/casino-tournament-list.js +578 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +104 -0
- package/dist/collection/utils/utils.js +20 -0
- package/dist/components/casino-tournament-banner.js +6 -0
- package/dist/components/casino-tournament-banner2.js +598 -0
- package/dist/components/casino-tournament-buttons.js +6 -0
- package/dist/components/casino-tournament-buttons2.js +534 -0
- package/dist/components/casino-tournament-duration.js +6 -0
- package/dist/components/casino-tournament-duration2.js +220 -0
- package/dist/components/casino-tournament-info.js +6 -0
- package/dist/components/casino-tournament-info2.js +502 -0
- package/dist/components/casino-tournament-list.d.ts +11 -0
- package/dist/components/casino-tournament-list.js +1493 -0
- package/dist/components/casino-tournament-prizes.js +6 -0
- package/dist/components/casino-tournament-prizes2.js +190 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/moment.js +5677 -0
- package/dist/esm/casino-tournament-banner_6.entry.js +8902 -0
- package/dist/esm/casino-tournament-list.js +17 -0
- package/dist/esm/index-b57e0a6b.js +1258 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.js +22 -0
- package/dist/types/Users/sebastian.strulea/Documents/work/widgets-stencil/packages/casino-tournament-list/.stencil/packages/casino-tournament-list/stencil.config.d.ts +2 -0
- package/dist/types/components/casino-tournament-list/casino-tournament-list.d.ts +101 -0
- package/dist/types/components.d.ts +181 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/locale.utils.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +19 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const getDevice = () => {
|
|
2
|
+
let userAgent = window.navigator.userAgent;
|
|
3
|
+
if (userAgent.toLowerCase().match(/android/i)) {
|
|
4
|
+
return 'Android';
|
|
5
|
+
}
|
|
6
|
+
if (userAgent.toLowerCase().match(/iphone/i)) {
|
|
7
|
+
return 'iPhone';
|
|
8
|
+
}
|
|
9
|
+
if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
|
|
10
|
+
return 'iPad';
|
|
11
|
+
}
|
|
12
|
+
return 'PC';
|
|
13
|
+
};
|
|
14
|
+
export const isMobile = () => {
|
|
15
|
+
let userAgent = window.navigator.userAgent;
|
|
16
|
+
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
17
|
+
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
18
|
+
userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
|
|
19
|
+
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
20
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { C as CasinoTournamentBanner$1, d as defineCustomElement$1 } from './casino-tournament-banner2.js';
|
|
2
|
+
|
|
3
|
+
const CasinoTournamentBanner = CasinoTournamentBanner$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { CasinoTournamentBanner, defineCustomElement };
|
|
@@ -0,0 +1,598 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { h as hooks } from './moment.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './casino-tournament-buttons2.js';
|
|
4
|
+
|
|
5
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
6
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en', 'zh-hk', 'fr', 'hu', 'tr', 'el', 'es', 'pt'];
|
|
7
|
+
const TRANSLATIONS = {
|
|
8
|
+
en: {
|
|
9
|
+
joined: 'Joined',
|
|
10
|
+
join: 'Join',
|
|
11
|
+
enrolled: 'Enrolled',
|
|
12
|
+
scoreCriteria: 'Score Criteria',
|
|
13
|
+
minbet: 'min bet count',
|
|
14
|
+
seegames: 'You can see the games',
|
|
15
|
+
here: 'here',
|
|
16
|
+
scheduled: 'Scheduled',
|
|
17
|
+
ongoing: 'Ongoing',
|
|
18
|
+
finished: 'Finished',
|
|
19
|
+
startingAt: 'Starting at:',
|
|
20
|
+
startedAt: 'Started at:',
|
|
21
|
+
startingAtWithTime: `Starts `,
|
|
22
|
+
startedAtWithTime: `Started `,
|
|
23
|
+
mostRounds: 'Most Rounds',
|
|
24
|
+
betCount: 'Number of Bets',
|
|
25
|
+
maxWinStakeRatio: 'Max Win per Stake',
|
|
26
|
+
winStakeRatio: 'Total Win per Stake',
|
|
27
|
+
January: 'January',
|
|
28
|
+
February: 'February',
|
|
29
|
+
March: 'March',
|
|
30
|
+
April: 'April',
|
|
31
|
+
May: 'May',
|
|
32
|
+
June: 'June',
|
|
33
|
+
July: 'July',
|
|
34
|
+
August: 'August',
|
|
35
|
+
September: 'September',
|
|
36
|
+
October: 'October',
|
|
37
|
+
November: 'November',
|
|
38
|
+
December: 'December',
|
|
39
|
+
login: 'Log in',
|
|
40
|
+
register: 'Register',
|
|
41
|
+
details: 'Details',
|
|
42
|
+
joinerror: 'An error occurred while registering in the tournament, please try again.',
|
|
43
|
+
tournament: 'Tournament',
|
|
44
|
+
terms: 'Terms and conditions',
|
|
45
|
+
left: 'left',
|
|
46
|
+
minutes: 'minutes',
|
|
47
|
+
hours: 'hours',
|
|
48
|
+
days: 'days',
|
|
49
|
+
},
|
|
50
|
+
'zh-hk': {
|
|
51
|
+
enrolled: '已註冊',
|
|
52
|
+
scoreCriteria: '評分標準',
|
|
53
|
+
minbet: '最小投注數:',
|
|
54
|
+
seegames: '你可以看比賽',
|
|
55
|
+
here: '這裡',
|
|
56
|
+
scheduled: '預定的',
|
|
57
|
+
ongoing: '進行中',
|
|
58
|
+
finished: '完成的',
|
|
59
|
+
startingAt: '開始於',
|
|
60
|
+
startedAt: '大多數回合',
|
|
61
|
+
mostRounds: '投注數',
|
|
62
|
+
betCount: '投注计数',
|
|
63
|
+
maxWinStakeRatio: '最大勝率',
|
|
64
|
+
winStakeRatio: '勝率',
|
|
65
|
+
January: '一月',
|
|
66
|
+
February: '二月',
|
|
67
|
+
March: '行进',
|
|
68
|
+
April: '四月',
|
|
69
|
+
May: '可能',
|
|
70
|
+
June: '六月',
|
|
71
|
+
July: '七月',
|
|
72
|
+
August: '八月',
|
|
73
|
+
September: '九月',
|
|
74
|
+
October: '十月',
|
|
75
|
+
November: '十一月',
|
|
76
|
+
December: '十二月',
|
|
77
|
+
login: '登錄',
|
|
78
|
+
register: '登記',
|
|
79
|
+
details: '細節',
|
|
80
|
+
join: '加入',
|
|
81
|
+
joinerror: '加入錦標賽時出錯,請重試',
|
|
82
|
+
left: '剩下',
|
|
83
|
+
minutes: '分鐘',
|
|
84
|
+
hours: '小時',
|
|
85
|
+
days: '天',
|
|
86
|
+
},
|
|
87
|
+
fr: {
|
|
88
|
+
enrolled: 'Inscrits',
|
|
89
|
+
scoreCriteria: 'Critères de notation',
|
|
90
|
+
minbet: 'nombre de paris minimum',
|
|
91
|
+
seegames: 'Vous pouvez voir les jeux',
|
|
92
|
+
here: 'ici',
|
|
93
|
+
scheduled: 'Programmé',
|
|
94
|
+
ongoing: 'En cours',
|
|
95
|
+
finished: 'Fini',
|
|
96
|
+
startingAt: 'À partir de:',
|
|
97
|
+
startedAt: 'Commencé à:',
|
|
98
|
+
mostRounds: 'Le plus grand nombre de tours',
|
|
99
|
+
betCount: 'Nombre de paris',
|
|
100
|
+
maxWinStakeRatio: 'Indice maximum du gain d\'une mise',
|
|
101
|
+
winStakeRatio: 'Indice du gain d\'une mise',
|
|
102
|
+
January: 'January',
|
|
103
|
+
February: 'February',
|
|
104
|
+
March: 'March',
|
|
105
|
+
April: 'April',
|
|
106
|
+
May: 'May',
|
|
107
|
+
June: 'June',
|
|
108
|
+
July: 'July',
|
|
109
|
+
August: 'August',
|
|
110
|
+
September: 'September',
|
|
111
|
+
October: 'October',
|
|
112
|
+
November: 'November',
|
|
113
|
+
December: 'December',
|
|
114
|
+
login: 'Connexion',
|
|
115
|
+
register: 'Enregistre',
|
|
116
|
+
details: 'Détails',
|
|
117
|
+
join: 'Rejoignez',
|
|
118
|
+
joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - ',
|
|
119
|
+
left: 'restant',
|
|
120
|
+
minutes: 'minutes',
|
|
121
|
+
hours: 'heures',
|
|
122
|
+
days: 'jours',
|
|
123
|
+
},
|
|
124
|
+
ro: {
|
|
125
|
+
enrolled: 'Înscris',
|
|
126
|
+
scoreCriteria: 'Criterii de punctaj',
|
|
127
|
+
minbet: 'număr minim de pariuri',
|
|
128
|
+
seegames: 'Vezi jocurile',
|
|
129
|
+
here: 'aici',
|
|
130
|
+
scheduled: 'Programat',
|
|
131
|
+
ongoing: 'În desfășurare',
|
|
132
|
+
finished: 'Finalizat',
|
|
133
|
+
startingAt: 'Începând de la',
|
|
134
|
+
startedAt: 'A inceput la:',
|
|
135
|
+
startingAtWithTime: 'Începând de',
|
|
136
|
+
startedAtWithTime: 'A inceput:',
|
|
137
|
+
mostRounds: 'Cele mai multe runde',
|
|
138
|
+
betCount: 'Număr de pariuri',
|
|
139
|
+
maxWinStakeRatio: 'Pondere maximă a mizei din câștig',
|
|
140
|
+
winStakeRatio: 'Câștig Total per Miză',
|
|
141
|
+
January: 'Ianuarie',
|
|
142
|
+
February: 'Februarie',
|
|
143
|
+
March: 'Martie',
|
|
144
|
+
April: 'Aprilie',
|
|
145
|
+
May: 'Mai',
|
|
146
|
+
June: 'Iunie',
|
|
147
|
+
July: 'Iulie',
|
|
148
|
+
August: 'August',
|
|
149
|
+
September: 'Septembrie',
|
|
150
|
+
October: 'Octombrie',
|
|
151
|
+
November: 'Noiembrie',
|
|
152
|
+
December: 'Decembrie',
|
|
153
|
+
login: 'Autentificare',
|
|
154
|
+
register: 'Înregistrare',
|
|
155
|
+
details: 'Detalii',
|
|
156
|
+
join: 'Participă',
|
|
157
|
+
joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.',
|
|
158
|
+
left: 'rămase',
|
|
159
|
+
minutes: 'minute',
|
|
160
|
+
hours: 'ore',
|
|
161
|
+
days: 'zile',
|
|
162
|
+
},
|
|
163
|
+
tr: {
|
|
164
|
+
enrolled: 'Katıldın',
|
|
165
|
+
scoreCriteria: 'Skor kriteri',
|
|
166
|
+
minbet: 'en düşük bahis sayısı',
|
|
167
|
+
seegames: 'Turnuvadaki oyunları görmek için',
|
|
168
|
+
here: 'tıklayın',
|
|
169
|
+
scheduled: 'Planlanmış',
|
|
170
|
+
ongoing: 'Devam Eden',
|
|
171
|
+
finished: 'Sona Ermiş',
|
|
172
|
+
startingAt: 'Başlangıç saati:',
|
|
173
|
+
startedAt: 'Başlangıç saati:',
|
|
174
|
+
mostRounds: 'ÇoğuRounds',
|
|
175
|
+
betCount: 'Oynanan Tur Sayısı',
|
|
176
|
+
maxWinStakeRatio: 'Maksimum Kazanç / Bahis Oranı',
|
|
177
|
+
winStakeRatio: 'Kazanç / Bahis Oranı',
|
|
178
|
+
January: 'Ocak',
|
|
179
|
+
February: 'Şubat',
|
|
180
|
+
March: 'Mart',
|
|
181
|
+
April: 'Nisan',
|
|
182
|
+
May: 'Mayıs',
|
|
183
|
+
June: 'Haziran',
|
|
184
|
+
July: 'Temmuz',
|
|
185
|
+
August: 'Ağustos',
|
|
186
|
+
September: 'Eylül',
|
|
187
|
+
October: 'Ekim',
|
|
188
|
+
November: 'Kasım',
|
|
189
|
+
December: 'Aralık',
|
|
190
|
+
login: 'Giriş',
|
|
191
|
+
register: 'Kayıt Ol',
|
|
192
|
+
details: 'Detaylar',
|
|
193
|
+
join: 'Katıl',
|
|
194
|
+
joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - ',
|
|
195
|
+
left: 'kaldı',
|
|
196
|
+
minutes: 'dakika',
|
|
197
|
+
hours: 'saat',
|
|
198
|
+
days: 'gün',
|
|
199
|
+
},
|
|
200
|
+
el: {
|
|
201
|
+
enrolled: 'Εγγεγραμμένος',
|
|
202
|
+
scoreCriteria: 'Κριτήρια Σκορ',
|
|
203
|
+
minbet: 'Ελάχιστος αριθμός πονταρισμάτων',
|
|
204
|
+
seegames: 'Μπορείς να δεις τα παιχνίδια',
|
|
205
|
+
here: 'εδώ',
|
|
206
|
+
all: 'Όλα',
|
|
207
|
+
scheduled: 'Προγραμματισμένα',
|
|
208
|
+
ongoing: 'Τρέχοντα',
|
|
209
|
+
finished: 'Ολοκληρωμένα',
|
|
210
|
+
startingAt: 'Αρχίζει στις:',
|
|
211
|
+
startedAt: 'Άρχισε στις:',
|
|
212
|
+
startingAtWithTime: `Αρχίζει στις `,
|
|
213
|
+
startedAtWithTime: `Άρχισε στις `,
|
|
214
|
+
mostRounds: 'Οι περισσότεροι γύροι',
|
|
215
|
+
betCount: 'Οι περισσότεροι γύροι',
|
|
216
|
+
maxWinStakeRatio: 'Μεγαλύτερο Κέρδος άνα Ποντάρισμα',
|
|
217
|
+
winStakeRatio: 'Συνολική Αναλογία Κερδών άνα Ποντάρισμα',
|
|
218
|
+
January: 'Ιανουαρίου',
|
|
219
|
+
February: 'Φεβρουαρίου',
|
|
220
|
+
March: 'Μαρτίου',
|
|
221
|
+
April: 'Απριλίου',
|
|
222
|
+
May: 'Μαΐου',
|
|
223
|
+
June: 'Ιουνίου',
|
|
224
|
+
July: 'Ιουλίου',
|
|
225
|
+
August: 'Αυγούστου',
|
|
226
|
+
September: 'Σεπτεμβρίου',
|
|
227
|
+
October: 'Οκτωβρίου',
|
|
228
|
+
November: 'Νοεμβρίου',
|
|
229
|
+
December: 'Δεκεμβρίου',
|
|
230
|
+
login: 'Είσοδος',
|
|
231
|
+
register: 'Εγγραφή',
|
|
232
|
+
details: 'Λεπτομέρειες',
|
|
233
|
+
join: 'Συμμετοχή',
|
|
234
|
+
joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.',
|
|
235
|
+
left: 'απομένουν',
|
|
236
|
+
minutes: 'λεπτά',
|
|
237
|
+
hours: 'ώρες',
|
|
238
|
+
days: 'ημέρες',
|
|
239
|
+
},
|
|
240
|
+
es: {
|
|
241
|
+
enrolled: 'Inscrito',
|
|
242
|
+
scoreCriteria: 'Criterios de puntuación',
|
|
243
|
+
minbet: 'la apuesta mínima cuenta',
|
|
244
|
+
seegames: 'Puedes ver los juegos',
|
|
245
|
+
here: 'aquí',
|
|
246
|
+
scheduled: 'Programado',
|
|
247
|
+
ongoing: 'En marcha',
|
|
248
|
+
finished: 'Terminado',
|
|
249
|
+
startingAt: 'Desde',
|
|
250
|
+
startedAt: 'Empezó el:',
|
|
251
|
+
mostRounds: 'LaMayoríaDeLasRondas',
|
|
252
|
+
betCount: 'Recuento De Apuestas',
|
|
253
|
+
maxWinStakeRatio: 'Ratio De Ganancia Máxima',
|
|
254
|
+
winStakeRatio: 'Ratio De Ganancia',
|
|
255
|
+
January: 'de enero',
|
|
256
|
+
February: 'de febrero',
|
|
257
|
+
March: 'de marzo',
|
|
258
|
+
April: 'de abril',
|
|
259
|
+
May: 'de mayo',
|
|
260
|
+
June: 'de junio',
|
|
261
|
+
July: 'de julio',
|
|
262
|
+
August: 'de agosto',
|
|
263
|
+
September: 'de septiembre',
|
|
264
|
+
October: 'de octubre',
|
|
265
|
+
November: 'de noviembre',
|
|
266
|
+
December: 'de diciembre',
|
|
267
|
+
login: 'Iniciar sesión',
|
|
268
|
+
register: 'Regístrate',
|
|
269
|
+
details: 'Detalles',
|
|
270
|
+
join: 'Unirse',
|
|
271
|
+
joinerror: 'Ha ocurrido un error mientras se registra en el Torneo',
|
|
272
|
+
left: 'izquierda',
|
|
273
|
+
minutes: 'minutos',
|
|
274
|
+
hours: 'horas',
|
|
275
|
+
days: 'días',
|
|
276
|
+
},
|
|
277
|
+
pt: {
|
|
278
|
+
enrolled: 'Inscrito',
|
|
279
|
+
scoreCriteria: 'Critérios de pontuação',
|
|
280
|
+
minbet: 'Contagens de aposta mínima',
|
|
281
|
+
seegames: 'Você pode ver os jogos',
|
|
282
|
+
here: 'Aqui',
|
|
283
|
+
scheduled: 'Agendado',
|
|
284
|
+
ongoing: 'Em progresso',
|
|
285
|
+
finished: 'Finalizado',
|
|
286
|
+
startingAt: 'Começando às:',
|
|
287
|
+
startedAt: 'Começou às:',
|
|
288
|
+
mostRounds: 'Mais rodadas',
|
|
289
|
+
betCount: 'Contagem de Apostas',
|
|
290
|
+
maxWinStakeRatio: 'Rácio máximo de vitórias',
|
|
291
|
+
winStakeRatio: 'Rácio de Vitórias',
|
|
292
|
+
January: 'January',
|
|
293
|
+
February: 'February',
|
|
294
|
+
March: 'March',
|
|
295
|
+
April: 'April',
|
|
296
|
+
May: 'May',
|
|
297
|
+
June: 'June',
|
|
298
|
+
July: 'July',
|
|
299
|
+
August: 'August',
|
|
300
|
+
September: 'September',
|
|
301
|
+
October: 'October',
|
|
302
|
+
November: 'November',
|
|
303
|
+
December: 'December',
|
|
304
|
+
login: 'Entrar',
|
|
305
|
+
register: 'Registro',
|
|
306
|
+
details: 'Detalhes',
|
|
307
|
+
join: 'Junte-se',
|
|
308
|
+
joinerror: 'Ocorreu um erro ao entrar no torneio -',
|
|
309
|
+
left: 'Abandonou',
|
|
310
|
+
minutes: 'Minutos',
|
|
311
|
+
hours: 'Horas',
|
|
312
|
+
days: 'Dias',
|
|
313
|
+
},
|
|
314
|
+
hu: {
|
|
315
|
+
enrolled: 'Feliratkozott',
|
|
316
|
+
scoreCriteria: 'Pontozási kritériumok',
|
|
317
|
+
minbet: 'Minimális tét',
|
|
318
|
+
seegames: 'Játékok megnézése',
|
|
319
|
+
here: 'itt',
|
|
320
|
+
scheduled: 'Ütemezés',
|
|
321
|
+
ongoing: 'Folyamatban lévő',
|
|
322
|
+
finished: 'Befejezett',
|
|
323
|
+
startingAt: 'Kezdődik',
|
|
324
|
+
startedAt: 'Started at:',
|
|
325
|
+
mostRounds: 'Legtöbb kör',
|
|
326
|
+
betCount: 'Számított tét',
|
|
327
|
+
maxWinStakeRatio: 'Maximális nyeremény tétenként',
|
|
328
|
+
winStakeRatio: 'Összes nyeremény tétenként',
|
|
329
|
+
January: 'January',
|
|
330
|
+
February: 'February',
|
|
331
|
+
March: 'March',
|
|
332
|
+
April: 'April',
|
|
333
|
+
May: 'May',
|
|
334
|
+
June: 'June',
|
|
335
|
+
July: 'July',
|
|
336
|
+
August: 'August',
|
|
337
|
+
September: 'September',
|
|
338
|
+
October: 'October',
|
|
339
|
+
November: 'November',
|
|
340
|
+
December: 'December',
|
|
341
|
+
login: 'Bejelentkezés',
|
|
342
|
+
register: 'Regisztráció',
|
|
343
|
+
details: 'Adatok',
|
|
344
|
+
join: 'Csatlakozás',
|
|
345
|
+
joinerror: 'Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.',
|
|
346
|
+
left: 'bal',
|
|
347
|
+
minutes: 'perc',
|
|
348
|
+
hours: 'óra',
|
|
349
|
+
days: 'nap',
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
const translate = (key, customLang) => {
|
|
353
|
+
const lang = customLang;
|
|
354
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
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}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";
|
|
358
|
+
|
|
359
|
+
const CasinoTournamentBanner = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
360
|
+
constructor() {
|
|
361
|
+
super();
|
|
362
|
+
this.__registerHost();
|
|
363
|
+
this.__attachShadow();
|
|
364
|
+
/**
|
|
365
|
+
* Short start time format
|
|
366
|
+
*/
|
|
367
|
+
this.shortstartformat = 'DD MMM YYYY';
|
|
368
|
+
/**
|
|
369
|
+
* Show date on widget
|
|
370
|
+
*/
|
|
371
|
+
this.showDate = true;
|
|
372
|
+
/**
|
|
373
|
+
* Show date on running state tournament tag
|
|
374
|
+
*/
|
|
375
|
+
this.showRunningDate = false;
|
|
376
|
+
/**
|
|
377
|
+
* Show check icon on enrolled tag
|
|
378
|
+
*/
|
|
379
|
+
this.showCheck = false;
|
|
380
|
+
/**
|
|
381
|
+
* Widget display as a card
|
|
382
|
+
*/
|
|
383
|
+
this.cardMode = false;
|
|
384
|
+
/**
|
|
385
|
+
* Show read more button
|
|
386
|
+
*/
|
|
387
|
+
this.showReadMore = false;
|
|
388
|
+
/**
|
|
389
|
+
* Client custom styling via inline styles
|
|
390
|
+
*/
|
|
391
|
+
this.clientStyling = '';
|
|
392
|
+
/**
|
|
393
|
+
* Client custom styling via url
|
|
394
|
+
*/
|
|
395
|
+
this.clientStylingUrl = '';
|
|
396
|
+
this.limitStylingAppends = false;
|
|
397
|
+
}
|
|
398
|
+
getDateTimeDiff(dateString1, dateString2) {
|
|
399
|
+
return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
|
|
400
|
+
}
|
|
401
|
+
getTextByDiff(diff) {
|
|
402
|
+
const renderText = (amount, type) => ' - ' + amount + ' ' + translate(type);
|
|
403
|
+
const renderTimeColumn = (column) => {
|
|
404
|
+
const columnInt = Math.floor(column);
|
|
405
|
+
if (columnInt < 10) {
|
|
406
|
+
return `0${columnInt}`;
|
|
407
|
+
}
|
|
408
|
+
else {
|
|
409
|
+
return `${columnInt}`;
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
if (diff < 1440) {
|
|
413
|
+
const hours = diff / 60;
|
|
414
|
+
const minutes = diff % 60;
|
|
415
|
+
const seconds = (minutes - Math.floor(minutes)) * 60;
|
|
416
|
+
return [hours, minutes, seconds].map(c => renderTimeColumn(c)).join(':');
|
|
417
|
+
}
|
|
418
|
+
return renderText(Math.ceil(diff / (60 * 24)), 'days');
|
|
419
|
+
}
|
|
420
|
+
getDuration() {
|
|
421
|
+
const dateNow = new Date();
|
|
422
|
+
this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
|
|
423
|
+
this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
|
|
424
|
+
}
|
|
425
|
+
infoCompletedHandler(event) {
|
|
426
|
+
if (event.detail && this.useEvent) {
|
|
427
|
+
this.state = event.detail.state;
|
|
428
|
+
this.stateText = this.getStateText(this.state);
|
|
429
|
+
this.enrolled = event.detail.playerEnrolled;
|
|
430
|
+
this.startTime = event.detail.startTime;
|
|
431
|
+
this.thumbnail = event.detail.thumbnail;
|
|
432
|
+
this.tournamentId = event.detail.id;
|
|
433
|
+
if (this.startTime) {
|
|
434
|
+
this.formatDate();
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
getStateText(state) {
|
|
439
|
+
let text = '';
|
|
440
|
+
switch (state) {
|
|
441
|
+
case 'Upcoming':
|
|
442
|
+
text = translate('scheduled', this.language);
|
|
443
|
+
break;
|
|
444
|
+
case 'Unstarted':
|
|
445
|
+
text = translate('scheduled', this.language);
|
|
446
|
+
break;
|
|
447
|
+
case 'Running':
|
|
448
|
+
text = translate('ongoing', this.language);
|
|
449
|
+
break;
|
|
450
|
+
default:
|
|
451
|
+
text = translate('finished', this.language);
|
|
452
|
+
break;
|
|
453
|
+
}
|
|
454
|
+
return text;
|
|
455
|
+
}
|
|
456
|
+
componentDidRender() {
|
|
457
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
458
|
+
if (this.clientStyling)
|
|
459
|
+
this.setClientStyling();
|
|
460
|
+
if (this.clientStylingUrl)
|
|
461
|
+
this.setClientStylingURL();
|
|
462
|
+
this.limitStylingAppends = true;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
setClientStyling() {
|
|
466
|
+
let sheet = document.createElement('style');
|
|
467
|
+
sheet.innerHTML = this.clientStyling;
|
|
468
|
+
this.stylingContainer.prepend(sheet);
|
|
469
|
+
}
|
|
470
|
+
setClientStylingURL() {
|
|
471
|
+
let cssFile = document.createElement('style');
|
|
472
|
+
setTimeout(() => {
|
|
473
|
+
cssFile.innerHTML = this.clientStylingUrl;
|
|
474
|
+
this.stylingContainer.prepend(cssFile);
|
|
475
|
+
}, 1);
|
|
476
|
+
}
|
|
477
|
+
formatDate() {
|
|
478
|
+
const dateOptions = { month: 'long' };
|
|
479
|
+
let currentDate = new Date(this.startTime);
|
|
480
|
+
const setTranslation = () => {
|
|
481
|
+
return (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
|
|
482
|
+
translate('startedAt', this.language) :
|
|
483
|
+
translate('startingAt', this.language);
|
|
484
|
+
};
|
|
485
|
+
if (this.shortStart) {
|
|
486
|
+
let startTimeAsString = hooks(currentDate).format(this.shortstartformat);
|
|
487
|
+
this.startdate = (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
|
|
488
|
+
translate('startedAtWithTime', this.language) + startTimeAsString :
|
|
489
|
+
translate('startingAtWithTime', this.language) + startTimeAsString;
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
let currentMonthKey = new Intl.DateTimeFormat('en', dateOptions).format(currentDate);
|
|
493
|
+
let currentDay = currentDate.getDate();
|
|
494
|
+
let currentHour = currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric', hour12: false });
|
|
495
|
+
this.startdate =
|
|
496
|
+
`${currentDay}` + ' ' +
|
|
497
|
+
translate(`${currentMonthKey}`, this.language) + ', ' +
|
|
498
|
+
setTranslation() +
|
|
499
|
+
` ${currentHour}`;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
componentWillLoad() {
|
|
503
|
+
if (!this.useEvent && this.startTime) {
|
|
504
|
+
this.formatDate();
|
|
505
|
+
}
|
|
506
|
+
if (this.state) {
|
|
507
|
+
this.stateText = this.getStateText(this.state);
|
|
508
|
+
}
|
|
509
|
+
if (this.startTime && this.endTime) {
|
|
510
|
+
this.getDuration();
|
|
511
|
+
this.getTextByDiff(this.tournamentLeftDays);
|
|
512
|
+
}
|
|
513
|
+
if (this.tournamentLeftDays < 1440 && this.tournamentLeftDays > 0) {
|
|
514
|
+
this.durationInterval = window.setInterval(() => {
|
|
515
|
+
if (this.startTime && this.endTime) {
|
|
516
|
+
this.getDuration();
|
|
517
|
+
}
|
|
518
|
+
}, 1000);
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
clearInterval(this.durationInterval);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
termsClick(tournamentId) {
|
|
525
|
+
window.postMessage({ type: 'TournamentTermsConditions', tournamentId: tournamentId }, window.location.href);
|
|
526
|
+
}
|
|
527
|
+
render() {
|
|
528
|
+
return h("div", { ref: el => this.stylingContainer = el, class: "TournamentBannerWrap" }, this.thumbnail && h("div", { class: "TournamentBanner", part: "TournamentBanner" }, h("img", { src: this.thumbnail, alt: "", class: `TournamentBannerBg ${this.cardMode && this.state ? this.state : ''}` }), !this.cardMode &&
|
|
529
|
+
h("div", { class: "TournamentBannerInfo", part: "TournamentBannerInfo" }, h("div", { class: "BannerInfo", part: "BannerInfo" }, h("span", { class: `Tag State ${this.state}` }, this.stateText)), h("div", { class: "BannerInfo", part: "BannerInfo" }, this.showDate &&
|
|
530
|
+
h("span", { class: "Tag Date" }, this.showCalendar &&
|
|
531
|
+
h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })), this.startdate)), h("div", { class: "BannerInfo", part: "BannerInfo" }, this.enrolled &&
|
|
532
|
+
h("span", { class: "Tag Enroll" }, this.showCheck &&
|
|
533
|
+
h("svg", { class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, h("path", { d: "M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z", fill: "white" })), translate('enrolled', this.language)))), this.cardMode && h("div", { class: "TournamentBannerThumb", part: "TournamentBannerThumb" }, h("div", { class: "ThumbTitle", part: "ThumbTitle" }, translate('tournament', this.language)), h("div", { class: "ThumbName", part: "ThumbName" }, this.nameOrTitle), h("div", { class: "ThumbState" }, this.session && this.enrolled ?
|
|
534
|
+
h("span", { class: "Tag Join" }, h("svg", { class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, h("path", { d: "M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z", fill: "white" })), translate('joined', this.language))
|
|
535
|
+
:
|
|
536
|
+
this.session && this.state != 'Closed' &&
|
|
537
|
+
h("span", { class: "Tag Join" }, h("svg", { class: "JoinPlus", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "13", viewBox: "0 0 12 13", fill: "none" }, h("path", { d: "M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z", fill: "white" })), translate('join', this.language)), this.state == 'Running' && h("span", { class: `Tag State ${this.state}` }, this.stateText, this.showRunningDate &&
|
|
538
|
+
h("span", { class: "TagRemain" }, this.showRemain, " ", translate('left', this.language))), (this.state == 'Unstarted' || this.state == 'Upcoming' || this.state == 'Closed') &&
|
|
539
|
+
h("span", { class: `Tag Date ${this.state}` }, this.showCalendar &&
|
|
540
|
+
h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })), this.startdate)), h("div", { class: "ThumbButtons" }, h("casino-tournament-buttons", { enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore })), h("div", { class: "ThumbTC" }, h("span", { onClick: this.termsClick.bind(this, this.tournamentId) }, translate('terms', this.language))))));
|
|
541
|
+
}
|
|
542
|
+
static get style() { return casinoTournamentBannerCss; }
|
|
543
|
+
}, [1, "casino-tournament-banner", {
|
|
544
|
+
"useEvent": [1, "use-event"],
|
|
545
|
+
"endpoint": [1],
|
|
546
|
+
"state": [1],
|
|
547
|
+
"enrolled": [4],
|
|
548
|
+
"startTime": [1, "start-time"],
|
|
549
|
+
"endTime": [1, "end-time"],
|
|
550
|
+
"thumbnail": [1],
|
|
551
|
+
"language": [1],
|
|
552
|
+
"showCalendar": [4, "show-calendar"],
|
|
553
|
+
"shortStart": [4, "short-start"],
|
|
554
|
+
"shortstartformat": [1],
|
|
555
|
+
"showDate": [4, "show-date"],
|
|
556
|
+
"showRunningDate": [4, "show-running-date"],
|
|
557
|
+
"showCheck": [4, "show-check"],
|
|
558
|
+
"cardMode": [4, "card-mode"],
|
|
559
|
+
"nameOrTitle": [1, "name-or-title"],
|
|
560
|
+
"tournamentId": [1, "tournament-id"],
|
|
561
|
+
"session": [1],
|
|
562
|
+
"loginEvent": [1, "login-event"],
|
|
563
|
+
"loginUrl": [1, "login-url"],
|
|
564
|
+
"registerEvent": [1, "register-event"],
|
|
565
|
+
"registerUrl": [1, "register-url"],
|
|
566
|
+
"currency": [1],
|
|
567
|
+
"bonusCode": [1, "bonus-code"],
|
|
568
|
+
"showReadMore": [4, "show-read-more"],
|
|
569
|
+
"clientStyling": [1, "client-styling"],
|
|
570
|
+
"clientStylingUrl": [1, "client-styling-url"],
|
|
571
|
+
"stateText": [32],
|
|
572
|
+
"limitStylingAppends": [32],
|
|
573
|
+
"stylingContainer": [32],
|
|
574
|
+
"startdate": [32],
|
|
575
|
+
"tournamentLeftDays": [32],
|
|
576
|
+
"showRemain": [32],
|
|
577
|
+
"durationInterval": [32]
|
|
578
|
+
}, [[8, "getTournamentInfoCompleted", "infoCompletedHandler"]]]);
|
|
579
|
+
function defineCustomElement() {
|
|
580
|
+
if (typeof customElements === "undefined") {
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
const components = ["casino-tournament-banner", "casino-tournament-buttons"];
|
|
584
|
+
components.forEach(tagName => { switch (tagName) {
|
|
585
|
+
case "casino-tournament-banner":
|
|
586
|
+
if (!customElements.get(tagName)) {
|
|
587
|
+
customElements.define(tagName, CasinoTournamentBanner);
|
|
588
|
+
}
|
|
589
|
+
break;
|
|
590
|
+
case "casino-tournament-buttons":
|
|
591
|
+
if (!customElements.get(tagName)) {
|
|
592
|
+
defineCustomElement$1();
|
|
593
|
+
}
|
|
594
|
+
break;
|
|
595
|
+
} });
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export { CasinoTournamentBanner as C, defineCustomElement as d };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { C as CasinoTournamentButtons$1, d as defineCustomElement$1 } from './casino-tournament-buttons2.js';
|
|
2
|
+
|
|
3
|
+
const CasinoTournamentButtons = CasinoTournamentButtons$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { CasinoTournamentButtons, defineCustomElement };
|