@everymatrix/lottery-tipping-ticket-controller 1.87.27 → 1.87.29
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.
- package/dist/cjs/general-tooltip_7.cjs.entry.js +380 -118
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{lottery-tipping-ticket-controller-38883843.js → lottery-tipping-ticket-controller-90ba14f0.js} +45 -15
- package/dist/cjs/lottery-tipping-ticket-controller.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +7 -2
- package/dist/collection/components/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.js +13 -12
- package/dist/collection/models/index.js +10 -0
- package/dist/collection/utils/api.js +11 -1
- package/dist/collection/utils/locale.utils.js +1 -1
- package/dist/collection/utils/utils.js +14 -0
- package/dist/esm/general-tooltip_7.entry.js +381 -119
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{lottery-tipping-ticket-controller-7714da55.js → lottery-tipping-ticket-controller-f46b8ced.js} +46 -14
- package/dist/esm/lottery-tipping-ticket-controller.js +1 -1
- package/dist/lottery-tipping-ticket-controller/general-tooltip_7.entry.js +1 -1
- package/dist/lottery-tipping-ticket-controller/index.esm.js +1 -1
- package/dist/lottery-tipping-ticket-controller/{lottery-tipping-ticket-controller-7714da55.js → lottery-tipping-ticket-controller-f46b8ced.js} +1 -1
- package/dist/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.esm.js +1 -1
- package/dist/types/components/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.d.ts +3 -1
- package/dist/types/components.d.ts +0 -55
- package/dist/types/models/index.d.ts +181 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/package.json +1 -1
- package/dist/collection/components/lottery-tipping-ticket-banner/locale.utils.js +0 -36
- package/dist/collection/components/lottery-tipping-ticket-banner/lottery-tipping-ticket-banner.css +0 -73
- package/dist/collection/components/lottery-tipping-ticket-banner/lottery-tipping-ticket-banner.js +0 -259
- package/dist/types/components/lottery-tipping-ticket-banner/locale.utils.d.ts +0 -2
- package/dist/types/components/lottery-tipping-ticket-banner/lottery-tipping-ticket-banner.d.ts +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-3e1fe885.js');
|
|
6
|
-
const lotteryTippingTicketController = require('./lottery-tipping-ticket-controller-
|
|
6
|
+
const lotteryTippingTicketController = require('./lottery-tipping-ticket-controller-90ba14f0.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @name startOfDay
|
|
@@ -65,6 +65,102 @@ function isSameDay(dirtyDateLeft, dirtyDateRight) {
|
|
|
65
65
|
return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
|
|
66
66
|
}
|
|
67
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
|
+
|
|
68
164
|
/**
|
|
69
165
|
* @name isToday
|
|
70
166
|
* @category Day Helpers
|
|
@@ -91,6 +187,58 @@ function isToday(dirtyDate) {
|
|
|
91
187
|
return isSameDay(dirtyDate, Date.now());
|
|
92
188
|
}
|
|
93
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
|
+
}
|
|
241
|
+
|
|
94
242
|
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}";
|
|
95
243
|
const GeneralTooltipStyle0 = generalTooltipCss;
|
|
96
244
|
|
|
@@ -176,8 +324,232 @@ const GeneralTooltip = class {
|
|
|
176
324
|
GeneralTooltip.style = GeneralTooltipStyle0;
|
|
177
325
|
|
|
178
326
|
const DEFAULT_LANGUAGE$2 = 'en';
|
|
179
|
-
const SUPPORTED_LANGUAGES$2 = ['ro', 'en', 'fr', 'ar', 'hr'
|
|
327
|
+
const SUPPORTED_LANGUAGES$2 = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
180
328
|
const TRANSLATIONS$2 = {
|
|
329
|
+
en: {
|
|
330
|
+
stop: 'Stop',
|
|
331
|
+
at: 'at',
|
|
332
|
+
turnover: 'Turnover: ',
|
|
333
|
+
start: 'Sales Start',
|
|
334
|
+
in: 'in'
|
|
335
|
+
},
|
|
336
|
+
ro: {
|
|
337
|
+
stop: 'Oprește',
|
|
338
|
+
at: 'la'
|
|
339
|
+
},
|
|
340
|
+
fr: {
|
|
341
|
+
stop: 'Arrêtez',
|
|
342
|
+
at: 'à'
|
|
343
|
+
},
|
|
344
|
+
ar: {
|
|
345
|
+
stop: 'توقف',
|
|
346
|
+
at: 'في'
|
|
347
|
+
},
|
|
348
|
+
hr: {
|
|
349
|
+
stop: 'Stop',
|
|
350
|
+
at: 'u'
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
const translate$2 = (key, customLang) => {
|
|
354
|
+
const lang = customLang;
|
|
355
|
+
return TRANSLATIONS$2[lang !== undefined && SUPPORTED_LANGUAGES$2.includes(lang) ? lang : DEFAULT_LANGUAGE$2][key];
|
|
356
|
+
};
|
|
357
|
+
const getTranslations$2 = (data) => {
|
|
358
|
+
Object.keys(data).forEach((item) => {
|
|
359
|
+
for (let key in data[item]) {
|
|
360
|
+
TRANSLATIONS$2[item][key] = data[item][key];
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
const resolveTranslationUrl$1 = async (translationUrl) => {
|
|
365
|
+
if (translationUrl) {
|
|
366
|
+
try {
|
|
367
|
+
const response = await fetch(translationUrl);
|
|
368
|
+
if (!response.ok) {
|
|
369
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
370
|
+
}
|
|
371
|
+
const translations = await response.json();
|
|
372
|
+
getTranslations$2(translations);
|
|
373
|
+
}
|
|
374
|
+
catch (error) {
|
|
375
|
+
console.error('Failed to fetch or parse translations from URL:', error);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
const formatDate$1 = ({ date, type = 'date', format }) => {
|
|
381
|
+
try {
|
|
382
|
+
const parsedDate = lotteryTippingTicketController.parseISO(date);
|
|
383
|
+
if (isNaN(parsedDate.getTime())) {
|
|
384
|
+
throw new Error(`Invalid date: ${date}`);
|
|
385
|
+
}
|
|
386
|
+
if (format)
|
|
387
|
+
return lotteryTippingTicketController.format(parsedDate, format);
|
|
388
|
+
let formatStr = 'dd/MM/yyyy';
|
|
389
|
+
if (type === 'time') {
|
|
390
|
+
formatStr = 'dd/MM/yyyy HH:mm:ss';
|
|
391
|
+
}
|
|
392
|
+
else if (type === 'week') {
|
|
393
|
+
formatStr = 'ccc dd/MM/yyyy HH:mm:ss';
|
|
394
|
+
}
|
|
395
|
+
return lotteryTippingTicketController.format(parsedDate, formatStr);
|
|
396
|
+
}
|
|
397
|
+
catch (error) {
|
|
398
|
+
console.error('Error formatting date:', error.message);
|
|
399
|
+
return '';
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
function formatTime(time) {
|
|
403
|
+
if (!time)
|
|
404
|
+
return;
|
|
405
|
+
if (isToday(new Date(time))) {
|
|
406
|
+
return formatDate$1({ date: time, format: 'HH:mm' });
|
|
407
|
+
}
|
|
408
|
+
return formatDate$1({ date: time, format: 'dd/MM/yyyy HH:mm' });
|
|
409
|
+
}
|
|
410
|
+
function formatCountdown(stopTime, _now) {
|
|
411
|
+
if (!stopTime)
|
|
412
|
+
return;
|
|
413
|
+
const endTime = typeof stopTime === 'string' ? lotteryTippingTicketController.parseISO(stopTime) : stopTime;
|
|
414
|
+
const now = _now && new Date();
|
|
415
|
+
let totalSeconds = differenceInSeconds(endTime, now);
|
|
416
|
+
if (totalSeconds < 0)
|
|
417
|
+
return '0D 00H 00M 00S';
|
|
418
|
+
const days = Math.floor(totalSeconds / 86400);
|
|
419
|
+
totalSeconds %= 86400;
|
|
420
|
+
const hours = Math.floor(totalSeconds / 3600);
|
|
421
|
+
totalSeconds %= 3600;
|
|
422
|
+
const minutes = Math.floor(totalSeconds / 60);
|
|
423
|
+
const seconds = totalSeconds % 60;
|
|
424
|
+
return `${days}D ${hours.toString().padStart(2, '0')}H ${minutes.toString().padStart(2, '0')}M ${seconds
|
|
425
|
+
.toString()
|
|
426
|
+
.padStart(2, '0')}S`;
|
|
427
|
+
}
|
|
428
|
+
function getWagerTime(startTime, stopTime) {
|
|
429
|
+
const now = new Date();
|
|
430
|
+
if (startTime && isBefore(now, lotteryTippingTicketController.parseISO(startTime))) {
|
|
431
|
+
return { start: formatCountdown(startTime, now) };
|
|
432
|
+
}
|
|
433
|
+
if (startTime &&
|
|
434
|
+
stopTime &&
|
|
435
|
+
isWithinInterval(now, {
|
|
436
|
+
start: lotteryTippingTicketController.parseISO(startTime),
|
|
437
|
+
end: lotteryTippingTicketController.parseISO(stopTime)
|
|
438
|
+
})) {
|
|
439
|
+
return { end: formatTime(stopTime) };
|
|
440
|
+
}
|
|
441
|
+
return {};
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
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\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}";
|
|
445
|
+
const LotteryBannerStyle0 = lotteryBannerCss;
|
|
446
|
+
|
|
447
|
+
const LotteryBanner = class {
|
|
448
|
+
constructor(hostRef) {
|
|
449
|
+
index.registerInstance(this, hostRef);
|
|
450
|
+
this.lotteryBannerTimerStop = index.createEvent(this, "lotteryBannerTimerStop", 7);
|
|
451
|
+
this.mbSource = undefined;
|
|
452
|
+
this.clientStyling = undefined;
|
|
453
|
+
this.clientStylingUrl = undefined;
|
|
454
|
+
this.translationUrl = '';
|
|
455
|
+
this.language = 'en';
|
|
456
|
+
this.logoUrl = undefined;
|
|
457
|
+
this.stopTime = '';
|
|
458
|
+
this.startTime = '';
|
|
459
|
+
this.bannerTitle = undefined;
|
|
460
|
+
this.turnover = undefined;
|
|
461
|
+
this.layout = 'logo,title,info';
|
|
462
|
+
this.formattedTime = undefined;
|
|
463
|
+
}
|
|
464
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
465
|
+
if (newValue !== oldValue) {
|
|
466
|
+
lotteryTippingTicketController.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
470
|
+
if (newValue !== oldValue) {
|
|
471
|
+
lotteryTippingTicketController.setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
475
|
+
if (newValue !== oldValue) {
|
|
476
|
+
lotteryTippingTicketController.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
handleTimeChange() {
|
|
480
|
+
this.startTimer();
|
|
481
|
+
}
|
|
482
|
+
async componentWillLoad() {
|
|
483
|
+
if (this.translationUrl) {
|
|
484
|
+
resolveTranslationUrl$1(this.translationUrl);
|
|
485
|
+
}
|
|
486
|
+
this.startTimer();
|
|
487
|
+
}
|
|
488
|
+
startTimer() {
|
|
489
|
+
if (this.timer) {
|
|
490
|
+
clearInterval(this.timer);
|
|
491
|
+
}
|
|
492
|
+
this.updateTime();
|
|
493
|
+
this.timer = setInterval(() => {
|
|
494
|
+
this.updateTime();
|
|
495
|
+
}, 1000);
|
|
496
|
+
}
|
|
497
|
+
updateTime() {
|
|
498
|
+
var _a;
|
|
499
|
+
this.formattedTime = getWagerTime(this.startTime, this.stopTime);
|
|
500
|
+
if ((_a = this.formattedTime) === null || _a === void 0 ? void 0 : _a.end) {
|
|
501
|
+
this.timer && clearInterval(this.timer);
|
|
502
|
+
this.lotteryBannerTimerStop.emit();
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
componentDidLoad() {
|
|
506
|
+
if (this.stylingContainer) {
|
|
507
|
+
if (this.mbSource)
|
|
508
|
+
lotteryTippingTicketController.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
509
|
+
if (this.clientStyling)
|
|
510
|
+
lotteryTippingTicketController.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
511
|
+
if (this.clientStylingUrl)
|
|
512
|
+
lotteryTippingTicketController.setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
disconnectedCallback() {
|
|
516
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
517
|
+
this.timer && clearInterval(this.timer);
|
|
518
|
+
}
|
|
519
|
+
renderElement(item, className = '') {
|
|
520
|
+
var _a, _b;
|
|
521
|
+
switch (item) {
|
|
522
|
+
case 'logo':
|
|
523
|
+
return (index.h("div", { class: `lottery-banner__logo-wrapper ${className}` }, this.logoUrl && index.h("img", { alt: "logo", src: this.logoUrl, class: "lottery-banner__logo" })));
|
|
524
|
+
case 'title':
|
|
525
|
+
return this.bannerTitle && index.h("div", { class: `lottery-banner__title ${className}` }, this.bannerTitle);
|
|
526
|
+
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('start', this.language)), "\u00A0", translate$2('in', this.language)), index.h("span", { class: "lottery-banner__info-item-value" }, 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))), 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
|
+
default:
|
|
529
|
+
return null;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
render() {
|
|
533
|
+
const layoutItems = this.layout.split(',').map((item) => item.trim());
|
|
534
|
+
return (index.h("section", { key: '058aa04a8104d393f6066fd2738fb33cb6d832a2', ref: (el) => (this.stylingContainer = el), class: "lottery-banner" }, layoutItems.map((item, index) => {
|
|
535
|
+
const isMiddle = layoutItems.length === 3 && index === 1;
|
|
536
|
+
const className = isMiddle ? 'lottery-banner__item--center' : '';
|
|
537
|
+
return this.renderElement(item, className);
|
|
538
|
+
})));
|
|
539
|
+
}
|
|
540
|
+
static get watchers() { return {
|
|
541
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
542
|
+
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
543
|
+
"mbSource": ["handleMbSourceChange"],
|
|
544
|
+
"startTime": ["handleTimeChange"],
|
|
545
|
+
"stopTime": ["handleTimeChange"]
|
|
546
|
+
}; }
|
|
547
|
+
};
|
|
548
|
+
LotteryBanner.style = LotteryBannerStyle0;
|
|
549
|
+
|
|
550
|
+
const DEFAULT_LANGUAGE$1 = 'en';
|
|
551
|
+
const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'fr', 'ar', 'hr', 'zh'];
|
|
552
|
+
const TRANSLATIONS$1 = {
|
|
181
553
|
en: {
|
|
182
554
|
loading: 'Loading'
|
|
183
555
|
},
|
|
@@ -186,9 +558,9 @@ const TRANSLATIONS$2 = {
|
|
|
186
558
|
ar: {},
|
|
187
559
|
hr: {}
|
|
188
560
|
};
|
|
189
|
-
const translate$
|
|
561
|
+
const translate$1 = (key, customLang, replacements) => {
|
|
190
562
|
const lang = customLang;
|
|
191
|
-
let translation = TRANSLATIONS$
|
|
563
|
+
let translation = TRANSLATIONS$1[lang !== undefined && SUPPORTED_LANGUAGES$1.includes(lang) ? lang : DEFAULT_LANGUAGE$1][key];
|
|
192
564
|
if (replacements) {
|
|
193
565
|
Object.keys(replacements).forEach((placeholder) => {
|
|
194
566
|
translation = translation.replace(`{${placeholder}}`, replacements[placeholder]);
|
|
@@ -199,7 +571,7 @@ const translate$2 = (key, customLang, replacements) => {
|
|
|
199
571
|
const getTranslations$1 = (data) => {
|
|
200
572
|
Object.keys(data).forEach((item) => {
|
|
201
573
|
for (let key in data[item]) {
|
|
202
|
-
TRANSLATIONS$
|
|
574
|
+
TRANSLATIONS$1[item][key] = data[item][key];
|
|
203
575
|
}
|
|
204
576
|
});
|
|
205
577
|
};
|
|
@@ -329,7 +701,7 @@ const LotteryButton = class {
|
|
|
329
701
|
[`btn--${variant}`]: true,
|
|
330
702
|
[`btn--${size}`]: true,
|
|
331
703
|
'btn--loading': this.loading
|
|
332
|
-
}, style: color ? buttonStyles : undefined, disabled: isDisabled, onClick: this.handleClick, ref: (el) => (this.stylingContainer = el) }, this.loading ? (index.h("div", { class: "loading-container" }, index.h("span", { class: "content" }, this.text || translate$
|
|
704
|
+
}, style: color ? buttonStyles : undefined, disabled: isDisabled, onClick: this.handleClick, ref: (el) => (this.stylingContainer = el) }, this.loading ? (index.h("div", { class: "loading-container" }, index.h("span", { class: "content" }, this.text || translate$1('loading', this.language)), index.h("span", { class: "spinner" }))) : (index.h("span", { class: "content" }, index.h("slot", { name: "icon-left" }), this.text || index.h("slot", null), index.h("slot", { name: "icon-right" }))), index.h("div", { key: '302ea02be395bb24989d4abc040a513e23fa029a', class: "ripple-container" }, this.ripples.map((ripple, index$1) => (index.h("span", { key: index$1, class: "ripple", style: {
|
|
333
705
|
top: `${ripple.top}px`,
|
|
334
706
|
left: `${ripple.left}px`,
|
|
335
707
|
width: `${ripple.size}px`,
|
|
@@ -514,116 +886,6 @@ const LotteryTippingBulletGroup = class {
|
|
|
514
886
|
};
|
|
515
887
|
LotteryTippingBulletGroup.style = LotteryTippingBulletGroupStyle0;
|
|
516
888
|
|
|
517
|
-
const DEFAULT_LANGUAGE$1 = 'en';
|
|
518
|
-
const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
519
|
-
const TRANSLATIONS$1 = {
|
|
520
|
-
en: {
|
|
521
|
-
stop: 'Stop',
|
|
522
|
-
at: 'at',
|
|
523
|
-
turnover: 'Turnover: '
|
|
524
|
-
},
|
|
525
|
-
ro: {
|
|
526
|
-
stop: 'Oprește',
|
|
527
|
-
at: 'la'
|
|
528
|
-
},
|
|
529
|
-
fr: {
|
|
530
|
-
stop: 'Arrêtez',
|
|
531
|
-
at: 'à'
|
|
532
|
-
},
|
|
533
|
-
ar: {
|
|
534
|
-
stop: 'توقف',
|
|
535
|
-
at: 'في'
|
|
536
|
-
},
|
|
537
|
-
hr: {
|
|
538
|
-
stop: 'Stop',
|
|
539
|
-
at: 'u'
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
const translate$1 = (key, customLang) => {
|
|
543
|
-
const lang = customLang;
|
|
544
|
-
return TRANSLATIONS$1[lang !== undefined && SUPPORTED_LANGUAGES$1.includes(lang) ? lang : DEFAULT_LANGUAGE$1][key];
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
const lotteryTippingTicketBannerCss = ".lottery-tipping-ticket-banner__container {\n font-family: system-ui, sans-serif;\n font-size: 14px;\n container-type: inline-size;\n}\n\n.banner {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n padding: 0 1rem;\n background: var(--emw--color-primary, #fed275);\n border-top: 2px solid var(--emw--color-primary, #fed275);\n border-bottom: 2px solid var(--emw--color-primary, #fed275);\n gap: 0.5rem;\n white-space: nowrap;\n position: relative;\n height: 46px;\n}\n\n.left {\n flex: 1;\n gap: 0.4rem;\n}\n.left .logo {\n width: 216px;\n position: absolute;\n top: -7px;\n}\n\n.brand {\n font-weight: 700;\n color: var(--emw--color-typography, #000);\n}\n\n.mid {\n flex: 1;\n font-size: 1.5rem;\n font-weight: 800;\n font-style: italic;\n letter-spacing: 0.04em;\n color: var(--emw--color-typography, #000);\n text-align: center;\n}\n\n.right {\n flex: 1;\n display: flex;\n gap: 0.4rem;\n flex-wrap: wrap;\n justify-content: flex-end;\n}\n\n@container (max-width: 420px) {\n .mid {\n text-align: right;\n }\n .right {\n justify-content: center;\n }\n}\n.pill {\n padding: 0.25rem 0.7rem;\n font-size: 0.9rem;\n color: var(--emw--color-gray-400, #000);\n display: inline-flex;\n align-items: baseline;\n}\n\n.pill > strong {\n font-weight: 700;\n}";
|
|
548
|
-
const LotteryTippingTicketBannerStyle0 = lotteryTippingTicketBannerCss;
|
|
549
|
-
|
|
550
|
-
const LotteryTippingTicketBanner = class {
|
|
551
|
-
constructor(hostRef) {
|
|
552
|
-
index.registerInstance(this, hostRef);
|
|
553
|
-
this.mbSource = undefined;
|
|
554
|
-
this.clientStyling = undefined;
|
|
555
|
-
this.clientStylingUrl = undefined;
|
|
556
|
-
this.language = 'en';
|
|
557
|
-
this.translationUrl = '';
|
|
558
|
-
this.logoUrl = undefined;
|
|
559
|
-
this.stopTime = '';
|
|
560
|
-
this.period = undefined;
|
|
561
|
-
this.formattedTurnover = undefined;
|
|
562
|
-
}
|
|
563
|
-
get formattedStopTime() {
|
|
564
|
-
let _temp = '';
|
|
565
|
-
if (!this.stopTime) {
|
|
566
|
-
return _temp;
|
|
567
|
-
}
|
|
568
|
-
_temp = lotteryTippingTicketController.formatDate({ date: this.stopTime, format: 'dd/MM/yyyy HH:mm' });
|
|
569
|
-
if (isToday(new Date(this.stopTime))) {
|
|
570
|
-
_temp = lotteryTippingTicketController.formatDate({ date: this.stopTime, format: 'HH:mm' });
|
|
571
|
-
}
|
|
572
|
-
return _temp;
|
|
573
|
-
}
|
|
574
|
-
get formattedPeriod() {
|
|
575
|
-
let _temp = '';
|
|
576
|
-
_temp = lotteryTippingTicketController.formatDate({ date: this.period, format: 'EEEE' });
|
|
577
|
-
if (_temp.toLowerCase() === 'wednesday') {
|
|
578
|
-
_temp = 'MIDWEEK';
|
|
579
|
-
}
|
|
580
|
-
return _temp.toUpperCase();
|
|
581
|
-
}
|
|
582
|
-
handleClientStylingChange(newValue, oldValue) {
|
|
583
|
-
if (newValue != oldValue) {
|
|
584
|
-
lotteryTippingTicketController.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
handleClientStylingUrlChange(newValue, oldValue) {
|
|
588
|
-
if (newValue != oldValue) {
|
|
589
|
-
lotteryTippingTicketController.setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
handleMbSourceChange(newValue, oldValue) {
|
|
593
|
-
if (newValue != oldValue) {
|
|
594
|
-
lotteryTippingTicketController.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
async componentWillLoad() {
|
|
598
|
-
if (this.translationUrl) {
|
|
599
|
-
lotteryTippingTicketController.resolveTranslationUrl(this.translationUrl);
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
componentDidLoad() {
|
|
603
|
-
if (this.stylingContainer) {
|
|
604
|
-
if (this.mbSource)
|
|
605
|
-
lotteryTippingTicketController.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
606
|
-
if (this.clientStyling)
|
|
607
|
-
lotteryTippingTicketController.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
608
|
-
if (this.clientStylingUrl)
|
|
609
|
-
lotteryTippingTicketController.setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
disconnectedCallback() {
|
|
613
|
-
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
614
|
-
}
|
|
615
|
-
render() {
|
|
616
|
-
return (index.h("div", { key: 'e9286d0a6a9433698703b9c04d6d50892a7b3168', ref: (el) => (this.stylingContainer = el), class: "lottery-tipping-ticket-banner__container" }, index.h("section", { key: 'd787e64156f76cf6d12bd552513971301534860c', class: "banner" }, index.h("div", { key: '027baf0c88733d1430801c96b5b338f79f92f22c', class: "left" }, this.logoUrl && index.h("img", { key: '7b41d5635a2121ccf394aca19de48e10e9a93357', alt: "Betting", src: this.logoUrl, class: "logo" })), index.h("div", { key: '73e6c3ffa336b020a3819a72b71117b8084381b1', class: "mid period" }, this.formattedPeriod), index.h("div", { key: '922ae894814157f68aa8f0774c8aa5ca06e1e7cd', class: "right" }, index.h("span", { key: 'efaf79b1ff5617f2ba92cfef464232041cd87fbf', class: "pill" }, index.h("strong", { key: 'c842562b15a13407038933da9d1cc7c6fafa0b76' }, translate$1('stop', this.language)), "\u00A0", translate$1('at', this.language), "\u00A0", this.formattedStopTime), index.h("span", { key: '3e79a5ec17cbcf0896d58196286fa0b637988f69', class: "pill" }, index.h("strong", { key: '1158b00abffb1c6bf04e9eec10b4c996d04f118e' }, translate$1('turnover', this.language)), "\u00A0", this.formattedTurnover)))));
|
|
617
|
-
}
|
|
618
|
-
static get assetsDirs() { return ["../static"]; }
|
|
619
|
-
static get watchers() { return {
|
|
620
|
-
"clientStyling": ["handleClientStylingChange"],
|
|
621
|
-
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
622
|
-
"mbSource": ["handleMbSourceChange"]
|
|
623
|
-
}; }
|
|
624
|
-
};
|
|
625
|
-
LotteryTippingTicketBanner.style = LotteryTippingTicketBannerStyle0;
|
|
626
|
-
|
|
627
889
|
const DEFAULT_LANGUAGE = 'en';
|
|
628
890
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
629
891
|
const TRANSLATIONS = {
|
|
@@ -884,7 +1146,7 @@ const LotteryTippingTicketBet = class {
|
|
|
884
1146
|
this.defaultBulletConfigLineGroup = undefined;
|
|
885
1147
|
this.bulletConfigLineGroup = [[[]]];
|
|
886
1148
|
this.currentPage = 1;
|
|
887
|
-
this.isLoading =
|
|
1149
|
+
this.isLoading = false;
|
|
888
1150
|
this.hasErrors = false;
|
|
889
1151
|
this.dialogConfig = { visible: false };
|
|
890
1152
|
this.ticketDataSource = [];
|
|
@@ -1158,8 +1420,8 @@ LotteryTippingTicketBet.style = LotteryTippingTicketBetStyle0;
|
|
|
1158
1420
|
|
|
1159
1421
|
exports.lottery_tipping_ticket_controller = lotteryTippingTicketController.LotteryTippingTicketController;
|
|
1160
1422
|
exports.general_tooltip = GeneralTooltip;
|
|
1423
|
+
exports.lottery_banner = LotteryBanner;
|
|
1161
1424
|
exports.lottery_button = LotteryButton;
|
|
1162
1425
|
exports.lottery_tipping_bullet = LotteryTippingBullet;
|
|
1163
1426
|
exports.lottery_tipping_bullet_group = LotteryTippingBulletGroup;
|
|
1164
|
-
exports.lottery_tipping_ticket_banner = LotteryTippingTicketBanner;
|
|
1165
1427
|
exports.lottery_tipping_ticket_bet = LotteryTippingTicketBet;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const lotteryTippingTicketController = require('./lottery-tipping-ticket-controller-
|
|
5
|
+
const lotteryTippingTicketController = require('./lottery-tipping-ticket-controller-90ba14f0.js');
|
|
6
6
|
require('./index-3e1fe885.js');
|
|
7
7
|
|
|
8
8
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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],"logoUrl":[513,"logo-url"],"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],"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-
|
|
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],"logoUrl":[513,"logo-url"],"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);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|