@everymatrix/player-kyc-verification 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.
Files changed (44) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-ff559e5a.js +1249 -0
  3. package/dist/cjs/index.cjs.js +2 -0
  4. package/dist/cjs/loader.cjs.js +15 -0
  5. package/dist/cjs/player-kyc-verification.cjs.entry.js +564 -0
  6. package/dist/cjs/player-kyc-verification.cjs.js +25 -0
  7. package/dist/collection/collection-manifest.json +12 -0
  8. package/dist/collection/components/player-kyc-verification/index.js +1 -0
  9. package/dist/collection/components/player-kyc-verification/player-kyc-verification.css +173 -0
  10. package/dist/collection/components/player-kyc-verification/player-kyc-verification.js +508 -0
  11. package/dist/collection/index.js +1 -0
  12. package/dist/collection/utils/locale.utils.js +242 -0
  13. package/dist/collection/utils/utils.js +30 -0
  14. package/dist/esm/app-globals-0f993ce5.js +3 -0
  15. package/dist/esm/index-065b5928.js +1222 -0
  16. package/dist/esm/index.js +1 -0
  17. package/dist/esm/loader.js +11 -0
  18. package/dist/esm/player-kyc-verification.entry.js +560 -0
  19. package/dist/esm/player-kyc-verification.js +20 -0
  20. package/dist/index.cjs.js +1 -0
  21. package/dist/index.js +1 -0
  22. package/dist/player-kyc-verification/index.esm.js +0 -0
  23. package/dist/player-kyc-verification/p-0635ee37.entry.js +1 -0
  24. package/dist/player-kyc-verification/p-72182c55.js +2 -0
  25. package/dist/player-kyc-verification/p-e1255160.js +1 -0
  26. package/dist/player-kyc-verification/player-kyc-verification.esm.js +1 -0
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +17 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/player-kyc-verification/index.d.ts +1 -0
  32. package/dist/types/components/player-kyc-verification/player-kyc-verification.d.ts +75 -0
  33. package/dist/types/components.d.ts +117 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  36. package/dist/types/utils/locale.utils.d.ts +2 -0
  37. package/dist/types/utils/utils.d.ts +14 -0
  38. package/loader/cdn.js +1 -0
  39. package/loader/index.cjs.js +1 -0
  40. package/loader/index.d.ts +24 -0
  41. package/loader/index.es2017.js +1 -0
  42. package/loader/index.js +2 -0
  43. package/loader/package.json +11 -0
  44. package/package.json +26 -0
@@ -0,0 +1,242 @@
1
+ const DEFAULT_LANGUAGE = 'en';
2
+ const SUPPORTED_LANGUAGES = ['de', 'en', 'hr'];
3
+ let TRANSLATIONS = {
4
+ en: {
5
+ loading: 'Loading, please wait ...',
6
+ noVerificationRequired: 'There is no verification required for your account at this moment.',
7
+ verificationComplete: 'Verification complete',
8
+ verificationFailed: 'Verification failed',
9
+ verificationExpired: 'Verification expired',
10
+ fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
11
+ uploading: 'Uploading ... ',
12
+ successUpload: 'Your document has been uploaded and it will be reviewed shortly',
13
+ successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
14
+ failedUpload: 'Upload failed please try again',
15
+ chooseDocument: 'Choose Document',
16
+ kycTitle: 'Account Verification',
17
+ kycDescription: 'We require some documents to protect your account and to comply with legal and license requirements.',
18
+ download: 'Download',
19
+ Age: 'Age',
20
+ Aml: 'AML',
21
+ Documents: 'Documents',
22
+ PEP: 'PEP',
23
+ Sanction: 'Sanctions',
24
+ Recheck: 'Recheck',
25
+ Biometric: 'Biometric',
26
+ ProofOfAddress: 'Proof of Address',
27
+ SourceOfWealth: 'Source of Wealth',
28
+ SocialMedia: 'Social Media',
29
+ ProofOfPayment: 'Proof of Payment',
30
+ },
31
+ de: {
32
+ loading: 'Loading, please wait ...',
33
+ noVerificationRequired: 'There is no verification required for your account at this moment.',
34
+ verificationComplete: 'Verification complete',
35
+ verificationFailed: 'Verification failed',
36
+ verificationExpired: 'Verification expired',
37
+ fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
38
+ uploading: 'Uploading ... ',
39
+ successUpload: 'Your document has been uploaded and it will be reviewed shortly',
40
+ successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
41
+ failedUpload: 'Upload failed please try again',
42
+ chooseDocument: 'Choose Document',
43
+ kycTitle: 'Account-Verifizierung',
44
+ kycDescription: 'Wir benötigen einige Dokumente, um Ihr Konto zu schützen und den rechtlichen und Lizenzanforderungen zu entsprechen.',
45
+ download: 'Download',
46
+ Age: 'Age',
47
+ Aml: 'AML',
48
+ Documents: 'Documents',
49
+ PEP: 'PEP',
50
+ Sanction: 'Sanctions',
51
+ Biometric: 'Biometric',
52
+ Recheck: 'Recheck',
53
+ ProofOfAddress: 'Proof of Address',
54
+ SourceOfWealth: 'Source of Wealth',
55
+ SocialMedia: 'Social Media',
56
+ ProofOfPayment: 'Proof of Payment',
57
+ },
58
+ ro: {
59
+ loading: 'Loading, please wait ...',
60
+ noVerificationRequired: 'There is no verification required for your account at this moment.',
61
+ verificationComplete: 'Verification complete',
62
+ verificationFailed: 'Verification failed',
63
+ verificationExpired: 'Verification expired',
64
+ fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
65
+ uploading: 'Uploading ... ',
66
+ successUpload: 'Your document has been uploaded and it will be reviewed shortly',
67
+ successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
68
+ failedUpload: 'Upload failed please try again',
69
+ chooseDocument: 'Choose Document',
70
+ kycTitle: 'Verificarea contului',
71
+ kycDescription: 'Avem nevoie de câteva documente pentru a proteja contul dvs. și pentru a respecta cerințele legale și de licență.',
72
+ download: 'Download',
73
+ Age: 'Age',
74
+ Aml: 'AML',
75
+ Documents: 'Documents',
76
+ PEP: 'PEP',
77
+ Sanction: 'Sanctions',
78
+ Biometric: 'Biometric',
79
+ Recheck: 'Recheck',
80
+ ProofOfAddress: 'Proof of Address',
81
+ SourceOfWealth: 'Source of Wealth',
82
+ SocialMedia: 'Social Media',
83
+ ProofOfPayment: 'Proof of Payment',
84
+ },
85
+ fr: {
86
+ loading: 'Loading, please wait ...',
87
+ noVerificationRequired: 'There is no verification required for your account at this moment.',
88
+ verificationComplete: 'Verification complete',
89
+ verificationFailed: 'Verification failed',
90
+ verificationExpired: 'Verification expired',
91
+ fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
92
+ uploading: 'Uploading ... ',
93
+ successUpload: 'Your document has been uploaded and it will be reviewed shortly',
94
+ successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
95
+ failedUpload: 'Upload failed please try again',
96
+ chooseDocument: 'Choose Document',
97
+ kycTitle: 'Vérification de compte',
98
+ kycDescription: 'Nous avons besoin de certains documents pour protéger votre compte et pour nous conformer aux exigences légales et de licence.',
99
+ download: 'Download',
100
+ Age: 'Age',
101
+ Aml: 'AML',
102
+ Documents: 'Documents',
103
+ PEP: 'PEP',
104
+ Sanction: 'Sanctions',
105
+ Biometric: 'Biometric',
106
+ Recheck: 'Recheck',
107
+ ProofOfAddress: 'Proof of Address',
108
+ SourceOfWealth: 'Source of Wealth',
109
+ SocialMedia: 'Social Media',
110
+ ProofOfPayment: 'Proof of Payment',
111
+ },
112
+ ar: {
113
+ loading: 'Loading, please wait ...',
114
+ noVerificationRequired: 'There is no verification required for your account at this moment.',
115
+ verificationComplete: 'Verification complete',
116
+ verificationFailed: 'Verification failed',
117
+ verificationExpired: 'Verification expired',
118
+ fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
119
+ uploading: 'Uploading ... ',
120
+ successUpload: 'Your document has been uploaded and it will be reviewed shortly',
121
+ successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
122
+ failedUpload: 'Upload failed please try again',
123
+ chooseDocument: 'Choose Document',
124
+ kycTitle: 'التحقق من الحساب',
125
+ kycDescription: 'نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.',
126
+ download: 'Download',
127
+ Age: 'Age',
128
+ Aml: 'AML',
129
+ Documents: 'Documents',
130
+ PEP: 'PEP',
131
+ Sanction: 'Sanctions',
132
+ Biometric: 'Biometric',
133
+ Recheck: 'Recheck',
134
+ ProofOfAddress: 'Proof of Address',
135
+ SourceOfWealth: 'Source of Wealth',
136
+ SocialMedia: 'Social Media',
137
+ ProofOfPayment: 'Proof of Payment',
138
+ },
139
+ hr: {
140
+ loading: 'Učitavanje, molimo pričekajte ...',
141
+ noVerificationRequired: 'Trenutačno nije potrebna provjera vašeg računa.',
142
+ verificationComplete: 'Provjera dovršena',
143
+ verificationFailed: 'Provjera nije uspjela',
144
+ verificationExpired: 'Provjera je istekla',
145
+ fileSizeExceeded: 'Premašena je maksimalna veličina datoteke. Maksimalna veličina datoteke je: 50mb',
146
+ uploading: 'Prijenos…',
147
+ successUpload: 'Vaš dokument je učitan i uskoro će biti pregledan',
148
+ successUploadMultipleFiles: 'Vaši su dokumenti učitani i uskoro će biti pregledani',
149
+ failedUpload: 'Prijenos nije uspio pokušajte ponovo',
150
+ chooseDocument: 'Odaberite Dokument',
151
+ kycTitle: 'Verifikacija računa',
152
+ kycDescription: 'Potrebni su nam neki dokumenti kako bismo zaštitili vaš račun i kako bismo se pridržavali zakonskih i licencijskih zahtjeva.',
153
+ download: 'Download',
154
+ Age: 'Dob',
155
+ Aml: 'AML',
156
+ Documents: 'Dokumenti',
157
+ PEP: 'Politički izložena osoba',
158
+ Sanction: 'Sankcija',
159
+ Biometric: 'Verifikacija',
160
+ Recheck: 'Ponovna provjera',
161
+ ProofOfAddress: 'Potvrda adrese',
162
+ SourceOfWealth: 'Izvor sredstava',
163
+ SocialMedia: 'Društvene mreže',
164
+ ProofOfPayment: 'Platna metoda',
165
+ },
166
+ 'pt-br': {
167
+ Age: 'Age',
168
+ Aml: 'AML',
169
+ Documents: 'Documents',
170
+ PEP: 'PEP',
171
+ Sanction: 'Sanctions',
172
+ Biometric: 'Biometric',
173
+ Recheck: 'Recheck',
174
+ 'Loading': 'Carregando, espere por favor…',
175
+ 'noVerificationRequired': 'Não há necessidade de verificação para sua conta no momento',
176
+ 'verificationComplete': 'Verificação completa',
177
+ 'verificationFailed': 'Verificação de falha',
178
+ 'verificationExpired': 'A verificação expirou',
179
+ 'fileSizeExceeded': 'Tamanho máximo do arquivo excedido. O tamanho máximo do arquivo é: 50 MB',
180
+ 'uploading': 'Carregando...',
181
+ 'successUpload': 'Seu documento foi carregado e será analisado em breve',
182
+ 'successUploadMultipleFiles': 'Seus documentos foram enviados e serão revisados ​​em breve',
183
+ 'failedUpload': 'Falha no upload do arquivo, tente novamente',
184
+ 'chooseDocument': 'Escolha um arquivo',
185
+ 'download': 'Download',
186
+ ProofOfAddress: 'Proof of Address',
187
+ SourceOfWealth: 'Source of Wealth',
188
+ SocialMedia: 'Social Media',
189
+ ProofOfPayment: 'Proof of Payment',
190
+ },
191
+ 'es-mx': {
192
+ Age: 'Age',
193
+ Aml: 'AML',
194
+ Documents: 'Documents',
195
+ PEP: 'PEP',
196
+ Sanction: 'Sanctions',
197
+ Biometric: 'Biometric',
198
+ Recheck: 'Recheck',
199
+ 'Loading': 'Cargando, espere por favor…',
200
+ 'noVerificationRequired': 'No hay verificación requerida para su cuenta al momento',
201
+ 'verificationComplete': 'Verificación completa',
202
+ 'verificationFailed': 'Verificación fallo',
203
+ 'verificationExpired': 'Verificación expiro',
204
+ 'fileSizeExceeded': 'Tamaño máximo de archivo se excedió. El tamaño máximo del archivo es: 50mb',
205
+ 'uploading': 'Cargando ...',
206
+ 'successUpload': 'Su documento ha sido cargado y será revisado en breve',
207
+ 'successUploadMultipleFiles': 'Sus documento han sido cargados y serán revisado en breve',
208
+ 'failedUpload': 'La carga del archivo falló, por favor intente de nuevo',
209
+ 'chooseDocument': 'Elija un archivo',
210
+ 'download': 'Download',
211
+ ProofOfAddress: 'Proof of Address',
212
+ SourceOfWealth: 'Source of Wealth',
213
+ SocialMedia: 'Social Media',
214
+ ProofOfPayment: 'Proof of Payment',
215
+ }
216
+ };
217
+ export const getTranslations = (url) => {
218
+ // fetch url, get the data, replace the TRANSLATIONS content
219
+ return new Promise((resolve) => {
220
+ fetch(url)
221
+ .then((res) => res.json())
222
+ .then((data) => {
223
+ Object.keys(data).forEach((item) => {
224
+ for (let key in data[item]) {
225
+ TRANSLATIONS[item][key] = data[item][key];
226
+ }
227
+ });
228
+ resolve(true);
229
+ });
230
+ });
231
+ };
232
+ export const translate = (key, customLang, values) => {
233
+ const lang = customLang;
234
+ let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
235
+ if (values !== undefined) {
236
+ for (const [key, value] of Object.entries(values.values)) {
237
+ const regex = new RegExp(`{${key}}`, 'g');
238
+ translation = translation.replace(regex, value);
239
+ }
240
+ }
241
+ return translation;
242
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @name isMobile
3
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
4
+ * @param {String} userAgent window.navigator.userAgent
5
+ * @returns {Boolean} true or false
6
+ */
7
+ export const isMobile = (userAgent) => {
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
+ };
13
+ /**
14
+ * @name getDevice
15
+ * @description A method that returns the type of the device
16
+ * @param {String} userAgent window.navigator.userAgent
17
+ * @returns {String} Android/iPhone/iPad/PC
18
+ */
19
+ export const getDevice = (userAgent) => {
20
+ if (userAgent.toLowerCase().match(/android/i)) {
21
+ return 'Android';
22
+ }
23
+ if (userAgent.toLowerCase().match(/iphone/i)) {
24
+ return 'iPhone';
25
+ }
26
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
27
+ return 'iPad';
28
+ }
29
+ return 'PC';
30
+ };
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };