@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement, c as createEvent } from './index-e3ec645c.js';
|
|
2
|
-
import { r as requiredArgs, t as toDate, s as setClientStyling, a as setClientStylingURL, b as setStreamStyling,
|
|
3
|
-
export { L as lottery_tipping_ticket_controller } from './lottery-tipping-ticket-controller-
|
|
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-f46b8ced.js';
|
|
3
|
+
export { L as lottery_tipping_ticket_controller } from './lottery-tipping-ticket-controller-f46b8ced.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @name startOfDay
|
|
@@ -62,6 +62,102 @@ function isSameDay(dirtyDateLeft, dirtyDateRight) {
|
|
|
62
62
|
return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
|
|
63
63
|
}
|
|
64
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
|
+
|
|
65
161
|
/**
|
|
66
162
|
* @name isToday
|
|
67
163
|
* @category Day Helpers
|
|
@@ -88,6 +184,58 @@ function isToday(dirtyDate) {
|
|
|
88
184
|
return isSameDay(dirtyDate, Date.now());
|
|
89
185
|
}
|
|
90
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
|
+
}
|
|
238
|
+
|
|
91
239
|
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}";
|
|
92
240
|
const GeneralTooltipStyle0 = generalTooltipCss;
|
|
93
241
|
|
|
@@ -173,8 +321,232 @@ const GeneralTooltip = class {
|
|
|
173
321
|
GeneralTooltip.style = GeneralTooltipStyle0;
|
|
174
322
|
|
|
175
323
|
const DEFAULT_LANGUAGE$2 = 'en';
|
|
176
|
-
const SUPPORTED_LANGUAGES$2 = ['ro', 'en', 'fr', 'ar', 'hr'
|
|
324
|
+
const SUPPORTED_LANGUAGES$2 = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
177
325
|
const TRANSLATIONS$2 = {
|
|
326
|
+
en: {
|
|
327
|
+
stop: 'Stop',
|
|
328
|
+
at: 'at',
|
|
329
|
+
turnover: 'Turnover: ',
|
|
330
|
+
start: 'Sales Start',
|
|
331
|
+
in: 'in'
|
|
332
|
+
},
|
|
333
|
+
ro: {
|
|
334
|
+
stop: 'Oprește',
|
|
335
|
+
at: 'la'
|
|
336
|
+
},
|
|
337
|
+
fr: {
|
|
338
|
+
stop: 'Arrêtez',
|
|
339
|
+
at: 'à'
|
|
340
|
+
},
|
|
341
|
+
ar: {
|
|
342
|
+
stop: 'توقف',
|
|
343
|
+
at: 'في'
|
|
344
|
+
},
|
|
345
|
+
hr: {
|
|
346
|
+
stop: 'Stop',
|
|
347
|
+
at: 'u'
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
const translate$2 = (key, customLang) => {
|
|
351
|
+
const lang = customLang;
|
|
352
|
+
return TRANSLATIONS$2[lang !== undefined && SUPPORTED_LANGUAGES$2.includes(lang) ? lang : DEFAULT_LANGUAGE$2][key];
|
|
353
|
+
};
|
|
354
|
+
const getTranslations$2 = (data) => {
|
|
355
|
+
Object.keys(data).forEach((item) => {
|
|
356
|
+
for (let key in data[item]) {
|
|
357
|
+
TRANSLATIONS$2[item][key] = data[item][key];
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
};
|
|
361
|
+
const resolveTranslationUrl$1 = async (translationUrl) => {
|
|
362
|
+
if (translationUrl) {
|
|
363
|
+
try {
|
|
364
|
+
const response = await fetch(translationUrl);
|
|
365
|
+
if (!response.ok) {
|
|
366
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
367
|
+
}
|
|
368
|
+
const translations = await response.json();
|
|
369
|
+
getTranslations$2(translations);
|
|
370
|
+
}
|
|
371
|
+
catch (error) {
|
|
372
|
+
console.error('Failed to fetch or parse translations from URL:', error);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
const formatDate$1 = ({ date, type = 'date', format: format$1 }) => {
|
|
378
|
+
try {
|
|
379
|
+
const parsedDate = parseISO(date);
|
|
380
|
+
if (isNaN(parsedDate.getTime())) {
|
|
381
|
+
throw new Error(`Invalid date: ${date}`);
|
|
382
|
+
}
|
|
383
|
+
if (format$1)
|
|
384
|
+
return format(parsedDate, format$1);
|
|
385
|
+
let formatStr = 'dd/MM/yyyy';
|
|
386
|
+
if (type === 'time') {
|
|
387
|
+
formatStr = 'dd/MM/yyyy HH:mm:ss';
|
|
388
|
+
}
|
|
389
|
+
else if (type === 'week') {
|
|
390
|
+
formatStr = 'ccc dd/MM/yyyy HH:mm:ss';
|
|
391
|
+
}
|
|
392
|
+
return format(parsedDate, formatStr);
|
|
393
|
+
}
|
|
394
|
+
catch (error) {
|
|
395
|
+
console.error('Error formatting date:', error.message);
|
|
396
|
+
return '';
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
function formatTime(time) {
|
|
400
|
+
if (!time)
|
|
401
|
+
return;
|
|
402
|
+
if (isToday(new Date(time))) {
|
|
403
|
+
return formatDate$1({ date: time, format: 'HH:mm' });
|
|
404
|
+
}
|
|
405
|
+
return formatDate$1({ date: time, format: 'dd/MM/yyyy HH:mm' });
|
|
406
|
+
}
|
|
407
|
+
function formatCountdown(stopTime, _now) {
|
|
408
|
+
if (!stopTime)
|
|
409
|
+
return;
|
|
410
|
+
const endTime = typeof stopTime === 'string' ? parseISO(stopTime) : stopTime;
|
|
411
|
+
const now = _now && new Date();
|
|
412
|
+
let totalSeconds = differenceInSeconds(endTime, now);
|
|
413
|
+
if (totalSeconds < 0)
|
|
414
|
+
return '0D 00H 00M 00S';
|
|
415
|
+
const days = Math.floor(totalSeconds / 86400);
|
|
416
|
+
totalSeconds %= 86400;
|
|
417
|
+
const hours = Math.floor(totalSeconds / 3600);
|
|
418
|
+
totalSeconds %= 3600;
|
|
419
|
+
const minutes = Math.floor(totalSeconds / 60);
|
|
420
|
+
const seconds = totalSeconds % 60;
|
|
421
|
+
return `${days}D ${hours.toString().padStart(2, '0')}H ${minutes.toString().padStart(2, '0')}M ${seconds
|
|
422
|
+
.toString()
|
|
423
|
+
.padStart(2, '0')}S`;
|
|
424
|
+
}
|
|
425
|
+
function getWagerTime(startTime, stopTime) {
|
|
426
|
+
const now = new Date();
|
|
427
|
+
if (startTime && isBefore(now, parseISO(startTime))) {
|
|
428
|
+
return { start: formatCountdown(startTime, now) };
|
|
429
|
+
}
|
|
430
|
+
if (startTime &&
|
|
431
|
+
stopTime &&
|
|
432
|
+
isWithinInterval(now, {
|
|
433
|
+
start: parseISO(startTime),
|
|
434
|
+
end: parseISO(stopTime)
|
|
435
|
+
})) {
|
|
436
|
+
return { end: formatTime(stopTime) };
|
|
437
|
+
}
|
|
438
|
+
return {};
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
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}";
|
|
442
|
+
const LotteryBannerStyle0 = lotteryBannerCss;
|
|
443
|
+
|
|
444
|
+
const LotteryBanner = class {
|
|
445
|
+
constructor(hostRef) {
|
|
446
|
+
registerInstance(this, hostRef);
|
|
447
|
+
this.lotteryBannerTimerStop = createEvent(this, "lotteryBannerTimerStop", 7);
|
|
448
|
+
this.mbSource = undefined;
|
|
449
|
+
this.clientStyling = undefined;
|
|
450
|
+
this.clientStylingUrl = undefined;
|
|
451
|
+
this.translationUrl = '';
|
|
452
|
+
this.language = 'en';
|
|
453
|
+
this.logoUrl = undefined;
|
|
454
|
+
this.stopTime = '';
|
|
455
|
+
this.startTime = '';
|
|
456
|
+
this.bannerTitle = undefined;
|
|
457
|
+
this.turnover = undefined;
|
|
458
|
+
this.layout = 'logo,title,info';
|
|
459
|
+
this.formattedTime = undefined;
|
|
460
|
+
}
|
|
461
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
462
|
+
if (newValue !== oldValue) {
|
|
463
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
467
|
+
if (newValue !== oldValue) {
|
|
468
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
472
|
+
if (newValue !== oldValue) {
|
|
473
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
handleTimeChange() {
|
|
477
|
+
this.startTimer();
|
|
478
|
+
}
|
|
479
|
+
async componentWillLoad() {
|
|
480
|
+
if (this.translationUrl) {
|
|
481
|
+
resolveTranslationUrl$1(this.translationUrl);
|
|
482
|
+
}
|
|
483
|
+
this.startTimer();
|
|
484
|
+
}
|
|
485
|
+
startTimer() {
|
|
486
|
+
if (this.timer) {
|
|
487
|
+
clearInterval(this.timer);
|
|
488
|
+
}
|
|
489
|
+
this.updateTime();
|
|
490
|
+
this.timer = setInterval(() => {
|
|
491
|
+
this.updateTime();
|
|
492
|
+
}, 1000);
|
|
493
|
+
}
|
|
494
|
+
updateTime() {
|
|
495
|
+
var _a;
|
|
496
|
+
this.formattedTime = getWagerTime(this.startTime, this.stopTime);
|
|
497
|
+
if ((_a = this.formattedTime) === null || _a === void 0 ? void 0 : _a.end) {
|
|
498
|
+
this.timer && clearInterval(this.timer);
|
|
499
|
+
this.lotteryBannerTimerStop.emit();
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
componentDidLoad() {
|
|
503
|
+
if (this.stylingContainer) {
|
|
504
|
+
if (this.mbSource)
|
|
505
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
506
|
+
if (this.clientStyling)
|
|
507
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
508
|
+
if (this.clientStylingUrl)
|
|
509
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
disconnectedCallback() {
|
|
513
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
514
|
+
this.timer && clearInterval(this.timer);
|
|
515
|
+
}
|
|
516
|
+
renderElement(item, className = '') {
|
|
517
|
+
var _a, _b;
|
|
518
|
+
switch (item) {
|
|
519
|
+
case 'logo':
|
|
520
|
+
return (h("div", { class: `lottery-banner__logo-wrapper ${className}` }, this.logoUrl && h("img", { alt: "logo", src: this.logoUrl, class: "lottery-banner__logo" })));
|
|
521
|
+
case 'title':
|
|
522
|
+
return this.bannerTitle && h("div", { class: `lottery-banner__title ${className}` }, this.bannerTitle);
|
|
523
|
+
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('start', this.language)), "\u00A0", translate$2('in', this.language)), h("span", { class: "lottery-banner__info-item-value" }, 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))), 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
|
+
default:
|
|
526
|
+
return null;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
render() {
|
|
530
|
+
const layoutItems = this.layout.split(',').map((item) => item.trim());
|
|
531
|
+
return (h("section", { key: '058aa04a8104d393f6066fd2738fb33cb6d832a2', ref: (el) => (this.stylingContainer = el), class: "lottery-banner" }, layoutItems.map((item, index) => {
|
|
532
|
+
const isMiddle = layoutItems.length === 3 && index === 1;
|
|
533
|
+
const className = isMiddle ? 'lottery-banner__item--center' : '';
|
|
534
|
+
return this.renderElement(item, className);
|
|
535
|
+
})));
|
|
536
|
+
}
|
|
537
|
+
static get watchers() { return {
|
|
538
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
539
|
+
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
540
|
+
"mbSource": ["handleMbSourceChange"],
|
|
541
|
+
"startTime": ["handleTimeChange"],
|
|
542
|
+
"stopTime": ["handleTimeChange"]
|
|
543
|
+
}; }
|
|
544
|
+
};
|
|
545
|
+
LotteryBanner.style = LotteryBannerStyle0;
|
|
546
|
+
|
|
547
|
+
const DEFAULT_LANGUAGE$1 = 'en';
|
|
548
|
+
const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'fr', 'ar', 'hr', 'zh'];
|
|
549
|
+
const TRANSLATIONS$1 = {
|
|
178
550
|
en: {
|
|
179
551
|
loading: 'Loading'
|
|
180
552
|
},
|
|
@@ -183,9 +555,9 @@ const TRANSLATIONS$2 = {
|
|
|
183
555
|
ar: {},
|
|
184
556
|
hr: {}
|
|
185
557
|
};
|
|
186
|
-
const translate$
|
|
558
|
+
const translate$1 = (key, customLang, replacements) => {
|
|
187
559
|
const lang = customLang;
|
|
188
|
-
let translation = TRANSLATIONS$
|
|
560
|
+
let translation = TRANSLATIONS$1[lang !== undefined && SUPPORTED_LANGUAGES$1.includes(lang) ? lang : DEFAULT_LANGUAGE$1][key];
|
|
189
561
|
if (replacements) {
|
|
190
562
|
Object.keys(replacements).forEach((placeholder) => {
|
|
191
563
|
translation = translation.replace(`{${placeholder}}`, replacements[placeholder]);
|
|
@@ -196,7 +568,7 @@ const translate$2 = (key, customLang, replacements) => {
|
|
|
196
568
|
const getTranslations$1 = (data) => {
|
|
197
569
|
Object.keys(data).forEach((item) => {
|
|
198
570
|
for (let key in data[item]) {
|
|
199
|
-
TRANSLATIONS$
|
|
571
|
+
TRANSLATIONS$1[item][key] = data[item][key];
|
|
200
572
|
}
|
|
201
573
|
});
|
|
202
574
|
};
|
|
@@ -326,7 +698,7 @@ const LotteryButton = class {
|
|
|
326
698
|
[`btn--${variant}`]: true,
|
|
327
699
|
[`btn--${size}`]: true,
|
|
328
700
|
'btn--loading': this.loading
|
|
329
|
-
}, style: color ? buttonStyles : undefined, disabled: isDisabled, onClick: this.handleClick, ref: (el) => (this.stylingContainer = el) }, this.loading ? (h("div", { class: "loading-container" }, h("span", { class: "content" }, this.text || translate$
|
|
701
|
+
}, style: color ? buttonStyles : undefined, disabled: isDisabled, onClick: this.handleClick, ref: (el) => (this.stylingContainer = el) }, this.loading ? (h("div", { class: "loading-container" }, h("span", { class: "content" }, this.text || translate$1('loading', this.language)), h("span", { class: "spinner" }))) : (h("span", { class: "content" }, h("slot", { name: "icon-left" }), this.text || h("slot", null), h("slot", { name: "icon-right" }))), h("div", { key: '302ea02be395bb24989d4abc040a513e23fa029a', class: "ripple-container" }, this.ripples.map((ripple, index) => (h("span", { key: index, class: "ripple", style: {
|
|
330
702
|
top: `${ripple.top}px`,
|
|
331
703
|
left: `${ripple.left}px`,
|
|
332
704
|
width: `${ripple.size}px`,
|
|
@@ -511,116 +883,6 @@ const LotteryTippingBulletGroup = class {
|
|
|
511
883
|
};
|
|
512
884
|
LotteryTippingBulletGroup.style = LotteryTippingBulletGroupStyle0;
|
|
513
885
|
|
|
514
|
-
const DEFAULT_LANGUAGE$1 = 'en';
|
|
515
|
-
const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
516
|
-
const TRANSLATIONS$1 = {
|
|
517
|
-
en: {
|
|
518
|
-
stop: 'Stop',
|
|
519
|
-
at: 'at',
|
|
520
|
-
turnover: 'Turnover: '
|
|
521
|
-
},
|
|
522
|
-
ro: {
|
|
523
|
-
stop: 'Oprește',
|
|
524
|
-
at: 'la'
|
|
525
|
-
},
|
|
526
|
-
fr: {
|
|
527
|
-
stop: 'Arrêtez',
|
|
528
|
-
at: 'à'
|
|
529
|
-
},
|
|
530
|
-
ar: {
|
|
531
|
-
stop: 'توقف',
|
|
532
|
-
at: 'في'
|
|
533
|
-
},
|
|
534
|
-
hr: {
|
|
535
|
-
stop: 'Stop',
|
|
536
|
-
at: 'u'
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
|
-
const translate$1 = (key, customLang) => {
|
|
540
|
-
const lang = customLang;
|
|
541
|
-
return TRANSLATIONS$1[lang !== undefined && SUPPORTED_LANGUAGES$1.includes(lang) ? lang : DEFAULT_LANGUAGE$1][key];
|
|
542
|
-
};
|
|
543
|
-
|
|
544
|
-
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}";
|
|
545
|
-
const LotteryTippingTicketBannerStyle0 = lotteryTippingTicketBannerCss;
|
|
546
|
-
|
|
547
|
-
const LotteryTippingTicketBanner = class {
|
|
548
|
-
constructor(hostRef) {
|
|
549
|
-
registerInstance(this, hostRef);
|
|
550
|
-
this.mbSource = undefined;
|
|
551
|
-
this.clientStyling = undefined;
|
|
552
|
-
this.clientStylingUrl = undefined;
|
|
553
|
-
this.language = 'en';
|
|
554
|
-
this.translationUrl = '';
|
|
555
|
-
this.logoUrl = undefined;
|
|
556
|
-
this.stopTime = '';
|
|
557
|
-
this.period = undefined;
|
|
558
|
-
this.formattedTurnover = undefined;
|
|
559
|
-
}
|
|
560
|
-
get formattedStopTime() {
|
|
561
|
-
let _temp = '';
|
|
562
|
-
if (!this.stopTime) {
|
|
563
|
-
return _temp;
|
|
564
|
-
}
|
|
565
|
-
_temp = formatDate$1({ date: this.stopTime, format: 'dd/MM/yyyy HH:mm' });
|
|
566
|
-
if (isToday(new Date(this.stopTime))) {
|
|
567
|
-
_temp = formatDate$1({ date: this.stopTime, format: 'HH:mm' });
|
|
568
|
-
}
|
|
569
|
-
return _temp;
|
|
570
|
-
}
|
|
571
|
-
get formattedPeriod() {
|
|
572
|
-
let _temp = '';
|
|
573
|
-
_temp = formatDate$1({ date: this.period, format: 'EEEE' });
|
|
574
|
-
if (_temp.toLowerCase() === 'wednesday') {
|
|
575
|
-
_temp = 'MIDWEEK';
|
|
576
|
-
}
|
|
577
|
-
return _temp.toUpperCase();
|
|
578
|
-
}
|
|
579
|
-
handleClientStylingChange(newValue, oldValue) {
|
|
580
|
-
if (newValue != oldValue) {
|
|
581
|
-
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
handleClientStylingUrlChange(newValue, oldValue) {
|
|
585
|
-
if (newValue != oldValue) {
|
|
586
|
-
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
handleMbSourceChange(newValue, oldValue) {
|
|
590
|
-
if (newValue != oldValue) {
|
|
591
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
async componentWillLoad() {
|
|
595
|
-
if (this.translationUrl) {
|
|
596
|
-
resolveTranslationUrl$1(this.translationUrl);
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
componentDidLoad() {
|
|
600
|
-
if (this.stylingContainer) {
|
|
601
|
-
if (this.mbSource)
|
|
602
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
603
|
-
if (this.clientStyling)
|
|
604
|
-
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
605
|
-
if (this.clientStylingUrl)
|
|
606
|
-
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
disconnectedCallback() {
|
|
610
|
-
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
611
|
-
}
|
|
612
|
-
render() {
|
|
613
|
-
return (h("div", { key: 'e9286d0a6a9433698703b9c04d6d50892a7b3168', ref: (el) => (this.stylingContainer = el), class: "lottery-tipping-ticket-banner__container" }, h("section", { key: 'd787e64156f76cf6d12bd552513971301534860c', class: "banner" }, h("div", { key: '027baf0c88733d1430801c96b5b338f79f92f22c', class: "left" }, this.logoUrl && h("img", { key: '7b41d5635a2121ccf394aca19de48e10e9a93357', alt: "Betting", src: this.logoUrl, class: "logo" })), h("div", { key: '73e6c3ffa336b020a3819a72b71117b8084381b1', class: "mid period" }, this.formattedPeriod), h("div", { key: '922ae894814157f68aa8f0774c8aa5ca06e1e7cd', class: "right" }, h("span", { key: 'efaf79b1ff5617f2ba92cfef464232041cd87fbf', class: "pill" }, h("strong", { key: 'c842562b15a13407038933da9d1cc7c6fafa0b76' }, translate$1('stop', this.language)), "\u00A0", translate$1('at', this.language), "\u00A0", this.formattedStopTime), h("span", { key: '3e79a5ec17cbcf0896d58196286fa0b637988f69', class: "pill" }, h("strong", { key: '1158b00abffb1c6bf04e9eec10b4c996d04f118e' }, translate$1('turnover', this.language)), "\u00A0", this.formattedTurnover)))));
|
|
614
|
-
}
|
|
615
|
-
static get assetsDirs() { return ["../static"]; }
|
|
616
|
-
static get watchers() { return {
|
|
617
|
-
"clientStyling": ["handleClientStylingChange"],
|
|
618
|
-
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
619
|
-
"mbSource": ["handleMbSourceChange"]
|
|
620
|
-
}; }
|
|
621
|
-
};
|
|
622
|
-
LotteryTippingTicketBanner.style = LotteryTippingTicketBannerStyle0;
|
|
623
|
-
|
|
624
886
|
const DEFAULT_LANGUAGE = 'en';
|
|
625
887
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
626
888
|
const TRANSLATIONS = {
|
|
@@ -881,7 +1143,7 @@ const LotteryTippingTicketBet = class {
|
|
|
881
1143
|
this.defaultBulletConfigLineGroup = undefined;
|
|
882
1144
|
this.bulletConfigLineGroup = [[[]]];
|
|
883
1145
|
this.currentPage = 1;
|
|
884
|
-
this.isLoading =
|
|
1146
|
+
this.isLoading = false;
|
|
885
1147
|
this.hasErrors = false;
|
|
886
1148
|
this.dialogConfig = { visible: false };
|
|
887
1149
|
this.ticketDataSource = [];
|
|
@@ -1153,4 +1415,4 @@ const LotteryTippingTicketBet = class {
|
|
|
1153
1415
|
};
|
|
1154
1416
|
LotteryTippingTicketBet.style = LotteryTippingTicketBetStyle0;
|
|
1155
1417
|
|
|
1156
|
-
export { GeneralTooltip as general_tooltip, LotteryButton as lottery_button, LotteryTippingBullet as lottery_tipping_bullet, LotteryTippingBulletGroup as lottery_tipping_bullet_group,
|
|
1418
|
+
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 };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { L as LotteryTippingTicketController } from './lottery-tipping-ticket-controller-
|
|
1
|
+
export { L as LotteryTippingTicketController } from './lottery-tipping-ticket-controller-f46b8ced.js';
|
|
2
2
|
import './index-e3ec645c.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -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],"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-
|
|
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],"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);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|