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