@ekyc_qoobiss/qbs-ect-cmp 3.6.35 → 3.6.36

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.
@@ -5229,7 +5229,7 @@ const IdBackCapture = class {
5229
5229
  var loops = 0;
5230
5230
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5231
5231
  this.demoVideo.loop = false;
5232
- while (loops < 5) {
5232
+ while (loops < 7) {
5233
5233
  this.demoVideo.play();
5234
5234
  await delay(this.translations.GlobalValues.VideoLenght);
5235
5235
  }
@@ -5349,7 +5349,7 @@ const IdCapture = class {
5349
5349
  var loops = 0;
5350
5350
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5351
5351
  this.demoVideo.loop = false;
5352
- while (loops < 5) {
5352
+ while (loops < 7) {
5353
5353
  this.demoVideo.play();
5354
5354
  await delay(this.translations.GlobalValues.VideoLenght);
5355
5355
  }
@@ -5466,7 +5466,7 @@ const IdTilt = class {
5466
5466
  var loops = 0;
5467
5467
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5468
5468
  this.demoVideo.loop = false;
5469
- while (loops < 5) {
5469
+ while (loops < 7) {
5470
5470
  this.demoVideo.play();
5471
5471
  await delay(this.translations.GlobalValues.VideoLenght);
5472
5472
  }
@@ -5559,7 +5559,7 @@ function v4(options, buf, offset) {
5559
5559
  }
5560
5560
 
5561
5561
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5562
- const version$1 = "3.6.35";
5562
+ const version$1 = "3.6.36";
5563
5563
  const description = "Person Identification Component";
5564
5564
  const main = "./dist/index.cjs.js";
5565
5565
  const module$1 = "./dist/index.js";
@@ -8958,6 +8958,9 @@ const ProcessId = class {
8958
8958
  }
8959
8959
  componentWillLoad() {
8960
8960
  this.captureRetryCount = 0;
8961
+ this.initFlow();
8962
+ }
8963
+ initFlow() {
8961
8964
  this.flow = {
8962
8965
  front: {
8963
8966
  photoDone: false,
@@ -9059,11 +9062,11 @@ const ProcessId = class {
9059
9062
  let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
9060
9063
  this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
9061
9064
  }
9062
- else if (this.captureStep == IdCaptureFlowStatus.IdBack) {
9065
+ else if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
9063
9066
  let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
9064
9067
  this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
9065
9068
  }
9066
- else if (this.captureStep == IdCaptureFlowStatus.Tilt) {
9069
+ else if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
9067
9070
  let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
9068
9071
  this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
9069
9072
  }
@@ -9108,17 +9111,19 @@ const ProcessId = class {
9108
9111
  restart = true;
9109
9112
  }
9110
9113
  if (restart) {
9111
- this.captureStep = IdCaptureFlowStatus.IdFront;
9114
+ this.initFlow();
9115
+ this.showInvalid = true;
9116
+ return;
9112
9117
  }
9113
- if (this.captureStep == IdCaptureFlowStatus.IdFront || restart) {
9118
+ if (this.captureStep == IdCaptureFlowStatus.IdFront) {
9114
9119
  this.flow.front.photoDone = false;
9115
9120
  this.flow.front.recordingDone = false;
9116
9121
  }
9117
- if (this.captureStep == IdCaptureFlowStatus.IdBack || restart) {
9122
+ if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
9118
9123
  this.flow.back.photoDone = false;
9119
9124
  this.flow.back.recordingDone = false;
9120
9125
  }
9121
- if (this.captureStep == IdCaptureFlowStatus.Tilt || restart) {
9126
+ if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
9122
9127
  this.flow.tilt.photoDone = true;
9123
9128
  this.flow.tilt.recordingDone = false;
9124
9129
  }
@@ -9141,7 +9146,7 @@ const ProcessId = class {
9141
9146
  return;
9142
9147
  }
9143
9148
  }
9144
- if (this.captureStep == IdCaptureFlowStatus.IdBack && TranslationUtils.state.hasIdBack) {
9149
+ if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack && TranslationUtils.state.hasIdBack) {
9145
9150
  if (this.flow.back.photoDone && this.flow.back.recordingDone) {
9146
9151
  if (TranslationUtils.state.hasIdTilt) {
9147
9152
  this.captureStep = IdCaptureFlowStatus.Tilt;
@@ -9154,7 +9159,7 @@ const ProcessId = class {
9154
9159
  return;
9155
9160
  }
9156
9161
  }
9157
- if (this.captureStep == IdCaptureFlowStatus.Tilt && TranslationUtils.state.hasIdTilt) {
9162
+ if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt && TranslationUtils.state.hasIdTilt) {
9158
9163
  if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
9159
9164
  this.captureStep = IdCaptureFlowStatus.End;
9160
9165
  }
@@ -9304,7 +9309,7 @@ const SelfieCapture = class {
9304
9309
  var loops = 0;
9305
9310
  this.demoVideo.src = this.uploadingLink;
9306
9311
  this.demoVideo.loop = false;
9307
- while (loops < 5) {
9312
+ while (loops < 7) {
9308
9313
  this.demoVideo.play();
9309
9314
  await delay(this.translations.GlobalValues.VideoLenght);
9310
9315
  }
@@ -9428,7 +9433,7 @@ const SelfieTilt = class {
9428
9433
  var loops = 0;
9429
9434
  this.demoVideo.src = this.uploadingLink;
9430
9435
  this.demoVideo.loop = false;
9431
- while (loops < 5) {
9436
+ while (loops < 7) {
9432
9437
  this.demoVideo.play();
9433
9438
  await delay(this.translations.GlobalValues.VideoLenght);
9434
9439
  }
@@ -92,7 +92,7 @@ export class IdBackCapture {
92
92
  var loops = 0;
93
93
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
94
94
  this.demoVideo.loop = false;
95
- while (loops < 5) {
95
+ while (loops < 7) {
96
96
  this.demoVideo.play();
97
97
  await delay(this.translations.GlobalValues.VideoLenght);
98
98
  }
@@ -96,7 +96,7 @@ export class IdCapture {
96
96
  var loops = 0;
97
97
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
98
98
  this.demoVideo.loop = false;
99
- while (loops < 5) {
99
+ while (loops < 7) {
100
100
  this.demoVideo.play();
101
101
  await delay(this.translations.GlobalValues.VideoLenght);
102
102
  }
@@ -96,7 +96,7 @@ export class IdTilt {
96
96
  var loops = 0;
97
97
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
98
98
  this.demoVideo.loop = false;
99
- while (loops < 5) {
99
+ while (loops < 7) {
100
100
  this.demoVideo.play();
101
101
  await delay(this.translations.GlobalValues.VideoLenght);
102
102
  }
@@ -99,7 +99,7 @@ export class SelfieCapture {
99
99
  var loops = 0;
100
100
  this.demoVideo.src = this.uploadingLink;
101
101
  this.demoVideo.loop = false;
102
- while (loops < 5) {
102
+ while (loops < 7) {
103
103
  this.demoVideo.play();
104
104
  await delay(this.translations.GlobalValues.VideoLenght);
105
105
  }
@@ -100,7 +100,7 @@ export class SelfieTilt {
100
100
  var loops = 0;
101
101
  this.demoVideo.src = this.uploadingLink;
102
102
  this.demoVideo.loop = false;
103
- while (loops < 5) {
103
+ while (loops < 7) {
104
104
  this.demoVideo.play();
105
105
  await delay(this.translations.GlobalValues.VideoLenght);
106
106
  }
@@ -19,6 +19,9 @@ export class ProcessId {
19
19
  }
20
20
  componentWillLoad() {
21
21
  this.captureRetryCount = 0;
22
+ this.initFlow();
23
+ }
24
+ initFlow() {
22
25
  this.flow = {
23
26
  front: {
24
27
  photoDone: false,
@@ -120,11 +123,11 @@ export class ProcessId {
120
123
  let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
121
124
  this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
122
125
  }
123
- else if (this.captureStep == IdCaptureFlowStatus.IdBack) {
126
+ else if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
124
127
  let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
125
128
  this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
126
129
  }
127
- else if (this.captureStep == IdCaptureFlowStatus.Tilt) {
130
+ else if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
128
131
  let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
129
132
  this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
130
133
  }
@@ -169,17 +172,19 @@ export class ProcessId {
169
172
  restart = true;
170
173
  }
171
174
  if (restart) {
172
- this.captureStep = IdCaptureFlowStatus.IdFront;
175
+ this.initFlow();
176
+ this.showInvalid = true;
177
+ return;
173
178
  }
174
- if (this.captureStep == IdCaptureFlowStatus.IdFront || restart) {
179
+ if (this.captureStep == IdCaptureFlowStatus.IdFront) {
175
180
  this.flow.front.photoDone = false;
176
181
  this.flow.front.recordingDone = false;
177
182
  }
178
- if (this.captureStep == IdCaptureFlowStatus.IdBack || restart) {
183
+ if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
179
184
  this.flow.back.photoDone = false;
180
185
  this.flow.back.recordingDone = false;
181
186
  }
182
- if (this.captureStep == IdCaptureFlowStatus.Tilt || restart) {
187
+ if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
183
188
  this.flow.tilt.photoDone = true;
184
189
  this.flow.tilt.recordingDone = false;
185
190
  }
@@ -202,7 +207,7 @@ export class ProcessId {
202
207
  return;
203
208
  }
204
209
  }
205
- if (this.captureStep == IdCaptureFlowStatus.IdBack && store.hasIdBack) {
210
+ if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack && store.hasIdBack) {
206
211
  if (this.flow.back.photoDone && this.flow.back.recordingDone) {
207
212
  if (store.hasIdTilt) {
208
213
  this.captureStep = IdCaptureFlowStatus.Tilt;
@@ -215,7 +220,7 @@ export class ProcessId {
215
220
  return;
216
221
  }
217
222
  }
218
- if (this.captureStep == IdCaptureFlowStatus.Tilt && store.hasIdTilt) {
223
+ if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt && store.hasIdTilt) {
219
224
  if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
220
225
  this.captureStep = IdCaptureFlowStatus.End;
221
226
  }
@@ -5225,7 +5225,7 @@ const IdBackCapture = class {
5225
5225
  var loops = 0;
5226
5226
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5227
5227
  this.demoVideo.loop = false;
5228
- while (loops < 5) {
5228
+ while (loops < 7) {
5229
5229
  this.demoVideo.play();
5230
5230
  await delay(this.translations.GlobalValues.VideoLenght);
5231
5231
  }
@@ -5345,7 +5345,7 @@ const IdCapture = class {
5345
5345
  var loops = 0;
5346
5346
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5347
5347
  this.demoVideo.loop = false;
5348
- while (loops < 5) {
5348
+ while (loops < 7) {
5349
5349
  this.demoVideo.play();
5350
5350
  await delay(this.translations.GlobalValues.VideoLenght);
5351
5351
  }
@@ -5462,7 +5462,7 @@ const IdTilt = class {
5462
5462
  var loops = 0;
5463
5463
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
5464
5464
  this.demoVideo.loop = false;
5465
- while (loops < 5) {
5465
+ while (loops < 7) {
5466
5466
  this.demoVideo.play();
5467
5467
  await delay(this.translations.GlobalValues.VideoLenght);
5468
5468
  }
@@ -5555,7 +5555,7 @@ function v4(options, buf, offset) {
5555
5555
  }
5556
5556
 
5557
5557
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5558
- const version$1 = "3.6.35";
5558
+ const version$1 = "3.6.36";
5559
5559
  const description = "Person Identification Component";
5560
5560
  const main = "./dist/index.cjs.js";
5561
5561
  const module = "./dist/index.js";
@@ -8954,6 +8954,9 @@ const ProcessId = class {
8954
8954
  }
8955
8955
  componentWillLoad() {
8956
8956
  this.captureRetryCount = 0;
8957
+ this.initFlow();
8958
+ }
8959
+ initFlow() {
8957
8960
  this.flow = {
8958
8961
  front: {
8959
8962
  photoDone: false,
@@ -9055,11 +9058,11 @@ const ProcessId = class {
9055
9058
  let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
9056
9059
  this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
9057
9060
  }
9058
- else if (this.captureStep == IdCaptureFlowStatus.IdBack) {
9061
+ else if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
9059
9062
  let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
9060
9063
  this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
9061
9064
  }
9062
- else if (this.captureStep == IdCaptureFlowStatus.Tilt) {
9065
+ else if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
9063
9066
  let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
9064
9067
  this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
9065
9068
  }
@@ -9104,17 +9107,19 @@ const ProcessId = class {
9104
9107
  restart = true;
9105
9108
  }
9106
9109
  if (restart) {
9107
- this.captureStep = IdCaptureFlowStatus.IdFront;
9110
+ this.initFlow();
9111
+ this.showInvalid = true;
9112
+ return;
9108
9113
  }
9109
- if (this.captureStep == IdCaptureFlowStatus.IdFront || restart) {
9114
+ if (this.captureStep == IdCaptureFlowStatus.IdFront) {
9110
9115
  this.flow.front.photoDone = false;
9111
9116
  this.flow.front.recordingDone = false;
9112
9117
  }
9113
- if (this.captureStep == IdCaptureFlowStatus.IdBack || restart) {
9118
+ if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
9114
9119
  this.flow.back.photoDone = false;
9115
9120
  this.flow.back.recordingDone = false;
9116
9121
  }
9117
- if (this.captureStep == IdCaptureFlowStatus.Tilt || restart) {
9122
+ if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
9118
9123
  this.flow.tilt.photoDone = true;
9119
9124
  this.flow.tilt.recordingDone = false;
9120
9125
  }
@@ -9137,7 +9142,7 @@ const ProcessId = class {
9137
9142
  return;
9138
9143
  }
9139
9144
  }
9140
- if (this.captureStep == IdCaptureFlowStatus.IdBack && state.hasIdBack) {
9145
+ if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack && state.hasIdBack) {
9141
9146
  if (this.flow.back.photoDone && this.flow.back.recordingDone) {
9142
9147
  if (state.hasIdTilt) {
9143
9148
  this.captureStep = IdCaptureFlowStatus.Tilt;
@@ -9150,7 +9155,7 @@ const ProcessId = class {
9150
9155
  return;
9151
9156
  }
9152
9157
  }
9153
- if (this.captureStep == IdCaptureFlowStatus.Tilt && state.hasIdTilt) {
9158
+ if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt && state.hasIdTilt) {
9154
9159
  if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
9155
9160
  this.captureStep = IdCaptureFlowStatus.End;
9156
9161
  }
@@ -9300,7 +9305,7 @@ const SelfieCapture = class {
9300
9305
  var loops = 0;
9301
9306
  this.demoVideo.src = this.uploadingLink;
9302
9307
  this.demoVideo.loop = false;
9303
- while (loops < 5) {
9308
+ while (loops < 7) {
9304
9309
  this.demoVideo.play();
9305
9310
  await delay(this.translations.GlobalValues.VideoLenght);
9306
9311
  }
@@ -9424,7 +9429,7 @@ const SelfieTilt = class {
9424
9429
  var loops = 0;
9425
9430
  this.demoVideo.src = this.uploadingLink;
9426
9431
  this.demoVideo.loop = false;
9427
- while (loops < 5) {
9432
+ while (loops < 7) {
9428
9433
  this.demoVideo.play();
9429
9434
  await delay(this.translations.GlobalValues.VideoLenght);
9430
9435
  }