@everymatrix/lottery-draw-results 0.0.3 → 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/{index-03778cb9.js → index-33a98fae.js} +8 -6
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/lottery-draw-results.cjs.entry.js +55 -46
- package/dist/cjs/lottery-draw-results.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/lottery-draw-results/lottery-draw-results.css +18 -7
- package/dist/collection/components/lottery-draw-results/lottery-draw-results.js +169 -56
- package/dist/collection/utils/locale.utils.js +14 -2
- package/dist/components/index.d.ts +5 -1
- package/dist/components/index.js +0 -1
- package/dist/components/lottery-draw-results.js +60 -46
- package/dist/esm/{index-17920f23.js → index-c6e6b7f8.js} +8 -6
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lottery-draw-results.entry.js +55 -46
- package/dist/esm/lottery-draw-results.js +3 -3
- package/dist/lottery-draw-results/lottery-draw-results.esm.js +1 -1
- package/dist/lottery-draw-results/p-31e0953f.js +1 -0
- package/dist/lottery-draw-results/p-d7361a7b.entry.js +1 -0
- package/dist/types/components/lottery-draw-results/lottery-draw-results.d.ts +28 -3
- package/dist/types/components.d.ts +56 -2
- package/package.json +1 -1
- package/dist/lottery-draw-results/p-62092f31.js +0 -2
- package/dist/lottery-draw-results/p-c6628b24.entry.js +0 -1
|
@@ -76,7 +76,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
76
76
|
};
|
|
77
77
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
78
78
|
let scopeId = getScopeId(cmpMeta);
|
|
79
|
-
|
|
79
|
+
let style = styles.get(scopeId);
|
|
80
80
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
81
81
|
// so the fallback is to always use the document for the root node in those cases
|
|
82
82
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
@@ -156,7 +156,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
156
156
|
let child = null;
|
|
157
157
|
let simple = false;
|
|
158
158
|
let lastSimple = false;
|
|
159
|
-
|
|
159
|
+
let vNodeChildren = [];
|
|
160
160
|
const walk = (c) => {
|
|
161
161
|
for (let i = 0; i < c.length; i++) {
|
|
162
162
|
child = c[i];
|
|
@@ -279,7 +279,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
279
279
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
280
280
|
try {
|
|
281
281
|
if (!elm.tagName.includes('-')) {
|
|
282
|
-
|
|
282
|
+
let n = newValue == null ? '' : newValue;
|
|
283
283
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
284
284
|
if (memberName === 'list') {
|
|
285
285
|
isProp = false;
|
|
@@ -336,7 +336,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
336
336
|
};
|
|
337
337
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
338
338
|
// tslint:disable-next-line: prefer-const
|
|
339
|
-
|
|
339
|
+
let newVNode = newParentVNode.$children$[childIndex];
|
|
340
340
|
let i = 0;
|
|
341
341
|
let elm;
|
|
342
342
|
let childNode;
|
|
@@ -715,6 +715,10 @@ const parsePropertyValue = (propValue, propType) => {
|
|
|
715
715
|
// but we'll cheat here and say that the string "false" is the boolean false
|
|
716
716
|
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
717
717
|
}
|
|
718
|
+
if (propType & 2 /* Number */) {
|
|
719
|
+
// force it to be a number
|
|
720
|
+
return parseFloat(propValue);
|
|
721
|
+
}
|
|
718
722
|
if (propType & 1 /* String */) {
|
|
719
723
|
// could have been passed as a number or boolean
|
|
720
724
|
// but we still want it as a string
|
|
@@ -1084,9 +1088,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1084
1088
|
if (module) {
|
|
1085
1089
|
return module[exportName];
|
|
1086
1090
|
}
|
|
1087
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1088
1091
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1089
|
-
/* @vite-ignore */
|
|
1090
1092
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1091
1093
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1092
1094
|
/* webpackMode: "lazy" */
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-33a98fae.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -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([["lottery-draw-results.cjs",[[1,"lottery-draw-results",{"endpoint":[1],"gameId":[1,"game-id"],"language":[1],"playerId":[1,"player-id"],"drawMode":[4,"draw-mode"],"drawId":[1,"draw-id"],"gameName":[1,"game-name"],"multiplier":[
|
|
17
|
+
return index.bootstrapLazy([["lottery-draw-results.cjs",[[1,"lottery-draw-results",{"endpoint":[1],"gameId":[1,"game-id"],"language":[1],"playerId":[1,"player-id"],"drawMode":[4,"draw-mode"],"drawId":[1,"draw-id"],"gameName":[1,"game-name"],"ticketDate":[1,"ticket-date"],"ticketStatus":[1,"ticket-status"],"ticketId":[1,"ticket-id"],"ticketAmount":[1,"ticket-amount"],"ticketMultiplier":[4,"ticket-multiplier"],"ticketDrawCount":[2,"ticket-draw-count"],"multiplier":[32],"isLoading":[32],"drawResults":[32],"rules":[32],"toggleDrawer":[32],"hasErrors":[32],"errorText":[32]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-33a98fae.js');
|
|
6
6
|
require('@everymatrix/lottery-grid');
|
|
7
7
|
|
|
8
8
|
const DEFAULT_LANGUAGE = 'en';
|
|
@@ -17,7 +17,13 @@ const TRANSLATIONS = {
|
|
|
17
17
|
drawNumbersGridTicket: 'Draw numbers Grid B',
|
|
18
18
|
ticketResult: 'Ticket result',
|
|
19
19
|
amountWon: 'Amount won',
|
|
20
|
-
numberOfDraws: 'Number of draws'
|
|
20
|
+
numberOfDraws: 'Number of draws',
|
|
21
|
+
multiplier: 'Multiplier:',
|
|
22
|
+
ticketPurchaseDate: 'Ticket Purchase Date',
|
|
23
|
+
ticketStatus: 'Ticket Status',
|
|
24
|
+
ticketId: 'Ticket ID',
|
|
25
|
+
ticketAmount: 'Ticket Amount',
|
|
26
|
+
winUpTo: 'Win up to',
|
|
21
27
|
},
|
|
22
28
|
ro: {
|
|
23
29
|
drawResultsHeader: 'Ultimele rezultate extragere',
|
|
@@ -28,7 +34,13 @@ const TRANSLATIONS = {
|
|
|
28
34
|
drawNumbersGridTicket: 'Numerele extrase Grid B',
|
|
29
35
|
ticketResult: 'Rezultatul biletului',
|
|
30
36
|
amountWon: 'Suma castigata',
|
|
31
|
-
numberOfDraws: 'Numarul de extrageri'
|
|
37
|
+
numberOfDraws: 'Numarul de extrageri',
|
|
38
|
+
multiplier: 'Multiplicator:',
|
|
39
|
+
ticketPurchaseDate: 'Data achizitionarii biletului',
|
|
40
|
+
ticketStatus: 'Statusul biletului',
|
|
41
|
+
ticketId: 'Id biletul',
|
|
42
|
+
ticketAmount: 'Valoarea biletului',
|
|
43
|
+
winUpTo: 'Poti castiga'
|
|
32
44
|
},
|
|
33
45
|
};
|
|
34
46
|
const translate = (key, customLang) => {
|
|
@@ -36,22 +48,8 @@ const translate = (key, customLang) => {
|
|
|
36
48
|
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
37
49
|
};
|
|
38
50
|
|
|
39
|
-
const lotteryDrawResultsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.TicketInfo{display:flex;flex-direction:row;gap:15px;background-color:#009993;color:#fff;padding:12px;font-size:14px}.DrawResultsSection{max-width:
|
|
51
|
+
const lotteryDrawResultsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.TicketInfo{display:flex;flex-direction:row;gap:15px;background-color:#009993;color:#fff;padding:12px;font-size:14px}.DrawResultsArea{margin-top:15px}.DrawResultsSection{max-width:600px;margin:0px auto;border-radius:4px}.DrawResultsHeader{display:flex;justify-content:space-between;padding:10px 20px;background-color:#009993;color:#fff;font-size:14px;border-radius:4px 4px 0 0}.DrawResultsHeader h4{text-transform:uppercase;font-weight:400;margin:0;padding-top:15px}.DrawMultipler label{display:block;margin:15px 0}.DrawResultsBody{padding:0px 20px;margin-bottom:5px;border-radius:0 0 4px 4px;border:1px solid #009993}.DrawResultsBody .DrawNumbersGrid{font-size:14px}.DrawResultsBody .NumberOfDrawsContainer{display:table;width:100%}.Toggle{cursor:pointer;display:inline-block}.ToggleSwitch{display:inline-block;background:#ccc;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%, #eee 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:#56c080}.ToggleCheckbox:checked+.ToggleSwitch:before{left:38px}.ToggleCheckbox{position:absolute;visibility:hidden}.Label{margin-right:5px;position:relative;top:2px}.DrawTicketsContainer{margin:30px auto}.ExpandableBoxes{position:relative}.ExpandableBox{line-height:12px;font-weight:lighter;width:100%;height:100%;max-height:70px;float:left;margin:0 0 20px 0;border:1px solid #f1f1f1;background:#fff;border-radius:4px;padding:10px;-webkit-transition:all 0.6s ease-in-out;-moz-transition:all 0.6s ease-in-out;-o-transition:all 0.6s ease-in-out;-ms-transition:all 0.6s ease-in-out;transition:all 0.6s ease-in-out;overflow:hidden;box-shadow:rgba(99, 99, 99, 0.2) 0px 2px 8px 0px}.ExpandableBox.ShowBox{max-height:400px;margin:0px 0px 20p 0px}.ExpandableBox.HideBox{width:0;height:0;overflow:hidden;border:none;padding:0;margin:0;opacity:0}";
|
|
40
52
|
|
|
41
|
-
const DEFAULT_VALUES = {
|
|
42
|
-
gamename: 'Chrono',
|
|
43
|
-
gamedate: '24/09/2022',
|
|
44
|
-
state: 'Processing',
|
|
45
|
-
amount: 304444,
|
|
46
|
-
ticketid: '6963444',
|
|
47
|
-
selection: '[5, 6, 7, 8, 9]',
|
|
48
|
-
multiplier: 4.5,
|
|
49
|
-
resultstatus: 'Processing',
|
|
50
|
-
drawstatus: 'Won',
|
|
51
|
-
drawamount: 1022,
|
|
52
|
-
drawid: '54545555',
|
|
53
|
-
drawdate: '24/09/2032'
|
|
54
|
-
};
|
|
55
53
|
const LotteryDrawResults = class {
|
|
56
54
|
constructor(hostRef) {
|
|
57
55
|
index.registerInstance(this, hostRef);
|
|
@@ -63,9 +61,39 @@ const LotteryDrawResults = class {
|
|
|
63
61
|
* Shows only the last draw
|
|
64
62
|
*/
|
|
65
63
|
this.drawMode = false;
|
|
64
|
+
/**
|
|
65
|
+
* The drawID (option)
|
|
66
|
+
*/
|
|
67
|
+
this.drawId = '';
|
|
68
|
+
/**
|
|
69
|
+
* The game name
|
|
70
|
+
*/
|
|
66
71
|
this.gameName = '';
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
/**
|
|
73
|
+
* The ticket submission date
|
|
74
|
+
*/
|
|
75
|
+
this.ticketDate = '';
|
|
76
|
+
/**
|
|
77
|
+
* The ticket status
|
|
78
|
+
*/
|
|
79
|
+
this.ticketStatus = '';
|
|
80
|
+
/**
|
|
81
|
+
* The ticket id
|
|
82
|
+
*/
|
|
83
|
+
this.ticketId = '';
|
|
84
|
+
/**
|
|
85
|
+
* The ticket amount
|
|
86
|
+
*/
|
|
87
|
+
this.ticketAmount = '';
|
|
88
|
+
/**
|
|
89
|
+
* The ticket multiplier
|
|
90
|
+
*/
|
|
91
|
+
this.ticketMultiplier = false;
|
|
92
|
+
/**
|
|
93
|
+
* The ticket draw count
|
|
94
|
+
*/
|
|
95
|
+
this.ticketDrawCount = 0;
|
|
96
|
+
this.multiplier = 3;
|
|
69
97
|
this.isLoading = true;
|
|
70
98
|
this.drawResults = [];
|
|
71
99
|
this.rules = {};
|
|
@@ -87,9 +115,6 @@ const LotteryDrawResults = class {
|
|
|
87
115
|
connectedCallback() {
|
|
88
116
|
let promises = [];
|
|
89
117
|
promises.push(this.getGameData());
|
|
90
|
-
if (this.playerId) {
|
|
91
|
-
promises.push(this.getTicketData());
|
|
92
|
-
}
|
|
93
118
|
if (this.drawId) {
|
|
94
119
|
promises.push(this.getDrawData());
|
|
95
120
|
}
|
|
@@ -109,9 +134,11 @@ const LotteryDrawResults = class {
|
|
|
109
134
|
.then((data) => {
|
|
110
135
|
this.drawData = data;
|
|
111
136
|
resolve(true);
|
|
137
|
+
this.isLoading = false;
|
|
112
138
|
})
|
|
113
139
|
.catch((err) => {
|
|
114
140
|
reject(err);
|
|
141
|
+
this.isLoading = false;
|
|
115
142
|
});
|
|
116
143
|
});
|
|
117
144
|
}
|
|
@@ -128,6 +155,8 @@ const LotteryDrawResults = class {
|
|
|
128
155
|
totalNumbers: data.rules.boards[0].totalNumbers
|
|
129
156
|
};
|
|
130
157
|
resolve(true);
|
|
158
|
+
this.isLoading = false;
|
|
159
|
+
this.hasErrors = false;
|
|
131
160
|
})
|
|
132
161
|
.catch((err) => {
|
|
133
162
|
this.isLoading = false;
|
|
@@ -137,26 +166,7 @@ const LotteryDrawResults = class {
|
|
|
137
166
|
});
|
|
138
167
|
});
|
|
139
168
|
}
|
|
140
|
-
getTicketData() {
|
|
141
|
-
return new Promise((resolve, reject) => {
|
|
142
|
-
let url = new URL(`${this.endpoint}/tickets/player/${this.playerId}`);
|
|
143
|
-
fetch(url.href)
|
|
144
|
-
.then((response) => {
|
|
145
|
-
return response.json();
|
|
146
|
-
})
|
|
147
|
-
.then((data) => {
|
|
148
|
-
this.ticketData = data.length === 0 ? DEFAULT_VALUES : data[1];
|
|
149
|
-
this.drawResults = this.ticketData.drawResults.map((item) => item);
|
|
150
|
-
this.selection = this.ticketData.selection[0].join(',');
|
|
151
|
-
resolve(true);
|
|
152
|
-
})
|
|
153
|
-
.catch((err) => {
|
|
154
|
-
reject(err);
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
169
|
render() {
|
|
159
|
-
var _a, _b, _c, _d, _e, _f;
|
|
160
170
|
if (this.isLoading) {
|
|
161
171
|
return (index.h("p", null, "Loading, please wait ..."));
|
|
162
172
|
}
|
|
@@ -165,12 +175,11 @@ const LotteryDrawResults = class {
|
|
|
165
175
|
}
|
|
166
176
|
else {
|
|
167
177
|
return (index.h("section", { class: "DrawResultsSection" }, !this.drawMode ?
|
|
168
|
-
index.h("div", { class: "DrawResultsArea" }, index.h("div", { class: "TicketInfo" }, index.h("div", { class: "TicketGameName" }, translate('drawName', this.language), ": ", index.h("span", null, this.gameName)), index.h("div", { class: "TicketDate" },
|
|
169
|
-
|
|
170
|
-
index.h("div", { class: "AmountWonContainer" }, index.h("p", null, translate('amountWon', this.language), ": ", Number(item.amount).toLocaleString('en'), " ", item.currency)), index.h("div", { class: "DrawIdContainer" }, index.h("p", null, translate('drawId', this.language), ": ", item.drawId)), index.h("div", { class: "DrawDateContainer" }, index.h("p", null, translate('drawDate', this.language), ": ", item.updatedAt.slice(0, 10), " | ", item.updatedAt.slice(11, 19))), index.h("div", { class: "DrawNumbersGrid" }), index.h("div", { class: "DrawMultipler" }, index.h("label", { class: "Label" }, "Multiplier: ", item.multiplier)))))))))
|
|
178
|
+
index.h("div", { class: "DrawResultsArea" }, index.h("div", { class: "TicketInfo" }, index.h("div", { class: "TicketGameName" }, translate('drawName', this.language), ": ", index.h("span", null, this.gameName)), index.h("div", { class: "TicketDate" }, translate('ticketPurchaseDate', this.language), ": ", index.h("span", null, this.ticketDate.slice(0, 10))), index.h("div", { class: "TicketStatus" }, translate('ticketStatus', this.language), ": ", index.h("span", null, this.ticketStatus))), index.h("div", { class: "DrawResultsBody" }, index.h("div", { class: "TicketIdContainer" }, index.h("p", null, translate('ticketId', this.language), ": ", index.h("span", null, this.ticketId))), index.h("div", { class: "TicketAmountContainer" }, index.h("p", null, translate('ticketAmount', this.language), " ", index.h("span", null, this.ticketAmount))), index.h("div", { class: "DrawNumbersGrid" }, index.h("p", null, translate('drawNumbersGridTicket', this.language), ":"), index.h("div", { class: "BulletContainer" }, index.h("lottery-grid", { "maximum-allowed": this.rules.maximumAllowed, "total-numbers": this.rules.totalNumbers, "selected-numbers": this.selection, selectable: false, "display-selected": true, language: this.language }))), index.h("div", { class: "DrawMultipler" }, index.h("label", { class: "Label" }, translate('winUpTo', this.language), " ", index.h("span", null, JSON.stringify(this.ticketMultiplier)))), index.h("div", { class: "NumberOfDrawsContainer" }, index.h("p", null, translate('numberOfDraws', this.language), ": ", this.ticketDrawCount), index.h("div", { class: "DrawTicketsContainer" }, this.drawResults.map((item, index$1) => index.h("div", { class: "ExpandableBoxes" }, index.h("div", { class: this.toggleDrawer[index$1] ? 'ExpandableBox ShowBox' : 'ExpandableBox', onClick: () => this.changeBox(index$1) }, index.h("div", { class: "TicketResultContainer" }, index.h("p", null, translate('ticketResult', this.language), ": ", item.status)), item.state == 'won' &&
|
|
179
|
+
index.h("div", { class: "AmountWonContainer" }, index.h("p", null, translate('amountWon', this.language), ": ", Number(item.amount).toLocaleString('en'), " ", item.currency)), index.h("div", { class: "DrawIdContainer" }, index.h("p", null, translate('drawId', this.language), ": ", item.drawId)), index.h("div", { class: "DrawDateContainer" }, index.h("p", null, translate('drawDate', this.language), ": ", item.updatedAt.slice(0, 10), " | ", item.updatedAt.slice(11, 19))), index.h("div", { class: "DrawNumbersGrid" }), index.h("div", { class: "DrawMultipler" }, index.h("label", { class: "Label" }, translate('winUpTo', this.language), " ", item.multiplier)))))))))
|
|
171
180
|
:
|
|
172
181
|
index.h("div", { class: "DrawResultsArea" }, this.drawData &&
|
|
173
|
-
index.h("div", null, index.h("div", { class: "DrawResultsHeader" }, index.h("span", null, translate('drawId', this.language), ": ", this.drawData.id), index.h("span", null, translate('drawDate', this.language), ": ", this.drawData.date.slice(0, 10))), index.h("div", { class: "DrawResultsBody" }, index.h("div", { class: "DrawNumbersGrid" }, index.h("p", null, translate('drawNumbersGridDraw', this.language), ":"), index.h("div", { class: "BulletContainer" }, index.h("lottery-grid", { "maximum-allowed": this.rules.maximumAllowed, "total-numbers": this.rules.totalNumbers, selectedNumbers: this.drawData.winningNumbers.join(','), "display-selected": true, selectable: false, language: this.language })), index.h("div", { class: "DrawMultipler" }, index.h("label", { class: "Label" }, "
|
|
182
|
+
index.h("div", null, index.h("div", { class: "DrawResultsHeader" }, index.h("span", null, translate('drawId', this.language), ": ", this.drawData.id), index.h("span", null, translate('drawDate', this.language), ": ", this.drawData.date.slice(0, 10))), index.h("div", { class: "DrawResultsBody" }, index.h("div", { class: "DrawNumbersGrid" }, index.h("p", null, translate('drawNumbersGridDraw', this.language), ":"), index.h("div", { class: "BulletContainer" }, index.h("lottery-grid", { "maximum-allowed": this.rules.maximumAllowed, "total-numbers": this.rules.totalNumbers, selectedNumbers: this.drawData.winningNumbers.join(','), "display-selected": true, selectable: false, language: this.language })), index.h("div", { class: "DrawMultipler" }, index.h("label", { class: "Label" }, translate('multiplier', this.language), " ", this.multiplier))))))));
|
|
174
183
|
}
|
|
175
184
|
}
|
|
176
185
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-33a98fae.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
9
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lottery-draw-results.cjs.js', document.baseURI).href));
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["lottery-draw-results.cjs",[[1,"lottery-draw-results",{"endpoint":[1],"gameId":[1,"game-id"],"language":[1],"playerId":[1,"player-id"],"drawMode":[4,"draw-mode"],"drawId":[1,"draw-id"],"gameName":[1,"game-name"],"multiplier":[
|
|
18
|
+
return index.bootstrapLazy([["lottery-draw-results.cjs",[[1,"lottery-draw-results",{"endpoint":[1],"gameId":[1,"game-id"],"language":[1],"playerId":[1,"player-id"],"drawMode":[4,"draw-mode"],"drawId":[1,"draw-id"],"gameName":[1,"game-name"],"ticketDate":[1,"ticket-date"],"ticketStatus":[1,"ticket-status"],"ticketId":[1,"ticket-id"],"ticketAmount":[1,"ticket-amount"],"ticketMultiplier":[4,"ticket-multiplier"],"ticketDrawCount":[2,"ticket-draw-count"],"multiplier":[32],"isLoading":[32],"drawResults":[32],"rules":[32],"toggleDrawer":[32],"hasErrors":[32],"errorText":[32]}]]]], options);
|
|
19
19
|
});
|
|
@@ -14,10 +14,13 @@
|
|
|
14
14
|
font-size: 14px;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
.DrawResultsArea {
|
|
18
|
+
margin-top: 15px;
|
|
19
|
+
}
|
|
20
|
+
|
|
17
21
|
.DrawResultsSection {
|
|
18
|
-
max-width:
|
|
19
|
-
margin:
|
|
20
|
-
margin: 0px auto 10px;
|
|
22
|
+
max-width: 600px;
|
|
23
|
+
margin: 0px auto;
|
|
21
24
|
border-radius: 4px;
|
|
22
25
|
}
|
|
23
26
|
|
|
@@ -28,11 +31,13 @@
|
|
|
28
31
|
background-color: #009993;
|
|
29
32
|
color: #fff;
|
|
30
33
|
font-size: 14px;
|
|
34
|
+
border-radius: 4px 4px 0 0;
|
|
31
35
|
}
|
|
32
36
|
.DrawResultsHeader h4 {
|
|
33
37
|
text-transform: uppercase;
|
|
34
38
|
font-weight: 400;
|
|
35
39
|
margin: 0;
|
|
40
|
+
padding-top: 15px;
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
.DrawMultipler label {
|
|
@@ -41,7 +46,10 @@
|
|
|
41
46
|
}
|
|
42
47
|
|
|
43
48
|
.DrawResultsBody {
|
|
44
|
-
padding:
|
|
49
|
+
padding: 0px 20px;
|
|
50
|
+
margin-bottom: 5px;
|
|
51
|
+
border-radius: 0 0 4px 4px;
|
|
52
|
+
border: 1px solid #009993;
|
|
45
53
|
}
|
|
46
54
|
.DrawResultsBody .DrawNumbersGrid {
|
|
47
55
|
font-size: 14px;
|
|
@@ -115,21 +123,24 @@
|
|
|
115
123
|
}
|
|
116
124
|
|
|
117
125
|
.ExpandableBox {
|
|
126
|
+
line-height: 12px;
|
|
127
|
+
font-weight: lighter;
|
|
118
128
|
width: 100%;
|
|
119
129
|
height: 100%;
|
|
120
|
-
max-height:
|
|
130
|
+
max-height: 70px;
|
|
121
131
|
float: left;
|
|
122
132
|
margin: 0 0 20px 0;
|
|
123
|
-
border: 1px solid #
|
|
133
|
+
border: 1px solid #f1f1f1;
|
|
134
|
+
background: #fff;
|
|
124
135
|
border-radius: 4px;
|
|
125
136
|
padding: 10px;
|
|
126
|
-
box-sizing: border-box;
|
|
127
137
|
-webkit-transition: all 0.6s ease-in-out;
|
|
128
138
|
-moz-transition: all 0.6s ease-in-out;
|
|
129
139
|
-o-transition: all 0.6s ease-in-out;
|
|
130
140
|
-ms-transition: all 0.6s ease-in-out;
|
|
131
141
|
transition: all 0.6s ease-in-out;
|
|
132
142
|
overflow: hidden;
|
|
143
|
+
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
|
133
144
|
}
|
|
134
145
|
|
|
135
146
|
.ExpandableBox.ShowBox {
|