@everymatrix/lottery-oddsbom-ticket-history 0.6.26 → 0.6.28

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/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { L as LotteryOddsbomTicketHistory } from './lottery-oddsbom-ticket-history-9b73f80a.js';
1
+ export { L as LotteryOddsbomTicketHistory } from './lottery-oddsbom-ticket-history-397fc07f.js';
2
2
  import './index-e66667d7.js';
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["filter-group_9",[[1,"lottery-oddsbom-ticket-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"isLoading":[32],"errorConfig":[32],"filterData":[32],"ticketHistoryRes":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"history-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"gameId":[513,"game-id"],"defaultTicketHistory":[513,"default-ticket-history"],"isLoading":[516,"is-loading"],"dialogVisible":[32],"dialogData":[32],"ticketHistory":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"defaultTicketHistory":["handleDefaultTicketHistoryChange"]}],[1,"filter-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"statusOptions":[32],"ticketTypeList":[32],"filterParams":[32],"isOpen":[32],"invalid":[32],"maxFrom":[32],"minTo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-pagination",{"total":[2],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"current":[32],"pageSize":[32],"totalPages":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"total":["updateTotalPages"],"pageSize":["updateTotalPages"]}],[1,"lottery-oddsbom-ticket-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"defaultResults":[513,"default-results"],"splitView":[516,"split-view"],"allResults":[32],"ticketBetDataSource":[32],"isLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"drawId":["fetchMatchData"],"defaultResults":["fetchMatchData"]}],[1,"general-multi-select",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"options":[16],"maxVisibleChips":[2,"max-visible-chips"],"placeholder":[1],"selectedValues":[32],"dropdownOpen":[32],"overflowOpen":[32],"popoverStyle":[32],"clear":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-panel",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[1,"header-title"],"expanded":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
8
+ return bootstrapLazy([["filter-group_9",[[1,"lottery-oddsbom-ticket-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"isLoading":[32],"errorConfig":[32],"filterData":[32],"ticketHistoryRes":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"history-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"gameId":[513,"game-id"],"defaultTicketHistory":[513,"default-ticket-history"],"isLoading":[516,"is-loading"],"dialogVisible":[32],"dialogData":[32],"ticketHistory":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"defaultTicketHistory":["handleDefaultTicketHistoryChange"]}],[1,"filter-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"statusOptions":[32],"ticketTypeList":[32],"filterParams":[32],"isOpen":[32],"invalid":[32],"maxFrom":[32],"minTo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-pagination",{"total":[2],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"current":[32],"pageSize":[32],"totalPages":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"total":["updateTotalPages"],"pageSize":["updateTotalPages"]}],[1,"lottery-oddsbom-ticket-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"defaultResults":[513,"default-results"],"splitView":[516,"split-view"],"allResults":[32],"ticketBetDataSource":[32],"isLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"drawId":["fetchMatchData"],"defaultResults":["fetchMatchData"]}],[1,"general-multi-select",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"options":[16],"maxVisibleChips":[2,"max-visible-chips"],"placeholder":[1],"selectedValues":[32],"dropdownOpen":[32],"overflowOpen":[32],"popoverStyle":[32],"clear":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-panel",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[1,"header-title"],"expanded":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -2722,9 +2722,9 @@ function formatDateToCustomFormat(isoString) {
2722
2722
  return `${dayName} ${day}${suffix} ${monthName}`;
2723
2723
  }
2724
2724
 
2725
- async function fetchTicketList({ endpointTicket, filterData, sessionId }) {
2725
+ async function fetchTicketList({ endpoint, filterData, sessionId }) {
2726
2726
  try {
2727
- const { items = [], total } = await fetchRequest(`${endpointTicket}/tickets${toQueryParams(filterData)}`, 'GET', null, {
2727
+ const { items = [], total } = await fetchRequest(`${endpoint}/tickets${toQueryParams(filterData)}`, 'GET', null, {
2728
2728
  Authorization: `Bearer ${sessionId}`
2729
2729
  });
2730
2730
  return {
@@ -2873,7 +2873,6 @@ const LotteryOddsbomTicketHistory = class {
2873
2873
  this.translationUrl = '';
2874
2874
  this.language = 'en';
2875
2875
  this.endpoint = undefined;
2876
- this.endpointTicket = undefined;
2877
2876
  this.gameId = undefined;
2878
2877
  this.playerId = undefined;
2879
2878
  this.sessionId = '';
@@ -2922,14 +2921,14 @@ const LotteryOddsbomTicketHistory = class {
2922
2921
  this.fetchTicketList();
2923
2922
  }
2924
2923
  async fetchTicketList() {
2925
- if (!this.endpointTicket || !this.sessionId) {
2926
- console.error('endpointTicket and sessionId are required');
2924
+ if (!this.endpoint || !this.sessionId) {
2925
+ console.error('endpoint and sessionId are required');
2927
2926
  return;
2928
2927
  }
2929
2928
  try {
2930
2929
  this.isLoading = true;
2931
2930
  const data = await fetchTicketList({
2932
- endpointTicket: this.endpointTicket,
2931
+ endpoint: this.endpoint,
2933
2932
  filterData: this.filterData,
2934
2933
  sessionId: this.sessionId
2935
2934
  });
@@ -2963,7 +2962,7 @@ const LotteryOddsbomTicketHistory = class {
2963
2962
  }
2964
2963
  render() {
2965
2964
  var _a, _b;
2966
- return (h("div", { key: '62ca9289f4ec446d91cb5035cd0bd224b79295bc', ref: (el) => (this.stylingContainer = el), class: "lottery-oddsbom-ticket-history-container" }, h("div", { key: '4e42ea93276f7c8e8cd8746093d5d540022b3b34', class: "lottery-oddsbom-ticket-history-wrapper" }, h("div", { key: '1421b4608734e540dd9d50c2af56f84315a40281', class: "lottery-oddsbom-ticket-history-container__title" }, translate('ticketsHistory', this.language)), h("filter-group", { key: '3094316d91c22b2c78317434dbf96fb3a2caf187', 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()) : (h("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(((_a = this.ticketHistoryRes) === null || _a === void 0 ? void 0 : _a.dataSource) || []) })), h("div", { key: '71ceb1e0735b61e1da66d31f3978bbe71aa0948f', class: "pagination-wrap" }, h("general-pagination", { key: 'db7bfa61ce83a56bac8073083f5599dcc75ad160', total: ((_b = this.ticketHistoryRes) === null || _b === void 0 ? void 0 : _b.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) })))));
2965
+ return (h("div", { key: '719a01651d21198644d4ace48e8b304e7165ab76', ref: (el) => (this.stylingContainer = el), class: "lottery-oddsbom-ticket-history-container" }, h("div", { key: '3086e38de3068a0af5da6ef631e657a2a460f774', class: "lottery-oddsbom-ticket-history-wrapper" }, h("div", { key: '6c06470b63b983ad75a400d49ae72c6becb25243', class: "lottery-oddsbom-ticket-history-container__title" }, translate('ticketsHistory', this.language)), h("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()) : (h("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(((_a = this.ticketHistoryRes) === null || _a === void 0 ? void 0 : _a.dataSource) || []) })), h("div", { key: '0cfa07e6daab06253e2bd1d570dea052547fbbb0', class: "pagination-wrap" }, h("general-pagination", { key: 'd2025ebae912d339ba35c6df5ed3c68d5031201d', total: ((_b = this.ticketHistoryRes) === null || _b === void 0 ? void 0 : _b.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) })))));
2967
2966
  }
2968
2967
  static get watchers() { return {
2969
2968
  "clientStyling": ["handleClientStylingChange"],
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["filter-group_9",[[1,"lottery-oddsbom-ticket-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"isLoading":[32],"errorConfig":[32],"filterData":[32],"ticketHistoryRes":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"history-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"gameId":[513,"game-id"],"defaultTicketHistory":[513,"default-ticket-history"],"isLoading":[516,"is-loading"],"dialogVisible":[32],"dialogData":[32],"ticketHistory":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"defaultTicketHistory":["handleDefaultTicketHistoryChange"]}],[1,"filter-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"statusOptions":[32],"ticketTypeList":[32],"filterParams":[32],"isOpen":[32],"invalid":[32],"maxFrom":[32],"minTo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-pagination",{"total":[2],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"current":[32],"pageSize":[32],"totalPages":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"total":["updateTotalPages"],"pageSize":["updateTotalPages"]}],[1,"lottery-oddsbom-ticket-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"defaultResults":[513,"default-results"],"splitView":[516,"split-view"],"allResults":[32],"ticketBetDataSource":[32],"isLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"drawId":["fetchMatchData"],"defaultResults":["fetchMatchData"]}],[1,"general-multi-select",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"options":[16],"maxVisibleChips":[2,"max-visible-chips"],"placeholder":[1],"selectedValues":[32],"dropdownOpen":[32],"overflowOpen":[32],"popoverStyle":[32],"clear":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-panel",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[1,"header-title"],"expanded":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
19
+ return bootstrapLazy([["filter-group_9",[[1,"lottery-oddsbom-ticket-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"isLoading":[32],"errorConfig":[32],"filterData":[32],"ticketHistoryRes":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"history-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"gameId":[513,"game-id"],"defaultTicketHistory":[513,"default-ticket-history"],"isLoading":[516,"is-loading"],"dialogVisible":[32],"dialogData":[32],"ticketHistory":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"defaultTicketHistory":["handleDefaultTicketHistoryChange"]}],[1,"filter-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"statusOptions":[32],"ticketTypeList":[32],"filterParams":[32],"isOpen":[32],"invalid":[32],"maxFrom":[32],"minTo":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-pagination",{"total":[2],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"current":[32],"pageSize":[32],"totalPages":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"total":["updateTotalPages"],"pageSize":["updateTotalPages"]}],[1,"lottery-oddsbom-ticket-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"defaultResults":[513,"default-results"],"splitView":[516,"split-view"],"allResults":[32],"ticketBetDataSource":[32],"isLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"drawId":["fetchMatchData"],"defaultResults":["fetchMatchData"]}],[1,"general-multi-select",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"options":[16],"maxVisibleChips":[2,"max-visible-chips"],"placeholder":[1],"selectedValues":[32],"dropdownOpen":[32],"overflowOpen":[32],"popoverStyle":[32],"clear":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-panel",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[1,"header-title"],"expanded":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{"isSelected":[516,"is-selected"],"disabled":[516],"text":[513],"idx":[514],"isReading":[516,"is-reading"],"isDeleteByIcon":[516,"is-delete-by-icon"],"isCallDialogBtn":[516,"is-call-dialog-btn"],"isAddedByMoreBtn":[516,"is-added-by-more-btn"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
20
20
  });
@@ -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-9b73f80a.js";export{L as lottery_oddsbom_ticket_history}from"./lottery-oddsbom-ticket-history-9b73f80a.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())}))
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-397fc07f.js";export{L as lottery_oddsbom_ticket_history}from"./lottery-oddsbom-ticket-history-397fc07f.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.
@@ -19,18 +19,18 @@ const B=globalThis,M=B.ShadowRoot&&(void 0===B.ShadyCSS||B.ShadyCSS.nativeShadow
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */,{is:V,defineProperty:U,getOwnPropertyDescriptor:H,getOwnPropertyNames:q,getOwnPropertySymbols:W,getPrototypeOf:G}=Object,Y=globalThis,K=Y.trustedTypes,J=K?K.emptyScript:"",Z=Y.reactiveElementPolyfillSupport,X={toAttribute(t,e){switch(e){case Boolean:t=t?J:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Q=(t,e)=>!V(t,e),tt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:Q};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=Y.litPropertyMetadata||(Y.litPropertyMetadata=new WeakMap);class et extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=tt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&U(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var s;const{get:o,set:r}=null!=(s=H(this.prototype,t))?s:{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const s=null==o?void 0:o.call(this);null==r||r.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:tt}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=G(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...q(t),...W(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(R(t))}else void 0!==t&&e.push(R(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return $(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==(null==(i=s.converter)?void 0:i.toAttribute)?s.converter:X).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){var i,s,o;const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:X;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(o=null!=l?l:null==(s=this._$Ej)?void 0:s.get(n))?o:l,this._$Em=null}}requestUpdate(t,e,i){var s,o;if(void 0!==t){const r=this.constructor,n=this[t];if(null!=i||(i=r.getPropertyOptions(t)),!((null!=(s=i.hasChanged)?s:Q)(n,e)||i.useDefault&&i.reflect&&n===(null==(o=this._$Ej)?void 0:o.get(t))&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:o},r){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=r?r:e)?a:this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return D(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}}var it;et.elementStyles=[],et.shadowRootOptions={mode:"open"},et.elementProperties=new Map,et.finalized=new Map,null==Z||Z({ReactiveElement:et}),(null!=(it=Y.reactiveElementVersions)?it:Y.reactiveElementVersions=[]).push("2.1.1");
22
+ */,{is:V,defineProperty:U,getOwnPropertyDescriptor:H,getOwnPropertyNames:q,getOwnPropertySymbols:W,getPrototypeOf:G}=Object,Y=globalThis,K=Y.trustedTypes,J=K?K.emptyScript:"",Z=Y.reactiveElementPolyfillSupport,X={toAttribute(t,e){switch(e){case Boolean:t=t?J:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Q=(t,e)=>!V(t,e),tt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:Q};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=Y.litPropertyMetadata||(Y.litPropertyMetadata=new WeakMap);let et=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=tt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&U(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var s;const{get:o,set:r}=null!=(s=H(this.prototype,t))?s:{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const s=null==o?void 0:o.call(this);null==r||r.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:tt}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=G(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...q(t),...W(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(R(t))}else void 0!==t&&e.push(R(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return $(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==(null==(i=s.converter)?void 0:i.toAttribute)?s.converter:X).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){var i,s,o;const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:X;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(o=null!=l?l:null==(s=this._$Ej)?void 0:s.get(n))?o:l,this._$Em=null}}requestUpdate(t,e,i,s=!1,o){var r,n;if(void 0!==t){const a=this.constructor;if(!1===s&&(o=this[t]),null!=i||(i=a.getPropertyOptions(t)),!((null!=(r=i.hasChanged)?r:Q)(o,e)||i.useDefault&&i.reflect&&o===(null==(n=this._$Ej)?void 0:n.get(t))&&!this.hasAttribute(a._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:o},r){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=r?r:e)?a:this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return D(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}};var it;et.elementStyles=[],et.shadowRootOptions={mode:"open"},et.elementProperties=new Map,et.finalized=new Map,null==Z||Z({ReactiveElement:et}),(null!=(it=Y.reactiveElementVersions)?it:Y.reactiveElementVersions=[]).push("2.1.2");
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
27
  */
28
- const st=globalThis,ot=st.trustedTypes,rt=ot?ot.createPolicy("lit-html",{createHTML:t=>t}):void 0,nt="$lit$",at=`lit$${Math.random().toFixed(9).slice(2)}$`,lt="?"+at,ht=`<${lt}>`,dt=document,ct=()=>dt.createComment(""),ut=t=>null===t||"object"!=typeof t&&"function"!=typeof t,pt=Array.isArray,mt="[ \t\n\f\r]",vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ft=/-->/g,bt=/>/g,gt=RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),yt=/'/g,wt=/"/g,xt=/^(?:script|style|textarea|title)$/i,_t=Symbol.for("lit-noChange"),kt=Symbol.for("lit-nothing"),Ct=new WeakMap,St=dt.createTreeWalker(dt,129);function At(t,e){if(!pt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==rt?rt.createHTML(e):e}class zt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=vt;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,l=n.exec(i),null!==l);)d=n.lastIndex,n===vt?"!--"===l[1]?n=ft:void 0!==l[1]?n=bt:void 0!==l[2]?(xt.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=gt):void 0!==l[3]&&(n=gt):n===gt?">"===l[0]?(n=null!=o?o:vt,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?gt:'"'===l[3]?wt:yt):n===wt||n===yt?n=gt:n===ft||n===bt?n=vt:(n=gt,o=void 0);const c=n===gt&&t[e+1].startsWith("/>")?" ":"";r+=n===vt?i+ht:h>=0?(s.push(a),i.slice(0,h)+nt+i.slice(h)+at+c):i+at+(-2===h?e:c)}return[At(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=zt.createElement(l,i),St.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=St.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(nt)){const e=h[r++],i=s.getAttribute(t).split(at),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?Et:"?"===n[1]?Bt:"@"===n[1]?Mt:Ot}),s.removeAttribute(t)}else t.startsWith(at)&&(a.push({type:6,index:o}),s.removeAttribute(t));if(xt.test(s.tagName)){const t=s.textContent.split(at),e=t.length-1;if(e>0){s.textContent=ot?ot.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],ct()),St.nextNode(),a.push({type:2,index:++o});s.append(t[e],ct())}}}else if(8===s.nodeType)if(s.data===lt)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(at,t+1));)a.push({type:7,index:o}),t+=at.length-1}o++}}static createElement(t,e){const i=dt.createElement("template");return i.innerHTML=t,i}}function It(t,e,i=t,s){var o,r,n;if(e===_t)return e;let a=void 0!==s?null==(o=i._$Co)?void 0:o[s]:i._$Cl;const l=ut(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null==(r=null==a?void 0:a._$AO)||r.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,i,s)),void 0!==s?(null!=(n=i._$Co)?n:i._$Co=[])[s]=a:i._$Cl=a),void 0!==a&&(e=It(t,a._$AS(t,e.values),a,s)),e}class Tt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!=(e=null==t?void 0:t.creationScope)?e:dt).importNode(i,!0);St.currentNode=o;let r=St.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Dt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new Pt(r,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=St.nextNode(),n++)}return St.currentNode=dt,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Dt{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,s){var o;this.type=2,this._$AH=kt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=null==(o=null==s?void 0:s.isConnected)||o}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){var i;t=It(this,t,e),ut(t)?t===kt||null==t||""===t?(this._$AH!==kt&&this._$AR(),this._$AH=kt):t!==this._$AH&&t!==_t&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):pt(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==kt&&ut(this._$AH)?this._$AA.nextSibling.data=t:this.T(dt.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=zt.createElement(At(s.h,s.h[0]),this.options)),s);if((null==(e=this._$AH)?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new Tt(o,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Ct.get(t.strings);return void 0===e&&Ct.set(t.strings,e=new zt(t)),e}k(t){pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new Dt(this.O(ct()),this.O(ct()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class Ot{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=kt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=kt}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=It(this,t,e,0),r=!ut(t)||t!==this._$AH&&t!==_t,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=It(this,s[i+n],e,n),a===_t&&(a=this._$AH[n]),r||(r=!ut(a)||a!==this._$AH[n]),a===kt?t=kt:t!==kt&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Et extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===kt?void 0:t}}class Bt extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==kt)}}class Mt extends Ot{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=It(this,t,e,0))?i:kt)===_t)return;const s=this._$AH,o=t===kt&&s!==kt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==kt&&(s===kt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class Pt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){It(this,t)}}const Nt=st.litHtmlPolyfillSupport;var jt;null==Nt||Nt(zt,Dt),(null!=(jt=st.litHtmlVersions)?jt:st.litHtmlVersions=[]).push("3.3.1");const Ft=(t,e,i)=>{var s,o;const r=null!=(s=null==i?void 0:i.renderBefore)?s:e;let n=r._$litPart$;if(void 0===n){const t=null!=(o=null==i?void 0:i.renderBefore)?o:null;r._$litPart$=n=new Dt(e.insertBefore(ct(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
28
+ const st=globalThis,ot=st.trustedTypes,rt=ot?ot.createPolicy("lit-html",{createHTML:t=>t}):void 0,nt="$lit$",at=`lit$${Math.random().toFixed(9).slice(2)}$`,lt="?"+at,ht=`<${lt}>`,dt=document,ct=()=>dt.createComment(""),ut=t=>null===t||"object"!=typeof t&&"function"!=typeof t,pt=Array.isArray,mt="[ \t\n\f\r]",vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ft=/-->/g,bt=/>/g,gt=RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),yt=/'/g,wt=/"/g,xt=/^(?:script|style|textarea|title)$/i,_t=Symbol.for("lit-noChange"),kt=Symbol.for("lit-nothing"),Ct=new WeakMap,St=dt.createTreeWalker(dt,129);function At(t,e){if(!pt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==rt?rt.createHTML(e):e}class zt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=vt;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,l=n.exec(i),null!==l);)d=n.lastIndex,n===vt?"!--"===l[1]?n=ft:void 0!==l[1]?n=bt:void 0!==l[2]?(xt.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=gt):void 0!==l[3]&&(n=gt):n===gt?">"===l[0]?(n=null!=o?o:vt,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?gt:'"'===l[3]?wt:yt):n===wt||n===yt?n=gt:n===ft||n===bt?n=vt:(n=gt,o=void 0);const c=n===gt&&t[e+1].startsWith("/>")?" ":"";r+=n===vt?i+ht:h>=0?(s.push(a),i.slice(0,h)+nt+i.slice(h)+at+c):i+at+(-2===h?e:c)}return[At(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=zt.createElement(l,i),St.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=St.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(nt)){const e=h[r++],i=s.getAttribute(t).split(at),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?Et:"?"===n[1]?Bt:"@"===n[1]?Mt:Ot}),s.removeAttribute(t)}else t.startsWith(at)&&(a.push({type:6,index:o}),s.removeAttribute(t));if(xt.test(s.tagName)){const t=s.textContent.split(at),e=t.length-1;if(e>0){s.textContent=ot?ot.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],ct()),St.nextNode(),a.push({type:2,index:++o});s.append(t[e],ct())}}}else if(8===s.nodeType)if(s.data===lt)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(at,t+1));)a.push({type:7,index:o}),t+=at.length-1}o++}}static createElement(t,e){const i=dt.createElement("template");return i.innerHTML=t,i}}function It(t,e,i=t,s){var o,r,n;if(e===_t)return e;let a=void 0!==s?null==(o=i._$Co)?void 0:o[s]:i._$Cl;const l=ut(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null==(r=null==a?void 0:a._$AO)||r.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,i,s)),void 0!==s?(null!=(n=i._$Co)?n:i._$Co=[])[s]=a:i._$Cl=a),void 0!==a&&(e=It(t,a._$AS(t,e.values),a,s)),e}class Tt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!=(e=null==t?void 0:t.creationScope)?e:dt).importNode(i,!0);St.currentNode=o;let r=St.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Dt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new Pt(r,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=St.nextNode(),n++)}return St.currentNode=dt,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Dt{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,s){var o;this.type=2,this._$AH=kt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=null==(o=null==s?void 0:s.isConnected)||o}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){var i;t=It(this,t,e),ut(t)?t===kt||null==t||""===t?(this._$AH!==kt&&this._$AR(),this._$AH=kt):t!==this._$AH&&t!==_t&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):pt(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==kt&&ut(this._$AH)?this._$AA.nextSibling.data=t:this.T(dt.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=zt.createElement(At(s.h,s.h[0]),this.options)),s);if((null==(e=this._$AH)?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new Tt(o,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Ct.get(t.strings);return void 0===e&&Ct.set(t.strings,e=new zt(t)),e}k(t){pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new Dt(this.O(ct()),this.O(ct()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class Ot{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=kt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=kt}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=It(this,t,e,0),r=!ut(t)||t!==this._$AH&&t!==_t,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=It(this,s[i+n],e,n),a===_t&&(a=this._$AH[n]),r||(r=!ut(a)||a!==this._$AH[n]),a===kt?t=kt:t!==kt&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Et extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===kt?void 0:t}}class Bt extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==kt)}}class Mt extends Ot{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=It(this,t,e,0))?i:kt)===_t)return;const s=this._$AH,o=t===kt&&s!==kt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==kt&&(s===kt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class Pt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){It(this,t)}}const Nt=st.litHtmlPolyfillSupport;var jt;null==Nt||Nt(zt,Dt),(null!=(jt=st.litHtmlVersions)?jt:st.litHtmlVersions=[]).push("3.3.2");const Ft=(t,e,i)=>{var s,o;const r=null!=(s=null==i?void 0:i.renderBefore)?s:e;let n=r._$litPart$;if(void 0===n){const t=null!=(o=null==i?void 0:i.renderBefore)?o:null;r._$litPart$=n=new Dt(e.insertBefore(ct(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
29
29
  /**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */},$t=globalThis;class Lt extends et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ft(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return _t}}var Rt;Lt._$litElement$=!0,Lt.finalized=!0,null==(Rt=$t.litElementHydrateSupport)||Rt.call($t,{LitElement:Lt});const Vt=$t.litElementPolyfillSupport;var Ut;null==Vt||Vt({LitElement:Lt}),(null!=(Ut=$t.litElementVersions)?Ut:$t.litElementVersions=[]).push("4.2.1");
33
+ */},$t=globalThis;class Lt extends et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ft(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return _t}}var Rt;Lt._$litElement$=!0,Lt.finalized=!0,null==(Rt=$t.litElementHydrateSupport)||Rt.call($t,{LitElement:Lt});const Vt=$t.litElementPolyfillSupport;var Ut;null==Vt||Vt({LitElement:Lt}),(null!=(Ut=$t.litElementVersions)?Ut:$t.litElementVersions=[]).push("4.2.2");
34
34
  /**
35
35
  * @license
36
36
  * Copyright (c) 2017 - 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:this.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}/games/${e}/draws/${i}/findDrawEvents`)||[]}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}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(t){this.maskClosable&&t.target===this.el.querySelector(".mask")&&this.cancel.emit()}handleConfirm(){this.confirm.emit()}render(){const t={width:"number"==typeof this.width?`${this.width}px`:this.width,"--duration":`${this.animationDuration}ms`},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":""].join(" ");return i("div",{key:"716c6488b86fc5a74bcd8c8c8a4eee1b85f75cb7",class:e.join(" "),ref:t=>this.stylingContainer=t},i("div",{key:"161d976b5a15f62c63b56555e161b5b29c0a7771",class:s.join(" "),onClick:this.handleMaskClick.bind(this)}),i("div",{key:"ebd2c356c169765b06c85997dc9906b74358b450",class:o,style:t,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},i("div",{key:"2a8616c336447b33d3c4b3f22deee3871abd93c9",class:"dialog-header"},i("h2",{key:"fc4f4f87826620754f8cce73874726cdebcc280e",id:"dialog-title",class:"dialog-title"},this.dialogTitle),this.closable&&i("button",{key:"1626434c0700df7dc094cbf0c96840476ab65da5",class:"close-btn",onClick:this.handleClose.bind(this)},"x")),i("div",{key:"44d28c0e477e3e16069749f7700ee70b6a486d07",class:"dialog-content",style:{maxHeight:"calc(100vh - 62px)",overflowY:"auto"}},i("slot",{key:"745e1329fc3647247245f7aa96d10a06b6b18329"})),this.showFooter&&i("div",{key:"cc3b19ba0ab16fd485f2c4e81a5793a25cecb98f",class:"dialog-footer"},i("slot",{key:"906adc00a3735e096159002b972804cfe147f42e",name:"footer"},this.showCancelBtn&&i("button",{key:"1fc68b04c7c39ca9b7dfb228836eb38c4368c355",class:"cancel-btn",onClick:this.handleClose.bind(this)},Jl("cancel",this.language)),i("button",{key:"1d054ca93148286249d4989c783a67e1afe33667",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-gray-400, #fff);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`)}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}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(t){this.maskClosable&&t.target===this.el.querySelector(".mask")&&this.cancel.emit()}handleConfirm(){this.confirm.emit()}render(){const t={width:"number"==typeof this.width?`${this.width}px`:this.width,"--duration":`${this.animationDuration}ms`},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":""].join(" ");return i("div",{key:"716c6488b86fc5a74bcd8c8c8a4eee1b85f75cb7",class:e.join(" "),ref:t=>this.stylingContainer=t},i("div",{key:"161d976b5a15f62c63b56555e161b5b29c0a7771",class:s.join(" "),onClick:this.handleMaskClick.bind(this)}),i("div",{key:"ebd2c356c169765b06c85997dc9906b74358b450",class:o,style:t,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},i("div",{key:"2a8616c336447b33d3c4b3f22deee3871abd93c9",class:"dialog-header"},i("h2",{key:"fc4f4f87826620754f8cce73874726cdebcc280e",id:"dialog-title",class:"dialog-title"},this.dialogTitle),this.closable&&i("button",{key:"1626434c0700df7dc094cbf0c96840476ab65da5",class:"close-btn",onClick:this.handleClose.bind(this)},"x")),i("div",{key:"44d28c0e477e3e16069749f7700ee70b6a486d07",class:"dialog-content",style:{maxHeight:"calc(100vh - 62px)",overflowY:"auto"}},i("slot",{key:"745e1329fc3647247245f7aa96d10a06b6b18329"})),this.showFooter&&i("div",{key:"cc3b19ba0ab16fd485f2c4e81a5793a25cecb98f",class:"dialog-footer"},i("slot",{key:"906adc00a3735e096159002b972804cfe147f42e",name:"footer"},this.showCancelBtn&&i("button",{key:"1fc68b04c7c39ca9b7dfb228836eb38c4368c355",class:"cancel-btn",onClick:this.handleClose.bind(this)},Jl("cancel",this.language)),i("button",{key:"1d054ca93148286249d4989c783a67e1afe33667",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-9b73f80a.js";import"./index-e66667d7.js";
1
+ export{L as LotteryOddsbomTicketHistory}from"./lottery-oddsbom-ticket-history-397fc07f.js";import"./index-e66667d7.js";