@ekyc_qoobiss/qbs-ect-cmp 3.6.60 → 3.6.61

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.
@@ -5208,7 +5208,7 @@ function v4(options, buf, offset) {
5208
5208
  }
5209
5209
 
5210
5210
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5211
- const version$1 = "3.6.60";
5211
+ const version$1 = "3.6.61";
5212
5212
  const description = "Person Identification Component";
5213
5213
  const main = "./dist/index.cjs.js";
5214
5214
  const module$1 = "./dist/index.js";
@@ -5539,21 +5539,33 @@ const IdentificationComponent = class {
5539
5539
  currentBlock = index.h("sms-code-validation", null);
5540
5540
  }
5541
5541
  else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDFRONT) {
5542
+ if (TranslationUtils.state.debug)
5543
+ console.log('identification-component | render | IDFRONT');
5542
5544
  currentBlock = index.h("process-id", { mode: "front" });
5543
5545
  }
5544
5546
  else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDBACK) {
5547
+ if (TranslationUtils.state.debug)
5548
+ console.log('identification-component | render | IDBACK');
5545
5549
  currentBlock = index.h("process-id", { mode: "back" });
5546
5550
  }
5547
5551
  else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDTILT) {
5552
+ if (TranslationUtils.state.debug)
5553
+ console.log('identification-component | render | TILT');
5548
5554
  currentBlock = index.h("process-id", { mode: "tilt" });
5549
5555
  }
5550
5556
  else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LIVENESS) {
5557
+ if (TranslationUtils.state.debug)
5558
+ console.log('identification-component | render | LIVENESS');
5551
5559
  currentBlock = index.h("user-liveness", { mode: "selfie" });
5552
5560
  }
5553
5561
  else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LIVENESSGESTURE) {
5562
+ if (TranslationUtils.state.debug)
5563
+ console.log('identification-component | render | LIVENESSGESTURE');
5554
5564
  currentBlock = index.h("user-liveness", { mode: "selfieGesture" });
5555
5565
  }
5556
5566
  else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.COMPLETE) {
5567
+ if (TranslationUtils.state.debug)
5568
+ console.log('identification-component | render | COMPLETE');
5557
5569
  currentBlock = index.h("end-redirect", null);
5558
5570
  }
5559
5571
  else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.ERROREND) {
@@ -8750,11 +8762,14 @@ const ProcessId = class {
8750
8762
  let initialStatus = TranslationUtils.state.flowStatus;
8751
8763
  let statusChanged = false;
8752
8764
  while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
8753
- await delay(2000);
8765
+ await delay(1000);
8754
8766
  statusChanged = initialStatus != TranslationUtils.state.flowStatus;
8755
8767
  }
8756
- if (!statusChanged) {
8757
- let currentStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
8768
+ let currentStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
8769
+ if (statusChanged) {
8770
+ TranslationUtils.state.flowStatus = currentStatus;
8771
+ }
8772
+ else {
8758
8773
  if (currentStatus != TranslationUtils.state.flowStatus) {
8759
8774
  TranslationUtils.state.flowStatus = currentStatus;
8760
8775
  }
@@ -9143,11 +9158,14 @@ const UserLiveness = class {
9143
9158
  let initialStatus = TranslationUtils.state.flowStatus;
9144
9159
  let statusChanged = false;
9145
9160
  while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
9146
- await delay(2000);
9161
+ await delay(1000);
9147
9162
  statusChanged = initialStatus != TranslationUtils.state.flowStatus;
9148
9163
  }
9149
- if (!statusChanged) {
9150
- let currentStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
9164
+ let currentStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
9165
+ if (statusChanged) {
9166
+ TranslationUtils.state.flowStatus = currentStatus;
9167
+ }
9168
+ else {
9151
9169
  if (currentStatus != TranslationUtils.state.flowStatus) {
9152
9170
  TranslationUtils.state.flowStatus = currentStatus;
9153
9171
  }
@@ -141,11 +141,14 @@ export class ProcessId {
141
141
  let initialStatus = store.flowStatus;
142
142
  let statusChanged = false;
143
143
  while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
144
- await delay(2000);
144
+ await delay(1000);
145
145
  statusChanged = initialStatus != store.flowStatus;
146
146
  }
147
- if (!statusChanged) {
148
- let currentStatus = await ApiCall.instance.GetFlowState();
147
+ let currentStatus = await ApiCall.instance.GetFlowState();
148
+ if (statusChanged) {
149
+ store.flowStatus = currentStatus;
150
+ }
151
+ else {
149
152
  if (currentStatus != store.flowStatus) {
150
153
  store.flowStatus = currentStatus;
151
154
  }
@@ -122,11 +122,14 @@ export class UserLiveness {
122
122
  let initialStatus = store.flowStatus;
123
123
  let statusChanged = false;
124
124
  while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
125
- await delay(2000);
125
+ await delay(1000);
126
126
  statusChanged = initialStatus != store.flowStatus;
127
127
  }
128
- if (!statusChanged) {
129
- let currentStatus = await ApiCall.instance.GetFlowState();
128
+ let currentStatus = await ApiCall.instance.GetFlowState();
129
+ if (statusChanged) {
130
+ store.flowStatus = currentStatus;
131
+ }
132
+ else {
130
133
  if (currentStatus != store.flowStatus) {
131
134
  store.flowStatus = currentStatus;
132
135
  }
@@ -190,21 +190,33 @@ export class IdentificationComponent {
190
190
  currentBlock = h("sms-code-validation", null);
191
191
  }
192
192
  else if (store.flowStatus == FlowStatus.IDFRONT) {
193
+ if (store.debug)
194
+ console.log('identification-component | render | IDFRONT');
193
195
  currentBlock = h("process-id", { mode: "front" });
194
196
  }
195
197
  else if (store.flowStatus == FlowStatus.IDBACK) {
198
+ if (store.debug)
199
+ console.log('identification-component | render | IDBACK');
196
200
  currentBlock = h("process-id", { mode: "back" });
197
201
  }
198
202
  else if (store.flowStatus == FlowStatus.IDTILT) {
203
+ if (store.debug)
204
+ console.log('identification-component | render | TILT');
199
205
  currentBlock = h("process-id", { mode: "tilt" });
200
206
  }
201
207
  else if (store.flowStatus == FlowStatus.LIVENESS) {
208
+ if (store.debug)
209
+ console.log('identification-component | render | LIVENESS');
202
210
  currentBlock = h("user-liveness", { mode: "selfie" });
203
211
  }
204
212
  else if (store.flowStatus == FlowStatus.LIVENESSGESTURE) {
213
+ if (store.debug)
214
+ console.log('identification-component | render | LIVENESSGESTURE');
205
215
  currentBlock = h("user-liveness", { mode: "selfieGesture" });
206
216
  }
207
217
  else if (store.flowStatus == FlowStatus.COMPLETE) {
218
+ if (store.debug)
219
+ console.log('identification-component | render | COMPLETE');
208
220
  currentBlock = h("end-redirect", null);
209
221
  }
210
222
  else if (store.flowStatus == FlowStatus.ERROREND) {
@@ -5204,7 +5204,7 @@ function v4(options, buf, offset) {
5204
5204
  }
5205
5205
 
5206
5206
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5207
- const version$1 = "3.6.60";
5207
+ const version$1 = "3.6.61";
5208
5208
  const description = "Person Identification Component";
5209
5209
  const main = "./dist/index.cjs.js";
5210
5210
  const module = "./dist/index.js";
@@ -5535,21 +5535,33 @@ const IdentificationComponent = class {
5535
5535
  currentBlock = h("sms-code-validation", null);
5536
5536
  }
5537
5537
  else if (state.flowStatus == FlowStatus.IDFRONT) {
5538
+ if (state.debug)
5539
+ console.log('identification-component | render | IDFRONT');
5538
5540
  currentBlock = h("process-id", { mode: "front" });
5539
5541
  }
5540
5542
  else if (state.flowStatus == FlowStatus.IDBACK) {
5543
+ if (state.debug)
5544
+ console.log('identification-component | render | IDBACK');
5541
5545
  currentBlock = h("process-id", { mode: "back" });
5542
5546
  }
5543
5547
  else if (state.flowStatus == FlowStatus.IDTILT) {
5548
+ if (state.debug)
5549
+ console.log('identification-component | render | TILT');
5544
5550
  currentBlock = h("process-id", { mode: "tilt" });
5545
5551
  }
5546
5552
  else if (state.flowStatus == FlowStatus.LIVENESS) {
5553
+ if (state.debug)
5554
+ console.log('identification-component | render | LIVENESS');
5547
5555
  currentBlock = h("user-liveness", { mode: "selfie" });
5548
5556
  }
5549
5557
  else if (state.flowStatus == FlowStatus.LIVENESSGESTURE) {
5558
+ if (state.debug)
5559
+ console.log('identification-component | render | LIVENESSGESTURE');
5550
5560
  currentBlock = h("user-liveness", { mode: "selfieGesture" });
5551
5561
  }
5552
5562
  else if (state.flowStatus == FlowStatus.COMPLETE) {
5563
+ if (state.debug)
5564
+ console.log('identification-component | render | COMPLETE');
5553
5565
  currentBlock = h("end-redirect", null);
5554
5566
  }
5555
5567
  else if (state.flowStatus == FlowStatus.ERROREND) {
@@ -8746,11 +8758,14 @@ const ProcessId = class {
8746
8758
  let initialStatus = state.flowStatus;
8747
8759
  let statusChanged = false;
8748
8760
  while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
8749
- await delay(2000);
8761
+ await delay(1000);
8750
8762
  statusChanged = initialStatus != state.flowStatus;
8751
8763
  }
8752
- if (!statusChanged) {
8753
- let currentStatus = await ApiCall.instance.GetFlowState();
8764
+ let currentStatus = await ApiCall.instance.GetFlowState();
8765
+ if (statusChanged) {
8766
+ state.flowStatus = currentStatus;
8767
+ }
8768
+ else {
8754
8769
  if (currentStatus != state.flowStatus) {
8755
8770
  state.flowStatus = currentStatus;
8756
8771
  }
@@ -9139,11 +9154,14 @@ const UserLiveness = class {
9139
9154
  let initialStatus = state.flowStatus;
9140
9155
  let statusChanged = false;
9141
9156
  while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
9142
- await delay(2000);
9157
+ await delay(1000);
9143
9158
  statusChanged = initialStatus != state.flowStatus;
9144
9159
  }
9145
- if (!statusChanged) {
9146
- let currentStatus = await ApiCall.instance.GetFlowState();
9160
+ let currentStatus = await ApiCall.instance.GetFlowState();
9161
+ if (statusChanged) {
9162
+ state.flowStatus = currentStatus;
9163
+ }
9164
+ else {
9147
9165
  if (currentStatus != state.flowStatus) {
9148
9166
  state.flowStatus = currentStatus;
9149
9167
  }