@everymatrix/lottery-game-page 0.1.0 → 0.1.1
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/loader.cjs.js +1 -1
- package/dist/cjs/lottery-draw-results.cjs.entry.js +188 -0
- package/dist/cjs/lottery-game-page.cjs.entry.js +1 -1
- package/dist/cjs/lottery-game-page.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -15
- package/dist/components/lottery-draw-results.js +6 -0
- package/dist/components/lottery-draw-results2.js +221 -0
- package/dist/components/lottery-game-page.js +5 -23
- package/dist/esm/loader.js +1 -1
- package/dist/esm/lottery-draw-results.entry.js +184 -0
- package/dist/esm/lottery-game-page.entry.js +1 -1
- package/dist/esm/lottery-game-page.js +1 -1
- package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
- package/dist/lottery-game-page/p-9ca649d9.entry.js +1 -0
- package/dist/lottery-game-page/{p-74eea5ec.entry.js → p-e98ee83a.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/cjs/helper-accordion_2.cjs.entry.js +0 -124
- package/dist/cjs/helper-tab.cjs.entry.js +0 -36
- package/dist/cjs/lottery-game-details.cjs.entry.js +0 -19
- package/dist/components/helper-accordion.js +0 -6
- package/dist/components/helper-accordion2.js +0 -116
- package/dist/components/helper-tab.js +0 -6
- package/dist/components/helper-tab2.js +0 -52
- package/dist/components/helper-tabs.js +0 -6
- package/dist/components/helper-tabs2.js +0 -63
- package/dist/components/lottery-game-details.js +0 -6
- package/dist/components/lottery-game-details2.js +0 -49
- package/dist/esm/helper-accordion_2.entry.js +0 -119
- package/dist/esm/helper-tab.entry.js +0 -32
- package/dist/esm/lottery-game-details.entry.js +0 -15
- package/dist/lottery-game-page/p-75f13007.entry.js +0 -1
- package/dist/lottery-game-page/p-97d1602e.entry.js +0 -1
- package/dist/lottery-game-page/p-d04141f7.entry.js +0 -1
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
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 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
21
|
-
constructor() {
|
|
22
|
-
super();
|
|
23
|
-
this.__registerHost();
|
|
24
|
-
this.__attachShadow();
|
|
25
|
-
this.accordionEvent = createEvent(this, "helperAccordionAction", 7);
|
|
26
|
-
/**
|
|
27
|
-
* Flag for ticket history
|
|
28
|
-
*/
|
|
29
|
-
this.ticketHistoryFlag = false;
|
|
30
|
-
/**
|
|
31
|
-
* Title (top header)
|
|
32
|
-
*/
|
|
33
|
-
this.headerTitle = '';
|
|
34
|
-
/**
|
|
35
|
-
* SubTitle (top header)
|
|
36
|
-
*/
|
|
37
|
-
this.headerSubtitle = '';
|
|
38
|
-
/**
|
|
39
|
-
* Description
|
|
40
|
-
*/
|
|
41
|
-
this.description = '';
|
|
42
|
-
/**
|
|
43
|
-
* Enables footer content
|
|
44
|
-
*/
|
|
45
|
-
this.footer = false;
|
|
46
|
-
/**
|
|
47
|
-
* Enables footer button for tab deletion
|
|
48
|
-
*/
|
|
49
|
-
this.deleteTab = false;
|
|
50
|
-
/**
|
|
51
|
-
* Activates postMessages as events for actions from the widget
|
|
52
|
-
*/
|
|
53
|
-
this.postMessage = false;
|
|
54
|
-
/**
|
|
55
|
-
* Name of the event emitter by the action button
|
|
56
|
-
*/
|
|
57
|
-
this.eventName = 'helperAccordionAction';
|
|
58
|
-
/**
|
|
59
|
-
* Collapsed
|
|
60
|
-
*/
|
|
61
|
-
this.collapsed = true;
|
|
62
|
-
/**
|
|
63
|
-
* Language
|
|
64
|
-
*/
|
|
65
|
-
this.language = 'en';
|
|
66
|
-
}
|
|
67
|
-
// @TODO fix the `any` type :)
|
|
68
|
-
connectedCallback() {
|
|
69
|
-
this.showContent = !this.collapsed;
|
|
70
|
-
}
|
|
71
|
-
toggleContent() {
|
|
72
|
-
this.showContent = !this.showContent;
|
|
73
|
-
}
|
|
74
|
-
deleteAction() {
|
|
75
|
-
if (this.postMessage) {
|
|
76
|
-
// @TODO maybe change the name type, this one sucks
|
|
77
|
-
window.postMessage({ type: this.eventName }, window.location.href);
|
|
78
|
-
}
|
|
79
|
-
this.accordionEvent.emit();
|
|
80
|
-
}
|
|
81
|
-
render() {
|
|
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 &&
|
|
83
|
-
h("div", null, h("div", { class: "Content" }, h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
|
|
84
|
-
h("div", null, this.deleteTab &&
|
|
85
|
-
h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
86
|
-
}
|
|
87
|
-
static get style() { return helperAccordionCss; }
|
|
88
|
-
}, [1, "helper-accordion", {
|
|
89
|
-
"ticketHistoryFlag": [4, "ticket-history-flag"],
|
|
90
|
-
"headerTitle": [1, "header-title"],
|
|
91
|
-
"headerSubtitle": [1, "header-subtitle"],
|
|
92
|
-
"description": [1],
|
|
93
|
-
"footer": [4],
|
|
94
|
-
"deleteTab": [4, "delete-tab"],
|
|
95
|
-
"postMessage": [4, "post-message"],
|
|
96
|
-
"eventName": [1, "event-name"],
|
|
97
|
-
"collapsed": [4],
|
|
98
|
-
"language": [1],
|
|
99
|
-
"showContent": [32]
|
|
100
|
-
}]);
|
|
101
|
-
function defineCustomElement() {
|
|
102
|
-
if (typeof customElements === "undefined") {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
const components = ["helper-accordion"];
|
|
106
|
-
components.forEach(tagName => { switch (tagName) {
|
|
107
|
-
case "helper-accordion":
|
|
108
|
-
if (!customElements.get(tagName)) {
|
|
109
|
-
customElements.define(tagName, Accordion);
|
|
110
|
-
}
|
|
111
|
-
break;
|
|
112
|
-
} });
|
|
113
|
-
}
|
|
114
|
-
defineCustomElement();
|
|
115
|
-
|
|
116
|
-
export { Accordion as A, defineCustomElement as d };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
|
|
4
|
-
|
|
5
|
-
const HelperTab = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
/**
|
|
11
|
-
* Selected index
|
|
12
|
-
*/
|
|
13
|
-
this.selectedIndex = 0;
|
|
14
|
-
this.tabContent = '';
|
|
15
|
-
}
|
|
16
|
-
connectedCallback() {
|
|
17
|
-
/**
|
|
18
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
19
|
-
*/
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
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);
|
|
30
|
-
}
|
|
31
|
-
static get style() { return helperTabCss; }
|
|
32
|
-
}, [1, "helper-tab", {
|
|
33
|
-
"selectedIndex": [2, "selected-index"],
|
|
34
|
-
"cmsEndpoint": [1, "cms-endpoint"],
|
|
35
|
-
"tabContent": [32]
|
|
36
|
-
}]);
|
|
37
|
-
function defineCustomElement() {
|
|
38
|
-
if (typeof customElements === "undefined") {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const components = ["helper-tab"];
|
|
42
|
-
components.forEach(tagName => { switch (tagName) {
|
|
43
|
-
case "helper-tab":
|
|
44
|
-
if (!customElements.get(tagName)) {
|
|
45
|
-
customElements.define(tagName, HelperTab);
|
|
46
|
-
}
|
|
47
|
-
break;
|
|
48
|
-
} });
|
|
49
|
-
}
|
|
50
|
-
defineCustomElement();
|
|
51
|
-
|
|
52
|
-
export { HelperTab as H, defineCustomElement as d };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$1 } from './helper-tab2.js';
|
|
3
|
-
|
|
4
|
-
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}";
|
|
5
|
-
|
|
6
|
-
const HelperTabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
/**
|
|
12
|
-
* Tell me if it is disabled
|
|
13
|
-
*/
|
|
14
|
-
this.disabled = false;
|
|
15
|
-
/**
|
|
16
|
-
* Tell me what tab is selected
|
|
17
|
-
*/
|
|
18
|
-
this.selected = false;
|
|
19
|
-
/**
|
|
20
|
-
* Default selected index
|
|
21
|
-
*/
|
|
22
|
-
this.selectedIndex = 0;
|
|
23
|
-
/**
|
|
24
|
-
* Tabs details
|
|
25
|
-
*/
|
|
26
|
-
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
27
|
-
}
|
|
28
|
-
connectedCallback() {
|
|
29
|
-
}
|
|
30
|
-
render() {
|
|
31
|
-
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 }))));
|
|
32
|
-
}
|
|
33
|
-
get host() { return this; }
|
|
34
|
-
static get style() { return helperTabsCss; }
|
|
35
|
-
}, [1, "helper-tabs", {
|
|
36
|
-
"disabled": [4],
|
|
37
|
-
"label": [1],
|
|
38
|
-
"selected": [4],
|
|
39
|
-
"cmsEndpoint": [1, "cms-endpoint"],
|
|
40
|
-
"selectedIndex": [1538, "selected-index"],
|
|
41
|
-
"tabs": [16]
|
|
42
|
-
}]);
|
|
43
|
-
function defineCustomElement() {
|
|
44
|
-
if (typeof customElements === "undefined") {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const components = ["helper-tabs", "helper-tab"];
|
|
48
|
-
components.forEach(tagName => { switch (tagName) {
|
|
49
|
-
case "helper-tabs":
|
|
50
|
-
if (!customElements.get(tagName)) {
|
|
51
|
-
customElements.define(tagName, HelperTabs);
|
|
52
|
-
}
|
|
53
|
-
break;
|
|
54
|
-
case "helper-tab":
|
|
55
|
-
if (!customElements.get(tagName)) {
|
|
56
|
-
defineCustomElement$1();
|
|
57
|
-
}
|
|
58
|
-
break;
|
|
59
|
-
} });
|
|
60
|
-
}
|
|
61
|
-
defineCustomElement();
|
|
62
|
-
|
|
63
|
-
export { HelperTabs as H, defineCustomElement as d };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$3 } from './helper-accordion2.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './helper-tab2.js';
|
|
4
|
-
import { d as defineCustomElement$1 } from './helper-tabs2.js';
|
|
5
|
-
|
|
6
|
-
const lotteryGameDetailsCss = ":host{display:block}";
|
|
7
|
-
|
|
8
|
-
const LotteryGameDetails = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return (h("div", null, h("helper-accordion", { "header-title": "Game Details", collapsed: false }, h("div", { slot: "accordionContent" }, h("helper-tabs", null)))));
|
|
16
|
-
}
|
|
17
|
-
static get style() { return lotteryGameDetailsCss; }
|
|
18
|
-
}, [1, "lottery-game-details"]);
|
|
19
|
-
function defineCustomElement() {
|
|
20
|
-
if (typeof customElements === "undefined") {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const components = ["lottery-game-details", "helper-accordion", "helper-tab", "helper-tabs"];
|
|
24
|
-
components.forEach(tagName => { switch (tagName) {
|
|
25
|
-
case "lottery-game-details":
|
|
26
|
-
if (!customElements.get(tagName)) {
|
|
27
|
-
customElements.define(tagName, LotteryGameDetails);
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
|
-
case "helper-accordion":
|
|
31
|
-
if (!customElements.get(tagName)) {
|
|
32
|
-
defineCustomElement$3();
|
|
33
|
-
}
|
|
34
|
-
break;
|
|
35
|
-
case "helper-tab":
|
|
36
|
-
if (!customElements.get(tagName)) {
|
|
37
|
-
defineCustomElement$2();
|
|
38
|
-
}
|
|
39
|
-
break;
|
|
40
|
-
case "helper-tabs":
|
|
41
|
-
if (!customElements.get(tagName)) {
|
|
42
|
-
defineCustomElement$1();
|
|
43
|
-
}
|
|
44
|
-
break;
|
|
45
|
-
} });
|
|
46
|
-
}
|
|
47
|
-
defineCustomElement();
|
|
48
|
-
|
|
49
|
-
export { LotteryGameDetails as L, defineCustomElement as d };
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-0fa076cd.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
|
-
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}";
|
|
89
|
-
|
|
90
|
-
const HelperTabs = class {
|
|
91
|
-
constructor(hostRef) {
|
|
92
|
-
registerInstance(this, hostRef);
|
|
93
|
-
/**
|
|
94
|
-
* Tell me if it is disabled
|
|
95
|
-
*/
|
|
96
|
-
this.disabled = false;
|
|
97
|
-
/**
|
|
98
|
-
* Tell me what tab is selected
|
|
99
|
-
*/
|
|
100
|
-
this.selected = false;
|
|
101
|
-
/**
|
|
102
|
-
* Default selected index
|
|
103
|
-
*/
|
|
104
|
-
this.selectedIndex = 0;
|
|
105
|
-
/**
|
|
106
|
-
* Tabs details
|
|
107
|
-
*/
|
|
108
|
-
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
109
|
-
}
|
|
110
|
-
connectedCallback() {
|
|
111
|
-
}
|
|
112
|
-
render() {
|
|
113
|
-
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 }))));
|
|
114
|
-
}
|
|
115
|
-
get host() { return getElement(this); }
|
|
116
|
-
};
|
|
117
|
-
HelperTabs.style = helperTabsCss;
|
|
118
|
-
|
|
119
|
-
export { Accordion as helper_accordion, HelperTabs as helper_tabs };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-0fa076cd.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 };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-0fa076cd.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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as o,g as i}from"./p-2d7ccc96.js";const s=["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.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 o("div",{class:"Wrapper"},o("div",{class:!0===this.ticketHistoryFlag?"HeaderTicketHistory":"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&&s.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 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}';const a=class{constructor(e){t(this,e),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,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 i(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{n as helper_accordion,a as helper_tabs}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-2d7ccc96.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}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-2d7ccc96.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}
|