@everymatrix/casino-tournament-banner 1.0.69

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 (44) hide show
  1. package/dist/casino-tournament-banner/casino-tournament-banner.esm.js +1 -0
  2. package/dist/casino-tournament-banner/index.esm.js +0 -0
  3. package/dist/casino-tournament-banner/p-92acdabb.js +2 -0
  4. package/dist/casino-tournament-banner/p-e1255160.js +1 -0
  5. package/dist/casino-tournament-banner/p-f6be828b.entry.js +9 -0
  6. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  7. package/dist/cjs/casino-tournament-banner.cjs.js +25 -0
  8. package/dist/cjs/casino-tournament-banner_2.cjs.entry.js +6861 -0
  9. package/dist/cjs/index-78134d39.js +1309 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +15 -0
  12. package/dist/collection/collection-manifest.json +19 -0
  13. package/dist/collection/components/casino-tournament-banner/casino-tournament-banner.css +126 -0
  14. package/dist/collection/components/casino-tournament-banner/casino-tournament-banner.js +759 -0
  15. package/dist/collection/components/casino-tournament-banner/index.js +1 -0
  16. package/dist/collection/index.js +1 -0
  17. package/dist/collection/utils/locale.utils.js +399 -0
  18. package/dist/collection/utils/utils.js +13 -0
  19. package/dist/esm/app-globals-0f993ce5.js +3 -0
  20. package/dist/esm/casino-tournament-banner.js +20 -0
  21. package/dist/esm/casino-tournament-banner_2.entry.js +6856 -0
  22. package/dist/esm/index-1bdfb450.js +1281 -0
  23. package/dist/esm/index.js +1 -0
  24. package/dist/esm/loader.js +11 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +17 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/casino-tournament-banner/casino-tournament-banner.d.ts +140 -0
  32. package/dist/types/components/casino-tournament-banner/index.d.ts +1 -0
  33. package/dist/types/components.d.ts +269 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  36. package/dist/types/utils/locale.utils.d.ts +2 -0
  37. package/dist/types/utils/utils.d.ts +1 -0
  38. package/loader/cdn.js +1 -0
  39. package/loader/index.cjs.js +1 -0
  40. package/loader/index.d.ts +24 -0
  41. package/loader/index.es2017.js +1 -0
  42. package/loader/index.js +2 -0
  43. package/loader/package.json +11 -0
  44. package/package.json +29 -0
@@ -0,0 +1,759 @@
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
+ export class CasinoTournamentBanner {
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;
42
+ }
43
+ watchLanguage(newValue, oldValue) {
44
+ if (newValue && newValue != oldValue) {
45
+ this.getDuration();
46
+ }
47
+ }
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
+ }
60
+ }
61
+ userEnrolledHandler(event) {
62
+ if (event.detail && this.tournamentId === event.detail.tournamentId) {
63
+ this.enrolled = event.detail.userenrolled;
64
+ }
65
+ }
66
+ getDateTimeDiff(dateString1, dateString2) {
67
+ return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
68
+ }
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');
87
+ }
88
+ getDuration() {
89
+ const dateNow = new Date();
90
+ this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
91
+ this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
92
+ }
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;
110
+ }
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
+ }
119
+ }
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];
126
+ }
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
+ });
138
+ }
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
+ }
163
+ }
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
+ }
177
+ if (this.startTime && this.endTime) {
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);
190
+ }
191
+ }
192
+ termsClick(tournamentId) {
193
+ window.postMessage({ type: 'TournamentTermsConditions', tournamentId: tournamentId }, window.location.href);
194
+ }
195
+ render() {
196
+ return h("div", { key: '30d503c748343afce01f545342ab0beb3d3d5e3f', class: "TournamentBannerWrap" }, this.thumbnail && h("div", { key: 'da37c8d8d5671d989d5f75c46d45ad7b0c757dfc', class: `TournamentBanner ${this.state}`, part: `TournamentBanner ${this.state}` }, h("img", { key: '920ee1b612ffb3566d4a7a25f7b98d14039bcccf', src: this.thumbnail, alt: "", class: `TournamentBannerBg ${this.cardMode && this.state ? this.state : ''}` }), !this.cardMode &&
197
+ h("div", { key: '6232e752892db4c5cc163e20429e0bdb5858952b', class: "TournamentBannerInfo", part: "TournamentBannerInfo" }, h("div", { key: '5f320af6055652c160965edca3e85113ed4ecccd', class: "BannerInfo", part: "BannerInfo" }, h("span", { key: '61e263fdcbbbbb2e09c35fa3003949198b11b14b', class: `Tag State ${this.state}` }, this.stateText)), h("div", { key: 'eeb7b7a227610ef7e5fb86de1c12dc59c45831ff', class: "BannerInfo", part: "BannerInfo" }, this.showDate &&
198
+ h("span", { key: '4d3c95a5f4eb37397b118bb92f09528a438d17a3', class: "Tag Date" }, this.showCalendar &&
199
+ h("svg", { key: 'e7da4187714f3b1f4027ebb450cb6e615fb77fc0', class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'e6fb5631ebd286b4fbace2023d2224225aea352e', "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: '047d580e73afcd494ee8ad6984e448471ff06209', class: "BannerInfo", part: "BannerInfo" }, this.enrolled &&
200
+ h("span", { key: '2679a156e0e6d55607841cbdd50edde901dbe270', class: "Tag Enroll" }, this.showCheck &&
201
+ h("svg", { key: '6c96935faa6dabc4d27f9ff80be9666d662a4142', class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, h("path", { key: '250be06f8386b20c52b31beddd585a256641cb24', 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: '5c7fb550ee511de38e6f6e927b84c2a2151b726f', class: "TournamentBannerThumb", part: "TournamentBannerThumb" }, h("div", { key: '40b14965a5b918c52f60738c98311e7d0a02dc0e', class: "ThumbTitle", part: "ThumbTitle" }, this.description), h("div", { key: 'b0a6bce6eaad753a128c8f8857be7beb0aec8789', class: "ThumbName", part: "ThumbName" }, this.nameOrTitle), h("div", { key: '8b6714200c99cd8402835ccd756cdee4723353bc', class: "ThumbState" }, this.session && this.enrolled ?
202
+ h("span", { class: "Tag Join" }, 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))
203
+ :
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: '9eee240f071037821719f03574df8c7d2c2dc215', class: `Tag State ${this.state}` }, this.stateText, this.showRunningDate &&
206
+ h("span", { key: 'f6079a692191072f5974d7e490088407f1af9f88', class: "TagRemain" }, this.showRemain, " ", translate('left', this.language))), (this.state == 'Unstarted' || this.state == 'Upcoming' || this.state == 'Closed') &&
207
+ h("span", { key: 'bf8d8023520af74bd4fd24cec54258cb13334290', class: `Tag Date ${this.state}` }, this.showCalendar &&
208
+ h("svg", { key: 'bc2e3c4e03f36d425bdf6d4f4a712d86c11c7ba0', class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '2af607c785e8bed8a3d320ed978634296cec24e6', "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: '9f7af09289e750761198ae6c5e1c7a0fb126b3e5', class: "ThumbButtons" }, h("casino-tournament-buttons", { key: 'd4a755223cfcfe36c904dc25217ef16f50136b8d', 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: '8d0511d19ce86bf5e881ca7803f396697e220850', class: "ThumbTC" }, h("span", { key: 'e0b740d48e919e5a4dc51207543698c078590ea9', 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
+ }];
758
+ }
759
+ }