@ekyc_qoobiss/qbs-ect-cmp 1.9.5 → 1.9.7
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/agreement-check_16.cjs.entry.js +7 -2
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +2 -1
- package/dist/collection/helpers/ApiCall.js +4 -1
- package/dist/collection/helpers/textValues.js +1 -0
- package/dist/esm/agreement-check_16.entry.js +7 -2
- package/dist/qbs-ect-cmp/{p-7b122895.entry.js → p-60504e53.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/helpers/textValues.d.ts +1 -0
- package/package.json +1 -1
|
@@ -259,6 +259,7 @@ class IdCaptureValues extends GlobalValues {
|
|
|
259
259
|
IdCaptureValues.Button = 'Încerc din nou';
|
|
260
260
|
IdCaptureValues.Title = 'Încadrează actul de identitate în chenarul de pe ecran.';
|
|
261
261
|
IdCaptureValues.TitleBack = 'Încadrează spatele actului de identitate în chenarul de pe ecran.';
|
|
262
|
+
IdCaptureValues.TtileRotate = 'Întoarce actul de identitate.';
|
|
262
263
|
IdCaptureValues.Error = 'Procesul a eșuat. Te rugăm să respecți întocmai instrucțiunile de pe ecran. Ai grijă să încadrezi integral actul în chenraul de pe ecran și să nu apară reflexii de lumină pe suprafața acestuia.';
|
|
263
264
|
IdCaptureValues.IDPoseMapping = {
|
|
264
265
|
0: '',
|
|
@@ -392,7 +393,10 @@ class ApiCall {
|
|
|
392
393
|
data: await this.toBase64(file),
|
|
393
394
|
};
|
|
394
395
|
let respJson = await this.post('/validation/upload/capture', JSON.stringify(data));
|
|
395
|
-
if (type == 'IdFront') {
|
|
396
|
+
if (!state.hasIdBack && type == 'IdFront') {
|
|
397
|
+
return respJson.isValid;
|
|
398
|
+
}
|
|
399
|
+
if (state.hasIdBack && type == 'IdBack') {
|
|
396
400
|
return respJson.isValid;
|
|
397
401
|
}
|
|
398
402
|
return true;
|
|
@@ -5277,16 +5281,17 @@ const IdBackCapture = class {
|
|
|
5277
5281
|
}
|
|
5278
5282
|
async componentWillLoad() {
|
|
5279
5283
|
Events.init(this.component);
|
|
5280
|
-
this.titleMesage = IdCaptureValues.TitleBack;
|
|
5281
5284
|
//this.videoDemoStyle = this.device.isMobile ? { width: window.screen.width + 'px', height: window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
5282
5285
|
if (!navigator.mediaDevices) {
|
|
5283
5286
|
Events.flowError('This browser does not support webRTC');
|
|
5284
5287
|
}
|
|
5285
5288
|
}
|
|
5286
5289
|
async componentDidLoad() {
|
|
5290
|
+
this.titleMesage = IdCaptureValues.TtileRotate;
|
|
5287
5291
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
|
|
5288
5292
|
this.demoVideo.play();
|
|
5289
5293
|
await this.delay(IdCaptureValues.VideoLenght);
|
|
5294
|
+
this.titleMesage = IdCaptureValues.TitleBack;
|
|
5290
5295
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
5291
5296
|
this.demoVideo.play();
|
|
5292
5297
|
await this.delay(IdCaptureValues.VideoLenght);
|
|
@@ -42,16 +42,17 @@ export class IdBackCapture {
|
|
|
42
42
|
}
|
|
43
43
|
async componentWillLoad() {
|
|
44
44
|
Events.init(this.component);
|
|
45
|
-
this.titleMesage = IdCaptureValues.TitleBack;
|
|
46
45
|
//this.videoDemoStyle = this.device.isMobile ? { width: window.screen.width + 'px', height: window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
47
46
|
if (!navigator.mediaDevices) {
|
|
48
47
|
Events.flowError('This browser does not support webRTC');
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
async componentDidLoad() {
|
|
51
|
+
this.titleMesage = IdCaptureValues.TtileRotate;
|
|
52
52
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
|
|
53
53
|
this.demoVideo.play();
|
|
54
54
|
await this.delay(IdCaptureValues.VideoLenght);
|
|
55
|
+
this.titleMesage = IdCaptureValues.TitleBack;
|
|
55
56
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
56
57
|
this.demoVideo.play();
|
|
57
58
|
await this.delay(IdCaptureValues.VideoLenght);
|
|
@@ -65,7 +65,10 @@ export class ApiCall {
|
|
|
65
65
|
data: await this.toBase64(file),
|
|
66
66
|
};
|
|
67
67
|
let respJson = await this.post('/validation/upload/capture', JSON.stringify(data));
|
|
68
|
-
if (type == 'IdFront') {
|
|
68
|
+
if (!store.hasIdBack && type == 'IdFront') {
|
|
69
|
+
return respJson.isValid;
|
|
70
|
+
}
|
|
71
|
+
if (store.hasIdBack && type == 'IdBack') {
|
|
69
72
|
return respJson.isValid;
|
|
70
73
|
}
|
|
71
74
|
return true;
|
|
@@ -49,6 +49,7 @@ export class IdCaptureValues extends GlobalValues {
|
|
|
49
49
|
IdCaptureValues.Button = 'Încerc din nou';
|
|
50
50
|
IdCaptureValues.Title = 'Încadrează actul de identitate în chenarul de pe ecran.';
|
|
51
51
|
IdCaptureValues.TitleBack = 'Încadrează spatele actului de identitate în chenarul de pe ecran.';
|
|
52
|
+
IdCaptureValues.TtileRotate = 'Întoarce actul de identitate.';
|
|
52
53
|
IdCaptureValues.Error = 'Procesul a eșuat. Te rugăm să respecți întocmai instrucțiunile de pe ecran. Ai grijă să încadrezi integral actul în chenraul de pe ecran și să nu apară reflexii de lumină pe suprafața acestuia.';
|
|
53
54
|
IdCaptureValues.IDPoseMapping = {
|
|
54
55
|
0: '',
|
|
@@ -255,6 +255,7 @@ class IdCaptureValues extends GlobalValues {
|
|
|
255
255
|
IdCaptureValues.Button = 'Încerc din nou';
|
|
256
256
|
IdCaptureValues.Title = 'Încadrează actul de identitate în chenarul de pe ecran.';
|
|
257
257
|
IdCaptureValues.TitleBack = 'Încadrează spatele actului de identitate în chenarul de pe ecran.';
|
|
258
|
+
IdCaptureValues.TtileRotate = 'Întoarce actul de identitate.';
|
|
258
259
|
IdCaptureValues.Error = 'Procesul a eșuat. Te rugăm să respecți întocmai instrucțiunile de pe ecran. Ai grijă să încadrezi integral actul în chenraul de pe ecran și să nu apară reflexii de lumină pe suprafața acestuia.';
|
|
259
260
|
IdCaptureValues.IDPoseMapping = {
|
|
260
261
|
0: '',
|
|
@@ -388,7 +389,10 @@ class ApiCall {
|
|
|
388
389
|
data: await this.toBase64(file),
|
|
389
390
|
};
|
|
390
391
|
let respJson = await this.post('/validation/upload/capture', JSON.stringify(data));
|
|
391
|
-
if (type == 'IdFront') {
|
|
392
|
+
if (!state.hasIdBack && type == 'IdFront') {
|
|
393
|
+
return respJson.isValid;
|
|
394
|
+
}
|
|
395
|
+
if (state.hasIdBack && type == 'IdBack') {
|
|
392
396
|
return respJson.isValid;
|
|
393
397
|
}
|
|
394
398
|
return true;
|
|
@@ -5273,16 +5277,17 @@ const IdBackCapture = class {
|
|
|
5273
5277
|
}
|
|
5274
5278
|
async componentWillLoad() {
|
|
5275
5279
|
Events.init(this.component);
|
|
5276
|
-
this.titleMesage = IdCaptureValues.TitleBack;
|
|
5277
5280
|
//this.videoDemoStyle = this.device.isMobile ? { width: window.screen.width + 'px', height: window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
5278
5281
|
if (!navigator.mediaDevices) {
|
|
5279
5282
|
Events.flowError('This browser does not support webRTC');
|
|
5280
5283
|
}
|
|
5281
5284
|
}
|
|
5282
5285
|
async componentDidLoad() {
|
|
5286
|
+
this.titleMesage = IdCaptureValues.TtileRotate;
|
|
5283
5287
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
|
|
5284
5288
|
this.demoVideo.play();
|
|
5285
5289
|
await this.delay(IdCaptureValues.VideoLenght);
|
|
5290
|
+
this.titleMesage = IdCaptureValues.TitleBack;
|
|
5286
5291
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
5287
5292
|
this.demoVideo.play();
|
|
5288
5293
|
await this.delay(IdCaptureValues.VideoLenght);
|