@everymatrix/lottery-game-details 0.1.24 → 1.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/helper-accordion_4.cjs.entry.js +205 -266
  3. package/dist/cjs/index-376df72c.js +1209 -0
  4. package/dist/cjs/loader.cjs.js +7 -13
  5. package/dist/cjs/lottery-game-details.cjs.js +17 -11
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/lottery-game-details/index.js +1 -0
  8. package/dist/collection/components/lottery-game-details/lottery-game-details.js +89 -90
  9. package/dist/collection/utils/utils.js +1 -1
  10. package/dist/esm/app-globals-0f993ce5.js +3 -0
  11. package/dist/esm/helper-accordion_4.entry.js +205 -266
  12. package/dist/esm/index-fa1277ba.js +1181 -0
  13. package/dist/esm/loader.js +7 -13
  14. package/dist/esm/lottery-game-details.js +14 -11
  15. package/dist/lottery-game-details/lottery-game-details.esm.js +1 -1
  16. package/dist/lottery-game-details/p-21fd3dd6.js +2 -0
  17. package/dist/lottery-game-details/p-a1252be5.entry.js +1 -0
  18. package/dist/lottery-game-details/p-e1255160.js +1 -0
  19. package/dist/stencil.config.dev.js +17 -0
  20. package/dist/stencil.config.js +14 -19
  21. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.d.ts +2 -0
  22. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.dev.d.ts +2 -0
  23. package/dist/types/components/lottery-game-details/index.d.ts +1 -0
  24. package/dist/types/components/lottery-game-details/lottery-game-details.d.ts +16 -16
  25. package/dist/types/stencil-public-runtime.d.ts +142 -33
  26. package/loader/cdn.js +1 -3
  27. package/loader/index.cjs.js +1 -3
  28. package/loader/index.d.ts +13 -1
  29. package/loader/index.es2017.js +1 -3
  30. package/loader/index.js +1 -3
  31. package/loader/package.json +1 -0
  32. package/package.json +11 -4
  33. package/dist/cjs/index-0355373c.js +0 -1196
  34. package/dist/components/helper-accordion.js +0 -6
  35. package/dist/components/helper-accordion2.js +0 -156
  36. package/dist/components/helper-tab.js +0 -6
  37. package/dist/components/helper-tab2.js +0 -86
  38. package/dist/components/helper-tabs.js +0 -6
  39. package/dist/components/helper-tabs2.js +0 -102
  40. package/dist/components/index.d.ts +0 -26
  41. package/dist/components/index.js +0 -1
  42. package/dist/components/lottery-game-details.d.ts +0 -11
  43. package/dist/components/lottery-game-details.js +0 -87
  44. package/dist/esm/index-627fc49c.js +0 -1169
  45. package/dist/esm/polyfills/core-js.js +0 -11
  46. package/dist/esm/polyfills/css-shim.js +0 -1
  47. package/dist/esm/polyfills/dom.js +0 -79
  48. package/dist/esm/polyfills/es5-html-element.js +0 -1
  49. package/dist/esm/polyfills/index.js +0 -34
  50. package/dist/esm/polyfills/system.js +0 -6
  51. package/dist/lottery-game-details/p-41f52078.entry.js +0 -1
  52. package/dist/lottery-game-details/p-ca6b7fee.js +0 -1
  53. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/stencil/widgets-stencil/packages/lottery-game-details/.stencil/packages/lottery-game-details/stencil.config.d.ts +0 -2
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const globalScripts = () => {};
4
+
5
+ exports.globalScripts = globalScripts;
@@ -2,304 +2,243 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0355373c.js');
5
+ const index = require('./index-376df72c.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
- const SUPPORTED_LANGUAGES = ['ro', 'en'];
8
+ const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
9
9
  const TRANSLATIONS = {
10
- en: {
11
- deleteTicket: 'Delete ticket'
12
- },
13
- ro: {
14
- deleteTicket: 'Sterge biletul'
15
- },
16
- fr: {
17
- deleteTicket: 'Supprimer le billet'
18
- },
19
- ar: {
20
- deleteTicket: 'حذف التذكرة'
21
- }
10
+ en: {
11
+ deleteTicket: 'Delete ticket'
12
+ },
13
+ ro: {
14
+ deleteTicket: 'Sterge biletul'
15
+ },
16
+ fr: {
17
+ deleteTicket: 'Supprimer le billet'
18
+ },
19
+ ar: {
20
+ deleteTicket: 'حذف التذكرة'
21
+ },
22
+ hr: {
23
+ deleteTicket: 'Izbriši listić'
24
+ }
22
25
  };
23
26
  const translate = (key, customLang) => {
24
- const lang = customLang;
25
- return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
27
+ const lang = customLang;
28
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
26
29
  };
27
30
 
28
- const helperAccordionCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Header{border-radius:5px;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:1px}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff;text-transform:capitalize}.Header .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.HeaderTicketHistory{border-radius:4px;background:#F1F1F1;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:5px}.HeaderTicketHistory:hover{background:#00ABA4}.HeaderTicketHistory .Title,.HeaderTicketHistory .Subtitle,.HeaderTicketHistory .Description{margin:0;font-size:14px;color:#000}.HeaderTicketHistory .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.Content{border-radius:0 0 4px 4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{cursor:pointer;display:inline-block;border-radius:4px;margin:20px 0 10px;text-transform:uppercase;font-size:12px;text-align:center;padding:8px 20px;min-width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}";
31
+ const helperAccordionCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Header{border-radius:5px;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:1px;cursor:pointer}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff;text-transform:capitalize}.Header .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.HeaderTicketHistory{border-radius:4px;background:#F1F1F1;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:5px;cursor:pointer}.HeaderTicketHistory:hover{background:#00ABA4}.HeaderTicketHistory .Title,.HeaderTicketHistory .Subtitle,.HeaderTicketHistory .Description{margin:0;font-size:14px;color:#000}.HeaderTicketHistory .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.Content{border-radius:0 0 4px 4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{cursor:pointer;display:inline-block;border-radius:4px;margin:20px 0 10px;text-transform:uppercase;font-size:12px;text-align:center;padding:8px 20px;min-width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}";
32
+ const HelperAccordionStyle0 = helperAccordionCss;
29
33
 
30
- const Accordion = class {
31
- constructor(hostRef) {
32
- index.registerInstance(this, hostRef);
33
- this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
34
- /**
35
- * Flag for ticket history
36
- */
37
- this.ticketHistoryFlag = false;
38
- /**
39
- * Title (top header)
40
- */
41
- this.headerTitle = '';
42
- /**
43
- * SubTitle (top header)
44
- */
45
- this.headerSubtitle = '';
46
- /**
47
- * Description
48
- */
49
- this.description = '';
50
- /**
51
- * Enables footer content
52
- */
53
- this.footer = false;
54
- /**
55
- * Enables footer button for tab deletion
56
- */
57
- this.deleteTab = false;
58
- /**
59
- * Activates postMessages as events for actions from the widget
60
- */
61
- this.postMessage = false;
62
- /**
63
- * Name of the event emitter by the action button
64
- */
65
- this.eventName = 'helperAccordionAction';
66
- /**
67
- * Collapsed
68
- */
69
- this.collapsed = true;
70
- /**
71
- * Language
72
- */
73
- this.language = 'en';
74
- /**
75
- * Client custom styling via string
76
- */
77
- this.clientStyling = '';
78
- /**
79
- * Client custom styling via url content
80
- */
81
- this.clientStylingUrlContent = '';
82
- this.limitStylingAppends = false;
83
- this.setClientStyling = () => {
84
- let sheet = document.createElement('style');
85
- sheet.innerHTML = this.clientStyling;
86
- this.stylingContainer.prepend(sheet);
87
- };
88
- this.setClientStylingURL = () => {
89
- let cssFile = document.createElement('style');
90
- setTimeout(() => {
91
- cssFile.innerHTML = this.clientStylingUrlContent;
92
- this.stylingContainer.prepend(cssFile);
93
- }, 1);
94
- };
95
- }
96
- // @TODO fix the `any` type :)
97
- connectedCallback() {
98
- this.showContent = !this.collapsed;
99
- }
100
- componentDidRender() {
101
- // start custom styling area
102
- if (!this.limitStylingAppends && this.stylingContainer) {
103
- if (this.clientStyling)
104
- this.setClientStyling();
105
- if (this.clientStylingUrlContent)
106
- this.setClientStylingURL();
107
- this.limitStylingAppends = true;
34
+ const HelperAccordion = class {
35
+ constructor(hostRef) {
36
+ index.registerInstance(this, hostRef);
37
+ this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
38
+ this.setClientStyling = () => {
39
+ let sheet = document.createElement('style');
40
+ sheet.innerHTML = this.clientStyling;
41
+ this.stylingContainer.prepend(sheet);
42
+ };
43
+ this.setClientStylingURL = () => {
44
+ let cssFile = document.createElement('style');
45
+ setTimeout(() => {
46
+ cssFile.innerHTML = this.clientStylingUrlContent;
47
+ this.stylingContainer.prepend(cssFile);
48
+ }, 1);
49
+ };
50
+ this.ticketHistoryFlag = false;
51
+ this.headerTitle = '';
52
+ this.headerSubtitle = '';
53
+ this.description = '';
54
+ this.footer = false;
55
+ this.deleteTab = false;
56
+ this.postMessage = false;
57
+ this.eventName = 'helperAccordionAction';
58
+ this.collapsed = true;
59
+ this.language = 'en';
60
+ this.clientStyling = '';
61
+ this.clientStylingUrlContent = '';
62
+ this.showContent = undefined;
63
+ this.limitStylingAppends = false;
64
+ }
65
+ // @TODO fix the `any` type :)
66
+ connectedCallback() {
67
+ this.showContent = !this.collapsed;
68
+ }
69
+ componentDidRender() {
70
+ // start custom styling area
71
+ if (!this.limitStylingAppends && this.stylingContainer) {
72
+ if (this.clientStyling)
73
+ this.setClientStyling();
74
+ if (this.clientStylingUrlContent)
75
+ this.setClientStylingURL();
76
+ this.limitStylingAppends = true;
77
+ }
78
+ // end custom styling area
108
79
  }
109
- // end custom styling area
110
- }
111
- toggleContent() {
112
- this.showContent = !this.showContent;
113
- }
114
- deleteAction() {
115
- if (this.postMessage) {
116
- // @TODO maybe change the name type, this one sucks
117
- window.postMessage({ type: this.eventName }, window.location.href);
80
+ toggleContent() {
81
+ this.showContent = !this.showContent;
82
+ }
83
+ deleteAction() {
84
+ if (this.postMessage) {
85
+ // @TODO maybe change the name type, this one sucks
86
+ window.postMessage({ type: this.eventName }, window.location.href);
87
+ }
88
+ this.accordionEvent.emit();
89
+ }
90
+ render() {
91
+ return (index.h("div", { key: 'ad26faefd6e3dd089171c7e2bff13faa5a26d972', class: "Wrapper", ref: el => this.stylingContainer = el }, index.h("div", { key: 'bb7045653ec12a2526029589744f7ef014ec6a6a', class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header', onClick: () => this.toggleContent() }, index.h("p", { key: 'ae30943582063e368e942124d8d5acadc1732629', class: "Title" }, this.headerTitle), index.h("p", { key: '7c35076cb768de784177988900c61fe40a71594c', class: "Subtitle" }, this.headerSubtitle), index.h("p", { key: 'daff2b456a427f45b00efc32ba33a68cdc2228f0', class: "Subtitle Description" }, this.description), index.h("span", { key: '0c4f942642da6e8b1ac3d2aeac46034963965d8f', class: "Expand" }, this.showContent ? '<' : '>')), this.showContent &&
92
+ index.h("div", { key: 'c688ab7cc629a3974b905a2fdc43063e996a3b90' }, index.h("div", { key: 'aaa3ad7d9f1503b8e1baaa2c756376a580ffe261', class: "Content" }, index.h("slot", { key: '8c5c8ff70857da9414c7284b052a3fbc5f503f4a', name: 'accordionContent' }), this.footer && this.showContent &&
93
+ index.h("div", { key: '917191f55a45647d708a5e3ff5e188c7e565a0c0' }, this.deleteTab &&
94
+ index.h("span", { key: 'e7fdd5b4f18cacaceda206b36ce9576cc3fc1472', class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
118
95
  }
119
- this.accordionEvent.emit();
120
- }
121
- render() {
122
- return (index.h("div", { class: "Wrapper", ref: el => this.stylingContainer = el }, index.h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header' }, index.h("p", { class: "Title" }, this.headerTitle), index.h("p", { class: "Subtitle" }, this.headerSubtitle), index.h("p", { class: "Subtitle Description" }, this.description), index.h("span", { class: "Expand", onClick: () => this.toggleContent() }, this.showContent ? '<' : '>')), this.showContent &&
123
- index.h("div", null, index.h("div", { class: "Content" }, index.h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
124
- index.h("div", null, this.deleteTab &&
125
- index.h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
126
- }
127
96
  };
128
- Accordion.style = helperAccordionCss;
97
+ HelperAccordion.style = HelperAccordionStyle0;
129
98
 
130
99
  const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
100
+ const HelperTabStyle0 = helperTabCss;
131
101
 
132
102
  const HelperTab = class {
133
- constructor(hostRef) {
134
- index.registerInstance(this, hostRef);
135
- /**
136
- * Selected index
137
- */
138
- this.selectedIndex = 0;
139
- /**
140
- * Client custom styling via string
141
- */
142
- this.clientStyling = '';
143
- /**
144
- * Client custom styling via url content
145
- */
146
- this.clientStylingUrlContent = '';
147
- this.tabContent = '';
148
- this.limitStylingAppends = false;
149
- this.setClientStyling = () => {
150
- let sheet = document.createElement('style');
151
- sheet.innerHTML = this.clientStyling;
152
- this.stylingContainer.prepend(sheet);
153
- };
154
- this.setClientStylingURL = () => {
155
- let cssFile = document.createElement('style');
156
- setTimeout(() => {
157
- cssFile.innerHTML = this.clientStylingUrlContent;
158
- this.stylingContainer.prepend(cssFile);
159
- }, 1);
160
- };
161
- }
162
- connectedCallback() {
163
- /**
164
- * fetch(cmsEndpoint + / + / + selectedIndex)
165
- */
166
- }
167
- componentDidRender() {
168
- // start custom styling area
169
- if (!this.limitStylingAppends && this.stylingContainer) {
170
- if (this.clientStyling)
171
- this.setClientStyling();
172
- if (this.clientStylingUrlContent)
173
- this.setClientStylingURL();
174
- this.limitStylingAppends = true;
103
+ constructor(hostRef) {
104
+ index.registerInstance(this, hostRef);
105
+ this.setClientStyling = () => {
106
+ let sheet = document.createElement('style');
107
+ sheet.innerHTML = this.clientStyling;
108
+ this.stylingContainer.prepend(sheet);
109
+ };
110
+ this.setClientStylingURL = () => {
111
+ let cssFile = document.createElement('style');
112
+ setTimeout(() => {
113
+ cssFile.innerHTML = this.clientStylingUrlContent;
114
+ this.stylingContainer.prepend(cssFile);
115
+ }, 1);
116
+ };
117
+ this.selectedIndex = 0;
118
+ this.cmsEndpoint = undefined;
119
+ this.clientStyling = '';
120
+ this.clientStylingUrlContent = '';
121
+ this.tabContent = '';
122
+ this.limitStylingAppends = false;
123
+ }
124
+ connectedCallback() {
125
+ /**
126
+ * fetch(cmsEndpoint + / + / + selectedIndex)
127
+ */
175
128
  }
176
- // end custom styling area
177
- }
178
- render() {
179
- this.tabContent = index.h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, "Each play includes one set of numbers from 1 to 21 with a selectable number of 8 and a second, 4-digit set of numbers, with a minimum selection of 1. Draws are held every 5 minutes and the winnings are automatically credited to your account.");
180
- if (this.selectedIndex + 1 == 2) {
181
- this.tabContent = index.h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, index.h("ol", null, index.h("li", null, "Register or Login"), index.h("li", null, "Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose \u201CI feel lucky\u201D."), index.h("li", null, "Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!")));
129
+ componentDidRender() {
130
+ // start custom styling area
131
+ if (!this.limitStylingAppends && this.stylingContainer) {
132
+ if (this.clientStyling)
133
+ this.setClientStyling();
134
+ if (this.clientStylingUrlContent)
135
+ this.setClientStylingURL();
136
+ this.limitStylingAppends = true;
137
+ }
138
+ // end custom styling area
182
139
  }
183
- else if (this.selectedIndex + 1 == 3) {
184
- this.tabContent = index.h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, index.h("ul", null, index.h("li", null, "What are my odds of winning?"), index.h("li", null, "How can I find out if I\u2019ve won a draw game?"), index.h("li", null, "How do I claim my prize?")));
140
+ render() {
141
+ this.tabContent = index.h("div", { key: 'd69c61827b4fb6d934c72b0b2d37d72fca307575', class: "TabContent", ref: el => this.stylingContainer = el }, "Each play includes one set of numbers from 1 to 21 with a selectable number of 8 and a second, 4-digit set of numbers, with a minimum selection of 1. Draws are held every 5 minutes and the winnings are automatically credited to your account.");
142
+ if (this.selectedIndex + 1 == 2) {
143
+ this.tabContent = index.h("div", { key: 'ab912cbb3bc3e88ecf8fe5f8f0e7eb16460100bd', class: "TabContent", ref: el => this.stylingContainer = el }, index.h("ol", { key: '17bed41dffe7d5578452ee13a47b442d10366ce2' }, index.h("li", { key: 'cf0da42f07cf92f5cea9c9f504c8836e528a5708' }, "Register or Login"), index.h("li", { key: '4a0339df365c6b1a37b8a74c5022a56197e870db' }, "Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose \u201CI feel lucky\u201D."), index.h("li", { key: '3f29a9b17c1059493648247868b83eb71241b8bd' }, "Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!")));
144
+ }
145
+ else if (this.selectedIndex + 1 == 3) {
146
+ this.tabContent = index.h("div", { key: 'ceac54698e0e5c55a049600f02e8f413a76a1c33', class: "TabContent", ref: el => this.stylingContainer = el }, index.h("ul", { key: '426d89c86a1d44f6d515bc1a7902e43317127939' }, index.h("li", { key: '457a225564399001dcab48097578174a27231ca7' }, "What are my odds of winning?"), index.h("li", { key: 'd35220f2aca215eff391cab54d719f18ef906c77' }, "How can I find out if I\u2019ve won a draw game?"), index.h("li", { key: 'fcd560ee4b6740c319cf0f98a0b98da8fd9e14a4' }, "How do I claim my prize?")));
147
+ }
148
+ return (this.tabContent);
185
149
  }
186
- return (this.tabContent);
187
- }
188
150
  };
189
- HelperTab.style = helperTabCss;
151
+ HelperTab.style = HelperTabStyle0;
190
152
 
191
153
  const helperTabsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Tabs{display:flex;gap:10px;overflow-x:auto}.TabButton{cursor:pointer;width:auto;border-radius:4px;padding:8px 15px;margin:5px 0 10px;border:1px solid #009993;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:#F1F1F1}.TabButton.Active{background:#009993;color:#FFF}";
154
+ const HelperTabsStyle0 = helperTabsCss;
192
155
 
193
156
  const HelperTabs = class {
194
- constructor(hostRef) {
195
- index.registerInstance(this, hostRef);
196
- /**
197
- * Tell me if it is disabled
198
- */
199
- this.disabled = false;
200
- /**
201
- * Tell me what tab is selected
202
- */
203
- this.selected = false;
204
- /**
205
- * Default selected index
206
- */
207
- this.selectedIndex = 0;
208
- /**
209
- * Tabs details
210
- */
211
- this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
212
- /**
213
- * Client custom styling via string
214
- */
215
- this.clientStyling = '';
216
- /**
217
- * Client custom styling via url
218
- */
219
- this.clientStylingurl = '';
220
- /**
221
- * Client custom styling via url content
222
- */
223
- this.clientStylingUrlContent = '';
224
- this.limitStylingAppends = false;
225
- this.setClientStyling = () => {
226
- let sheet = document.createElement('style');
227
- sheet.innerHTML = this.clientStyling;
228
- this.stylingContainer.prepend(sheet);
229
- };
230
- this.setClientStylingURL = () => {
231
- let cssFile = document.createElement('style');
232
- setTimeout(() => {
233
- cssFile.innerHTML = this.clientStylingUrlContent;
234
- this.stylingContainer.prepend(cssFile);
235
- }, 1);
236
- };
237
- }
238
- connectedCallback() {
239
- }
240
- componentDidRender() {
241
- // start custom styling area
242
- if (!this.limitStylingAppends && this.stylingContainer) {
243
- this.setClientStyling();
244
- if (this.clientStylingUrlContent) {
245
- this.setClientStylingURL();
246
- }
247
- this.limitStylingAppends = true;
157
+ constructor(hostRef) {
158
+ index.registerInstance(this, hostRef);
159
+ this.setClientStyling = () => {
160
+ let sheet = document.createElement('style');
161
+ sheet.innerHTML = this.clientStyling;
162
+ this.stylingContainer.prepend(sheet);
163
+ };
164
+ this.setClientStylingURL = () => {
165
+ let cssFile = document.createElement('style');
166
+ setTimeout(() => {
167
+ cssFile.innerHTML = this.clientStylingUrlContent;
168
+ this.stylingContainer.prepend(cssFile);
169
+ }, 1);
170
+ };
171
+ this.disabled = false;
172
+ this.label = undefined;
173
+ this.selected = false;
174
+ this.cmsEndpoint = undefined;
175
+ this.selectedIndex = 0;
176
+ this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
177
+ this.clientStyling = '';
178
+ this.clientStylingurl = '';
179
+ this.clientStylingUrlContent = '';
180
+ this.limitStylingAppends = false;
248
181
  }
249
- // end custom styling area
250
- }
251
- render() {
252
- return (index.h("div", { ref: el => this.stylingContainer = el }, index.h("div", { class: "Tabs" }, this.tabs.map((tab, index$1) => index.h("button", { class: 'TabButton' + (this.selectedIndex == index$1 ? ' Active' : ''), onClick: () => this.selectedIndex = index$1 }, tab.label))), index.h("div", null, index.h("helper-tab", { selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
253
- }
254
- get host() { return index.getElement(this); }
182
+ connectedCallback() {
183
+ }
184
+ componentDidRender() {
185
+ // start custom styling area
186
+ if (!this.limitStylingAppends && this.stylingContainer) {
187
+ this.setClientStyling();
188
+ if (this.clientStylingUrlContent) {
189
+ this.setClientStylingURL();
190
+ }
191
+ this.limitStylingAppends = true;
192
+ }
193
+ // end custom styling area
194
+ }
195
+ render() {
196
+ return (index.h("div", { key: '841b2a4b84f2ecdaf692b9cab2eac4b3413186e7', ref: el => this.stylingContainer = el }, index.h("div", { key: '4c5d57e669f9f45d204bff8a85ca89a0574c4627', class: "Tabs" }, this.tabs.map((tab, index$1) => index.h("button", { class: 'TabButton' + (this.selectedIndex == index$1 ? ' Active' : ''), onClick: () => this.selectedIndex = index$1 }, tab.label))), index.h("div", { key: '7ba983dec3b0355f390b19191d0d823914f09037' }, index.h("helper-tab", { key: 'e6c7739d50948582d8d14d530828508b4cb90d6e', selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
197
+ }
198
+ get host() { return index.getElement(this); }
255
199
  };
256
- HelperTabs.style = helperTabsCss;
200
+ HelperTabs.style = HelperTabsStyle0;
257
201
 
258
202
  const lotteryGameDetailsCss = ":host{display:block}";
203
+ const LotteryGameDetailsStyle0 = lotteryGameDetailsCss;
259
204
 
260
205
  const LotteryGameDetails = class {
261
- constructor(hostRef) {
262
- index.registerInstance(this, hostRef);
263
- /**
264
- * Client custom styling via string
265
- */
266
- this.clientStyling = '';
267
- /**
268
- * Client custom styling via url content
269
- */
270
- this.clientStylingUrlContent = '';
271
- this.limitStylingAppends = false;
272
- this.setClientStyling = () => {
273
- let sheet = document.createElement('style');
274
- sheet.innerHTML = this.clientStyling;
275
- this.stylingContainer.prepend(sheet);
276
- };
277
- this.setClientStylingURL = () => {
278
- let cssFile = document.createElement('style');
279
- setTimeout(() => {
280
- cssFile.innerHTML = this.clientStylingUrlContent;
281
- this.stylingContainer.prepend(cssFile);
282
- }, 1);
283
- };
284
- }
285
- componentDidRender() {
286
- // start custom styling area
287
- if (!this.limitStylingAppends && this.stylingContainer) {
288
- if (this.clientStyling)
289
- this.setClientStyling();
290
- if (this.clientStylingUrlContent)
291
- this.setClientStylingURL();
292
- this.limitStylingAppends = true;
206
+ constructor(hostRef) {
207
+ index.registerInstance(this, hostRef);
208
+ this.setClientStyling = () => {
209
+ let sheet = document.createElement('style');
210
+ sheet.innerHTML = this.clientStyling;
211
+ this.stylingContainer.prepend(sheet);
212
+ };
213
+ this.setClientStylingURL = () => {
214
+ let cssFile = document.createElement('style');
215
+ setTimeout(() => {
216
+ cssFile.innerHTML = this.clientStylingUrlContent;
217
+ this.stylingContainer.prepend(cssFile);
218
+ }, 1);
219
+ };
220
+ this.clientStyling = '';
221
+ this.clientStylingUrlContent = '';
222
+ this.limitStylingAppends = false;
223
+ }
224
+ componentDidRender() {
225
+ // start custom styling area
226
+ if (!this.limitStylingAppends && this.stylingContainer) {
227
+ if (this.clientStyling)
228
+ this.setClientStyling();
229
+ if (this.clientStylingUrlContent)
230
+ this.setClientStylingURL();
231
+ this.limitStylingAppends = true;
232
+ }
233
+ // end custom styling area
234
+ }
235
+ render() {
236
+ return (index.h("div", { key: 'a972ed1a25317b0cdeb82e3b007ec79e30bbb871', class: "GamePageDetailsContainer", ref: el => this.stylingContainer = el }, index.h("helper-accordion", { key: '2c6f8d634241c412103cdae78909972c884b0515', "header-title": "Game Details", collapsed: false, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, index.h("div", { key: 'f5f80e173d935cb0dabb6a7ef45e54a1312b5dc8', class: "AccordionContainer", slot: "accordionContent" }, index.h("helper-tabs", { key: 'a91396e0a4aa1235cc618dfe336ae8b603bc2a6c', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
293
237
  }
294
- // end custom styling area
295
- }
296
- render() {
297
- return (index.h("div", { class: "GamePageDetailsContainer", ref: el => this.stylingContainer = el }, index.h("helper-accordion", { "header-title": "Game Details", collapsed: false, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, index.h("div", { class: "AccordionContainer", slot: "accordionContent" }, index.h("helper-tabs", { "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
298
- }
299
238
  };
300
- LotteryGameDetails.style = lotteryGameDetailsCss;
239
+ LotteryGameDetails.style = LotteryGameDetailsStyle0;
301
240
 
302
- exports.helper_accordion = Accordion;
241
+ exports.helper_accordion = HelperAccordion;
303
242
  exports.helper_tab = HelperTab;
304
243
  exports.helper_tabs = HelperTabs;
305
244
  exports.lottery_game_details = LotteryGameDetails;