@everymatrix/casino-tournament-banner 1.20.1 → 1.20.5

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.
@@ -37,7 +37,11 @@ const TRANSLATIONS = {
37
37
  details: 'Details',
38
38
  joinerror: 'An error occurred while registering in the tournament, please try again.',
39
39
  tournament: 'Tournament',
40
- terms: 'Terms and conditions'
40
+ terms: 'Terms and conditions',
41
+ left: 'left',
42
+ minutes: 'minutes',
43
+ hours: 'hours',
44
+ days: 'days',
41
45
  },
42
46
  'zh-hk': {
43
47
  enrolled: '已註冊',
@@ -70,7 +74,11 @@ const TRANSLATIONS = {
70
74
  register: '登記',
71
75
  details: '細節',
72
76
  join: '加入',
73
- joinerror: '加入錦標賽時出錯,請重試'
77
+ joinerror: '加入錦標賽時出錯,請重試',
78
+ left: '剩下',
79
+ minutes: '分鐘',
80
+ hours: '小時',
81
+ days: '天',
74
82
  },
75
83
  fr: {
76
84
  enrolled: 'Inscrits',
@@ -103,7 +111,11 @@ const TRANSLATIONS = {
103
111
  register: 'Enregistre',
104
112
  details: 'Détails',
105
113
  join: 'Rejoignez',
106
- joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - '
114
+ joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - ',
115
+ left: 'restant',
116
+ minutes: 'minutes',
117
+ hours: 'heures',
118
+ days: 'jours',
107
119
  },
108
120
  ro: {
109
121
  enrolled: 'Înscris',
@@ -138,7 +150,11 @@ const TRANSLATIONS = {
138
150
  register: 'Înregistrare',
139
151
  details: 'Detalii',
140
152
  join: 'Participă',
141
- joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.'
153
+ joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.',
154
+ left: 'rămase',
155
+ minutes: 'minute',
156
+ hours: 'ore',
157
+ days: 'zile',
142
158
  },
143
159
  tr: {
144
160
  enrolled: 'Katıldın',
@@ -171,7 +187,11 @@ const TRANSLATIONS = {
171
187
  register: 'Kayıt Ol',
172
188
  details: 'Detaylar',
173
189
  join: 'Katıl',
174
- joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - '
190
+ joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - ',
191
+ left: 'kaldı',
192
+ minutes: 'dakika',
193
+ hours: 'saat',
194
+ days: 'gün',
175
195
  },
176
196
  el: {
177
197
  enrolled: 'Εγγεγραμμένος',
@@ -207,7 +227,11 @@ const TRANSLATIONS = {
207
227
  register: 'Εγγραφή',
208
228
  details: 'Λεπτομέρειες',
209
229
  join: 'Συμμετοχή',
210
- joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.'
230
+ joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.',
231
+ left: 'απομένουν',
232
+ minutes: 'λεπτά',
233
+ hours: 'ώρες',
234
+ days: 'ημέρες',
211
235
  },
212
236
  es: {
213
237
  enrolled: 'Inscrito',
@@ -241,6 +265,10 @@ const TRANSLATIONS = {
241
265
  details: 'Detalles',
242
266
  join: 'Unirse',
243
267
  joinerror: 'Ha ocurrido un error mientras se registra en el Torneo',
268
+ left: 'izquierda',
269
+ minutes: 'minutos',
270
+ hours: 'horas',
271
+ days: 'días',
244
272
  },
245
273
  pt: {
246
274
  enrolled: 'Inscrito',
@@ -273,7 +301,11 @@ const TRANSLATIONS = {
273
301
  register: 'Registro',
274
302
  details: 'Detalhes',
275
303
  join: 'Junte-se',
276
- joinerror: 'Ocorreu um erro ao entrar no torneio -'
304
+ joinerror: 'Ocorreu um erro ao entrar no torneio -',
305
+ left: 'Abandonou',
306
+ minutes: 'Minutos',
307
+ hours: 'Horas',
308
+ days: 'Dias',
277
309
  },
278
310
  hu: {
279
311
  enrolled: 'Feliratkozott',
@@ -307,6 +339,10 @@ const TRANSLATIONS = {
307
339
  details: 'Adatok',
308
340
  join: 'Csatlakozás',
309
341
  joinerror: 'Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.',
342
+ left: 'bal',
343
+ minutes: 'perc',
344
+ hours: 'óra',
345
+ days: 'nap',
310
346
  }
311
347
  };
312
348
  export const translate = (key, customLang) => {
@@ -40,7 +40,11 @@ const TRANSLATIONS = {
40
40
  details: 'Details',
41
41
  joinerror: 'An error occurred while registering in the tournament, please try again.',
42
42
  tournament: 'Tournament',
43
- terms: 'Terms and conditions'
43
+ terms: 'Terms and conditions',
44
+ left: 'left',
45
+ minutes: 'minutes',
46
+ hours: 'hours',
47
+ days: 'days',
44
48
  },
45
49
  'zh-hk': {
46
50
  enrolled: '已註冊',
@@ -73,7 +77,11 @@ const TRANSLATIONS = {
73
77
  register: '登記',
74
78
  details: '細節',
75
79
  join: '加入',
76
- joinerror: '加入錦標賽時出錯,請重試'
80
+ joinerror: '加入錦標賽時出錯,請重試',
81
+ left: '剩下',
82
+ minutes: '分鐘',
83
+ hours: '小時',
84
+ days: '天',
77
85
  },
78
86
  fr: {
79
87
  enrolled: 'Inscrits',
@@ -106,7 +114,11 @@ const TRANSLATIONS = {
106
114
  register: 'Enregistre',
107
115
  details: 'Détails',
108
116
  join: 'Rejoignez',
109
- joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - '
117
+ joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - ',
118
+ left: 'restant',
119
+ minutes: 'minutes',
120
+ hours: 'heures',
121
+ days: 'jours',
110
122
  },
111
123
  ro: {
112
124
  enrolled: 'Înscris',
@@ -141,7 +153,11 @@ const TRANSLATIONS = {
141
153
  register: 'Înregistrare',
142
154
  details: 'Detalii',
143
155
  join: 'Participă',
144
- joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.'
156
+ joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.',
157
+ left: 'rămase',
158
+ minutes: 'minute',
159
+ hours: 'ore',
160
+ days: 'zile',
145
161
  },
146
162
  tr: {
147
163
  enrolled: 'Katıldın',
@@ -174,7 +190,11 @@ const TRANSLATIONS = {
174
190
  register: 'Kayıt Ol',
175
191
  details: 'Detaylar',
176
192
  join: 'Katıl',
177
- joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - '
193
+ joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - ',
194
+ left: 'kaldı',
195
+ minutes: 'dakika',
196
+ hours: 'saat',
197
+ days: 'gün',
178
198
  },
179
199
  el: {
180
200
  enrolled: 'Εγγεγραμμένος',
@@ -210,7 +230,11 @@ const TRANSLATIONS = {
210
230
  register: 'Εγγραφή',
211
231
  details: 'Λεπτομέρειες',
212
232
  join: 'Συμμετοχή',
213
- joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.'
233
+ joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.',
234
+ left: 'απομένουν',
235
+ minutes: 'λεπτά',
236
+ hours: 'ώρες',
237
+ days: 'ημέρες',
214
238
  },
215
239
  es: {
216
240
  enrolled: 'Inscrito',
@@ -244,6 +268,10 @@ const TRANSLATIONS = {
244
268
  details: 'Detalles',
245
269
  join: 'Unirse',
246
270
  joinerror: 'Ha ocurrido un error mientras se registra en el Torneo',
271
+ left: 'izquierda',
272
+ minutes: 'minutos',
273
+ hours: 'horas',
274
+ days: 'días',
247
275
  },
248
276
  pt: {
249
277
  enrolled: 'Inscrito',
@@ -276,7 +304,11 @@ const TRANSLATIONS = {
276
304
  register: 'Registro',
277
305
  details: 'Detalhes',
278
306
  join: 'Junte-se',
279
- joinerror: 'Ocorreu um erro ao entrar no torneio -'
307
+ joinerror: 'Ocorreu um erro ao entrar no torneio -',
308
+ left: 'Abandonou',
309
+ minutes: 'Minutos',
310
+ hours: 'Horas',
311
+ days: 'Dias',
280
312
  },
281
313
  hu: {
282
314
  enrolled: 'Feliratkozott',
@@ -310,6 +342,10 @@ const TRANSLATIONS = {
310
342
  details: 'Adatok',
311
343
  join: 'Csatlakozás',
312
344
  joinerror: 'Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.',
345
+ left: 'bal',
346
+ minutes: 'perc',
347
+ hours: 'óra',
348
+ days: 'nap',
313
349
  }
314
350
  };
315
351
  const translate = (key, customLang) => {
@@ -5993,58 +6029,73 @@ hooks.HTML5_FMT = {
5993
6029
  MONTH: 'YYYY-MM', // <input type="month" />
5994
6030
  };
5995
6031
 
5996
- const casinoTournamentBannerCss = ":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex}.Tag.Closed{filter:grayscale(1)}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#D0046C}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";
6032
+ const casinoTournamentBannerCss = ":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#D0046C}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";
5997
6033
 
5998
6034
  const CasinoTournamentBanner$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
5999
6035
  constructor() {
6000
6036
  super();
6001
6037
  this.__registerHost();
6002
6038
  this.__attachShadow();
6039
+ /**
6040
+ * Short start time format
6041
+ */
6003
6042
  this.shortstartformat = 'DD MMM YYYY';
6043
+ /**
6044
+ * Show date on widget
6045
+ */
6004
6046
  this.showDate = true;
6047
+ /**
6048
+ * Show date on running state tournament tag
6049
+ */
6050
+ this.showRunningDate = false;
6051
+ /**
6052
+ * Show check icon on enrolled tag
6053
+ */
6005
6054
  this.showCheck = false;
6055
+ /**
6056
+ * Widget display as a card
6057
+ */
6006
6058
  this.cardMode = false;
6059
+ /**
6060
+ * Show read more button
6061
+ */
6007
6062
  this.showReadMore = false;
6063
+ /**
6064
+ * Client custom styling via inline styles
6065
+ */
6008
6066
  this.clientStyling = '';
6067
+ /**
6068
+ * Client custom styling via url
6069
+ */
6009
6070
  this.clientStylingUrl = '';
6010
6071
  this.limitStylingAppends = false;
6011
- this.setClientStyling = () => {
6012
- let sheet = document.createElement('style');
6013
- sheet.innerHTML = this.clientStyling;
6014
- this.stylingContainer.prepend(sheet);
6015
- };
6016
- this.setClientStylingURL = () => {
6017
- let cssFile = document.createElement('style');
6018
- setTimeout(() => {
6019
- cssFile.innerHTML = this.clientStylingUrl;
6020
- this.stylingContainer.prepend(cssFile);
6021
- }, 1);
6022
- };
6023
- this.formatDate = () => {
6024
- const dateOptions = { month: 'long' };
6025
- let currentDate = new Date(this.startTime);
6026
- const setTranslation = () => {
6027
- return (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6028
- translate('startedAt', this.language) :
6029
- translate('startingAt', this.language);
6030
- };
6031
- if (this.shortStart) {
6032
- let startTimeAsString = hooks(currentDate).format(this.shortstartformat);
6033
- this.startdate = (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6034
- translate('startedAtWithTime', this.language) + startTimeAsString :
6035
- translate('startingAtWithTime', this.language) + startTimeAsString;
6072
+ }
6073
+ getDateTimeDiff(dateString1, dateString2) {
6074
+ return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
6075
+ }
6076
+ getTextByDiff(diff) {
6077
+ const renderText = (amount, type) => ' - ' + amount + ' ' + translate(type);
6078
+ const renderTimeColumn = (column) => {
6079
+ const columnInt = Math.floor(column);
6080
+ if (columnInt < 10) {
6081
+ return `0${columnInt}`;
6036
6082
  }
6037
6083
  else {
6038
- let currentMonthKey = new Intl.DateTimeFormat('en', dateOptions).format(currentDate);
6039
- let currentDay = currentDate.getDate();
6040
- let currentHour = currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric', hour12: false });
6041
- this.startdate =
6042
- `${currentDay}` + ' ' +
6043
- translate(`${currentMonthKey}`, this.language) + ', ' +
6044
- setTranslation() +
6045
- ` ${currentHour}`;
6084
+ return `${columnInt}`;
6046
6085
  }
6047
6086
  };
6087
+ if (diff < 1440) {
6088
+ const hours = diff / 60;
6089
+ const minutes = diff % 60;
6090
+ const seconds = (minutes - Math.floor(minutes)) * 60;
6091
+ return [hours, minutes, seconds].map(c => renderTimeColumn(c)).join(':');
6092
+ }
6093
+ return renderText(Math.ceil(diff / (60 * 24)), 'days');
6094
+ }
6095
+ getDuration() {
6096
+ const dateNow = new Date();
6097
+ this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
6098
+ this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
6048
6099
  }
6049
6100
  infoCompletedHandler(event) {
6050
6101
  if (event.detail && this.useEvent) {
@@ -6086,6 +6137,43 @@ const CasinoTournamentBanner$1 = /*@__PURE__*/ proxyCustomElement(class extends
6086
6137
  this.limitStylingAppends = true;
6087
6138
  }
6088
6139
  }
6140
+ setClientStyling() {
6141
+ let sheet = document.createElement('style');
6142
+ sheet.innerHTML = this.clientStyling;
6143
+ this.stylingContainer.prepend(sheet);
6144
+ }
6145
+ setClientStylingURL() {
6146
+ let cssFile = document.createElement('style');
6147
+ setTimeout(() => {
6148
+ cssFile.innerHTML = this.clientStylingUrl;
6149
+ this.stylingContainer.prepend(cssFile);
6150
+ }, 1);
6151
+ }
6152
+ formatDate() {
6153
+ const dateOptions = { month: 'long' };
6154
+ let currentDate = new Date(this.startTime);
6155
+ const setTranslation = () => {
6156
+ return (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6157
+ translate('startedAt', this.language) :
6158
+ translate('startingAt', this.language);
6159
+ };
6160
+ if (this.shortStart) {
6161
+ let startTimeAsString = hooks(currentDate).format(this.shortstartformat);
6162
+ this.startdate = (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6163
+ translate('startedAtWithTime', this.language) + startTimeAsString :
6164
+ translate('startingAtWithTime', this.language) + startTimeAsString;
6165
+ }
6166
+ else {
6167
+ let currentMonthKey = new Intl.DateTimeFormat('en', dateOptions).format(currentDate);
6168
+ let currentDay = currentDate.getDate();
6169
+ let currentHour = currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric', hour12: false });
6170
+ this.startdate =
6171
+ `${currentDay}` + ' ' +
6172
+ translate(`${currentMonthKey}`, this.language) + ', ' +
6173
+ setTranslation() +
6174
+ ` ${currentHour}`;
6175
+ }
6176
+ }
6089
6177
  componentWillLoad() {
6090
6178
  if (!this.useEvent && this.startTime) {
6091
6179
  this.formatDate();
@@ -6093,9 +6181,23 @@ const CasinoTournamentBanner$1 = /*@__PURE__*/ proxyCustomElement(class extends
6093
6181
  if (this.state) {
6094
6182
  this.stateText = this.getStateText(this.state);
6095
6183
  }
6184
+ if (this.startTime && this.endTime) {
6185
+ this.getDuration();
6186
+ this.getTextByDiff(this.tournamentLeftDays);
6187
+ }
6188
+ if (this.tournamentLeftDays < 1440 && this.tournamentLeftDays > 0) {
6189
+ this.durationInterval = window.setInterval(() => {
6190
+ if (this.startTime && this.endTime) {
6191
+ this.getDuration();
6192
+ }
6193
+ }, 1000);
6194
+ }
6195
+ else {
6196
+ clearInterval(this.durationInterval);
6197
+ }
6096
6198
  }
6097
6199
  termsClick(tournamentId) {
6098
- window.postMessage({ type: 'termsAndConditionsClicked', tournamentId: tournamentId }, window.location.href);
6200
+ window.postMessage({ type: 'TournamentTermsConditions', tournamentId: tournamentId }, window.location.href);
6099
6201
  }
6100
6202
  render() {
6101
6203
  return h("div", { ref: el => this.stylingContainer = el, class: "TournamentBannerWrap" }, this.thumbnail && h("div", { class: "TournamentBanner", part: "TournamentBanner" }, h("img", { src: this.thumbnail, alt: "", class: `TournamentBannerBg ${this.cardMode && this.state ? this.state : ''}` }), !this.cardMode &&
@@ -6103,26 +6205,30 @@ const CasinoTournamentBanner$1 = /*@__PURE__*/ proxyCustomElement(class extends
6103
6205
  h("span", { class: "Tag Date" }, this.showCalendar &&
6104
6206
  h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, 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" })), this.startdate)), h("div", { class: "BannerInfo", part: "BannerInfo" }, this.enrolled &&
6105
6207
  h("span", { class: "Tag Enroll" }, this.showCheck &&
6106
- 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('enrolled', this.language)))), this.cardMode && h("div", { class: "TournamentBannerThumb", part: "TournamentBannerThumb" }, h("div", { class: "ThumbTitle", part: "ThumbTitle" }, translate('tournament', this.language)), h("div", { class: "ThumbName", part: "ThumbName" }, this.nameOrTitle), h("div", { class: "ThumbState" }, this.enrolled ?
6208
+ 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('enrolled', this.language)))), this.cardMode && h("div", { class: "TournamentBannerThumb", part: "TournamentBannerThumb" }, h("div", { class: "ThumbTitle", part: "ThumbTitle" }, translate('tournament', this.language)), h("div", { class: "ThumbName", part: "ThumbName" }, this.nameOrTitle), h("div", { class: "ThumbState" }, this.session && this.enrolled ?
6107
6209
  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))
6108
6210
  :
6109
- this.state != 'Closed' &&
6110
- 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", { class: `Tag State ${this.state}` }, this.stateText), (this.state == 'Unstarted' || this.state == 'Upcoming' || this.state == 'Closed') &&
6211
+ this.session && this.state != 'Closed' &&
6212
+ 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", { class: `Tag State ${this.state}` }, this.stateText, this.showRunningDate &&
6213
+ h("span", { class: "TagRemain" }, this.showRemain, " ", translate('left', this.language))), (this.state == 'Unstarted' || this.state == 'Upcoming' || this.state == 'Closed') &&
6111
6214
  h("span", { class: `Tag Date ${this.state}` }, this.showCalendar &&
6112
6215
  h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, 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" })), this.startdate)), h("div", { class: "ThumbButtons" }, 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 })), h("div", { class: "ThumbTC" }, h("span", { onClick: this.termsClick.bind(this, this.tournamentId) }, translate('terms', this.language))))));
6113
6216
  }
6114
6217
  static get style() { return casinoTournamentBannerCss; }
6115
6218
  }, [1, "casino-tournament-banner", {
6116
6219
  "useEvent": [1, "use-event"],
6220
+ "endpoint": [1],
6117
6221
  "state": [1],
6118
6222
  "enrolled": [4],
6119
6223
  "startTime": [1, "start-time"],
6224
+ "endTime": [1, "end-time"],
6120
6225
  "thumbnail": [1],
6121
6226
  "language": [1],
6122
6227
  "showCalendar": [4, "show-calendar"],
6123
6228
  "shortStart": [4, "short-start"],
6124
6229
  "shortstartformat": [1],
6125
6230
  "showDate": [4, "show-date"],
6231
+ "showRunningDate": [4, "show-running-date"],
6126
6232
  "showCheck": [4, "show-check"],
6127
6233
  "cardMode": [4, "card-mode"],
6128
6234
  "nameOrTitle": [1, "name-or-title"],
@@ -6132,7 +6238,6 @@ const CasinoTournamentBanner$1 = /*@__PURE__*/ proxyCustomElement(class extends
6132
6238
  "loginUrl": [1, "login-url"],
6133
6239
  "registerEvent": [1, "register-event"],
6134
6240
  "registerUrl": [1, "register-url"],
6135
- "endpoint": [1],
6136
6241
  "currency": [1],
6137
6242
  "bonusCode": [1, "bonus-code"],
6138
6243
  "showReadMore": [4, "show-read-more"],
@@ -6141,7 +6246,10 @@ const CasinoTournamentBanner$1 = /*@__PURE__*/ proxyCustomElement(class extends
6141
6246
  "stateText": [32],
6142
6247
  "limitStylingAppends": [32],
6143
6248
  "stylingContainer": [32],
6144
- "startdate": [32]
6249
+ "startdate": [32],
6250
+ "tournamentLeftDays": [32],
6251
+ "showRemain": [32],
6252
+ "durationInterval": [32]
6145
6253
  }, [[8, "getTournamentInfoCompleted", "infoCompletedHandler"]]]);
6146
6254
  function defineCustomElement$1() {
6147
6255
  if (typeof customElements === "undefined") {
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["casino-tournament-banner_2",[[1,"casino-tournament-banner",{"useEvent":[1,"use-event"],"state":[1],"enrolled":[4],"startTime":[1,"start-time"],"thumbnail":[1],"language":[1],"showCalendar":[4,"show-calendar"],"shortStart":[4,"short-start"],"shortstartformat":[1],"showDate":[4,"show-date"],"showCheck":[4,"show-check"],"cardMode":[4,"card-mode"],"nameOrTitle":[1,"name-or-title"],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"endpoint":[1],"currency":[1],"bonusCode":[1,"bonus-code"],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"stateText":[32],"limitStylingAppends":[32],"stylingContainer":[32],"startdate":[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-buttons",{"language":[1],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"endpoint":[1],"currency":[1],"bonusCode":[1,"bonus-code"],"enrolled":[4],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"limitStylingAppends":[32],"stylingContainer":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}]]]], options);
16
+ return bootstrapLazy([["casino-tournament-banner_2",[[1,"casino-tournament-banner",{"useEvent":[1,"use-event"],"endpoint":[1],"state":[1],"enrolled":[4],"startTime":[1,"start-time"],"endTime":[1,"end-time"],"thumbnail":[1],"language":[1],"showCalendar":[4,"show-calendar"],"shortStart":[4,"short-start"],"shortstartformat":[1],"showDate":[4,"show-date"],"showRunningDate":[4,"show-running-date"],"showCheck":[4,"show-check"],"cardMode":[4,"card-mode"],"nameOrTitle":[1,"name-or-title"],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"currency":[1],"bonusCode":[1,"bonus-code"],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"stateText":[32],"limitStylingAppends":[32],"stylingContainer":[32],"startdate":[32],"tournamentLeftDays":[32],"showRemain":[32],"durationInterval":[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-buttons",{"language":[1],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"endpoint":[1],"currency":[1],"bonusCode":[1,"bonus-code"],"enrolled":[4],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"limitStylingAppends":[32],"stylingContainer":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}]]]], options);
17
17
  });