@everymatrix/lottery-game-details 0.1.2 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/helper-accordion.cjs.entry.js +92 -0
- package/dist/cjs/helper-tab.cjs.entry.js +36 -0
- package/dist/cjs/helper-tabs.cjs.entry.js +38 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-game-details.cjs.entry.js +19 -0
- package/dist/cjs/lottery-game-details.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/components/helper-accordion2.js +8 -2
- package/dist/components/helper-tab2.js +13 -8
- package/dist/components/helper-tabs2.js +2 -1
- package/dist/components/lottery-game-details.js +1 -0
- package/dist/esm/helper-accordion.entry.js +88 -0
- package/dist/esm/helper-tab.entry.js +32 -0
- package/dist/esm/helper-tabs.entry.js +34 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/lottery-game-details.entry.js +15 -0
- package/dist/esm/lottery-game-details.js +1 -1
- package/dist/lottery-game-details/lottery-game-details.esm.js +1 -1
- package/dist/lottery-game-details/p-0343b1ff.entry.js +1 -0
- package/dist/lottery-game-details/p-25d74574.entry.js +1 -0
- package/dist/lottery-game-details/p-2c662359.entry.js +1 -0
- package/dist/lottery-game-details/p-bd2214ba.entry.js +1 -0
- package/dist/stencil.config.js +2 -0
- package/package.json +2 -2
- package/dist/cjs/helper-accordion_4.cjs.entry.js +0 -160
- package/dist/esm/helper-accordion_4.entry.js +0 -153
- package/dist/lottery-game-details/p-048017d4.entry.js +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-9d95408f.js');
|
|
6
|
+
|
|
7
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
8
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
9
|
+
const TRANSLATIONS = {
|
|
10
|
+
en: {
|
|
11
|
+
deleteTicket: 'Delete ticket'
|
|
12
|
+
},
|
|
13
|
+
ro: {
|
|
14
|
+
deleteTicket: 'Sterge biletul'
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
const translate = (key, customLang) => {
|
|
18
|
+
const lang = customLang;
|
|
19
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
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:4px 4px 0 0;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff}.Header .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.HeaderTicketHistory{border-radius:4px;background:#F1F1F1;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:5px}.HeaderTicketHistory:hover{background:#00ABA4}.HeaderTicketHistory .Title,.HeaderTicketHistory .Subtitle,.HeaderTicketHistory .Description{margin:0;font-size:14px;color:#000}.HeaderTicketHistory .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.Content{border-radius:0 0 4px 4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{cursor:pointer;display:inline-block;border-radius:4px;margin:20px 0 10px;text-transform:uppercase;font-size:12px;text-align:center;padding:8px 20px;min-width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}";
|
|
23
|
+
|
|
24
|
+
const Accordion = class {
|
|
25
|
+
constructor(hostRef) {
|
|
26
|
+
index.registerInstance(this, hostRef);
|
|
27
|
+
this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
|
|
28
|
+
/**
|
|
29
|
+
* Flag for ticket history
|
|
30
|
+
*/
|
|
31
|
+
this.ticketHistoryFlag = false;
|
|
32
|
+
/**
|
|
33
|
+
* Title (top header)
|
|
34
|
+
*/
|
|
35
|
+
this.headerTitle = '';
|
|
36
|
+
/**
|
|
37
|
+
* SubTitle (top header)
|
|
38
|
+
*/
|
|
39
|
+
this.headerSubtitle = '';
|
|
40
|
+
/**
|
|
41
|
+
* Description
|
|
42
|
+
*/
|
|
43
|
+
this.description = '';
|
|
44
|
+
/**
|
|
45
|
+
* Enables footer content
|
|
46
|
+
*/
|
|
47
|
+
this.footer = false;
|
|
48
|
+
/**
|
|
49
|
+
* Enables footer button for tab deletion
|
|
50
|
+
*/
|
|
51
|
+
this.deleteTab = false;
|
|
52
|
+
/**
|
|
53
|
+
* Activates postMessages as events for actions from the widget
|
|
54
|
+
*/
|
|
55
|
+
this.postMessage = false;
|
|
56
|
+
/**
|
|
57
|
+
* Name of the event emitter by the action button
|
|
58
|
+
*/
|
|
59
|
+
this.eventName = 'helperAccordionAction';
|
|
60
|
+
/**
|
|
61
|
+
* Collapsed
|
|
62
|
+
*/
|
|
63
|
+
this.collapsed = true;
|
|
64
|
+
/**
|
|
65
|
+
* Language
|
|
66
|
+
*/
|
|
67
|
+
this.language = 'en';
|
|
68
|
+
}
|
|
69
|
+
// @TODO fix the `any` type :)
|
|
70
|
+
connectedCallback() {
|
|
71
|
+
this.showContent = !this.collapsed;
|
|
72
|
+
}
|
|
73
|
+
toggleContent() {
|
|
74
|
+
this.showContent = !this.showContent;
|
|
75
|
+
}
|
|
76
|
+
deleteAction() {
|
|
77
|
+
if (this.postMessage) {
|
|
78
|
+
// @TODO maybe change the name type, this one sucks
|
|
79
|
+
window.postMessage({ type: this.eventName }, window.location.href);
|
|
80
|
+
}
|
|
81
|
+
this.accordionEvent.emit();
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
return (index.h("div", { class: "Wrapper" }, index.h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header' }, index.h("p", { class: "Title" }, this.headerTitle), index.h("p", { class: "Subtitle" }, this.headerSubtitle), index.h("p", { class: "Subtitle" }, this.description), index.h("span", { class: "Expand", onClick: () => this.toggleContent() }, this.showContent ? '<' : '>')), this.showContent &&
|
|
85
|
+
index.h("div", null, index.h("div", { class: "Content" }, index.h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
86
|
+
index.h("div", null, this.deleteTab &&
|
|
87
|
+
index.h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
Accordion.style = helperAccordionCss;
|
|
91
|
+
|
|
92
|
+
exports.helper_accordion = Accordion;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-9d95408f.js');
|
|
6
|
+
|
|
7
|
+
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
|
|
8
|
+
|
|
9
|
+
const HelperTab = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
/**
|
|
13
|
+
* Selected index
|
|
14
|
+
*/
|
|
15
|
+
this.selectedIndex = 0;
|
|
16
|
+
this.tabContent = '';
|
|
17
|
+
}
|
|
18
|
+
connectedCallback() {
|
|
19
|
+
/**
|
|
20
|
+
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
21
|
+
*/
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
this.tabContent = index.h("div", { class: "TabContent" }, "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.");
|
|
25
|
+
if (this.selectedIndex + 1 == 2) {
|
|
26
|
+
this.tabContent = index.h("div", { class: "TabContent" }, index.h("ol", null, index.h("li", null, "Register or Login"), index.h("li", null, "Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose \u201CI feel lucky\u201D."), index.h("li", null, "Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!")));
|
|
27
|
+
}
|
|
28
|
+
else if (this.selectedIndex + 1 == 3) {
|
|
29
|
+
this.tabContent = index.h("div", { class: "TabContent" }, index.h("ul", null, index.h("li", null, "What are my odds of winning?"), index.h("li", null, "How can I find out if I\u2019ve won a draw game?"), index.h("li", null, "How do I claim my prize?")));
|
|
30
|
+
}
|
|
31
|
+
return (this.tabContent);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
HelperTab.style = helperTabCss;
|
|
35
|
+
|
|
36
|
+
exports.helper_tab = HelperTab;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-9d95408f.js');
|
|
6
|
+
|
|
7
|
+
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}";
|
|
8
|
+
|
|
9
|
+
const HelperTabs = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
/**
|
|
13
|
+
* Tell me if it is disabled
|
|
14
|
+
*/
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
/**
|
|
17
|
+
* Tell me what tab is selected
|
|
18
|
+
*/
|
|
19
|
+
this.selected = false;
|
|
20
|
+
/**
|
|
21
|
+
* Default selected index
|
|
22
|
+
*/
|
|
23
|
+
this.selectedIndex = 0;
|
|
24
|
+
/**
|
|
25
|
+
* Tabs details
|
|
26
|
+
*/
|
|
27
|
+
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
28
|
+
}
|
|
29
|
+
connectedCallback() {
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return (index.h("div", null, index.h("div", { class: "Tabs" }, this.tabs.map((tab, index$1) => index.h("button", { class: 'TabButton' + (this.selectedIndex == index$1 ? ' Active' : ''), onClick: () => this.selectedIndex = index$1 }, tab.label))), index.h("div", null, index.h("helper-tab", { selectedIndex: this.selectedIndex }))));
|
|
33
|
+
}
|
|
34
|
+
get host() { return index.getElement(this); }
|
|
35
|
+
};
|
|
36
|
+
HelperTabs.style = helperTabsCss;
|
|
37
|
+
|
|
38
|
+
exports.helper_tabs = HelperTabs;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["helper-
|
|
17
|
+
return index.bootstrapLazy([["helper-tab.cjs",[[1,"helper-tab",{"selectedIndex":[2,"selected-index"],"cmsEndpoint":[1,"cms-endpoint"],"tabContent":[32]}]]],["helper-tabs.cjs",[[1,"helper-tabs",{"disabled":[4],"label":[1],"selected":[4],"cmsEndpoint":[1,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16]}]]],["helper-accordion.cjs",[[1,"helper-accordion",{"ticketHistoryFlag":[4,"ticket-history-flag"],"headerTitle":[1,"header-title"],"headerSubtitle":[1,"header-subtitle"],"description":[1],"footer":[4],"deleteTab":[4,"delete-tab"],"postMessage":[4,"post-message"],"eventName":[1,"event-name"],"collapsed":[4],"language":[1],"showContent":[32]}]]],["lottery-game-details.cjs",[[1,"lottery-game-details"]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-9d95408f.js');
|
|
6
|
+
|
|
7
|
+
const lotteryGameDetailsCss = ":host{display:block}";
|
|
8
|
+
|
|
9
|
+
const LotteryGameDetails = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h("div", null, index.h("helper-accordion", { "header-title": "Game Details", collapsed: false }, index.h("div", { slot: "accordionContent" }, index.h("helper-tabs", null)))));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
LotteryGameDetails.style = lotteryGameDetailsCss;
|
|
18
|
+
|
|
19
|
+
exports.lottery_game_details = LotteryGameDetails;
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["helper-
|
|
18
|
+
return index.bootstrapLazy([["helper-tab.cjs",[[1,"helper-tab",{"selectedIndex":[2,"selected-index"],"cmsEndpoint":[1,"cms-endpoint"],"tabContent":[32]}]]],["helper-tabs.cjs",[[1,"helper-tabs",{"disabled":[4],"label":[1],"selected":[4],"cmsEndpoint":[1,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16]}]]],["helper-accordion.cjs",[[1,"helper-accordion",{"ticketHistoryFlag":[4,"ticket-history-flag"],"headerTitle":[1,"header-title"],"headerSubtitle":[1,"header-subtitle"],"description":[1],"footer":[4],"deleteTab":[4,"delete-tab"],"postMessage":[4,"post-message"],"eventName":[1,"event-name"],"collapsed":[4],"language":[1],"showContent":[32]}]]],["lottery-game-details.cjs",[[1,"lottery-game-details"]]]], options);
|
|
19
19
|
});
|
|
@@ -15,7 +15,7 @@ const translate = (key, customLang) => {
|
|
|
15
15
|
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
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:4px;
|
|
18
|
+
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:4px 4px 0 0;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff}.Header .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.HeaderTicketHistory{border-radius:4px;background:#F1F1F1;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:5px}.HeaderTicketHistory:hover{background:#00ABA4}.HeaderTicketHistory .Title,.HeaderTicketHistory .Subtitle,.HeaderTicketHistory .Description{margin:0;font-size:14px;color:#000}.HeaderTicketHistory .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.Content{border-radius:0 0 4px 4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{cursor:pointer;display:inline-block;border-radius:4px;margin:20px 0 10px;text-transform:uppercase;font-size:12px;text-align:center;padding:8px 20px;min-width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}";
|
|
19
19
|
|
|
20
20
|
const Accordion = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
21
21
|
constructor() {
|
|
@@ -23,6 +23,10 @@ const Accordion = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
23
23
|
this.__registerHost();
|
|
24
24
|
this.__attachShadow();
|
|
25
25
|
this.accordionEvent = createEvent(this, "helperAccordionAction", 7);
|
|
26
|
+
/**
|
|
27
|
+
* Flag for ticket history
|
|
28
|
+
*/
|
|
29
|
+
this.ticketHistoryFlag = false;
|
|
26
30
|
/**
|
|
27
31
|
* Title (top header)
|
|
28
32
|
*/
|
|
@@ -75,13 +79,14 @@ const Accordion = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
75
79
|
this.accordionEvent.emit();
|
|
76
80
|
}
|
|
77
81
|
render() {
|
|
78
|
-
return (h("div", { class: "Wrapper" }, h("div", { class:
|
|
82
|
+
return (h("div", { class: "Wrapper" }, h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header' }, h("p", { class: "Title" }, this.headerTitle), h("p", { class: "Subtitle" }, this.headerSubtitle), h("p", { class: "Subtitle" }, this.description), h("span", { class: "Expand", onClick: () => this.toggleContent() }, this.showContent ? '<' : '>')), this.showContent &&
|
|
79
83
|
h("div", null, h("div", { class: "Content" }, h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
80
84
|
h("div", null, this.deleteTab &&
|
|
81
85
|
h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
82
86
|
}
|
|
83
87
|
static get style() { return helperAccordionCss; }
|
|
84
88
|
}, [1, "helper-accordion", {
|
|
89
|
+
"ticketHistoryFlag": [4, "ticket-history-flag"],
|
|
85
90
|
"headerTitle": [1, "header-title"],
|
|
86
91
|
"headerSubtitle": [1, "header-subtitle"],
|
|
87
92
|
"description": [1],
|
|
@@ -106,5 +111,6 @@ function defineCustomElement() {
|
|
|
106
111
|
break;
|
|
107
112
|
} });
|
|
108
113
|
}
|
|
114
|
+
defineCustomElement();
|
|
109
115
|
|
|
110
116
|
export { Accordion as A, defineCustomElement as d };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const helperTabCss = ":host{display:block}";
|
|
3
|
+
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
|
|
4
4
|
|
|
5
5
|
const HelperTab = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -11,24 +11,28 @@ const HelperTab = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
11
11
|
* Selected index
|
|
12
12
|
*/
|
|
13
13
|
this.selectedIndex = 0;
|
|
14
|
+
this.tabContent = '';
|
|
14
15
|
}
|
|
15
|
-
/**
|
|
16
|
-
* Endpoing for CMS
|
|
17
|
-
*/
|
|
18
16
|
connectedCallback() {
|
|
19
17
|
/**
|
|
20
18
|
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
21
19
|
*/
|
|
22
20
|
}
|
|
23
21
|
render() {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
this.tabContent = h("div", { class: "TabContent" }, "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.");
|
|
23
|
+
if (this.selectedIndex + 1 == 2) {
|
|
24
|
+
this.tabContent = h("div", { class: "TabContent" }, h("ol", null, h("li", null, "Register or Login"), h("li", null, "Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose \u201CI feel lucky\u201D."), h("li", null, "Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!")));
|
|
25
|
+
}
|
|
26
|
+
else if (this.selectedIndex + 1 == 3) {
|
|
27
|
+
this.tabContent = h("div", { class: "TabContent" }, h("ul", null, h("li", null, "What are my odds of winning?"), h("li", null, "How can I find out if I\u2019ve won a draw game?"), h("li", null, "How do I claim my prize?")));
|
|
28
|
+
}
|
|
29
|
+
return (this.tabContent);
|
|
27
30
|
}
|
|
28
31
|
static get style() { return helperTabCss; }
|
|
29
32
|
}, [1, "helper-tab", {
|
|
30
33
|
"selectedIndex": [2, "selected-index"],
|
|
31
|
-
"cmsEndpoint": [1, "cms-endpoint"]
|
|
34
|
+
"cmsEndpoint": [1, "cms-endpoint"],
|
|
35
|
+
"tabContent": [32]
|
|
32
36
|
}]);
|
|
33
37
|
function defineCustomElement() {
|
|
34
38
|
if (typeof customElements === "undefined") {
|
|
@@ -43,5 +47,6 @@ function defineCustomElement() {
|
|
|
43
47
|
break;
|
|
44
48
|
} });
|
|
45
49
|
}
|
|
50
|
+
defineCustomElement();
|
|
46
51
|
|
|
47
52
|
export { HelperTab as H, defineCustomElement as d };
|
|
@@ -23,7 +23,7 @@ const HelperTabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
23
23
|
/**
|
|
24
24
|
* Tabs details
|
|
25
25
|
*/
|
|
26
|
-
this.tabs = [{ label: '
|
|
26
|
+
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
27
27
|
}
|
|
28
28
|
connectedCallback() {
|
|
29
29
|
}
|
|
@@ -58,5 +58,6 @@ function defineCustomElement() {
|
|
|
58
58
|
break;
|
|
59
59
|
} });
|
|
60
60
|
}
|
|
61
|
+
defineCustomElement();
|
|
61
62
|
|
|
62
63
|
export { HelperTabs as H, defineCustomElement as d };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-515a97dd.js';
|
|
2
|
+
|
|
3
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
5
|
+
const TRANSLATIONS = {
|
|
6
|
+
en: {
|
|
7
|
+
deleteTicket: 'Delete ticket'
|
|
8
|
+
},
|
|
9
|
+
ro: {
|
|
10
|
+
deleteTicket: 'Sterge biletul'
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
const translate = (key, customLang) => {
|
|
14
|
+
const lang = customLang;
|
|
15
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
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:4px 4px 0 0;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff}.Header .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.HeaderTicketHistory{border-radius:4px;background:#F1F1F1;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:5px}.HeaderTicketHistory:hover{background:#00ABA4}.HeaderTicketHistory .Title,.HeaderTicketHistory .Subtitle,.HeaderTicketHistory .Description{margin:0;font-size:14px;color:#000}.HeaderTicketHistory .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.Content{border-radius:0 0 4px 4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{cursor:pointer;display:inline-block;border-radius:4px;margin:20px 0 10px;text-transform:uppercase;font-size:12px;text-align:center;padding:8px 20px;min-width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}";
|
|
19
|
+
|
|
20
|
+
const Accordion = class {
|
|
21
|
+
constructor(hostRef) {
|
|
22
|
+
registerInstance(this, hostRef);
|
|
23
|
+
this.accordionEvent = createEvent(this, "helperAccordionAction", 7);
|
|
24
|
+
/**
|
|
25
|
+
* Flag for ticket history
|
|
26
|
+
*/
|
|
27
|
+
this.ticketHistoryFlag = false;
|
|
28
|
+
/**
|
|
29
|
+
* Title (top header)
|
|
30
|
+
*/
|
|
31
|
+
this.headerTitle = '';
|
|
32
|
+
/**
|
|
33
|
+
* SubTitle (top header)
|
|
34
|
+
*/
|
|
35
|
+
this.headerSubtitle = '';
|
|
36
|
+
/**
|
|
37
|
+
* Description
|
|
38
|
+
*/
|
|
39
|
+
this.description = '';
|
|
40
|
+
/**
|
|
41
|
+
* Enables footer content
|
|
42
|
+
*/
|
|
43
|
+
this.footer = false;
|
|
44
|
+
/**
|
|
45
|
+
* Enables footer button for tab deletion
|
|
46
|
+
*/
|
|
47
|
+
this.deleteTab = false;
|
|
48
|
+
/**
|
|
49
|
+
* Activates postMessages as events for actions from the widget
|
|
50
|
+
*/
|
|
51
|
+
this.postMessage = false;
|
|
52
|
+
/**
|
|
53
|
+
* Name of the event emitter by the action button
|
|
54
|
+
*/
|
|
55
|
+
this.eventName = 'helperAccordionAction';
|
|
56
|
+
/**
|
|
57
|
+
* Collapsed
|
|
58
|
+
*/
|
|
59
|
+
this.collapsed = true;
|
|
60
|
+
/**
|
|
61
|
+
* Language
|
|
62
|
+
*/
|
|
63
|
+
this.language = 'en';
|
|
64
|
+
}
|
|
65
|
+
// @TODO fix the `any` type :)
|
|
66
|
+
connectedCallback() {
|
|
67
|
+
this.showContent = !this.collapsed;
|
|
68
|
+
}
|
|
69
|
+
toggleContent() {
|
|
70
|
+
this.showContent = !this.showContent;
|
|
71
|
+
}
|
|
72
|
+
deleteAction() {
|
|
73
|
+
if (this.postMessage) {
|
|
74
|
+
// @TODO maybe change the name type, this one sucks
|
|
75
|
+
window.postMessage({ type: this.eventName }, window.location.href);
|
|
76
|
+
}
|
|
77
|
+
this.accordionEvent.emit();
|
|
78
|
+
}
|
|
79
|
+
render() {
|
|
80
|
+
return (h("div", { class: "Wrapper" }, h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header' }, h("p", { class: "Title" }, this.headerTitle), h("p", { class: "Subtitle" }, this.headerSubtitle), h("p", { class: "Subtitle" }, this.description), h("span", { class: "Expand", onClick: () => this.toggleContent() }, this.showContent ? '<' : '>')), this.showContent &&
|
|
81
|
+
h("div", null, h("div", { class: "Content" }, h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
82
|
+
h("div", null, this.deleteTab &&
|
|
83
|
+
h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
Accordion.style = helperAccordionCss;
|
|
87
|
+
|
|
88
|
+
export { Accordion as helper_accordion };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-515a97dd.js';
|
|
2
|
+
|
|
3
|
+
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
|
|
4
|
+
|
|
5
|
+
const HelperTab = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* Selected index
|
|
10
|
+
*/
|
|
11
|
+
this.selectedIndex = 0;
|
|
12
|
+
this.tabContent = '';
|
|
13
|
+
}
|
|
14
|
+
connectedCallback() {
|
|
15
|
+
/**
|
|
16
|
+
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
17
|
+
*/
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
this.tabContent = h("div", { class: "TabContent" }, "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.");
|
|
21
|
+
if (this.selectedIndex + 1 == 2) {
|
|
22
|
+
this.tabContent = h("div", { class: "TabContent" }, h("ol", null, h("li", null, "Register or Login"), h("li", null, "Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose \u201CI feel lucky\u201D."), h("li", null, "Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!")));
|
|
23
|
+
}
|
|
24
|
+
else if (this.selectedIndex + 1 == 3) {
|
|
25
|
+
this.tabContent = h("div", { class: "TabContent" }, h("ul", null, h("li", null, "What are my odds of winning?"), h("li", null, "How can I find out if I\u2019ve won a draw game?"), h("li", null, "How do I claim my prize?")));
|
|
26
|
+
}
|
|
27
|
+
return (this.tabContent);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
HelperTab.style = helperTabCss;
|
|
31
|
+
|
|
32
|
+
export { HelperTab as helper_tab };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-515a97dd.js';
|
|
2
|
+
|
|
3
|
+
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}";
|
|
4
|
+
|
|
5
|
+
const HelperTabs = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* Tell me if it is disabled
|
|
10
|
+
*/
|
|
11
|
+
this.disabled = false;
|
|
12
|
+
/**
|
|
13
|
+
* Tell me what tab is selected
|
|
14
|
+
*/
|
|
15
|
+
this.selected = false;
|
|
16
|
+
/**
|
|
17
|
+
* Default selected index
|
|
18
|
+
*/
|
|
19
|
+
this.selectedIndex = 0;
|
|
20
|
+
/**
|
|
21
|
+
* Tabs details
|
|
22
|
+
*/
|
|
23
|
+
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
24
|
+
}
|
|
25
|
+
connectedCallback() {
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return (h("div", null, h("div", { class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", null, h("helper-tab", { selectedIndex: this.selectedIndex }))));
|
|
29
|
+
}
|
|
30
|
+
get host() { return getElement(this); }
|
|
31
|
+
};
|
|
32
|
+
HelperTabs.style = helperTabsCss;
|
|
33
|
+
|
|
34
|
+
export { HelperTabs as helper_tabs };
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["helper-
|
|
13
|
+
return bootstrapLazy([["helper-tab",[[1,"helper-tab",{"selectedIndex":[2,"selected-index"],"cmsEndpoint":[1,"cms-endpoint"],"tabContent":[32]}]]],["helper-tabs",[[1,"helper-tabs",{"disabled":[4],"label":[1],"selected":[4],"cmsEndpoint":[1,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16]}]]],["helper-accordion",[[1,"helper-accordion",{"ticketHistoryFlag":[4,"ticket-history-flag"],"headerTitle":[1,"header-title"],"headerSubtitle":[1,"header-subtitle"],"description":[1],"footer":[4],"deleteTab":[4,"delete-tab"],"postMessage":[4,"post-message"],"eventName":[1,"event-name"],"collapsed":[4],"language":[1],"showContent":[32]}]]],["lottery-game-details",[[1,"lottery-game-details"]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-515a97dd.js';
|
|
2
|
+
|
|
3
|
+
const lotteryGameDetailsCss = ":host{display:block}";
|
|
4
|
+
|
|
5
|
+
const LotteryGameDetails = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h("div", null, h("helper-accordion", { "header-title": "Game Details", collapsed: false }, h("div", { slot: "accordionContent" }, h("helper-tabs", null)))));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
LotteryGameDetails.style = lotteryGameDetailsCss;
|
|
14
|
+
|
|
15
|
+
export { LotteryGameDetails as lottery_game_details };
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["helper-
|
|
16
|
+
return bootstrapLazy([["helper-tab",[[1,"helper-tab",{"selectedIndex":[2,"selected-index"],"cmsEndpoint":[1,"cms-endpoint"],"tabContent":[32]}]]],["helper-tabs",[[1,"helper-tabs",{"disabled":[4],"label":[1],"selected":[4],"cmsEndpoint":[1,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16]}]]],["helper-accordion",[[1,"helper-accordion",{"ticketHistoryFlag":[4,"ticket-history-flag"],"headerTitle":[1,"header-title"],"headerSubtitle":[1,"header-subtitle"],"description":[1],"footer":[4],"deleteTab":[4,"delete-tab"],"postMessage":[4,"post-message"],"eventName":[1,"event-name"],"collapsed":[4],"language":[1],"showContent":[32]}]]],["lottery-game-details",[[1,"lottery-game-details"]]]], options);
|
|
17
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-703a43dd.js";(()=>{const t=import.meta.url,d={};return""!==t&&(d.resourcesUrl=new URL(".",t).href),e(d)})().then((e=>t([["p-
|
|
1
|
+
import{p as e,b as t}from"./p-703a43dd.js";(()=>{const t=import.meta.url,d={};return""!==t&&(d.resourcesUrl=new URL(".",t).href),e(d)})().then((e=>t([["p-bd2214ba",[[1,"helper-tab",{selectedIndex:[2,"selected-index"],cmsEndpoint:[1,"cms-endpoint"],tabContent:[32]}]]],["p-0343b1ff",[[1,"helper-tabs",{disabled:[4],label:[1],selected:[4],cmsEndpoint:[1,"cms-endpoint"],selectedIndex:[1538,"selected-index"],tabs:[16]}]]],["p-2c662359",[[1,"helper-accordion",{ticketHistoryFlag:[4,"ticket-history-flag"],headerTitle:[1,"header-title"],headerSubtitle:[1,"header-subtitle"],description:[1],footer:[4],deleteTab:[4,"delete-tab"],postMessage:[4,"post-message"],eventName:[1,"event-name"],collapsed:[4],language:[1],showContent:[32]}]]],["p-25d74574",[[1,"lottery-game-details"]]]],e)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,g as s}from"./p-703a43dd.js";const a=class{constructor(o){t(this,o),this.disabled=!1,this.selected=!1,this.selectedIndex=0,this.tabs=[{label:"How to Play"},{label:"About"},{label:"FAQs"}]}connectedCallback(){}render(){return o("div",null,o("div",{class:"Tabs"},this.tabs.map(((t,s)=>o("button",{class:"TabButton"+(this.selectedIndex==s?" Active":""),onClick:()=>this.selectedIndex=s},t.label)))),o("div",null,o("helper-tab",{selectedIndex:this.selectedIndex})))}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{a as helper_tabs}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-703a43dd.js";const l=class{constructor(t){e(this,t)}render(){return t("div",null,t("helper-accordion",{"header-title":"Game Details",collapsed:!1},t("div",{slot:"accordionContent"},t("helper-tabs",null))))}};l.style=":host{display:block}";export{l as lottery_game_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i}from"./p-703a43dd.js";const o=["ro","en"],r={en:{deleteTicket:"Delete ticket"},ro:{deleteTicket:"Sterge biletul"}},s=class{constructor(i){t(this,i),this.accordionEvent=e(this,"helperAccordionAction",7),this.ticketHistoryFlag=!1,this.headerTitle="",this.headerSubtitle="",this.description="",this.footer=!1,this.deleteTab=!1,this.postMessage=!1,this.eventName="helperAccordionAction",this.collapsed=!0,this.language="en"}connectedCallback(){this.showContent=!this.collapsed}toggleContent(){this.showContent=!this.showContent}deleteAction(){this.postMessage&&window.postMessage({type:this.eventName},window.location.href),this.accordionEvent.emit()}render(){return i("div",{class:"Wrapper"},i("div",{class:!0===this.ticketHistoryFlag?"HeaderTicketHistory":"Header"},i("p",{class:"Title"},this.headerTitle),i("p",{class:"Subtitle"},this.headerSubtitle),i("p",{class:"Subtitle"},this.description),i("span",{class:"Expand",onClick:()=>this.toggleContent()},this.showContent?"<":">")),this.showContent&&i("div",null,i("div",{class:"Content"},i("slot",{name:"accordionContent"}),this.footer&&this.showContent&&i("div",null,this.deleteTab&&i("span",{class:"ActionButton",onClick:()=>this.deleteAction()},(()=>{const t=this.language;return r[void 0!==t&&o.includes(t)?t:"en"].deleteTicket})())))))}};s.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.Header{border-radius:4px 4px 0 0;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff}.Header .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.HeaderTicketHistory{border-radius:4px;background:#F1F1F1;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:5px}.HeaderTicketHistory:hover{background:#00ABA4}.HeaderTicketHistory .Title,.HeaderTicketHistory .Subtitle,.HeaderTicketHistory .Description{margin:0;font-size:14px;color:#000}.HeaderTicketHistory .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.Content{border-radius:0 0 4px 4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{cursor:pointer;display:inline-block;border-radius:4px;margin:20px 0 10px;text-transform:uppercase;font-size:12px;text-align:center;padding:8px 20px;min-width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}';export{s as helper_accordion}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-703a43dd.js";const o=class{constructor(t){e(this,t),this.selectedIndex=0,this.tabContent=""}connectedCallback(){}render(){return this.tabContent=t("div",{class:"TabContent"},"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=t("div",{class:"TabContent"},t("ol",null,t("li",null,"Register or Login"),t("li",null,"Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose “I feel lucky”."),t("li",null,"Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!"))):this.selectedIndex+1==3&&(this.tabContent=t("div",{class:"TabContent"},t("ul",null,t("li",null,"What are my odds of winning?"),t("li",null,"How can I find out if I’ve won a draw game?"),t("li",null,"How do I claim my prize?")))),this.tabContent}};o.style=":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";export{o as helper_tab}
|
package/dist/stencil.config.js
CHANGED
|
@@ -3,12 +3,14 @@ export const config = {
|
|
|
3
3
|
namespace: 'lottery-game-details',
|
|
4
4
|
taskQueue: 'async',
|
|
5
5
|
plugins: [sass()],
|
|
6
|
+
bundles: [{ components: ['lottery-game-details'] }],
|
|
6
7
|
outputTargets: [
|
|
7
8
|
{
|
|
8
9
|
type: 'dist',
|
|
9
10
|
esmLoaderPath: '../loader',
|
|
10
11
|
},
|
|
11
12
|
{
|
|
13
|
+
autoDefineCustomElements: true,
|
|
12
14
|
type: 'dist-custom-elements',
|
|
13
15
|
},
|
|
14
16
|
{
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/lottery-game-details",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
|
-
"module": "./dist/
|
|
5
|
+
"module": "./dist/components/lottery-game-details.js",
|
|
6
6
|
"es2015": "./dist/esm/index.mjs",
|
|
7
7
|
"es2017": "./dist/esm/index.mjs",
|
|
8
8
|
"types": "./dist/types/index.d.ts",
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-9d95408f.js');
|
|
6
|
-
|
|
7
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
8
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
9
|
-
const TRANSLATIONS = {
|
|
10
|
-
en: {
|
|
11
|
-
deleteTicket: 'Delete ticket'
|
|
12
|
-
},
|
|
13
|
-
ro: {
|
|
14
|
-
deleteTicket: 'Sterge biletul'
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
const translate = (key, customLang) => {
|
|
18
|
-
const lang = customLang;
|
|
19
|
-
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
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:4px;margin-bottom:1px;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff}.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}.Content{border-radius:4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{border-radius:4px;margin-top:10px;cursor:pointer;text-transform:capitalize;display:block;font-size:12px;text-align:center;padding:8px 20px;width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}";
|
|
23
|
-
|
|
24
|
-
const Accordion = class {
|
|
25
|
-
constructor(hostRef) {
|
|
26
|
-
index.registerInstance(this, hostRef);
|
|
27
|
-
this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
|
|
28
|
-
/**
|
|
29
|
-
* Title (top header)
|
|
30
|
-
*/
|
|
31
|
-
this.headerTitle = '';
|
|
32
|
-
/**
|
|
33
|
-
* SubTitle (top header)
|
|
34
|
-
*/
|
|
35
|
-
this.headerSubtitle = '';
|
|
36
|
-
/**
|
|
37
|
-
* Description
|
|
38
|
-
*/
|
|
39
|
-
this.description = '';
|
|
40
|
-
/**
|
|
41
|
-
* Enables footer content
|
|
42
|
-
*/
|
|
43
|
-
this.footer = false;
|
|
44
|
-
/**
|
|
45
|
-
* Enables footer button for tab deletion
|
|
46
|
-
*/
|
|
47
|
-
this.deleteTab = false;
|
|
48
|
-
/**
|
|
49
|
-
* Activates postMessages as events for actions from the widget
|
|
50
|
-
*/
|
|
51
|
-
this.postMessage = false;
|
|
52
|
-
/**
|
|
53
|
-
* Name of the event emitter by the action button
|
|
54
|
-
*/
|
|
55
|
-
this.eventName = 'helperAccordionAction';
|
|
56
|
-
/**
|
|
57
|
-
* Collapsed
|
|
58
|
-
*/
|
|
59
|
-
this.collapsed = true;
|
|
60
|
-
/**
|
|
61
|
-
* Language
|
|
62
|
-
*/
|
|
63
|
-
this.language = 'en';
|
|
64
|
-
}
|
|
65
|
-
// @TODO fix the `any` type :)
|
|
66
|
-
connectedCallback() {
|
|
67
|
-
this.showContent = !this.collapsed;
|
|
68
|
-
}
|
|
69
|
-
toggleContent() {
|
|
70
|
-
this.showContent = !this.showContent;
|
|
71
|
-
}
|
|
72
|
-
deleteAction() {
|
|
73
|
-
if (this.postMessage) {
|
|
74
|
-
// @TODO maybe change the name type, this one sucks
|
|
75
|
-
window.postMessage({ type: this.eventName }, window.location.href);
|
|
76
|
-
}
|
|
77
|
-
this.accordionEvent.emit();
|
|
78
|
-
}
|
|
79
|
-
render() {
|
|
80
|
-
return (index.h("div", { class: "Wrapper" }, index.h("div", { class: "Header" }, index.h("p", { class: "Title" }, this.headerTitle), index.h("p", { class: "Subtitle" }, this.headerSubtitle), index.h("p", { class: "Subtitle" }, this.description), index.h("span", { class: "Expand", onClick: () => this.toggleContent() }, this.showContent ? '<' : '>')), this.showContent &&
|
|
81
|
-
index.h("div", null, index.h("div", { class: "Content" }, index.h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
82
|
-
index.h("div", null, this.deleteTab &&
|
|
83
|
-
index.h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
Accordion.style = helperAccordionCss;
|
|
87
|
-
|
|
88
|
-
const helperTabCss = ":host{display:block}";
|
|
89
|
-
|
|
90
|
-
const HelperTab = class {
|
|
91
|
-
constructor(hostRef) {
|
|
92
|
-
index.registerInstance(this, hostRef);
|
|
93
|
-
/**
|
|
94
|
-
* Selected index
|
|
95
|
-
*/
|
|
96
|
-
this.selectedIndex = 0;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Endpoing for CMS
|
|
100
|
-
*/
|
|
101
|
-
connectedCallback() {
|
|
102
|
-
/**
|
|
103
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
104
|
-
*/
|
|
105
|
-
}
|
|
106
|
-
render() {
|
|
107
|
-
return [
|
|
108
|
-
index.h("div", null, "Reference site about Lorem Ipsum, giving information on its origins, as well as a random Lipsum generator.", this.selectedIndex + 1)
|
|
109
|
-
];
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
HelperTab.style = helperTabCss;
|
|
113
|
-
|
|
114
|
-
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}";
|
|
115
|
-
|
|
116
|
-
const HelperTabs = class {
|
|
117
|
-
constructor(hostRef) {
|
|
118
|
-
index.registerInstance(this, hostRef);
|
|
119
|
-
/**
|
|
120
|
-
* Tell me if it is disabled
|
|
121
|
-
*/
|
|
122
|
-
this.disabled = false;
|
|
123
|
-
/**
|
|
124
|
-
* Tell me what tab is selected
|
|
125
|
-
*/
|
|
126
|
-
this.selected = false;
|
|
127
|
-
/**
|
|
128
|
-
* Default selected index
|
|
129
|
-
*/
|
|
130
|
-
this.selectedIndex = 0;
|
|
131
|
-
/**
|
|
132
|
-
* Tabs details
|
|
133
|
-
*/
|
|
134
|
-
this.tabs = [{ label: 'Draw Details' }, { label: 'Winnings' }, { label: 'How to Play' }, { label: 'Game Odds' }, { label: 'FAQs' }];
|
|
135
|
-
}
|
|
136
|
-
connectedCallback() {
|
|
137
|
-
}
|
|
138
|
-
render() {
|
|
139
|
-
return (index.h("div", null, index.h("div", { class: "Tabs" }, this.tabs.map((tab, index$1) => index.h("button", { class: 'TabButton' + (this.selectedIndex == index$1 ? ' Active' : ''), onClick: () => this.selectedIndex = index$1 }, tab.label))), index.h("div", null, index.h("helper-tab", { selectedIndex: this.selectedIndex }))));
|
|
140
|
-
}
|
|
141
|
-
get host() { return index.getElement(this); }
|
|
142
|
-
};
|
|
143
|
-
HelperTabs.style = helperTabsCss;
|
|
144
|
-
|
|
145
|
-
const lotteryGameDetailsCss = ":host{display:block}";
|
|
146
|
-
|
|
147
|
-
const LotteryGameDetails = class {
|
|
148
|
-
constructor(hostRef) {
|
|
149
|
-
index.registerInstance(this, hostRef);
|
|
150
|
-
}
|
|
151
|
-
render() {
|
|
152
|
-
return (index.h("div", null, index.h("helper-accordion", { "header-title": "Game Details", collapsed: false }, index.h("div", { slot: "accordionContent" }, index.h("helper-tabs", null)))));
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
LotteryGameDetails.style = lotteryGameDetailsCss;
|
|
156
|
-
|
|
157
|
-
exports.helper_accordion = Accordion;
|
|
158
|
-
exports.helper_tab = HelperTab;
|
|
159
|
-
exports.helper_tabs = HelperTabs;
|
|
160
|
-
exports.lottery_game_details = LotteryGameDetails;
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-515a97dd.js';
|
|
2
|
-
|
|
3
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
5
|
-
const TRANSLATIONS = {
|
|
6
|
-
en: {
|
|
7
|
-
deleteTicket: 'Delete ticket'
|
|
8
|
-
},
|
|
9
|
-
ro: {
|
|
10
|
-
deleteTicket: 'Sterge biletul'
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
const translate = (key, customLang) => {
|
|
14
|
-
const lang = customLang;
|
|
15
|
-
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
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:4px;margin-bottom:1px;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff}.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}.Content{border-radius:4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{border-radius:4px;margin-top:10px;cursor:pointer;text-transform:capitalize;display:block;font-size:12px;text-align:center;padding:8px 20px;width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}";
|
|
19
|
-
|
|
20
|
-
const Accordion = class {
|
|
21
|
-
constructor(hostRef) {
|
|
22
|
-
registerInstance(this, hostRef);
|
|
23
|
-
this.accordionEvent = createEvent(this, "helperAccordionAction", 7);
|
|
24
|
-
/**
|
|
25
|
-
* Title (top header)
|
|
26
|
-
*/
|
|
27
|
-
this.headerTitle = '';
|
|
28
|
-
/**
|
|
29
|
-
* SubTitle (top header)
|
|
30
|
-
*/
|
|
31
|
-
this.headerSubtitle = '';
|
|
32
|
-
/**
|
|
33
|
-
* Description
|
|
34
|
-
*/
|
|
35
|
-
this.description = '';
|
|
36
|
-
/**
|
|
37
|
-
* Enables footer content
|
|
38
|
-
*/
|
|
39
|
-
this.footer = false;
|
|
40
|
-
/**
|
|
41
|
-
* Enables footer button for tab deletion
|
|
42
|
-
*/
|
|
43
|
-
this.deleteTab = false;
|
|
44
|
-
/**
|
|
45
|
-
* Activates postMessages as events for actions from the widget
|
|
46
|
-
*/
|
|
47
|
-
this.postMessage = false;
|
|
48
|
-
/**
|
|
49
|
-
* Name of the event emitter by the action button
|
|
50
|
-
*/
|
|
51
|
-
this.eventName = 'helperAccordionAction';
|
|
52
|
-
/**
|
|
53
|
-
* Collapsed
|
|
54
|
-
*/
|
|
55
|
-
this.collapsed = true;
|
|
56
|
-
/**
|
|
57
|
-
* Language
|
|
58
|
-
*/
|
|
59
|
-
this.language = 'en';
|
|
60
|
-
}
|
|
61
|
-
// @TODO fix the `any` type :)
|
|
62
|
-
connectedCallback() {
|
|
63
|
-
this.showContent = !this.collapsed;
|
|
64
|
-
}
|
|
65
|
-
toggleContent() {
|
|
66
|
-
this.showContent = !this.showContent;
|
|
67
|
-
}
|
|
68
|
-
deleteAction() {
|
|
69
|
-
if (this.postMessage) {
|
|
70
|
-
// @TODO maybe change the name type, this one sucks
|
|
71
|
-
window.postMessage({ type: this.eventName }, window.location.href);
|
|
72
|
-
}
|
|
73
|
-
this.accordionEvent.emit();
|
|
74
|
-
}
|
|
75
|
-
render() {
|
|
76
|
-
return (h("div", { class: "Wrapper" }, h("div", { class: "Header" }, h("p", { class: "Title" }, this.headerTitle), h("p", { class: "Subtitle" }, this.headerSubtitle), h("p", { class: "Subtitle" }, this.description), h("span", { class: "Expand", onClick: () => this.toggleContent() }, this.showContent ? '<' : '>')), this.showContent &&
|
|
77
|
-
h("div", null, h("div", { class: "Content" }, h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
78
|
-
h("div", null, this.deleteTab &&
|
|
79
|
-
h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
Accordion.style = helperAccordionCss;
|
|
83
|
-
|
|
84
|
-
const helperTabCss = ":host{display:block}";
|
|
85
|
-
|
|
86
|
-
const HelperTab = class {
|
|
87
|
-
constructor(hostRef) {
|
|
88
|
-
registerInstance(this, hostRef);
|
|
89
|
-
/**
|
|
90
|
-
* Selected index
|
|
91
|
-
*/
|
|
92
|
-
this.selectedIndex = 0;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Endpoing for CMS
|
|
96
|
-
*/
|
|
97
|
-
connectedCallback() {
|
|
98
|
-
/**
|
|
99
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
100
|
-
*/
|
|
101
|
-
}
|
|
102
|
-
render() {
|
|
103
|
-
return [
|
|
104
|
-
h("div", null, "Reference site about Lorem Ipsum, giving information on its origins, as well as a random Lipsum generator.", this.selectedIndex + 1)
|
|
105
|
-
];
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
HelperTab.style = helperTabCss;
|
|
109
|
-
|
|
110
|
-
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}";
|
|
111
|
-
|
|
112
|
-
const HelperTabs = class {
|
|
113
|
-
constructor(hostRef) {
|
|
114
|
-
registerInstance(this, hostRef);
|
|
115
|
-
/**
|
|
116
|
-
* Tell me if it is disabled
|
|
117
|
-
*/
|
|
118
|
-
this.disabled = false;
|
|
119
|
-
/**
|
|
120
|
-
* Tell me what tab is selected
|
|
121
|
-
*/
|
|
122
|
-
this.selected = false;
|
|
123
|
-
/**
|
|
124
|
-
* Default selected index
|
|
125
|
-
*/
|
|
126
|
-
this.selectedIndex = 0;
|
|
127
|
-
/**
|
|
128
|
-
* Tabs details
|
|
129
|
-
*/
|
|
130
|
-
this.tabs = [{ label: 'Draw Details' }, { label: 'Winnings' }, { label: 'How to Play' }, { label: 'Game Odds' }, { label: 'FAQs' }];
|
|
131
|
-
}
|
|
132
|
-
connectedCallback() {
|
|
133
|
-
}
|
|
134
|
-
render() {
|
|
135
|
-
return (h("div", null, h("div", { class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", null, h("helper-tab", { selectedIndex: this.selectedIndex }))));
|
|
136
|
-
}
|
|
137
|
-
get host() { return getElement(this); }
|
|
138
|
-
};
|
|
139
|
-
HelperTabs.style = helperTabsCss;
|
|
140
|
-
|
|
141
|
-
const lotteryGameDetailsCss = ":host{display:block}";
|
|
142
|
-
|
|
143
|
-
const LotteryGameDetails = class {
|
|
144
|
-
constructor(hostRef) {
|
|
145
|
-
registerInstance(this, hostRef);
|
|
146
|
-
}
|
|
147
|
-
render() {
|
|
148
|
-
return (h("div", null, h("helper-accordion", { "header-title": "Game Details", collapsed: false }, h("div", { slot: "accordionContent" }, h("helper-tabs", null)))));
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
LotteryGameDetails.style = lotteryGameDetailsCss;
|
|
152
|
-
|
|
153
|
-
export { Accordion as helper_accordion, HelperTab as helper_tab, HelperTabs as helper_tabs, LotteryGameDetails as lottery_game_details };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as o,g as s}from"./p-703a43dd.js";const i=["ro","en"],r={en:{deleteTicket:"Delete ticket"},ro:{deleteTicket:"Sterge biletul"}},n=class{constructor(o){t(this,o),this.accordionEvent=e(this,"helperAccordionAction",7),this.headerTitle="",this.headerSubtitle="",this.description="",this.footer=!1,this.deleteTab=!1,this.postMessage=!1,this.eventName="helperAccordionAction",this.collapsed=!0,this.language="en"}connectedCallback(){this.showContent=!this.collapsed}toggleContent(){this.showContent=!this.showContent}deleteAction(){this.postMessage&&window.postMessage({type:this.eventName},window.location.href),this.accordionEvent.emit()}render(){return o("div",{class:"Wrapper"},o("div",{class:"Header"},o("p",{class:"Title"},this.headerTitle),o("p",{class:"Subtitle"},this.headerSubtitle),o("p",{class:"Subtitle"},this.description),o("span",{class:"Expand",onClick:()=>this.toggleContent()},this.showContent?"<":">")),this.showContent&&o("div",null,o("div",{class:"Content"},o("slot",{name:"accordionContent"}),this.footer&&this.showContent&&o("div",null,this.deleteTab&&o("span",{class:"ActionButton",onClick:()=>this.deleteAction()},(()=>{const t=this.language;return r[void 0!==t&&i.includes(t)?t:"en"].deleteTicket})())))))}};n.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.Header{border-radius:4px;margin-bottom:1px;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff}.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}.Content{border-radius:4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{border-radius:4px;margin-top:10px;cursor:pointer;text-transform:capitalize;display:block;font-size:12px;text-align:center;padding:8px 20px;width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}';const a=class{constructor(e){t(this,e),this.selectedIndex=0}connectedCallback(){}render(){return[o("div",null,"Reference site about Lorem Ipsum, giving information on its origins, as well as a random Lipsum generator.",this.selectedIndex+1)]}};a.style=":host{display:block}";const l=class{constructor(e){t(this,e),this.disabled=!1,this.selected=!1,this.selectedIndex=0,this.tabs=[{label:"Draw Details"},{label:"Winnings"},{label:"How to Play"},{label:"Game Odds"},{label:"FAQs"}]}connectedCallback(){}render(){return o("div",null,o("div",{class:"Tabs"},this.tabs.map(((t,e)=>o("button",{class:"TabButton"+(this.selectedIndex==e?" Active":""),onClick:()=>this.selectedIndex=e},t.label)))),o("div",null,o("helper-tab",{selectedIndex:this.selectedIndex})))}get host(){return s(this)}};l.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}';const c=class{constructor(e){t(this,e)}render(){return o("div",null,o("helper-accordion",{"header-title":"Game Details",collapsed:!1},o("div",{slot:"accordionContent"},o("helper-tabs",null))))}};c.style=":host{display:block}";export{n as helper_accordion,a as helper_tab,l as helper_tabs,c as lottery_game_details}
|