@everymatrix/casino-tournament-duration 1.31.2 → 1.32.4

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 (48) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +3 -2
  3. package/dist/casino-tournament-duration/casino-tournament-duration.esm.js +0 -1
  4. package/dist/casino-tournament-duration/index.esm.js +0 -0
  5. package/dist/casino-tournament-duration/p-0fd13b12.js +0 -1
  6. package/dist/casino-tournament-duration/p-a7d04af2.entry.js +0 -1
  7. package/dist/cjs/casino-tournament-duration.cjs.entry.js +0 -222
  8. package/dist/cjs/casino-tournament-duration.cjs.js +0 -19
  9. package/dist/cjs/index-5642eca0.js +0 -1138
  10. package/dist/cjs/index.cjs.js +0 -2
  11. package/dist/cjs/loader.cjs.js +0 -21
  12. package/dist/collection/collection-manifest.json +0 -12
  13. package/dist/collection/components/casino-tournament-duration/casino-tournament-duration.css +0 -60
  14. package/dist/collection/components/casino-tournament-duration/casino-tournament-duration.js +0 -272
  15. package/dist/collection/index.js +0 -1
  16. package/dist/collection/utils/locale.utils.js +0 -95
  17. package/dist/collection/utils/utils.js +0 -3
  18. package/dist/components/casino-tournament-duration.d.ts +0 -11
  19. package/dist/components/casino-tournament-duration.js +0 -249
  20. package/dist/components/index.d.ts +0 -26
  21. package/dist/components/index.js +0 -1
  22. package/dist/esm/casino-tournament-duration.entry.js +0 -218
  23. package/dist/esm/casino-tournament-duration.js +0 -17
  24. package/dist/esm/index-53cc9b80.js +0 -1112
  25. package/dist/esm/index.js +0 -1
  26. package/dist/esm/loader.js +0 -17
  27. package/dist/esm/polyfills/core-js.js +0 -11
  28. package/dist/esm/polyfills/css-shim.js +0 -1
  29. package/dist/esm/polyfills/dom.js +0 -79
  30. package/dist/esm/polyfills/es5-html-element.js +0 -1
  31. package/dist/esm/polyfills/index.js +0 -34
  32. package/dist/esm/polyfills/system.js +0 -6
  33. package/dist/index.cjs.js +0 -1
  34. package/dist/index.js +0 -1
  35. package/dist/stencil.config.js +0 -22
  36. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/casino-tournament-duration/.stencil/packages/casino-tournament-duration/stencil.config.d.ts +0 -2
  37. package/dist/types/components/casino-tournament-duration/casino-tournament-duration.d.ts +0 -46
  38. package/dist/types/components.d.ts +0 -93
  39. package/dist/types/index.d.ts +0 -1
  40. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  41. package/dist/types/utils/locale.utils.d.ts +0 -2
  42. package/dist/types/utils/utils.d.ts +0 -1
  43. package/loader/cdn.js +0 -3
  44. package/loader/index.cjs.js +0 -3
  45. package/loader/index.d.ts +0 -12
  46. package/loader/index.es2017.js +0 -3
  47. package/loader/index.js +0 -4
  48. package/loader/package.json +0 -10
@@ -1,249 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
-
3
- const DEFAULT_LANGUAGE = 'en';
4
- const TRANSLATIONS = {
5
- en: {
6
- finished: 'Finished',
7
- starting: 'Starting in ',
8
- left: 'left',
9
- minutes: 'minutes',
10
- hours: 'hours',
11
- days: 'days',
12
- },
13
- hr: {
14
- finished: 'Gotovo',
15
- starting: 'Počinje u ',
16
- left: 'lijevo',
17
- minutes: 'minute',
18
- hours: 'sati',
19
- days: 'dani',
20
- },
21
- 'zh-hk': {
22
- finished: '完成的',
23
- starting: '開始於',
24
- left: '剩下',
25
- minutes: '分鐘',
26
- hours: '小時',
27
- days: '天',
28
- },
29
- fr: {
30
- finished: 'Fini',
31
- starting: 'Début dans ',
32
- left: 'restant',
33
- minutes: 'minutes',
34
- hours: 'heures',
35
- days: 'jours',
36
- },
37
- ro: {
38
- finished: 'Finalizat',
39
- starting: 'Începe în',
40
- left: 'rămase',
41
- minutes: 'minute',
42
- hours: 'ore',
43
- days: 'zile',
44
- },
45
- tr: {
46
- finished: 'Sona ermiş',
47
- starting: 'Başlamasına ',
48
- left: 'kaldı',
49
- minutes: 'dakika',
50
- hours: 'saat',
51
- days: 'gün',
52
- },
53
- el: {
54
- finished: 'Ολοκληρωμένα',
55
- starting: 'Αρχίζει σε ',
56
- left: 'απομένουν',
57
- minutes: 'λεπτά',
58
- hours: 'ώρες',
59
- days: 'ημέρες',
60
- },
61
- es: {
62
- finished: 'Finalizado',
63
- starting: 'Iniciando en ',
64
- left: 'izquierda',
65
- minutes: 'minutos',
66
- hours: 'horas',
67
- days: 'días',
68
- },
69
- hu: {
70
- finished: 'Befejezve',
71
- starting: 'Kezdésig',
72
- left: 'bal',
73
- minutes: 'perc',
74
- hours: 'óra',
75
- days: 'nap',
76
- },
77
- pt: {
78
- finished: 'Finalizado',
79
- starting: 'Começando em',
80
- left: 'Abandonou',
81
- minutes: 'Minutos',
82
- hours: 'Horas',
83
- days: 'Dias',
84
- }
85
- };
86
- const translate = (key, customLang) => {
87
- var _a, _b;
88
- const lang = customLang;
89
- return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
90
- };
91
- const getTranslations = (data) => {
92
- Object.keys(data).forEach((item) => {
93
- for (let key in data[item]) {
94
- TRANSLATIONS[item][key] = data[item][key];
95
- }
96
- });
97
- };
98
-
99
- const casinoTournamentDurationCss = ":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;font-weight:700;padding-top:6px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}";
100
-
101
- const CasinoTournamentDuration$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
102
- constructor() {
103
- super();
104
- this.__registerHost();
105
- this.__attachShadow();
106
- /**
107
- * Client custom styling via inline styles
108
- */
109
- this.clientStyling = '';
110
- /**
111
- * Client custom styling via url
112
- */
113
- this.clientStylingUrl = '';
114
- this.limitStylingAppends = false;
115
- }
116
- getDateTimeDiff(dateString1, dateString2) {
117
- return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
118
- }
119
- getDuration() {
120
- const dateNow = new Date();
121
- this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
122
- this.tournamentUntilStartDays = this.getDateTimeDiff(dateNow, this.startTime);
123
- this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
124
- }
125
- formatDate(date) {
126
- const dateOptions = { month: 'long' };
127
- let currentDate = new Date(date);
128
- let currentMonth = new Intl.DateTimeFormat(this.language, dateOptions).format(currentDate);
129
- let currentDay = currentDate.getDate();
130
- return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric' })}, ${currentDate.getUTCFullYear()}`;
131
- }
132
- getTextByDiff(diff) {
133
- const renderText = (amount, type) => amount + ' ' + translate(type);
134
- const renderTimeColumn = (column) => {
135
- const columnInt = Math.floor(column);
136
- if (columnInt < 10) {
137
- return `0${columnInt}`;
138
- }
139
- else {
140
- return `${columnInt}`;
141
- }
142
- };
143
- if (diff < 1440) {
144
- const hours = diff / 60;
145
- const minutes = diff % 60;
146
- const seconds = (minutes - Math.floor(minutes)) * 60;
147
- return [hours, minutes, seconds].map(c => renderTimeColumn(c)).join(':');
148
- }
149
- return renderText(Math.ceil(diff / (60 * 24)), 'days');
150
- }
151
- getProgress() {
152
- if (this.tournamentLeftDays <= 0)
153
- return 100;
154
- const tournamentDuration = this.getDateTimeDiff(this.startTime, this.endTime);
155
- const step = 100 / tournamentDuration;
156
- const width = Math.floor((tournamentDuration - this.tournamentLeftDays) * step);
157
- return width;
158
- }
159
- componentWillLoad() {
160
- if (this.translationData) {
161
- getTranslations(JSON.parse(this.translationData));
162
- }
163
- if (this.startTime && this.endTime) {
164
- this.getDuration();
165
- this.getTextByDiff(this.tournamentLeftDays);
166
- }
167
- if (this.tournamentLeftDays < 1440 && this.tournamentLeftDays > 0) {
168
- this.durationInterval = window.setInterval(() => {
169
- if (this.startTime && this.endTime) {
170
- this.getDuration();
171
- }
172
- }, 1000);
173
- }
174
- else {
175
- clearInterval(this.durationInterval);
176
- }
177
- }
178
- componentDidRender() {
179
- if (!this.limitStylingAppends && this.host) {
180
- if (this.clientStyling)
181
- this.setClientStyling();
182
- if (this.clientStylingUrl)
183
- this.setClientStylingURL();
184
- this.limitStylingAppends = true;
185
- }
186
- }
187
- setClientStyling() {
188
- const sheet = new CSSStyleSheet();
189
- // @ts-ignore
190
- sheet.replace(this.clientStyling);
191
- // @ts-ignore
192
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
193
- }
194
- setClientStylingURL() {
195
- let url = new URL(this.clientStylingUrl);
196
- fetch(url.href)
197
- .then((res) => res.text())
198
- .then((data) => {
199
- const sheet = new CSSStyleSheet();
200
- // @ts-ignore
201
- sheet.replace(data);
202
- // @ts-ignore
203
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
204
- });
205
- }
206
- render() {
207
- if (this.startTime && this.endTime) {
208
- return h("div", { class: "TournamentDurationWrap" }, h("div", { class: "TournamentDuration" }, h("div", { class: "TournamentDates" }, h("div", { class: "StartDate", part: "StartDate" }, this.formatDate(this.startTime)), h("div", { class: "EndDate", part: "EndDate" }, this.formatDate(this.endTime))), h("div", { class: "ProgressBarWrapper" }, h("div", { class: "ProgressBar", part: "ProgressBar" }, this.status == 'Finished' || this.status == 'Closing' || this.status == 'Closed' ?
209
- h("div", null, h("div", { class: "ProgressBarFillEnd", part: "ProgressBarFillEnd" }), h("div", { class: "Finished", part: "Finished" }, translate('finished', this.language))) :
210
- this.tournamentUntilStartDays > 0 ?
211
- h("div", null, h("div", { class: "ProgressBarFillStarting", part: "ProgressBarFillStarting" }), h("div", { class: "Remaining", part: "Remaining" }, translate('starting', this.language), " ", this.getTextByDiff(this.tournamentUntilStartDays))) :
212
- h("div", null, h("div", { class: "ProgressBarFill", part: "ProgressBarFill", style: { width: `${this.getProgress()}%` } }), this.tournamentLeftDays > 0 &&
213
- h("div", { class: "Remaining", part: "Remaining" }, this.showRemain, " ", translate('left', this.language)))))));
214
- }
215
- }
216
- get host() { return this; }
217
- static get style() { return casinoTournamentDurationCss; }
218
- }, [1, "casino-tournament-duration", {
219
- "startTime": [1, "start-time"],
220
- "endTime": [1, "end-time"],
221
- "status": [1],
222
- "language": [1],
223
- "clientStyling": [1, "client-styling"],
224
- "clientStylingUrl": [1, "client-styling-url"],
225
- "translationData": [520, "translation-data"],
226
- "tournamentUntilStartDays": [32],
227
- "tournamentLeftDays": [32],
228
- "showRemain": [32],
229
- "limitStylingAppends": [32],
230
- "durationInterval": [32]
231
- }]);
232
- function defineCustomElement$1() {
233
- if (typeof customElements === "undefined") {
234
- return;
235
- }
236
- const components = ["casino-tournament-duration"];
237
- components.forEach(tagName => { switch (tagName) {
238
- case "casino-tournament-duration":
239
- if (!customElements.get(tagName)) {
240
- customElements.define(tagName, CasinoTournamentDuration$1);
241
- }
242
- break;
243
- } });
244
- }
245
-
246
- const CasinoTournamentDuration = CasinoTournamentDuration$1;
247
- const defineCustomElement = defineCustomElement$1;
248
-
249
- export { CasinoTournamentDuration, defineCustomElement };
@@ -1,26 +0,0 @@
1
- /* CasinoTournamentDuration custom elements */
2
-
3
- import type { Components, JSX } from "../types/components";
4
-
5
- /**
6
- * Used to manually set the base path where assets can be found.
7
- * If the script is used as "module", it's recommended to use "import.meta.url",
8
- * such as "setAssetPath(import.meta.url)". Other options include
9
- * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
10
- * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
11
- * But do note that this configuration depends on how your script is bundled, or lack of
12
- * bundling, and where your assets can be loaded from. Additionally custom bundling
13
- * will have to ensure the static assets are copied to its build directory.
14
- */
15
- export declare const setAssetPath: (path: string) => void;
16
-
17
- export interface SetPlatformOptions {
18
- raf?: (c: FrameRequestCallback) => number;
19
- ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
20
- rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
21
- }
22
- export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
23
-
24
- export type { Components, JSX };
25
-
26
- export * from '../types';
@@ -1 +0,0 @@
1
- export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
@@ -1,218 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index-53cc9b80.js';
2
-
3
- const DEFAULT_LANGUAGE = 'en';
4
- const TRANSLATIONS = {
5
- en: {
6
- finished: 'Finished',
7
- starting: 'Starting in ',
8
- left: 'left',
9
- minutes: 'minutes',
10
- hours: 'hours',
11
- days: 'days',
12
- },
13
- hr: {
14
- finished: 'Gotovo',
15
- starting: 'Počinje u ',
16
- left: 'lijevo',
17
- minutes: 'minute',
18
- hours: 'sati',
19
- days: 'dani',
20
- },
21
- 'zh-hk': {
22
- finished: '完成的',
23
- starting: '開始於',
24
- left: '剩下',
25
- minutes: '分鐘',
26
- hours: '小時',
27
- days: '天',
28
- },
29
- fr: {
30
- finished: 'Fini',
31
- starting: 'Début dans ',
32
- left: 'restant',
33
- minutes: 'minutes',
34
- hours: 'heures',
35
- days: 'jours',
36
- },
37
- ro: {
38
- finished: 'Finalizat',
39
- starting: 'Începe în',
40
- left: 'rămase',
41
- minutes: 'minute',
42
- hours: 'ore',
43
- days: 'zile',
44
- },
45
- tr: {
46
- finished: 'Sona ermiş',
47
- starting: 'Başlamasına ',
48
- left: 'kaldı',
49
- minutes: 'dakika',
50
- hours: 'saat',
51
- days: 'gün',
52
- },
53
- el: {
54
- finished: 'Ολοκληρωμένα',
55
- starting: 'Αρχίζει σε ',
56
- left: 'απομένουν',
57
- minutes: 'λεπτά',
58
- hours: 'ώρες',
59
- days: 'ημέρες',
60
- },
61
- es: {
62
- finished: 'Finalizado',
63
- starting: 'Iniciando en ',
64
- left: 'izquierda',
65
- minutes: 'minutos',
66
- hours: 'horas',
67
- days: 'días',
68
- },
69
- hu: {
70
- finished: 'Befejezve',
71
- starting: 'Kezdésig',
72
- left: 'bal',
73
- minutes: 'perc',
74
- hours: 'óra',
75
- days: 'nap',
76
- },
77
- pt: {
78
- finished: 'Finalizado',
79
- starting: 'Começando em',
80
- left: 'Abandonou',
81
- minutes: 'Minutos',
82
- hours: 'Horas',
83
- days: 'Dias',
84
- }
85
- };
86
- const translate = (key, customLang) => {
87
- var _a, _b;
88
- const lang = customLang;
89
- return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
90
- };
91
- const getTranslations = (data) => {
92
- Object.keys(data).forEach((item) => {
93
- for (let key in data[item]) {
94
- TRANSLATIONS[item][key] = data[item][key];
95
- }
96
- });
97
- };
98
-
99
- const casinoTournamentDurationCss = ":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;font-weight:700;padding-top:6px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}";
100
-
101
- const CasinoTournamentDuration = class {
102
- constructor(hostRef) {
103
- registerInstance(this, hostRef);
104
- /**
105
- * Client custom styling via inline styles
106
- */
107
- this.clientStyling = '';
108
- /**
109
- * Client custom styling via url
110
- */
111
- this.clientStylingUrl = '';
112
- this.limitStylingAppends = false;
113
- }
114
- getDateTimeDiff(dateString1, dateString2) {
115
- return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
116
- }
117
- getDuration() {
118
- const dateNow = new Date();
119
- this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
120
- this.tournamentUntilStartDays = this.getDateTimeDiff(dateNow, this.startTime);
121
- this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
122
- }
123
- formatDate(date) {
124
- const dateOptions = { month: 'long' };
125
- let currentDate = new Date(date);
126
- let currentMonth = new Intl.DateTimeFormat(this.language, dateOptions).format(currentDate);
127
- let currentDay = currentDate.getDate();
128
- return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric' })}, ${currentDate.getUTCFullYear()}`;
129
- }
130
- getTextByDiff(diff) {
131
- const renderText = (amount, type) => amount + ' ' + translate(type);
132
- const renderTimeColumn = (column) => {
133
- const columnInt = Math.floor(column);
134
- if (columnInt < 10) {
135
- return `0${columnInt}`;
136
- }
137
- else {
138
- return `${columnInt}`;
139
- }
140
- };
141
- if (diff < 1440) {
142
- const hours = diff / 60;
143
- const minutes = diff % 60;
144
- const seconds = (minutes - Math.floor(minutes)) * 60;
145
- return [hours, minutes, seconds].map(c => renderTimeColumn(c)).join(':');
146
- }
147
- return renderText(Math.ceil(diff / (60 * 24)), 'days');
148
- }
149
- getProgress() {
150
- if (this.tournamentLeftDays <= 0)
151
- return 100;
152
- const tournamentDuration = this.getDateTimeDiff(this.startTime, this.endTime);
153
- const step = 100 / tournamentDuration;
154
- const width = Math.floor((tournamentDuration - this.tournamentLeftDays) * step);
155
- return width;
156
- }
157
- componentWillLoad() {
158
- if (this.translationData) {
159
- getTranslations(JSON.parse(this.translationData));
160
- }
161
- if (this.startTime && this.endTime) {
162
- this.getDuration();
163
- this.getTextByDiff(this.tournamentLeftDays);
164
- }
165
- if (this.tournamentLeftDays < 1440 && this.tournamentLeftDays > 0) {
166
- this.durationInterval = window.setInterval(() => {
167
- if (this.startTime && this.endTime) {
168
- this.getDuration();
169
- }
170
- }, 1000);
171
- }
172
- else {
173
- clearInterval(this.durationInterval);
174
- }
175
- }
176
- componentDidRender() {
177
- if (!this.limitStylingAppends && this.host) {
178
- if (this.clientStyling)
179
- this.setClientStyling();
180
- if (this.clientStylingUrl)
181
- this.setClientStylingURL();
182
- this.limitStylingAppends = true;
183
- }
184
- }
185
- setClientStyling() {
186
- const sheet = new CSSStyleSheet();
187
- // @ts-ignore
188
- sheet.replace(this.clientStyling);
189
- // @ts-ignore
190
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
191
- }
192
- setClientStylingURL() {
193
- let url = new URL(this.clientStylingUrl);
194
- fetch(url.href)
195
- .then((res) => res.text())
196
- .then((data) => {
197
- const sheet = new CSSStyleSheet();
198
- // @ts-ignore
199
- sheet.replace(data);
200
- // @ts-ignore
201
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
202
- });
203
- }
204
- render() {
205
- if (this.startTime && this.endTime) {
206
- return h("div", { class: "TournamentDurationWrap" }, h("div", { class: "TournamentDuration" }, h("div", { class: "TournamentDates" }, h("div", { class: "StartDate", part: "StartDate" }, this.formatDate(this.startTime)), h("div", { class: "EndDate", part: "EndDate" }, this.formatDate(this.endTime))), h("div", { class: "ProgressBarWrapper" }, h("div", { class: "ProgressBar", part: "ProgressBar" }, this.status == 'Finished' || this.status == 'Closing' || this.status == 'Closed' ?
207
- h("div", null, h("div", { class: "ProgressBarFillEnd", part: "ProgressBarFillEnd" }), h("div", { class: "Finished", part: "Finished" }, translate('finished', this.language))) :
208
- this.tournamentUntilStartDays > 0 ?
209
- h("div", null, h("div", { class: "ProgressBarFillStarting", part: "ProgressBarFillStarting" }), h("div", { class: "Remaining", part: "Remaining" }, translate('starting', this.language), " ", this.getTextByDiff(this.tournamentUntilStartDays))) :
210
- h("div", null, h("div", { class: "ProgressBarFill", part: "ProgressBarFill", style: { width: `${this.getProgress()}%` } }), this.tournamentLeftDays > 0 &&
211
- h("div", { class: "Remaining", part: "Remaining" }, this.showRemain, " ", translate('left', this.language)))))));
212
- }
213
- }
214
- get host() { return getElement(this); }
215
- };
216
- CasinoTournamentDuration.style = casinoTournamentDurationCss;
217
-
218
- export { CasinoTournamentDuration as casino_tournament_duration };
@@ -1,17 +0,0 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-53cc9b80.js';
2
-
3
- /*
4
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
5
- */
6
- const patchBrowser = () => {
7
- const importMeta = import.meta.url;
8
- const opts = {};
9
- if (importMeta !== '') {
10
- opts.resourcesUrl = new URL('.', importMeta).href;
11
- }
12
- return promiseResolve(opts);
13
- };
14
-
15
- patchBrowser().then(options => {
16
- return bootstrapLazy([["casino-tournament-duration",[[1,"casino-tournament-duration",{"startTime":[1,"start-time"],"endTime":[1,"end-time"],"status":[1],"language":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationData":[520,"translation-data"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]}]]]], options);
17
- });