@everymatrix/lottery-banner 0.7.4 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/cjs/helper-count-down_2.cjs.entry.js +172 -0
  2. package/dist/cjs/{index-7e1b19dd.js → index-21014502.js} +26 -5
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{lottery-banner-c3bceca9.js → lottery-banner-c5020b47.js} +25 -297
  6. package/dist/cjs/lottery-banner.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +8 -1
  8. package/dist/collection/components/lottery-banner/lottery-banner.css +4 -0
  9. package/dist/collection/components/lottery-banner/lottery-banner.js +25 -26
  10. package/dist/esm/helper-count-down_2.entry.js +168 -0
  11. package/dist/esm/{index-472357af.js → index-fd1b34f8.js} +26 -5
  12. package/dist/esm/index.js +2 -2
  13. package/dist/esm/loader.js +3 -3
  14. package/dist/esm/{lottery-banner-8d9a42d1.js → lottery-banner-a9eb5657.js} +22 -298
  15. package/dist/esm/lottery-banner.js +3 -3
  16. package/dist/lottery-banner/helper-count-down_2.entry.js +1 -0
  17. package/dist/lottery-banner/index-fd1b34f8.js +2 -0
  18. package/dist/lottery-banner/index.esm.js +1 -1
  19. package/dist/lottery-banner/lottery-banner-a9eb5657.js +1 -0
  20. package/dist/lottery-banner/lottery-banner.esm.js +1 -1
  21. package/dist/types/components/lottery-banner/lottery-banner.d.ts +7 -9
  22. package/dist/types/components.d.ts +3 -3
  23. package/package.json +1 -1
  24. package/dist/cjs/lottery-banner.cjs.entry.js +0 -10
  25. package/dist/esm/lottery-banner.entry.js +0 -2
  26. package/dist/lottery-banner/index-472357af.js +0 -2
  27. package/dist/lottery-banner/lottery-banner-8d9a42d1.js +0 -1
  28. package/dist/lottery-banner/lottery-banner.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, g as getAssetPath, h } from './index-472357af.js';
1
+ import { r as registerInstance, c as createEvent, g as getAssetPath, h } from './index-fd1b34f8.js';
2
2
 
3
3
  const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
4
4
 
@@ -296,31 +296,6 @@ function getTimezoneOffsetInMilliseconds(date) {
296
296
  return date.getTime() - utcDate.getTime();
297
297
  }
298
298
 
299
- /**
300
- * @name startOfDay
301
- * @category Day Helpers
302
- * @summary Return the start of a day for the given date.
303
- *
304
- * @description
305
- * Return the start of a day for the given date.
306
- * The result will be in the local timezone.
307
- *
308
- * @param {Date|Number} date - the original date
309
- * @returns {Date} the start of a day
310
- * @throws {TypeError} 1 argument required
311
- *
312
- * @example
313
- * // The start of a day for 2 September 2014 11:55:00:
314
- * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
315
- * //=> Tue Sep 02 2014 00:00:00
316
- */
317
- function startOfDay(dirtyDate) {
318
- requiredArgs(1, arguments);
319
- var date = toDate(dirtyDate);
320
- date.setHours(0, 0, 0, 0);
321
- return date;
322
- }
323
-
324
299
  /**
325
300
  * Days in 1 week.
326
301
  *
@@ -350,41 +325,6 @@ var millisecondsInMinute = 60000;
350
325
  */
351
326
  var millisecondsInHour = 3600000;
352
327
 
353
- /**
354
- * @name isSameDay
355
- * @category Day Helpers
356
- * @summary Are the given dates in the same day (and year and month)?
357
- *
358
- * @description
359
- * Are the given dates in the same day (and year and month)?
360
- *
361
- * @param {Date|Number} dateLeft - the first date to check
362
- * @param {Date|Number} dateRight - the second date to check
363
- * @returns {Boolean} the dates are in the same day (and year and month)
364
- * @throws {TypeError} 2 arguments required
365
- *
366
- * @example
367
- * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
368
- * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
369
- * //=> true
370
- *
371
- * @example
372
- * // Are 4 September and 4 October in the same day?
373
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
374
- * //=> false
375
- *
376
- * @example
377
- * // Are 4 September, 2014 and 4 September, 2015 in the same day?
378
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
379
- * //=> false
380
- */
381
- function isSameDay(dirtyDateLeft, dirtyDateRight) {
382
- requiredArgs(2, arguments);
383
- var dateLeftStartOfDay = startOfDay(dirtyDateLeft);
384
- var dateRightStartOfDay = startOfDay(dirtyDateRight);
385
- return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
386
- }
387
-
388
328
  /**
389
329
  * @name isDate
390
330
  * @category Common Helpers
@@ -462,77 +402,6 @@ function isValid(dirtyDate) {
462
402
  return !isNaN(Number(date));
463
403
  }
464
404
 
465
- /**
466
- * @name differenceInMilliseconds
467
- * @category Millisecond Helpers
468
- * @summary Get the number of milliseconds between the given dates.
469
- *
470
- * @description
471
- * Get the number of milliseconds between the given dates.
472
- *
473
- * @param {Date|Number} dateLeft - the later date
474
- * @param {Date|Number} dateRight - the earlier date
475
- * @returns {Number} the number of milliseconds
476
- * @throws {TypeError} 2 arguments required
477
- *
478
- * @example
479
- * // How many milliseconds are between
480
- * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
481
- * const result = differenceInMilliseconds(
482
- * new Date(2014, 6, 2, 12, 30, 21, 700),
483
- * new Date(2014, 6, 2, 12, 30, 20, 600)
484
- * )
485
- * //=> 1100
486
- */
487
- function differenceInMilliseconds(dateLeft, dateRight) {
488
- requiredArgs(2, arguments);
489
- return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
490
- }
491
-
492
- var roundingMap = {
493
- ceil: Math.ceil,
494
- round: Math.round,
495
- floor: Math.floor,
496
- trunc: function trunc(value) {
497
- return value < 0 ? Math.ceil(value) : Math.floor(value);
498
- } // Math.trunc is not supported by IE
499
- };
500
-
501
- var defaultRoundingMethod = 'trunc';
502
- function getRoundingMethod(method) {
503
- return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
504
- }
505
-
506
- /**
507
- * @name differenceInSeconds
508
- * @category Second Helpers
509
- * @summary Get the number of seconds between the given dates.
510
- *
511
- * @description
512
- * Get the number of seconds between the given dates.
513
- *
514
- * @param {Date|Number} dateLeft - the later date
515
- * @param {Date|Number} dateRight - the earlier date
516
- * @param {Object} [options] - an object with options.
517
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
518
- * @returns {Number} the number of seconds
519
- * @throws {TypeError} 2 arguments required
520
- *
521
- * @example
522
- * // How many seconds are between
523
- * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?
524
- * const result = differenceInSeconds(
525
- * new Date(2014, 6, 2, 12, 30, 20, 0),
526
- * new Date(2014, 6, 2, 12, 30, 7, 999)
527
- * )
528
- * //=> 12
529
- */
530
- function differenceInSeconds(dateLeft, dateRight, options) {
531
- requiredArgs(2, arguments);
532
- var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;
533
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
534
- }
535
-
536
405
  /**
537
406
  * @name subMilliseconds
538
407
  * @category Millisecond Helpers
@@ -2552,84 +2421,6 @@ function isBefore(dirtyDate, dirtyDateToCompare) {
2552
2421
  return date.getTime() < dateToCompare.getTime();
2553
2422
  }
2554
2423
 
2555
- /**
2556
- * @name isToday
2557
- * @category Day Helpers
2558
- * @summary Is the given date today?
2559
- * @pure false
2560
- *
2561
- * @description
2562
- * Is the given date today?
2563
- *
2564
- * > ⚠️ Please note that this function is not present in the FP submodule as
2565
- * > it uses `Date.now()` internally hence impure and can't be safely curried.
2566
- *
2567
- * @param {Date|Number} date - the date to check
2568
- * @returns {Boolean} the date is today
2569
- * @throws {TypeError} 1 argument required
2570
- *
2571
- * @example
2572
- * // If today is 6 October 2014, is 6 October 14:00:00 today?
2573
- * const result = isToday(new Date(2014, 9, 6, 14, 0))
2574
- * //=> true
2575
- */
2576
- function isToday(dirtyDate) {
2577
- requiredArgs(1, arguments);
2578
- return isSameDay(dirtyDate, Date.now());
2579
- }
2580
-
2581
- /**
2582
- * @name isWithinInterval
2583
- * @category Interval Helpers
2584
- * @summary Is the given date within the interval?
2585
- *
2586
- * @description
2587
- * Is the given date within the interval? (Including start and end.)
2588
- *
2589
- * @param {Date|Number} date - the date to check
2590
- * @param {Interval} interval - the interval to check
2591
- * @returns {Boolean} the date is within the interval
2592
- * @throws {TypeError} 2 arguments required
2593
- * @throws {RangeError} The start of an interval cannot be after its end
2594
- * @throws {RangeError} Date in interval cannot be `Invalid Date`
2595
- *
2596
- * @example
2597
- * // For the date within the interval:
2598
- * isWithinInterval(new Date(2014, 0, 3), {
2599
- * start: new Date(2014, 0, 1),
2600
- * end: new Date(2014, 0, 7)
2601
- * })
2602
- * //=> true
2603
- *
2604
- * @example
2605
- * // For the date outside of the interval:
2606
- * isWithinInterval(new Date(2014, 0, 10), {
2607
- * start: new Date(2014, 0, 1),
2608
- * end: new Date(2014, 0, 7)
2609
- * })
2610
- * //=> false
2611
- *
2612
- * @example
2613
- * // For date equal to interval start:
2614
- * isWithinInterval(date, { start, end: date }) // => true
2615
- *
2616
- * @example
2617
- * // For date equal to interval end:
2618
- * isWithinInterval(date, { start: date, end }) // => true
2619
- */
2620
- function isWithinInterval(dirtyDate, interval) {
2621
- requiredArgs(2, arguments);
2622
- var time = toDate(dirtyDate).getTime();
2623
- var startTime = toDate(interval.start).getTime();
2624
- var endTime = toDate(interval.end).getTime();
2625
-
2626
- // Throw an exception if start date is after end date or if any date is `Invalid Date`
2627
- if (!(startTime <= endTime)) {
2628
- throw new RangeError('Invalid interval');
2629
- }
2630
- return time >= startTime && time <= endTime;
2631
- }
2632
-
2633
2424
  /**
2634
2425
  * @name parseISO
2635
2426
  * @category Common Helpers
@@ -2856,77 +2647,17 @@ function validateTimezone(_hours, minutes) {
2856
2647
  return minutes >= 0 && minutes <= 59;
2857
2648
  }
2858
2649
 
2859
- const formatDate = ({ date, type = 'date', format: format$1 }) => {
2860
- try {
2861
- const parsedDate = parseISO(date);
2862
- if (isNaN(parsedDate.getTime())) {
2863
- throw new Error(`Invalid date: ${date}`);
2864
- }
2865
- if (format$1)
2866
- return format(parsedDate, format$1);
2867
- let formatStr = 'dd/MM/yyyy';
2868
- if (type === 'time') {
2869
- formatStr = 'dd/MM/yyyy HH:mm:ss';
2870
- }
2871
- else if (type === 'week') {
2872
- formatStr = 'ccc dd/MM/yyyy HH:mm:ss';
2873
- }
2874
- return format(parsedDate, formatStr);
2875
- }
2876
- catch (error) {
2877
- console.error('Error formatting date:', error.message);
2878
- return '';
2879
- }
2880
- };
2881
- function formatTime(time) {
2882
- if (!time)
2883
- return;
2884
- if (isToday(new Date(time))) {
2885
- return formatDate({ date: time, format: 'HH:mm' });
2886
- }
2887
- return formatDate({ date: time, format: 'dd/MM/yyyy HH:mm' });
2888
- }
2889
- function formatCountdown(stopTime, _now) {
2890
- if (!stopTime)
2891
- return;
2892
- const endTime = typeof stopTime === 'string' ? parseISO(stopTime) : stopTime;
2893
- const now = _now && new Date();
2894
- let totalSeconds = differenceInSeconds(endTime, now);
2895
- if (totalSeconds < 0)
2896
- return '0D 00H 00M 00S';
2897
- const days = Math.floor(totalSeconds / 86400);
2898
- totalSeconds %= 86400;
2899
- const hours = Math.floor(totalSeconds / 3600);
2900
- totalSeconds %= 3600;
2901
- const minutes = Math.floor(totalSeconds / 60);
2902
- const seconds = totalSeconds % 60;
2903
- return `${days}D ${hours.toString().padStart(2, '0')}H ${minutes.toString().padStart(2, '0')}M ${seconds
2904
- .toString()
2905
- .padStart(2, '0')}S`;
2906
- }
2907
- function getWagerTime(startTime, stopTime) {
2908
- const now = new Date();
2909
- if (startTime && isBefore(now, parseISO(startTime))) {
2910
- return { start: formatCountdown(startTime, now) };
2911
- }
2912
- if (startTime &&
2913
- stopTime &&
2914
- isWithinInterval(now, {
2915
- start: parseISO(startTime),
2916
- end: parseISO(stopTime)
2917
- })) {
2918
- return { end: formatTime(stopTime) };
2919
- }
2920
- return {};
2921
- }
2922
-
2923
- 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}";
2650
+ 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}";
2924
2651
  const LotteryBannerStyle0 = lotteryBannerCss;
2925
2652
 
2926
2653
  const LotteryBanner = class {
2927
2654
  constructor(hostRef) {
2928
2655
  registerInstance(this, hostRef);
2929
- this.lotteryBannerTimerStop = createEvent(this, "lotteryBannerTimerStop", 7);
2656
+ this.lotteryBannerWagerStarted = createEvent(this, "lotteryBannerWagerStarted", 7);
2657
+ this.handleCountdownFinish = () => {
2658
+ this.isWagerStarted = true;
2659
+ this.lotteryBannerWagerStarted.emit();
2660
+ };
2930
2661
  this.mbSource = undefined;
2931
2662
  this.clientStyling = undefined;
2932
2663
  this.clientStylingUrl = undefined;
@@ -2938,7 +2669,8 @@ const LotteryBanner = class {
2938
2669
  this.bannerTitle = undefined;
2939
2670
  this.turnover = undefined;
2940
2671
  this.layout = 'logo,title,info';
2941
- this.formattedTime = undefined;
2672
+ this.isWagerStarted = false;
2673
+ this.formattedStopTime = undefined;
2942
2674
  }
2943
2675
  handleClientStylingChange(newValue, oldValue) {
2944
2676
  if (newValue !== oldValue) {
@@ -2956,29 +2688,23 @@ const LotteryBanner = class {
2956
2688
  }
2957
2689
  }
2958
2690
  handleTimeChange() {
2959
- this.startTimer();
2691
+ this.checkWagerStatus();
2960
2692
  }
2961
2693
  async componentWillLoad() {
2962
2694
  if (this.translationUrl) {
2963
2695
  resolveTranslationUrl(this.translationUrl);
2964
2696
  }
2965
- this.startTimer();
2697
+ this.checkWagerStatus();
2966
2698
  }
2967
- startTimer() {
2968
- if (this.timer) {
2969
- clearInterval(this.timer);
2699
+ checkWagerStatus() {
2700
+ if (this.startTime && isBefore(new Date(), parseISO(this.startTime))) {
2701
+ this.isWagerStarted = false;
2702
+ }
2703
+ else {
2704
+ this.isWagerStarted = true;
2970
2705
  }
2971
- this.updateTime();
2972
- this.timer = setInterval(() => {
2973
- this.updateTime();
2974
- }, 1000);
2975
- }
2976
- updateTime() {
2977
- var _a;
2978
- this.formattedTime = getWagerTime(this.startTime, this.stopTime);
2979
- if ((_a = this.formattedTime) === null || _a === void 0 ? void 0 : _a.end) {
2980
- this.timer && clearInterval(this.timer);
2981
- this.lotteryBannerTimerStop.emit();
2706
+ if (this.stopTime) {
2707
+ this.formattedStopTime = format(parseISO(this.stopTime), 'dd/MM/yyyy HH:mm');
2982
2708
  }
2983
2709
  }
2984
2710
  componentDidLoad() {
@@ -2993,10 +2719,8 @@ const LotteryBanner = class {
2993
2719
  }
2994
2720
  disconnectedCallback() {
2995
2721
  this.stylingSubscription && this.stylingSubscription.unsubscribe();
2996
- this.timer && clearInterval(this.timer);
2997
2722
  }
2998
2723
  renderElement(item, className = '') {
2999
- var _a, _b, _c;
3000
2724
  const poolGameLogo = getAssetPath('../static/poolGameLogo.webp');
3001
2725
  switch (item) {
3002
2726
  case 'logo':
@@ -3004,14 +2728,14 @@ const LotteryBanner = class {
3004
2728
  case 'title':
3005
2729
  return this.bannerTitle && h("div", { class: `lottery-banner__title ${className}` }, this.bannerTitle);
3006
2730
  case 'info':
3007
- 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('startIn', this.language)), "\u00A0"), h("span", { class: "lottery-banner__info-item-value lottery-banner__info-item-value__strong" }, this.formattedTime.start))), ((_b = this.formattedTime) === null || _b === void 0 ? void 0 : _b.end) && (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, h("span", { class: "lottery-banner__info-item-label__strong" }, translate('stop', this.language)), "\u00A0", translate('at', this.language)), h("span", { class: "lottery-banner__info-item-value" }, this.formattedTime.end))), ((_c = this.formattedTime) === null || _c === void 0 ? void 0 : _c.end) && this.turnover !== null && this.turnover !== undefined && (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, translate('turnover', this.language)), h("span", { class: "lottery-banner__info-item-value" }, this.turnover)))));
2731
+ return (h("div", { class: `lottery-banner__info ${className}` }, !this.isWagerStarted ? (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, h("span", { class: "lottery-banner__info-item-label__strong" }, translate('startIn', this.language)), "\u00A0"), h("helper-count-down", { class: "lottery-banner__info-item-value lottery-banner__info-item-value__strong", value: this.startTime, format: "DDD HHH mmM ssS", onCountDownFinish: this.handleCountdownFinish }))) : (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, h("span", { class: "lottery-banner__info-item-label__strong" }, translate('stop', this.language)), "\u00A0", translate('at', this.language)), h("span", { class: "lottery-banner__info-item-value" }, this.formattedStopTime))), this.isWagerStarted && this.turnover !== null && this.turnover !== undefined && (h("div", { class: "lottery-banner__info-item" }, h("span", { class: "lottery-banner__info-item-label" }, translate('turnover', this.language)), h("span", { class: "lottery-banner__info-item-value" }, this.turnover)))));
3008
2732
  default:
3009
2733
  return null;
3010
2734
  }
3011
2735
  }
3012
2736
  render() {
3013
2737
  const layoutItems = this.layout.split(',').map((item) => item.trim());
3014
- return (h("section", { key: 'fe2c807504069e45cf9b9f04b754710b49930caf', ref: (el) => (this.stylingContainer = el), class: "lottery-banner" }, layoutItems.map((item, index) => {
2738
+ return (h("section", { key: '3f14279ebff86c47ec5d5d7c4e1054c5899e8580', ref: (el) => (this.stylingContainer = el), class: "lottery-banner" }, layoutItems.map((item, index) => {
3015
2739
  const isMiddle = layoutItems.length === 3 && index === 1;
3016
2740
  const className = isMiddle ? 'lottery-banner__item--center' : '';
3017
2741
  return this.renderElement(item, className);
@@ -3027,4 +2751,4 @@ const LotteryBanner = class {
3027
2751
  };
3028
2752
  LotteryBanner.style = LotteryBannerStyle0;
3029
2753
 
3030
- export { LotteryBanner as L };
2754
+ export { LotteryBanner as L, setClientStylingURL as a, setStreamStyling as b, parseISO as p, setClientStyling as s };
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-472357af.js';
2
- export { s as setNonce } from './index-472357af.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-fd1b34f8.js';
2
+ export { s as setNonce } from './index-fd1b34f8.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["lottery-banner",[[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"]}]]]], options);
19
+ return bootstrapLazy([["helper-count-down_2",[[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,"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"]}]]]], options);
20
20
  });
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as s}from"./index-fd1b34f8.js";import{s as i,a as n,b as h,p as a}from"./lottery-banner-a9eb5657.js";export{L as lottery_banner}from"./lottery-banner-a9eb5657.js";const l=class{constructor(s){t(this,s),this.countDownChange=e(this,"countDownChange",7),this.countDownFinish=e(this,"countDownFinish",7),this.value=void 0,this.format="HH:mm:ss",this.prefix=void 0,this.suffix=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.endTime=void 0,this.timeObj={day:{str:"00",unit:""},hour:{str:"00",unit:""},minute:{str:"00",unit:""},second:{str:"00",unit:""}}}handleClientStylingChange(t,e){t!=e&&i(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleValueChange(t){this.setEndTime(t),t?this.startCountDown():this.clearCountDown()}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&i(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl)),this.setEndTime(this.value),this.value&&this.startCountDown()}setEndTime(t){if("string"==typeof t){const e=a(t).getTime();this.endTime=isNaN(e)?null:e}else this.endTime=t}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.clearCountDown()}startCountDown(){this.clearCountDown(),this.tick(),this.timer=setInterval((()=>{this.tick()}),1e3)}clearCountDown(){this.timer&&(clearInterval(this.timer),this.timer=null)}tick(){if(!this.endTime)return;let t=this.endTime-Date.now();t<=0&&(t=0,this.clearCountDown(),this.countDownFinish.emit());const e=Math.floor(t/864e5),s=Math.floor(t/36e5%24),i=Math.floor(t/1e3/60%60),n=Math.floor(t/1e3%60),h=t=>t<10?`0${t}`:`${t}`;this.timeObj={day:{str:h(e),unit:"d"},hour:{str:h(s),unit:"h"},minute:{str:h(i),unit:"m"},second:{str:h(n),unit:"s"}};const a=this.getFormatTime();this.countDownChange.emit({leftTime:t,formatTime:a,legalTime:a})}getFormatTime(){return this.format.replace("DD",this.timeObj.day.str).replace("HH",this.timeObj.hour.str).replace("mm",this.timeObj.minute.str).replace("ss",this.timeObj.second.str)}renderItems(){const t=/(DD|HH|mm|ss)|([\s\S]+?)(?=(DD|HH|mm|ss)|$)/g,e=[];let i;for(;null!==(i=t.exec(this.format));)if(i[1]){let t="";switch(i[1]){case"DD":t=this.timeObj.day.str;break;case"HH":t=this.timeObj.hour.str;break;case"mm":t=this.timeObj.minute.str;break;case"ss":t=this.timeObj.second.str}e.push({val:t,unit:""})}else i[2]&&e.length>0&&(e[e.length-1].unit=i[2]);return e.map(((t,e)=>s("div",{key:e+t.unit,class:"helper-count-down-item",part:"item"},s("div",{class:"helper-count-down-item-num"},t.val),s("div",{class:"helper-count-down-item-unit"},t.unit))))}render(){return s("div",{key:"b360412e045020b5ac0263c6ca56458f31eedb2c",class:"helper-count-down-container",ref:t=>this.stylingContainer=t},s("slot",{key:"c72bed87fba869c842407b04e0cbfe038e5b7ea8"}),this.prefix&&s("div",{key:"8d3ba9d60577421f81bae7bc76f52a774b17e1fe",class:"helper-count-down-prefix"},this.prefix),s("div",{key:"187edf3b8eb6de85efe1a748fd8ef47a68e19611",class:"helper-count-down-values",part:"values"},this.renderItems()),this.suffix&&s("div",{key:"3a8e5d9561ecd3f52eff423bd43c8b60a261a17c",class:"helper-count-down-suffix"},this.suffix))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],value:["handleValueChange"]}}};l.style=":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}";export{l as helper_count_down}
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,p=[],y=[],$=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?v(w):f.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(p),b(y),(m=p.length>0)&&f.raf(w)},v=e=>h().then(e),g=$(y,!0),S=e=>{const t=new URL(e,f.o);return t.origin!==u.location.origin?t.href:t.pathname},j={},k=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>C,map:()=>M,ok:()=>E,unwrap:()=>L,unwrapErr:()=>R});var E=e=>({isOk:!0,isErr:!1,value:e}),C=e=>({isOk:!1,isErr:!0,value:e});function M(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return C(e.value);throw"should never get here"}var x,P,L=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},T=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!k(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?U(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=U(e,null);return u.u=t,i.length>0&&(u.h=i),u.m=o,u},U=(e,t)=>({l:0,p:e,i:t,$:null,h:null,u:null,m:null}),A={},N=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>W(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},W=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},D=new WeakMap,F=e=>"sc-"+e.v,H=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=G(n),s=G(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=k(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(V);t=t.replace(_,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},q=/\s/,G=e=>e?e.split(q):[],V="Capture",_=RegExp(V+"$"),z=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||j,s=t.u||j;for(const e of B(Object.keys(o)))e in s||H(l,e,o[e],void 0,n,t.l);for(const e of B(Object.keys(s)))H(l,e,o[e],s[e],n,t.l)};function B(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,J=!1,K=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.p),z(null,l,J),null!=x&&o["s-si"]!==x&&o.classList.add(o["s-si"]=x),l.h)for(r=0;r<l.h.length;++r)s=K(e,l,r),s&&o.appendChild(s);return o["s-hn"]=P,o},Q=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===P&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=K(null,n,o),r&&(l[o].$=r,te(i,r,t)))},X=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;ee(t),e&&e.remove()}}},Y=(e,t,n=!1)=>e.p===t.p&&(!!n||e.m===t.m),Z=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.p||I)&&z(e,t,J),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],m=l.length-1,p=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==p)p=l[++c];else if(null==y)y=l[--m];else if(Y(h,p,o))Z(h,p,o),h=t[++i],p=l[++c];else if(Y(d,y,o))Z(d,y,o),d=t[--f],y=l[--m];else if(Y(h,y,o))Z(h,y,o),te(e,h.$,d.$.nextSibling),h=t[++i],y=l[--m];else if(Y(d,p,o))Z(d,p,o),te(e,d.$,h.$),d=t[--f],p=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===p.m){u=a;break}u>=0?(r=t[u],r.p!==p.p?s=K(t&&t[c],n,u):(Z(r,p,o),t[u]=void 0,s=r.$),p=l[++c]):(s=K(t&&t[c],n,c),p=l[++c]),s&&te(h.$.parentNode,s,h.$)}i>f?Q(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&X(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),Q(l,null,t,s,0,s.length-1)):null!==o&&X(o,0,o.length-1)):e.i!==r&&(l.data=r)},ee=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(ee)},te=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ne=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},le=(e,t)=>{if(e.l|=16,!(4&e.l))return ne(e,e.j),g((()=>oe(e,t)));e.l|=512},oe=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=fe(n,"componentWillLoad")),se(l,(()=>ie(e,n,t)))},se=(e,t)=>re(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),re=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ie=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=F(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=D.get(e=e.head||e);if(r||D.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:O(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ce(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ue(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ce=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||U(null,null),r=(e=>e&&e.p===A)(t)?t:T(null,null,t);if(P=l.tagName,o.M&&(r.u=r.u||{},o.M.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.p=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,x=l["s-sc"],I=!!(1&o.l),Z(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ue=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,he(t),fe(n,"componentDidLoad"),e.P(t),l||ae()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>le(e,!1))),e.l&=-517},ae=()=>{he(a.documentElement),v((()=>W(u,"appload",{detail:{namespace:"lottery-banner"}})))},fe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},he=e=>e.classList.add("hydrated"),de=(e,t,l)=>{var o,r;const i=e.prototype;if(t.L||t.R||e.watchers){e.watchers&&!t.R&&(t.R=e.watchers);const c=Object.entries(null!=(o=t.L)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.T.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||k(e)?e:1&t?e+"":e)(l,o.L[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.T.set(t,l),a)){if(o.R&&128&u){const e=o.R[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&le(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.R)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.R)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.M)||o.push([e,s])),s}))]))}}return e},me=e=>{fe(e,"disconnectedCallback")},pe=(e,l={})=>{var o;const h=[],m=l.exclude||[],p=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),b=a.createElement("style"),w=[];let v,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],L:l[2],U:l[3]};4&c.l&&(S=!0),c.L=l[2],c.M=[],c.R=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.A=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),g?w.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.A)&&t.A.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ne(t,t.j=n);break}}l.L&&Object.entries(l.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.N;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.W}" was not found`);l.isProxied||(n.R=l.watchers,de(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=F(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>le(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?me(e.t):(null==e?void 0:e.A)&&e.A.then((()=>me(e.t)))}})()))}componentOnReady(){return n(this).A}};c.N=e[0],m.includes(u)||p.get(u)||(h.push(u),p.define(u,de(a,c,1)))}))})),h.length>0&&(S&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.O)?o:O(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,$?$.nextSibling:y.firstChild)}g=!1,w.length?w.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ae,30)))},ye=e=>f.O=e;export{pe as b,N as c,S as g,T as h,h as p,l as r,ye as s}
@@ -1 +1 @@
1
- export{L as LotteryBanner}from"./lottery-banner-8d9a42d1.js";import"./index-472357af.js";
1
+ export{L as LotteryBanner}from"./lottery-banner-a9eb5657.js";import"./index-fd1b34f8.js";
@@ -0,0 +1 @@
1
+ import{r as t,c as n,g as e,h as r}from"./index-fd1b34f8.js";const a="__WIDGET_GLOBAL_STYLE_CACHE__";function i(t,n){if(t){const e=document.createElement("style");e.innerHTML=n,t.appendChild(e)}}function o(t,n){if(!t||!n)return;const e=new URL(n);fetch(e.href).then((t=>t.text())).then((n=>{const e=document.createElement("style");e.innerHTML=n,t&&t.appendChild(e)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function u(t,n,e,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return e=function(t,n){const e=document.createElement("style");return window.emMessageBus.subscribe(n,(n=>{t&&(e.innerHTML=n,t.appendChild(e))}))}(t,n),e;window[a]||(window[a]={}),e=function(t,n){return window.emMessageBus.subscribe(n,(e=>{if(!t)return;const r=t.getRootNode(),i=window[a];let o=i[n]&&i[n].sheet;o?i[n].refCount=i[n].refCount+1:(o=new CSSStyleSheet,o.replaceSync(e),i[n]={sheet:o,refCount:1});const u=r.adoptedStyleSheets||[];u.includes(o)||(r.adoptedStyleSheets=[...u,o])}))}(t,n);const i=e.unsubscribe.bind(e);return e.unsubscribe=()=>{if(window[a][n]){const t=window[a][n];t.refCount>1?t.refCount=t.refCount-1:delete window[a][n]}i()},e}const s=["ro","en","fr","ar","hr"],l={en:{stop:"Stop",at:"at",turnover:"Turnover: ",startIn:"Sales Start in:"},ro:{stop:"Oprește",at:"la"},fr:{stop:"Arrêtez",at:"à"},ar:{stop:"توقف",at:"في"},hr:{stop:"Stop",at:"u"}},d=(t,n)=>{const e=n;return l[void 0!==e&&s.includes(e)?e:"en"][t]};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function h(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}function m(t){h(1,arguments);var n=Object.prototype.toString.call(t);return t instanceof Date||"object"===c(t)&&"[object Date]"===n?new Date(t.getTime()):"number"==typeof t||"[object Number]"===n?new Date(t):("string"!=typeof t&&"[object String]"!==n||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var v={};function w(){return v}var b=36e5;function g(t){h(1,arguments);var n=m(t),e=n.getUTCDay(),r=(e<1?7:0)+e-1;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function y(t){h(1,arguments);var n=m(t),e=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(e+1,0,4),r.setUTCHours(0,0,0,0);var a=g(r),i=new Date(0);i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0);var o=g(i);return n.getTime()>=a.getTime()?e+1:n.getTime()>=o.getTime()?e:e-1}function p(t,n){var e,r,a,i,o,u,s,l;h(1,arguments);var d=w(),c=f(null!==(e=null!==(r=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==a?a:d.weekStartsOn)&&void 0!==r?r:null===(s=d.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==e?e:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=m(t),b=v.getUTCDay(),g=(b<c?7:0)+b-c;return v.setUTCDate(v.getUTCDate()-g),v.setUTCHours(0,0,0,0),v}function x(t,n){var e,r,a,i,o,u,s,l;h(1,arguments);var d=m(t),c=d.getUTCFullYear(),v=w(),b=f(null!==(e=null!==(r=null!==(a=null!==(i=null==n?void 0:n.firstWeekContainsDate)&&void 0!==i?i:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:v.firstWeekContainsDate)&&void 0!==r?r:null===(s=v.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==e?e:1);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(c+1,0,b),g.setUTCHours(0,0,0,0);var y=p(g,n),x=new Date(0);x.setUTCFullYear(c,0,b),x.setUTCHours(0,0,0,0);var M=p(x,n);return d.getTime()>=y.getTime()?c+1:d.getTime()>=M.getTime()?c:c-1}function M(t,n){for(var e=t<0?"-":"",r=Math.abs(t).toString();r.length<n;)r="0"+r;return e+r}const _=function(t,n){var e=t.getUTCFullYear(),r=e>0?e:1-e;return M("yy"===n?r%100:r,n.length)},S=function(t,n){var e=t.getUTCMonth();return"M"===n?String(e+1):M(e+1,2)},D=function(t,n){return M(t.getUTCDate(),n.length)},N=function(t,n){return M(t.getUTCHours()%12||12,n.length)},E=function(t,n){return M(t.getUTCHours(),n.length)},P=function(t,n){return M(t.getUTCMinutes(),n.length)},k=function(t,n){return M(t.getUTCSeconds(),n.length)},W=function(t,n){var e=n.length,r=t.getUTCMilliseconds();return M(Math.floor(r*Math.pow(10,e-3)),n.length)};var T={G:function(t,n,e){var r=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(t,n,e){if("yo"===n){var r=t.getUTCFullYear();return e.ordinalNumber(r>0?r:1-r,{unit:"year"})}return _(t,n)},Y:function(t,n,e,r){var a=x(t,r),i=a>0?a:1-a;return"YY"===n?M(i%100,2):"Yo"===n?e.ordinalNumber(i,{unit:"year"}):M(i,n.length)},R:function(t,n){return M(y(t),n.length)},u:function(t,n){return M(t.getUTCFullYear(),n.length)},Q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return M(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return M(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,e){var r=t.getUTCMonth();switch(n){case"M":case"MM":return S(t,n);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,e){var r=t.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return M(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(t,n,e,r){var a=function(t,n){h(1,arguments);var e=m(t),r=p(e,n).getTime()-function(t,n){var e,r,a,i,o,u,s,l;h(1,arguments);var d=w(),c=f(null!==(e=null!==(r=null!==(a=null!==(i=null==n?void 0:n.firstWeekContainsDate)&&void 0!==i?i:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:d.firstWeekContainsDate)&&void 0!==r?r:null===(s=d.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==e?e:1),m=x(t,n),v=new Date(0);return v.setUTCFullYear(m,0,c),v.setUTCHours(0,0,0,0),p(v,n)}(e,n).getTime();return Math.round(r/6048e5)+1}(t,r);return"wo"===n?e.ordinalNumber(a,{unit:"week"}):M(a,n.length)},I:function(t,n,e){var r=function(t){h(1,arguments);var n=m(t),e=g(n).getTime()-function(t){h(1,arguments);var n=y(t),e=new Date(0);return e.setUTCFullYear(n,0,4),e.setUTCHours(0,0,0,0),g(e)}(n).getTime();return Math.round(e/6048e5)+1}(t);return"Io"===n?e.ordinalNumber(r,{unit:"week"}):M(r,n.length)},d:function(t,n,e){return"do"===n?e.ordinalNumber(t.getUTCDate(),{unit:"date"}):D(t,n)},D:function(t,n,e){var r=function(t){h(1,arguments);var n=m(t),e=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var r=n.getTime();return Math.floor((e-r)/864e5)+1}(t);return"Do"===n?e.ordinalNumber(r,{unit:"dayOfYear"}):M(r,n.length)},E:function(t,n,e){var r=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,e,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return M(i,2);case"eo":return e.ordinalNumber(i,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return M(i,n.length);case"co":return e.ordinalNumber(i,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(t,n,e){var r=t.getUTCDay(),a=0===r?7:r;switch(n){case"i":return String(a);case"ii":return M(a,n.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){var r,a=t.getUTCHours();switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){var r,a=t.getUTCHours();switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if("ho"===n){var r=t.getUTCHours()%12;return 0===r&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return N(t,n)},H:function(t,n,e){return"Ho"===n?e.ordinalNumber(t.getUTCHours(),{unit:"hour"}):E(t,n)},K:function(t,n,e){var r=t.getUTCHours()%12;return"Ko"===n?e.ordinalNumber(r,{unit:"hour"}):M(r,n.length)},k:function(t,n,e){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===n?e.ordinalNumber(r,{unit:"hour"}):M(r,n.length)},m:function(t,n,e){return"mo"===n?e.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):P(t,n)},s:function(t,n,e){return"so"===n?e.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):k(t,n)},S:function(t,n){return W(t,n)},X:function(t,n,e,r){var a=(r._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(n){case"X":return Y(a);case"XXXX":case"XX":return C(a);default:return C(a,":")}},x:function(t,n,e,r){var a=(r._originalDate||t).getTimezoneOffset();switch(n){case"x":return Y(a);case"xxxx":case"xx":return C(a);default:return C(a,":")}},O:function(t,n,e,r){var a=(r._originalDate||t).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+j(a,":");default:return"GMT"+C(a,":")}},z:function(t,n,e,r){var a=(r._originalDate||t).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+j(a,":");default:return"GMT"+C(a,":")}},t:function(t,n,e,r){return M(Math.floor((r._originalDate||t).getTime()/1e3),n.length)},T:function(t,n,e,r){return M((r._originalDate||t).getTime(),n.length)}};function j(t,n){var e=t>0?"-":"+",r=Math.abs(t),a=Math.floor(r/60),i=r%60;if(0===i)return e+String(a);var o=n||"";return e+String(a)+o+M(i,2)}function Y(t,n){return t%60==0?(t>0?"-":"+")+M(Math.abs(t)/60,2):C(t,n)}function C(t,n){var e=n||"",r=t>0?"-":"+",a=Math.abs(t);return r+M(Math.floor(a/60),2)+e+M(a%60,2)}const L=T;var q=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},z=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},O={p:z,P:function(t,n){var e,r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return q(t,n);switch(a){case"P":e=n.dateTime({width:"short"});break;case"PP":e=n.dateTime({width:"medium"});break;case"PPP":e=n.dateTime({width:"long"});break;default:e=n.dateTime({width:"full"})}return e.replace("{{date}}",q(a,n)).replace("{{time}}",z(i,n))}};const G=O;var R=["D","DD"],Q=["YY","YYYY"];function A(t,n,e){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var B={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function X(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var I,$={date:X({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:X({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:X({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},F={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function H(t){return function(n,e){var r;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,i=null!=e&&e.width?String(e.width):a;r=t.formattingValues[i]||t.formattingValues[a]}else{var o=t.defaultWidth,u=null!=e&&e.width?String(e.width):t.defaultWidth;r=t.values[u]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(n):n]}}function U(t){return function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,a=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!a)return null;var i,o=a[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(u)?function(t){for(var n=0;n<t.length;n++)if(t[n].test(o))return n}(u):function(t){for(var n in t)if(t.hasOwnProperty(n)&&t[n].test(o))return n}(u);return i=t.valueCallback?t.valueCallback(s):s,{value:i=e.valueCallback?e.valueCallback(i):i,rest:n.slice(o.length)}}}const J={code:"en-US",formatDistance:function(t,n,e){var r,a=B[t];return r="string"==typeof a?a:1===n?a.one:a.other.replace("{{count}}",n.toString()),null!=e&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r},formatLong:$,formatRelative:function(t){return F[t]},localize:{ordinalNumber:function(t){var n=Number(t),e=n%100;if(e>20||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:H({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:H({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:H({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:H({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:H({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(I={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.match(I.matchPattern);if(!e)return null;var r=e[0],a=t.match(I.parsePattern);if(!a)return null;var i=I.valueCallback?I.valueCallback(a[0]):a[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(r.length)}}),era:U({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:U({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:U({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:U({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:U({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var Z=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,K=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,V=/^'([^]*?)'?$/,tt=/''/g,nt=/[a-zA-Z]/;function et(t,n,e){var r,a,i,o,u,s,l,d,v,b,g,y,p,x,M,_,S,D;h(2,arguments);var N=String(n),E=w(),P=null!==(r=null!==(a=null==e?void 0:e.locale)&&void 0!==a?a:E.locale)&&void 0!==r?r:J,k=f(null!==(i=null!==(o=null!==(u=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(l=e.locale)||void 0===l||null===(d=l.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==u?u:E.firstWeekContainsDate)&&void 0!==o?o:null===(v=E.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==i?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=f(null!==(g=null!==(y=null!==(p=null!==(x=null==e?void 0:e.weekStartsOn)&&void 0!==x?x:null==e||null===(M=e.locale)||void 0===M||null===(_=M.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==p?p:E.weekStartsOn)&&void 0!==y?y:null===(S=E.locale)||void 0===S||null===(D=S.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==g?g:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var T=m(t);if(!function(t){if(h(1,arguments),!function(t){return h(1,arguments),t instanceof Date||"object"===c(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var n=m(t);return!isNaN(Number(n))}(T))throw new RangeError("Invalid time value");var j=function(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),t.getTime()-n.getTime()}(T),Y=function(t,n){return h(2,arguments),function(t,n){h(2,arguments);var e=m(t).getTime(),r=f(n);return new Date(e+r)}(t,-f(n))}(T,j),C={firstWeekContainsDate:k,weekStartsOn:W,locale:P,_originalDate:T};return N.match(K).map((function(t){var n=t[0];return"p"===n||"P"===n?(0,G[n])(t,P.formatLong):t})).join("").match(Z).map((function(r){if("''"===r)return"'";var a,i,o=r[0];if("'"===o)return(i=(a=r).match(V))?i[1].replace(tt,"'"):a;var u=L[o];if(u)return null!=e&&e.useAdditionalWeekYearTokens||-1===Q.indexOf(r)||A(r,n,String(t)),null!=e&&e.useAdditionalDayOfYearTokens||!(-1!==R.indexOf(r))||A(r,n,String(t)),u(Y,r,P.localize,C);if(o.match(nt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function rt(t,n){var e;h(1,arguments);var r=f(null!==(e=null==n?void 0:n.additionalDigits)&&void 0!==e?e:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var a,i=function(t){var n,e={},r=t.split(at.dateTimeDelimiter);if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],at.timeZoneDelimiter.test(e.date)&&(e.date=t.split(at.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){var a=at.timezone.exec(n);a?(e.time=n.replace(a[1],""),e.timezone=a[1]):e.time=n}return e}(t);if(i.date){var o=function(t,n){var e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),r=t.match(e);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?a:100*i,restDateString:t.slice((r[1]||r[2]).length)}}(i.date,r);a=function(t,n){if(null===n)return new Date(NaN);var e=t.match(it);if(!e)return new Date(NaN);var r=!!e[4],a=st(e[1]),i=st(e[2])-1,o=st(e[3]),u=st(e[4]),s=st(e[5])-1;if(r)return function(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}(0,u,s)?function(t,n,e){var r=new Date(0);r.setUTCFullYear(t,0,4);var a=7*(n-1)+e+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+a),r}(n,u,s):new Date(NaN);var l=new Date(0);return function(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(dt[n]||(ct(t)?29:28))}(n,i,o)&&function(t,n){return n>=1&&n<=(ct(t)?366:365)}(n,a)?(l.setUTCFullYear(n,i,Math.max(a,o)),l):new Date(NaN)}(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var u,s=a.getTime(),l=0;if(i.time&&(l=function(t){var n=t.match(ot);if(!n)return NaN;var e=lt(n[1]),r=lt(n[2]),a=lt(n[3]);return function(t,n,e){return 24===t?0===n&&0===e:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}(e,r,a)?e*b+6e4*r+1e3*a:NaN}(i.time),isNaN(l)))return new Date(NaN);if(!i.timezone){var d=new Date(s+l),c=new Date(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return u=function(t){if("Z"===t)return 0;var n=t.match(ut);if(!n)return 0;var e="+"===n[1]?-1:1,r=parseInt(n[2]),a=n[3]&&parseInt(n[3])||0;return function(t,n){return n>=0&&n<=59}(0,a)?e*(r*b+6e4*a):NaN}(i.timezone),isNaN(u)?new Date(NaN):new Date(s+l+u)}var at={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},it=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ot=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ut=/^([+-])(\d{2})(?::?(\d{2}))?$/;function st(t){return t?parseInt(t):1}function lt(t){return t&&parseFloat(t.replace(",","."))||0}var dt=[31,null,31,30,31,30,31,31,30,31,30,31];function ct(t){return t%400==0||t%4==0&&t%100!=0}const ft=class{constructor(e){t(this,e),this.lotteryBannerWagerStarted=n(this,"lotteryBannerWagerStarted",7),this.handleCountdownFinish=()=>{this.isWagerStarted=!0,this.lotteryBannerWagerStarted.emit()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.logoUrl=void 0,this.stopTime="",this.startTime="",this.bannerTitle=void 0,this.turnover=void 0,this.layout="logo,title,info",this.isWagerStarted=!1,this.formattedStopTime=void 0}handleClientStylingChange(t,n){t!==n&&i(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,n){t!==n&&o(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,n){t!==n&&u(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleTimeChange(){this.checkWagerStatus()}async componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.json();n=r,Object.keys(n).forEach((t=>{for(let e in n[t])l[t][e]=n[t][e]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var n})(this.translationUrl),this.checkWagerStatus()}checkWagerStatus(){this.isWagerStarted=!this.startTime||!function(t,n){h(2,arguments);var e=m(t),r=m(n);return e.getTime()<r.getTime()}(new Date,rt(this.startTime)),this.stopTime&&(this.formattedStopTime=et(rt(this.stopTime),"dd/MM/yyyy HH:mm"))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&u(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&i(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}renderElement(t,n=""){const a=e("../static/poolGameLogo.webp");switch(t){case"logo":return r("div",{class:`lottery-banner__logo-wrapper ${n}`},a&&r("img",{alt:"logo",src:a,class:"lottery-banner__logo"}));case"title":return this.bannerTitle&&r("div",{class:`lottery-banner__title ${n}`},this.bannerTitle);case"info":return r("div",{class:`lottery-banner__info ${n}`},this.isWagerStarted?r("div",{class:"lottery-banner__info-item"},r("span",{class:"lottery-banner__info-item-label"},r("span",{class:"lottery-banner__info-item-label__strong"},d("stop",this.language))," ",d("at",this.language)),r("span",{class:"lottery-banner__info-item-value"},this.formattedStopTime)):r("div",{class:"lottery-banner__info-item"},r("span",{class:"lottery-banner__info-item-label"},r("span",{class:"lottery-banner__info-item-label__strong"},d("startIn",this.language))," "),r("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})),this.isWagerStarted&&null!=this.turnover&&r("div",{class:"lottery-banner__info-item"},r("span",{class:"lottery-banner__info-item-label"},d("turnover",this.language)),r("span",{class:"lottery-banner__info-item-value"},this.turnover)));default:return null}}render(){const t=this.layout.split(",").map((t=>t.trim()));return r("section",{key:"3f14279ebff86c47ec5d5d7c4e1054c5899e8580",ref:t=>this.stylingContainer=t,class:"lottery-banner"},t.map(((n,e)=>this.renderElement(n,3===t.length&&1===e?"lottery-banner__item--center":""))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],startTime:["handleTimeChange"],stopTime:["handleTimeChange"]}}};ft.style=":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}";export{ft as L,o as a,u as b,rt as p,i as s}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./index-472357af.js";export{s as setNonce}from"./index-472357af.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["lottery-banner",[[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"]}]]]],e))));
1
+ import{p as e,b as n}from"./index-fd1b34f8.js";export{s as setNonce}from"./index-fd1b34f8.js";import{g as l}from"./app-globals-0f993ce5.js";(()=>{const n=import.meta.url,l={};return""!==n&&(l.resourcesUrl=new URL(".",n).href),e(l)})().then((async e=>(await l(),n([["helper-count-down_2",[[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,"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"]}]]]],e))));
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
+ import "../../../../../../dist/packages/stencil/helper-count-down/dist/types/index";
2
3
  export declare class LotteryBanner {
3
4
  /**
4
5
  * Client custom styling via message bus
@@ -32,7 +33,6 @@ export declare class LotteryBanner {
32
33
  * Subscription for the message bus styling stream
33
34
  */
34
35
  private stylingSubscription;
35
- private timer;
36
36
  /**
37
37
  * Draw stop time
38
38
  */
@@ -55,23 +55,21 @@ export declare class LotteryBanner {
55
55
  * Example: 'logo,title,info' or 'title,logo,info'.
56
56
  */
57
57
  layout: string;
58
- formattedTime: {
59
- start?: string;
60
- end?: string;
61
- };
58
+ isWagerStarted: boolean;
59
+ formattedStopTime: string;
62
60
  /**
63
- * Event emitted when the timer stops
61
+ * Event emitted when the wager starts (countdown finishes)
64
62
  */
65
- lotteryBannerTimerStop: EventEmitter<void>;
63
+ lotteryBannerWagerStarted: EventEmitter<void>;
66
64
  handleClientStylingChange(newValue: any, oldValue: any): void;
67
65
  handleClientStylingUrlChange(newValue: any, oldValue: any): void;
68
66
  handleMbSourceChange(newValue: any, oldValue: any): void;
69
67
  handleTimeChange(): void;
70
68
  componentWillLoad(): Promise<void>;
71
- startTimer(): void;
72
- updateTime(): void;
69
+ checkWagerStatus(): void;
73
70
  componentDidLoad(): void;
74
71
  disconnectedCallback(): void;
72
+ private handleCountdownFinish;
75
73
  renderElement(item: string, className?: string): any;
76
74
  render(): any;
77
75
  }