@everymatrix/helper-tabs 1.52.5 → 1.53.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-tab_2.cjs.entry.js +65 -11
- package/dist/cjs/helper-tabs.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/helper-tab/helper-tab.css +1 -1
- package/dist/collection/components/helper-tab/helper-tab.js +95 -8
- package/dist/collection/components/helper-tabs/helper-tabs.css +7 -7
- package/dist/collection/components/helper-tabs/helper-tabs.js +73 -1
- package/dist/collection/utils/locale.utils.js +49 -0
- package/dist/esm/helper-tab_2.entry.js +65 -11
- package/dist/esm/helper-tabs.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/helper-tabs/helper-tabs.esm.js +1 -1
- package/dist/helper-tabs/p-80aa1adc.entry.js +1 -0
- package/dist/types/components/helper-tab/helper-tab.d.ts +20 -1
- package/dist/types/components/helper-tabs/helper-tabs.d.ts +16 -0
- package/dist/types/components.d.ts +72 -0
- package/dist/types/utils/locale.utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/helper-tabs/p-34cddd95.entry.js +0 -1
|
@@ -4,7 +4,57 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-7158b6b0.js');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
8
|
+
const SUPPORTED_LANGUAGES = ['en'];
|
|
9
|
+
const TRANSLATIONS = {
|
|
10
|
+
en: {
|
|
11
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
12
|
+
to: 'to',
|
|
13
|
+
selectableNumber: 'with a selectable number of',
|
|
14
|
+
minimumSelection: 'and a minimum selection of',
|
|
15
|
+
winnings: 'The winnings are automatically credited to your account.',
|
|
16
|
+
register: 'Register or Login',
|
|
17
|
+
butTickets: 'Buy tickets. Select "Buy Tickets" to pick your numbers. Want us to automatically generate random numbers for you? Choose “quick pick”.',
|
|
18
|
+
reviewPurchase: "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!",
|
|
19
|
+
odds: 'What are my odds of winning?',
|
|
20
|
+
winGame: 'How can I find out if I’ve won a draw game?',
|
|
21
|
+
claimPrize: 'How do I claim my prize?'
|
|
22
|
+
},
|
|
23
|
+
ro: {
|
|
24
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
25
|
+
to: 'to',
|
|
26
|
+
selectableNumber: 'with a selectable number of',
|
|
27
|
+
minimumSelection: 'and a minimum selection of',
|
|
28
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
29
|
+
},
|
|
30
|
+
fr: {
|
|
31
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
32
|
+
to: 'to',
|
|
33
|
+
selectableNumber: 'with a selectable number of',
|
|
34
|
+
minimumSelection: 'and a minimum selection of',
|
|
35
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
36
|
+
},
|
|
37
|
+
ar: {
|
|
38
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
39
|
+
to: 'to',
|
|
40
|
+
selectableNumber: 'with a selectable number of',
|
|
41
|
+
minimumSelection: 'and a minimum selection of',
|
|
42
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
43
|
+
},
|
|
44
|
+
hr: {
|
|
45
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
46
|
+
to: 'to',
|
|
47
|
+
selectableNumber: 'with a selectable number of',
|
|
48
|
+
minimumSelection: 'and a minimum selection of',
|
|
49
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const translate = (key, customLang) => {
|
|
53
|
+
const lang = customLang;
|
|
54
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:var(--emw--button-text-color, #000);font-weight:normal}";
|
|
8
58
|
const HelperTabStyle0 = helperTabCss;
|
|
9
59
|
|
|
10
60
|
const HelperTab = class {
|
|
@@ -26,14 +76,14 @@ const HelperTab = class {
|
|
|
26
76
|
this.cmsEndpoint = undefined;
|
|
27
77
|
this.clientStyling = '';
|
|
28
78
|
this.clientStylingUrlContent = '';
|
|
79
|
+
this.lowNumber = undefined;
|
|
80
|
+
this.highNumber = undefined;
|
|
81
|
+
this.minimumAllowed = undefined;
|
|
82
|
+
this.maxinumAllowed = undefined;
|
|
83
|
+
this.language = 'en';
|
|
29
84
|
this.tabContent = '';
|
|
30
85
|
this.limitStylingAppends = false;
|
|
31
86
|
}
|
|
32
|
-
connectedCallback() {
|
|
33
|
-
/**
|
|
34
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
35
|
-
*/
|
|
36
|
-
}
|
|
37
87
|
componentDidRender() {
|
|
38
88
|
// start custom styling area
|
|
39
89
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -46,19 +96,19 @@ const HelperTab = class {
|
|
|
46
96
|
// end custom styling area
|
|
47
97
|
}
|
|
48
98
|
render() {
|
|
49
|
-
this.tabContent = index.h("div", { key: '
|
|
99
|
+
this.tabContent = index.h("div", { key: '8c2b3f0f34ccda482fd187218840f9a622698b1f', class: "TabContent", ref: el => this.stylingContainer = el }, translate('numbersFrom', this.language), " ", this.lowNumber, " ", translate('to', this.language), " ", this.highNumber, " ", translate('selectableNumber', this.language), " ", this.maxinumAllowed, " ", translate('minimumSelection', this.language), " ", this.minimumAllowed, ". ", translate('winnings', this.language));
|
|
50
100
|
if (this.selectedIndex + 1 == 2) {
|
|
51
|
-
this.tabContent = index.h("div", { key: '
|
|
101
|
+
this.tabContent = index.h("div", { key: '2950bb6ccdd98761099d12239881ab29da4b2213', class: "TabContent", ref: el => this.stylingContainer = el }, index.h("ol", { key: '0da821f45e855155003809cb4c84eaa8d25f1f2a' }, index.h("li", { key: '15d4f064c62319c6611baa3693f4ef297309c786' }, translate('register', this.language)), index.h("li", { key: '4933c6970d4044aac746abb398f7c255b0484f6a' }, translate('butTickets', this.language)), index.h("li", { key: 'ffe7cef3e53bd281173384756476acd2e0e8f148' }, translate('reviewPurchase', this.language))));
|
|
52
102
|
}
|
|
53
103
|
else if (this.selectedIndex + 1 == 3) {
|
|
54
|
-
this.tabContent = index.h("div", { key: '
|
|
104
|
+
this.tabContent = index.h("div", { key: '296c83d55150c67522cea9cb1fc10f3542c72452', class: "TabContent", ref: el => this.stylingContainer = el }, index.h("ul", { key: '3fc772a007d0f73e0692021a2f700bab5807bb85' }, index.h("li", { key: 'fd6e459a0536261d98e42e37a272f229d152dfb7' }, translate('odds', this.language)), index.h("li", { key: 'ae7e5bceb217c9ceb1303145ae83f05fddd7dde6' }, translate('winGame', this.language)), index.h("li", { key: 'a094c7ea0db72683fb134f010d22f02b61f25a4b' }, translate('claimPrize', this.language))));
|
|
55
105
|
}
|
|
56
106
|
return (this.tabContent);
|
|
57
107
|
}
|
|
58
108
|
};
|
|
59
109
|
HelperTab.style = HelperTabStyle0;
|
|
60
110
|
|
|
61
|
-
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
|
|
111
|
+
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:var(--emw--button-border-radius, 4px);padding:8px 15px;margin:5px 0 10px;border:1px solid var(--emw--color-typography, #009993);background:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));color:var(--emw--button-text-color, #000);font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:var(--emw--color-gray-50, #F1F1F1)}.TabButton.Active{background:var(--emw--color-background, #009993);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}";
|
|
62
112
|
const HelperTabsStyle0 = helperTabsCss;
|
|
63
113
|
|
|
64
114
|
const HelperTabs = class {
|
|
@@ -85,6 +135,10 @@ const HelperTabs = class {
|
|
|
85
135
|
this.clientStyling = '';
|
|
86
136
|
this.clientStylingurl = '';
|
|
87
137
|
this.clientStylingUrlContent = '';
|
|
138
|
+
this.lowNumber = undefined;
|
|
139
|
+
this.highNumber = undefined;
|
|
140
|
+
this.minimumAllowed = undefined;
|
|
141
|
+
this.maxinumAllowed = undefined;
|
|
88
142
|
this.limitStylingAppends = false;
|
|
89
143
|
}
|
|
90
144
|
connectedCallback() {
|
|
@@ -101,7 +155,7 @@ const HelperTabs = class {
|
|
|
101
155
|
// end custom styling area
|
|
102
156
|
}
|
|
103
157
|
render() {
|
|
104
|
-
return (index.h("div", { key: '
|
|
158
|
+
return (index.h("div", { key: 'cb91a99a4d5eb99ce625c276894f8b682159c12c', ref: el => this.stylingContainer = el }, index.h("div", { key: 'c57ea36b3e25c605894b7ddf19e5e456f2fa252d', 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: '41fa20ee2cc713af685f902fc496a702464398d1' }, index.h("helper-tab", { key: 'fded6e290107cbc06909aee2e2c97e1c1dd76db3', "low-number": this.lowNumber, "high-number": this.highNumber, "minimum-allowed": this.minimumAllowed, "maxinum-allowed": this.maxinumAllowed, selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
|
|
105
159
|
}
|
|
106
160
|
get host() { return index.getElement(this); }
|
|
107
161
|
};
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["helper-tab_2.cjs",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["helper-tab_2.cjs",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["helper-tab_2.cjs",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["helper-tab_2.cjs",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { translate } from "../../utils/locale.utils";
|
|
2
3
|
export class HelperTab {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.setClientStyling = () => {
|
|
@@ -17,14 +18,14 @@ export class HelperTab {
|
|
|
17
18
|
this.cmsEndpoint = undefined;
|
|
18
19
|
this.clientStyling = '';
|
|
19
20
|
this.clientStylingUrlContent = '';
|
|
21
|
+
this.lowNumber = undefined;
|
|
22
|
+
this.highNumber = undefined;
|
|
23
|
+
this.minimumAllowed = undefined;
|
|
24
|
+
this.maxinumAllowed = undefined;
|
|
25
|
+
this.language = 'en';
|
|
20
26
|
this.tabContent = '';
|
|
21
27
|
this.limitStylingAppends = false;
|
|
22
28
|
}
|
|
23
|
-
connectedCallback() {
|
|
24
|
-
/**
|
|
25
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
26
|
-
*/
|
|
27
|
-
}
|
|
28
29
|
componentDidRender() {
|
|
29
30
|
// start custom styling area
|
|
30
31
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -37,12 +38,12 @@ export class HelperTab {
|
|
|
37
38
|
// end custom styling area
|
|
38
39
|
}
|
|
39
40
|
render() {
|
|
40
|
-
this.tabContent = h("div", { key: '
|
|
41
|
+
this.tabContent = h("div", { key: '8c2b3f0f34ccda482fd187218840f9a622698b1f', class: "TabContent", ref: el => this.stylingContainer = el }, translate('numbersFrom', this.language), " ", this.lowNumber, " ", translate('to', this.language), " ", this.highNumber, " ", translate('selectableNumber', this.language), " ", this.maxinumAllowed, " ", translate('minimumSelection', this.language), " ", this.minimumAllowed, ". ", translate('winnings', this.language));
|
|
41
42
|
if (this.selectedIndex + 1 == 2) {
|
|
42
|
-
this.tabContent = h("div", { key: '
|
|
43
|
+
this.tabContent = h("div", { key: '2950bb6ccdd98761099d12239881ab29da4b2213', class: "TabContent", ref: el => this.stylingContainer = el }, h("ol", { key: '0da821f45e855155003809cb4c84eaa8d25f1f2a' }, h("li", { key: '15d4f064c62319c6611baa3693f4ef297309c786' }, translate('register', this.language)), h("li", { key: '4933c6970d4044aac746abb398f7c255b0484f6a' }, translate('butTickets', this.language)), h("li", { key: 'ffe7cef3e53bd281173384756476acd2e0e8f148' }, translate('reviewPurchase', this.language))));
|
|
43
44
|
}
|
|
44
45
|
else if (this.selectedIndex + 1 == 3) {
|
|
45
|
-
this.tabContent = h("div", { key: '
|
|
46
|
+
this.tabContent = h("div", { key: '296c83d55150c67522cea9cb1fc10f3542c72452', class: "TabContent", ref: el => this.stylingContainer = el }, h("ul", { key: '3fc772a007d0f73e0692021a2f700bab5807bb85' }, h("li", { key: 'fd6e459a0536261d98e42e37a272f229d152dfb7' }, translate('odds', this.language)), h("li", { key: 'ae7e5bceb217c9ceb1303145ae83f05fddd7dde6' }, translate('winGame', this.language)), h("li", { key: 'a094c7ea0db72683fb134f010d22f02b61f25a4b' }, translate('claimPrize', this.language))));
|
|
46
47
|
}
|
|
47
48
|
return (this.tabContent);
|
|
48
49
|
}
|
|
@@ -130,6 +131,92 @@ export class HelperTab {
|
|
|
130
131
|
"attribute": "client-styling-url-content",
|
|
131
132
|
"reflect": true,
|
|
132
133
|
"defaultValue": "''"
|
|
134
|
+
},
|
|
135
|
+
"lowNumber": {
|
|
136
|
+
"type": "number",
|
|
137
|
+
"mutable": false,
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "number",
|
|
140
|
+
"resolved": "number",
|
|
141
|
+
"references": {}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": false,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": "Minimum number displayed in the board"
|
|
148
|
+
},
|
|
149
|
+
"attribute": "low-number",
|
|
150
|
+
"reflect": true
|
|
151
|
+
},
|
|
152
|
+
"highNumber": {
|
|
153
|
+
"type": "number",
|
|
154
|
+
"mutable": false,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "number",
|
|
157
|
+
"resolved": "number",
|
|
158
|
+
"references": {}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": false,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": "Maximum number displayed in the board"
|
|
165
|
+
},
|
|
166
|
+
"attribute": "high-number",
|
|
167
|
+
"reflect": true
|
|
168
|
+
},
|
|
169
|
+
"minimumAllowed": {
|
|
170
|
+
"type": "number",
|
|
171
|
+
"mutable": false,
|
|
172
|
+
"complexType": {
|
|
173
|
+
"original": "number",
|
|
174
|
+
"resolved": "number",
|
|
175
|
+
"references": {}
|
|
176
|
+
},
|
|
177
|
+
"required": false,
|
|
178
|
+
"optional": false,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": "Minimum number of numbers that can be selected"
|
|
182
|
+
},
|
|
183
|
+
"attribute": "minimum-allowed",
|
|
184
|
+
"reflect": true
|
|
185
|
+
},
|
|
186
|
+
"maxinumAllowed": {
|
|
187
|
+
"type": "number",
|
|
188
|
+
"mutable": false,
|
|
189
|
+
"complexType": {
|
|
190
|
+
"original": "number",
|
|
191
|
+
"resolved": "number",
|
|
192
|
+
"references": {}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": false,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": "Maximum number of numbers that can be selected"
|
|
199
|
+
},
|
|
200
|
+
"attribute": "maxinum-allowed",
|
|
201
|
+
"reflect": true
|
|
202
|
+
},
|
|
203
|
+
"language": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"mutable": false,
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "string",
|
|
208
|
+
"resolved": "string",
|
|
209
|
+
"references": {}
|
|
210
|
+
},
|
|
211
|
+
"required": false,
|
|
212
|
+
"optional": false,
|
|
213
|
+
"docs": {
|
|
214
|
+
"tags": [],
|
|
215
|
+
"text": "Language of the widget"
|
|
216
|
+
},
|
|
217
|
+
"attribute": "language",
|
|
218
|
+
"reflect": true,
|
|
219
|
+
"defaultValue": "'en'"
|
|
133
220
|
}
|
|
134
221
|
};
|
|
135
222
|
}
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
.TabButton {
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
width: auto;
|
|
16
|
-
border-radius: 4px;
|
|
16
|
+
border-radius: var(--emw--button-border-radius, 4px);
|
|
17
17
|
padding: 8px 15px;
|
|
18
18
|
margin: 5px 0 10px;
|
|
19
|
-
border: 1px solid #009993;
|
|
20
|
-
background:
|
|
21
|
-
color: #000;
|
|
19
|
+
border: 1px solid var(--emw--color-typography, #009993);
|
|
20
|
+
background: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
|
|
21
|
+
color: var(--emw--button-text-color, #000);
|
|
22
22
|
font-size: 12px;
|
|
23
23
|
transition: all 0.2s linear;
|
|
24
24
|
text-align: center;
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
white-space: nowrap;
|
|
27
27
|
}
|
|
28
28
|
.TabButton:hover {
|
|
29
|
-
background: #F1F1F1;
|
|
29
|
+
background: var(--emw--color-gray-50, #F1F1F1);
|
|
30
30
|
}
|
|
31
31
|
.TabButton.Active {
|
|
32
|
-
background: #009993;
|
|
33
|
-
color:
|
|
32
|
+
background: var(--emw--color-background, #009993);
|
|
33
|
+
color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
|
|
34
34
|
}
|
|
@@ -22,6 +22,10 @@ export class HelperTabs {
|
|
|
22
22
|
this.clientStyling = '';
|
|
23
23
|
this.clientStylingurl = '';
|
|
24
24
|
this.clientStylingUrlContent = '';
|
|
25
|
+
this.lowNumber = undefined;
|
|
26
|
+
this.highNumber = undefined;
|
|
27
|
+
this.minimumAllowed = undefined;
|
|
28
|
+
this.maxinumAllowed = undefined;
|
|
25
29
|
this.limitStylingAppends = false;
|
|
26
30
|
}
|
|
27
31
|
connectedCallback() {
|
|
@@ -41,7 +45,7 @@ export class HelperTabs {
|
|
|
41
45
|
// end custom styling area
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
48
|
+
return (h("div", { key: 'cb91a99a4d5eb99ce625c276894f8b682159c12c', ref: el => this.stylingContainer = el }, h("div", { key: 'c57ea36b3e25c605894b7ddf19e5e456f2fa252d', class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", { key: '41fa20ee2cc713af685f902fc496a702464398d1' }, h("helper-tab", { key: 'fded6e290107cbc06909aee2e2c97e1c1dd76db3', "low-number": this.lowNumber, "high-number": this.highNumber, "minimum-allowed": this.minimumAllowed, "maxinum-allowed": this.maxinumAllowed, selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
|
|
45
49
|
}
|
|
46
50
|
static get is() { return "helper-tabs"; }
|
|
47
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -223,6 +227,74 @@ export class HelperTabs {
|
|
|
223
227
|
"attribute": "client-styling-url-content",
|
|
224
228
|
"reflect": true,
|
|
225
229
|
"defaultValue": "''"
|
|
230
|
+
},
|
|
231
|
+
"lowNumber": {
|
|
232
|
+
"type": "number",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "number",
|
|
236
|
+
"resolved": "number",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": "Minimum number displayed in the board"
|
|
244
|
+
},
|
|
245
|
+
"attribute": "low-number",
|
|
246
|
+
"reflect": true
|
|
247
|
+
},
|
|
248
|
+
"highNumber": {
|
|
249
|
+
"type": "number",
|
|
250
|
+
"mutable": false,
|
|
251
|
+
"complexType": {
|
|
252
|
+
"original": "number",
|
|
253
|
+
"resolved": "number",
|
|
254
|
+
"references": {}
|
|
255
|
+
},
|
|
256
|
+
"required": false,
|
|
257
|
+
"optional": false,
|
|
258
|
+
"docs": {
|
|
259
|
+
"tags": [],
|
|
260
|
+
"text": "Maximum number displayed in the board"
|
|
261
|
+
},
|
|
262
|
+
"attribute": "high-number",
|
|
263
|
+
"reflect": true
|
|
264
|
+
},
|
|
265
|
+
"minimumAllowed": {
|
|
266
|
+
"type": "number",
|
|
267
|
+
"mutable": false,
|
|
268
|
+
"complexType": {
|
|
269
|
+
"original": "number",
|
|
270
|
+
"resolved": "number",
|
|
271
|
+
"references": {}
|
|
272
|
+
},
|
|
273
|
+
"required": false,
|
|
274
|
+
"optional": false,
|
|
275
|
+
"docs": {
|
|
276
|
+
"tags": [],
|
|
277
|
+
"text": "Minimum number of numbers that can be selected"
|
|
278
|
+
},
|
|
279
|
+
"attribute": "minimum-allowed",
|
|
280
|
+
"reflect": true
|
|
281
|
+
},
|
|
282
|
+
"maxinumAllowed": {
|
|
283
|
+
"type": "number",
|
|
284
|
+
"mutable": false,
|
|
285
|
+
"complexType": {
|
|
286
|
+
"original": "number",
|
|
287
|
+
"resolved": "number",
|
|
288
|
+
"references": {}
|
|
289
|
+
},
|
|
290
|
+
"required": false,
|
|
291
|
+
"optional": false,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": "Maximum number of numbers that can be selected"
|
|
295
|
+
},
|
|
296
|
+
"attribute": "maxinum-allowed",
|
|
297
|
+
"reflect": true
|
|
226
298
|
}
|
|
227
299
|
};
|
|
228
300
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
2
|
+
const SUPPORTED_LANGUAGES = ['en'];
|
|
3
|
+
const TRANSLATIONS = {
|
|
4
|
+
en: {
|
|
5
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
6
|
+
to: 'to',
|
|
7
|
+
selectableNumber: 'with a selectable number of',
|
|
8
|
+
minimumSelection: 'and a minimum selection of',
|
|
9
|
+
winnings: 'The winnings are automatically credited to your account.',
|
|
10
|
+
register: 'Register or Login',
|
|
11
|
+
butTickets: 'Buy tickets. Select "Buy Tickets" to pick your numbers. Want us to automatically generate random numbers for you? Choose “quick pick”.',
|
|
12
|
+
reviewPurchase: "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!",
|
|
13
|
+
odds: 'What are my odds of winning?',
|
|
14
|
+
winGame: 'How can I find out if I’ve won a draw game?',
|
|
15
|
+
claimPrize: 'How do I claim my prize?'
|
|
16
|
+
},
|
|
17
|
+
ro: {
|
|
18
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
19
|
+
to: 'to',
|
|
20
|
+
selectableNumber: 'with a selectable number of',
|
|
21
|
+
minimumSelection: 'and a minimum selection of',
|
|
22
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
23
|
+
},
|
|
24
|
+
fr: {
|
|
25
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
26
|
+
to: 'to',
|
|
27
|
+
selectableNumber: 'with a selectable number of',
|
|
28
|
+
minimumSelection: 'and a minimum selection of',
|
|
29
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
30
|
+
},
|
|
31
|
+
ar: {
|
|
32
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
33
|
+
to: 'to',
|
|
34
|
+
selectableNumber: 'with a selectable number of',
|
|
35
|
+
minimumSelection: 'and a minimum selection of',
|
|
36
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
37
|
+
},
|
|
38
|
+
hr: {
|
|
39
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
40
|
+
to: 'to',
|
|
41
|
+
selectableNumber: 'with a selectable number of',
|
|
42
|
+
minimumSelection: 'and a minimum selection of',
|
|
43
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export const translate = (key, customLang) => {
|
|
47
|
+
const lang = customLang;
|
|
48
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
49
|
+
};
|
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-93aaed58.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
+
const SUPPORTED_LANGUAGES = ['en'];
|
|
5
|
+
const TRANSLATIONS = {
|
|
6
|
+
en: {
|
|
7
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
8
|
+
to: 'to',
|
|
9
|
+
selectableNumber: 'with a selectable number of',
|
|
10
|
+
minimumSelection: 'and a minimum selection of',
|
|
11
|
+
winnings: 'The winnings are automatically credited to your account.',
|
|
12
|
+
register: 'Register or Login',
|
|
13
|
+
butTickets: 'Buy tickets. Select "Buy Tickets" to pick your numbers. Want us to automatically generate random numbers for you? Choose “quick pick”.',
|
|
14
|
+
reviewPurchase: "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!",
|
|
15
|
+
odds: 'What are my odds of winning?',
|
|
16
|
+
winGame: 'How can I find out if I’ve won a draw game?',
|
|
17
|
+
claimPrize: 'How do I claim my prize?'
|
|
18
|
+
},
|
|
19
|
+
ro: {
|
|
20
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
21
|
+
to: 'to',
|
|
22
|
+
selectableNumber: 'with a selectable number of',
|
|
23
|
+
minimumSelection: 'and a minimum selection of',
|
|
24
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
25
|
+
},
|
|
26
|
+
fr: {
|
|
27
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
28
|
+
to: 'to',
|
|
29
|
+
selectableNumber: 'with a selectable number of',
|
|
30
|
+
minimumSelection: 'and a minimum selection of',
|
|
31
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
32
|
+
},
|
|
33
|
+
ar: {
|
|
34
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
35
|
+
to: 'to',
|
|
36
|
+
selectableNumber: 'with a selectable number of',
|
|
37
|
+
minimumSelection: 'and a minimum selection of',
|
|
38
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
39
|
+
},
|
|
40
|
+
hr: {
|
|
41
|
+
numbersFrom: 'Each play includes one set of numbers from',
|
|
42
|
+
to: 'to',
|
|
43
|
+
selectableNumber: 'with a selectable number of',
|
|
44
|
+
minimumSelection: 'and a minimum selection of',
|
|
45
|
+
winnings: 'The winnings are automatically credited to your account.'
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const translate = (key, customLang) => {
|
|
49
|
+
const lang = customLang;
|
|
50
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:var(--emw--button-text-color, #000);font-weight:normal}";
|
|
4
54
|
const HelperTabStyle0 = helperTabCss;
|
|
5
55
|
|
|
6
56
|
const HelperTab = class {
|
|
@@ -22,14 +72,14 @@ const HelperTab = class {
|
|
|
22
72
|
this.cmsEndpoint = undefined;
|
|
23
73
|
this.clientStyling = '';
|
|
24
74
|
this.clientStylingUrlContent = '';
|
|
75
|
+
this.lowNumber = undefined;
|
|
76
|
+
this.highNumber = undefined;
|
|
77
|
+
this.minimumAllowed = undefined;
|
|
78
|
+
this.maxinumAllowed = undefined;
|
|
79
|
+
this.language = 'en';
|
|
25
80
|
this.tabContent = '';
|
|
26
81
|
this.limitStylingAppends = false;
|
|
27
82
|
}
|
|
28
|
-
connectedCallback() {
|
|
29
|
-
/**
|
|
30
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
31
|
-
*/
|
|
32
|
-
}
|
|
33
83
|
componentDidRender() {
|
|
34
84
|
// start custom styling area
|
|
35
85
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -42,19 +92,19 @@ const HelperTab = class {
|
|
|
42
92
|
// end custom styling area
|
|
43
93
|
}
|
|
44
94
|
render() {
|
|
45
|
-
this.tabContent = h("div", { key: '
|
|
95
|
+
this.tabContent = h("div", { key: '8c2b3f0f34ccda482fd187218840f9a622698b1f', class: "TabContent", ref: el => this.stylingContainer = el }, translate('numbersFrom', this.language), " ", this.lowNumber, " ", translate('to', this.language), " ", this.highNumber, " ", translate('selectableNumber', this.language), " ", this.maxinumAllowed, " ", translate('minimumSelection', this.language), " ", this.minimumAllowed, ". ", translate('winnings', this.language));
|
|
46
96
|
if (this.selectedIndex + 1 == 2) {
|
|
47
|
-
this.tabContent = h("div", { key: '
|
|
97
|
+
this.tabContent = h("div", { key: '2950bb6ccdd98761099d12239881ab29da4b2213', class: "TabContent", ref: el => this.stylingContainer = el }, h("ol", { key: '0da821f45e855155003809cb4c84eaa8d25f1f2a' }, h("li", { key: '15d4f064c62319c6611baa3693f4ef297309c786' }, translate('register', this.language)), h("li", { key: '4933c6970d4044aac746abb398f7c255b0484f6a' }, translate('butTickets', this.language)), h("li", { key: 'ffe7cef3e53bd281173384756476acd2e0e8f148' }, translate('reviewPurchase', this.language))));
|
|
48
98
|
}
|
|
49
99
|
else if (this.selectedIndex + 1 == 3) {
|
|
50
|
-
this.tabContent = h("div", { key: '
|
|
100
|
+
this.tabContent = h("div", { key: '296c83d55150c67522cea9cb1fc10f3542c72452', class: "TabContent", ref: el => this.stylingContainer = el }, h("ul", { key: '3fc772a007d0f73e0692021a2f700bab5807bb85' }, h("li", { key: 'fd6e459a0536261d98e42e37a272f229d152dfb7' }, translate('odds', this.language)), h("li", { key: 'ae7e5bceb217c9ceb1303145ae83f05fddd7dde6' }, translate('winGame', this.language)), h("li", { key: 'a094c7ea0db72683fb134f010d22f02b61f25a4b' }, translate('claimPrize', this.language))));
|
|
51
101
|
}
|
|
52
102
|
return (this.tabContent);
|
|
53
103
|
}
|
|
54
104
|
};
|
|
55
105
|
HelperTab.style = HelperTabStyle0;
|
|
56
106
|
|
|
57
|
-
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
|
|
107
|
+
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:var(--emw--button-border-radius, 4px);padding:8px 15px;margin:5px 0 10px;border:1px solid var(--emw--color-typography, #009993);background:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));color:var(--emw--button-text-color, #000);font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:var(--emw--color-gray-50, #F1F1F1)}.TabButton.Active{background:var(--emw--color-background, #009993);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}";
|
|
58
108
|
const HelperTabsStyle0 = helperTabsCss;
|
|
59
109
|
|
|
60
110
|
const HelperTabs = class {
|
|
@@ -81,6 +131,10 @@ const HelperTabs = class {
|
|
|
81
131
|
this.clientStyling = '';
|
|
82
132
|
this.clientStylingurl = '';
|
|
83
133
|
this.clientStylingUrlContent = '';
|
|
134
|
+
this.lowNumber = undefined;
|
|
135
|
+
this.highNumber = undefined;
|
|
136
|
+
this.minimumAllowed = undefined;
|
|
137
|
+
this.maxinumAllowed = undefined;
|
|
84
138
|
this.limitStylingAppends = false;
|
|
85
139
|
}
|
|
86
140
|
connectedCallback() {
|
|
@@ -97,7 +151,7 @@ const HelperTabs = class {
|
|
|
97
151
|
// end custom styling area
|
|
98
152
|
}
|
|
99
153
|
render() {
|
|
100
|
-
return (h("div", { key: '
|
|
154
|
+
return (h("div", { key: 'cb91a99a4d5eb99ce625c276894f8b682159c12c', ref: el => this.stylingContainer = el }, h("div", { key: 'c57ea36b3e25c605894b7ddf19e5e456f2fa252d', class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", { key: '41fa20ee2cc713af685f902fc496a702464398d1' }, h("helper-tab", { key: 'fded6e290107cbc06909aee2e2c97e1c1dd76db3', "low-number": this.lowNumber, "high-number": this.highNumber, "minimum-allowed": this.minimumAllowed, "maxinum-allowed": this.maxinumAllowed, selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
|
|
101
155
|
}
|
|
102
156
|
get host() { return getElement(this); }
|
|
103
157
|
};
|
package/dist/esm/helper-tabs.js
CHANGED
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["helper-tab_2",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["helper-tab_2",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
|
|
20
20
|
});
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["helper-tab_2",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["helper-tab_2",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as n}from"./p-8be01f9b.js";export{s as setNonce}from"./p-8be01f9b.js";import{g as l}from"./p-e1255160.js";(()=>{const n=import.meta.url,l={};return""!==n&&(l.resourcesUrl=new URL(".",n).href),e(l)})().then((async e=>(await l(),n([["p-80aa1adc",[[1,"helper-tabs",{disabled:[516],label:[513],selected:[516],cmsEndpoint:[513,"cms-endpoint"],selectedIndex:[1538,"selected-index"],tabs:[16],clientStyling:[513,"client-styling"],clientStylingurl:[513,"client-stylingurl"],clientStylingUrlContent:[513,"client-styling-url-content"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],limitStylingAppends:[32]}],[1,"helper-tab",{selectedIndex:[514,"selected-index"],cmsEndpoint:[513,"cms-endpoint"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],tabContent:[32],limitStylingAppends:[32]}]]]],e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,g as i}from"./p-8be01f9b.js";const s=["en"],o={en:{numbersFrom:"Each play includes one set of numbers from",to:"to",selectableNumber:"with a selectable number of",minimumSelection:"and a minimum selection of",winnings:"The winnings are automatically credited to your account.",register:"Register or Login",butTickets:'Buy tickets. Select "Buy Tickets" to pick your numbers. Want us to automatically generate random numbers for you? Choose “quick pick”.',reviewPurchase:"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!",odds:"What are my odds of winning?",winGame:"How can I find out if I’ve won a draw game?",claimPrize:"How do I claim my prize?"},ro:{numbersFrom:"Each play includes one set of numbers from",to:"to",selectableNumber:"with a selectable number of",minimumSelection:"and a minimum selection of",winnings:"The winnings are automatically credited to your account."},fr:{numbersFrom:"Each play includes one set of numbers from",to:"to",selectableNumber:"with a selectable number of",minimumSelection:"and a minimum selection of",winnings:"The winnings are automatically credited to your account."},ar:{numbersFrom:"Each play includes one set of numbers from",to:"to",selectableNumber:"with a selectable number of",minimumSelection:"and a minimum selection of",winnings:"The winnings are automatically credited to your account."},hr:{numbersFrom:"Each play includes one set of numbers from",to:"to",selectableNumber:"with a selectable number of",minimumSelection:"and a minimum selection of",winnings:"The winnings are automatically credited to your account."}},a=(e,t)=>{const i=t;return o[void 0!==i&&s.includes(i)?i:"en"][e]},n=class{constructor(t){e(this,t),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=document.createElement("style");setTimeout((()=>{e.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(e)}),1)},this.selectedIndex=0,this.cmsEndpoint=void 0,this.clientStyling="",this.clientStylingUrlContent="",this.lowNumber=void 0,this.highNumber=void 0,this.minimumAllowed=void 0,this.maxinumAllowed=void 0,this.language="en",this.tabContent="",this.limitStylingAppends=!1}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return this.tabContent=t("div",{key:"8c2b3f0f34ccda482fd187218840f9a622698b1f",class:"TabContent",ref:e=>this.stylingContainer=e},a("numbersFrom",this.language)," ",this.lowNumber," ",a("to",this.language)," ",this.highNumber," ",a("selectableNumber",this.language)," ",this.maxinumAllowed," ",a("minimumSelection",this.language)," ",this.minimumAllowed,". ",a("winnings",this.language)),this.selectedIndex+1==2?this.tabContent=t("div",{key:"2950bb6ccdd98761099d12239881ab29da4b2213",class:"TabContent",ref:e=>this.stylingContainer=e},t("ol",{key:"0da821f45e855155003809cb4c84eaa8d25f1f2a"},t("li",{key:"15d4f064c62319c6611baa3693f4ef297309c786"},a("register",this.language)),t("li",{key:"4933c6970d4044aac746abb398f7c255b0484f6a"},a("butTickets",this.language)),t("li",{key:"ffe7cef3e53bd281173384756476acd2e0e8f148"},a("reviewPurchase",this.language)))):this.selectedIndex+1==3&&(this.tabContent=t("div",{key:"296c83d55150c67522cea9cb1fc10f3542c72452",class:"TabContent",ref:e=>this.stylingContainer=e},t("ul",{key:"3fc772a007d0f73e0692021a2f700bab5807bb85"},t("li",{key:"fd6e459a0536261d98e42e37a272f229d152dfb7"},a("odds",this.language)),t("li",{key:"ae7e5bceb217c9ceb1303145ae83f05fddd7dde6"},a("winGame",this.language)),t("li",{key:"a094c7ea0db72683fb134f010d22f02b61f25a4b"},a("claimPrize",this.language))))),this.tabContent}};n.style=":host{display:block}.TabContent{font-size:14px;color:var(--emw--button-text-color, #000);font-weight:normal}";const r=class{constructor(t){e(this,t),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=document.createElement("style");setTimeout((()=>{e.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(e)}),1)},this.disabled=!1,this.label=void 0,this.selected=!1,this.cmsEndpoint=void 0,this.selectedIndex=0,this.tabs=[{label:"How to Play"},{label:"About"},{label:"FAQs"}],this.clientStyling="",this.clientStylingurl="",this.clientStylingUrlContent="",this.lowNumber=void 0,this.highNumber=void 0,this.minimumAllowed=void 0,this.maxinumAllowed=void 0,this.limitStylingAppends=!1}connectedCallback(){}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return t("div",{key:"cb91a99a4d5eb99ce625c276894f8b682159c12c",ref:e=>this.stylingContainer=e},t("div",{key:"c57ea36b3e25c605894b7ddf19e5e456f2fa252d",class:"Tabs"},this.tabs.map(((e,i)=>t("button",{class:"TabButton"+(this.selectedIndex==i?" Active":""),onClick:()=>this.selectedIndex=i},e.label)))),t("div",{key:"41fa20ee2cc713af685f902fc496a702464398d1"},t("helper-tab",{key:"fded6e290107cbc06909aee2e2c97e1c1dd76db3","low-number":this.lowNumber,"high-number":this.highNumber,"minimum-allowed":this.minimumAllowed,"maxinum-allowed":this.maxinumAllowed,selectedIndex:this.selectedIndex,"client-styling":this.clientStyling,"client-stylingurl":this.clientStylingurl,"client-styling-url-content":this.clientStylingUrlContent})))}get host(){return i(this)}};r.style='@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:var(--emw--button-border-radius, 4px);padding:8px 15px;margin:5px 0 10px;border:1px solid var(--emw--color-typography, #009993);background:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));color:var(--emw--button-text-color, #000);font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:var(--emw--color-gray-50, #F1F1F1)}.TabButton.Active{background:var(--emw--color-background, #009993);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}';export{n as helper_tab,r as helper_tabs}
|
|
@@ -15,10 +15,29 @@ export declare class HelperTab {
|
|
|
15
15
|
* Client custom styling via url content
|
|
16
16
|
*/
|
|
17
17
|
clientStylingUrlContent: string;
|
|
18
|
+
/**
|
|
19
|
+
* Minimum number displayed in the board
|
|
20
|
+
*/
|
|
21
|
+
lowNumber: number;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum number displayed in the board
|
|
24
|
+
*/
|
|
25
|
+
highNumber: number;
|
|
26
|
+
/**
|
|
27
|
+
* Minimum number of numbers that can be selected
|
|
28
|
+
*/
|
|
29
|
+
minimumAllowed: number;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum number of numbers that can be selected
|
|
32
|
+
*/
|
|
33
|
+
maxinumAllowed: number;
|
|
34
|
+
/**
|
|
35
|
+
* Language of the widget
|
|
36
|
+
*/
|
|
37
|
+
language: string;
|
|
18
38
|
tabContent: string;
|
|
19
39
|
private limitStylingAppends;
|
|
20
40
|
private stylingContainer;
|
|
21
|
-
connectedCallback(): void;
|
|
22
41
|
componentDidRender(): void;
|
|
23
42
|
setClientStyling: () => void;
|
|
24
43
|
setClientStylingURL: () => void;
|
|
@@ -35,6 +35,22 @@ export declare class HelperTabs {
|
|
|
35
35
|
* Client custom styling via url content
|
|
36
36
|
*/
|
|
37
37
|
clientStylingUrlContent: string;
|
|
38
|
+
/**
|
|
39
|
+
* Minimum number displayed in the board
|
|
40
|
+
*/
|
|
41
|
+
lowNumber: number;
|
|
42
|
+
/**
|
|
43
|
+
* Maximum number displayed in the board
|
|
44
|
+
*/
|
|
45
|
+
highNumber: number;
|
|
46
|
+
/**
|
|
47
|
+
* Minimum number of numbers that can be selected
|
|
48
|
+
*/
|
|
49
|
+
minimumAllowed: number;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum number of numbers that can be selected
|
|
52
|
+
*/
|
|
53
|
+
maxinumAllowed: number;
|
|
38
54
|
private limitStylingAppends;
|
|
39
55
|
host: HTMLElement;
|
|
40
56
|
private stylingContainer;
|
|
@@ -19,6 +19,26 @@ export namespace Components {
|
|
|
19
19
|
* Endpoing for CMS
|
|
20
20
|
*/
|
|
21
21
|
"cmsEndpoint": string;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum number displayed in the board
|
|
24
|
+
*/
|
|
25
|
+
"highNumber": number;
|
|
26
|
+
/**
|
|
27
|
+
* Language of the widget
|
|
28
|
+
*/
|
|
29
|
+
"language": string;
|
|
30
|
+
/**
|
|
31
|
+
* Minimum number displayed in the board
|
|
32
|
+
*/
|
|
33
|
+
"lowNumber": number;
|
|
34
|
+
/**
|
|
35
|
+
* Maximum number of numbers that can be selected
|
|
36
|
+
*/
|
|
37
|
+
"maxinumAllowed": number;
|
|
38
|
+
/**
|
|
39
|
+
* Minimum number of numbers that can be selected
|
|
40
|
+
*/
|
|
41
|
+
"minimumAllowed": number;
|
|
22
42
|
/**
|
|
23
43
|
* Selected index
|
|
24
44
|
*/
|
|
@@ -45,10 +65,26 @@ export namespace Components {
|
|
|
45
65
|
* Tell me if it is disabled
|
|
46
66
|
*/
|
|
47
67
|
"disabled": boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Maximum number displayed in the board
|
|
70
|
+
*/
|
|
71
|
+
"highNumber": number;
|
|
48
72
|
/**
|
|
49
73
|
* Gimme names or you die
|
|
50
74
|
*/
|
|
51
75
|
"label": string;
|
|
76
|
+
/**
|
|
77
|
+
* Minimum number displayed in the board
|
|
78
|
+
*/
|
|
79
|
+
"lowNumber": number;
|
|
80
|
+
/**
|
|
81
|
+
* Maximum number of numbers that can be selected
|
|
82
|
+
*/
|
|
83
|
+
"maxinumAllowed": number;
|
|
84
|
+
/**
|
|
85
|
+
* Minimum number of numbers that can be selected
|
|
86
|
+
*/
|
|
87
|
+
"minimumAllowed": number;
|
|
52
88
|
/**
|
|
53
89
|
* Tell me what tab is selected
|
|
54
90
|
*/
|
|
@@ -95,6 +131,26 @@ declare namespace LocalJSX {
|
|
|
95
131
|
* Endpoing for CMS
|
|
96
132
|
*/
|
|
97
133
|
"cmsEndpoint"?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Maximum number displayed in the board
|
|
136
|
+
*/
|
|
137
|
+
"highNumber"?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Language of the widget
|
|
140
|
+
*/
|
|
141
|
+
"language"?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Minimum number displayed in the board
|
|
144
|
+
*/
|
|
145
|
+
"lowNumber"?: number;
|
|
146
|
+
/**
|
|
147
|
+
* Maximum number of numbers that can be selected
|
|
148
|
+
*/
|
|
149
|
+
"maxinumAllowed"?: number;
|
|
150
|
+
/**
|
|
151
|
+
* Minimum number of numbers that can be selected
|
|
152
|
+
*/
|
|
153
|
+
"minimumAllowed"?: number;
|
|
98
154
|
/**
|
|
99
155
|
* Selected index
|
|
100
156
|
*/
|
|
@@ -121,10 +177,26 @@ declare namespace LocalJSX {
|
|
|
121
177
|
* Tell me if it is disabled
|
|
122
178
|
*/
|
|
123
179
|
"disabled"?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Maximum number displayed in the board
|
|
182
|
+
*/
|
|
183
|
+
"highNumber"?: number;
|
|
124
184
|
/**
|
|
125
185
|
* Gimme names or you die
|
|
126
186
|
*/
|
|
127
187
|
"label"?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Minimum number displayed in the board
|
|
190
|
+
*/
|
|
191
|
+
"lowNumber"?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Maximum number of numbers that can be selected
|
|
194
|
+
*/
|
|
195
|
+
"maxinumAllowed"?: number;
|
|
196
|
+
/**
|
|
197
|
+
* Minimum number of numbers that can be selected
|
|
198
|
+
*/
|
|
199
|
+
"minimumAllowed"?: number;
|
|
128
200
|
/**
|
|
129
201
|
* Tell me what tab is selected
|
|
130
202
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const translate: (key: string, customLang?: any) => string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,g as s}from"./p-8be01f9b.js";const i=class{constructor(e){t(this,e),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(t)}),1)},this.selectedIndex=0,this.cmsEndpoint=void 0,this.clientStyling="",this.clientStylingUrlContent="",this.tabContent="",this.limitStylingAppends=!1}connectedCallback(){}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return this.tabContent=e("div",{key:"d69c61827b4fb6d934c72b0b2d37d72fca307575",class:"TabContent",ref:t=>this.stylingContainer=t},"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."),this.selectedIndex+1==2?this.tabContent=e("div",{key:"ab912cbb3bc3e88ecf8fe5f8f0e7eb16460100bd",class:"TabContent",ref:t=>this.stylingContainer=t},e("ol",{key:"17bed41dffe7d5578452ee13a47b442d10366ce2"},e("li",{key:"cf0da42f07cf92f5cea9c9f504c8836e528a5708"},"Register or Login"),e("li",{key:"4a0339df365c6b1a37b8a74c5022a56197e870db"},"Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose “I feel lucky”."),e("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!"))):this.selectedIndex+1==3&&(this.tabContent=e("div",{key:"ceac54698e0e5c55a049600f02e8f413a76a1c33",class:"TabContent",ref:t=>this.stylingContainer=t},e("ul",{key:"426d89c86a1d44f6d515bc1a7902e43317127939"},e("li",{key:"457a225564399001dcab48097578174a27231ca7"},"What are my odds of winning?"),e("li",{key:"d35220f2aca215eff391cab54d719f18ef906c77"},"How can I find out if I’ve won a draw game?"),e("li",{key:"fcd560ee4b6740c319cf0f98a0b98da8fd9e14a4"},"How do I claim my prize?")))),this.tabContent}};i.style=":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";const a=class{constructor(e){t(this,e),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(t)}),1)},this.disabled=!1,this.label=void 0,this.selected=!1,this.cmsEndpoint=void 0,this.selectedIndex=0,this.tabs=[{label:"How to Play"},{label:"About"},{label:"FAQs"}],this.clientStyling="",this.clientStylingurl="",this.clientStylingUrlContent="",this.limitStylingAppends=!1}connectedCallback(){}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return e("div",{key:"841b2a4b84f2ecdaf692b9cab2eac4b3413186e7",ref:t=>this.stylingContainer=t},e("div",{key:"4c5d57e669f9f45d204bff8a85ca89a0574c4627",class:"Tabs"},this.tabs.map(((t,s)=>e("button",{class:"TabButton"+(this.selectedIndex==s?" Active":""),onClick:()=>this.selectedIndex=s},t.label)))),e("div",{key:"7ba983dec3b0355f390b19191d0d823914f09037"},e("helper-tab",{key:"e6c7739d50948582d8d14d530828508b4cb90d6e",selectedIndex:this.selectedIndex,"client-styling":this.clientStyling,"client-stylingurl":this.clientStylingurl,"client-styling-url-content":this.clientStylingUrlContent})))}get host(){return s(this)}};a.style='@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}';export{i as helper_tab,a as helper_tabs}
|