@everymatrix/lottery-ticket-controller 0.1.5 → 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_2.cjs.entry.js → helper-accordion.cjs.entry.js} +1 -65
- package/dist/cjs/{index-4814ed9d.js → index-95915aab.js} +40 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottery-bullet.cjs.entry.js +41 -0
- package/dist/cjs/lottery-grid.cjs.entry.js +167 -0
- package/dist/cjs/lottery-ticket-controller.cjs.entry.js +69 -0
- package/dist/cjs/lottery-ticket-controller.cjs.js +2 -2
- package/dist/cjs/lottery-ticket.cjs.entry.js +169 -0
- package/dist/collection/collection-manifest.json +25 -1
- package/dist/components/helper-accordion2.js +1 -0
- package/dist/components/lottery-bullet.js +6 -0
- package/dist/components/lottery-bullet2.js +57 -0
- package/dist/components/lottery-grid.js +6 -0
- package/dist/components/lottery-grid2.js +197 -0
- package/dist/components/lottery-ticket-controller.js +21 -3
- package/dist/components/lottery-ticket.js +6 -0
- package/dist/components/lottery-ticket2.js +209 -0
- package/dist/esm/{helper-accordion_2.entry.js → helper-accordion.entry.js} +2 -65
- package/dist/esm/{index-116c3025.js → index-e3877ca0.js} +40 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-bullet.entry.js +37 -0
- package/dist/esm/lottery-grid.entry.js +163 -0
- package/dist/esm/lottery-ticket-controller.entry.js +65 -0
- package/dist/esm/lottery-ticket-controller.js +2 -2
- package/dist/esm/lottery-ticket.entry.js +165 -0
- package/dist/lottery-ticket-controller/lottery-ticket-controller.esm.js +1 -1
- package/dist/lottery-ticket-controller/p-25f1639a.entry.js +1 -0
- package/dist/lottery-ticket-controller/p-3971b8e6.js +1 -0
- package/dist/lottery-ticket-controller/p-40d1058f.entry.js +1 -0
- package/dist/lottery-ticket-controller/p-dc525e6c.entry.js +1 -0
- package/dist/lottery-ticket-controller/p-f08b1b06.entry.js +1 -0
- package/dist/lottery-ticket-controller/p-f886ec7e.entry.js +1 -0
- package/dist/stencil.config.js +3 -0
- package/package.json +2 -2
- package/dist/lottery-ticket-controller/p-b4ec0994.js +0 -1
- package/dist/lottery-ticket-controller/p-efb11dcf.entry.js +0 -1
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './lottery-bullet2.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './lottery-grid2.js';
|
|
4
|
+
|
|
5
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
6
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
7
|
+
const TRANSLATIONS = {
|
|
8
|
+
en: {
|
|
9
|
+
loading: 'Loading, please wait ...',
|
|
10
|
+
error: 'It was an error while trying to fetch the data',
|
|
11
|
+
grid: 'Grid',
|
|
12
|
+
multiplier: 'Multiplier',
|
|
13
|
+
numberOfDraws: 'Number of draws',
|
|
14
|
+
wagerPerDraw: 'Wager per draw',
|
|
15
|
+
resetButton: 'Reset',
|
|
16
|
+
autoButton: 'I feel lucky'
|
|
17
|
+
},
|
|
18
|
+
ro: {
|
|
19
|
+
loading: 'Se incarca, va rugam asteptati ...',
|
|
20
|
+
error: 'A fost o eroare in timp ce asteptam datele',
|
|
21
|
+
grid: 'Grid',
|
|
22
|
+
multiplier: 'Multiplicator',
|
|
23
|
+
numberOfDraws: 'Numarul de extrageri',
|
|
24
|
+
wagerPerDraw: 'Pariul per extragere',
|
|
25
|
+
resetButton: 'Reseteaza',
|
|
26
|
+
autoButton: 'Ma simt norocos'
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
const translate = (key, customLang) => {
|
|
30
|
+
const lang = customLang;
|
|
31
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const lotteryTicketCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.TicketTitle{font-size:16px;font-weight:bold}.ButtonContainer{display:flex;justify-content:flex-end}.Toggle{cursor:pointer;margin-top:20px;display:inline-block}.ToggleSwitch{display:inline-block;background:#707070;border-radius:16px;width:58px;height:24px;position:relative;vertical-align:middle;transition:background 0.25s}.ToggleSwitch:before,.ToggleSwitch:after{content:\"\"}.ToggleSwitch:before{display:block;background:linear-gradient(to bottom, #fff 0%, #F1F1F1 100%);border-radius:50%;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.25);width:16px;height:16px;position:absolute;top:4px;left:4px;transition:left 0.25s}.Toggle:hover .ToggleSwitch:before{background:linear-gradient(to bottom, #fff 0%, #fff 100%);box-shadow:0 0 0 1px rgba(0, 0, 0, 0.5)}.ToggleCheckbox:checked+.ToggleSwitch{background:#00ABA4}.ToggleCheckbox:checked+.ToggleSwitch:before{left:38px}.ToggleCheckbox{position:absolute;visibility:hidden}.Label{margin-right:5px;position:relative;top:2px;font-size:14px;font-weight:lighter;color:#000}input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}.NumberInput,.WagerInput{margin-top:10px;display:inline-flex;align-items:center}.NumberInput,.NumberInput *{box-sizing:border-box}.NumberInput button{cursor:pointer;outline:none;-webkit-appearance:none;border:none;align-items:center;justify-content:center;height:20px;position:relative}.NumberInput button:after{display:inline-block;position:absolute;transform:translate(-50%, -50%) rotate(180deg);align-items:center;text-align:center}.NumberInput button.Plus:after{transform:translate(-50%, -50%) rotate(0deg);width:30px;display:inline-flex;align-items:center;text-align:center}.NumberInput input[type=number],.WagerInput input[type=number]{max-width:50px;display:inline-flex;align-items:center;padding:4px 10px;text-align:center}.NumberInput input[type=number] .WagerInputTitle,.WagerInput input[type=number] .WagerInputTitle{font-size:14px;color:#000;padding:10px}.InputDefault{background-color:#F1F1F1;border-radius:4px;padding:5px;border:solid 1px #D4D4D4;color:#707070}.AutoButton{cursor:pointer;display:inline-block;border-radius:4px;padding:8px 20px;width:max-content;margin:5px 0;border:1px solid #00958f;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.AutoButton:active{background:#00958f;color:#FFF}.ResetButton{cursor:pointer;display:inline-block;border-radius:4px;padding:8px 20px;width:max-content;margin:5px 0;color:#000;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ResetButton:hover{background:#FF6536;border:1px solid #FF3D00}.TicketGridBullets{background:#f1f1f1;border-radius:4px;padding:20px;margin-top:5px}.TicketGridBullets .TicketGridTitle{margin-top:0px}.Minus{border-radius:4px;width:30px;height:24px !important;margin-right:10px;color:#FFF;background:#009993}.Plus{border-radius:4px;width:30px;height:24px !important;margin-left:10px;color:#FFF;background:#009993}.SelectWrapper{width:auto;padding:5px;margin:0 auto;border:1px solid #ccc;border-radius:5px;position:relative}.SelectButton,.SelectOptions li{display:flex;align-items:center;cursor:pointer}.SelectButton{display:flex;padding:0 5px;border-radius:7px;align-items:center;justify-content:space-between;font-size:14px}.SelectButton span:first-child{padding-right:10px}.SelectExpand{transition:transform 0.3s linear;font-size:12px}.SelectActive .SelectExpand{transform:rotate(180deg)}.SelectContent{display:none;padding:5px;border-radius:7px}.SelectWrapper.SelectActive .SelectContent{width:100%;display:block;position:absolute;left:0;top:32px;padding:0;border:1px solid #ccc;overflow:hidden;background:#fff}.SelectContent .SelectOptions{max-height:100px;margin:0;overflow-y:auto;padding:0}.SelectContent .SelectOptions .SelectedValue{background-color:#009993;color:#fff}.SelectOptions::-webkit-scrollbar{width:7px}.SelectOptions::-webkit-scrollbar-track{background:#f1f1f1;border-radius:25px}.SelectOptions::-webkit-scrollbar-thumb{background:#ccc;border-radius:25px}.SelectOptions li{height:20px;padding:0 13px;font-size:14px}.SelectOptions li:hover{background:#f2f2f2}";
|
|
35
|
+
|
|
36
|
+
const LotteryTicket = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
37
|
+
constructor() {
|
|
38
|
+
super();
|
|
39
|
+
this.__registerHost();
|
|
40
|
+
this.__attachShadow();
|
|
41
|
+
this.ticketCompleted = createEvent(this, "ticketCompleted", 7);
|
|
42
|
+
this.autoSelection = createEvent(this, "autoSelection", 7);
|
|
43
|
+
this.resetSelection = createEvent(this, "resetSelection", 7);
|
|
44
|
+
this.stakeChange = createEvent(this, "stakeChange", 7);
|
|
45
|
+
this.multiplierChange = createEvent(this, "multiplierChange", 7);
|
|
46
|
+
/**
|
|
47
|
+
* Number of grids of a ticket
|
|
48
|
+
*/
|
|
49
|
+
this.numberOfGrids = 1;
|
|
50
|
+
/**
|
|
51
|
+
* Option to have the ticket registered for multiple draws
|
|
52
|
+
*/
|
|
53
|
+
this.multipleDraws = true;
|
|
54
|
+
/**
|
|
55
|
+
* Shows the reset button
|
|
56
|
+
*/
|
|
57
|
+
this.resetButton = false;
|
|
58
|
+
/**
|
|
59
|
+
* Shows the auto-pick button
|
|
60
|
+
*/
|
|
61
|
+
this.autoPick = false;
|
|
62
|
+
/**
|
|
63
|
+
* Language
|
|
64
|
+
*/
|
|
65
|
+
this.language = 'en';
|
|
66
|
+
this.multiplier = false;
|
|
67
|
+
this.numberOfDraws = 1;
|
|
68
|
+
this.isLoading = true;
|
|
69
|
+
this.hasErrors = false;
|
|
70
|
+
this.ticketDone = false;
|
|
71
|
+
this.isCustomSelect = false;
|
|
72
|
+
this.amountInfo = {};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @TODO find a better way to implement click outside the custom select, so that we don't have to use the 'data-cluster' attribute on each element
|
|
76
|
+
*/
|
|
77
|
+
checkForClickOutside(ev) {
|
|
78
|
+
if (ev.composedPath()[0].getAttribute('data-cluster') !== 'SelectComponent') {
|
|
79
|
+
this.isCustomSelect = false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
connectedCallback() {
|
|
83
|
+
let url = new URL(`${this.endpoint}/games/${this.gameId}`);
|
|
84
|
+
fetch(url.href)
|
|
85
|
+
.then((response) => {
|
|
86
|
+
if (response.ok) {
|
|
87
|
+
return response.json();
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
// Throw error
|
|
91
|
+
this.hasErrors = true;
|
|
92
|
+
}
|
|
93
|
+
})
|
|
94
|
+
.then((data) => {
|
|
95
|
+
this.isLoading = false;
|
|
96
|
+
this.gameData = data;
|
|
97
|
+
this.grids = [...Array(data.rules.boards.length).keys()];
|
|
98
|
+
this.amountInfo = this.gameData.rules.stakes[0]; // initial value for select
|
|
99
|
+
})
|
|
100
|
+
.catch((err) => {
|
|
101
|
+
this.isLoading = false;
|
|
102
|
+
this.hasErrors = true;
|
|
103
|
+
console.error('Error!', err);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
multiplierChangeHandler(e) {
|
|
107
|
+
this.multiplier = e.target ? e.target.checked : false;
|
|
108
|
+
this.multiplierChange.emit(this.multiplier);
|
|
109
|
+
}
|
|
110
|
+
drawsChangeHandler(event) {
|
|
111
|
+
this.ticket = Object.assign(Object.assign({}, this.ticket), { draws: event });
|
|
112
|
+
this.ticketCompleted.emit(this.ticket);
|
|
113
|
+
}
|
|
114
|
+
gridFilledHandler(event) {
|
|
115
|
+
this.ticket = Object.assign(Object.assign({}, event.detail), { draws: this.numberOfDraws });
|
|
116
|
+
this.ticketDone = true;
|
|
117
|
+
this.ticketCompleted.emit(this.ticket);
|
|
118
|
+
}
|
|
119
|
+
toggleAutoSelection() {
|
|
120
|
+
this.ticketDone = true;
|
|
121
|
+
this.autoSelection.emit(this.ticketId);
|
|
122
|
+
}
|
|
123
|
+
toggleResetSelection() {
|
|
124
|
+
this.ticketDone = false;
|
|
125
|
+
this.resetSelection.emit(this.ticketId);
|
|
126
|
+
}
|
|
127
|
+
changeStake(ticketid, amount) {
|
|
128
|
+
this.stakeChange.emit({
|
|
129
|
+
ticketId: ticketid,
|
|
130
|
+
stake: amount
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
toggleClass() {
|
|
134
|
+
this.isCustomSelect = !this.isCustomSelect;
|
|
135
|
+
}
|
|
136
|
+
setDropdownItem(item) {
|
|
137
|
+
this.amountInfo = {
|
|
138
|
+
amount: item.amount,
|
|
139
|
+
currency: item.currency
|
|
140
|
+
};
|
|
141
|
+
this.isCustomSelect = false;
|
|
142
|
+
this.changeStake(this.ticketId, item.amount);
|
|
143
|
+
}
|
|
144
|
+
render() {
|
|
145
|
+
if (this.isLoading) {
|
|
146
|
+
return (h("div", null, h("p", null, translate('loading', this.language))));
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
if (this.hasErrors) {
|
|
150
|
+
return (h("div", null, h("p", null, translate('error', this.language))));
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
const { rules } = this.gameData;
|
|
154
|
+
return (h("div", { class: "TicketContainer" }, h("p", { class: "TicketTitle" }, this.gameData.name), this.resetButton && this.ticketDone &&
|
|
155
|
+
h("div", { class: "ButtonContainer" }, h("a", { class: "ResetButton", onClick: () => this.toggleResetSelection() }, translate('resetButton', this.language))), this.autoPick && !this.ticketDone &&
|
|
156
|
+
h("div", { class: "ButtonContainer" }, h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection() }, translate('autoButton', this.language))), this.grids.map((item, index) => h("div", { class: "TicketGridBullets" }, h("p", { class: "TicketGridTitle" }, translate('grid', this.language), " ", item), h("lottery-grid", { "grid-index": index, "maximum-allowed": rules.boards[index].maximumAllowed, "minimum-allowed": rules.boards[index].minimumAllowed, "total-numbers": rules.boards[index].totalNumbers, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, language: this.language }))), rules.multiplier &&
|
|
157
|
+
h("div", null, h("label", { class: "Toggle" }, h("label", { class: "Label" }, translate('multiplier', this.language), ": "), h("input", { class: "ToggleCheckbox", type: "checkbox", onInput: (e) => this.multiplierChangeHandler(e) }), h("div", { class: "ToggleSwitch" }))), this.multipleDraws &&
|
|
158
|
+
h("div", { class: "TicketDraws" }, h("label", { class: "Label" }, translate('numberOfDraws', this.language), ": "), h("div", { class: "NumberInput" }, h("button", { onClick: () => this.numberOfDraws > 1 ? this.numberOfDraws-- : this.numberOfDraws = 1, class: "Minus" }, "-"), h("input", { class: "InputDefault", min: "1", value: this.numberOfDraws, type: "number" }), h("button", { onClick: () => this.numberOfDraws++, class: "Plus" }, "+"))), h("div", null, h("label", { class: "Label" }, translate('wagerPerDraw', this.language), ": "), h("div", { class: "WagerInput" }, rules.stakes.length > 1 ?
|
|
159
|
+
(h("div", { "data-cluster": "SelectComponent", class: this.isCustomSelect ? "SelectWrapper SelectActive" : "SelectWrapper" }, h("div", { "data-cluster": "SelectComponent", class: "SelectButton", onClick: () => this.toggleClass() }, h("span", { "data-cluster": "SelectComponent" }, this.amountInfo.amount, " ", this.amountInfo.currency), h("span", { "data-cluster": "SelectComponent", class: "SelectExpand" }, "\u25BC")), h("div", { "data-cluster": "SelectComponent", class: "SelectContent" }, h("ul", { "data-cluster": "SelectComponent", class: "SelectOptions" }, rules.stakes.map((item) => h("li", { "data-cluster": "SelectComponent", class: this.amountInfo.amount == item.amount ? 'SelectedValue' : '', value: item.amount, onClick: () => this.setDropdownItem(item) }, item.amount, " ", item.currency)))))) : (h("div", null, h("input", { min: "1", value: rules.stakes[0].amount, type: "number", disabled: true }), h("p", { class: "WagerInputTitle" }, rules.stakes[0].currency)))))));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
static get watchers() { return {
|
|
164
|
+
"numberOfDraws": ["drawsChangeHandler"]
|
|
165
|
+
}; }
|
|
166
|
+
static get style() { return lotteryTicketCss; }
|
|
167
|
+
}, [1, "lottery-ticket", {
|
|
168
|
+
"endpoint": [1],
|
|
169
|
+
"gameId": [1, "game-id"],
|
|
170
|
+
"numberOfGrids": [2, "number-of-grids"],
|
|
171
|
+
"multipleDraws": [4, "multiple-draws"],
|
|
172
|
+
"ticketId": [2, "ticket-id"],
|
|
173
|
+
"resetButton": [4, "reset-button"],
|
|
174
|
+
"autoPick": [4, "auto-pick"],
|
|
175
|
+
"language": [1],
|
|
176
|
+
"multiplier": [32],
|
|
177
|
+
"numberOfDraws": [32],
|
|
178
|
+
"isLoading": [32],
|
|
179
|
+
"hasErrors": [32],
|
|
180
|
+
"ticketDone": [32],
|
|
181
|
+
"isCustomSelect": [32],
|
|
182
|
+
"amountInfo": [32]
|
|
183
|
+
}, [[8, "click", "checkForClickOutside"], [0, "gridFilled", "gridFilledHandler"]]]);
|
|
184
|
+
function defineCustomElement() {
|
|
185
|
+
if (typeof customElements === "undefined") {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
const components = ["lottery-ticket", "lottery-bullet", "lottery-grid"];
|
|
189
|
+
components.forEach(tagName => { switch (tagName) {
|
|
190
|
+
case "lottery-ticket":
|
|
191
|
+
if (!customElements.get(tagName)) {
|
|
192
|
+
customElements.define(tagName, LotteryTicket);
|
|
193
|
+
}
|
|
194
|
+
break;
|
|
195
|
+
case "lottery-bullet":
|
|
196
|
+
if (!customElements.get(tagName)) {
|
|
197
|
+
defineCustomElement$2();
|
|
198
|
+
}
|
|
199
|
+
break;
|
|
200
|
+
case "lottery-grid":
|
|
201
|
+
if (!customElements.get(tagName)) {
|
|
202
|
+
defineCustomElement$1();
|
|
203
|
+
}
|
|
204
|
+
break;
|
|
205
|
+
} });
|
|
206
|
+
}
|
|
207
|
+
defineCustomElement();
|
|
208
|
+
|
|
209
|
+
export { LotteryTicket as L, defineCustomElement as d };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import '@everymatrix/lottery-ticket';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-e3877ca0.js';
|
|
3
2
|
|
|
4
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
5
4
|
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
@@ -86,66 +85,4 @@ const Accordion = class {
|
|
|
86
85
|
};
|
|
87
86
|
Accordion.style = helperAccordionCss;
|
|
88
87
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
const LotteryTicketController = class {
|
|
92
|
-
constructor(hostRef) {
|
|
93
|
-
registerInstance(this, hostRef);
|
|
94
|
-
this.deleteTicketEvent = createEvent(this, "deleteTicket", 7);
|
|
95
|
-
/**
|
|
96
|
-
* Endpoint URL for the source of data (NorWAy standard)
|
|
97
|
-
*/
|
|
98
|
-
this.endpoint = '';
|
|
99
|
-
/**
|
|
100
|
-
* Ticket number
|
|
101
|
-
*/
|
|
102
|
-
this.ticketId = 1;
|
|
103
|
-
/**
|
|
104
|
-
* Activates postMessages as events for actions from the widget
|
|
105
|
-
*/
|
|
106
|
-
this.postMessage = false;
|
|
107
|
-
/**
|
|
108
|
-
* Name of the event emitter by the action button
|
|
109
|
-
*/
|
|
110
|
-
this.eventName = 'deleteTicketAction';
|
|
111
|
-
/**
|
|
112
|
-
* Collapsed
|
|
113
|
-
*/
|
|
114
|
-
this.collapsed = true;
|
|
115
|
-
/**
|
|
116
|
-
* Number of grids?
|
|
117
|
-
*/
|
|
118
|
-
this.numberOfGrids = 1;
|
|
119
|
-
/**
|
|
120
|
-
* This toggles if the last ticket added should be expanded or not
|
|
121
|
-
*/
|
|
122
|
-
this.last = false;
|
|
123
|
-
/**
|
|
124
|
-
* Language
|
|
125
|
-
*/
|
|
126
|
-
this.language = 'en';
|
|
127
|
-
/**
|
|
128
|
-
* Shows the auto-pick button
|
|
129
|
-
*/
|
|
130
|
-
this.autoPick = false;
|
|
131
|
-
/**
|
|
132
|
-
* Shows the reset button
|
|
133
|
-
*/
|
|
134
|
-
this.resetButton = false;
|
|
135
|
-
}
|
|
136
|
-
// @TODO fix the `any` type
|
|
137
|
-
helperAccordionActionHandler() {
|
|
138
|
-
if (this.postMessage) {
|
|
139
|
-
window.postMessage({ type: this.eventName }, window.location.href);
|
|
140
|
-
}
|
|
141
|
-
this.deleteTicketEvent.emit({
|
|
142
|
-
ticketId: this.ticketId
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
render() {
|
|
146
|
-
return (h("div", null, h("helper-accordion", { "header-title": 'Ticket ' + this.ticketId, "header-subtitle": this.ticketDescription, footer: true, "delete-tab": true, collapsed: !this.last || this.collapsed, language: this.language }, h("div", { slot: "accordionContent" }, h("lottery-ticket", { endpoint: this.endpoint, "game-id": this.gameId, "ticket-id": this.ticketId, "number-of-grids": this.numberOfGrids, language: this.language, "reset-button": this.resetButton, "auto-pick": this.autoPick })))));
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
LotteryTicketController.style = lotteryTicketControllerCss;
|
|
150
|
-
|
|
151
|
-
export { Accordion as helper_accordion, LotteryTicketController as lottery_ticket_controller };
|
|
88
|
+
export { Accordion as helper_accordion };
|
|
@@ -28,7 +28,7 @@ const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
|
28
28
|
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
29
29
|
if (listeners) {
|
|
30
30
|
listeners.map(([flags, name, method]) => {
|
|
31
|
-
const target = elm;
|
|
31
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
32
32
|
const handler = hostListenerProxy(hostRef, method);
|
|
33
33
|
const opts = hostListenerOpts(flags);
|
|
34
34
|
plt.ael(target, name, handler, opts);
|
|
@@ -52,6 +52,13 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
52
52
|
consoleError(e);
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
+
const getHostListenerTarget = (elm, flags) => {
|
|
56
|
+
if (flags & 4 /* TargetDocument */)
|
|
57
|
+
return doc;
|
|
58
|
+
if (flags & 8 /* TargetWindow */)
|
|
59
|
+
return win;
|
|
60
|
+
return elm;
|
|
61
|
+
};
|
|
55
62
|
// prettier-ignore
|
|
56
63
|
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
57
64
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
@@ -768,6 +775,7 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
|
|
|
768
775
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
769
776
|
// check our new property value against our internal value
|
|
770
777
|
const hostRef = getHostRef(ref);
|
|
778
|
+
const elm = hostRef.$hostElement$ ;
|
|
771
779
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
772
780
|
const flags = hostRef.$flags$;
|
|
773
781
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -780,6 +788,22 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
780
788
|
// set our new value!
|
|
781
789
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
782
790
|
if (instance) {
|
|
791
|
+
// get an array of method names of watch functions to call
|
|
792
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
793
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
794
|
+
if (watchMethods) {
|
|
795
|
+
// this instance is watching for when this property changed
|
|
796
|
+
watchMethods.map((watchMethodName) => {
|
|
797
|
+
try {
|
|
798
|
+
// fire off each of the watch methods that are watching this property
|
|
799
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
800
|
+
}
|
|
801
|
+
catch (e) {
|
|
802
|
+
consoleError(e, elm);
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
}
|
|
783
807
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
784
808
|
// looks like this value actually changed, so we've got work to do!
|
|
785
809
|
// but only if we've already rendered, otherwise just chill out
|
|
@@ -792,6 +816,9 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
792
816
|
};
|
|
793
817
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
794
818
|
if (cmpMeta.$members$) {
|
|
819
|
+
if (Cstr.watchers) {
|
|
820
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
821
|
+
}
|
|
795
822
|
// It's better to have a const than two Object.entries()
|
|
796
823
|
const members = Object.entries(cmpMeta.$members$);
|
|
797
824
|
const prototype = Cstr.prototype;
|
|
@@ -896,6 +923,12 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
896
923
|
endLoad();
|
|
897
924
|
}
|
|
898
925
|
if (!Cstr.isProxied) {
|
|
926
|
+
// we've never proxied this Constructor before
|
|
927
|
+
// let's add the getters/setters to its prototype before
|
|
928
|
+
// the first time we create an instance of the implementation
|
|
929
|
+
{
|
|
930
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
931
|
+
}
|
|
899
932
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
900
933
|
Cstr.isProxied = true;
|
|
901
934
|
}
|
|
@@ -919,6 +952,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
919
952
|
{
|
|
920
953
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
921
954
|
}
|
|
955
|
+
{
|
|
956
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
957
|
+
}
|
|
922
958
|
endNewInstance();
|
|
923
959
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
924
960
|
}
|
|
@@ -1041,6 +1077,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1041
1077
|
{
|
|
1042
1078
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
1043
1079
|
}
|
|
1080
|
+
{
|
|
1081
|
+
cmpMeta.$watchers$ = {};
|
|
1082
|
+
}
|
|
1044
1083
|
const tagName = cmpMeta.$tagName$;
|
|
1045
1084
|
const HostElement = class extends HTMLElement {
|
|
1046
1085
|
// StencilLazyHost
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-e3877ca0.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -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([["
|
|
13
|
+
return bootstrapLazy([["lottery-bullet",[[1,"lottery-bullet",{"value":[1],"selectable":[4],"isSelected":[4,"is-selected"]}]]],["lottery-grid",[[1,"lottery-grid",{"ticketId":[2,"ticket-id"],"totalNumbers":[2,"total-numbers"],"gameId":[1,"game-id"],"maximumAllowed":[2,"maximum-allowed"],"minimumAllowed":[2,"minimum-allowed"],"selectable":[4],"selectedNumbers":[1,"selected-numbers"],"displaySelected":[4,"display-selected"],"language":[1],"gridIndex":[2,"grid-index"],"numbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]]]],["lottery-ticket",[[1,"lottery-ticket",{"endpoint":[1],"gameId":[1,"game-id"],"numberOfGrids":[2,"number-of-grids"],"multipleDraws":[4,"multiple-draws"],"ticketId":[2,"ticket-id"],"resetButton":[4,"reset-button"],"autoPick":[4,"auto-pick"],"language":[1],"multiplier":[32],"numberOfDraws":[32],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"]]]]],["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-ticket-controller",[[1,"lottery-ticket-controller",{"endpoint":[1],"ticketId":[2,"ticket-id"],"ticketDescription":[1,"ticket-description"],"gameId":[1,"game-id"],"postMessage":[4,"post-message"],"eventName":[1,"event-name"],"collapsed":[4],"numberOfGrids":[2,"number-of-grids"],"last":[4],"language":[1],"autoPick":[4,"auto-pick"],"resetButton":[4,"reset-button"]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-e3877ca0.js';
|
|
2
|
+
|
|
3
|
+
const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:#000000;display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px #ffffff;background:radial-gradient(circle at top, white 0%, white 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, white 0%, #f1f1f1 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#ffffff;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #00958f}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#D4D4D4;border:solid 2px #D4D4D4;cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #D4D4D4;cursor:default}";
|
|
4
|
+
|
|
5
|
+
const LotteryBullet = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.bulletEvent = createEvent(this, "lotteryBulletSelection", 7);
|
|
9
|
+
/**
|
|
10
|
+
* Value of the bullet
|
|
11
|
+
*/
|
|
12
|
+
this.value = '0';
|
|
13
|
+
/**
|
|
14
|
+
* Marks if the bullet should be selectable
|
|
15
|
+
*/
|
|
16
|
+
this.selectable = true;
|
|
17
|
+
/**
|
|
18
|
+
* Marks if the bullet should be selected
|
|
19
|
+
*/
|
|
20
|
+
this.isSelected = false;
|
|
21
|
+
this.select = () => {
|
|
22
|
+
if (this.selectable) {
|
|
23
|
+
this.isSelected = !this.isSelected;
|
|
24
|
+
this.bulletEvent.emit({
|
|
25
|
+
value: this.value,
|
|
26
|
+
selected: this.isSelected
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return (h("div", { class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : ''), onClick: () => this.select() }, this.value));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
LotteryBullet.style = lotteryBulletCss;
|
|
36
|
+
|
|
37
|
+
export { LotteryBullet as lottery_bullet };
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-e3877ca0.js';
|
|
2
|
+
|
|
3
|
+
const lotteryGridCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.GridContainer{display:flex;flex-direction:column;max-width:1200px}.Grid{margin-top:10px 0 10px 0;display:flex;flex-direction:row;flex-wrap:wrap;gap:25px}";
|
|
4
|
+
|
|
5
|
+
const LotteryGrid = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.gridFilledEvent = createEvent(this, "gridFilled", 7);
|
|
9
|
+
this.gridDirtyEvent = createEvent(this, "gridDirty", 7);
|
|
10
|
+
/**
|
|
11
|
+
* Number of bullets of grid
|
|
12
|
+
*/
|
|
13
|
+
this.totalNumbers = 0;
|
|
14
|
+
/**
|
|
15
|
+
* Number of maximum bullets that can be selected
|
|
16
|
+
*/
|
|
17
|
+
this.maximumAllowed = 0;
|
|
18
|
+
/**
|
|
19
|
+
* Minimum allowed of bullets
|
|
20
|
+
*/
|
|
21
|
+
this.minimumAllowed = 1;
|
|
22
|
+
/**
|
|
23
|
+
* Allows the user to select numbers on the grid
|
|
24
|
+
*/
|
|
25
|
+
this.selectable = true;
|
|
26
|
+
/**
|
|
27
|
+
* Numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1,2,3,4,5,6')
|
|
28
|
+
*/
|
|
29
|
+
this.selectedNumbers = '';
|
|
30
|
+
/**
|
|
31
|
+
* Show only selected numbers
|
|
32
|
+
*/
|
|
33
|
+
this.displaySelected = false;
|
|
34
|
+
/**
|
|
35
|
+
* Language
|
|
36
|
+
*/
|
|
37
|
+
this.language = 'en';
|
|
38
|
+
this.numbers = [];
|
|
39
|
+
this.selectedCounter = 0;
|
|
40
|
+
}
|
|
41
|
+
connectedCallback() {
|
|
42
|
+
let selected = [];
|
|
43
|
+
if (this.selectedNumbers.length > 0) {
|
|
44
|
+
selected = this.selectedNumbers.split(',');
|
|
45
|
+
this.selectedCounter = selected.length;
|
|
46
|
+
}
|
|
47
|
+
if (this.displaySelected) {
|
|
48
|
+
selected.forEach((item) => {
|
|
49
|
+
this.numbers.push({
|
|
50
|
+
number: item,
|
|
51
|
+
selected: true,
|
|
52
|
+
selectable: this.selectable
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
[...Array(this.totalNumbers).keys()]
|
|
58
|
+
.map(number => (number + 1).toString())
|
|
59
|
+
.forEach((number) => {
|
|
60
|
+
this.numbers.push({
|
|
61
|
+
number,
|
|
62
|
+
selected: selected.indexOf(number) >= 0 ? true : false,
|
|
63
|
+
selectable: this.selectedCounter == this.maximumAllowed ? false : this.selectable
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
lotteryBulletSelectionHandler(event) {
|
|
69
|
+
this.numbers = this.numbers.map((item) => {
|
|
70
|
+
if (item.number == event.detail.value) {
|
|
71
|
+
return {
|
|
72
|
+
number: item.number,
|
|
73
|
+
selected: event.detail.selected,
|
|
74
|
+
selectable: item.selectable
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
number: item.number,
|
|
79
|
+
selected: item.selected,
|
|
80
|
+
selectable: item.selectable
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
if (event.detail.selected) {
|
|
84
|
+
this.selectedCounter += 1;
|
|
85
|
+
if (this.selectedCounter == this.maximumAllowed) {
|
|
86
|
+
this.numbers = this.numbers.map((item) => {
|
|
87
|
+
return {
|
|
88
|
+
number: item.number,
|
|
89
|
+
selected: item.selected,
|
|
90
|
+
selectable: item.selected ? true : false
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
this.gridFilledEvent.emit({
|
|
94
|
+
id: this.ticketId,
|
|
95
|
+
index: this.gridIndex,
|
|
96
|
+
selectedNumbers: this.numbers.filter((item) => item.selected).map((item) => item.number)
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
if (this.selectedCounter == this.maximumAllowed) {
|
|
102
|
+
this.numbers = this.numbers.map((item) => {
|
|
103
|
+
return {
|
|
104
|
+
number: item.number,
|
|
105
|
+
selected: item.selected,
|
|
106
|
+
selectable: true
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
this.gridDirtyEvent.emit({
|
|
110
|
+
id: this.ticketId,
|
|
111
|
+
index: this.gridIndex,
|
|
112
|
+
selectedNumbers: this.numbers.filter((item) => item.selected).map((item) => item.number)
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
this.selectedCounter -= 1;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
async resetSelectionHandler(event) {
|
|
119
|
+
if (event.detail && event.detail == this.ticketId) {
|
|
120
|
+
this.selectedCounter = 0;
|
|
121
|
+
this.numbers = this.numbers.map((item) => {
|
|
122
|
+
return {
|
|
123
|
+
number: item.number,
|
|
124
|
+
selected: false,
|
|
125
|
+
selectable: this.selectable
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
this.gridDirtyEvent.emit({
|
|
129
|
+
id: this.ticketId,
|
|
130
|
+
index: this.gridIndex,
|
|
131
|
+
selectedNumbers: this.numbers.filter((item) => item.selected).map((item) => item.number)
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
async autoSelectionHandler(event) {
|
|
136
|
+
if (event.detail && event.detail == this.ticketId) {
|
|
137
|
+
this.resetSelectionHandler(event);
|
|
138
|
+
let array = [...Array(this.totalNumbers).keys()]
|
|
139
|
+
.map(number => number + 1)
|
|
140
|
+
.sort(() => 0.5 - Math.random());
|
|
141
|
+
array = array.slice(0, this.minimumAllowed);
|
|
142
|
+
this.numbers = this.numbers.map((item) => {
|
|
143
|
+
return {
|
|
144
|
+
number: item.number,
|
|
145
|
+
selected: array.indexOf(parseInt(item.number, 10)) >= 0 ? true : false,
|
|
146
|
+
selectable: array.indexOf(parseInt(item.number, 10)) >= 0 ? true : false,
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
this.gridFilledEvent.emit({
|
|
150
|
+
id: this.ticketId,
|
|
151
|
+
index: this.gridIndex,
|
|
152
|
+
selectedNumbers: this.numbers.filter((item) => item.selected).map((item) => item.number)
|
|
153
|
+
});
|
|
154
|
+
this.selectedCounter = this.maximumAllowed;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
render() {
|
|
158
|
+
return (h("div", { class: "GridContainer" }, h("div", { class: "Grid" }, this.numbers.map((item) => h("div", null, h("lottery-bullet", { value: item.number, selectable: item.selectable, "is-selected": item.selected }))))));
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
LotteryGrid.style = lotteryGridCss;
|
|
162
|
+
|
|
163
|
+
export { LotteryGrid as lottery_grid };
|