@everymatrix/player-kyc-verification 1.60.0 → 1.60.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/player-kyc-verification.cjs.entry.js +37 -2
- package/dist/collection/components/player-kyc-verification/player-kyc-verification.js +13 -2
- package/dist/collection/utils/locale.utils.js +24 -0
- package/dist/esm/player-kyc-verification.entry.js +37 -2
- package/dist/player-kyc-verification/p-af704db4.entry.js +1 -0
- package/dist/player-kyc-verification/player-kyc-verification.esm.js +1 -1
- 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
- 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
- package/dist/types/components/player-kyc-verification/player-kyc-verification.d.ts +1 -0
- package/package.json +1 -1
- package/dist/player-kyc-verification/p-6ce46f0a.entry.js +0 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -32,6 +32,9 @@ let TRANSLATIONS = {
|
|
|
32
32
|
SourceOfWealth: 'Source of Wealth',
|
|
33
33
|
SocialMedia: 'Social Media',
|
|
34
34
|
ProofOfPayment: 'Proof of Payment',
|
|
35
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
36
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
37
|
+
SourceOfFunds: 'Source of Funds',
|
|
35
38
|
uploaded: 'Document already uploaded.',
|
|
36
39
|
Unknown: 'Unknown',
|
|
37
40
|
Passport: 'Passport',
|
|
@@ -90,6 +93,9 @@ let TRANSLATIONS = {
|
|
|
90
93
|
Biometric: 'Biometric',
|
|
91
94
|
Recheck: 'Recheck',
|
|
92
95
|
ProofOfAddress: 'Proof of Address',
|
|
96
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
97
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
98
|
+
SourceOfFunds: 'Source of Funds',
|
|
93
99
|
SourceOfWealth: 'Source of Wealth',
|
|
94
100
|
SocialMedia: 'Social Media',
|
|
95
101
|
ProofOfPayment: 'Proof of Payment',
|
|
@@ -151,6 +157,9 @@ let TRANSLATIONS = {
|
|
|
151
157
|
Biometric: 'Biometric',
|
|
152
158
|
Recheck: 'Recheck',
|
|
153
159
|
ProofOfAddress: 'Proof of Address',
|
|
160
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
161
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
162
|
+
SourceOfFunds: 'Source of Funds',
|
|
154
163
|
SourceOfWealth: 'Source of Wealth',
|
|
155
164
|
SocialMedia: 'Social Media',
|
|
156
165
|
ProofOfPayment: 'Proof of Payment',
|
|
@@ -215,6 +224,9 @@ let TRANSLATIONS = {
|
|
|
215
224
|
SourceOfWealth: 'Source of Wealth',
|
|
216
225
|
SocialMedia: 'Social Media',
|
|
217
226
|
ProofOfPayment: 'Proof of Payment',
|
|
227
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
228
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
229
|
+
SourceOfFunds: 'Source of Funds',
|
|
218
230
|
uploaded: 'Document déjà téléchargé.',
|
|
219
231
|
Unknown: 'Unknown',
|
|
220
232
|
Passport: 'Passport',
|
|
@@ -276,6 +288,9 @@ let TRANSLATIONS = {
|
|
|
276
288
|
SourceOfWealth: 'Source of Wealth',
|
|
277
289
|
SocialMedia: 'Social Media',
|
|
278
290
|
ProofOfPayment: 'Proof of Payment',
|
|
291
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
292
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
293
|
+
SourceOfFunds: 'Source of Funds',
|
|
279
294
|
uploaded: 'Document already uploaded.',
|
|
280
295
|
Unknown: 'Unknown',
|
|
281
296
|
Passport: 'Passport',
|
|
@@ -337,6 +352,9 @@ let TRANSLATIONS = {
|
|
|
337
352
|
SourceOfWealth: 'Izvor sredstava',
|
|
338
353
|
SocialMedia: 'Društvene mreže',
|
|
339
354
|
ProofOfPayment: 'Platna metoda',
|
|
355
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
356
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
357
|
+
SourceOfFunds: 'Source of Funds',
|
|
340
358
|
uploaded: 'Dokument je već učitan.',
|
|
341
359
|
Unknown: 'Nepoznato',
|
|
342
360
|
Passport: 'Putovnica',
|
|
@@ -396,6 +414,9 @@ let TRANSLATIONS = {
|
|
|
396
414
|
SourceOfWealth: 'Source of Wealth',
|
|
397
415
|
SocialMedia: 'Social Media',
|
|
398
416
|
ProofOfPayment: 'Proof of Payment',
|
|
417
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
418
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
419
|
+
SourceOfFunds: 'Source of Funds',
|
|
399
420
|
uploaded: 'Documento já carregado.',
|
|
400
421
|
Unknown: 'Unknown',
|
|
401
422
|
Passport: 'Passport',
|
|
@@ -455,6 +476,9 @@ let TRANSLATIONS = {
|
|
|
455
476
|
SourceOfWealth: 'Source of Wealth',
|
|
456
477
|
SocialMedia: 'Social Media',
|
|
457
478
|
ProofOfPayment: 'Proof of Payment',
|
|
479
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
480
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
481
|
+
SourceOfFunds: 'Source of Funds',
|
|
458
482
|
uploaded: 'Documento ya subido.',
|
|
459
483
|
Unknown: 'Unknown',
|
|
460
484
|
Passport: 'Passport',
|
|
@@ -824,13 +848,24 @@ const PlayerKycVerificationWidget = class {
|
|
|
824
848
|
return true;
|
|
825
849
|
return false;
|
|
826
850
|
}
|
|
851
|
+
getFirstRequestedDocument(verificationType) {
|
|
852
|
+
var _a;
|
|
853
|
+
let result;
|
|
854
|
+
(_a = verificationType === null || verificationType === void 0 ? void 0 : verificationType.documents) === null || _a === void 0 ? void 0 : _a.forEach((item) => {
|
|
855
|
+
if (item.status == "Requested") {
|
|
856
|
+
result = result !== null && result !== void 0 ? result : item.code;
|
|
857
|
+
}
|
|
858
|
+
});
|
|
859
|
+
return result;
|
|
860
|
+
}
|
|
827
861
|
renderVerificationTypeBox(verificationType) {
|
|
828
862
|
if (this.expandedOnDesktop) {
|
|
829
863
|
verificationType.expanded = true;
|
|
830
864
|
}
|
|
865
|
+
let firstRequestedDocument = this.getFirstRequestedDocument(verificationType);
|
|
831
866
|
let expanded = verificationType.expanded;
|
|
832
867
|
let name = verificationType.type.trim();
|
|
833
|
-
let optionChosen = verificationType.optionChosen;
|
|
868
|
+
let optionChosen = verificationType.optionChosen || firstRequestedDocument;
|
|
834
869
|
let status = verificationType.status;
|
|
835
870
|
let documents = verificationType.documents;
|
|
836
871
|
let flowInfo = verificationType.flowInfo;
|
|
@@ -864,7 +899,7 @@ const PlayerKycVerificationWidget = class {
|
|
|
864
899
|
return (index.h("div", null, index.h("hr", { style: { margin: '5px' } }), index.h("iframe", { src: flowInfo.url, frameborder: "0", height: "400px", width: "100%", allowfullScreen: true, allow: "camera *;microphone *" })));
|
|
865
900
|
}
|
|
866
901
|
else {
|
|
867
|
-
return (index.h("div", { class: "box box-content" }, index.h(index.Fragment, null, isVerified ? (index.h("div", { class: "verification-status" }, translate('verificationComplete', this.language))) : isFailedOrExpired ? (index.h("div", { class: "verification-status" }, status === 'Failed' ? translate('verificationFailed', this.language) : translate('verificationExpired', this.language))) : documents.length > 0 ? (index.h("div", { class: "documents-dropdown" }, index.h("select", { class: "nice-select", onChange: (event) => this.handleOptionChange(event, verificationType.type) },
|
|
902
|
+
return (index.h("div", { class: "box box-content" }, index.h(index.Fragment, null, isVerified ? (index.h("div", { class: "verification-status" }, translate('verificationComplete', this.language))) : isFailedOrExpired ? (index.h("div", { class: "verification-status" }, status === 'Failed' ? translate('verificationFailed', this.language) : translate('verificationExpired', this.language))) : documents.length > 0 ? (index.h("div", { class: "documents-dropdown" }, index.h("select", { class: "nice-select", onChange: (event) => this.handleOptionChange(event, verificationType.type) }, documents.map((doc) => (index.h("option", { selected: doc.code == optionChosen, value: doc.code }, translate(doc.type, this.language))))), this.renderDocumentsActions(documents.find((e) => e.code === optionChosen), optionChosen, verificationType))) : null)));
|
|
868
903
|
}
|
|
869
904
|
}
|
|
870
905
|
render() {
|
|
@@ -232,13 +232,24 @@ export class PlayerKycVerificationWidget {
|
|
|
232
232
|
return true;
|
|
233
233
|
return false;
|
|
234
234
|
}
|
|
235
|
+
getFirstRequestedDocument(verificationType) {
|
|
236
|
+
var _a;
|
|
237
|
+
let result;
|
|
238
|
+
(_a = verificationType === null || verificationType === void 0 ? void 0 : verificationType.documents) === null || _a === void 0 ? void 0 : _a.forEach((item) => {
|
|
239
|
+
if (item.status == "Requested") {
|
|
240
|
+
result = result !== null && result !== void 0 ? result : item.code;
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
return result;
|
|
244
|
+
}
|
|
235
245
|
renderVerificationTypeBox(verificationType) {
|
|
236
246
|
if (this.expandedOnDesktop) {
|
|
237
247
|
verificationType.expanded = true;
|
|
238
248
|
}
|
|
249
|
+
let firstRequestedDocument = this.getFirstRequestedDocument(verificationType);
|
|
239
250
|
let expanded = verificationType.expanded;
|
|
240
251
|
let name = verificationType.type.trim();
|
|
241
|
-
let optionChosen = verificationType.optionChosen;
|
|
252
|
+
let optionChosen = verificationType.optionChosen || firstRequestedDocument;
|
|
242
253
|
let status = verificationType.status;
|
|
243
254
|
let documents = verificationType.documents;
|
|
244
255
|
let flowInfo = verificationType.flowInfo;
|
|
@@ -272,7 +283,7 @@ export class PlayerKycVerificationWidget {
|
|
|
272
283
|
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 *" })));
|
|
273
284
|
}
|
|
274
285
|
else {
|
|
275
|
-
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) },
|
|
286
|
+
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) }, documents.map((doc) => (h("option", { selected: doc.code == optionChosen, value: doc.code }, translate(doc.type, this.language))))), this.renderDocumentsActions(documents.find((e) => e.code === optionChosen), optionChosen, verificationType))) : null)));
|
|
276
287
|
}
|
|
277
288
|
}
|
|
278
289
|
render() {
|
|
@@ -26,6 +26,9 @@ let TRANSLATIONS = {
|
|
|
26
26
|
SourceOfWealth: 'Source of Wealth',
|
|
27
27
|
SocialMedia: 'Social Media',
|
|
28
28
|
ProofOfPayment: 'Proof of Payment',
|
|
29
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
30
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
31
|
+
SourceOfFunds: 'Source of Funds',
|
|
29
32
|
uploaded: 'Document already uploaded.',
|
|
30
33
|
Unknown: 'Unknown',
|
|
31
34
|
Passport: 'Passport',
|
|
@@ -84,6 +87,9 @@ let TRANSLATIONS = {
|
|
|
84
87
|
Biometric: 'Biometric',
|
|
85
88
|
Recheck: 'Recheck',
|
|
86
89
|
ProofOfAddress: 'Proof of Address',
|
|
90
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
91
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
92
|
+
SourceOfFunds: 'Source of Funds',
|
|
87
93
|
SourceOfWealth: 'Source of Wealth',
|
|
88
94
|
SocialMedia: 'Social Media',
|
|
89
95
|
ProofOfPayment: 'Proof of Payment',
|
|
@@ -145,6 +151,9 @@ let TRANSLATIONS = {
|
|
|
145
151
|
Biometric: 'Biometric',
|
|
146
152
|
Recheck: 'Recheck',
|
|
147
153
|
ProofOfAddress: 'Proof of Address',
|
|
154
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
155
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
156
|
+
SourceOfFunds: 'Source of Funds',
|
|
148
157
|
SourceOfWealth: 'Source of Wealth',
|
|
149
158
|
SocialMedia: 'Social Media',
|
|
150
159
|
ProofOfPayment: 'Proof of Payment',
|
|
@@ -209,6 +218,9 @@ let TRANSLATIONS = {
|
|
|
209
218
|
SourceOfWealth: 'Source of Wealth',
|
|
210
219
|
SocialMedia: 'Social Media',
|
|
211
220
|
ProofOfPayment: 'Proof of Payment',
|
|
221
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
222
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
223
|
+
SourceOfFunds: 'Source of Funds',
|
|
212
224
|
uploaded: 'Document déjà téléchargé.',
|
|
213
225
|
Unknown: 'Unknown',
|
|
214
226
|
Passport: 'Passport',
|
|
@@ -270,6 +282,9 @@ let TRANSLATIONS = {
|
|
|
270
282
|
SourceOfWealth: 'Source of Wealth',
|
|
271
283
|
SocialMedia: 'Social Media',
|
|
272
284
|
ProofOfPayment: 'Proof of Payment',
|
|
285
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
286
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
287
|
+
SourceOfFunds: 'Source of Funds',
|
|
273
288
|
uploaded: 'Document already uploaded.',
|
|
274
289
|
Unknown: 'Unknown',
|
|
275
290
|
Passport: 'Passport',
|
|
@@ -331,6 +346,9 @@ let TRANSLATIONS = {
|
|
|
331
346
|
SourceOfWealth: 'Izvor sredstava',
|
|
332
347
|
SocialMedia: 'Društvene mreže',
|
|
333
348
|
ProofOfPayment: 'Platna metoda',
|
|
349
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
350
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
351
|
+
SourceOfFunds: 'Source of Funds',
|
|
334
352
|
uploaded: 'Dokument je već učitan.',
|
|
335
353
|
Unknown: 'Nepoznato',
|
|
336
354
|
Passport: 'Putovnica',
|
|
@@ -390,6 +408,9 @@ let TRANSLATIONS = {
|
|
|
390
408
|
SourceOfWealth: 'Source of Wealth',
|
|
391
409
|
SocialMedia: 'Social Media',
|
|
392
410
|
ProofOfPayment: 'Proof of Payment',
|
|
411
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
412
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
413
|
+
SourceOfFunds: 'Source of Funds',
|
|
393
414
|
uploaded: 'Documento já carregado.',
|
|
394
415
|
Unknown: 'Unknown',
|
|
395
416
|
Passport: 'Passport',
|
|
@@ -449,6 +470,9 @@ let TRANSLATIONS = {
|
|
|
449
470
|
SourceOfWealth: 'Source of Wealth',
|
|
450
471
|
SocialMedia: 'Social Media',
|
|
451
472
|
ProofOfPayment: 'Proof of Payment',
|
|
473
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
474
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
475
|
+
SourceOfFunds: 'Source of Funds',
|
|
452
476
|
uploaded: 'Documento ya subido.',
|
|
453
477
|
Unknown: 'Unknown',
|
|
454
478
|
Passport: 'Passport',
|
|
@@ -28,6 +28,9 @@ let TRANSLATIONS = {
|
|
|
28
28
|
SourceOfWealth: 'Source of Wealth',
|
|
29
29
|
SocialMedia: 'Social Media',
|
|
30
30
|
ProofOfPayment: 'Proof of Payment',
|
|
31
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
32
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
33
|
+
SourceOfFunds: 'Source of Funds',
|
|
31
34
|
uploaded: 'Document already uploaded.',
|
|
32
35
|
Unknown: 'Unknown',
|
|
33
36
|
Passport: 'Passport',
|
|
@@ -86,6 +89,9 @@ let TRANSLATIONS = {
|
|
|
86
89
|
Biometric: 'Biometric',
|
|
87
90
|
Recheck: 'Recheck',
|
|
88
91
|
ProofOfAddress: 'Proof of Address',
|
|
92
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
93
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
94
|
+
SourceOfFunds: 'Source of Funds',
|
|
89
95
|
SourceOfWealth: 'Source of Wealth',
|
|
90
96
|
SocialMedia: 'Social Media',
|
|
91
97
|
ProofOfPayment: 'Proof of Payment',
|
|
@@ -147,6 +153,9 @@ let TRANSLATIONS = {
|
|
|
147
153
|
Biometric: 'Biometric',
|
|
148
154
|
Recheck: 'Recheck',
|
|
149
155
|
ProofOfAddress: 'Proof of Address',
|
|
156
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
157
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
158
|
+
SourceOfFunds: 'Source of Funds',
|
|
150
159
|
SourceOfWealth: 'Source of Wealth',
|
|
151
160
|
SocialMedia: 'Social Media',
|
|
152
161
|
ProofOfPayment: 'Proof of Payment',
|
|
@@ -211,6 +220,9 @@ let TRANSLATIONS = {
|
|
|
211
220
|
SourceOfWealth: 'Source of Wealth',
|
|
212
221
|
SocialMedia: 'Social Media',
|
|
213
222
|
ProofOfPayment: 'Proof of Payment',
|
|
223
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
224
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
225
|
+
SourceOfFunds: 'Source of Funds',
|
|
214
226
|
uploaded: 'Document déjà téléchargé.',
|
|
215
227
|
Unknown: 'Unknown',
|
|
216
228
|
Passport: 'Passport',
|
|
@@ -272,6 +284,9 @@ let TRANSLATIONS = {
|
|
|
272
284
|
SourceOfWealth: 'Source of Wealth',
|
|
273
285
|
SocialMedia: 'Social Media',
|
|
274
286
|
ProofOfPayment: 'Proof of Payment',
|
|
287
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
288
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
289
|
+
SourceOfFunds: 'Source of Funds',
|
|
275
290
|
uploaded: 'Document already uploaded.',
|
|
276
291
|
Unknown: 'Unknown',
|
|
277
292
|
Passport: 'Passport',
|
|
@@ -333,6 +348,9 @@ let TRANSLATIONS = {
|
|
|
333
348
|
SourceOfWealth: 'Izvor sredstava',
|
|
334
349
|
SocialMedia: 'Društvene mreže',
|
|
335
350
|
ProofOfPayment: 'Platna metoda',
|
|
351
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
352
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
353
|
+
SourceOfFunds: 'Source of Funds',
|
|
336
354
|
uploaded: 'Dokument je već učitan.',
|
|
337
355
|
Unknown: 'Nepoznato',
|
|
338
356
|
Passport: 'Putovnica',
|
|
@@ -392,6 +410,9 @@ let TRANSLATIONS = {
|
|
|
392
410
|
SourceOfWealth: 'Source of Wealth',
|
|
393
411
|
SocialMedia: 'Social Media',
|
|
394
412
|
ProofOfPayment: 'Proof of Payment',
|
|
413
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
414
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
415
|
+
SourceOfFunds: 'Source of Funds',
|
|
395
416
|
uploaded: 'Documento já carregado.',
|
|
396
417
|
Unknown: 'Unknown',
|
|
397
418
|
Passport: 'Passport',
|
|
@@ -451,6 +472,9 @@ let TRANSLATIONS = {
|
|
|
451
472
|
SourceOfWealth: 'Source of Wealth',
|
|
452
473
|
SocialMedia: 'Social Media',
|
|
453
474
|
ProofOfPayment: 'Proof of Payment',
|
|
475
|
+
ProofOfIdentityFront: 'Proof of identity (front side)',
|
|
476
|
+
ProofOfIdentityBack: 'Proof of identity (back side)',
|
|
477
|
+
SourceOfFunds: 'Source of Funds',
|
|
454
478
|
uploaded: 'Documento ya subido.',
|
|
455
479
|
Unknown: 'Unknown',
|
|
456
480
|
Passport: 'Passport',
|
|
@@ -820,13 +844,24 @@ const PlayerKycVerificationWidget = class {
|
|
|
820
844
|
return true;
|
|
821
845
|
return false;
|
|
822
846
|
}
|
|
847
|
+
getFirstRequestedDocument(verificationType) {
|
|
848
|
+
var _a;
|
|
849
|
+
let result;
|
|
850
|
+
(_a = verificationType === null || verificationType === void 0 ? void 0 : verificationType.documents) === null || _a === void 0 ? void 0 : _a.forEach((item) => {
|
|
851
|
+
if (item.status == "Requested") {
|
|
852
|
+
result = result !== null && result !== void 0 ? result : item.code;
|
|
853
|
+
}
|
|
854
|
+
});
|
|
855
|
+
return result;
|
|
856
|
+
}
|
|
823
857
|
renderVerificationTypeBox(verificationType) {
|
|
824
858
|
if (this.expandedOnDesktop) {
|
|
825
859
|
verificationType.expanded = true;
|
|
826
860
|
}
|
|
861
|
+
let firstRequestedDocument = this.getFirstRequestedDocument(verificationType);
|
|
827
862
|
let expanded = verificationType.expanded;
|
|
828
863
|
let name = verificationType.type.trim();
|
|
829
|
-
let optionChosen = verificationType.optionChosen;
|
|
864
|
+
let optionChosen = verificationType.optionChosen || firstRequestedDocument;
|
|
830
865
|
let status = verificationType.status;
|
|
831
866
|
let documents = verificationType.documents;
|
|
832
867
|
let flowInfo = verificationType.flowInfo;
|
|
@@ -860,7 +895,7 @@ const PlayerKycVerificationWidget = class {
|
|
|
860
895
|
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 *" })));
|
|
861
896
|
}
|
|
862
897
|
else {
|
|
863
|
-
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) },
|
|
898
|
+
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) }, documents.map((doc) => (h("option", { selected: doc.code == optionChosen, value: doc.code }, translate(doc.type, this.language))))), this.renderDocumentsActions(documents.find((e) => e.code === optionChosen), optionChosen, verificationType))) : null)));
|
|
864
899
|
}
|
|
865
900
|
}
|
|
866
901
|
render() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as i,F as n}from"./p-25ea8e6b.js";let t={en:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account Verification",kycDescription:"We require some documents to protect your account and to comply with legal and license requirements.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Recheck:"Recheck",Biometric:"Biometric",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},de:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account-Verifizierung",kycDescription:"Wir benötigen einige Dokumente, um Ihr Konto zu schützen und den rechtlichen und Lizenzanforderungen zu entsprechen.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Dokument bereits hochgeladen.",Unknown:"Unbekannt",Passport:"Reisepass",IdCardFront:"Personalausweis (Vorderseite)",IdCardBack:"Personalausweis (Rückseite)",BirthCertificate:"Geburtsurkunde",DrivingLicenseFront:"Führerschein (Vorderseite)",DrivingLicenseBack:"Führerschein (Rückseite)",ResidentialPermit:"Wohnberechtigungsschein",CreditDebitCardFront:"Kredit-/Debitkarte (Vorderseite)",CreditDebitCardBack:"Kredit-/Debitkarte (Rückseite)",UtilityBill:"Nebenkostenabrechnung",TaxBill:"Steuerbescheid",CertifiedCopy:"Beglaubigte Kopie",Selfie:"Selfie",BankStatement:"Kontoauszug",RentAgreement:"Mietvertrag",InsuranceAgreement:"Versicherungsvertrag",Other:"Sonstige",IncomeAndOrSavingsFromEmployment:"Einkommen und/oder Ersparnisse aus Beschäftigung",SaleOfSharesOrOtherInvestments:"Verkauf von Aktien oder anderen Anlagen",DividendsProfitsFromCompany:"Dividenden/Gewinne aus dem Unternehmen",CompanySale:"Firmenverkauf",IndividualOwnsPolicyCompanyPays:"Einzelperson besitzt die Police/Unternehmen zahlt",SaleOfProperty:"Immobilienverkauf",Inheritance:"Erbschaft",MaturityOrSurrenderOfLifeAssurance:"Fälligkeit oder Rückkauf einer Lebensversicherung",InsuranceClaims:"Versicherungsansprüche",CompensationPayment:"Entschädigungszahlung",LotteryBettingCasinoWin:"Lotterie-/Wett-/Casinogewinn",Loan:"Darlehen",Gift:"Geschenk",Ewallet:"E-Wallet",Voucher:"Gutschein"},ro:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Verificarea contului",kycDescription:"Avem nevoie de câteva documente pentru a proteja contul dvs. și pentru a respecta cerințele legale și de licență.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document deja încărcat.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},fr:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Vérification de compte",kycDescription:"Nous avons besoin de certains documents pour protéger votre compte et pour nous conformer aux exigences légales et de licence.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Document déjà téléchargé.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},ar:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"التحقق من الحساب",kycDescription:"نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},hr:{loading:"Učitavanje, molimo pričekajte ...",noVerificationRequired:"Trenutačno nije potrebna provjera vašeg računa.",verificationComplete:"Provjera dovršena",verificationFailed:"Provjera nije uspjela",verificationExpired:"Provjera je istekla",fileSizeExceeded:"Premašena je maksimalna veličina datoteke. Maksimalna veličina datoteke je: 50mb",uploading:"Prijenos…",successUpload:"Vaš dokument je učitan i uskoro će biti pregledan",successUploadMultipleFiles:"Vaši su dokumenti učitani i uskoro će biti pregledani",failedUpload:"Prijenos nije uspio pokušajte ponovo",chooseDocument:"Odaberite Dokument",kycTitle:"Verifikacija računa",kycDescription:"Potrebni su nam neki dokumenti kako bismo zaštitili vaš račun i kako bismo se pridržavali zakonskih i licencijskih zahtjeva.",download:"Preuzmi",Age:"Dob",Aml:"AML",Documents:"Dokumenti",Pep:"Politički izložena osoba",Sanction:"Sankcija",Biometric:"Verifikacija",Recheck:"Ponovna provjera",ProofOfAddress:"Potvrda adrese",SourceOfWealth:"Izvor sredstava",SocialMedia:"Društvene mreže",ProofOfPayment:"Platna metoda",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Dokument je već učitan.",Unknown:"Nepoznato",Passport:"Putovnica",IdCardFront:"Prednja strana osobne iskaznice",IdCardBack:"Stražnja strana osobne iskaznice",BirthCertificate:"Rodni list",DrivingLicenseFront:"Vozačka dozvola (prednja strana)",DrivingLicenseBack:"Vozačka dozvola (stražnja strana)",ResidentialPermit:"Boravišna dozvola",CreditDebitCardFront:"Kreditna/debitna kartica (prednja strana)",CreditDebitCardBack:"Kreditna/debitna kartica (stražnja strana)",UtilityBill:"Račun za komunalne usluge",TaxBill:"Porezni račun",CertifiedCopy:"Ovjereni primjerak",Selfie:"Selfie",BankStatement:"Bankovni izvod",RentAgreement:"Ugovor o najmu",InsuranceAgreement:"Ugovor o osiguranju",Other:"Ostalo",IncomeAndOrSavingsFromEmployment:"Prihod/Ušteđevina ",SaleOfSharesOrOtherInvestments:"Prodaja dionica ili drugih investicija",DividendsProfitsFromCompany:"Dividende/dobit od tvrtke",CompanySale:"Prodaja tvrtke",IndividualOwnsPolicyCompanyPays:"Osoba posjeduje policu/tvrtka plaća",SaleOfProperty:"Prodaja nekretnine",Inheritance:"Nasljeđe",MaturityOrSurrenderOfLifeAssurance:"Dospijeće ili predaja životnog osiguranja",InsuranceClaims:"Zahtjevi za osiguranje",CompensationPayment:"Isplata odštete",LotteryBettingCasinoWin:"Dobitak na lutriji/kladionici/kasinu",Loan:"Zajam",Gift:"Poklon",Ewallet:"Elektronički novčanik",Voucher:"Vaučer"},"pt-br":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Carregando, espere por favor…",noVerificationRequired:"Não há necessidade de verificação para sua conta no momento",verificationComplete:"Verificação completa",verificationFailed:"Verificação de falha",verificationExpired:"A verificação expirou",fileSizeExceeded:"Tamanho máximo do arquivo excedido. O tamanho máximo do arquivo é: 50 MB",uploading:"Carregando...",successUpload:"Seu documento foi carregado e será analisado em breve",successUploadMultipleFiles:"Seus documentos foram enviados e serão revisados em breve",failedUpload:"Falha no upload do arquivo, tente novamente",chooseDocument:"Escolha um arquivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Documento já carregado.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},"es-mx":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Cargando, espere por favor…",noVerificationRequired:"No hay verificación requerida para su cuenta al momento",verificationComplete:"Verificación completa",verificationFailed:"Verificación fallo",verificationExpired:"Verificación expiro",fileSizeExceeded:"Tamaño máximo de archivo se excedió. El tamaño máximo del archivo es: 50mb",uploading:"Cargando ...",successUpload:"Su documento ha sido cargado y será revisado en breve",successUploadMultipleFiles:"Sus documento han sido cargados y serán revisado en breve",failedUpload:"La carga del archivo falló, por favor intente de nuevo",chooseDocument:"Elija un archivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",ProofOfIdentityFront:"Proof of identity (front side)",ProofOfIdentityBack:"Proof of identity (back side)",SourceOfFunds:"Source of Funds",uploaded:"Documento ya subido.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"}};const o=e=>new Promise((i=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((i=>{t[i]||(t[i]={});for(let n in e[i])t[i][n]=e[i][n]})),i(!0)}))})),r=(e,i,n)=>{let o=t[void 0!==i&&i in t?i:"en"][e];if(void 0!==n)for(const[e,i]of Object.entries(n.values)){const n=new RegExp(`{${e}}`,"g");o=o.replace(n,i)}return o};function a(e,i){if(e){const n=document.createElement("style");n.innerHTML=i,e.appendChild(n)}}function s(e,i){const n=new URL(i);fetch(n.href).then((e=>e.text())).then((i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}const d=class{constructor(i){var n;e(this,i),this.scriptInjected=!1,this.MAX_UPLOAD_SIZE=5e7,this.userAgent=window.navigator.userAgent,this.isMobile=!!((n=this.userAgent).toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.handleToggleScreen=()=>{this.toggleScreen(this.isMobile)},this.userId="",this.session="",this.language=void 0,this.endpoint="",this.translationUrl="",this.clientStyling="",this.verifiedIcon="",this.failedIcon="",this.defaultIcon="",this.clientStylingUrl="",this.mbSource=void 0,this.verificationType=[],this.isLoading=!1,this.selectedFile=null,this.uploadingStatus=void 0,this.uploadSizeExceeded=!1,this.selectedOption=void 0,this.expandedOnDesktop=!1}handleNewTranslations(){this.isLoading=!0,o(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){this.translationUrl.length>2&&await o(this.translationUrl)}handleClientStylingChange(e,i){e!=i&&a(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,i){e!=i&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(e,i){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(i,(i=>{n.innerHTML=i,e&&e.appendChild(n)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))),window.innerWidth>700&&(this.expandedOnDesktop=!0);try{let e=new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);const i={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json"},body:JSON.stringify({})};fetch(e.href,i).then((e=>{if(200===e.status)return e.json();throw new Error("HTTP status "+e.status)})).then((e=>{this.verificationType=e.verifications})).catch((e=>{console.error(e)}))}catch(e){console.error("Error fetching verification types:",e)}}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleOptionChange(e,i){const n=e.target;this.selectedOption=n.value,this.verificationType=this.verificationType.map((e=>(e.type===i&&(e.optionChosen=n.value),e)))}handleDocumentsStatus(e,i,n){this.verificationType=this.verificationType.map((t=>{if(t.type===e){const e=t.documents.find((e=>e.code===n));e&&(e.statusUploaded=i)}return t}))}downloadPDF(e){const i=document.createElement("a");i.href=e,i.download="file.pdf",i.target="_blank",i.dispatchEvent(new MouseEvent("click"))}toggleVerificationType(e,i){this.expandedOnDesktop=!1,this.verificationType=this.verificationType.map((n=>{var t;return n.type===e&&(null===(t=n.flowInfo)||void 0===t?void 0:t.type)==i&&(n.expanded=!n.expanded),n}))}toggleScreen(e){window.postMessage({type:"PlayerAccountMenuActive",isMobile:e},window.location.href)}checkFileSize(e){let i=0;return Object.keys(e).forEach((n=>{i+=e[n].size})),i<=this.MAX_UPLOAD_SIZE}handleFileSelection(e,i,n){if(e&&e.length>0)if(this.selectedFile=e,this.checkFileSize(this.selectedFile)){const e={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":this.session},body:JSON.stringify({DocumentCode:i})};fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`,e).then((e=>{if(e.ok)return this.uploadingStatus=r("uploading",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),e.json()})).then((e=>{const t=new FormData;t.append(i,this.selectedFile[0]),fetch(e.Url,{method:"POST",body:t}).then((e=>{e.ok?(this.uploadingStatus=r(this.selectedFile.length>1?"successUploadMultipleFiles":"successUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i)):(this.uploadingStatus=r("failedUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),console.error("File upload error:",e.status))})).catch((e=>{console.error("File upload error:",e)}))})).catch((e=>{console.error("File upload error:",e)}))}else console.error(r("fileSizeExceeded",this.language)),this.uploadingStatus=r("fileSizeExceeded",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),this.uploadSizeExceeded=!0}importScript(e){return new Promise(((i,n)=>{fetch(e).then((e=>e.text())).then((e=>{if(new Function(e)(),this.scriptInjected)i(!0);else{const e=document.createElement("script");e.src="https://test.insic.de/frontend3/static/js/avs-loader.min.js",document.head.appendChild(e),this.scriptInjected=!0,i(!0)}})).catch((e=>{n(e)}))}))}isStatusUploaded(e){return!(!e||"Uploaded"!==e.status)}getFirstRequestedDocument(e){var i;let n;return null===(i=null==e?void 0:e.documents)||void 0===i||i.forEach((e=>{"Requested"==e.status&&(n=null!=n?n:e.code)})),n}renderVerificationTypeBox(e){this.expandedOnDesktop&&(e.expanded=!0);let n=this.getFirstRequestedDocument(e),t=e.expanded,o=e.type.trim(),a=e.optionChosen||n,s=e.status,d=e.documents,c=e.flowInfo;const l="Verified"===s,f="Failed"===s||"Expired"===s;return i("div",{class:`verification-box ${t?"expanded":""} ${f?"failed":""} ${l?"success":""}`},i("div",{class:"box box-header "+(t?"expanded":""),onClick:()=>{var i;return this.toggleVerificationType(e.type,null===(i=e.flowInfo)||void 0===i?void 0:i.type)}},i("div",{class:"box-icon"},i("div",null,l?this.verifiedIcon?i("img",{class:"CustomVerifiedIcon",src:this.verifiedIcon,alt:""}):i("svg",{width:"100",height:"100",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"#388D79"}),i("circle",{cx:"50",cy:"50",r:"34",fill:"none",stroke:"#fff","stroke-width":"12px"}),i("polyline",{points:"30,50 45,63 70,35",fill:"none",stroke:"#fff","stroke-width":"8px"})):f?this.failedIcon?i("img",{class:"CustomFailedIcon",src:this.failedIcon,alt:""}):i("svg",{width:"100",height:"100",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"red"}),i("line",{x1:"30",y1:"30",x2:"70",y2:"70",stroke:"#fff","stroke-width":"10px"}),i("line",{x1:"30",y1:"70",x2:"70",y2:"30",stroke:"#fff","stroke-width":"10px"})):this.defaultIcon?i("img",{class:"CustomDefaultIcon",src:this.defaultIcon,alt:""}):i("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("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"}),i("path",{d:"M9 13H15",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M9 17H12",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M14 2V6C14 7.10457 14.8954 8 16 8H20",stroke:"#000000","stroke-width":"2","stroke-linejoin":"round"})))),i("div",{class:"box-title"},r(o,this.language)),i("div",{class:"chevron-icon"},i("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"},i("path",{d:t?"M6 15l6-6 6 6":"M6 9l6 6 6-6"})))),t?this.renderExpandedContent(e,a,s,d,c,l,f):i("div",{class:"box box-content"},i("div",{id:"__avs-wrapper"})))}renderDocumentsActions(e,n,t){return i("div",null,this.isStatusUploaded(e)?i("div",{class:"upload-status"},r("uploaded",this.language)):(null==e?void 0:e.statusUploaded)?i("div",{class:"upload-status"},null==e?void 0:e.statusUploaded):i("div",{class:"documents-action"},i("div",{class:"sample-file"},"FileDownload"===(null==e?void 0:e.sampleType)?i("button",{class:"download-button",onClick:()=>this.downloadPDF(null==e?void 0:e.sampleUrl)},i("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("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(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"}),i("path",{d:"M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"})),i("span",null,r("download",this.language))):null),i("div",{class:"upload-button"},n?i("label",null,i("input",{type:"file",accept:"*",onChange:e=>this.handleFileSelection(e.target.files,this.selectedOption,t.type),style:{display:"none"}}),i("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"}),i("line",{x1:"30",y1:"50",x2:"70",y2:"50",stroke:"white","stroke-width":"6"}),i("line",{x1:"50",y1:"30",x2:"50",y2:"70",stroke:"white","stroke-width":"6"}))):null)))}renderExpandedContent(e,t,o,a,s,d,c){return"Widget"===(null==s?void 0:s.type)||"Redirect"===(null==s?void 0:s.type)&&"Manual"!==e.vendorName&&"Verified"!==o?i("div",null,i("hr",{style:{margin:"5px"}}),i("iframe",{src:s.url,frameborder:"0",height:"400px",width:"100%",allowfullScreen:!0,allow:"camera *;microphone *"})):i("div",{class:"box box-content"},i(n,null,d?i("div",{class:"verification-status"},r("verificationComplete",this.language)):c?i("div",{class:"verification-status"},r("Failed"===o?"verificationFailed":"verificationExpired",this.language)):a.length>0?i("div",{class:"documents-dropdown"},i("select",{class:"nice-select",onChange:i=>this.handleOptionChange(i,e.type)},a.map((e=>i("option",{selected:e.code==t,value:e.code},r(e.type,this.language))))),this.renderDocumentsActions(a.find((e=>e.code===t)),t,e)):null))}render(){return this.isLoading?i("div",null,i("p",null,r("loading",this.language))):i("div",{class:"ModalContainer",ref:e=>this.stylingContainer=e},i("div",{class:"player-kyc-verification-widget"},this.isMobile?i("div",{class:"MenuReturnButton",onClick:this.handleToggleScreen},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},i("defs",null),i("g",{transform:"translate(-20 -158)"},i("g",{transform:"translate(20 158)"},i("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)"})))),i("h2",null,r("kycTitle",this.language))):i("h2",null,r("kycTitle",this.language)),0===this.verificationType.length?i("div",{class:"no-verification-description",style:{padding:"24px",fontSize:"18px"}},r("noVerificationRequired",this.language)):i(n,null,i("div",{class:"widget-description"},r("kycDescription",this.language)),i("div",{class:"verification-types"},this.verificationType.map((e=>e?this.renderVerificationTypeBox(e):null))))))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};d.style=':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(--emw--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(--emw--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(--emw--color-gray-150, #828282);\n border-radius: 2px;\n background-color: var(--emw--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(--emw--color-white, #FFFFFF);\n color: var(--emw--pam-color-primary, var(--emw--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(--emw--color-valid, var(--emw--color-green, #48952a));\n min-height: 120px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.failed {\n border-color: var(--emw--color-error, var(--emw--color-red, #FD2839));\n}\n.player-kyc-verification-widget .verification-types .verification-box.success {\n border-color: var(--emw--color-valid, var(--emw--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(--emw--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}';export{d as player_kyc_verification}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as n}from"./p-25ea8e6b.js";export{s as setNonce}from"./p-25ea8e6b.js";import{g as i}from"./p-e1255160.js";(()=>{const n=import.meta.url,i={};return""!==n&&(i.resourcesUrl=new URL(".",n).href),e(i)})().then((async e=>(await i(),n([["p-
|
|
1
|
+
import{p as e,b as n}from"./p-25ea8e6b.js";export{s as setNonce}from"./p-25ea8e6b.js";import{g as i}from"./p-e1255160.js";(()=>{const n=import.meta.url,i={};return""!==n&&(i.resourcesUrl=new URL(".",n).href),e(i)})().then((async e=>(await i(),n([["p-af704db4",[[1,"player-kyc-verification",{userId:[1,"user-id"],session:[1],language:[1],endpoint:[1],translationUrl:[1,"translation-url"],clientStyling:[1,"client-styling"],verifiedIcon:[1,"verified-icon"],failedIcon:[1,"failed-icon"],defaultIcon:[1,"default-icon"],clientStylingUrl:[1,"client-styling-url"],mbSource:[1,"mb-source"],verificationType:[32],isLoading:[32],selectedFile:[32],uploadingStatus:[32],uploadSizeExceeded:[32],selectedOption:[32],expandedOnDesktop:[32]},null,{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]]],e))));
|
|
@@ -69,6 +69,7 @@ export declare class PlayerKycVerificationWidget {
|
|
|
69
69
|
handleFileSelection(file: FileList | null, documentType: string, verificationTypeId: string): void;
|
|
70
70
|
importScript(url: any): Promise<unknown>;
|
|
71
71
|
isStatusUploaded(document: any): boolean;
|
|
72
|
+
getFirstRequestedDocument(verificationType: any): any;
|
|
72
73
|
renderVerificationTypeBox(verificationType: any): any;
|
|
73
74
|
renderDocumentsActions(selectedDocument: any, optionChosen: any, verificationType: any): void;
|
|
74
75
|
renderExpandedContent(verificationType: any, optionChosen: any, status: string, documents: any, flowInfo: any, isVerified: boolean, isFailedOrExpired: boolean): void;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as i,F as n}from"./p-25ea8e6b.js";let t={en:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account Verification",kycDescription:"We require some documents to protect your account and to comply with legal and license requirements.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Recheck:"Recheck",Biometric:"Biometric",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},de:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account-Verifizierung",kycDescription:"Wir benötigen einige Dokumente, um Ihr Konto zu schützen und den rechtlichen und Lizenzanforderungen zu entsprechen.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Dokument bereits hochgeladen.",Unknown:"Unbekannt",Passport:"Reisepass",IdCardFront:"Personalausweis (Vorderseite)",IdCardBack:"Personalausweis (Rückseite)",BirthCertificate:"Geburtsurkunde",DrivingLicenseFront:"Führerschein (Vorderseite)",DrivingLicenseBack:"Führerschein (Rückseite)",ResidentialPermit:"Wohnberechtigungsschein",CreditDebitCardFront:"Kredit-/Debitkarte (Vorderseite)",CreditDebitCardBack:"Kredit-/Debitkarte (Rückseite)",UtilityBill:"Nebenkostenabrechnung",TaxBill:"Steuerbescheid",CertifiedCopy:"Beglaubigte Kopie",Selfie:"Selfie",BankStatement:"Kontoauszug",RentAgreement:"Mietvertrag",InsuranceAgreement:"Versicherungsvertrag",Other:"Sonstige",IncomeAndOrSavingsFromEmployment:"Einkommen und/oder Ersparnisse aus Beschäftigung",SaleOfSharesOrOtherInvestments:"Verkauf von Aktien oder anderen Anlagen",DividendsProfitsFromCompany:"Dividenden/Gewinne aus dem Unternehmen",CompanySale:"Firmenverkauf",IndividualOwnsPolicyCompanyPays:"Einzelperson besitzt die Police/Unternehmen zahlt",SaleOfProperty:"Immobilienverkauf",Inheritance:"Erbschaft",MaturityOrSurrenderOfLifeAssurance:"Fälligkeit oder Rückkauf einer Lebensversicherung",InsuranceClaims:"Versicherungsansprüche",CompensationPayment:"Entschädigungszahlung",LotteryBettingCasinoWin:"Lotterie-/Wett-/Casinogewinn",Loan:"Darlehen",Gift:"Geschenk",Ewallet:"E-Wallet",Voucher:"Gutschein"},ro:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Verificarea contului",kycDescription:"Avem nevoie de câteva documente pentru a proteja contul dvs. și pentru a respecta cerințele legale și de licență.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document deja încărcat.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},fr:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Vérification de compte",kycDescription:"Nous avons besoin de certains documents pour protéger votre compte et pour nous conformer aux exigences légales et de licence.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document déjà téléchargé.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},ar:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"التحقق من الحساب",kycDescription:"نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},hr:{loading:"Učitavanje, molimo pričekajte ...",noVerificationRequired:"Trenutačno nije potrebna provjera vašeg računa.",verificationComplete:"Provjera dovršena",verificationFailed:"Provjera nije uspjela",verificationExpired:"Provjera je istekla",fileSizeExceeded:"Premašena je maksimalna veličina datoteke. Maksimalna veličina datoteke je: 50mb",uploading:"Prijenos…",successUpload:"Vaš dokument je učitan i uskoro će biti pregledan",successUploadMultipleFiles:"Vaši su dokumenti učitani i uskoro će biti pregledani",failedUpload:"Prijenos nije uspio pokušajte ponovo",chooseDocument:"Odaberite Dokument",kycTitle:"Verifikacija računa",kycDescription:"Potrebni su nam neki dokumenti kako bismo zaštitili vaš račun i kako bismo se pridržavali zakonskih i licencijskih zahtjeva.",download:"Preuzmi",Age:"Dob",Aml:"AML",Documents:"Dokumenti",Pep:"Politički izložena osoba",Sanction:"Sankcija",Biometric:"Verifikacija",Recheck:"Ponovna provjera",ProofOfAddress:"Potvrda adrese",SourceOfWealth:"Izvor sredstava",SocialMedia:"Društvene mreže",ProofOfPayment:"Platna metoda",uploaded:"Dokument je već učitan.",Unknown:"Nepoznato",Passport:"Putovnica",IdCardFront:"Prednja strana osobne iskaznice",IdCardBack:"Stražnja strana osobne iskaznice",BirthCertificate:"Rodni list",DrivingLicenseFront:"Vozačka dozvola (prednja strana)",DrivingLicenseBack:"Vozačka dozvola (stražnja strana)",ResidentialPermit:"Boravišna dozvola",CreditDebitCardFront:"Kreditna/debitna kartica (prednja strana)",CreditDebitCardBack:"Kreditna/debitna kartica (stražnja strana)",UtilityBill:"Račun za komunalne usluge",TaxBill:"Porezni račun",CertifiedCopy:"Ovjereni primjerak",Selfie:"Selfie",BankStatement:"Bankovni izvod",RentAgreement:"Ugovor o najmu",InsuranceAgreement:"Ugovor o osiguranju",Other:"Ostalo",IncomeAndOrSavingsFromEmployment:"Prihod/Ušteđevina ",SaleOfSharesOrOtherInvestments:"Prodaja dionica ili drugih investicija",DividendsProfitsFromCompany:"Dividende/dobit od tvrtke",CompanySale:"Prodaja tvrtke",IndividualOwnsPolicyCompanyPays:"Osoba posjeduje policu/tvrtka plaća",SaleOfProperty:"Prodaja nekretnine",Inheritance:"Nasljeđe",MaturityOrSurrenderOfLifeAssurance:"Dospijeće ili predaja životnog osiguranja",InsuranceClaims:"Zahtjevi za osiguranje",CompensationPayment:"Isplata odštete",LotteryBettingCasinoWin:"Dobitak na lutriji/kladionici/kasinu",Loan:"Zajam",Gift:"Poklon",Ewallet:"Elektronički novčanik",Voucher:"Vaučer"},"pt-br":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Carregando, espere por favor…",noVerificationRequired:"Não há necessidade de verificação para sua conta no momento",verificationComplete:"Verificação completa",verificationFailed:"Verificação de falha",verificationExpired:"A verificação expirou",fileSizeExceeded:"Tamanho máximo do arquivo excedido. O tamanho máximo do arquivo é: 50 MB",uploading:"Carregando...",successUpload:"Seu documento foi carregado e será analisado em breve",successUploadMultipleFiles:"Seus documentos foram enviados e serão revisados em breve",failedUpload:"Falha no upload do arquivo, tente novamente",chooseDocument:"Escolha um arquivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Documento já carregado.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},"es-mx":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Cargando, espere por favor…",noVerificationRequired:"No hay verificación requerida para su cuenta al momento",verificationComplete:"Verificación completa",verificationFailed:"Verificación fallo",verificationExpired:"Verificación expiro",fileSizeExceeded:"Tamaño máximo de archivo se excedió. El tamaño máximo del archivo es: 50mb",uploading:"Cargando ...",successUpload:"Su documento ha sido cargado y será revisado en breve",successUploadMultipleFiles:"Sus documento han sido cargados y serán revisado en breve",failedUpload:"La carga del archivo falló, por favor intente de nuevo",chooseDocument:"Elija un archivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Documento ya subido.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"}};const o=e=>new Promise((i=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((i=>{t[i]||(t[i]={});for(let n in e[i])t[i][n]=e[i][n]})),i(!0)}))})),a=(e,i,n)=>{let o=t[void 0!==i&&i in t?i:"en"][e];if(void 0!==n)for(const[e,i]of Object.entries(n.values)){const n=new RegExp(`{${e}}`,"g");o=o.replace(n,i)}return o};function r(e,i){if(e){const n=document.createElement("style");n.innerHTML=i,e.appendChild(n)}}function s(e,i){const n=new URL(i);fetch(n.href).then((e=>e.text())).then((i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}const d=class{constructor(i){var n;e(this,i),this.scriptInjected=!1,this.MAX_UPLOAD_SIZE=5e7,this.userAgent=window.navigator.userAgent,this.isMobile=!!((n=this.userAgent).toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.handleToggleScreen=()=>{this.toggleScreen(this.isMobile)},this.userId="",this.session="",this.language=void 0,this.endpoint="",this.translationUrl="",this.clientStyling="",this.verifiedIcon="",this.failedIcon="",this.defaultIcon="",this.clientStylingUrl="",this.mbSource=void 0,this.verificationType=[],this.isLoading=!1,this.selectedFile=null,this.uploadingStatus=void 0,this.uploadSizeExceeded=!1,this.selectedOption=void 0,this.expandedOnDesktop=!1}handleNewTranslations(){this.isLoading=!0,o(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){this.translationUrl.length>2&&await o(this.translationUrl)}handleClientStylingChange(e,i){e!=i&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,i){e!=i&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(e,i){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(i,(i=>{n.innerHTML=i,e&&e.appendChild(n)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))),window.innerWidth>700&&(this.expandedOnDesktop=!0);try{let e=new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);const i={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json"},body:JSON.stringify({})};fetch(e.href,i).then((e=>{if(200===e.status)return e.json();throw new Error("HTTP status "+e.status)})).then((e=>{this.verificationType=e.verifications})).catch((e=>{console.error(e)}))}catch(e){console.error("Error fetching verification types:",e)}}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleOptionChange(e,i){const n=e.target;this.selectedOption=n.value,this.verificationType=this.verificationType.map((e=>(e.type===i&&(e.optionChosen=n.value),e)))}handleDocumentsStatus(e,i,n){this.verificationType=this.verificationType.map((t=>{if(t.type===e){const e=t.documents.find((e=>e.code===n));e&&(e.statusUploaded=i)}return t}))}downloadPDF(e){const i=document.createElement("a");i.href=e,i.download="file.pdf",i.target="_blank",i.dispatchEvent(new MouseEvent("click"))}toggleVerificationType(e,i){this.expandedOnDesktop=!1,this.verificationType=this.verificationType.map((n=>{var t;return n.type===e&&(null===(t=n.flowInfo)||void 0===t?void 0:t.type)==i&&(n.expanded=!n.expanded),n}))}toggleScreen(e){window.postMessage({type:"PlayerAccountMenuActive",isMobile:e},window.location.href)}checkFileSize(e){let i=0;return Object.keys(e).forEach((n=>{i+=e[n].size})),i<=this.MAX_UPLOAD_SIZE}handleFileSelection(e,i,n){if(e&&e.length>0)if(this.selectedFile=e,this.checkFileSize(this.selectedFile)){const e={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":this.session},body:JSON.stringify({DocumentCode:i})};fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`,e).then((e=>{if(e.ok)return this.uploadingStatus=a("uploading",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),e.json()})).then((e=>{const t=new FormData;t.append(i,this.selectedFile[0]),fetch(e.Url,{method:"POST",body:t}).then((e=>{e.ok?(this.uploadingStatus=a(this.selectedFile.length>1?"successUploadMultipleFiles":"successUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i)):(this.uploadingStatus=a("failedUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),console.error("File upload error:",e.status))})).catch((e=>{console.error("File upload error:",e)}))})).catch((e=>{console.error("File upload error:",e)}))}else console.error(a("fileSizeExceeded",this.language)),this.uploadingStatus=a("fileSizeExceeded",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),this.uploadSizeExceeded=!0}importScript(e){return new Promise(((i,n)=>{fetch(e).then((e=>e.text())).then((e=>{if(new Function(e)(),this.scriptInjected)i(!0);else{const e=document.createElement("script");e.src="https://test.insic.de/frontend3/static/js/avs-loader.min.js",document.head.appendChild(e),this.scriptInjected=!0,i(!0)}})).catch((e=>{n(e)}))}))}isStatusUploaded(e){return!(!e||"Uploaded"!==e.status)}renderVerificationTypeBox(e){this.expandedOnDesktop&&(e.expanded=!0);let n=e.expanded,t=e.type.trim(),o=e.optionChosen,r=e.status,s=e.documents,d=e.flowInfo;const c="Verified"===r,l="Failed"===r||"Expired"===r;return i("div",{class:`verification-box ${n?"expanded":""} ${l?"failed":""} ${c?"success":""}`},i("div",{class:"box box-header "+(n?"expanded":""),onClick:()=>{var i;return this.toggleVerificationType(e.type,null===(i=e.flowInfo)||void 0===i?void 0:i.type)}},i("div",{class:"box-icon"},i("div",null,c?this.verifiedIcon?i("img",{class:"CustomVerifiedIcon",src:this.verifiedIcon,alt:""}):i("svg",{width:"100",height:"100",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"#388D79"}),i("circle",{cx:"50",cy:"50",r:"34",fill:"none",stroke:"#fff","stroke-width":"12px"}),i("polyline",{points:"30,50 45,63 70,35",fill:"none",stroke:"#fff","stroke-width":"8px"})):l?this.failedIcon?i("img",{class:"CustomFailedIcon",src:this.failedIcon,alt:""}):i("svg",{width:"100",height:"100",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"red"}),i("line",{x1:"30",y1:"30",x2:"70",y2:"70",stroke:"#fff","stroke-width":"10px"}),i("line",{x1:"30",y1:"70",x2:"70",y2:"30",stroke:"#fff","stroke-width":"10px"})):this.defaultIcon?i("img",{class:"CustomDefaultIcon",src:this.defaultIcon,alt:""}):i("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("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"}),i("path",{d:"M9 13H15",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M9 17H12",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M14 2V6C14 7.10457 14.8954 8 16 8H20",stroke:"#000000","stroke-width":"2","stroke-linejoin":"round"})))),i("div",{class:"box-title"},a(t,this.language)),i("div",{class:"chevron-icon"},i("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"},i("path",{d:n?"M6 15l6-6 6 6":"M6 9l6 6 6-6"})))),n?this.renderExpandedContent(e,o,r,s,d,c,l):i("div",{class:"box box-content"},i("div",{id:"__avs-wrapper"})))}renderDocumentsActions(e,n,t){return i("div",null,this.isStatusUploaded(e)?i("div",{class:"upload-status"},a("uploaded",this.language)):(null==e?void 0:e.statusUploaded)?i("div",{class:"upload-status"},null==e?void 0:e.statusUploaded):i("div",{class:"documents-action"},i("div",{class:"sample-file"},"FileDownload"===(null==e?void 0:e.sampleType)?i("button",{class:"download-button",onClick:()=>this.downloadPDF(null==e?void 0:e.sampleUrl)},i("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("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(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"}),i("path",{d:"M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"})),i("span",null,a("download",this.language))):null),i("div",{class:"upload-button"},n?i("label",null,i("input",{type:"file",accept:"*",onChange:e=>this.handleFileSelection(e.target.files,this.selectedOption,t.type),style:{display:"none"}}),i("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"}),i("line",{x1:"30",y1:"50",x2:"70",y2:"50",stroke:"white","stroke-width":"6"}),i("line",{x1:"50",y1:"30",x2:"50",y2:"70",stroke:"white","stroke-width":"6"}))):null)))}renderExpandedContent(e,t,o,r,s,d,c){return"Widget"===(null==s?void 0:s.type)||"Redirect"===(null==s?void 0:s.type)&&"Manual"!==e.vendorName&&"Verified"!==o?i("div",null,i("hr",{style:{margin:"5px"}}),i("iframe",{src:s.url,frameborder:"0",height:"400px",width:"100%",allowfullScreen:!0,allow:"camera *;microphone *"})):i("div",{class:"box box-content"},i(n,null,d?i("div",{class:"verification-status"},a("verificationComplete",this.language)):c?i("div",{class:"verification-status"},a("Failed"===o?"verificationFailed":"verificationExpired",this.language)):r.length>0?i("div",{class:"documents-dropdown"},i("select",{class:"nice-select",onChange:i=>this.handleOptionChange(i,e.type)},i("option",{value:"",selected:!0,disabled:!0,hidden:!0},a("chooseDocument",this.language)),r.map((e=>i("option",{selected:t==e.code,value:e.code},a(e.type,this.language))))),this.renderDocumentsActions(r.find((e=>e.code===t)),t,e)):null))}render(){return this.isLoading?i("div",null,i("p",null,a("loading",this.language))):i("div",{class:"ModalContainer",ref:e=>this.stylingContainer=e},i("div",{class:"player-kyc-verification-widget"},this.isMobile?i("div",{class:"MenuReturnButton",onClick:this.handleToggleScreen},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},i("defs",null),i("g",{transform:"translate(-20 -158)"},i("g",{transform:"translate(20 158)"},i("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)"})))),i("h2",null,a("kycTitle",this.language))):i("h2",null,a("kycTitle",this.language)),0===this.verificationType.length?i("div",{class:"no-verification-description",style:{padding:"24px",fontSize:"18px"}},a("noVerificationRequired",this.language)):i(n,null,i("div",{class:"widget-description"},a("kycDescription",this.language)),i("div",{class:"verification-types"},this.verificationType.map((e=>e?this.renderVerificationTypeBox(e):null))))))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};d.style=':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(--emw--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(--emw--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(--emw--color-gray-150, #828282);\n border-radius: 2px;\n background-color: var(--emw--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(--emw--color-white, #FFFFFF);\n color: var(--emw--pam-color-primary, var(--emw--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(--emw--color-valid, var(--emw--color-green, #48952a));\n min-height: 120px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.failed {\n border-color: var(--emw--color-error, var(--emw--color-red, #FD2839));\n}\n.player-kyc-verification-widget .verification-types .verification-box.success {\n border-color: var(--emw--color-valid, var(--emw--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(--emw--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}';export{d as player_kyc_verification}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|