@everymatrix/casino-tournaments-player-rank 1.48.2 → 1.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoTournamentsPlayerRank-Bdx_-_KW.cjs +34 -0
- package/components/{CasinoTournamentsPlayerRank-BjiPQ3D6.js → CasinoTournamentsPlayerRank-CgCrwsAF.js} +2316 -3065
- package/components/CasinoTournamentsRank-1m8Ew89E.cjs +1 -0
- package/components/CasinoTournamentsRank-CDcdtINK.js +255 -0
- package/es2015/casino-tournaments-player-rank.cjs +1 -1
- package/es2015/casino-tournaments-player-rank.js +1 -1
- package/package.json +2 -2
- package/components/CasinoTournamentsPlayerRank-B-8Wfdgh.cjs +0 -20
- package/components/CasinoTournamentsRank-CD8r9Cyv.cjs +0 -1
- package/components/CasinoTournamentsRank-Ccyk5NSV.js +0 -271
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/casino-tournament-buttons-B-rLD4pb.cjs +0 -1
- package/stencil/casino-tournament-buttons-DzzLdlRw.js +0 -473
- package/stencil/index-a1e049f1-BAny_rnG.js +0 -563
- package/stencil/index-a1e049f1-CX2zeTR9.cjs +0 -1
|
@@ -1,473 +0,0 @@
|
|
|
1
|
-
var g = (e, i, t) => new Promise((a, s) => {
|
|
2
|
-
var d = (r) => {
|
|
3
|
-
try {
|
|
4
|
-
u(t.next(r));
|
|
5
|
-
} catch (c) {
|
|
6
|
-
s(c);
|
|
7
|
-
}
|
|
8
|
-
}, h = (r) => {
|
|
9
|
-
try {
|
|
10
|
-
u(t.throw(r));
|
|
11
|
-
} catch (c) {
|
|
12
|
-
s(c);
|
|
13
|
-
}
|
|
14
|
-
}, u = (r) => r.done ? a(r.value) : Promise.resolve(r.value).then(d, h);
|
|
15
|
-
u((t = t.apply(e, i)).next());
|
|
16
|
-
});
|
|
17
|
-
import { b as p, p as y, r as f, c as S, h as n, g as A } from "./index-a1e049f1-BAny_rnG.js";
|
|
18
|
-
import { g as k } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
19
|
-
var v = () => {
|
|
20
|
-
const e = import.meta.url, i = {};
|
|
21
|
-
return e !== "" && (i.resourcesUrl = new URL(".", e).href), y(i);
|
|
22
|
-
};
|
|
23
|
-
v().then((e) => g(void 0, null, function* () {
|
|
24
|
-
return yield k(), p([["casino-tournament-buttons", [[1, "casino-tournament-buttons", { language: [1], tournamentId: [1, "tournament-id"], session: [1], loginEvent: [1, "login-event"], loginUrl: [1, "login-url"], registerEvent: [1, "register-event"], registerUrl: [1, "register-url"], endpoint: [1], currency: [1], bonusCode: [1, "bonus-code"], enrolled: [4], showReadMore: [4, "show-read-more"], clientStyling: [1, "client-styling"], clientStylingUrl: [1, "client-styling-url"], translationData: [520, "translation-data"], limitStylingAppends: [32], joinButtonLoading: [32], errorJoin: [32], errorJoinConcurrently: [32] }]]]], e);
|
|
25
|
-
}));
|
|
26
|
-
const j = () => {
|
|
27
|
-
let e = window.navigator.userAgent;
|
|
28
|
-
return e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
29
|
-
}, w = "en", b = {
|
|
30
|
-
en: {
|
|
31
|
-
joined: "Joined",
|
|
32
|
-
join: "Join",
|
|
33
|
-
enrolled: "Enrolled",
|
|
34
|
-
scoreCriteria: "Score Criteria",
|
|
35
|
-
minbet: "min bet count",
|
|
36
|
-
seegames: "You can see the games",
|
|
37
|
-
here: "here",
|
|
38
|
-
scheduled: "Scheduled",
|
|
39
|
-
ongoing: "Ongoing",
|
|
40
|
-
finished: "Finished",
|
|
41
|
-
startingAt: "Starting at:",
|
|
42
|
-
startedAt: "Started at:",
|
|
43
|
-
startingAtWithTime: "Starts ",
|
|
44
|
-
startedAtWithTime: "Started ",
|
|
45
|
-
mostRounds: "Most Rounds",
|
|
46
|
-
betCount: "Number of Bets",
|
|
47
|
-
maxWinStakeRatio: "Max Win per Stake",
|
|
48
|
-
winStakeRatio: "Total Win per Stake",
|
|
49
|
-
January: "January",
|
|
50
|
-
February: "February",
|
|
51
|
-
March: "March",
|
|
52
|
-
April: "April",
|
|
53
|
-
May: "May",
|
|
54
|
-
June: "June",
|
|
55
|
-
July: "July",
|
|
56
|
-
August: "August",
|
|
57
|
-
September: "September",
|
|
58
|
-
October: "October",
|
|
59
|
-
November: "November",
|
|
60
|
-
December: "December",
|
|
61
|
-
login: "Log in",
|
|
62
|
-
register: "Register",
|
|
63
|
-
details: "Details",
|
|
64
|
-
joinerror: "An error occurred while registering in the tournament, please try again."
|
|
65
|
-
},
|
|
66
|
-
"zh-hk": {
|
|
67
|
-
enrolled: "已註冊",
|
|
68
|
-
scoreCriteria: "評分標準",
|
|
69
|
-
minbet: "最小投注數:",
|
|
70
|
-
seegames: "你可以看比賽",
|
|
71
|
-
here: "這裡",
|
|
72
|
-
scheduled: "預定的",
|
|
73
|
-
ongoing: "進行中",
|
|
74
|
-
finished: "完成的",
|
|
75
|
-
startingAt: "開始於",
|
|
76
|
-
startedAt: "大多數回合",
|
|
77
|
-
mostRounds: "投注數",
|
|
78
|
-
betCount: "投注计数",
|
|
79
|
-
maxWinStakeRatio: "最大勝率",
|
|
80
|
-
winStakeRatio: "勝率",
|
|
81
|
-
January: "一月",
|
|
82
|
-
February: "二月",
|
|
83
|
-
March: "行进",
|
|
84
|
-
April: "四月",
|
|
85
|
-
May: "可能",
|
|
86
|
-
June: "六月",
|
|
87
|
-
July: "七月",
|
|
88
|
-
August: "八月",
|
|
89
|
-
September: "九月",
|
|
90
|
-
October: "十月",
|
|
91
|
-
November: "十一月",
|
|
92
|
-
December: "十二月",
|
|
93
|
-
login: "登錄",
|
|
94
|
-
register: "登記",
|
|
95
|
-
details: "細節",
|
|
96
|
-
join: "加入",
|
|
97
|
-
joinerror: "加入錦標賽時出錯,請重試"
|
|
98
|
-
},
|
|
99
|
-
fr: {
|
|
100
|
-
enrolled: "Inscrits",
|
|
101
|
-
scoreCriteria: "Critères de notation",
|
|
102
|
-
minbet: "nombre de paris minimum",
|
|
103
|
-
seegames: "Vous pouvez voir les jeux",
|
|
104
|
-
here: "ici",
|
|
105
|
-
scheduled: "Programmé",
|
|
106
|
-
ongoing: "En cours",
|
|
107
|
-
finished: "Fini",
|
|
108
|
-
startingAt: "À partir de:",
|
|
109
|
-
startedAt: "Commencé à:",
|
|
110
|
-
mostRounds: "Le plus grand nombre de tours",
|
|
111
|
-
betCount: "Nombre de paris",
|
|
112
|
-
maxWinStakeRatio: "Indice maximum du gain d'une mise",
|
|
113
|
-
winStakeRatio: "Indice du gain d'une mise",
|
|
114
|
-
January: "January",
|
|
115
|
-
February: "February",
|
|
116
|
-
March: "March",
|
|
117
|
-
April: "April",
|
|
118
|
-
May: "May",
|
|
119
|
-
June: "June",
|
|
120
|
-
July: "July",
|
|
121
|
-
August: "August",
|
|
122
|
-
September: "September",
|
|
123
|
-
October: "October",
|
|
124
|
-
November: "November",
|
|
125
|
-
December: "December",
|
|
126
|
-
login: "Connexion",
|
|
127
|
-
register: "Enregistre",
|
|
128
|
-
details: "Détails",
|
|
129
|
-
join: "Rejoignez",
|
|
130
|
-
joinerror: "Une erreur s'est produite lors de l'inscription au tournoi - "
|
|
131
|
-
},
|
|
132
|
-
ro: {
|
|
133
|
-
enrolled: "Înscris",
|
|
134
|
-
scoreCriteria: "Criterii de punctaj",
|
|
135
|
-
minbet: "număr minim de pariuri",
|
|
136
|
-
seegames: "Vezi jocurile",
|
|
137
|
-
here: "aici",
|
|
138
|
-
scheduled: "Programat",
|
|
139
|
-
ongoing: "În desfășurare",
|
|
140
|
-
finished: "Finalizat",
|
|
141
|
-
startingAt: "Începând de la",
|
|
142
|
-
startedAt: "A inceput la:",
|
|
143
|
-
startingAtWithTime: "Începând de",
|
|
144
|
-
startedAtWithTime: "A inceput:",
|
|
145
|
-
mostRounds: "Cele mai multe runde",
|
|
146
|
-
betCount: "Număr de pariuri",
|
|
147
|
-
maxWinStakeRatio: "Pondere maximă a mizei din câștig",
|
|
148
|
-
winStakeRatio: "Câștig Total per Miză",
|
|
149
|
-
January: "Ianuarie",
|
|
150
|
-
February: "Februarie",
|
|
151
|
-
March: "Martie",
|
|
152
|
-
April: "Aprilie",
|
|
153
|
-
May: "Mai",
|
|
154
|
-
June: "Iunie",
|
|
155
|
-
July: "Iulie",
|
|
156
|
-
August: "August",
|
|
157
|
-
September: "Septembrie",
|
|
158
|
-
October: "Octombrie",
|
|
159
|
-
November: "Noiembrie",
|
|
160
|
-
December: "Decembrie",
|
|
161
|
-
login: "Autentificare",
|
|
162
|
-
register: "Înregistrare",
|
|
163
|
-
details: "Detalii",
|
|
164
|
-
join: "Participă",
|
|
165
|
-
joinerror: "A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."
|
|
166
|
-
},
|
|
167
|
-
tr: {
|
|
168
|
-
enrolled: "Katıldın",
|
|
169
|
-
scoreCriteria: "Skor kriteri",
|
|
170
|
-
minbet: "en düşük bahis sayısı",
|
|
171
|
-
seegames: "Turnuvadaki oyunları görmek için",
|
|
172
|
-
here: "tıklayın",
|
|
173
|
-
scheduled: "Planlanmış",
|
|
174
|
-
ongoing: "Devam Eden",
|
|
175
|
-
finished: "Sona Ermiş",
|
|
176
|
-
startingAt: "Başlangıç saati:",
|
|
177
|
-
startedAt: "Başlangıç saati:",
|
|
178
|
-
mostRounds: "ÇoğuRounds",
|
|
179
|
-
betCount: "Oynanan Tur Sayısı",
|
|
180
|
-
maxWinStakeRatio: "Maksimum Kazanç / Bahis Oranı",
|
|
181
|
-
winStakeRatio: "Kazanç / Bahis Oranı",
|
|
182
|
-
January: "Ocak",
|
|
183
|
-
February: "Şubat",
|
|
184
|
-
March: "Mart",
|
|
185
|
-
April: "Nisan",
|
|
186
|
-
May: "Mayıs",
|
|
187
|
-
June: "Haziran",
|
|
188
|
-
July: "Temmuz",
|
|
189
|
-
August: "Ağustos",
|
|
190
|
-
September: "Eylül",
|
|
191
|
-
October: "Ekim",
|
|
192
|
-
November: "Kasım",
|
|
193
|
-
December: "Aralık",
|
|
194
|
-
login: "Giriş",
|
|
195
|
-
register: "Kayıt Ol",
|
|
196
|
-
details: "Detaylar",
|
|
197
|
-
join: "Katıl",
|
|
198
|
-
joinerror: "Turnuvaya katılım ile ilgili bir hata oluştu - "
|
|
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
|
-
},
|
|
236
|
-
es: {
|
|
237
|
-
enrolled: "Inscrito",
|
|
238
|
-
scoreCriteria: "Criterios de puntuación",
|
|
239
|
-
minbet: "la apuesta mínima cuenta",
|
|
240
|
-
seegames: "Puedes ver los juegos",
|
|
241
|
-
here: "aquí",
|
|
242
|
-
scheduled: "Programado",
|
|
243
|
-
ongoing: "En marcha",
|
|
244
|
-
finished: "Terminado",
|
|
245
|
-
startingAt: "Desde",
|
|
246
|
-
startedAt: "Empezó el:",
|
|
247
|
-
mostRounds: "LaMayoríaDeLasRondas",
|
|
248
|
-
betCount: "Recuento De Apuestas",
|
|
249
|
-
maxWinStakeRatio: "Ratio De Ganancia Máxima",
|
|
250
|
-
winStakeRatio: "Ratio De Ganancia",
|
|
251
|
-
January: "de enero",
|
|
252
|
-
February: "de febrero",
|
|
253
|
-
March: "de marzo",
|
|
254
|
-
April: "de abril",
|
|
255
|
-
May: "de mayo",
|
|
256
|
-
June: "de junio",
|
|
257
|
-
July: "de julio",
|
|
258
|
-
August: "de agosto",
|
|
259
|
-
September: "de septiembre",
|
|
260
|
-
October: "de octubre",
|
|
261
|
-
November: "de noviembre",
|
|
262
|
-
December: "de diciembre",
|
|
263
|
-
login: "Iniciar sesión",
|
|
264
|
-
register: "Regístrate",
|
|
265
|
-
details: "Detalles",
|
|
266
|
-
join: "Unirse",
|
|
267
|
-
joinerror: "Ha ocurrido un error mientras se registra en el Torneo"
|
|
268
|
-
},
|
|
269
|
-
pt: {
|
|
270
|
-
enrolled: "Inscrito",
|
|
271
|
-
scoreCriteria: "Critérios de pontuação",
|
|
272
|
-
minbet: "Contagens de aposta mínima",
|
|
273
|
-
seegames: "Você pode ver os jogos",
|
|
274
|
-
here: "Aqui",
|
|
275
|
-
scheduled: "Agendado",
|
|
276
|
-
ongoing: "Em progresso",
|
|
277
|
-
finished: "Finalizado",
|
|
278
|
-
startingAt: "Começando às:",
|
|
279
|
-
startedAt: "Começou às:",
|
|
280
|
-
mostRounds: "Mais rodadas",
|
|
281
|
-
betCount: "Contagem de Apostas",
|
|
282
|
-
maxWinStakeRatio: "Rácio máximo de vitórias",
|
|
283
|
-
winStakeRatio: "Rácio de Vitórias",
|
|
284
|
-
January: "January",
|
|
285
|
-
February: "February",
|
|
286
|
-
March: "March",
|
|
287
|
-
April: "April",
|
|
288
|
-
May: "May",
|
|
289
|
-
June: "June",
|
|
290
|
-
July: "July",
|
|
291
|
-
August: "August",
|
|
292
|
-
September: "September",
|
|
293
|
-
October: "October",
|
|
294
|
-
November: "November",
|
|
295
|
-
December: "December",
|
|
296
|
-
login: "Entrar",
|
|
297
|
-
register: "Registro",
|
|
298
|
-
details: "Detalhes",
|
|
299
|
-
join: "Junte-se",
|
|
300
|
-
joinerror: "Ocorreu um erro ao entrar no torneio -"
|
|
301
|
-
},
|
|
302
|
-
hu: {
|
|
303
|
-
enrolled: "Feliratkozott",
|
|
304
|
-
scoreCriteria: "Pontozási kritériumok",
|
|
305
|
-
minbet: "Minimális tét",
|
|
306
|
-
seegames: "Játékok megnézése",
|
|
307
|
-
here: "itt",
|
|
308
|
-
scheduled: "Ütemezés",
|
|
309
|
-
ongoing: "Folyamatban lévő",
|
|
310
|
-
finished: "Befejezett",
|
|
311
|
-
startingAt: "Kezdődik",
|
|
312
|
-
startedAt: "Started at:",
|
|
313
|
-
mostRounds: "Legtöbb kör",
|
|
314
|
-
betCount: "Számított tét",
|
|
315
|
-
maxWinStakeRatio: "Maximális nyeremény tétenként",
|
|
316
|
-
winStakeRatio: "Összes nyeremény tétenként",
|
|
317
|
-
January: "January",
|
|
318
|
-
February: "February",
|
|
319
|
-
March: "March",
|
|
320
|
-
April: "April",
|
|
321
|
-
May: "May",
|
|
322
|
-
June: "June",
|
|
323
|
-
July: "July",
|
|
324
|
-
August: "August",
|
|
325
|
-
September: "September",
|
|
326
|
-
October: "October",
|
|
327
|
-
November: "November",
|
|
328
|
-
December: "December",
|
|
329
|
-
login: "Bejelentkezés",
|
|
330
|
-
register: "Regisztráció",
|
|
331
|
-
details: "Adatok",
|
|
332
|
-
join: "Csatlakozás",
|
|
333
|
-
joinerror: "Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."
|
|
334
|
-
},
|
|
335
|
-
hr: {
|
|
336
|
-
joined: "Pridružen",
|
|
337
|
-
enrolled: "Upisan",
|
|
338
|
-
scoreCriteria: "Kriteriji bodovanja",
|
|
339
|
-
minbet: "minimalni broj beta",
|
|
340
|
-
seegames: "Možete vidjeti igre",
|
|
341
|
-
here: "Ovdje",
|
|
342
|
-
scheduled: "Zakazano",
|
|
343
|
-
ongoing: "U tijeku",
|
|
344
|
-
finished: "Gotovo",
|
|
345
|
-
startingAt: "S početkom u",
|
|
346
|
-
startedAt: "Započelo u",
|
|
347
|
-
startingAtWithTime: "Počinje ",
|
|
348
|
-
startedAtWithTime: "Započelo ",
|
|
349
|
-
mostRounds: "Najviše rundi",
|
|
350
|
-
betCount: "Broj betova",
|
|
351
|
-
maxWinStakeRatio: "Maksimalni dobitak po ulogu",
|
|
352
|
-
winStakeRatio: "Ukupni dobitak po ulogu",
|
|
353
|
-
January: "Siječanj",
|
|
354
|
-
February: "Veljača",
|
|
355
|
-
March: "Ožujak",
|
|
356
|
-
April: "Travanj",
|
|
357
|
-
May: "Svibanj",
|
|
358
|
-
June: "Lipanj",
|
|
359
|
-
July: "Srpanj",
|
|
360
|
-
August: "Kolovoz",
|
|
361
|
-
September: "Rujan",
|
|
362
|
-
October: "Listopad",
|
|
363
|
-
November: "Studeni",
|
|
364
|
-
December: "Prosinac",
|
|
365
|
-
login: "Prijaviti se",
|
|
366
|
-
register: "Registracija",
|
|
367
|
-
details: "Detalji",
|
|
368
|
-
join: "join",
|
|
369
|
-
joinerror: "Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",
|
|
370
|
-
left: "lijevo",
|
|
371
|
-
minutes: "minute",
|
|
372
|
-
hours: "sati",
|
|
373
|
-
days: "dani"
|
|
374
|
-
}
|
|
375
|
-
}, l = (e, i) => {
|
|
376
|
-
var t, a;
|
|
377
|
-
return ((t = b[i]) === null || t === void 0 ? void 0 : t[e]) || ((a = b[w]) === null || a === void 0 ? void 0 : a[e]);
|
|
378
|
-
}, C = (e) => {
|
|
379
|
-
Object.keys(e).forEach((i) => {
|
|
380
|
-
for (let t in e[i])
|
|
381
|
-
b[i][t] = e[i][t];
|
|
382
|
-
});
|
|
383
|
-
}, R = ':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}', J = R, M = class {
|
|
384
|
-
constructor(e) {
|
|
385
|
-
f(this, e), this.userEnrolled = S(this, "TournamentUserEnrolled", 7), this.language = void 0, this.tournamentId = void 0, this.session = void 0, this.loginEvent = void 0, this.loginUrl = void 0, this.registerEvent = void 0, this.registerUrl = void 0, this.endpoint = void 0, this.currency = void 0, this.bonusCode = void 0, this.enrolled = !1, this.showReadMore = !1, this.clientStyling = "", this.clientStylingUrl = "", this.translationData = void 0, this.limitStylingAppends = !1, this.joinButtonLoading = !1, this.errorJoin = !1, this.errorJoinConcurrently = !1;
|
|
386
|
-
}
|
|
387
|
-
componentWillLoad() {
|
|
388
|
-
this.translationData && C(JSON.parse(this.translationData));
|
|
389
|
-
}
|
|
390
|
-
componentDidRender() {
|
|
391
|
-
!this.limitStylingAppends && this.host && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.limitStylingAppends = !0);
|
|
392
|
-
}
|
|
393
|
-
setClientStyling() {
|
|
394
|
-
const e = new CSSStyleSheet();
|
|
395
|
-
e.replace(this.clientStyling), this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, e];
|
|
396
|
-
}
|
|
397
|
-
setClientStylingURL() {
|
|
398
|
-
let e = new URL(this.clientStylingUrl);
|
|
399
|
-
fetch(e.href).then((i) => i.text()).then((i) => {
|
|
400
|
-
const t = new CSSStyleSheet();
|
|
401
|
-
t.replace(i), this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, t];
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
loginAction() {
|
|
405
|
-
this.loginEvent && (window.postMessage({ type: this.loginEvent, transition: "Login" }, window.location.href), typeof gtag == "function" && gtag("event", "OpenLoginModal", {
|
|
406
|
-
context: "TournamentsThumbnailController"
|
|
407
|
-
})), this.loginUrl && (location.href = this.loginUrl);
|
|
408
|
-
}
|
|
409
|
-
registerAction() {
|
|
410
|
-
this.registerEvent && (window.postMessage({ type: this.registerEvent, transition: "Register" }, window.location.href), typeof gtag == "function" && gtag("event", "OpenRegisterModal", {
|
|
411
|
-
context: "TournamentsThumbnailController"
|
|
412
|
-
})), this.registerUrl && (location.href = this.registerUrl);
|
|
413
|
-
}
|
|
414
|
-
joinAction(e, i) {
|
|
415
|
-
return g(this, null, function* () {
|
|
416
|
-
var t;
|
|
417
|
-
this.errorJoin = !1, this.errorJoinConcurrently = !1, window.postMessage({ type: "TournamentJoinRequest", tournamentId: e }, window.location.href), this.joinButtonLoading = !0;
|
|
418
|
-
let a = new URL(`${this.endpoint}/v1/bonus/claim`), s = new Headers(), d = {};
|
|
419
|
-
a.searchParams.append("language", this.language), a.searchParams.append("platform", j()), s.append("Content-Type", "application/json"), s.append("X-SessionID", this.session), i && (d = {
|
|
420
|
-
language: this.language,
|
|
421
|
-
bonusCode: i,
|
|
422
|
-
currency: this.currency,
|
|
423
|
-
type: "tournament"
|
|
424
|
-
});
|
|
425
|
-
let h = {
|
|
426
|
-
method: "PUT",
|
|
427
|
-
headers: s,
|
|
428
|
-
body: JSON.stringify(d)
|
|
429
|
-
};
|
|
430
|
-
const u = () => {
|
|
431
|
-
this.joinButtonLoading = !1, this.enrolled = !0, window.postMessage({ type: "TournamentUserEnrolled", userenrolled: this.enrolled, tournamentId: e }, window.location.href), this.userEnrolled.emit({ userenrolled: this.enrolled, tournamentId: e });
|
|
432
|
-
}, r = () => {
|
|
433
|
-
this.joinButtonLoading = !1, this.errorJoin = !0;
|
|
434
|
-
}, m = yield g(this, null, function* () {
|
|
435
|
-
let o;
|
|
436
|
-
try {
|
|
437
|
-
o = yield fetch(`${this.endpoint}/v1/bonus/claim?${a.searchParams.toString()}`, h), o = yield o.json();
|
|
438
|
-
} catch (x) {
|
|
439
|
-
r();
|
|
440
|
-
}
|
|
441
|
-
return o;
|
|
442
|
-
});
|
|
443
|
-
if (m)
|
|
444
|
-
if (m.success == !0)
|
|
445
|
-
u();
|
|
446
|
-
else if (m.errorMessage.match("VersionMismatchException")) {
|
|
447
|
-
let o;
|
|
448
|
-
o = yield fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`, {
|
|
449
|
-
headers: {
|
|
450
|
-
"X-SessionID": this.session
|
|
451
|
-
}
|
|
452
|
-
}), o = yield o.json(), !((t = o == null ? void 0 : o.item) === null || t === void 0) && t.playerEnrolled ? u() : (r(), this.errorJoinConcurrently = !0, this.errorJoin = !1);
|
|
453
|
-
} else
|
|
454
|
-
r();
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
detailAction(e) {
|
|
458
|
-
window.postMessage({ type: "TournamentDetailsClicked", tournamentId: e, showLeaderboard: !0 }, window.location.href);
|
|
459
|
-
}
|
|
460
|
-
moreAction(e) {
|
|
461
|
-
window.postMessage({ type: "TournamentReadMoreClicked", tournamentId: e }, window.location.href);
|
|
462
|
-
}
|
|
463
|
-
render() {
|
|
464
|
-
return n("div", { key: "d67f8cedc9bd513a74b4d9dc798c4c456d7b1d9f", class: "TournamentButtons" }, !this.session && n("div", { key: "7e79834abdd20bf694b096fad0734cc74ccb1f8e", class: "ButtonGroup" }, n("button", { key: "273e73693f197ff25d116c3c2e7098d3e80138c7", class: "LoginButton Button", part: "LoginButton", onClick: () => this.loginAction() }, l("login", this.language)), n("button", { key: "72835739c177ce6e872a06183074d2266b3c3d5d", class: "RegisterButton Button", part: "RegisterButton", onClick: () => this.registerAction() }, l("register", this.language))), this.session && n("div", { key: "746e7fb88ddd2bef5f59212d9f513b62943f80ae" }, !this.enrolled && n("div", { key: "7a33b63adc8255c267afdba2ffe700a0d2033e57", class: "ButtonGroup" }, n("button", { key: "95f71a6f41cd65e4dd9dfca0896899f7b8c32dd5", class: "Button", onClick: () => this.joinAction(this.tournamentId, this.bonusCode) }, l("join", this.language)), this.showReadMore && n("button", { key: "ac961bcbd5dc2a4f1e9267148ecc49a55b75515e", class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, l("readmore", this.language))), this.enrolled && n("div", { key: "f6a9170663e0aae26da9500fc5efc888bb2dc2ab", class: "ButtonGroup" }, n("button", { key: "a94489a7bf6b178199f2d78dfdc41cca77859c96", class: "Button", onClick: () => this.detailAction(this.tournamentId) }, l("details", this.language)), this.showReadMore && n("button", { key: "f23cefc77e04215e5beb6a39c2643348dce5e576", class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, l("readmore", this.language)))), (this.errorJoin || this.errorJoinConcurrently) && n("span", { key: "7accf63f478e52efc879da3775b07286fbc9801b", class: "ErrorText", part: "ErrorText" }, l("joinerror", this.language)));
|
|
465
|
-
}
|
|
466
|
-
get host() {
|
|
467
|
-
return A(this);
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
M.style = J;
|
|
471
|
-
export {
|
|
472
|
-
M as casino_tournament_buttons
|
|
473
|
-
};
|