@ekyc_qoobiss/qbs-ect-cmp 3.6.61 → 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 +1 -59
- 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/esm/agreement-check_17.entry.js +1 -59
- 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-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";
|
|
@@ -8755,31 +8755,6 @@ const ProcessId = class {
|
|
|
8755
8755
|
}
|
|
8756
8756
|
this.recordingResultCount = 0;
|
|
8757
8757
|
}
|
|
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
8758
|
async componentDidLoad() {
|
|
8784
8759
|
if (TranslationUtils.state.debug)
|
|
8785
8760
|
console.log('process-id | componentDidLoad');
|
|
@@ -8789,10 +8764,6 @@ const ProcessId = class {
|
|
|
8789
8764
|
this.errorReason = 'Invalid';
|
|
8790
8765
|
this.showInvalid = true;
|
|
8791
8766
|
}
|
|
8792
|
-
triggerUploadFailedFlow() {
|
|
8793
|
-
this.errorReason = 'Upload Failed';
|
|
8794
|
-
this.showInvalid = true;
|
|
8795
|
-
}
|
|
8796
8767
|
async disconnectedCallback() {
|
|
8797
8768
|
if (TranslationUtils.state.debug)
|
|
8798
8769
|
console.log('process-id | disconnectedCallback');
|
|
@@ -9151,31 +9122,6 @@ const UserLiveness = class {
|
|
|
9151
9122
|
}
|
|
9152
9123
|
}
|
|
9153
9124
|
}
|
|
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
9125
|
async disconnectedCallback() {
|
|
9180
9126
|
await BaseComponent.finalize(this.currentStep);
|
|
9181
9127
|
}
|
|
@@ -9183,10 +9129,6 @@ const UserLiveness = class {
|
|
|
9183
9129
|
this.errorReason = 'Invalid';
|
|
9184
9130
|
this.showError = true;
|
|
9185
9131
|
}
|
|
9186
|
-
triggerUploadFailedFlow() {
|
|
9187
|
-
this.errorReason = 'Upload Failed';
|
|
9188
|
-
this.showError = true;
|
|
9189
|
-
}
|
|
9190
9132
|
render() {
|
|
9191
9133
|
let howTo = index.h("how-to-info", null);
|
|
9192
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,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
|
}
|
|
@@ -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";
|
|
@@ -8751,31 +8751,6 @@ const ProcessId = class {
|
|
|
8751
8751
|
}
|
|
8752
8752
|
this.recordingResultCount = 0;
|
|
8753
8753
|
}
|
|
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
8754
|
async componentDidLoad() {
|
|
8780
8755
|
if (state.debug)
|
|
8781
8756
|
console.log('process-id | componentDidLoad');
|
|
@@ -8785,10 +8760,6 @@ const ProcessId = class {
|
|
|
8785
8760
|
this.errorReason = 'Invalid';
|
|
8786
8761
|
this.showInvalid = true;
|
|
8787
8762
|
}
|
|
8788
|
-
triggerUploadFailedFlow() {
|
|
8789
|
-
this.errorReason = 'Upload Failed';
|
|
8790
|
-
this.showInvalid = true;
|
|
8791
|
-
}
|
|
8792
8763
|
async disconnectedCallback() {
|
|
8793
8764
|
if (state.debug)
|
|
8794
8765
|
console.log('process-id | disconnectedCallback');
|
|
@@ -9147,31 +9118,6 @@ const UserLiveness = class {
|
|
|
9147
9118
|
}
|
|
9148
9119
|
}
|
|
9149
9120
|
}
|
|
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
9121
|
async disconnectedCallback() {
|
|
9176
9122
|
await BaseComponent.finalize(this.currentStep);
|
|
9177
9123
|
}
|
|
@@ -9179,10 +9125,6 @@ const UserLiveness = class {
|
|
|
9179
9125
|
this.errorReason = 'Invalid';
|
|
9180
9126
|
this.showError = true;
|
|
9181
9127
|
}
|
|
9182
|
-
triggerUploadFailedFlow() {
|
|
9183
|
-
this.errorReason = 'Upload Failed';
|
|
9184
|
-
this.showError = true;
|
|
9185
|
-
}
|
|
9186
9128
|
render() {
|
|
9187
9129
|
let howTo = h("how-to-info", null);
|
|
9188
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
|
});
|