@ekyc_qoobiss/qbs-ect-cmp 3.6.61 → 3.6.63
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 +5 -82
- 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 -36
- package/dist/collection/components/flow/user-liveness/user-liveness.js +1 -36
- package/dist/collection/components/identification-component/identification-component.js +4 -23
- package/dist/esm/agreement-check_17.entry.js +5 -82
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/qbs-ect-cmp/{p-9091de00.entry.js → p-deb65af1.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.63";
|
|
5212
5212
|
const description = "Person Identification Component";
|
|
5213
5213
|
const main = "./dist/index.cjs.js";
|
|
5214
5214
|
const module$1 = "./dist/index.js";
|
|
@@ -5538,30 +5538,11 @@ const IdentificationComponent = class {
|
|
|
5538
5538
|
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CODEERROR) {
|
|
5539
5539
|
currentBlock = index.h("sms-code-validation", null);
|
|
5540
5540
|
}
|
|
5541
|
-
else if (TranslationUtils.
|
|
5542
|
-
|
|
5543
|
-
console.log('identification-component | render | IDFRONT');
|
|
5544
|
-
currentBlock = index.h("process-id", { mode: "front" });
|
|
5545
|
-
}
|
|
5546
|
-
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDBACK) {
|
|
5547
|
-
if (TranslationUtils.state.debug)
|
|
5548
|
-
console.log('identification-component | render | IDBACK');
|
|
5549
|
-
currentBlock = index.h("process-id", { mode: "back" });
|
|
5550
|
-
}
|
|
5551
|
-
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDTILT) {
|
|
5552
|
-
if (TranslationUtils.state.debug)
|
|
5553
|
-
console.log('identification-component | render | TILT');
|
|
5554
|
-
currentBlock = index.h("process-id", { mode: "tilt" });
|
|
5541
|
+
else if ([TranslationUtils.FlowStatus.IDFRONT, TranslationUtils.FlowStatus.IDBACK, TranslationUtils.FlowStatus.IDTILT].includes(TranslationUtils.state.flowStatus)) {
|
|
5542
|
+
currentBlock = (index.h("div", null, index.h("process-id", { id: "processIdFront", mode: "front", hidden: TranslationUtils.state.flowStatus != TranslationUtils.FlowStatus.IDFRONT }), index.h("process-id", { id: "processIdBack", mode: "back", hidden: TranslationUtils.state.flowStatus != TranslationUtils.FlowStatus.IDBACK }), index.h("process-id", { id: "processIdTilt", mode: "tilt", hidden: TranslationUtils.state.flowStatus != TranslationUtils.FlowStatus.IDTILT })));
|
|
5555
5543
|
}
|
|
5556
|
-
else if (TranslationUtils.
|
|
5557
|
-
|
|
5558
|
-
console.log('identification-component | render | LIVENESS');
|
|
5559
|
-
currentBlock = index.h("user-liveness", { mode: "selfie" });
|
|
5560
|
-
}
|
|
5561
|
-
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LIVENESSGESTURE) {
|
|
5562
|
-
if (TranslationUtils.state.debug)
|
|
5563
|
-
console.log('identification-component | render | LIVENESSGESTURE');
|
|
5564
|
-
currentBlock = index.h("user-liveness", { mode: "selfieGesture" });
|
|
5544
|
+
else if ([TranslationUtils.FlowStatus.LIVENESS, TranslationUtils.FlowStatus.LIVENESSGESTURE].includes(TranslationUtils.state.flowStatus)) {
|
|
5545
|
+
currentBlock = (index.h("div", null, index.h("user-liveness", { id: "userLiveness", mode: "selfie", hidden: TranslationUtils.state.flowStatus != TranslationUtils.FlowStatus.LIVENESS }), index.h("user-liveness", { id: "userLivenessGesture", mode: "selfieGesture", hidden: TranslationUtils.state.flowStatus != TranslationUtils.FlowStatus.LIVENESSGESTURE })));
|
|
5565
5546
|
}
|
|
5566
5547
|
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.COMPLETE) {
|
|
5567
5548
|
if (TranslationUtils.state.debug)
|
|
@@ -8755,31 +8736,6 @@ const ProcessId = class {
|
|
|
8755
8736
|
}
|
|
8756
8737
|
this.recordingResultCount = 0;
|
|
8757
8738
|
}
|
|
8758
|
-
async verificationFinished() {
|
|
8759
|
-
if (TranslationUtils.state.debug)
|
|
8760
|
-
console.log('process-id | verificationFinished');
|
|
8761
|
-
this.verificationReceived = Date.now();
|
|
8762
|
-
let initialStatus = TranslationUtils.state.flowStatus;
|
|
8763
|
-
let statusChanged = false;
|
|
8764
|
-
while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
|
|
8765
|
-
await delay(1000);
|
|
8766
|
-
statusChanged = initialStatus != TranslationUtils.state.flowStatus;
|
|
8767
|
-
}
|
|
8768
|
-
let currentStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
|
|
8769
|
-
if (statusChanged) {
|
|
8770
|
-
TranslationUtils.state.flowStatus = currentStatus;
|
|
8771
|
-
}
|
|
8772
|
-
else {
|
|
8773
|
-
if (currentStatus != TranslationUtils.state.flowStatus) {
|
|
8774
|
-
TranslationUtils.state.flowStatus = currentStatus;
|
|
8775
|
-
}
|
|
8776
|
-
else {
|
|
8777
|
-
this.triggerUploadFailedFlow();
|
|
8778
|
-
}
|
|
8779
|
-
}
|
|
8780
|
-
if (TranslationUtils.state.debug)
|
|
8781
|
-
console.log('process-id | verificationFinished | waitingFinished ');
|
|
8782
|
-
}
|
|
8783
8739
|
async componentDidLoad() {
|
|
8784
8740
|
if (TranslationUtils.state.debug)
|
|
8785
8741
|
console.log('process-id | componentDidLoad');
|
|
@@ -8789,10 +8745,6 @@ const ProcessId = class {
|
|
|
8789
8745
|
this.errorReason = 'Invalid';
|
|
8790
8746
|
this.showInvalid = true;
|
|
8791
8747
|
}
|
|
8792
|
-
triggerUploadFailedFlow() {
|
|
8793
|
-
this.errorReason = 'Upload Failed';
|
|
8794
|
-
this.showInvalid = true;
|
|
8795
|
-
}
|
|
8796
8748
|
async disconnectedCallback() {
|
|
8797
8749
|
if (TranslationUtils.state.debug)
|
|
8798
8750
|
console.log('process-id | disconnectedCallback');
|
|
@@ -9151,31 +9103,6 @@ const UserLiveness = class {
|
|
|
9151
9103
|
}
|
|
9152
9104
|
}
|
|
9153
9105
|
}
|
|
9154
|
-
async verificationFinished() {
|
|
9155
|
-
if (TranslationUtils.state.debug)
|
|
9156
|
-
console.log('user-liveness | verificationFinished');
|
|
9157
|
-
this.verificationReceived = Date.now();
|
|
9158
|
-
let initialStatus = TranslationUtils.state.flowStatus;
|
|
9159
|
-
let statusChanged = false;
|
|
9160
|
-
while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
|
|
9161
|
-
await delay(1000);
|
|
9162
|
-
statusChanged = initialStatus != TranslationUtils.state.flowStatus;
|
|
9163
|
-
}
|
|
9164
|
-
let currentStatus = await TranslationUtils.ApiCall.instance.GetFlowState();
|
|
9165
|
-
if (statusChanged) {
|
|
9166
|
-
TranslationUtils.state.flowStatus = currentStatus;
|
|
9167
|
-
}
|
|
9168
|
-
else {
|
|
9169
|
-
if (currentStatus != TranslationUtils.state.flowStatus) {
|
|
9170
|
-
TranslationUtils.state.flowStatus = currentStatus;
|
|
9171
|
-
}
|
|
9172
|
-
else {
|
|
9173
|
-
this.triggerUploadFailedFlow();
|
|
9174
|
-
}
|
|
9175
|
-
}
|
|
9176
|
-
if (TranslationUtils.state.debug)
|
|
9177
|
-
console.log('user-liveness | verificationFinished | waitingFinished ');
|
|
9178
|
-
}
|
|
9179
9106
|
async disconnectedCallback() {
|
|
9180
9107
|
await BaseComponent.finalize(this.currentStep);
|
|
9181
9108
|
}
|
|
@@ -9183,10 +9110,6 @@ const UserLiveness = class {
|
|
|
9183
9110
|
this.errorReason = 'Invalid';
|
|
9184
9111
|
this.showError = true;
|
|
9185
9112
|
}
|
|
9186
|
-
triggerUploadFailedFlow() {
|
|
9187
|
-
this.errorReason = 'Upload Failed';
|
|
9188
|
-
this.showError = true;
|
|
9189
|
-
}
|
|
9190
9113
|
render() {
|
|
9191
9114
|
let howTo = index.h("how-to-info", null);
|
|
9192
9115
|
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,31 +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(1000);
|
|
145
|
-
statusChanged = initialStatus != store.flowStatus;
|
|
146
|
-
}
|
|
147
|
-
let currentStatus = await ApiCall.instance.GetFlowState();
|
|
148
|
-
if (statusChanged) {
|
|
149
|
-
store.flowStatus = currentStatus;
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
if (currentStatus != store.flowStatus) {
|
|
153
|
-
store.flowStatus = currentStatus;
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
this.triggerUploadFailedFlow();
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
if (store.debug)
|
|
160
|
-
console.log('process-id | verificationFinished | waitingFinished ');
|
|
161
|
-
}
|
|
162
137
|
async componentDidLoad() {
|
|
163
138
|
if (store.debug)
|
|
164
139
|
console.log('process-id | componentDidLoad');
|
|
@@ -168,10 +143,6 @@ export class ProcessId {
|
|
|
168
143
|
this.errorReason = 'Invalid';
|
|
169
144
|
this.showInvalid = true;
|
|
170
145
|
}
|
|
171
|
-
triggerUploadFailedFlow() {
|
|
172
|
-
this.errorReason = 'Upload Failed';
|
|
173
|
-
this.showInvalid = true;
|
|
174
|
-
}
|
|
175
146
|
async disconnectedCallback() {
|
|
176
147
|
if (store.debug)
|
|
177
148
|
console.log('process-id | disconnectedCallback');
|
|
@@ -290,12 +261,6 @@ export class ProcessId {
|
|
|
290
261
|
"target": undefined,
|
|
291
262
|
"capture": false,
|
|
292
263
|
"passive": false
|
|
293
|
-
}, {
|
|
294
|
-
"name": "verificationFinished",
|
|
295
|
-
"method": "verificationFinished",
|
|
296
|
-
"target": undefined,
|
|
297
|
-
"capture": false,
|
|
298
|
-
"passive": false
|
|
299
264
|
}];
|
|
300
265
|
}
|
|
301
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,31 +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(1000);
|
|
126
|
-
statusChanged = initialStatus != store.flowStatus;
|
|
127
|
-
}
|
|
128
|
-
let currentStatus = await ApiCall.instance.GetFlowState();
|
|
129
|
-
if (statusChanged) {
|
|
130
|
-
store.flowStatus = currentStatus;
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
if (currentStatus != store.flowStatus) {
|
|
134
|
-
store.flowStatus = currentStatus;
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
this.triggerUploadFailedFlow();
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
if (store.debug)
|
|
141
|
-
console.log('user-liveness | verificationFinished | waitingFinished ');
|
|
142
|
-
}
|
|
143
118
|
async disconnectedCallback() {
|
|
144
119
|
await BaseComponent.finalize(this.currentStep);
|
|
145
120
|
}
|
|
@@ -147,10 +122,6 @@ export class UserLiveness {
|
|
|
147
122
|
this.errorReason = 'Invalid';
|
|
148
123
|
this.showError = true;
|
|
149
124
|
}
|
|
150
|
-
triggerUploadFailedFlow() {
|
|
151
|
-
this.errorReason = 'Upload Failed';
|
|
152
|
-
this.showError = true;
|
|
153
|
-
}
|
|
154
125
|
render() {
|
|
155
126
|
let howTo = h("how-to-info", null);
|
|
156
127
|
let capture = h("selfie-capture", null);
|
|
@@ -254,12 +225,6 @@ export class UserLiveness {
|
|
|
254
225
|
"target": undefined,
|
|
255
226
|
"capture": false,
|
|
256
227
|
"passive": false
|
|
257
|
-
}, {
|
|
258
|
-
"name": "verificationFinished",
|
|
259
|
-
"method": "verificationFinished",
|
|
260
|
-
"target": undefined,
|
|
261
|
-
"capture": false,
|
|
262
|
-
"passive": false
|
|
263
228
|
}];
|
|
264
229
|
}
|
|
265
230
|
}
|
|
@@ -189,30 +189,11 @@ export class IdentificationComponent {
|
|
|
189
189
|
else if (store.flowStatus == FlowStatus.CODEERROR) {
|
|
190
190
|
currentBlock = h("sms-code-validation", null);
|
|
191
191
|
}
|
|
192
|
-
else if (
|
|
193
|
-
|
|
194
|
-
console.log('identification-component | render | IDFRONT');
|
|
195
|
-
currentBlock = h("process-id", { mode: "front" });
|
|
196
|
-
}
|
|
197
|
-
else if (store.flowStatus == FlowStatus.IDBACK) {
|
|
198
|
-
if (store.debug)
|
|
199
|
-
console.log('identification-component | render | IDBACK');
|
|
200
|
-
currentBlock = h("process-id", { mode: "back" });
|
|
201
|
-
}
|
|
202
|
-
else if (store.flowStatus == FlowStatus.IDTILT) {
|
|
203
|
-
if (store.debug)
|
|
204
|
-
console.log('identification-component | render | TILT');
|
|
205
|
-
currentBlock = h("process-id", { mode: "tilt" });
|
|
206
|
-
}
|
|
207
|
-
else if (store.flowStatus == FlowStatus.LIVENESS) {
|
|
208
|
-
if (store.debug)
|
|
209
|
-
console.log('identification-component | render | LIVENESS');
|
|
210
|
-
currentBlock = h("user-liveness", { mode: "selfie" });
|
|
192
|
+
else if ([FlowStatus.IDFRONT, FlowStatus.IDBACK, FlowStatus.IDTILT].includes(store.flowStatus)) {
|
|
193
|
+
currentBlock = (h("div", null, h("process-id", { id: "processIdFront", mode: "front", hidden: store.flowStatus != FlowStatus.IDFRONT }), h("process-id", { id: "processIdBack", mode: "back", hidden: store.flowStatus != FlowStatus.IDBACK }), h("process-id", { id: "processIdTilt", mode: "tilt", hidden: store.flowStatus != FlowStatus.IDTILT })));
|
|
211
194
|
}
|
|
212
|
-
else if (
|
|
213
|
-
|
|
214
|
-
console.log('identification-component | render | LIVENESSGESTURE');
|
|
215
|
-
currentBlock = h("user-liveness", { mode: "selfieGesture" });
|
|
195
|
+
else if ([FlowStatus.LIVENESS, FlowStatus.LIVENESSGESTURE].includes(store.flowStatus)) {
|
|
196
|
+
currentBlock = (h("div", null, h("user-liveness", { id: "userLiveness", mode: "selfie", hidden: store.flowStatus != FlowStatus.LIVENESS }), h("user-liveness", { id: "userLivenessGesture", mode: "selfieGesture", hidden: store.flowStatus != FlowStatus.LIVENESSGESTURE })));
|
|
216
197
|
}
|
|
217
198
|
else if (store.flowStatus == FlowStatus.COMPLETE) {
|
|
218
199
|
if (store.debug)
|
|
@@ -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.63";
|
|
5208
5208
|
const description = "Person Identification Component";
|
|
5209
5209
|
const main = "./dist/index.cjs.js";
|
|
5210
5210
|
const module = "./dist/index.js";
|
|
@@ -5534,30 +5534,11 @@ const IdentificationComponent = class {
|
|
|
5534
5534
|
else if (state.flowStatus == FlowStatus.CODEERROR) {
|
|
5535
5535
|
currentBlock = h("sms-code-validation", null);
|
|
5536
5536
|
}
|
|
5537
|
-
else if (
|
|
5538
|
-
|
|
5539
|
-
console.log('identification-component | render | IDFRONT');
|
|
5540
|
-
currentBlock = h("process-id", { mode: "front" });
|
|
5541
|
-
}
|
|
5542
|
-
else if (state.flowStatus == FlowStatus.IDBACK) {
|
|
5543
|
-
if (state.debug)
|
|
5544
|
-
console.log('identification-component | render | IDBACK');
|
|
5545
|
-
currentBlock = h("process-id", { mode: "back" });
|
|
5546
|
-
}
|
|
5547
|
-
else if (state.flowStatus == FlowStatus.IDTILT) {
|
|
5548
|
-
if (state.debug)
|
|
5549
|
-
console.log('identification-component | render | TILT');
|
|
5550
|
-
currentBlock = h("process-id", { mode: "tilt" });
|
|
5537
|
+
else if ([FlowStatus.IDFRONT, FlowStatus.IDBACK, FlowStatus.IDTILT].includes(state.flowStatus)) {
|
|
5538
|
+
currentBlock = (h("div", null, h("process-id", { id: "processIdFront", mode: "front", hidden: state.flowStatus != FlowStatus.IDFRONT }), h("process-id", { id: "processIdBack", mode: "back", hidden: state.flowStatus != FlowStatus.IDBACK }), h("process-id", { id: "processIdTilt", mode: "tilt", hidden: state.flowStatus != FlowStatus.IDTILT })));
|
|
5551
5539
|
}
|
|
5552
|
-
else if (
|
|
5553
|
-
|
|
5554
|
-
console.log('identification-component | render | LIVENESS');
|
|
5555
|
-
currentBlock = h("user-liveness", { mode: "selfie" });
|
|
5556
|
-
}
|
|
5557
|
-
else if (state.flowStatus == FlowStatus.LIVENESSGESTURE) {
|
|
5558
|
-
if (state.debug)
|
|
5559
|
-
console.log('identification-component | render | LIVENESSGESTURE');
|
|
5560
|
-
currentBlock = h("user-liveness", { mode: "selfieGesture" });
|
|
5540
|
+
else if ([FlowStatus.LIVENESS, FlowStatus.LIVENESSGESTURE].includes(state.flowStatus)) {
|
|
5541
|
+
currentBlock = (h("div", null, h("user-liveness", { id: "userLiveness", mode: "selfie", hidden: state.flowStatus != FlowStatus.LIVENESS }), h("user-liveness", { id: "userLivenessGesture", mode: "selfieGesture", hidden: state.flowStatus != FlowStatus.LIVENESSGESTURE })));
|
|
5561
5542
|
}
|
|
5562
5543
|
else if (state.flowStatus == FlowStatus.COMPLETE) {
|
|
5563
5544
|
if (state.debug)
|
|
@@ -8751,31 +8732,6 @@ const ProcessId = class {
|
|
|
8751
8732
|
}
|
|
8752
8733
|
this.recordingResultCount = 0;
|
|
8753
8734
|
}
|
|
8754
|
-
async verificationFinished() {
|
|
8755
|
-
if (state.debug)
|
|
8756
|
-
console.log('process-id | verificationFinished');
|
|
8757
|
-
this.verificationReceived = Date.now();
|
|
8758
|
-
let initialStatus = state.flowStatus;
|
|
8759
|
-
let statusChanged = false;
|
|
8760
|
-
while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
|
|
8761
|
-
await delay(1000);
|
|
8762
|
-
statusChanged = initialStatus != state.flowStatus;
|
|
8763
|
-
}
|
|
8764
|
-
let currentStatus = await ApiCall.instance.GetFlowState();
|
|
8765
|
-
if (statusChanged) {
|
|
8766
|
-
state.flowStatus = currentStatus;
|
|
8767
|
-
}
|
|
8768
|
-
else {
|
|
8769
|
-
if (currentStatus != state.flowStatus) {
|
|
8770
|
-
state.flowStatus = currentStatus;
|
|
8771
|
-
}
|
|
8772
|
-
else {
|
|
8773
|
-
this.triggerUploadFailedFlow();
|
|
8774
|
-
}
|
|
8775
|
-
}
|
|
8776
|
-
if (state.debug)
|
|
8777
|
-
console.log('process-id | verificationFinished | waitingFinished ');
|
|
8778
|
-
}
|
|
8779
8735
|
async componentDidLoad() {
|
|
8780
8736
|
if (state.debug)
|
|
8781
8737
|
console.log('process-id | componentDidLoad');
|
|
@@ -8785,10 +8741,6 @@ const ProcessId = class {
|
|
|
8785
8741
|
this.errorReason = 'Invalid';
|
|
8786
8742
|
this.showInvalid = true;
|
|
8787
8743
|
}
|
|
8788
|
-
triggerUploadFailedFlow() {
|
|
8789
|
-
this.errorReason = 'Upload Failed';
|
|
8790
|
-
this.showInvalid = true;
|
|
8791
|
-
}
|
|
8792
8744
|
async disconnectedCallback() {
|
|
8793
8745
|
if (state.debug)
|
|
8794
8746
|
console.log('process-id | disconnectedCallback');
|
|
@@ -9147,31 +9099,6 @@ const UserLiveness = class {
|
|
|
9147
9099
|
}
|
|
9148
9100
|
}
|
|
9149
9101
|
}
|
|
9150
|
-
async verificationFinished() {
|
|
9151
|
-
if (state.debug)
|
|
9152
|
-
console.log('user-liveness | verificationFinished');
|
|
9153
|
-
this.verificationReceived = Date.now();
|
|
9154
|
-
let initialStatus = state.flowStatus;
|
|
9155
|
-
let statusChanged = false;
|
|
9156
|
-
while (Date.now() - this.verificationReceived < 25000 && !statusChanged) {
|
|
9157
|
-
await delay(1000);
|
|
9158
|
-
statusChanged = initialStatus != state.flowStatus;
|
|
9159
|
-
}
|
|
9160
|
-
let currentStatus = await ApiCall.instance.GetFlowState();
|
|
9161
|
-
if (statusChanged) {
|
|
9162
|
-
state.flowStatus = currentStatus;
|
|
9163
|
-
}
|
|
9164
|
-
else {
|
|
9165
|
-
if (currentStatus != state.flowStatus) {
|
|
9166
|
-
state.flowStatus = currentStatus;
|
|
9167
|
-
}
|
|
9168
|
-
else {
|
|
9169
|
-
this.triggerUploadFailedFlow();
|
|
9170
|
-
}
|
|
9171
|
-
}
|
|
9172
|
-
if (state.debug)
|
|
9173
|
-
console.log('user-liveness | verificationFinished | waitingFinished ');
|
|
9174
|
-
}
|
|
9175
9102
|
async disconnectedCallback() {
|
|
9176
9103
|
await BaseComponent.finalize(this.currentStep);
|
|
9177
9104
|
}
|
|
@@ -9179,10 +9106,6 @@ const UserLiveness = class {
|
|
|
9179
9106
|
this.errorReason = 'Invalid';
|
|
9180
9107
|
this.showError = true;
|
|
9181
9108
|
}
|
|
9182
|
-
triggerUploadFailedFlow() {
|
|
9183
|
-
this.errorReason = 'Upload Failed';
|
|
9184
|
-
this.showError = true;
|
|
9185
|
-
}
|
|
9186
9109
|
render() {
|
|
9187
9110
|
let howTo = h("how-to-info", null);
|
|
9188
9111
|
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
|
});
|