@everymatrix/lottery-tipping-ticket-controller 1.94.4 → 1.94.6

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 (23) hide show
  1. package/dist/cjs/{general-tooltip_7.cjs.entry.js → general-tooltip_8.cjs.entry.js} +185 -322
  2. package/dist/cjs/index-b8586f2f.js +2 -2
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{lottery-tipping-ticket-controller-2ef33643.js → lottery-tipping-ticket-controller-3b1e9667.js} +9075 -8987
  6. package/dist/cjs/lottery-tipping-ticket-controller.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +6 -0
  8. package/dist/collection/components/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.css +8 -0
  9. package/dist/collection/components/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.js +48 -7
  10. package/dist/collection/utils/locale.utils.js +1 -0
  11. package/dist/esm/{general-tooltip_7.entry.js → general-tooltip_8.entry.js} +186 -324
  12. package/dist/esm/index-84443a76.js +2 -2
  13. package/dist/esm/index.js +1 -1
  14. package/dist/esm/loader.js +1 -1
  15. package/dist/esm/{lottery-tipping-ticket-controller-d4128bfe.js → lottery-tipping-ticket-controller-2d4fe12d.js} +9075 -8986
  16. package/dist/esm/lottery-tipping-ticket-controller.js +1 -1
  17. package/dist/lottery-tipping-ticket-controller/general-tooltip_8.entry.js +1 -0
  18. package/dist/lottery-tipping-ticket-controller/index.esm.js +1 -1
  19. package/dist/lottery-tipping-ticket-controller/{lottery-tipping-ticket-controller-d4128bfe.js → lottery-tipping-ticket-controller-2d4fe12d.js} +241 -241
  20. package/dist/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.esm.js +1 -1
  21. package/dist/types/components/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.d.ts +3 -1
  22. package/package.json +1 -1
  23. package/dist/lottery-tipping-ticket-controller/general-tooltip_7.entry.js +0 -1
@@ -1,240 +1,6 @@
1
1
  import { r as registerInstance, h, g as getElement, c as createEvent, a as getAssetPath } from './index-84443a76.js';
2
- import { r as requiredArgs, t as toDate, s as setClientStyling, a as setClientStylingURL, b as setStreamStyling, p as parseISO, f as format } from './lottery-tipping-ticket-controller-d4128bfe.js';
3
- export { L as lottery_tipping_ticket_controller } from './lottery-tipping-ticket-controller-d4128bfe.js';
4
-
5
- /**
6
- * @name startOfDay
7
- * @category Day Helpers
8
- * @summary Return the start of a day for the given date.
9
- *
10
- * @description
11
- * Return the start of a day for the given date.
12
- * The result will be in the local timezone.
13
- *
14
- * @param {Date|Number} date - the original date
15
- * @returns {Date} the start of a day
16
- * @throws {TypeError} 1 argument required
17
- *
18
- * @example
19
- * // The start of a day for 2 September 2014 11:55:00:
20
- * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
21
- * //=> Tue Sep 02 2014 00:00:00
22
- */
23
- function startOfDay(dirtyDate) {
24
- requiredArgs(1, arguments);
25
- var date = toDate(dirtyDate);
26
- date.setHours(0, 0, 0, 0);
27
- return date;
28
- }
29
-
30
- /**
31
- * @name isSameDay
32
- * @category Day Helpers
33
- * @summary Are the given dates in the same day (and year and month)?
34
- *
35
- * @description
36
- * Are the given dates in the same day (and year and month)?
37
- *
38
- * @param {Date|Number} dateLeft - the first date to check
39
- * @param {Date|Number} dateRight - the second date to check
40
- * @returns {Boolean} the dates are in the same day (and year and month)
41
- * @throws {TypeError} 2 arguments required
42
- *
43
- * @example
44
- * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
45
- * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
46
- * //=> true
47
- *
48
- * @example
49
- * // Are 4 September and 4 October in the same day?
50
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
51
- * //=> false
52
- *
53
- * @example
54
- * // Are 4 September, 2014 and 4 September, 2015 in the same day?
55
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
56
- * //=> false
57
- */
58
- function isSameDay(dirtyDateLeft, dirtyDateRight) {
59
- requiredArgs(2, arguments);
60
- var dateLeftStartOfDay = startOfDay(dirtyDateLeft);
61
- var dateRightStartOfDay = startOfDay(dirtyDateRight);
62
- return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
63
- }
64
-
65
- /**
66
- * @name differenceInMilliseconds
67
- * @category Millisecond Helpers
68
- * @summary Get the number of milliseconds between the given dates.
69
- *
70
- * @description
71
- * Get the number of milliseconds between the given dates.
72
- *
73
- * @param {Date|Number} dateLeft - the later date
74
- * @param {Date|Number} dateRight - the earlier date
75
- * @returns {Number} the number of milliseconds
76
- * @throws {TypeError} 2 arguments required
77
- *
78
- * @example
79
- * // How many milliseconds are between
80
- * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
81
- * const result = differenceInMilliseconds(
82
- * new Date(2014, 6, 2, 12, 30, 21, 700),
83
- * new Date(2014, 6, 2, 12, 30, 20, 600)
84
- * )
85
- * //=> 1100
86
- */
87
- function differenceInMilliseconds(dateLeft, dateRight) {
88
- requiredArgs(2, arguments);
89
- return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
90
- }
91
-
92
- var roundingMap = {
93
- ceil: Math.ceil,
94
- round: Math.round,
95
- floor: Math.floor,
96
- trunc: function trunc(value) {
97
- return value < 0 ? Math.ceil(value) : Math.floor(value);
98
- } // Math.trunc is not supported by IE
99
- };
100
-
101
- var defaultRoundingMethod = 'trunc';
102
- function getRoundingMethod(method) {
103
- return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
104
- }
105
-
106
- /**
107
- * @name differenceInSeconds
108
- * @category Second Helpers
109
- * @summary Get the number of seconds between the given dates.
110
- *
111
- * @description
112
- * Get the number of seconds between the given dates.
113
- *
114
- * @param {Date|Number} dateLeft - the later date
115
- * @param {Date|Number} dateRight - the earlier date
116
- * @param {Object} [options] - an object with options.
117
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
118
- * @returns {Number} the number of seconds
119
- * @throws {TypeError} 2 arguments required
120
- *
121
- * @example
122
- * // How many seconds are between
123
- * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?
124
- * const result = differenceInSeconds(
125
- * new Date(2014, 6, 2, 12, 30, 20, 0),
126
- * new Date(2014, 6, 2, 12, 30, 7, 999)
127
- * )
128
- * //=> 12
129
- */
130
- function differenceInSeconds(dateLeft, dateRight, options) {
131
- requiredArgs(2, arguments);
132
- var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;
133
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
134
- }
135
-
136
- /**
137
- * @name isBefore
138
- * @category Common Helpers
139
- * @summary Is the first date before the second one?
140
- *
141
- * @description
142
- * Is the first date before the second one?
143
- *
144
- * @param {Date|Number} date - the date that should be before the other one to return true
145
- * @param {Date|Number} dateToCompare - the date to compare with
146
- * @returns {Boolean} the first date is before the second date
147
- * @throws {TypeError} 2 arguments required
148
- *
149
- * @example
150
- * // Is 10 July 1989 before 11 February 1987?
151
- * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
152
- * //=> false
153
- */
154
- function isBefore(dirtyDate, dirtyDateToCompare) {
155
- requiredArgs(2, arguments);
156
- var date = toDate(dirtyDate);
157
- var dateToCompare = toDate(dirtyDateToCompare);
158
- return date.getTime() < dateToCompare.getTime();
159
- }
160
-
161
- /**
162
- * @name isToday
163
- * @category Day Helpers
164
- * @summary Is the given date today?
165
- * @pure false
166
- *
167
- * @description
168
- * Is the given date today?
169
- *
170
- * > ⚠️ Please note that this function is not present in the FP submodule as
171
- * > it uses `Date.now()` internally hence impure and can't be safely curried.
172
- *
173
- * @param {Date|Number} date - the date to check
174
- * @returns {Boolean} the date is today
175
- * @throws {TypeError} 1 argument required
176
- *
177
- * @example
178
- * // If today is 6 October 2014, is 6 October 14:00:00 today?
179
- * const result = isToday(new Date(2014, 9, 6, 14, 0))
180
- * //=> true
181
- */
182
- function isToday(dirtyDate) {
183
- requiredArgs(1, arguments);
184
- return isSameDay(dirtyDate, Date.now());
185
- }
186
-
187
- /**
188
- * @name isWithinInterval
189
- * @category Interval Helpers
190
- * @summary Is the given date within the interval?
191
- *
192
- * @description
193
- * Is the given date within the interval? (Including start and end.)
194
- *
195
- * @param {Date|Number} date - the date to check
196
- * @param {Interval} interval - the interval to check
197
- * @returns {Boolean} the date is within the interval
198
- * @throws {TypeError} 2 arguments required
199
- * @throws {RangeError} The start of an interval cannot be after its end
200
- * @throws {RangeError} Date in interval cannot be `Invalid Date`
201
- *
202
- * @example
203
- * // For the date within the interval:
204
- * isWithinInterval(new Date(2014, 0, 3), {
205
- * start: new Date(2014, 0, 1),
206
- * end: new Date(2014, 0, 7)
207
- * })
208
- * //=> true
209
- *
210
- * @example
211
- * // For the date outside of the interval:
212
- * isWithinInterval(new Date(2014, 0, 10), {
213
- * start: new Date(2014, 0, 1),
214
- * end: new Date(2014, 0, 7)
215
- * })
216
- * //=> false
217
- *
218
- * @example
219
- * // For date equal to interval start:
220
- * isWithinInterval(date, { start, end: date }) // => true
221
- *
222
- * @example
223
- * // For date equal to interval end:
224
- * isWithinInterval(date, { start: date, end }) // => true
225
- */
226
- function isWithinInterval(dirtyDate, interval) {
227
- requiredArgs(2, arguments);
228
- var time = toDate(dirtyDate).getTime();
229
- var startTime = toDate(interval.start).getTime();
230
- var endTime = toDate(interval.end).getTime();
231
-
232
- // Throw an exception if start date is after end date or if any date is `Invalid Date`
233
- if (!(startTime <= endTime)) {
234
- throw new RangeError('Invalid interval');
235
- }
236
- return time >= startTime && time <= endTime;
237
- }
2
+ import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling, p as parseISO, i as isBefore, f as format } from './lottery-tipping-ticket-controller-2d4fe12d.js';
3
+ export { L as lottery_tipping_ticket_controller } from './lottery-tipping-ticket-controller-2d4fe12d.js';
238
4
 
239
5
  const generalTooltipCss = ".general-tooltip-wrapper{display:inline-block;position:relative;line-height:0}.general-tooltip-container{display:contents;}.general-tooltip-popup{position:absolute;color:var(--emw--color-typography-inverse, #fff);background:var(--emw--color-background-inverse, #000);padding:8px 12px;border-radius:4px;font-size:0.875em;line-height:1.4;z-index:1000;opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;white-space:nowrap;pointer-events:none;}.general-tooltip-popup.visible{opacity:1;visibility:visible}.general-tooltip-arrow{position:absolute;width:0;height:0;border-style:solid}.general-tooltip-top{bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:8px;}.general-tooltip-top .general-tooltip-arrow{top:100%;left:50%;transform:translateX(-50%);border-width:6px 6px 0 6px;border-color:var(--emw--color-gray-300, #333) transparent transparent transparent}.general-tooltip-bottom{top:100%;left:50%;transform:translateX(-50%);margin-top:8px;}.general-tooltip-bottom .general-tooltip-arrow{bottom:100%;left:50%;transform:translateX(-50%);border-width:0 6px 6px 6px;border-color:transparent transparent var(--emw--color-gray-300, #333) transparent}.general-tooltip-left{right:100%;top:50%;transform:translateY(-50%);margin-right:8px;}.general-tooltip-left .general-tooltip-arrow{left:100%;top:50%;transform:translateY(-50%);border-width:6px 0 6px 6px;border-color:transparent transparent transparent var(--emw--color-gray-300, #333)}.general-tooltip-right{left:100%;top:50%;transform:translateY(-50%);margin-left:8px;}.general-tooltip-right .general-tooltip-arrow{right:100%;top:50%;transform:translateY(-50%);border-width:6px 6px 6px 0;border-color:transparent var(--emw--color-gray-300, #333) transparent transparent}";
240
6
  const GeneralTooltipStyle0 = generalTooltipCss;
@@ -320,6 +86,169 @@ const GeneralTooltip = class {
320
86
  };
321
87
  GeneralTooltip.style = GeneralTooltipStyle0;
322
88
 
89
+ const helperCountDownCss = ":host{display:block}.helper-count-down-container{display:flex;align-items:center}.helper-count-down-prefix{margin-right:4px}.helper-count-down-suffix{margin-left:4px}.helper-count-down-values{display:flex;align-items:center}.helper-count-down-item{display:flex;align-items:center;justify-content:center}.helper-count-down-item-num{font-variant-numeric:tabular-nums}";
90
+ const HelperCountDownStyle0 = helperCountDownCss;
91
+
92
+ const HelperCountDown = class {
93
+ constructor(hostRef) {
94
+ registerInstance(this, hostRef);
95
+ this.countDownChange = createEvent(this, "countDownChange", 7);
96
+ this.countDownFinish = createEvent(this, "countDownFinish", 7);
97
+ this.value = undefined;
98
+ this.format = 'HH:mm:ss';
99
+ this.prefix = undefined;
100
+ this.suffix = undefined;
101
+ this.mbSource = undefined;
102
+ this.clientStyling = undefined;
103
+ this.clientStylingUrl = undefined;
104
+ this.endTime = undefined;
105
+ this.timeObj = {
106
+ day: { str: '00', unit: '' },
107
+ hour: { str: '00', unit: '' },
108
+ minute: { str: '00', unit: '' },
109
+ second: { str: '00', unit: '' }
110
+ };
111
+ }
112
+ handleClientStylingChange(newValue, oldValue) {
113
+ if (newValue != oldValue) {
114
+ setClientStyling(this.stylingContainer, this.clientStyling);
115
+ }
116
+ }
117
+ handleClientStylingUrlChange(newValue, oldValue) {
118
+ if (newValue != oldValue) {
119
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
120
+ }
121
+ }
122
+ handleMbSourceChange(newValue, oldValue) {
123
+ if (newValue != oldValue) {
124
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
125
+ }
126
+ }
127
+ handleValueChange(newValue) {
128
+ this.setEndTime(newValue);
129
+ if (newValue) {
130
+ this.startCountDown();
131
+ }
132
+ else {
133
+ this.clearCountDown();
134
+ }
135
+ }
136
+ componentDidLoad() {
137
+ if (this.stylingContainer) {
138
+ if (this.mbSource)
139
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
140
+ if (this.clientStyling)
141
+ setClientStyling(this.stylingContainer, this.clientStyling);
142
+ if (this.clientStylingUrl)
143
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
144
+ }
145
+ this.setEndTime(this.value);
146
+ if (this.value)
147
+ this.startCountDown();
148
+ }
149
+ setEndTime(value) {
150
+ if (typeof value === 'string') {
151
+ // If it's a string, parse it and get the milliseconds
152
+ const time = parseISO(value).getTime();
153
+ this.endTime = isNaN(time) ? null : time;
154
+ }
155
+ else {
156
+ // If it's a number, use it directly
157
+ this.endTime = value;
158
+ }
159
+ }
160
+ disconnectedCallback() {
161
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
162
+ this.clearCountDown();
163
+ }
164
+ startCountDown() {
165
+ this.clearCountDown();
166
+ this.tick();
167
+ this.timer = setInterval(() => {
168
+ this.tick();
169
+ }, 1000);
170
+ }
171
+ clearCountDown() {
172
+ if (this.timer) {
173
+ clearInterval(this.timer);
174
+ this.timer = null;
175
+ }
176
+ }
177
+ tick() {
178
+ if (!this.endTime)
179
+ return;
180
+ let leftTime = this.endTime - Date.now();
181
+ if (leftTime <= 0) {
182
+ leftTime = 0;
183
+ this.clearCountDown();
184
+ this.countDownFinish.emit();
185
+ }
186
+ const d = Math.floor(leftTime / (1000 * 60 * 60 * 24));
187
+ const h = Math.floor((leftTime / (1000 * 60 * 60)) % 24);
188
+ const m = Math.floor((leftTime / 1000 / 60) % 60);
189
+ const s = Math.floor((leftTime / 1000) % 60);
190
+ const pad = (n) => (n < 10 ? `0${n}` : `${n}`);
191
+ this.timeObj = {
192
+ day: { str: pad(d), unit: 'd' },
193
+ hour: { str: pad(h), unit: 'h' },
194
+ minute: { str: pad(m), unit: 'm' },
195
+ second: { str: pad(s), unit: 's' }
196
+ };
197
+ const formatTime = this.getFormatTime();
198
+ this.countDownChange.emit({ leftTime, formatTime, legalTime: formatTime });
199
+ }
200
+ getFormatTime() {
201
+ return this.format
202
+ .replace('DD', this.timeObj.day.str)
203
+ .replace('HH', this.timeObj.hour.str)
204
+ .replace('mm', this.timeObj.minute.str)
205
+ .replace('ss', this.timeObj.second.str);
206
+ }
207
+ renderItems() {
208
+ const regex = /(DD|HH|mm|ss)|([\s\S]+?)(?=(DD|HH|mm|ss)|$)/g;
209
+ const items = [];
210
+ let match;
211
+ while ((match = regex.exec(this.format)) !== null) {
212
+ if (match[1]) {
213
+ let val = '';
214
+ switch (match[1]) {
215
+ case 'DD':
216
+ val = this.timeObj.day.str;
217
+ break;
218
+ case 'HH':
219
+ val = this.timeObj.hour.str;
220
+ break;
221
+ case 'mm':
222
+ val = this.timeObj.minute.str;
223
+ break;
224
+ case 'ss':
225
+ val = this.timeObj.second.str;
226
+ break;
227
+ }
228
+ items.push({ val, unit: '' });
229
+ }
230
+ else if (match[2]) {
231
+ if (items.length > 0) {
232
+ items[items.length - 1].unit = match[2];
233
+ }
234
+ }
235
+ }
236
+ return items.map((item, index) => {
237
+ return (h("div", { key: index + item.unit, class: "helper-count-down-item", part: "item" }, h("div", { class: "helper-count-down-item-num" }, item.val), h("div", { class: "helper-count-down-item-unit" }, item.unit)));
238
+ });
239
+ }
240
+ render() {
241
+ return (h("div", { key: 'b360412e045020b5ac0263c6ca56458f31eedb2c', class: "helper-count-down-container", ref: (el) => (this.stylingContainer = el) }, h("slot", { key: 'c72bed87fba869c842407b04e0cbfe038e5b7ea8' }), this.prefix && h("div", { key: '8d3ba9d60577421f81bae7bc76f52a774b17e1fe', class: "helper-count-down-prefix" }, this.prefix), h("div", { key: '187edf3b8eb6de85efe1a748fd8ef47a68e19611', class: "helper-count-down-values", part: "values" }, this.renderItems()), this.suffix && h("div", { key: '3a8e5d9561ecd3f52eff423bd43c8b60a261a17c', class: "helper-count-down-suffix" }, this.suffix)));
242
+ }
243
+ static get watchers() { return {
244
+ "clientStyling": ["handleClientStylingChange"],
245
+ "clientStylingUrl": ["handleClientStylingUrlChange"],
246
+ "mbSource": ["handleMbSourceChange"],
247
+ "value": ["handleValueChange"]
248
+ }; }
249
+ };
250
+ HelperCountDown.style = HelperCountDownStyle0;
251
+
323
252
  const DEFAULT_LANGUAGE$2 = 'en';
324
253
  const SUPPORTED_LANGUAGES$2 = ['ro', 'en', 'fr', 'ar', 'hr'];
325
254
  const TRANSLATIONS$2 = {
@@ -373,77 +302,17 @@ const resolveTranslationUrl$1 = async (translationUrl) => {
373
302
  }
374
303
  };
375
304
 
376
- const formatDate$1 = ({ date, type = 'date', format: format$1 }) => {
377
- try {
378
- const parsedDate = parseISO(date);
379
- if (isNaN(parsedDate.getTime())) {
380
- throw new Error(`Invalid date: ${date}`);
381
- }
382
- if (format$1)
383
- return format(parsedDate, format$1);
384
- let formatStr = 'dd/MM/yyyy';
385
- if (type === 'time') {
386
- formatStr = 'dd/MM/yyyy HH:mm:ss';
387
- }
388
- else if (type === 'week') {
389
- formatStr = 'ccc dd/MM/yyyy HH:mm:ss';
390
- }
391
- return format(parsedDate, formatStr);
392
- }
393
- catch (error) {
394
- console.error('Error formatting date:', error.message);
395
- return '';
396
- }
397
- };
398
- function formatTime(time) {
399
- if (!time)
400
- return;
401
- if (isToday(new Date(time))) {
402
- return formatDate$1({ date: time, format: 'HH:mm' });
403
- }
404
- return formatDate$1({ date: time, format: 'dd/MM/yyyy HH:mm' });
405
- }
406
- function formatCountdown(stopTime, _now) {
407
- if (!stopTime)
408
- return;
409
- const endTime = typeof stopTime === 'string' ? parseISO(stopTime) : stopTime;
410
- const now = _now && new Date();
411
- let totalSeconds = differenceInSeconds(endTime, now);
412
- if (totalSeconds < 0)
413
- return '0D 00H 00M 00S';
414
- const days = Math.floor(totalSeconds / 86400);
415
- totalSeconds %= 86400;
416
- const hours = Math.floor(totalSeconds / 3600);
417
- totalSeconds %= 3600;
418
- const minutes = Math.floor(totalSeconds / 60);
419
- const seconds = totalSeconds % 60;
420
- return `${days}D ${hours.toString().padStart(2, '0')}H ${minutes.toString().padStart(2, '0')}M ${seconds
421
- .toString()
422
- .padStart(2, '0')}S`;
423
- }
424
- function getWagerTime(startTime, stopTime) {
425
- const now = new Date();
426
- if (startTime && isBefore(now, parseISO(startTime))) {
427
- return { start: formatCountdown(startTime, now) };
428
- }
429
- if (startTime &&
430
- stopTime &&
431
- isWithinInterval(now, {
432
- start: parseISO(startTime),
433
- end: parseISO(stopTime)
434
- })) {
435
- return { end: formatTime(stopTime) };
436
- }
437
- return {};
438
- }
439
-
440
- const lotteryBannerCss = ":host {\n display: block;\n container-type: inline-size;\n}\n\n.lottery-banner {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--lottery-banner-gap, 0.5rem);\n padding: var(--lottery-banner-padding, 0px 20px);\n background: var(--lottery-banner-background, var(--emw--color-primary, #fed275));\n border-top: var(--lottery-banner-border-width, 2px) var(--lottery-banner-border-style, solid) var(--lottery-banner-border-color, var(--emw--color-primary, #fed275));\n border-bottom: var(--lottery-banner-border-width, 2px) var(--lottery-banner-border-style, solid) var(--lottery-banner-border-color, var(--emw--color-primary, #fed275));\n border-left: var(--lottery-banner-border-left, none);\n border-right: var(--lottery-banner-border-right, none);\n border-radius: var(--lottery-banner-border-radius, 0);\n white-space: nowrap;\n height: var(--lottery-banner-height, 50px);\n position: relative;\n box-sizing: border-box;\n}\n\n.lottery-banner__logo-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n}\n.lottery-banner__logo-wrapper img {\n height: 100%;\n object-fit: var(--lottery-banner-logo-object-fit, contain);\n}\n\n.lottery-banner__item--center {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.lottery-banner__title {\n text-align: center;\n font-size: var(--lottery-banner-title-font-size, 1.5rem);\n font-weight: 800;\n font-style: italic;\n letter-spacing: var(--lottery-banner-title-font-letter-spacing, 0.04em);\n color: var(--emw--color-typography, #000);\n}\n\n.lottery-banner__info {\n display: flex;\n align-items: center;\n gap: var(--lottery-banner-info-gap, 0.75rem);\n}\n\n.lottery-banner__info-item {\n font-size: var(--lottery-banner-info-font-size, 0.9rem);\n color: var(--lottery-banner-info-color, var(--emw--color-typography, #000));\n display: inline-flex;\n align-items: center;\n gap: 0.3rem;\n}\n\n.lottery-banner__info-item-label {\n color: var(--lottery-banner-info-label-color, var(--emw--color-typography, #000));\n}\n.lottery-banner__info-item-label__strong {\n font-weight: var(--lottery-banner-info-label-font-weight, 700);\n}\n\n.lottery-banner__info-item-value {\n font-weight: var(--lottery-banner-info-value-font-weight, inherit);\n color: var(--lottery-banner-info-value-color, var(--emw--color-typography, #000));\n}\n.lottery-banner__info-item-value__strong {\n font-weight: 700;\n}\n\n@container (max-width: 700px) {\n .lottery-banner {\n height: auto;\n padding: var(--lottery-banner-mobile-padding, 0.5rem 1rem);\n }\n .lottery-banner__title {\n flex-basis: 100%;\n text-align: var(--lottery-banner-mobile-title-text-align, left);\n }\n .lottery-banner__info {\n flex-direction: column;\n align-items: flex-start;\n gap: var(--lottery-banner-mobile-info-gap, 0.1rem);\n }\n}";
305
+ const lotteryBannerCss = ":host {\n display: block;\n container-type: inline-size;\n}\n\n.lottery-banner {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--lottery-banner-gap, 0.5rem);\n padding: var(--lottery-banner-padding, 0px 20px);\n background: var(--lottery-banner-background, var(--emw--color-primary, #fed275));\n border-top: var(--lottery-banner-border-width, 2px) var(--lottery-banner-border-style, solid) var(--lottery-banner-border-color, var(--emw--color-primary, #fed275));\n border-bottom: var(--lottery-banner-border-width, 2px) var(--lottery-banner-border-style, solid) var(--lottery-banner-border-color, var(--emw--color-primary, #fed275));\n border-left: var(--lottery-banner-border-left, none);\n border-right: var(--lottery-banner-border-right, none);\n border-radius: var(--lottery-banner-border-radius, 0);\n white-space: nowrap;\n height: var(--lottery-banner-height, 50px);\n position: relative;\n box-sizing: border-box;\n}\n\n.lottery-banner__logo-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n}\n.lottery-banner__logo-wrapper img {\n height: 100%;\n object-fit: var(--lottery-banner-logo-object-fit, contain);\n}\n\n.lottery-banner__item--center {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.lottery-banner__title {\n text-align: center;\n font-size: var(--lottery-banner-title-font-size, 1.5rem);\n font-weight: 800;\n font-style: italic;\n letter-spacing: var(--lottery-banner-title-font-letter-spacing, 0.04em);\n color: var(--emw--color-typography, #000);\n}\n\n.lottery-banner__info {\n display: flex;\n align-items: center;\n gap: var(--lottery-banner-info-gap, 0.75rem);\n}\n\n.lottery-banner__info-item {\n font-size: var(--lottery-banner-info-font-size, 0.9rem);\n color: var(--lottery-banner-info-color, var(--emw--color-typography, #000));\n display: inline-flex;\n align-items: center;\n gap: 0.3rem;\n}\n\n.lottery-banner__info-item-label {\n color: var(--lottery-banner-info-label-color, var(--emw--color-typography, #000));\n}\n.lottery-banner__info-item-label__strong {\n font-weight: var(--lottery-banner-info-label-font-weight, 700);\n}\n\n.lottery-banner__info-item-value {\n font-weight: var(--lottery-banner-info-value-font-weight, inherit);\n color: var(--lottery-banner-info-value-color, var(--emw--color-typography, #000));\n}\n.lottery-banner__info-item-value__strong {\n font-weight: 700;\n}\n\nhelper-count-down::part(values) {\n gap: 8px;\n}\n\n@container (max-width: 700px) {\n .lottery-banner {\n height: auto;\n padding: var(--lottery-banner-mobile-padding, 0.5rem 1rem);\n }\n .lottery-banner__title {\n flex-basis: 100%;\n text-align: var(--lottery-banner-mobile-title-text-align, left);\n }\n .lottery-banner__info {\n flex-direction: column;\n align-items: flex-start;\n gap: var(--lottery-banner-mobile-info-gap, 0.1rem);\n }\n}";
441
306
  const LotteryBannerStyle0 = lotteryBannerCss;
442
307
 
443
308
  const LotteryBanner = class {
444
309
  constructor(hostRef) {
445
310
  registerInstance(this, hostRef);
446
- this.lotteryBannerTimerStop = createEvent(this, "lotteryBannerTimerStop", 7);
311
+ this.lotteryBannerWagerStarted = createEvent(this, "lotteryBannerWagerStarted", 7);
312
+ this.handleCountdownFinish = () => {
313
+ this.isWagerStarted = true;
314
+ this.lotteryBannerWagerStarted.emit();
315
+ };
447
316
  this.mbSource = undefined;
448
317
  this.clientStyling = undefined;
449
318
  this.clientStylingUrl = undefined;
@@ -455,7 +324,8 @@ const LotteryBanner = class {
455
324
  this.bannerTitle = undefined;
456
325
  this.turnover = undefined;
457
326
  this.layout = 'logo,title,info';
458
- this.formattedTime = undefined;
327
+ this.isWagerStarted = false;
328
+ this.formattedStopTime = undefined;
459
329
  }
460
330
  handleClientStylingChange(newValue, oldValue) {
461
331
  if (newValue !== oldValue) {
@@ -473,29 +343,23 @@ const LotteryBanner = class {
473
343
  }
474
344
  }
475
345
  handleTimeChange() {
476
- this.startTimer();
346
+ this.checkWagerStatus();
477
347
  }
478
348
  async componentWillLoad() {
479
349
  if (this.translationUrl) {
480
350
  resolveTranslationUrl$1(this.translationUrl);
481
351
  }
482
- this.startTimer();
352
+ this.checkWagerStatus();
483
353
  }
484
- startTimer() {
485
- if (this.timer) {
486
- clearInterval(this.timer);
354
+ checkWagerStatus() {
355
+ if (this.startTime && isBefore(new Date(), parseISO(this.startTime))) {
356
+ this.isWagerStarted = false;
487
357
  }
488
- this.updateTime();
489
- this.timer = setInterval(() => {
490
- this.updateTime();
491
- }, 1000);
492
- }
493
- updateTime() {
494
- var _a;
495
- this.formattedTime = getWagerTime(this.startTime, this.stopTime);
496
- if ((_a = this.formattedTime) === null || _a === void 0 ? void 0 : _a.end) {
497
- this.timer && clearInterval(this.timer);
498
- this.lotteryBannerTimerStop.emit();
358
+ else {
359
+ this.isWagerStarted = true;
360
+ }
361
+ if (this.stopTime) {
362
+ this.formattedStopTime = format(parseISO(this.stopTime), 'dd/MM/yyyy HH:mm');
499
363
  }
500
364
  }
501
365
  componentDidLoad() {
@@ -510,10 +374,8 @@ const LotteryBanner = class {
510
374
  }
511
375
  disconnectedCallback() {
512
376
  this.stylingSubscription && this.stylingSubscription.unsubscribe();
513
- this.timer && clearInterval(this.timer);
514
377
  }
515
378
  renderElement(item, className = '') {
516
- var _a, _b, _c;
517
379
  const poolGameLogo = getAssetPath('../static/poolGameLogo.webp');
518
380
  switch (item) {
519
381
  case 'logo':
@@ -521,14 +383,14 @@ const LotteryBanner = class {
521
383
  case 'title':
522
384
  return this.bannerTitle && h("div", { class: `lottery-banner__title ${className}` }, this.bannerTitle);
523
385
  case 'info':
524
- return (h("div", { class: `lottery-banner__info ${className}` }, ((_a = this.formattedTime) === null || _a === void 0 ? void 0 : _a.start) && (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, h("span", { class: "lottery-banner__info-item-label__strong" }, translate$2('startIn', this.language)), "\u00A0"), h("span", { class: "lottery-banner__info-item-value lottery-banner__info-item-value__strong" }, this.formattedTime.start))), ((_b = this.formattedTime) === null || _b === void 0 ? void 0 : _b.end) && (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, h("span", { class: "lottery-banner__info-item-label__strong" }, translate$2('stop', this.language)), "\u00A0", translate$2('at', this.language)), h("span", { class: "lottery-banner__info-item-value" }, this.formattedTime.end))), ((_c = this.formattedTime) === null || _c === void 0 ? void 0 : _c.end) && this.turnover !== null && this.turnover !== undefined && (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, translate$2('turnover', this.language)), h("span", { class: "lottery-banner__info-item-value" }, this.turnover)))));
386
+ return (h("div", { class: `lottery-banner__info ${className}` }, !this.isWagerStarted ? (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, h("span", { class: "lottery-banner__info-item-label__strong" }, translate$2('startIn', this.language)), "\u00A0"), h("helper-count-down", { class: "lottery-banner__info-item-value lottery-banner__info-item-value__strong", value: this.startTime, format: "DDD HHH mmM ssS", onCountDownFinish: this.handleCountdownFinish }))) : (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, h("span", { class: "lottery-banner__info-item-label__strong" }, translate$2('stop', this.language)), "\u00A0", translate$2('at', this.language)), h("span", { class: "lottery-banner__info-item-value" }, this.formattedStopTime))), this.isWagerStarted && this.turnover !== null && this.turnover !== undefined && (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, translate$2('turnover', this.language)), h("span", { class: "lottery-banner__info-item-value" }, this.turnover)))));
525
387
  default:
526
388
  return null;
527
389
  }
528
390
  }
529
391
  render() {
530
392
  const layoutItems = this.layout.split(',').map((item) => item.trim());
531
- return (h("section", { key: 'fe2c807504069e45cf9b9f04b754710b49930caf', ref: (el) => (this.stylingContainer = el), class: "lottery-banner" }, layoutItems.map((item, index) => {
393
+ return (h("section", { key: '3f14279ebff86c47ec5d5d7c4e1054c5899e8580', ref: (el) => (this.stylingContainer = el), class: "lottery-banner" }, layoutItems.map((item, index) => {
532
394
  const isMiddle = layoutItems.length === 3 && index === 1;
533
395
  const className = isMiddle ? 'lottery-banner__item--center' : '';
534
396
  return this.renderElement(item, className);
@@ -1416,4 +1278,4 @@ const LotteryTippingTicketBet = class {
1416
1278
  };
1417
1279
  LotteryTippingTicketBet.style = LotteryTippingTicketBetStyle0;
1418
1280
 
1419
- export { GeneralTooltip as general_tooltip, LotteryBanner as lottery_banner, LotteryButton as lottery_button, LotteryTippingBullet as lottery_tipping_bullet, LotteryTippingBulletGroup as lottery_tipping_bullet_group, LotteryTippingTicketBet as lottery_tipping_ticket_bet };
1281
+ export { GeneralTooltip as general_tooltip, HelperCountDown as helper_count_down, LotteryBanner as lottery_banner, LotteryButton as lottery_button, LotteryTippingBullet as lottery_tipping_bullet, LotteryTippingBulletGroup as lottery_tipping_bullet_group, LotteryTippingTicketBet as lottery_tipping_ticket_bet };
@@ -52,10 +52,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
52
52
  }
53
53
  switch(bundleId) {
54
54
 
55
- case 'general-tooltip_7':
55
+ case 'general-tooltip_8':
56
56
  return import(
57
57
  /* webpackMode: "lazy" */
58
- './general-tooltip_7.entry.js').then(processMod, consoleError);
58
+ './general-tooltip_8.entry.js').then(processMod, consoleError);
59
59
  }
60
60
  }
61
61
  return import(
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { L as LotteryTippingTicketController } from './lottery-tipping-ticket-controller-d4128bfe.js';
1
+ export { L as LotteryTippingTicketController } from './lottery-tipping-ticket-controller-2d4fe12d.js';
2
2
  import './index-84443a76.js';
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["general-tooltip_7",[[1,"lottery-tipping-ticket-controller",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"sessionId":[513,"session-id"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"drawId":[513,"draw-id"],"isLoading":[32],"bettingTypeOptions":[32],"playingModeOptions":[32],"selectedBettingType":[32],"selectedPlayingMode":[32],"hasSelectBullet":[32],"hasSelectAllBullet":[32],"totalLineCombination":[32],"submitLoading":[32],"drawSubmitAvailable":[32],"rawData":[32],"saleStatisticsInfo":[32],"currentStake":[32],"dialogConfig":[32]},[[0,"lotteryTippingBulletBetSelect","lotteryTippingBulletGroupSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"totalPages":[1538,"total-pages"],"minTotalPages":[514,"min-total-pages"],"maxTotalPages":[514,"max-total-pages"],"mode":[513],"readPretty":[516,"read-pretty"],"defaultBulletConfigLineGroup":[513,"default-bullet-config-line-group"],"translationData":[32],"clientStylingUrlContent":[32],"bulletConfigLineGroup":[32],"currentPage":[32],"isLoading":[32],"hasErrors":[32],"dialogConfig":[32],"ticketDataSource":[32],"resetBulletConfig":[64],"getData":[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"sessionId":["fetchMatchData"],"drawId":["fetchMatchData"],"defaultBulletConfigLineGroup":["fetchMatchData"],"currentPage":["handleCurrentPageChange"]}],[1,"lottery-banner",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"logoUrl":[513,"logo-url"],"stopTime":[1,"stop-time"],"startTime":[1,"start-time"],"bannerTitle":[1,"banner-title"],"turnover":[1],"layout":[1],"formattedTime":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"startTime":["handleTimeChange"],"stopTime":["handleTimeChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"color":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bullet-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[513,"position-idx"],"theme":[513],"mode":[513],"bulletConfigContent":[513,"bullet-config-content"]},[[0,"lotteryTippingBulletToggle","lotteryTippingBulletSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-tooltip",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"position":[1],"delay":[2],"isVisible":[32],"_tooltipId":[32]},[[1,"mouseenter","handleMouseEnterOrFocus"],[0,"focusin","handleMouseEnterOrFocus"],[1,"mouseleave","handleMouseLeaveOrBlur"],[0,"focusout","handleMouseLeaveOrBlur"],[0,"keydown","handleKeyDown"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bullet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[514,"position-idx"],"theme":[513],"value":[513],"disabled":[516],"isSelected":[516,"is-selected"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
8
+ return bootstrapLazy([["general-tooltip_8",[[1,"lottery-tipping-ticket-controller",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"sessionId":[513,"session-id"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"drawId":[513,"draw-id"],"isLoading":[32],"bettingTypeOptions":[32],"playingModeOptions":[32],"selectedBettingType":[32],"selectedPlayingMode":[32],"hasSelectBullet":[32],"hasSelectAllBullet":[32],"totalLineCombination":[32],"submitLoading":[32],"isSalesActive":[32],"drawSubmitAvailable":[32],"rawData":[32],"saleStatisticsInfo":[32],"currentStake":[32],"dialogConfig":[32],"gameUnavailable":[32]},[[0,"lotteryTippingBulletBetSelect","lotteryTippingBulletGroupSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"totalPages":[1538,"total-pages"],"minTotalPages":[514,"min-total-pages"],"maxTotalPages":[514,"max-total-pages"],"mode":[513],"readPretty":[516,"read-pretty"],"defaultBulletConfigLineGroup":[513,"default-bullet-config-line-group"],"translationData":[32],"clientStylingUrlContent":[32],"bulletConfigLineGroup":[32],"currentPage":[32],"isLoading":[32],"hasErrors":[32],"dialogConfig":[32],"ticketDataSource":[32],"resetBulletConfig":[64],"getData":[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"sessionId":["fetchMatchData"],"drawId":["fetchMatchData"],"defaultBulletConfigLineGroup":["fetchMatchData"],"currentPage":["handleCurrentPageChange"]}],[1,"lottery-banner",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"logoUrl":[513,"logo-url"],"stopTime":[1,"stop-time"],"startTime":[1,"start-time"],"bannerTitle":[1,"banner-title"],"turnover":[1],"layout":[1],"isWagerStarted":[32],"formattedStopTime":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"startTime":["handleTimeChange"],"stopTime":["handleTimeChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"color":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bullet-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[513,"position-idx"],"theme":[513],"mode":[513],"bulletConfigContent":[513,"bullet-config-content"]},[[0,"lotteryTippingBulletToggle","lotteryTippingBulletSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-tooltip",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"position":[1],"delay":[2],"isVisible":[32],"_tooltipId":[32]},[[1,"mouseenter","handleMouseEnterOrFocus"],[0,"focusin","handleMouseEnterOrFocus"],[1,"mouseleave","handleMouseLeaveOrBlur"],[0,"focusout","handleMouseLeaveOrBlur"],[0,"keydown","handleKeyDown"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"helper-count-down",{"value":[520],"format":[513],"prefix":[513],"suffix":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"endTime":[32],"timeObj":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"value":["handleValueChange"]}],[1,"lottery-tipping-bullet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[514,"position-idx"],"theme":[513],"value":[513],"disabled":[516],"isSelected":[516,"is-selected"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };