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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -3,241 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b8586f2f.js');
6
- const lotteryTippingTicketController = require('./lottery-tipping-ticket-controller-2ef33643.js');
7
-
8
- /**
9
- * @name startOfDay
10
- * @category Day Helpers
11
- * @summary Return the start of a day for the given date.
12
- *
13
- * @description
14
- * Return the start of a day for the given date.
15
- * The result will be in the local timezone.
16
- *
17
- * @param {Date|Number} date - the original date
18
- * @returns {Date} the start of a day
19
- * @throws {TypeError} 1 argument required
20
- *
21
- * @example
22
- * // The start of a day for 2 September 2014 11:55:00:
23
- * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
24
- * //=> Tue Sep 02 2014 00:00:00
25
- */
26
- function startOfDay(dirtyDate) {
27
- lotteryTippingTicketController.requiredArgs(1, arguments);
28
- var date = lotteryTippingTicketController.toDate(dirtyDate);
29
- date.setHours(0, 0, 0, 0);
30
- return date;
31
- }
32
-
33
- /**
34
- * @name isSameDay
35
- * @category Day Helpers
36
- * @summary Are the given dates in the same day (and year and month)?
37
- *
38
- * @description
39
- * Are the given dates in the same day (and year and month)?
40
- *
41
- * @param {Date|Number} dateLeft - the first date to check
42
- * @param {Date|Number} dateRight - the second date to check
43
- * @returns {Boolean} the dates are in the same day (and year and month)
44
- * @throws {TypeError} 2 arguments required
45
- *
46
- * @example
47
- * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
48
- * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
49
- * //=> true
50
- *
51
- * @example
52
- * // Are 4 September and 4 October in the same day?
53
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
54
- * //=> false
55
- *
56
- * @example
57
- * // Are 4 September, 2014 and 4 September, 2015 in the same day?
58
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
59
- * //=> false
60
- */
61
- function isSameDay(dirtyDateLeft, dirtyDateRight) {
62
- lotteryTippingTicketController.requiredArgs(2, arguments);
63
- var dateLeftStartOfDay = startOfDay(dirtyDateLeft);
64
- var dateRightStartOfDay = startOfDay(dirtyDateRight);
65
- return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
66
- }
67
-
68
- /**
69
- * @name differenceInMilliseconds
70
- * @category Millisecond Helpers
71
- * @summary Get the number of milliseconds between the given dates.
72
- *
73
- * @description
74
- * Get the number of milliseconds between the given dates.
75
- *
76
- * @param {Date|Number} dateLeft - the later date
77
- * @param {Date|Number} dateRight - the earlier date
78
- * @returns {Number} the number of milliseconds
79
- * @throws {TypeError} 2 arguments required
80
- *
81
- * @example
82
- * // How many milliseconds are between
83
- * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
84
- * const result = differenceInMilliseconds(
85
- * new Date(2014, 6, 2, 12, 30, 21, 700),
86
- * new Date(2014, 6, 2, 12, 30, 20, 600)
87
- * )
88
- * //=> 1100
89
- */
90
- function differenceInMilliseconds(dateLeft, dateRight) {
91
- lotteryTippingTicketController.requiredArgs(2, arguments);
92
- return lotteryTippingTicketController.toDate(dateLeft).getTime() - lotteryTippingTicketController.toDate(dateRight).getTime();
93
- }
94
-
95
- var roundingMap = {
96
- ceil: Math.ceil,
97
- round: Math.round,
98
- floor: Math.floor,
99
- trunc: function trunc(value) {
100
- return value < 0 ? Math.ceil(value) : Math.floor(value);
101
- } // Math.trunc is not supported by IE
102
- };
103
-
104
- var defaultRoundingMethod = 'trunc';
105
- function getRoundingMethod(method) {
106
- return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
107
- }
108
-
109
- /**
110
- * @name differenceInSeconds
111
- * @category Second Helpers
112
- * @summary Get the number of seconds between the given dates.
113
- *
114
- * @description
115
- * Get the number of seconds between the given dates.
116
- *
117
- * @param {Date|Number} dateLeft - the later date
118
- * @param {Date|Number} dateRight - the earlier date
119
- * @param {Object} [options] - an object with options.
120
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
121
- * @returns {Number} the number of seconds
122
- * @throws {TypeError} 2 arguments required
123
- *
124
- * @example
125
- * // How many seconds are between
126
- * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?
127
- * const result = differenceInSeconds(
128
- * new Date(2014, 6, 2, 12, 30, 20, 0),
129
- * new Date(2014, 6, 2, 12, 30, 7, 999)
130
- * )
131
- * //=> 12
132
- */
133
- function differenceInSeconds(dateLeft, dateRight, options) {
134
- lotteryTippingTicketController.requiredArgs(2, arguments);
135
- var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;
136
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
137
- }
138
-
139
- /**
140
- * @name isBefore
141
- * @category Common Helpers
142
- * @summary Is the first date before the second one?
143
- *
144
- * @description
145
- * Is the first date before the second one?
146
- *
147
- * @param {Date|Number} date - the date that should be before the other one to return true
148
- * @param {Date|Number} dateToCompare - the date to compare with
149
- * @returns {Boolean} the first date is before the second date
150
- * @throws {TypeError} 2 arguments required
151
- *
152
- * @example
153
- * // Is 10 July 1989 before 11 February 1987?
154
- * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
155
- * //=> false
156
- */
157
- function isBefore(dirtyDate, dirtyDateToCompare) {
158
- lotteryTippingTicketController.requiredArgs(2, arguments);
159
- var date = lotteryTippingTicketController.toDate(dirtyDate);
160
- var dateToCompare = lotteryTippingTicketController.toDate(dirtyDateToCompare);
161
- return date.getTime() < dateToCompare.getTime();
162
- }
163
-
164
- /**
165
- * @name isToday
166
- * @category Day Helpers
167
- * @summary Is the given date today?
168
- * @pure false
169
- *
170
- * @description
171
- * Is the given date today?
172
- *
173
- * > ⚠️ Please note that this function is not present in the FP submodule as
174
- * > it uses `Date.now()` internally hence impure and can't be safely curried.
175
- *
176
- * @param {Date|Number} date - the date to check
177
- * @returns {Boolean} the date is today
178
- * @throws {TypeError} 1 argument required
179
- *
180
- * @example
181
- * // If today is 6 October 2014, is 6 October 14:00:00 today?
182
- * const result = isToday(new Date(2014, 9, 6, 14, 0))
183
- * //=> true
184
- */
185
- function isToday(dirtyDate) {
186
- lotteryTippingTicketController.requiredArgs(1, arguments);
187
- return isSameDay(dirtyDate, Date.now());
188
- }
189
-
190
- /**
191
- * @name isWithinInterval
192
- * @category Interval Helpers
193
- * @summary Is the given date within the interval?
194
- *
195
- * @description
196
- * Is the given date within the interval? (Including start and end.)
197
- *
198
- * @param {Date|Number} date - the date to check
199
- * @param {Interval} interval - the interval to check
200
- * @returns {Boolean} the date is within the interval
201
- * @throws {TypeError} 2 arguments required
202
- * @throws {RangeError} The start of an interval cannot be after its end
203
- * @throws {RangeError} Date in interval cannot be `Invalid Date`
204
- *
205
- * @example
206
- * // For the date within the interval:
207
- * isWithinInterval(new Date(2014, 0, 3), {
208
- * start: new Date(2014, 0, 1),
209
- * end: new Date(2014, 0, 7)
210
- * })
211
- * //=> true
212
- *
213
- * @example
214
- * // For the date outside of the interval:
215
- * isWithinInterval(new Date(2014, 0, 10), {
216
- * start: new Date(2014, 0, 1),
217
- * end: new Date(2014, 0, 7)
218
- * })
219
- * //=> false
220
- *
221
- * @example
222
- * // For date equal to interval start:
223
- * isWithinInterval(date, { start, end: date }) // => true
224
- *
225
- * @example
226
- * // For date equal to interval end:
227
- * isWithinInterval(date, { start: date, end }) // => true
228
- */
229
- function isWithinInterval(dirtyDate, interval) {
230
- lotteryTippingTicketController.requiredArgs(2, arguments);
231
- var time = lotteryTippingTicketController.toDate(dirtyDate).getTime();
232
- var startTime = lotteryTippingTicketController.toDate(interval.start).getTime();
233
- var endTime = lotteryTippingTicketController.toDate(interval.end).getTime();
234
-
235
- // Throw an exception if start date is after end date or if any date is `Invalid Date`
236
- if (!(startTime <= endTime)) {
237
- throw new RangeError('Invalid interval');
238
- }
239
- return time >= startTime && time <= endTime;
240
- }
6
+ const lotteryTippingTicketController = require('./lottery-tipping-ticket-controller-3b1e9667.js');
241
7
 
242
8
  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}";
243
9
  const GeneralTooltipStyle0 = generalTooltipCss;
@@ -323,6 +89,169 @@ const GeneralTooltip = class {
323
89
  };
324
90
  GeneralTooltip.style = GeneralTooltipStyle0;
325
91
 
92
+ 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}";
93
+ const HelperCountDownStyle0 = helperCountDownCss;
94
+
95
+ const HelperCountDown = class {
96
+ constructor(hostRef) {
97
+ index.registerInstance(this, hostRef);
98
+ this.countDownChange = index.createEvent(this, "countDownChange", 7);
99
+ this.countDownFinish = index.createEvent(this, "countDownFinish", 7);
100
+ this.value = undefined;
101
+ this.format = 'HH:mm:ss';
102
+ this.prefix = undefined;
103
+ this.suffix = undefined;
104
+ this.mbSource = undefined;
105
+ this.clientStyling = undefined;
106
+ this.clientStylingUrl = undefined;
107
+ this.endTime = undefined;
108
+ this.timeObj = {
109
+ day: { str: '00', unit: '' },
110
+ hour: { str: '00', unit: '' },
111
+ minute: { str: '00', unit: '' },
112
+ second: { str: '00', unit: '' }
113
+ };
114
+ }
115
+ handleClientStylingChange(newValue, oldValue) {
116
+ if (newValue != oldValue) {
117
+ lotteryTippingTicketController.setClientStyling(this.stylingContainer, this.clientStyling);
118
+ }
119
+ }
120
+ handleClientStylingUrlChange(newValue, oldValue) {
121
+ if (newValue != oldValue) {
122
+ lotteryTippingTicketController.setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
123
+ }
124
+ }
125
+ handleMbSourceChange(newValue, oldValue) {
126
+ if (newValue != oldValue) {
127
+ lotteryTippingTicketController.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
128
+ }
129
+ }
130
+ handleValueChange(newValue) {
131
+ this.setEndTime(newValue);
132
+ if (newValue) {
133
+ this.startCountDown();
134
+ }
135
+ else {
136
+ this.clearCountDown();
137
+ }
138
+ }
139
+ componentDidLoad() {
140
+ if (this.stylingContainer) {
141
+ if (this.mbSource)
142
+ lotteryTippingTicketController.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
143
+ if (this.clientStyling)
144
+ lotteryTippingTicketController.setClientStyling(this.stylingContainer, this.clientStyling);
145
+ if (this.clientStylingUrl)
146
+ lotteryTippingTicketController.setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
147
+ }
148
+ this.setEndTime(this.value);
149
+ if (this.value)
150
+ this.startCountDown();
151
+ }
152
+ setEndTime(value) {
153
+ if (typeof value === 'string') {
154
+ // If it's a string, parse it and get the milliseconds
155
+ const time = lotteryTippingTicketController.parseISO(value).getTime();
156
+ this.endTime = isNaN(time) ? null : time;
157
+ }
158
+ else {
159
+ // If it's a number, use it directly
160
+ this.endTime = value;
161
+ }
162
+ }
163
+ disconnectedCallback() {
164
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
165
+ this.clearCountDown();
166
+ }
167
+ startCountDown() {
168
+ this.clearCountDown();
169
+ this.tick();
170
+ this.timer = setInterval(() => {
171
+ this.tick();
172
+ }, 1000);
173
+ }
174
+ clearCountDown() {
175
+ if (this.timer) {
176
+ clearInterval(this.timer);
177
+ this.timer = null;
178
+ }
179
+ }
180
+ tick() {
181
+ if (!this.endTime)
182
+ return;
183
+ let leftTime = this.endTime - Date.now();
184
+ if (leftTime <= 0) {
185
+ leftTime = 0;
186
+ this.clearCountDown();
187
+ this.countDownFinish.emit();
188
+ }
189
+ const d = Math.floor(leftTime / (1000 * 60 * 60 * 24));
190
+ const h = Math.floor((leftTime / (1000 * 60 * 60)) % 24);
191
+ const m = Math.floor((leftTime / 1000 / 60) % 60);
192
+ const s = Math.floor((leftTime / 1000) % 60);
193
+ const pad = (n) => (n < 10 ? `0${n}` : `${n}`);
194
+ this.timeObj = {
195
+ day: { str: pad(d), unit: 'd' },
196
+ hour: { str: pad(h), unit: 'h' },
197
+ minute: { str: pad(m), unit: 'm' },
198
+ second: { str: pad(s), unit: 's' }
199
+ };
200
+ const formatTime = this.getFormatTime();
201
+ this.countDownChange.emit({ leftTime, formatTime, legalTime: formatTime });
202
+ }
203
+ getFormatTime() {
204
+ return this.format
205
+ .replace('DD', this.timeObj.day.str)
206
+ .replace('HH', this.timeObj.hour.str)
207
+ .replace('mm', this.timeObj.minute.str)
208
+ .replace('ss', this.timeObj.second.str);
209
+ }
210
+ renderItems() {
211
+ const regex = /(DD|HH|mm|ss)|([\s\S]+?)(?=(DD|HH|mm|ss)|$)/g;
212
+ const items = [];
213
+ let match;
214
+ while ((match = regex.exec(this.format)) !== null) {
215
+ if (match[1]) {
216
+ let val = '';
217
+ switch (match[1]) {
218
+ case 'DD':
219
+ val = this.timeObj.day.str;
220
+ break;
221
+ case 'HH':
222
+ val = this.timeObj.hour.str;
223
+ break;
224
+ case 'mm':
225
+ val = this.timeObj.minute.str;
226
+ break;
227
+ case 'ss':
228
+ val = this.timeObj.second.str;
229
+ break;
230
+ }
231
+ items.push({ val, unit: '' });
232
+ }
233
+ else if (match[2]) {
234
+ if (items.length > 0) {
235
+ items[items.length - 1].unit = match[2];
236
+ }
237
+ }
238
+ }
239
+ return items.map((item, index$1) => {
240
+ return (index.h("div", { key: index$1 + item.unit, class: "helper-count-down-item", part: "item" }, index.h("div", { class: "helper-count-down-item-num" }, item.val), index.h("div", { class: "helper-count-down-item-unit" }, item.unit)));
241
+ });
242
+ }
243
+ render() {
244
+ return (index.h("div", { key: 'b360412e045020b5ac0263c6ca56458f31eedb2c', class: "helper-count-down-container", ref: (el) => (this.stylingContainer = el) }, index.h("slot", { key: 'c72bed87fba869c842407b04e0cbfe038e5b7ea8' }), this.prefix && index.h("div", { key: '8d3ba9d60577421f81bae7bc76f52a774b17e1fe', class: "helper-count-down-prefix" }, this.prefix), index.h("div", { key: '187edf3b8eb6de85efe1a748fd8ef47a68e19611', class: "helper-count-down-values", part: "values" }, this.renderItems()), this.suffix && index.h("div", { key: '3a8e5d9561ecd3f52eff423bd43c8b60a261a17c', class: "helper-count-down-suffix" }, this.suffix)));
245
+ }
246
+ static get watchers() { return {
247
+ "clientStyling": ["handleClientStylingChange"],
248
+ "clientStylingUrl": ["handleClientStylingUrlChange"],
249
+ "mbSource": ["handleMbSourceChange"],
250
+ "value": ["handleValueChange"]
251
+ }; }
252
+ };
253
+ HelperCountDown.style = HelperCountDownStyle0;
254
+
326
255
  const DEFAULT_LANGUAGE$2 = 'en';
327
256
  const SUPPORTED_LANGUAGES$2 = ['ro', 'en', 'fr', 'ar', 'hr'];
328
257
  const TRANSLATIONS$2 = {
@@ -376,77 +305,17 @@ const resolveTranslationUrl$1 = async (translationUrl) => {
376
305
  }
377
306
  };
378
307
 
379
- const formatDate$1 = ({ date, type = 'date', format }) => {
380
- try {
381
- const parsedDate = lotteryTippingTicketController.parseISO(date);
382
- if (isNaN(parsedDate.getTime())) {
383
- throw new Error(`Invalid date: ${date}`);
384
- }
385
- if (format)
386
- return lotteryTippingTicketController.format(parsedDate, format);
387
- let formatStr = 'dd/MM/yyyy';
388
- if (type === 'time') {
389
- formatStr = 'dd/MM/yyyy HH:mm:ss';
390
- }
391
- else if (type === 'week') {
392
- formatStr = 'ccc dd/MM/yyyy HH:mm:ss';
393
- }
394
- return lotteryTippingTicketController.format(parsedDate, formatStr);
395
- }
396
- catch (error) {
397
- console.error('Error formatting date:', error.message);
398
- return '';
399
- }
400
- };
401
- function formatTime(time) {
402
- if (!time)
403
- return;
404
- if (isToday(new Date(time))) {
405
- return formatDate$1({ date: time, format: 'HH:mm' });
406
- }
407
- return formatDate$1({ date: time, format: 'dd/MM/yyyy HH:mm' });
408
- }
409
- function formatCountdown(stopTime, _now) {
410
- if (!stopTime)
411
- return;
412
- const endTime = typeof stopTime === 'string' ? lotteryTippingTicketController.parseISO(stopTime) : stopTime;
413
- const now = _now && new Date();
414
- let totalSeconds = differenceInSeconds(endTime, now);
415
- if (totalSeconds < 0)
416
- return '0D 00H 00M 00S';
417
- const days = Math.floor(totalSeconds / 86400);
418
- totalSeconds %= 86400;
419
- const hours = Math.floor(totalSeconds / 3600);
420
- totalSeconds %= 3600;
421
- const minutes = Math.floor(totalSeconds / 60);
422
- const seconds = totalSeconds % 60;
423
- return `${days}D ${hours.toString().padStart(2, '0')}H ${minutes.toString().padStart(2, '0')}M ${seconds
424
- .toString()
425
- .padStart(2, '0')}S`;
426
- }
427
- function getWagerTime(startTime, stopTime) {
428
- const now = new Date();
429
- if (startTime && isBefore(now, lotteryTippingTicketController.parseISO(startTime))) {
430
- return { start: formatCountdown(startTime, now) };
431
- }
432
- if (startTime &&
433
- stopTime &&
434
- isWithinInterval(now, {
435
- start: lotteryTippingTicketController.parseISO(startTime),
436
- end: lotteryTippingTicketController.parseISO(stopTime)
437
- })) {
438
- return { end: formatTime(stopTime) };
439
- }
440
- return {};
441
- }
442
-
443
- 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}";
308
+ 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}";
444
309
  const LotteryBannerStyle0 = lotteryBannerCss;
445
310
 
446
311
  const LotteryBanner = class {
447
312
  constructor(hostRef) {
448
313
  index.registerInstance(this, hostRef);
449
- this.lotteryBannerTimerStop = index.createEvent(this, "lotteryBannerTimerStop", 7);
314
+ this.lotteryBannerWagerStarted = index.createEvent(this, "lotteryBannerWagerStarted", 7);
315
+ this.handleCountdownFinish = () => {
316
+ this.isWagerStarted = true;
317
+ this.lotteryBannerWagerStarted.emit();
318
+ };
450
319
  this.mbSource = undefined;
451
320
  this.clientStyling = undefined;
452
321
  this.clientStylingUrl = undefined;
@@ -458,7 +327,8 @@ const LotteryBanner = class {
458
327
  this.bannerTitle = undefined;
459
328
  this.turnover = undefined;
460
329
  this.layout = 'logo,title,info';
461
- this.formattedTime = undefined;
330
+ this.isWagerStarted = false;
331
+ this.formattedStopTime = undefined;
462
332
  }
463
333
  handleClientStylingChange(newValue, oldValue) {
464
334
  if (newValue !== oldValue) {
@@ -476,29 +346,23 @@ const LotteryBanner = class {
476
346
  }
477
347
  }
478
348
  handleTimeChange() {
479
- this.startTimer();
349
+ this.checkWagerStatus();
480
350
  }
481
351
  async componentWillLoad() {
482
352
  if (this.translationUrl) {
483
353
  resolveTranslationUrl$1(this.translationUrl);
484
354
  }
485
- this.startTimer();
355
+ this.checkWagerStatus();
486
356
  }
487
- startTimer() {
488
- if (this.timer) {
489
- clearInterval(this.timer);
357
+ checkWagerStatus() {
358
+ if (this.startTime && lotteryTippingTicketController.isBefore(new Date(), lotteryTippingTicketController.parseISO(this.startTime))) {
359
+ this.isWagerStarted = false;
490
360
  }
491
- this.updateTime();
492
- this.timer = setInterval(() => {
493
- this.updateTime();
494
- }, 1000);
495
- }
496
- updateTime() {
497
- var _a;
498
- this.formattedTime = getWagerTime(this.startTime, this.stopTime);
499
- if ((_a = this.formattedTime) === null || _a === void 0 ? void 0 : _a.end) {
500
- this.timer && clearInterval(this.timer);
501
- this.lotteryBannerTimerStop.emit();
361
+ else {
362
+ this.isWagerStarted = true;
363
+ }
364
+ if (this.stopTime) {
365
+ this.formattedStopTime = lotteryTippingTicketController.format(lotteryTippingTicketController.parseISO(this.stopTime), 'dd/MM/yyyy HH:mm');
502
366
  }
503
367
  }
504
368
  componentDidLoad() {
@@ -513,10 +377,8 @@ const LotteryBanner = class {
513
377
  }
514
378
  disconnectedCallback() {
515
379
  this.stylingSubscription && this.stylingSubscription.unsubscribe();
516
- this.timer && clearInterval(this.timer);
517
380
  }
518
381
  renderElement(item, className = '') {
519
- var _a, _b, _c;
520
382
  const poolGameLogo = index.getAssetPath('../static/poolGameLogo.webp');
521
383
  switch (item) {
522
384
  case 'logo':
@@ -524,14 +386,14 @@ const LotteryBanner = class {
524
386
  case 'title':
525
387
  return this.bannerTitle && index.h("div", { class: `lottery-banner__title ${className}` }, this.bannerTitle);
526
388
  case 'info':
527
- return (index.h("div", { class: `lottery-banner__info ${className}` }, ((_a = this.formattedTime) === null || _a === void 0 ? void 0 : _a.start) && (index.h("div", { class: "lottery-banner__info-item" }, index.h("span", { class: "lottery-banner__info-item-label" }, index.h("span", { class: "lottery-banner__info-item-label__strong" }, translate$2('startIn', this.language)), "\u00A0"), index.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) && (index.h("div", { class: "lottery-banner__info-item" }, index.h("span", { class: "lottery-banner__info-item-label" }, index.h("span", { class: "lottery-banner__info-item-label__strong" }, translate$2('stop', this.language)), "\u00A0", translate$2('at', this.language)), index.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 && (index.h("div", { class: "lottery-banner__info-item" }, index.h("span", { class: "lottery-banner__info-item-label" }, translate$2('turnover', this.language)), index.h("span", { class: "lottery-banner__info-item-value" }, this.turnover)))));
389
+ return (index.h("div", { class: `lottery-banner__info ${className}` }, !this.isWagerStarted ? (index.h("div", { class: "lottery-banner__info-item" }, index.h("span", { class: "lottery-banner__info-item-label" }, index.h("span", { class: "lottery-banner__info-item-label__strong" }, translate$2('startIn', this.language)), "\u00A0"), index.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 }))) : (index.h("div", { class: "lottery-banner__info-item" }, index.h("span", { class: "lottery-banner__info-item-label" }, index.h("span", { class: "lottery-banner__info-item-label__strong" }, translate$2('stop', this.language)), "\u00A0", translate$2('at', this.language)), index.h("span", { class: "lottery-banner__info-item-value" }, this.formattedStopTime))), this.isWagerStarted && this.turnover !== null && this.turnover !== undefined && (index.h("div", { class: "lottery-banner__info-item" }, index.h("span", { class: "lottery-banner__info-item-label" }, translate$2('turnover', this.language)), index.h("span", { class: "lottery-banner__info-item-value" }, this.turnover)))));
528
390
  default:
529
391
  return null;
530
392
  }
531
393
  }
532
394
  render() {
533
395
  const layoutItems = this.layout.split(',').map((item) => item.trim());
534
- return (index.h("section", { key: 'fe2c807504069e45cf9b9f04b754710b49930caf', ref: (el) => (this.stylingContainer = el), class: "lottery-banner" }, layoutItems.map((item, index) => {
396
+ return (index.h("section", { key: '3f14279ebff86c47ec5d5d7c4e1054c5899e8580', ref: (el) => (this.stylingContainer = el), class: "lottery-banner" }, layoutItems.map((item, index) => {
535
397
  const isMiddle = layoutItems.length === 3 && index === 1;
536
398
  const className = isMiddle ? 'lottery-banner__item--center' : '';
537
399
  return this.renderElement(item, className);
@@ -1421,6 +1283,7 @@ LotteryTippingTicketBet.style = LotteryTippingTicketBetStyle0;
1421
1283
 
1422
1284
  exports.lottery_tipping_ticket_controller = lotteryTippingTicketController.LotteryTippingTicketController;
1423
1285
  exports.general_tooltip = GeneralTooltip;
1286
+ exports.helper_count_down = HelperCountDown;
1424
1287
  exports.lottery_banner = LotteryBanner;
1425
1288
  exports.lottery_button = LotteryButton;
1426
1289
  exports.lottery_tipping_bullet = LotteryTippingBullet;
@@ -74,10 +74,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
74
74
  }
75
75
  switch(bundleId) {
76
76
 
77
- case 'general-tooltip_7.cjs':
77
+ case 'general-tooltip_8.cjs':
78
78
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
79
79
  /* webpackMode: "lazy" */
80
- './general-tooltip_7.cjs.entry.js')); }).then(processMod, consoleError);
80
+ './general-tooltip_8.cjs.entry.js')); }).then(processMod, consoleError);
81
81
  }
82
82
  }
83
83
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotteryTippingTicketController = require('./lottery-tipping-ticket-controller-2ef33643.js');
5
+ const lotteryTippingTicketController = require('./lottery-tipping-ticket-controller-3b1e9667.js');
6
6
  require('./index-b8586f2f.js');
7
7
 
8
8
 
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["general-tooltip_7.cjs",[[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);
11
+ return index.bootstrapLazy([["general-tooltip_8.cjs",[[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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;