@everymatrix/lottery-oddsbom-ticket-history 0.6.27 → 0.6.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotteryOddsbomTicketHistory = require('./lottery-oddsbom-ticket-history-1ceed66d.js');
5
+ const lotteryOddsbomTicketHistory = require('./lottery-oddsbom-ticket-history-128607c9.js');
6
6
  require('./index-de3ae437.js');
7
7
 
8
8
 
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["filter-group_9.cjs",[[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);
11
+ return index.bootstrapLazy([["filter-group_9.cjs",[[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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -2724,9 +2724,9 @@ function formatDateToCustomFormat(isoString) {
2724
2724
  return `${dayName} ${day}${suffix} ${monthName}`;
2725
2725
  }
2726
2726
 
2727
- async function fetchTicketList({ endpointTicket, filterData, sessionId }) {
2727
+ async function fetchTicketList({ endpoint, filterData, sessionId }) {
2728
2728
  try {
2729
- const { items = [], total } = await fetchRequest(`${endpointTicket}/tickets${toQueryParams(filterData)}`, 'GET', null, {
2729
+ const { items = [], total } = await fetchRequest(`${endpoint}/tickets${toQueryParams(filterData)}`, 'GET', null, {
2730
2730
  Authorization: `Bearer ${sessionId}`
2731
2731
  });
2732
2732
  return {
@@ -2875,7 +2875,6 @@ const LotteryOddsbomTicketHistory = class {
2875
2875
  this.translationUrl = '';
2876
2876
  this.language = 'en';
2877
2877
  this.endpoint = undefined;
2878
- this.endpointTicket = undefined;
2879
2878
  this.gameId = undefined;
2880
2879
  this.playerId = undefined;
2881
2880
  this.sessionId = '';
@@ -2924,14 +2923,14 @@ const LotteryOddsbomTicketHistory = class {
2924
2923
  this.fetchTicketList();
2925
2924
  }
2926
2925
  async fetchTicketList() {
2927
- if (!this.endpointTicket || !this.sessionId) {
2928
- console.error('endpointTicket and sessionId are required');
2926
+ if (!this.endpoint || !this.sessionId) {
2927
+ console.error('endpoint and sessionId are required');
2929
2928
  return;
2930
2929
  }
2931
2930
  try {
2932
2931
  this.isLoading = true;
2933
2932
  const data = await fetchTicketList({
2934
- endpointTicket: this.endpointTicket,
2933
+ endpoint: this.endpoint,
2935
2934
  filterData: this.filterData,
2936
2935
  sessionId: this.sessionId
2937
2936
  });
@@ -2965,7 +2964,7 @@ const LotteryOddsbomTicketHistory = class {
2965
2964
  }
2966
2965
  render() {
2967
2966
  var _a, _b;
2968
- return (index.h("div", { key: '62ca9289f4ec446d91cb5035cd0bd224b79295bc', ref: (el) => (this.stylingContainer = el), class: "lottery-oddsbom-ticket-history-container" }, index.h("div", { key: '4e42ea93276f7c8e8cd8746093d5d540022b3b34', class: "lottery-oddsbom-ticket-history-wrapper" }, index.h("div", { key: '1421b4608734e540dd9d50c2af56f84315a40281', class: "lottery-oddsbom-ticket-history-container__title" }, translate('ticketsHistory', this.language)), index.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()) : (index.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) || []) })), index.h("div", { key: '71ceb1e0735b61e1da66d31f3978bbe71aa0948f', class: "pagination-wrap" }, index.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) })))));
2967
+ return (index.h("div", { key: '719a01651d21198644d4ace48e8b304e7165ab76', ref: (el) => (this.stylingContainer = el), class: "lottery-oddsbom-ticket-history-container" }, index.h("div", { key: '3086e38de3068a0af5da6ef631e657a2a460f774', class: "lottery-oddsbom-ticket-history-wrapper" }, index.h("div", { key: '6c06470b63b983ad75a400d49ae72c6becb25243', class: "lottery-oddsbom-ticket-history-container__title" }, translate('ticketsHistory', this.language)), index.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()) : (index.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) || []) })), index.h("div", { key: '0cfa07e6daab06253e2bd1d570dea052547fbbb0', class: "pagination-wrap" }, index.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) })))));
2969
2968
  }
2970
2969
  static get watchers() { return {
2971
2970
  "clientStyling": ["handleClientStylingChange"],
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["filter-group_9.cjs",[[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);
22
+ return index.bootstrapLazy([["filter-group_9.cjs",[[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);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -91,7 +91,7 @@ export class HistoryList {
91
91
  async handleActive(item, index) {
92
92
  const _drawResults = await buildDrawResults({
93
93
  endpoint: this.endpoint,
94
- gameId: this.gameId,
94
+ gameId: item.gameId,
95
95
  drawResults: item.drawResults
96
96
  });
97
97
  this.ticketHistory[index] = Object.assign(Object.assign({}, this.ticketHistory[index]), { drawResults: _drawResults });
@@ -16,7 +16,6 @@ export class LotteryOddsbomTicketHistory {
16
16
  this.translationUrl = '';
17
17
  this.language = 'en';
18
18
  this.endpoint = undefined;
19
- this.endpointTicket = undefined;
20
19
  this.gameId = undefined;
21
20
  this.playerId = undefined;
22
21
  this.sessionId = '';
@@ -65,14 +64,14 @@ export class LotteryOddsbomTicketHistory {
65
64
  this.fetchTicketList();
66
65
  }
67
66
  async fetchTicketList() {
68
- if (!this.endpointTicket || !this.sessionId) {
69
- console.error('endpointTicket and sessionId are required');
67
+ if (!this.endpoint || !this.sessionId) {
68
+ console.error('endpoint and sessionId are required');
70
69
  return;
71
70
  }
72
71
  try {
73
72
  this.isLoading = true;
74
73
  const data = await fetchTicketList({
75
- endpointTicket: this.endpointTicket,
74
+ endpoint: this.endpoint,
76
75
  filterData: this.filterData,
77
76
  sessionId: this.sessionId
78
77
  });
@@ -106,7 +105,7 @@ export class LotteryOddsbomTicketHistory {
106
105
  }
107
106
  render() {
108
107
  var _a, _b;
109
- 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) })))));
108
+ 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) })))));
110
109
  }
111
110
  static get is() { return "lottery-oddsbom-ticket-history"; }
112
111
  static get encapsulation() { return "shadow"; }
@@ -226,23 +225,6 @@ export class LotteryOddsbomTicketHistory {
226
225
  "attribute": "endpoint",
227
226
  "reflect": true
228
227
  },
229
- "endpointTicket": {
230
- "type": "string",
231
- "mutable": false,
232
- "complexType": {
233
- "original": "string",
234
- "resolved": "string",
235
- "references": {}
236
- },
237
- "required": false,
238
- "optional": false,
239
- "docs": {
240
- "tags": [],
241
- "text": "EndpointTicket URL for the source of ticket data"
242
- },
243
- "attribute": "endpoint-ticket",
244
- "reflect": true
245
- },
246
228
  "gameId": {
247
229
  "type": "string",
248
230
  "mutable": false,
@@ -1,7 +1,7 @@
1
1
  import { fetchRequest, toQueryParams } from "./utils";
2
- export async function fetchTicketList({ endpointTicket, filterData, sessionId }) {
2
+ export async function fetchTicketList({ endpoint, filterData, sessionId }) {
3
3
  try {
4
- const { items = [], total } = await fetchRequest(`${endpointTicket}/tickets${toQueryParams(filterData)}`, 'GET', null, {
4
+ const { items = [], total } = await fetchRequest(`${endpoint}/tickets${toQueryParams(filterData)}`, 'GET', null, {
5
5
  Authorization: `Bearer ${sessionId}`
6
6
  });
7
7
  return {