@everymatrix/player-kyc-verification 1.44.0 → 1.45.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.
Files changed (47) 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/loader.cjs.js +7 -13
  4. package/dist/cjs/player-kyc-verification.cjs.entry.js +789 -812
  5. package/dist/cjs/player-kyc-verification.cjs.js +17 -11
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/player-kyc-verification/index.js +1 -0
  8. package/dist/collection/components/player-kyc-verification/player-kyc-verification.js +484 -548
  9. package/dist/collection/utils/locale.utils.js +506 -506
  10. package/dist/collection/utils/utils.js +14 -14
  11. package/dist/esm/app-globals-0f993ce5.js +3 -0
  12. package/dist/esm/index-065b5928.js +1222 -0
  13. package/dist/esm/loader.js +7 -13
  14. package/dist/esm/player-kyc-verification.entry.js +789 -812
  15. package/dist/esm/player-kyc-verification.js +14 -11
  16. package/dist/player-kyc-verification/p-72182c55.js +2 -0
  17. package/dist/player-kyc-verification/{p-e48f90ad.entry.js → p-a68d44c9.entry.js} +1 -1
  18. package/dist/player-kyc-verification/p-e1255160.js +1 -0
  19. package/dist/player-kyc-verification/player-kyc-verification.esm.js +1 -1
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/player-kyc-verification/index.d.ts +1 -0
  25. package/dist/types/components/player-kyc-verification/player-kyc-verification.d.ts +73 -73
  26. package/dist/types/stencil-public-runtime.d.ts +142 -33
  27. package/loader/cdn.js +1 -3
  28. package/loader/index.cjs.js +1 -3
  29. package/loader/index.d.ts +13 -1
  30. package/loader/index.es2017.js +1 -3
  31. package/loader/index.js +1 -3
  32. package/loader/package.json +1 -0
  33. package/package.json +8 -1
  34. package/dist/cjs/index-95fc1c57.js +0 -1279
  35. package/dist/components/index.d.ts +0 -26
  36. package/dist/components/index.js +0 -1
  37. package/dist/components/player-kyc-verification.d.ts +0 -11
  38. package/dist/components/player-kyc-verification.js +0 -893
  39. package/dist/esm/index-abf8c718.js +0 -1253
  40. package/dist/esm/polyfills/core-js.js +0 -11
  41. package/dist/esm/polyfills/css-shim.js +0 -1
  42. package/dist/esm/polyfills/dom.js +0 -79
  43. package/dist/esm/polyfills/es5-html-element.js +0 -1
  44. package/dist/esm/polyfills/index.js +0 -34
  45. package/dist/esm/polyfills/system.js +0 -6
  46. package/dist/player-kyc-verification/p-1f2596d0.js +0 -1
  47. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/player-kyc-verification/.stencil/packages/player-kyc-verification/stencil.config.d.ts +0 -2
@@ -1,519 +1,519 @@
1
- import { r as registerInstance, h, F as Fragment } from './index-abf8c718.js';
1
+ import { r as registerInstance, h, F as Fragment } from './index-065b5928.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  let TRANSLATIONS = {
5
- en: {
6
- loading: 'Loading, please wait ...',
7
- noVerificationRequired: 'There is no verification required for your account at this moment.',
8
- verificationComplete: 'Verification complete',
9
- verificationFailed: 'Verification failed',
10
- verificationExpired: 'Verification expired',
11
- fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
12
- uploading: 'Uploading ... ',
13
- successUpload: 'Your document has been uploaded and it will be reviewed shortly',
14
- successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
15
- failedUpload: 'Upload failed please try again',
16
- chooseDocument: 'Choose Document',
17
- kycTitle: 'Account Verification',
18
- kycDescription: 'We require some documents to protect your account and to comply with legal and license requirements.',
19
- download: 'Download',
20
- Age: 'Age',
21
- Aml: 'AML',
22
- Documents: 'Documents',
23
- Pep: 'PEP',
24
- Sanction: 'Sanctions',
25
- Recheck: 'Recheck',
26
- Biometric: 'Biometric',
27
- ProofOfAddress: 'Proof of Address',
28
- SourceOfWealth: 'Source of Wealth',
29
- SocialMedia: 'Social Media',
30
- ProofOfPayment: 'Proof of Payment',
31
- uploaded: 'Document already uploaded.',
32
- Unknown: 'Unknown',
33
- Passport: 'Passport',
34
- IdCardFront: 'ID Card (front side)',
35
- IdCardBack: 'ID Card (back side)',
36
- BirthCertificate: 'Birth Certificate',
37
- DrivingLicenseFront: 'Driving License (front side)',
38
- DrivingLicenseBack: 'Driving License (back side)',
39
- ResidentialPermit: 'Residential Permit',
40
- CreditDebitCardFront: 'Credit / Debit Card (front side)',
41
- CreditDebitCardBack: 'Credit / Debit Card (back side)',
42
- UtilityBill: 'Utility Bill',
43
- TaxBill: 'Tax Bill',
44
- CertifiedCopy: 'Certified Copy',
45
- Selfie: 'Selfie',
46
- BankStatement: 'Bank Statement',
47
- RentAgreement: 'Rent Agreement',
48
- InsuranceAgreement: 'Insurance Agreement',
49
- Other: 'Other',
50
- IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
51
- SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
52
- DividendsProfitsFromCompany: 'Dividends/Profits from company',
53
- CompanySale: 'Company sale',
54
- IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
55
- SaleOfProperty: 'Sale of Property',
56
- Inheritance: 'Inheritance',
57
- MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
58
- InsuranceClaims: 'Insurance Claims',
59
- CompensationPayment: 'Compensation payment',
60
- LotteryBettingCasinoWin: 'Lottery/betting/casino win',
61
- Loan: 'Loan',
62
- Gift: 'Gift',
63
- Ewallet: 'eWallet',
64
- Voucher: 'Voucher'
65
- },
66
- de: {
67
- loading: 'Loading, please wait ...',
68
- noVerificationRequired: 'There is no verification required for your account at this moment.',
69
- verificationComplete: 'Verification complete',
70
- verificationFailed: 'Verification failed',
71
- verificationExpired: 'Verification expired',
72
- fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
73
- uploading: 'Uploading ... ',
74
- successUpload: 'Your document has been uploaded and it will be reviewed shortly',
75
- successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
76
- failedUpload: 'Upload failed please try again',
77
- chooseDocument: 'Choose Document',
78
- kycTitle: 'Account-Verifizierung',
79
- kycDescription: 'Wir benötigen einige Dokumente, um Ihr Konto zu schützen und den rechtlichen und Lizenzanforderungen zu entsprechen.',
80
- download: 'Download',
81
- Age: 'Age',
82
- Aml: 'AML',
83
- Documents: 'Documents',
84
- Pep: 'PEP',
85
- Sanction: 'Sanctions',
86
- Biometric: 'Biometric',
87
- Recheck: 'Recheck',
88
- ProofOfAddress: 'Proof of Address',
89
- SourceOfWealth: 'Source of Wealth',
90
- SocialMedia: 'Social Media',
91
- ProofOfPayment: 'Proof of Payment',
92
- uploaded: 'Dokument bereits hochgeladen.',
93
- Unknown: 'Unbekannt',
94
- Passport: 'Reisepass',
95
- IdCardFront: 'Personalausweis (Vorderseite)',
96
- IdCardBack: 'Personalausweis (Rückseite)',
97
- BirthCertificate: 'Geburtsurkunde',
98
- DrivingLicenseFront: 'Führerschein (Vorderseite)',
99
- DrivingLicenseBack: 'Führerschein (Rückseite)',
100
- ResidentialPermit: 'Wohnberechtigungsschein',
101
- CreditDebitCardFront: 'Kredit-/Debitkarte (Vorderseite)',
102
- CreditDebitCardBack: 'Kredit-/Debitkarte (Rückseite)',
103
- UtilityBill: 'Nebenkostenabrechnung',
104
- TaxBill: 'Steuerbescheid',
105
- CertifiedCopy: 'Beglaubigte Kopie',
106
- Selfie: 'Selfie',
107
- BankStatement: 'Kontoauszug',
108
- RentAgreement: 'Mietvertrag',
109
- InsuranceAgreement: 'Versicherungsvertrag',
110
- Other: 'Sonstige',
111
- IncomeAndOrSavingsFromEmployment: 'Einkommen und/oder Ersparnisse aus Beschäftigung',
112
- SaleOfSharesOrOtherInvestments: 'Verkauf von Aktien oder anderen Anlagen',
113
- DividendsProfitsFromCompany: 'Dividenden/Gewinne aus dem Unternehmen',
114
- CompanySale: 'Firmenverkauf',
115
- IndividualOwnsPolicyCompanyPays: 'Einzelperson besitzt die Police/Unternehmen zahlt',
116
- SaleOfProperty: 'Immobilienverkauf',
117
- Inheritance: 'Erbschaft',
118
- MaturityOrSurrenderOfLifeAssurance: 'Fälligkeit oder Rückkauf einer Lebensversicherung',
119
- InsuranceClaims: 'Versicherungsansprüche',
120
- CompensationPayment: 'Entschädigungszahlung',
121
- LotteryBettingCasinoWin: 'Lotterie-/Wett-/Casinogewinn',
122
- Loan: 'Darlehen',
123
- Gift: 'Geschenk',
124
- Ewallet: 'E-Wallet',
125
- Voucher: 'Gutschein'
126
- },
127
- ro: {
128
- loading: 'Loading, please wait ...',
129
- noVerificationRequired: 'There is no verification required for your account at this moment.',
130
- verificationComplete: 'Verification complete',
131
- verificationFailed: 'Verification failed',
132
- verificationExpired: 'Verification expired',
133
- fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
134
- uploading: 'Uploading ... ',
135
- successUpload: 'Your document has been uploaded and it will be reviewed shortly',
136
- successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
137
- failedUpload: 'Upload failed please try again',
138
- chooseDocument: 'Choose Document',
139
- kycTitle: 'Verificarea contului',
140
- kycDescription: 'Avem nevoie de câteva documente pentru a proteja contul dvs. și pentru a respecta cerințele legale și de licență.',
141
- download: 'Download',
142
- Age: 'Age',
143
- Aml: 'AML',
144
- Documents: 'Documents',
145
- Pep: 'PEP',
146
- Sanction: 'Sanctions',
147
- Biometric: 'Biometric',
148
- Recheck: 'Recheck',
149
- ProofOfAddress: 'Proof of Address',
150
- SourceOfWealth: 'Source of Wealth',
151
- SocialMedia: 'Social Media',
152
- ProofOfPayment: 'Proof of Payment',
153
- uploaded: 'Document deja încărcat.',
154
- Unknown: 'Unknown',
155
- Passport: 'Passport',
156
- IdCardFront: 'ID Card (front side)',
157
- IdCardBack: 'ID Card (back side)',
158
- BirthCertificate: 'Birth Certificate',
159
- DrivingLicenseFront: 'Driving License (front side)',
160
- DrivingLicenseBack: 'Driving License (back side)',
161
- ResidentialPermit: 'Residential Permit',
162
- CreditDebitCardFront: 'Credit / Debit Card (front side)',
163
- CreditDebitCardBack: 'Credit / Debit Card (back side)',
164
- UtilityBill: 'Utility Bill',
165
- TaxBill: 'Tax Bill',
166
- CertifiedCopy: 'Certified Copy',
167
- Selfie: 'Selfie',
168
- BankStatement: 'Bank Statement',
169
- RentAgreement: 'Rent Agreement',
170
- InsuranceAgreement: 'Insurance Agreement',
171
- Other: 'Other',
172
- IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
173
- SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
174
- DividendsProfitsFromCompany: 'Dividends/Profits from company',
175
- CompanySale: 'Company sale',
176
- IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
177
- SaleOfProperty: 'Sale of Property',
178
- Inheritance: 'Inheritance',
179
- MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
180
- InsuranceClaims: 'Insurance Claims',
181
- CompensationPayment: 'Compensation payment',
182
- LotteryBettingCasinoWin: 'Lottery/betting/casino win',
183
- Loan: 'Loan',
184
- Gift: 'Gift',
185
- Ewallet: 'eWallet',
186
- Voucher: 'Voucher'
187
- },
188
- fr: {
189
- loading: 'Loading, please wait ...',
190
- noVerificationRequired: 'There is no verification required for your account at this moment.',
191
- verificationComplete: 'Verification complete',
192
- verificationFailed: 'Verification failed',
193
- verificationExpired: 'Verification expired',
194
- fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
195
- uploading: 'Uploading ... ',
196
- successUpload: 'Your document has been uploaded and it will be reviewed shortly',
197
- successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
198
- failedUpload: 'Upload failed please try again',
199
- chooseDocument: 'Choose Document',
200
- kycTitle: 'Vérification de compte',
201
- kycDescription: 'Nous avons besoin de certains documents pour protéger votre compte et pour nous conformer aux exigences légales et de licence.',
202
- download: 'Download',
203
- Age: 'Age',
204
- Aml: 'AML',
205
- Documents: 'Documents',
206
- Pep: 'PEP',
207
- Sanction: 'Sanctions',
208
- Biometric: 'Biometric',
209
- Recheck: 'Recheck',
210
- ProofOfAddress: 'Proof of Address',
211
- SourceOfWealth: 'Source of Wealth',
212
- SocialMedia: 'Social Media',
213
- ProofOfPayment: 'Proof of Payment',
214
- uploaded: 'Document déjà téléchargé.',
215
- Unknown: 'Unknown',
216
- Passport: 'Passport',
217
- IdCardFront: 'ID Card (front side)',
218
- IdCardBack: 'ID Card (back side)',
219
- BirthCertificate: 'Birth Certificate',
220
- DrivingLicenseFront: 'Driving License (front side)',
221
- DrivingLicenseBack: 'Driving License (back side)',
222
- ResidentialPermit: 'Residential Permit',
223
- CreditDebitCardFront: 'Credit / Debit Card (front side)',
224
- CreditDebitCardBack: 'Credit / Debit Card (back side)',
225
- UtilityBill: 'Utility Bill',
226
- TaxBill: 'Tax Bill',
227
- CertifiedCopy: 'Certified Copy',
228
- Selfie: 'Selfie',
229
- BankStatement: 'Bank Statement',
230
- RentAgreement: 'Rent Agreement',
231
- InsuranceAgreement: 'Insurance Agreement',
232
- Other: 'Other',
233
- IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
234
- SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
235
- DividendsProfitsFromCompany: 'Dividends/Profits from company',
236
- CompanySale: 'Company sale',
237
- IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
238
- SaleOfProperty: 'Sale of Property',
239
- Inheritance: 'Inheritance',
240
- MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
241
- InsuranceClaims: 'Insurance Claims',
242
- CompensationPayment: 'Compensation payment',
243
- LotteryBettingCasinoWin: 'Lottery/betting/casino win',
244
- Loan: 'Loan',
245
- Gift: 'Gift',
246
- Ewallet: 'eWallet',
247
- Voucher: 'Voucher'
248
- },
249
- ar: {
250
- loading: 'Loading, please wait ...',
251
- noVerificationRequired: 'There is no verification required for your account at this moment.',
252
- verificationComplete: 'Verification complete',
253
- verificationFailed: 'Verification failed',
254
- verificationExpired: 'Verification expired',
255
- fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
256
- uploading: 'Uploading ... ',
257
- successUpload: 'Your document has been uploaded and it will be reviewed shortly',
258
- successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
259
- failedUpload: 'Upload failed please try again',
260
- chooseDocument: 'Choose Document',
261
- kycTitle: 'التحقق من الحساب',
262
- kycDescription: 'نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.',
263
- download: 'Download',
264
- Age: 'Age',
265
- Aml: 'AML',
266
- Documents: 'Documents',
267
- Pep: 'PEP',
268
- Sanction: 'Sanctions',
269
- Biometric: 'Biometric',
270
- Recheck: 'Recheck',
271
- ProofOfAddress: 'Proof of Address',
272
- SourceOfWealth: 'Source of Wealth',
273
- SocialMedia: 'Social Media',
274
- ProofOfPayment: 'Proof of Payment',
275
- uploaded: 'Document already uploaded.',
276
- Unknown: 'Unknown',
277
- Passport: 'Passport',
278
- IdCardFront: 'ID Card (front side)',
279
- IdCardBack: 'ID Card (back side)',
280
- BirthCertificate: 'Birth Certificate',
281
- DrivingLicenseFront: 'Driving License (front side)',
282
- DrivingLicenseBack: 'Driving License (back side)',
283
- ResidentialPermit: 'Residential Permit',
284
- CreditDebitCardFront: 'Credit / Debit Card (front side)',
285
- CreditDebitCardBack: 'Credit / Debit Card (back side)',
286
- UtilityBill: 'Utility Bill',
287
- TaxBill: 'Tax Bill',
288
- CertifiedCopy: 'Certified Copy',
289
- Selfie: 'Selfie',
290
- BankStatement: 'Bank Statement',
291
- RentAgreement: 'Rent Agreement',
292
- InsuranceAgreement: 'Insurance Agreement',
293
- Other: 'Other',
294
- IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
295
- SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
296
- DividendsProfitsFromCompany: 'Dividends/Profits from company',
297
- CompanySale: 'Company sale',
298
- IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
299
- SaleOfProperty: 'Sale of Property',
300
- Inheritance: 'Inheritance',
301
- MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
302
- InsuranceClaims: 'Insurance Claims',
303
- CompensationPayment: 'Compensation payment',
304
- LotteryBettingCasinoWin: 'Lottery/betting/casino win',
305
- Loan: 'Loan',
306
- Gift: 'Gift',
307
- Ewallet: 'eWallet',
308
- Voucher: 'Voucher'
309
- },
310
- hr: {
311
- loading: 'Učitavanje, molimo pričekajte ...',
312
- noVerificationRequired: 'Trenutačno nije potrebna provjera vašeg računa.',
313
- verificationComplete: 'Provjera dovršena',
314
- verificationFailed: 'Provjera nije uspjela',
315
- verificationExpired: 'Provjera je istekla',
316
- fileSizeExceeded: 'Premašena je maksimalna veličina datoteke. Maksimalna veličina datoteke je: 50mb',
317
- uploading: 'Prijenos…',
318
- successUpload: 'Vaš dokument je učitan i uskoro će biti pregledan',
319
- successUploadMultipleFiles: 'Vaši su dokumenti učitani i uskoro će biti pregledani',
320
- failedUpload: 'Prijenos nije uspio pokušajte ponovo',
321
- chooseDocument: 'Odaberite Dokument',
322
- kycTitle: 'Verifikacija računa',
323
- kycDescription: 'Potrebni su nam neki dokumenti kako bismo zaštitili vaš račun i kako bismo se pridržavali zakonskih i licencijskih zahtjeva.',
324
- download: 'Preuzmi',
325
- Age: 'Dob',
326
- Aml: 'AML',
327
- Documents: 'Dokumenti',
328
- Pep: 'Politički izložena osoba',
329
- Sanction: 'Sankcija',
330
- Biometric: 'Verifikacija',
331
- Recheck: 'Ponovna provjera',
332
- ProofOfAddress: 'Potvrda adrese',
333
- SourceOfWealth: 'Izvor sredstava',
334
- SocialMedia: 'Društvene mreže',
335
- ProofOfPayment: 'Platna metoda',
336
- uploaded: 'Dokument je već učitan.',
337
- Unknown: 'Nepoznato',
338
- Passport: 'Putovnica',
339
- IdCardFront: 'Prednja strana osobne iskaznice',
340
- IdCardBack: 'Stražnja strana osobne iskaznice',
341
- BirthCertificate: 'Rodni list',
342
- DrivingLicenseFront: 'Vozačka dozvola (prednja strana)',
343
- DrivingLicenseBack: 'Vozačka dozvola (stražnja strana)',
344
- ResidentialPermit: 'Boravišna dozvola',
345
- CreditDebitCardFront: 'Kreditna/debitna kartica (prednja strana)',
346
- CreditDebitCardBack: 'Kreditna/debitna kartica (stražnja strana)',
347
- UtilityBill: 'Račun za komunalne usluge',
348
- TaxBill: 'Porezni račun',
349
- CertifiedCopy: 'Ovjereni primjerak',
350
- Selfie: 'Selfie',
351
- BankStatement: 'Bankovni izvod',
352
- RentAgreement: 'Ugovor o najmu',
353
- InsuranceAgreement: 'Ugovor o osiguranju',
354
- Other: 'Ostalo',
355
- IncomeAndOrSavingsFromEmployment: 'Prihod/Ušteđevina ',
356
- SaleOfSharesOrOtherInvestments: 'Prodaja dionica ili drugih investicija',
357
- DividendsProfitsFromCompany: 'Dividende/dobit od tvrtke',
358
- CompanySale: 'Prodaja tvrtke',
359
- IndividualOwnsPolicyCompanyPays: 'Osoba posjeduje policu/tvrtka plaća',
360
- SaleOfProperty: 'Prodaja nekretnine',
361
- Inheritance: 'Nasljeđe',
362
- MaturityOrSurrenderOfLifeAssurance: 'Dospijeće ili predaja životnog osiguranja',
363
- InsuranceClaims: 'Zahtjevi za osiguranje',
364
- CompensationPayment: 'Isplata odštete',
365
- LotteryBettingCasinoWin: 'Dobitak na lutriji/kladionici/kasinu',
366
- Loan: 'Zajam',
367
- Gift: 'Poklon',
368
- Ewallet: 'Elektronički novčanik',
369
- Voucher: 'Vaučer'
370
- },
371
- 'pt-br': {
372
- Age: 'Age',
373
- Aml: 'AML',
374
- Documents: 'Documents',
375
- Pep: 'PEP',
376
- Sanction: 'Sanctions',
377
- Biometric: 'Biometric',
378
- Recheck: 'Recheck',
379
- 'Loading': 'Carregando, espere por favor…',
380
- 'noVerificationRequired': 'Não há necessidade de verificação para sua conta no momento',
381
- 'verificationComplete': 'Verificação completa',
382
- 'verificationFailed': 'Verificação de falha',
383
- 'verificationExpired': 'A verificação expirou',
384
- 'fileSizeExceeded': 'Tamanho máximo do arquivo excedido. O tamanho máximo do arquivo é: 50 MB',
385
- 'uploading': 'Carregando...',
386
- 'successUpload': 'Seu documento foi carregado e será analisado em breve',
387
- 'successUploadMultipleFiles': 'Seus documentos foram enviados e serão revisados ​​em breve',
388
- 'failedUpload': 'Falha no upload do arquivo, tente novamente',
389
- 'chooseDocument': 'Escolha um arquivo',
390
- 'download': 'Download',
391
- ProofOfAddress: 'Proof of Address',
392
- SourceOfWealth: 'Source of Wealth',
393
- SocialMedia: 'Social Media',
394
- ProofOfPayment: 'Proof of Payment',
395
- uploaded: 'Documento já carregado.',
396
- Unknown: 'Unknown',
397
- Passport: 'Passport',
398
- IdCardFront: 'ID Card (front side)',
399
- IdCardBack: 'ID Card (back side)',
400
- BirthCertificate: 'Birth Certificate',
401
- DrivingLicenseFront: 'Driving License (front side)',
402
- DrivingLicenseBack: 'Driving License (back side)',
403
- ResidentialPermit: 'Residential Permit',
404
- CreditDebitCardFront: 'Credit / Debit Card (front side)',
405
- CreditDebitCardBack: 'Credit / Debit Card (back side)',
406
- UtilityBill: 'Utility Bill',
407
- TaxBill: 'Tax Bill',
408
- CertifiedCopy: 'Certified Copy',
409
- Selfie: 'Selfie',
410
- BankStatement: 'Bank Statement',
411
- RentAgreement: 'Rent Agreement',
412
- InsuranceAgreement: 'Insurance Agreement',
413
- Other: 'Other',
414
- IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
415
- SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
416
- DividendsProfitsFromCompany: 'Dividends/Profits from company',
417
- CompanySale: 'Company sale',
418
- IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
419
- SaleOfProperty: 'Sale of Property',
420
- Inheritance: 'Inheritance',
421
- MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
422
- InsuranceClaims: 'Insurance Claims',
423
- CompensationPayment: 'Compensation payment',
424
- LotteryBettingCasinoWin: 'Lottery/betting/casino win',
425
- Loan: 'Loan',
426
- Gift: 'Gift',
427
- Ewallet: 'eWallet',
428
- Voucher: 'Voucher'
429
- },
430
- 'es-mx': {
431
- Age: 'Age',
432
- Aml: 'AML',
433
- Documents: 'Documents',
434
- Pep: 'PEP',
435
- Sanction: 'Sanctions',
436
- Biometric: 'Biometric',
437
- Recheck: 'Recheck',
438
- 'Loading': 'Cargando, espere por favor…',
439
- 'noVerificationRequired': 'No hay verificación requerida para su cuenta al momento',
440
- 'verificationComplete': 'Verificación completa',
441
- 'verificationFailed': 'Verificación fallo',
442
- 'verificationExpired': 'Verificación expiro',
443
- 'fileSizeExceeded': 'Tamaño máximo de archivo se excedió. El tamaño máximo del archivo es: 50mb',
444
- 'uploading': 'Cargando ...',
445
- 'successUpload': 'Su documento ha sido cargado y será revisado en breve',
446
- 'successUploadMultipleFiles': 'Sus documento han sido cargados y serán revisado en breve',
447
- 'failedUpload': 'La carga del archivo falló, por favor intente de nuevo',
448
- 'chooseDocument': 'Elija un archivo',
449
- 'download': 'Download',
450
- ProofOfAddress: 'Proof of Address',
451
- SourceOfWealth: 'Source of Wealth',
452
- SocialMedia: 'Social Media',
453
- ProofOfPayment: 'Proof of Payment',
454
- uploaded: 'Documento ya subido.',
455
- Unknown: 'Unknown',
456
- Passport: 'Passport',
457
- IdCardFront: 'ID Card (front side)',
458
- IdCardBack: 'ID Card (back side)',
459
- BirthCertificate: 'Birth Certificate',
460
- DrivingLicenseFront: 'Driving License (front side)',
461
- DrivingLicenseBack: 'Driving License (back side)',
462
- ResidentialPermit: 'Residential Permit',
463
- CreditDebitCardFront: 'Credit / Debit Card (front side)',
464
- CreditDebitCardBack: 'Credit / Debit Card (back side)',
465
- UtilityBill: 'Utility Bill',
466
- TaxBill: 'Tax Bill',
467
- CertifiedCopy: 'Certified Copy',
468
- Selfie: 'Selfie',
469
- BankStatement: 'Bank Statement',
470
- RentAgreement: 'Rent Agreement',
471
- InsuranceAgreement: 'Insurance Agreement',
472
- Other: 'Other',
473
- IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
474
- SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
475
- DividendsProfitsFromCompany: 'Dividends/Profits from company',
476
- CompanySale: 'Company sale',
477
- IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
478
- SaleOfProperty: 'Sale of Property',
479
- Inheritance: 'Inheritance',
480
- MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
481
- InsuranceClaims: 'Insurance Claims',
482
- CompensationPayment: 'Compensation payment',
483
- LotteryBettingCasinoWin: 'Lottery/betting/casino win',
484
- Loan: 'Loan',
485
- Gift: 'Gift',
486
- Ewallet: 'eWallet',
487
- Voucher: 'Voucher'
488
- }
5
+ en: {
6
+ loading: 'Loading, please wait ...',
7
+ noVerificationRequired: 'There is no verification required for your account at this moment.',
8
+ verificationComplete: 'Verification complete',
9
+ verificationFailed: 'Verification failed',
10
+ verificationExpired: 'Verification expired',
11
+ fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
12
+ uploading: 'Uploading ... ',
13
+ successUpload: 'Your document has been uploaded and it will be reviewed shortly',
14
+ successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
15
+ failedUpload: 'Upload failed please try again',
16
+ chooseDocument: 'Choose Document',
17
+ kycTitle: 'Account Verification',
18
+ kycDescription: 'We require some documents to protect your account and to comply with legal and license requirements.',
19
+ download: 'Download',
20
+ Age: 'Age',
21
+ Aml: 'AML',
22
+ Documents: 'Documents',
23
+ Pep: 'PEP',
24
+ Sanction: 'Sanctions',
25
+ Recheck: 'Recheck',
26
+ Biometric: 'Biometric',
27
+ ProofOfAddress: 'Proof of Address',
28
+ SourceOfWealth: 'Source of Wealth',
29
+ SocialMedia: 'Social Media',
30
+ ProofOfPayment: 'Proof of Payment',
31
+ uploaded: 'Document already uploaded.',
32
+ Unknown: 'Unknown',
33
+ Passport: 'Passport',
34
+ IdCardFront: 'ID Card (front side)',
35
+ IdCardBack: 'ID Card (back side)',
36
+ BirthCertificate: 'Birth Certificate',
37
+ DrivingLicenseFront: 'Driving License (front side)',
38
+ DrivingLicenseBack: 'Driving License (back side)',
39
+ ResidentialPermit: 'Residential Permit',
40
+ CreditDebitCardFront: 'Credit / Debit Card (front side)',
41
+ CreditDebitCardBack: 'Credit / Debit Card (back side)',
42
+ UtilityBill: 'Utility Bill',
43
+ TaxBill: 'Tax Bill',
44
+ CertifiedCopy: 'Certified Copy',
45
+ Selfie: 'Selfie',
46
+ BankStatement: 'Bank Statement',
47
+ RentAgreement: 'Rent Agreement',
48
+ InsuranceAgreement: 'Insurance Agreement',
49
+ Other: 'Other',
50
+ IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
51
+ SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
52
+ DividendsProfitsFromCompany: 'Dividends/Profits from company',
53
+ CompanySale: 'Company sale',
54
+ IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
55
+ SaleOfProperty: 'Sale of Property',
56
+ Inheritance: 'Inheritance',
57
+ MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
58
+ InsuranceClaims: 'Insurance Claims',
59
+ CompensationPayment: 'Compensation payment',
60
+ LotteryBettingCasinoWin: 'Lottery/betting/casino win',
61
+ Loan: 'Loan',
62
+ Gift: 'Gift',
63
+ Ewallet: 'eWallet',
64
+ Voucher: 'Voucher'
65
+ },
66
+ de: {
67
+ loading: 'Loading, please wait ...',
68
+ noVerificationRequired: 'There is no verification required for your account at this moment.',
69
+ verificationComplete: 'Verification complete',
70
+ verificationFailed: 'Verification failed',
71
+ verificationExpired: 'Verification expired',
72
+ fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
73
+ uploading: 'Uploading ... ',
74
+ successUpload: 'Your document has been uploaded and it will be reviewed shortly',
75
+ successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
76
+ failedUpload: 'Upload failed please try again',
77
+ chooseDocument: 'Choose Document',
78
+ kycTitle: 'Account-Verifizierung',
79
+ kycDescription: 'Wir benötigen einige Dokumente, um Ihr Konto zu schützen und den rechtlichen und Lizenzanforderungen zu entsprechen.',
80
+ download: 'Download',
81
+ Age: 'Age',
82
+ Aml: 'AML',
83
+ Documents: 'Documents',
84
+ Pep: 'PEP',
85
+ Sanction: 'Sanctions',
86
+ Biometric: 'Biometric',
87
+ Recheck: 'Recheck',
88
+ ProofOfAddress: 'Proof of Address',
89
+ SourceOfWealth: 'Source of Wealth',
90
+ SocialMedia: 'Social Media',
91
+ ProofOfPayment: 'Proof of Payment',
92
+ uploaded: 'Dokument bereits hochgeladen.',
93
+ Unknown: 'Unbekannt',
94
+ Passport: 'Reisepass',
95
+ IdCardFront: 'Personalausweis (Vorderseite)',
96
+ IdCardBack: 'Personalausweis (Rückseite)',
97
+ BirthCertificate: 'Geburtsurkunde',
98
+ DrivingLicenseFront: 'Führerschein (Vorderseite)',
99
+ DrivingLicenseBack: 'Führerschein (Rückseite)',
100
+ ResidentialPermit: 'Wohnberechtigungsschein',
101
+ CreditDebitCardFront: 'Kredit-/Debitkarte (Vorderseite)',
102
+ CreditDebitCardBack: 'Kredit-/Debitkarte (Rückseite)',
103
+ UtilityBill: 'Nebenkostenabrechnung',
104
+ TaxBill: 'Steuerbescheid',
105
+ CertifiedCopy: 'Beglaubigte Kopie',
106
+ Selfie: 'Selfie',
107
+ BankStatement: 'Kontoauszug',
108
+ RentAgreement: 'Mietvertrag',
109
+ InsuranceAgreement: 'Versicherungsvertrag',
110
+ Other: 'Sonstige',
111
+ IncomeAndOrSavingsFromEmployment: 'Einkommen und/oder Ersparnisse aus Beschäftigung',
112
+ SaleOfSharesOrOtherInvestments: 'Verkauf von Aktien oder anderen Anlagen',
113
+ DividendsProfitsFromCompany: 'Dividenden/Gewinne aus dem Unternehmen',
114
+ CompanySale: 'Firmenverkauf',
115
+ IndividualOwnsPolicyCompanyPays: 'Einzelperson besitzt die Police/Unternehmen zahlt',
116
+ SaleOfProperty: 'Immobilienverkauf',
117
+ Inheritance: 'Erbschaft',
118
+ MaturityOrSurrenderOfLifeAssurance: 'Fälligkeit oder Rückkauf einer Lebensversicherung',
119
+ InsuranceClaims: 'Versicherungsansprüche',
120
+ CompensationPayment: 'Entschädigungszahlung',
121
+ LotteryBettingCasinoWin: 'Lotterie-/Wett-/Casinogewinn',
122
+ Loan: 'Darlehen',
123
+ Gift: 'Geschenk',
124
+ Ewallet: 'E-Wallet',
125
+ Voucher: 'Gutschein'
126
+ },
127
+ ro: {
128
+ loading: 'Loading, please wait ...',
129
+ noVerificationRequired: 'There is no verification required for your account at this moment.',
130
+ verificationComplete: 'Verification complete',
131
+ verificationFailed: 'Verification failed',
132
+ verificationExpired: 'Verification expired',
133
+ fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
134
+ uploading: 'Uploading ... ',
135
+ successUpload: 'Your document has been uploaded and it will be reviewed shortly',
136
+ successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
137
+ failedUpload: 'Upload failed please try again',
138
+ chooseDocument: 'Choose Document',
139
+ kycTitle: 'Verificarea contului',
140
+ kycDescription: 'Avem nevoie de câteva documente pentru a proteja contul dvs. și pentru a respecta cerințele legale și de licență.',
141
+ download: 'Download',
142
+ Age: 'Age',
143
+ Aml: 'AML',
144
+ Documents: 'Documents',
145
+ Pep: 'PEP',
146
+ Sanction: 'Sanctions',
147
+ Biometric: 'Biometric',
148
+ Recheck: 'Recheck',
149
+ ProofOfAddress: 'Proof of Address',
150
+ SourceOfWealth: 'Source of Wealth',
151
+ SocialMedia: 'Social Media',
152
+ ProofOfPayment: 'Proof of Payment',
153
+ uploaded: 'Document deja încărcat.',
154
+ Unknown: 'Unknown',
155
+ Passport: 'Passport',
156
+ IdCardFront: 'ID Card (front side)',
157
+ IdCardBack: 'ID Card (back side)',
158
+ BirthCertificate: 'Birth Certificate',
159
+ DrivingLicenseFront: 'Driving License (front side)',
160
+ DrivingLicenseBack: 'Driving License (back side)',
161
+ ResidentialPermit: 'Residential Permit',
162
+ CreditDebitCardFront: 'Credit / Debit Card (front side)',
163
+ CreditDebitCardBack: 'Credit / Debit Card (back side)',
164
+ UtilityBill: 'Utility Bill',
165
+ TaxBill: 'Tax Bill',
166
+ CertifiedCopy: 'Certified Copy',
167
+ Selfie: 'Selfie',
168
+ BankStatement: 'Bank Statement',
169
+ RentAgreement: 'Rent Agreement',
170
+ InsuranceAgreement: 'Insurance Agreement',
171
+ Other: 'Other',
172
+ IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
173
+ SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
174
+ DividendsProfitsFromCompany: 'Dividends/Profits from company',
175
+ CompanySale: 'Company sale',
176
+ IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
177
+ SaleOfProperty: 'Sale of Property',
178
+ Inheritance: 'Inheritance',
179
+ MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
180
+ InsuranceClaims: 'Insurance Claims',
181
+ CompensationPayment: 'Compensation payment',
182
+ LotteryBettingCasinoWin: 'Lottery/betting/casino win',
183
+ Loan: 'Loan',
184
+ Gift: 'Gift',
185
+ Ewallet: 'eWallet',
186
+ Voucher: 'Voucher'
187
+ },
188
+ fr: {
189
+ loading: 'Loading, please wait ...',
190
+ noVerificationRequired: 'There is no verification required for your account at this moment.',
191
+ verificationComplete: 'Verification complete',
192
+ verificationFailed: 'Verification failed',
193
+ verificationExpired: 'Verification expired',
194
+ fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
195
+ uploading: 'Uploading ... ',
196
+ successUpload: 'Your document has been uploaded and it will be reviewed shortly',
197
+ successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
198
+ failedUpload: 'Upload failed please try again',
199
+ chooseDocument: 'Choose Document',
200
+ kycTitle: 'Vérification de compte',
201
+ kycDescription: 'Nous avons besoin de certains documents pour protéger votre compte et pour nous conformer aux exigences légales et de licence.',
202
+ download: 'Download',
203
+ Age: 'Age',
204
+ Aml: 'AML',
205
+ Documents: 'Documents',
206
+ Pep: 'PEP',
207
+ Sanction: 'Sanctions',
208
+ Biometric: 'Biometric',
209
+ Recheck: 'Recheck',
210
+ ProofOfAddress: 'Proof of Address',
211
+ SourceOfWealth: 'Source of Wealth',
212
+ SocialMedia: 'Social Media',
213
+ ProofOfPayment: 'Proof of Payment',
214
+ uploaded: 'Document déjà téléchargé.',
215
+ Unknown: 'Unknown',
216
+ Passport: 'Passport',
217
+ IdCardFront: 'ID Card (front side)',
218
+ IdCardBack: 'ID Card (back side)',
219
+ BirthCertificate: 'Birth Certificate',
220
+ DrivingLicenseFront: 'Driving License (front side)',
221
+ DrivingLicenseBack: 'Driving License (back side)',
222
+ ResidentialPermit: 'Residential Permit',
223
+ CreditDebitCardFront: 'Credit / Debit Card (front side)',
224
+ CreditDebitCardBack: 'Credit / Debit Card (back side)',
225
+ UtilityBill: 'Utility Bill',
226
+ TaxBill: 'Tax Bill',
227
+ CertifiedCopy: 'Certified Copy',
228
+ Selfie: 'Selfie',
229
+ BankStatement: 'Bank Statement',
230
+ RentAgreement: 'Rent Agreement',
231
+ InsuranceAgreement: 'Insurance Agreement',
232
+ Other: 'Other',
233
+ IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
234
+ SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
235
+ DividendsProfitsFromCompany: 'Dividends/Profits from company',
236
+ CompanySale: 'Company sale',
237
+ IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
238
+ SaleOfProperty: 'Sale of Property',
239
+ Inheritance: 'Inheritance',
240
+ MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
241
+ InsuranceClaims: 'Insurance Claims',
242
+ CompensationPayment: 'Compensation payment',
243
+ LotteryBettingCasinoWin: 'Lottery/betting/casino win',
244
+ Loan: 'Loan',
245
+ Gift: 'Gift',
246
+ Ewallet: 'eWallet',
247
+ Voucher: 'Voucher'
248
+ },
249
+ ar: {
250
+ loading: 'Loading, please wait ...',
251
+ noVerificationRequired: 'There is no verification required for your account at this moment.',
252
+ verificationComplete: 'Verification complete',
253
+ verificationFailed: 'Verification failed',
254
+ verificationExpired: 'Verification expired',
255
+ fileSizeExceeded: 'Maximum file size exceeded. Max file size is: 50mb',
256
+ uploading: 'Uploading ... ',
257
+ successUpload: 'Your document has been uploaded and it will be reviewed shortly',
258
+ successUploadMultipleFiles: 'Your documents have been uploaded and it will be reviewed shortly',
259
+ failedUpload: 'Upload failed please try again',
260
+ chooseDocument: 'Choose Document',
261
+ kycTitle: 'التحقق من الحساب',
262
+ kycDescription: 'نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.',
263
+ download: 'Download',
264
+ Age: 'Age',
265
+ Aml: 'AML',
266
+ Documents: 'Documents',
267
+ Pep: 'PEP',
268
+ Sanction: 'Sanctions',
269
+ Biometric: 'Biometric',
270
+ Recheck: 'Recheck',
271
+ ProofOfAddress: 'Proof of Address',
272
+ SourceOfWealth: 'Source of Wealth',
273
+ SocialMedia: 'Social Media',
274
+ ProofOfPayment: 'Proof of Payment',
275
+ uploaded: 'Document already uploaded.',
276
+ Unknown: 'Unknown',
277
+ Passport: 'Passport',
278
+ IdCardFront: 'ID Card (front side)',
279
+ IdCardBack: 'ID Card (back side)',
280
+ BirthCertificate: 'Birth Certificate',
281
+ DrivingLicenseFront: 'Driving License (front side)',
282
+ DrivingLicenseBack: 'Driving License (back side)',
283
+ ResidentialPermit: 'Residential Permit',
284
+ CreditDebitCardFront: 'Credit / Debit Card (front side)',
285
+ CreditDebitCardBack: 'Credit / Debit Card (back side)',
286
+ UtilityBill: 'Utility Bill',
287
+ TaxBill: 'Tax Bill',
288
+ CertifiedCopy: 'Certified Copy',
289
+ Selfie: 'Selfie',
290
+ BankStatement: 'Bank Statement',
291
+ RentAgreement: 'Rent Agreement',
292
+ InsuranceAgreement: 'Insurance Agreement',
293
+ Other: 'Other',
294
+ IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
295
+ SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
296
+ DividendsProfitsFromCompany: 'Dividends/Profits from company',
297
+ CompanySale: 'Company sale',
298
+ IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
299
+ SaleOfProperty: 'Sale of Property',
300
+ Inheritance: 'Inheritance',
301
+ MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
302
+ InsuranceClaims: 'Insurance Claims',
303
+ CompensationPayment: 'Compensation payment',
304
+ LotteryBettingCasinoWin: 'Lottery/betting/casino win',
305
+ Loan: 'Loan',
306
+ Gift: 'Gift',
307
+ Ewallet: 'eWallet',
308
+ Voucher: 'Voucher'
309
+ },
310
+ hr: {
311
+ loading: 'Učitavanje, molimo pričekajte ...',
312
+ noVerificationRequired: 'Trenutačno nije potrebna provjera vašeg računa.',
313
+ verificationComplete: 'Provjera dovršena',
314
+ verificationFailed: 'Provjera nije uspjela',
315
+ verificationExpired: 'Provjera je istekla',
316
+ fileSizeExceeded: 'Premašena je maksimalna veličina datoteke. Maksimalna veličina datoteke je: 50mb',
317
+ uploading: 'Prijenos…',
318
+ successUpload: 'Vaš dokument je učitan i uskoro će biti pregledan',
319
+ successUploadMultipleFiles: 'Vaši su dokumenti učitani i uskoro će biti pregledani',
320
+ failedUpload: 'Prijenos nije uspio pokušajte ponovo',
321
+ chooseDocument: 'Odaberite Dokument',
322
+ kycTitle: 'Verifikacija računa',
323
+ kycDescription: 'Potrebni su nam neki dokumenti kako bismo zaštitili vaš račun i kako bismo se pridržavali zakonskih i licencijskih zahtjeva.',
324
+ download: 'Preuzmi',
325
+ Age: 'Dob',
326
+ Aml: 'AML',
327
+ Documents: 'Dokumenti',
328
+ Pep: 'Politički izložena osoba',
329
+ Sanction: 'Sankcija',
330
+ Biometric: 'Verifikacija',
331
+ Recheck: 'Ponovna provjera',
332
+ ProofOfAddress: 'Potvrda adrese',
333
+ SourceOfWealth: 'Izvor sredstava',
334
+ SocialMedia: 'Društvene mreže',
335
+ ProofOfPayment: 'Platna metoda',
336
+ uploaded: 'Dokument je već učitan.',
337
+ Unknown: 'Nepoznato',
338
+ Passport: 'Putovnica',
339
+ IdCardFront: 'Prednja strana osobne iskaznice',
340
+ IdCardBack: 'Stražnja strana osobne iskaznice',
341
+ BirthCertificate: 'Rodni list',
342
+ DrivingLicenseFront: 'Vozačka dozvola (prednja strana)',
343
+ DrivingLicenseBack: 'Vozačka dozvola (stražnja strana)',
344
+ ResidentialPermit: 'Boravišna dozvola',
345
+ CreditDebitCardFront: 'Kreditna/debitna kartica (prednja strana)',
346
+ CreditDebitCardBack: 'Kreditna/debitna kartica (stražnja strana)',
347
+ UtilityBill: 'Račun za komunalne usluge',
348
+ TaxBill: 'Porezni račun',
349
+ CertifiedCopy: 'Ovjereni primjerak',
350
+ Selfie: 'Selfie',
351
+ BankStatement: 'Bankovni izvod',
352
+ RentAgreement: 'Ugovor o najmu',
353
+ InsuranceAgreement: 'Ugovor o osiguranju',
354
+ Other: 'Ostalo',
355
+ IncomeAndOrSavingsFromEmployment: 'Prihod/Ušteđevina ',
356
+ SaleOfSharesOrOtherInvestments: 'Prodaja dionica ili drugih investicija',
357
+ DividendsProfitsFromCompany: 'Dividende/dobit od tvrtke',
358
+ CompanySale: 'Prodaja tvrtke',
359
+ IndividualOwnsPolicyCompanyPays: 'Osoba posjeduje policu/tvrtka plaća',
360
+ SaleOfProperty: 'Prodaja nekretnine',
361
+ Inheritance: 'Nasljeđe',
362
+ MaturityOrSurrenderOfLifeAssurance: 'Dospijeće ili predaja životnog osiguranja',
363
+ InsuranceClaims: 'Zahtjevi za osiguranje',
364
+ CompensationPayment: 'Isplata odštete',
365
+ LotteryBettingCasinoWin: 'Dobitak na lutriji/kladionici/kasinu',
366
+ Loan: 'Zajam',
367
+ Gift: 'Poklon',
368
+ Ewallet: 'Elektronički novčanik',
369
+ Voucher: 'Vaučer'
370
+ },
371
+ 'pt-br': {
372
+ Age: 'Age',
373
+ Aml: 'AML',
374
+ Documents: 'Documents',
375
+ Pep: 'PEP',
376
+ Sanction: 'Sanctions',
377
+ Biometric: 'Biometric',
378
+ Recheck: 'Recheck',
379
+ 'Loading': 'Carregando, espere por favor…',
380
+ 'noVerificationRequired': 'Não há necessidade de verificação para sua conta no momento',
381
+ 'verificationComplete': 'Verificação completa',
382
+ 'verificationFailed': 'Verificação de falha',
383
+ 'verificationExpired': 'A verificação expirou',
384
+ 'fileSizeExceeded': 'Tamanho máximo do arquivo excedido. O tamanho máximo do arquivo é: 50 MB',
385
+ 'uploading': 'Carregando...',
386
+ 'successUpload': 'Seu documento foi carregado e será analisado em breve',
387
+ 'successUploadMultipleFiles': 'Seus documentos foram enviados e serão revisados ​​em breve',
388
+ 'failedUpload': 'Falha no upload do arquivo, tente novamente',
389
+ 'chooseDocument': 'Escolha um arquivo',
390
+ 'download': 'Download',
391
+ ProofOfAddress: 'Proof of Address',
392
+ SourceOfWealth: 'Source of Wealth',
393
+ SocialMedia: 'Social Media',
394
+ ProofOfPayment: 'Proof of Payment',
395
+ uploaded: 'Documento já carregado.',
396
+ Unknown: 'Unknown',
397
+ Passport: 'Passport',
398
+ IdCardFront: 'ID Card (front side)',
399
+ IdCardBack: 'ID Card (back side)',
400
+ BirthCertificate: 'Birth Certificate',
401
+ DrivingLicenseFront: 'Driving License (front side)',
402
+ DrivingLicenseBack: 'Driving License (back side)',
403
+ ResidentialPermit: 'Residential Permit',
404
+ CreditDebitCardFront: 'Credit / Debit Card (front side)',
405
+ CreditDebitCardBack: 'Credit / Debit Card (back side)',
406
+ UtilityBill: 'Utility Bill',
407
+ TaxBill: 'Tax Bill',
408
+ CertifiedCopy: 'Certified Copy',
409
+ Selfie: 'Selfie',
410
+ BankStatement: 'Bank Statement',
411
+ RentAgreement: 'Rent Agreement',
412
+ InsuranceAgreement: 'Insurance Agreement',
413
+ Other: 'Other',
414
+ IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
415
+ SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
416
+ DividendsProfitsFromCompany: 'Dividends/Profits from company',
417
+ CompanySale: 'Company sale',
418
+ IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
419
+ SaleOfProperty: 'Sale of Property',
420
+ Inheritance: 'Inheritance',
421
+ MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
422
+ InsuranceClaims: 'Insurance Claims',
423
+ CompensationPayment: 'Compensation payment',
424
+ LotteryBettingCasinoWin: 'Lottery/betting/casino win',
425
+ Loan: 'Loan',
426
+ Gift: 'Gift',
427
+ Ewallet: 'eWallet',
428
+ Voucher: 'Voucher'
429
+ },
430
+ 'es-mx': {
431
+ Age: 'Age',
432
+ Aml: 'AML',
433
+ Documents: 'Documents',
434
+ Pep: 'PEP',
435
+ Sanction: 'Sanctions',
436
+ Biometric: 'Biometric',
437
+ Recheck: 'Recheck',
438
+ 'Loading': 'Cargando, espere por favor…',
439
+ 'noVerificationRequired': 'No hay verificación requerida para su cuenta al momento',
440
+ 'verificationComplete': 'Verificación completa',
441
+ 'verificationFailed': 'Verificación fallo',
442
+ 'verificationExpired': 'Verificación expiro',
443
+ 'fileSizeExceeded': 'Tamaño máximo de archivo se excedió. El tamaño máximo del archivo es: 50mb',
444
+ 'uploading': 'Cargando ...',
445
+ 'successUpload': 'Su documento ha sido cargado y será revisado en breve',
446
+ 'successUploadMultipleFiles': 'Sus documento han sido cargados y serán revisado en breve',
447
+ 'failedUpload': 'La carga del archivo falló, por favor intente de nuevo',
448
+ 'chooseDocument': 'Elija un archivo',
449
+ 'download': 'Download',
450
+ ProofOfAddress: 'Proof of Address',
451
+ SourceOfWealth: 'Source of Wealth',
452
+ SocialMedia: 'Social Media',
453
+ ProofOfPayment: 'Proof of Payment',
454
+ uploaded: 'Documento ya subido.',
455
+ Unknown: 'Unknown',
456
+ Passport: 'Passport',
457
+ IdCardFront: 'ID Card (front side)',
458
+ IdCardBack: 'ID Card (back side)',
459
+ BirthCertificate: 'Birth Certificate',
460
+ DrivingLicenseFront: 'Driving License (front side)',
461
+ DrivingLicenseBack: 'Driving License (back side)',
462
+ ResidentialPermit: 'Residential Permit',
463
+ CreditDebitCardFront: 'Credit / Debit Card (front side)',
464
+ CreditDebitCardBack: 'Credit / Debit Card (back side)',
465
+ UtilityBill: 'Utility Bill',
466
+ TaxBill: 'Tax Bill',
467
+ CertifiedCopy: 'Certified Copy',
468
+ Selfie: 'Selfie',
469
+ BankStatement: 'Bank Statement',
470
+ RentAgreement: 'Rent Agreement',
471
+ InsuranceAgreement: 'Insurance Agreement',
472
+ Other: 'Other',
473
+ IncomeAndOrSavingsFromEmployment: 'Income and/or savings from employment',
474
+ SaleOfSharesOrOtherInvestments: 'Sale of shares or other investments',
475
+ DividendsProfitsFromCompany: 'Dividends/Profits from company',
476
+ CompanySale: 'Company sale',
477
+ IndividualOwnsPolicyCompanyPays: 'Individual owns policy/company pays',
478
+ SaleOfProperty: 'Sale of Property',
479
+ Inheritance: 'Inheritance',
480
+ MaturityOrSurrenderOfLifeAssurance: 'Maturity or surrender of life assurance',
481
+ InsuranceClaims: 'Insurance Claims',
482
+ CompensationPayment: 'Compensation payment',
483
+ LotteryBettingCasinoWin: 'Lottery/betting/casino win',
484
+ Loan: 'Loan',
485
+ Gift: 'Gift',
486
+ Ewallet: 'eWallet',
487
+ Voucher: 'Voucher'
488
+ }
489
489
  };
490
490
  const getTranslations = (url) => {
491
- return new Promise((resolve) => {
492
- fetch(url)
493
- .then((res) => res.json())
494
- .then((data) => {
495
- Object.keys(data).forEach((lang) => {
496
- if (!TRANSLATIONS[lang]) {
497
- TRANSLATIONS[lang] = {};
498
- }
499
- for (let key in data[lang]) {
500
- TRANSLATIONS[lang][key] = data[lang][key];
501
- }
502
- });
503
- resolve(true);
491
+ return new Promise((resolve) => {
492
+ fetch(url)
493
+ .then((res) => res.json())
494
+ .then((data) => {
495
+ Object.keys(data).forEach((lang) => {
496
+ if (!TRANSLATIONS[lang]) {
497
+ TRANSLATIONS[lang] = {};
498
+ }
499
+ for (let key in data[lang]) {
500
+ TRANSLATIONS[lang][key] = data[lang][key];
501
+ }
502
+ });
503
+ resolve(true);
504
+ });
504
505
  });
505
- });
506
506
  };
507
507
  const translate = (key, customLang, values) => {
508
- const lang = customLang;
509
- let translation = TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
510
- if (values !== undefined) {
511
- for (const [key, value] of Object.entries(values.values)) {
512
- const regex = new RegExp(`{${key}}`, 'g');
513
- translation = translation.replace(regex, value);
508
+ const lang = customLang;
509
+ let translation = TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
510
+ if (values !== undefined) {
511
+ for (const [key, value] of Object.entries(values.values)) {
512
+ const regex = new RegExp(`{${key}}`, 'g');
513
+ translation = translation.replace(regex, value);
514
+ }
514
515
  }
515
- }
516
- return translation;
516
+ return translation;
517
517
  };
518
518
 
519
519
  /**
@@ -523,334 +523,311 @@ const translate = (key, customLang, values) => {
523
523
  * @returns {Boolean} true or false
524
524
  */
525
525
  const isMobile = (userAgent) => {
526
- return !!(userAgent.toLowerCase().match(/android/i) ||
527
- userAgent.toLowerCase().match(/blackberry|bb/i) ||
528
- userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
529
- userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
526
+ return !!(userAgent.toLowerCase().match(/android/i) ||
527
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
528
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
529
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
530
530
  };
531
531
 
532
532
  const playerKycVerificationCss = ":host {\n font-family: inherit;\n}\n\nbutton, select {\n font-family: inherit;\n}\n\n.ModalContainer {\n container-type: inline-size;\n}\n\n.player-kyc-verification-widget {\n padding: 20px;\n align-items: center;\n}\n.player-kyc-verification-widget h2 {\n margin: 15px;\n}\n.player-kyc-verification-widget .widget-description {\n margin: 24px 0px;\n}\n.player-kyc-verification-widget .verification-types {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 34px;\n}\n.player-kyc-verification-widget .verification-types .verification-box {\n transition: height 0.3s, border-color 0.3s;\n border: solid 1px var(--emfe-w-color-gray-100, #E6E6E6);\n border-radius: 2px;\n display: flex;\n flex-direction: column;\n padding: 0px 14px;\n border-width: 2px 2px 8px 2px;\n align-self: start;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box {\n flex-shrink: 0;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header {\n display: flex;\n padding: 14px 0px;\n justify-content: space-between;\n cursor: pointer;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon {\n flex-grow: 1;\n display: flex;\n justify-content: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon svg {\n height: 24px;\n width: 24px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-title {\n flex-grow: 1;\n font-size: 18px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon {\n flex-grow: 10;\n width: 14px;\n height: 14px;\n display: flex;\n justify-content: flex-end;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon svg {\n width: 20px;\n height: 22px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content {\n flex-grow: 1;\n border-top: 0.4px solid var(--emfe-w-color-gray-100, #E6E6E6);\n padding: 10px 0px;\n flex-grow: 1;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .upload-status {\n text-align: center;\n padding: 20px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown {\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown svg {\n margin: 16px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .nice-select {\n cursor: pointer;\n width: 100%;\n height: 30px;\n padding: 4px 14px;\n font-size: 14px;\n border: 1px solid var(--emfe-w-color-gray-150, #828282);\n border-radius: 2px;\n background-color: var(--emfe-w-color-white, #FFFFFF);\n color: #333;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n padding-right: 30px;\n background-repeat: no-repeat;\n background-position: right 10px center;\n background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><path fill=\"%23333\" d=\"M10 18.4l-6.5-6.5h13z\"/><path fill=\"%23333\" d=\"M10 1.6l6.5 6.5H3.5z\"/></svg>');\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button {\n font-family: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--emfe-w-color-white, #FFFFFF);\n color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));\n border: none;\n font-size: 16px;\n padding: 10px 0px 0px 0px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button svg {\n margin-right: 10px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded {\n border-color: var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));\n min-height: 120px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.failed {\n border-color: var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));\n}\n.player-kyc-verification-widget .verification-types .verification-box.success {\n border-color: var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content .verification-status {\n margin: 12px 0px 16px;\n font-size: 18px;\n text-align: center;\n color: var(--emfe-w-color-gray-150, #828282);\n}\n\n.MenuReturnButton {\n display: flex;\n align-items: center;\n}\n\n@container (min-width: 700px) {\n .player-kyc-verification-widget {\n padding: 100px 60px;\n }\n}\n@container (max-width: 700px) {\n .player-kyc-verification-widget h2 {\n margin: 15px;\n text-align: center;\n }\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: 1fr;\n grid-gap: 16px;\n }\n}\n@container (max-width: 475px) {\n .player-kyc-verification-widget .verification-types {\n display: block;\n }\n .player-kyc-verification-widget .verification-types .verification-box {\n margin-bottom: 20px;\n }\n}\n@container (max-width: 1240px) and (min-width: 701px) {\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: repeat(2, 1fr);\n }\n}";
533
+ const PlayerKycVerificationStyle0 = playerKycVerificationCss;
533
534
 
534
535
  const PlayerKycVerificationWidget = class {
535
- constructor(hostRef) {
536
- registerInstance(this, hostRef);
537
- /**
538
- * The userId
539
- */
540
- this.userId = '';
541
- /**
542
- * The session
543
- */
544
- this.session = '';
545
- /**
546
- * The NorWAy endpoint
547
- */
548
- this.endpoint = '';
549
- /**
550
- * The translationurl
551
- */
552
- this.translationUrl = '';
553
- /**
554
- * Client custom styling via string
555
- */
556
- this.clientStyling = '';
557
- /**
558
- * For verified status this icon will be displayed
559
- */
560
- this.verifiedIcon = '';
561
- /**
562
- * For failed status this icon will be displayed
563
- */
564
- this.failedIcon = '';
565
- /**
566
- * For the default status this icon will be displayed
567
- */
568
- this.defaultIcon = '';
569
- /**
570
- * Client custom styling via url content
571
- */
572
- this.clientStylingUrl = '';
573
- this.verificationType = [];
574
- this.isLoading = false;
575
- this.stylingAppends = false;
576
- this.selectedFile = null;
577
- this.uploadSizeExceeded = false;
578
- this.expandedOnDesktop = false;
579
- this.scriptInjected = false;
580
- this.MAX_UPLOAD_SIZE = 50000000;
581
- this.userAgent = window.navigator.userAgent;
582
- this.isMobile = isMobile(this.userAgent);
583
- this.setClientStyling = () => {
584
- let sheet = document.createElement('style');
585
- sheet.innerHTML = this.clientStyling;
586
- this.stylingContainer.prepend(sheet);
587
- };
588
- this.setClientStylingURL = () => {
589
- let url = new URL(this.clientStylingUrl);
590
- let cssFile = document.createElement('style');
591
- fetch(url.href)
592
- .then((res) => res.text())
593
- .then((data) => {
594
- cssFile.innerHTML = data;
595
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
596
- })
597
- .catch((err) => {
598
- console.log('error ', err);
599
- });
600
- };
601
- this.handleToggleScreen = () => {
602
- this.toggleScreen(this.isMobile);
603
- };
604
- }
605
- handleNewTranslations() {
606
- this.isLoading = true;
607
- getTranslations(this.translationUrl).then(() => {
608
- this.isLoading = false;
609
- });
610
- }
611
- async componentWillLoad() {
612
- if (this.translationUrl.length > 2) {
613
- await getTranslations(this.translationUrl);
536
+ constructor(hostRef) {
537
+ registerInstance(this, hostRef);
538
+ this.scriptInjected = false;
539
+ this.MAX_UPLOAD_SIZE = 50000000;
540
+ this.userAgent = window.navigator.userAgent;
541
+ this.isMobile = isMobile(this.userAgent);
542
+ this.setClientStyling = () => {
543
+ let sheet = document.createElement('style');
544
+ sheet.innerHTML = this.clientStyling;
545
+ this.stylingContainer.prepend(sheet);
546
+ };
547
+ this.setClientStylingURL = () => {
548
+ let url = new URL(this.clientStylingUrl);
549
+ let cssFile = document.createElement('style');
550
+ fetch(url.href)
551
+ .then((res) => res.text())
552
+ .then((data) => {
553
+ cssFile.innerHTML = data;
554
+ setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
555
+ })
556
+ .catch((err) => {
557
+ console.log('error ', err);
558
+ });
559
+ };
560
+ this.handleToggleScreen = () => {
561
+ this.toggleScreen(this.isMobile);
562
+ };
563
+ this.userId = '';
564
+ this.session = '';
565
+ this.language = undefined;
566
+ this.endpoint = '';
567
+ this.translationUrl = '';
568
+ this.clientStyling = '';
569
+ this.verifiedIcon = '';
570
+ this.failedIcon = '';
571
+ this.defaultIcon = '';
572
+ this.clientStylingUrl = '';
573
+ this.verificationType = [];
574
+ this.isLoading = false;
575
+ this.stylingAppends = false;
576
+ this.selectedFile = null;
577
+ this.uploadingStatus = undefined;
578
+ this.uploadSizeExceeded = false;
579
+ this.selectedOption = undefined;
580
+ this.expandedOnDesktop = false;
614
581
  }
615
- }
616
- componentDidRender() {
617
- // start custom styling area
618
- if (!this.stylingAppends && this.stylingContainer) {
619
- if (this.clientStyling)
620
- this.setClientStyling();
621
- if (this.clientStylingUrl)
622
- this.setClientStylingURL();
623
- this.stylingAppends = true;
582
+ handleNewTranslations() {
583
+ this.isLoading = true;
584
+ getTranslations(this.translationUrl).then(() => {
585
+ this.isLoading = false;
586
+ });
624
587
  }
625
- // end custom styling area
626
- }
627
- async componentDidLoad() {
628
- if (window.innerWidth > 700) {
629
- this.expandedOnDesktop = true;
588
+ async componentWillLoad() {
589
+ if (this.translationUrl.length > 2) {
590
+ await getTranslations(this.translationUrl);
591
+ }
630
592
  }
631
- try {
632
- let url = new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);
633
- const options = {
634
- method: 'POST',
635
- headers: {
636
- 'X-SessionId': this.session,
637
- 'Content-Type': 'application/json',
638
- },
639
- body: JSON.stringify({})
640
- };
641
- fetch(url.href, options)
642
- .then((res) => {
643
- if (res.status === 200) {
644
- return res.json();
593
+ componentDidRender() {
594
+ // start custom styling area
595
+ if (!this.stylingAppends && this.stylingContainer) {
596
+ if (this.clientStyling)
597
+ this.setClientStyling();
598
+ if (this.clientStylingUrl)
599
+ this.setClientStylingURL();
600
+ this.stylingAppends = true;
645
601
  }
646
- else {
647
- throw new Error("HTTP status " + res.status);
602
+ // end custom styling area
603
+ }
604
+ async componentDidLoad() {
605
+ if (window.innerWidth > 700) {
606
+ this.expandedOnDesktop = true;
607
+ }
608
+ try {
609
+ let url = new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);
610
+ const options = {
611
+ method: 'POST',
612
+ headers: {
613
+ 'X-SessionId': this.session,
614
+ 'Content-Type': 'application/json',
615
+ },
616
+ body: JSON.stringify({})
617
+ };
618
+ fetch(url.href, options)
619
+ .then((res) => {
620
+ if (res.status === 200) {
621
+ return res.json();
622
+ }
623
+ else {
624
+ throw new Error("HTTP status " + res.status);
625
+ }
626
+ })
627
+ .then((data) => {
628
+ this.verificationType = data.verifications;
629
+ })
630
+ .catch((err) => {
631
+ // Handle any errors
632
+ console.error(err);
633
+ });
634
+ }
635
+ catch (error) {
636
+ console.error('Error fetching verification types:', error);
648
637
  }
649
- })
650
- .then((data) => {
651
- this.verificationType = data.verifications;
652
- })
653
- .catch((err) => {
654
- // Handle any errors
655
- console.error(err);
656
- });
657
638
  }
658
- catch (error) {
659
- console.error('Error fetching verification types:', error);
639
+ handleOptionChange(event, verificationTypeId) {
640
+ const target = event.target;
641
+ this.selectedOption = target.value;
642
+ this.verificationType = this.verificationType.map((type) => {
643
+ if (type.type === verificationTypeId) {
644
+ type.optionChosen = target.value;
645
+ }
646
+ return type;
647
+ });
660
648
  }
661
- }
662
- handleOptionChange(event, verificationTypeId) {
663
- const target = event.target;
664
- this.selectedOption = target.value;
665
- this.verificationType = this.verificationType.map((type) => {
666
- if (type.type === verificationTypeId) {
667
- type.optionChosen = target.value;
668
- }
669
- return type;
670
- });
671
- }
672
- handleDocumentsStatus(verificationTypeId, documentsStatus, documentCode) {
673
- this.verificationType = this.verificationType.map((vType) => {
674
- if (vType.type === verificationTypeId) {
675
- const document = vType.documents.find((doc) => doc.code === documentCode);
676
- if (document) {
677
- document.statusUploaded = documentsStatus;
678
- }
679
- }
680
- return vType;
681
- });
682
- }
683
- downloadPDF(pdfUrl) {
684
- const link = document.createElement('a');
685
- link.href = pdfUrl;
686
- link.download = 'file.pdf';
687
- link.target = '_blank';
688
- link.dispatchEvent(new MouseEvent('click'));
689
- }
690
- toggleVerificationType(verificationTypeId, verificationTypeFlowInfoType) {
691
- this.expandedOnDesktop = false;
692
- this.verificationType = this.verificationType.map((type) => {
693
- var _a;
694
- if (type.type === verificationTypeId && ((_a = type.flowInfo) === null || _a === void 0 ? void 0 : _a.type) == verificationTypeFlowInfoType) {
695
- type.expanded = !type.expanded;
696
- }
697
- return type;
698
- });
699
- }
700
- toggleScreen(isMobile) {
701
- window.postMessage({ type: 'PlayerAccountMenuActive', isMobile }, window.location.href);
702
- }
703
- checkFileSize(file) {
704
- let size = 0;
705
- Object.keys(file).forEach(element => {
706
- size += file[element].size;
707
- });
708
- return size <= this.MAX_UPLOAD_SIZE;
709
- }
710
- handleFileSelection(file, documentType, verificationTypeId) {
711
- if (file && file.length > 0) {
712
- this.selectedFile = file;
713
- if (!this.checkFileSize(this.selectedFile)) {
714
- console.error(translate('fileSizeExceeded', this.language));
715
- this.uploadingStatus = translate('fileSizeExceeded', this.language);
716
- this.handleDocumentsStatus(verificationTypeId, this.uploadingStatus, documentType);
717
- this.uploadSizeExceeded = true;
718
- }
719
- else {
720
- const uploadOptions = {
721
- method: 'POST',
722
- headers: {
723
- 'Content-Type': 'application/json',
724
- 'X-SessionId': this.session,
725
- },
726
- body: JSON.stringify({ DocumentCode: documentType }),
727
- };
728
- fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`, uploadOptions)
729
- .then(response => {
730
- if (response.ok) {
731
- this.uploadingStatus = translate('uploading', this.language);
732
- this.handleDocumentsStatus(verificationTypeId, this.uploadingStatus, documentType);
733
- return response.json();
734
- }
735
- }).then((data) => {
736
- const formData = new FormData();
737
- formData.append(documentType, this.selectedFile[0]);
738
- fetch(data.Url, { method: "POST", body: formData })
739
- .then(res => {
740
- if (res.ok) {
741
- if (this.selectedFile.length > 1) {
742
- this.uploadingStatus = translate('successUploadMultipleFiles', this.language);
743
- }
744
- else {
745
- this.uploadingStatus = translate('successUpload', this.language);
746
- }
747
- this.handleDocumentsStatus(verificationTypeId, this.uploadingStatus, documentType);
649
+ handleDocumentsStatus(verificationTypeId, documentsStatus, documentCode) {
650
+ this.verificationType = this.verificationType.map((vType) => {
651
+ if (vType.type === verificationTypeId) {
652
+ const document = vType.documents.find((doc) => doc.code === documentCode);
653
+ if (document) {
654
+ document.statusUploaded = documentsStatus;
655
+ }
748
656
  }
749
- else {
750
- this.uploadingStatus = translate('failedUpload', this.language);
751
- this.handleDocumentsStatus(verificationTypeId, this.uploadingStatus, documentType);
752
- console.error('File upload error:', res.status);
657
+ return vType;
658
+ });
659
+ }
660
+ downloadPDF(pdfUrl) {
661
+ const link = document.createElement('a');
662
+ link.href = pdfUrl;
663
+ link.download = 'file.pdf';
664
+ link.target = '_blank';
665
+ link.dispatchEvent(new MouseEvent('click'));
666
+ }
667
+ toggleVerificationType(verificationTypeId, verificationTypeFlowInfoType) {
668
+ this.expandedOnDesktop = false;
669
+ this.verificationType = this.verificationType.map((type) => {
670
+ var _a;
671
+ if (type.type === verificationTypeId && ((_a = type.flowInfo) === null || _a === void 0 ? void 0 : _a.type) == verificationTypeFlowInfoType) {
672
+ type.expanded = !type.expanded;
753
673
  }
754
- })
755
- .catch(error => {
756
- console.error('File upload error:', error);
757
- });
758
- })
759
- .catch(error => {
760
- console.error('File upload error:', error);
674
+ return type;
761
675
  });
762
- }
763
676
  }
764
- }
765
- importScript(url) {
766
- return new Promise((resolve, reject) => {
767
- fetch(url)
768
- .then((res) => res.text())
769
- .then((res) => {
770
- const scriptFunction = new Function(res);
771
- scriptFunction();
772
- if (this.scriptInjected) {
773
- resolve(true);
774
- }
775
- else {
776
- const scriptElement = document.createElement('script');
777
- scriptElement.src = 'https://test.insic.de/frontend3/static/js/avs-loader.min.js';
778
- document.head.appendChild(scriptElement);
779
- this.scriptInjected = true;
780
- resolve(true);
677
+ toggleScreen(isMobile) {
678
+ window.postMessage({ type: 'PlayerAccountMenuActive', isMobile }, window.location.href);
679
+ }
680
+ checkFileSize(file) {
681
+ let size = 0;
682
+ Object.keys(file).forEach(element => {
683
+ size += file[element].size;
684
+ });
685
+ return size <= this.MAX_UPLOAD_SIZE;
686
+ }
687
+ handleFileSelection(file, documentType, verificationTypeId) {
688
+ if (file && file.length > 0) {
689
+ this.selectedFile = file;
690
+ if (!this.checkFileSize(this.selectedFile)) {
691
+ console.error(translate('fileSizeExceeded', this.language));
692
+ this.uploadingStatus = translate('fileSizeExceeded', this.language);
693
+ this.handleDocumentsStatus(verificationTypeId, this.uploadingStatus, documentType);
694
+ this.uploadSizeExceeded = true;
695
+ }
696
+ else {
697
+ const uploadOptions = {
698
+ method: 'POST',
699
+ headers: {
700
+ 'Content-Type': 'application/json',
701
+ 'X-SessionId': this.session,
702
+ },
703
+ body: JSON.stringify({ DocumentCode: documentType }),
704
+ };
705
+ fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`, uploadOptions)
706
+ .then(response => {
707
+ if (response.ok) {
708
+ this.uploadingStatus = translate('uploading', this.language);
709
+ this.handleDocumentsStatus(verificationTypeId, this.uploadingStatus, documentType);
710
+ return response.json();
711
+ }
712
+ }).then((data) => {
713
+ const formData = new FormData();
714
+ formData.append(documentType, this.selectedFile[0]);
715
+ fetch(data.Url, { method: "POST", body: formData })
716
+ .then(res => {
717
+ if (res.ok) {
718
+ if (this.selectedFile.length > 1) {
719
+ this.uploadingStatus = translate('successUploadMultipleFiles', this.language);
720
+ }
721
+ else {
722
+ this.uploadingStatus = translate('successUpload', this.language);
723
+ }
724
+ this.handleDocumentsStatus(verificationTypeId, this.uploadingStatus, documentType);
725
+ }
726
+ else {
727
+ this.uploadingStatus = translate('failedUpload', this.language);
728
+ this.handleDocumentsStatus(verificationTypeId, this.uploadingStatus, documentType);
729
+ console.error('File upload error:', res.status);
730
+ }
731
+ })
732
+ .catch(error => {
733
+ console.error('File upload error:', error);
734
+ });
735
+ })
736
+ .catch(error => {
737
+ console.error('File upload error:', error);
738
+ });
739
+ }
781
740
  }
782
- })
783
- .catch(error => {
784
- reject(error);
785
- });
786
- });
787
- }
788
- isStatusUploaded(document) {
789
- if (document && document.status === 'Uploaded')
790
- return true;
791
- return false;
792
- }
793
- renderVerificationTypeBox(verificationType) {
794
- if (this.expandedOnDesktop) {
795
- verificationType.expanded = true;
796
741
  }
797
- let expanded = verificationType.expanded;
798
- let name = verificationType.type.trim();
799
- let optionChosen = verificationType.optionChosen;
800
- let status = verificationType.status;
801
- let documents = verificationType.documents;
802
- let flowInfo = verificationType.flowInfo;
803
- const isVerified = status === 'Verified';
804
- const isFailedOrExpired = status === 'Failed' || status === 'Expired';
805
- return (h("div", { class: `verification-box ${expanded ? 'expanded' : ''} ${isFailedOrExpired ? 'failed' : ''} ${isVerified ? 'success' : ''}` }, h("div", { class: `box box-header ${expanded ? 'expanded' : ''}`, onClick: () => { var _a; return this.toggleVerificationType(verificationType.type, (_a = verificationType.flowInfo) === null || _a === void 0 ? void 0 : _a.type); } }, h("div", { class: "box-icon" }, isVerified ? (h("div", null, this.verifiedIcon ? (h("img", { class: "CustomVerifiedIcon", src: this.verifiedIcon, alt: "" })) : (h("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { cx: "50", cy: "50", r: "40", fill: "#388D79" }), h("circle", { cx: "50", cy: "50", r: "34", fill: "none", stroke: "#fff", "stroke-width": "12px" }), h("polyline", { points: "30,50 45,63 70,35", fill: "none", stroke: "#fff", "stroke-width": "8px" }))))) : (isFailedOrExpired ? (h("div", null, this.failedIcon ? (h("img", { class: "CustomFailedIcon", src: this.failedIcon, alt: "" })) : (h("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { cx: "50", cy: "50", r: "40", fill: "red" }), h("line", { x1: "30", y1: "30", x2: "70", y2: "70", stroke: "#fff", "stroke-width": "10px" }), h("line", { x1: "30", y1: "70", x2: "70", y2: "30", stroke: "#fff", "stroke-width": "10px" }))))) : (h("div", null, this.defaultIcon ? (h("img", { class: "CustomDefaultIcon", src: this.defaultIcon, alt: "" })) : (h("svg", { width: "800px", height: "800px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M4 4V20C4 21.1046 4.89543 22 6 22L18 22C19.1046 22 20 21.1046 20 20V8.34162C20 7.8034 19.7831 7.28789 19.3982 6.91161L14.9579 2.56999C14.5842 2.20459 14.0824 2 13.5597 2L6 2C4.89543 2 4 2.89543 4 4Z", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M9 13H15", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M9 17H12", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M14 2V6C14 7.10457 14.8954 8 16 8H20", stroke: "#000000", "stroke-width": "2", "stroke-linejoin": "round" }))))))), h("div", { class: "box-title" }, translate(name, this.language)), h("div", { class: "chevron-icon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: expanded ? 'M6 15l6-6 6 6' : 'M6 9l6 6 6-6' })))), expanded ? (this.renderExpandedContent(verificationType, optionChosen, status, documents, flowInfo, isVerified, isFailedOrExpired)) :
806
- (h("div", { class: "box box-content" }, h("div", { id: "__avs-wrapper" })))));
807
- }
808
- renderDocumentsActions(selectedDocument, optionChosen, verificationType) {
809
- return (h("div", null, this.isStatusUploaded(selectedDocument) ? (h("div", { class: "upload-status" }, translate('uploaded', this.language))) :
810
- (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.statusUploaded) ? (h("div", { class: "upload-status" }, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.statusUploaded)) : (h("div", { class: "documents-action" }, h("div", { class: "sample-file" }, (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.sampleType) === "FileDownload" ? (h("button", { class: "download-button", onClick: () => this.downloadPDF(selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.sampleUrl) }, h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M12 0C5.372 0 0 5.372 0 12C0 18.628 5.372 24 12 24C18.628 24 24 18.628 24 12C24 5.372 18.628 0 12 0ZM12 22C6.485 22 2 17.515 2 12C2 6.485 6.485 2 12 2C17.515 2 22 6.485 22 12C22 17.515 17.515 22 12 22Z", fill: "var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))" }), h("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))" })), h("span", null, translate('download', this.language)))) : null), h("div", { class: "upload-button" }, optionChosen ? (h("label", null, h("input", { type: "file", accept: "*", onChange: ($event) => this.handleFileSelection($event.target.files, this.selectedOption, verificationType.type), style: { display: 'none' } }), h("svg", { width: "100", height: "100", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { cx: "50", cy: "50", r: "40", fill: "var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))" }), h("line", { x1: "30", y1: "50", x2: "70", y2: "50", stroke: "white", "stroke-width": "6" }), h("line", { x1: "50", y1: "30", x2: "50", y2: "70", stroke: "white", "stroke-width": "6" })))) : null)))));
811
- }
812
- ;
813
- renderExpandedContent(verificationType, optionChosen, status, documents, flowInfo, isVerified, isFailedOrExpired) {
814
- if ((flowInfo === null || flowInfo === void 0 ? void 0 : flowInfo.type) === 'Widget') {
815
- return (h("div", null, h("hr", { style: { margin: '5px' } }), h("iframe", { src: flowInfo.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: true, allow: "camera *;microphone *" })));
816
- // comment the functionality under because it might have a different type of script that we might have to handle
817
- // this.importScript(flowInfo.url)
818
- // .then(() => {
819
- // // Script imported successfully
820
- // console.log('Script imported correctly');
821
- // // Open/show the widget
822
- // // You'll need to check the widget documentation for how to open/show it
823
- // })
824
- // .catch(error => {
825
- // // Handle script import error
826
- // console.error('Error importing script:', error);
827
- // });
742
+ importScript(url) {
743
+ return new Promise((resolve, reject) => {
744
+ fetch(url)
745
+ .then((res) => res.text())
746
+ .then((res) => {
747
+ const scriptFunction = new Function(res);
748
+ scriptFunction();
749
+ if (this.scriptInjected) {
750
+ resolve(true);
751
+ }
752
+ else {
753
+ const scriptElement = document.createElement('script');
754
+ scriptElement.src = 'https://test.insic.de/frontend3/static/js/avs-loader.min.js';
755
+ document.head.appendChild(scriptElement);
756
+ this.scriptInjected = true;
757
+ resolve(true);
758
+ }
759
+ })
760
+ .catch(error => {
761
+ reject(error);
762
+ });
763
+ });
828
764
  }
829
- else if ((flowInfo === null || flowInfo === void 0 ? void 0 : flowInfo.type) === 'Redirect' && verificationType.vendorName !== "Manual" && status !== "Verified") {
830
- return (h("div", null, h("hr", { style: { margin: '5px' } }), h("iframe", { src: flowInfo.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: true, allow: "camera *;microphone *" })));
765
+ isStatusUploaded(document) {
766
+ if (document && document.status === 'Uploaded')
767
+ return true;
768
+ return false;
831
769
  }
832
- else {
833
- return (h("div", { class: "box box-content" }, h(Fragment, null, isVerified ? (h("div", { class: "verification-status" }, translate('verificationComplete', this.language))) : isFailedOrExpired ? (h("div", { class: "verification-status" }, status === 'Failed' ? translate('verificationFailed', this.language) : translate('verificationExpired', this.language))) : documents.length > 0 ? (h("div", { class: "documents-dropdown" }, h("select", { class: "nice-select", onChange: (event) => this.handleOptionChange(event, verificationType.type) }, h("option", { value: "", selected: true, disabled: true, hidden: true }, translate('chooseDocument', this.language)), documents.map((doc) => (h("option", { selected: optionChosen == doc.code ? true : false, value: doc.code }, translate(doc.type, this.language))))), this.renderDocumentsActions(documents.find((e) => e.code === optionChosen), optionChosen, verificationType))) : null)));
770
+ renderVerificationTypeBox(verificationType) {
771
+ if (this.expandedOnDesktop) {
772
+ verificationType.expanded = true;
773
+ }
774
+ let expanded = verificationType.expanded;
775
+ let name = verificationType.type.trim();
776
+ let optionChosen = verificationType.optionChosen;
777
+ let status = verificationType.status;
778
+ let documents = verificationType.documents;
779
+ let flowInfo = verificationType.flowInfo;
780
+ const isVerified = status === 'Verified';
781
+ const isFailedOrExpired = status === 'Failed' || status === 'Expired';
782
+ return (h("div", { class: `verification-box ${expanded ? 'expanded' : ''} ${isFailedOrExpired ? 'failed' : ''} ${isVerified ? 'success' : ''}` }, h("div", { class: `box box-header ${expanded ? 'expanded' : ''}`, onClick: () => { var _a; return this.toggleVerificationType(verificationType.type, (_a = verificationType.flowInfo) === null || _a === void 0 ? void 0 : _a.type); } }, h("div", { class: "box-icon" }, isVerified ? (h("div", null, this.verifiedIcon ? (h("img", { class: "CustomVerifiedIcon", src: this.verifiedIcon, alt: "" })) : (h("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { cx: "50", cy: "50", r: "40", fill: "#388D79" }), h("circle", { cx: "50", cy: "50", r: "34", fill: "none", stroke: "#fff", "stroke-width": "12px" }), h("polyline", { points: "30,50 45,63 70,35", fill: "none", stroke: "#fff", "stroke-width": "8px" }))))) : (isFailedOrExpired ? (h("div", null, this.failedIcon ? (h("img", { class: "CustomFailedIcon", src: this.failedIcon, alt: "" })) : (h("svg", { width: "100", height: "100", viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { cx: "50", cy: "50", r: "40", fill: "red" }), h("line", { x1: "30", y1: "30", x2: "70", y2: "70", stroke: "#fff", "stroke-width": "10px" }), h("line", { x1: "30", y1: "70", x2: "70", y2: "30", stroke: "#fff", "stroke-width": "10px" }))))) : (h("div", null, this.defaultIcon ? (h("img", { class: "CustomDefaultIcon", src: this.defaultIcon, alt: "" })) : (h("svg", { width: "800px", height: "800px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M4 4V20C4 21.1046 4.89543 22 6 22L18 22C19.1046 22 20 21.1046 20 20V8.34162C20 7.8034 19.7831 7.28789 19.3982 6.91161L14.9579 2.56999C14.5842 2.20459 14.0824 2 13.5597 2L6 2C4.89543 2 4 2.89543 4 4Z", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M9 13H15", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M9 17H12", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M14 2V6C14 7.10457 14.8954 8 16 8H20", stroke: "#000000", "stroke-width": "2", "stroke-linejoin": "round" }))))))), h("div", { class: "box-title" }, translate(name, this.language)), h("div", { class: "chevron-icon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: expanded ? 'M6 15l6-6 6 6' : 'M6 9l6 6 6-6' })))), expanded ? (this.renderExpandedContent(verificationType, optionChosen, status, documents, flowInfo, isVerified, isFailedOrExpired)) :
783
+ (h("div", { class: "box box-content" }, h("div", { id: "__avs-wrapper" })))));
834
784
  }
835
- }
836
- render() {
837
- if (this.isLoading) {
838
- return (h("div", null, h("p", null, translate('loading', this.language))));
785
+ renderDocumentsActions(selectedDocument, optionChosen, verificationType) {
786
+ return (h("div", null, this.isStatusUploaded(selectedDocument) ? (h("div", { class: "upload-status" }, translate('uploaded', this.language))) :
787
+ (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.statusUploaded) ? (h("div", { class: "upload-status" }, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.statusUploaded)) : (h("div", { class: "documents-action" }, h("div", { class: "sample-file" }, (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.sampleType) === "FileDownload" ? (h("button", { class: "download-button", onClick: () => this.downloadPDF(selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.sampleUrl) }, h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M12 0C5.372 0 0 5.372 0 12C0 18.628 5.372 24 12 24C18.628 24 24 18.628 24 12C24 5.372 18.628 0 12 0ZM12 22C6.485 22 2 17.515 2 12C2 6.485 6.485 2 12 2C17.515 2 22 6.485 22 12C22 17.515 17.515 22 12 22Z", fill: "var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))" }), h("path", { d: "M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z", fill: "var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))" })), h("span", null, translate('download', this.language)))) : null), h("div", { class: "upload-button" }, optionChosen ? (h("label", null, h("input", { type: "file", accept: "*", onChange: ($event) => this.handleFileSelection($event.target.files, this.selectedOption, verificationType.type), style: { display: 'none' } }), h("svg", { width: "100", height: "100", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { cx: "50", cy: "50", r: "40", fill: "var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))" }), h("line", { x1: "30", y1: "50", x2: "70", y2: "50", stroke: "white", "stroke-width": "6" }), h("line", { x1: "50", y1: "30", x2: "50", y2: "70", stroke: "white", "stroke-width": "6" })))) : null)))));
839
788
  }
840
- else {
841
- return (h("div", { class: "ModalContainer", ref: el => this.stylingContainer = el }, h("div", { class: "player-kyc-verification-widget" }, (this.isMobile ?
842
- h("div", { class: "MenuReturnButton", onClick: this.handleToggleScreen }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, h("defs", null), h("g", { transform: "translate(-20 -158)" }, h("g", { transform: "translate(20 158)" }, h("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), h("h2", null, translate('kycTitle', this.language)))
843
- :
844
- h("h2", null, translate('kycTitle', this.language))), this.verificationType.length === 0 ?
845
- h("div", { class: "no-verification-description", style: { padding: '24px', fontSize: '18px' } }, translate('noVerificationRequired', this.language))
846
- :
847
- h(Fragment, null, h("div", { class: "widget-description" }, translate('kycDescription', this.language)), h("div", { class: "verification-types" }, this.verificationType.map((verificationType) => verificationType ? this.renderVerificationTypeBox(verificationType) : null))))));
789
+ ;
790
+ renderExpandedContent(verificationType, optionChosen, status, documents, flowInfo, isVerified, isFailedOrExpired) {
791
+ if ((flowInfo === null || flowInfo === void 0 ? void 0 : flowInfo.type) === 'Widget') {
792
+ return (h("div", null, h("hr", { style: { margin: '5px' } }), h("iframe", { src: flowInfo.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: true, allow: "camera *;microphone *" })));
793
+ // comment the functionality under because it might have a different type of script that we might have to handle
794
+ // this.importScript(flowInfo.url)
795
+ // .then(() => {
796
+ // // Script imported successfully
797
+ // console.log('Script imported correctly');
798
+ // // Open/show the widget
799
+ // // You'll need to check the widget documentation for how to open/show it
800
+ // })
801
+ // .catch(error => {
802
+ // // Handle script import error
803
+ // console.error('Error importing script:', error);
804
+ // });
805
+ }
806
+ else if ((flowInfo === null || flowInfo === void 0 ? void 0 : flowInfo.type) === 'Redirect' && verificationType.vendorName !== "Manual" && status !== "Verified") {
807
+ return (h("div", null, h("hr", { style: { margin: '5px' } }), h("iframe", { src: flowInfo.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: true, allow: "camera *;microphone *" })));
808
+ }
809
+ else {
810
+ return (h("div", { class: "box box-content" }, h(Fragment, null, isVerified ? (h("div", { class: "verification-status" }, translate('verificationComplete', this.language))) : isFailedOrExpired ? (h("div", { class: "verification-status" }, status === 'Failed' ? translate('verificationFailed', this.language) : translate('verificationExpired', this.language))) : documents.length > 0 ? (h("div", { class: "documents-dropdown" }, h("select", { class: "nice-select", onChange: (event) => this.handleOptionChange(event, verificationType.type) }, h("option", { value: "", selected: true, disabled: true, hidden: true }, translate('chooseDocument', this.language)), documents.map((doc) => (h("option", { selected: optionChosen == doc.code ? true : false, value: doc.code }, translate(doc.type, this.language))))), this.renderDocumentsActions(documents.find((e) => e.code === optionChosen), optionChosen, verificationType))) : null)));
811
+ }
812
+ }
813
+ render() {
814
+ if (this.isLoading) {
815
+ return (h("div", null, h("p", null, translate('loading', this.language))));
816
+ }
817
+ else {
818
+ return (h("div", { class: "ModalContainer", ref: el => this.stylingContainer = el }, h("div", { class: "player-kyc-verification-widget" }, (this.isMobile ?
819
+ h("div", { class: "MenuReturnButton", onClick: this.handleToggleScreen }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, h("defs", null), h("g", { transform: "translate(-20 -158)" }, h("g", { transform: "translate(20 158)" }, h("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), h("h2", null, translate('kycTitle', this.language)))
820
+ :
821
+ h("h2", null, translate('kycTitle', this.language))), this.verificationType.length === 0 ?
822
+ h("div", { class: "no-verification-description", style: { padding: '24px', fontSize: '18px' } }, translate('noVerificationRequired', this.language))
823
+ :
824
+ h(Fragment, null, h("div", { class: "widget-description" }, translate('kycDescription', this.language)), h("div", { class: "verification-types" }, this.verificationType.map((verificationType) => verificationType ? this.renderVerificationTypeBox(verificationType) : null))))));
825
+ }
848
826
  }
849
- }
850
- static get watchers() { return {
851
- "translationUrl": ["handleNewTranslations"]
852
- }; }
827
+ static get watchers() { return {
828
+ "translationUrl": ["handleNewTranslations"]
829
+ }; }
853
830
  };
854
- PlayerKycVerificationWidget.style = playerKycVerificationCss;
831
+ PlayerKycVerificationWidget.style = PlayerKycVerificationStyle0;
855
832
 
856
833
  export { PlayerKycVerificationWidget as player_kyc_verification };