@everymatrix/casino-tournaments-player-rank 0.0.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/es2015/casino-tournaments-player-rank.cjs +1 -0
- package/es2015/casino-tournaments-player-rank.js +16 -0
- package/package.json +25 -0
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/casino-tournament-buttons-BRTQTVpZ.js +472 -0
- package/stencil/casino-tournament-buttons-sxx8WSEA.cjs +1 -0
- package/stencil/index-a1e049f1-CgPlwQE2.cjs +1 -0
- package/stencil/index-a1e049f1-DgBeUoMr.js +563 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsPlayerRank-Dj6ibBMR.cjs")).then(e=>e.CasinoTournamentsPlayerRank_ce).then(({default:e})=>{!customElements.get("casino-tournaments-player-rank")&&customElements.define("casino-tournaments-player-rank",e.element)})}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
if (typeof window != "undefined") {
|
|
2
|
+
let n = function(e) {
|
|
3
|
+
return function(...s) {
|
|
4
|
+
try {
|
|
5
|
+
return e.apply(this, s);
|
|
6
|
+
} catch (t) {
|
|
7
|
+
if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
8
|
+
return !1;
|
|
9
|
+
throw t;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsPlayerRank-BAjspcvG.js").then((e) => e.C).then(({ default: e }) => {
|
|
14
|
+
!customElements.get("casino-tournaments-player-rank") && customElements.define("casino-tournaments-player-rank", e.element);
|
|
15
|
+
});
|
|
16
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@everymatrix/casino-tournaments-player-rank",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "es2015/casino-tournaments-player-rank.cjs",
|
|
6
|
+
"module": "es2015/casino-tournaments-player-rank.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./es2015/casino-tournaments-player-rank.js",
|
|
10
|
+
"require": "./es2015/casino-tournaments-player-rank.cjs"
|
|
11
|
+
},
|
|
12
|
+
"./es2015/casino-tournaments-player-rank.cjs": "./es2015/casino-tournaments-player-rank.cjs"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"es2015/",
|
|
16
|
+
"stencil",
|
|
17
|
+
"angular"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@everymatrix/casino-tournament-buttons": "*"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=()=>{};exports.globalScripts=s;
|
|
@@ -0,0 +1,472 @@
|
|
|
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-DgBeUoMr.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
|
+
});
|
|
424
|
+
let h = {
|
|
425
|
+
method: "PUT",
|
|
426
|
+
headers: s,
|
|
427
|
+
body: JSON.stringify(d)
|
|
428
|
+
};
|
|
429
|
+
const u = () => {
|
|
430
|
+
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 });
|
|
431
|
+
}, r = () => {
|
|
432
|
+
this.joinButtonLoading = !1, this.errorJoin = !0;
|
|
433
|
+
}, m = yield g(this, null, function* () {
|
|
434
|
+
let o;
|
|
435
|
+
try {
|
|
436
|
+
o = yield fetch(`${this.endpoint}/v1/bonus/claim?${a.searchParams.toString()}`, h), o = yield o.json();
|
|
437
|
+
} catch (x) {
|
|
438
|
+
r();
|
|
439
|
+
}
|
|
440
|
+
return o;
|
|
441
|
+
});
|
|
442
|
+
if (m)
|
|
443
|
+
if (m.success == !0)
|
|
444
|
+
u();
|
|
445
|
+
else if (m.errorMessage.match("VersionMismatchException")) {
|
|
446
|
+
let o;
|
|
447
|
+
o = yield fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`, {
|
|
448
|
+
headers: {
|
|
449
|
+
"X-SessionID": this.session
|
|
450
|
+
}
|
|
451
|
+
}), 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);
|
|
452
|
+
} else
|
|
453
|
+
r();
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
detailAction(e) {
|
|
457
|
+
window.postMessage({ type: "TournamentDetailsClicked", tournamentId: e, showLeaderboard: !0 }, window.location.href);
|
|
458
|
+
}
|
|
459
|
+
moreAction(e) {
|
|
460
|
+
window.postMessage({ type: "TournamentReadMoreClicked", tournamentId: e }, window.location.href);
|
|
461
|
+
}
|
|
462
|
+
render() {
|
|
463
|
+
return n("div", { key: "763ee14c366708587968c9dba99dfdca14f464aa", class: "TournamentButtons" }, !this.session && n("div", { key: "6cbf1242e6aaaaf1a4b22d225c851751d08e5235", class: "ButtonGroup" }, n("button", { key: "430fdc44dbd2e87b580910222b87fd015bc8cdec", class: "LoginButton Button", part: "LoginButton", onClick: () => this.loginAction() }, l("login", this.language)), n("button", { key: "ff655fe2a0493a1806957a0c9809d78c0e3402c9", class: "RegisterButton Button", part: "RegisterButton", onClick: () => this.registerAction() }, l("register", this.language))), this.session && n("div", { key: "7dd13f2bd91a8f0e36c01b9640906258fd037008" }, !this.enrolled && n("div", { key: "86f4e6e90f5ff54f5b7b49bbb96fcbf6f6abdbd1", class: "ButtonGroup" }, n("button", { key: "3a7b08d6fd2a00b2ac54e16f7a1d30012bfb3552", class: "Button", onClick: () => this.joinAction(this.tournamentId, this.bonusCode) }, l("join", this.language)), this.showReadMore && n("button", { key: "b0027a4d5c78b86ea87aded7f85a6321b47f59a9", class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, l("readmore", this.language))), this.enrolled && n("div", { key: "a69057c0e89fa520491e0cdc5541b9c9b81227d8", class: "ButtonGroup" }, n("button", { key: "2f7c353d41122018c120114870956bb3cfd7ef20", class: "Button", onClick: () => this.detailAction(this.tournamentId) }, l("details", this.language)), this.showReadMore && n("button", { key: "45bc2dbeb283b0c4f0cda9bb88b1495fb6a74b09", class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, l("readmore", this.language)))), (this.errorJoin || this.errorJoinConcurrently) && n("span", { key: "9b80c1e71632549dd1ee395a0cf12eea1d292e1a", class: "ErrorText", part: "ErrorText" }, l("joinerror", this.language)));
|
|
464
|
+
}
|
|
465
|
+
get host() {
|
|
466
|
+
return A(this);
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
M.style = J;
|
|
470
|
+
export {
|
|
471
|
+
M as casino_tournament_buttons
|
|
472
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var h=(e,i,t)=>new Promise((a,s)=>{var d=r=>{try{u(t.next(r))}catch(c){s(c)}},g=r=>{try{u(t.throw(r))}catch(c){s(c)}},u=r=>r.done?a(r.value):Promise.resolve(r.value).then(d,g);u((t=t.apply(e,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-a1e049f1-CgPlwQE2.cjs"),f=require("./app-globals-0f993ce5-sCt45RkC.cjs");var p=typeof document!="undefined"?document.currentScript:null,S=()=>{const e=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:p&&p.src||new URL("stencil/casino-tournament-buttons-sxx8WSEA.cjs",document.baseURI).href,i={};return e!==""&&(i.resourcesUrl=new URL(".",e).href),n.promiseResolve(i)};S().then(e=>h(exports,null,function*(){return yield f.globalScripts(),n.bootstrapLazy([["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)}));const A=()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},k="en",b={en:{joined:"Joined",join:"Join",enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again."},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},l=(e,i)=>{var t,a;return((t=b[i])===null||t===void 0?void 0:t[e])||((a=b[k])===null||a===void 0?void 0:a[e])},v=e=>{Object.keys(e).forEach(i=>{for(let t in e[i])b[i][t]=e[i][t]})},j=':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}',R=j,y=class{constructor(e){n.registerInstance(this,e),this.userEnrolled=n.createEvent(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}componentWillLoad(){this.translationData&&v(JSON.parse(this.translationData))}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const e=new CSSStyleSheet;e.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}setClientStylingURL(){let e=new URL(this.clientStylingUrl);fetch(e.href).then(i=>i.text()).then(i=>{const t=new CSSStyleSheet;t.replace(i),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]})}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}joinAction(e,i){return h(this,null,function*(){var t;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),this.joinButtonLoading=!0;let a=new URL(`${this.endpoint}/v1/bonus/claim`),s=new Headers,d={};a.searchParams.append("language",this.language),a.searchParams.append("platform",A()),s.append("Content-Type","application/json"),s.append("X-SessionID",this.session),i&&(d={language:this.language,bonusCode:i,currency:this.currency});let g={method:"PUT",headers:s,body:JSON.stringify(d)};const u=()=>{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})},r=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},m=yield h(this,null,function*(){let o;try{o=yield fetch(`${this.endpoint}/v1/bonus/claim?${a.searchParams.toString()}`,g),o=yield o.json()}catch(w){r()}return o});if(m)if(m.success==!0)u();else if(m.errorMessage.match("VersionMismatchException")){let o;o=yield fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),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)}else r()})}detailAction(e){window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)}moreAction(e){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:e},window.location.href)}render(){return n.h("div",{key:"763ee14c366708587968c9dba99dfdca14f464aa",class:"TournamentButtons"},!this.session&&n.h("div",{key:"6cbf1242e6aaaaf1a4b22d225c851751d08e5235",class:"ButtonGroup"},n.h("button",{key:"430fdc44dbd2e87b580910222b87fd015bc8cdec",class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},l("login",this.language)),n.h("button",{key:"ff655fe2a0493a1806957a0c9809d78c0e3402c9",class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},l("register",this.language))),this.session&&n.h("div",{key:"7dd13f2bd91a8f0e36c01b9640906258fd037008"},!this.enrolled&&n.h("div",{key:"86f4e6e90f5ff54f5b7b49bbb96fcbf6f6abdbd1",class:"ButtonGroup"},n.h("button",{key:"3a7b08d6fd2a00b2ac54e16f7a1d30012bfb3552",class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},l("join",this.language)),this.showReadMore&&n.h("button",{key:"b0027a4d5c78b86ea87aded7f85a6321b47f59a9",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},l("readmore",this.language))),this.enrolled&&n.h("div",{key:"a69057c0e89fa520491e0cdc5541b9c9b81227d8",class:"ButtonGroup"},n.h("button",{key:"2f7c353d41122018c120114870956bb3cfd7ef20",class:"Button",onClick:()=>this.detailAction(this.tournamentId)},l("details",this.language)),this.showReadMore&&n.h("button",{key:"45bc2dbeb283b0c4f0cda9bb88b1495fb6a74b09",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},l("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&n.h("span",{key:"9b80c1e71632549dd1ee395a0cf12eea1d292e1a",class:"ErrorText",part:"ErrorText"},l("joinerror",this.language)))}get host(){return n.getElement(this)}};y.style=R;exports.casino_tournament_buttons=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var w=(e,t,n)=>new Promise((s,r)=>{var a=o=>{try{i(n.next(o))}catch(c){r(c)}},l=o=>{try{i(n.throw(o))}catch(c){r(c)}},i=o=>o.done?s(o.value):Promise.resolve(o.value).then(a,l);i((n=n.apply(e,t)).next())});const me="casino-tournament-buttons",x={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!1,cmpDidRender:!0,cmpDidUnload:!1,cmpDidUpdate:!1,cmpShouldUpdate:!1,cmpWillLoad:!0,cmpWillRender:!1,cmpWillUpdate:!1,connectedCallback:!1,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!1,element:!1,event:!0,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!1,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propMutable:!1,propNumber:!1,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!1,slotChildNodesFix:!1,slotRelocation:!1,state:!0,style:!0,svg:!1,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!1,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!1,vdomRender:!0,vdomStyle:!1,vdomText:!0,vdomXlink:!1,watchCallback:!1};var ye=Object.defineProperty,Se=(e,t)=>{for(var n in t)ye(e,n,{get:t[n],enumerable:!0})},z=new WeakMap,S=e=>z.get(e),be=(e,t)=>z.set(t.$lazyInstance$=e,t),Ee=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],z.set(e,n)},q=(e,t)=>t in e,T=(e,t)=>(0,console.error)(e,t),j=new Map,ke=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const a=j.get(r);if(a)return a[s];{const l=i=>(j.set(r,i),i[s]);switch(r){case"casino-tournament-buttons":return Promise.resolve().then(()=>require("./casino-tournament-buttons-sxx8WSEA.cjs")).then(l,T)}}return import(`./${r}.entry.js`).then(l=>(j.set(r,l),l[s]),T)},_=new Map,Te="{visibility:hidden}.hydrated{visibility:inherit}",K="slot-fb{display:contents}slot-fb[hidden]{display:none}",O=typeof window!="undefined"?window:{},m=O.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},Z=e=>Promise.resolve(e),xe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),U=!1,W=[],V=[],we=(e,t)=>n=>{e.push(n),U||(U=!0,h.$flags$&4?B(R):h.raf(R))},N=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){T(n)}e.length=0},R=()=>{N(W),N(V),(U=W.length>0)&&h.raf(R)},B=e=>Z().then(e),Le=we(V),X={},Pe=e=>e!=null,H=e=>(e=typeof e,e==="object"||e==="function");function ee(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Ae={};Se(Ae,{err:()=>te,map:()=>_e,ok:()=>D,unwrap:()=>Ce,unwrapErr:()=>Oe});var D=e=>({isOk:!0,isErr:!1,value:e}),te=e=>({isOk:!1,isErr:!0,value:e});function _e(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>D(s)):D(n)}if(e.isErr){const n=e.value;return te(n)}throw"should never get here"}var Ce=e=>{if(e.isOk)return e.value;throw e.value},Oe=e=>{if(e.isErr)return e.value;throw e.value},y=(e,t="")=>()=>{},je=(e,t)=>()=>{},se=(e,t,...n)=>{let s=null,r=null,a=!1,l=!1;const i=[],o=$=>{for(let f=0;f<$.length;f++)s=$[f],Array.isArray(s)?o(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!H(s))&&(s=String(s)),a&&l?i[i.length-1].$text$+=s:i.push(a?I(null,s):s),l=a)};if(o(n),t){t.key&&(r=t.key);{const $=t.className||t.class;$&&(t.class=typeof $!="object"?$:Object.keys($).filter(f=>$[f]).join(" "))}}const c=I(e,null);return c.$attrs$=t,i.length>0&&(c.$children$=i),c.$key$=r,c},I=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},Ue={},Re=e=>e&&e.$tag$===Ue,De=(e,t)=>e!=null&&!H(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,ne=e=>S(e).$hostElement$,Ie=(e,t,n)=>{const s=ne(e);return{emit:r=>re(s,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}},re=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},G=new WeakMap,ze=(e,t,n)=>{let s=_.get(e);xe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,_.set(e,s)},Be=(e,t,n)=>{var s;const r=le(t),a=_.get(r);if(e=e.nodeType===11?e:m,a)if(typeof a=="string"){e=e.head||e;let l=G.get(e),i;if(l||G.set(e,l=new Set),!l.has(r)){{i=m.createElement("style"),i.innerHTML=a;const o=(s=h.$nonce$)!=null?s:ee(m);o!=null&&i.setAttribute("nonce",o),(!(t.$flags$&1)||t.$flags$&1&&e.nodeName!=="HEAD")&&e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=K),l&&l.add(r)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return r},He=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=y("attachStyles",t.$tagName$),a=Be(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&s&2&&(n["s-sc"]=a,n.classList.add(a+"-h")),r()},le=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,n,s,r,a)=>{if(n!==s){let l=q(e,t),i=t.toLowerCase();if(t==="class"){const o=e.classList,c=Y(n),$=Y(s);o.remove(...c.filter(f=>f&&!$.includes(f))),o.add(...$.filter(f=>f&&!c.includes(f)))}else if(t!=="key")if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):q(O,i)?t=i.slice(2):t=i[2]+t.slice(3),n||s){const o=t.endsWith(ae);t=t.replace(Me,""),n&&h.rel(e,t,n,o),s&&h.ael(e,t,s,o)}}else{const o=H(s);if((l||o&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const c=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=c)&&(e[t]=c)}}catch(c){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||a&4||r)&&!o&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Fe=/\s/,Y=e=>e?e.split(Fe):[],ae="Capture",Me=new RegExp(ae+"$"),oe=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||X,a=t.$attrs$||X;for(const l of J(Object.keys(r)))l in a||Q(s,l,r[l],void 0,n,t.$flags$);for(const l of J(Object.keys(a)))Q(s,l,r[l],a[l],n,t.$flags$)};function J(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var P,F,ie=!1,ce=!1,C=(e,t,n,s)=>{const r=t.$children$[n];let a=0,l,i;if(r.$text$!==null)l=r.$elm$=m.createTextNode(r.$text$);else if(l=r.$elm$=m.createElement(!ie&&x.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$),oe(null,r,ce),!!l.getRootNode().querySelector("body")&&x.scoped&&Pe(P)&&l["s-si"]!==P&&l.classList.add(l["s-si"]=P),r.$children$)for(a=0;a<r.$children$.length;++a)i=C(e,r,a),i&&l.appendChild(i);return l["s-hn"]=F,l},$e=(e,t,n,s,r,a)=>{let l=e,i;for(l.shadowRoot&&l.tagName===F&&(l=l.shadowRoot);r<=a;++r)s[r]&&(i=C(null,n,r),i&&(s[r].$elm$=i,A(l,i,t)))},fe=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const a=r.$elm$;a&&a.remove()}}},qe=(e,t,n,s,r=!1)=>{let a=0,l=0,i=0,o=0,c=t.length-1,$=t[0],f=t[c],d=s.length-1,u=s[0],p=s[d],g,v;for(;a<=c&&l<=d;)if($==null)$=t[++a];else if(f==null)f=t[--c];else if(u==null)u=s[++l];else if(p==null)p=s[--d];else if(L($,u,r))k($,u,r),$=t[++a],u=s[++l];else if(L(f,p,r))k(f,p,r),f=t[--c],p=s[--d];else if(L($,p,r))k($,p,r),A(e,$.$elm$,f.$elm$.nextSibling),$=t[++a],p=s[--d];else if(L(f,u,r))k(f,u,r),A(e,f.$elm$,$.$elm$),f=t[--c],u=s[++l];else{for(i=-1,o=a;o<=c;++o)if(t[o]&&t[o].$key$!==null&&t[o].$key$===u.$key$){i=o;break}i>=0?(v=t[i],v.$tag$!==u.$tag$?g=C(t&&t[l],n,i):(k(v,u,r),t[i]=void 0,g=v.$elm$),u=s[++l]):(g=C(t&&t[l],n,l),u=s[++l]),g&&A($.$elm$.parentNode,g,$.$elm$)}a>c?$e(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&fe(t,a,c)},L=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,k=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$,l=t.$text$;l===null?(oe(e,t,ce),r!==null&&a!==null?qe(s,r,t,a,n):a!==null?(e.$text$!==null&&(s.textContent=""),$e(s,null,t,a,0,a.length-1)):!n&&x.updatable&&r!==null&&fe(r,0,r.length-1)):e.$text$!==l&&(s.data=l)},A=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),We=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,a=e.$vnode$||I(null,null),l=Re(t)?t:se(null,null,t);if(F=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([i,o])=>l.$attrs$[o]=s[i])),n&&l.$attrs$)for(const i of Object.keys(l.$attrs$))s.hasAttribute(i)&&!["key","ref","style","class"].includes(i)&&(l.$attrs$[i]=s[i]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=a.$elm$=s.shadowRoot||s,P=s["s-sc"],ie=(r.$flags$&1)!==0,k(a,l,n)},de=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},M=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return de(e,e.$ancestorComponent$),Le(()=>Ne(e,t))},Ne=(e,t)=>{const n=e.$hostElement$,s=y("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return t&&(a=pe(r,"componentWillLoad")),s(),Xe(a,()=>Qe(e,r,t))},Xe=(e,t)=>Ge(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ge=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qe=(e,t,n)=>w(exports,null,function*(){var s;const r=e.$hostElement$,a=y("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&He(e);const i=y("render",e.$cmpMeta$.$tagName$);Ye(e,t,r,n),l&&(l.map(o=>o()),r["s-rc"]=void 0),i(),a();{const o=(s=r["s-p"])!=null?s:[],c=()=>Je(e);o.length===0?c():(Promise.all(o).then(c),e.$flags$|=4,o.length=0)}}),Ye=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,We(e,t,s)}catch(r){T(r,e.$hostElement$)}return null},Je=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=y("postUpdate",t),r=e.$lazyInstance$,a=e.$ancestorComponent$;pe(r,"componentDidRender"),e.$flags$&64?s():(e.$flags$|=64,ve(n),s(),e.$onReadyResolve$(n),a||ue()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&B(()=>M(e,!1)),e.$flags$&=-517},ue=e=>{ve(m.documentElement),B(()=>re(O,"appload",{detail:{namespace:me}}))},pe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){T(s)}},ve=e=>{var t;return e.classList.add((t=x.hydratedSelectorName)!=null?t:"hydrated")},Ke=(e,t)=>S(e).$instanceValues$.get(t),Ze=(e,t,n,s)=>{const r=S(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=r.$instanceValues$.get(t),l=r.$flags$,i=r.$lazyInstance$;n=De(n,s.$members$[t][0]);const o=Number.isNaN(a)&&Number.isNaN(n),c=n!==a&&!o;(!(l&8)||a===void 0)&&c&&(r.$instanceValues$.set(t,n),i&&(l&18)===2&&M(r,!1))},he=(e,t,n)=>{var s,r;const a=e.prototype;if(t.$members$||x.watchCallback){const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([i,[o]])=>{(o&31||n&2&&o&32)&&Object.defineProperty(a,i,{get(){return Ke(this,i)},set(c){Ze(this,i,c,t)},configurable:!0,enumerable:!0})}),n&1){const i=new Map;a.attributeChangedCallback=function(o,c,$){h.jmp(()=>{var f;const d=i.get(o);if(this.hasOwnProperty(d))$=this[d],delete this[d];else{if(a.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==$)return;if(d==null){const u=S(this),p=u==null?void 0:u.$flags$;if(p&&!(p&8)&&p&128&&$!==c){const g=u.$lazyInstance$,v=(f=t.$watchers$)==null?void 0:f[o];v==null||v.forEach(b=>{g[b]!=null&&g[b].call(g,$,c,o)})}return}}this[d]=$===null&&typeof this[d]=="boolean"?!1:$})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([o,c])=>c[0]&15).map(([o,c])=>{var $;const f=c[1]||o;return i.set(f,o),c[0]&512&&(($=t.$attrsToReflect$)==null||$.push([o,f])),f})]))}}return e},Ve=(e,t,n,s)=>w(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const o=ke(n);if(o&&"then"in o){const $=je();r=yield o,$()}else r=o;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(he(r,n,2),r.isProxied=!0);const c=y("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch($){T($)}t.$flags$&=-9,c()}else{r=e.constructor;const o=e.localName;customElements.whenDefined(o).then(()=>t.$flags$|=128)}if(r&&r.style){let o;typeof r.style=="string"&&(o=r.style);const c=le(n);if(!_.has(c)){const $=y("registerStyles",n.$tagName$);ze(c,o,!!(n.$flags$&1)),$()}}}const a=t.$ancestorComponent$,l=()=>M(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),et=e=>{},tt=e=>{if(!(h.$flags$&1)){const t=S(e),n=t.$cmpMeta$,s=y("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>et());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){de(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[a]])=>{if(a&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),Ve(e,t,n)}s()}},st=e=>{},nt=e=>w(exports,null,function*(){if(!(h.$flags$&1)){const t=S(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>st())}}),rt=(e,t={})=>{var n;const s=y(),r=[],a=t.exclude||[],l=O.customElements,i=m.head,o=i.querySelector("meta[charset]"),c=m.createElement("style"),$=[];let f,d=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let u=!1;if(e.map(p=>{p[1].map(g=>{const v={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};v.$flags$&4&&(u=!0),v.$members$=g[2],v.$attrsToReflect$=[];const b=v.$tagName$,ge=class extends HTMLElement{constructor(E){if(super(E),this.hasRegisteredEventListeners=!1,E=this,Ee(E,v),v.$flags$&1){if(!E.shadowRoot)E.attachShadow({mode:"open"});else if(E.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${v.$tagName$}! Mode is set to ${E.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){S(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?$.push(this):h.jmp(()=>tt(this))}disconnectedCallback(){h.jmp(()=>nt(this))}componentOnReady(){return S(this).$onReadyPromise$}};v.$lazyBundleId$=p[0],!a.includes(b)&&!l.get(b)&&(r.push(b),l.define(b,he(ge,v,1)))})}),r.length>0&&(u&&(c.textContent+=K),c.textContent+=r.sort()+Te,c.innerHTML.length)){c.setAttribute("data-styles","");const p=(n=h.$nonce$)!=null?n:ee(m);p!=null&&c.setAttribute("nonce",p),i.insertBefore(c,o?o.nextSibling:i.firstChild)}d=!1,$.length?$.map(p=>p.connectedCallback()):h.jmp(()=>f=setTimeout(ue,30)),s()};exports.bootstrapLazy=rt;exports.createEvent=Ie;exports.getElement=ne;exports.h=se;exports.promiseResolve=Z;exports.registerInstance=be;
|
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
var w = (e, t, n) => new Promise((s, r) => {
|
|
2
|
+
var a = (o) => {
|
|
3
|
+
try {
|
|
4
|
+
i(n.next(o));
|
|
5
|
+
} catch (c) {
|
|
6
|
+
r(c);
|
|
7
|
+
}
|
|
8
|
+
}, l = (o) => {
|
|
9
|
+
try {
|
|
10
|
+
i(n.throw(o));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
r(c);
|
|
13
|
+
}
|
|
14
|
+
}, i = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(a, l);
|
|
15
|
+
i((n = n.apply(e, t)).next());
|
|
16
|
+
});
|
|
17
|
+
const ve = "casino-tournament-buttons", T = (
|
|
18
|
+
/* casino-tournament-buttons */
|
|
19
|
+
{ allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !1, cmpDidRender: !0, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !0, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !1, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !1, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !1, propString: !0, reflect: !0, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !0, slot: !1, slotChildNodesFix: !1, slotRelocation: !1, state: !0, style: !0, svg: !1, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !1, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !1, vdomRender: !0, vdomStyle: !1, vdomText: !0, vdomXlink: !1, watchCallback: !1 }
|
|
20
|
+
);
|
|
21
|
+
var he = Object.defineProperty, ge = (e, t) => {
|
|
22
|
+
for (var n in t)
|
|
23
|
+
he(e, n, { get: t[n], enumerable: !0 });
|
|
24
|
+
}, B = /* @__PURE__ */ new WeakMap(), S = (e) => B.get(e), nt = (e, t) => B.set(t.$lazyInstance$ = e, t), me = (e, t) => {
|
|
25
|
+
const n = {
|
|
26
|
+
$flags$: 0,
|
|
27
|
+
$hostElement$: e,
|
|
28
|
+
$cmpMeta$: t,
|
|
29
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
|
30
|
+
};
|
|
31
|
+
return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], B.set(e, n);
|
|
32
|
+
}, W = (e, t) => t in e, x = (e, t) => (0, console.error)(e, t), j = /* @__PURE__ */ new Map(), ye = (e, t, n) => {
|
|
33
|
+
const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
|
|
34
|
+
if (!r)
|
|
35
|
+
return;
|
|
36
|
+
const a = j.get(r);
|
|
37
|
+
if (a)
|
|
38
|
+
return a[s];
|
|
39
|
+
{
|
|
40
|
+
const l = (i) => (j.set(r, i), i[s]);
|
|
41
|
+
switch (r) {
|
|
42
|
+
case "casino-tournament-buttons":
|
|
43
|
+
return import(
|
|
44
|
+
/* webpackMode: "lazy" */
|
|
45
|
+
"./casino-tournament-buttons-BRTQTVpZ.js"
|
|
46
|
+
).then(l, x);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return import(
|
|
50
|
+
/* @vite-ignore */
|
|
51
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
52
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
53
|
+
/* webpackMode: "lazy" */
|
|
54
|
+
`./${r}.entry.js`
|
|
55
|
+
).then((l) => (j.set(r, l), l[s]), x);
|
|
56
|
+
}, _ = /* @__PURE__ */ new Map(), Se = "{visibility:hidden}.hydrated{visibility:inherit}", K = "slot-fb{display:contents}slot-fb[hidden]{display:none}", O = typeof window != "undefined" ? window : {}, m = O.document || { head: {} }, h = {
|
|
57
|
+
$flags$: 0,
|
|
58
|
+
$resourcesUrl$: "",
|
|
59
|
+
jmp: (e) => e(),
|
|
60
|
+
raf: (e) => requestAnimationFrame(e),
|
|
61
|
+
ael: (e, t, n, s) => e.addEventListener(t, n, s),
|
|
62
|
+
rel: (e, t, n, s) => e.removeEventListener(t, n, s),
|
|
63
|
+
ce: (e, t) => new CustomEvent(e, t)
|
|
64
|
+
}, be = (e) => Promise.resolve(e), Ee = /* @__PURE__ */ (() => {
|
|
65
|
+
try {
|
|
66
|
+
return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
|
|
67
|
+
} catch (e) {
|
|
68
|
+
}
|
|
69
|
+
return !1;
|
|
70
|
+
})(), U = !1, q = [], Z = [], ke = (e, t) => (n) => {
|
|
71
|
+
e.push(n), U || (U = !0, h.$flags$ & 4 ? H(R) : h.raf(R));
|
|
72
|
+
}, N = (e) => {
|
|
73
|
+
for (let t = 0; t < e.length; t++)
|
|
74
|
+
try {
|
|
75
|
+
e[t](performance.now());
|
|
76
|
+
} catch (n) {
|
|
77
|
+
x(n);
|
|
78
|
+
}
|
|
79
|
+
e.length = 0;
|
|
80
|
+
}, R = () => {
|
|
81
|
+
N(q), N(Z), (U = q.length > 0) && h.raf(R);
|
|
82
|
+
}, H = (e) => be().then(e), xe = /* @__PURE__ */ ke(Z), X = {}, Te = (e) => e != null, z = (e) => (e = typeof e, e === "object" || e === "function");
|
|
83
|
+
function V(e) {
|
|
84
|
+
var t, n, s;
|
|
85
|
+
return (s = (n = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? s : void 0;
|
|
86
|
+
}
|
|
87
|
+
var we = {};
|
|
88
|
+
ge(we, {
|
|
89
|
+
err: () => ee,
|
|
90
|
+
map: () => Le,
|
|
91
|
+
ok: () => D,
|
|
92
|
+
unwrap: () => Ae,
|
|
93
|
+
unwrapErr: () => Pe
|
|
94
|
+
});
|
|
95
|
+
var D = (e) => ({
|
|
96
|
+
isOk: !0,
|
|
97
|
+
isErr: !1,
|
|
98
|
+
value: e
|
|
99
|
+
}), ee = (e) => ({
|
|
100
|
+
isOk: !1,
|
|
101
|
+
isErr: !0,
|
|
102
|
+
value: e
|
|
103
|
+
});
|
|
104
|
+
function Le(e, t) {
|
|
105
|
+
if (e.isOk) {
|
|
106
|
+
const n = t(e.value);
|
|
107
|
+
return n instanceof Promise ? n.then((s) => D(s)) : D(n);
|
|
108
|
+
}
|
|
109
|
+
if (e.isErr) {
|
|
110
|
+
const n = e.value;
|
|
111
|
+
return ee(n);
|
|
112
|
+
}
|
|
113
|
+
throw "should never get here";
|
|
114
|
+
}
|
|
115
|
+
var Ae = (e) => {
|
|
116
|
+
if (e.isOk)
|
|
117
|
+
return e.value;
|
|
118
|
+
throw e.value;
|
|
119
|
+
}, Pe = (e) => {
|
|
120
|
+
if (e.isErr)
|
|
121
|
+
return e.value;
|
|
122
|
+
throw e.value;
|
|
123
|
+
}, y = (e, t = "") => () => {
|
|
124
|
+
}, _e = (e, t) => () => {
|
|
125
|
+
}, Ce = (e, t, ...n) => {
|
|
126
|
+
let s = null, r = null, a = !1, l = !1;
|
|
127
|
+
const i = [], o = ($) => {
|
|
128
|
+
for (let f = 0; f < $.length; f++)
|
|
129
|
+
s = $[f], Array.isArray(s) ? o(s) : s != null && typeof s != "boolean" && ((a = typeof e != "function" && !z(s)) && (s = String(s)), a && l ? i[i.length - 1].$text$ += s : i.push(a ? I(null, s) : s), l = a);
|
|
130
|
+
};
|
|
131
|
+
if (o(n), t) {
|
|
132
|
+
t.key && (r = t.key);
|
|
133
|
+
{
|
|
134
|
+
const $ = t.className || t.class;
|
|
135
|
+
$ && (t.class = typeof $ != "object" ? $ : Object.keys($).filter((f) => $[f]).join(" "));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
const c = I(e, null);
|
|
139
|
+
return c.$attrs$ = t, i.length > 0 && (c.$children$ = i), c.$key$ = r, c;
|
|
140
|
+
}, I = (e, t) => {
|
|
141
|
+
const n = {
|
|
142
|
+
$flags$: 0,
|
|
143
|
+
$tag$: e,
|
|
144
|
+
$text$: t,
|
|
145
|
+
$elm$: null,
|
|
146
|
+
$children$: null
|
|
147
|
+
};
|
|
148
|
+
return n.$attrs$ = null, n.$key$ = null, n;
|
|
149
|
+
}, Oe = {}, je = (e) => e && e.$tag$ === Oe, Ue = (e, t) => e != null && !z(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 1 ? String(e) : e : e, Re = (e) => S(e).$hostElement$, rt = (e, t, n) => {
|
|
150
|
+
const s = Re(e);
|
|
151
|
+
return {
|
|
152
|
+
emit: (r) => te(s, t, {
|
|
153
|
+
bubbles: !!(n & 4),
|
|
154
|
+
composed: !!(n & 2),
|
|
155
|
+
cancelable: !!(n & 1),
|
|
156
|
+
detail: r
|
|
157
|
+
})
|
|
158
|
+
};
|
|
159
|
+
}, te = (e, t, n) => {
|
|
160
|
+
const s = h.ce(t, n);
|
|
161
|
+
return e.dispatchEvent(s), s;
|
|
162
|
+
}, G = /* @__PURE__ */ new WeakMap(), De = (e, t, n) => {
|
|
163
|
+
let s = _.get(e);
|
|
164
|
+
Ee && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, _.set(e, s);
|
|
165
|
+
}, Ie = (e, t, n) => {
|
|
166
|
+
var s;
|
|
167
|
+
const r = se(t), a = _.get(r);
|
|
168
|
+
if (e = e.nodeType === 11 ? e : m, a)
|
|
169
|
+
if (typeof a == "string") {
|
|
170
|
+
e = e.head || e;
|
|
171
|
+
let l = G.get(e), i;
|
|
172
|
+
if (l || G.set(e, l = /* @__PURE__ */ new Set()), !l.has(r)) {
|
|
173
|
+
{
|
|
174
|
+
i = m.createElement("style"), i.innerHTML = a;
|
|
175
|
+
const o = (s = h.$nonce$) != null ? s : V(m);
|
|
176
|
+
o != null && i.setAttribute("nonce", o), /**
|
|
177
|
+
* we render a scoped component
|
|
178
|
+
*/
|
|
179
|
+
(!(t.$flags$ & 1) || /**
|
|
180
|
+
* we are using shadow dom and render the style tag within the shadowRoot
|
|
181
|
+
*/
|
|
182
|
+
t.$flags$ & 1 && e.nodeName !== "HEAD") && e.insertBefore(i, e.querySelector("link"));
|
|
183
|
+
}
|
|
184
|
+
t.$flags$ & 4 && (i.innerHTML += K), l && l.add(r);
|
|
185
|
+
}
|
|
186
|
+
} else e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
|
|
187
|
+
return r;
|
|
188
|
+
}, Be = (e) => {
|
|
189
|
+
const t = e.$cmpMeta$, n = e.$hostElement$, s = t.$flags$, r = y("attachStyles", t.$tagName$), a = Ie(
|
|
190
|
+
n.shadowRoot ? n.shadowRoot : n.getRootNode(),
|
|
191
|
+
t
|
|
192
|
+
);
|
|
193
|
+
s & 10 && s & 2 && (n["s-sc"] = a, n.classList.add(a + "-h")), r();
|
|
194
|
+
}, se = (e, t) => "sc-" + e.$tagName$, Q = (e, t, n, s, r, a) => {
|
|
195
|
+
if (n !== s) {
|
|
196
|
+
let l = W(e, t), i = t.toLowerCase();
|
|
197
|
+
if (t === "class") {
|
|
198
|
+
const o = e.classList, c = Y(n), $ = Y(s);
|
|
199
|
+
o.remove(...c.filter((f) => f && !$.includes(f))), o.add(...$.filter((f) => f && !c.includes(f)));
|
|
200
|
+
} else if (t !== "key") if (!l && t[0] === "o" && t[1] === "n") {
|
|
201
|
+
if (t[2] === "-" ? t = t.slice(3) : W(O, i) ? t = i.slice(2) : t = i[2] + t.slice(3), n || s) {
|
|
202
|
+
const o = t.endsWith(ne);
|
|
203
|
+
t = t.replace(ze, ""), n && h.rel(e, t, n, o), s && h.ael(e, t, s, o);
|
|
204
|
+
}
|
|
205
|
+
} else {
|
|
206
|
+
const o = z(s);
|
|
207
|
+
if ((l || o && s !== null) && !r)
|
|
208
|
+
try {
|
|
209
|
+
if (e.tagName.includes("-"))
|
|
210
|
+
e[t] = s;
|
|
211
|
+
else {
|
|
212
|
+
const c = s == null ? "" : s;
|
|
213
|
+
t === "list" ? l = !1 : (n == null || e[t] != c) && (e[t] = c);
|
|
214
|
+
}
|
|
215
|
+
} catch (c) {
|
|
216
|
+
}
|
|
217
|
+
s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || a & 4 || r) && !o && (s = s === !0 ? "" : s, e.setAttribute(t, s));
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}, He = /\s/, Y = (e) => e ? e.split(He) : [], ne = "Capture", ze = new RegExp(ne + "$"), re = (e, t, n) => {
|
|
221
|
+
const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || X, a = t.$attrs$ || X;
|
|
222
|
+
for (const l of J(Object.keys(r)))
|
|
223
|
+
l in a || Q(s, l, r[l], void 0, n, t.$flags$);
|
|
224
|
+
for (const l of J(Object.keys(a)))
|
|
225
|
+
Q(s, l, r[l], a[l], n, t.$flags$);
|
|
226
|
+
};
|
|
227
|
+
function J(e) {
|
|
228
|
+
return e.includes("ref") ? (
|
|
229
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
|
230
|
+
[...e.filter((t) => t !== "ref"), "ref"]
|
|
231
|
+
) : (
|
|
232
|
+
// no need to sort, return the original array
|
|
233
|
+
e
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
var A, F, le = !1, ae = !1, C = (e, t, n, s) => {
|
|
237
|
+
const r = t.$children$[n];
|
|
238
|
+
let a = 0, l, i;
|
|
239
|
+
if (r.$text$ !== null)
|
|
240
|
+
l = r.$elm$ = m.createTextNode(r.$text$);
|
|
241
|
+
else if (l = r.$elm$ = m.createElement(
|
|
242
|
+
!le && T.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
|
|
243
|
+
), re(null, r, ae), !!l.getRootNode().querySelector("body") && T.scoped && Te(A) && l["s-si"] !== A && l.classList.add(l["s-si"] = A), r.$children$)
|
|
244
|
+
for (a = 0; a < r.$children$.length; ++a)
|
|
245
|
+
i = C(e, r, a), i && l.appendChild(i);
|
|
246
|
+
return l["s-hn"] = F, l;
|
|
247
|
+
}, oe = (e, t, n, s, r, a) => {
|
|
248
|
+
let l = e, i;
|
|
249
|
+
for (l.shadowRoot && l.tagName === F && (l = l.shadowRoot); r <= a; ++r)
|
|
250
|
+
s[r] && (i = C(null, n, r), i && (s[r].$elm$ = i, P(l, i, t)));
|
|
251
|
+
}, ie = (e, t, n) => {
|
|
252
|
+
for (let s = t; s <= n; ++s) {
|
|
253
|
+
const r = e[s];
|
|
254
|
+
if (r) {
|
|
255
|
+
const a = r.$elm$;
|
|
256
|
+
a && a.remove();
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}, Fe = (e, t, n, s, r = !1) => {
|
|
260
|
+
let a = 0, l = 0, i = 0, o = 0, c = t.length - 1, $ = t[0], f = t[c], d = s.length - 1, u = s[0], p = s[d], g, v;
|
|
261
|
+
for (; a <= c && l <= d; )
|
|
262
|
+
if ($ == null)
|
|
263
|
+
$ = t[++a];
|
|
264
|
+
else if (f == null)
|
|
265
|
+
f = t[--c];
|
|
266
|
+
else if (u == null)
|
|
267
|
+
u = s[++l];
|
|
268
|
+
else if (p == null)
|
|
269
|
+
p = s[--d];
|
|
270
|
+
else if (L($, u, r))
|
|
271
|
+
k($, u, r), $ = t[++a], u = s[++l];
|
|
272
|
+
else if (L(f, p, r))
|
|
273
|
+
k(f, p, r), f = t[--c], p = s[--d];
|
|
274
|
+
else if (L($, p, r))
|
|
275
|
+
k($, p, r), P(e, $.$elm$, f.$elm$.nextSibling), $ = t[++a], p = s[--d];
|
|
276
|
+
else if (L(f, u, r))
|
|
277
|
+
k(f, u, r), P(e, f.$elm$, $.$elm$), f = t[--c], u = s[++l];
|
|
278
|
+
else {
|
|
279
|
+
for (i = -1, o = a; o <= c; ++o)
|
|
280
|
+
if (t[o] && t[o].$key$ !== null && t[o].$key$ === u.$key$) {
|
|
281
|
+
i = o;
|
|
282
|
+
break;
|
|
283
|
+
}
|
|
284
|
+
i >= 0 ? (v = t[i], v.$tag$ !== u.$tag$ ? g = C(t && t[l], n, i) : (k(v, u, r), t[i] = void 0, g = v.$elm$), u = s[++l]) : (g = C(t && t[l], n, l), u = s[++l]), g && P($.$elm$.parentNode, g, $.$elm$);
|
|
285
|
+
}
|
|
286
|
+
a > c ? oe(
|
|
287
|
+
e,
|
|
288
|
+
s[d + 1] == null ? null : s[d + 1].$elm$,
|
|
289
|
+
n,
|
|
290
|
+
s,
|
|
291
|
+
l,
|
|
292
|
+
d
|
|
293
|
+
) : l > d && ie(t, a, c);
|
|
294
|
+
}, L = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, k = (e, t, n = !1) => {
|
|
295
|
+
const s = t.$elm$ = e.$elm$, r = e.$children$, a = t.$children$, l = t.$text$;
|
|
296
|
+
l === null ? (re(e, t, ae), r !== null && a !== null ? Fe(s, r, t, a, n) : a !== null ? (e.$text$ !== null && (s.textContent = ""), oe(s, null, t, a, 0, a.length - 1)) : (
|
|
297
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
298
|
+
!n && T.updatable && r !== null && ie(r, 0, r.length - 1)
|
|
299
|
+
)) : e.$text$ !== l && (s.data = l);
|
|
300
|
+
}, P = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), Me = (e, t, n = !1) => {
|
|
301
|
+
const s = e.$hostElement$, r = e.$cmpMeta$, a = e.$vnode$ || I(null, null), l = je(t) ? t : Ce(null, null, t);
|
|
302
|
+
if (F = s.tagName, r.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {}, r.$attrsToReflect$.map(
|
|
303
|
+
([i, o]) => l.$attrs$[o] = s[i]
|
|
304
|
+
)), n && l.$attrs$)
|
|
305
|
+
for (const i of Object.keys(l.$attrs$))
|
|
306
|
+
s.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (l.$attrs$[i] = s[i]);
|
|
307
|
+
l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = a.$elm$ = s.shadowRoot || s, A = s["s-sc"], le = (r.$flags$ & 1) !== 0, k(a, l, n);
|
|
308
|
+
}, ce = (e, t) => {
|
|
309
|
+
t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
|
|
310
|
+
}, M = (e, t) => {
|
|
311
|
+
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
|
312
|
+
e.$flags$ |= 512;
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
return ce(e, e.$ancestorComponent$), xe(() => We(e, t));
|
|
316
|
+
}, We = (e, t) => {
|
|
317
|
+
const n = e.$hostElement$, s = y("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
|
|
318
|
+
if (!r)
|
|
319
|
+
throw new Error(
|
|
320
|
+
`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
321
|
+
);
|
|
322
|
+
let a;
|
|
323
|
+
return t && (a = fe(r, "componentWillLoad")), s(), qe(a, () => Xe(e, r, t));
|
|
324
|
+
}, qe = (e, t) => Ne(e) ? e.then(t).catch((n) => {
|
|
325
|
+
console.error(n), t();
|
|
326
|
+
}) : t(), Ne = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Xe = (e, t, n) => w(void 0, null, function* () {
|
|
327
|
+
var s;
|
|
328
|
+
const r = e.$hostElement$, a = y("update", e.$cmpMeta$.$tagName$), l = r["s-rc"];
|
|
329
|
+
n && Be(e);
|
|
330
|
+
const i = y("render", e.$cmpMeta$.$tagName$);
|
|
331
|
+
Ge(e, t, r, n), l && (l.map((o) => o()), r["s-rc"] = void 0), i(), a();
|
|
332
|
+
{
|
|
333
|
+
const o = (s = r["s-p"]) != null ? s : [], c = () => Qe(e);
|
|
334
|
+
o.length === 0 ? c() : (Promise.all(o).then(c), e.$flags$ |= 4, o.length = 0);
|
|
335
|
+
}
|
|
336
|
+
}), Ge = (e, t, n, s) => {
|
|
337
|
+
try {
|
|
338
|
+
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Me(e, t, s);
|
|
339
|
+
} catch (r) {
|
|
340
|
+
x(r, e.$hostElement$);
|
|
341
|
+
}
|
|
342
|
+
return null;
|
|
343
|
+
}, Qe = (e) => {
|
|
344
|
+
const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = y("postUpdate", t), r = e.$lazyInstance$, a = e.$ancestorComponent$;
|
|
345
|
+
fe(r, "componentDidRender"), e.$flags$ & 64 ? s() : (e.$flags$ |= 64, de(n), s(), e.$onReadyResolve$(n), a || $e()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && H(() => M(e, !1)), e.$flags$ &= -517;
|
|
346
|
+
}, $e = (e) => {
|
|
347
|
+
de(m.documentElement), H(() => te(O, "appload", { detail: { namespace: ve } }));
|
|
348
|
+
}, fe = (e, t, n) => {
|
|
349
|
+
if (e && e[t])
|
|
350
|
+
try {
|
|
351
|
+
return e[t](n);
|
|
352
|
+
} catch (s) {
|
|
353
|
+
x(s);
|
|
354
|
+
}
|
|
355
|
+
}, de = (e) => {
|
|
356
|
+
var t;
|
|
357
|
+
return e.classList.add((t = T.hydratedSelectorName) != null ? t : "hydrated");
|
|
358
|
+
}, Ye = (e, t) => S(e).$instanceValues$.get(t), Je = (e, t, n, s) => {
|
|
359
|
+
const r = S(e);
|
|
360
|
+
if (!r)
|
|
361
|
+
throw new Error(
|
|
362
|
+
`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
|
363
|
+
);
|
|
364
|
+
const a = r.$instanceValues$.get(t), l = r.$flags$, i = r.$lazyInstance$;
|
|
365
|
+
n = Ue(n, s.$members$[t][0]);
|
|
366
|
+
const o = Number.isNaN(a) && Number.isNaN(n), c = n !== a && !o;
|
|
367
|
+
(!(l & 8) || a === void 0) && c && (r.$instanceValues$.set(t, n), i && (l & 18) === 2 && M(r, !1));
|
|
368
|
+
}, ue = (e, t, n) => {
|
|
369
|
+
var s, r;
|
|
370
|
+
const a = e.prototype;
|
|
371
|
+
if (t.$members$ || T.watchCallback) {
|
|
372
|
+
const l = Object.entries((s = t.$members$) != null ? s : {});
|
|
373
|
+
if (l.map(([i, [o]]) => {
|
|
374
|
+
(o & 31 || n & 2 && o & 32) && Object.defineProperty(a, i, {
|
|
375
|
+
get() {
|
|
376
|
+
return Ye(this, i);
|
|
377
|
+
},
|
|
378
|
+
set(c) {
|
|
379
|
+
Je(this, i, c, t);
|
|
380
|
+
},
|
|
381
|
+
configurable: !0,
|
|
382
|
+
enumerable: !0
|
|
383
|
+
});
|
|
384
|
+
}), n & 1) {
|
|
385
|
+
const i = /* @__PURE__ */ new Map();
|
|
386
|
+
a.attributeChangedCallback = function(o, c, $) {
|
|
387
|
+
h.jmp(() => {
|
|
388
|
+
var f;
|
|
389
|
+
const d = i.get(o);
|
|
390
|
+
if (this.hasOwnProperty(d))
|
|
391
|
+
$ = this[d], delete this[d];
|
|
392
|
+
else {
|
|
393
|
+
if (a.hasOwnProperty(d) && typeof this[d] == "number" && // cast type to number to avoid TS compiler issues
|
|
394
|
+
this[d] == $)
|
|
395
|
+
return;
|
|
396
|
+
if (d == null) {
|
|
397
|
+
const u = S(this), p = u == null ? void 0 : u.$flags$;
|
|
398
|
+
if (p && !(p & 8) && p & 128 && $ !== c) {
|
|
399
|
+
const g = u.$lazyInstance$, v = (f = t.$watchers$) == null ? void 0 : f[o];
|
|
400
|
+
v == null || v.forEach((b) => {
|
|
401
|
+
g[b] != null && g[b].call(g, $, c, o);
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
this[d] = $ === null && typeof this[d] == "boolean" ? !1 : $;
|
|
408
|
+
});
|
|
409
|
+
}, e.observedAttributes = Array.from(
|
|
410
|
+
/* @__PURE__ */ new Set([
|
|
411
|
+
...Object.keys((r = t.$watchers$) != null ? r : {}),
|
|
412
|
+
...l.filter(
|
|
413
|
+
([o, c]) => c[0] & 15
|
|
414
|
+
/* HasAttribute */
|
|
415
|
+
).map(([o, c]) => {
|
|
416
|
+
var $;
|
|
417
|
+
const f = c[1] || o;
|
|
418
|
+
return i.set(f, o), c[0] & 512 && (($ = t.$attrsToReflect$) == null || $.push([o, f])), f;
|
|
419
|
+
})
|
|
420
|
+
])
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
return e;
|
|
425
|
+
}, Ke = (e, t, n, s) => w(void 0, null, function* () {
|
|
426
|
+
let r;
|
|
427
|
+
if (!(t.$flags$ & 32)) {
|
|
428
|
+
if (t.$flags$ |= 32, n.$lazyBundleId$) {
|
|
429
|
+
const o = ye(n);
|
|
430
|
+
if (o && "then" in o) {
|
|
431
|
+
const $ = _e();
|
|
432
|
+
r = yield o, $();
|
|
433
|
+
} else
|
|
434
|
+
r = o;
|
|
435
|
+
if (!r)
|
|
436
|
+
throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
|
|
437
|
+
r.isProxied || (ue(
|
|
438
|
+
r,
|
|
439
|
+
n,
|
|
440
|
+
2
|
|
441
|
+
/* proxyState */
|
|
442
|
+
), r.isProxied = !0);
|
|
443
|
+
const c = y("createInstance", n.$tagName$);
|
|
444
|
+
t.$flags$ |= 8;
|
|
445
|
+
try {
|
|
446
|
+
new r(t);
|
|
447
|
+
} catch ($) {
|
|
448
|
+
x($);
|
|
449
|
+
}
|
|
450
|
+
t.$flags$ &= -9, c();
|
|
451
|
+
} else {
|
|
452
|
+
r = e.constructor;
|
|
453
|
+
const o = e.localName;
|
|
454
|
+
customElements.whenDefined(o).then(
|
|
455
|
+
() => t.$flags$ |= 128
|
|
456
|
+
/* isWatchReady */
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
if (r && r.style) {
|
|
460
|
+
let o;
|
|
461
|
+
typeof r.style == "string" && (o = r.style);
|
|
462
|
+
const c = se(n);
|
|
463
|
+
if (!_.has(c)) {
|
|
464
|
+
const $ = y("registerStyles", n.$tagName$);
|
|
465
|
+
De(c, o, !!(n.$flags$ & 1)), $();
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
const a = t.$ancestorComponent$, l = () => M(t, !0);
|
|
470
|
+
a && a["s-rc"] ? a["s-rc"].push(l) : l();
|
|
471
|
+
}), Ze = (e) => {
|
|
472
|
+
}, Ve = (e) => {
|
|
473
|
+
if (!(h.$flags$ & 1)) {
|
|
474
|
+
const t = S(e), n = t.$cmpMeta$, s = y("connectedCallback", n.$tagName$);
|
|
475
|
+
if (t.$flags$ & 1)
|
|
476
|
+
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Ze());
|
|
477
|
+
else {
|
|
478
|
+
t.$flags$ |= 1;
|
|
479
|
+
{
|
|
480
|
+
let r = e;
|
|
481
|
+
for (; r = r.parentNode || r.host; )
|
|
482
|
+
if (r["s-p"]) {
|
|
483
|
+
ce(t, t.$ancestorComponent$ = r);
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
n.$members$ && Object.entries(n.$members$).map(([r, [a]]) => {
|
|
488
|
+
if (a & 31 && e.hasOwnProperty(r)) {
|
|
489
|
+
const l = e[r];
|
|
490
|
+
delete e[r], e[r] = l;
|
|
491
|
+
}
|
|
492
|
+
}), Ke(e, t, n);
|
|
493
|
+
}
|
|
494
|
+
s();
|
|
495
|
+
}
|
|
496
|
+
}, et = (e) => {
|
|
497
|
+
}, tt = (e) => w(void 0, null, function* () {
|
|
498
|
+
if (!(h.$flags$ & 1)) {
|
|
499
|
+
const t = S(e);
|
|
500
|
+
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => et());
|
|
501
|
+
}
|
|
502
|
+
}), lt = (e, t = {}) => {
|
|
503
|
+
var n;
|
|
504
|
+
const s = y(), r = [], a = t.exclude || [], l = O.customElements, i = m.head, o = /* @__PURE__ */ i.querySelector("meta[charset]"), c = /* @__PURE__ */ m.createElement("style"), $ = [];
|
|
505
|
+
let f, d = !0;
|
|
506
|
+
Object.assign(h, t), h.$resourcesUrl$ = new URL(t.resourcesUrl || "./", m.baseURI).href;
|
|
507
|
+
let u = !1;
|
|
508
|
+
if (e.map((p) => {
|
|
509
|
+
p[1].map((g) => {
|
|
510
|
+
const v = {
|
|
511
|
+
$flags$: g[0],
|
|
512
|
+
$tagName$: g[1],
|
|
513
|
+
$members$: g[2],
|
|
514
|
+
$listeners$: g[3]
|
|
515
|
+
};
|
|
516
|
+
v.$flags$ & 4 && (u = !0), v.$members$ = g[2], v.$attrsToReflect$ = [];
|
|
517
|
+
const b = v.$tagName$, pe = class extends HTMLElement {
|
|
518
|
+
// StencilLazyHost
|
|
519
|
+
constructor(E) {
|
|
520
|
+
if (super(E), this.hasRegisteredEventListeners = !1, E = this, me(E, v), v.$flags$ & 1) {
|
|
521
|
+
if (!E.shadowRoot)
|
|
522
|
+
E.attachShadow({ mode: "open" });
|
|
523
|
+
else if (E.shadowRoot.mode !== "open")
|
|
524
|
+
throw new Error(
|
|
525
|
+
`Unable to re-use existing shadow root for ${v.$tagName$}! Mode is set to ${E.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
526
|
+
);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
connectedCallback() {
|
|
530
|
+
S(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), d ? $.push(this) : h.jmp(() => Ve(this));
|
|
531
|
+
}
|
|
532
|
+
disconnectedCallback() {
|
|
533
|
+
h.jmp(() => tt(this));
|
|
534
|
+
}
|
|
535
|
+
componentOnReady() {
|
|
536
|
+
return S(this).$onReadyPromise$;
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
v.$lazyBundleId$ = p[0], !a.includes(b) && !l.get(b) && (r.push(b), l.define(
|
|
540
|
+
b,
|
|
541
|
+
ue(
|
|
542
|
+
pe,
|
|
543
|
+
v,
|
|
544
|
+
1
|
|
545
|
+
/* isElementConstructor */
|
|
546
|
+
)
|
|
547
|
+
));
|
|
548
|
+
});
|
|
549
|
+
}), r.length > 0 && (u && (c.textContent += K), c.textContent += r.sort() + Se, c.innerHTML.length)) {
|
|
550
|
+
c.setAttribute("data-styles", "");
|
|
551
|
+
const p = (n = h.$nonce$) != null ? n : V(m);
|
|
552
|
+
p != null && c.setAttribute("nonce", p), i.insertBefore(c, o ? o.nextSibling : i.firstChild);
|
|
553
|
+
}
|
|
554
|
+
d = !1, $.length ? $.map((p) => p.connectedCallback()) : h.jmp(() => f = setTimeout($e, 30)), s();
|
|
555
|
+
};
|
|
556
|
+
export {
|
|
557
|
+
lt as b,
|
|
558
|
+
rt as c,
|
|
559
|
+
Re as g,
|
|
560
|
+
Ce as h,
|
|
561
|
+
be as p,
|
|
562
|
+
nt as r
|
|
563
|
+
};
|