@everymatrix/lottery-draw-results 0.1.2 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/cjs/{index-62f030ff.js → index-33a98fae.js} +1 -73
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/lottery-draw-results.cjs.entry.js +188 -0
  4. package/dist/cjs/lottery-draw-results.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +5 -12
  6. package/dist/collection/components/lottery-draw-results/lottery-draw-results.css +18 -7
  7. package/dist/collection/components/lottery-draw-results/lottery-draw-results.js +169 -56
  8. package/dist/collection/utils/locale.utils.js +14 -2
  9. package/dist/components/lottery-draw-results.js +63 -59
  10. package/dist/esm/{index-98326ddd.js → index-c6e6b7f8.js} +2 -73
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/esm/lottery-draw-results.entry.js +184 -0
  13. package/dist/esm/lottery-draw-results.js +2 -2
  14. package/dist/lottery-draw-results/lottery-draw-results.esm.js +1 -1
  15. package/dist/lottery-draw-results/p-31e0953f.js +1 -0
  16. package/dist/lottery-draw-results/p-d7361a7b.entry.js +1 -0
  17. package/dist/stencil.config.js +3 -0
  18. package/dist/types/components/lottery-draw-results/lottery-draw-results.d.ts +28 -3
  19. package/dist/types/components.d.ts +56 -2
  20. package/package.json +2 -2
  21. package/dist/cjs/lottery-bullet_3.cjs.entry.js +0 -374
  22. package/dist/components/lottery-bullet.js +0 -6
  23. package/dist/components/lottery-bullet2.js +0 -56
  24. package/dist/components/lottery-grid.js +0 -6
  25. package/dist/components/lottery-grid2.js +0 -196
  26. package/dist/esm/lottery-bullet_3.entry.js +0 -368
  27. package/dist/lottery-draw-results/p-2b8529f6.entry.js +0 -1
  28. package/dist/lottery-draw-results/p-bb429486.js +0 -1
@@ -47,40 +47,6 @@ const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
47
47
  return false;
48
48
  })()
49
49
  ;
50
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
51
- if (listeners) {
52
- listeners.map(([flags, name, method]) => {
53
- const target = getHostListenerTarget(elm, flags) ;
54
- const handler = hostListenerProxy(hostRef, method);
55
- const opts = hostListenerOpts(flags);
56
- plt.ael(target, name, handler, opts);
57
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
58
- });
59
- }
60
- };
61
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
62
- try {
63
- {
64
- if (hostRef.$flags$ & 256 /* isListenReady */) {
65
- // instance is ready, let's call it's member method for this event
66
- hostRef.$lazyInstance$[methodName](ev);
67
- }
68
- else {
69
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
70
- }
71
- }
72
- }
73
- catch (e) {
74
- consoleError(e);
75
- }
76
- };
77
- const getHostListenerTarget = (elm, flags) => {
78
- if (flags & 4 /* TargetDocument */)
79
- return doc;
80
- return elm;
81
- };
82
- // prettier-ignore
83
- const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
84
50
  const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
85
51
  const createTime = (fnName, tagName = '') => {
86
52
  {
@@ -557,20 +523,6 @@ const renderVdom = (hostRef, renderFnResults) => {
557
523
  // synchronous patch
558
524
  patch(oldVNode, rootVnode);
559
525
  };
560
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
561
- const createEvent = (ref, name, flags) => {
562
- const elm = getElement(ref);
563
- return {
564
- emit: (detail) => {
565
- return emitEvent(elm, name, {
566
- bubbles: !!(flags & 4 /* Bubbles */),
567
- composed: !!(flags & 2 /* Composed */),
568
- cancelable: !!(flags & 1 /* Cancellable */),
569
- detail,
570
- });
571
- },
572
- };
573
- };
574
526
  /**
575
527
  * Helper function to create & dispatch a custom Event on a provided target
576
528
  * @param elm the target of the Event
@@ -607,15 +559,6 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
607
559
  const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
608
560
  const instance = hostRef.$lazyInstance$ ;
609
561
  let promise;
610
- if (isInitialLoad) {
611
- {
612
- hostRef.$flags$ |= 256 /* isListenReady */;
613
- if (hostRef.$queuedListeners$) {
614
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
615
- hostRef.$queuedListeners$ = null;
616
- }
617
- }
618
- }
619
562
  endSchedule();
620
563
  return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
621
564
  };
@@ -1017,10 +960,6 @@ const connectedCallback = (elm) => {
1017
960
  }
1018
961
  }
1019
962
  else {
1020
- // not the first time this has connected
1021
- // reattach any event listeners to the host
1022
- // since they would have been removed when disconnected
1023
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1024
963
  // fire off connectedCallback() on component instance
1025
964
  fireConnectedCallback(hostRef.$lazyInstance$);
1026
965
  }
@@ -1029,13 +968,7 @@ const connectedCallback = (elm) => {
1029
968
  };
1030
969
  const disconnectedCallback = (elm) => {
1031
970
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1032
- const hostRef = getHostRef(elm);
1033
- {
1034
- if (hostRef.$rmListeners$) {
1035
- hostRef.$rmListeners$.map((rmListener) => rmListener());
1036
- hostRef.$rmListeners$ = undefined;
1037
- }
1038
- }
971
+ getHostRef(elm);
1039
972
  }
1040
973
  };
1041
974
  const bootstrapLazy = (lazyBundles, options = {}) => {
@@ -1062,9 +995,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1062
995
  {
1063
996
  cmpMeta.$members$ = compactMeta[2];
1064
997
  }
1065
- {
1066
- cmpMeta.$listeners$ = compactMeta[3];
1067
- }
1068
998
  const tagName = cmpMeta.$tagName$;
1069
999
  const HostElement = class extends HTMLElement {
1070
1000
  // StencilLazyHost
@@ -1145,7 +1075,6 @@ const registerHost = (elm, cmpMeta) => {
1145
1075
  elm['s-p'] = [];
1146
1076
  elm['s-rc'] = [];
1147
1077
  }
1148
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1149
1078
  return hostRefs.set(elm, hostRef);
1150
1079
  };
1151
1080
  const isMemberInElement = (elm, memberName) => memberName in elm;
@@ -1215,7 +1144,6 @@ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1215
1144
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1216
1145
 
1217
1146
  exports.bootstrapLazy = bootstrapLazy;
1218
- exports.createEvent = createEvent;
1219
1147
  exports.h = h;
1220
1148
  exports.promiseResolve = promiseResolve;
1221
1149
  exports.registerInstance = registerInstance;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-62f030ff.js');
5
+ const index = require('./index-33a98fae.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -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-bullet_3.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":[32],"ticketData":[32],"isLoading":[32],"drawResults":[32],"rules":[32],"toggleDrawer":[32],"hasErrors":[32],"errorText":[32]}],[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"]]],[1,"lottery-bullet",{"value":[1],"selectable":[4],"isSelected":[4,"is-selected"]}]]]], options);
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
 
@@ -0,0 +1,188 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-33a98fae.js');
6
+ require('@everymatrix/lottery-grid');
7
+
8
+ const DEFAULT_LANGUAGE = 'en';
9
+ const SUPPORTED_LANGUAGES = ['ro', 'en'];
10
+ const TRANSLATIONS = {
11
+ en: {
12
+ drawResultsHeader: 'Last draw results',
13
+ drawId: 'Draw ID',
14
+ drawName: 'Game name',
15
+ drawDate: 'Draw Date',
16
+ drawNumbersGridDraw: 'Draw numbers Grid A',
17
+ drawNumbersGridTicket: 'Draw numbers Grid B',
18
+ ticketResult: 'Ticket result',
19
+ amountWon: 'Amount won',
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',
27
+ },
28
+ ro: {
29
+ drawResultsHeader: 'Ultimele rezultate extragere',
30
+ drawId: 'Id extragere',
31
+ drawName: 'Numele jocului',
32
+ drawDate: 'Data extragerii',
33
+ drawNumbersGridDraw: 'Numerele extrase Grid A',
34
+ drawNumbersGridTicket: 'Numerele extrase Grid B',
35
+ ticketResult: 'Rezultatul biletului',
36
+ amountWon: 'Suma castigata',
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'
44
+ },
45
+ };
46
+ const translate = (key, customLang) => {
47
+ const lang = customLang;
48
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
49
+ };
50
+
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}";
52
+
53
+ const LotteryDrawResults = class {
54
+ constructor(hostRef) {
55
+ index.registerInstance(this, hostRef);
56
+ /**
57
+ * Language of the widget
58
+ */
59
+ this.language = 'en';
60
+ /**
61
+ * Shows only the last draw
62
+ */
63
+ this.drawMode = false;
64
+ /**
65
+ * The drawID (option)
66
+ */
67
+ this.drawId = '';
68
+ /**
69
+ * The game name
70
+ */
71
+ this.gameName = '';
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;
97
+ this.isLoading = true;
98
+ this.drawResults = [];
99
+ this.rules = {};
100
+ this.toggleDrawer = [false];
101
+ this.hasErrors = false;
102
+ this.errorText = '';
103
+ this.changeBox = (index) => {
104
+ this.toggleDrawer = this.toggleDrawer.map((item, itemIndex) => {
105
+ if (itemIndex == index) {
106
+ return !item;
107
+ }
108
+ return item;
109
+ });
110
+ if (index >= this.toggleDrawer.length) {
111
+ this.toggleDrawer.push(true);
112
+ }
113
+ };
114
+ }
115
+ connectedCallback() {
116
+ let promises = [];
117
+ promises.push(this.getGameData());
118
+ if (this.drawId) {
119
+ promises.push(this.getDrawData());
120
+ }
121
+ Promise.all(promises)
122
+ .then(() => {
123
+ this.isLoading = false;
124
+ });
125
+ }
126
+ getDrawData() {
127
+ return new Promise((resolve, reject) => {
128
+ let url = new URL(`${this.endpoint}/games/${this.gameId}/draws/${this.drawId}`);
129
+ fetch(url.href)
130
+ .then((response) => {
131
+ // @TODO EXCEPTIONS
132
+ return response.json();
133
+ })
134
+ .then((data) => {
135
+ this.drawData = data;
136
+ resolve(true);
137
+ this.isLoading = false;
138
+ })
139
+ .catch((err) => {
140
+ reject(err);
141
+ this.isLoading = false;
142
+ });
143
+ });
144
+ }
145
+ getGameData() {
146
+ return new Promise((resolve, reject) => {
147
+ let url = new URL(`${this.endpoint}/games/${this.gameId}`);
148
+ fetch(url.href)
149
+ .then((response) => {
150
+ return response.json();
151
+ })
152
+ .then((data) => {
153
+ this.rules = {
154
+ maximumAllowed: data.rules.boards[0].maximumAllowed,
155
+ totalNumbers: data.rules.boards[0].totalNumbers
156
+ };
157
+ resolve(true);
158
+ this.isLoading = false;
159
+ this.hasErrors = false;
160
+ })
161
+ .catch((err) => {
162
+ this.isLoading = false;
163
+ this.hasErrors = true;
164
+ this.errorText = err;
165
+ reject(err);
166
+ });
167
+ });
168
+ }
169
+ render() {
170
+ if (this.isLoading) {
171
+ return (index.h("p", null, "Loading, please wait ..."));
172
+ }
173
+ else if (this.hasErrors) {
174
+ index.h("p", null, this.errorText);
175
+ }
176
+ else {
177
+ return (index.h("section", { class: "DrawResultsSection" }, !this.drawMode ?
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)))))))))
180
+ :
181
+ index.h("div", { class: "DrawResultsArea" }, this.drawData &&
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))))))));
183
+ }
184
+ }
185
+ };
186
+ LotteryDrawResults.style = lotteryDrawResultsCss;
187
+
188
+ exports.lottery_draw_results = LotteryDrawResults;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-62f030ff.js');
3
+ const index = require('./index-33a98fae.js');
4
4
 
5
5
  /*
6
6
  Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["lottery-bullet_3.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":[32],"ticketData":[32],"isLoading":[32],"drawResults":[32],"rules":[32],"toggleDrawer":[32],"hasErrors":[32],"errorText":[32]}],[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"]]],[1,"lottery-bullet",{"value":[1],"selectable":[4],"isSelected":[4,"is-selected"]}]]]], 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"],"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
  });
@@ -7,19 +7,12 @@
7
7
  "version": "2.15.2",
8
8
  "typescriptVersion": "4.5.4"
9
9
  },
10
- "collections": [
10
+ "collections": [],
11
+ "bundles": [
11
12
  {
12
- "name": "@everymatrix/lottery-bullet",
13
- "tags": [
14
- "lottery-bullet"
15
- ]
16
- },
17
- {
18
- "name": "@everymatrix/lottery-grid",
19
- "tags": [
20
- "lottery-grid"
13
+ "components": [
14
+ "lottery-draw-results"
21
15
  ]
22
16
  }
23
- ],
24
- "bundles": []
17
+ ]
25
18
  }
@@ -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: 500px;
19
- margin: 0 auto;
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: 0 20px;
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: 100px;
130
+ max-height: 70px;
121
131
  float: left;
122
132
  margin: 0 0 20px 0;
123
- border: 1px solid #009993;
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 {