@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,782 +1,759 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { translate, getTranslations } from
|
|
3
|
-
import moment from
|
|
4
|
-
import
|
|
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
|
-
|
|
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
|
-
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
65
|
-
|
|
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
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
170
|
-
|
|
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
|
-
|
|
173
|
-
|
|
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
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
-
|
|
180
|
-
|
|
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
|
-
|
|
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
|
-
|
|
187
|
-
|
|
192
|
+
termsClick(tournamentId) {
|
|
193
|
+
window.postMessage({ type: 'TournamentTermsConditions', tournamentId: tournamentId }, window.location.href);
|
|
188
194
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
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
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
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
|
}
|