@everymatrix/casino-tournament-banner 1.20.1 → 1.20.7

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.
@@ -43,7 +43,11 @@ const TRANSLATIONS$1 = {
43
43
  details: 'Details',
44
44
  joinerror: 'An error occurred while registering in the tournament, please try again.',
45
45
  tournament: 'Tournament',
46
- terms: 'Terms and conditions'
46
+ terms: 'Terms and conditions',
47
+ left: 'left',
48
+ minutes: 'minutes',
49
+ hours: 'hours',
50
+ days: 'days',
47
51
  },
48
52
  'zh-hk': {
49
53
  enrolled: '已註冊',
@@ -76,7 +80,11 @@ const TRANSLATIONS$1 = {
76
80
  register: '登記',
77
81
  details: '細節',
78
82
  join: '加入',
79
- joinerror: '加入錦標賽時出錯,請重試'
83
+ joinerror: '加入錦標賽時出錯,請重試',
84
+ left: '剩下',
85
+ minutes: '分鐘',
86
+ hours: '小時',
87
+ days: '天',
80
88
  },
81
89
  fr: {
82
90
  enrolled: 'Inscrits',
@@ -109,7 +117,11 @@ const TRANSLATIONS$1 = {
109
117
  register: 'Enregistre',
110
118
  details: 'Détails',
111
119
  join: 'Rejoignez',
112
- joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - '
120
+ joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - ',
121
+ left: 'restant',
122
+ minutes: 'minutes',
123
+ hours: 'heures',
124
+ days: 'jours',
113
125
  },
114
126
  ro: {
115
127
  enrolled: 'Înscris',
@@ -144,7 +156,11 @@ const TRANSLATIONS$1 = {
144
156
  register: 'Înregistrare',
145
157
  details: 'Detalii',
146
158
  join: 'Participă',
147
- joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.'
159
+ joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.',
160
+ left: 'rămase',
161
+ minutes: 'minute',
162
+ hours: 'ore',
163
+ days: 'zile',
148
164
  },
149
165
  tr: {
150
166
  enrolled: 'Katıldın',
@@ -177,7 +193,11 @@ const TRANSLATIONS$1 = {
177
193
  register: 'Kayıt Ol',
178
194
  details: 'Detaylar',
179
195
  join: 'Katıl',
180
- joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - '
196
+ joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - ',
197
+ left: 'kaldı',
198
+ minutes: 'dakika',
199
+ hours: 'saat',
200
+ days: 'gün',
181
201
  },
182
202
  el: {
183
203
  enrolled: 'Εγγεγραμμένος',
@@ -213,7 +233,11 @@ const TRANSLATIONS$1 = {
213
233
  register: 'Εγγραφή',
214
234
  details: 'Λεπτομέρειες',
215
235
  join: 'Συμμετοχή',
216
- joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.'
236
+ joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.',
237
+ left: 'απομένουν',
238
+ minutes: 'λεπτά',
239
+ hours: 'ώρες',
240
+ days: 'ημέρες',
217
241
  },
218
242
  es: {
219
243
  enrolled: 'Inscrito',
@@ -247,6 +271,10 @@ const TRANSLATIONS$1 = {
247
271
  details: 'Detalles',
248
272
  join: 'Unirse',
249
273
  joinerror: 'Ha ocurrido un error mientras se registra en el Torneo',
274
+ left: 'izquierda',
275
+ minutes: 'minutos',
276
+ hours: 'horas',
277
+ days: 'días',
250
278
  },
251
279
  pt: {
252
280
  enrolled: 'Inscrito',
@@ -279,7 +307,11 @@ const TRANSLATIONS$1 = {
279
307
  register: 'Registro',
280
308
  details: 'Detalhes',
281
309
  join: 'Junte-se',
282
- joinerror: 'Ocorreu um erro ao entrar no torneio -'
310
+ joinerror: 'Ocorreu um erro ao entrar no torneio -',
311
+ left: 'Abandonou',
312
+ minutes: 'Minutos',
313
+ hours: 'Horas',
314
+ days: 'Dias',
283
315
  },
284
316
  hu: {
285
317
  enrolled: 'Feliratkozott',
@@ -313,6 +345,10 @@ const TRANSLATIONS$1 = {
313
345
  details: 'Adatok',
314
346
  join: 'Csatlakozás',
315
347
  joinerror: 'Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.',
348
+ left: 'bal',
349
+ minutes: 'perc',
350
+ hours: 'óra',
351
+ days: 'nap',
316
352
  }
317
353
  };
318
354
  const translate$1 = (key, customLang) => {
@@ -5996,56 +6032,71 @@ hooks.HTML5_FMT = {
5996
6032
  MONTH: 'YYYY-MM', // <input type="month" />
5997
6033
  };
5998
6034
 
5999
- 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}";
6035
+ 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}";
6000
6036
 
6001
6037
  const CasinoTournamentBanner = class {
6002
6038
  constructor(hostRef) {
6003
6039
  index.registerInstance(this, hostRef);
6040
+ /**
6041
+ * Short start time format
6042
+ */
6004
6043
  this.shortstartformat = 'DD MMM YYYY';
6044
+ /**
6045
+ * Show date on widget
6046
+ */
6005
6047
  this.showDate = true;
6048
+ /**
6049
+ * Show date on running state tournament tag
6050
+ */
6051
+ this.showRunningDate = false;
6052
+ /**
6053
+ * Show check icon on enrolled tag
6054
+ */
6006
6055
  this.showCheck = false;
6056
+ /**
6057
+ * Widget display as a card
6058
+ */
6007
6059
  this.cardMode = false;
6060
+ /**
6061
+ * Show read more button
6062
+ */
6008
6063
  this.showReadMore = false;
6064
+ /**
6065
+ * Client custom styling via inline styles
6066
+ */
6009
6067
  this.clientStyling = '';
6068
+ /**
6069
+ * Client custom styling via url
6070
+ */
6010
6071
  this.clientStylingUrl = '';
6011
6072
  this.limitStylingAppends = false;
6012
- this.setClientStyling = () => {
6013
- let sheet = document.createElement('style');
6014
- sheet.innerHTML = this.clientStyling;
6015
- this.stylingContainer.prepend(sheet);
6016
- };
6017
- this.setClientStylingURL = () => {
6018
- let cssFile = document.createElement('style');
6019
- setTimeout(() => {
6020
- cssFile.innerHTML = this.clientStylingUrl;
6021
- this.stylingContainer.prepend(cssFile);
6022
- }, 1);
6023
- };
6024
- this.formatDate = () => {
6025
- const dateOptions = { month: 'long' };
6026
- let currentDate = new Date(this.startTime);
6027
- const setTranslation = () => {
6028
- return (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6029
- translate$1('startedAt', this.language) :
6030
- translate$1('startingAt', this.language);
6031
- };
6032
- if (this.shortStart) {
6033
- let startTimeAsString = hooks(currentDate).format(this.shortstartformat);
6034
- this.startdate = (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6035
- translate$1('startedAtWithTime', this.language) + startTimeAsString :
6036
- translate$1('startingAtWithTime', this.language) + startTimeAsString;
6073
+ }
6074
+ getDateTimeDiff(dateString1, dateString2) {
6075
+ return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
6076
+ }
6077
+ getTextByDiff(diff) {
6078
+ const renderText = (amount, type) => ' - ' + amount + ' ' + translate$1(type);
6079
+ const renderTimeColumn = (column) => {
6080
+ const columnInt = Math.floor(column);
6081
+ if (columnInt < 10) {
6082
+ return `0${columnInt}`;
6037
6083
  }
6038
6084
  else {
6039
- let currentMonthKey = new Intl.DateTimeFormat('en', dateOptions).format(currentDate);
6040
- let currentDay = currentDate.getDate();
6041
- let currentHour = currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric', hour12: false });
6042
- this.startdate =
6043
- `${currentDay}` + ' ' +
6044
- translate$1(`${currentMonthKey}`, this.language) + ', ' +
6045
- setTranslation() +
6046
- ` ${currentHour}`;
6085
+ return `${columnInt}`;
6047
6086
  }
6048
6087
  };
6088
+ if (diff < 1440) {
6089
+ const hours = diff / 60;
6090
+ const minutes = diff % 60;
6091
+ const seconds = (minutes - Math.floor(minutes)) * 60;
6092
+ return [hours, minutes, seconds].map(c => renderTimeColumn(c)).join(':');
6093
+ }
6094
+ return renderText(Math.ceil(diff / (60 * 24)), 'days');
6095
+ }
6096
+ getDuration() {
6097
+ const dateNow = new Date();
6098
+ this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
6099
+ this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
6049
6100
  }
6050
6101
  infoCompletedHandler(event) {
6051
6102
  if (event.detail && this.useEvent) {
@@ -6087,6 +6138,43 @@ const CasinoTournamentBanner = class {
6087
6138
  this.limitStylingAppends = true;
6088
6139
  }
6089
6140
  }
6141
+ setClientStyling() {
6142
+ let sheet = document.createElement('style');
6143
+ sheet.innerHTML = this.clientStyling;
6144
+ this.stylingContainer.prepend(sheet);
6145
+ }
6146
+ setClientStylingURL() {
6147
+ let cssFile = document.createElement('style');
6148
+ setTimeout(() => {
6149
+ cssFile.innerHTML = this.clientStylingUrl;
6150
+ this.stylingContainer.prepend(cssFile);
6151
+ }, 1);
6152
+ }
6153
+ formatDate() {
6154
+ const dateOptions = { month: 'long' };
6155
+ let currentDate = new Date(this.startTime);
6156
+ const setTranslation = () => {
6157
+ return (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6158
+ translate$1('startedAt', this.language) :
6159
+ translate$1('startingAt', this.language);
6160
+ };
6161
+ if (this.shortStart) {
6162
+ let startTimeAsString = hooks(currentDate).format(this.shortstartformat);
6163
+ this.startdate = (this.state === 'Running' || this.state == 'Closing' || this.state == 'Closed') ?
6164
+ translate$1('startedAtWithTime', this.language) + startTimeAsString :
6165
+ translate$1('startingAtWithTime', this.language) + startTimeAsString;
6166
+ }
6167
+ else {
6168
+ let currentMonthKey = new Intl.DateTimeFormat('en', dateOptions).format(currentDate);
6169
+ let currentDay = currentDate.getDate();
6170
+ let currentHour = currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric', hour12: false });
6171
+ this.startdate =
6172
+ `${currentDay}` + ' ' +
6173
+ translate$1(`${currentMonthKey}`, this.language) + ', ' +
6174
+ setTranslation() +
6175
+ ` ${currentHour}`;
6176
+ }
6177
+ }
6090
6178
  componentWillLoad() {
6091
6179
  if (!this.useEvent && this.startTime) {
6092
6180
  this.formatDate();
@@ -6094,9 +6182,23 @@ const CasinoTournamentBanner = class {
6094
6182
  if (this.state) {
6095
6183
  this.stateText = this.getStateText(this.state);
6096
6184
  }
6185
+ if (this.startTime && this.endTime) {
6186
+ this.getDuration();
6187
+ this.getTextByDiff(this.tournamentLeftDays);
6188
+ }
6189
+ if (this.tournamentLeftDays < 1440 && this.tournamentLeftDays > 0) {
6190
+ this.durationInterval = window.setInterval(() => {
6191
+ if (this.startTime && this.endTime) {
6192
+ this.getDuration();
6193
+ }
6194
+ }, 1000);
6195
+ }
6196
+ else {
6197
+ clearInterval(this.durationInterval);
6198
+ }
6097
6199
  }
6098
6200
  termsClick(tournamentId) {
6099
- window.postMessage({ type: 'termsAndConditionsClicked', tournamentId: tournamentId }, window.location.href);
6201
+ window.postMessage({ type: 'TournamentTermsConditions', tournamentId: tournamentId }, window.location.href);
6100
6202
  }
6101
6203
  render() {
6102
6204
  return index.h("div", { ref: el => this.stylingContainer = el, class: "TournamentBannerWrap" }, this.thumbnail && index.h("div", { class: "TournamentBanner", part: "TournamentBanner" }, index.h("img", { src: this.thumbnail, alt: "", class: `TournamentBannerBg ${this.cardMode && this.state ? this.state : ''}` }), !this.cardMode &&
@@ -6104,11 +6206,12 @@ const CasinoTournamentBanner = class {
6104
6206
  index.h("span", { class: "Tag Date" }, this.showCalendar &&
6105
6207
  index.h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.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)), index.h("div", { class: "BannerInfo", part: "BannerInfo" }, this.enrolled &&
6106
6208
  index.h("span", { class: "Tag Enroll" }, this.showCheck &&
6107
- index.h("svg", { class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, index.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$1('enrolled', this.language)))), this.cardMode && index.h("div", { class: "TournamentBannerThumb", part: "TournamentBannerThumb" }, index.h("div", { class: "ThumbTitle", part: "ThumbTitle" }, translate$1('tournament', this.language)), index.h("div", { class: "ThumbName", part: "ThumbName" }, this.nameOrTitle), index.h("div", { class: "ThumbState" }, this.enrolled ?
6209
+ index.h("svg", { class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, index.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$1('enrolled', this.language)))), this.cardMode && index.h("div", { class: "TournamentBannerThumb", part: "TournamentBannerThumb" }, index.h("div", { class: "ThumbTitle", part: "ThumbTitle" }, translate$1('tournament', this.language)), index.h("div", { class: "ThumbName", part: "ThumbName" }, this.nameOrTitle), index.h("div", { class: "ThumbState" }, this.session && this.enrolled ?
6108
6210
  index.h("span", { class: "Tag Join" }, index.h("svg", { class: "EnrollCheck", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none" }, index.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$1('joined', this.language))
6109
6211
  :
6110
- this.state != 'Closed' &&
6111
- index.h("span", { class: "Tag Join" }, index.h("svg", { class: "JoinPlus", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "13", viewBox: "0 0 12 13", fill: "none" }, index.h("path", { d: "M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z", fill: "white" })), translate$1('join', this.language)), this.state == 'Running' && index.h("span", { class: `Tag State ${this.state}` }, this.stateText), (this.state == 'Unstarted' || this.state == 'Upcoming' || this.state == 'Closed') &&
6212
+ this.session && this.state != 'Closed' &&
6213
+ index.h("span", { class: "Tag Join" }, index.h("svg", { class: "JoinPlus", xmlns: "http://www.w3.org/2000/svg", width: "12", height: "13", viewBox: "0 0 12 13", fill: "none" }, index.h("path", { d: "M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z", fill: "white" })), translate$1('join', this.language)), this.state == 'Running' && index.h("span", { class: `Tag State ${this.state}` }, this.stateText, this.showRunningDate &&
6214
+ index.h("span", { class: "TagRemain" }, this.showRemain, " ", translate$1('left', this.language))), (this.state == 'Unstarted' || this.state == 'Upcoming' || this.state == 'Closed') &&
6112
6215
  index.h("span", { class: `Tag Date ${this.state}` }, this.showCalendar &&
6113
6216
  index.h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.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)), index.h("div", { class: "ThumbButtons" }, index.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 })), index.h("div", { class: "ThumbTC" }, index.h("span", { onClick: this.termsClick.bind(this, this.tournamentId) }, translate$1('terms', this.language))))));
6114
6217
  }
@@ -6448,26 +6551,26 @@ const casinoTournamentButtonsCss = ":host{display:block}.ButtonGroup{display:fle
6448
6551
  const CasinoTournamentButtons = class {
6449
6552
  constructor(hostRef) {
6450
6553
  index.registerInstance(this, hostRef);
6554
+ /**
6555
+ * Player enrolled
6556
+ */
6451
6557
  this.enrolled = false;
6558
+ /**
6559
+ * Show read more button
6560
+ */
6452
6561
  this.showReadMore = false;
6562
+ /**
6563
+ * Client custom styling via inline styles
6564
+ */
6453
6565
  this.clientStyling = '';
6566
+ /**
6567
+ * Client custom styling via url
6568
+ */
6454
6569
  this.clientStylingUrl = '';
6455
6570
  this.limitStylingAppends = false;
6456
6571
  this.joinButtonLoading = false;
6457
6572
  this.errorJoin = false;
6458
6573
  this.errorJoinConcurrently = false;
6459
- this.setClientStyling = () => {
6460
- let sheet = document.createElement('style');
6461
- sheet.innerHTML = this.clientStyling;
6462
- this.stylingContainer.prepend(sheet);
6463
- };
6464
- this.setClientStylingURL = () => {
6465
- let cssFile = document.createElement('style');
6466
- setTimeout(() => {
6467
- cssFile.innerHTML = this.clientStylingUrl;
6468
- this.stylingContainer.prepend(cssFile);
6469
- }, 1);
6470
- };
6471
6574
  }
6472
6575
  componentDidRender() {
6473
6576
  if (!this.limitStylingAppends && this.stylingContainer) {
@@ -6478,6 +6581,18 @@ const CasinoTournamentButtons = class {
6478
6581
  this.limitStylingAppends = true;
6479
6582
  }
6480
6583
  }
6584
+ setClientStyling() {
6585
+ let sheet = document.createElement('style');
6586
+ sheet.innerHTML = this.clientStyling;
6587
+ this.stylingContainer.prepend(sheet);
6588
+ }
6589
+ setClientStylingURL() {
6590
+ let cssFile = document.createElement('style');
6591
+ setTimeout(() => {
6592
+ cssFile.innerHTML = this.clientStylingUrl;
6593
+ this.stylingContainer.prepend(cssFile);
6594
+ }, 1);
6595
+ }
6481
6596
  loginAction() {
6482
6597
  if (this.loginEvent) {
6483
6598
  window.postMessage({ type: this.loginEvent, transition: 'Login' }, window.location.href);
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["casino-tournament-banner_2.cjs",[[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);
17
+ return index.bootstrapLazy([["casino-tournament-banner_2.cjs",[[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);
18
18
  });
19
19
  };
20
20
 
@@ -44,11 +44,17 @@
44
44
  padding: 6px;
45
45
  font-size: 10px;
46
46
  display: flex;
47
+ align-items: center;
48
+ height: 13px;
47
49
  }
48
50
  .Tag.Closed {
49
51
  filter: grayscale(1);
50
52
  }
51
53
 
54
+ .TagRemain {
55
+ text-indent: 5px;
56
+ }
57
+
52
58
  .Date {
53
59
  gap: 4px;
54
60
  background: #FF7500;