@everymatrix/lottery-game-page 0.1.27 → 1.0.69
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/{helper-filters_2.cjs.entry.js → helper-accordion_13.cjs.entry.js} +13401 -9890
- package/dist/cjs/helper-pagination.cjs.entry.js +197 -189
- package/dist/cjs/index-f3851683.js +1345 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/lottery-game-page.cjs.js +17 -11
- package/dist/collection/collection-manifest.json +4 -10
- package/dist/collection/components/lottery-game-page/index.js +1 -0
- package/dist/collection/components/lottery-game-page/lottery-game-page.css +11 -2
- package/dist/collection/components/lottery-game-page/lottery-game-page.js +579 -594
- package/dist/collection/utils/locale.utils.js +118 -95
- package/dist/collection/utils/utils.js +4 -4
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/{helper-filters_2.entry.js → helper-accordion_13.entry.js} +13391 -9891
- package/dist/esm/helper-pagination.entry.js +197 -189
- package/dist/esm/index-8248702b.js +1316 -0
- package/dist/esm/loader.js +7 -13
- package/dist/esm/lottery-game-page.js +14 -11
- package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
- package/dist/lottery-game-page/p-46aaa562.entry.js +1 -0
- package/dist/lottery-game-page/p-8f2c63c7.js +2 -0
- package/dist/lottery-game-page/p-bd89bbf0.entry.js +3567 -0
- package/dist/lottery-game-page/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -42
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/lottery-game-page/index.d.ts +1 -0
- package/dist/types/components/lottery-game-page/lottery-game-page.d.ts +99 -90
- package/dist/types/components.d.ts +28 -2
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +13 -7
- package/dist/cjs/helper-accordion.cjs.entry.js +0 -124
- package/dist/cjs/helper-modal.cjs.entry.js +0 -76
- package/dist/cjs/helper-tab.cjs.entry.js +0 -68
- package/dist/cjs/helper-tabs.cjs.entry.js +0 -74
- package/dist/cjs/index-cd44e726.js +0 -1324
- package/dist/cjs/lottery-bullet_2.cjs.entry.js +0 -270
- package/dist/cjs/lottery-draw-results-history.cjs.entry.js +0 -198
- package/dist/cjs/lottery-game-details.cjs.entry.js +0 -51
- package/dist/cjs/lottery-game-page.cjs.entry.js +0 -427
- package/dist/cjs/lottery-ticket-controller.cjs.entry.js +0 -116
- package/dist/cjs/lottery-ticket.cjs.entry.js +0 -201
- package/dist/collection/components/lottery-game-page/assets/chrono_desktop.png +0 -0
- package/dist/collection/components/lottery-game-page/assets/chrono_lottery_mobile.png +0 -0
- package/dist/components/helper-accordion.js +0 -6
- package/dist/components/helper-accordion2.js +0 -151
- package/dist/components/helper-filters.js +0 -6
- package/dist/components/helper-filters2.js +0 -22394
- package/dist/components/helper-modal.js +0 -6
- package/dist/components/helper-modal2.js +0 -94
- package/dist/components/helper-pagination.js +0 -251
- package/dist/components/helper-tab.js +0 -6
- package/dist/components/helper-tab2.js +0 -87
- package/dist/components/helper-tabs.js +0 -6
- package/dist/components/helper-tabs2.js +0 -103
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/lottery-bullet.js +0 -6
- package/dist/components/lottery-bullet2.js +0 -92
- package/dist/components/lottery-draw-results-history.js +0 -6
- package/dist/components/lottery-draw-results-history2.js +0 -256
- package/dist/components/lottery-draw-results.js +0 -6
- package/dist/components/lottery-draw-results2.js +0 -335
- package/dist/components/lottery-game-details.js +0 -6
- package/dist/components/lottery-game-details2.js +0 -85
- package/dist/components/lottery-game-page.d.ts +0 -11
- package/dist/components/lottery-game-page.js +0 -542
- package/dist/components/lottery-grid.js +0 -6
- package/dist/components/lottery-grid2.js +0 -237
- package/dist/components/lottery-ticket-controller.js +0 -6
- package/dist/components/lottery-ticket-controller2.js +0 -168
- package/dist/components/lottery-ticket.js +0 -6
- package/dist/components/lottery-ticket2.js +0 -244
- package/dist/esm/helper-accordion.entry.js +0 -120
- package/dist/esm/helper-modal.entry.js +0 -72
- package/dist/esm/helper-tab.entry.js +0 -64
- package/dist/esm/helper-tabs.entry.js +0 -70
- package/dist/esm/index-d1baacd4.js +0 -1296
- package/dist/esm/lottery-bullet_2.entry.js +0 -265
- package/dist/esm/lottery-draw-results-history.entry.js +0 -194
- package/dist/esm/lottery-game-details.entry.js +0 -47
- package/dist/esm/lottery-game-page.entry.js +0 -423
- package/dist/esm/lottery-ticket-controller.entry.js +0 -112
- package/dist/esm/lottery-ticket.entry.js +0 -197
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/lottery-game-page/assets/chrono_desktop.png +0 -0
- package/dist/lottery-game-page/assets/chrono_lottery_mobile.png +0 -0
- package/dist/lottery-game-page/p-023325a2.entry.js +0 -1
- package/dist/lottery-game-page/p-04fbc8fd.entry.js +0 -1
- package/dist/lottery-game-page/p-256b151c.entry.js +0 -1
- package/dist/lottery-game-page/p-381b5507.entry.js +0 -1
- package/dist/lottery-game-page/p-3f8b6ad9.entry.js +0 -1
- package/dist/lottery-game-page/p-4274053c.entry.js +0 -1
- package/dist/lottery-game-page/p-4f81cd37.entry.js +0 -1
- package/dist/lottery-game-page/p-5c389034.entry.js +0 -1
- package/dist/lottery-game-page/p-ca8430a0.entry.js +0 -2849
- package/dist/lottery-game-page/p-d6f76e8d.entry.js +0 -1
- package/dist/lottery-game-page/p-e765c7d9.js +0 -1
- package/dist/lottery-game-page/p-ea251208.entry.js +0 -1
- package/dist/lottery-game-page/p-f6fcc22c.entry.js +0 -1
- package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/lottery-game-page/.stencil/packages/lottery-game-page/stencil.config.d.ts +0 -2
|
@@ -1,100 +1,123 @@
|
|
|
1
1
|
const DEFAULT_LANGUAGE = 'en';
|
|
2
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar'];
|
|
2
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
3
3
|
const TRANSLATIONS = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
4
|
+
en: {
|
|
5
|
+
error: 'Error',
|
|
6
|
+
title: 'Chrono',
|
|
7
|
+
backButton: 'Back',
|
|
8
|
+
lobbyButton: 'Lobby',
|
|
9
|
+
prize: 'Prize',
|
|
10
|
+
winUpTo: 'Win up to',
|
|
11
|
+
nextDraw: 'Next draw in: ',
|
|
12
|
+
buy: 'Buy tickets',
|
|
13
|
+
viewLatest: 'View latest results',
|
|
14
|
+
createTicket: 'Create Ticket',
|
|
15
|
+
modalSuccess: 'Purchase successfully completed!',
|
|
16
|
+
deleteTicketModalTitle: 'Delete Ticket',
|
|
17
|
+
deleteTicketModalText: 'Are you sure you want to delete this ticket?',
|
|
18
|
+
deleteTicketModalCancel: 'Cancel',
|
|
19
|
+
deleteTicketModalConfirm: 'Delete',
|
|
20
|
+
orderSummaryTitle: 'Order Summary',
|
|
21
|
+
orderSummaryTickets: 'Ticket',
|
|
22
|
+
orderSummaryTotal: 'Total',
|
|
23
|
+
orderSummarySubmit: 'Submit',
|
|
24
|
+
lastDrawResultsTitle: 'Last Draw Results',
|
|
25
|
+
modalLogin: 'Please login to submit a ticket',
|
|
26
|
+
},
|
|
27
|
+
ro: {
|
|
28
|
+
error: 'Eroare',
|
|
29
|
+
title: 'Loto 6/49',
|
|
30
|
+
backButton: 'Inapoi',
|
|
31
|
+
lobbyButton: 'Lobby',
|
|
32
|
+
prize: 'MARELE JACKPOT OMG',
|
|
33
|
+
winUpTo: 'Castiga pana la',
|
|
34
|
+
nextDraw: 'Urmatoarea extragere:',
|
|
35
|
+
buy: 'Cumpara bilet',
|
|
36
|
+
viewLatest: 'Ultimile extrageri',
|
|
37
|
+
createTicket: 'Creeaza bilet',
|
|
38
|
+
modalSuccess: 'Achizitie efectuata cu succes',
|
|
39
|
+
deleteTicketModalTitle: 'Sterge biletul',
|
|
40
|
+
deleteTicketModalText: 'Esti sigur ca vrei sa stergi acest bilet?',
|
|
41
|
+
deleteTicketModalCancel: 'Anuleaza',
|
|
42
|
+
deleteTicketModalConfirm: 'Sterge',
|
|
43
|
+
orderSummaryTitle: 'Rezumat comanda',
|
|
44
|
+
orderSummaryTickets: 'Bilet',
|
|
45
|
+
orderSummaryTotal: 'Total',
|
|
46
|
+
orderSummarySubmit: 'Trimite',
|
|
47
|
+
lastDrawResultsTitle: 'Cele mai recente extrageri',
|
|
48
|
+
modalLogin: 'Please login to submit a ticket',
|
|
49
|
+
},
|
|
50
|
+
fr: {
|
|
51
|
+
error: 'Error',
|
|
52
|
+
title: 'Chrono',
|
|
53
|
+
backButton: 'Back',
|
|
54
|
+
lobbyButton: 'Lobby',
|
|
55
|
+
prize: 'Prize',
|
|
56
|
+
winUpTo: 'Win up to',
|
|
57
|
+
nextDraw: 'Next draw in: ',
|
|
58
|
+
buy: 'Buy tickets',
|
|
59
|
+
viewLatest: 'View latest results',
|
|
60
|
+
createTicket: 'Create Ticket',
|
|
61
|
+
modalSuccess: 'Purchase successfully completed!',
|
|
62
|
+
deleteTicketModalTitle: 'Delete Ticket',
|
|
63
|
+
deleteTicketModalText: 'Are you sure you want to delete this ticket?',
|
|
64
|
+
deleteTicketModalCancel: 'Cancel',
|
|
65
|
+
deleteTicketModalConfirm: 'Delete',
|
|
66
|
+
orderSummaryTitle: 'Order Summary',
|
|
67
|
+
orderSummaryTickets: 'Ticket',
|
|
68
|
+
orderSummaryTotal: 'Total',
|
|
69
|
+
orderSummarySubmit: 'Submit',
|
|
70
|
+
lastDrawResultsTitle: 'Résultats du dernier tirage',
|
|
71
|
+
modalLogin: 'Please login to submit a ticket',
|
|
72
|
+
},
|
|
73
|
+
ar: {
|
|
74
|
+
error: 'خطأ',
|
|
75
|
+
title: 'كرونو',
|
|
76
|
+
backButton: 'خلف',
|
|
77
|
+
lobbyButton: 'ردهة',
|
|
78
|
+
prize: 'جائزة',
|
|
79
|
+
winUpTo: 'الفوز بما يصل الى',
|
|
80
|
+
nextDraw: 'السحب التالي:',
|
|
81
|
+
buy: 'اشتري تذاكر',
|
|
82
|
+
viewLatest: 'عرض أحدث النتائج',
|
|
83
|
+
createTicket: 'إنشاء تذكرة',
|
|
84
|
+
modalSuccess: '!سيتم الشراء بنجاح قريبًا',
|
|
85
|
+
deleteTicketModalTitle: 'حذف التذكرة',
|
|
86
|
+
deleteTicketModalText: 'هل أنت متأكد أنك تريد حذف هذه التذكرة؟',
|
|
87
|
+
deleteTicketModalCancel: 'يلغي',
|
|
88
|
+
deleteTicketModalConfirm: 'حذف',
|
|
89
|
+
orderSummaryTitle: 'ملخص الطلب',
|
|
90
|
+
orderSummaryTickets: 'تذكرة',
|
|
91
|
+
orderSummaryTotal: 'المجموع',
|
|
92
|
+
orderSummarySubmit: 'يُقدِّم',
|
|
93
|
+
lastDrawResultsTitle: 'نتائج آخر سحب',
|
|
94
|
+
modalLogin: 'الرجاء تسجيل الدخول لتقديم تذكرة'
|
|
95
|
+
},
|
|
96
|
+
hr: {
|
|
97
|
+
error: 'Greška',
|
|
98
|
+
title: 'Krono',
|
|
99
|
+
backButton: 'Nazad',
|
|
100
|
+
lobbyButton: 'Lobby',
|
|
101
|
+
prize: 'Nagrada',
|
|
102
|
+
winUpTo: 'Osvoji do',
|
|
103
|
+
nextDraw: 'Sljedeće izvlačenje za: ',
|
|
104
|
+
buy: 'Uplati listić',
|
|
105
|
+
viewLatest: 'Pogledajte najnovije rezultate',
|
|
106
|
+
createTicket: 'Uplati listić',
|
|
107
|
+
modalSuccess: 'Kupnja uspješno obavljena!',
|
|
108
|
+
deleteTicketModalTitle: 'Izbriši listić',
|
|
109
|
+
deleteTicketModalText: 'Are you sure you want to delete this ticket?',
|
|
110
|
+
deleteTicketModalCancel: 'Otkaži',
|
|
111
|
+
deleteTicketModalConfirm: 'Izbriši',
|
|
112
|
+
orderSummaryTitle: 'Sažetak narudžbe',
|
|
113
|
+
orderSummaryTickets: 'Listić',
|
|
114
|
+
orderSummaryTotal: 'Ukupno',
|
|
115
|
+
orderSummarySubmit: 'Podnijeti',
|
|
116
|
+
lastDrawResultsTitle: 'Rezultati posljednjeg izvlačenja',
|
|
117
|
+
modalLogin: 'Molimo prijavite se da uplatite listić',
|
|
118
|
+
}
|
|
96
119
|
};
|
|
97
120
|
export const translate = (key, customLang) => {
|
|
98
|
-
|
|
99
|
-
|
|
121
|
+
const lang = customLang;
|
|
122
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
100
123
|
};
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* @returns {Boolean} true or false
|
|
6
6
|
*/
|
|
7
7
|
export const isMobile = (userAgent) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
9
|
+
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
10
|
+
userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
|
|
11
|
+
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
12
12
|
};
|