@everymatrix/temporary-consents 1.44.0 → 1.45.2

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 (50) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-73481e72.js +1148 -0
  3. package/dist/cjs/loader.cjs.js +6 -12
  4. package/dist/cjs/temporary-consents.cjs.entry.js +175 -178
  5. package/dist/cjs/temporary-consents.cjs.js +16 -10
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/temporary-consents/index.js +1 -0
  8. package/dist/collection/components/temporary-consents/temporary-consents.js +282 -289
  9. package/dist/collection/utils/locale.utils.js +50 -50
  10. package/dist/collection/utils/utils.js +3 -0
  11. package/dist/esm/app-globals-0f993ce5.js +3 -0
  12. package/dist/esm/index-6b1e7208.js +1122 -0
  13. package/dist/esm/loader.js +6 -12
  14. package/dist/esm/temporary-consents.entry.js +175 -178
  15. package/dist/esm/temporary-consents.js +13 -10
  16. package/dist/stencil.config.dev.js +17 -0
  17. package/dist/stencil.config.js +14 -19
  18. package/dist/temporary-consents/p-607ca69d.entry.js +1 -0
  19. package/dist/temporary-consents/p-e0f94cfb.js +2 -0
  20. package/dist/temporary-consents/p-e1255160.js +1 -0
  21. package/dist/temporary-consents/temporary-consents.esm.js +1 -1
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/temporary-consents/index.d.ts +1 -0
  25. package/dist/types/components/temporary-consents/temporary-consents.d.ts +45 -45
  26. package/dist/types/components/temporary-consents/temporary-consents.type.d.ts +4 -4
  27. package/dist/types/stencil-public-runtime.d.ts +142 -33
  28. package/dist/types/utils/utils.d.ts +1 -0
  29. package/loader/cdn.js +1 -3
  30. package/loader/index.cjs.js +1 -3
  31. package/loader/index.d.ts +13 -1
  32. package/loader/index.es2017.js +1 -3
  33. package/loader/index.js +1 -3
  34. package/loader/package.json +1 -0
  35. package/package.json +8 -1
  36. package/dist/cjs/index-51051de1.js +0 -1163
  37. package/dist/components/index.d.ts +0 -26
  38. package/dist/components/index.js +0 -1
  39. package/dist/components/temporary-consents.d.ts +0 -11
  40. package/dist/components/temporary-consents.js +0 -227
  41. package/dist/esm/index-0f95c245.js +0 -1138
  42. package/dist/esm/polyfills/core-js.js +0 -11
  43. package/dist/esm/polyfills/css-shim.js +0 -1
  44. package/dist/esm/polyfills/dom.js +0 -79
  45. package/dist/esm/polyfills/es5-html-element.js +0 -1
  46. package/dist/esm/polyfills/index.js +0 -34
  47. package/dist/esm/polyfills/system.js +0 -6
  48. package/dist/temporary-consents/p-c8fa79f6.js +0 -1
  49. package/dist/temporary-consents/p-e9beb1df.entry.js +0 -1
  50. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/temporary-consents/.stencil/packages/temporary-consents/stencil.config.d.ts +0 -2
@@ -1,59 +1,59 @@
1
1
  const DEFAULT_LANGUAGE = 'en';
2
2
  let TRANSLATIONS = {
3
- en: {
4
- title: 'Participation conditions',
5
- description: 'Important: Full verification is required in order to be able to use our entire offer. If verification is not completed, it is not possible to withdraw and the betting account will be locked in {daysUntilLockout} days.',
6
- declineButton: 'Decline and log out',
7
- acceptButton: 'Accept',
8
- loading: 'Please wait, loading...'
9
- },
10
- hr: {
11
- title: 'Uvjeti sudjelovanja',
12
- description: 'Važno: Potrebna je potpuna verifikacija kako biste mogli koristiti našu cjelokupnu ponudu. Ako potvrda nije dovršena, nije moguće podići i račun za klađenje bit će zaključan za {daysUntilLockout} dana.',
13
- declineButton: 'Odbijte i odjavite se',
14
- acceptButton: 'Prihvatiti',
15
- loading: 'Molimo pričekajte, učitavanje...'
16
- },
17
- 'es-mx': {
18
- 'title': 'Condiciones de participación',
19
- 'description': 'Importante: Una verificación completa es requerida para poder utilizar nuestra oferta. Si no se verifica, no será posible hacer retiros y la cuenta para realizar apuestas será bloqueada.',
20
- 'declineButton': 'Declinar y salir',
21
- 'acceptButton': 'Aceptar',
22
- 'Loading': 'Espere por favor, Cargando...'
23
- },
24
- 'pt-br': {
25
- 'title': 'Condições de participação',
26
- 'description': 'Importante: É necessária uma verificação completa para poder utilizar a nossa oferta. Se não for verificado, os saques não serão possíveis e a conta de apostas será bloqueada.',
27
- 'declineButton': 'Recusar e sair',
28
- 'acceptButton': 'Aceitar',
29
- 'Loading': 'Espere, por favor, Carregando...'
30
- }
3
+ en: {
4
+ title: 'Participation conditions',
5
+ description: 'Important: Full verification is required in order to be able to use our entire offer. If verification is not completed, it is not possible to withdraw and the betting account will be locked in {daysUntilLockout} days.',
6
+ declineButton: 'Decline and log out',
7
+ acceptButton: 'Accept',
8
+ loading: 'Please wait, loading...'
9
+ },
10
+ hr: {
11
+ title: 'Uvjeti sudjelovanja',
12
+ description: 'Važno: Potrebna je potpuna verifikacija kako biste mogli koristiti našu cjelokupnu ponudu. Ako potvrda nije dovršena, nije moguće podići i račun za klađenje bit će zaključan za {daysUntilLockout} dana.',
13
+ declineButton: 'Odbijte i odjavite se',
14
+ acceptButton: 'Prihvatiti',
15
+ loading: 'Molimo pričekajte, učitavanje...'
16
+ },
17
+ 'es-mx': {
18
+ 'title': 'Condiciones de participación',
19
+ 'description': 'Importante: Una verificación completa es requerida para poder utilizar nuestra oferta. Si no se verifica, no será posible hacer retiros y la cuenta para realizar apuestas será bloqueada.',
20
+ 'declineButton': 'Declinar y salir',
21
+ 'acceptButton': 'Aceptar',
22
+ 'Loading': 'Espere por favor, Cargando...'
23
+ },
24
+ 'pt-br': {
25
+ 'title': 'Condições de participação',
26
+ 'description': 'Importante: É necessária uma verificação completa para poder utilizar a nossa oferta. Se não for verificado, os saques não serão possíveis e a conta de apostas será bloqueada.',
27
+ 'declineButton': 'Recusar e sair',
28
+ 'acceptButton': 'Aceitar',
29
+ 'Loading': 'Espere, por favor, Carregando...'
30
+ }
31
31
  };
32
32
  export const getTranslations = (url) => {
33
- return new Promise((resolve) => {
34
- fetch(url)
35
- .then((res) => res.json())
36
- .then((data) => {
37
- Object.keys(data).forEach((lang) => {
38
- if (!TRANSLATIONS[lang]) {
39
- TRANSLATIONS[lang] = {};
40
- }
41
- for (let key in data[lang]) {
42
- TRANSLATIONS[lang][key] = data[lang][key];
43
- }
44
- });
45
- resolve(true);
33
+ return new Promise((resolve) => {
34
+ fetch(url)
35
+ .then((res) => res.json())
36
+ .then((data) => {
37
+ Object.keys(data).forEach((lang) => {
38
+ if (!TRANSLATIONS[lang]) {
39
+ TRANSLATIONS[lang] = {};
40
+ }
41
+ for (let key in data[lang]) {
42
+ TRANSLATIONS[lang][key] = data[lang][key];
43
+ }
44
+ });
45
+ resolve(true);
46
+ });
46
47
  });
47
- });
48
48
  };
49
49
  export const translate = (key, customLang, values) => {
50
- const lang = customLang;
51
- let translation = TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
52
- if (values !== undefined) {
53
- for (const [key, value] of Object.entries(values.values)) {
54
- const regex = new RegExp(`{${key}}`, 'g');
55
- translation = translation.replace(regex, value);
50
+ const lang = customLang;
51
+ let translation = TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
52
+ if (values !== undefined) {
53
+ for (const [key, value] of Object.entries(values.values)) {
54
+ const regex = new RegExp(`{${key}}`, 'g');
55
+ translation = translation.replace(regex, value);
56
+ }
56
57
  }
57
- }
58
- return translation;
58
+ return translation;
59
59
  };
@@ -0,0 +1,3 @@
1
+ export function format(first, middle, last) {
2
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
3
+ }
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };