@everymatrix/lottery-draw-results-history 1.83.10 → 1.83.11

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.
@@ -9800,7 +9800,7 @@ const LotteryDrawResultsHistory = class {
9800
9800
  let url = new URL(`${this.endpoint}/games/${this.gameId}/draws`);
9801
9801
  url.searchParams.append('limit', this.limit.toString());
9802
9802
  url.searchParams.append('offset', this.offset.toString());
9803
- url.searchParams.append('excludeStatus', 'INIT,OPEN');
9803
+ url.searchParams.append('status', 'PAYABLE');
9804
9804
  if (this.dateFiltersFrom)
9805
9805
  url.searchParams.append('from', this.dateFiltersFrom);
9806
9806
  if (this.dateFiltersTo)
@@ -9813,7 +9813,7 @@ const LotteryDrawResultsHistory = class {
9813
9813
  return res.json();
9814
9814
  })
9815
9815
  .then((data) => {
9816
- this.winningDataSetsData = data.items ? data.items.filter(draw => draw.winningNumbers) : [];
9816
+ this.winningDataSetsData = data.items || [];
9817
9817
  this.drawData = this.winningDataSetsData.map((item) => item);
9818
9818
  this.totalResults = data.total;
9819
9819
  })
@@ -9909,9 +9909,9 @@ const LotteryDrawResultsHistory = class {
9909
9909
  clearInterval(this.interval);
9910
9910
  }
9911
9911
  render() {
9912
- let gridHeader = index.h("div", { key: '77c5f0d587b90c5548f60e045803452e95b8377c', class: "DrawResultsHeader" }, index.h("div", { key: '4aecd3e65ca3b687ed5f32ddd050932edcd4716d', class: "DrawResultsHeaderContent" }, index.h("h4", { key: '373c5c9d7e2e91e0561ee5dbb56b6cc1f0531fbe' }, translate$1('drawResultsHeader', this.language)), index.h("div", { key: '443cb8d63aee0bba92b9ff288bd18336030550ec', class: "FilterSection" }, index.h("helper-filters", { key: '1ed26ba1a261288d2d1c10a14d786da2b6ee4d6b', "activate-ticket-search": "false", "game-id": this.gameId, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))));
9913
- return index.h("section", { key: '1b2914b84b381721c9a96395f9629407e1444463', class: "GridWrapper", ref: el => this.stylingContainer = el }, index.h("div", { key: '98295c6cd09cd28719b738e16d6aee43be5426eb', class: "DrawResultsSection" }, index.h("div", { key: 'd29bcfe89ad920705c0551c2265e2b7a0a58d6b6', class: "DrawResultsAreaHistory" }, gridHeader, index.h("div", { key: '65b37fa0a70535b5de5f0fbecb3d221bbaa9cad6', class: "HistoryGridWrapper" }, index.h("div", { key: 'dec3e5dde880ecabaf8ccd624ac02de66f86ae82', class: "HistoryGrid" }, this.isLoading &&
9914
- index.h("p", { key: '4597f37c985b6e63540a74c3b28541974cb8798d' }, translate$1('loading', this.language)), !this.isLoading && !this.noResults && this.drawData.map((item) => index.h("lottery-draw-results", { endpoint: this.endpoint, "game-id": this.gameId, "draw-id": item.id, "draw-mode": true, language: this.language, "history-draw-data": this.transDataToString(item), "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), !this.isLoading && this.noResults && (index.h("p", { key: '1232ffaba11ae9ede882ce3421fb5087e04bdb87', class: "errorText" }, translate$1('noResults', this.language))))), index.h("div", { key: 'c1038f322eafd601df4066746f0f1eb605ade0b0', class: "DrawHistoryPaginationWrapper" }, (this.totalResults > this.limit) && index.h("lottery-pagination", { key: '496f30e9225389b7bc0c6d7784851a01e13ea3c8', arrowsActive: true, numberedNavActive: true, "is-reset": this.isReset, "first-page": false, "prev-page": true, "next-page": true, offset: this.offset, limit: this.limit, total: this.totalResults, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })))));
9912
+ let gridHeader = index.h("div", { key: '43dea3d7f12d1ac0b4df84ee15f3ff5192a16837', class: "DrawResultsHeader" }, index.h("div", { key: '3ee231127221e0c6dfef0e94a4b2bec613aa25f7', class: "DrawResultsHeaderContent" }, index.h("h4", { key: '7bc26099b3bb593b6e9229322e19941ecd38e093' }, translate$1('drawResultsHeader', this.language)), index.h("div", { key: '047d1f6718d26512801de33656a803435234eab1', class: "FilterSection" }, index.h("helper-filters", { key: '2f6ffe2fd2ae0d1a544a57d330991fd72a043a78', "activate-ticket-search": "false", "game-id": this.gameId, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))));
9913
+ return index.h("section", { key: '007d8200c91e7a99b911ea4e2b65be8932716a8e', class: "GridWrapper", ref: el => this.stylingContainer = el }, index.h("div", { key: 'aa947a1455794d7719fb17098743ea60e84d6eb1', class: "DrawResultsSection" }, index.h("div", { key: 'ab8019f6591d773e8e9d52bfd8ca11d61dd74b89', class: "DrawResultsAreaHistory" }, gridHeader, index.h("div", { key: '2a3fc14445339ba4895e8a9c7e99bcece2a54ca5', class: "HistoryGridWrapper" }, index.h("div", { key: '90a5560b549fcd9ae871084ff5a5ab998af686cd', class: "HistoryGrid" }, this.isLoading &&
9914
+ index.h("p", { key: 'af0bdfd22c48844da0942b128ee304b2168571b5' }, translate$1('loading', this.language)), !this.isLoading && !this.noResults && this.drawData.map((item) => index.h("lottery-draw-results", { endpoint: this.endpoint, "game-id": this.gameId, "draw-id": item.id, "draw-mode": true, language: this.language, "history-draw-data": this.transDataToString(item), "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), !this.isLoading && this.noResults && (index.h("p", { key: 'e0691b0f79b53410a4d4cba4439fb907552473f8', class: "errorText" }, translate$1('noResults', this.language))))), index.h("div", { key: '814919c0ea3baf1286ba2ef13fd405d21e417b19', class: "DrawHistoryPaginationWrapper" }, (this.totalResults > this.limit) && index.h("lottery-pagination", { key: '29f57cc28abab4a76fecb28a3039cf4f56d3f6f3', arrowsActive: true, numberedNavActive: true, "is-reset": this.isReset, "first-page": false, "prev-page": true, "next-page": true, offset: this.offset, limit: this.limit, total: this.totalResults, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })))));
9915
9915
  }
9916
9916
  static get watchers() { return {
9917
9917
  "clientStyling": ["handleClientStylingChange"],
@@ -14,7 +14,7 @@ export class LotteryDrawResultsHistory {
14
14
  let url = new URL(`${this.endpoint}/games/${this.gameId}/draws`);
15
15
  url.searchParams.append('limit', this.limit.toString());
16
16
  url.searchParams.append('offset', this.offset.toString());
17
- url.searchParams.append('excludeStatus', 'INIT,OPEN');
17
+ url.searchParams.append('status', 'PAYABLE');
18
18
  if (this.dateFiltersFrom)
19
19
  url.searchParams.append('from', this.dateFiltersFrom);
20
20
  if (this.dateFiltersTo)
@@ -27,7 +27,7 @@ export class LotteryDrawResultsHistory {
27
27
  return res.json();
28
28
  })
29
29
  .then((data) => {
30
- this.winningDataSetsData = data.items ? data.items.filter(draw => draw.winningNumbers) : [];
30
+ this.winningDataSetsData = data.items || [];
31
31
  this.drawData = this.winningDataSetsData.map((item) => item);
32
32
  this.totalResults = data.total;
33
33
  })
@@ -123,9 +123,9 @@ export class LotteryDrawResultsHistory {
123
123
  clearInterval(this.interval);
124
124
  }
125
125
  render() {
126
- let gridHeader = h("div", { key: '77c5f0d587b90c5548f60e045803452e95b8377c', class: "DrawResultsHeader" }, h("div", { key: '4aecd3e65ca3b687ed5f32ddd050932edcd4716d', class: "DrawResultsHeaderContent" }, h("h4", { key: '373c5c9d7e2e91e0561ee5dbb56b6cc1f0531fbe' }, translate('drawResultsHeader', this.language)), h("div", { key: '443cb8d63aee0bba92b9ff288bd18336030550ec', class: "FilterSection" }, h("helper-filters", { key: '1ed26ba1a261288d2d1c10a14d786da2b6ee4d6b', "activate-ticket-search": "false", "game-id": this.gameId, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))));
127
- return h("section", { key: '1b2914b84b381721c9a96395f9629407e1444463', class: "GridWrapper", ref: el => this.stylingContainer = el }, h("div", { key: '98295c6cd09cd28719b738e16d6aee43be5426eb', class: "DrawResultsSection" }, h("div", { key: 'd29bcfe89ad920705c0551c2265e2b7a0a58d6b6', class: "DrawResultsAreaHistory" }, gridHeader, h("div", { key: '65b37fa0a70535b5de5f0fbecb3d221bbaa9cad6', class: "HistoryGridWrapper" }, h("div", { key: 'dec3e5dde880ecabaf8ccd624ac02de66f86ae82', class: "HistoryGrid" }, this.isLoading &&
128
- h("p", { key: '4597f37c985b6e63540a74c3b28541974cb8798d' }, translate('loading', this.language)), !this.isLoading && !this.noResults && this.drawData.map((item) => h("lottery-draw-results", { endpoint: this.endpoint, "game-id": this.gameId, "draw-id": item.id, "draw-mode": true, language: this.language, "history-draw-data": this.transDataToString(item), "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), !this.isLoading && this.noResults && (h("p", { key: '1232ffaba11ae9ede882ce3421fb5087e04bdb87', class: "errorText" }, translate('noResults', this.language))))), h("div", { key: 'c1038f322eafd601df4066746f0f1eb605ade0b0', class: "DrawHistoryPaginationWrapper" }, (this.totalResults > this.limit) && h("lottery-pagination", { key: '496f30e9225389b7bc0c6d7784851a01e13ea3c8', arrowsActive: true, numberedNavActive: true, "is-reset": this.isReset, "first-page": false, "prev-page": true, "next-page": true, offset: this.offset, limit: this.limit, total: this.totalResults, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })))));
126
+ let gridHeader = h("div", { key: '43dea3d7f12d1ac0b4df84ee15f3ff5192a16837', class: "DrawResultsHeader" }, h("div", { key: '3ee231127221e0c6dfef0e94a4b2bec613aa25f7', class: "DrawResultsHeaderContent" }, h("h4", { key: '7bc26099b3bb593b6e9229322e19941ecd38e093' }, translate('drawResultsHeader', this.language)), h("div", { key: '047d1f6718d26512801de33656a803435234eab1', class: "FilterSection" }, h("helper-filters", { key: '2f6ffe2fd2ae0d1a544a57d330991fd72a043a78', "activate-ticket-search": "false", "game-id": this.gameId, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))));
127
+ return h("section", { key: '007d8200c91e7a99b911ea4e2b65be8932716a8e', class: "GridWrapper", ref: el => this.stylingContainer = el }, h("div", { key: 'aa947a1455794d7719fb17098743ea60e84d6eb1', class: "DrawResultsSection" }, h("div", { key: 'ab8019f6591d773e8e9d52bfd8ca11d61dd74b89', class: "DrawResultsAreaHistory" }, gridHeader, h("div", { key: '2a3fc14445339ba4895e8a9c7e99bcece2a54ca5', class: "HistoryGridWrapper" }, h("div", { key: '90a5560b549fcd9ae871084ff5a5ab998af686cd', class: "HistoryGrid" }, this.isLoading &&
128
+ h("p", { key: 'af0bdfd22c48844da0942b128ee304b2168571b5' }, translate('loading', this.language)), !this.isLoading && !this.noResults && this.drawData.map((item) => h("lottery-draw-results", { endpoint: this.endpoint, "game-id": this.gameId, "draw-id": item.id, "draw-mode": true, language: this.language, "history-draw-data": this.transDataToString(item), "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), !this.isLoading && this.noResults && (h("p", { key: 'e0691b0f79b53410a4d4cba4439fb907552473f8', class: "errorText" }, translate('noResults', this.language))))), h("div", { key: '814919c0ea3baf1286ba2ef13fd405d21e417b19', class: "DrawHistoryPaginationWrapper" }, (this.totalResults > this.limit) && h("lottery-pagination", { key: '29f57cc28abab4a76fecb28a3039cf4f56d3f6f3', arrowsActive: true, numberedNavActive: true, "is-reset": this.isReset, "first-page": false, "prev-page": true, "next-page": true, offset: this.offset, limit: this.limit, total: this.totalResults, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })))));
129
129
  }
130
130
  static get is() { return "lottery-draw-results-history"; }
131
131
  static get encapsulation() { return "shadow"; }
@@ -9796,7 +9796,7 @@ const LotteryDrawResultsHistory = class {
9796
9796
  let url = new URL(`${this.endpoint}/games/${this.gameId}/draws`);
9797
9797
  url.searchParams.append('limit', this.limit.toString());
9798
9798
  url.searchParams.append('offset', this.offset.toString());
9799
- url.searchParams.append('excludeStatus', 'INIT,OPEN');
9799
+ url.searchParams.append('status', 'PAYABLE');
9800
9800
  if (this.dateFiltersFrom)
9801
9801
  url.searchParams.append('from', this.dateFiltersFrom);
9802
9802
  if (this.dateFiltersTo)
@@ -9809,7 +9809,7 @@ const LotteryDrawResultsHistory = class {
9809
9809
  return res.json();
9810
9810
  })
9811
9811
  .then((data) => {
9812
- this.winningDataSetsData = data.items ? data.items.filter(draw => draw.winningNumbers) : [];
9812
+ this.winningDataSetsData = data.items || [];
9813
9813
  this.drawData = this.winningDataSetsData.map((item) => item);
9814
9814
  this.totalResults = data.total;
9815
9815
  })
@@ -9905,9 +9905,9 @@ const LotteryDrawResultsHistory = class {
9905
9905
  clearInterval(this.interval);
9906
9906
  }
9907
9907
  render() {
9908
- let gridHeader = h("div", { key: '77c5f0d587b90c5548f60e045803452e95b8377c', class: "DrawResultsHeader" }, h("div", { key: '4aecd3e65ca3b687ed5f32ddd050932edcd4716d', class: "DrawResultsHeaderContent" }, h("h4", { key: '373c5c9d7e2e91e0561ee5dbb56b6cc1f0531fbe' }, translate$1('drawResultsHeader', this.language)), h("div", { key: '443cb8d63aee0bba92b9ff288bd18336030550ec', class: "FilterSection" }, h("helper-filters", { key: '1ed26ba1a261288d2d1c10a14d786da2b6ee4d6b', "activate-ticket-search": "false", "game-id": this.gameId, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))));
9909
- return h("section", { key: '1b2914b84b381721c9a96395f9629407e1444463', class: "GridWrapper", ref: el => this.stylingContainer = el }, h("div", { key: '98295c6cd09cd28719b738e16d6aee43be5426eb', class: "DrawResultsSection" }, h("div", { key: 'd29bcfe89ad920705c0551c2265e2b7a0a58d6b6', class: "DrawResultsAreaHistory" }, gridHeader, h("div", { key: '65b37fa0a70535b5de5f0fbecb3d221bbaa9cad6', class: "HistoryGridWrapper" }, h("div", { key: 'dec3e5dde880ecabaf8ccd624ac02de66f86ae82', class: "HistoryGrid" }, this.isLoading &&
9910
- h("p", { key: '4597f37c985b6e63540a74c3b28541974cb8798d' }, translate$1('loading', this.language)), !this.isLoading && !this.noResults && this.drawData.map((item) => h("lottery-draw-results", { endpoint: this.endpoint, "game-id": this.gameId, "draw-id": item.id, "draw-mode": true, language: this.language, "history-draw-data": this.transDataToString(item), "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), !this.isLoading && this.noResults && (h("p", { key: '1232ffaba11ae9ede882ce3421fb5087e04bdb87', class: "errorText" }, translate$1('noResults', this.language))))), h("div", { key: 'c1038f322eafd601df4066746f0f1eb605ade0b0', class: "DrawHistoryPaginationWrapper" }, (this.totalResults > this.limit) && h("lottery-pagination", { key: '496f30e9225389b7bc0c6d7784851a01e13ea3c8', arrowsActive: true, numberedNavActive: true, "is-reset": this.isReset, "first-page": false, "prev-page": true, "next-page": true, offset: this.offset, limit: this.limit, total: this.totalResults, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })))));
9908
+ let gridHeader = h("div", { key: '43dea3d7f12d1ac0b4df84ee15f3ff5192a16837', class: "DrawResultsHeader" }, h("div", { key: '3ee231127221e0c6dfef0e94a4b2bec613aa25f7', class: "DrawResultsHeaderContent" }, h("h4", { key: '7bc26099b3bb593b6e9229322e19941ecd38e093' }, translate$1('drawResultsHeader', this.language)), h("div", { key: '047d1f6718d26512801de33656a803435234eab1', class: "FilterSection" }, h("helper-filters", { key: '2f6ffe2fd2ae0d1a544a57d330991fd72a043a78', "activate-ticket-search": "false", "game-id": this.gameId, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))));
9909
+ return h("section", { key: '007d8200c91e7a99b911ea4e2b65be8932716a8e', class: "GridWrapper", ref: el => this.stylingContainer = el }, h("div", { key: 'aa947a1455794d7719fb17098743ea60e84d6eb1', class: "DrawResultsSection" }, h("div", { key: 'ab8019f6591d773e8e9d52bfd8ca11d61dd74b89', class: "DrawResultsAreaHistory" }, gridHeader, h("div", { key: '2a3fc14445339ba4895e8a9c7e99bcece2a54ca5', class: "HistoryGridWrapper" }, h("div", { key: '90a5560b549fcd9ae871084ff5a5ab998af686cd', class: "HistoryGrid" }, this.isLoading &&
9910
+ h("p", { key: 'af0bdfd22c48844da0942b128ee304b2168571b5' }, translate$1('loading', this.language)), !this.isLoading && !this.noResults && this.drawData.map((item) => h("lottery-draw-results", { endpoint: this.endpoint, "game-id": this.gameId, "draw-id": item.id, "draw-mode": true, language: this.language, "history-draw-data": this.transDataToString(item), "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), !this.isLoading && this.noResults && (h("p", { key: 'e0691b0f79b53410a4d4cba4439fb907552473f8', class: "errorText" }, translate$1('noResults', this.language))))), h("div", { key: '814919c0ea3baf1286ba2ef13fd405d21e417b19', class: "DrawHistoryPaginationWrapper" }, (this.totalResults > this.limit) && h("lottery-pagination", { key: '29f57cc28abab4a76fecb28a3039cf4f56d3f6f3', arrowsActive: true, numberedNavActive: true, "is-reset": this.isReset, "first-page": false, "prev-page": true, "next-page": true, offset: this.offset, limit: this.limit, total: this.totalResults, language: this.language, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })))));
9911
9911
  }
9912
9912
  static get watchers() { return {
9913
9913
  "clientStyling": ["handleClientStylingChange"],