@ekyc_qoobiss/qbs-ect-cmp 3.6.60 → 3.6.62
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_17.cjs.entry.js +13 -53
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/collection/components/flow/process-id/process-id.js +1 -33
- package/dist/collection/components/flow/user-liveness/user-liveness.js +1 -33
- package/dist/collection/components/identification-component/identification-component.js +12 -0
- package/dist/esm/agreement-check_17.entry.js +13 -53
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/qbs-ect-cmp/{p-20c53edc.entry.js → p-cc892cb6.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/flow/process-id/process-id.d.ts +0 -3
- package/dist/types/components/flow/user-liveness/user-liveness.d.ts +0 -3
- package/package.json +1 -1
|
@@ -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.
|
|
5211
|
+
const version$1 = "3.6.62";
|
|
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) {
|
|
@@ -8743,28 +8755,6 @@ const ProcessId = class {
|
|
|
8743
8755
|
}
|
|
8744
8756
|
this.recordingResultCount = 0;
|
|
8745
8757
|
}
|
|
8746
|
-
async verificationFinished() {
|
|
8747
|
-
if (TranslationUtils.state.debug)
|
|
8748
|
-
console.log('process-id | verificationFinished');
|
|
8749
|
-
this.verificationReceived = Date.now();
|
|
8750
|
-
let initialStatus = TranslationUtils.state.flowStatus;
|
|
8751
|
-
let statusChanged = false;
|
|
8752
|
-
while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
|
|
8753
|
-
await delay(2000);
|
|
8754
|
-
statusChanged = initialStatus != TranslationUtils.state.flowStatus;
|
|
8755
|
-
}
|
|
8756
|
-
if (!statusChanged) {
|
|
8757
|
-
let currentStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
|
|
8758
|
-
if (currentStatus != TranslationUtils.state.flowStatus) {
|
|
8759
|
-
TranslationUtils.state.flowStatus = currentStatus;
|
|
8760
|
-
}
|
|
8761
|
-
else {
|
|
8762
|
-
this.triggerUploadFailedFlow();
|
|
8763
|
-
}
|
|
8764
|
-
}
|
|
8765
|
-
if (TranslationUtils.state.debug)
|
|
8766
|
-
console.log('process-id | verificationFinished | waitingFinished ');
|
|
8767
|
-
}
|
|
8768
8758
|
async componentDidLoad() {
|
|
8769
8759
|
if (TranslationUtils.state.debug)
|
|
8770
8760
|
console.log('process-id | componentDidLoad');
|
|
@@ -8774,10 +8764,6 @@ const ProcessId = class {
|
|
|
8774
8764
|
this.errorReason = 'Invalid';
|
|
8775
8765
|
this.showInvalid = true;
|
|
8776
8766
|
}
|
|
8777
|
-
triggerUploadFailedFlow() {
|
|
8778
|
-
this.errorReason = 'Upload Failed';
|
|
8779
|
-
this.showInvalid = true;
|
|
8780
|
-
}
|
|
8781
8767
|
async disconnectedCallback() {
|
|
8782
8768
|
if (TranslationUtils.state.debug)
|
|
8783
8769
|
console.log('process-id | disconnectedCallback');
|
|
@@ -9136,28 +9122,6 @@ const UserLiveness = class {
|
|
|
9136
9122
|
}
|
|
9137
9123
|
}
|
|
9138
9124
|
}
|
|
9139
|
-
async verificationFinished() {
|
|
9140
|
-
if (TranslationUtils.state.debug)
|
|
9141
|
-
console.log('user-liveness | verificationFinished');
|
|
9142
|
-
this.verificationReceived = Date.now();
|
|
9143
|
-
let initialStatus = TranslationUtils.state.flowStatus;
|
|
9144
|
-
let statusChanged = false;
|
|
9145
|
-
while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
|
|
9146
|
-
await delay(2000);
|
|
9147
|
-
statusChanged = initialStatus != TranslationUtils.state.flowStatus;
|
|
9148
|
-
}
|
|
9149
|
-
if (!statusChanged) {
|
|
9150
|
-
let currentStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
|
|
9151
|
-
if (currentStatus != TranslationUtils.state.flowStatus) {
|
|
9152
|
-
TranslationUtils.state.flowStatus = currentStatus;
|
|
9153
|
-
}
|
|
9154
|
-
else {
|
|
9155
|
-
this.triggerUploadFailedFlow();
|
|
9156
|
-
}
|
|
9157
|
-
}
|
|
9158
|
-
if (TranslationUtils.state.debug)
|
|
9159
|
-
console.log('user-liveness | verificationFinished | waitingFinished ');
|
|
9160
|
-
}
|
|
9161
9125
|
async disconnectedCallback() {
|
|
9162
9126
|
await BaseComponent.finalize(this.currentStep);
|
|
9163
9127
|
}
|
|
@@ -9165,10 +9129,6 @@ const UserLiveness = class {
|
|
|
9165
9129
|
this.errorReason = 'Invalid';
|
|
9166
9130
|
this.showError = true;
|
|
9167
9131
|
}
|
|
9168
|
-
triggerUploadFailedFlow() {
|
|
9169
|
-
this.errorReason = 'Upload Failed';
|
|
9170
|
-
this.showError = true;
|
|
9171
|
-
}
|
|
9172
9132
|
render() {
|
|
9173
9133
|
let howTo = index.h("how-to-info", null);
|
|
9174
9134
|
let capture = index.h("selfie-capture", null);
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["random-actions.cjs",[[0,"random-actions"]]],["agreement-check_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"mode":[1],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]
|
|
17
|
+
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["random-actions.cjs",[[0,"random-actions"]]],["agreement-check_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"mode":[1],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"mode":[1],"showError":[32],"showTimeout":[32],"flow":[32],"howToDone":[32]},[[0,"howToInfoDone","howToDoneEvent"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"code":[32],"canSend":[32]}],[0,"sms-send",{"buttonText":[32],"title":[32],"details":[32],"phoneNumber":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]}],[0,"capture-error",{"type":[1],"reason":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["random-actions.cjs",[[0,"random-actions"]]],["agreement-check_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"mode":[1],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]
|
|
20
|
+
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["random-actions.cjs",[[0,"random-actions"]]],["agreement-check_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"mode":[1],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"mode":[1],"showError":[32],"showTimeout":[32],"flow":[32],"howToDone":[32]},[[0,"howToInfoDone","howToDoneEvent"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"code":[32],"canSend":[32]}],[0,"sms-send",{"buttonText":[32],"title":[32],"details":[32],"phoneNumber":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]}],[0,"capture-error",{"type":[1],"reason":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
|
@@ -3,7 +3,7 @@ import store from '../../../helpers/store';
|
|
|
3
3
|
import { Stream } from '../../../helpers/Stream';
|
|
4
4
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
5
5
|
import { FlowSteps } from '../../../models/FlowSteps';
|
|
6
|
-
import {
|
|
6
|
+
import { getLogMessage } from '../../../utils/utils';
|
|
7
7
|
import { BaseComponent } from '../../base-component';
|
|
8
8
|
import { CaptureUploadTypes } from '../../../models/CaptureFlow';
|
|
9
9
|
import { ApiCall } from '../../../helpers/ApiCall';
|
|
@@ -134,28 +134,6 @@ export class ProcessId {
|
|
|
134
134
|
}
|
|
135
135
|
this.recordingResultCount = 0;
|
|
136
136
|
}
|
|
137
|
-
async verificationFinished() {
|
|
138
|
-
if (store.debug)
|
|
139
|
-
console.log('process-id | verificationFinished');
|
|
140
|
-
this.verificationReceived = Date.now();
|
|
141
|
-
let initialStatus = store.flowStatus;
|
|
142
|
-
let statusChanged = false;
|
|
143
|
-
while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
|
|
144
|
-
await delay(2000);
|
|
145
|
-
statusChanged = initialStatus != store.flowStatus;
|
|
146
|
-
}
|
|
147
|
-
if (!statusChanged) {
|
|
148
|
-
let currentStatus = await ApiCall.instance.GetFlowState();
|
|
149
|
-
if (currentStatus != store.flowStatus) {
|
|
150
|
-
store.flowStatus = currentStatus;
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
this.triggerUploadFailedFlow();
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
if (store.debug)
|
|
157
|
-
console.log('process-id | verificationFinished | waitingFinished ');
|
|
158
|
-
}
|
|
159
137
|
async componentDidLoad() {
|
|
160
138
|
if (store.debug)
|
|
161
139
|
console.log('process-id | componentDidLoad');
|
|
@@ -165,10 +143,6 @@ export class ProcessId {
|
|
|
165
143
|
this.errorReason = 'Invalid';
|
|
166
144
|
this.showInvalid = true;
|
|
167
145
|
}
|
|
168
|
-
triggerUploadFailedFlow() {
|
|
169
|
-
this.errorReason = 'Upload Failed';
|
|
170
|
-
this.showInvalid = true;
|
|
171
|
-
}
|
|
172
146
|
async disconnectedCallback() {
|
|
173
147
|
if (store.debug)
|
|
174
148
|
console.log('process-id | disconnectedCallback');
|
|
@@ -287,12 +261,6 @@ export class ProcessId {
|
|
|
287
261
|
"target": undefined,
|
|
288
262
|
"capture": false,
|
|
289
263
|
"passive": false
|
|
290
|
-
}, {
|
|
291
|
-
"name": "verificationFinished",
|
|
292
|
-
"method": "verificationFinished",
|
|
293
|
-
"target": undefined,
|
|
294
|
-
"capture": false,
|
|
295
|
-
"passive": false
|
|
296
264
|
}];
|
|
297
265
|
}
|
|
298
266
|
}
|
|
@@ -3,7 +3,7 @@ import store from '../../../helpers/store';
|
|
|
3
3
|
import { Stream } from '../../../helpers/Stream';
|
|
4
4
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
5
5
|
import { FlowSteps } from '../../../models/FlowSteps';
|
|
6
|
-
import {
|
|
6
|
+
import { getLogMessage } from '../../../utils/utils';
|
|
7
7
|
import { BaseComponent } from '../../base-component';
|
|
8
8
|
import { CaptureUploadTypes } from '../../../models/CaptureFlow';
|
|
9
9
|
import { ApiCall } from '../../../helpers/ApiCall';
|
|
@@ -115,28 +115,6 @@ export class UserLiveness {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
async verificationFinished() {
|
|
119
|
-
if (store.debug)
|
|
120
|
-
console.log('user-liveness | verificationFinished');
|
|
121
|
-
this.verificationReceived = Date.now();
|
|
122
|
-
let initialStatus = store.flowStatus;
|
|
123
|
-
let statusChanged = false;
|
|
124
|
-
while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
|
|
125
|
-
await delay(2000);
|
|
126
|
-
statusChanged = initialStatus != store.flowStatus;
|
|
127
|
-
}
|
|
128
|
-
if (!statusChanged) {
|
|
129
|
-
let currentStatus = await ApiCall.instance.GetFlowState();
|
|
130
|
-
if (currentStatus != store.flowStatus) {
|
|
131
|
-
store.flowStatus = currentStatus;
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
this.triggerUploadFailedFlow();
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
if (store.debug)
|
|
138
|
-
console.log('user-liveness | verificationFinished | waitingFinished ');
|
|
139
|
-
}
|
|
140
118
|
async disconnectedCallback() {
|
|
141
119
|
await BaseComponent.finalize(this.currentStep);
|
|
142
120
|
}
|
|
@@ -144,10 +122,6 @@ export class UserLiveness {
|
|
|
144
122
|
this.errorReason = 'Invalid';
|
|
145
123
|
this.showError = true;
|
|
146
124
|
}
|
|
147
|
-
triggerUploadFailedFlow() {
|
|
148
|
-
this.errorReason = 'Upload Failed';
|
|
149
|
-
this.showError = true;
|
|
150
|
-
}
|
|
151
125
|
render() {
|
|
152
126
|
let howTo = h("how-to-info", null);
|
|
153
127
|
let capture = h("selfie-capture", null);
|
|
@@ -251,12 +225,6 @@ export class UserLiveness {
|
|
|
251
225
|
"target": undefined,
|
|
252
226
|
"capture": false,
|
|
253
227
|
"passive": false
|
|
254
|
-
}, {
|
|
255
|
-
"name": "verificationFinished",
|
|
256
|
-
"method": "verificationFinished",
|
|
257
|
-
"target": undefined,
|
|
258
|
-
"capture": false,
|
|
259
|
-
"passive": false
|
|
260
228
|
}];
|
|
261
229
|
}
|
|
262
230
|
}
|
|
@@ -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.
|
|
5207
|
+
const version$1 = "3.6.62";
|
|
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) {
|
|
@@ -8739,28 +8751,6 @@ const ProcessId = class {
|
|
|
8739
8751
|
}
|
|
8740
8752
|
this.recordingResultCount = 0;
|
|
8741
8753
|
}
|
|
8742
|
-
async verificationFinished() {
|
|
8743
|
-
if (state.debug)
|
|
8744
|
-
console.log('process-id | verificationFinished');
|
|
8745
|
-
this.verificationReceived = Date.now();
|
|
8746
|
-
let initialStatus = state.flowStatus;
|
|
8747
|
-
let statusChanged = false;
|
|
8748
|
-
while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
|
|
8749
|
-
await delay(2000);
|
|
8750
|
-
statusChanged = initialStatus != state.flowStatus;
|
|
8751
|
-
}
|
|
8752
|
-
if (!statusChanged) {
|
|
8753
|
-
let currentStatus = await ApiCall.instance.GetFlowState();
|
|
8754
|
-
if (currentStatus != state.flowStatus) {
|
|
8755
|
-
state.flowStatus = currentStatus;
|
|
8756
|
-
}
|
|
8757
|
-
else {
|
|
8758
|
-
this.triggerUploadFailedFlow();
|
|
8759
|
-
}
|
|
8760
|
-
}
|
|
8761
|
-
if (state.debug)
|
|
8762
|
-
console.log('process-id | verificationFinished | waitingFinished ');
|
|
8763
|
-
}
|
|
8764
8754
|
async componentDidLoad() {
|
|
8765
8755
|
if (state.debug)
|
|
8766
8756
|
console.log('process-id | componentDidLoad');
|
|
@@ -8770,10 +8760,6 @@ const ProcessId = class {
|
|
|
8770
8760
|
this.errorReason = 'Invalid';
|
|
8771
8761
|
this.showInvalid = true;
|
|
8772
8762
|
}
|
|
8773
|
-
triggerUploadFailedFlow() {
|
|
8774
|
-
this.errorReason = 'Upload Failed';
|
|
8775
|
-
this.showInvalid = true;
|
|
8776
|
-
}
|
|
8777
8763
|
async disconnectedCallback() {
|
|
8778
8764
|
if (state.debug)
|
|
8779
8765
|
console.log('process-id | disconnectedCallback');
|
|
@@ -9132,28 +9118,6 @@ const UserLiveness = class {
|
|
|
9132
9118
|
}
|
|
9133
9119
|
}
|
|
9134
9120
|
}
|
|
9135
|
-
async verificationFinished() {
|
|
9136
|
-
if (state.debug)
|
|
9137
|
-
console.log('user-liveness | verificationFinished');
|
|
9138
|
-
this.verificationReceived = Date.now();
|
|
9139
|
-
let initialStatus = state.flowStatus;
|
|
9140
|
-
let statusChanged = false;
|
|
9141
|
-
while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
|
|
9142
|
-
await delay(2000);
|
|
9143
|
-
statusChanged = initialStatus != state.flowStatus;
|
|
9144
|
-
}
|
|
9145
|
-
if (!statusChanged) {
|
|
9146
|
-
let currentStatus = await ApiCall.instance.GetFlowState();
|
|
9147
|
-
if (currentStatus != state.flowStatus) {
|
|
9148
|
-
state.flowStatus = currentStatus;
|
|
9149
|
-
}
|
|
9150
|
-
else {
|
|
9151
|
-
this.triggerUploadFailedFlow();
|
|
9152
|
-
}
|
|
9153
|
-
}
|
|
9154
|
-
if (state.debug)
|
|
9155
|
-
console.log('user-liveness | verificationFinished | waitingFinished ');
|
|
9156
|
-
}
|
|
9157
9121
|
async disconnectedCallback() {
|
|
9158
9122
|
await BaseComponent.finalize(this.currentStep);
|
|
9159
9123
|
}
|
|
@@ -9161,10 +9125,6 @@ const UserLiveness = class {
|
|
|
9161
9125
|
this.errorReason = 'Invalid';
|
|
9162
9126
|
this.showError = true;
|
|
9163
9127
|
}
|
|
9164
|
-
triggerUploadFailedFlow() {
|
|
9165
|
-
this.errorReason = 'Upload Failed';
|
|
9166
|
-
this.showError = true;
|
|
9167
|
-
}
|
|
9168
9128
|
render() {
|
|
9169
9129
|
let howTo = h("how-to-info", null);
|
|
9170
9130
|
let capture = h("selfie-capture", null);
|
package/dist/esm/loader.js
CHANGED
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["random-actions",[[0,"random-actions"]]],["agreement-check_17",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"mode":[1],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]
|
|
14
|
+
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["random-actions",[[0,"random-actions"]]],["agreement-check_17",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"mode":[1],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"mode":[1],"showError":[32],"showTimeout":[32],"flow":[32],"howToDone":[32]},[[0,"howToInfoDone","howToDoneEvent"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"code":[32],"canSend":[32]}],[0,"sms-send",{"buttonText":[32],"title":[32],"details":[32],"phoneNumber":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]}],[0,"capture-error",{"type":[1],"reason":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
package/dist/esm/qbs-ect-cmp.js
CHANGED
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["random-actions",[[0,"random-actions"]]],["agreement-check_17",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"mode":[1],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]
|
|
17
|
+
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["random-actions",[[0,"random-actions"]]],["agreement-check_17",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"mode":[1],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"mode":[1],"showError":[32],"showTimeout":[32],"flow":[32],"howToDone":[32]},[[0,"howToInfoDone","howToDoneEvent"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"code":[32],"canSend":[32]}],[0,"sms-send",{"buttonText":[32],"title":[32],"details":[32],"phoneNumber":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]}],[0,"capture-error",{"type":[1],"reason":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
18
18
|
});
|