@everymatrix/lottery-game-page 1.25.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/helper-accordion.cjs.entry.js +4 -1
- package/dist/cjs/helper-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/helper-filters_2.cjs.entry.js +10069 -9613
- package/dist/cjs/helper-filters_2.cjs.entry.js.map +1 -1
- package/dist/cjs/helper-pagination.cjs.entry.js +7 -1
- package/dist/cjs/helper-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/lottery-draw-results-history.cjs.entry.js +15 -2
- package/dist/cjs/lottery-draw-results-history.cjs.entry.js.map +1 -1
- package/dist/cjs/lottery-game-page.cjs.entry.js +24 -1
- package/dist/cjs/lottery-game-page.cjs.entry.js.map +1 -1
- package/dist/cjs/lottery-ticket-controller.cjs.entry.js +4 -1
- package/dist/cjs/lottery-ticket-controller.cjs.entry.js.map +1 -1
- package/dist/cjs/lottery-ticket.cjs.entry.js +11 -1
- package/dist/cjs/lottery-ticket.cjs.entry.js.map +1 -1
- package/dist/collection/utils/locale.utils.js +24 -1
- package/dist/collection/utils/locale.utils.js.map +1 -1
- package/dist/components/helper-accordion2.js +4 -1
- package/dist/components/helper-accordion2.js.map +1 -1
- package/dist/components/helper-filters2.js +10012 -9573
- package/dist/components/helper-filters2.js.map +1 -1
- package/dist/components/helper-pagination.js +7 -1
- package/dist/components/helper-pagination.js.map +1 -1
- package/dist/components/lottery-draw-results-history2.js +15 -2
- package/dist/components/lottery-draw-results-history2.js.map +1 -1
- package/dist/components/lottery-draw-results2.js +19 -2
- package/dist/components/lottery-draw-results2.js.map +1 -1
- package/dist/components/lottery-game-page.js +24 -1
- package/dist/components/lottery-game-page.js.map +1 -1
- package/dist/components/lottery-ticket-controller2.js +4 -1
- package/dist/components/lottery-ticket-controller2.js.map +1 -1
- package/dist/components/lottery-ticket2.js +11 -1
- package/dist/components/lottery-ticket2.js.map +1 -1
- package/dist/esm/helper-accordion.entry.js +4 -1
- package/dist/esm/helper-accordion.entry.js.map +1 -1
- package/dist/esm/helper-filters_2.entry.js +10069 -9613
- package/dist/esm/helper-filters_2.entry.js.map +1 -1
- package/dist/esm/helper-pagination.entry.js +7 -1
- package/dist/esm/helper-pagination.entry.js.map +1 -1
- package/dist/esm/lottery-draw-results-history.entry.js +15 -2
- package/dist/esm/lottery-draw-results-history.entry.js.map +1 -1
- package/dist/esm/lottery-game-page.entry.js +24 -1
- package/dist/esm/lottery-game-page.entry.js.map +1 -1
- package/dist/esm/lottery-ticket-controller.entry.js +4 -1
- package/dist/esm/lottery-ticket-controller.entry.js.map +1 -1
- package/dist/esm/lottery-ticket.entry.js +11 -1
- package/dist/esm/lottery-ticket.entry.js.map +1 -1
- package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
- package/dist/lottery-game-page/p-12340c50.entry.js +2921 -0
- package/dist/lottery-game-page/p-12340c50.entry.js.map +1 -0
- package/dist/lottery-game-page/p-20e0c81c.entry.js +2 -0
- package/dist/lottery-game-page/p-20e0c81c.entry.js.map +1 -0
- package/dist/lottery-game-page/p-b19ff22c.entry.js +2 -0
- package/dist/lottery-game-page/p-b19ff22c.entry.js.map +1 -0
- package/dist/lottery-game-page/p-cba19473.entry.js +2 -0
- package/dist/lottery-game-page/p-cba19473.entry.js.map +1 -0
- package/dist/lottery-game-page/p-cd4aa6a4.entry.js +2 -0
- package/dist/lottery-game-page/p-cd4aa6a4.entry.js.map +1 -0
- package/dist/lottery-game-page/p-e86e2389.entry.js +2 -0
- package/dist/lottery-game-page/p-e86e2389.entry.js.map +1 -0
- package/dist/lottery-game-page/p-f399eef1.entry.js +2 -0
- package/dist/lottery-game-page/p-f399eef1.entry.js.map +1 -0
- package/package.json +1 -1
- package/dist/lottery-game-page/p-042065c6.entry.js +0 -2
- package/dist/lottery-game-page/p-042065c6.entry.js.map +0 -1
- package/dist/lottery-game-page/p-5b49ab69.entry.js +0 -2
- package/dist/lottery-game-page/p-5b49ab69.entry.js.map +0 -1
- package/dist/lottery-game-page/p-606c0b0f.entry.js +0 -2
- package/dist/lottery-game-page/p-606c0b0f.entry.js.map +0 -1
- package/dist/lottery-game-page/p-96f06e2d.entry.js +0 -2
- package/dist/lottery-game-page/p-96f06e2d.entry.js.map +0 -1
- package/dist/lottery-game-page/p-a9ef5b8c.entry.js +0 -2
- package/dist/lottery-game-page/p-a9ef5b8c.entry.js.map +0 -1
- package/dist/lottery-game-page/p-b8e683f6.entry.js +0 -2
- package/dist/lottery-game-page/p-b8e683f6.entry.js.map +0 -1
- package/dist/lottery-game-page/p-f8578814.entry.js +0 -2899
- package/dist/lottery-game-page/p-f8578814.entry.js.map +0 -1
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-stencil/packages/lottery-game-page/.stencil/packages/lottery-game-page/stencil.config.d.ts +0 -0
|
@@ -14,7 +14,7 @@ const isMobile = (userAgent) => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const DEFAULT_LANGUAGE = 'en';
|
|
17
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hu'];
|
|
17
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hu', 'hr'];
|
|
18
18
|
const TRANSLATIONS = {
|
|
19
19
|
en: {
|
|
20
20
|
firstPage: 'First',
|
|
@@ -45,6 +45,12 @@ const TRANSLATIONS = {
|
|
|
45
45
|
previousPage: 'Previous',
|
|
46
46
|
nextPage: 'Következő',
|
|
47
47
|
lastPage: 'Last'
|
|
48
|
+
},
|
|
49
|
+
hr: {
|
|
50
|
+
firstPage: 'Prva',
|
|
51
|
+
previousPage: 'Prethodna',
|
|
52
|
+
nextPage: 'Slijedeća',
|
|
53
|
+
lastPage: 'Zadnja'
|
|
48
54
|
}
|
|
49
55
|
};
|
|
50
56
|
const translate = (key, customLang) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"helper-pagination.js","mappings":";;AAGA;AACA;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,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,EAC9E,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAC,EACzC,IAAI,CAAC,qBAAqB,IAAI,wBAAwB,CAAC,CAAC;IAC1D,IAAI,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;MAC5B,gBAAgB;QACd,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,EAC9B,CAAC,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,EACrG,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,EAC9E,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,CAAC;KAChD;IACD,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,qBAAqB,EAAE,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,gBAAgB,GAAG,EAAE,EAAE,EACnF,IAAI,CAAC,YAAY,IAAI,eAAe,EACpC,IAAI,CAAC,iBAAiB,IAAI,cAAc,EACxC,IAAI,CAAC,YAAY,IAAI,gBAAgB,CAAC,EAAE;GAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","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', 'hu'];\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 fr: {\n firstPage: 'First',\n previousPage: 'Previous',\n nextPage: 'Next',\n lastPage: 'Last'\n },\n ar: {\n firstPage: 'First',\n previousPage: 'Previous',\n nextPage: 'Next',\n lastPage: 'Last'\n },\n hu: {\n firstPage: 'First',\n previousPage: 'Previous',\n nextPage: 'Következő',\n lastPage: 'Last'\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: 20px 0;\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: 14px;\n }\n}\n@media screen and (max-width: 480px) {\n button {\n width: 70px;\n font-size: 14px;\n }\n\n .paginationArea {\n padding: 5px;\n }\n}\n@media screen and (max-width: 320px) {\n button {\n width: 58px;\n font-size: 12px;\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 * Next page string value - determines if the next page is disabled or active\n */\n this.nextPage = '';\n /**\n * Previous page string value - determines if the previous page is disabled or active\n */\n this.prevPage = '';\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 * Client custom styling via string\n */\n this.clientStyling = '';\n /**\n * Client custom styling via url content\n */\n this.clientStylingUrlContent = '';\n /**\n * Component working variable for last page\n */\n this.lastPage = false;\n /**\n * Component working variable for prvious page\n */\n this.previousPage = false;\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 this.limitStylingAppends = false;\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 -= this.limitInt;\n break;\n case 'nextPage':\n this.offsetInt += this.limitInt;\n break;\n case 'fivePagesBack':\n this.offsetInt -= this.limitInt * 5;\n this.offsetInt = this.offsetInt <= 0 ? 0 : this.offsetInt;\n break;\n case 'fivePagesForward':\n this.offsetInt += this.limitInt * 5;\n this.offsetInt = this.offsetInt / this.limitInt >= this.endInt ? this.endInt * this.limitInt : this.offsetInt;\n break;\n }\n this.previousPage = !this.offsetInt ? false : true;\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 this.previousPage = true;\n if (!isNaN(pageNumber)) {\n if (pageNumber === 1) {\n this.offsetInt = pageNumber - 1;\n this.previousPage = false;\n }\n else {\n this.offsetInt = (pageNumber - 1) * this.limitInt;\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.hpPageChange.emit({ offset: this.offsetInt, limit: this.limitInt, total: this.totalInt });\n };\n this.setClientStyling = () => {\n let sheet = document.createElement('style');\n sheet.innerHTML = this.clientStyling;\n this.stylingContainer.prepend(sheet);\n };\n this.setClientStylingURL = () => {\n let cssFile = document.createElement('style');\n setTimeout(() => {\n cssFile.innerHTML = this.clientStylingUrlContent;\n this.stylingContainer.prepend(cssFile);\n }, 1);\n };\n }\n componentWillRender() {\n this.offsetInt = this.offset;\n this.limitInt = this.limit;\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 componentDidRender() {\n // start custom styling area\n if (!this.limitStylingAppends && this.stylingContainer) {\n if (this.clientStyling)\n this.setClientStyling();\n if (this.clientStylingUrlContent)\n this.setClientStylingURL();\n this.limitStylingAppends = true;\n }\n // end custom styling area\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 buttonSecondaryLeftSide = h(\"button\", { disabled: this.prevPage ? false : true, onClick: this.navigateTo.bind(this, 'firstPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('firstPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" }));\n let buttonsLeftSide = h(\"div\", { class: \"LeftItems\" },\n this.secondaryArrowsActive && buttonSecondaryLeftSide,\n h(\"button\", { disabled: this.prevPage ? false : true, onClick: this.navigateTo.bind(this, 'previousPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('previousPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" })));\n if (isMobile(this.userAgent)) {\n buttonsLeftSide =\n h(\"div\", { class: \"LeftItems\" },\n h(\"button\", { disabled: this.prevPage ? false : true, onClick: this.navigateTo.bind(this, 'previousPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('previousPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" })));\n }\n /**\n * Right navigation area\n */\n let buttonSecondaryRightSide = h(\"button\", { disabled: this.nextPage ? false : true, onClick: this.navigateTo.bind(this, 'lastPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('lastPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" }));\n let buttonsRightSide = h(\"div\", { class: \"RightItems\" },\n h(\"button\", { disabled: this.nextPage ? false : true, onClick: this.navigateTo.bind(this, 'nextPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('nextPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" })),\n this.secondaryArrowsActive && buttonSecondaryRightSide);\n if (isMobile(this.userAgent)) {\n buttonsRightSide =\n h(\"div\", { class: \"RightItems\" },\n h(\"button\", { disabled: this.nextPage ? false : true, onClick: this.navigateTo.bind(this, 'nextPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('nextPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" })));\n }\n return (h(\"div\", { id: \"PaginationContainer\", ref: el => this.stylingContainer = el },\n this.arrowsActive && buttonsLeftSide,\n this.numberedNavActive && navigationArea,\n this.arrowsActive && 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 \"nextPage\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Next page string value - determines if the next page is disabled or active\"\n },\n \"attribute\": \"next-page\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"prevPage\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Previous page string value - determines if the previous page is disabled or active\"\n },\n \"attribute\": \"prev-page\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\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\": true,\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\": true,\n \"defaultValue\": \"'en'\"\n },\n \"clientStyling\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via string\"\n },\n \"attribute\": \"client-styling\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStylingUrlContent\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via url content\"\n },\n \"attribute\": \"client-styling-url-content\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"arrowsActive\": {\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\": \"Customize pagination: Activate pagination arrows\"\n },\n \"attribute\": \"arrows-active\",\n \"reflect\": true\n },\n \"secondaryArrowsActive\": {\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\": \"Customize pagination: Activate pagination secondary arrows\"\n },\n \"attribute\": \"secondary-arrows-active\",\n \"reflect\": true\n },\n \"numberedNavActive\": {\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\": \"Customize pagination: Activate pagination numbered navigation\"\n },\n \"attribute\": \"numbered-nav-active\",\n \"reflect\": true\n }\n }; }\n static get states() { return {\n \"offsetInt\": {},\n \"lastPage\": {},\n \"previousPage\": {},\n \"limitInt\": {},\n \"totalInt\": {},\n \"pagesArray\": {},\n \"endInt\": {},\n \"limitStylingAppends\": {}\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}
|
|
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,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC,CAAC;AACvF,CAAC;;ACdD,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,I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EAAE,EAC9B,CAAC,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,EACrG,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,EAC9E,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,CAAC;KAChD;IACD,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,qBAAqB,EAAE,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,gBAAgB,GAAG,EAAE,EAAE,EACnF,IAAI,CAAC,YAAY,IAAI,eAAe,EACpC,IAAI,CAAC,iBAAiB,IAAI,cAAc,EACxC,IAAI,CAAC,YAAY,IAAI,gBAAgB,CAAC,EAAE;GAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","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', 'hu', 'hr'];\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 fr: {\n firstPage: 'First',\n previousPage: 'Previous',\n nextPage: 'Next',\n lastPage: 'Last'\n },\n ar: {\n firstPage: 'First',\n previousPage: 'Previous',\n nextPage: 'Next',\n lastPage: 'Last'\n },\n hu: {\n firstPage: 'First',\n previousPage: 'Previous',\n nextPage: 'Következő',\n lastPage: 'Last'\n },\n hr: {\n firstPage: 'Prva',\n previousPage: 'Prethodna',\n nextPage: 'Slijedeća',\n lastPage: 'Zadnja'\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: 20px 0;\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: 14px;\n }\n}\n@media screen and (max-width: 480px) {\n button {\n width: 70px;\n font-size: 14px;\n }\n\n .paginationArea {\n padding: 5px;\n }\n}\n@media screen and (max-width: 320px) {\n button {\n width: 58px;\n font-size: 12px;\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 * Next page string value - determines if the next page is disabled or active\n */\n this.nextPage = '';\n /**\n * Previous page string value - determines if the previous page is disabled or active\n */\n this.prevPage = '';\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 * Client custom styling via string\n */\n this.clientStyling = '';\n /**\n * Client custom styling via url content\n */\n this.clientStylingUrlContent = '';\n /**\n * Component working variable for last page\n */\n this.lastPage = false;\n /**\n * Component working variable for prvious page\n */\n this.previousPage = false;\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 this.limitStylingAppends = false;\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 -= this.limitInt;\n break;\n case 'nextPage':\n this.offsetInt += this.limitInt;\n break;\n case 'fivePagesBack':\n this.offsetInt -= this.limitInt * 5;\n this.offsetInt = this.offsetInt <= 0 ? 0 : this.offsetInt;\n break;\n case 'fivePagesForward':\n this.offsetInt += this.limitInt * 5;\n this.offsetInt = this.offsetInt / this.limitInt >= this.endInt ? this.endInt * this.limitInt : this.offsetInt;\n break;\n }\n this.previousPage = !this.offsetInt ? false : true;\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 this.previousPage = true;\n if (!isNaN(pageNumber)) {\n if (pageNumber === 1) {\n this.offsetInt = pageNumber - 1;\n this.previousPage = false;\n }\n else {\n this.offsetInt = (pageNumber - 1) * this.limitInt;\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.hpPageChange.emit({ offset: this.offsetInt, limit: this.limitInt, total: this.totalInt });\n };\n this.setClientStyling = () => {\n let sheet = document.createElement('style');\n sheet.innerHTML = this.clientStyling;\n this.stylingContainer.prepend(sheet);\n };\n this.setClientStylingURL = () => {\n let cssFile = document.createElement('style');\n setTimeout(() => {\n cssFile.innerHTML = this.clientStylingUrlContent;\n this.stylingContainer.prepend(cssFile);\n }, 1);\n };\n }\n componentWillRender() {\n this.offsetInt = this.offset;\n this.limitInt = this.limit;\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 componentDidRender() {\n // start custom styling area\n if (!this.limitStylingAppends && this.stylingContainer) {\n if (this.clientStyling)\n this.setClientStyling();\n if (this.clientStylingUrlContent)\n this.setClientStylingURL();\n this.limitStylingAppends = true;\n }\n // end custom styling area\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 buttonSecondaryLeftSide = h(\"button\", { disabled: this.prevPage ? false : true, onClick: this.navigateTo.bind(this, 'firstPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('firstPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" }));\n let buttonsLeftSide = h(\"div\", { class: \"LeftItems\" },\n this.secondaryArrowsActive && buttonSecondaryLeftSide,\n h(\"button\", { disabled: this.prevPage ? false : true, onClick: this.navigateTo.bind(this, 'previousPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('previousPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" })));\n if (isMobile(this.userAgent)) {\n buttonsLeftSide =\n h(\"div\", { class: \"LeftItems\" },\n h(\"button\", { disabled: this.prevPage ? false : true, onClick: this.navigateTo.bind(this, 'previousPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('previousPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" })));\n }\n /**\n * Right navigation area\n */\n let buttonSecondaryRightSide = h(\"button\", { disabled: this.nextPage ? false : true, onClick: this.navigateTo.bind(this, 'lastPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('lastPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" }));\n let buttonsRightSide = h(\"div\", { class: \"RightItems\" },\n h(\"button\", { disabled: this.nextPage ? false : true, onClick: this.navigateTo.bind(this, 'nextPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('nextPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" })),\n this.secondaryArrowsActive && buttonSecondaryRightSide);\n if (isMobile(this.userAgent)) {\n buttonsRightSide =\n h(\"div\", { class: \"RightItems\" },\n h(\"button\", { disabled: this.nextPage ? false : true, onClick: this.navigateTo.bind(this, 'nextPage') },\n h(\"span\", { class: \"NavigationButton\" }, translate('nextPage', this.language)),\n h(\"span\", { class: \"NavigationIcon\" })));\n }\n return (h(\"div\", { id: \"PaginationContainer\", ref: el => this.stylingContainer = el },\n this.arrowsActive && buttonsLeftSide,\n this.numberedNavActive && navigationArea,\n this.arrowsActive && 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 \"nextPage\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Next page string value - determines if the next page is disabled or active\"\n },\n \"attribute\": \"next-page\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"prevPage\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Previous page string value - determines if the previous page is disabled or active\"\n },\n \"attribute\": \"prev-page\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\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\": true,\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\": true,\n \"defaultValue\": \"'en'\"\n },\n \"clientStyling\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via string\"\n },\n \"attribute\": \"client-styling\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStylingUrlContent\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via url content\"\n },\n \"attribute\": \"client-styling-url-content\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"arrowsActive\": {\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\": \"Customize pagination: Activate pagination arrows\"\n },\n \"attribute\": \"arrows-active\",\n \"reflect\": true\n },\n \"secondaryArrowsActive\": {\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\": \"Customize pagination: Activate pagination secondary arrows\"\n },\n \"attribute\": \"secondary-arrows-active\",\n \"reflect\": true\n },\n \"numberedNavActive\": {\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\": \"Customize pagination: Activate pagination numbered navigation\"\n },\n \"attribute\": \"numbered-nav-active\",\n \"reflect\": true\n }\n }; }\n static get states() { return {\n \"offsetInt\": {},\n \"lastPage\": {},\n \"previousPage\": {},\n \"limitInt\": {},\n \"totalInt\": {},\n \"pagesArray\": {},\n \"endInt\": {},\n \"limitStylingAppends\": {}\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}
|
|
@@ -6,7 +6,7 @@ import { d as defineCustomElement$2 } from './lottery-draw-results2.js';
|
|
|
6
6
|
import { d as defineCustomElement$1 } from './lottery-grid2.js';
|
|
7
7
|
|
|
8
8
|
const DEFAULT_LANGUAGE = 'en';
|
|
9
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar'];
|
|
9
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
10
10
|
const TRANSLATIONS = {
|
|
11
11
|
en: {
|
|
12
12
|
drawResultsHeader: 'Draw results history',
|
|
@@ -59,7 +59,20 @@ const TRANSLATIONS = {
|
|
|
59
59
|
allDrawResultsHistory: 'سجل نتائج كل السحوبات',
|
|
60
60
|
noResults: 'لا توجد نتائج',
|
|
61
61
|
fetchingResults: 'جلب النتائج'
|
|
62
|
-
}
|
|
62
|
+
},
|
|
63
|
+
hr: {
|
|
64
|
+
drawResultsHeader: 'Povijest rezultata izvlačenja',
|
|
65
|
+
drawId: 'ID izvlačenja',
|
|
66
|
+
drawDate: 'Datum izvlačenja',
|
|
67
|
+
drawNumbersGridA: 'Izvučeni brojevi tablica A',
|
|
68
|
+
viewAllResults: 'Pogledaj sve',
|
|
69
|
+
lastFiveDraws: 'Zadnjih 5 izvlačenja',
|
|
70
|
+
lastTenDraws: 'Zadnjih 10 izvlačenja',
|
|
71
|
+
lastFifteenDraws: 'Zadnjih 15 izvlačenja',
|
|
72
|
+
allDrawResultsHistory: 'Povijest svih rezultata izvlačenja',
|
|
73
|
+
noResults: 'Nema rezultata',
|
|
74
|
+
fetchingResults: 'Dohvaćanje rezultata'
|
|
75
|
+
},
|
|
63
76
|
};
|
|
64
77
|
const translate = (key, customLang) => {
|
|
65
78
|
const lang = customLang;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"lottery-draw-results-history2.js","mappings":";;;;;;;AAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACrD,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,EAAE,sBAAsB;AACzC,IAAI,YAAY,E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,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', 'fr', 'ar'];\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 fr: {\n drawResultsHeader: 'Dessiner l\\'historique des résultats',\n drawId: 'ID de tirage',\n drawDate: 'Date du tirage',\n drawNumbersGridA: 'Tirage des numéros Grille',\n viewAllResults: 'Voir tout',\n lastFiveDraws: '5 derniers tirages',\n lastTenDraws: '10 derniers tirages',\n lastFifteenDraws: '15 derniers tirages',\n allDrawResultsHistory: 'Historique des résultats de tous les tirages',\n noResults: 'Aucun résultat',\n fetchingResults: 'Récupération des résultats'\n },\n ar: {\n drawResultsHeader: 'سجل نتائج السحب',\n drawId: 'معرّف السحب',\n drawDate: 'تاريخ السحب',\n drawNumbersGridA: 'شبكة أرقام السحب',\n viewAllResults: 'عرض الكل',\n lastFiveDraws: 'آخر 5 سحوبات',\n lastTenDraws: 'آخر 10 سحوبات',\n lastFifteenDraws: 'آخر 15 سحبًا',\n allDrawResultsHistory: 'سجل نتائج كل السحوبات',\n noResults: 'لا توجد نتائج',\n fetchingResults: 'جلب النتائج'\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 cursor: pointer;\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 /**\n * Client custom styling via string\n */\n this.clientStyling = '';\n /**\n * Client custom styling via url content\n */\n this.clientStylingUrlContent = '';\n this.drawData = [];\n this.winningDataSetsData = [''];\n this.displayAllDrawsResults = true;\n this.showQuickFilters = true;\n this.dateFiltersFrom = '';\n this.dateFiltersTo = '';\n this.isLoading = false;\n this.noResults = false;\n this.limitStylingAppends = false;\n this.getDrawsData = () => {\n let url = new URL(`${this.endpoint}/games/${this.gameId}/draws`);\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.winningDataSetsData = data.items.filter(draw => draw.winningNumbers);\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 if (response.status == 404)\n this.noResults = true;\n return response.json();\n })\n .then((data) => {\n this.drawData = [data].map((item) => item);\n })\n .catch((err) => {\n console.log('err', err);\n })\n .finally(() => {\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 this.setClientStyling = () => {\n let sheet = document.createElement('style');\n sheet.innerHTML = this.clientStyling;\n this.stylingContainer.prepend(sheet);\n };\n this.setClientStylingURL = () => {\n let cssFile = document.createElement('style');\n setTimeout(() => {\n cssFile.innerHTML = this.clientStylingUrlContent;\n this.stylingContainer.prepend(cssFile);\n }, 1);\n };\n }\n // Filters events\n // @Listen('filterDraw')\n // filtersDrawHandler(event: CustomEvent<any>):void {\n // this.isLoading = true;\n // this.showQuickFilters = false;\n // }\n filtersHandler(event) {\n this.showQuickFilters = false;\n this.isLoading = true;\n if (event.detail.ticketDrawId) {\n this.getDrawResults(event.detail.ticketDrawId);\n }\n else {\n this.dateFiltersFrom = event.detail.filterFromCalendar;\n this.dateFiltersTo = event.detail.filterToCalendar;\n this.getDrawsData();\n }\n }\n clearFiltersHandler() {\n this.showQuickFilters = true;\n this.dateFiltersFrom = '';\n this.dateFiltersTo = '';\n this.drawData = this.winningDataSetsData;\n this.isLoading = true;\n this.getDrawsData();\n }\n connectedCallback() {\n if (this.showQuickFilters)\n this.getDrawsData();\n }\n disconnectedCallback() {\n clearInterval(this.interval);\n }\n componentDidRender() {\n // start custom styling area\n if (!this.limitStylingAppends && this.stylingContainer) {\n if (this.clientStyling)\n this.setClientStyling();\n if (this.clientStylingUrlContent)\n this.setClientStylingURL();\n this.limitStylingAppends = true;\n }\n // end custom styling area\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, \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent }))),\n ]);\n return h(\"section\", { class: \"GridWrapper\", ref: el => this.stylingContainer = el },\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, \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent })).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\": true\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\": true\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\": true,\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\": true,\n \"defaultValue\": \"'en'\"\n },\n \"clientStyling\": {\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\": \"Client custom styling via string\"\n },\n \"attribute\": \"client-styling\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStylingUrlContent\": {\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\": \"Client custom styling via url content\"\n },\n \"attribute\": \"client-styling-url-content\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n }\n }; }\n static get states() { return {\n \"drawData\": {},\n \"winningDataSetsData\": {},\n \"displayAllDrawsResults\": {},\n \"showQuickFilters\": {},\n \"dateFiltersFrom\": {},\n \"dateFiltersTo\": {},\n \"isLoading\": {},\n \"noResults\": {},\n \"limitStylingAppends\": {}\n }; }\n static get listeners() { return [{\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}
|
|
1
|
+
{"file":"lottery-draw-results-history2.js","mappings":";;;;;;;AAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,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,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', 'fr', 'ar', 'hr'];\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 fr: {\n drawResultsHeader: 'Dessiner l\\'historique des résultats',\n drawId: 'ID de tirage',\n drawDate: 'Date du tirage',\n drawNumbersGridA: 'Tirage des numéros Grille',\n viewAllResults: 'Voir tout',\n lastFiveDraws: '5 derniers tirages',\n lastTenDraws: '10 derniers tirages',\n lastFifteenDraws: '15 derniers tirages',\n allDrawResultsHistory: 'Historique des résultats de tous les tirages',\n noResults: 'Aucun résultat',\n fetchingResults: 'Récupération des résultats'\n },\n ar: {\n drawResultsHeader: 'سجل نتائج السحب',\n drawId: 'معرّف السحب',\n drawDate: 'تاريخ السحب',\n drawNumbersGridA: 'شبكة أرقام السحب',\n viewAllResults: 'عرض الكل',\n lastFiveDraws: 'آخر 5 سحوبات',\n lastTenDraws: 'آخر 10 سحوبات',\n lastFifteenDraws: 'آخر 15 سحبًا',\n allDrawResultsHistory: 'سجل نتائج كل السحوبات',\n noResults: 'لا توجد نتائج',\n fetchingResults: 'جلب النتائج'\n },\n hr: {\n drawResultsHeader: 'Povijest rezultata izvlačenja',\n drawId: 'ID izvlačenja',\n drawDate: 'Datum izvlačenja',\n drawNumbersGridA: 'Izvučeni brojevi tablica A',\n viewAllResults: 'Pogledaj sve',\n lastFiveDraws: 'Zadnjih 5 izvlačenja',\n lastTenDraws: 'Zadnjih 10 izvlačenja',\n lastFifteenDraws: 'Zadnjih 15 izvlačenja',\n allDrawResultsHistory: 'Povijest svih rezultata izvlačenja',\n noResults: 'Nema rezultata',\n fetchingResults: 'Dohvaćanje rezultata'\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 cursor: pointer;\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 /**\n * Client custom styling via string\n */\n this.clientStyling = '';\n /**\n * Client custom styling via url content\n */\n this.clientStylingUrlContent = '';\n this.drawData = [];\n this.winningDataSetsData = [''];\n this.displayAllDrawsResults = true;\n this.showQuickFilters = true;\n this.dateFiltersFrom = '';\n this.dateFiltersTo = '';\n this.isLoading = false;\n this.noResults = false;\n this.limitStylingAppends = false;\n this.getDrawsData = () => {\n let url = new URL(`${this.endpoint}/games/${this.gameId}/draws`);\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.winningDataSetsData = data.items.filter(draw => draw.winningNumbers);\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 if (response.status == 404)\n this.noResults = true;\n return response.json();\n })\n .then((data) => {\n this.drawData = [data].map((item) => item);\n })\n .catch((err) => {\n console.log('err', err);\n })\n .finally(() => {\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 this.setClientStyling = () => {\n let sheet = document.createElement('style');\n sheet.innerHTML = this.clientStyling;\n this.stylingContainer.prepend(sheet);\n };\n this.setClientStylingURL = () => {\n let cssFile = document.createElement('style');\n setTimeout(() => {\n cssFile.innerHTML = this.clientStylingUrlContent;\n this.stylingContainer.prepend(cssFile);\n }, 1);\n };\n }\n // Filters events\n // @Listen('filterDraw')\n // filtersDrawHandler(event: CustomEvent<any>):void {\n // this.isLoading = true;\n // this.showQuickFilters = false;\n // }\n filtersHandler(event) {\n this.showQuickFilters = false;\n this.isLoading = true;\n if (event.detail.ticketDrawId) {\n this.getDrawResults(event.detail.ticketDrawId);\n }\n else {\n this.dateFiltersFrom = event.detail.filterFromCalendar;\n this.dateFiltersTo = event.detail.filterToCalendar;\n this.getDrawsData();\n }\n }\n clearFiltersHandler() {\n this.showQuickFilters = true;\n this.dateFiltersFrom = '';\n this.dateFiltersTo = '';\n this.drawData = this.winningDataSetsData;\n this.isLoading = true;\n this.getDrawsData();\n }\n connectedCallback() {\n if (this.showQuickFilters)\n this.getDrawsData();\n }\n disconnectedCallback() {\n clearInterval(this.interval);\n }\n componentDidRender() {\n // start custom styling area\n if (!this.limitStylingAppends && this.stylingContainer) {\n if (this.clientStyling)\n this.setClientStyling();\n if (this.clientStylingUrlContent)\n this.setClientStylingURL();\n this.limitStylingAppends = true;\n }\n // end custom styling area\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, \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent }))),\n ]);\n return h(\"section\", { class: \"GridWrapper\", ref: el => this.stylingContainer = el },\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, \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent })).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\": true\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\": true\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\": true,\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\": true,\n \"defaultValue\": \"'en'\"\n },\n \"clientStyling\": {\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\": \"Client custom styling via string\"\n },\n \"attribute\": \"client-styling\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStylingUrlContent\": {\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\": \"Client custom styling via url content\"\n },\n \"attribute\": \"client-styling-url-content\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n }\n }; }\n static get states() { return {\n \"drawData\": {},\n \"winningDataSetsData\": {},\n \"displayAllDrawsResults\": {},\n \"showQuickFilters\": {},\n \"dateFiltersFrom\": {},\n \"dateFiltersTo\": {},\n \"isLoading\": {},\n \"noResults\": {},\n \"limitStylingAppends\": {}\n }; }\n static get listeners() { return [{\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}
|
|
@@ -3,7 +3,7 @@ import { d as defineCustomElement$2 } from './lottery-bullet2.js';
|
|
|
3
3
|
import { d as defineCustomElement$1 } from './lottery-grid2.js';
|
|
4
4
|
|
|
5
5
|
const DEFAULT_LANGUAGE = 'en';
|
|
6
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
6
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
|
|
7
7
|
const TRANSLATIONS = {
|
|
8
8
|
en: {
|
|
9
9
|
drawResultsHeader: 'Last draw results',
|
|
@@ -72,7 +72,24 @@ const TRANSLATIONS = {
|
|
|
72
72
|
ticketId: 'معرّف التذكرة',
|
|
73
73
|
ticketAmount: 'مبلغ التذكرة',
|
|
74
74
|
winUpTo: 'ربح يصل إلى'
|
|
75
|
-
}
|
|
75
|
+
},
|
|
76
|
+
hr: {
|
|
77
|
+
drawResultsHeader: 'Rezultati posljednjeg izvlačenja',
|
|
78
|
+
drawId: 'ID izvlačenja',
|
|
79
|
+
drawName: 'Naziv igre',
|
|
80
|
+
drawDate: 'Datum izvlačenja',
|
|
81
|
+
drawNumbersGridDraw: 'Tablica izvučenih brojeva',
|
|
82
|
+
drawNumbersGridTicket: 'Tablica izvučenih brojeva',
|
|
83
|
+
ticketResult: 'Rezultat listića',
|
|
84
|
+
amountWon: 'Osvojeni iznos',
|
|
85
|
+
numberOfDraws: 'Broj izvlačenja',
|
|
86
|
+
multiplier: 'Multiplikator',
|
|
87
|
+
ticketPurchaseDate: 'Datum uplate listića',
|
|
88
|
+
ticketStatus: 'Status listića',
|
|
89
|
+
ticketId: 'ID listića',
|
|
90
|
+
ticketAmount: 'Iznos listića',
|
|
91
|
+
winUpTo: 'Osvoji do'
|
|
92
|
+
},
|
|
76
93
|
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AAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,EACjC,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAC3B,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,EACtC,GAAG,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,QAAQ,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC;gBAClE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;aAC3B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;KACvB;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","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 ',\n drawNumbersGridTicket: 'Draw numbers Grid ',\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',\n drawNumbersGridTicket: 'Numerele extrase Grid',\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 fr: {\n drawResultsHeader: 'Résultats du dernier tirage',\n drawId: 'ID de tirage',\n drawName: 'Nom du jeu',\n drawDate: 'Date du tirage',\n drawNumbersGridDraw: 'Tirage des numéros Grille',\n drawNumbersGridTicket: 'Tirage des numéros Grille',\n ticketResult: 'Résultat du ticket',\n amountWon: 'Montant gagné',\n numberOfDraws: 'Nombre de tirages',\n multiplier: 'Multiplicateur',\n ticketPurchaseDate: 'Date d\\'achat du billet',\n ticketStatus: 'Statut du ticket',\n ticketId: 'ID de billets',\n ticketAmount: 'Montant du billet',\n winUpTo: 'Gagnez jusqu\\'à'\n },\n ar: {\n drawResultsHeader: 'نتائج آخر سحب',\n drawId: 'معرّف السحب',\n drawName: 'اسم اللعبة',\n drawDate: 'تاريخ السحب',\n drawNumbersGridDraw: 'شبكة أرقام السحب',\n drawNumbersGridTicket: 'شبكة أرقام السحب',\n ticketResult: 'نتيجة التذكرة',\n amountWon: 'المبلغ الذي تم ربحه',\n numberOfDraws: 'عدد السحوبات',\n multiplier: 'مضاعف',\n ticketPurchaseDate: 'تاريخ شراء التذكرة',\n ticketStatus: 'حالة التذكرة',\n ticketId: 'معرّف التذكرة',\n ticketAmount: 'مبلغ التذكرة',\n winUpTo: 'ربح يصل إلى'\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.DrawResultsArea.TicketDraws .Content {\n padding: 0;\n border: 0;\n}\n.DrawResultsArea.TicketDraws .DrawResultsBody {\n padding: 0;\n margin-bottom: 5px;\n border-radius: 0;\n border: 0;\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.DrawResultsBody {\n padding: 20px;\n margin-bottom: 5px;\n border-radius: 0 0 4px 4px;\n border: 1px solid #009993;\n}\n.DrawResultsBody > div {\n margin: 10px 0;\n}\n.DrawResultsBody .NumberOfDrawsContainer {\n display: table;\n width: 100%;\n}\n\n.DrawNumbersGrid {\n display: flex;\n flex-direction: column;\n gap: 5px;\n}\n.DrawNumbersGrid label {\n display: block;\n margin-bottom: 7px;\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 position: relative;\n}\n\n.DrawTicketsContainer {\n display: flex;\n flex-direction: column;\n margin: 20px auto 0;\n}\n\n.DrawMultipler {\n margin-top: 15px;\n}\n\n.ExpandableBoxes {\n position: relative;\n display: flex;\n flex-direction: column;\n border: 1px solid #ccc;\n border-radius: 5px;\n background-color: white;\n}\n\n.ExpandableBox {\n border-bottom: 1px solid #ccc;\n transition: height 300ms ease-in-out;\n overflow: hidden;\n height: 80px;\n}\n.ExpandableBox:last-child {\n border-bottom: 0;\n}\n.ExpandableBoxHeader {\n position: relative;\n list-style: none;\n outline: 0;\n cursor: pointer;\n text-transform: uppercase;\n transition: color 300ms ease-in-out;\n margin-bottom: 24px;\n margin-left: 5px;\n}\n.ShowBox > .ExpandableBoxHeader {\n color: #009993;\n}\n.ExpandableBoxHeader::-webkit-details-marker {\n display: none;\n}\n.ExpandableBoxHeader:before, .ExpandableBoxHeader:after {\n content: \"\";\n position: absolute;\n}\n.ExpandableBoxHeader:before {\n right: 21px;\n top: 50%;\n height: 2px;\n margin-top: -1px;\n width: 16px;\n background: #009993;\n}\n.ExpandableBoxHeader:after {\n right: 28px;\n top: 50%;\n height: 16px;\n margin-top: -8px;\n width: 2px;\n margin-left: -1px;\n background: #009993;\n transition: all 300ms ease-in-out;\n}\n.ShowBox .ExpandableBoxHeader:after {\n opacity: 0;\n transform: translateY(25%);\n}\n.ExpandableBoxBody {\n padding-top: 0;\n font-weight: lighter;\n margin-left: 5px;\n}\n.ExpandableBox.ShowBox {\n height: 300px;\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 /**\n * The ticket winning numbers\n */\n this.ticketNumbers = '';\n /**\n * The session id\n */\n this.sessionId = '';\n /**\n * Client custom styling via string\n */\n this.clientStyling = '';\n /**\n * Client custom styling via url content\n */\n this.clientStylingUrlContent = '';\n /**\n * Data showing the ticket's draw results details\n */\n this.ticketDrawData = '';\n this.multiplier = 3;\n this.isLoading = true;\n this.hasErrors = false;\n this.errorText = '';\n this.ticketData = [];\n this.ticketDataLoaded = false;\n this.ticketDraws = [];\n this.toggleDrawer = [false];\n this.limitStylingAppends = false;\n this.ticketDrawDetails = [];\n this.ticketDrawDetailsFlag = true;\n this.setClientStyling = () => {\n let sheet = document.createElement('style');\n sheet.innerHTML = this.clientStyling;\n this.stylingContainer.prepend(sheet);\n };\n this.setClientStylingURL = () => {\n let cssFile = document.createElement('style');\n setTimeout(() => {\n cssFile.innerHTML = this.clientStylingUrlContent;\n this.stylingContainer.prepend(cssFile);\n }, 1);\n };\n }\n connectedCallback() {\n let promises = [];\n // Split ticket numbers for each grid\n if (this.ticketNumbers) {\n this.gridNumbers = JSON.parse(this.ticketNumbers);\n }\n if (this.drawId) {\n promises.push(this.getDrawData());\n }\n Promise.all(promises)\n .then(() => {\n this.isLoading = false;\n }).catch((err) => {\n console.log('error ', err);\n this.isLoading = false;\n });\n }\n componentWillRender() {\n if (this.ticketDrawData && this.ticketDrawDetailsFlag) {\n this.ticketDrawDetails = JSON.parse(this.ticketDrawData);\n this.ticketDrawDetails.forEach((drawDetail) => {\n this.getDrawData(drawDetail.drawId).then((drawData) => drawDetail.drawData = drawData);\n });\n this.ticketDrawDetailsFlag = false;\n }\n }\n componentDidRender() {\n // start custom styling area\n if (!this.limitStylingAppends && this.stylingContainer) {\n if (this.clientStyling)\n this.setClientStyling();\n if (this.clientStylingUrlContent)\n this.setClientStylingURL();\n this.limitStylingAppends = true;\n }\n // end custom styling area\n }\n getDrawData(drawId) {\n this.isLoading = true;\n return new Promise((resolve, reject) => {\n let url = new URL(`${this.endpoint}/games/${this.gameId}/draws/${drawId ? drawId : this.drawId}`);\n fetch(url.href)\n .then((response) => {\n // @TODO EXCEPTIONS\n return response.json();\n })\n .then((data) => {\n if (drawId) {\n resolve(data);\n }\n else {\n this.drawData = data;\n resolve(true);\n }\n this.isLoading = false;\n })\n .catch((err) => {\n reject(err);\n this.isLoading = false;\n });\n });\n }\n drawerToggle(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 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\", ref: el => this.stylingContainer = el }, this.drawMode ?\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 \"0:\"),\n h(\"div\", { class: \"BulletContainer\" },\n h(\"lottery-grid\", { \"selected-numbers\": this.drawData.winningNumbers.join(','), \"display-selected\": true, selectable: false, language: this.language, \"grid-type\": 'ticket', \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent })),\n h(\"div\", { class: \"DrawMultipler\" },\n h(\"label\", { class: \"Label\" },\n translate('multiplier', this.language),\n \" \",\n this.multiplier))))))\n :\n h(\"div\", { class: \"DrawResultsArea TicketDraws\" },\n h(\"div\", { class: \"DrawResultsBody\" },\n h(\"div\", { class: \"TicketIdContainer\" },\n h(\"label\", { class: \"Label\" },\n translate('ticketId', this.language),\n \": \",\n h(\"span\", null, this.ticketId))),\n h(\"div\", { class: \"TicketAmountContainer\" },\n h(\"label\", { class: \"Label\" },\n translate('ticketAmount', this.language),\n \" \",\n h(\"span\", null, this.ticketAmount))),\n h(\"div\", { class: \"DrawNumbersGrid\" }, this.gridNumbers.map((grid, index) => h(\"div\", null,\n h(\"label\", { class: \"Label\" },\n translate('drawNumbersGridTicket', this.language),\n \" \",\n String.fromCharCode(index + 65),\n \":\"),\n h(\"div\", { class: \"BulletContainer\" },\n h(\"lottery-grid\", { \"selected-numbers\": grid.join(','), selectable: false, \"display-selected\": true, language: this.language, \"grid-type\": 'ticket', \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent }))))),\n h(\"div\", { class: \"DrawMultipler\" },\n h(\"label\", { class: \"Label\" },\n translate('multiplier', this.language),\n \" \",\n JSON.stringify(this.ticketMultiplier))),\n h(\"div\", { class: \"NumberOfDrawsContainer\" },\n h(\"label\", { class: \"Label\" },\n translate('numberOfDraws', this.language),\n \": \",\n this.ticketDrawCount),\n h(\"div\", { class: \"DrawTicketsContainer\" }, this.ticketDrawDetails && this.ticketDrawDetails.length > 0 &&\n h(\"div\", { class: \"ExpandableBoxes\" }, this.ticketDrawDetails.map((drawDetail, index) => {\n var _a, _b, _c, _d, _e;\n return h(\"div\", { class: { 'ExpandableBox': true, 'ShowBox': this.toggleDrawer[index] }, onClick: () => this.drawerToggle(index) },\n h(\"div\", { class: \"ExpandableBoxHeader\" },\n h(\"div\", { class: \"TicketResultContainer\" },\n h(\"p\", null,\n translate('ticketResult', this.language),\n \": \",\n drawDetail.state)),\n drawDetail.state == 'won' &&\n h(\"div\", { class: \"AmountWonContainer\" },\n h(\"p\", null,\n translate('amountWon', this.language),\n \": \",\n Number(drawDetail.amount).toLocaleString('en'),\n \" \",\n drawDetail.currency)),\n drawDetail.state == 'lost' &&\n h(\"div\", { class: \"DrawIdContainer\" },\n h(\"p\", null,\n translate('drawId', this.language),\n \": \",\n drawDetail.drawId))),\n h(\"div\", { class: \"ExpandableBoxBody\" },\n h(\"div\", { class: \"DrawIdContainer\" },\n h(\"p\", null,\n translate('drawId', this.language),\n \": \",\n drawDetail.drawId)),\n h(\"div\", { class: \"DrawDateContainer\" },\n h(\"p\", null,\n translate('drawDate', this.language),\n \": \", (_a = drawDetail.drawData) === null || _a === void 0 ? void 0 :\n _a.date.slice(0, 10),\n \" | \", (_b = drawDetail.drawData) === null || _b === void 0 ? void 0 :\n _b.date.slice(11, 19))),\n h(\"div\", { class: \"DrawNumbersGrid\" }, drawDetail.drawData &&\n h(\"div\", { class: 'BulletContainer' },\n h(\"label\", { class: \"Label\" },\n translate('drawNumbersGridDraw', this.language),\n \" \",\n String.fromCharCode(index + 10),\n \":\"),\n h(\"lottery-grid\", { \"selected-numbers\": (_d = (_c = drawDetail.drawData) === null || _c === void 0 ? void 0 : _c.winningNumbers) === null || _d === void 0 ? void 0 : _d.join(','), selectable: false, \"display-selected\": true, language: this.language, \"grid-type\": 'ticket', \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent }))),\n h(\"div\", { class: \"DrawMultipler\" },\n h(\"label\", { class: \"Label\" },\n translate('multiplier', this.language),\n \" \", (_e = drawDetail.drawData) === null || _e === void 0 ? void 0 :\n _e.multiplier))));\n }))))))));\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\": true\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\": true\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\": true,\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\": true\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\": true,\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\": true,\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\": true,\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\": true,\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\": true,\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\": true,\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\": true,\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\": true,\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\": true,\n \"defaultValue\": \"0\"\n },\n \"ticketNumbers\": {\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 winning numbers\"\n },\n \"attribute\": \"ticket-numbers\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"sessionId\": {\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 session id\"\n },\n \"attribute\": \"session-id\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStyling\": {\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\": \"Client custom styling via string\"\n },\n \"attribute\": \"client-styling\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStylingUrlContent\": {\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\": \"Client custom styling via url content\"\n },\n \"attribute\": \"client-styling-url-content\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"ticketDrawData\": {\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\": \"Data showing the ticket's draw results details\"\n },\n \"attribute\": \"ticket-draw-data\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n }\n }; }\n static get states() { return {\n \"multiplier\": {},\n \"isLoading\": {},\n \"hasErrors\": {},\n \"errorText\": {},\n \"ticketData\": {},\n \"ticketDataLoaded\": {},\n \"ticketDraws\": {},\n \"toggleDrawer\": {},\n \"limitStylingAppends\": {},\n \"drawData\": {}\n }; }\n}\n"],"version":3}
|
|
1
|
+
{"file":"lottery-draw-results2.js","mappings":";;;;AAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC/C,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,oBAAoB;AAC7C,IAAI,qBAAqB,EAAE,oBAAoB;AAC/C,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,QAAQ,EAAE,WAAW;AACzB,IAAI,YAA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G,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,QAAQ,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC;gBAClE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;aAC3B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;KACvB;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","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', 'hr'];\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 ',\n drawNumbersGridTicket: 'Draw numbers Grid ',\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',\n drawNumbersGridTicket: 'Numerele extrase Grid',\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 fr: {\n drawResultsHeader: 'Résultats du dernier tirage',\n drawId: 'ID de tirage',\n drawName: 'Nom du jeu',\n drawDate: 'Date du tirage',\n drawNumbersGridDraw: 'Tirage des numéros Grille',\n drawNumbersGridTicket: 'Tirage des numéros Grille',\n ticketResult: 'Résultat du ticket',\n amountWon: 'Montant gagné',\n numberOfDraws: 'Nombre de tirages',\n multiplier: 'Multiplicateur',\n ticketPurchaseDate: 'Date d\\'achat du billet',\n ticketStatus: 'Statut du ticket',\n ticketId: 'ID de billets',\n ticketAmount: 'Montant du billet',\n winUpTo: 'Gagnez jusqu\\'à'\n },\n ar: {\n drawResultsHeader: 'نتائج آخر سحب',\n drawId: 'معرّف السحب',\n drawName: 'اسم اللعبة',\n drawDate: 'تاريخ السحب',\n drawNumbersGridDraw: 'شبكة أرقام السحب',\n drawNumbersGridTicket: 'شبكة أرقام السحب',\n ticketResult: 'نتيجة التذكرة',\n amountWon: 'المبلغ الذي تم ربحه',\n numberOfDraws: 'عدد السحوبات',\n multiplier: 'مضاعف',\n ticketPurchaseDate: 'تاريخ شراء التذكرة',\n ticketStatus: 'حالة التذكرة',\n ticketId: 'معرّف التذكرة',\n ticketAmount: 'مبلغ التذكرة',\n winUpTo: 'ربح يصل إلى'\n },\n hr: {\n drawResultsHeader: 'Rezultati posljednjeg izvlačenja',\n drawId: 'ID izvlačenja',\n drawName: 'Naziv igre',\n drawDate: 'Datum izvlačenja',\n drawNumbersGridDraw: 'Tablica izvučenih brojeva',\n drawNumbersGridTicket: 'Tablica izvučenih brojeva',\n ticketResult: 'Rezultat listića',\n amountWon: 'Osvojeni iznos',\n numberOfDraws: 'Broj izvlačenja',\n multiplier: 'Multiplikator',\n ticketPurchaseDate: 'Datum uplate listića',\n ticketStatus: 'Status listića',\n ticketId: 'ID listića',\n ticketAmount: 'Iznos listića',\n winUpTo: 'Osvoji do'\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.DrawResultsArea.TicketDraws .Content {\n padding: 0;\n border: 0;\n}\n.DrawResultsArea.TicketDraws .DrawResultsBody {\n padding: 0;\n margin-bottom: 5px;\n border-radius: 0;\n border: 0;\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.DrawResultsBody {\n padding: 20px;\n margin-bottom: 5px;\n border-radius: 0 0 4px 4px;\n border: 1px solid #009993;\n}\n.DrawResultsBody > div {\n margin: 10px 0;\n}\n.DrawResultsBody .NumberOfDrawsContainer {\n display: table;\n width: 100%;\n}\n\n.DrawNumbersGrid {\n display: flex;\n flex-direction: column;\n gap: 5px;\n}\n.DrawNumbersGrid label {\n display: block;\n margin-bottom: 7px;\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 position: relative;\n}\n\n.DrawTicketsContainer {\n display: flex;\n flex-direction: column;\n margin: 20px auto 0;\n}\n\n.DrawMultipler {\n margin-top: 15px;\n}\n\n.ExpandableBoxes {\n position: relative;\n display: flex;\n flex-direction: column;\n border: 1px solid #ccc;\n border-radius: 5px;\n background-color: white;\n}\n\n.ExpandableBox {\n border-bottom: 1px solid #ccc;\n transition: height 300ms ease-in-out;\n overflow: hidden;\n height: 80px;\n}\n.ExpandableBox:last-child {\n border-bottom: 0;\n}\n.ExpandableBoxHeader {\n position: relative;\n list-style: none;\n outline: 0;\n cursor: pointer;\n text-transform: uppercase;\n transition: color 300ms ease-in-out;\n margin-bottom: 24px;\n margin-left: 5px;\n}\n.ShowBox > .ExpandableBoxHeader {\n color: #009993;\n}\n.ExpandableBoxHeader::-webkit-details-marker {\n display: none;\n}\n.ExpandableBoxHeader:before, .ExpandableBoxHeader:after {\n content: \"\";\n position: absolute;\n}\n.ExpandableBoxHeader:before {\n right: 21px;\n top: 50%;\n height: 2px;\n margin-top: -1px;\n width: 16px;\n background: #009993;\n}\n.ExpandableBoxHeader:after {\n right: 28px;\n top: 50%;\n height: 16px;\n margin-top: -8px;\n width: 2px;\n margin-left: -1px;\n background: #009993;\n transition: all 300ms ease-in-out;\n}\n.ShowBox .ExpandableBoxHeader:after {\n opacity: 0;\n transform: translateY(25%);\n}\n.ExpandableBoxBody {\n padding-top: 0;\n font-weight: lighter;\n margin-left: 5px;\n}\n.ExpandableBox.ShowBox {\n height: 300px;\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 /**\n * The ticket winning numbers\n */\n this.ticketNumbers = '';\n /**\n * The session id\n */\n this.sessionId = '';\n /**\n * Client custom styling via string\n */\n this.clientStyling = '';\n /**\n * Client custom styling via url content\n */\n this.clientStylingUrlContent = '';\n /**\n * Data showing the ticket's draw results details\n */\n this.ticketDrawData = '';\n this.multiplier = 3;\n this.isLoading = true;\n this.hasErrors = false;\n this.errorText = '';\n this.ticketData = [];\n this.ticketDataLoaded = false;\n this.ticketDraws = [];\n this.toggleDrawer = [false];\n this.limitStylingAppends = false;\n this.ticketDrawDetails = [];\n this.ticketDrawDetailsFlag = true;\n this.setClientStyling = () => {\n let sheet = document.createElement('style');\n sheet.innerHTML = this.clientStyling;\n this.stylingContainer.prepend(sheet);\n };\n this.setClientStylingURL = () => {\n let cssFile = document.createElement('style');\n setTimeout(() => {\n cssFile.innerHTML = this.clientStylingUrlContent;\n this.stylingContainer.prepend(cssFile);\n }, 1);\n };\n }\n connectedCallback() {\n let promises = [];\n // Split ticket numbers for each grid\n if (this.ticketNumbers) {\n this.gridNumbers = JSON.parse(this.ticketNumbers);\n }\n if (this.drawId) {\n promises.push(this.getDrawData());\n }\n Promise.all(promises)\n .then(() => {\n this.isLoading = false;\n }).catch((err) => {\n console.log('error ', err);\n this.isLoading = false;\n });\n }\n componentWillRender() {\n if (this.ticketDrawData && this.ticketDrawDetailsFlag) {\n this.ticketDrawDetails = JSON.parse(this.ticketDrawData);\n this.ticketDrawDetails.forEach((drawDetail) => {\n this.getDrawData(drawDetail.drawId).then((drawData) => drawDetail.drawData = drawData);\n });\n this.ticketDrawDetailsFlag = false;\n }\n }\n componentDidRender() {\n // start custom styling area\n if (!this.limitStylingAppends && this.stylingContainer) {\n if (this.clientStyling)\n this.setClientStyling();\n if (this.clientStylingUrlContent)\n this.setClientStylingURL();\n this.limitStylingAppends = true;\n }\n // end custom styling area\n }\n getDrawData(drawId) {\n this.isLoading = true;\n return new Promise((resolve, reject) => {\n let url = new URL(`${this.endpoint}/games/${this.gameId}/draws/${drawId ? drawId : this.drawId}`);\n fetch(url.href)\n .then((response) => {\n // @TODO EXCEPTIONS\n return response.json();\n })\n .then((data) => {\n if (drawId) {\n resolve(data);\n }\n else {\n this.drawData = data;\n resolve(true);\n }\n this.isLoading = false;\n })\n .catch((err) => {\n reject(err);\n this.isLoading = false;\n });\n });\n }\n drawerToggle(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 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\", ref: el => this.stylingContainer = el }, this.drawMode ?\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 \"0:\"),\n h(\"div\", { class: \"BulletContainer\" },\n h(\"lottery-grid\", { \"selected-numbers\": this.drawData.winningNumbers.join(','), \"display-selected\": true, selectable: false, language: this.language, \"grid-type\": 'ticket', \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent })),\n h(\"div\", { class: \"DrawMultipler\" },\n h(\"label\", { class: \"Label\" },\n translate('multiplier', this.language),\n \" \",\n this.multiplier))))))\n :\n h(\"div\", { class: \"DrawResultsArea TicketDraws\" },\n h(\"div\", { class: \"DrawResultsBody\" },\n h(\"div\", { class: \"TicketIdContainer\" },\n h(\"label\", { class: \"Label\" },\n translate('ticketId', this.language),\n \": \",\n h(\"span\", null, this.ticketId))),\n h(\"div\", { class: \"TicketAmountContainer\" },\n h(\"label\", { class: \"Label\" },\n translate('ticketAmount', this.language),\n \" \",\n h(\"span\", null, this.ticketAmount))),\n h(\"div\", { class: \"DrawNumbersGrid\" }, this.gridNumbers.map((grid, index) => h(\"div\", null,\n h(\"label\", { class: \"Label\" },\n translate('drawNumbersGridTicket', this.language),\n \" \",\n String.fromCharCode(index + 65),\n \":\"),\n h(\"div\", { class: \"BulletContainer\" },\n h(\"lottery-grid\", { \"selected-numbers\": grid.join(','), selectable: false, \"display-selected\": true, language: this.language, \"grid-type\": 'ticket', \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent }))))),\n h(\"div\", { class: \"DrawMultipler\" },\n h(\"label\", { class: \"Label\" },\n translate('multiplier', this.language),\n \" \",\n JSON.stringify(this.ticketMultiplier))),\n h(\"div\", { class: \"NumberOfDrawsContainer\" },\n h(\"label\", { class: \"Label\" },\n translate('numberOfDraws', this.language),\n \": \",\n this.ticketDrawCount),\n h(\"div\", { class: \"DrawTicketsContainer\" }, this.ticketDrawDetails && this.ticketDrawDetails.length > 0 &&\n h(\"div\", { class: \"ExpandableBoxes\" }, this.ticketDrawDetails.map((drawDetail, index) => {\n var _a, _b, _c, _d, _e;\n return h(\"div\", { class: { 'ExpandableBox': true, 'ShowBox': this.toggleDrawer[index] }, onClick: () => this.drawerToggle(index) },\n h(\"div\", { class: \"ExpandableBoxHeader\" },\n h(\"div\", { class: \"TicketResultContainer\" },\n h(\"p\", null,\n translate('ticketResult', this.language),\n \": \",\n drawDetail.state)),\n drawDetail.state == 'won' &&\n h(\"div\", { class: \"AmountWonContainer\" },\n h(\"p\", null,\n translate('amountWon', this.language),\n \": \",\n Number(drawDetail.amount).toLocaleString('en'),\n \" \",\n drawDetail.currency)),\n drawDetail.state == 'lost' &&\n h(\"div\", { class: \"DrawIdContainer\" },\n h(\"p\", null,\n translate('drawId', this.language),\n \": \",\n drawDetail.drawId))),\n h(\"div\", { class: \"ExpandableBoxBody\" },\n h(\"div\", { class: \"DrawIdContainer\" },\n h(\"p\", null,\n translate('drawId', this.language),\n \": \",\n drawDetail.drawId)),\n h(\"div\", { class: \"DrawDateContainer\" },\n h(\"p\", null,\n translate('drawDate', this.language),\n \": \", (_a = drawDetail.drawData) === null || _a === void 0 ? void 0 :\n _a.date.slice(0, 10),\n \" | \", (_b = drawDetail.drawData) === null || _b === void 0 ? void 0 :\n _b.date.slice(11, 19))),\n h(\"div\", { class: \"DrawNumbersGrid\" }, drawDetail.drawData &&\n h(\"div\", { class: 'BulletContainer' },\n h(\"label\", { class: \"Label\" },\n translate('drawNumbersGridDraw', this.language),\n \" \",\n String.fromCharCode(index + 10),\n \":\"),\n h(\"lottery-grid\", { \"selected-numbers\": (_d = (_c = drawDetail.drawData) === null || _c === void 0 ? void 0 : _c.winningNumbers) === null || _d === void 0 ? void 0 : _d.join(','), selectable: false, \"display-selected\": true, language: this.language, \"grid-type\": 'ticket', \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent }))),\n h(\"div\", { class: \"DrawMultipler\" },\n h(\"label\", { class: \"Label\" },\n translate('multiplier', this.language),\n \" \", (_e = drawDetail.drawData) === null || _e === void 0 ? void 0 :\n _e.multiplier))));\n }))))))));\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\": true\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\": true\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\": true,\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\": true\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\": true,\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\": true,\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\": true,\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\": true,\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\": true,\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\": true,\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\": true,\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\": true,\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\": true,\n \"defaultValue\": \"0\"\n },\n \"ticketNumbers\": {\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 winning numbers\"\n },\n \"attribute\": \"ticket-numbers\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"sessionId\": {\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 session id\"\n },\n \"attribute\": \"session-id\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStyling\": {\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\": \"Client custom styling via string\"\n },\n \"attribute\": \"client-styling\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStylingUrlContent\": {\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\": \"Client custom styling via url content\"\n },\n \"attribute\": \"client-styling-url-content\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"ticketDrawData\": {\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\": \"Data showing the ticket's draw results details\"\n },\n \"attribute\": \"ticket-draw-data\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n }\n }; }\n static get states() { return {\n \"multiplier\": {},\n \"isLoading\": {},\n \"hasErrors\": {},\n \"errorText\": {},\n \"ticketData\": {},\n \"ticketDataLoaded\": {},\n \"ticketDraws\": {},\n \"toggleDrawer\": {},\n \"limitStylingAppends\": {},\n \"drawData\": {}\n }; }\n}\n"],"version":3}
|