@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.
- package/dist/casino-tournament-banner/casino-tournament-banner.esm.js +1 -1
- package/dist/casino-tournament-banner/p-92acdabb.js +2 -0
- package/dist/casino-tournament-banner/p-e1255160.js +1 -0
- package/dist/casino-tournament-banner/p-efee48e1.entry.js +9 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-tournament-banner.cjs.js +17 -11
- package/dist/cjs/casino-tournament-banner_2.cjs.entry.js +1509 -1503
- package/dist/cjs/index-78134d39.js +1309 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-tournament-banner/casino-tournament-banner.js +739 -762
- package/dist/collection/components/casino-tournament-banner/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +392 -392
- package/dist/collection/utils/utils.js +11 -11
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-tournament-banner.js +14 -11
- package/dist/esm/casino-tournament-banner_2.entry.js +1509 -1503
- package/dist/esm/index-1bdfb450.js +1281 -0
- package/dist/esm/loader.js +7 -13
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- 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
- 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
- package/dist/types/components/casino-tournament-banner/casino-tournament-banner.d.ts +138 -138
- package/dist/types/components/casino-tournament-banner/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +11 -1
- package/dist/casino-tournament-banner/p-4576b686.js +0 -1
- package/dist/casino-tournament-banner/p-49e8660b.entry.js +0 -9
- package/dist/cjs/index-3a4744d8.js +0 -1291
- package/dist/components/casino-tournament-banner.d.ts +0 -11
- package/dist/components/casino-tournament-banner.js +0 -6352
- package/dist/components/casino-tournament-buttons.js +0 -6
- package/dist/components/casino-tournament-buttons2.js +0 -596
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-1ea7f13c.js +0 -1264
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-tournament-banner/.stencil/packages/casino-tournament-banner/stencil.config.d.ts +0 -2
|
@@ -1,6 +0,0 @@
|
|
|
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 };
|
|
@@ -1,596 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const getDevice = () => {
|
|
4
|
-
let userAgent = window.navigator.userAgent;
|
|
5
|
-
if (userAgent.toLowerCase().match(/android/i)) {
|
|
6
|
-
return 'Android';
|
|
7
|
-
}
|
|
8
|
-
if (userAgent.toLowerCase().match(/iphone/i)) {
|
|
9
|
-
return 'iPhone';
|
|
10
|
-
}
|
|
11
|
-
if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
|
|
12
|
-
return 'iPad';
|
|
13
|
-
}
|
|
14
|
-
return 'PC';
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
18
|
-
const TRANSLATIONS = {
|
|
19
|
-
en: {
|
|
20
|
-
joined: 'Joined',
|
|
21
|
-
join: 'Join',
|
|
22
|
-
enrolled: 'Enrolled',
|
|
23
|
-
scoreCriteria: 'Score Criteria',
|
|
24
|
-
minbet: 'min bet count',
|
|
25
|
-
seegames: 'You can see the games',
|
|
26
|
-
here: 'here',
|
|
27
|
-
scheduled: 'Scheduled',
|
|
28
|
-
ongoing: 'Ongoing',
|
|
29
|
-
finished: 'Finished',
|
|
30
|
-
startingAt: 'Starting at:',
|
|
31
|
-
startedAt: 'Started at:',
|
|
32
|
-
startingAtWithTime: `Starts `,
|
|
33
|
-
startedAtWithTime: `Started `,
|
|
34
|
-
mostRounds: 'Most Rounds',
|
|
35
|
-
betCount: 'Number of Bets',
|
|
36
|
-
maxWinStakeRatio: 'Max Win per Stake',
|
|
37
|
-
winStakeRatio: 'Total Win per Stake',
|
|
38
|
-
January: 'January',
|
|
39
|
-
February: 'February',
|
|
40
|
-
March: 'March',
|
|
41
|
-
April: 'April',
|
|
42
|
-
May: 'May',
|
|
43
|
-
June: 'June',
|
|
44
|
-
July: 'July',
|
|
45
|
-
August: 'August',
|
|
46
|
-
September: 'September',
|
|
47
|
-
October: 'October',
|
|
48
|
-
November: 'November',
|
|
49
|
-
December: 'December',
|
|
50
|
-
login: 'Log in',
|
|
51
|
-
register: 'Register',
|
|
52
|
-
details: 'Details',
|
|
53
|
-
joinerror: 'An error occurred while registering in the tournament, please try again.'
|
|
54
|
-
},
|
|
55
|
-
'zh-hk': {
|
|
56
|
-
enrolled: '已註冊',
|
|
57
|
-
scoreCriteria: '評分標準',
|
|
58
|
-
minbet: '最小投注數:',
|
|
59
|
-
seegames: '你可以看比賽',
|
|
60
|
-
here: '這裡',
|
|
61
|
-
scheduled: '預定的',
|
|
62
|
-
ongoing: '進行中',
|
|
63
|
-
finished: '完成的',
|
|
64
|
-
startingAt: '開始於',
|
|
65
|
-
startedAt: '大多數回合',
|
|
66
|
-
mostRounds: '投注數',
|
|
67
|
-
betCount: '投注计数',
|
|
68
|
-
maxWinStakeRatio: '最大勝率',
|
|
69
|
-
winStakeRatio: '勝率',
|
|
70
|
-
January: '一月',
|
|
71
|
-
February: '二月',
|
|
72
|
-
March: '行进',
|
|
73
|
-
April: '四月',
|
|
74
|
-
May: '可能',
|
|
75
|
-
June: '六月',
|
|
76
|
-
July: '七月',
|
|
77
|
-
August: '八月',
|
|
78
|
-
September: '九月',
|
|
79
|
-
October: '十月',
|
|
80
|
-
November: '十一月',
|
|
81
|
-
December: '十二月',
|
|
82
|
-
login: '登錄',
|
|
83
|
-
register: '登記',
|
|
84
|
-
details: '細節',
|
|
85
|
-
join: '加入',
|
|
86
|
-
joinerror: '加入錦標賽時出錯,請重試'
|
|
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
|
-
},
|
|
121
|
-
ro: {
|
|
122
|
-
enrolled: 'Înscris',
|
|
123
|
-
scoreCriteria: 'Criterii de punctaj',
|
|
124
|
-
minbet: 'număr minim de pariuri',
|
|
125
|
-
seegames: 'Vezi jocurile',
|
|
126
|
-
here: 'aici',
|
|
127
|
-
scheduled: 'Programat',
|
|
128
|
-
ongoing: 'În desfășurare',
|
|
129
|
-
finished: 'Finalizat',
|
|
130
|
-
startingAt: 'Începând de la',
|
|
131
|
-
startedAt: 'A inceput la:',
|
|
132
|
-
startingAtWithTime: 'Începând de',
|
|
133
|
-
startedAtWithTime: 'A inceput:',
|
|
134
|
-
mostRounds: 'Cele mai multe runde',
|
|
135
|
-
betCount: 'Număr de pariuri',
|
|
136
|
-
maxWinStakeRatio: 'Pondere maximă a mizei din câștig',
|
|
137
|
-
winStakeRatio: 'Câștig Total per Miză',
|
|
138
|
-
January: 'Ianuarie',
|
|
139
|
-
February: 'Februarie',
|
|
140
|
-
March: 'Martie',
|
|
141
|
-
April: 'Aprilie',
|
|
142
|
-
May: 'Mai',
|
|
143
|
-
June: 'Iunie',
|
|
144
|
-
July: 'Iulie',
|
|
145
|
-
August: 'August',
|
|
146
|
-
September: 'Septembrie',
|
|
147
|
-
October: 'Octombrie',
|
|
148
|
-
November: 'Noiembrie',
|
|
149
|
-
December: 'Decembrie',
|
|
150
|
-
login: 'Autentificare',
|
|
151
|
-
register: 'Înregistrare',
|
|
152
|
-
details: 'Detalii',
|
|
153
|
-
join: 'Participă',
|
|
154
|
-
joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.'
|
|
155
|
-
},
|
|
156
|
-
tr: {
|
|
157
|
-
enrolled: 'Katıldın',
|
|
158
|
-
scoreCriteria: 'Skor kriteri',
|
|
159
|
-
minbet: 'en düşük bahis sayısı',
|
|
160
|
-
seegames: 'Turnuvadaki oyunları görmek için',
|
|
161
|
-
here: 'tıklayın',
|
|
162
|
-
scheduled: 'Planlanmış',
|
|
163
|
-
ongoing: 'Devam Eden',
|
|
164
|
-
finished: 'Sona Ermiş',
|
|
165
|
-
startingAt: 'Başlangıç saati:',
|
|
166
|
-
startedAt: 'Başlangıç saati:',
|
|
167
|
-
mostRounds: 'ÇoğuRounds',
|
|
168
|
-
betCount: 'Oynanan Tur Sayısı',
|
|
169
|
-
maxWinStakeRatio: 'Maksimum Kazanç / Bahis Oranı',
|
|
170
|
-
winStakeRatio: 'Kazanç / Bahis Oranı',
|
|
171
|
-
January: 'Ocak',
|
|
172
|
-
February: 'Şubat',
|
|
173
|
-
March: 'Mart',
|
|
174
|
-
April: 'Nisan',
|
|
175
|
-
May: 'Mayıs',
|
|
176
|
-
June: 'Haziran',
|
|
177
|
-
July: 'Temmuz',
|
|
178
|
-
August: 'Ağustos',
|
|
179
|
-
September: 'Eylül',
|
|
180
|
-
October: 'Ekim',
|
|
181
|
-
November: 'Kasım',
|
|
182
|
-
December: 'Aralık',
|
|
183
|
-
login: 'Giriş',
|
|
184
|
-
register: 'Kayıt Ol',
|
|
185
|
-
details: 'Detaylar',
|
|
186
|
-
join: 'Katıl',
|
|
187
|
-
joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - '
|
|
188
|
-
},
|
|
189
|
-
el: {
|
|
190
|
-
enrolled: 'Εγγεγραμμένος',
|
|
191
|
-
scoreCriteria: 'Κριτήρια Σκορ',
|
|
192
|
-
minbet: 'Ελάχιστος αριθμός πονταρισμάτων',
|
|
193
|
-
seegames: 'Μπορείς να δεις τα παιχνίδια',
|
|
194
|
-
here: 'εδώ',
|
|
195
|
-
all: 'Όλα',
|
|
196
|
-
scheduled: 'Προγραμματισμένα',
|
|
197
|
-
ongoing: 'Τρέχοντα',
|
|
198
|
-
finished: 'Ολοκληρωμένα',
|
|
199
|
-
startingAt: 'Αρχίζει στις:',
|
|
200
|
-
startedAt: 'Άρχισε στις:',
|
|
201
|
-
startingAtWithTime: `Αρχίζει στις `,
|
|
202
|
-
startedAtWithTime: `Άρχισε στις `,
|
|
203
|
-
mostRounds: 'Οι περισσότεροι γύροι',
|
|
204
|
-
betCount: 'Οι περισσότεροι γύροι',
|
|
205
|
-
maxWinStakeRatio: 'Μεγαλύτερο Κέρδος άνα Ποντάρισμα',
|
|
206
|
-
winStakeRatio: 'Συνολική Αναλογία Κερδών άνα Ποντάρισμα',
|
|
207
|
-
January: 'Ιανουαρίου',
|
|
208
|
-
February: 'Φεβρουαρίου',
|
|
209
|
-
March: 'Μαρτίου',
|
|
210
|
-
April: 'Απριλίου',
|
|
211
|
-
May: 'Μαΐου',
|
|
212
|
-
June: 'Ιουνίου',
|
|
213
|
-
July: 'Ιουλίου',
|
|
214
|
-
August: 'Αυγούστου',
|
|
215
|
-
September: 'Σεπτεμβρίου',
|
|
216
|
-
October: 'Οκτωβρίου',
|
|
217
|
-
November: 'Νοεμβρίου',
|
|
218
|
-
December: 'Δεκεμβρίου',
|
|
219
|
-
login: 'Είσοδος',
|
|
220
|
-
register: 'Εγγραφή',
|
|
221
|
-
details: 'Λεπτομέρειες',
|
|
222
|
-
join: 'Συμμετοχή',
|
|
223
|
-
joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.'
|
|
224
|
-
},
|
|
225
|
-
es: {
|
|
226
|
-
enrolled: 'Inscrito',
|
|
227
|
-
scoreCriteria: 'Criterios de puntuación',
|
|
228
|
-
minbet: 'la apuesta mínima cuenta',
|
|
229
|
-
seegames: 'Puedes ver los juegos',
|
|
230
|
-
here: 'aquí',
|
|
231
|
-
scheduled: 'Programado',
|
|
232
|
-
ongoing: 'En marcha',
|
|
233
|
-
finished: 'Terminado',
|
|
234
|
-
startingAt: 'Desde',
|
|
235
|
-
startedAt: 'Empezó el:',
|
|
236
|
-
mostRounds: 'LaMayoríaDeLasRondas',
|
|
237
|
-
betCount: 'Recuento De Apuestas',
|
|
238
|
-
maxWinStakeRatio: 'Ratio De Ganancia Máxima',
|
|
239
|
-
winStakeRatio: 'Ratio De Ganancia',
|
|
240
|
-
January: 'de enero',
|
|
241
|
-
February: 'de febrero',
|
|
242
|
-
March: 'de marzo',
|
|
243
|
-
April: 'de abril',
|
|
244
|
-
May: 'de mayo',
|
|
245
|
-
June: 'de junio',
|
|
246
|
-
July: 'de julio',
|
|
247
|
-
August: 'de agosto',
|
|
248
|
-
September: 'de septiembre',
|
|
249
|
-
October: 'de octubre',
|
|
250
|
-
November: 'de noviembre',
|
|
251
|
-
December: 'de diciembre',
|
|
252
|
-
login: 'Iniciar sesión',
|
|
253
|
-
register: 'Regístrate',
|
|
254
|
-
details: 'Detalles',
|
|
255
|
-
join: 'Unirse',
|
|
256
|
-
joinerror: 'Ha ocurrido un error mientras se registra en el Torneo',
|
|
257
|
-
},
|
|
258
|
-
pt: {
|
|
259
|
-
enrolled: 'Inscrito',
|
|
260
|
-
scoreCriteria: 'Critérios de pontuação',
|
|
261
|
-
minbet: 'Contagens de aposta mínima',
|
|
262
|
-
seegames: 'Você pode ver os jogos',
|
|
263
|
-
here: 'Aqui',
|
|
264
|
-
scheduled: 'Agendado',
|
|
265
|
-
ongoing: 'Em progresso',
|
|
266
|
-
finished: 'Finalizado',
|
|
267
|
-
startingAt: 'Começando às:',
|
|
268
|
-
startedAt: 'Começou às:',
|
|
269
|
-
mostRounds: 'Mais rodadas',
|
|
270
|
-
betCount: 'Contagem de Apostas',
|
|
271
|
-
maxWinStakeRatio: 'Rácio máximo de vitórias',
|
|
272
|
-
winStakeRatio: 'Rácio de Vitórias',
|
|
273
|
-
January: 'January',
|
|
274
|
-
February: 'February',
|
|
275
|
-
March: 'March',
|
|
276
|
-
April: 'April',
|
|
277
|
-
May: 'May',
|
|
278
|
-
June: 'June',
|
|
279
|
-
July: 'July',
|
|
280
|
-
August: 'August',
|
|
281
|
-
September: 'September',
|
|
282
|
-
October: 'October',
|
|
283
|
-
November: 'November',
|
|
284
|
-
December: 'December',
|
|
285
|
-
login: 'Entrar',
|
|
286
|
-
register: 'Registro',
|
|
287
|
-
details: 'Detalhes',
|
|
288
|
-
join: 'Junte-se',
|
|
289
|
-
joinerror: 'Ocorreu um erro ao entrar no torneio -'
|
|
290
|
-
},
|
|
291
|
-
hu: {
|
|
292
|
-
enrolled: 'Feliratkozott',
|
|
293
|
-
scoreCriteria: 'Pontozási kritériumok',
|
|
294
|
-
minbet: 'Minimális tét',
|
|
295
|
-
seegames: 'Játékok megnézése',
|
|
296
|
-
here: 'itt',
|
|
297
|
-
scheduled: 'Ütemezés',
|
|
298
|
-
ongoing: 'Folyamatban lévő',
|
|
299
|
-
finished: 'Befejezett',
|
|
300
|
-
startingAt: 'Kezdődik',
|
|
301
|
-
startedAt: 'Started at:',
|
|
302
|
-
mostRounds: 'Legtöbb kör',
|
|
303
|
-
betCount: 'Számított tét',
|
|
304
|
-
maxWinStakeRatio: 'Maximális nyeremény tétenként',
|
|
305
|
-
winStakeRatio: 'Összes nyeremény tétenként',
|
|
306
|
-
January: 'January',
|
|
307
|
-
February: 'February',
|
|
308
|
-
March: 'March',
|
|
309
|
-
April: 'April',
|
|
310
|
-
May: 'May',
|
|
311
|
-
June: 'June',
|
|
312
|
-
July: 'July',
|
|
313
|
-
August: 'August',
|
|
314
|
-
September: 'September',
|
|
315
|
-
October: 'October',
|
|
316
|
-
November: 'November',
|
|
317
|
-
December: 'December',
|
|
318
|
-
login: 'Bejelentkezés',
|
|
319
|
-
register: 'Regisztráció',
|
|
320
|
-
details: 'Adatok',
|
|
321
|
-
join: 'Csatlakozás',
|
|
322
|
-
joinerror: 'Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.',
|
|
323
|
-
},
|
|
324
|
-
hr: {
|
|
325
|
-
joined: 'Pridružen',
|
|
326
|
-
enrolled: 'Upisan',
|
|
327
|
-
scoreCriteria: 'Kriteriji bodovanja',
|
|
328
|
-
minbet: 'minimalni broj beta',
|
|
329
|
-
seegames: 'Možete vidjeti igre',
|
|
330
|
-
here: 'Ovdje',
|
|
331
|
-
scheduled: 'Zakazano',
|
|
332
|
-
ongoing: 'U tijeku',
|
|
333
|
-
finished: 'Gotovo',
|
|
334
|
-
startingAt: 'S početkom u',
|
|
335
|
-
startedAt: 'Započelo u',
|
|
336
|
-
startingAtWithTime: `Počinje `,
|
|
337
|
-
startedAtWithTime: `Započelo `,
|
|
338
|
-
mostRounds: 'Najviše rundi',
|
|
339
|
-
betCount: 'Broj betova',
|
|
340
|
-
maxWinStakeRatio: 'Maksimalni dobitak po ulogu',
|
|
341
|
-
winStakeRatio: 'Ukupni dobitak po ulogu',
|
|
342
|
-
January: 'Siječanj',
|
|
343
|
-
February: 'Veljača',
|
|
344
|
-
March: 'Ožujak',
|
|
345
|
-
April: 'Travanj',
|
|
346
|
-
May: 'Svibanj',
|
|
347
|
-
June: 'Lipanj',
|
|
348
|
-
July: 'Srpanj',
|
|
349
|
-
August: 'Kolovoz',
|
|
350
|
-
September: 'Rujan',
|
|
351
|
-
October: 'Listopad',
|
|
352
|
-
November: 'Studeni',
|
|
353
|
-
December: 'Prosinac',
|
|
354
|
-
login: 'Prijaviti se',
|
|
355
|
-
register: 'Registracija',
|
|
356
|
-
details: 'Detalji',
|
|
357
|
-
join: 'join',
|
|
358
|
-
joinerror: 'Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.',
|
|
359
|
-
left: 'lijevo',
|
|
360
|
-
minutes: 'minute',
|
|
361
|
-
hours: 'sati',
|
|
362
|
-
days: 'dani',
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
const translate = (key, customLang) => {
|
|
366
|
-
var _a, _b;
|
|
367
|
-
const lang = customLang;
|
|
368
|
-
return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
|
|
369
|
-
};
|
|
370
|
-
const getTranslations = (data) => {
|
|
371
|
-
Object.keys(data).forEach((item) => {
|
|
372
|
-
for (let key in data[item]) {
|
|
373
|
-
TRANSLATIONS[item][key] = data[item][key];
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
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}";
|
|
379
|
-
|
|
380
|
-
const CasinoTournamentButtons = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
381
|
-
constructor() {
|
|
382
|
-
super();
|
|
383
|
-
this.__registerHost();
|
|
384
|
-
this.__attachShadow();
|
|
385
|
-
this.userEnrolled = createEvent(this, "TournamentUserEnrolled", 7);
|
|
386
|
-
/**
|
|
387
|
-
* Player enrolled
|
|
388
|
-
*/
|
|
389
|
-
this.enrolled = false;
|
|
390
|
-
/**
|
|
391
|
-
* Show read more button
|
|
392
|
-
*/
|
|
393
|
-
this.showReadMore = false;
|
|
394
|
-
/**
|
|
395
|
-
* Client custom styling via inline styles
|
|
396
|
-
*/
|
|
397
|
-
this.clientStyling = '';
|
|
398
|
-
/**
|
|
399
|
-
* Client custom styling via url
|
|
400
|
-
*/
|
|
401
|
-
this.clientStylingUrl = '';
|
|
402
|
-
this.limitStylingAppends = false;
|
|
403
|
-
this.joinButtonLoading = false;
|
|
404
|
-
this.errorJoin = false;
|
|
405
|
-
this.errorJoinConcurrently = false;
|
|
406
|
-
}
|
|
407
|
-
componentWillLoad() {
|
|
408
|
-
if (this.translationData) {
|
|
409
|
-
getTranslations(JSON.parse(this.translationData));
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
componentDidRender() {
|
|
413
|
-
if (!this.limitStylingAppends && this.host) {
|
|
414
|
-
if (this.clientStyling)
|
|
415
|
-
this.setClientStyling();
|
|
416
|
-
if (this.clientStylingUrl)
|
|
417
|
-
this.setClientStylingURL();
|
|
418
|
-
this.limitStylingAppends = true;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
setClientStyling() {
|
|
422
|
-
const sheet = new CSSStyleSheet();
|
|
423
|
-
// @ts-ignore
|
|
424
|
-
sheet.replace(this.clientStyling);
|
|
425
|
-
// @ts-ignore
|
|
426
|
-
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
427
|
-
}
|
|
428
|
-
setClientStylingURL() {
|
|
429
|
-
let url = new URL(this.clientStylingUrl);
|
|
430
|
-
fetch(url.href)
|
|
431
|
-
.then((res) => res.text())
|
|
432
|
-
.then((data) => {
|
|
433
|
-
const sheet = new CSSStyleSheet();
|
|
434
|
-
// @ts-ignore
|
|
435
|
-
sheet.replace(data);
|
|
436
|
-
// @ts-ignore
|
|
437
|
-
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
loginAction() {
|
|
441
|
-
if (this.loginEvent) {
|
|
442
|
-
window.postMessage({ type: this.loginEvent, transition: 'Login' }, window.location.href);
|
|
443
|
-
// @ts-ignore Analytics event
|
|
444
|
-
if (typeof gtag == 'function') {
|
|
445
|
-
// @ts-ignore
|
|
446
|
-
gtag('event', 'OpenLoginModal', {
|
|
447
|
-
'context': 'TournamentsThumbnailController'
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
if (this.loginUrl) {
|
|
452
|
-
location.href = this.loginUrl;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
registerAction() {
|
|
456
|
-
if (this.registerEvent) {
|
|
457
|
-
window.postMessage({ type: this.registerEvent, transition: 'Register' }, window.location.href);
|
|
458
|
-
//@ts-ignoreAnalytics event
|
|
459
|
-
if (typeof gtag == 'function') {
|
|
460
|
-
//@ts-ignore
|
|
461
|
-
gtag('event', 'OpenRegisterModal', {
|
|
462
|
-
'context': 'TournamentsThumbnailController'
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
if (this.registerUrl) {
|
|
467
|
-
location.href = this.registerUrl;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
async joinAction(tournamentId, bonuscode) {
|
|
471
|
-
var _a;
|
|
472
|
-
this.errorJoin = false;
|
|
473
|
-
this.errorJoinConcurrently = false;
|
|
474
|
-
window.postMessage({ type: 'TournamentJoinRequest', tournamentId }, window.location.href);
|
|
475
|
-
this.joinButtonLoading = true;
|
|
476
|
-
let joinUrl = new URL(`${this.endpoint}/v1/bonus/claim`);
|
|
477
|
-
let reqHeaders = new Headers();
|
|
478
|
-
let body = {};
|
|
479
|
-
joinUrl.searchParams.append('language', this.language);
|
|
480
|
-
joinUrl.searchParams.append('platform', getDevice());
|
|
481
|
-
reqHeaders.append('Content-Type', 'application/json');
|
|
482
|
-
reqHeaders.append("X-SessionID", this.session);
|
|
483
|
-
if (bonuscode) {
|
|
484
|
-
body = {
|
|
485
|
-
language: this.language,
|
|
486
|
-
bonusCode: bonuscode,
|
|
487
|
-
currency: this.currency
|
|
488
|
-
};
|
|
489
|
-
}
|
|
490
|
-
let requestOptions = {
|
|
491
|
-
method: 'PUT',
|
|
492
|
-
headers: reqHeaders,
|
|
493
|
-
body: JSON.stringify(body),
|
|
494
|
-
};
|
|
495
|
-
const handlerOnSuccess = () => {
|
|
496
|
-
this.joinButtonLoading = false;
|
|
497
|
-
this.enrolled = true;
|
|
498
|
-
window.postMessage({ type: 'TournamentUserEnrolled', userenrolled: this.enrolled, tournamentId }, window.location.href);
|
|
499
|
-
this.userEnrolled.emit({ userenrolled: this.enrolled, tournamentId });
|
|
500
|
-
};
|
|
501
|
-
const handlerOnFail = () => {
|
|
502
|
-
this.joinButtonLoading = false;
|
|
503
|
-
this.errorJoin = true;
|
|
504
|
-
};
|
|
505
|
-
const fetcher = async () => {
|
|
506
|
-
let result;
|
|
507
|
-
try {
|
|
508
|
-
result = await fetch(`${this.endpoint}/v1/bonus/claim?${joinUrl.searchParams.toString()}`, requestOptions);
|
|
509
|
-
result = await result.json();
|
|
510
|
-
}
|
|
511
|
-
catch (e) {
|
|
512
|
-
handlerOnFail();
|
|
513
|
-
}
|
|
514
|
-
return result;
|
|
515
|
-
};
|
|
516
|
-
const data = await fetcher();
|
|
517
|
-
if (!data)
|
|
518
|
-
return;
|
|
519
|
-
if (data.success == true) {
|
|
520
|
-
handlerOnSuccess();
|
|
521
|
-
}
|
|
522
|
-
else {
|
|
523
|
-
if (data.errorMessage.match("VersionMismatchException")) {
|
|
524
|
-
let resultDoubleCheck;
|
|
525
|
-
resultDoubleCheck = await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`, {
|
|
526
|
-
headers: {
|
|
527
|
-
'X-SessionID': this.session
|
|
528
|
-
}
|
|
529
|
-
});
|
|
530
|
-
resultDoubleCheck = await resultDoubleCheck.json();
|
|
531
|
-
if ((_a = resultDoubleCheck === null || resultDoubleCheck === void 0 ? void 0 : resultDoubleCheck.item) === null || _a === void 0 ? void 0 : _a.playerEnrolled) {
|
|
532
|
-
handlerOnSuccess();
|
|
533
|
-
}
|
|
534
|
-
else {
|
|
535
|
-
handlerOnFail();
|
|
536
|
-
this.errorJoinConcurrently = true;
|
|
537
|
-
this.errorJoin = false;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
else {
|
|
541
|
-
handlerOnFail();
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
detailAction(tournamentId) {
|
|
546
|
-
window.postMessage({ type: 'TournamentDetailsClicked', tournamentId, showLeaderboard: true }, window.location.href);
|
|
547
|
-
}
|
|
548
|
-
moreAction(tournamentId) {
|
|
549
|
-
window.postMessage({ type: 'TournamentReadMoreClicked', tournamentId }, window.location.href);
|
|
550
|
-
}
|
|
551
|
-
render() {
|
|
552
|
-
return h("div", { class: "TournamentButtons" }, !this.session &&
|
|
553
|
-
h("div", { class: "ButtonGroup" }, h("button", { class: "LoginButton Button", part: "LoginButton", onClick: () => this.loginAction() }, translate('login', this.language)), h("button", { class: "RegisterButton Button", part: "RegisterButton", onClick: () => this.registerAction() }, translate('register', this.language))), this.session &&
|
|
554
|
-
h("div", null, !this.enrolled &&
|
|
555
|
-
h("div", { class: "ButtonGroup" }, h("button", { class: "Button", onClick: () => this.joinAction(this.tournamentId, this.bonusCode) }, translate('join', this.language)), this.showReadMore && h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, translate('readmore', this.language))), this.enrolled &&
|
|
556
|
-
h("div", { class: "ButtonGroup" }, h("button", { class: "Button", onClick: () => this.detailAction(this.tournamentId) }, translate('details', this.language)), this.showReadMore && h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, translate('readmore', this.language)))), (this.errorJoin || this.errorJoinConcurrently) &&
|
|
557
|
-
h("span", { class: "ErrorText", part: "ErrorText" }, translate('joinerror', this.language)));
|
|
558
|
-
}
|
|
559
|
-
get host() { return this; }
|
|
560
|
-
static get style() { return casinoTournamentButtonsCss; }
|
|
561
|
-
}, [1, "casino-tournament-buttons", {
|
|
562
|
-
"language": [1],
|
|
563
|
-
"tournamentId": [1, "tournament-id"],
|
|
564
|
-
"session": [1],
|
|
565
|
-
"loginEvent": [1, "login-event"],
|
|
566
|
-
"loginUrl": [1, "login-url"],
|
|
567
|
-
"registerEvent": [1, "register-event"],
|
|
568
|
-
"registerUrl": [1, "register-url"],
|
|
569
|
-
"endpoint": [1],
|
|
570
|
-
"currency": [1],
|
|
571
|
-
"bonusCode": [1, "bonus-code"],
|
|
572
|
-
"enrolled": [4],
|
|
573
|
-
"showReadMore": [4, "show-read-more"],
|
|
574
|
-
"clientStyling": [1, "client-styling"],
|
|
575
|
-
"clientStylingUrl": [1, "client-styling-url"],
|
|
576
|
-
"translationData": [520, "translation-data"],
|
|
577
|
-
"limitStylingAppends": [32],
|
|
578
|
-
"joinButtonLoading": [32],
|
|
579
|
-
"errorJoin": [32],
|
|
580
|
-
"errorJoinConcurrently": [32]
|
|
581
|
-
}]);
|
|
582
|
-
function defineCustomElement() {
|
|
583
|
-
if (typeof customElements === "undefined") {
|
|
584
|
-
return;
|
|
585
|
-
}
|
|
586
|
-
const components = ["casino-tournament-buttons"];
|
|
587
|
-
components.forEach(tagName => { switch (tagName) {
|
|
588
|
-
case "casino-tournament-buttons":
|
|
589
|
-
if (!customElements.get(tagName)) {
|
|
590
|
-
customElements.define(tagName, CasinoTournamentButtons);
|
|
591
|
-
}
|
|
592
|
-
break;
|
|
593
|
-
} });
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
export { CasinoTournamentButtons as C, defineCustomElement as d };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* CasinoTournamentBanner custom elements */
|
|
2
|
-
|
|
3
|
-
import type { Components, JSX } from "../types/components";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Used to manually set the base path where assets can be found.
|
|
7
|
-
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
8
|
-
* such as "setAssetPath(import.meta.url)". Other options include
|
|
9
|
-
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
10
|
-
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
11
|
-
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
12
|
-
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
13
|
-
* will have to ensure the static assets are copied to its build directory.
|
|
14
|
-
*/
|
|
15
|
-
export declare const setAssetPath: (path: string) => void;
|
|
16
|
-
|
|
17
|
-
export interface SetPlatformOptions {
|
|
18
|
-
raf?: (c: FrameRequestCallback) => number;
|
|
19
|
-
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
20
|
-
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
23
|
-
|
|
24
|
-
export type { Components, JSX };
|
|
25
|
-
|
|
26
|
-
export * from '../types';
|
package/dist/components/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|