@everymatrix/lottery-game-details 1.43.4 → 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
|
@@ -2,306 +2,242 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-376df72c.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const TRANSLATIONS = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
en: {
|
|
10
|
+
deleteTicket: 'Delete ticket'
|
|
11
|
+
},
|
|
12
|
+
ro: {
|
|
13
|
+
deleteTicket: 'Sterge biletul'
|
|
14
|
+
},
|
|
15
|
+
fr: {
|
|
16
|
+
deleteTicket: 'Supprimer le billet'
|
|
17
|
+
},
|
|
18
|
+
ar: {
|
|
19
|
+
deleteTicket: 'حذف التذكرة'
|
|
20
|
+
},
|
|
21
|
+
hr: {
|
|
22
|
+
deleteTicket: 'Izbriši listić'
|
|
23
|
+
}
|
|
24
24
|
};
|
|
25
25
|
const translate = (key, customLang) => {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const lang = customLang;
|
|
27
|
+
return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
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}";
|
|
31
|
+
const HelperAccordionStyle0 = helperAccordionCss;
|
|
31
32
|
|
|
32
|
-
const
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
* Client custom styling via string
|
|
78
|
-
*/
|
|
79
|
-
this.clientStyling = '';
|
|
80
|
-
/**
|
|
81
|
-
* Client custom styling via url content
|
|
82
|
-
*/
|
|
83
|
-
this.clientStylingUrlContent = '';
|
|
84
|
-
this.limitStylingAppends = false;
|
|
85
|
-
this.setClientStyling = () => {
|
|
86
|
-
let sheet = document.createElement('style');
|
|
87
|
-
sheet.innerHTML = this.clientStyling;
|
|
88
|
-
this.stylingContainer.prepend(sheet);
|
|
89
|
-
};
|
|
90
|
-
this.setClientStylingURL = () => {
|
|
91
|
-
let cssFile = document.createElement('style');
|
|
92
|
-
setTimeout(() => {
|
|
93
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
94
|
-
this.stylingContainer.prepend(cssFile);
|
|
95
|
-
}, 1);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
// @TODO fix the `any` type :)
|
|
99
|
-
connectedCallback() {
|
|
100
|
-
this.showContent = !this.collapsed;
|
|
101
|
-
}
|
|
102
|
-
componentDidRender() {
|
|
103
|
-
// start custom styling area
|
|
104
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
105
|
-
if (this.clientStyling)
|
|
106
|
-
this.setClientStyling();
|
|
107
|
-
if (this.clientStylingUrlContent)
|
|
108
|
-
this.setClientStylingURL();
|
|
109
|
-
this.limitStylingAppends = true;
|
|
33
|
+
const HelperAccordion = class {
|
|
34
|
+
constructor(hostRef) {
|
|
35
|
+
index.registerInstance(this, hostRef);
|
|
36
|
+
this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
|
|
37
|
+
this.setClientStyling = () => {
|
|
38
|
+
let sheet = document.createElement('style');
|
|
39
|
+
sheet.innerHTML = this.clientStyling;
|
|
40
|
+
this.stylingContainer.prepend(sheet);
|
|
41
|
+
};
|
|
42
|
+
this.setClientStylingURL = () => {
|
|
43
|
+
let cssFile = document.createElement('style');
|
|
44
|
+
setTimeout(() => {
|
|
45
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
46
|
+
this.stylingContainer.prepend(cssFile);
|
|
47
|
+
}, 1);
|
|
48
|
+
};
|
|
49
|
+
this.ticketHistoryFlag = false;
|
|
50
|
+
this.headerTitle = '';
|
|
51
|
+
this.headerSubtitle = '';
|
|
52
|
+
this.description = '';
|
|
53
|
+
this.footer = false;
|
|
54
|
+
this.deleteTab = false;
|
|
55
|
+
this.postMessage = false;
|
|
56
|
+
this.eventName = 'helperAccordionAction';
|
|
57
|
+
this.collapsed = true;
|
|
58
|
+
this.language = 'en';
|
|
59
|
+
this.clientStyling = '';
|
|
60
|
+
this.clientStylingUrlContent = '';
|
|
61
|
+
this.showContent = undefined;
|
|
62
|
+
this.limitStylingAppends = false;
|
|
63
|
+
}
|
|
64
|
+
// @TODO fix the `any` type :)
|
|
65
|
+
connectedCallback() {
|
|
66
|
+
this.showContent = !this.collapsed;
|
|
67
|
+
}
|
|
68
|
+
componentDidRender() {
|
|
69
|
+
// start custom styling area
|
|
70
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
71
|
+
if (this.clientStyling)
|
|
72
|
+
this.setClientStyling();
|
|
73
|
+
if (this.clientStylingUrlContent)
|
|
74
|
+
this.setClientStylingURL();
|
|
75
|
+
this.limitStylingAppends = true;
|
|
76
|
+
}
|
|
77
|
+
// end custom styling area
|
|
110
78
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
79
|
+
toggleContent() {
|
|
80
|
+
this.showContent = !this.showContent;
|
|
81
|
+
}
|
|
82
|
+
deleteAction() {
|
|
83
|
+
if (this.postMessage) {
|
|
84
|
+
// @TODO maybe change the name type, this one sucks
|
|
85
|
+
window.postMessage({ type: this.eventName }, window.location.href);
|
|
86
|
+
}
|
|
87
|
+
this.accordionEvent.emit();
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
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 &&
|
|
91
|
+
index.h("div", { key: 'c688ab7cc629a3974b905a2fdc43063e996a3b90' }, index.h("div", { key: 'aaa3ad7d9f1503b8e1baaa2c756376a580ffe261', class: "Content" }, index.h("slot", { key: '8c5c8ff70857da9414c7284b052a3fbc5f503f4a', name: 'accordionContent' }), this.footer && this.showContent &&
|
|
92
|
+
index.h("div", { key: '917191f55a45647d708a5e3ff5e188c7e565a0c0' }, this.deleteTab &&
|
|
93
|
+
index.h("span", { key: 'e7fdd5b4f18cacaceda206b36ce9576cc3fc1472', class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
120
94
|
}
|
|
121
|
-
this.accordionEvent.emit();
|
|
122
|
-
}
|
|
123
|
-
render() {
|
|
124
|
-
return (index.h("div", { class: "Wrapper", ref: el => this.stylingContainer = el }, index.h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header', onClick: () => this.toggleContent() }, 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" }, this.showContent ? '<' : '>')), this.showContent &&
|
|
125
|
-
index.h("div", null, index.h("div", { class: "Content" }, index.h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
126
|
-
index.h("div", null, this.deleteTab &&
|
|
127
|
-
index.h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
128
|
-
}
|
|
129
95
|
};
|
|
130
|
-
|
|
96
|
+
HelperAccordion.style = HelperAccordionStyle0;
|
|
131
97
|
|
|
132
98
|
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
|
|
99
|
+
const HelperTabStyle0 = helperTabCss;
|
|
133
100
|
|
|
134
101
|
const HelperTab = class {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
this.stylingContainer.prepend(cssFile);
|
|
161
|
-
}, 1);
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
connectedCallback() {
|
|
165
|
-
/**
|
|
166
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
167
|
-
*/
|
|
168
|
-
}
|
|
169
|
-
componentDidRender() {
|
|
170
|
-
// start custom styling area
|
|
171
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
172
|
-
if (this.clientStyling)
|
|
173
|
-
this.setClientStyling();
|
|
174
|
-
if (this.clientStylingUrlContent)
|
|
175
|
-
this.setClientStylingURL();
|
|
176
|
-
this.limitStylingAppends = true;
|
|
102
|
+
constructor(hostRef) {
|
|
103
|
+
index.registerInstance(this, hostRef);
|
|
104
|
+
this.setClientStyling = () => {
|
|
105
|
+
let sheet = document.createElement('style');
|
|
106
|
+
sheet.innerHTML = this.clientStyling;
|
|
107
|
+
this.stylingContainer.prepend(sheet);
|
|
108
|
+
};
|
|
109
|
+
this.setClientStylingURL = () => {
|
|
110
|
+
let cssFile = document.createElement('style');
|
|
111
|
+
setTimeout(() => {
|
|
112
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
113
|
+
this.stylingContainer.prepend(cssFile);
|
|
114
|
+
}, 1);
|
|
115
|
+
};
|
|
116
|
+
this.selectedIndex = 0;
|
|
117
|
+
this.cmsEndpoint = undefined;
|
|
118
|
+
this.clientStyling = '';
|
|
119
|
+
this.clientStylingUrlContent = '';
|
|
120
|
+
this.tabContent = '';
|
|
121
|
+
this.limitStylingAppends = false;
|
|
122
|
+
}
|
|
123
|
+
connectedCallback() {
|
|
124
|
+
/**
|
|
125
|
+
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
126
|
+
*/
|
|
177
127
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
128
|
+
componentDidRender() {
|
|
129
|
+
// start custom styling area
|
|
130
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
131
|
+
if (this.clientStyling)
|
|
132
|
+
this.setClientStyling();
|
|
133
|
+
if (this.clientStylingUrlContent)
|
|
134
|
+
this.setClientStylingURL();
|
|
135
|
+
this.limitStylingAppends = true;
|
|
136
|
+
}
|
|
137
|
+
// end custom styling area
|
|
184
138
|
}
|
|
185
|
-
|
|
186
|
-
|
|
139
|
+
render() {
|
|
140
|
+
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.");
|
|
141
|
+
if (this.selectedIndex + 1 == 2) {
|
|
142
|
+
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!")));
|
|
143
|
+
}
|
|
144
|
+
else if (this.selectedIndex + 1 == 3) {
|
|
145
|
+
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?")));
|
|
146
|
+
}
|
|
147
|
+
return (this.tabContent);
|
|
187
148
|
}
|
|
188
|
-
return (this.tabContent);
|
|
189
|
-
}
|
|
190
149
|
};
|
|
191
|
-
HelperTab.style =
|
|
150
|
+
HelperTab.style = HelperTabStyle0;
|
|
192
151
|
|
|
193
152
|
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}";
|
|
153
|
+
const HelperTabsStyle0 = helperTabsCss;
|
|
194
154
|
|
|
195
155
|
const HelperTabs = class {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
*/
|
|
221
|
-
this.clientStylingurl = '';
|
|
222
|
-
/**
|
|
223
|
-
* Client custom styling via url content
|
|
224
|
-
*/
|
|
225
|
-
this.clientStylingUrlContent = '';
|
|
226
|
-
this.limitStylingAppends = false;
|
|
227
|
-
this.setClientStyling = () => {
|
|
228
|
-
let sheet = document.createElement('style');
|
|
229
|
-
sheet.innerHTML = this.clientStyling;
|
|
230
|
-
this.stylingContainer.prepend(sheet);
|
|
231
|
-
};
|
|
232
|
-
this.setClientStylingURL = () => {
|
|
233
|
-
let cssFile = document.createElement('style');
|
|
234
|
-
setTimeout(() => {
|
|
235
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
236
|
-
this.stylingContainer.prepend(cssFile);
|
|
237
|
-
}, 1);
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
connectedCallback() {
|
|
241
|
-
}
|
|
242
|
-
componentDidRender() {
|
|
243
|
-
// start custom styling area
|
|
244
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
245
|
-
this.setClientStyling();
|
|
246
|
-
if (this.clientStylingUrlContent) {
|
|
247
|
-
this.setClientStylingURL();
|
|
248
|
-
}
|
|
249
|
-
this.limitStylingAppends = true;
|
|
156
|
+
constructor(hostRef) {
|
|
157
|
+
index.registerInstance(this, hostRef);
|
|
158
|
+
this.setClientStyling = () => {
|
|
159
|
+
let sheet = document.createElement('style');
|
|
160
|
+
sheet.innerHTML = this.clientStyling;
|
|
161
|
+
this.stylingContainer.prepend(sheet);
|
|
162
|
+
};
|
|
163
|
+
this.setClientStylingURL = () => {
|
|
164
|
+
let cssFile = document.createElement('style');
|
|
165
|
+
setTimeout(() => {
|
|
166
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
167
|
+
this.stylingContainer.prepend(cssFile);
|
|
168
|
+
}, 1);
|
|
169
|
+
};
|
|
170
|
+
this.disabled = false;
|
|
171
|
+
this.label = undefined;
|
|
172
|
+
this.selected = false;
|
|
173
|
+
this.cmsEndpoint = undefined;
|
|
174
|
+
this.selectedIndex = 0;
|
|
175
|
+
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
176
|
+
this.clientStyling = '';
|
|
177
|
+
this.clientStylingurl = '';
|
|
178
|
+
this.clientStylingUrlContent = '';
|
|
179
|
+
this.limitStylingAppends = false;
|
|
250
180
|
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
181
|
+
connectedCallback() {
|
|
182
|
+
}
|
|
183
|
+
componentDidRender() {
|
|
184
|
+
// start custom styling area
|
|
185
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
186
|
+
this.setClientStyling();
|
|
187
|
+
if (this.clientStylingUrlContent) {
|
|
188
|
+
this.setClientStylingURL();
|
|
189
|
+
}
|
|
190
|
+
this.limitStylingAppends = true;
|
|
191
|
+
}
|
|
192
|
+
// end custom styling area
|
|
193
|
+
}
|
|
194
|
+
render() {
|
|
195
|
+
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 }))));
|
|
196
|
+
}
|
|
197
|
+
get host() { return index.getElement(this); }
|
|
257
198
|
};
|
|
258
|
-
HelperTabs.style =
|
|
199
|
+
HelperTabs.style = HelperTabsStyle0;
|
|
259
200
|
|
|
260
201
|
const lotteryGameDetailsCss = ":host{display:block}";
|
|
202
|
+
const LotteryGameDetailsStyle0 = lotteryGameDetailsCss;
|
|
261
203
|
|
|
262
204
|
const LotteryGameDetails = class {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
this.stylingContainer
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
this.
|
|
294
|
-
this.limitStylingAppends = true;
|
|
205
|
+
constructor(hostRef) {
|
|
206
|
+
index.registerInstance(this, hostRef);
|
|
207
|
+
this.setClientStyling = () => {
|
|
208
|
+
let sheet = document.createElement('style');
|
|
209
|
+
sheet.innerHTML = this.clientStyling;
|
|
210
|
+
this.stylingContainer.prepend(sheet);
|
|
211
|
+
};
|
|
212
|
+
this.setClientStylingURL = () => {
|
|
213
|
+
let cssFile = document.createElement('style');
|
|
214
|
+
setTimeout(() => {
|
|
215
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
216
|
+
this.stylingContainer.prepend(cssFile);
|
|
217
|
+
}, 1);
|
|
218
|
+
};
|
|
219
|
+
this.clientStyling = '';
|
|
220
|
+
this.clientStylingUrlContent = '';
|
|
221
|
+
this.limitStylingAppends = false;
|
|
222
|
+
}
|
|
223
|
+
componentDidRender() {
|
|
224
|
+
// start custom styling area
|
|
225
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
226
|
+
if (this.clientStyling)
|
|
227
|
+
this.setClientStyling();
|
|
228
|
+
if (this.clientStylingUrlContent)
|
|
229
|
+
this.setClientStylingURL();
|
|
230
|
+
this.limitStylingAppends = true;
|
|
231
|
+
}
|
|
232
|
+
// end custom styling area
|
|
233
|
+
}
|
|
234
|
+
render() {
|
|
235
|
+
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 })))));
|
|
295
236
|
}
|
|
296
|
-
// end custom styling area
|
|
297
|
-
}
|
|
298
|
-
render() {
|
|
299
|
-
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 })))));
|
|
300
|
-
}
|
|
301
237
|
};
|
|
302
|
-
LotteryGameDetails.style =
|
|
238
|
+
LotteryGameDetails.style = LotteryGameDetailsStyle0;
|
|
303
239
|
|
|
304
|
-
exports.helper_accordion =
|
|
240
|
+
exports.helper_accordion = HelperAccordion;
|
|
305
241
|
exports.helper_tab = HelperTab;
|
|
306
242
|
exports.helper_tabs = HelperTabs;
|
|
307
243
|
exports.lottery_game_details = LotteryGameDetails;
|