@everymatrix/lottery-draw-results 1.52.6 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-ce32069d.js → index-5a3c71df.js} +22 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottery-bullet_3.cjs.entry.js +147 -66
- package/dist/cjs/lottery-draw-results.cjs.js +2 -2
- package/dist/collection/components/lottery-draw-results/lottery-draw-results.css +16 -61
- package/dist/collection/components/lottery-draw-results/lottery-draw-results.js +94 -9
- package/dist/collection/utils/locale.utils.js +20 -14
- package/dist/esm/{index-7f1fc262.js → index-a95b5bd5.js} +22 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lottery-bullet_3.entry.js +147 -66
- 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-56a52d39.entry.js +1 -0
- package/dist/lottery-draw-results/p-61f489f2.js +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/lottery-draw-results/lottery-draw-results.d.ts +15 -1
- package/dist/types/components.d.ts +26 -2
- package/package.json +1 -1
- package/dist/lottery-draw-results/p-6b3a779d.entry.js +0 -1
- package/dist/lottery-draw-results/p-defeec48.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-draw-results/.stencil/packages/stencil/lottery-draw-results/stencil.config.dev.d.ts +0 -2
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: row;
|
|
10
10
|
gap: 15px;
|
|
11
|
-
background-color: #009993;
|
|
12
|
-
color:
|
|
11
|
+
background-color: var(--emw--color-background, #009993);
|
|
12
|
+
color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
|
|
13
13
|
padding: 12px;
|
|
14
14
|
font-size: 14px;
|
|
15
15
|
}
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
display: flex;
|
|
39
39
|
justify-content: space-between;
|
|
40
40
|
padding: 10px 20px;
|
|
41
|
-
background-color: #009993;
|
|
42
|
-
color:
|
|
41
|
+
background-color: var(--emw--color-background, #009993);
|
|
42
|
+
color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
|
|
43
43
|
font-size: 14px;
|
|
44
44
|
border-radius: 4px 4px 0 0;
|
|
45
45
|
}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
padding: 20px;
|
|
55
55
|
margin-bottom: 5px;
|
|
56
56
|
border-radius: 0 0 4px 4px;
|
|
57
|
-
border: 1px solid #009993;
|
|
57
|
+
border: 1px solid var(--emw--color-typography, #009993);
|
|
58
58
|
}
|
|
59
59
|
.DrawResultsBody > div {
|
|
60
60
|
margin: 10px 0;
|
|
@@ -74,55 +74,6 @@
|
|
|
74
74
|
margin-bottom: 7px;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.Toggle {
|
|
78
|
-
cursor: pointer;
|
|
79
|
-
display: inline-block;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ToggleSwitch {
|
|
83
|
-
display: inline-block;
|
|
84
|
-
background: #ccc;
|
|
85
|
-
border-radius: 16px;
|
|
86
|
-
width: 58px;
|
|
87
|
-
height: 24px;
|
|
88
|
-
position: relative;
|
|
89
|
-
vertical-align: middle;
|
|
90
|
-
transition: background 0.25s;
|
|
91
|
-
}
|
|
92
|
-
.ToggleSwitch:before, .ToggleSwitch:after {
|
|
93
|
-
content: "";
|
|
94
|
-
}
|
|
95
|
-
.ToggleSwitch:before {
|
|
96
|
-
display: block;
|
|
97
|
-
background: linear-gradient(to bottom, #fff 0%, #eee 100%);
|
|
98
|
-
border-radius: 50%;
|
|
99
|
-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
|
|
100
|
-
width: 16px;
|
|
101
|
-
height: 16px;
|
|
102
|
-
position: absolute;
|
|
103
|
-
top: 4px;
|
|
104
|
-
left: 4px;
|
|
105
|
-
transition: left 0.25s;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.Toggle:hover .ToggleSwitch:before {
|
|
109
|
-
background: linear-gradient(to bottom, #fff 0%, #fff 100%);
|
|
110
|
-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.ToggleCheckbox:checked + .ToggleSwitch {
|
|
114
|
-
background: #56c080;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.ToggleCheckbox:checked + .ToggleSwitch:before {
|
|
118
|
-
left: 38px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.ToggleCheckbox {
|
|
122
|
-
position: absolute;
|
|
123
|
-
visibility: hidden;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
77
|
.Label {
|
|
127
78
|
position: relative;
|
|
128
79
|
}
|
|
@@ -137,17 +88,21 @@
|
|
|
137
88
|
margin-top: 15px;
|
|
138
89
|
}
|
|
139
90
|
|
|
91
|
+
.DrawPrizes {
|
|
92
|
+
margin-top: 10px;
|
|
93
|
+
}
|
|
94
|
+
|
|
140
95
|
.ExpandableBoxes {
|
|
141
96
|
position: relative;
|
|
142
97
|
display: flex;
|
|
143
98
|
flex-direction: column;
|
|
144
|
-
border: 1px solid #ccc;
|
|
99
|
+
border: 1px solid var(--emw--color-gray-transparency-80, #ccc);
|
|
145
100
|
border-radius: 5px;
|
|
146
|
-
background-color:
|
|
101
|
+
background-color: var(--emw--color-gray-transparency-100, rgb(255, 255, 255));
|
|
147
102
|
}
|
|
148
103
|
|
|
149
104
|
.ExpandableBox {
|
|
150
|
-
border-bottom: 1px solid #ccc;
|
|
105
|
+
border-bottom: 1px solid var(--emw--color-gray-transparency-80, #ccc);
|
|
151
106
|
transition: height 300ms ease-in-out;
|
|
152
107
|
overflow: hidden;
|
|
153
108
|
height: 80px;
|
|
@@ -166,7 +121,7 @@
|
|
|
166
121
|
margin-left: 5px;
|
|
167
122
|
}
|
|
168
123
|
.ShowBox > .ExpandableBoxHeader {
|
|
169
|
-
color: #009993;
|
|
124
|
+
color: var(--emw--color-typography, #009993);
|
|
170
125
|
}
|
|
171
126
|
.ExpandableBoxHeader::-webkit-details-marker {
|
|
172
127
|
display: none;
|
|
@@ -181,7 +136,7 @@
|
|
|
181
136
|
height: 2px;
|
|
182
137
|
margin-top: -1px;
|
|
183
138
|
width: 16px;
|
|
184
|
-
background: #009993;
|
|
139
|
+
background: var(--emw--color-background, #009993);
|
|
185
140
|
}
|
|
186
141
|
.ExpandableBoxHeader:after {
|
|
187
142
|
right: 28px;
|
|
@@ -190,7 +145,7 @@
|
|
|
190
145
|
margin-top: -8px;
|
|
191
146
|
width: 2px;
|
|
192
147
|
margin-left: -1px;
|
|
193
|
-
background: #009993;
|
|
148
|
+
background: var(--emw--color-background, #009993);
|
|
194
149
|
transition: all 300ms ease-in-out;
|
|
195
150
|
}
|
|
196
151
|
.ShowBox .ExpandableBoxHeader:after {
|
|
@@ -203,5 +158,5 @@
|
|
|
203
158
|
margin-left: 5px;
|
|
204
159
|
}
|
|
205
160
|
.ExpandableBox.ShowBox {
|
|
206
|
-
height:
|
|
161
|
+
height: auto;
|
|
207
162
|
}
|
|
@@ -28,13 +28,16 @@ export class LotteryDrawResults {
|
|
|
28
28
|
this.ticketStatus = '';
|
|
29
29
|
this.ticketId = '';
|
|
30
30
|
this.ticketAmount = '';
|
|
31
|
+
this.ticketCurrency = '';
|
|
31
32
|
this.ticketMultiplier = false;
|
|
33
|
+
this.ticketMultiplierNum = undefined;
|
|
32
34
|
this.ticketDrawCount = 0;
|
|
33
35
|
this.ticketNumbers = '';
|
|
34
36
|
this.sessionId = '';
|
|
35
37
|
this.clientStyling = '';
|
|
36
38
|
this.clientStylingUrlContent = '';
|
|
37
39
|
this.ticketDrawData = '';
|
|
40
|
+
this.tabValue = '';
|
|
38
41
|
this.multiplier = 3;
|
|
39
42
|
this.isLoading = true;
|
|
40
43
|
this.hasErrors = false;
|
|
@@ -50,7 +53,19 @@ export class LotteryDrawResults {
|
|
|
50
53
|
let promises = [];
|
|
51
54
|
// Split ticket numbers for each grid
|
|
52
55
|
if (this.ticketNumbers) {
|
|
53
|
-
|
|
56
|
+
let ticketNumbers = [];
|
|
57
|
+
try {
|
|
58
|
+
ticketNumbers = JSON.parse(this.ticketNumbers);
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
ticketNumbers = [];
|
|
62
|
+
}
|
|
63
|
+
this.gridNumbers = ticketNumbers.map(item => {
|
|
64
|
+
return item.selections;
|
|
65
|
+
});
|
|
66
|
+
this.gridSecondaryNumbers = ticketNumbers.map(item => {
|
|
67
|
+
return item.secondarySelections || [];
|
|
68
|
+
});
|
|
54
69
|
}
|
|
55
70
|
if (this.drawId) {
|
|
56
71
|
promises.push(this.getDrawData());
|
|
@@ -67,7 +82,7 @@ export class LotteryDrawResults {
|
|
|
67
82
|
if (this.ticketDrawData && this.ticketDrawDetailsFlag) {
|
|
68
83
|
this.ticketDrawDetails = JSON.parse(this.ticketDrawData);
|
|
69
84
|
this.ticketDrawDetails.forEach((drawDetail) => {
|
|
70
|
-
this.getDrawData(drawDetail.drawId).then((drawData) => drawDetail.drawData = drawData);
|
|
85
|
+
this.getDrawData(drawDetail.drawId).then((drawData) => drawDetail.drawData = Object.assign({}, drawData));
|
|
71
86
|
});
|
|
72
87
|
this.ticketDrawDetailsFlag = false;
|
|
73
88
|
}
|
|
@@ -119,6 +134,17 @@ export class LotteryDrawResults {
|
|
|
119
134
|
this.toggleDrawer.push(true);
|
|
120
135
|
}
|
|
121
136
|
}
|
|
137
|
+
getDivision(detail, drawDetail) {
|
|
138
|
+
var _a, _b;
|
|
139
|
+
let division = detail.division;
|
|
140
|
+
let prize = (_b = (_a = drawDetail.drawData) === null || _a === void 0 ? void 0 : _a.prizes) === null || _b === void 0 ? void 0 : _b.filter(prize => prize.order === division);
|
|
141
|
+
if (prize && prize.length) {
|
|
142
|
+
return prize[0].division;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
122
148
|
render() {
|
|
123
149
|
if (this.isLoading) {
|
|
124
150
|
return (h("p", null, "Loading, please wait ..."));
|
|
@@ -129,18 +155,24 @@ export class LotteryDrawResults {
|
|
|
129
155
|
else {
|
|
130
156
|
return (h("section", { class: "DrawResultsSection", ref: el => this.stylingContainer = el }, this.drawMode ?
|
|
131
157
|
h("div", { class: "DrawResultsArea" }, this.drawData &&
|
|
132
|
-
h("div", null, h("div", { class: "DrawResultsHeader" }, h("span", null, translate('drawId', this.language), ": ", this.drawData.id), h("span", null, translate('drawDate', this.language), ": ", this.drawData.date.slice(0, 10))), h("div", { class: "DrawResultsBody" }, h("div", { class: "DrawNumbersGrid" }, h("p", null, translate('drawNumbersGridDraw', this.language)
|
|
158
|
+
h("div", null, h("div", { class: "DrawResultsHeader" }, h("span", null, translate('drawId', this.language), ": ", this.drawData.id), h("span", null, translate('drawDate', this.language), ": ", this.drawData.date.slice(0, 10))), h("div", { class: "DrawResultsBody" }, h("div", { class: "DrawNumbersGrid" }, h("p", null, translate('drawNumbersGridDraw', this.language)), h("div", { class: "BulletContainer" }, h("lottery-grid", { "selected-numbers": this.drawData.winningNumbers.length && this.drawData.winningNumbers[0]['numbers'].join(','), "secondary-numbers": this.drawData.winningNumbers.length ? this.drawData.winningNumbers[0]['secondaryNumbers'].join(',') : '', "display-selected": true, selectable: false, language: this.language, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), h("div", { class: "DrawPrizes" }, h("label", { class: "Label" }, translate('prize', this.language), " "), this.drawData.prizes.length ? h("div", null, " ", this.drawData.prizes.filter(item => item.division !== 'None').map((prize) => h("div", null, h("span", { style: { 'margin-right': '5px' } }, prize.division, ":"), h("span", { style: { 'margin-right': '2px' } }, prize.amount.value), h("span", null, prize.amount.currency)))) : h("div", null, "None"))))))
|
|
133
159
|
:
|
|
134
|
-
h("div", { class: "DrawResultsArea TicketDraws" }, h("div", { class: "DrawResultsBody" }, h("div", { class: "TicketIdContainer" }, h("label", { class: "Label" }, translate('ticketId', this.language), ": ", h("span", null, this.ticketId))), h("div", { class: "TicketAmountContainer" }, h("label", { class: "Label" }, translate('ticketAmount', this.language), " ", h("span", null, this.ticketAmount)
|
|
160
|
+
h("div", { class: "DrawResultsArea TicketDraws" }, h("div", { class: "DrawResultsBody" }, h("div", { class: "TicketIdContainer" }, h("label", { class: "Label" }, translate('ticketId', this.language), ": ", h("span", null, this.ticketId))), h("div", { class: "TicketAmountContainer" }, h("label", { class: "Label" }, translate('ticketAmount', this.language), ": ", h("span", null, this.ticketAmount), h("span", null, this.ticketCurrency))), h("div", { class: "DrawNumbersGrid" }, this.gridNumbers.map((grid, index) => {
|
|
161
|
+
var _a;
|
|
162
|
+
return h("div", null, h("label", { class: "Label" }, translate('drawNumbersGridTicket', this.language), ":"), h("div", { class: "BulletContainer" }, h("lottery-grid", { "selected-numbers": grid.join(','), "secondary-numbers": (_a = this.gridSecondaryNumbers[index]) === null || _a === void 0 ? void 0 : _a.join(','), selectable: false, "display-selected": true, language: this.language, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })));
|
|
163
|
+
})), this.ticketMultiplier &&
|
|
164
|
+
h("div", { class: "DrawMultipler" }, h("label", { class: "Label" }, translate('multiplierNum', this.language), ": ", this.ticketMultiplierNum)), h("div", { class: "NumberOfDrawsContainer" }, h("label", { class: "Label" }, translate('numberOfDraws', this.language), ": ", this.ticketDrawCount), h("div", { class: "DrawTicketsContainer" }, this.tabValue === 'Settled' && this.ticketDrawDetails && this.ticketDrawDetails.length > 0 &&
|
|
135
165
|
h("div", { class: "ExpandableBoxes" }, this.ticketDrawDetails.map((drawDetail, index) => {
|
|
136
|
-
var _a, _b, _c, _d, _e;
|
|
137
|
-
return h("div", { class: { 'ExpandableBox': true, 'ShowBox': this.toggleDrawer[index] }, onClick:
|
|
166
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
167
|
+
return h("div", { class: { 'ExpandableBox': true, 'ShowBox': this.toggleDrawer[index] }, onClick: this.drawerToggle.bind(this, index) }, h("div", { class: "ExpandableBoxHeader" }, h("div", { class: "TicketResultContainer" }, h("p", null, translate('ticketResult', this.language), ": ", drawDetail.state)), drawDetail.state == 'won' &&
|
|
138
168
|
h("div", { class: "AmountWonContainer" }, h("p", null, translate('amountWon', this.language), ": ", Number(drawDetail.amount).toLocaleString('en'), " ", drawDetail.currency)), drawDetail.state == 'lost' &&
|
|
139
169
|
h("div", { class: "DrawIdContainer" }, h("p", null, translate('drawId', this.language), ": ", drawDetail.drawId))), h("div", { class: "ExpandableBoxBody" }, h("div", { class: "DrawIdContainer" }, h("p", null, translate('drawId', this.language), ": ", drawDetail.drawId)), h("div", { class: "DrawDateContainer" }, h("p", null, translate('drawDate', this.language), ": ", (_a = drawDetail.drawData) === null || _a === void 0 ? void 0 :
|
|
140
170
|
_a.date.slice(0, 10), " | ", (_b = drawDetail.drawData) === null || _b === void 0 ? void 0 :
|
|
141
171
|
_b.date.slice(11, 19))), h("div", { class: "DrawNumbersGrid" }, drawDetail.drawData &&
|
|
142
|
-
h("div", { class: 'BulletContainer' }, h("label", { class: "Label" }, translate('drawNumbersGridDraw', this.language), "
|
|
143
|
-
|
|
172
|
+
h("div", { class: 'BulletContainer' }, h("label", { class: "Label" }, translate('drawNumbersGridDraw', this.language), ":"), h("lottery-grid", { "selected-numbers": ((_d = (_c = drawDetail.drawData) === null || _c === void 0 ? void 0 : _c.winningNumbers) === null || _d === void 0 ? void 0 : _d.length) && ((_e = drawDetail.drawData.winningNumbers[0]['numbers']) === null || _e === void 0 ? void 0 : _e.join(',')), "secondary-numbers": ((_g = (_f = drawDetail.drawData) === null || _f === void 0 ? void 0 : _f.winningNumbers) === null || _g === void 0 ? void 0 : _g.length) && ((_h = drawDetail.drawData.winningNumbers[0]['secondaryNumbers']) === null || _h === void 0 ? void 0 : _h.join(',')), selectable: false, "display-selected": true, language: this.language, "grid-type": 'ticket', "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }))), h("div", { class: "DrawPrizes" }, h("label", { class: "Label" }, translate('prize', this.language), ":"), Number(drawDetail.amount) !== 0 ?
|
|
173
|
+
h("span", null, drawDetail.details.filter((item) => item.amount !== '0').map((detail) => h("span", null, this.getDivision(detail, drawDetail) &&
|
|
174
|
+
h("div", null, h("span", null, this.getDivision(detail, drawDetail), ":"), h("span", { style: { 'margin-right': '2px' } }, detail.amount), h("span", null, detail.currency)))))
|
|
175
|
+
: h("span", null, "None"))));
|
|
144
176
|
}))))))));
|
|
145
177
|
}
|
|
146
178
|
}
|
|
@@ -353,6 +385,24 @@ export class LotteryDrawResults {
|
|
|
353
385
|
"reflect": true,
|
|
354
386
|
"defaultValue": "''"
|
|
355
387
|
},
|
|
388
|
+
"ticketCurrency": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"mutable": false,
|
|
391
|
+
"complexType": {
|
|
392
|
+
"original": "string",
|
|
393
|
+
"resolved": "string",
|
|
394
|
+
"references": {}
|
|
395
|
+
},
|
|
396
|
+
"required": false,
|
|
397
|
+
"optional": false,
|
|
398
|
+
"docs": {
|
|
399
|
+
"tags": [],
|
|
400
|
+
"text": "The ticket currency"
|
|
401
|
+
},
|
|
402
|
+
"attribute": "ticket-currency",
|
|
403
|
+
"reflect": true,
|
|
404
|
+
"defaultValue": "''"
|
|
405
|
+
},
|
|
356
406
|
"ticketMultiplier": {
|
|
357
407
|
"type": "boolean",
|
|
358
408
|
"mutable": false,
|
|
@@ -365,12 +415,29 @@ export class LotteryDrawResults {
|
|
|
365
415
|
"optional": false,
|
|
366
416
|
"docs": {
|
|
367
417
|
"tags": [],
|
|
368
|
-
"text": "The ticket multiplier"
|
|
418
|
+
"text": "The ticket is multiplier or not"
|
|
369
419
|
},
|
|
370
420
|
"attribute": "ticket-multiplier",
|
|
371
421
|
"reflect": true,
|
|
372
422
|
"defaultValue": "false"
|
|
373
423
|
},
|
|
424
|
+
"ticketMultiplierNum": {
|
|
425
|
+
"type": "number",
|
|
426
|
+
"mutable": false,
|
|
427
|
+
"complexType": {
|
|
428
|
+
"original": "number",
|
|
429
|
+
"resolved": "number",
|
|
430
|
+
"references": {}
|
|
431
|
+
},
|
|
432
|
+
"required": false,
|
|
433
|
+
"optional": false,
|
|
434
|
+
"docs": {
|
|
435
|
+
"tags": [],
|
|
436
|
+
"text": "The ticket multiplier number"
|
|
437
|
+
},
|
|
438
|
+
"attribute": "ticket-multiplier-num",
|
|
439
|
+
"reflect": true
|
|
440
|
+
},
|
|
374
441
|
"ticketDrawCount": {
|
|
375
442
|
"type": "number",
|
|
376
443
|
"mutable": false,
|
|
@@ -478,6 +545,24 @@ export class LotteryDrawResults {
|
|
|
478
545
|
"attribute": "ticket-draw-data",
|
|
479
546
|
"reflect": true,
|
|
480
547
|
"defaultValue": "''"
|
|
548
|
+
},
|
|
549
|
+
"tabValue": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"mutable": false,
|
|
552
|
+
"complexType": {
|
|
553
|
+
"original": "string",
|
|
554
|
+
"resolved": "string",
|
|
555
|
+
"references": {}
|
|
556
|
+
},
|
|
557
|
+
"required": false,
|
|
558
|
+
"optional": false,
|
|
559
|
+
"docs": {
|
|
560
|
+
"tags": [],
|
|
561
|
+
"text": "the filter value"
|
|
562
|
+
},
|
|
563
|
+
"attribute": "tab-value",
|
|
564
|
+
"reflect": true,
|
|
565
|
+
"defaultValue": "''"
|
|
481
566
|
}
|
|
482
567
|
};
|
|
483
568
|
}
|
|
@@ -6,25 +6,27 @@ const TRANSLATIONS = {
|
|
|
6
6
|
drawId: 'Draw ID',
|
|
7
7
|
drawName: 'Game name',
|
|
8
8
|
drawDate: 'Draw Date',
|
|
9
|
-
drawNumbersGridDraw: 'Draw numbers
|
|
10
|
-
drawNumbersGridTicket: '
|
|
9
|
+
drawNumbersGridDraw: 'Draw numbers',
|
|
10
|
+
drawNumbersGridTicket: 'Selected Numbers',
|
|
11
11
|
ticketResult: 'Ticket result',
|
|
12
12
|
amountWon: 'Amount won',
|
|
13
13
|
numberOfDraws: 'Number of draws',
|
|
14
14
|
multiplier: 'Multiplier:',
|
|
15
|
+
multiplierNum: 'Multiplier Number',
|
|
15
16
|
ticketPurchaseDate: 'Ticket Purchase Date',
|
|
16
17
|
ticketStatus: 'Ticket Status',
|
|
17
18
|
ticketId: 'Ticket ID',
|
|
18
19
|
ticketAmount: 'Ticket Amount',
|
|
19
20
|
winUpTo: 'Win up to',
|
|
21
|
+
prize: 'Prizes'
|
|
20
22
|
},
|
|
21
23
|
ro: {
|
|
22
24
|
drawResultsHeader: 'Ultimele rezultate extragere',
|
|
23
25
|
drawId: 'Id extragere',
|
|
24
26
|
drawName: 'Numele jocului',
|
|
25
27
|
drawDate: 'Data extragerii',
|
|
26
|
-
drawNumbersGridDraw: 'Numerele extrase
|
|
27
|
-
drawNumbersGridTicket: '
|
|
28
|
+
drawNumbersGridDraw: 'Numerele extrase',
|
|
29
|
+
drawNumbersGridTicket: 'Numere selectate',
|
|
28
30
|
ticketResult: 'Rezultatul biletului',
|
|
29
31
|
amountWon: 'Suma castigata',
|
|
30
32
|
numberOfDraws: 'Numarul de extrageri',
|
|
@@ -33,15 +35,16 @@ const TRANSLATIONS = {
|
|
|
33
35
|
ticketStatus: 'Statusul biletului',
|
|
34
36
|
ticketId: 'Id biletul',
|
|
35
37
|
ticketAmount: 'Valoarea biletului',
|
|
36
|
-
winUpTo: 'Poti castiga'
|
|
38
|
+
winUpTo: 'Poti castiga',
|
|
39
|
+
prize: 'Premii'
|
|
37
40
|
},
|
|
38
41
|
fr: {
|
|
39
42
|
drawResultsHeader: 'Résultats du dernier tirage',
|
|
40
43
|
drawId: 'ID de tirage',
|
|
41
44
|
drawName: 'Nom du jeu',
|
|
42
45
|
drawDate: 'Date du tirage',
|
|
43
|
-
drawNumbersGridDraw: 'Tirage des numéros
|
|
44
|
-
drawNumbersGridTicket: '
|
|
46
|
+
drawNumbersGridDraw: 'Tirage des numéros',
|
|
47
|
+
drawNumbersGridTicket: 'Nombres sélectionnés',
|
|
45
48
|
ticketResult: 'Résultat du ticket',
|
|
46
49
|
amountWon: 'Montant gagné',
|
|
47
50
|
numberOfDraws: 'Nombre de tirages',
|
|
@@ -50,15 +53,16 @@ const TRANSLATIONS = {
|
|
|
50
53
|
ticketStatus: 'Statut du ticket',
|
|
51
54
|
ticketId: 'ID de billets',
|
|
52
55
|
ticketAmount: 'Montant du billet',
|
|
53
|
-
winUpTo: 'Gagnez jusqu\'à'
|
|
56
|
+
winUpTo: 'Gagnez jusqu\'à',
|
|
57
|
+
prize: 'Prix'
|
|
54
58
|
},
|
|
55
59
|
ar: {
|
|
56
60
|
drawResultsHeader: 'نتائج آخر سحب',
|
|
57
61
|
drawId: 'معرّف السحب',
|
|
58
62
|
drawName: 'اسم اللعبة',
|
|
59
63
|
drawDate: 'تاريخ السحب',
|
|
60
|
-
drawNumbersGridDraw: '
|
|
61
|
-
drawNumbersGridTicket: '
|
|
64
|
+
drawNumbersGridDraw: ' أرقام السحب',
|
|
65
|
+
drawNumbersGridTicket: 'الأرقام المختارة',
|
|
62
66
|
ticketResult: 'نتيجة التذكرة',
|
|
63
67
|
amountWon: 'المبلغ الذي تم ربحه',
|
|
64
68
|
numberOfDraws: 'عدد السحوبات',
|
|
@@ -67,15 +71,16 @@ const TRANSLATIONS = {
|
|
|
67
71
|
ticketStatus: 'حالة التذكرة',
|
|
68
72
|
ticketId: 'معرّف التذكرة',
|
|
69
73
|
ticketAmount: 'مبلغ التذكرة',
|
|
70
|
-
winUpTo: 'ربح يصل إلى'
|
|
74
|
+
winUpTo: 'ربح يصل إلى',
|
|
75
|
+
prize: 'الجوائز'
|
|
71
76
|
},
|
|
72
77
|
hr: {
|
|
73
78
|
drawResultsHeader: 'Rezultati posljednjeg izvlačenja',
|
|
74
79
|
drawId: 'ID izvlačenja',
|
|
75
80
|
drawName: 'Naziv igre',
|
|
76
81
|
drawDate: 'Datum izvlačenja',
|
|
77
|
-
drawNumbersGridDraw: 'Tablica izvučenih
|
|
78
|
-
drawNumbersGridTicket: '
|
|
82
|
+
drawNumbersGridDraw: 'Tablica izvučenih',
|
|
83
|
+
drawNumbersGridTicket: 'Odabrani brojevi',
|
|
79
84
|
ticketResult: 'Rezultat listića',
|
|
80
85
|
amountWon: 'Osvojeni iznos',
|
|
81
86
|
numberOfDraws: 'Broj izvlačenja',
|
|
@@ -84,7 +89,8 @@ const TRANSLATIONS = {
|
|
|
84
89
|
ticketStatus: 'Status listića',
|
|
85
90
|
ticketId: 'ID listića',
|
|
86
91
|
ticketAmount: 'Iznos listića',
|
|
87
|
-
winUpTo: 'Osvoji do'
|
|
92
|
+
winUpTo: 'Osvoji do',
|
|
93
|
+
prize: 'Nagrade'
|
|
88
94
|
},
|
|
89
95
|
};
|
|
90
96
|
export const translate = (key, customLang) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'lottery-draw-results';
|
|
2
|
-
const BUILD = /* lottery-draw-results */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle:
|
|
2
|
+
const BUILD = /* lottery-draw-results */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -423,6 +423,27 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
423
423
|
const newClasses = parseClassList(newValue);
|
|
424
424
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
425
425
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
426
|
+
} else if (memberName === "style") {
|
|
427
|
+
{
|
|
428
|
+
for (const prop in oldValue) {
|
|
429
|
+
if (!newValue || newValue[prop] == null) {
|
|
430
|
+
if (prop.includes("-")) {
|
|
431
|
+
elm.style.removeProperty(prop);
|
|
432
|
+
} else {
|
|
433
|
+
elm.style[prop] = "";
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
for (const prop in newValue) {
|
|
439
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
440
|
+
if (prop.includes("-")) {
|
|
441
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
442
|
+
} else {
|
|
443
|
+
elm.style[prop] = newValue[prop];
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
426
447
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
427
448
|
if (newValue) {
|
|
428
449
|
newValue(elm);
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-a95b5bd5.js';
|
|
2
|
+
export { s as setNonce } from './index-a95b5bd5.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["lottery-bullet_3",[[1,"lottery-draw-results",{"endpoint":[513],"gameId":[513,"game-id"],"language":[513],"playerId":[513,"player-id"],"drawMode":[516,"draw-mode"],"drawId":[513,"draw-id"],"gameName":[513,"game-name"],"ticketDate":[513,"ticket-date"],"ticketStatus":[513,"ticket-status"],"ticketId":[513,"ticket-id"],"ticketAmount":[513,"ticket-amount"],"ticketMultiplier":[516,"ticket-multiplier"],"ticketDrawCount":[514,"ticket-draw-count"],"ticketNumbers":[513,"ticket-numbers"],"sessionId":[513,"session-id"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"ticketDrawData":[513,"ticket-draw-data"],"multiplier":[32],"isLoading":[32],"hasErrors":[32],"errorText":[32],"ticketData":[32],"ticketDataLoaded":[32],"ticketDraws":[32],"toggleDrawer":[32],"limitStylingAppends":[32],"drawData":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"numbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["lottery-bullet_3",[[1,"lottery-draw-results",{"endpoint":[513],"gameId":[513,"game-id"],"language":[513],"playerId":[513,"player-id"],"drawMode":[516,"draw-mode"],"drawId":[513,"draw-id"],"gameName":[513,"game-name"],"ticketDate":[513,"ticket-date"],"ticketStatus":[513,"ticket-status"],"ticketId":[513,"ticket-id"],"ticketAmount":[513,"ticket-amount"],"ticketCurrency":[513,"ticket-currency"],"ticketMultiplier":[516,"ticket-multiplier"],"ticketMultiplierNum":[514,"ticket-multiplier-num"],"ticketDrawCount":[514,"ticket-draw-count"],"ticketNumbers":[513,"ticket-numbers"],"sessionId":[513,"session-id"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"ticketDrawData":[513,"ticket-draw-data"],"tabValue":[513,"tab-value"],"multiplier":[32],"isLoading":[32],"hasErrors":[32],"errorText":[32],"ticketData":[32],"ticketDataLoaded":[32],"ticketDraws":[32],"toggleDrawer":[32],"limitStylingAppends":[32],"drawData":[32]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|