@everymatrix/lottery-oddsbom-ticket-history 0.7.26 → 0.7.27
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/filter-group_9.cjs.entry.js +16 -16
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{lottery-oddsbom-ticket-history-128607c9.js → lottery-oddsbom-ticket-history-96939655.js} +70 -11
- package/dist/esm/filter-group_9.entry.js +17 -17
- package/dist/esm/index.js +1 -1
- package/dist/esm/{lottery-oddsbom-ticket-history-397fc07f.js → lottery-oddsbom-ticket-history-24c1aa1b.js} +70 -11
- package/dist/lottery-oddsbom-ticket-history/filter-group_9.entry.js +2 -2
- package/dist/lottery-oddsbom-ticket-history/index.esm.js +1 -1
- package/dist/lottery-oddsbom-ticket-history/lottery-oddsbom-ticket-history-24c1aa1b.js +1 -0
- package/package.json +1 -1
- package/dist/lottery-oddsbom-ticket-history/lottery-oddsbom-ticket-history-397fc07f.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-de3ae437.js');
|
|
6
|
-
const lotteryOddsbomTicketHistory = require('./lottery-oddsbom-ticket-history-
|
|
6
|
+
const lotteryOddsbomTicketHistory = require('./lottery-oddsbom-ticket-history-96939655.js');
|
|
7
7
|
|
|
8
8
|
var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnPropertyDescriptors;var lo=Object.getOwnPropertySymbols;var Gr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable;var Mt=(s,t,e)=>t in s?qr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,we=(s,t)=>{for(var e in t||(t={}))Gr.call(t,e)&&Mt(s,e,t[e]);if(lo)for(var e of lo(t))Xr.call(t,e)&&Mt(s,e,t[e]);return s},Nt=(s,t)=>Yr(s,Kr(t));var k=(s,t,e)=>(Mt(s,typeof t!="symbol"?t+"":t,e),e);var Ce=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
|
|
9
9
|
* @license
|
|
@@ -6744,13 +6744,13 @@ const FilterGroup = class {
|
|
|
6744
6744
|
}
|
|
6745
6745
|
handleMbSourceChange(newValue, oldValue) {
|
|
6746
6746
|
if (newValue != oldValue) {
|
|
6747
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
6747
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
6748
6748
|
}
|
|
6749
6749
|
}
|
|
6750
6750
|
componentDidLoad() {
|
|
6751
6751
|
if (this.stylingContainer) {
|
|
6752
6752
|
if (this.mbSource)
|
|
6753
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
6753
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
6754
6754
|
if (this.clientStyling)
|
|
6755
6755
|
lotteryOddsbomTicketHistory.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
6756
6756
|
if (this.clientStylingUrl)
|
|
@@ -6908,13 +6908,13 @@ const GeneralMultiSelect = class {
|
|
|
6908
6908
|
}
|
|
6909
6909
|
handleMbSourceChange(newValue, oldValue) {
|
|
6910
6910
|
if (newValue != oldValue) {
|
|
6911
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
6911
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
6912
6912
|
}
|
|
6913
6913
|
}
|
|
6914
6914
|
componentDidLoad() {
|
|
6915
6915
|
if (this.stylingContainer) {
|
|
6916
6916
|
if (this.mbSource)
|
|
6917
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
6917
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
6918
6918
|
if (this.clientStyling)
|
|
6919
6919
|
lotteryOddsbomTicketHistory.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
6920
6920
|
if (this.clientStylingUrl)
|
|
@@ -7018,13 +7018,13 @@ const GeneralPagination = class {
|
|
|
7018
7018
|
}
|
|
7019
7019
|
handleMbSourceChange(newValue, oldValue) {
|
|
7020
7020
|
if (newValue != oldValue) {
|
|
7021
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7021
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7022
7022
|
}
|
|
7023
7023
|
}
|
|
7024
7024
|
componentDidLoad() {
|
|
7025
7025
|
if (this.stylingContainer) {
|
|
7026
7026
|
if (this.mbSource)
|
|
7027
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7027
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7028
7028
|
if (this.clientStyling)
|
|
7029
7029
|
lotteryOddsbomTicketHistory.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
7030
7030
|
if (this.clientStylingUrl)
|
|
@@ -7193,13 +7193,13 @@ const GeneralPanel = class {
|
|
|
7193
7193
|
}
|
|
7194
7194
|
handleMbSourceChange(newValue, oldValue) {
|
|
7195
7195
|
if (newValue != oldValue) {
|
|
7196
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7196
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7197
7197
|
}
|
|
7198
7198
|
}
|
|
7199
7199
|
componentDidLoad() {
|
|
7200
7200
|
if (this.stylingContainer) {
|
|
7201
7201
|
if (this.mbSource)
|
|
7202
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7202
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7203
7203
|
if (this.clientStyling)
|
|
7204
7204
|
lotteryOddsbomTicketHistory.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
7205
7205
|
if (this.clientStylingUrl)
|
|
@@ -7258,7 +7258,7 @@ const HistoryList = class {
|
|
|
7258
7258
|
}
|
|
7259
7259
|
handleMbSourceChange(newValue, oldValue) {
|
|
7260
7260
|
if (newValue != oldValue) {
|
|
7261
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7261
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7262
7262
|
}
|
|
7263
7263
|
}
|
|
7264
7264
|
handleDefaultTicketHistoryChange(newValue, oldValue) {
|
|
@@ -7269,7 +7269,7 @@ const HistoryList = class {
|
|
|
7269
7269
|
componentDidLoad() {
|
|
7270
7270
|
if (this.stylingContainer) {
|
|
7271
7271
|
if (this.mbSource)
|
|
7272
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7272
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7273
7273
|
if (this.clientStyling)
|
|
7274
7274
|
lotteryOddsbomTicketHistory.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
7275
7275
|
if (this.clientStylingUrl)
|
|
@@ -7389,13 +7389,13 @@ const LotteryOddsbomBullet = class {
|
|
|
7389
7389
|
}
|
|
7390
7390
|
handleMbSourceChange(newValue, oldValue) {
|
|
7391
7391
|
if (newValue != oldValue) {
|
|
7392
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7392
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7393
7393
|
}
|
|
7394
7394
|
}
|
|
7395
7395
|
componentDidLoad() {
|
|
7396
7396
|
if (this.stylingContainer) {
|
|
7397
7397
|
if (this.mbSource)
|
|
7398
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7398
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7399
7399
|
if (this.clientStyling)
|
|
7400
7400
|
lotteryOddsbomTicketHistory.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
7401
7401
|
if (this.clientStylingUrl)
|
|
@@ -7735,13 +7735,13 @@ const LotteryOddsbomTicketResult = class {
|
|
|
7735
7735
|
}
|
|
7736
7736
|
handleMbSourceChange(newValue, oldValue) {
|
|
7737
7737
|
if (newValue !== oldValue) {
|
|
7738
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7738
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7739
7739
|
}
|
|
7740
7740
|
}
|
|
7741
7741
|
componentDidLoad() {
|
|
7742
7742
|
if (this.stylingContainer) {
|
|
7743
7743
|
if (this.mbSource)
|
|
7744
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7744
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7745
7745
|
if (this.clientStyling)
|
|
7746
7746
|
lotteryOddsbomTicketHistory.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
7747
7747
|
if (this.clientStylingUrl)
|
|
@@ -7979,7 +7979,7 @@ const LotteryTippingDialog = class {
|
|
|
7979
7979
|
}
|
|
7980
7980
|
handleMbSourceChange(newValue, oldValue) {
|
|
7981
7981
|
if (newValue != oldValue) {
|
|
7982
|
-
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7982
|
+
lotteryOddsbomTicketHistory.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7983
7983
|
}
|
|
7984
7984
|
}
|
|
7985
7985
|
componentWillLoad() {
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const lotteryOddsbomTicketHistory = require('./lottery-oddsbom-ticket-history-
|
|
5
|
+
const lotteryOddsbomTicketHistory = require('./lottery-oddsbom-ticket-history-96939655.js');
|
|
6
6
|
require('./index-de3ae437.js');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-de3ae437.js');
|
|
4
4
|
|
|
5
|
+
const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* @name setClientStyling
|
|
7
9
|
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
@@ -47,18 +49,75 @@ function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
|
47
49
|
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
48
50
|
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
49
51
|
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
52
|
+
* @param {boolean} useAdoptedStyleSheets A flag to gradually enable testing of adoptedStyleSheets
|
|
50
53
|
*/
|
|
51
|
-
function setStreamStyling(stylingContainer, domain, subscription) {
|
|
52
|
-
if (window.emMessageBus)
|
|
53
|
-
const sheet = document.createElement('style');
|
|
54
|
+
function setStreamStyling(stylingContainer, domain, subscription, useAdoptedStyleSheets = false) {
|
|
55
|
+
if (!window.emMessageBus) return;
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
const supportAdoptStyle = 'adoptedStyleSheets' in Document.prototype;
|
|
58
|
+
|
|
59
|
+
if (!supportAdoptStyle || !useAdoptedStyleSheets) {
|
|
60
|
+
subscription = getStyleTagSubscription(stylingContainer, domain);
|
|
61
|
+
|
|
62
|
+
return subscription;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (!window[StyleCacheKey]) {
|
|
66
|
+
window[StyleCacheKey] = {};
|
|
61
67
|
}
|
|
68
|
+
subscription = getAdoptStyleSubscription(stylingContainer, domain);
|
|
69
|
+
|
|
70
|
+
const originalUnsubscribe = subscription.unsubscribe.bind(subscription);
|
|
71
|
+
const wrappedUnsubscribe = () => {
|
|
72
|
+
if (window[StyleCacheKey][domain]) {
|
|
73
|
+
const cachedObject = window[StyleCacheKey][domain];
|
|
74
|
+
cachedObject.refCount > 1
|
|
75
|
+
? (cachedObject.refCount = cachedObject.refCount - 1)
|
|
76
|
+
: delete window[StyleCacheKey][domain];
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
originalUnsubscribe();
|
|
80
|
+
};
|
|
81
|
+
subscription.unsubscribe = wrappedUnsubscribe;
|
|
82
|
+
|
|
83
|
+
return subscription;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function getStyleTagSubscription(stylingContainer, domain) {
|
|
87
|
+
const sheet = document.createElement('style');
|
|
88
|
+
|
|
89
|
+
return window.emMessageBus.subscribe(domain, (data) => {
|
|
90
|
+
if (stylingContainer) {
|
|
91
|
+
sheet.innerHTML = data;
|
|
92
|
+
stylingContainer.appendChild(sheet);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function getAdoptStyleSubscription(stylingContainer, domain) {
|
|
98
|
+
return window.emMessageBus.subscribe(domain, (data) => {
|
|
99
|
+
if (!stylingContainer) return;
|
|
100
|
+
|
|
101
|
+
const shadowRoot = stylingContainer.getRootNode();
|
|
102
|
+
const cacheStyleObject = window[StyleCacheKey];
|
|
103
|
+
let cachedStyle = cacheStyleObject[domain]?.sheet;
|
|
104
|
+
|
|
105
|
+
if (!cachedStyle) {
|
|
106
|
+
cachedStyle = new CSSStyleSheet();
|
|
107
|
+
cachedStyle.replaceSync(data);
|
|
108
|
+
cacheStyleObject[domain] = {
|
|
109
|
+
sheet: cachedStyle,
|
|
110
|
+
refCount: 1
|
|
111
|
+
};
|
|
112
|
+
} else {
|
|
113
|
+
cacheStyleObject[domain].refCount = cacheStyleObject[domain].refCount + 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const currentSheets = shadowRoot.adoptedStyleSheets || [];
|
|
117
|
+
if (!currentSheets.includes(cachedStyle)) {
|
|
118
|
+
shadowRoot.adoptedStyleSheets = [...currentSheets, cachedStyle];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
62
121
|
}
|
|
63
122
|
|
|
64
123
|
var GameType;
|
|
@@ -2903,13 +2962,13 @@ const LotteryOddsbomTicketHistory = class {
|
|
|
2903
2962
|
}
|
|
2904
2963
|
handleMbSourceChange(newValue, oldValue) {
|
|
2905
2964
|
if (newValue !== oldValue) {
|
|
2906
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
2965
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
2907
2966
|
}
|
|
2908
2967
|
}
|
|
2909
2968
|
componentDidLoad() {
|
|
2910
2969
|
if (this.stylingContainer) {
|
|
2911
2970
|
if (this.mbSource)
|
|
2912
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
2971
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
2913
2972
|
if (this.clientStyling)
|
|
2914
2973
|
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
2915
2974
|
if (this.clientStylingUrl)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getAssetPath, a as getElement } from './index-e66667d7.js';
|
|
2
|
-
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling, r as resolveTranslationUrl$2, t as translate$2, c as setDateFormate, i as isMobile, D as DrawResult, g as getTicketResults, d as getDrawResults, f as formatDateToCustomFormat, e as buildDrawResults, h as format, j as thousandSeparator, p as parseISO } from './lottery-oddsbom-ticket-history-
|
|
3
|
-
export { L as lottery_oddsbom_ticket_history } from './lottery-oddsbom-ticket-history-
|
|
2
|
+
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling, r as resolveTranslationUrl$2, t as translate$2, c as setDateFormate, i as isMobile, D as DrawResult, g as getTicketResults, d as getDrawResults, f as formatDateToCustomFormat, e as buildDrawResults, h as format, j as thousandSeparator, p as parseISO } from './lottery-oddsbom-ticket-history-24c1aa1b.js';
|
|
3
|
+
export { L as lottery_oddsbom_ticket_history } from './lottery-oddsbom-ticket-history-24c1aa1b.js';
|
|
4
4
|
|
|
5
5
|
var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnPropertyDescriptors;var lo=Object.getOwnPropertySymbols;var Gr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable;var Mt=(s,t,e)=>t in s?qr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,we=(s,t)=>{for(var e in t||(t={}))Gr.call(t,e)&&Mt(s,e,t[e]);if(lo)for(var e of lo(t))Xr.call(t,e)&&Mt(s,e,t[e]);return s},Nt=(s,t)=>Yr(s,Kr(t));var k=(s,t,e)=>(Mt(s,typeof t!="symbol"?t+"":t,e),e);var Ce=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
|
|
6
6
|
* @license
|
|
@@ -6741,13 +6741,13 @@ const FilterGroup = class {
|
|
|
6741
6741
|
}
|
|
6742
6742
|
handleMbSourceChange(newValue, oldValue) {
|
|
6743
6743
|
if (newValue != oldValue) {
|
|
6744
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
6744
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
6745
6745
|
}
|
|
6746
6746
|
}
|
|
6747
6747
|
componentDidLoad() {
|
|
6748
6748
|
if (this.stylingContainer) {
|
|
6749
6749
|
if (this.mbSource)
|
|
6750
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
6750
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
6751
6751
|
if (this.clientStyling)
|
|
6752
6752
|
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
6753
6753
|
if (this.clientStylingUrl)
|
|
@@ -6905,13 +6905,13 @@ const GeneralMultiSelect = class {
|
|
|
6905
6905
|
}
|
|
6906
6906
|
handleMbSourceChange(newValue, oldValue) {
|
|
6907
6907
|
if (newValue != oldValue) {
|
|
6908
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
6908
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
6909
6909
|
}
|
|
6910
6910
|
}
|
|
6911
6911
|
componentDidLoad() {
|
|
6912
6912
|
if (this.stylingContainer) {
|
|
6913
6913
|
if (this.mbSource)
|
|
6914
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
6914
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
6915
6915
|
if (this.clientStyling)
|
|
6916
6916
|
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
6917
6917
|
if (this.clientStylingUrl)
|
|
@@ -7015,13 +7015,13 @@ const GeneralPagination = class {
|
|
|
7015
7015
|
}
|
|
7016
7016
|
handleMbSourceChange(newValue, oldValue) {
|
|
7017
7017
|
if (newValue != oldValue) {
|
|
7018
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7018
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7019
7019
|
}
|
|
7020
7020
|
}
|
|
7021
7021
|
componentDidLoad() {
|
|
7022
7022
|
if (this.stylingContainer) {
|
|
7023
7023
|
if (this.mbSource)
|
|
7024
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7024
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7025
7025
|
if (this.clientStyling)
|
|
7026
7026
|
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
7027
7027
|
if (this.clientStylingUrl)
|
|
@@ -7190,13 +7190,13 @@ const GeneralPanel = class {
|
|
|
7190
7190
|
}
|
|
7191
7191
|
handleMbSourceChange(newValue, oldValue) {
|
|
7192
7192
|
if (newValue != oldValue) {
|
|
7193
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7193
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7194
7194
|
}
|
|
7195
7195
|
}
|
|
7196
7196
|
componentDidLoad() {
|
|
7197
7197
|
if (this.stylingContainer) {
|
|
7198
7198
|
if (this.mbSource)
|
|
7199
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7199
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7200
7200
|
if (this.clientStyling)
|
|
7201
7201
|
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
7202
7202
|
if (this.clientStylingUrl)
|
|
@@ -7255,7 +7255,7 @@ const HistoryList = class {
|
|
|
7255
7255
|
}
|
|
7256
7256
|
handleMbSourceChange(newValue, oldValue) {
|
|
7257
7257
|
if (newValue != oldValue) {
|
|
7258
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7258
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7259
7259
|
}
|
|
7260
7260
|
}
|
|
7261
7261
|
handleDefaultTicketHistoryChange(newValue, oldValue) {
|
|
@@ -7266,7 +7266,7 @@ const HistoryList = class {
|
|
|
7266
7266
|
componentDidLoad() {
|
|
7267
7267
|
if (this.stylingContainer) {
|
|
7268
7268
|
if (this.mbSource)
|
|
7269
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7269
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7270
7270
|
if (this.clientStyling)
|
|
7271
7271
|
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
7272
7272
|
if (this.clientStylingUrl)
|
|
@@ -7386,13 +7386,13 @@ const LotteryOddsbomBullet = class {
|
|
|
7386
7386
|
}
|
|
7387
7387
|
handleMbSourceChange(newValue, oldValue) {
|
|
7388
7388
|
if (newValue != oldValue) {
|
|
7389
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7389
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7390
7390
|
}
|
|
7391
7391
|
}
|
|
7392
7392
|
componentDidLoad() {
|
|
7393
7393
|
if (this.stylingContainer) {
|
|
7394
7394
|
if (this.mbSource)
|
|
7395
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7395
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7396
7396
|
if (this.clientStyling)
|
|
7397
7397
|
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
7398
7398
|
if (this.clientStylingUrl)
|
|
@@ -7732,13 +7732,13 @@ const LotteryOddsbomTicketResult = class {
|
|
|
7732
7732
|
}
|
|
7733
7733
|
handleMbSourceChange(newValue, oldValue) {
|
|
7734
7734
|
if (newValue !== oldValue) {
|
|
7735
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7735
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7736
7736
|
}
|
|
7737
7737
|
}
|
|
7738
7738
|
componentDidLoad() {
|
|
7739
7739
|
if (this.stylingContainer) {
|
|
7740
7740
|
if (this.mbSource)
|
|
7741
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7741
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7742
7742
|
if (this.clientStyling)
|
|
7743
7743
|
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
7744
7744
|
if (this.clientStylingUrl)
|
|
@@ -7976,7 +7976,7 @@ const LotteryTippingDialog = class {
|
|
|
7976
7976
|
}
|
|
7977
7977
|
handleMbSourceChange(newValue, oldValue) {
|
|
7978
7978
|
if (newValue != oldValue) {
|
|
7979
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
7979
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
7980
7980
|
}
|
|
7981
7981
|
}
|
|
7982
7982
|
componentWillLoad() {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { L as LotteryOddsbomTicketHistory } from './lottery-oddsbom-ticket-history-
|
|
1
|
+
export { L as LotteryOddsbomTicketHistory } from './lottery-oddsbom-ticket-history-24c1aa1b.js';
|
|
2
2
|
import './index-e66667d7.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-e66667d7.js';
|
|
2
2
|
|
|
3
|
+
const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* @name setClientStyling
|
|
5
7
|
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
@@ -45,18 +47,75 @@ function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
|
45
47
|
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
46
48
|
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
47
49
|
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
50
|
+
* @param {boolean} useAdoptedStyleSheets A flag to gradually enable testing of adoptedStyleSheets
|
|
48
51
|
*/
|
|
49
|
-
function setStreamStyling(stylingContainer, domain, subscription) {
|
|
50
|
-
if (window.emMessageBus)
|
|
51
|
-
const sheet = document.createElement('style');
|
|
52
|
+
function setStreamStyling(stylingContainer, domain, subscription, useAdoptedStyleSheets = false) {
|
|
53
|
+
if (!window.emMessageBus) return;
|
|
52
54
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
const supportAdoptStyle = 'adoptedStyleSheets' in Document.prototype;
|
|
56
|
+
|
|
57
|
+
if (!supportAdoptStyle || !useAdoptedStyleSheets) {
|
|
58
|
+
subscription = getStyleTagSubscription(stylingContainer, domain);
|
|
59
|
+
|
|
60
|
+
return subscription;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (!window[StyleCacheKey]) {
|
|
64
|
+
window[StyleCacheKey] = {};
|
|
59
65
|
}
|
|
66
|
+
subscription = getAdoptStyleSubscription(stylingContainer, domain);
|
|
67
|
+
|
|
68
|
+
const originalUnsubscribe = subscription.unsubscribe.bind(subscription);
|
|
69
|
+
const wrappedUnsubscribe = () => {
|
|
70
|
+
if (window[StyleCacheKey][domain]) {
|
|
71
|
+
const cachedObject = window[StyleCacheKey][domain];
|
|
72
|
+
cachedObject.refCount > 1
|
|
73
|
+
? (cachedObject.refCount = cachedObject.refCount - 1)
|
|
74
|
+
: delete window[StyleCacheKey][domain];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
originalUnsubscribe();
|
|
78
|
+
};
|
|
79
|
+
subscription.unsubscribe = wrappedUnsubscribe;
|
|
80
|
+
|
|
81
|
+
return subscription;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function getStyleTagSubscription(stylingContainer, domain) {
|
|
85
|
+
const sheet = document.createElement('style');
|
|
86
|
+
|
|
87
|
+
return window.emMessageBus.subscribe(domain, (data) => {
|
|
88
|
+
if (stylingContainer) {
|
|
89
|
+
sheet.innerHTML = data;
|
|
90
|
+
stylingContainer.appendChild(sheet);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function getAdoptStyleSubscription(stylingContainer, domain) {
|
|
96
|
+
return window.emMessageBus.subscribe(domain, (data) => {
|
|
97
|
+
if (!stylingContainer) return;
|
|
98
|
+
|
|
99
|
+
const shadowRoot = stylingContainer.getRootNode();
|
|
100
|
+
const cacheStyleObject = window[StyleCacheKey];
|
|
101
|
+
let cachedStyle = cacheStyleObject[domain]?.sheet;
|
|
102
|
+
|
|
103
|
+
if (!cachedStyle) {
|
|
104
|
+
cachedStyle = new CSSStyleSheet();
|
|
105
|
+
cachedStyle.replaceSync(data);
|
|
106
|
+
cacheStyleObject[domain] = {
|
|
107
|
+
sheet: cachedStyle,
|
|
108
|
+
refCount: 1
|
|
109
|
+
};
|
|
110
|
+
} else {
|
|
111
|
+
cacheStyleObject[domain].refCount = cacheStyleObject[domain].refCount + 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const currentSheets = shadowRoot.adoptedStyleSheets || [];
|
|
115
|
+
if (!currentSheets.includes(cachedStyle)) {
|
|
116
|
+
shadowRoot.adoptedStyleSheets = [...currentSheets, cachedStyle];
|
|
117
|
+
}
|
|
118
|
+
});
|
|
60
119
|
}
|
|
61
120
|
|
|
62
121
|
var GameType;
|
|
@@ -2901,13 +2960,13 @@ const LotteryOddsbomTicketHistory = class {
|
|
|
2901
2960
|
}
|
|
2902
2961
|
handleMbSourceChange(newValue, oldValue) {
|
|
2903
2962
|
if (newValue !== oldValue) {
|
|
2904
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
2963
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
2905
2964
|
}
|
|
2906
2965
|
}
|
|
2907
2966
|
componentDidLoad() {
|
|
2908
2967
|
if (this.stylingContainer) {
|
|
2909
2968
|
if (this.mbSource)
|
|
2910
|
-
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style
|
|
2969
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
2911
2970
|
if (this.clientStyling)
|
|
2912
2971
|
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
2913
2972
|
if (this.clientStylingUrl)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as s,a as o}from"./index-e66667d7.js";import{s as r,a as n,b as a,r as l,t as h,c as d,i as c,D as u,g as p,d as m,f as v,e as f,h as b,j as g,p as y}from"./lottery-oddsbom-ticket-history-
|
|
1
|
+
import{r as t,c as e,h as i,g as s,a as o}from"./index-e66667d7.js";import{s as r,a as n,b as a,r as l,t as h,c as d,i as c,D as u,g as p,d as m,f as v,e as f,h as b,j as g,p as y}from"./lottery-oddsbom-ticket-history-24c1aa1b.js";export{L as lottery_oddsbom_ticket_history}from"./lottery-oddsbom-ticket-history-24c1aa1b.js";var w=Object.defineProperty,x=Object.defineProperties,_=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,A=(t,e,i)=>e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,z=(t,e)=>{for(var i in e||(e={}))C.call(e,i)&&A(t,i,e[i]);if(k)for(var i of k(e))S.call(e,i)&&A(t,i,e[i]);return t},I=(t,e)=>x(t,_(e)),T=(t,e,i)=>(A(t,"symbol"!=typeof e?e+"":e,i),i),D=(t,e,i)=>new Promise(((s,o)=>{var r=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,n);a((i=i.apply(t,e)).next())}))
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -6654,4 +6654,4 @@ Qt("vaadin-tabs",F`
|
|
|
6654
6654
|
</div>
|
|
6655
6655
|
|
|
6656
6656
|
<div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
|
|
6657
|
-
`}static get is(){return"vaadin-tabs"}}O(Ol);const El=class{constructor(i){t(this,i),this.handleFilter=e(this,"filterChange",7),this.handleTicketType=t=>{t.detail&&t.detail.length&&(this.filterParams.wagerType=t.detail)},this.handleFilterFrom=t=>{var e,i;const s=null===(i=null===(e=t.target)||void 0===e?void 0:e.value)||void 0===i?void 0:i.split("-");if(3===s.length){const[t,e,i]=s;this.filterParams.from=new Date(Date.UTC(Number(t),Number(e)-1,Number(i),0,0,0)).toISOString(),this.minTo=`${t}-${e}-${i}`}},this.handleFilterTo=t=>{var e,i;const s=null===(i=null===(e=t.target)||void 0===e?void 0:e.value)||void 0===i?void 0:i.split("-");if(3===s.length){const[t,e,i]=s;this.filterParams.to=new Date(Date.UTC(Number(t),Number(e)-1,Number(i),23,59,59)).toISOString(),this.maxFrom=`${t}-${e}-${i}`}},this.validateOnSubmit=()=>{const{from:t,to:e}=this.filterParams;return t&&!e||!t&&e?(this.invalid={from:!t,to:!e},Promise.reject()):(this.invalid={from:!1,to:!1},Promise.resolve())},this.handleTicketIdInput=t=>{this.filterParams.id=t.target.value},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.statusOptions=void 0,this.ticketTypeList=void 0,this.filterParams={},this.isOpen=!1,this.invalid={from:!1,to:!1},this.maxFrom="",this.minTo=""}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){l(this.translationUrl),this.statusOptions=[{label:h("settled",this.language),value:"Settled"},{label:h("purchased",this.language),value:"Purchased"},{label:h("canceled",this.language),value:"Canceled"}],this.ticketTypeList=[{label:h("normal",this.language),value:"NORMAL"},{label:h("subscription",this.language),value:"SUBSCRIPTION"}]}resetSearch(){this.filterParams={},this.comboBox.clear(),this.handleFilter.emit(this.filterParams)}handleOpen(){this.isOpen=!0}handleDialogConfirm(){this.validateOnSubmit().then((()=>{this.handleFilter.emit(this.filterParams),this.isOpen=!1}))}handleSelectStatus(t){this.filterParams.state=t,this.filterParams=Object.assign({},this.filterParams),this.handleFilter.emit(this.filterParams)}renderFilterLeft(){return i("div",{class:"filter-status"},this.statusOptions.map((t=>i("div",{class:"filter-status-btn"+(this.filterParams.state===t.value?" active":""),onClick:this.handleSelectStatus.bind(this,t.value)},t.label))))}renderFilterContent(){return i("div",{class:"dialog-content"},i("div",{class:"filter-item"},i("div",{class:"filter-item-label"},h("searchByTicketId",this.language)),i("div",{class:"filter-item-val"},i("vaadin-text-field",{placeholder:h("enterTicketId",this.language),value:this.filterParams.id,onInput:this.handleTicketIdInput.bind(this)}))),i("div",{class:"filter-item"},i("div",{class:"filter-item-label"},h("searchByTicketType",this.language)),i("div",{class:"general-multi-select-container"},i("general-multi-select",{ref:t=>this.comboBox=t,placeholder:h("selectTicketType",this.language),"max-visible-chips":"2",options:this.ticketTypeList.map((t=>({text:t.label,value:t.value}))),onChange:this.handleTicketType.bind(this),"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl,"mb-source":this.mbSource}))),i("div",{class:"filter-item"},i("div",{class:"filter-item-label"},h("searchByDate",this.language)),i("div",{class:"filter-item-val"},i("vaadin-date-picker",{value:this.filterParams.from,max:this.maxFrom,onChange:this.handleFilterFrom.bind(this),placeholder:h("from",this.language),ref:t=>d(t),class:"VaadinDatePicker",invalid:this.invalid.from,"error-message":h("pleaseSelectADate",this.language)}),i("vaadin-date-picker",{value:this.filterParams.to,min:this.minTo,onChange:this.handleFilterTo.bind(this),placeholder:h("to",this.language),ref:t=>d(t),class:"VaadinDatePicker",invalid:this.invalid.to,"error-message":h("pleaseSelectADate",this.language)}))))}render(){return i("div",{key:"0e7d77068c53724b6d90833559d287841312f918",class:"filter-wrap",ref:t=>this.stylingContainer=t},this.renderFilterLeft(),i("div",{key:"4a5cf9cc96422b5b4a152d8308b9c1e3e6033f8c",class:"filter-operation"},i("div",{key:"87885e1bb9238f1e6ef2049d9899b4f7091ca2c9",class:"lottery-tipping-filter"},i("div",{key:"0ae6c91ba3621ee6fe3897276a43147198d1dd27",class:"operate-btns"},i("div",{key:"98ddfd9907685a2e16ca8074abe1c8c74d06551e",class:"operate-btn",onClick:this.handleOpen.bind(this)},h("filter",this.language)),i("div",{key:"4c05e4c3c7a01472de6a86069f5d0feb7ebd473f",class:"operate-btn",onClick:this.resetSearch.bind(this)},h("clear",this.language))),i("lottery-tipping-dialog",{key:"91f85110aa3f30556098e338c9b66b0a419aa460","dialog-title":h("filter",this.language),visible:this.isOpen,onCancel:()=>{this.isOpen=!1},onConfirm:this.handleDialogConfirm.bind(this),animationDuration:300,language:this.language,"translation-url":this.translationUrl},this.renderFilterContent()))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};El.style=".filter-wrap {\n margin-bottom: 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n container-type: inline-size;\n container-type: inline-size;\n}\n\n.filter-wrap .filter-status {\n display: flex;\n gap: 12px;\n align-items: center;\n}\n\n.filter-wrap .filter-status-btn {\n background: var(--emw--color-background, #fff);\n border: 1px solid var(--emw--color-primary, #0d196e);\n color: var(--emw--color-typography, #000);\n border-radius: 6px;\n padding: 12px;\n font-size: 13px;\n text-transform: uppercase;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;\n}\n\n.filter-wrap .filter-status-btn:hover {\n background-color: var(--emw--color-secondary, #1367e7);\n}\n\n.filter-wrap .filter-status-btn.active {\n background: var(--emw--color-secondary, #1367e7);\n color: var(--emw--color-typography-reverse, #fff);\n}\n\n@container (max-width: 480px) {\n .filter-wrap {\n flex-direction: column;\n align-items: flex-start;\n gap: 10px;\n }\n .filter-wrap .filter-status {\n flex-wrap: wrap;\n gap: 8px;\n }\n .filter-wrap .filter-status-btn {\n padding: 6px 10px;\n font-size: 12px;\n }\n}\n.lottery-tipping-filter .operate-btns {\n display: flex;\n gap: 12px;\n}\n\n.lottery-tipping-filter .operate-btn {\n background: var(--emw--color-primary, #0d196e);\n border-radius: 20px;\n padding: 8px 16px;\n font-size: 14px;\n color: var(--emw--color-typography-normalized, #fff);\n font-weight: 600;\n cursor: pointer;\n transition: background 0.2s ease, border-color 0.2s ease;\n}\n\n.lottery-tipping-filter .operate-btn:hover {\n background: var(--emw--color-secondary, #1367e7);\n}\n\n.dialog-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n color: var(--emw--color-typography, #000);\n}\n.dialog-content .filter-item {\n margin-bottom: 12px;\n}\n.dialog-content .filter-item-label {\n text-align: center;\n}\n.dialog-content .filter-item-val {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n justify-content: center;\n}\n\n@container (max-width: 480px) {\n .lottery-tipping-filter .operate-btns {\n gap: 6px;\n flex-wrap: wrap;\n }\n .lottery-tipping-filter .operate-btn {\n padding: 6px 12px;\n font-size: 13px;\n }\n}";const Bl=class{constructor(i){t(this,i),this.change=e(this,"change",7),this.handleOutsideClick=t=>{t.composedPath().includes(this.el)||(this.dropdownOpen=!1,this.overflowOpen=!1)},this.toggleDropdown=t=>{t.stopPropagation(),this.dropdownOpen=!this.dropdownOpen,this.overflowOpen=!1},this.isSelected=t=>this.selectedValues.includes(t),this.selectItem=t=>{this.isSelected(t.value)||(this.selectedValues=[...this.selectedValues,t.value],this.change.emit(this.selectedValues))},this.toggleItem=t=>{this.isSelected(t.value)?this.removeItem(t.value):this.selectItem(t)},this.removeItem=(t,e)=>{e&&e.stopPropagation(),this.selectedValues=this.selectedValues.filter((e=>e!==t)),this.change.emit(this.selectedValues)},this.downIcon=s("../static/dropdown.svg"),this.upIcon=s("../static/dropup.svg"),this.isTouch="ontouchstart"in window,this.openOverflow=()=>{this.isTouch||(this.computePopoverPosition(),this.overflowOpen=!0)},this.closeOverflow=()=>{this.isTouch||(this.overflowOpen=!1)},this.toggleOverflow=t=>{t.stopPropagation(),this.computePopoverPosition(),this.overflowOpen=!this.overflowOpen},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.options=[],this.maxVisibleChips=2,this.placeholder="",this.selectedValues=[],this.dropdownOpen=!1,this.overflowOpen=!1,this.popoverStyle={top:"0px",left:"0px"}}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}async clear(){this.selectedValues=[],this.change.emit(this.selectedValues)}componentWillLoad(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}get selectedOptions(){return this.options.filter((t=>this.isSelected(t.value)))}get visibleChips(){return this.selectedOptions.slice(0,this.maxVisibleChips)}get hiddenChips(){return this.selectedOptions.slice(this.maxVisibleChips)}computePopoverPosition(){if(this.overflowChipEl&&this.el){const{left:t}=this.overflowChipEl.getBoundingClientRect(),{left:e,height:i}=this.el.getBoundingClientRect();this.popoverStyle={top:i-10+"px",left:t-e+"px"}}}render(){var t;return i("div",{key:"50b48397be3ede1907ab2c2abcd1cf2f43f69c13",class:"general-multi-select-container",ref:t=>this.stylingContainer=t},i("div",{key:"696a1bb1f221f8f5cf290fac040af10e2e5a115e",class:"multi-select-container",ref:t=>this.el=t},i("div",{key:"9ea92f01787b26d43054573a11896cf65065b073",class:"flex-row",onClick:this.toggleDropdown},i("div",{key:"f79720ca3ec383ee7f95b09483698ee18119c79a",class:"control"},this.visibleChips.map((t=>i("span",{class:"chip"},i("div",{class:"chip-text",title:t.text},t.text),i("div",{class:"remove-btn",onClick:e=>this.removeItem(t.value,e)},"×")))),this.hiddenChips.length>0&&i("span",{key:"25e9e527c33dd7a315dacb10cc51084fe69b9b7e",class:"chip overflow-chip",ref:t=>this.overflowChipEl=t,onMouseEnter:this.openOverflow,onMouseLeave:this.closeOverflow,onClick:this.toggleOverflow},"•••"),0===this.selectedValues.length&&i("span",{key:"b061de660a55f7a0d41ce9aa650108d3f38a9dc0",class:"placeholder"},this.placeholder)),i("div",{key:"f83b6517e88b3976cdc18590f8f1233cb2515230",class:"arrow"},i("img",{key:"1b61a49090237057b98e5ce8a4f7c1e3bfc9d4ba",class:"info-icon",src:this.dropdownOpen?this.upIcon:this.downIcon,style:{width:"18px"}}))),this.dropdownOpen&&i("div",{key:"e5b081007bcbdd251ce5ac235c1f19f17852c420",class:"dropdown"},this.options.map((t=>i("div",{class:{"dropdown-item":!0,selected:this.isSelected(t.value)},onClick:()=>this.toggleItem(t)},t.text)))),this.overflowOpen&&!!(null===(t=this.hiddenChips)||void 0===t?void 0:t.length)&&i("div",{key:"f8e3289042c69c569bebcd0a40d90f31261c6c12",class:"overflow-popover",style:{top:this.popoverStyle.top,left:this.popoverStyle.left},onMouseEnter:this.openOverflow,onMouseLeave:this.closeOverflow},this.hiddenChips.map((t=>i("span",{class:"chip"},i("span",{class:"chip-text",title:t.text},t.text),i("span",{class:"remove-btn",onClick:e=>this.removeItem(t.value,e)},"×")))))))}static get assetsDirs(){return["../static"]}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};Bl.style='.multi-select-container{position:relative;font-family:"Inter", sans-serif;margin-top:4px;width:100%}.flex-row{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;padding:8px 12px;padding-right:4px;border-radius:4px;background:var(--emw-selector-color-background, #e8ebef);cursor:pointer}.control{flex:1;display:flex;align-items:center;flex-wrap:nowrap;overflow:hidden}.control:focus-within{border-color:var(--emw--color-primary, #fed275);box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}.chip{display:inline-flex;align-items:center;background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-dialog-typography, #000);border-radius:4px;padding:2px 8px;margin-right:6px;font-size:0.875rem;line-height:1.2;justify-content:space-between;flex:0 1 auto;min-width:0}.chip-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overflow-chip{background:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-300, #333);width:20px;text-align:center;display:block}.remove-btn{background:none;border:none;font-size:1rem;margin-left:6px;cursor:pointer;color:var(--emw--color-gray-150, #6f6f6f)}.remove-btn:hover{color:var(--emw--color-error, red)}.placeholder{color:var(--emw--color-gray-150, #6f6f6f);font-size:0.875rem;padding:3px 8px;line-height:1.2}.arrow{margin-left:auto;font-size:0.8rem;width:20px;color:var(--emw--color-gray-150, #6f6f6f)}.dropdown{position:absolute;top:calc(100% + 4px);left:0;width:100%;max-height:240px;overflow-y:auto;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:6px;background:var(--emw--color-dialog-background, #ffffff);box-shadow:0 4px 12px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));z-index:10}.dropdown-item{padding:10px 14px;cursor:pointer;font-size:0.875rem;line-height:1.4;transition:background 0.2s}.dropdown-item:hover{background:var(--emw--color-background-tertiary, #ccc);color:var(--emw--color-typography, #000)}.dropdown-item.selected{background:var(--emw--color-background-secondary, #f5f5f5);color:var(--emw--color-typography, #000);font-weight:500}.overflow-popover{position:absolute;top:var(--overflow-top, 0px);left:var(--overflow-left, 0px);max-width:200px;padding:12px;display:flex;flex-wrap:wrap;gap:6px;border:1px solid var(--emw--color-gray-100, #d0d5dd);border-radius:6px;background:var(--emw--color-background, #ffffff);box-shadow:0 4px 12px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));z-index:20}';const Ml=class{constructor(i){t(this,i),this.pageChange=e(this,"pageChange",7),this.pageSizeChange=e(this,"pageSizeChange",7),this.pageSizeOptions=[10,20,50],this.userAgent=window.navigator.userAgent,this.handleKeyDown=t=>{if("Enter"===t.key){const e=parseInt(t.target.value);isNaN(e)||this.goToPage(e)}},this.handleInput=t=>{const e=t.target;parseInt(e.value)>this.totalPages&&(e.value=this.totalPages.toString()),parseInt(e.value)<1&&(e.value="1")},this.handleSelectInput=t=>this.changePageSize(parseInt(t.target.value)),this.total=0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.current=1,this.pageSize=10,this.totalPages=1}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}componentWillLoad(){l(this.translationUrl),this.pageSize=this.pageSizeOptions[0],this.updateTotalPages()}updateTotalPages(){this.totalPages=Math.max(Math.ceil(this.total/this.pageSize),1),this.current>this.totalPages&&(this.current=this.totalPages,this.pageChange.emit(this.current))}goToPage(t){t<1||t>this.totalPages||t===this.current||(this.current=t,this.pageChange.emit(t))}changePageSize(t){this.pageSize=t,this.pageSizeChange.emit(t),this.updateTotalPages(),this.goToPage(1)}getPagesToShow(){const t=[],e=c(this.userAgent)?1:2,{totalPages:i,current:s}=this;if(i<=7)for(let e=1;e<=i;e++)t.push({type:"page",value:e});else{t.push({type:"page",value:1}),s>e+2&&t.push({type:"jump",direction:"prev"});const o=Math.max(2,s-e),r=Math.min(i-1,s+e);for(let e=o;e<=r;e++)t.push({type:"page",value:e});s<i-e-1&&t.push({type:"jump",direction:"next"}),t.push({type:"page",value:i})}return t}jumpTo(t){this.goToPage("prev"===t?Math.max(1,this.current-5):Math.min(this.totalPages,this.current+5))}render(){if(!this.total)return null;const t=this.getPagesToShow();return i("div",{class:"paginator",ref:t=>this.stylingContainer=t},i("div",{class:"total-num"},h("totalItems",this.language,{total:this.total})),i("button",{class:"arrow-btn",disabled:this.current<=1,onClick:this.goToPage.bind(this,this.current-1)},"<"),t.map((t=>"page"===t.type?i("button",{class:{page:!0,active:this.current===t.value},onClick:this.goToPage.bind(this,t.value)},t.value):i("button",{class:"ellipsis",onClick:this.jumpTo.bind(this,t.direction)},"..."))),i("button",{class:"arrow-btn",disabled:this.current>=this.totalPages,onClick:this.goToPage.bind(this,this.current+1)},">"),i("select",{onInput:this.handleSelectInput},this.pageSizeOptions.map((t=>i("option",{value:t},t)))),i("div",{class:"jump-box"},h("goTo",this.language),i("input",{type:"number",min:"1",max:this.totalPages,value:this.current,onKeyDown:this.handleKeyDown.bind(this),onInput:this.handleInput.bind(this)})))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],total:["updateTotalPages"],pageSize:["updateTotalPages"]}}};Ml.style=".paginator{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}button{padding:4px 8px;font-size:14px;background:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000);border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));border-radius:var(--emw--border-radius-small, 6px);cursor:pointer;min-width:28px;transition:all 0.2s ease}button.active{color:var(--emw--color-typography-normalized, #fff);background:var(--emw--color-primary, #0d196e);border-color:var(--emw--color-primary, #0d196e);font-weight:600}button:not(.arrow-btn):hover{background:var(--emw--color-secondary, #405c8b);border-color:var(--emw--color-secondary, #405c8b)}button:disabled{cursor:not-allowed;border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));background:var(--emw--color-background-secondary, #f5f5f5);user-select:none}.ellipsis{font-weight:500;color:var(--emw--color-typography, #000);border:none}select{padding:6px 10px;border-radius:6px;border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));font-size:14px}.jump-box{display:flex;align-items:center;gap:6px;margin-left:10px}.jump-box input{width:50px;padding:4px 8px;font-size:14px;border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));border-radius:6px;text-align:center}.total-num{user-select:none;font-size:14px;color:var(--emw--color-typography, #000)}";var Pl=function(){return Pl=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Pl.apply(this,arguments)},Nl={primaryColor:"#333",secondaryColor:"#E6E6E6"};function jl(t,e){if(void 0===e&&(e={}),"function"==typeof t.icon){var i=e.placeholders||Nl;return Fl(t.icon(i.primaryColor,i.secondaryColor),e)}return Fl(t.icon,e)}function Fl(t,e){var i="svg"===t.tag?Pl(Pl({},t.attrs),e.extraSVGAttrs||{}):t.attrs,s=Object.keys(i).reduce((function(t,e){var s=i[e],o="".concat(e,'="').concat(s,'"');return t.push(o),t}),[]),o=s.length?" "+s.join(" "):"",r=(t.children||[]).map((function(t){return Fl(t,e)})).join("");return r&&r.length?"<".concat(t.tag).concat(o,">").concat(r,"</").concat(t.tag,">"):"<".concat(t.tag).concat(o," />")}const $l=jl({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:"currentColor"}}),Ll=class{constructor(i){t(this,i),this.handleActive=e(this,"active",7),this.togglePanel=()=>{this.expanded=!this.expanded,this.expanded&&this.handleActive.emit()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.headerTitle=void 0,this.expanded=!1}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return i("div",{key:"1f4a9acd322ebb2359295b2b760d235fedd76d41",class:"panel-container",ref:t=>this.stylingContainer=t},i("div",{key:"04e4254aa554f2f9b6509ff323983d5b7ce6cd27",class:{"panel-header":!0,active:this.expanded},onClick:this.togglePanel},i("div",{key:"8907e3c309143a2d37eaf73edddc2826f9e002d8",class:"header-content"},i("slot",{key:"0e2ed65db1fb3c8bc3987c969aca568a161fdd39",name:"header"},i("span",{key:"c476d5ccad0ef69376c415518982032e1d4ea737"},this.headerTitle))),i("span",{key:"705b87f6a01972f483bdea80cc3a4c4caff284d9",class:"arrow "+(this.expanded?"expanded":""),innerHTML:$l})),i("div",{key:"7704edb816e0c6300c62a5964d12a99d57c6b5a8",class:"panel-body "+(this.expanded?"open":"closed")},i("slot",{key:"92546bc7a9751c8f8717174eb5ff1771da73c7c0",name:"content"})))}get el(){return o(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};Ll.style=".panel-container{border:1px solid var(--emw--color-typography, #000);border-radius:12px;overflow:hidden;font-family:sans-serif;width:100%}.panel-header{background-color:var(--emw--color-background, #fff);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:14px;color:var(--emw--color-typography, #000)}.panel-header:hover{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-normalized, #fff)}.panel-header.active{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-normalized, #fff)}.header-content{white-space:nowrap;user-select:none}.arrow{transition:transform 0.3s ease;font-size:16px;display:inline-flex}.arrow.expanded{transform:rotate(180deg)}.panel-body{overflow:hidden;max-height:0;transition:max-height 0.3s ease, padding 0.3s ease;background-color:var(--emw--color-background, #fff);padding:0 16px;font-size:14px;line-height:1.6}.panel-body.open{max-height:500px;padding:16px}.panel-body.closed{max-height:0;padding-top:0;padding-bottom:0}";const Rl=class{constructor(e){t(this,e),this.ticketTypeMap={NORMAL:"normal",SYNDICATE:"syndicate",SUBSCRIPTION:"subscription"},this.resultMap={[u.WON]:"win",[u.LOST]:"lose"},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.gameId=void 0,this.defaultTicketHistory="",this.isLoading=!1,this.dialogVisible=!1,this.dialogData={},this.ticketHistory=[]}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`)}handleDefaultTicketHistoryChange(t,e){t!=e&&(this.ticketHistory=t?JSON.parse(t):[])}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}showTicketLineDetail(t){this.dialogData.draw=null,this.dialogData.ticket={gameId:t.vendorGameId,drawId:t.startingDrawId,results:p(t),splitView:!0},this.dialogVisible=!0}handleShowCurrentDraw(t,e){this.dialogData.ticket=null,this.dialogData.draw={gameId:t.vendorGameId,drawId:e.id,results:m(e),header:v(e.date),splitView:!1},this.dialogVisible=!0}renderLoading(){return i("div",{class:"loading-wrap"},i("section",{class:"dots-container"},i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"})))}renderEmpty(){return i("div",{class:"empty-wrap"},h("noData",this.language))}async handleActive(t,e){const i=await f({endpoint:this.endpoint,gameId:t.gameId,drawResults:t.drawResults});this.ticketHistory[e]=Object.assign(Object.assign({},this.ticketHistory[e]),{drawResults:i}),this.ticketHistory=[...this.ticketHistory]}renderSettledInfo(t){var e;return null===(e=t.drawResults)||void 0===e?void 0:e.map((e=>i("div",{class:"draw-info-container"},e.tempDrawData?i("div",{class:"draw-info"},i("div",{class:"draw-info-item"},i("div",{class:"draw-info-label"},h("ticketResult",this.language)),i("div",{class:"draw-info-val"},h(this.resultMap[e.state],this.language))),i("div",{class:"draw-info-item"},i("div",{class:"draw-info-label"},h("drawId",this.language)),i("div",{class:"draw-info-val"},e.drawId)),i("div",{class:"draw-info-item"},i("div",{class:"draw-info-label"},h("drawDate",this.language)),i("div",{class:"draw-info-val"},b(new Date(e.tempDrawData.date),"dd/MM/yyyy"))),i("div",{class:"draw-info-item"},i("div",{class:"draw-info-label"},h("result",this.language)),i("div",{class:"draw-info-val"},i("span",{class:"show-detail-link",onClick:()=>this.handleShowCurrentDraw(t,e.tempDrawData)},h("seeDetails",this.language)))),e.state===u.WON&&i("div",{class:"draw-info-item"},i("div",{class:"draw-info-label"},h("prize",this.language)),i("div",{class:"draw-info-val1"},i("div",{style:{height:"20px"}}),e.prizeDetails.map((t=>i("span",null,i("div",null,i("span",{class:"draw-info-val__item"},t.prizeName,t.times>1?" x "+t.times:"",":"," "),i("span",{class:"draw-info-val__item",style:{"margin-right":"4px"}},g(t.amount)),i("span",{class:"draw-info-val__item"},t.currency)))))))):i("div",{class:"draw-info-skeleton"},[...Array(5)].map((()=>i("div",{class:"skeleton-line"})))))))}renderPopUpDetail(){return this.dialogVisible?i("lottery-tipping-dialog",{visible:this.dialogVisible,width:c(window.navigator.userAgent)?void 0:"720px",fullscreen:c(window.navigator.userAgent),closable:!0,showFooter:!1,onCancel:()=>{this.dialogVisible=!1},language:this.language,"translation-url":this.translationUrl},i((()=>{var t,e,s,o;if((null===(t=this.dialogData)||void 0===t?void 0:t.draw)||(null===(e=this.dialogData)||void 0===e?void 0:e.ticket)){const t=(null===(s=this.dialogData)||void 0===s?void 0:s.draw)||(null===(o=this.dialogData)||void 0===o?void 0:o.ticket);return i("div",null,t.header&&i("div",{class:"popup-content-container__header"},i("span",{class:"popup-content-container__header-item"},t.header)),i("lottery-oddsbom-ticket-result",{language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,endpoint:this.endpoint,"game-id":t.gameId,"draw-id":t.drawId,"default-results":JSON.stringify(t.results),"split-view":t.splitView}))}return null}),null)):null}render(){return this.isLoading?this.renderLoading():0===this.ticketHistory.length?this.renderEmpty():i("div",{ref:t=>this.stylingContainer=t,class:"history-list-container"},i("div",{class:"ticket-list-wrap"},this.ticketHistory.map(((t,e)=>i("general-panel",{"header-title":b(new Date(t.createdAt),"dd/MM/yyyy HH:mm:ss")+" "+t.state,onActive:this.handleActive.bind(this,t,e)},i("div",{class:"panel-content",slot:"content"},i("div",{class:"ticket-info"},i("div",{class:"ticket-info-item"},i("div",{class:"ticket-info-label"},h("ticketId",this.language)),i("div",{class:"ticket-info-val"},t.id," ")),i("div",{class:"ticket-info-item"},i("div",{class:"ticket-info-label"},h("ticketType",this.language)),i("div",{class:"ticket-info-val"},h(this.ticketTypeMap[t.wagerType],this.language)," ")),i("div",{class:"ticket-info-item"},i("div",{class:"ticket-info-label"},h("ticketAmount",this.language)),i("div",{class:"ticket-info-val"},`${t.amount} ${t.currency}`)),i("div",{class:"ticket-info-item"},i("div",{class:"ticket-info-label"},h("lineDetail",this.language)),i("div",{class:"ticket-info-val"},i("span",{class:"show-detail-link",onClick:()=>this.showTicketLineDetail(t)},h("seeDetails",this.language)))),i("div",{class:"ticket-info-item"},i("div",{class:"ticket-info-label"},h("numberOfDraw",this.language)),i("div",{class:"ticket-info-val"},t.drawCount))),"Settled"==t.state&&this.renderSettledInfo(t)))))),this.renderPopUpDetail())}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],defaultTicketHistory:["handleDefaultTicketHistoryChange"]}}};Rl.style=".ticket-list-wrap{display:flex;flex-direction:column;gap:12px}.ticket-list-wrap .ticket-info{display:flex;flex-direction:column;gap:12px}.ticket-list-wrap .ticket-info-item{display:flex;align-items:center;user-select:none}.ticket-list-wrap .ticket-info-label{margin-right:12px;color:var(--emw--color-typography, #000)}.ticket-list-wrap .ticket-info-val{color:var(--emw--color-typography-secondary, #555)}.loading-wrap{margin:20px 0;display:flex;align-items:center;justify-content:center;min-height:100px}.loading-wrap .dots-container{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.loading-wrap .dot{height:14px;width:14px;margin-right:14px;border-radius:14px;background-color:var(--emw--color-gray-300, #333);animation:pulse 1.5s infinite ease-in-out}.loading-wrap .dot:last-child{margin-right:0}.loading-wrap .dot:nth-child(1){animation-delay:-0.3s}.loading-wrap .dot:nth-child(2){animation-delay:-0.1s}.loading-wrap .dot:nth-child(3){animation-delay:0.1s}@keyframes pulse{0%{transform:scale(0.8);background-color:var(--emw--color-gray-300, #333)}50%{transform:scale(1.2);background-color:var(--emw--color-gray-100, #e6e6e6)}100%{transform:scale(0.8);background-color:var(--emw--color-gray-150, #6f6f6f)}}.empty-wrap{margin:20px 0;display:flex;align-items:center;justify-content:center;min-height:100px;color:var(--emw--color-typography, #000)}.draw-info{width:30%;min-width:300px;border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));border-radius:5px;padding:12px;margin-top:20px;display:flex;flex-direction:column;gap:8px;user-select:none}.draw-info-item{display:flex}.draw-info-label{margin-right:6px;color:var(--emw--color-typography, #000)}.draw-info-val{color:var(--emw--color-typography-secondary, #555)}.draw-info-skeleton{width:30%;min-width:300px;border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));border-radius:5px;display:flex;flex-direction:column;gap:10px;padding:10px}.skeleton-line{height:16px;border-radius:4px;background:linear-gradient(90deg, var(--emw--color-gray-100, #e6e6e6) 25%, var(--emw--color-gray-50, #f5f5f5) 50%, var(--emw--color-gray-100, #e6e6e6) 75%);background-size:200% 100%;animation:skeleton-loading 1.2s infinite}.show-detail-link{color:var(--emw-pool-game-acition-normal, #4a90e2);text-decoration:underline;cursor:pointer}.popup-content-container__header{display:flex;justify-content:center;margin-bottom:10px}.popup-content-container__header-item{border:1px solid var(--emw--color-gray-100, #e6e6e6);padding:8px;display:inline-block;color:var(--emw--color-typography, #000)}";const Vl=jl({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},{extraSVGAttrs:{width:"18px",height:"18px",fill:""}}),Ul=class{constructor(i){t(this,i),this.oddsbomBulletToggleEvent=e(this,"oddsbomBulletToggle",7),this.oddsbomBulletDeleteEvent=e(this,"oddsbomBulletDelete",7),this.oddsbomBulletAddedByMoreBtnDeleteEvent=e(this,"oddsbomBulletAddedByMoreBtnDelete",7),this.oddsbomBulletCallDialogEvent=e(this,"oddsbomBulletCallDialog",7),this.isSelected=void 0,this.disabled=void 0,this.text=void 0,this.idx=void 0,this.isReading=void 0,this.isDeleteByIcon=void 0,this.isCallDialogBtn=void 0,this.isAddedByMoreBtn=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClick(){this.isCallDialogBtn?this.oddsbomBulletCallDialogEvent.emit():this.isDeleteByIcon?this.isAddedByMoreBtn?this.oddsbomBulletAddedByMoreBtnDeleteEvent.emit(this.text):this.oddsbomBulletDeleteEvent.emit(this.idx):this.disabled||this.oddsbomBulletToggleEvent.emit(this.idx)}render(){return i("div",{key:"e21cf46108e35dcbf7d65e8c6a5f12f5d5ae49cb",class:"OddsbomBullet",ref:t=>this.stylingContainer=t},i("button",{key:"4edf5cd481d8283bd71f6806b6f93949e1308095",class:{OddsbomBulletBtn__normal:!0,OddsbomBulletBtn__selected:this.isSelected,OddsbomBulletBtn__disabled:this.disabled,isDeleteByIcon:this.isDeleteByIcon,isCallDialogBtn:this.isCallDialogBtn||this.isReading},onClick:this.handleClick.bind(this),disabled:this.disabled},i("span",{key:"fa1aed0293dc004808e6992c069d6992317b0788",class:"OddsbomBullet--deleteIcon",innerHTML:Vl}),i("span",{key:"53ed96f2c2b833d21488049f987b6131718d563e",class:"OddsbomBullet--text"},this.text)))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};async function Hl({endpoint:t,gameId:e,drawId:i,results:s,splitView:o=!1}){const r=await async function({endpoint:t,gameId:e,drawId:i}){try{return await function(t,e="GET",i=null,s={}){return new Promise(((o,r)=>{const n=Object.assign({"Content-Type":"application/json"},s),a={method:e,headers:n,body:null};i&&"GET"!==e&&"HEAD"!==e?a.body=JSON.stringify(i):delete a.body,fetch(t,a).then((t=>t.ok?t.json():t.json().then((e=>{r({status:t.status,statusText:t.statusText,code:e.code||"UNKNOWN_ERROR",message:e.message||"An unknown error occurred",data:e.data||null})}),(()=>r({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>o(t)),(t=>r(t)))}))}(`${t}/poolgames/${e}/draws/${i}/matchConfig`)||[]}catch(t){console.log(t)}}({endpoint:t,gameId:e,drawId:i});return o?r.reduce(((t,e,i)=>{const[o,r]=(n=e.eventName)?n.split("vs").map((t=>t.trim())):"";var n;const[a,l]=function(t){const e=new Set,i=new Set;for(const s of t){const[t,o]=s.split(":");e.has(t)||e.add(t),i.has(t)||i.add(o)}return[Array.from(e),Array.from(i)]}(s[i]||[]);return null==t||t.push({index:i+1,teamName:o,startTime:e.startTime,results:a}),null==t||t.push({index:i+1,teamName:r,startTime:e.startTime,results:l}),t}),[])||[]:r.map(((t,e)=>({index:e+1,eventName:t.eventName,startTime:t.startTime,results:s[e]||[]})))}Ul.style=".OddsbomBullet .OddsbomBulletBtn__normal{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--emw--color-background, #fff);border:2px solid var(--emw--color-primary, #0d196e);border-radius:var(--emw--border-radius-medium, 8px);color:var(--emw--color-typography, #000);font-weight:bold;cursor:pointer;transition:transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease, background-color 0.3s;user-select:none;position:relative}.OddsbomBullet .OddsbomBulletBtn__normal:hover{transform:scale(1.15) rotate(-5deg);box-shadow:var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15)) 7px 6px 6px}.OddsbomBullet .OddsbomBulletBtn__normal .OddsbomBullet--deleteIcon{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover{background-color:var(--emw--color-background, #fff)}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--text{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--deleteIcon{display:inline;fill:var(--emw--color-typography, #000)}.OddsbomBullet .OddsbomBulletBtn__normal.isCallDialogBtn:hover{transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__selected{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff);transform:scale(1.05);box-shadow:0 5px 10px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled{background-color:var(--emw--color-gray-50, #f5f5f5);border-color:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-150, #6f6f6f);cursor:not-allowed;transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled:hover{transform:none;box-shadow:none}";const ql=["ro","en","fr","ar","hr"],Wl={en:{filter:"Filter",clear:"Clear",searchByTicketId:"Search by Ticket ID",enterTicketId:"Enter Ticket ID",searchByTicketType:"Search by Ticket Type",selectTicketType:"Select Ticket Type",searchByDate:"Search by Date",from:"From",to:"To",normal:"Normal",subscription:"Subscription",ticketsHistory:"Tickets History",settled:"Settled",purchased:"Purchased",canceled:"Canceled",noData:"No data Avaliable.",ticketId:"Ticket ID:",ticketType:"Ticket Type:",ticketAmount:"Ticket Amount:",lineDetail:"Line Detail:",seeDetails:"See Details",numberOfDraw:"Number of Draw:",ticketResult:"Ticket Result:",drawId:"Draw ID:",drawDate:"Draw Date:",result:"Result:",prize:"Prize:",bettingType:"Betting Type:"},ro:{ticketsHistory:"Istoric bilete",settled:"Decontat",purchased:"Achiziționat",canceled:"Anulat",noData:"Nu sunt date disponibile.",ticketId:"ID bilet:",ticketType:"Tip bilet:",ticketAmount:"Suma biletului:",lineDetail:"Detaliu linie:",seeDetails:"Vezi detalii",numberOfDraw:"Număr de extrageri:",ticketResult:"Rezultat bilet:",drawId:"ID extragere:",drawDate:"Data extragerii:",result:"Rezultat:",prize:"Premiu:",bettingType:"Tip de pariu:"},fr:{ticketsHistory:"Historique des billets",settled:"Réglé",purchased:"Acheté",canceled:"Annulé",noData:"Aucune donnée disponible.",ticketId:"ID du billet:",ticketType:"Type de billet:",ticketAmount:"Montant du billet:",lineDetail:"Détail de la ligne:",seeDetails:"Voir les détails",numberOfDraw:"Nombre de tirages:",ticketResult:"Résultat du billet:",drawId:"ID du tirage:",drawDate:"Date du tirage:",result:"Résultat:",prize:"Prix:",bettingType:"Type de pari:"},ar:{ticketsHistory:"سجل التذاكر",settled:"تمت التسوية",purchased:"تم شراؤها",canceled:"تم الإلغاء",noData:"لا توجد بيانات متاحة.",ticketId:"معرف التذكرة:",ticketType:"نوع التذكرة:",ticketAmount:"مبلغ التذكرة:",lineDetail:"تفاصيل الخط:",seeDetails:"انظر التفاصيل",numberOfDraw:"عدد السحوبات:",ticketResult:"نتيجة التذكرة:",drawId:"معرف السحب:",drawDate:"تاريخ السحب:",result:"النتيجة:",prize:"الجائزة:",bettingType:"نوع الرهان:"},hr:{ticketsHistory:"Povijest listića",settled:"Riješeno",purchased:"Kupljeno",canceled:"Otkazano",noData:"Nema dostupnih podataka.",ticketId:"ID listića:",ticketType:"Vrsta listića:",ticketAmount:"Iznos listića:",lineDetail:"Detalji linije:",seeDetails:"Vidi detalje",numberOfDraw:"Broj izvlačenja:",ticketResult:"Rezultat listića:",drawId:"ID izvlačenja:",drawDate:"Datum izvlačenja:",result:"Rezultat:",prize:"Nagrada:",bettingType:"Vrsta oklade:"}},Gl=class{constructor(e){t(this,e),this.latestRequestId=0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.sessionId=void 0,this.endpoint="",this.gameId=void 0,this.drawId=void 0,this.defaultResults=void 0,this.splitView=!1,this.allResults=void 0,this.ticketBetDataSource=[],this.isLoading=!1}handleClientStylingChange(t,e){t!==e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!==e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!==e&&a(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){(async t=>{if(t)try{const i=await fetch(t);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const s=await i.json();e=s,Object.keys(e).forEach((t=>{for(let i in e[t])Wl[t][i]=e[t][i]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl),this.fetchMatchData()}async fetchMatchData(){const t=++this.latestRequestId;if(this.gameId&&this.drawId)try{this.defaultResults&&(this.allResults=JSON.parse(this.defaultResults)),this.isLoading=!0;const e=await Hl({endpoint:this.endpoint,gameId:this.gameId,drawId:this.drawId,results:this.allResults||[[]],splitView:this.splitView});t===this.latestRequestId&&(this.ticketBetDataSource=e)}finally{t===this.latestRequestId&&(this.isLoading=!1)}}get columns(){const t=(t,e)=>(({date:t,type:e="date",format:i})=>{try{const s=y(t);if(isNaN(s.getTime()))throw new Error(`Invalid date: ${t}`);if(i)return b(s,i);let o="dd/MM/yyyy";return"time"===e?o="dd/MM/yyyy HH:mm:ss":"week"===e&&(o="ccc dd/MM/yyyy HH:mm:ss"),b(s,o)}catch(t){return console.error("Error formatting date:",t.message),""}})({date:e,format:"ccc dd/MM HH:mm"});return this.splitView?[{title:"No.",value:"index",width:5,rowSpan:2},{title:"Date",value:"startTime",width:25,rowSpan:2,nowrap:!0,render:t},{title:"Team",value:"teamName",width:30},{title:"Scores",value:"results",width:45,render:(t,e)=>i("div",{class:"flex gap-1"},e.map((t=>i("lottery-oddsbom-bullet",{text:t,"is-reading":!0,"is-selected":!0}))))}]:[{title:"Match",value:"eventName",width:50,render:(t,e)=>i("div",{class:"flex gap-1 eventNameContainer__item"},i("span",{class:"eventNameContainer__item--title"},e))},{title:"Date",value:"startTime",width:25,nowrap:!0,render:t},{title:"Match Result",value:"results",width:25,render:(t,e)=>i("div",null,null==e?void 0:e[0])}]}renderLoading(){return i("div",{class:"loading-wrap"},i("section",{class:"dots-container"},i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"})))}renderEmpty(){return i("div",{class:"LotteryTippingTicketBet__empty"},i("p",null,(()=>{const t=this.language;let e=Wl[void 0!==t&&ql.includes(t)?t:"en"].noData;return e})()))}renderTable({columns:t,dataSource:e,hideHead:s=!1,grid:o=!0,bordered:r=!0}){const n={};return i("table",{class:{bordered:r,grid:o,"my-table-component":!0}},!s&&i("thead",null,i("tr",null,t.map((t=>{var e;return i("th",{key:t.value,style:{width:t.width+"%",textAlign:t.align}},"string"==typeof t.title?t.title:null===(e=t.title)||void 0===e?void 0:e.call(t))})))),i("tbody",null,e.map(((e,s)=>i("tr",{key:s},t.map((t=>{if(n[t.value]&&n[t.value]>0)return n[t.value]--,null;const o=t.rowSpan;return o&&o>1&&(n[t.value]=o-1),i("td",{key:t.value,rowSpan:o,style:{width:t.width+"%",textAlign:t.align},class:{"no-wrap":t.nowrap}},t.render?t.render(e,e[t.value],s):e[t.value])})))))))}renderContent(){return this.isLoading?this.renderLoading():this.ticketBetDataSource&&0!==this.ticketBetDataSource.length?i("div",{class:"flex align-center LotteryTippingTicketBet__main"},this.renderTable({columns:this.columns,dataSource:this.ticketBetDataSource||[],hideHead:!1,grid:!1,bordered:!1})):this.renderEmpty()}render(){return i("div",{key:"9932926b2958b13636d617cc20a0c77a76a36ebe",ref:t=>this.stylingContainer=t,class:"LotteryTippingTicketBet__container"},this.renderContent())}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameId:["fetchMatchData"],drawId:["fetchMatchData"],defaultResults:["fetchMatchData"]}}};Gl.style=".LotteryTippingTicketBet__container {\n display: block; /* Or inline-block, depending on desired layout flow */\n font-size: 14px;\n line-height: 1.5715;\n color: var(--emw--color-typography, #000);\n background: var(--emw--color-background, #fff);\n overflow: hidden;\n min-width: 300px;\n container-type: inline-size;\n}\n@container (max-width: 375px) {\n .LotteryTippingTicketBet__container {\n font-size: 12px;\n }\n}\n\n.my-table-component {\n width: 100%;\n border-collapse: collapse; /* Important for borders */\n text-align: left;\n border-radius: 0.1rem; /* Ant Design like subtle rounding */\n border-spacing: 0;\n}\n\n/* Header */\n.my-table-component th {\n background: var(--emw--color-background-secondary, #f5f5f5);\n color: var(--emw--color-typography, #000);\n font-weight: 600;\n padding: 0.4rem 0.5rem;\n transition: background 0.3s ease;\n}\n\n/* Cells */\n.my-table-component td {\n padding: 0.4rem 0.5rem;\n color: var(--emw--color-typography, #000);\n background: var(--emw--color-background, #fff);\n transition: background 0.3s;\n}\n@container (max-width: 400px) {\n .my-table-component td {\n padding: 0.3rem 0.3rem;\n }\n}\n\n.my-table-component.bordered th,\n.my-table-component.bordered td {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n/* Bordered style */\n.my-table-component.grid th,\n.my-table-component.grid td {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n.my-table-component.grid th {\n border-bottom-width: 1px; /* Ensure bottom border is consistent */\n}\n\n.my-table-component.grid {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6); /* Outer border */\n border-right-width: 0;\n border-bottom-width: 0;\n}\n\n.my-table-component.grid th:last-child,\n.my-table-component.grid td:last-child {\n border-right: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n.my-table-component.grid tr:last-child td {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n/* Striped style */\n.my-table-component.striped tbody tr:nth-child(even) td {\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n/* Hover (optional, but nice) */\n.my-table-component tbody tr:hover td {\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n.flex {\n display: flex;\n}\n\n.justify-end {\n justify-content: flex-end;\n}\n\n.gap-1 {\n gap: 4px;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.align-center {\n align-items: center;\n}\n\n.gap-1 {\n gap: 0.5rem;\n}\n\n.match-info-item {\n display: flex;\n}\n\n.match-info-item-label {\n margin-right: 6px;\n}\n\n.info-icon:hover {\n cursor: pointer;\n}\n\n.LotteryTippingTicketBet__empty p {\n text-align: center;\n color: var(--emw--color-typography, #000);\n}\n\n.no-wrap {\n white-space: nowrap;\n overflow: hidden;\n}\n\n.eventNameContainer__item {\n line-height: 1rem;\n}\n.eventNameContainer__item--title {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 300px;\n}\n@container (max-width: 600px) {\n .eventNameContainer__item--title {\n max-width: 180px;\n }\n}\n@container (max-width: 500px) {\n .eventNameContainer__item--title {\n max-width: 150px;\n }\n}\n@container (max-width: 400px) {\n .eventNameContainer__item--title {\n max-width: 100px;\n }\n}\n@container (max-width: 330px) {\n .eventNameContainer__item--title {\n max-width: 70px;\n }\n}\n\n.LotteryTippingTicketBet__main {\n perspective: 800px;\n will-change: transform, opacity;\n backface-visibility: hidden;\n}\n\n@container (max-width: 520px) {\n .LotteryTippingTicketBet__main {\n flex-wrap: wrap;\n justify-content: center;\n }\n}\n.loading-wrap {\n margin: 20px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100px;\n}\n.loading-wrap .dots-container {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n.loading-wrap .dot {\n height: 14px;\n width: 14px;\n margin-right: 14px;\n border-radius: 14px;\n background-color: var(--emw--color-gray-300, #333);\n animation: pulse 1.5s infinite ease-in-out;\n}\n.loading-wrap .dot:last-child {\n margin-right: 0;\n}\n.loading-wrap .dot:nth-child(1) {\n animation-delay: -0.3s;\n}\n.loading-wrap .dot:nth-child(2) {\n animation-delay: -0.1s;\n}\n.loading-wrap .dot:nth-child(3) {\n animation-delay: 0.1s;\n}\n@keyframes pulse {\n 0% {\n transform: scale(0.8);\n background-color: var(--emw--color-gray-300, #333);\n }\n 50% {\n transform: scale(1.2);\n background-color: var(--emw--color-gray-100, #e6e6e6);\n }\n 100% {\n transform: scale(0.8);\n background-color: var(--emw--color-gray-150, #6f6f6f);\n }\n}";const Yl=["ro","en","fr","ar","hr"],Kl={en:{cancel:"Cancel",confirm:"Confirm"},ro:{cancel:"Anulează",confirm:"Confirmă"},fr:{cancel:"Annuler",confirm:"Confirmer"},ar:{cancel:"إلغاء",confirm:"تأكيد"},hr:{cancel:"Odustani",confirm:"Potvrdi"}},Jl=(t,e)=>{const i=e;return Kl[void 0!==i&&Yl.includes(i)?i:"en"][t]},Zl=class{constructor(i){t(this,i),this.open=e(this,"open",7),this.close=e(this,"close",7),this.confirm=e(this,"confirm",7),this.cancel=e(this,"cancel",7),this.wasVisible=!1,this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.visible=void 0,this.dialogTitle="",this.width="520px",this.closable=!0,this.mask=!0,this.maskClosable=!0,this.animationDuration=300,this.fullscreen=!1,this.showFooter=!0,this.showCancelBtn=!0,this.language="en",this.translationUrl=void 0,this.dialogClass=void 0,this.dialogStyle=void 0}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const i=await fetch(t);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const s=await i.json();e=s,Object.keys(e).forEach((t=>{for(let i in e[t])Kl[t][i]=e[t][i]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl)}componentWillUpdate(){this.visible&&!this.wasVisible?this.disableBodyScroll():!this.visible&&this.wasVisible&&this.enableBodyScroll(),this.wasVisible=this.visible}disconnectedCallback(){this.enableBodyScroll(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}disableBodyScroll(){document.body.style.overflow="hidden"}enableBodyScroll(){document.body.style.overflow=""}handleClose(){this.cancel.emit()}handleMaskClick(){this.maskClosable&&this.cancel.emit()}handleConfirm(){this.confirm.emit()}render(){const t=Object.assign({width:"number"==typeof this.width?`${this.width}px`:this.width,"--duration":`${this.animationDuration}ms`},this.dialogStyle||{}),e=["dialog-wrapper",this.visible?"dialog-wrapper-visible":""],s=["mask",this.visible?"mask-enter":"mask-leave"],o=["dialog",this.visible?"dialog-enter":"dialog-leave",this.fullscreen?"fullscreen":"",this.dialogClass].filter(Boolean).join(" ");return i("div",{key:"306683c5190fa6dca57dcf75e52eca575c0215e7",class:e.join(" "),ref:t=>this.stylingContainer=t},i("div",{key:"8be097f3a86fcd9ad4e18c6ac56cafdcf249049b",class:s.join(" "),onClick:this.handleMaskClick.bind(this)}),i("div",{key:"87d2206d3e3d75fe0e0ef8a6afd8de5c20892ae6",part:"dialog",class:o,style:t,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},(this.dialogTitle||this.closable)&&i("div",{key:"04d54878aa24e0d9eb98bc921ea3edfacd6de3af",class:"dialog-header"},i("h2",{key:"f6f6c279de47e49cde86d0c907b9b40a115926b3",id:"dialog-title",class:"dialog-title"},this.dialogTitle),this.closable&&i("button",{key:"e1625473e5460cd667961923bf678c9a91b69c82",class:"close-btn",onClick:this.handleClose.bind(this)},"x")),i("div",{key:"fb0db8dd765832cf1d8e8b682131e4c97a93ac22",class:"dialog-content",style:{maxHeight:"calc(100vh - 62px)",overflowY:"auto"}},i("slot",{key:"75336f59c2a8fe6775fc12ed4e2e26ff6bb6b508"})),this.showFooter&&i("div",{key:"a305086a2830265317abb0fd6f59b4a053fd54a9",class:"dialog-footer"},i("slot",{key:"cb330ea63908002f4f8b4b8139d5843c2570302e",name:"footer"},this.showCancelBtn&&i("button",{key:"c3d2c15195e56efd6d388265e9ccb87030627b7b",class:"cancel-btn",onClick:this.handleClose.bind(this)},Jl("cancel",this.language)),i("button",{key:"af9c96b4e1ce82f9ecb73e2b9f4e93cba0382d76",class:"confirm-btn",onClick:this.handleConfirm.bind(this)},Jl("confirm",this.language))))))}get el(){return o(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};Zl.style=".dialog-wrapper{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:1;z-index:199}.dialog-wrapper-visible{visibility:visible}.mask{position:fixed;inset:0;background-color:rgba(0, 0, 0, 0.5);opacity:0;z-index:1000;transition:opacity var(--duration) linear}.mask-enter{opacity:1}.mask-leave{opacity:0}.dialog{position:relative;background:var(--emw--color-background, #fff);border-radius:12px;box-shadow:0 4px 32px rgba(0, 0, 0, 0.15);opacity:0;transform:scale(0.9);transition:all var(--duration) linear;width:100%;max-width:100vw;overflow:hidden;z-index:1000}.dialog-enter{opacity:1;transform:scale(1)}.dialog-leave{opacity:0}.dialog.fullscreen{width:100vw !important;height:100vh;overflow:auto;max-height:none;border-radius:0;overflow:hidden}.dialog-header{padding:16px 16px 0 16px;display:flex;justify-content:space-between;align-items:center}.dialog-header .dialog-title{margin:0;font-size:1.25rem;font-weight:500;color:var(--emw--color-typography, #000)}.dialog-header .close-btn{background:transparent;border:none;font-size:1.5rem;width:2rem;height:2rem;color:var(--emw--color-gray-150, #6f6f6f);cursor:pointer;border-radius:4px}.dialog-header .close-btn:hover{background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-gray-300, #333)}.dialog-content{padding:24px;font-size:0.95rem;line-height:1.6;color:var(--emw--color-dialog-typography, #000);flex:1;overflow-y:auto;max-height:calc(100vh - 200px)}.dialog.fullscreen .dialog-content{max-height:none}.dialog-footer{padding:0 16px 16px 16px;display:flex;justify-content:center;gap:12px}.dialog-footer .cancel-btn,.dialog-footer .confirm-btn{padding:10px 24px;border-radius:6px;font-size:0.9rem;cursor:pointer;transition:all 0.3s linear}.dialog-footer .cancel-btn{border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));background-color:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000)}.dialog-footer .cancel-btn:hover{background-color:var(--emw--color-background-tertiary, #ccc)}.dialog-footer .confirm-btn{border:none;color:var(--emw--color-typography-normalized, #ffffff);background:var(--emw--color-primary, #009993)}.dialog-footer .confirm-btn:hover{background:var(--emw--color-primary-variant, #004d4a)}@media screen and (max-width: 480px){.dialog.fullscreen .dialog-content{padding:12px}}.Loading{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.Loading svg{animation:spin 1s linear infinite;transform-origin:center}@keyframes spin{100%{transform:rotate(360deg)}}";export{El as filter_group,Bl as general_multi_select,Ml as general_pagination,Ll as general_panel,Rl as history_list,Ul as lottery_oddsbom_bullet,Gl as lottery_oddsbom_ticket_result,Zl as lottery_tipping_dialog}
|
|
6657
|
+
`}static get is(){return"vaadin-tabs"}}O(Ol);const El=class{constructor(i){t(this,i),this.handleFilter=e(this,"filterChange",7),this.handleTicketType=t=>{t.detail&&t.detail.length&&(this.filterParams.wagerType=t.detail)},this.handleFilterFrom=t=>{var e,i;const s=null===(i=null===(e=t.target)||void 0===e?void 0:e.value)||void 0===i?void 0:i.split("-");if(3===s.length){const[t,e,i]=s;this.filterParams.from=new Date(Date.UTC(Number(t),Number(e)-1,Number(i),0,0,0)).toISOString(),this.minTo=`${t}-${e}-${i}`}},this.handleFilterTo=t=>{var e,i;const s=null===(i=null===(e=t.target)||void 0===e?void 0:e.value)||void 0===i?void 0:i.split("-");if(3===s.length){const[t,e,i]=s;this.filterParams.to=new Date(Date.UTC(Number(t),Number(e)-1,Number(i),23,59,59)).toISOString(),this.maxFrom=`${t}-${e}-${i}`}},this.validateOnSubmit=()=>{const{from:t,to:e}=this.filterParams;return t&&!e||!t&&e?(this.invalid={from:!t,to:!e},Promise.reject()):(this.invalid={from:!1,to:!1},Promise.resolve())},this.handleTicketIdInput=t=>{this.filterParams.id=t.target.value},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.statusOptions=void 0,this.ticketTypeList=void 0,this.filterParams={},this.isOpen=!1,this.invalid={from:!1,to:!1},this.maxFrom="",this.minTo=""}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){l(this.translationUrl),this.statusOptions=[{label:h("settled",this.language),value:"Settled"},{label:h("purchased",this.language),value:"Purchased"},{label:h("canceled",this.language),value:"Canceled"}],this.ticketTypeList=[{label:h("normal",this.language),value:"NORMAL"},{label:h("subscription",this.language),value:"SUBSCRIPTION"}]}resetSearch(){this.filterParams={},this.comboBox.clear(),this.handleFilter.emit(this.filterParams)}handleOpen(){this.isOpen=!0}handleDialogConfirm(){this.validateOnSubmit().then((()=>{this.handleFilter.emit(this.filterParams),this.isOpen=!1}))}handleSelectStatus(t){this.filterParams.state=t,this.filterParams=Object.assign({},this.filterParams),this.handleFilter.emit(this.filterParams)}renderFilterLeft(){return i("div",{class:"filter-status"},this.statusOptions.map((t=>i("div",{class:"filter-status-btn"+(this.filterParams.state===t.value?" active":""),onClick:this.handleSelectStatus.bind(this,t.value)},t.label))))}renderFilterContent(){return i("div",{class:"dialog-content"},i("div",{class:"filter-item"},i("div",{class:"filter-item-label"},h("searchByTicketId",this.language)),i("div",{class:"filter-item-val"},i("vaadin-text-field",{placeholder:h("enterTicketId",this.language),value:this.filterParams.id,onInput:this.handleTicketIdInput.bind(this)}))),i("div",{class:"filter-item"},i("div",{class:"filter-item-label"},h("searchByTicketType",this.language)),i("div",{class:"general-multi-select-container"},i("general-multi-select",{ref:t=>this.comboBox=t,placeholder:h("selectTicketType",this.language),"max-visible-chips":"2",options:this.ticketTypeList.map((t=>({text:t.label,value:t.value}))),onChange:this.handleTicketType.bind(this),"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl,"mb-source":this.mbSource}))),i("div",{class:"filter-item"},i("div",{class:"filter-item-label"},h("searchByDate",this.language)),i("div",{class:"filter-item-val"},i("vaadin-date-picker",{value:this.filterParams.from,max:this.maxFrom,onChange:this.handleFilterFrom.bind(this),placeholder:h("from",this.language),ref:t=>d(t),class:"VaadinDatePicker",invalid:this.invalid.from,"error-message":h("pleaseSelectADate",this.language)}),i("vaadin-date-picker",{value:this.filterParams.to,min:this.minTo,onChange:this.handleFilterTo.bind(this),placeholder:h("to",this.language),ref:t=>d(t),class:"VaadinDatePicker",invalid:this.invalid.to,"error-message":h("pleaseSelectADate",this.language)}))))}render(){return i("div",{key:"0e7d77068c53724b6d90833559d287841312f918",class:"filter-wrap",ref:t=>this.stylingContainer=t},this.renderFilterLeft(),i("div",{key:"4a5cf9cc96422b5b4a152d8308b9c1e3e6033f8c",class:"filter-operation"},i("div",{key:"87885e1bb9238f1e6ef2049d9899b4f7091ca2c9",class:"lottery-tipping-filter"},i("div",{key:"0ae6c91ba3621ee6fe3897276a43147198d1dd27",class:"operate-btns"},i("div",{key:"98ddfd9907685a2e16ca8074abe1c8c74d06551e",class:"operate-btn",onClick:this.handleOpen.bind(this)},h("filter",this.language)),i("div",{key:"4c05e4c3c7a01472de6a86069f5d0feb7ebd473f",class:"operate-btn",onClick:this.resetSearch.bind(this)},h("clear",this.language))),i("lottery-tipping-dialog",{key:"91f85110aa3f30556098e338c9b66b0a419aa460","dialog-title":h("filter",this.language),visible:this.isOpen,onCancel:()=>{this.isOpen=!1},onConfirm:this.handleDialogConfirm.bind(this),animationDuration:300,language:this.language,"translation-url":this.translationUrl},this.renderFilterContent()))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};El.style=".filter-wrap {\n margin-bottom: 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n container-type: inline-size;\n container-type: inline-size;\n}\n\n.filter-wrap .filter-status {\n display: flex;\n gap: 12px;\n align-items: center;\n}\n\n.filter-wrap .filter-status-btn {\n background: var(--emw--color-background, #fff);\n border: 1px solid var(--emw--color-primary, #0d196e);\n color: var(--emw--color-typography, #000);\n border-radius: 6px;\n padding: 12px;\n font-size: 13px;\n text-transform: uppercase;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;\n}\n\n.filter-wrap .filter-status-btn:hover {\n background-color: var(--emw--color-secondary, #1367e7);\n}\n\n.filter-wrap .filter-status-btn.active {\n background: var(--emw--color-secondary, #1367e7);\n color: var(--emw--color-typography-reverse, #fff);\n}\n\n@container (max-width: 480px) {\n .filter-wrap {\n flex-direction: column;\n align-items: flex-start;\n gap: 10px;\n }\n .filter-wrap .filter-status {\n flex-wrap: wrap;\n gap: 8px;\n }\n .filter-wrap .filter-status-btn {\n padding: 6px 10px;\n font-size: 12px;\n }\n}\n.lottery-tipping-filter .operate-btns {\n display: flex;\n gap: 12px;\n}\n\n.lottery-tipping-filter .operate-btn {\n background: var(--emw--color-primary, #0d196e);\n border-radius: 20px;\n padding: 8px 16px;\n font-size: 14px;\n color: var(--emw--color-typography-normalized, #fff);\n font-weight: 600;\n cursor: pointer;\n transition: background 0.2s ease, border-color 0.2s ease;\n}\n\n.lottery-tipping-filter .operate-btn:hover {\n background: var(--emw--color-secondary, #1367e7);\n}\n\n.dialog-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n color: var(--emw--color-typography, #000);\n}\n.dialog-content .filter-item {\n margin-bottom: 12px;\n}\n.dialog-content .filter-item-label {\n text-align: center;\n}\n.dialog-content .filter-item-val {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n justify-content: center;\n}\n\n@container (max-width: 480px) {\n .lottery-tipping-filter .operate-btns {\n gap: 6px;\n flex-wrap: wrap;\n }\n .lottery-tipping-filter .operate-btn {\n padding: 6px 12px;\n font-size: 13px;\n }\n}";const Bl=class{constructor(i){t(this,i),this.change=e(this,"change",7),this.handleOutsideClick=t=>{t.composedPath().includes(this.el)||(this.dropdownOpen=!1,this.overflowOpen=!1)},this.toggleDropdown=t=>{t.stopPropagation(),this.dropdownOpen=!this.dropdownOpen,this.overflowOpen=!1},this.isSelected=t=>this.selectedValues.includes(t),this.selectItem=t=>{this.isSelected(t.value)||(this.selectedValues=[...this.selectedValues,t.value],this.change.emit(this.selectedValues))},this.toggleItem=t=>{this.isSelected(t.value)?this.removeItem(t.value):this.selectItem(t)},this.removeItem=(t,e)=>{e&&e.stopPropagation(),this.selectedValues=this.selectedValues.filter((e=>e!==t)),this.change.emit(this.selectedValues)},this.downIcon=s("../static/dropdown.svg"),this.upIcon=s("../static/dropup.svg"),this.isTouch="ontouchstart"in window,this.openOverflow=()=>{this.isTouch||(this.computePopoverPosition(),this.overflowOpen=!0)},this.closeOverflow=()=>{this.isTouch||(this.overflowOpen=!1)},this.toggleOverflow=t=>{t.stopPropagation(),this.computePopoverPosition(),this.overflowOpen=!this.overflowOpen},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.options=[],this.maxVisibleChips=2,this.placeholder="",this.selectedValues=[],this.dropdownOpen=!1,this.overflowOpen=!1,this.popoverStyle={top:"0px",left:"0px"}}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}async clear(){this.selectedValues=[],this.change.emit(this.selectedValues)}componentWillLoad(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}get selectedOptions(){return this.options.filter((t=>this.isSelected(t.value)))}get visibleChips(){return this.selectedOptions.slice(0,this.maxVisibleChips)}get hiddenChips(){return this.selectedOptions.slice(this.maxVisibleChips)}computePopoverPosition(){if(this.overflowChipEl&&this.el){const{left:t}=this.overflowChipEl.getBoundingClientRect(),{left:e,height:i}=this.el.getBoundingClientRect();this.popoverStyle={top:i-10+"px",left:t-e+"px"}}}render(){var t;return i("div",{key:"50b48397be3ede1907ab2c2abcd1cf2f43f69c13",class:"general-multi-select-container",ref:t=>this.stylingContainer=t},i("div",{key:"696a1bb1f221f8f5cf290fac040af10e2e5a115e",class:"multi-select-container",ref:t=>this.el=t},i("div",{key:"9ea92f01787b26d43054573a11896cf65065b073",class:"flex-row",onClick:this.toggleDropdown},i("div",{key:"f79720ca3ec383ee7f95b09483698ee18119c79a",class:"control"},this.visibleChips.map((t=>i("span",{class:"chip"},i("div",{class:"chip-text",title:t.text},t.text),i("div",{class:"remove-btn",onClick:e=>this.removeItem(t.value,e)},"×")))),this.hiddenChips.length>0&&i("span",{key:"25e9e527c33dd7a315dacb10cc51084fe69b9b7e",class:"chip overflow-chip",ref:t=>this.overflowChipEl=t,onMouseEnter:this.openOverflow,onMouseLeave:this.closeOverflow,onClick:this.toggleOverflow},"•••"),0===this.selectedValues.length&&i("span",{key:"b061de660a55f7a0d41ce9aa650108d3f38a9dc0",class:"placeholder"},this.placeholder)),i("div",{key:"f83b6517e88b3976cdc18590f8f1233cb2515230",class:"arrow"},i("img",{key:"1b61a49090237057b98e5ce8a4f7c1e3bfc9d4ba",class:"info-icon",src:this.dropdownOpen?this.upIcon:this.downIcon,style:{width:"18px"}}))),this.dropdownOpen&&i("div",{key:"e5b081007bcbdd251ce5ac235c1f19f17852c420",class:"dropdown"},this.options.map((t=>i("div",{class:{"dropdown-item":!0,selected:this.isSelected(t.value)},onClick:()=>this.toggleItem(t)},t.text)))),this.overflowOpen&&!!(null===(t=this.hiddenChips)||void 0===t?void 0:t.length)&&i("div",{key:"f8e3289042c69c569bebcd0a40d90f31261c6c12",class:"overflow-popover",style:{top:this.popoverStyle.top,left:this.popoverStyle.left},onMouseEnter:this.openOverflow,onMouseLeave:this.closeOverflow},this.hiddenChips.map((t=>i("span",{class:"chip"},i("span",{class:"chip-text",title:t.text},t.text),i("span",{class:"remove-btn",onClick:e=>this.removeItem(t.value,e)},"×")))))))}static get assetsDirs(){return["../static"]}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};Bl.style='.multi-select-container{position:relative;font-family:"Inter", sans-serif;margin-top:4px;width:100%}.flex-row{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;padding:8px 12px;padding-right:4px;border-radius:4px;background:var(--emw-selector-color-background, #e8ebef);cursor:pointer}.control{flex:1;display:flex;align-items:center;flex-wrap:nowrap;overflow:hidden}.control:focus-within{border-color:var(--emw--color-primary, #fed275);box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}.chip{display:inline-flex;align-items:center;background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-dialog-typography, #000);border-radius:4px;padding:2px 8px;margin-right:6px;font-size:0.875rem;line-height:1.2;justify-content:space-between;flex:0 1 auto;min-width:0}.chip-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overflow-chip{background:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-300, #333);width:20px;text-align:center;display:block}.remove-btn{background:none;border:none;font-size:1rem;margin-left:6px;cursor:pointer;color:var(--emw--color-gray-150, #6f6f6f)}.remove-btn:hover{color:var(--emw--color-error, red)}.placeholder{color:var(--emw--color-gray-150, #6f6f6f);font-size:0.875rem;padding:3px 8px;line-height:1.2}.arrow{margin-left:auto;font-size:0.8rem;width:20px;color:var(--emw--color-gray-150, #6f6f6f)}.dropdown{position:absolute;top:calc(100% + 4px);left:0;width:100%;max-height:240px;overflow-y:auto;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:6px;background:var(--emw--color-dialog-background, #ffffff);box-shadow:0 4px 12px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));z-index:10}.dropdown-item{padding:10px 14px;cursor:pointer;font-size:0.875rem;line-height:1.4;transition:background 0.2s}.dropdown-item:hover{background:var(--emw--color-background-tertiary, #ccc);color:var(--emw--color-typography, #000)}.dropdown-item.selected{background:var(--emw--color-background-secondary, #f5f5f5);color:var(--emw--color-typography, #000);font-weight:500}.overflow-popover{position:absolute;top:var(--overflow-top, 0px);left:var(--overflow-left, 0px);max-width:200px;padding:12px;display:flex;flex-wrap:wrap;gap:6px;border:1px solid var(--emw--color-gray-100, #d0d5dd);border-radius:6px;background:var(--emw--color-background, #ffffff);box-shadow:0 4px 12px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));z-index:20}';const Ml=class{constructor(i){t(this,i),this.pageChange=e(this,"pageChange",7),this.pageSizeChange=e(this,"pageSizeChange",7),this.pageSizeOptions=[10,20,50],this.userAgent=window.navigator.userAgent,this.handleKeyDown=t=>{if("Enter"===t.key){const e=parseInt(t.target.value);isNaN(e)||this.goToPage(e)}},this.handleInput=t=>{const e=t.target;parseInt(e.value)>this.totalPages&&(e.value=this.totalPages.toString()),parseInt(e.value)<1&&(e.value="1")},this.handleSelectInput=t=>this.changePageSize(parseInt(t.target.value)),this.total=0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.current=1,this.pageSize=10,this.totalPages=1}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}componentWillLoad(){l(this.translationUrl),this.pageSize=this.pageSizeOptions[0],this.updateTotalPages()}updateTotalPages(){this.totalPages=Math.max(Math.ceil(this.total/this.pageSize),1),this.current>this.totalPages&&(this.current=this.totalPages,this.pageChange.emit(this.current))}goToPage(t){t<1||t>this.totalPages||t===this.current||(this.current=t,this.pageChange.emit(t))}changePageSize(t){this.pageSize=t,this.pageSizeChange.emit(t),this.updateTotalPages(),this.goToPage(1)}getPagesToShow(){const t=[],e=c(this.userAgent)?1:2,{totalPages:i,current:s}=this;if(i<=7)for(let e=1;e<=i;e++)t.push({type:"page",value:e});else{t.push({type:"page",value:1}),s>e+2&&t.push({type:"jump",direction:"prev"});const o=Math.max(2,s-e),r=Math.min(i-1,s+e);for(let e=o;e<=r;e++)t.push({type:"page",value:e});s<i-e-1&&t.push({type:"jump",direction:"next"}),t.push({type:"page",value:i})}return t}jumpTo(t){this.goToPage("prev"===t?Math.max(1,this.current-5):Math.min(this.totalPages,this.current+5))}render(){if(!this.total)return null;const t=this.getPagesToShow();return i("div",{class:"paginator",ref:t=>this.stylingContainer=t},i("div",{class:"total-num"},h("totalItems",this.language,{total:this.total})),i("button",{class:"arrow-btn",disabled:this.current<=1,onClick:this.goToPage.bind(this,this.current-1)},"<"),t.map((t=>"page"===t.type?i("button",{class:{page:!0,active:this.current===t.value},onClick:this.goToPage.bind(this,t.value)},t.value):i("button",{class:"ellipsis",onClick:this.jumpTo.bind(this,t.direction)},"..."))),i("button",{class:"arrow-btn",disabled:this.current>=this.totalPages,onClick:this.goToPage.bind(this,this.current+1)},">"),i("select",{onInput:this.handleSelectInput},this.pageSizeOptions.map((t=>i("option",{value:t},t)))),i("div",{class:"jump-box"},h("goTo",this.language),i("input",{type:"number",min:"1",max:this.totalPages,value:this.current,onKeyDown:this.handleKeyDown.bind(this),onInput:this.handleInput.bind(this)})))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],total:["updateTotalPages"],pageSize:["updateTotalPages"]}}};Ml.style=".paginator{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}button{padding:4px 8px;font-size:14px;background:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000);border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));border-radius:var(--emw--border-radius-small, 6px);cursor:pointer;min-width:28px;transition:all 0.2s ease}button.active{color:var(--emw--color-typography-normalized, #fff);background:var(--emw--color-primary, #0d196e);border-color:var(--emw--color-primary, #0d196e);font-weight:600}button:not(.arrow-btn):hover{background:var(--emw--color-secondary, #405c8b);border-color:var(--emw--color-secondary, #405c8b)}button:disabled{cursor:not-allowed;border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));background:var(--emw--color-background-secondary, #f5f5f5);user-select:none}.ellipsis{font-weight:500;color:var(--emw--color-typography, #000);border:none}select{padding:6px 10px;border-radius:6px;border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));font-size:14px}.jump-box{display:flex;align-items:center;gap:6px;margin-left:10px}.jump-box input{width:50px;padding:4px 8px;font-size:14px;border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));border-radius:6px;text-align:center}.total-num{user-select:none;font-size:14px;color:var(--emw--color-typography, #000)}";var Pl=function(){return Pl=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Pl.apply(this,arguments)},Nl={primaryColor:"#333",secondaryColor:"#E6E6E6"};function jl(t,e){if(void 0===e&&(e={}),"function"==typeof t.icon){var i=e.placeholders||Nl;return Fl(t.icon(i.primaryColor,i.secondaryColor),e)}return Fl(t.icon,e)}function Fl(t,e){var i="svg"===t.tag?Pl(Pl({},t.attrs),e.extraSVGAttrs||{}):t.attrs,s=Object.keys(i).reduce((function(t,e){var s=i[e],o="".concat(e,'="').concat(s,'"');return t.push(o),t}),[]),o=s.length?" "+s.join(" "):"",r=(t.children||[]).map((function(t){return Fl(t,e)})).join("");return r&&r.length?"<".concat(t.tag).concat(o,">").concat(r,"</").concat(t.tag,">"):"<".concat(t.tag).concat(o," />")}const $l=jl({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:"currentColor"}}),Ll=class{constructor(i){t(this,i),this.handleActive=e(this,"active",7),this.togglePanel=()=>{this.expanded=!this.expanded,this.expanded&&this.handleActive.emit()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.headerTitle=void 0,this.expanded=!1}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return i("div",{key:"1f4a9acd322ebb2359295b2b760d235fedd76d41",class:"panel-container",ref:t=>this.stylingContainer=t},i("div",{key:"04e4254aa554f2f9b6509ff323983d5b7ce6cd27",class:{"panel-header":!0,active:this.expanded},onClick:this.togglePanel},i("div",{key:"8907e3c309143a2d37eaf73edddc2826f9e002d8",class:"header-content"},i("slot",{key:"0e2ed65db1fb3c8bc3987c969aca568a161fdd39",name:"header"},i("span",{key:"c476d5ccad0ef69376c415518982032e1d4ea737"},this.headerTitle))),i("span",{key:"705b87f6a01972f483bdea80cc3a4c4caff284d9",class:"arrow "+(this.expanded?"expanded":""),innerHTML:$l})),i("div",{key:"7704edb816e0c6300c62a5964d12a99d57c6b5a8",class:"panel-body "+(this.expanded?"open":"closed")},i("slot",{key:"92546bc7a9751c8f8717174eb5ff1771da73c7c0",name:"content"})))}get el(){return o(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};Ll.style=".panel-container{border:1px solid var(--emw--color-typography, #000);border-radius:12px;overflow:hidden;font-family:sans-serif;width:100%}.panel-header{background-color:var(--emw--color-background, #fff);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:14px;color:var(--emw--color-typography, #000)}.panel-header:hover{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-normalized, #fff)}.panel-header.active{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-normalized, #fff)}.header-content{white-space:nowrap;user-select:none}.arrow{transition:transform 0.3s ease;font-size:16px;display:inline-flex}.arrow.expanded{transform:rotate(180deg)}.panel-body{overflow:hidden;max-height:0;transition:max-height 0.3s ease, padding 0.3s ease;background-color:var(--emw--color-background, #fff);padding:0 16px;font-size:14px;line-height:1.6}.panel-body.open{max-height:500px;padding:16px}.panel-body.closed{max-height:0;padding-top:0;padding-bottom:0}";const Rl=class{constructor(e){t(this,e),this.ticketTypeMap={NORMAL:"normal",SYNDICATE:"syndicate",SUBSCRIPTION:"subscription"},this.resultMap={[u.WON]:"win",[u.LOST]:"lose"},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.gameId=void 0,this.defaultTicketHistory="",this.isLoading=!1,this.dialogVisible=!1,this.dialogData={},this.ticketHistory=[]}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleDefaultTicketHistoryChange(t,e){t!=e&&(this.ticketHistory=t?JSON.parse(t):[])}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}showTicketLineDetail(t){this.dialogData.draw=null,this.dialogData.ticket={gameId:t.vendorGameId,drawId:t.startingDrawId,results:p(t),splitView:!0},this.dialogVisible=!0}handleShowCurrentDraw(t,e){this.dialogData.ticket=null,this.dialogData.draw={gameId:t.vendorGameId,drawId:e.id,results:m(e),header:v(e.date),splitView:!1},this.dialogVisible=!0}renderLoading(){return i("div",{class:"loading-wrap"},i("section",{class:"dots-container"},i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"})))}renderEmpty(){return i("div",{class:"empty-wrap"},h("noData",this.language))}async handleActive(t,e){const i=await f({endpoint:this.endpoint,gameId:t.gameId,drawResults:t.drawResults});this.ticketHistory[e]=Object.assign(Object.assign({},this.ticketHistory[e]),{drawResults:i}),this.ticketHistory=[...this.ticketHistory]}renderSettledInfo(t){var e;return null===(e=t.drawResults)||void 0===e?void 0:e.map((e=>i("div",{class:"draw-info-container"},e.tempDrawData?i("div",{class:"draw-info"},i("div",{class:"draw-info-item"},i("div",{class:"draw-info-label"},h("ticketResult",this.language)),i("div",{class:"draw-info-val"},h(this.resultMap[e.state],this.language))),i("div",{class:"draw-info-item"},i("div",{class:"draw-info-label"},h("drawId",this.language)),i("div",{class:"draw-info-val"},e.drawId)),i("div",{class:"draw-info-item"},i("div",{class:"draw-info-label"},h("drawDate",this.language)),i("div",{class:"draw-info-val"},b(new Date(e.tempDrawData.date),"dd/MM/yyyy"))),i("div",{class:"draw-info-item"},i("div",{class:"draw-info-label"},h("result",this.language)),i("div",{class:"draw-info-val"},i("span",{class:"show-detail-link",onClick:()=>this.handleShowCurrentDraw(t,e.tempDrawData)},h("seeDetails",this.language)))),e.state===u.WON&&i("div",{class:"draw-info-item"},i("div",{class:"draw-info-label"},h("prize",this.language)),i("div",{class:"draw-info-val1"},i("div",{style:{height:"20px"}}),e.prizeDetails.map((t=>i("span",null,i("div",null,i("span",{class:"draw-info-val__item"},t.prizeName,t.times>1?" x "+t.times:"",":"," "),i("span",{class:"draw-info-val__item",style:{"margin-right":"4px"}},g(t.amount)),i("span",{class:"draw-info-val__item"},t.currency)))))))):i("div",{class:"draw-info-skeleton"},[...Array(5)].map((()=>i("div",{class:"skeleton-line"})))))))}renderPopUpDetail(){return this.dialogVisible?i("lottery-tipping-dialog",{visible:this.dialogVisible,width:c(window.navigator.userAgent)?void 0:"720px",fullscreen:c(window.navigator.userAgent),closable:!0,showFooter:!1,onCancel:()=>{this.dialogVisible=!1},language:this.language,"translation-url":this.translationUrl},i((()=>{var t,e,s,o;if((null===(t=this.dialogData)||void 0===t?void 0:t.draw)||(null===(e=this.dialogData)||void 0===e?void 0:e.ticket)){const t=(null===(s=this.dialogData)||void 0===s?void 0:s.draw)||(null===(o=this.dialogData)||void 0===o?void 0:o.ticket);return i("div",null,t.header&&i("div",{class:"popup-content-container__header"},i("span",{class:"popup-content-container__header-item"},t.header)),i("lottery-oddsbom-ticket-result",{language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,endpoint:this.endpoint,"game-id":t.gameId,"draw-id":t.drawId,"default-results":JSON.stringify(t.results),"split-view":t.splitView}))}return null}),null)):null}render(){return this.isLoading?this.renderLoading():0===this.ticketHistory.length?this.renderEmpty():i("div",{ref:t=>this.stylingContainer=t,class:"history-list-container"},i("div",{class:"ticket-list-wrap"},this.ticketHistory.map(((t,e)=>i("general-panel",{"header-title":b(new Date(t.createdAt),"dd/MM/yyyy HH:mm:ss")+" "+t.state,onActive:this.handleActive.bind(this,t,e)},i("div",{class:"panel-content",slot:"content"},i("div",{class:"ticket-info"},i("div",{class:"ticket-info-item"},i("div",{class:"ticket-info-label"},h("ticketId",this.language)),i("div",{class:"ticket-info-val"},t.id," ")),i("div",{class:"ticket-info-item"},i("div",{class:"ticket-info-label"},h("ticketType",this.language)),i("div",{class:"ticket-info-val"},h(this.ticketTypeMap[t.wagerType],this.language)," ")),i("div",{class:"ticket-info-item"},i("div",{class:"ticket-info-label"},h("ticketAmount",this.language)),i("div",{class:"ticket-info-val"},`${t.amount} ${t.currency}`)),i("div",{class:"ticket-info-item"},i("div",{class:"ticket-info-label"},h("lineDetail",this.language)),i("div",{class:"ticket-info-val"},i("span",{class:"show-detail-link",onClick:()=>this.showTicketLineDetail(t)},h("seeDetails",this.language)))),i("div",{class:"ticket-info-item"},i("div",{class:"ticket-info-label"},h("numberOfDraw",this.language)),i("div",{class:"ticket-info-val"},t.drawCount))),"Settled"==t.state&&this.renderSettledInfo(t)))))),this.renderPopUpDetail())}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],defaultTicketHistory:["handleDefaultTicketHistoryChange"]}}};Rl.style=".ticket-list-wrap{display:flex;flex-direction:column;gap:12px}.ticket-list-wrap .ticket-info{display:flex;flex-direction:column;gap:12px}.ticket-list-wrap .ticket-info-item{display:flex;align-items:center;user-select:none}.ticket-list-wrap .ticket-info-label{margin-right:12px;color:var(--emw--color-typography, #000)}.ticket-list-wrap .ticket-info-val{color:var(--emw--color-typography-secondary, #555)}.loading-wrap{margin:20px 0;display:flex;align-items:center;justify-content:center;min-height:100px}.loading-wrap .dots-container{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.loading-wrap .dot{height:14px;width:14px;margin-right:14px;border-radius:14px;background-color:var(--emw--color-gray-300, #333);animation:pulse 1.5s infinite ease-in-out}.loading-wrap .dot:last-child{margin-right:0}.loading-wrap .dot:nth-child(1){animation-delay:-0.3s}.loading-wrap .dot:nth-child(2){animation-delay:-0.1s}.loading-wrap .dot:nth-child(3){animation-delay:0.1s}@keyframes pulse{0%{transform:scale(0.8);background-color:var(--emw--color-gray-300, #333)}50%{transform:scale(1.2);background-color:var(--emw--color-gray-100, #e6e6e6)}100%{transform:scale(0.8);background-color:var(--emw--color-gray-150, #6f6f6f)}}.empty-wrap{margin:20px 0;display:flex;align-items:center;justify-content:center;min-height:100px;color:var(--emw--color-typography, #000)}.draw-info{width:30%;min-width:300px;border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));border-radius:5px;padding:12px;margin-top:20px;display:flex;flex-direction:column;gap:8px;user-select:none}.draw-info-item{display:flex}.draw-info-label{margin-right:6px;color:var(--emw--color-typography, #000)}.draw-info-val{color:var(--emw--color-typography-secondary, #555)}.draw-info-skeleton{width:30%;min-width:300px;border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));border-radius:5px;display:flex;flex-direction:column;gap:10px;padding:10px}.skeleton-line{height:16px;border-radius:4px;background:linear-gradient(90deg, var(--emw--color-gray-100, #e6e6e6) 25%, var(--emw--color-gray-50, #f5f5f5) 50%, var(--emw--color-gray-100, #e6e6e6) 75%);background-size:200% 100%;animation:skeleton-loading 1.2s infinite}.show-detail-link{color:var(--emw-pool-game-acition-normal, #4a90e2);text-decoration:underline;cursor:pointer}.popup-content-container__header{display:flex;justify-content:center;margin-bottom:10px}.popup-content-container__header-item{border:1px solid var(--emw--color-gray-100, #e6e6e6);padding:8px;display:inline-block;color:var(--emw--color-typography, #000)}";const Vl=jl({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},{extraSVGAttrs:{width:"18px",height:"18px",fill:""}}),Ul=class{constructor(i){t(this,i),this.oddsbomBulletToggleEvent=e(this,"oddsbomBulletToggle",7),this.oddsbomBulletDeleteEvent=e(this,"oddsbomBulletDelete",7),this.oddsbomBulletAddedByMoreBtnDeleteEvent=e(this,"oddsbomBulletAddedByMoreBtnDelete",7),this.oddsbomBulletCallDialogEvent=e(this,"oddsbomBulletCallDialog",7),this.isSelected=void 0,this.disabled=void 0,this.text=void 0,this.idx=void 0,this.isReading=void 0,this.isDeleteByIcon=void 0,this.isCallDialogBtn=void 0,this.isAddedByMoreBtn=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClick(){this.isCallDialogBtn?this.oddsbomBulletCallDialogEvent.emit():this.isDeleteByIcon?this.isAddedByMoreBtn?this.oddsbomBulletAddedByMoreBtnDeleteEvent.emit(this.text):this.oddsbomBulletDeleteEvent.emit(this.idx):this.disabled||this.oddsbomBulletToggleEvent.emit(this.idx)}render(){return i("div",{key:"e21cf46108e35dcbf7d65e8c6a5f12f5d5ae49cb",class:"OddsbomBullet",ref:t=>this.stylingContainer=t},i("button",{key:"4edf5cd481d8283bd71f6806b6f93949e1308095",class:{OddsbomBulletBtn__normal:!0,OddsbomBulletBtn__selected:this.isSelected,OddsbomBulletBtn__disabled:this.disabled,isDeleteByIcon:this.isDeleteByIcon,isCallDialogBtn:this.isCallDialogBtn||this.isReading},onClick:this.handleClick.bind(this),disabled:this.disabled},i("span",{key:"fa1aed0293dc004808e6992c069d6992317b0788",class:"OddsbomBullet--deleteIcon",innerHTML:Vl}),i("span",{key:"53ed96f2c2b833d21488049f987b6131718d563e",class:"OddsbomBullet--text"},this.text)))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};async function Hl({endpoint:t,gameId:e,drawId:i,results:s,splitView:o=!1}){const r=await async function({endpoint:t,gameId:e,drawId:i}){try{return await function(t,e="GET",i=null,s={}){return new Promise(((o,r)=>{const n=Object.assign({"Content-Type":"application/json"},s),a={method:e,headers:n,body:null};i&&"GET"!==e&&"HEAD"!==e?a.body=JSON.stringify(i):delete a.body,fetch(t,a).then((t=>t.ok?t.json():t.json().then((e=>{r({status:t.status,statusText:t.statusText,code:e.code||"UNKNOWN_ERROR",message:e.message||"An unknown error occurred",data:e.data||null})}),(()=>r({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>o(t)),(t=>r(t)))}))}(`${t}/poolgames/${e}/draws/${i}/matchConfig`)||[]}catch(t){console.log(t)}}({endpoint:t,gameId:e,drawId:i});return o?r.reduce(((t,e,i)=>{const[o,r]=(n=e.eventName)?n.split("vs").map((t=>t.trim())):"";var n;const[a,l]=function(t){const e=new Set,i=new Set;for(const s of t){const[t,o]=s.split(":");e.has(t)||e.add(t),i.has(t)||i.add(o)}return[Array.from(e),Array.from(i)]}(s[i]||[]);return null==t||t.push({index:i+1,teamName:o,startTime:e.startTime,results:a}),null==t||t.push({index:i+1,teamName:r,startTime:e.startTime,results:l}),t}),[])||[]:r.map(((t,e)=>({index:e+1,eventName:t.eventName,startTime:t.startTime,results:s[e]||[]})))}Ul.style=".OddsbomBullet .OddsbomBulletBtn__normal{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--emw--color-background, #fff);border:2px solid var(--emw--color-primary, #0d196e);border-radius:var(--emw--border-radius-medium, 8px);color:var(--emw--color-typography, #000);font-weight:bold;cursor:pointer;transition:transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease, background-color 0.3s;user-select:none;position:relative}.OddsbomBullet .OddsbomBulletBtn__normal:hover{transform:scale(1.15) rotate(-5deg);box-shadow:var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15)) 7px 6px 6px}.OddsbomBullet .OddsbomBulletBtn__normal .OddsbomBullet--deleteIcon{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover{background-color:var(--emw--color-background, #fff)}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--text{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--deleteIcon{display:inline;fill:var(--emw--color-typography, #000)}.OddsbomBullet .OddsbomBulletBtn__normal.isCallDialogBtn:hover{transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__selected{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff);transform:scale(1.05);box-shadow:0 5px 10px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled{background-color:var(--emw--color-gray-50, #f5f5f5);border-color:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-150, #6f6f6f);cursor:not-allowed;transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled:hover{transform:none;box-shadow:none}";const ql=["ro","en","fr","ar","hr"],Wl={en:{filter:"Filter",clear:"Clear",searchByTicketId:"Search by Ticket ID",enterTicketId:"Enter Ticket ID",searchByTicketType:"Search by Ticket Type",selectTicketType:"Select Ticket Type",searchByDate:"Search by Date",from:"From",to:"To",normal:"Normal",subscription:"Subscription",ticketsHistory:"Tickets History",settled:"Settled",purchased:"Purchased",canceled:"Canceled",noData:"No data Avaliable.",ticketId:"Ticket ID:",ticketType:"Ticket Type:",ticketAmount:"Ticket Amount:",lineDetail:"Line Detail:",seeDetails:"See Details",numberOfDraw:"Number of Draw:",ticketResult:"Ticket Result:",drawId:"Draw ID:",drawDate:"Draw Date:",result:"Result:",prize:"Prize:",bettingType:"Betting Type:"},ro:{ticketsHistory:"Istoric bilete",settled:"Decontat",purchased:"Achiziționat",canceled:"Anulat",noData:"Nu sunt date disponibile.",ticketId:"ID bilet:",ticketType:"Tip bilet:",ticketAmount:"Suma biletului:",lineDetail:"Detaliu linie:",seeDetails:"Vezi detalii",numberOfDraw:"Număr de extrageri:",ticketResult:"Rezultat bilet:",drawId:"ID extragere:",drawDate:"Data extragerii:",result:"Rezultat:",prize:"Premiu:",bettingType:"Tip de pariu:"},fr:{ticketsHistory:"Historique des billets",settled:"Réglé",purchased:"Acheté",canceled:"Annulé",noData:"Aucune donnée disponible.",ticketId:"ID du billet:",ticketType:"Type de billet:",ticketAmount:"Montant du billet:",lineDetail:"Détail de la ligne:",seeDetails:"Voir les détails",numberOfDraw:"Nombre de tirages:",ticketResult:"Résultat du billet:",drawId:"ID du tirage:",drawDate:"Date du tirage:",result:"Résultat:",prize:"Prix:",bettingType:"Type de pari:"},ar:{ticketsHistory:"سجل التذاكر",settled:"تمت التسوية",purchased:"تم شراؤها",canceled:"تم الإلغاء",noData:"لا توجد بيانات متاحة.",ticketId:"معرف التذكرة:",ticketType:"نوع التذكرة:",ticketAmount:"مبلغ التذكرة:",lineDetail:"تفاصيل الخط:",seeDetails:"انظر التفاصيل",numberOfDraw:"عدد السحوبات:",ticketResult:"نتيجة التذكرة:",drawId:"معرف السحب:",drawDate:"تاريخ السحب:",result:"النتيجة:",prize:"الجائزة:",bettingType:"نوع الرهان:"},hr:{ticketsHistory:"Povijest listića",settled:"Riješeno",purchased:"Kupljeno",canceled:"Otkazano",noData:"Nema dostupnih podataka.",ticketId:"ID listića:",ticketType:"Vrsta listića:",ticketAmount:"Iznos listića:",lineDetail:"Detalji linije:",seeDetails:"Vidi detalje",numberOfDraw:"Broj izvlačenja:",ticketResult:"Rezultat listića:",drawId:"ID izvlačenja:",drawDate:"Datum izvlačenja:",result:"Rezultat:",prize:"Nagrada:",bettingType:"Vrsta oklade:"}},Gl=class{constructor(e){t(this,e),this.latestRequestId=0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.sessionId=void 0,this.endpoint="",this.gameId=void 0,this.drawId=void 0,this.defaultResults=void 0,this.splitView=!1,this.allResults=void 0,this.ticketBetDataSource=[],this.isLoading=!1}handleClientStylingChange(t,e){t!==e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!==e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!==e&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&n(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){(async t=>{if(t)try{const i=await fetch(t);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const s=await i.json();e=s,Object.keys(e).forEach((t=>{for(let i in e[t])Wl[t][i]=e[t][i]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl),this.fetchMatchData()}async fetchMatchData(){const t=++this.latestRequestId;if(this.gameId&&this.drawId)try{this.defaultResults&&(this.allResults=JSON.parse(this.defaultResults)),this.isLoading=!0;const e=await Hl({endpoint:this.endpoint,gameId:this.gameId,drawId:this.drawId,results:this.allResults||[[]],splitView:this.splitView});t===this.latestRequestId&&(this.ticketBetDataSource=e)}finally{t===this.latestRequestId&&(this.isLoading=!1)}}get columns(){const t=(t,e)=>(({date:t,type:e="date",format:i})=>{try{const s=y(t);if(isNaN(s.getTime()))throw new Error(`Invalid date: ${t}`);if(i)return b(s,i);let o="dd/MM/yyyy";return"time"===e?o="dd/MM/yyyy HH:mm:ss":"week"===e&&(o="ccc dd/MM/yyyy HH:mm:ss"),b(s,o)}catch(t){return console.error("Error formatting date:",t.message),""}})({date:e,format:"ccc dd/MM HH:mm"});return this.splitView?[{title:"No.",value:"index",width:5,rowSpan:2},{title:"Date",value:"startTime",width:25,rowSpan:2,nowrap:!0,render:t},{title:"Team",value:"teamName",width:30},{title:"Scores",value:"results",width:45,render:(t,e)=>i("div",{class:"flex gap-1"},e.map((t=>i("lottery-oddsbom-bullet",{text:t,"is-reading":!0,"is-selected":!0}))))}]:[{title:"Match",value:"eventName",width:50,render:(t,e)=>i("div",{class:"flex gap-1 eventNameContainer__item"},i("span",{class:"eventNameContainer__item--title"},e))},{title:"Date",value:"startTime",width:25,nowrap:!0,render:t},{title:"Match Result",value:"results",width:25,render:(t,e)=>i("div",null,null==e?void 0:e[0])}]}renderLoading(){return i("div",{class:"loading-wrap"},i("section",{class:"dots-container"},i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"}),i("div",{class:"dot"})))}renderEmpty(){return i("div",{class:"LotteryTippingTicketBet__empty"},i("p",null,(()=>{const t=this.language;let e=Wl[void 0!==t&&ql.includes(t)?t:"en"].noData;return e})()))}renderTable({columns:t,dataSource:e,hideHead:s=!1,grid:o=!0,bordered:r=!0}){const n={};return i("table",{class:{bordered:r,grid:o,"my-table-component":!0}},!s&&i("thead",null,i("tr",null,t.map((t=>{var e;return i("th",{key:t.value,style:{width:t.width+"%",textAlign:t.align}},"string"==typeof t.title?t.title:null===(e=t.title)||void 0===e?void 0:e.call(t))})))),i("tbody",null,e.map(((e,s)=>i("tr",{key:s},t.map((t=>{if(n[t.value]&&n[t.value]>0)return n[t.value]--,null;const o=t.rowSpan;return o&&o>1&&(n[t.value]=o-1),i("td",{key:t.value,rowSpan:o,style:{width:t.width+"%",textAlign:t.align},class:{"no-wrap":t.nowrap}},t.render?t.render(e,e[t.value],s):e[t.value])})))))))}renderContent(){return this.isLoading?this.renderLoading():this.ticketBetDataSource&&0!==this.ticketBetDataSource.length?i("div",{class:"flex align-center LotteryTippingTicketBet__main"},this.renderTable({columns:this.columns,dataSource:this.ticketBetDataSource||[],hideHead:!1,grid:!1,bordered:!1})):this.renderEmpty()}render(){return i("div",{key:"9932926b2958b13636d617cc20a0c77a76a36ebe",ref:t=>this.stylingContainer=t,class:"LotteryTippingTicketBet__container"},this.renderContent())}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameId:["fetchMatchData"],drawId:["fetchMatchData"],defaultResults:["fetchMatchData"]}}};Gl.style=".LotteryTippingTicketBet__container {\n display: block; /* Or inline-block, depending on desired layout flow */\n font-size: 14px;\n line-height: 1.5715;\n color: var(--emw--color-typography, #000);\n background: var(--emw--color-background, #fff);\n overflow: hidden;\n min-width: 300px;\n container-type: inline-size;\n}\n@container (max-width: 375px) {\n .LotteryTippingTicketBet__container {\n font-size: 12px;\n }\n}\n\n.my-table-component {\n width: 100%;\n border-collapse: collapse; /* Important for borders */\n text-align: left;\n border-radius: 0.1rem; /* Ant Design like subtle rounding */\n border-spacing: 0;\n}\n\n/* Header */\n.my-table-component th {\n background: var(--emw--color-background-secondary, #f5f5f5);\n color: var(--emw--color-typography, #000);\n font-weight: 600;\n padding: 0.4rem 0.5rem;\n transition: background 0.3s ease;\n}\n\n/* Cells */\n.my-table-component td {\n padding: 0.4rem 0.5rem;\n color: var(--emw--color-typography, #000);\n background: var(--emw--color-background, #fff);\n transition: background 0.3s;\n}\n@container (max-width: 400px) {\n .my-table-component td {\n padding: 0.3rem 0.3rem;\n }\n}\n\n.my-table-component.bordered th,\n.my-table-component.bordered td {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n/* Bordered style */\n.my-table-component.grid th,\n.my-table-component.grid td {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n.my-table-component.grid th {\n border-bottom-width: 1px; /* Ensure bottom border is consistent */\n}\n\n.my-table-component.grid {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6); /* Outer border */\n border-right-width: 0;\n border-bottom-width: 0;\n}\n\n.my-table-component.grid th:last-child,\n.my-table-component.grid td:last-child {\n border-right: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n.my-table-component.grid tr:last-child td {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n/* Striped style */\n.my-table-component.striped tbody tr:nth-child(even) td {\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n/* Hover (optional, but nice) */\n.my-table-component tbody tr:hover td {\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n.flex {\n display: flex;\n}\n\n.justify-end {\n justify-content: flex-end;\n}\n\n.gap-1 {\n gap: 4px;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.align-center {\n align-items: center;\n}\n\n.gap-1 {\n gap: 0.5rem;\n}\n\n.match-info-item {\n display: flex;\n}\n\n.match-info-item-label {\n margin-right: 6px;\n}\n\n.info-icon:hover {\n cursor: pointer;\n}\n\n.LotteryTippingTicketBet__empty p {\n text-align: center;\n color: var(--emw--color-typography, #000);\n}\n\n.no-wrap {\n white-space: nowrap;\n overflow: hidden;\n}\n\n.eventNameContainer__item {\n line-height: 1rem;\n}\n.eventNameContainer__item--title {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 300px;\n}\n@container (max-width: 600px) {\n .eventNameContainer__item--title {\n max-width: 180px;\n }\n}\n@container (max-width: 500px) {\n .eventNameContainer__item--title {\n max-width: 150px;\n }\n}\n@container (max-width: 400px) {\n .eventNameContainer__item--title {\n max-width: 100px;\n }\n}\n@container (max-width: 330px) {\n .eventNameContainer__item--title {\n max-width: 70px;\n }\n}\n\n.LotteryTippingTicketBet__main {\n perspective: 800px;\n will-change: transform, opacity;\n backface-visibility: hidden;\n}\n\n@container (max-width: 520px) {\n .LotteryTippingTicketBet__main {\n flex-wrap: wrap;\n justify-content: center;\n }\n}\n.loading-wrap {\n margin: 20px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100px;\n}\n.loading-wrap .dots-container {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n.loading-wrap .dot {\n height: 14px;\n width: 14px;\n margin-right: 14px;\n border-radius: 14px;\n background-color: var(--emw--color-gray-300, #333);\n animation: pulse 1.5s infinite ease-in-out;\n}\n.loading-wrap .dot:last-child {\n margin-right: 0;\n}\n.loading-wrap .dot:nth-child(1) {\n animation-delay: -0.3s;\n}\n.loading-wrap .dot:nth-child(2) {\n animation-delay: -0.1s;\n}\n.loading-wrap .dot:nth-child(3) {\n animation-delay: 0.1s;\n}\n@keyframes pulse {\n 0% {\n transform: scale(0.8);\n background-color: var(--emw--color-gray-300, #333);\n }\n 50% {\n transform: scale(1.2);\n background-color: var(--emw--color-gray-100, #e6e6e6);\n }\n 100% {\n transform: scale(0.8);\n background-color: var(--emw--color-gray-150, #6f6f6f);\n }\n}";const Yl=["ro","en","fr","ar","hr"],Kl={en:{cancel:"Cancel",confirm:"Confirm"},ro:{cancel:"Anulează",confirm:"Confirmă"},fr:{cancel:"Annuler",confirm:"Confirmer"},ar:{cancel:"إلغاء",confirm:"تأكيد"},hr:{cancel:"Odustani",confirm:"Potvrdi"}},Jl=(t,e)=>{const i=e;return Kl[void 0!==i&&Yl.includes(i)?i:"en"][t]},Zl=class{constructor(i){t(this,i),this.open=e(this,"open",7),this.close=e(this,"close",7),this.confirm=e(this,"confirm",7),this.cancel=e(this,"cancel",7),this.wasVisible=!1,this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.visible=void 0,this.dialogTitle="",this.width="520px",this.closable=!0,this.mask=!0,this.maskClosable=!0,this.animationDuration=300,this.fullscreen=!1,this.showFooter=!0,this.showCancelBtn=!0,this.language="en",this.translationUrl=void 0,this.dialogClass=void 0,this.dialogStyle=void 0}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&n(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const i=await fetch(t);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const s=await i.json();e=s,Object.keys(e).forEach((t=>{for(let i in e[t])Kl[t][i]=e[t][i]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl)}componentWillUpdate(){this.visible&&!this.wasVisible?this.disableBodyScroll():!this.visible&&this.wasVisible&&this.enableBodyScroll(),this.wasVisible=this.visible}disconnectedCallback(){this.enableBodyScroll(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}disableBodyScroll(){document.body.style.overflow="hidden"}enableBodyScroll(){document.body.style.overflow=""}handleClose(){this.cancel.emit()}handleMaskClick(){this.maskClosable&&this.cancel.emit()}handleConfirm(){this.confirm.emit()}render(){const t=Object.assign({width:"number"==typeof this.width?`${this.width}px`:this.width,"--duration":`${this.animationDuration}ms`},this.dialogStyle||{}),e=["dialog-wrapper",this.visible?"dialog-wrapper-visible":""],s=["mask",this.visible?"mask-enter":"mask-leave"],o=["dialog",this.visible?"dialog-enter":"dialog-leave",this.fullscreen?"fullscreen":"",this.dialogClass].filter(Boolean).join(" ");return i("div",{key:"306683c5190fa6dca57dcf75e52eca575c0215e7",class:e.join(" "),ref:t=>this.stylingContainer=t},i("div",{key:"8be097f3a86fcd9ad4e18c6ac56cafdcf249049b",class:s.join(" "),onClick:this.handleMaskClick.bind(this)}),i("div",{key:"87d2206d3e3d75fe0e0ef8a6afd8de5c20892ae6",part:"dialog",class:o,style:t,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},(this.dialogTitle||this.closable)&&i("div",{key:"04d54878aa24e0d9eb98bc921ea3edfacd6de3af",class:"dialog-header"},i("h2",{key:"f6f6c279de47e49cde86d0c907b9b40a115926b3",id:"dialog-title",class:"dialog-title"},this.dialogTitle),this.closable&&i("button",{key:"e1625473e5460cd667961923bf678c9a91b69c82",class:"close-btn",onClick:this.handleClose.bind(this)},"x")),i("div",{key:"fb0db8dd765832cf1d8e8b682131e4c97a93ac22",class:"dialog-content",style:{maxHeight:"calc(100vh - 62px)",overflowY:"auto"}},i("slot",{key:"75336f59c2a8fe6775fc12ed4e2e26ff6bb6b508"})),this.showFooter&&i("div",{key:"a305086a2830265317abb0fd6f59b4a053fd54a9",class:"dialog-footer"},i("slot",{key:"cb330ea63908002f4f8b4b8139d5843c2570302e",name:"footer"},this.showCancelBtn&&i("button",{key:"c3d2c15195e56efd6d388265e9ccb87030627b7b",class:"cancel-btn",onClick:this.handleClose.bind(this)},Jl("cancel",this.language)),i("button",{key:"af9c96b4e1ce82f9ecb73e2b9f4e93cba0382d76",class:"confirm-btn",onClick:this.handleConfirm.bind(this)},Jl("confirm",this.language))))))}get el(){return o(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};Zl.style=".dialog-wrapper{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:1;z-index:199}.dialog-wrapper-visible{visibility:visible}.mask{position:fixed;inset:0;background-color:rgba(0, 0, 0, 0.5);opacity:0;z-index:1000;transition:opacity var(--duration) linear}.mask-enter{opacity:1}.mask-leave{opacity:0}.dialog{position:relative;background:var(--emw--color-background, #fff);border-radius:12px;box-shadow:0 4px 32px rgba(0, 0, 0, 0.15);opacity:0;transform:scale(0.9);transition:all var(--duration) linear;width:100%;max-width:100vw;overflow:hidden;z-index:1000}.dialog-enter{opacity:1;transform:scale(1)}.dialog-leave{opacity:0}.dialog.fullscreen{width:100vw !important;height:100vh;overflow:auto;max-height:none;border-radius:0;overflow:hidden}.dialog-header{padding:16px 16px 0 16px;display:flex;justify-content:space-between;align-items:center}.dialog-header .dialog-title{margin:0;font-size:1.25rem;font-weight:500;color:var(--emw--color-typography, #000)}.dialog-header .close-btn{background:transparent;border:none;font-size:1.5rem;width:2rem;height:2rem;color:var(--emw--color-gray-150, #6f6f6f);cursor:pointer;border-radius:4px}.dialog-header .close-btn:hover{background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-gray-300, #333)}.dialog-content{padding:24px;font-size:0.95rem;line-height:1.6;color:var(--emw--color-dialog-typography, #000);flex:1;overflow-y:auto;max-height:calc(100vh - 200px)}.dialog.fullscreen .dialog-content{max-height:none}.dialog-footer{padding:0 16px 16px 16px;display:flex;justify-content:center;gap:12px}.dialog-footer .cancel-btn,.dialog-footer .confirm-btn{padding:10px 24px;border-radius:6px;font-size:0.9rem;cursor:pointer;transition:all 0.3s linear}.dialog-footer .cancel-btn{border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));background-color:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000)}.dialog-footer .cancel-btn:hover{background-color:var(--emw--color-background-tertiary, #ccc)}.dialog-footer .confirm-btn{border:none;color:var(--emw--color-typography-normalized, #ffffff);background:var(--emw--color-primary, #009993)}.dialog-footer .confirm-btn:hover{background:var(--emw--color-primary-variant, #004d4a)}@media screen and (max-width: 480px){.dialog.fullscreen .dialog-content{padding:12px}}.Loading{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.Loading svg{animation:spin 1s linear infinite;transform-origin:center}@keyframes spin{100%{transform:rotate(360deg)}}";export{El as filter_group,Bl as general_multi_select,Ml as general_pagination,Ll as general_panel,Rl as history_list,Ul as lottery_oddsbom_bullet,Gl as lottery_oddsbom_ticket_result,Zl as lottery_tipping_dialog}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{L as LotteryOddsbomTicketHistory}from"./lottery-oddsbom-ticket-history-
|
|
1
|
+
export{L as LotteryOddsbomTicketHistory}from"./lottery-oddsbom-ticket-history-24c1aa1b.js";import"./index-e66667d7.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as n}from"./index-e66667d7.js";const e="__WIDGET_GLOBAL_STYLE_CACHE__";function r(t,n){if(t){const e=document.createElement("style");e.innerHTML=n,t.appendChild(e)}}function i(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 a(t,n,r,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return r=function(t,n){const e=document.createElement("style");return window.emMessageBus.subscribe(n,(n=>{t&&(e.innerHTML=n,t.appendChild(e))}))}(t,n),r;window[e]||(window[e]={}),r=function(t,n){return window.emMessageBus.subscribe(n,(r=>{if(!t)return;const i=t.getRootNode(),a=window[e];let o=a[n]?.sheet;o?a[n].refCount=a[n].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),a[n]={sheet:o,refCount:1});const u=i.adoptedStyleSheets||[];u.includes(o)||(i.adoptedStyleSheets=[...u,o])}))}(t,n);const a=r.unsubscribe.bind(r);return r.unsubscribe=()=>{if(window[e][n]){const t=window[e][n];t.refCount>1?t.refCount=t.refCount-1:delete window[e][n]}a()},r}var o,u,s,c;function d(t){return d="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},d(t)}function l(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 f(t){h(1,arguments);var n=Object.prototype.toString.call(t);return t instanceof Date||"object"===d(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))}!function(t){t.Lottery="Lottery",t.PoolGame="PoolGame"}(o||(o={})),function(t){t.Tipping="HomeDrawAway",t.Oddsbomben="CorrectScore"}(u||(u={})),function(t){t.Settled="Settled",t.Purchased="Purchased",t.Canceled="Canceled"}(s||(s={})),function(t){t.WON="Won",t.LOST="Lost"}(c||(c={}));var m={};function w(){return m}var v=6e4,g=36e5;function y(t){h(1,arguments);var n=f(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 b(t){h(1,arguments);var n=f(t),e=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(e+1,0,4),r.setUTCHours(0,0,0,0);var i=y(r),a=new Date(0);a.setUTCFullYear(e,0,4),a.setUTCHours(0,0,0,0);var o=y(a);return n.getTime()>=i.getTime()?e+1:n.getTime()>=o.getTime()?e:e-1}function p(t,n){var e,r,i,a,o,u,s,c;h(1,arguments);var d=w(),m=l(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:d.weekStartsOn)&&void 0!==r?r:null===(s=d.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==e?e:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=f(t),g=v.getUTCDay(),y=(g<m?7:0)+g-m;return v.setUTCDate(v.getUTCDate()-y),v.setUTCHours(0,0,0,0),v}function x(t,n){var e,r,i,a,o,u,s,c;h(1,arguments);var d=f(t),m=d.getUTCFullYear(),v=w(),g=l(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.firstWeekContainsDate)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:v.firstWeekContainsDate)&&void 0!==r?r:null===(s=v.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==e?e:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(m+1,0,g),y.setUTCHours(0,0,0,0);var b=p(y,n),x=new Date(0);x.setUTCFullYear(m,0,g),x.setUTCHours(0,0,0,0);var D=p(x,n);return d.getTime()>=b.getTime()?m+1:d.getTime()>=D.getTime()?m:m-1}function D(t,n){for(var e=t<0?"-":"",r=Math.abs(t).toString();r.length<n;)r="0"+r;return e+r}const M=function(t,n){var e=t.getUTCFullYear(),r=e>0?e:1-e;return D("yy"===n?r%100:r,n.length)},k=function(t,n){var e=t.getUTCMonth();return"M"===n?String(e+1):D(e+1,2)},S=function(t,n){return D(t.getUTCDate(),n.length)},E=function(t,n){return D(t.getUTCHours()%12||12,n.length)},T=function(t,n){return D(t.getUTCHours(),n.length)},N=function(t,n){return D(t.getUTCMinutes(),n.length)},P=function(t,n){return D(t.getUTCSeconds(),n.length)},j=function(t,n){var e=n.length,r=t.getUTCMilliseconds();return D(Math.floor(r*Math.pow(10,e-3)),n.length)};var O={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 M(t,n)},Y:function(t,n,e,r){var i=x(t,r),a=i>0?i:1-i;return"YY"===n?D(a%100,2):"Yo"===n?e.ordinalNumber(a,{unit:"year"}):D(a,n.length)},R:function(t,n){return D(b(t),n.length)},u:function(t,n){return D(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 D(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 D(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 k(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 D(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 i=function(t,n){h(1,arguments);var e=f(t),r=p(e,n).getTime()-function(t,n){var e,r,i,a,o,u,s,c;h(1,arguments);var d=w(),f=l(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.firstWeekContainsDate)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:d.firstWeekContainsDate)&&void 0!==r?r:null===(s=d.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==e?e:1),m=x(t,n),v=new Date(0);return v.setUTCFullYear(m,0,f),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(i,{unit:"week"}):D(i,n.length)},I:function(t,n,e){var r=function(t){h(1,arguments);var n=f(t),e=y(n).getTime()-function(t){h(1,arguments);var n=b(t),e=new Date(0);return e.setUTCFullYear(n,0,4),e.setUTCHours(0,0,0,0),y(e)}(n).getTime();return Math.round(e/6048e5)+1}(t);return"Io"===n?e.ordinalNumber(r,{unit:"week"}):D(r,n.length)},d:function(t,n,e){return"do"===n?e.ordinalNumber(t.getUTCDate(),{unit:"date"}):S(t,n)},D:function(t,n,e){var r=function(t){h(1,arguments);var n=f(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"}):D(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 i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return D(a,2);case"eo":return e.ordinalNumber(a,{unit:"day"});case"eee":return e.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(i,{width:"short",context:"formatting"});default:return e.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return D(a,n.length);case"co":return e.ordinalNumber(a,{unit:"day"});case"ccc":return e.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(i,{width:"narrow",context:"standalone"});case"cccccc":return e.day(i,{width:"short",context:"standalone"});default:return e.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,e){var r=t.getUTCDay(),i=0===r?7:r;switch(n){case"i":return String(i);case"ii":return D(i,n.length);case"io":return e.ordinalNumber(i,{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,i=t.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/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,i=t.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=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 E(t,n)},H:function(t,n,e){return"Ho"===n?e.ordinalNumber(t.getUTCHours(),{unit:"hour"}):T(t,n)},K:function(t,n,e){var r=t.getUTCHours()%12;return"Ko"===n?e.ordinalNumber(r,{unit:"hour"}):D(r,n.length)},k:function(t,n,e){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===n?e.ordinalNumber(r,{unit:"hour"}):D(r,n.length)},m:function(t,n,e){return"mo"===n?e.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):N(t,n)},s:function(t,n,e){return"so"===n?e.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):P(t,n)},S:function(t,n){return j(t,n)},X:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(n){case"X":return W(i);case"XXXX":case"XX":return R(i);default:return R(i,":")}},x:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"x":return W(i);case"xxxx":case"xx":return R(i);default:return R(i,":")}},O:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+C(i,":");default:return"GMT"+R(i,":")}},z:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+C(i,":");default:return"GMT"+R(i,":")}},t:function(t,n,e,r){return D(Math.floor((r._originalDate||t).getTime()/1e3),n.length)},T:function(t,n,e,r){return D((r._originalDate||t).getTime(),n.length)}};function C(t,n){var e=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;if(0===a)return e+String(i);var o=n||"";return e+String(i)+o+D(a,2)}function W(t,n){return t%60==0?(t>0?"-":"+")+D(Math.abs(t)/60,2):R(t,n)}function R(t,n){var e=n||"",r=t>0?"-":"+",i=Math.abs(t);return r+D(Math.floor(i/60),2)+e+D(i%60,2)}const I=O;var L=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"})}},G=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"})}},Y={p:G,P:function(t,n){var e,r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return L(t,n);switch(i){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}}",L(i,n)).replace("{{time}}",G(a,n))}};const A=Y;var q=["D","DD"],$=["YY","YYYY"];function z(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 Q(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 F,X={date:Q({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Q({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:Q({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},U={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function _(t){return function(n,e){var r;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!=e&&e.width?String(e.width):i;r=t.formattingValues[a]||t.formattingValues[i]}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 H(t){return function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,i=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!i)return null;var a,o=i[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 a=t.valueCallback?t.valueCallback(s):s,{value:a=e.valueCallback?e.valueCallback(a):a,rest:n.slice(o.length)}}}const J={code:"en-US",formatDistance:function(t,n,e){var r,i=B[t];return r="string"==typeof i?i:1===n?i.one:i.other.replace("{{count}}",n.toString()),null!=e&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r},formatLong:X,formatRelative:function(t){return U[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:_({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:_({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:_({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:_({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:_({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:(F={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(F.matchPattern);if(!e)return null;var r=e[0],i=t.match(F.parsePattern);if(!i)return null;var a=F.valueCallback?F.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(r.length)}}),era:H({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:H({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:H({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:H({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:H({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,i,a,o,u,s,c,m,v,g,y,b,p,x,D,M,k,S;h(2,arguments);var E=String(n),T=w(),N=null!==(r=null!==(i=null==e?void 0:e.locale)&&void 0!==i?i:T.locale)&&void 0!==r?r:J,P=l(null!==(a=null!==(o=null!==(u=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(c=e.locale)||void 0===c||null===(m=c.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==u?u:T.firstWeekContainsDate)&&void 0!==o?o:null===(v=T.locale)||void 0===v||null===(g=v.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==a?a:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=l(null!==(y=null!==(b=null!==(p=null!==(x=null==e?void 0:e.weekStartsOn)&&void 0!==x?x:null==e||null===(D=e.locale)||void 0===D||null===(M=D.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==p?p:T.weekStartsOn)&&void 0!==b?b:null===(k=T.locale)||void 0===k||null===(S=k.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==y?y:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var O=f(t);if(!function(t){if(h(1,arguments),!function(t){return h(1,arguments),t instanceof Date||"object"===d(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var n=f(t);return!isNaN(Number(n))}(O))throw new RangeError("Invalid time value");var C=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()}(O),W=function(t,n){return h(2,arguments),function(t,n){h(2,arguments);var e=f(t).getTime(),r=l(n);return new Date(e+r)}(t,-l(n))}(O,C),R={firstWeekContainsDate:P,weekStartsOn:j,locale:N,_originalDate:O};return E.match(K).map((function(t){var n=t[0];return"p"===n||"P"===n?(0,A[n])(t,N.formatLong):t})).join("").match(Z).map((function(r){if("''"===r)return"'";var i,a,o=r[0];if("'"===o)return(a=(i=r).match(V))?a[1].replace(tt,"'"):i;var u=I[o];if(u)return null!=e&&e.useAdditionalWeekYearTokens||-1===$.indexOf(r)||z(r,n,String(t)),null!=e&&e.useAdditionalDayOfYearTokens||!(-1!==q.indexOf(r))||z(r,n,String(t)),u(W,r,N.localize,R);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=l(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 i,a=function(t){var n,e={},r=t.split(it.dateTimeDelimiter);if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],it.timeZoneDelimiter.test(e.date)&&(e.date=t.split(it.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){var i=it.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}(t);if(a.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 i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?i:100*a,restDateString:t.slice((r[1]||r[2]).length)}}(a.date,r);i=function(t,n){if(null===n)return new Date(NaN);var e=t.match(at);if(!e)return new Date(NaN);var r=!!e[4],i=st(e[1]),a=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 i=7*(n-1)+e+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(n,u,s):new Date(NaN);var c=new Date(0);return function(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(dt[n]||(lt(t)?29:28))}(n,a,o)&&function(t,n){return n>=1&&n<=(lt(t)?366:365)}(n,i)?(c.setUTCFullYear(n,a,Math.max(i,o)),c):new Date(NaN)}(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var u,s=i.getTime(),c=0;if(a.time&&(c=function(t){var n=t.match(ot);if(!n)return NaN;var e=ct(n[1]),r=ct(n[2]),i=ct(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,i)?e*g+r*v+1e3*i:NaN}(a.time),isNaN(c)))return new Date(NaN);if(!a.timezone){var d=new Date(s+c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}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]),i=n[3]&&parseInt(n[3])||0;return function(t,n){return n>=0&&n<=59}(0,i)?e*(r*g+i*v):NaN}(a.timezone),isNaN(u)?new Date(NaN):new Date(s+c+u)}var it={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},at=/^-?(?:(\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 ct(t){return t&&parseFloat(t.replace(",","."))||0}var dt=[31,null,31,30,31,30,31,31,30,31,30,31];function lt(t){return t%400==0||t%4==0&&t%100!=0}function ht(t){t.i18n=Object.assign(Object.assign({},t.i18n),{formatDate:function(t){const{year:n,month:e,day:r}=t;return et(new Date(n,e,r),"dd/MM/yyyy")},parseDate:function(t){const[n,e,r]=t.split("/");return{year:r,month:parseInt(e)-1,day:n}}})}const ft=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=16*Math.random()|0;return("x"==t?n:3&n|8).toString(16)}));function mt(t,n="GET",e=null,r={}){return new Promise(((i,a)=>{const o=ft(),u=Object.assign({"Content-Type":"application/json"},r);"GET"!==n&&"HEAD"!==n&&(u["X-Idempotency-Key"]=o);const s={method:n,headers:u,body:null};e&&"GET"!==n&&"HEAD"!==n?s.body=JSON.stringify(e):delete s.body,fetch(t,s).then((t=>t.ok?t.json():t.json().then((n=>{a({status:t.status,statusText:t.statusText,code:n.code||"UNKNOWN_ERROR",message:n.message||"An unknown error occurred",data:n.data||null})}),(()=>a({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>i(t)),(t=>a(t)))}))}function wt(t,n){return null==t||""===t||(0!==t||!n)&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const n=t.length;let e=0;for(let r=0;r<n;r++){if(!wt(t[r]))return!1;e++}return e===n}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const n=Object.keys(t).length;let e=0;for(const n of Object.values(t)){if(!wt(n))return!1;e++}return e===n}(t):!t)}function vt(t){var n;if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=null===(n=e[0])||void 0===n?void 0:n.replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}const gt=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function yt(t){var n;return pt(null===(n=t.winningNumbers[0])||void 0===n?void 0:n.poolGameOutcomes)}function bt(t){const n=t.selection.map((t=>t.poolGameSelections));return pt(null==n?void 0:n[0])}function pt(t){return t&&t.length>0?t.map((t=>null==t?void 0:t[0])):[[]]}function xt(t){const n=rt(t),e=n.getDate(),r=et(n,"EEEE"),i=et(n,"MMMM"),a=function(t){const n=t%100;if(n>=11&&n<=13)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(e);return`${r} ${e}${a} ${i}`}async function Dt({endpoint:t,filterData:n,sessionId:e}){try{const{items:r=[],total:i}=await mt(`${t}/tickets${function(t){const n={};Object.entries(t).forEach((([t,e])=>{wt(e,!0)||(n[t]=e)}));const e=Object.entries(n).map((([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`)).join("&");return e?`?${e}`:""}(n)}`,"GET",null,{Authorization:`Bearer ${e}`});return{dataSource:r,total:i}}catch(t){if(401===t.status)return Promise.reject(new Error(`${t.statusText||"Unauthorized"}, please login`))}}async function Mt({endpoint:t,gameId:n,drawId:e}){try{return await mt(`${t}/games/${n}/draws/${e}`,"GET",{})||{}}catch(t){console.log(t)}}async function kt({endpoint:t,gameId:n,drawResults:e}){const r=e.map((t=>t.drawId));for(let i=0;i<r.length;i++){const a=await Mt({endpoint:t,gameId:n,drawId:r[i]});e[i].tempDrawData=a,e[i].prizeDetails=St(e[i].details)}return e}function St(t){const n=new Map;t.forEach((t=>{let e=t.divisionDisplayName,r=t.amount,i=t.currency;e&&"None"!=e&&(n.has(e)?n.set(e,{amount:n.get(e).amount+r,currency:i,times:n.get(e).times+1}):n.set(e,{amount:r,currency:i,times:1}))}));const e=[];for(let[t,r]of n.entries())e.push({prizeName:t,amount:r.amount,currency:r.currency,times:r.times});return e.sort(((t,n)=>n.prizeName.localeCompare(t.prizeName))),e}const Et=["ro","en","fr","ar","hr"],Tt={en:{win:"Win",lose:"Lose",normal:"Normal",subscription:"Subscription",syndicate:"Syndicate",ticketResult:"Ticket Result:",drawId:"Draw ID:",drawDate:"Draw Date:",result:"Result:",prize:"Prize:",bettingType:"Betting Type:",seeDetails:"See Details",noData:"No data Avaliable.",ticketId:"Ticket ID:",ticketType:"Ticket Type:",ticketAmount:"Ticket Amount:",lineDetail:"Line Detail:",numberOfDraw:"Number of Draw:",filter:"Filter",clear:"Clear",perPage:"1",searchByTicketId:"Search by Ticket ID",enterTicketId:"Enter Ticket ID",searchByTicketType:"Search by Ticket Type",selectTicketType:"Select Ticket Type",searchByDate:"Search by Date",from:"From",to:"To",ticketsHistory:"Tickets History",settled:"Settled",purchased:"Purchased",canceled:"Canceled",pleaseSelectADate:"Please select a date"}},Nt=(t,n,e)=>{const r=n;let i=Tt[void 0!==r&&Et.includes(r)?r:"en"][t];return e&&Object.keys(e).forEach((t=>{i=null==i?void 0:i.replace(`{${t}}`,e[t])})),i},Pt=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])Tt[t][e]=n[t][e]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var n},jt=class{constructor(n){t(this,n),this.handlePageSizeChange=t=>{this.filterData.limit=t.detail,this.filterData.offset=0,this.fetchTicketList()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.gameId=void 0,this.playerId=void 0,this.sessionId="",this.isLoading=!1,this.errorConfig={isError:!1},this.filterData={offset:0,limit:10,vendorGameType:o.PoolGame,vendorGameBettingObject:u.Oddsbomben},this.ticketHistoryRes={dataSource:[],total:0}}handleClientStylingChange(t,n){t!==n&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,n){t!==n&&i(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,n){t!==n&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&i(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){this.fetchTicketList()}async fetchTicketList(){if(this.endpoint&&this.sessionId)try{this.isLoading=!0;const t=await Dt({endpoint:this.endpoint,filterData:this.filterData,sessionId:this.sessionId});this.ticketHistoryRes=t}catch(t){this.errorConfig={isError:!0,message:t.message||t.msg}}finally{this.isLoading=!1}else console.error("endpoint and sessionId are required")}renderError(){return n("div",{class:"error-red text-center mt-12"},this.errorConfig.message)}handleFilterChange(t){this.filterData=Object.assign({},{offset:this.filterData.offset,limit:this.filterData.limit,vendorGameType:this.filterData.vendorGameType,vendorGameBettingObject:this.filterData.vendorGameBettingObject},t.detail),this.fetchTicketList()}handlePageChange(t){this.filterData.offset=(t.detail-1)*this.filterData.limit,this.fetchTicketList()}render(){var t,e;return n("div",{key:"719a01651d21198644d4ace48e8b304e7165ab76",ref:t=>this.stylingContainer=t,class:"lottery-oddsbom-ticket-history-container"},n("div",{key:"3086e38de3068a0af5da6ef631e657a2a460f774",class:"lottery-oddsbom-ticket-history-wrapper"},n("div",{key:"6c06470b63b983ad75a400d49ae72c6becb25243",class:"lottery-oddsbom-ticket-history-container__title"},Nt("ticketsHistory",this.language)),n("filter-group",{key:"225778b4daa5adf2f508a8d3c8590f6802669488",language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,onFilterChange:this.handleFilterChange.bind(this)}),this.errorConfig.isError?this.renderError():n("history-list",{language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,"game-id":this.gameId,endpoint:this.endpoint,"is-loading":this.isLoading,"default-ticket-history":JSON.stringify((null===(t=this.ticketHistoryRes)||void 0===t?void 0:t.dataSource)||[])}),n("div",{key:"0cfa07e6daab06253e2bd1d570dea052547fbbb0",class:"pagination-wrap"},n("general-pagination",{key:"d2025ebae912d339ba35c6df5ed3c68d5031201d",total:(null===(e=this.ticketHistoryRes)||void 0===e?void 0:e.total)||0,language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,onPageChange:this.handlePageChange.bind(this),onPageSizeChange:this.handlePageSizeChange.bind(this)}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};jt.style="@keyframes skeleton-loading {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n.lottery-oddsbom-ticket-history-container {\n container-type: inline-size;\n container-name: myContainer;\n color: var(--emw--color-typography, #000);\n background-color: var(--emw--color-background, #fff);\n height: 100%;\n width: 100%;\n}\n.lottery-oddsbom-ticket-history-container .lottery-oddsbom-ticket-history-wrapper {\n padding: 12px;\n margin: 0 auto;\n max-width: 800px;\n background-color: var(--emw--color-background, #fff);\n}\n.lottery-oddsbom-ticket-history-container__title {\n margin: 20px 0;\n text-align: center;\n font-size: 20px;\n font-weight: 700;\n color: var(--emw--color-typography, #000);\n}\n.lottery-oddsbom-ticket-history-container .pagination-wrap {\n margin-top: 20px;\n display: flex;\n justify-content: flex-end;\n}\n\n.pagination-wrap {\n margin-top: 20px;\n display: flex;\n justify-content: flex-end;\n}\n\n@container myContainer (min-width: 1200px) {\n .lottery-oddsbom-ticket-history-wrapper {\n padding: 24px;\n margin: 0 auto;\n }\n}\n@container myContainer (max-width: 480px) {\n .lottery-oddsbom-ticket-history-wrapper {\n padding: 2px;\n }\n .lottery-oddsbom-ticket-history-container .filter-wrap .filter-status {\n gap: 4px;\n }\n}\n.error-red {\n color: var(--emw--color-error, red);\n}\n\n.text-center {\n text-align: center;\n}\n\n.mt-12 {\n margin-top: 48px;\n}";export{c as D,jt as L,i as a,a as b,ht as c,yt as d,kt as e,xt as f,bt as g,et as h,gt as i,vt as j,rt as p,Pt as r,r as s,Nt as t}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as n}from"./index-e66667d7.js";function e(t,n){if(t){const e=document.createElement("style");e.innerHTML=n,t.appendChild(e)}}function r(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 i(t,n){if(window.emMessageBus){const e=document.createElement("style");window.emMessageBus.subscribe(n,(n=>{e.innerHTML=n,t&&t.appendChild(e)}))}}var a,o,u,s;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 d(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 l(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}function h(t){l(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))}!function(t){t.Lottery="Lottery",t.PoolGame="PoolGame"}(a||(a={})),function(t){t.Tipping="HomeDrawAway",t.Oddsbomben="CorrectScore"}(o||(o={})),function(t){t.Settled="Settled",t.Purchased="Purchased",t.Canceled="Canceled"}(u||(u={})),function(t){t.WON="Won",t.LOST="Lost"}(s||(s={}));var f={};function m(){return f}var v=6e4,w=36e5;function g(t){l(1,arguments);var n=h(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){l(1,arguments);var n=h(t),e=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(e+1,0,4),r.setUTCHours(0,0,0,0);var i=g(r),a=new Date(0);a.setUTCFullYear(e,0,4),a.setUTCHours(0,0,0,0);var o=g(a);return n.getTime()>=i.getTime()?e+1:n.getTime()>=o.getTime()?e:e-1}function b(t,n){var e,r,i,a,o,u,s,c;l(1,arguments);var f=m(),v=d(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==r?r:null===(s=f.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==e?e:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=h(t),g=w.getUTCDay(),y=(g<v?7:0)+g-v;return w.setUTCDate(w.getUTCDate()-y),w.setUTCHours(0,0,0,0),w}function p(t,n){var e,r,i,a,o,u,s,c;l(1,arguments);var f=h(t),v=f.getUTCFullYear(),w=m(),g=d(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.firstWeekContainsDate)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:w.firstWeekContainsDate)&&void 0!==r?r:null===(s=w.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==e?e:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(v+1,0,g),y.setUTCHours(0,0,0,0);var p=b(y,n),x=new Date(0);x.setUTCFullYear(v,0,g),x.setUTCHours(0,0,0,0);var D=b(x,n);return f.getTime()>=p.getTime()?v+1:f.getTime()>=D.getTime()?v:v-1}function x(t,n){for(var e=t<0?"-":"",r=Math.abs(t).toString();r.length<n;)r="0"+r;return e+r}const D=function(t,n){var e=t.getUTCFullYear(),r=e>0?e:1-e;return x("yy"===n?r%100:r,n.length)},M=function(t,n){var e=t.getUTCMonth();return"M"===n?String(e+1):x(e+1,2)},k=function(t,n){return x(t.getUTCDate(),n.length)},S=function(t,n){return x(t.getUTCHours()%12||12,n.length)},T=function(t,n){return x(t.getUTCHours(),n.length)},E=function(t,n){return x(t.getUTCMinutes(),n.length)},N=function(t,n){return x(t.getUTCSeconds(),n.length)},P=function(t,n){var e=n.length,r=t.getUTCMilliseconds();return x(Math.floor(r*Math.pow(10,e-3)),n.length)};var j={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 D(t,n)},Y:function(t,n,e,r){var i=p(t,r),a=i>0?i:1-i;return"YY"===n?x(a%100,2):"Yo"===n?e.ordinalNumber(a,{unit:"year"}):x(a,n.length)},R:function(t,n){return x(y(t),n.length)},u:function(t,n){return x(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 x(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 x(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 M(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 x(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 i=function(t,n){l(1,arguments);var e=h(t),r=b(e,n).getTime()-function(t,n){var e,r,i,a,o,u,s,c;l(1,arguments);var h=m(),f=d(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.firstWeekContainsDate)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(s=h.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==e?e:1),v=p(t,n),w=new Date(0);return w.setUTCFullYear(v,0,f),w.setUTCHours(0,0,0,0),b(w,n)}(e,n).getTime();return Math.round(r/6048e5)+1}(t,r);return"wo"===n?e.ordinalNumber(i,{unit:"week"}):x(i,n.length)},I:function(t,n,e){var r=function(t){l(1,arguments);var n=h(t),e=g(n).getTime()-function(t){l(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"}):x(r,n.length)},d:function(t,n,e){return"do"===n?e.ordinalNumber(t.getUTCDate(),{unit:"date"}):k(t,n)},D:function(t,n,e){var r=function(t){l(1,arguments);var n=h(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"}):x(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 i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return x(a,2);case"eo":return e.ordinalNumber(a,{unit:"day"});case"eee":return e.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(i,{width:"short",context:"formatting"});default:return e.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return x(a,n.length);case"co":return e.ordinalNumber(a,{unit:"day"});case"ccc":return e.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(i,{width:"narrow",context:"standalone"});case"cccccc":return e.day(i,{width:"short",context:"standalone"});default:return e.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,e){var r=t.getUTCDay(),i=0===r?7:r;switch(n){case"i":return String(i);case"ii":return x(i,n.length);case"io":return e.ordinalNumber(i,{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,i=t.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/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,i=t.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=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 S(t,n)},H:function(t,n,e){return"Ho"===n?e.ordinalNumber(t.getUTCHours(),{unit:"hour"}):T(t,n)},K:function(t,n,e){var r=t.getUTCHours()%12;return"Ko"===n?e.ordinalNumber(r,{unit:"hour"}):x(r,n.length)},k:function(t,n,e){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===n?e.ordinalNumber(r,{unit:"hour"}):x(r,n.length)},m:function(t,n,e){return"mo"===n?e.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):E(t,n)},s:function(t,n,e){return"so"===n?e.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):N(t,n)},S:function(t,n){return P(t,n)},X:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(n){case"X":return W(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"x":return W(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+O(i,":");default:return"GMT"+C(i,":")}},z:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+O(i,":");default:return"GMT"+C(i,":")}},t:function(t,n,e,r){return x(Math.floor((r._originalDate||t).getTime()/1e3),n.length)},T:function(t,n,e,r){return x((r._originalDate||t).getTime(),n.length)}};function O(t,n){var e=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;if(0===a)return e+String(i);var o=n||"";return e+String(i)+o+x(a,2)}function W(t,n){return t%60==0?(t>0?"-":"+")+x(Math.abs(t)/60,2):C(t,n)}function C(t,n){var e=n||"",r=t>0?"-":"+",i=Math.abs(t);return r+x(Math.floor(i/60),2)+e+x(i%60,2)}const R=j;var I=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"})}},Y=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"})}},G={p:Y,P:function(t,n){var e,r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return I(t,n);switch(i){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}}",I(i,n)).replace("{{time}}",Y(a,n))}};const L=G;var q=["D","DD"],$=["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 z={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 B(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 Q,F={date:B({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:B({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:B({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},X={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function U(t){return function(n,e){var r;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!=e&&e.width?String(e.width):i;r=t.formattingValues[a]||t.formattingValues[i]}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 H(t){return function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,i=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!i)return null;var a,o=i[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 a=t.valueCallback?t.valueCallback(s):s,{value:a=e.valueCallback?e.valueCallback(a):a,rest:n.slice(o.length)}}}const J={code:"en-US",formatDistance:function(t,n,e){var r,i=z[t];return r="string"==typeof i?i:1===n?i.one:i.other.replace("{{count}}",n.toString()),null!=e&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r},formatLong:F,formatRelative:function(t){return X[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:U({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:U({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:U({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:U({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:U({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:(Q={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(Q.matchPattern);if(!e)return null;var r=e[0],i=t.match(Q.parsePattern);if(!i)return null;var a=Q.valueCallback?Q.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(r.length)}}),era:H({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:H({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:H({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:H({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:H({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 _=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Z=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K=/^'([^]*?)'?$/,V=/''/g,tt=/[a-zA-Z]/;function nt(t,n,e){var r,i,a,o,u,s,f,v,w,g,y,b,p,x,D,M,k,S;l(2,arguments);var T=String(n),E=m(),N=null!==(r=null!==(i=null==e?void 0:e.locale)&&void 0!==i?i:E.locale)&&void 0!==r?r:J,P=d(null!==(a=null!==(o=null!==(u=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(f=e.locale)||void 0===f||null===(v=f.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==u?u:E.firstWeekContainsDate)&&void 0!==o?o:null===(w=E.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==a?a:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=d(null!==(y=null!==(b=null!==(p=null!==(x=null==e?void 0:e.weekStartsOn)&&void 0!==x?x:null==e||null===(D=e.locale)||void 0===D||null===(M=D.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==p?p:E.weekStartsOn)&&void 0!==b?b:null===(k=E.locale)||void 0===k||null===(S=k.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==y?y:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var O=h(t);if(!function(t){if(l(1,arguments),!function(t){return l(1,arguments),t instanceof Date||"object"===c(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var n=h(t);return!isNaN(Number(n))}(O))throw new RangeError("Invalid time value");var W=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()}(O),C=function(t,n){return l(2,arguments),function(t,n){l(2,arguments);var e=h(t).getTime(),r=d(n);return new Date(e+r)}(t,-d(n))}(O,W),I={firstWeekContainsDate:P,weekStartsOn:j,locale:N,_originalDate:O};return T.match(Z).map((function(t){var n=t[0];return"p"===n||"P"===n?(0,L[n])(t,N.formatLong):t})).join("").match(_).map((function(r){if("''"===r)return"'";var i,a,o=r[0];if("'"===o)return(a=(i=r).match(K))?a[1].replace(V,"'"):i;var u=R[o];if(u)return null!=e&&e.useAdditionalWeekYearTokens||-1===$.indexOf(r)||A(r,n,String(t)),null!=e&&e.useAdditionalDayOfYearTokens||!(-1!==q.indexOf(r))||A(r,n,String(t)),u(C,r,N.localize,I);if(o.match(tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function et(t,n){var e;l(1,arguments);var r=d(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 i,a=function(t){var n,e={},r=t.split(rt.dateTimeDelimiter);if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],rt.timeZoneDelimiter.test(e.date)&&(e.date=t.split(rt.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){var i=rt.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}(t);if(a.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 i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?i:100*a,restDateString:t.slice((r[1]||r[2]).length)}}(a.date,r);i=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],i=ut(e[1]),a=ut(e[2])-1,o=ut(e[3]),u=ut(e[4]),s=ut(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 i=7*(n-1)+e+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(n,u,s):new Date(NaN);var c=new Date(0);return function(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(ct[n]||(dt(t)?29:28))}(n,a,o)&&function(t,n){return n>=1&&n<=(dt(t)?366:365)}(n,i)?(c.setUTCFullYear(n,a,Math.max(i,o)),c):new Date(NaN)}(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var u,s=i.getTime(),c=0;if(a.time&&(c=function(t){var n=t.match(at);if(!n)return NaN;var e=st(n[1]),r=st(n[2]),i=st(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,i)?e*w+r*v+1e3*i:NaN}(a.time),isNaN(c)))return new Date(NaN);if(!a.timezone){var h=new Date(s+c),f=new Date(0);return f.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),f.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),f}return u=function(t){if("Z"===t)return 0;var n=t.match(ot);if(!n)return 0;var e="+"===n[1]?-1:1,r=parseInt(n[2]),i=n[3]&&parseInt(n[3])||0;return function(t,n){return n>=0&&n<=59}(0,i)?e*(r*w+i*v):NaN}(a.timezone),isNaN(u)?new Date(NaN):new Date(s+c+u)}var rt={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},it=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,at=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ot=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ut(t){return t?parseInt(t):1}function st(t){return t&&parseFloat(t.replace(",","."))||0}var ct=[31,null,31,30,31,30,31,31,30,31,30,31];function dt(t){return t%400==0||t%4==0&&t%100!=0}function lt(t){t.i18n=Object.assign(Object.assign({},t.i18n),{formatDate:function(t){const{year:n,month:e,day:r}=t;return nt(new Date(n,e,r),"dd/MM/yyyy")},parseDate:function(t){const[n,e,r]=t.split("/");return{year:r,month:parseInt(e)-1,day:n}}})}const ht=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=16*Math.random()|0;return("x"==t?n:3&n|8).toString(16)}));function ft(t,n="GET",e=null,r={}){return new Promise(((i,a)=>{const o=ht(),u=Object.assign({"Content-Type":"application/json"},r);"GET"!==n&&"HEAD"!==n&&(u["X-Idempotency-Key"]=o);const s={method:n,headers:u,body:null};e&&"GET"!==n&&"HEAD"!==n?s.body=JSON.stringify(e):delete s.body,fetch(t,s).then((t=>t.ok?t.json():t.json().then((n=>{a({status:t.status,statusText:t.statusText,code:n.code||"UNKNOWN_ERROR",message:n.message||"An unknown error occurred",data:n.data||null})}),(()=>a({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>i(t)),(t=>a(t)))}))}function mt(t,n){return null==t||""===t||(0!==t||!n)&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const n=t.length;let e=0;for(let r=0;r<n;r++){if(!mt(t[r]))return!1;e++}return e===n}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const n=Object.keys(t).length;let e=0;for(const n of Object.values(t)){if(!mt(n))return!1;e++}return e===n}(t):!t)}function vt(t){var n;if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=null===(n=e[0])||void 0===n?void 0:n.replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}const wt=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function gt(t){var n;return bt(null===(n=t.winningNumbers[0])||void 0===n?void 0:n.poolGameOutcomes)}function yt(t){const n=t.selection.map((t=>t.poolGameSelections));return bt(null==n?void 0:n[0])}function bt(t){return t&&t.length>0?t.map((t=>null==t?void 0:t[0])):[[]]}function pt(t){const n=et(t),e=n.getDate(),r=nt(n,"EEEE"),i=nt(n,"MMMM"),a=function(t){const n=t%100;if(n>=11&&n<=13)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(e);return`${r} ${e}${a} ${i}`}async function xt({endpoint:t,filterData:n,sessionId:e}){try{const{items:r=[],total:i}=await ft(`${t}/tickets${function(t){const n={};Object.entries(t).forEach((([t,e])=>{mt(e,!0)||(n[t]=e)}));const e=Object.entries(n).map((([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`)).join("&");return e?`?${e}`:""}(n)}`,"GET",null,{Authorization:`Bearer ${e}`});return{dataSource:r,total:i}}catch(t){if(401===t.status)return Promise.reject(new Error(`${t.statusText||"Unauthorized"}, please login`))}}async function Dt({endpoint:t,gameId:n,drawId:e}){try{return await ft(`${t}/games/${n}/draws/${e}`,"GET",{})||{}}catch(t){console.log(t)}}async function Mt({endpoint:t,gameId:n,drawResults:e}){const r=e.map((t=>t.drawId));for(let i=0;i<r.length;i++){const a=await Dt({endpoint:t,gameId:n,drawId:r[i]});e[i].tempDrawData=a,e[i].prizeDetails=kt(e[i].details)}return e}function kt(t){const n=new Map;t.forEach((t=>{let e=t.divisionDisplayName,r=t.amount,i=t.currency;e&&"None"!=e&&(n.has(e)?n.set(e,{amount:n.get(e).amount+r,currency:i,times:n.get(e).times+1}):n.set(e,{amount:r,currency:i,times:1}))}));const e=[];for(let[t,r]of n.entries())e.push({prizeName:t,amount:r.amount,currency:r.currency,times:r.times});return e.sort(((t,n)=>n.prizeName.localeCompare(t.prizeName))),e}const St=["ro","en","fr","ar","hr"],Tt={en:{win:"Win",lose:"Lose",normal:"Normal",subscription:"Subscription",syndicate:"Syndicate",ticketResult:"Ticket Result:",drawId:"Draw ID:",drawDate:"Draw Date:",result:"Result:",prize:"Prize:",bettingType:"Betting Type:",seeDetails:"See Details",noData:"No data Avaliable.",ticketId:"Ticket ID:",ticketType:"Ticket Type:",ticketAmount:"Ticket Amount:",lineDetail:"Line Detail:",numberOfDraw:"Number of Draw:",filter:"Filter",clear:"Clear",perPage:"1",searchByTicketId:"Search by Ticket ID",enterTicketId:"Enter Ticket ID",searchByTicketType:"Search by Ticket Type",selectTicketType:"Select Ticket Type",searchByDate:"Search by Date",from:"From",to:"To",ticketsHistory:"Tickets History",settled:"Settled",purchased:"Purchased",canceled:"Canceled",pleaseSelectADate:"Please select a date"}},Et=(t,n,e)=>{const r=n;let i=Tt[void 0!==r&&St.includes(r)?r:"en"][t];return e&&Object.keys(e).forEach((t=>{i=null==i?void 0:i.replace(`{${t}}`,e[t])})),i},Nt=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])Tt[t][e]=n[t][e]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var n},Pt=class{constructor(n){t(this,n),this.handlePageSizeChange=t=>{this.filterData.limit=t.detail,this.filterData.offset=0,this.fetchTicketList()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.gameId=void 0,this.playerId=void 0,this.sessionId="",this.isLoading=!1,this.errorConfig={isError:!1},this.filterData={offset:0,limit:10,vendorGameType:a.PoolGame,vendorGameBettingObject:o.Oddsbomben},this.ticketHistoryRes={dataSource:[],total:0}}handleClientStylingChange(t,n){t!==n&&e(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,n){t!==n&&r(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,n){t!==n&&i(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&i(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&e(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&r(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){this.fetchTicketList()}async fetchTicketList(){if(this.endpoint&&this.sessionId)try{this.isLoading=!0;const t=await xt({endpoint:this.endpoint,filterData:this.filterData,sessionId:this.sessionId});this.ticketHistoryRes=t}catch(t){this.errorConfig={isError:!0,message:t.message||t.msg}}finally{this.isLoading=!1}else console.error("endpoint and sessionId are required")}renderError(){return n("div",{class:"error-red text-center mt-12"},this.errorConfig.message)}handleFilterChange(t){this.filterData=Object.assign({},{offset:this.filterData.offset,limit:this.filterData.limit,vendorGameType:this.filterData.vendorGameType,vendorGameBettingObject:this.filterData.vendorGameBettingObject},t.detail),this.fetchTicketList()}handlePageChange(t){this.filterData.offset=(t.detail-1)*this.filterData.limit,this.fetchTicketList()}render(){var t,e;return n("div",{key:"719a01651d21198644d4ace48e8b304e7165ab76",ref:t=>this.stylingContainer=t,class:"lottery-oddsbom-ticket-history-container"},n("div",{key:"3086e38de3068a0af5da6ef631e657a2a460f774",class:"lottery-oddsbom-ticket-history-wrapper"},n("div",{key:"6c06470b63b983ad75a400d49ae72c6becb25243",class:"lottery-oddsbom-ticket-history-container__title"},Et("ticketsHistory",this.language)),n("filter-group",{key:"225778b4daa5adf2f508a8d3c8590f6802669488",language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,onFilterChange:this.handleFilterChange.bind(this)}),this.errorConfig.isError?this.renderError():n("history-list",{language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,"game-id":this.gameId,endpoint:this.endpoint,"is-loading":this.isLoading,"default-ticket-history":JSON.stringify((null===(t=this.ticketHistoryRes)||void 0===t?void 0:t.dataSource)||[])}),n("div",{key:"0cfa07e6daab06253e2bd1d570dea052547fbbb0",class:"pagination-wrap"},n("general-pagination",{key:"d2025ebae912d339ba35c6df5ed3c68d5031201d",total:(null===(e=this.ticketHistoryRes)||void 0===e?void 0:e.total)||0,language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,onPageChange:this.handlePageChange.bind(this),onPageSizeChange:this.handlePageSizeChange.bind(this)}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};Pt.style="@keyframes skeleton-loading {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n.lottery-oddsbom-ticket-history-container {\n container-type: inline-size;\n container-name: myContainer;\n color: var(--emw--color-typography, #000);\n background-color: var(--emw--color-background, #fff);\n height: 100%;\n width: 100%;\n}\n.lottery-oddsbom-ticket-history-container .lottery-oddsbom-ticket-history-wrapper {\n padding: 12px;\n margin: 0 auto;\n max-width: 800px;\n background-color: var(--emw--color-background, #fff);\n}\n.lottery-oddsbom-ticket-history-container__title {\n margin: 20px 0;\n text-align: center;\n font-size: 20px;\n font-weight: 700;\n color: var(--emw--color-typography, #000);\n}\n.lottery-oddsbom-ticket-history-container .pagination-wrap {\n margin-top: 20px;\n display: flex;\n justify-content: flex-end;\n}\n\n.pagination-wrap {\n margin-top: 20px;\n display: flex;\n justify-content: flex-end;\n}\n\n@container myContainer (min-width: 1200px) {\n .lottery-oddsbom-ticket-history-wrapper {\n padding: 24px;\n margin: 0 auto;\n }\n}\n@container myContainer (max-width: 480px) {\n .lottery-oddsbom-ticket-history-wrapper {\n padding: 2px;\n }\n .lottery-oddsbom-ticket-history-container .filter-wrap .filter-status {\n gap: 4px;\n }\n}\n.error-red {\n color: var(--emw--color-error, red);\n}\n\n.text-center {\n text-align: center;\n}\n\n.mt-12 {\n margin-top: 48px;\n}";export{s as D,Pt as L,r as a,i as b,lt as c,gt as d,Mt as e,pt as f,yt as g,nt as h,wt as i,vt as j,et as p,Nt as r,e as s,Et as t}
|