@ekyc_qoobiss/qbs-ect-cmp 3.6.51 → 3.6.53
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/{TranslationUtils-d4dd846b.js → TranslationUtils-80c3bff8.js} +4 -0
- package/dist/cjs/agreement-check_17.cjs.entry.js +30 -23
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/cjs/random-actions.cjs.entry.js +1 -1
- package/dist/collection/components/common/id-capture/id-capture.js +0 -2
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +0 -2
- package/dist/collection/components/flow/process-id/process-id.js +25 -3
- package/dist/collection/components/flow/user-liveness/user-liveness.js +24 -2
- package/dist/collection/components/identification-component/identification-component.js +21 -12
- package/dist/collection/helpers/ApiCall.js +3 -0
- package/dist/collection/helpers/store.js +1 -0
- package/dist/esm/{TranslationUtils-f21a1c3f.js → TranslationUtils-9c2605e3.js} +4 -0
- package/dist/esm/agreement-check_17.entry.js +30 -23
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/esm/random-actions.entry.js +1 -1
- package/dist/qbs-ect-cmp/{p-427ee37f.entry.js → p-3097c460.entry.js} +2 -2
- package/dist/qbs-ect-cmp/{p-7466c800.entry.js → p-892507b7.entry.js} +1 -1
- package/dist/qbs-ect-cmp/p-8a07814a.js +1 -0
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/flow/process-id/process-id.d.ts +1 -0
- package/dist/types/components/flow/user-liveness/user-liveness.d.ts +1 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/types/models/IAddRequest.d.ts +1 -0
- package/dist/types/models/IEctStore.d.ts +1 -0
- package/package.json +1 -1
- package/dist/qbs-ect-cmp/p-5b6b0a80.js +0 -1
|
@@ -287,6 +287,7 @@ const { state, onChange } = createStore({
|
|
|
287
287
|
apiBaseUrl: 'https://apiro.id-kyc.com',
|
|
288
288
|
device: null,
|
|
289
289
|
langIso: 'ro',
|
|
290
|
+
logSteps: false,
|
|
290
291
|
});
|
|
291
292
|
onChange('environment', value => {
|
|
292
293
|
state.debug = value == 'QA';
|
|
@@ -494,6 +495,7 @@ class ApiCall {
|
|
|
494
495
|
}
|
|
495
496
|
state.phoneNumber = jsonResp.phoneNumber;
|
|
496
497
|
state.flowStatus = exports.FlowStatus[jsonResp.state];
|
|
498
|
+
state.logSteps = jsonResp.logSteps;
|
|
497
499
|
return true;
|
|
498
500
|
}
|
|
499
501
|
async UploadFileForRequestB64(requestId, type, file) {
|
|
@@ -540,6 +542,8 @@ class ApiCall {
|
|
|
540
542
|
catch (_a) { }
|
|
541
543
|
}
|
|
542
544
|
async AddStep(step, moment) {
|
|
545
|
+
if (state.logSteps == false)
|
|
546
|
+
return;
|
|
543
547
|
let data = { requestId: state.requestId, redirectId: state.redirectId, step: exports.FlowSteps[step], moment: exports.FlowMoments[moment], timestamp: new Date().toISOString() };
|
|
544
548
|
let result = await this.post(this.urls.AddStep, JSON.stringify(data));
|
|
545
549
|
return result.saved;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-41696e0e.js');
|
|
6
|
-
const TranslationUtils = require('./TranslationUtils-
|
|
6
|
+
const TranslationUtils = require('./TranslationUtils-80c3bff8.js');
|
|
7
7
|
|
|
8
8
|
const agreementCheckCss = "";
|
|
9
9
|
|
|
@@ -5060,8 +5060,6 @@ const IdCapture = class {
|
|
|
5060
5060
|
this.demoVideo.loop = true;
|
|
5061
5061
|
this.showDemo = true;
|
|
5062
5062
|
this.demoVideo.play();
|
|
5063
|
-
await delay(25000);
|
|
5064
|
-
this.eventTimeElapsed.emit();
|
|
5065
5063
|
}
|
|
5066
5064
|
render() {
|
|
5067
5065
|
let cameraStyle;
|
|
@@ -5149,7 +5147,7 @@ function v4(options, buf, offset) {
|
|
|
5149
5147
|
}
|
|
5150
5148
|
|
|
5151
5149
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5152
|
-
const version$1 = "3.6.
|
|
5150
|
+
const version$1 = "3.6.53";
|
|
5153
5151
|
const description = "Person Identification Component";
|
|
5154
5152
|
const main = "./dist/index.cjs.js";
|
|
5155
5153
|
const module$1 = "./dist/index.js";
|
|
@@ -5464,34 +5462,43 @@ const IdentificationComponent = class {
|
|
|
5464
5462
|
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LANDING) {
|
|
5465
5463
|
currentBlock = index.h("landing-validation", null);
|
|
5466
5464
|
}
|
|
5467
|
-
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.MOBILE) {
|
|
5465
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.MOBILE) {
|
|
5468
5466
|
currentBlock = index.h("mobile-redirect", null);
|
|
5469
5467
|
}
|
|
5470
|
-
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.AGREEMENT) {
|
|
5468
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.AGREEMENT) {
|
|
5471
5469
|
currentBlock = index.h("agreement-info", null);
|
|
5472
5470
|
}
|
|
5473
|
-
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.PHONE) {
|
|
5471
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.PHONE) {
|
|
5474
5472
|
currentBlock = index.h("sms-send", null);
|
|
5475
5473
|
}
|
|
5476
|
-
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CODE) {
|
|
5474
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CODE) {
|
|
5477
5475
|
currentBlock = index.h("sms-code-validation", null);
|
|
5478
5476
|
}
|
|
5479
|
-
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CODEERROR) {
|
|
5477
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CODEERROR) {
|
|
5480
5478
|
currentBlock = index.h("sms-code-validation", null);
|
|
5481
5479
|
}
|
|
5482
|
-
if (
|
|
5483
|
-
currentBlock = index.h("process-id",
|
|
5480
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDFRONT) {
|
|
5481
|
+
currentBlock = index.h("process-id", { mode: "front" });
|
|
5482
|
+
}
|
|
5483
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDBACK) {
|
|
5484
|
+
currentBlock = index.h("process-id", { mode: "back" });
|
|
5485
|
+
}
|
|
5486
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDTILT) {
|
|
5487
|
+
currentBlock = index.h("process-id", { mode: "tilt" });
|
|
5488
|
+
}
|
|
5489
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LIVENESS) {
|
|
5490
|
+
currentBlock = index.h("user-liveness", { mode: "selfie" });
|
|
5484
5491
|
}
|
|
5485
|
-
if (
|
|
5486
|
-
currentBlock = index.h("user-liveness",
|
|
5492
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LIVENESSGESTURE) {
|
|
5493
|
+
currentBlock = index.h("user-liveness", { mode: "selfieGesture" });
|
|
5487
5494
|
}
|
|
5488
|
-
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.COMPLETE) {
|
|
5495
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.COMPLETE) {
|
|
5489
5496
|
currentBlock = index.h("end-redirect", null);
|
|
5490
5497
|
}
|
|
5491
|
-
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.ERROREND) {
|
|
5498
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.ERROREND) {
|
|
5492
5499
|
currentBlock = index.h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
|
|
5493
5500
|
}
|
|
5494
|
-
if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CAMERAERROR) {
|
|
5501
|
+
else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CAMERAERROR) {
|
|
5495
5502
|
currentBlock = index.h("camera-error", null);
|
|
5496
5503
|
}
|
|
5497
5504
|
return index.h("div", null, currentBlock);
|
|
@@ -8553,6 +8560,7 @@ const ProcessId = class {
|
|
|
8553
8560
|
index.registerInstance(this, hostRef);
|
|
8554
8561
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
8555
8562
|
this.recordingResultCount = 0;
|
|
8563
|
+
this.mode = undefined;
|
|
8556
8564
|
this.showTimeout = undefined;
|
|
8557
8565
|
this.showInvalid = undefined;
|
|
8558
8566
|
this.flow = undefined;
|
|
@@ -8562,7 +8570,7 @@ const ProcessId = class {
|
|
|
8562
8570
|
this.initFlow();
|
|
8563
8571
|
}
|
|
8564
8572
|
initFlow() {
|
|
8565
|
-
if (
|
|
8573
|
+
if (this.mode == 'front') {
|
|
8566
8574
|
this.currentStep = TranslationUtils.FlowSteps.CiFront;
|
|
8567
8575
|
this.flow = {
|
|
8568
8576
|
capture: {
|
|
@@ -8574,7 +8582,7 @@ const ProcessId = class {
|
|
|
8574
8582
|
howToDone: false,
|
|
8575
8583
|
};
|
|
8576
8584
|
}
|
|
8577
|
-
else if (
|
|
8585
|
+
else if (this.mode == 'back') {
|
|
8578
8586
|
this.currentStep = TranslationUtils.FlowSteps.CiBack;
|
|
8579
8587
|
this.flow = {
|
|
8580
8588
|
capture: {
|
|
@@ -8586,7 +8594,7 @@ const ProcessId = class {
|
|
|
8586
8594
|
howToDone: false,
|
|
8587
8595
|
};
|
|
8588
8596
|
}
|
|
8589
|
-
else if (
|
|
8597
|
+
else if (this.mode == 'tilt') {
|
|
8590
8598
|
this.currentStep = TranslationUtils.FlowSteps.CiTilt;
|
|
8591
8599
|
this.flow = {
|
|
8592
8600
|
capture: {
|
|
@@ -8790,8 +8798,6 @@ const SelfieCapture = class {
|
|
|
8790
8798
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_selfie.mp4';
|
|
8791
8799
|
this.demoVideo.loop = true;
|
|
8792
8800
|
this.demoVideo.play();
|
|
8793
|
-
await delay(10000);
|
|
8794
|
-
this.eventTimeElapsed.emit();
|
|
8795
8801
|
}
|
|
8796
8802
|
render() {
|
|
8797
8803
|
let cameraStyle;
|
|
@@ -8911,6 +8917,7 @@ const UserLiveness = class {
|
|
|
8911
8917
|
this.apiErrorEvent = index.createEvent(this, "apiError", 7);
|
|
8912
8918
|
this.recordingResultCount = 0;
|
|
8913
8919
|
this.recordingRetryCount = 0;
|
|
8920
|
+
this.mode = undefined;
|
|
8914
8921
|
this.showError = undefined;
|
|
8915
8922
|
this.showTimeout = undefined;
|
|
8916
8923
|
this.flow = undefined;
|
|
@@ -8918,7 +8925,7 @@ const UserLiveness = class {
|
|
|
8918
8925
|
}
|
|
8919
8926
|
async componentDidLoad() { }
|
|
8920
8927
|
componentWillLoad() {
|
|
8921
|
-
if (
|
|
8928
|
+
if (this.mode == 'selfie') {
|
|
8922
8929
|
this.currentStep = TranslationUtils.FlowSteps.Selfie;
|
|
8923
8930
|
this.flow = {
|
|
8924
8931
|
capture: {
|
|
@@ -8930,7 +8937,7 @@ const UserLiveness = class {
|
|
|
8930
8937
|
howToDone: false,
|
|
8931
8938
|
};
|
|
8932
8939
|
}
|
|
8933
|
-
else if (
|
|
8940
|
+
else if (this.mode == 'selfieGesture') {
|
|
8934
8941
|
this.currentStep = TranslationUtils.FlowSteps.SelfieTilt;
|
|
8935
8942
|
this.flow = {
|
|
8936
8943
|
capture: {
|
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",{"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"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],"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);
|
|
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],"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",{"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"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],"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);
|
|
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],"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 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-41696e0e.js');
|
|
6
|
-
const TranslationUtils = require('./TranslationUtils-
|
|
6
|
+
const TranslationUtils = require('./TranslationUtils-80c3bff8.js');
|
|
7
7
|
|
|
8
8
|
const randomActionsCss = "";
|
|
9
9
|
|
|
@@ -106,8 +106,6 @@ export class SelfieCapture {
|
|
|
106
106
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_selfie.mp4';
|
|
107
107
|
this.demoVideo.loop = true;
|
|
108
108
|
this.demoVideo.play();
|
|
109
|
-
await delay(10000);
|
|
110
|
-
this.eventTimeElapsed.emit();
|
|
111
109
|
}
|
|
112
110
|
render() {
|
|
113
111
|
let cameraStyle;
|
|
@@ -11,6 +11,7 @@ import { ApiCall } from '../../../helpers/ApiCall';
|
|
|
11
11
|
export class ProcessId {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.recordingResultCount = 0;
|
|
14
|
+
this.mode = undefined;
|
|
14
15
|
this.showTimeout = undefined;
|
|
15
16
|
this.showInvalid = undefined;
|
|
16
17
|
this.flow = undefined;
|
|
@@ -20,7 +21,7 @@ export class ProcessId {
|
|
|
20
21
|
this.initFlow();
|
|
21
22
|
}
|
|
22
23
|
initFlow() {
|
|
23
|
-
if (
|
|
24
|
+
if (this.mode == 'front') {
|
|
24
25
|
this.currentStep = FlowSteps.CiFront;
|
|
25
26
|
this.flow = {
|
|
26
27
|
capture: {
|
|
@@ -32,7 +33,7 @@ export class ProcessId {
|
|
|
32
33
|
howToDone: false,
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
|
-
else if (
|
|
36
|
+
else if (this.mode == 'back') {
|
|
36
37
|
this.currentStep = FlowSteps.CiBack;
|
|
37
38
|
this.flow = {
|
|
38
39
|
capture: {
|
|
@@ -44,7 +45,7 @@ export class ProcessId {
|
|
|
44
45
|
howToDone: false,
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
else if (
|
|
48
|
+
else if (this.mode == 'tilt') {
|
|
48
49
|
this.currentStep = FlowSteps.CiTilt;
|
|
49
50
|
this.flow = {
|
|
50
51
|
capture: {
|
|
@@ -155,6 +156,27 @@ export class ProcessId {
|
|
|
155
156
|
"$": ["process-id.css"]
|
|
156
157
|
};
|
|
157
158
|
}
|
|
159
|
+
static get properties() {
|
|
160
|
+
return {
|
|
161
|
+
"mode": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"mutable": false,
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "string",
|
|
166
|
+
"resolved": "string",
|
|
167
|
+
"references": {}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": false,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": ""
|
|
174
|
+
},
|
|
175
|
+
"attribute": "mode",
|
|
176
|
+
"reflect": false
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
}
|
|
158
180
|
static get states() {
|
|
159
181
|
return {
|
|
160
182
|
"showTimeout": {},
|
|
@@ -11,6 +11,7 @@ export class UserLiveness {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
this.recordingResultCount = 0;
|
|
13
13
|
this.recordingRetryCount = 0;
|
|
14
|
+
this.mode = undefined;
|
|
14
15
|
this.showError = undefined;
|
|
15
16
|
this.showTimeout = undefined;
|
|
16
17
|
this.flow = undefined;
|
|
@@ -18,7 +19,7 @@ export class UserLiveness {
|
|
|
18
19
|
}
|
|
19
20
|
async componentDidLoad() { }
|
|
20
21
|
componentWillLoad() {
|
|
21
|
-
if (
|
|
22
|
+
if (this.mode == 'selfie') {
|
|
22
23
|
this.currentStep = FlowSteps.Selfie;
|
|
23
24
|
this.flow = {
|
|
24
25
|
capture: {
|
|
@@ -30,7 +31,7 @@ export class UserLiveness {
|
|
|
30
31
|
howToDone: false,
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
|
-
else if (
|
|
34
|
+
else if (this.mode == 'selfieGesture') {
|
|
34
35
|
this.currentStep = FlowSteps.SelfieTilt;
|
|
35
36
|
this.flow = {
|
|
36
37
|
capture: {
|
|
@@ -140,6 +141,27 @@ export class UserLiveness {
|
|
|
140
141
|
"$": ["user-liveness.css"]
|
|
141
142
|
};
|
|
142
143
|
}
|
|
144
|
+
static get properties() {
|
|
145
|
+
return {
|
|
146
|
+
"mode": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"mutable": false,
|
|
149
|
+
"complexType": {
|
|
150
|
+
"original": "string",
|
|
151
|
+
"resolved": "string",
|
|
152
|
+
"references": {}
|
|
153
|
+
},
|
|
154
|
+
"required": false,
|
|
155
|
+
"optional": false,
|
|
156
|
+
"docs": {
|
|
157
|
+
"tags": [],
|
|
158
|
+
"text": ""
|
|
159
|
+
},
|
|
160
|
+
"attribute": "mode",
|
|
161
|
+
"reflect": false
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
143
165
|
static get states() {
|
|
144
166
|
return {
|
|
145
167
|
"showError": {},
|
|
@@ -174,34 +174,43 @@ export class IdentificationComponent {
|
|
|
174
174
|
if (store.flowStatus == FlowStatus.LANDING) {
|
|
175
175
|
currentBlock = h("landing-validation", null);
|
|
176
176
|
}
|
|
177
|
-
if (store.flowStatus == FlowStatus.MOBILE) {
|
|
177
|
+
else if (store.flowStatus == FlowStatus.MOBILE) {
|
|
178
178
|
currentBlock = h("mobile-redirect", null);
|
|
179
179
|
}
|
|
180
|
-
if (store.flowStatus == FlowStatus.AGREEMENT) {
|
|
180
|
+
else if (store.flowStatus == FlowStatus.AGREEMENT) {
|
|
181
181
|
currentBlock = h("agreement-info", null);
|
|
182
182
|
}
|
|
183
|
-
if (store.flowStatus == FlowStatus.PHONE) {
|
|
183
|
+
else if (store.flowStatus == FlowStatus.PHONE) {
|
|
184
184
|
currentBlock = h("sms-send", null);
|
|
185
185
|
}
|
|
186
|
-
if (store.flowStatus == FlowStatus.CODE) {
|
|
186
|
+
else if (store.flowStatus == FlowStatus.CODE) {
|
|
187
187
|
currentBlock = h("sms-code-validation", null);
|
|
188
188
|
}
|
|
189
|
-
if (store.flowStatus == FlowStatus.CODEERROR) {
|
|
189
|
+
else if (store.flowStatus == FlowStatus.CODEERROR) {
|
|
190
190
|
currentBlock = h("sms-code-validation", null);
|
|
191
191
|
}
|
|
192
|
-
if (
|
|
193
|
-
currentBlock = h("process-id",
|
|
192
|
+
else if (store.flowStatus == FlowStatus.IDFRONT) {
|
|
193
|
+
currentBlock = h("process-id", { mode: "front" });
|
|
194
194
|
}
|
|
195
|
-
if (
|
|
196
|
-
currentBlock = h("
|
|
195
|
+
else if (store.flowStatus == FlowStatus.IDBACK) {
|
|
196
|
+
currentBlock = h("process-id", { mode: "back" });
|
|
197
197
|
}
|
|
198
|
-
if (store.flowStatus == FlowStatus.
|
|
198
|
+
else if (store.flowStatus == FlowStatus.IDTILT) {
|
|
199
|
+
currentBlock = h("process-id", { mode: "tilt" });
|
|
200
|
+
}
|
|
201
|
+
else if (store.flowStatus == FlowStatus.LIVENESS) {
|
|
202
|
+
currentBlock = h("user-liveness", { mode: "selfie" });
|
|
203
|
+
}
|
|
204
|
+
else if (store.flowStatus == FlowStatus.LIVENESSGESTURE) {
|
|
205
|
+
currentBlock = h("user-liveness", { mode: "selfieGesture" });
|
|
206
|
+
}
|
|
207
|
+
else if (store.flowStatus == FlowStatus.COMPLETE) {
|
|
199
208
|
currentBlock = h("end-redirect", null);
|
|
200
209
|
}
|
|
201
|
-
if (store.flowStatus == FlowStatus.ERROREND) {
|
|
210
|
+
else if (store.flowStatus == FlowStatus.ERROREND) {
|
|
202
211
|
currentBlock = h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
|
|
203
212
|
}
|
|
204
|
-
if (store.flowStatus == FlowStatus.CAMERAERROR) {
|
|
213
|
+
else if (store.flowStatus == FlowStatus.CAMERAERROR) {
|
|
205
214
|
currentBlock = h("camera-error", null);
|
|
206
215
|
}
|
|
207
216
|
return h("div", null, currentBlock);
|
|
@@ -164,6 +164,7 @@ export class ApiCall {
|
|
|
164
164
|
}
|
|
165
165
|
store.phoneNumber = jsonResp.phoneNumber;
|
|
166
166
|
store.flowStatus = FlowStatus[jsonResp.state];
|
|
167
|
+
store.logSteps = jsonResp.logSteps;
|
|
167
168
|
return true;
|
|
168
169
|
}
|
|
169
170
|
async UploadFileForRequestB64(requestId, type, file) {
|
|
@@ -210,6 +211,8 @@ export class ApiCall {
|
|
|
210
211
|
catch (_a) { }
|
|
211
212
|
}
|
|
212
213
|
async AddStep(step, moment) {
|
|
214
|
+
if (store.logSteps == false)
|
|
215
|
+
return;
|
|
213
216
|
let data = { requestId: store.requestId, redirectId: store.redirectId, step: FlowSteps[step], moment: FlowMoments[moment], timestamp: new Date().toISOString() };
|
|
214
217
|
let result = await this.post(this.urls.AddStep, JSON.stringify(data));
|
|
215
218
|
return result.saved;
|
|
@@ -285,6 +285,7 @@ const { state, onChange } = createStore({
|
|
|
285
285
|
apiBaseUrl: 'https://apiro.id-kyc.com',
|
|
286
286
|
device: null,
|
|
287
287
|
langIso: 'ro',
|
|
288
|
+
logSteps: false,
|
|
288
289
|
});
|
|
289
290
|
onChange('environment', value => {
|
|
290
291
|
state.debug = value == 'QA';
|
|
@@ -492,6 +493,7 @@ class ApiCall {
|
|
|
492
493
|
}
|
|
493
494
|
state.phoneNumber = jsonResp.phoneNumber;
|
|
494
495
|
state.flowStatus = FlowStatus[jsonResp.state];
|
|
496
|
+
state.logSteps = jsonResp.logSteps;
|
|
495
497
|
return true;
|
|
496
498
|
}
|
|
497
499
|
async UploadFileForRequestB64(requestId, type, file) {
|
|
@@ -538,6 +540,8 @@ class ApiCall {
|
|
|
538
540
|
catch (_a) { }
|
|
539
541
|
}
|
|
540
542
|
async AddStep(step, moment) {
|
|
543
|
+
if (state.logSteps == false)
|
|
544
|
+
return;
|
|
541
545
|
let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step], moment: FlowMoments[moment], timestamp: new Date().toISOString() };
|
|
542
546
|
let result = await this.post(this.urls.AddStep, JSON.stringify(data));
|
|
543
547
|
return result.saved;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-cf54a432.js';
|
|
2
|
-
import { A as ApiCall, T as Translations, F as FlowMoments, a as FlowSteps, s as state, S as SessionKeys, b as FlowStatus, I as IdCaptureValues, O as OrderStatuses, c as SelfieCaptureValues } from './TranslationUtils-
|
|
2
|
+
import { A as ApiCall, T as Translations, F as FlowMoments, a as FlowSteps, s as state, S as SessionKeys, b as FlowStatus, I as IdCaptureValues, O as OrderStatuses, c as SelfieCaptureValues } from './TranslationUtils-9c2605e3.js';
|
|
3
3
|
|
|
4
4
|
const agreementCheckCss = "";
|
|
5
5
|
|
|
@@ -5056,8 +5056,6 @@ const IdCapture = class {
|
|
|
5056
5056
|
this.demoVideo.loop = true;
|
|
5057
5057
|
this.showDemo = true;
|
|
5058
5058
|
this.demoVideo.play();
|
|
5059
|
-
await delay(25000);
|
|
5060
|
-
this.eventTimeElapsed.emit();
|
|
5061
5059
|
}
|
|
5062
5060
|
render() {
|
|
5063
5061
|
let cameraStyle;
|
|
@@ -5145,7 +5143,7 @@ function v4(options, buf, offset) {
|
|
|
5145
5143
|
}
|
|
5146
5144
|
|
|
5147
5145
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5148
|
-
const version$1 = "3.6.
|
|
5146
|
+
const version$1 = "3.6.53";
|
|
5149
5147
|
const description = "Person Identification Component";
|
|
5150
5148
|
const main = "./dist/index.cjs.js";
|
|
5151
5149
|
const module = "./dist/index.js";
|
|
@@ -5460,34 +5458,43 @@ const IdentificationComponent = class {
|
|
|
5460
5458
|
if (state.flowStatus == FlowStatus.LANDING) {
|
|
5461
5459
|
currentBlock = h("landing-validation", null);
|
|
5462
5460
|
}
|
|
5463
|
-
if (state.flowStatus == FlowStatus.MOBILE) {
|
|
5461
|
+
else if (state.flowStatus == FlowStatus.MOBILE) {
|
|
5464
5462
|
currentBlock = h("mobile-redirect", null);
|
|
5465
5463
|
}
|
|
5466
|
-
if (state.flowStatus == FlowStatus.AGREEMENT) {
|
|
5464
|
+
else if (state.flowStatus == FlowStatus.AGREEMENT) {
|
|
5467
5465
|
currentBlock = h("agreement-info", null);
|
|
5468
5466
|
}
|
|
5469
|
-
if (state.flowStatus == FlowStatus.PHONE) {
|
|
5467
|
+
else if (state.flowStatus == FlowStatus.PHONE) {
|
|
5470
5468
|
currentBlock = h("sms-send", null);
|
|
5471
5469
|
}
|
|
5472
|
-
if (state.flowStatus == FlowStatus.CODE) {
|
|
5470
|
+
else if (state.flowStatus == FlowStatus.CODE) {
|
|
5473
5471
|
currentBlock = h("sms-code-validation", null);
|
|
5474
5472
|
}
|
|
5475
|
-
if (state.flowStatus == FlowStatus.CODEERROR) {
|
|
5473
|
+
else if (state.flowStatus == FlowStatus.CODEERROR) {
|
|
5476
5474
|
currentBlock = h("sms-code-validation", null);
|
|
5477
5475
|
}
|
|
5478
|
-
if (
|
|
5479
|
-
currentBlock = h("process-id",
|
|
5476
|
+
else if (state.flowStatus == FlowStatus.IDFRONT) {
|
|
5477
|
+
currentBlock = h("process-id", { mode: "front" });
|
|
5478
|
+
}
|
|
5479
|
+
else if (state.flowStatus == FlowStatus.IDBACK) {
|
|
5480
|
+
currentBlock = h("process-id", { mode: "back" });
|
|
5481
|
+
}
|
|
5482
|
+
else if (state.flowStatus == FlowStatus.IDTILT) {
|
|
5483
|
+
currentBlock = h("process-id", { mode: "tilt" });
|
|
5484
|
+
}
|
|
5485
|
+
else if (state.flowStatus == FlowStatus.LIVENESS) {
|
|
5486
|
+
currentBlock = h("user-liveness", { mode: "selfie" });
|
|
5480
5487
|
}
|
|
5481
|
-
if (
|
|
5482
|
-
currentBlock = h("user-liveness",
|
|
5488
|
+
else if (state.flowStatus == FlowStatus.LIVENESSGESTURE) {
|
|
5489
|
+
currentBlock = h("user-liveness", { mode: "selfieGesture" });
|
|
5483
5490
|
}
|
|
5484
|
-
if (state.flowStatus == FlowStatus.COMPLETE) {
|
|
5491
|
+
else if (state.flowStatus == FlowStatus.COMPLETE) {
|
|
5485
5492
|
currentBlock = h("end-redirect", null);
|
|
5486
5493
|
}
|
|
5487
|
-
if (state.flowStatus == FlowStatus.ERROREND) {
|
|
5494
|
+
else if (state.flowStatus == FlowStatus.ERROREND) {
|
|
5488
5495
|
currentBlock = h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
|
|
5489
5496
|
}
|
|
5490
|
-
if (state.flowStatus == FlowStatus.CAMERAERROR) {
|
|
5497
|
+
else if (state.flowStatus == FlowStatus.CAMERAERROR) {
|
|
5491
5498
|
currentBlock = h("camera-error", null);
|
|
5492
5499
|
}
|
|
5493
5500
|
return h("div", null, currentBlock);
|
|
@@ -8549,6 +8556,7 @@ const ProcessId = class {
|
|
|
8549
8556
|
registerInstance(this, hostRef);
|
|
8550
8557
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
8551
8558
|
this.recordingResultCount = 0;
|
|
8559
|
+
this.mode = undefined;
|
|
8552
8560
|
this.showTimeout = undefined;
|
|
8553
8561
|
this.showInvalid = undefined;
|
|
8554
8562
|
this.flow = undefined;
|
|
@@ -8558,7 +8566,7 @@ const ProcessId = class {
|
|
|
8558
8566
|
this.initFlow();
|
|
8559
8567
|
}
|
|
8560
8568
|
initFlow() {
|
|
8561
|
-
if (
|
|
8569
|
+
if (this.mode == 'front') {
|
|
8562
8570
|
this.currentStep = FlowSteps.CiFront;
|
|
8563
8571
|
this.flow = {
|
|
8564
8572
|
capture: {
|
|
@@ -8570,7 +8578,7 @@ const ProcessId = class {
|
|
|
8570
8578
|
howToDone: false,
|
|
8571
8579
|
};
|
|
8572
8580
|
}
|
|
8573
|
-
else if (
|
|
8581
|
+
else if (this.mode == 'back') {
|
|
8574
8582
|
this.currentStep = FlowSteps.CiBack;
|
|
8575
8583
|
this.flow = {
|
|
8576
8584
|
capture: {
|
|
@@ -8582,7 +8590,7 @@ const ProcessId = class {
|
|
|
8582
8590
|
howToDone: false,
|
|
8583
8591
|
};
|
|
8584
8592
|
}
|
|
8585
|
-
else if (
|
|
8593
|
+
else if (this.mode == 'tilt') {
|
|
8586
8594
|
this.currentStep = FlowSteps.CiTilt;
|
|
8587
8595
|
this.flow = {
|
|
8588
8596
|
capture: {
|
|
@@ -8786,8 +8794,6 @@ const SelfieCapture = class {
|
|
|
8786
8794
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_selfie.mp4';
|
|
8787
8795
|
this.demoVideo.loop = true;
|
|
8788
8796
|
this.demoVideo.play();
|
|
8789
|
-
await delay(10000);
|
|
8790
|
-
this.eventTimeElapsed.emit();
|
|
8791
8797
|
}
|
|
8792
8798
|
render() {
|
|
8793
8799
|
let cameraStyle;
|
|
@@ -8907,6 +8913,7 @@ const UserLiveness = class {
|
|
|
8907
8913
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
8908
8914
|
this.recordingResultCount = 0;
|
|
8909
8915
|
this.recordingRetryCount = 0;
|
|
8916
|
+
this.mode = undefined;
|
|
8910
8917
|
this.showError = undefined;
|
|
8911
8918
|
this.showTimeout = undefined;
|
|
8912
8919
|
this.flow = undefined;
|
|
@@ -8914,7 +8921,7 @@ const UserLiveness = class {
|
|
|
8914
8921
|
}
|
|
8915
8922
|
async componentDidLoad() { }
|
|
8916
8923
|
componentWillLoad() {
|
|
8917
|
-
if (
|
|
8924
|
+
if (this.mode == 'selfie') {
|
|
8918
8925
|
this.currentStep = FlowSteps.Selfie;
|
|
8919
8926
|
this.flow = {
|
|
8920
8927
|
capture: {
|
|
@@ -8926,7 +8933,7 @@ const UserLiveness = class {
|
|
|
8926
8933
|
howToDone: false,
|
|
8927
8934
|
};
|
|
8928
8935
|
}
|
|
8929
|
-
else if (
|
|
8936
|
+
else if (this.mode == 'selfieGesture') {
|
|
8930
8937
|
this.currentStep = FlowSteps.SelfieTilt;
|
|
8931
8938
|
this.flow = {
|
|
8932
8939
|
capture: {
|