@everymatrix/lottery-game-details 1.44.0 → 1.45.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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/helper-accordion_4.cjs.entry.js +203 -267
- package/dist/cjs/index-376df72c.js +1209 -0
- package/dist/cjs/loader.cjs.js +6 -12
- package/dist/cjs/lottery-game-details.cjs.js +16 -10
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/lottery-game-details/index.js +1 -0
- package/dist/collection/components/lottery-game-details/lottery-game-details.js +89 -90
- package/dist/collection/utils/utils.js +1 -1
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/helper-accordion_4.entry.js +203 -267
- package/dist/esm/index-fa1277ba.js +1181 -0
- package/dist/esm/loader.js +6 -12
- package/dist/esm/lottery-game-details.js +13 -10
- package/dist/lottery-game-details/lottery-game-details.esm.js +1 -1
- package/dist/lottery-game-details/p-19a8bd25.entry.js +1 -0
- package/dist/lottery-game-details/p-21fd3dd6.js +2 -0
- package/dist/lottery-game-details/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/lottery-game-details/index.d.ts +1 -0
- package/dist/types/components/lottery-game-details/lottery-game-details.d.ts +16 -16
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +10 -3
- package/dist/cjs/index-0355373c.js +0 -1196
- package/dist/components/helper-accordion.js +0 -6
- package/dist/components/helper-accordion2.js +0 -158
- package/dist/components/helper-tab.js +0 -6
- package/dist/components/helper-tab2.js +0 -86
- package/dist/components/helper-tabs.js +0 -6
- package/dist/components/helper-tabs2.js +0 -102
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/lottery-game-details.d.ts +0 -11
- package/dist/components/lottery-game-details.js +0 -87
- package/dist/esm/index-627fc49c.js +0 -1169
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/lottery-game-details/p-ca6b7fee.js +0 -1
- package/dist/lottery-game-details/p-ce1975ba.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/lottery-game-details/.stencil/packages/lottery-game-details/stencil.config.d.ts +0 -2
|
@@ -1,300 +1,236 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-fa1277ba.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const TRANSLATIONS = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
en: {
|
|
6
|
+
deleteTicket: 'Delete ticket'
|
|
7
|
+
},
|
|
8
|
+
ro: {
|
|
9
|
+
deleteTicket: 'Sterge biletul'
|
|
10
|
+
},
|
|
11
|
+
fr: {
|
|
12
|
+
deleteTicket: 'Supprimer le billet'
|
|
13
|
+
},
|
|
14
|
+
ar: {
|
|
15
|
+
deleteTicket: 'حذف التذكرة'
|
|
16
|
+
},
|
|
17
|
+
hr: {
|
|
18
|
+
deleteTicket: 'Izbriši listić'
|
|
19
|
+
}
|
|
20
20
|
};
|
|
21
21
|
const translate = (key, customLang) => {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
const lang = customLang;
|
|
23
|
+
return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
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}";
|
|
27
|
+
const HelperAccordionStyle0 = helperAccordionCss;
|
|
27
28
|
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
* Client custom styling via string
|
|
74
|
-
*/
|
|
75
|
-
this.clientStyling = '';
|
|
76
|
-
/**
|
|
77
|
-
* Client custom styling via url content
|
|
78
|
-
*/
|
|
79
|
-
this.clientStylingUrlContent = '';
|
|
80
|
-
this.limitStylingAppends = false;
|
|
81
|
-
this.setClientStyling = () => {
|
|
82
|
-
let sheet = document.createElement('style');
|
|
83
|
-
sheet.innerHTML = this.clientStyling;
|
|
84
|
-
this.stylingContainer.prepend(sheet);
|
|
85
|
-
};
|
|
86
|
-
this.setClientStylingURL = () => {
|
|
87
|
-
let cssFile = document.createElement('style');
|
|
88
|
-
setTimeout(() => {
|
|
89
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
90
|
-
this.stylingContainer.prepend(cssFile);
|
|
91
|
-
}, 1);
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
// @TODO fix the `any` type :)
|
|
95
|
-
connectedCallback() {
|
|
96
|
-
this.showContent = !this.collapsed;
|
|
97
|
-
}
|
|
98
|
-
componentDidRender() {
|
|
99
|
-
// start custom styling area
|
|
100
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
101
|
-
if (this.clientStyling)
|
|
102
|
-
this.setClientStyling();
|
|
103
|
-
if (this.clientStylingUrlContent)
|
|
104
|
-
this.setClientStylingURL();
|
|
105
|
-
this.limitStylingAppends = true;
|
|
29
|
+
const HelperAccordion = class {
|
|
30
|
+
constructor(hostRef) {
|
|
31
|
+
registerInstance(this, hostRef);
|
|
32
|
+
this.accordionEvent = createEvent(this, "helperAccordionAction", 7);
|
|
33
|
+
this.setClientStyling = () => {
|
|
34
|
+
let sheet = document.createElement('style');
|
|
35
|
+
sheet.innerHTML = this.clientStyling;
|
|
36
|
+
this.stylingContainer.prepend(sheet);
|
|
37
|
+
};
|
|
38
|
+
this.setClientStylingURL = () => {
|
|
39
|
+
let cssFile = document.createElement('style');
|
|
40
|
+
setTimeout(() => {
|
|
41
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
42
|
+
this.stylingContainer.prepend(cssFile);
|
|
43
|
+
}, 1);
|
|
44
|
+
};
|
|
45
|
+
this.ticketHistoryFlag = false;
|
|
46
|
+
this.headerTitle = '';
|
|
47
|
+
this.headerSubtitle = '';
|
|
48
|
+
this.description = '';
|
|
49
|
+
this.footer = false;
|
|
50
|
+
this.deleteTab = false;
|
|
51
|
+
this.postMessage = false;
|
|
52
|
+
this.eventName = 'helperAccordionAction';
|
|
53
|
+
this.collapsed = true;
|
|
54
|
+
this.language = 'en';
|
|
55
|
+
this.clientStyling = '';
|
|
56
|
+
this.clientStylingUrlContent = '';
|
|
57
|
+
this.showContent = undefined;
|
|
58
|
+
this.limitStylingAppends = false;
|
|
59
|
+
}
|
|
60
|
+
// @TODO fix the `any` type :)
|
|
61
|
+
connectedCallback() {
|
|
62
|
+
this.showContent = !this.collapsed;
|
|
63
|
+
}
|
|
64
|
+
componentDidRender() {
|
|
65
|
+
// start custom styling area
|
|
66
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
67
|
+
if (this.clientStyling)
|
|
68
|
+
this.setClientStyling();
|
|
69
|
+
if (this.clientStylingUrlContent)
|
|
70
|
+
this.setClientStylingURL();
|
|
71
|
+
this.limitStylingAppends = true;
|
|
72
|
+
}
|
|
73
|
+
// end custom styling area
|
|
106
74
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
75
|
+
toggleContent() {
|
|
76
|
+
this.showContent = !this.showContent;
|
|
77
|
+
}
|
|
78
|
+
deleteAction() {
|
|
79
|
+
if (this.postMessage) {
|
|
80
|
+
// @TODO maybe change the name type, this one sucks
|
|
81
|
+
window.postMessage({ type: this.eventName }, window.location.href);
|
|
82
|
+
}
|
|
83
|
+
this.accordionEvent.emit();
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
return (h("div", { key: 'ad26faefd6e3dd089171c7e2bff13faa5a26d972', class: "Wrapper", ref: el => this.stylingContainer = el }, h("div", { key: 'bb7045653ec12a2526029589744f7ef014ec6a6a', class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header', onClick: () => this.toggleContent() }, h("p", { key: 'ae30943582063e368e942124d8d5acadc1732629', class: "Title" }, this.headerTitle), h("p", { key: '7c35076cb768de784177988900c61fe40a71594c', class: "Subtitle" }, this.headerSubtitle), h("p", { key: 'daff2b456a427f45b00efc32ba33a68cdc2228f0', class: "Subtitle Description" }, this.description), h("span", { key: '0c4f942642da6e8b1ac3d2aeac46034963965d8f', class: "Expand" }, this.showContent ? '<' : '>')), this.showContent &&
|
|
87
|
+
h("div", { key: 'c688ab7cc629a3974b905a2fdc43063e996a3b90' }, h("div", { key: 'aaa3ad7d9f1503b8e1baaa2c756376a580ffe261', class: "Content" }, h("slot", { key: '8c5c8ff70857da9414c7284b052a3fbc5f503f4a', name: 'accordionContent' }), this.footer && this.showContent &&
|
|
88
|
+
h("div", { key: '917191f55a45647d708a5e3ff5e188c7e565a0c0' }, this.deleteTab &&
|
|
89
|
+
h("span", { key: 'e7fdd5b4f18cacaceda206b36ce9576cc3fc1472', class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
116
90
|
}
|
|
117
|
-
this.accordionEvent.emit();
|
|
118
|
-
}
|
|
119
|
-
render() {
|
|
120
|
-
return (h("div", { class: "Wrapper", ref: el => this.stylingContainer = el }, h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header', onClick: () => this.toggleContent() }, h("p", { class: "Title" }, this.headerTitle), h("p", { class: "Subtitle" }, this.headerSubtitle), h("p", { class: "Subtitle Description" }, this.description), h("span", { class: "Expand" }, this.showContent ? '<' : '>')), this.showContent &&
|
|
121
|
-
h("div", null, h("div", { class: "Content" }, h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
122
|
-
h("div", null, this.deleteTab &&
|
|
123
|
-
h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
124
|
-
}
|
|
125
91
|
};
|
|
126
|
-
|
|
92
|
+
HelperAccordion.style = HelperAccordionStyle0;
|
|
127
93
|
|
|
128
94
|
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
|
|
95
|
+
const HelperTabStyle0 = helperTabCss;
|
|
129
96
|
|
|
130
97
|
const HelperTab = class {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
this.stylingContainer.prepend(cssFile);
|
|
157
|
-
}, 1);
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
connectedCallback() {
|
|
161
|
-
/**
|
|
162
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
163
|
-
*/
|
|
164
|
-
}
|
|
165
|
-
componentDidRender() {
|
|
166
|
-
// start custom styling area
|
|
167
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
168
|
-
if (this.clientStyling)
|
|
169
|
-
this.setClientStyling();
|
|
170
|
-
if (this.clientStylingUrlContent)
|
|
171
|
-
this.setClientStylingURL();
|
|
172
|
-
this.limitStylingAppends = true;
|
|
98
|
+
constructor(hostRef) {
|
|
99
|
+
registerInstance(this, hostRef);
|
|
100
|
+
this.setClientStyling = () => {
|
|
101
|
+
let sheet = document.createElement('style');
|
|
102
|
+
sheet.innerHTML = this.clientStyling;
|
|
103
|
+
this.stylingContainer.prepend(sheet);
|
|
104
|
+
};
|
|
105
|
+
this.setClientStylingURL = () => {
|
|
106
|
+
let cssFile = document.createElement('style');
|
|
107
|
+
setTimeout(() => {
|
|
108
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
109
|
+
this.stylingContainer.prepend(cssFile);
|
|
110
|
+
}, 1);
|
|
111
|
+
};
|
|
112
|
+
this.selectedIndex = 0;
|
|
113
|
+
this.cmsEndpoint = undefined;
|
|
114
|
+
this.clientStyling = '';
|
|
115
|
+
this.clientStylingUrlContent = '';
|
|
116
|
+
this.tabContent = '';
|
|
117
|
+
this.limitStylingAppends = false;
|
|
118
|
+
}
|
|
119
|
+
connectedCallback() {
|
|
120
|
+
/**
|
|
121
|
+
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
122
|
+
*/
|
|
173
123
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
124
|
+
componentDidRender() {
|
|
125
|
+
// start custom styling area
|
|
126
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
127
|
+
if (this.clientStyling)
|
|
128
|
+
this.setClientStyling();
|
|
129
|
+
if (this.clientStylingUrlContent)
|
|
130
|
+
this.setClientStylingURL();
|
|
131
|
+
this.limitStylingAppends = true;
|
|
132
|
+
}
|
|
133
|
+
// end custom styling area
|
|
180
134
|
}
|
|
181
|
-
|
|
182
|
-
|
|
135
|
+
render() {
|
|
136
|
+
this.tabContent = 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.");
|
|
137
|
+
if (this.selectedIndex + 1 == 2) {
|
|
138
|
+
this.tabContent = h("div", { key: 'ab912cbb3bc3e88ecf8fe5f8f0e7eb16460100bd', class: "TabContent", ref: el => this.stylingContainer = el }, h("ol", { key: '17bed41dffe7d5578452ee13a47b442d10366ce2' }, h("li", { key: 'cf0da42f07cf92f5cea9c9f504c8836e528a5708' }, "Register or Login"), 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."), 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!")));
|
|
139
|
+
}
|
|
140
|
+
else if (this.selectedIndex + 1 == 3) {
|
|
141
|
+
this.tabContent = h("div", { key: 'ceac54698e0e5c55a049600f02e8f413a76a1c33', class: "TabContent", ref: el => this.stylingContainer = el }, h("ul", { key: '426d89c86a1d44f6d515bc1a7902e43317127939' }, h("li", { key: '457a225564399001dcab48097578174a27231ca7' }, "What are my odds of winning?"), h("li", { key: 'd35220f2aca215eff391cab54d719f18ef906c77' }, "How can I find out if I\u2019ve won a draw game?"), h("li", { key: 'fcd560ee4b6740c319cf0f98a0b98da8fd9e14a4' }, "How do I claim my prize?")));
|
|
142
|
+
}
|
|
143
|
+
return (this.tabContent);
|
|
183
144
|
}
|
|
184
|
-
return (this.tabContent);
|
|
185
|
-
}
|
|
186
145
|
};
|
|
187
|
-
HelperTab.style =
|
|
146
|
+
HelperTab.style = HelperTabStyle0;
|
|
188
147
|
|
|
189
148
|
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}";
|
|
149
|
+
const HelperTabsStyle0 = helperTabsCss;
|
|
190
150
|
|
|
191
151
|
const HelperTabs = class {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
*/
|
|
217
|
-
this.clientStylingurl = '';
|
|
218
|
-
/**
|
|
219
|
-
* Client custom styling via url content
|
|
220
|
-
*/
|
|
221
|
-
this.clientStylingUrlContent = '';
|
|
222
|
-
this.limitStylingAppends = false;
|
|
223
|
-
this.setClientStyling = () => {
|
|
224
|
-
let sheet = document.createElement('style');
|
|
225
|
-
sheet.innerHTML = this.clientStyling;
|
|
226
|
-
this.stylingContainer.prepend(sheet);
|
|
227
|
-
};
|
|
228
|
-
this.setClientStylingURL = () => {
|
|
229
|
-
let cssFile = document.createElement('style');
|
|
230
|
-
setTimeout(() => {
|
|
231
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
232
|
-
this.stylingContainer.prepend(cssFile);
|
|
233
|
-
}, 1);
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
connectedCallback() {
|
|
237
|
-
}
|
|
238
|
-
componentDidRender() {
|
|
239
|
-
// start custom styling area
|
|
240
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
241
|
-
this.setClientStyling();
|
|
242
|
-
if (this.clientStylingUrlContent) {
|
|
243
|
-
this.setClientStylingURL();
|
|
244
|
-
}
|
|
245
|
-
this.limitStylingAppends = true;
|
|
152
|
+
constructor(hostRef) {
|
|
153
|
+
registerInstance(this, hostRef);
|
|
154
|
+
this.setClientStyling = () => {
|
|
155
|
+
let sheet = document.createElement('style');
|
|
156
|
+
sheet.innerHTML = this.clientStyling;
|
|
157
|
+
this.stylingContainer.prepend(sheet);
|
|
158
|
+
};
|
|
159
|
+
this.setClientStylingURL = () => {
|
|
160
|
+
let cssFile = document.createElement('style');
|
|
161
|
+
setTimeout(() => {
|
|
162
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
163
|
+
this.stylingContainer.prepend(cssFile);
|
|
164
|
+
}, 1);
|
|
165
|
+
};
|
|
166
|
+
this.disabled = false;
|
|
167
|
+
this.label = undefined;
|
|
168
|
+
this.selected = false;
|
|
169
|
+
this.cmsEndpoint = undefined;
|
|
170
|
+
this.selectedIndex = 0;
|
|
171
|
+
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
172
|
+
this.clientStyling = '';
|
|
173
|
+
this.clientStylingurl = '';
|
|
174
|
+
this.clientStylingUrlContent = '';
|
|
175
|
+
this.limitStylingAppends = false;
|
|
246
176
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
177
|
+
connectedCallback() {
|
|
178
|
+
}
|
|
179
|
+
componentDidRender() {
|
|
180
|
+
// start custom styling area
|
|
181
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
182
|
+
this.setClientStyling();
|
|
183
|
+
if (this.clientStylingUrlContent) {
|
|
184
|
+
this.setClientStylingURL();
|
|
185
|
+
}
|
|
186
|
+
this.limitStylingAppends = true;
|
|
187
|
+
}
|
|
188
|
+
// end custom styling area
|
|
189
|
+
}
|
|
190
|
+
render() {
|
|
191
|
+
return (h("div", { key: '841b2a4b84f2ecdaf692b9cab2eac4b3413186e7', ref: el => this.stylingContainer = el }, h("div", { key: '4c5d57e669f9f45d204bff8a85ca89a0574c4627', class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", { key: '7ba983dec3b0355f390b19191d0d823914f09037' }, h("helper-tab", { key: 'e6c7739d50948582d8d14d530828508b4cb90d6e', selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
|
|
192
|
+
}
|
|
193
|
+
get host() { return getElement(this); }
|
|
253
194
|
};
|
|
254
|
-
HelperTabs.style =
|
|
195
|
+
HelperTabs.style = HelperTabsStyle0;
|
|
255
196
|
|
|
256
197
|
const lotteryGameDetailsCss = ":host{display:block}";
|
|
198
|
+
const LotteryGameDetailsStyle0 = lotteryGameDetailsCss;
|
|
257
199
|
|
|
258
200
|
const LotteryGameDetails = class {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
this.stylingContainer
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
this.
|
|
290
|
-
this.limitStylingAppends = true;
|
|
201
|
+
constructor(hostRef) {
|
|
202
|
+
registerInstance(this, hostRef);
|
|
203
|
+
this.setClientStyling = () => {
|
|
204
|
+
let sheet = document.createElement('style');
|
|
205
|
+
sheet.innerHTML = this.clientStyling;
|
|
206
|
+
this.stylingContainer.prepend(sheet);
|
|
207
|
+
};
|
|
208
|
+
this.setClientStylingURL = () => {
|
|
209
|
+
let cssFile = document.createElement('style');
|
|
210
|
+
setTimeout(() => {
|
|
211
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
212
|
+
this.stylingContainer.prepend(cssFile);
|
|
213
|
+
}, 1);
|
|
214
|
+
};
|
|
215
|
+
this.clientStyling = '';
|
|
216
|
+
this.clientStylingUrlContent = '';
|
|
217
|
+
this.limitStylingAppends = false;
|
|
218
|
+
}
|
|
219
|
+
componentDidRender() {
|
|
220
|
+
// start custom styling area
|
|
221
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
222
|
+
if (this.clientStyling)
|
|
223
|
+
this.setClientStyling();
|
|
224
|
+
if (this.clientStylingUrlContent)
|
|
225
|
+
this.setClientStylingURL();
|
|
226
|
+
this.limitStylingAppends = true;
|
|
227
|
+
}
|
|
228
|
+
// end custom styling area
|
|
229
|
+
}
|
|
230
|
+
render() {
|
|
231
|
+
return (h("div", { key: 'a972ed1a25317b0cdeb82e3b007ec79e30bbb871', class: "GamePageDetailsContainer", ref: el => this.stylingContainer = el }, h("helper-accordion", { key: '2c6f8d634241c412103cdae78909972c884b0515', "header-title": "Game Details", collapsed: false, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("div", { key: 'f5f80e173d935cb0dabb6a7ef45e54a1312b5dc8', class: "AccordionContainer", slot: "accordionContent" }, h("helper-tabs", { key: 'a91396e0a4aa1235cc618dfe336ae8b603bc2a6c', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
|
|
291
232
|
}
|
|
292
|
-
// end custom styling area
|
|
293
|
-
}
|
|
294
|
-
render() {
|
|
295
|
-
return (h("div", { class: "GamePageDetailsContainer", ref: el => this.stylingContainer = el }, h("helper-accordion", { "header-title": "Game Details", collapsed: false, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("div", { class: "AccordionContainer", slot: "accordionContent" }, h("helper-tabs", { "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })))));
|
|
296
|
-
}
|
|
297
233
|
};
|
|
298
|
-
LotteryGameDetails.style =
|
|
234
|
+
LotteryGameDetails.style = LotteryGameDetailsStyle0;
|
|
299
235
|
|
|
300
|
-
export {
|
|
236
|
+
export { HelperAccordion as helper_accordion, HelperTab as helper_tab, HelperTabs as helper_tabs, LotteryGameDetails as lottery_game_details };
|