@everymatrix/casino-tournament-banner 1.32.4 → 1.33.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.
Files changed (50) hide show
  1. package/dist/casino-tournament-banner/casino-tournament-banner.esm.js +1 -0
  2. package/dist/casino-tournament-banner/index.esm.js +0 -0
  3. package/dist/casino-tournament-banner/p-a2222953.js +1 -0
  4. package/dist/casino-tournament-banner/p-e8cf2e54.entry.js +9 -0
  5. package/dist/cjs/casino-tournament-banner.cjs.js +19 -0
  6. package/dist/cjs/casino-tournament-banner_2.cjs.entry.js +6840 -0
  7. package/dist/cjs/index-a4c93352.js +1245 -0
  8. package/dist/cjs/index.cjs.js +2 -0
  9. package/dist/cjs/loader.cjs.js +21 -0
  10. package/dist/collection/collection-manifest.json +19 -0
  11. package/dist/collection/components/casino-tournament-banner/casino-tournament-banner.css +126 -0
  12. package/dist/collection/components/casino-tournament-banner/casino-tournament-banner.js +745 -0
  13. package/dist/collection/index.js +1 -0
  14. package/dist/collection/utils/locale.utils.js +399 -0
  15. package/dist/collection/utils/utils.js +13 -0
  16. package/dist/components/casino-tournament-banner.d.ts +11 -0
  17. package/dist/components/casino-tournament-banner.js +6338 -0
  18. package/dist/components/casino-tournament-buttons.js +6 -0
  19. package/dist/components/casino-tournament-buttons2.js +594 -0
  20. package/dist/components/index.d.ts +26 -0
  21. package/dist/components/index.js +1 -0
  22. package/dist/esm/casino-tournament-banner.js +17 -0
  23. package/dist/esm/casino-tournament-banner_2.entry.js +6835 -0
  24. package/dist/esm/index-be35c232.js +1219 -0
  25. package/dist/esm/index.js +1 -0
  26. package/dist/esm/loader.js +17 -0
  27. package/dist/esm/polyfills/core-js.js +11 -0
  28. package/dist/esm/polyfills/css-shim.js +1 -0
  29. package/dist/esm/polyfills/dom.js +79 -0
  30. package/dist/esm/polyfills/es5-html-element.js +1 -0
  31. package/dist/esm/polyfills/index.js +34 -0
  32. package/dist/esm/polyfills/system.js +6 -0
  33. package/dist/index.cjs.js +1 -0
  34. package/dist/index.js +1 -0
  35. package/dist/stencil.config.js +22 -0
  36. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-tournament-banner/.stencil/packages/casino-tournament-banner/stencil.config.d.ts +2 -0
  37. package/dist/types/components/casino-tournament-banner/casino-tournament-banner.d.ts +134 -0
  38. package/dist/types/components.d.ts +261 -0
  39. package/dist/types/index.d.ts +1 -0
  40. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  41. package/dist/types/utils/locale.utils.d.ts +2 -0
  42. package/dist/types/utils/utils.d.ts +1 -0
  43. package/loader/cdn.js +3 -0
  44. package/loader/index.cjs.js +3 -0
  45. package/loader/index.d.ts +12 -0
  46. package/loader/index.es2017.js +3 -0
  47. package/loader/index.js +4 -0
  48. package/loader/package.json +10 -0
  49. package/package.json +2 -3
  50. package/LICENSE +0 -21
@@ -0,0 +1,745 @@
1
+ import { Component, Prop, h, Listen, State, Element } from '@stencil/core';
2
+ import { translate, getTranslations } from '../../utils/locale.utils';
3
+ import moment from 'moment';
4
+ import '@everymatrix/casino-tournament-buttons';
5
+ export class CasinoTournamentBanner {
6
+ constructor() {
7
+ /**
8
+ * Short start time format
9
+ */
10
+ this.shortstartformat = 'DD MMM YYYY';
11
+ /**
12
+ * Show date on widget
13
+ */
14
+ this.showDate = true;
15
+ /**
16
+ * Show date on running state tournament tag
17
+ */
18
+ this.showRunningDate = false;
19
+ /**
20
+ * Show check icon on enrolled tag
21
+ */
22
+ this.showCheck = false;
23
+ /**
24
+ * Widget display as a card
25
+ */
26
+ this.cardMode = false;
27
+ /**
28
+ * Show read more button
29
+ */
30
+ this.showReadMore = false;
31
+ /**
32
+ * Client custom styling via inline styles
33
+ */
34
+ this.clientStyling = '';
35
+ /**
36
+ * Client custom styling via url
37
+ */
38
+ this.clientStylingUrl = '';
39
+ this.limitStylingAppends = false;
40
+ }
41
+ getDateTimeDiff(dateString1, dateString2) {
42
+ return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
43
+ }
44
+ getTextByDiff(diff) {
45
+ const renderText = (amount, type) => ' - ' + amount + ' ' + translate(type);
46
+ const renderTimeColumn = (column) => {
47
+ const columnInt = Math.floor(column);
48
+ if (columnInt < 10) {
49
+ return `0${columnInt}`;
50
+ }
51
+ else {
52
+ return `${columnInt}`;
53
+ }
54
+ };
55
+ if (diff < 1440) {
56
+ const hours = diff / 60;
57
+ const minutes = diff % 60;
58
+ const seconds = (minutes - Math.floor(minutes)) * 60;
59
+ return [hours, minutes, seconds].map(c => renderTimeColumn(c)).join(':');
60
+ }
61
+ return renderText(Math.ceil(diff / (60 * 24)), 'days');
62
+ }
63
+ getDuration() {
64
+ const dateNow = new Date();
65
+ this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
66
+ this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
67
+ }
68
+ infoCompletedHandler(event) {
69
+ if (event.detail && this.useEvent) {
70
+ this.state = event.detail.state;
71
+ this.stateText = this.getStateText(this.state);
72
+ this.enrolled = event.detail.playerEnrolled;
73
+ this.startTime = event.detail.startTime;
74
+ this.thumbnail = event.detail.thumbnail;
75
+ this.tournamentId = event.detail.id;
76
+ if (this.startTime) {
77
+ this.formatDate();
78
+ }
79
+ }
80
+ }
81
+ getStateText(state) {
82
+ let text = '';
83
+ switch (state) {
84
+ case 'Upcoming':
85
+ text = translate('scheduled', this.language);
86
+ break;
87
+ case 'Unstarted':
88
+ text = translate('scheduled', this.language);
89
+ break;
90
+ case 'Running':
91
+ text = translate('ongoing', this.language);
92
+ break;
93
+ default:
94
+ text = translate('finished', this.language);
95
+ break;
96
+ }
97
+ return text;
98
+ }
99
+ componentDidRender() {
100
+ if (!this.limitStylingAppends && this.host) {
101
+ if (this.clientStyling)
102
+ this.setClientStyling();
103
+ if (this.clientStylingUrl)
104
+ this.setClientStylingURL();
105
+ this.limitStylingAppends = true;
106
+ }
107
+ }
108
+ setClientStyling() {
109
+ const sheet = new CSSStyleSheet();
110
+ // @ts-ignore
111
+ sheet.replace(this.clientStyling);
112
+ // @ts-ignore
113
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
114
+ }
115
+ setClientStylingURL() {
116
+ let url = new URL(this.clientStylingUrl);
117
+ fetch(url.href)
118
+ .then((res) => res.text())
119
+ .then((data) => {
120
+ const sheet = new CSSStyleSheet();
121
+ // @ts-ignore
122
+ sheet.replace(data);
123
+ // @ts-ignore
124
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
125
+ });
126
+ }
127
+ formatDate() {
128
+ const dateOptions = { month: 'long' };
129
+ let currentDate = new Date(this.startTime);
130
+ const setTranslation = () => {
131
+ return (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
132
+ translate('startedAt', this.language) :
133
+ translate('startingAt', this.language);
134
+ };
135
+ if (this.shortStart) {
136
+ let startTimeAsString = moment(currentDate).format(this.shortstartformat);
137
+ this.startdate = (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
138
+ translate('startedAtWithTime', this.language) + startTimeAsString :
139
+ translate('startingAtWithTime', this.language) + startTimeAsString;
140
+ }
141
+ else {
142
+ let currentMonthKey = new Intl.DateTimeFormat('en', dateOptions).format(currentDate);
143
+ let currentDay = currentDate.getDate();
144
+ let currentHour = currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric', hour12: false });
145
+ this.startdate =
146
+ `${currentDay}` + ' ' +
147
+ translate(`${currentMonthKey}`, this.language) + ', ' +
148
+ setTranslation() +
149
+ ` ${currentHour}`;
150
+ }
151
+ }
152
+ componentWillLoad() {
153
+ if (this.translationData) {
154
+ getTranslations(JSON.parse(this.translationData));
155
+ if (this.state) {
156
+ this.stateText = this.getStateText(this.state);
157
+ }
158
+ }
159
+ if (!this.useEvent && this.startTime) {
160
+ this.formatDate();
161
+ }
162
+ if (this.state) {
163
+ this.stateText = this.getStateText(this.state);
164
+ }
165
+ if (this.startTime && this.endTime) {
166
+ this.getDuration();
167
+ this.getTextByDiff(this.tournamentLeftDays);
168
+ }
169
+ if (this.tournamentLeftDays < 1440 && this.tournamentLeftDays > 0) {
170
+ this.durationInterval = window.setInterval(() => {
171
+ if (this.startTime && this.endTime) {
172
+ this.getDuration();
173
+ }
174
+ }, 1000);
175
+ }
176
+ else {
177
+ clearInterval(this.durationInterval);
178
+ }
179
+ }
180
+ termsClick(tournamentId) {
181
+ window.postMessage({ type: 'TournamentTermsConditions', tournamentId: tournamentId }, window.location.href);
182
+ }
183
+ render() {
184
+ return h("div", { class: "TournamentBannerWrap" }, this.thumbnail && h("div", { class: "TournamentBanner", part: "TournamentBanner" },
185
+ h("img", { src: this.thumbnail, alt: "", class: `TournamentBannerBg ${this.cardMode && this.state ? this.state : ''}` }),
186
+ !this.cardMode &&
187
+ h("div", { class: "TournamentBannerInfo", part: "TournamentBannerInfo" },
188
+ h("div", { class: "BannerInfo", part: "BannerInfo" },
189
+ h("span", { class: `Tag State ${this.state}` }, this.stateText)),
190
+ h("div", { class: "BannerInfo", part: "BannerInfo" }, this.showDate &&
191
+ h("span", { class: "Tag Date" },
192
+ this.showCalendar &&
193
+ h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
194
+ h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })),
195
+ this.startdate)),
196
+ h("div", { class: "BannerInfo", part: "BannerInfo" }, this.enrolled &&
197
+ h("span", { class: "Tag Enroll" },
198
+ this.showCheck &&
199
+ h("svg", { class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" },
200
+ 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" })),
201
+ translate('enrolled', this.language)))),
202
+ this.cardMode && h("div", { class: "TournamentBannerThumb", part: "TournamentBannerThumb" },
203
+ h("div", { class: "ThumbTitle", part: "ThumbTitle" }, translate('tournament', this.language)),
204
+ h("div", { class: "ThumbName", part: "ThumbName" }, this.nameOrTitle),
205
+ h("div", { class: "ThumbState" },
206
+ this.session && this.enrolled ?
207
+ h("span", { class: "Tag Join" },
208
+ h("svg", { class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" },
209
+ 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" })),
210
+ translate('joined', this.language))
211
+ :
212
+ this.session && this.state != 'Closed' &&
213
+ h("span", { class: "Tag Join" },
214
+ h("svg", { class: "JoinPlus", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "13", viewBox: "0 0 12 13", fill: "none" },
215
+ h("path", { d: "M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z", fill: "white" })),
216
+ translate('join', this.language)),
217
+ this.state == 'Running' && h("span", { class: `Tag State ${this.state}` },
218
+ this.stateText,
219
+ this.showRunningDate &&
220
+ h("span", { class: "TagRemain" },
221
+ this.showRemain,
222
+ " ",
223
+ translate('left', this.language))),
224
+ (this.state == 'Unstarted' || this.state == 'Upcoming' || this.state == 'Closed') &&
225
+ h("span", { class: `Tag Date ${this.state}` },
226
+ this.showCalendar &&
227
+ h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
228
+ h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })),
229
+ this.startdate)),
230
+ h("div", { class: "ThumbButtons" },
231
+ h("casino-tournament-buttons", { enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData })),
232
+ h("div", { class: "ThumbTC" },
233
+ h("span", { onClick: this.termsClick.bind(this, this.tournamentId) }, translate('terms', this.language))))));
234
+ }
235
+ static get is() { return "casino-tournament-banner"; }
236
+ static get encapsulation() { return "shadow"; }
237
+ static get originalStyleUrls() { return {
238
+ "$": ["casino-tournament-banner.scss"]
239
+ }; }
240
+ static get styleUrls() { return {
241
+ "$": ["casino-tournament-banner.css"]
242
+ }; }
243
+ static get properties() { return {
244
+ "useEvent": {
245
+ "type": "string",
246
+ "mutable": false,
247
+ "complexType": {
248
+ "original": "string",
249
+ "resolved": "string",
250
+ "references": {}
251
+ },
252
+ "required": false,
253
+ "optional": true,
254
+ "docs": {
255
+ "tags": [],
256
+ "text": "Use event to load data"
257
+ },
258
+ "attribute": "use-event",
259
+ "reflect": false
260
+ },
261
+ "endpoint": {
262
+ "type": "string",
263
+ "mutable": false,
264
+ "complexType": {
265
+ "original": "string",
266
+ "resolved": "string",
267
+ "references": {}
268
+ },
269
+ "required": false,
270
+ "optional": true,
271
+ "docs": {
272
+ "tags": [],
273
+ "text": "The NWA endpoint"
274
+ },
275
+ "attribute": "endpoint",
276
+ "reflect": false
277
+ },
278
+ "state": {
279
+ "type": "string",
280
+ "mutable": false,
281
+ "complexType": {
282
+ "original": "string",
283
+ "resolved": "string",
284
+ "references": {}
285
+ },
286
+ "required": false,
287
+ "optional": true,
288
+ "docs": {
289
+ "tags": [],
290
+ "text": "The tournament state"
291
+ },
292
+ "attribute": "state",
293
+ "reflect": false
294
+ },
295
+ "enrolled": {
296
+ "type": "boolean",
297
+ "mutable": false,
298
+ "complexType": {
299
+ "original": "boolean",
300
+ "resolved": "boolean",
301
+ "references": {}
302
+ },
303
+ "required": false,
304
+ "optional": true,
305
+ "docs": {
306
+ "tags": [],
307
+ "text": "Player enrolled"
308
+ },
309
+ "attribute": "enrolled",
310
+ "reflect": false
311
+ },
312
+ "startTime": {
313
+ "type": "string",
314
+ "mutable": false,
315
+ "complexType": {
316
+ "original": "string",
317
+ "resolved": "string",
318
+ "references": {}
319
+ },
320
+ "required": false,
321
+ "optional": true,
322
+ "docs": {
323
+ "tags": [],
324
+ "text": "Tournament start time"
325
+ },
326
+ "attribute": "start-time",
327
+ "reflect": false
328
+ },
329
+ "endTime": {
330
+ "type": "string",
331
+ "mutable": false,
332
+ "complexType": {
333
+ "original": "string",
334
+ "resolved": "string",
335
+ "references": {}
336
+ },
337
+ "required": false,
338
+ "optional": true,
339
+ "docs": {
340
+ "tags": [],
341
+ "text": "Tournament end time"
342
+ },
343
+ "attribute": "end-time",
344
+ "reflect": false
345
+ },
346
+ "thumbnail": {
347
+ "type": "string",
348
+ "mutable": false,
349
+ "complexType": {
350
+ "original": "string",
351
+ "resolved": "string",
352
+ "references": {}
353
+ },
354
+ "required": false,
355
+ "optional": true,
356
+ "docs": {
357
+ "tags": [],
358
+ "text": "Tournament thumbnail"
359
+ },
360
+ "attribute": "thumbnail",
361
+ "reflect": false
362
+ },
363
+ "language": {
364
+ "type": "string",
365
+ "mutable": false,
366
+ "complexType": {
367
+ "original": "string",
368
+ "resolved": "string",
369
+ "references": {}
370
+ },
371
+ "required": true,
372
+ "optional": false,
373
+ "docs": {
374
+ "tags": [],
375
+ "text": "Widget Language to show"
376
+ },
377
+ "attribute": "language",
378
+ "reflect": false
379
+ },
380
+ "showCalendar": {
381
+ "type": "boolean",
382
+ "mutable": false,
383
+ "complexType": {
384
+ "original": "boolean",
385
+ "resolved": "boolean",
386
+ "references": {}
387
+ },
388
+ "required": false,
389
+ "optional": true,
390
+ "docs": {
391
+ "tags": [],
392
+ "text": "Show calendar icon"
393
+ },
394
+ "attribute": "show-calendar",
395
+ "reflect": false
396
+ },
397
+ "shortStart": {
398
+ "type": "boolean",
399
+ "mutable": false,
400
+ "complexType": {
401
+ "original": "boolean",
402
+ "resolved": "boolean",
403
+ "references": {}
404
+ },
405
+ "required": false,
406
+ "optional": true,
407
+ "docs": {
408
+ "tags": [],
409
+ "text": "Show short start time on tag"
410
+ },
411
+ "attribute": "short-start",
412
+ "reflect": false
413
+ },
414
+ "shortstartformat": {
415
+ "type": "string",
416
+ "mutable": false,
417
+ "complexType": {
418
+ "original": "string",
419
+ "resolved": "string",
420
+ "references": {}
421
+ },
422
+ "required": false,
423
+ "optional": true,
424
+ "docs": {
425
+ "tags": [],
426
+ "text": "Short start time format"
427
+ },
428
+ "attribute": "shortstartformat",
429
+ "reflect": false,
430
+ "defaultValue": "'DD MMM YYYY'"
431
+ },
432
+ "showDate": {
433
+ "type": "boolean",
434
+ "mutable": false,
435
+ "complexType": {
436
+ "original": "boolean",
437
+ "resolved": "boolean",
438
+ "references": {}
439
+ },
440
+ "required": false,
441
+ "optional": true,
442
+ "docs": {
443
+ "tags": [],
444
+ "text": "Show date on widget"
445
+ },
446
+ "attribute": "show-date",
447
+ "reflect": false,
448
+ "defaultValue": "true"
449
+ },
450
+ "showRunningDate": {
451
+ "type": "boolean",
452
+ "mutable": false,
453
+ "complexType": {
454
+ "original": "boolean",
455
+ "resolved": "boolean",
456
+ "references": {}
457
+ },
458
+ "required": false,
459
+ "optional": true,
460
+ "docs": {
461
+ "tags": [],
462
+ "text": "Show date on running state tournament tag"
463
+ },
464
+ "attribute": "show-running-date",
465
+ "reflect": false,
466
+ "defaultValue": "false"
467
+ },
468
+ "showCheck": {
469
+ "type": "boolean",
470
+ "mutable": false,
471
+ "complexType": {
472
+ "original": "boolean",
473
+ "resolved": "boolean",
474
+ "references": {}
475
+ },
476
+ "required": false,
477
+ "optional": true,
478
+ "docs": {
479
+ "tags": [],
480
+ "text": "Show check icon on enrolled tag"
481
+ },
482
+ "attribute": "show-check",
483
+ "reflect": false,
484
+ "defaultValue": "false"
485
+ },
486
+ "cardMode": {
487
+ "type": "boolean",
488
+ "mutable": false,
489
+ "complexType": {
490
+ "original": "boolean",
491
+ "resolved": "boolean",
492
+ "references": {}
493
+ },
494
+ "required": false,
495
+ "optional": true,
496
+ "docs": {
497
+ "tags": [],
498
+ "text": "Widget display as a card"
499
+ },
500
+ "attribute": "card-mode",
501
+ "reflect": false,
502
+ "defaultValue": "false"
503
+ },
504
+ "nameOrTitle": {
505
+ "type": "string",
506
+ "mutable": false,
507
+ "complexType": {
508
+ "original": "string",
509
+ "resolved": "string",
510
+ "references": {}
511
+ },
512
+ "required": false,
513
+ "optional": true,
514
+ "docs": {
515
+ "tags": [],
516
+ "text": "Widget name or title"
517
+ },
518
+ "attribute": "name-or-title",
519
+ "reflect": false
520
+ },
521
+ "tournamentId": {
522
+ "type": "string",
523
+ "mutable": false,
524
+ "complexType": {
525
+ "original": "string",
526
+ "resolved": "string",
527
+ "references": {}
528
+ },
529
+ "required": false,
530
+ "optional": true,
531
+ "docs": {
532
+ "tags": [],
533
+ "text": "Tournament ID"
534
+ },
535
+ "attribute": "tournament-id",
536
+ "reflect": false
537
+ },
538
+ "session": {
539
+ "type": "string",
540
+ "mutable": false,
541
+ "complexType": {
542
+ "original": "string",
543
+ "resolved": "string",
544
+ "references": {}
545
+ },
546
+ "required": false,
547
+ "optional": true,
548
+ "docs": {
549
+ "tags": [],
550
+ "text": "The NWA Session"
551
+ },
552
+ "attribute": "session",
553
+ "reflect": false
554
+ },
555
+ "loginEvent": {
556
+ "type": "string",
557
+ "mutable": false,
558
+ "complexType": {
559
+ "original": "string",
560
+ "resolved": "string",
561
+ "references": {}
562
+ },
563
+ "required": false,
564
+ "optional": true,
565
+ "docs": {
566
+ "tags": [],
567
+ "text": "Login event"
568
+ },
569
+ "attribute": "login-event",
570
+ "reflect": false
571
+ },
572
+ "loginUrl": {
573
+ "type": "string",
574
+ "mutable": false,
575
+ "complexType": {
576
+ "original": "string",
577
+ "resolved": "string",
578
+ "references": {}
579
+ },
580
+ "required": false,
581
+ "optional": true,
582
+ "docs": {
583
+ "tags": [],
584
+ "text": "Login url"
585
+ },
586
+ "attribute": "login-url",
587
+ "reflect": false
588
+ },
589
+ "registerEvent": {
590
+ "type": "string",
591
+ "mutable": false,
592
+ "complexType": {
593
+ "original": "string",
594
+ "resolved": "string",
595
+ "references": {}
596
+ },
597
+ "required": false,
598
+ "optional": true,
599
+ "docs": {
600
+ "tags": [],
601
+ "text": "Register Event"
602
+ },
603
+ "attribute": "register-event",
604
+ "reflect": false
605
+ },
606
+ "registerUrl": {
607
+ "type": "string",
608
+ "mutable": false,
609
+ "complexType": {
610
+ "original": "string",
611
+ "resolved": "string",
612
+ "references": {}
613
+ },
614
+ "required": false,
615
+ "optional": true,
616
+ "docs": {
617
+ "tags": [],
618
+ "text": "Register url"
619
+ },
620
+ "attribute": "register-url",
621
+ "reflect": false
622
+ },
623
+ "currency": {
624
+ "type": "string",
625
+ "mutable": false,
626
+ "complexType": {
627
+ "original": "string",
628
+ "resolved": "string",
629
+ "references": {}
630
+ },
631
+ "required": false,
632
+ "optional": true,
633
+ "docs": {
634
+ "tags": [],
635
+ "text": "Player currency"
636
+ },
637
+ "attribute": "currency",
638
+ "reflect": false
639
+ },
640
+ "bonusCode": {
641
+ "type": "string",
642
+ "mutable": false,
643
+ "complexType": {
644
+ "original": "string",
645
+ "resolved": "string",
646
+ "references": {}
647
+ },
648
+ "required": false,
649
+ "optional": true,
650
+ "docs": {
651
+ "tags": [],
652
+ "text": "Bonus Code"
653
+ },
654
+ "attribute": "bonus-code",
655
+ "reflect": false
656
+ },
657
+ "showReadMore": {
658
+ "type": "boolean",
659
+ "mutable": false,
660
+ "complexType": {
661
+ "original": "boolean",
662
+ "resolved": "boolean",
663
+ "references": {}
664
+ },
665
+ "required": false,
666
+ "optional": true,
667
+ "docs": {
668
+ "tags": [],
669
+ "text": "Show read more button"
670
+ },
671
+ "attribute": "show-read-more",
672
+ "reflect": false,
673
+ "defaultValue": "false"
674
+ },
675
+ "clientStyling": {
676
+ "type": "string",
677
+ "mutable": false,
678
+ "complexType": {
679
+ "original": "string",
680
+ "resolved": "string",
681
+ "references": {}
682
+ },
683
+ "required": false,
684
+ "optional": true,
685
+ "docs": {
686
+ "tags": [],
687
+ "text": "Client custom styling via inline styles"
688
+ },
689
+ "attribute": "client-styling",
690
+ "reflect": false,
691
+ "defaultValue": "''"
692
+ },
693
+ "clientStylingUrl": {
694
+ "type": "string",
695
+ "mutable": false,
696
+ "complexType": {
697
+ "original": "string",
698
+ "resolved": "string",
699
+ "references": {}
700
+ },
701
+ "required": false,
702
+ "optional": true,
703
+ "docs": {
704
+ "tags": [],
705
+ "text": "Client custom styling via url"
706
+ },
707
+ "attribute": "client-styling-url",
708
+ "reflect": false,
709
+ "defaultValue": "''"
710
+ },
711
+ "translationData": {
712
+ "type": "any",
713
+ "mutable": false,
714
+ "complexType": {
715
+ "original": "any",
716
+ "resolved": "any",
717
+ "references": {}
718
+ },
719
+ "required": false,
720
+ "optional": true,
721
+ "docs": {
722
+ "tags": [],
723
+ "text": "Translations via parent component"
724
+ },
725
+ "attribute": "translation-data",
726
+ "reflect": true
727
+ }
728
+ }; }
729
+ static get states() { return {
730
+ "stateText": {},
731
+ "limitStylingAppends": {},
732
+ "startdate": {},
733
+ "tournamentLeftDays": {},
734
+ "showRemain": {},
735
+ "durationInterval": {}
736
+ }; }
737
+ static get elementRef() { return "host"; }
738
+ static get listeners() { return [{
739
+ "name": "getTournamentInfoCompleted",
740
+ "method": "infoCompletedHandler",
741
+ "target": "window",
742
+ "capture": false,
743
+ "passive": false
744
+ }]; }
745
+ }