@everymatrix/lottery-game-page 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/cjs/helper-accordion_2.cjs.entry.js +126 -0
  2. package/dist/cjs/helper-accordion_2.cjs.entry.js.map +1 -0
  3. package/dist/cjs/{lottery-draw-results.cjs.entry.js → helper-filters_2.cjs.entry.js} +133 -1
  4. package/dist/cjs/helper-filters_2.cjs.entry.js.map +1 -0
  5. package/dist/cjs/helper-modal.cjs.entry.js +3 -1
  6. package/dist/cjs/helper-modal.cjs.entry.js.map +1 -0
  7. package/dist/cjs/helper-pagination.cjs.entry.js +190 -0
  8. package/dist/cjs/helper-pagination.cjs.entry.js.map +1 -0
  9. package/dist/cjs/helper-tab.cjs.entry.js +38 -0
  10. package/dist/cjs/helper-tab.cjs.entry.js.map +1 -0
  11. package/dist/cjs/{index-614098f4.js → index-65086a23.js} +9 -0
  12. package/dist/cjs/index-65086a23.js.map +1 -0
  13. package/dist/cjs/index.cjs.js +2 -0
  14. package/dist/cjs/index.cjs.js.map +1 -0
  15. package/dist/cjs/loader.cjs.js +4 -2
  16. package/dist/cjs/loader.cjs.js.map +1 -0
  17. package/dist/cjs/lottery-draw-results-history.cjs.entry.js +164 -0
  18. package/dist/cjs/lottery-draw-results-history.cjs.entry.js.map +1 -0
  19. package/dist/cjs/lottery-game-details.cjs.entry.js +21 -0
  20. package/dist/cjs/lottery-game-details.cjs.entry.js.map +1 -0
  21. package/dist/cjs/lottery-game-page.cjs.entry.js +3 -4
  22. package/dist/cjs/lottery-game-page.cjs.entry.js.map +1 -0
  23. package/dist/cjs/lottery-game-page.cjs.js +4 -2
  24. package/dist/cjs/lottery-game-page.cjs.js.map +1 -0
  25. package/dist/collection/collection-manifest.json +37 -0
  26. package/dist/collection/components/lottery-game-page/lottery-game-page.js +1 -1
  27. package/dist/collection/components/lottery-game-page/lottery-game-page.js.map +1 -0
  28. package/dist/collection/index.js +1 -0
  29. package/dist/collection/index.js.map +1 -0
  30. package/dist/collection/utils/locale.utils.js +1 -0
  31. package/dist/collection/utils/locale.utils.js.map +1 -0
  32. package/dist/collection/utils/utils.js +1 -0
  33. package/dist/collection/utils/utils.js.map +1 -0
  34. package/dist/components/helper-accordion.js +8 -0
  35. package/dist/components/helper-accordion.js.map +1 -0
  36. package/dist/components/helper-accordion2.js +118 -0
  37. package/dist/components/helper-accordion2.js.map +1 -0
  38. package/dist/components/helper-filters.js +8 -0
  39. package/dist/components/helper-filters.js.map +1 -0
  40. package/dist/components/helper-filters2.js +168 -0
  41. package/dist/components/helper-filters2.js.map +1 -0
  42. package/dist/components/helper-modal.js +2 -0
  43. package/dist/components/helper-modal.js.map +1 -0
  44. package/dist/components/helper-modal2.js +2 -0
  45. package/dist/components/helper-modal2.js.map +1 -0
  46. package/dist/components/helper-pagination.js +218 -0
  47. package/dist/components/helper-pagination.js.map +1 -0
  48. package/dist/components/helper-tab.js +8 -0
  49. package/dist/components/helper-tab.js.map +1 -0
  50. package/dist/components/helper-tab2.js +54 -0
  51. package/dist/components/helper-tab2.js.map +1 -0
  52. package/dist/components/helper-tabs.js +8 -0
  53. package/dist/components/helper-tabs.js.map +1 -0
  54. package/dist/components/helper-tabs2.js +65 -0
  55. package/dist/components/helper-tabs2.js.map +1 -0
  56. package/dist/components/index.js +2 -0
  57. package/dist/components/index.js.map +1 -0
  58. package/dist/components/lottery-draw-results-history.js +8 -0
  59. package/dist/components/lottery-draw-results-history.js.map +1 -0
  60. package/dist/components/lottery-draw-results-history2.js +207 -0
  61. package/dist/components/lottery-draw-results-history2.js.map +1 -0
  62. package/dist/components/lottery-draw-results.js +2 -0
  63. package/dist/components/lottery-draw-results.js.map +1 -0
  64. package/dist/components/lottery-draw-results2.js +2 -0
  65. package/dist/components/lottery-draw-results2.js.map +1 -0
  66. package/dist/components/lottery-game-details.js +8 -0
  67. package/dist/components/lottery-game-details.js.map +1 -0
  68. package/dist/components/lottery-game-details2.js +51 -0
  69. package/dist/components/lottery-game-details2.js.map +1 -0
  70. package/dist/components/lottery-game-page.js +42 -7
  71. package/dist/components/lottery-game-page.js.map +1 -0
  72. package/dist/esm/helper-accordion_2.entry.js +121 -0
  73. package/dist/esm/helper-accordion_2.entry.js.map +1 -0
  74. package/dist/esm/{lottery-draw-results.entry.js → helper-filters_2.entry.js} +133 -2
  75. package/dist/esm/helper-filters_2.entry.js.map +1 -0
  76. package/dist/esm/helper-modal.entry.js +3 -1
  77. package/dist/esm/helper-modal.entry.js.map +1 -0
  78. package/dist/esm/helper-pagination.entry.js +186 -0
  79. package/dist/esm/helper-pagination.entry.js.map +1 -0
  80. package/dist/esm/helper-tab.entry.js +34 -0
  81. package/dist/esm/helper-tab.entry.js.map +1 -0
  82. package/dist/esm/{index-0fa076cd.js → index-11dea618.js} +9 -0
  83. package/dist/esm/index-11dea618.js.map +1 -0
  84. package/dist/esm/index.js +2 -0
  85. package/dist/esm/index.js.map +1 -0
  86. package/dist/esm/loader.js +4 -2
  87. package/dist/esm/loader.js.map +1 -0
  88. package/dist/esm/lottery-draw-results-history.entry.js +160 -0
  89. package/dist/esm/lottery-draw-results-history.entry.js.map +1 -0
  90. package/dist/esm/lottery-game-details.entry.js +17 -0
  91. package/dist/esm/lottery-game-details.entry.js.map +1 -0
  92. package/dist/esm/lottery-game-page.entry.js +3 -4
  93. package/dist/esm/lottery-game-page.entry.js.map +1 -0
  94. package/dist/esm/lottery-game-page.js +4 -2
  95. package/dist/esm/lottery-game-page.js.map +1 -0
  96. package/dist/lottery-game-page/index.esm.js +2 -0
  97. package/dist/lottery-game-page/index.esm.js.map +1 -0
  98. package/dist/lottery-game-page/lottery-game-page.esm.js +2 -1
  99. package/dist/lottery-game-page/lottery-game-page.esm.js.map +1 -0
  100. package/dist/lottery-game-page/p-0ffa81cc.entry.js +2 -0
  101. package/dist/lottery-game-page/p-0ffa81cc.entry.js.map +1 -0
  102. package/dist/lottery-game-page/p-3a9ad86b.js +2 -0
  103. package/dist/lottery-game-page/p-3a9ad86b.js.map +1 -0
  104. package/dist/lottery-game-page/p-3e00e24b.entry.js +2 -0
  105. package/dist/lottery-game-page/p-3e00e24b.entry.js.map +1 -0
  106. package/dist/lottery-game-page/p-4a79f68c.entry.js +2 -0
  107. package/dist/lottery-game-page/p-4a79f68c.entry.js.map +1 -0
  108. package/dist/lottery-game-page/p-978fd922.entry.js +2 -0
  109. package/dist/lottery-game-page/p-978fd922.entry.js.map +1 -0
  110. package/dist/lottery-game-page/p-bd53d31a.entry.js +2 -0
  111. package/dist/lottery-game-page/p-bd53d31a.entry.js.map +1 -0
  112. package/dist/lottery-game-page/p-bfa5e84c.entry.js +2 -0
  113. package/dist/lottery-game-page/p-bfa5e84c.entry.js.map +1 -0
  114. package/dist/lottery-game-page/p-dedb92e5.entry.js +2 -0
  115. package/dist/lottery-game-page/p-dedb92e5.entry.js.map +1 -0
  116. package/dist/lottery-game-page/p-f4592d65.entry.js +2 -0
  117. package/dist/lottery-game-page/p-f4592d65.entry.js.map +1 -0
  118. package/dist/stencil.config.js +7 -1
  119. package/dist/stencil.config.js.map +1 -0
  120. package/package.json +2 -2
  121. package/dist/lottery-game-page/p-2d7ccc96.js +0 -1
  122. package/dist/lottery-game-page/p-6183a920.entry.js +0 -1
  123. package/dist/lottery-game-page/p-9ca649d9.entry.js +0 -1
  124. package/dist/lottery-game-page/p-e98ee83a.entry.js +0 -1
@@ -0,0 +1 @@
1
+ {"file":"helper-pagination.js","mappings":";;AAGA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,QAAQ,GAAG,CAAC,SAAS,KAAK;AACvC,EAAE,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;AACrD,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;AACnD,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC;AACtD,IAA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AE,UAAU,CAAC,EAAE,EAAE,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;KACtJ;IACD,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,qBAAqB,EAAE,EAC5C,eAAe,EACf,cAAc,EACd,gBAAgB,CAAC,EAAE;GACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["HelperPagination"],"sources":["../helper-pagination/dist/collection/utils/utils.js","../helper-pagination/dist/collection/utils/locale.utils.js","../helper-pagination/dist/collection/components/helper-pagination/helper-pagination.css?tag=helper-pagination&encapsulation=shadow","../helper-pagination/dist/collection/components/helper-pagination/helper-pagination.js"],"sourcesContent":["export function format(first, middle, last) {\n return ((first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : ''));\n}\n/**\n * @name isMobile\n * @description A method that returns if the browser used to access the app is from a mobile device or not\n * @param {String} userAgent window.navigator.userAgent\n * @returns {Boolean} true or false\n */\nexport const isMobile = (userAgent) => {\n return !!(userAgent.toLowerCase().match(/android/i) ||\n userAgent.toLowerCase().match(/blackberry|bb/i) ||\n userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||\n userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));\n};\n","const DEFAULT_LANGUAGE = 'en';\nconst SUPPORTED_LANGUAGES = ['ro', 'en'];\nconst TRANSLATIONS = {\n en: {\n firstPage: 'First',\n previousPage: 'Previous',\n nextPage: 'Next',\n lastPage: 'Last'\n },\n ro: {\n firstPage: 'Prima',\n previousPage: 'Anterior',\n nextPage: 'Urmatoarea',\n lastPage: 'Ultima'\n },\n};\nexport const translate = (key, customLang) => {\n const lang = customLang;\n return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];\n};\n","@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");\n:host {\n display: block;\n font-family: \"Roboto\", sans-serif;\n}\n\n#PaginationContainer {\n width: 100%;\n margin-top: 20px;\n display: inline-flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.LeftItems button:not(:first-child), .RightItems button:not(:last-child) {\n margin: 0 10px;\n}\n\n.LeftItems button, .RightItems button {\n padding: 0;\n background-color: #009993;\n border-color: #009993;\n}\n\n.PaginationArea {\n display: inline-flex;\n gap: 10px;\n list-style: none;\n}\n\n.PaginationArea li {\n margin: 0;\n padding: 0;\n}\n\n.PaginationArea li button {\n width: 24px;\n height: 24px;\n display: flex;\n border: 0;\n padding: 0;\n justify-content: center;\n align-items: center;\n background-color: transparent;\n color: #000;\n cursor: pointer;\n pointer-events: all;\n}\n\n.PaginationItem.ActiveItem button {\n background: #009993;\n border-color: #009993;\n color: #fff;\n}\n\n.PaginationItem.ActiveItem button:disabled {\n pointer-events: none;\n cursor: not-allowed;\n}\n\n.PaginationItem button:hover,\n.PaginationItem button:active {\n background: #009993;\n border-color: #009993;\n color: #fff;\n opacity: 0.8;\n}\n\nbutton {\n width: 100px;\n height: 32px;\n border: 1px solid #524e52;\n border-radius: 5px;\n background: #524e52;\n color: #fff;\n font-size: 14px;\n font: inherit;\n cursor: pointer;\n transition: all 0.1s linear;\n text-transform: uppercase;\n text-align: center;\n letter-spacing: 0;\n}\n\nbutton:hover,\nbutton:active {\n background: #004D4A;\n border-color: #004D4A;\n}\n\nbutton:disabled {\n background-color: #ccc;\n border-color: #ccc;\n color: #fff;\n cursor: not-allowed;\n}\n\n@media screen and (max-width: 720px) {\n button {\n width: 90px;\n font-size: 12px;\n }\n}\n@media screen and (max-width: 480px) {\n button {\n width: 70px;\n font-size: 10px;\n }\n\n .paginationArea {\n padding: 5px;\n }\n}\n@media screen and (max-width: 320px) {\n button {\n width: 58px;\n font-size: 10px;\n }\n\n .paginationArea {\n padding: 5px;\n gap: 5px;\n }\n}\n/* fix for issue on hover/visited for mobile devices */\n@media (hover: none) {\n .paginationItem button:hover {\n background: inherit;\n border-color: inherit;\n color: inherit;\n opacity: 1;\n }\n\n .paginationItem.activeItem button:hover {\n background: #009993;\n border-color: #009993;\n color: #fff;\n }\n}","import { Component, h, Event, Prop, State } from '@stencil/core';\nimport { isMobile } from \"../../utils/utils\";\nimport { translate } from '../../utils/locale.utils';\nexport class HelperPagination {\n constructor() {\n /**\n * First page boolean value - determines if the page is disabled or active\n */\n this.firstPage = false;\n /**\n * Previous page boolean value - determines if the page is disabled or active\n */\n this.previousPage = false;\n /**\n * The received offset\n */\n this.offset = 0;\n /**\n * The received limit for the number of pages\n */\n this.limit = 1;\n /**\n * The received total number of pages\n */\n this.total = 1;\n /**\n * Language\n */\n this.language = 'en';\n /**\n * In component working variable for the array of pages\n */\n this.pagesArray = [];\n /**\n * In component working variable for last page\n */\n this.endInt = 0;\n this.userAgent = window.navigator.userAgent;\n this.currentPage = 1;\n /**\n * Navigation logic\n */\n this.navigateTo = (navigationPage) => {\n switch (navigationPage) {\n case 'firstPage':\n this.offsetInt = 0;\n break;\n case 'lastPage':\n this.offsetInt = this.endInt * this.limitInt;\n break;\n case 'previousPage':\n this.offsetInt -= 10;\n break;\n case 'nextPage':\n this.offsetInt += 10;\n break;\n case 'fivePagesBack':\n this.offsetInt -= 30;\n this.offsetInt = this.offsetInt < 0 ? 0 : this.offsetInt;\n break;\n case 'fivePagesForward':\n this.offsetInt += 30;\n this.offsetInt = this.offsetInt / 10 >= this.endInt ? this.endInt * 10 : this.offsetInt;\n break;\n }\n this.hpPageChange.emit({ offset: this.offsetInt, limit: this.limitInt, total: this.totalInt });\n };\n /**\n * Handle navigation from here\n */\n this.paginationNavigation = (pageNumber, index) => {\n if (!isNaN(pageNumber)) {\n if (pageNumber === 1) {\n this.offsetInt = pageNumber - 1;\n }\n else {\n this.offsetInt = (pageNumber - 1) * 10;\n }\n }\n else {\n if (index === 0 && this.currentPage <= 4) {\n this.navigateTo('firstPage');\n }\n else if (index === 0 && this.currentPage > 4) {\n this.navigateTo('fivePagesBack');\n }\n else if (index === 4 && this.endInt - this.currentPage >= 2) {\n this.navigateTo('fivePagesForward');\n }\n }\n this.currentPage = this.offsetInt;\n this.hpPageChange.emit({ offset: this.offsetInt, limit: this.limitInt, total: this.totalInt });\n };\n }\n componentWillRender() {\n this.offsetInt = this.offset;\n this.currentPage = this.offsetInt / this.limitInt + 1;\n this.limitInt = this.limit;\n this.totalInt = this.total;\n this.endInt = (Math.ceil(this.totalInt / this.limitInt) - 1);\n this.lastPage = (this.offsetInt >= this.endInt * this.limitInt) ? false : true;\n /**\n * Construct numbered navigation area based on current page position\n */\n if (this.currentPage === 1 || this.currentPage === 2) {\n this.pagesArray = Array.from({ length: 4 }, (_, i) => i + 1);\n this.pagesArray.push('...');\n }\n else if (this.currentPage >= 3 && ((this.endInt - this.currentPage) >= 2)) {\n this.pagesArray = Array.from({ length: 3 }, (_, i) => this.currentPage + i - 1);\n this.pagesArray.push('...');\n this.pagesArray.unshift('...');\n }\n else if ((this.endInt - this.currentPage) < 3) {\n this.pagesArray = Array.from({ length: 4 }, (_, i) => this.endInt - 2 + i);\n this.pagesArray.unshift('...');\n }\n }\n render() {\n /**\n * Center navigation area\n */\n let navigationArea = h(\"ul\", { class: \"PaginationArea\" }, this.pagesArray.map((item, index) => {\n return (h(\"li\", { class: 'PaginationItem' + (item === this.currentPage ? ' ActiveItem' : ' ') + ' ' + (isMobile(this.userAgent) ? 'MobileButtons' : '') },\n h(\"button\", { disabled: item === this.currentPage ? true : false, onClick: this.paginationNavigation.bind(this, item, index) },\n h(\"span\", null, item))));\n }));\n /**\n * Left navigation area\n */\n let buttonsLeftSide = h(\"div\", { class: \"LeftItems\" },\n h(\"button\", { disabled: !this.previousPage, onClick: this.navigateTo.bind(this, 'firstPage') }, translate('firstPage', this.language)),\n h(\"button\", { disabled: !this.previousPage ? true : false, onClick: this.navigateTo.bind(this, 'previousPage') }, translate('previousPage', this.language)));\n if (isMobile(this.userAgent)) {\n buttonsLeftSide =\n h(\"div\", { class: \"LeftItems\" },\n h(\"button\", { disabled: !this.previousPage ? true : false, onClick: this.navigateTo.bind(this, 'previousPage') }, translate('previousPage', this.language)));\n }\n /**\n * Right navigation area\n */\n let buttonsRightSide = h(\"div\", { class: \"RightItems\" },\n h(\"button\", { disabled: !this.lastPage ? true : false, onClick: this.navigateTo.bind(this, 'nextPage') }, translate('nextPage', this.language)),\n h(\"button\", { disabled: !this.lastPage ? true : false, onClick: this.navigateTo.bind(this, 'lastPage') }, translate('lastPage', this.language)));\n if (isMobile(this.userAgent)) {\n buttonsRightSide =\n h(\"div\", { class: \"RightItems\" },\n h(\"button\", { disabled: !this.lastPage ? true : false, onClick: this.navigateTo.bind(this, 'nextPage') }, translate('nextPage', this.language)));\n }\n return (h(\"div\", { id: \"PaginationContainer\" },\n buttonsLeftSide,\n navigationArea,\n buttonsRightSide));\n }\n static get is() { return \"helper-pagination\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"helper-pagination.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"helper-pagination.css\"]\n }; }\n static get properties() { return {\n \"firstPage\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"First page boolean value - determines if the page is disabled or active\"\n },\n \"attribute\": \"first-page\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"previousPage\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Previous page boolean value - determines if the page is disabled or active\"\n },\n \"attribute\": \"previous-page\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"offset\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The received offset\"\n },\n \"attribute\": \"offset\",\n \"reflect\": true,\n \"defaultValue\": \"0\"\n },\n \"limit\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The received limit for the number of pages\"\n },\n \"attribute\": \"limit\",\n \"reflect\": true,\n \"defaultValue\": \"1\"\n },\n \"total\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The received total number of pages\"\n },\n \"attribute\": \"total\",\n \"reflect\": true,\n \"defaultValue\": \"1\"\n },\n \"language\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Language\"\n },\n \"attribute\": \"language\",\n \"reflect\": false,\n \"defaultValue\": \"'en'\"\n }\n }; }\n static get states() { return {\n \"offsetInt\": {},\n \"lastPage\": {},\n \"limitInt\": {},\n \"totalInt\": {},\n \"pagesArray\": {},\n \"endInt\": {}\n }; }\n static get events() { return [{\n \"method\": \"hpPageChange\",\n \"name\": \"hpPageChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Event that handles the navigation, updating the offset, limit and total values\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n}\n"],"version":3}
@@ -0,0 +1,8 @@
1
+ import { H as HelperTab$1, d as defineCustomElement$1 } from './helper-tab2.js';
2
+
3
+ const HelperTab = HelperTab$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { HelperTab, defineCustomElement };
7
+
8
+ //# sourceMappingURL=helper-tab.js.map
@@ -0,0 +1 @@
1
+ {"file":"helper-tab.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,54 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+
3
+ const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
4
+
5
+ const HelperTab = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ /**
11
+ * Selected index
12
+ */
13
+ this.selectedIndex = 0;
14
+ this.tabContent = '';
15
+ }
16
+ connectedCallback() {
17
+ /**
18
+ * fetch(cmsEndpoint + / + / + selectedIndex)
19
+ */
20
+ }
21
+ render() {
22
+ this.tabContent = h("div", { class: "TabContent" }, "Each play includes one set of numbers from 1 to 21 with a selectable number of 8 and a second, 4-digit set of numbers, with a minimum selection of 1. Draws are held every 5 minutes and the winnings are automatically credited to your account.");
23
+ if (this.selectedIndex + 1 == 2) {
24
+ this.tabContent = h("div", { class: "TabContent" }, h("ol", null, h("li", null, "Register or Login"), h("li", null, "Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose \u201CI feel lucky\u201D."), h("li", null, "Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!")));
25
+ }
26
+ else if (this.selectedIndex + 1 == 3) {
27
+ this.tabContent = h("div", { class: "TabContent" }, h("ul", null, h("li", null, "What are my odds of winning?"), h("li", null, "How can I find out if I\u2019ve won a draw game?"), h("li", null, "How do I claim my prize?")));
28
+ }
29
+ return (this.tabContent);
30
+ }
31
+ static get style() { return helperTabCss; }
32
+ }, [1, "helper-tab", {
33
+ "selectedIndex": [2, "selected-index"],
34
+ "cmsEndpoint": [1, "cms-endpoint"],
35
+ "tabContent": [32]
36
+ }]);
37
+ function defineCustomElement() {
38
+ if (typeof customElements === "undefined") {
39
+ return;
40
+ }
41
+ const components = ["helper-tab"];
42
+ components.forEach(tagName => { switch (tagName) {
43
+ case "helper-tab":
44
+ if (!customElements.get(tagName)) {
45
+ customElements.define(tagName, HelperTab);
46
+ }
47
+ break;
48
+ } });
49
+ }
50
+ defineCustomElement();
51
+
52
+ export { HelperTab as H, defineCustomElement as d };
53
+
54
+ //# sourceMappingURL=helper-tab2.js.map
@@ -0,0 +1 @@
1
+ {"file":"helper-tab2.js","mappings":";;AAAA,MAAM,YAAY,GAAG,+EAA+E;;MCCvF,SAAS;EACpB;;;;;;;IAIE,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC;IACvB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;GACtB;EACD,iBAAiB;;;;GAIhB;EACD,MAAM;IACJ,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,mPAAmP,CAAC,CAAC;IACzS,IAAI,IAAI,CAAC,aAAa,GAAG,CAAC,IAAI,CAAC,EAAE;MAC/B,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,EAChD,CAAC,CAAC,IAAI,EAAE,IAAI,EACV,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,mBAAmB,CAAC,EAClC,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,oJAAoJ,CAAC,EACnK,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,mLAAmL,CAAC,CAAC,CAAC,CAAC;KAC1M;SACI,IAAI,IAAI,CAAC,aAAa,GAAG,CAAC,IAAI,CAAC,EAAE;MACpC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,EAChD,CAAC,CAAC,IAAI,EAAE,IAAI,EACV,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,8BAA8B,CAAC,EAC7C,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,kDAAkD,CAAC,EACjE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,0BAA0B,CAAC,CAAC,CAAC,CAAC;KACjD;IACD,QAAQ,IAAI,CAAC,UAAU,EAAE;GAC1B;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../helper-tabs/dist/collection/components/helper-tab/helper-tab.css?tag=helper-tab&encapsulation=shadow","../helper-tabs/dist/collection/components/helper-tab/helper-tab.js"],"sourcesContent":[":host {\n display: block;\n}\n\n.TabContent {\n font-size: 14px;\n color: #000;\n font-weight: normal;\n}","import { Component, h, Prop, State } from '@stencil/core';\nexport class HelperTab {\n constructor() {\n /**\n * Selected index\n */\n this.selectedIndex = 0;\n this.tabContent = '';\n }\n connectedCallback() {\n /**\n * fetch(cmsEndpoint + / + / + selectedIndex)\n */\n }\n render() {\n this.tabContent = h(\"div\", { class: \"TabContent\" }, \"Each play includes one set of numbers from 1 to 21 with a selectable number of 8 and a second, 4-digit set of numbers, with a minimum selection of 1. Draws are held every 5 minutes and the winnings are automatically credited to your account.\");\n if (this.selectedIndex + 1 == 2) {\n this.tabContent = h(\"div\", { class: \"TabContent\" },\n h(\"ol\", null,\n h(\"li\", null, \"Register or Login\"),\n h(\"li\", null, \"Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose \\u201CI feel lucky\\u201D.\"),\n h(\"li\", null, \"Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!\")));\n }\n else if (this.selectedIndex + 1 == 3) {\n this.tabContent = h(\"div\", { class: \"TabContent\" },\n h(\"ul\", null,\n h(\"li\", null, \"What are my odds of winning?\"),\n h(\"li\", null, \"How can I find out if I\\u2019ve won a draw game?\"),\n h(\"li\", null, \"How do I claim my prize?\")));\n }\n return (this.tabContent);\n }\n static get is() { return \"helper-tab\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"helper-tab.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"helper-tab.css\"]\n }; }\n static get properties() { return {\n \"selectedIndex\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Selected index\"\n },\n \"attribute\": \"selected-index\",\n \"reflect\": false,\n \"defaultValue\": \"0\"\n },\n \"cmsEndpoint\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Endpoing for CMS\"\n },\n \"attribute\": \"cms-endpoint\",\n \"reflect\": false\n }\n }; }\n static get states() { return {\n \"tabContent\": {}\n }; }\n}\n"],"version":3}
@@ -0,0 +1,8 @@
1
+ import { H as HelperTabs$1, d as defineCustomElement$1 } from './helper-tabs2.js';
2
+
3
+ const HelperTabs = HelperTabs$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { HelperTabs, defineCustomElement };
7
+
8
+ //# sourceMappingURL=helper-tabs.js.map
@@ -0,0 +1 @@
1
+ {"file":"helper-tabs.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,65 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$1 } from './helper-tab2.js';
3
+
4
+ const helperTabsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Tabs{display:flex;gap:10px;overflow-x:auto}.TabButton{cursor:pointer;width:auto;border-radius:4px;padding:8px 15px;margin:5px 0 10px;border:1px solid #009993;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:#F1F1F1}.TabButton.Active{background:#009993;color:#FFF}";
5
+
6
+ const HelperTabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ /**
12
+ * Tell me if it is disabled
13
+ */
14
+ this.disabled = false;
15
+ /**
16
+ * Tell me what tab is selected
17
+ */
18
+ this.selected = false;
19
+ /**
20
+ * Default selected index
21
+ */
22
+ this.selectedIndex = 0;
23
+ /**
24
+ * Tabs details
25
+ */
26
+ this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
27
+ }
28
+ connectedCallback() {
29
+ }
30
+ render() {
31
+ return (h("div", null, h("div", { class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", null, h("helper-tab", { selectedIndex: this.selectedIndex }))));
32
+ }
33
+ get host() { return this; }
34
+ static get style() { return helperTabsCss; }
35
+ }, [1, "helper-tabs", {
36
+ "disabled": [4],
37
+ "label": [1],
38
+ "selected": [4],
39
+ "cmsEndpoint": [1, "cms-endpoint"],
40
+ "selectedIndex": [1538, "selected-index"],
41
+ "tabs": [16]
42
+ }]);
43
+ function defineCustomElement() {
44
+ if (typeof customElements === "undefined") {
45
+ return;
46
+ }
47
+ const components = ["helper-tabs", "helper-tab"];
48
+ components.forEach(tagName => { switch (tagName) {
49
+ case "helper-tabs":
50
+ if (!customElements.get(tagName)) {
51
+ customElements.define(tagName, HelperTabs);
52
+ }
53
+ break;
54
+ case "helper-tab":
55
+ if (!customElements.get(tagName)) {
56
+ defineCustomElement$1();
57
+ }
58
+ break;
59
+ } });
60
+ }
61
+ defineCustomElement();
62
+
63
+ export { HelperTabs as H, defineCustomElement as d };
64
+
65
+ //# sourceMappingURL=helper-tabs2.js.map
@@ -0,0 +1 @@
1
+ {"file":"helper-tabs2.js","mappings":";;;AAAA,MAAM,aAAa,GAAG,8fAA8f;;MCCvgB,UAAU;EACrB;;;;;;;IAIE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;IAItB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;IAItB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC;;;;IAIvB,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;GAC/E;EACD,iBAAiB;GAIhB;EACD,MAAM;IACJ,QAAQ,CAAC,CAAC,KAAK,EAAE,IAAI,EACnB,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,WAAW,IAAI,IAAI,CAAC,aAAa,IAAI,KAAK,GAAG,SAAS,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,aAAa,GAAG,KAAK,EAAE,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EACtM,CAAC,CAAC,KAAK,EAAE,IAAI,EACX,CAAC,CAAC,YAAY,EAAE,EAAE,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE;GAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../helper-tabs/dist/collection/components/helper-tabs/helper-tabs.css?tag=helper-tabs&encapsulation=shadow","../helper-tabs/dist/collection/components/helper-tabs/helper-tabs.js"],"sourcesContent":["@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");\n:host {\n display: block;\n font-family: \"Roboto\", sans-serif;\n}\n\n.Tabs {\n display: flex;\n gap: 10px;\n overflow-x: auto;\n}\n\n.TabButton {\n cursor: pointer;\n width: auto;\n border-radius: 4px;\n padding: 8px 15px;\n margin: 5px 0 10px;\n border: 1px solid #009993;\n background: #FFF;\n color: #000;\n font-size: 12px;\n transition: all 0.2s linear;\n text-align: center;\n letter-spacing: 0;\n white-space: nowrap;\n}\n.TabButton:hover {\n background: #F1F1F1;\n}\n.TabButton.Active {\n background: #009993;\n color: #FFF;\n}","import { Component, Prop, Element, h } from '@stencil/core';\nexport class HelperTabs {\n constructor() {\n /**\n * Tell me if it is disabled\n */\n this.disabled = false;\n /**\n * Tell me what tab is selected\n */\n this.selected = false;\n /**\n * Default selected index\n */\n this.selectedIndex = 0;\n /**\n * Tabs details\n */\n this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];\n }\n connectedCallback() {\n if (this.tabs.length == 0) {\n // fetch CMS data\n }\n }\n render() {\n return (h(\"div\", null,\n h(\"div\", { class: \"Tabs\" }, this.tabs.map((tab, index) => h(\"button\", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))),\n h(\"div\", null,\n h(\"helper-tab\", { selectedIndex: this.selectedIndex }))));\n }\n static get is() { return \"helper-tabs\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"helper-tabs.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"helper-tabs.css\"]\n }; }\n static get properties() { return {\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tell me if it is disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Gimme names or you die\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"selected\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tell me what tab is selected\"\n },\n \"attribute\": \"selected\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"cmsEndpoint\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Endpoing for CMS\"\n },\n \"attribute\": \"cms-endpoint\",\n \"reflect\": false\n },\n \"selectedIndex\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Default selected index\"\n },\n \"attribute\": \"selected-index\",\n \"reflect\": true,\n \"defaultValue\": \"0\"\n },\n \"tabs\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Array<Object>\",\n \"resolved\": \"Object[]\",\n \"references\": {\n \"Array\": {\n \"location\": \"global\"\n },\n \"Object\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tabs details\"\n },\n \"defaultValue\": \"[{label: 'How to Play'}, {label: 'About'}, {label: 'FAQs'}]\"\n }\n }; }\n static get elementRef() { return \"host\"; }\n}\n"],"version":3}
@@ -1 +1,3 @@
1
1
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"file":"index.js","mappings":"","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,8 @@
1
+ import { L as LotteryDrawResultsHistory$1, d as defineCustomElement$1 } from './lottery-draw-results-history2.js';
2
+
3
+ const LotteryDrawResultsHistory = LotteryDrawResultsHistory$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { LotteryDrawResultsHistory, defineCustomElement };
7
+
8
+ //# sourceMappingURL=lottery-draw-results-history.js.map
@@ -0,0 +1 @@
1
+ {"file":"lottery-draw-results-history.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,207 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import '@everymatrix/lottery-grid';
3
+ import { d as defineCustomElement$3 } from './helper-filters2.js';
4
+ import { d as defineCustomElement$2 } from './helper-modal2.js';
5
+ import { d as defineCustomElement$1 } from './lottery-draw-results2.js';
6
+
7
+ const DEFAULT_LANGUAGE = 'en';
8
+ const SUPPORTED_LANGUAGES = ['ro', 'en'];
9
+ const TRANSLATIONS = {
10
+ en: {
11
+ drawResultsHeader: 'Draw results history',
12
+ drawId: 'Draw ID',
13
+ drawDate: 'Draw Date',
14
+ drawNumbersGridA: 'Draw numbers Grid A',
15
+ viewAllResults: 'View All',
16
+ lastFiveDraws: 'Last 5 Draws',
17
+ lastTenDraws: 'Last 10 Draws',
18
+ lastFifteenDraws: 'Last 15 Draws',
19
+ allDrawResultsHistory: 'All Draw Results History',
20
+ noResults: 'No results',
21
+ fetchingResults: 'Fetching results'
22
+ },
23
+ ro: {
24
+ drawResultsHeader: 'Istoricul extragerilor',
25
+ drawId: 'ID-ul extragerii',
26
+ drawDate: 'Data extragerii',
27
+ drawNumbersGridA: 'Numerele extrase Grid A',
28
+ viewAllResults: 'Vezi toate rezultatele',
29
+ lastFiveDraws: 'Ultimile 5 extrageri',
30
+ lastTenDraws: 'Ultimile 10 extrageri',
31
+ lastFifteenDraws: 'Ultimile 15 extrageri',
32
+ allDrawResultsHistory: 'Istoricul tuturor extragerilor',
33
+ noResults: 'Niciun rezultat',
34
+ fetchingResults: 'Se obtin rezultatele'
35
+ },
36
+ };
37
+ const translate = (key, customLang) => {
38
+ const lang = customLang;
39
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
40
+ };
41
+
42
+ const lotteryDrawResultsHistoryCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.GridBanner{background-color:#009993;background-repeat:no-repeat;background-position:center;color:#111;padding:0 20px 30px}.GridBanner .BannerButtonsWrapper{display:flex;justify-content:space-between;padding-top:16px}.GridBanner .BannerButtonsWrapper .BannerBackButton,.GridBanner .BannerButtonsWrapper .BannerLobbyButton{background:#fff;border:1px solid #009993;border-radius:4px;padding:7px 15px;font-size:12px;text-transform:uppercase;width:80px}.GridBanner .HistoryGridBannerArea{padding-top:30px}.HistoryGridBannerArea{display:flex;flex-direction:column;align-items:center}.BannerText{font-size:14px;font-weight:300}.BannerCountdown{font-size:22px;display:flex;gap:20px}.DrawResultsSection{max-width:600px;margin:0px auto}.HistoryGrid{border-radius:5px}.DrawResultsHeader{color:#009993;padding:25px 0 10px 0;text-align:center;border-radius:4px 4px 0 0}.DrawResultsHeader h4{text-transform:uppercase;font-size:16px;font-weight:600;margin:0}.DrawNumbersGrid{padding:10px 50px}.DrawNumbersGrid p{margin:0 0 10px 0;font-size:14px}.BulletContainer{margin-bottom:20px}.DrawResultTop{background-color:#009993;padding:10px;text-align:center;color:#fff;padding:0 50px;display:flex;justify-content:center;gap:40px}.ViewAllResults{display:block;padding:10px 40px;margin:40px auto;border:0;border-radius:5px;background-color:#009993;color:#fff;outline:none}.FilterSection{display:flex;justify-content:space-between;padding:25px 15px 10px;gap:10px;margin:0px 15px}.FilterSection .FilterResultsContainer{display:flex;gap:5px;overflow-x:auto}.FilterSection .QuickFilterButton{cursor:pointer;width:max-content;border-radius:4px;border:1px solid #00958f;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterSection .QuickFilterButton:hover{background:#F1F1F1}.FilterSection helper-filters{margin-left:auto}";
43
+
44
+ const LotteryDrawResultsHistory = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
45
+ constructor() {
46
+ super();
47
+ this.__registerHost();
48
+ this.__attachShadow();
49
+ /**
50
+ * The number of results to be displayed
51
+ */
52
+ this.numberOfResults = 3;
53
+ /**
54
+ *Language
55
+ */
56
+ this.language = 'en';
57
+ this.drawData = [];
58
+ this.displayAllDrawsResults = true;
59
+ this.showQuickFilters = true;
60
+ this.winningDataSetsData = [''];
61
+ this.dateFiltersFrom = '';
62
+ this.dateFiltersTo = '';
63
+ this.isLoading = false;
64
+ this.noResults = false;
65
+ this.getDrawsData = (filterbydate = false) => {
66
+ let url = filterbydate ? new URL(`${this.endpoint}/games/${this.gameId}/draws`) : new URL(`${this.endpoint}/games/${this.gameId}`);
67
+ if (this.dateFiltersFrom)
68
+ url.searchParams.append('from', this.dateFiltersFrom);
69
+ if (this.dateFiltersTo)
70
+ url.searchParams.append('to', this.dateFiltersTo);
71
+ fetch(url.href)
72
+ .then((res) => {
73
+ if (res.status >= 300) {
74
+ throw new Error('There was an error while fetching the data');
75
+ }
76
+ return res.json();
77
+ })
78
+ .then((data) => {
79
+ this.isLoading = false;
80
+ if (filterbydate) {
81
+ this.winningDataSetsData = data.items.filter(draw => draw.winningNumbers);
82
+ }
83
+ else {
84
+ this.winningDataSetsData = data.draws.filter(draw => draw.winningNumbers);
85
+ }
86
+ this.drawData = this.winningDataSetsData.map((item) => item);
87
+ })
88
+ .catch((err) => {
89
+ console.log('err', err);
90
+ })
91
+ .finally(() => {
92
+ this.isLoading = false;
93
+ this.noResults = this.drawData.filter(draw => draw.winningNumbers).length == 0 ? true : false;
94
+ });
95
+ };
96
+ this.filterResults = (resultsNumber) => {
97
+ this.numberOfResults = resultsNumber;
98
+ this.displayAllDrawsResults = true;
99
+ };
100
+ this.getDrawResults = (drawID) => {
101
+ let url = new URL(`${this.endpoint}/games/${this.gameId}/draws/${drawID}`);
102
+ let drawOptions = {
103
+ method: "GET",
104
+ headers: {
105
+ 'Content-Type': "application/json",
106
+ 'Accept': 'application/json',
107
+ },
108
+ };
109
+ fetch(url.href, drawOptions)
110
+ .then((response) => {
111
+ return response.json();
112
+ })
113
+ .then((data) => {
114
+ this.drawData = [data].map((item) => item);
115
+ this.isLoading = false;
116
+ });
117
+ };
118
+ this.viewAllResults = () => {
119
+ this.numberOfResults = this.drawData.length;
120
+ this.displayAllDrawsResults = false;
121
+ window.scrollTo({ top: 0, behavior: 'smooth' });
122
+ };
123
+ }
124
+ // Filters events
125
+ filtersDrawHandler(event) {
126
+ this.isLoading = true;
127
+ this.showQuickFilters = false;
128
+ this.getDrawResults(event.detail.ticketDrawId);
129
+ }
130
+ filtersHandler(event) {
131
+ this.showQuickFilters = false;
132
+ this.dateFiltersFrom = event.detail.filterFromCalendar;
133
+ this.dateFiltersTo = event.detail.filterToCalendar;
134
+ this.isLoading = true;
135
+ this.getDrawsData(true);
136
+ }
137
+ clearFiltersHandler() {
138
+ this.drawData = this.winningDataSetsData;
139
+ this.showQuickFilters = true;
140
+ this.dateFiltersFrom = '';
141
+ this.dateFiltersTo = '';
142
+ this.isLoading = true;
143
+ this.getDrawsData(false);
144
+ }
145
+ connectedCallback() {
146
+ if (this.showQuickFilters)
147
+ this.getDrawsData(false);
148
+ }
149
+ disconnectedCallback() {
150
+ clearInterval(this.interval);
151
+ }
152
+ render() {
153
+ let gridHeader = h("div", { class: "DrawResultsHeader" }, this.displayAllDrawsResults ? h("h4", null, translate('drawResultsHeader', this.language)) :
154
+ [h("div", { class: "DrawResultsHeaderContent" }, h("h4", null, translate('allDrawResultsHistory', this.language)), h("div", { class: "FilterSection" }, this.showQuickFilters &&
155
+ h("div", { class: "FilterResultsContainer" }, h("button", { class: "QuickFilterButton", onClick: () => this.filterResults(5) }, translate('lastFiveDraws', this.language)), h("button", { class: "QuickFilterButton", onClick: () => this.filterResults(10) }, translate('lastTenDraws', this.language)), h("button", { class: "QuickFilterButton", onClick: () => this.filterResults(15) }, translate('lastFifteenDraws', this.language))), h("helper-filters", { "show-filter-id": "true", "activate-ticket-search": "false", "game-id": this.gameId }))),
156
+ ]);
157
+ return h("section", { class: "GridWrapper" }, h("div", { class: "DrawResultsSection" }, h("div", { class: "DrawResultsAreaHistory" }, gridHeader, h("div", { class: "HistoryGridWrapper" }, h("div", { class: "HistoryGrid" }, this.isLoading &&
158
+ h("p", null, translate('fetchingResults', 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 })).reverse().slice(0, this.numberOfResults), !this.isLoading && this.noResults && (h("p", null, translate('noResults', this.language))))), this.displayAllDrawsResults && h("button", { class: "ViewAllResults", onClick: this.viewAllResults }, translate('viewAllResults', this.language)))));
159
+ }
160
+ static get style() { return lotteryDrawResultsHistoryCss; }
161
+ }, [1, "lottery-draw-results-history", {
162
+ "endpoint": [1],
163
+ "gameId": [1, "game-id"],
164
+ "numberOfResults": [2, "number-of-results"],
165
+ "language": [1],
166
+ "drawData": [32],
167
+ "displayAllDrawsResults": [32],
168
+ "showQuickFilters": [32],
169
+ "winningDataSetsData": [32],
170
+ "dateFiltersFrom": [32],
171
+ "dateFiltersTo": [32],
172
+ "isLoading": [32],
173
+ "noResults": [32]
174
+ }, [[0, "filterDraw", "filtersDrawHandler"], [0, "filterSelection", "filtersHandler"], [0, "filterSelectionReset", "clearFiltersHandler"]]]);
175
+ function defineCustomElement() {
176
+ if (typeof customElements === "undefined") {
177
+ return;
178
+ }
179
+ const components = ["lottery-draw-results-history", "helper-filters", "helper-modal", "lottery-draw-results"];
180
+ components.forEach(tagName => { switch (tagName) {
181
+ case "lottery-draw-results-history":
182
+ if (!customElements.get(tagName)) {
183
+ customElements.define(tagName, LotteryDrawResultsHistory);
184
+ }
185
+ break;
186
+ case "helper-filters":
187
+ if (!customElements.get(tagName)) {
188
+ defineCustomElement$3();
189
+ }
190
+ break;
191
+ case "helper-modal":
192
+ if (!customElements.get(tagName)) {
193
+ defineCustomElement$2();
194
+ }
195
+ break;
196
+ case "lottery-draw-results":
197
+ if (!customElements.get(tagName)) {
198
+ defineCustomElement$1();
199
+ }
200
+ break;
201
+ } });
202
+ }
203
+ defineCustomElement();
204
+
205
+ export { LotteryDrawResultsHistory as L, defineCustomElement as d };
206
+
207
+ //# sourceMappingURL=lottery-draw-results-history2.js.map
@@ -0,0 +1 @@
1
+ {"file":"lottery-draw-results-history2.js","mappings":";;;;;;AAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACzC,MAAM,YAAY,GAAG;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,iBAAiB,EAAE,sBAAsB;AAC7C,IAAI,MAAM,EAAE,SAAS;AACrB,IAAI,QAAQ,EAAE,WAAW;AACzB,IAAI,gBAAgB,EAAE,qBAAqB;AAC3C,IAAI,cAAc,EAAE,UAAU;AAC9B,IAAI,aAAa,EAAE,cAAc;AACjC,IAAI,YAAY,EAAE,eAAe;AACjC,IAAI,gBAAgB,EAAE,eAAe;AACrC,IAAI,qBAAqB,EAAE,0BAA0B;AACrD,IAAI,SAAS,EAAE,YAAY;AAC3B,IAAI,eAAe,EAAE,kBAAkB;AACvC,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,iBAAiB,EAAE,wBAAwB;AAC/C,IAAI,MAAM,EAAE,kBAAkB;AAC9B,IAAI,QAAQ,EAAE,iBAAiB;AAC/B,IAAI,gBAAgB,EAAE,yBAAyB;AAC/C,IAAI,cAAc,EAAE,wBAAwB;AAC5C,IAAI,aAAa,EA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EAAE,IAAI,EAAE,SAAS,CAAC,iBAAiB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,EAC3D,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,EACjO,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,KAAK,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAChG,IAAI,CAAC,sBAAsB,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,SAAS,CAAC,gBAAgB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;GAC5J;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../lottery-draw-results-history/dist/collection/utils/locale.utils.js","../lottery-draw-results-history/dist/collection/components/lottery-draw-results-history/lottery-draw-results-history.css?tag=lottery-draw-results-history&encapsulation=shadow","../lottery-draw-results-history/dist/collection/components/lottery-draw-results-history/lottery-draw-results-history.js"],"sourcesContent":["const DEFAULT_LANGUAGE = 'en';\nconst SUPPORTED_LANGUAGES = ['ro', 'en'];\nconst TRANSLATIONS = {\n en: {\n drawResultsHeader: 'Draw results history',\n drawId: 'Draw ID',\n drawDate: 'Draw Date',\n drawNumbersGridA: 'Draw numbers Grid A',\n viewAllResults: 'View All',\n lastFiveDraws: 'Last 5 Draws',\n lastTenDraws: 'Last 10 Draws',\n lastFifteenDraws: 'Last 15 Draws',\n allDrawResultsHistory: 'All Draw Results History',\n noResults: 'No results',\n fetchingResults: 'Fetching results'\n },\n ro: {\n drawResultsHeader: 'Istoricul extragerilor',\n drawId: 'ID-ul extragerii',\n drawDate: 'Data extragerii',\n drawNumbersGridA: 'Numerele extrase Grid A',\n viewAllResults: 'Vezi toate rezultatele',\n lastFiveDraws: 'Ultimile 5 extrageri',\n lastTenDraws: 'Ultimile 10 extrageri',\n lastFifteenDraws: 'Ultimile 15 extrageri',\n allDrawResultsHistory: 'Istoricul tuturor extragerilor',\n noResults: 'Niciun rezultat',\n fetchingResults: 'Se obtin rezultatele'\n },\n};\nexport const translate = (key, customLang) => {\n const lang = customLang;\n return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];\n};\n","@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");\n:host {\n display: block;\n font-family: \"Roboto\", sans-serif;\n}\n\n.GridBanner {\n background-color: #009993;\n background-repeat: no-repeat;\n background-position: center;\n color: #111;\n padding: 0 20px 30px;\n}\n.GridBanner .BannerButtonsWrapper {\n display: flex;\n justify-content: space-between;\n padding-top: 16px;\n}\n.GridBanner .BannerButtonsWrapper .BannerBackButton, .GridBanner .BannerButtonsWrapper .BannerLobbyButton {\n background: #fff;\n border: 1px solid #009993;\n border-radius: 4px;\n padding: 7px 15px;\n font-size: 12px;\n text-transform: uppercase;\n width: 80px;\n}\n.GridBanner .HistoryGridBannerArea {\n padding-top: 30px;\n}\n\n.HistoryGridBannerArea {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.BannerText {\n font-size: 14px;\n font-weight: 300;\n}\n\n.BannerCountdown {\n font-size: 22px;\n display: flex;\n gap: 20px;\n}\n\n.DrawResultsSection {\n max-width: 600px;\n margin: 0px auto;\n}\n\n.HistoryGrid {\n border-radius: 5px;\n}\n\n.DrawResultsHeader {\n color: #009993;\n padding: 25px 0 10px 0;\n text-align: center;\n border-radius: 4px 4px 0 0;\n}\n.DrawResultsHeader h4 {\n text-transform: uppercase;\n font-size: 16px;\n font-weight: 600;\n margin: 0;\n}\n\n.DrawNumbersGrid {\n padding: 10px 50px;\n}\n.DrawNumbersGrid p {\n margin: 0 0 10px 0;\n font-size: 14px;\n}\n\n.BulletContainer {\n margin-bottom: 20px;\n}\n\n.DrawResultTop {\n background-color: #009993;\n padding: 10px;\n text-align: center;\n color: #fff;\n padding: 0 50px;\n display: flex;\n justify-content: center;\n gap: 40px;\n}\n\n.ViewAllResults {\n display: block;\n padding: 10px 40px;\n margin: 40px auto;\n border: 0;\n border-radius: 5px;\n background-color: #009993;\n color: #fff;\n outline: none;\n}\n\n.FilterSection {\n display: flex;\n justify-content: space-between;\n padding: 25px 15px 10px;\n gap: 10px;\n margin: 0px 15px;\n}\n.FilterSection .FilterResultsContainer {\n display: flex;\n gap: 5px;\n overflow-x: auto;\n}\n.FilterSection .QuickFilterButton {\n cursor: pointer;\n width: max-content;\n border-radius: 4px;\n border: 1px solid #00958f;\n background: #FFF;\n color: #000;\n font-size: 12px;\n transition: all 0.2s linear;\n text-align: center;\n letter-spacing: 0;\n}\n.FilterSection .QuickFilterButton:hover {\n background: #F1F1F1;\n}\n.FilterSection helper-filters {\n margin-left: auto;\n}","import { Component, Prop, h, State, Listen } from '@stencil/core';\nimport { translate } from '../../utils/locale.utils';\nimport '@everymatrix/lottery-grid';\nimport '@everymatrix/helper-pagination';\nimport '@everymatrix/helper-modal';\nimport '@everymatrix/helper-filters';\nimport '@everymatrix/lottery-draw-results';\nexport class LotteryDrawResultsHistory {\n constructor() {\n /**\n * The number of results to be displayed\n */\n this.numberOfResults = 3;\n /**\n *Language\n */\n this.language = 'en';\n this.drawData = [];\n this.displayAllDrawsResults = true;\n this.showQuickFilters = true;\n this.winningDataSetsData = [''];\n this.dateFiltersFrom = '';\n this.dateFiltersTo = '';\n this.isLoading = false;\n this.noResults = false;\n this.getDrawsData = (filterbydate = false) => {\n let url = filterbydate ? new URL(`${this.endpoint}/games/${this.gameId}/draws`) : new URL(`${this.endpoint}/games/${this.gameId}`);\n if (this.dateFiltersFrom)\n url.searchParams.append('from', this.dateFiltersFrom);\n if (this.dateFiltersTo)\n url.searchParams.append('to', this.dateFiltersTo);\n fetch(url.href)\n .then((res) => {\n if (res.status >= 300) {\n throw new Error('There was an error while fetching the data');\n }\n return res.json();\n })\n .then((data) => {\n this.isLoading = false;\n if (filterbydate) {\n this.winningDataSetsData = data.items.filter(draw => draw.winningNumbers);\n }\n else {\n this.winningDataSetsData = data.draws.filter(draw => draw.winningNumbers);\n }\n this.drawData = this.winningDataSetsData.map((item) => item);\n })\n .catch((err) => {\n console.log('err', err);\n })\n .finally(() => {\n this.isLoading = false;\n this.noResults = this.drawData.filter(draw => draw.winningNumbers).length == 0 ? true : false;\n });\n };\n this.filterResults = (resultsNumber) => {\n this.numberOfResults = resultsNumber;\n this.displayAllDrawsResults = true;\n };\n this.getDrawResults = (drawID) => {\n let url = new URL(`${this.endpoint}/games/${this.gameId}/draws/${drawID}`);\n let drawOptions = {\n method: \"GET\",\n headers: {\n 'Content-Type': \"application/json\",\n 'Accept': 'application/json',\n },\n };\n fetch(url.href, drawOptions)\n .then((response) => {\n return response.json();\n })\n .then((data) => {\n this.drawData = [data].map((item) => item);\n this.isLoading = false;\n });\n };\n this.viewAllResults = () => {\n this.numberOfResults = this.drawData.length;\n this.displayAllDrawsResults = false;\n window.scrollTo({ top: 0, behavior: 'smooth' });\n };\n }\n // Filters events\n filtersDrawHandler(event) {\n this.isLoading = true;\n this.showQuickFilters = false;\n this.getDrawResults(event.detail.ticketDrawId);\n }\n filtersHandler(event) {\n this.showQuickFilters = false;\n this.dateFiltersFrom = event.detail.filterFromCalendar;\n this.dateFiltersTo = event.detail.filterToCalendar;\n this.isLoading = true;\n this.getDrawsData(true);\n }\n clearFiltersHandler() {\n this.drawData = this.winningDataSetsData;\n this.showQuickFilters = true;\n this.dateFiltersFrom = '';\n this.dateFiltersTo = '';\n this.isLoading = true;\n this.getDrawsData(false);\n }\n connectedCallback() {\n if (this.showQuickFilters)\n this.getDrawsData(false);\n }\n disconnectedCallback() {\n clearInterval(this.interval);\n }\n render() {\n let gridHeader = h(\"div\", { class: \"DrawResultsHeader\" }, this.displayAllDrawsResults ? h(\"h4\", null, translate('drawResultsHeader', this.language)) :\n [h(\"div\", { class: \"DrawResultsHeaderContent\" },\n h(\"h4\", null, translate('allDrawResultsHistory', this.language)),\n h(\"div\", { class: \"FilterSection\" },\n this.showQuickFilters &&\n h(\"div\", { class: \"FilterResultsContainer\" },\n h(\"button\", { class: \"QuickFilterButton\", onClick: () => this.filterResults(5) }, translate('lastFiveDraws', this.language)),\n h(\"button\", { class: \"QuickFilterButton\", onClick: () => this.filterResults(10) }, translate('lastTenDraws', this.language)),\n h(\"button\", { class: \"QuickFilterButton\", onClick: () => this.filterResults(15) }, translate('lastFifteenDraws', this.language))),\n h(\"helper-filters\", { \"show-filter-id\": \"true\", \"activate-ticket-search\": \"false\", \"game-id\": this.gameId }))),\n ]);\n return h(\"section\", { class: \"GridWrapper\" },\n h(\"div\", { class: \"DrawResultsSection\" },\n h(\"div\", { class: \"DrawResultsAreaHistory\" },\n gridHeader,\n h(\"div\", { class: \"HistoryGridWrapper\" },\n h(\"div\", { class: \"HistoryGrid\" },\n this.isLoading &&\n h(\"p\", null, translate('fetchingResults', this.language)),\n !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 })).reverse().slice(0, this.numberOfResults),\n !this.isLoading && this.noResults && (h(\"p\", null, translate('noResults', this.language))))),\n this.displayAllDrawsResults && h(\"button\", { class: \"ViewAllResults\", onClick: this.viewAllResults }, translate('viewAllResults', this.language)))));\n }\n static get is() { return \"lottery-draw-results-history\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"lottery-draw-results-history.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"lottery-draw-results-history.css\"]\n }; }\n static get properties() { return {\n \"endpoint\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Endpoint URL for lottery\"\n },\n \"attribute\": \"endpoint\",\n \"reflect\": false\n },\n \"gameId\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"GameID\"\n },\n \"attribute\": \"game-id\",\n \"reflect\": false\n },\n \"numberOfResults\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The number of results to be displayed\"\n },\n \"attribute\": \"number-of-results\",\n \"reflect\": false,\n \"defaultValue\": \"3\"\n },\n \"language\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Language\"\n },\n \"attribute\": \"language\",\n \"reflect\": false,\n \"defaultValue\": \"'en'\"\n }\n }; }\n static get states() { return {\n \"drawData\": {},\n \"displayAllDrawsResults\": {},\n \"showQuickFilters\": {},\n \"winningDataSetsData\": {},\n \"dateFiltersFrom\": {},\n \"dateFiltersTo\": {},\n \"isLoading\": {},\n \"noResults\": {}\n }; }\n static get listeners() { return [{\n \"name\": \"filterDraw\",\n \"method\": \"filtersDrawHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"filterSelection\",\n \"method\": \"filtersHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"filterSelectionReset\",\n \"method\": \"clearFiltersHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"],"version":3}
@@ -4,3 +4,5 @@ const LotteryDrawResults = LotteryDrawResults$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { LotteryDrawResults, defineCustomElement };
7
+
8
+ //# sourceMappingURL=lottery-draw-results.js.map
@@ -0,0 +1 @@
1
+ {"file":"lottery-draw-results.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -219,3 +219,5 @@ function defineCustomElement() {
219
219
  defineCustomElement();
220
220
 
221
221
  export { LotteryDrawResults as L, defineCustomElement as d };
222
+
223
+ //# sourceMappingURL=lottery-draw-results2.js.map
@@ -0,0 +1 @@
1
+ {"file":"lottery-draw-results2.js","mappings":";;;AAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACzC,MAAM,YAAY,GAAG;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,iBAAiB,EAAE,mBAAmB;AAC1C,IAAI,MAAM,EAAE,SAAS;AACrB,IAAI,QAAQ,EAAE,WAAW;AACzB,IAAI,QAAQ,EAAE,WAAW;AACzB,IAAI,mBAAmB,EAAE,qBAAqB;AAC9C,IAAI,qBAAqB,EAAE,qBAAqB;AAChD,IAAI,YAAY,EAAE,eAAe;AACjC,IAAI,SAAS,EAAE,YAAY;AAC3B,IAAI,aAAa,EAAE,iBAAiB;AACpC,IAAI,UAAU,EAAE,aAAa;AAC7B,IAAI,kBAAkB,EAAE,sBAAsB;AAC9C,IAAI,YAAY,EAAE,eAAe;AACjC,IAAI,QA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../lottery-draw-results/dist/collection/utils/locale.utils.js","../lottery-draw-results/dist/collection/components/lottery-draw-results/lottery-draw-results.css?tag=lottery-draw-results&encapsulation=shadow","../lottery-draw-results/dist/collection/components/lottery-draw-results/lottery-draw-results.js"],"sourcesContent":["const DEFAULT_LANGUAGE = 'en';\nconst SUPPORTED_LANGUAGES = ['ro', 'en'];\nconst TRANSLATIONS = {\n en: {\n drawResultsHeader: 'Last draw results',\n drawId: 'Draw ID',\n drawName: 'Game name',\n drawDate: 'Draw Date',\n drawNumbersGridDraw: 'Draw numbers Grid A',\n drawNumbersGridTicket: 'Draw numbers Grid B',\n ticketResult: 'Ticket result',\n amountWon: 'Amount won',\n numberOfDraws: 'Number of draws',\n multiplier: 'Multiplier:',\n ticketPurchaseDate: 'Ticket Purchase Date',\n ticketStatus: 'Ticket Status',\n ticketId: 'Ticket ID',\n ticketAmount: 'Ticket Amount',\n winUpTo: 'Win up to',\n },\n ro: {\n drawResultsHeader: 'Ultimele rezultate extragere',\n drawId: 'Id extragere',\n drawName: 'Numele jocului',\n drawDate: 'Data extragerii',\n drawNumbersGridDraw: 'Numerele extrase Grid A',\n drawNumbersGridTicket: 'Numerele extrase Grid B',\n ticketResult: 'Rezultatul biletului',\n amountWon: 'Suma castigata',\n numberOfDraws: 'Numarul de extrageri',\n multiplier: 'Multiplicator:',\n ticketPurchaseDate: 'Data achizitionarii biletului',\n ticketStatus: 'Statusul biletului',\n ticketId: 'Id biletul',\n ticketAmount: 'Valoarea biletului',\n winUpTo: 'Poti castiga'\n },\n};\nexport const translate = (key, customLang) => {\n const lang = customLang;\n return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];\n};\n","@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");\n:host {\n display: block;\n font-family: \"Roboto\", sans-serif;\n}\n\n.TicketInfo {\n display: flex;\n flex-direction: row;\n gap: 15px;\n background-color: #009993;\n color: #fff;\n padding: 12px;\n font-size: 14px;\n}\n\n.DrawResultsArea {\n margin-top: 15px;\n}\n\n.DrawResultsSection {\n max-width: 600px;\n margin: 0px auto;\n border-radius: 4px;\n}\n\n.DrawResultsHeader {\n display: flex;\n justify-content: space-between;\n padding: 10px 20px;\n background-color: #009993;\n color: #fff;\n font-size: 14px;\n border-radius: 4px 4px 0 0;\n}\n.DrawResultsHeader h4 {\n text-transform: uppercase;\n font-weight: 400;\n margin: 0;\n padding-top: 15px;\n}\n\n.DrawMultipler label {\n display: block;\n margin: 15px 0;\n}\n\n.DrawResultsBody {\n padding: 0px 20px;\n margin-bottom: 5px;\n border-radius: 0 0 4px 4px;\n border: 1px solid #009993;\n}\n.DrawResultsBody .DrawNumbersGrid {\n font-size: 14px;\n}\n.DrawResultsBody .NumberOfDrawsContainer {\n display: table;\n width: 100%;\n}\n\n.Toggle {\n cursor: pointer;\n display: inline-block;\n}\n\n.ToggleSwitch {\n display: inline-block;\n background: #ccc;\n border-radius: 16px;\n width: 58px;\n height: 24px;\n position: relative;\n vertical-align: middle;\n transition: background 0.25s;\n}\n.ToggleSwitch:before, .ToggleSwitch:after {\n content: \"\";\n}\n.ToggleSwitch:before {\n display: block;\n background: linear-gradient(to bottom, #fff 0%, #eee 100%);\n border-radius: 50%;\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);\n width: 16px;\n height: 16px;\n position: absolute;\n top: 4px;\n left: 4px;\n transition: left 0.25s;\n}\n\n.Toggle:hover .ToggleSwitch:before {\n background: linear-gradient(to bottom, #fff 0%, #fff 100%);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);\n}\n\n.ToggleCheckbox:checked + .ToggleSwitch {\n background: #56c080;\n}\n\n.ToggleCheckbox:checked + .ToggleSwitch:before {\n left: 38px;\n}\n\n.ToggleCheckbox {\n position: absolute;\n visibility: hidden;\n}\n\n.Label {\n margin-right: 5px;\n position: relative;\n top: 2px;\n}\n\n.DrawTicketsContainer {\n margin: 30px auto;\n}\n\n.ExpandableBoxes {\n position: relative;\n}\n\n.ExpandableBox {\n line-height: 12px;\n font-weight: lighter;\n width: 100%;\n height: 100%;\n max-height: 70px;\n float: left;\n margin: 0 0 20px 0;\n border: 1px solid #f1f1f1;\n background: #fff;\n border-radius: 4px;\n padding: 10px;\n -webkit-transition: all 0.6s ease-in-out;\n -moz-transition: all 0.6s ease-in-out;\n -o-transition: all 0.6s ease-in-out;\n -ms-transition: all 0.6s ease-in-out;\n transition: all 0.6s ease-in-out;\n overflow: hidden;\n box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;\n}\n\n.ExpandableBox.ShowBox {\n max-height: 400px;\n margin: 0px 0px 20p 0px;\n}\n\n.ExpandableBox.HideBox {\n width: 0;\n height: 0;\n overflow: hidden;\n border: none;\n padding: 0;\n margin: 0;\n opacity: 0;\n}","import { Component, Prop, h, State } from '@stencil/core';\nimport { translate } from '../../utils/locale.utils';\nimport '@everymatrix/lottery-grid';\nexport class LotteryDrawResults {\n constructor() {\n /**\n * Language of the widget\n */\n this.language = 'en';\n /**\n * Shows only the last draw\n */\n this.drawMode = false;\n /**\n * The drawID (option)\n */\n this.drawId = '';\n /**\n * The game name\n */\n this.gameName = '';\n /**\n * The ticket submission date\n */\n this.ticketDate = '';\n /**\n * The ticket status\n */\n this.ticketStatus = '';\n /**\n * The ticket id\n */\n this.ticketId = '';\n /**\n * The ticket amount\n */\n this.ticketAmount = '';\n /**\n * The ticket multiplier\n */\n this.ticketMultiplier = false;\n /**\n * The ticket draw count\n */\n this.ticketDrawCount = 0;\n this.multiplier = 3;\n this.isLoading = true;\n this.drawResults = [];\n this.rules = {};\n this.toggleDrawer = [false];\n this.hasErrors = false;\n this.errorText = '';\n this.changeBox = (index) => {\n this.toggleDrawer = this.toggleDrawer.map((item, itemIndex) => {\n if (itemIndex == index) {\n return !item;\n }\n return item;\n });\n if (index >= this.toggleDrawer.length) {\n this.toggleDrawer.push(true);\n }\n };\n }\n connectedCallback() {\n let promises = [];\n promises.push(this.getGameData());\n if (this.drawId) {\n promises.push(this.getDrawData());\n }\n Promise.all(promises)\n .then(() => {\n this.isLoading = false;\n });\n }\n getDrawData() {\n return new Promise((resolve, reject) => {\n let url = new URL(`${this.endpoint}/games/${this.gameId}/draws/${this.drawId}`);\n fetch(url.href)\n .then((response) => {\n // @TODO EXCEPTIONS\n return response.json();\n })\n .then((data) => {\n this.drawData = data;\n resolve(true);\n this.isLoading = false;\n })\n .catch((err) => {\n reject(err);\n this.isLoading = false;\n });\n });\n }\n getGameData() {\n return new Promise((resolve, reject) => {\n let url = new URL(`${this.endpoint}/games/${this.gameId}`);\n fetch(url.href)\n .then((response) => {\n return response.json();\n })\n .then((data) => {\n this.rules = {\n maximumAllowed: data.rules.boards[0].maximumAllowed,\n totalNumbers: data.rules.boards[0].totalNumbers\n };\n resolve(true);\n this.isLoading = false;\n this.hasErrors = false;\n })\n .catch((err) => {\n this.isLoading = false;\n this.hasErrors = true;\n this.errorText = err;\n reject(err);\n });\n });\n }\n render() {\n if (this.isLoading) {\n return (h(\"p\", null, \"Loading, please wait ...\"));\n }\n else if (this.hasErrors) {\n h(\"p\", null, this.errorText);\n }\n else {\n return (h(\"section\", { class: \"DrawResultsSection\" }, !this.drawMode ?\n h(\"div\", { class: \"DrawResultsArea\" },\n h(\"div\", { class: \"TicketInfo\" },\n h(\"div\", { class: \"TicketGameName\" },\n translate('drawName', this.language),\n \": \",\n h(\"span\", null, this.gameName)),\n h(\"div\", { class: \"TicketDate\" },\n translate('ticketPurchaseDate', this.language),\n \": \",\n h(\"span\", null, this.ticketDate.slice(0, 10))),\n h(\"div\", { class: \"TicketStatus\" },\n translate('ticketStatus', this.language),\n \": \",\n h(\"span\", null, this.ticketStatus))),\n h(\"div\", { class: \"DrawResultsBody\" },\n h(\"div\", { class: \"TicketIdContainer\" },\n h(\"p\", null,\n translate('ticketId', this.language),\n \": \",\n h(\"span\", null, this.ticketId))),\n h(\"div\", { class: \"TicketAmountContainer\" },\n h(\"p\", null,\n translate('ticketAmount', this.language),\n \" \",\n h(\"span\", null, this.ticketAmount))),\n h(\"div\", { class: \"DrawNumbersGrid\" },\n h(\"p\", null,\n translate('drawNumbersGridTicket', this.language),\n \":\"),\n h(\"div\", { class: \"BulletContainer\" },\n h(\"lottery-grid\", { \"maximum-allowed\": this.rules.maximumAllowed, \"total-numbers\": this.rules.totalNumbers, \"selected-numbers\": this.selection, selectable: false, \"display-selected\": true, language: this.language }))),\n h(\"div\", { class: \"DrawMultipler\" },\n h(\"label\", { class: \"Label\" },\n translate('winUpTo', this.language),\n \" \",\n h(\"span\", null, JSON.stringify(this.ticketMultiplier)))),\n h(\"div\", { class: \"NumberOfDrawsContainer\" },\n h(\"p\", null,\n translate('numberOfDraws', this.language),\n \": \",\n this.ticketDrawCount),\n h(\"div\", { class: \"DrawTicketsContainer\" }, this.drawResults.map((item, index) => h(\"div\", { class: \"ExpandableBoxes\" },\n h(\"div\", { class: this.toggleDrawer[index] ? 'ExpandableBox ShowBox' : 'ExpandableBox', onClick: () => this.changeBox(index) },\n h(\"div\", { class: \"TicketResultContainer\" },\n h(\"p\", null,\n translate('ticketResult', this.language),\n \": \",\n item.status)),\n item.state == 'won' &&\n h(\"div\", { class: \"AmountWonContainer\" },\n h(\"p\", null,\n translate('amountWon', this.language),\n \": \",\n Number(item.amount).toLocaleString('en'),\n \" \",\n item.currency)),\n h(\"div\", { class: \"DrawIdContainer\" },\n h(\"p\", null,\n translate('drawId', this.language),\n \": \",\n item.drawId)),\n h(\"div\", { class: \"DrawDateContainer\" },\n h(\"p\", null,\n translate('drawDate', this.language),\n \": \",\n item.updatedAt.slice(0, 10),\n \" | \",\n item.updatedAt.slice(11, 19))),\n h(\"div\", { class: \"DrawNumbersGrid\" }),\n h(\"div\", { class: \"DrawMultipler\" },\n h(\"label\", { class: \"Label\" },\n translate('winUpTo', this.language),\n \" \",\n item.multiplier)))))))))\n :\n h(\"div\", { class: \"DrawResultsArea\" }, this.drawData &&\n h(\"div\", null,\n h(\"div\", { class: \"DrawResultsHeader\" },\n h(\"span\", null,\n translate('drawId', this.language),\n \": \",\n this.drawData.id),\n h(\"span\", null,\n translate('drawDate', this.language),\n \": \",\n this.drawData.date.slice(0, 10))),\n h(\"div\", { class: \"DrawResultsBody\" },\n h(\"div\", { class: \"DrawNumbersGrid\" },\n h(\"p\", null,\n translate('drawNumbersGridDraw', this.language),\n \":\"),\n h(\"div\", { class: \"BulletContainer\" },\n h(\"lottery-grid\", { \"maximum-allowed\": this.rules.maximumAllowed, \"total-numbers\": this.rules.totalNumbers, selectedNumbers: this.drawData.winningNumbers.join(','), \"display-selected\": true, selectable: false, language: this.language })),\n h(\"div\", { class: \"DrawMultipler\" },\n h(\"label\", { class: \"Label\" },\n translate('multiplier', this.language),\n \" \",\n this.multiplier))))))));\n }\n }\n static get is() { return \"lottery-draw-results\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"lottery-draw-results.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"lottery-draw-results.css\"]\n }; }\n static get properties() { return {\n \"endpoint\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Endpoint URL for the source of data\"\n },\n \"attribute\": \"endpoint\",\n \"reflect\": false\n },\n \"gameId\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"GameID of the lottery game\"\n },\n \"attribute\": \"game-id\",\n \"reflect\": false\n },\n \"language\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Language of the widget\"\n },\n \"attribute\": \"language\",\n \"reflect\": false,\n \"defaultValue\": \"'en'\"\n },\n \"playerId\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Player ID\"\n },\n \"attribute\": \"player-id\",\n \"reflect\": false\n },\n \"drawMode\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Shows only the last draw\"\n },\n \"attribute\": \"draw-mode\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"drawId\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The drawID (option)\"\n },\n \"attribute\": \"draw-id\",\n \"reflect\": false,\n \"defaultValue\": \"''\"\n },\n \"gameName\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The game name\"\n },\n \"attribute\": \"game-name\",\n \"reflect\": false,\n \"defaultValue\": \"''\"\n },\n \"ticketDate\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The ticket submission date\"\n },\n \"attribute\": \"ticket-date\",\n \"reflect\": false,\n \"defaultValue\": \"''\"\n },\n \"ticketStatus\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The ticket status\"\n },\n \"attribute\": \"ticket-status\",\n \"reflect\": false,\n \"defaultValue\": \"''\"\n },\n \"ticketId\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The ticket id\"\n },\n \"attribute\": \"ticket-id\",\n \"reflect\": false,\n \"defaultValue\": \"''\"\n },\n \"ticketAmount\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The ticket amount\"\n },\n \"attribute\": \"ticket-amount\",\n \"reflect\": false,\n \"defaultValue\": \"''\"\n },\n \"ticketMultiplier\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The ticket multiplier\"\n },\n \"attribute\": \"ticket-multiplier\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"ticketDrawCount\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The ticket draw count\"\n },\n \"attribute\": \"ticket-draw-count\",\n \"reflect\": false,\n \"defaultValue\": \"0\"\n }\n }; }\n static get states() { return {\n \"multiplier\": {},\n \"isLoading\": {},\n \"drawResults\": {},\n \"rules\": {},\n \"toggleDrawer\": {},\n \"hasErrors\": {},\n \"errorText\": {}\n }; }\n}\n"],"version":3}
@@ -0,0 +1,8 @@
1
+ import { L as LotteryGameDetails$1, d as defineCustomElement$1 } from './lottery-game-details2.js';
2
+
3
+ const LotteryGameDetails = LotteryGameDetails$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { LotteryGameDetails, defineCustomElement };
7
+
8
+ //# sourceMappingURL=lottery-game-details.js.map