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