@ekyc_qoobiss/qbs-ect-cmp 3.6.1 → 3.6.3
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_18.cjs.entry.js +22 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/collection/components/common/capture-error/capture-error.js +19 -1
- package/dist/collection/components/flow/id-single-side/id-single-side.js +12 -2
- package/dist/collection/helpers/Cameras.js +3 -2
- package/dist/collection/helpers/Stream.js +4 -8
- package/dist/esm/agreement-check_18.entry.js +22 -14
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/qbs-ect-cmp/{p-43fe6165.entry.js → p-11c604f3.entry.js} +24 -24
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/common/capture-error/capture-error.d.ts +1 -0
- package/dist/types/components/flow/id-single-side/id-single-side.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/helpers/Stream.d.ts +0 -1
- package/package.json +1 -1
|
@@ -5322,17 +5322,13 @@ class Stream {
|
|
|
5322
5322
|
this.recordedChunks.push(event.data);
|
|
5323
5323
|
};
|
|
5324
5324
|
this.mediaRecorder.onstop = _e => {
|
|
5325
|
-
|
|
5326
|
-
|
|
5325
|
+
var blob = new Blob(this.recordedChunks, {
|
|
5326
|
+
type: options.mimeType.split(';')[0],
|
|
5327
|
+
});
|
|
5328
|
+
this.callbackRecordingReady(blob);
|
|
5327
5329
|
};
|
|
5328
5330
|
this.mediaRecorder.start(); // Start recording, and dump data every second
|
|
5329
5331
|
}
|
|
5330
|
-
async saveVideoRecording(videoTosave, mimeType) {
|
|
5331
|
-
var blob = new Blob(videoTosave, {
|
|
5332
|
-
type: mimeType.split(';')[0],
|
|
5333
|
-
});
|
|
5334
|
-
this.callbackRecordingReady(blob);
|
|
5335
|
-
}
|
|
5336
5332
|
updateCanvasSize(canvas) {
|
|
5337
5333
|
this.videoSize = { width: this.videoElement.videoWidth, height: this.videoElement.videoHeight };
|
|
5338
5334
|
canvas.width = this.videoSize.width;
|
|
@@ -5568,6 +5564,7 @@ const CaptureError = class {
|
|
|
5568
5564
|
index.registerInstance(this, hostRef);
|
|
5569
5565
|
this.eventCaptureErrorDone = index.createEvent(this, "captureErrorDone", 7);
|
|
5570
5566
|
this.type = undefined;
|
|
5567
|
+
this.message = undefined;
|
|
5571
5568
|
this.buttonEnabled = undefined;
|
|
5572
5569
|
this.buttonText = undefined;
|
|
5573
5570
|
}
|
|
@@ -5599,7 +5596,7 @@ const CaptureError = class {
|
|
|
5599
5596
|
this.eventCaptureErrorDone.emit();
|
|
5600
5597
|
}
|
|
5601
5598
|
render() {
|
|
5602
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("h1", { class: "color-red" }, this.titleR1), index.h("h1", { class: "color-red" }, this.titleR2), index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR1), index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR2)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
|
|
5599
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("h1", { class: "color-red" }, this.titleR1), index.h("h1", { class: "color-red" }, this.titleR2), index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR1), index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR2), index.h("p", { class: "color-red font-weight-bold font-size-18 mt-5" }, this.message)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
|
|
5603
5600
|
}
|
|
5604
5601
|
};
|
|
5605
5602
|
CaptureError.style = captureErrorCss;
|
|
@@ -5767,7 +5764,7 @@ class Cameras {
|
|
|
5767
5764
|
}
|
|
5768
5765
|
else {
|
|
5769
5766
|
mediaTrack.facingMode = 'environment';
|
|
5770
|
-
mediaTrack.width = { ideal:
|
|
5767
|
+
mediaTrack.width = { ideal: 1280 };
|
|
5771
5768
|
mediaTrack.aspectRatio = 1;
|
|
5772
5769
|
}
|
|
5773
5770
|
}
|
|
@@ -5783,14 +5780,15 @@ class Cameras {
|
|
|
5783
5780
|
mediaTrack.width = 1280;
|
|
5784
5781
|
}
|
|
5785
5782
|
else {
|
|
5786
|
-
mediaTrack.facingMode = 'user';
|
|
5787
5783
|
if (portrait) {
|
|
5784
|
+
mediaTrack.facingMode = 'user';
|
|
5788
5785
|
mediaTrack.width = 1280;
|
|
5789
5786
|
mediaTrack.height = 720;
|
|
5790
5787
|
}
|
|
5791
5788
|
else {
|
|
5792
5789
|
mediaTrack.facingMode = 'environment';
|
|
5793
5790
|
mediaTrack.width = 1280;
|
|
5791
|
+
mediaTrack.height = 720;
|
|
5794
5792
|
}
|
|
5795
5793
|
}
|
|
5796
5794
|
constraints.video = mediaTrack;
|
|
@@ -6285,17 +6283,22 @@ const IdSingleSide = class {
|
|
|
6285
6283
|
this.idFlow.photoFile = null;
|
|
6286
6284
|
this.idFlow.recordingFile = null;
|
|
6287
6285
|
this.showTimeout = false;
|
|
6286
|
+
this.errorMessage = '';
|
|
6288
6287
|
}
|
|
6289
6288
|
howToDone() {
|
|
6290
6289
|
this.showHowTo = false;
|
|
6291
6290
|
}
|
|
6292
6291
|
timeElapsed() {
|
|
6293
6292
|
this.showTimeout = true;
|
|
6293
|
+
this.errorMessage = 'timeout';
|
|
6294
6294
|
}
|
|
6295
6295
|
async captureIdImage(event) {
|
|
6296
|
+
console.log('photoIdCapture');
|
|
6297
|
+
console.log(event);
|
|
6296
6298
|
let idPhoto = event.detail;
|
|
6297
6299
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
6298
6300
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
6301
|
+
this.errorMessage = 'Empty id photo';
|
|
6299
6302
|
this.showTimeout = true;
|
|
6300
6303
|
return;
|
|
6301
6304
|
}
|
|
@@ -6312,9 +6315,12 @@ const IdSingleSide = class {
|
|
|
6312
6315
|
await this.endFlow();
|
|
6313
6316
|
}
|
|
6314
6317
|
async capturedIdRecording(event) {
|
|
6318
|
+
console.log('recordingIdCapture');
|
|
6319
|
+
console.log(event);
|
|
6315
6320
|
let idRecording = event.detail;
|
|
6316
6321
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
6317
|
-
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
6322
|
+
await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, getLogMessage());
|
|
6323
|
+
this.errorMessage = 'Empty id recording';
|
|
6318
6324
|
this.showTimeout = true;
|
|
6319
6325
|
return;
|
|
6320
6326
|
}
|
|
@@ -6344,6 +6350,7 @@ const IdSingleSide = class {
|
|
|
6344
6350
|
this.idFlow.photoFile = null;
|
|
6345
6351
|
this.idFlow.recordingFile = null;
|
|
6346
6352
|
this.switchCamera();
|
|
6353
|
+
this.errorMessage = 'Upload photo not successful';
|
|
6347
6354
|
this.showTimeout = true;
|
|
6348
6355
|
}
|
|
6349
6356
|
}
|
|
@@ -6358,6 +6365,7 @@ const IdSingleSide = class {
|
|
|
6358
6365
|
else {
|
|
6359
6366
|
this.idFlow.photoFile = null;
|
|
6360
6367
|
this.idFlow.recordingFile = null;
|
|
6368
|
+
this.errorMessage = 'Upload recording not successful';
|
|
6361
6369
|
this.showTimeout = true;
|
|
6362
6370
|
}
|
|
6363
6371
|
}
|
|
@@ -6387,7 +6395,7 @@ const IdSingleSide = class {
|
|
|
6387
6395
|
}
|
|
6388
6396
|
}
|
|
6389
6397
|
render() {
|
|
6390
|
-
let error = index.h("capture-error", { type: "ID" });
|
|
6398
|
+
let error = index.h("capture-error", { type: "ID", message: this.errorMessage });
|
|
6391
6399
|
let capture = index.h("id-capture", { id: "idFront" });
|
|
6392
6400
|
let howToInfo = index.h("how-to-info", { idSide: "front" });
|
|
6393
6401
|
return this.showHowTo ? howToInfo : this.showTimeout ? error : capture;
|
|
@@ -6461,7 +6469,7 @@ function v4(options, buf, offset) {
|
|
|
6461
6469
|
}
|
|
6462
6470
|
|
|
6463
6471
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6464
|
-
const version$1 = "3.6.
|
|
6472
|
+
const version$1 = "3.6.3";
|
|
6465
6473
|
const description = "Person Identification Component";
|
|
6466
6474
|
const main = "./dist/index.cjs.js";
|
|
6467
6475
|
const module$1 = "./dist/index.js";
|
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"]]],["agreement-check_18.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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"]]],["agreement-check_18.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"message":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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"]]],["agreement-check_18.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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"]]],["agreement-check_18.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"message":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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;
|
|
@@ -4,6 +4,7 @@ import { delay } from '../../../utils/utils';
|
|
|
4
4
|
export class CaptureError {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.type = undefined;
|
|
7
|
+
this.message = undefined;
|
|
7
8
|
this.buttonEnabled = undefined;
|
|
8
9
|
this.buttonText = undefined;
|
|
9
10
|
}
|
|
@@ -35,7 +36,7 @@ export class CaptureError {
|
|
|
35
36
|
this.eventCaptureErrorDone.emit();
|
|
36
37
|
}
|
|
37
38
|
render() {
|
|
38
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.titleR1), h("h1", { class: "color-red" }, this.titleR2), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR1), h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR2)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
|
|
39
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.titleR1), h("h1", { class: "color-red" }, this.titleR2), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR1), h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR2), h("p", { class: "color-red font-weight-bold font-size-18 mt-5" }, this.message)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
|
|
39
40
|
}
|
|
40
41
|
static get is() { return "capture-error"; }
|
|
41
42
|
static get originalStyleUrls() {
|
|
@@ -66,6 +67,23 @@ export class CaptureError {
|
|
|
66
67
|
},
|
|
67
68
|
"attribute": "type",
|
|
68
69
|
"reflect": false
|
|
70
|
+
},
|
|
71
|
+
"message": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "string",
|
|
76
|
+
"resolved": "string",
|
|
77
|
+
"references": {}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": false,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [],
|
|
83
|
+
"text": ""
|
|
84
|
+
},
|
|
85
|
+
"attribute": "message",
|
|
86
|
+
"reflect": false
|
|
69
87
|
}
|
|
70
88
|
};
|
|
71
89
|
}
|
|
@@ -26,17 +26,22 @@ export class IdSingleSide {
|
|
|
26
26
|
this.idFlow.photoFile = null;
|
|
27
27
|
this.idFlow.recordingFile = null;
|
|
28
28
|
this.showTimeout = false;
|
|
29
|
+
this.errorMessage = '';
|
|
29
30
|
}
|
|
30
31
|
howToDone() {
|
|
31
32
|
this.showHowTo = false;
|
|
32
33
|
}
|
|
33
34
|
timeElapsed() {
|
|
34
35
|
this.showTimeout = true;
|
|
36
|
+
this.errorMessage = 'timeout';
|
|
35
37
|
}
|
|
36
38
|
async captureIdImage(event) {
|
|
39
|
+
console.log('photoIdCapture');
|
|
40
|
+
console.log(event);
|
|
37
41
|
let idPhoto = event.detail;
|
|
38
42
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
39
43
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
44
|
+
this.errorMessage = 'Empty id photo';
|
|
40
45
|
this.showTimeout = true;
|
|
41
46
|
return;
|
|
42
47
|
}
|
|
@@ -53,9 +58,12 @@ export class IdSingleSide {
|
|
|
53
58
|
await this.endFlow();
|
|
54
59
|
}
|
|
55
60
|
async capturedIdRecording(event) {
|
|
61
|
+
console.log('recordingIdCapture');
|
|
62
|
+
console.log(event);
|
|
56
63
|
let idRecording = event.detail;
|
|
57
64
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
58
|
-
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
65
|
+
await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, getLogMessage());
|
|
66
|
+
this.errorMessage = 'Empty id recording';
|
|
59
67
|
this.showTimeout = true;
|
|
60
68
|
return;
|
|
61
69
|
}
|
|
@@ -85,6 +93,7 @@ export class IdSingleSide {
|
|
|
85
93
|
this.idFlow.photoFile = null;
|
|
86
94
|
this.idFlow.recordingFile = null;
|
|
87
95
|
this.switchCamera();
|
|
96
|
+
this.errorMessage = 'Upload photo not successful';
|
|
88
97
|
this.showTimeout = true;
|
|
89
98
|
}
|
|
90
99
|
}
|
|
@@ -99,6 +108,7 @@ export class IdSingleSide {
|
|
|
99
108
|
else {
|
|
100
109
|
this.idFlow.photoFile = null;
|
|
101
110
|
this.idFlow.recordingFile = null;
|
|
111
|
+
this.errorMessage = 'Upload recording not successful';
|
|
102
112
|
this.showTimeout = true;
|
|
103
113
|
}
|
|
104
114
|
}
|
|
@@ -128,7 +138,7 @@ export class IdSingleSide {
|
|
|
128
138
|
}
|
|
129
139
|
}
|
|
130
140
|
render() {
|
|
131
|
-
let error = h("capture-error", { type: "ID" });
|
|
141
|
+
let error = h("capture-error", { type: "ID", message: this.errorMessage });
|
|
132
142
|
let capture = h("id-capture", { id: "idFront" });
|
|
133
143
|
let howToInfo = h("how-to-info", { idSide: "front" });
|
|
134
144
|
return this.showHowTo ? howToInfo : this.showTimeout ? error : capture;
|
|
@@ -87,7 +87,7 @@ export class Cameras {
|
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
89
89
|
mediaTrack.facingMode = 'environment';
|
|
90
|
-
mediaTrack.width = { ideal:
|
|
90
|
+
mediaTrack.width = { ideal: 1280 };
|
|
91
91
|
mediaTrack.aspectRatio = 1;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -103,14 +103,15 @@ export class Cameras {
|
|
|
103
103
|
mediaTrack.width = 1280;
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
106
|
-
mediaTrack.facingMode = 'user';
|
|
107
106
|
if (portrait) {
|
|
107
|
+
mediaTrack.facingMode = 'user';
|
|
108
108
|
mediaTrack.width = 1280;
|
|
109
109
|
mediaTrack.height = 720;
|
|
110
110
|
}
|
|
111
111
|
else {
|
|
112
112
|
mediaTrack.facingMode = 'environment';
|
|
113
113
|
mediaTrack.width = 1280;
|
|
114
|
+
mediaTrack.height = 720;
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
constraints.video = mediaTrack;
|
|
@@ -132,17 +132,13 @@ export class Stream {
|
|
|
132
132
|
this.recordedChunks.push(event.data);
|
|
133
133
|
};
|
|
134
134
|
this.mediaRecorder.onstop = _e => {
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
var blob = new Blob(this.recordedChunks, {
|
|
136
|
+
type: options.mimeType.split(';')[0],
|
|
137
|
+
});
|
|
138
|
+
this.callbackRecordingReady(blob);
|
|
137
139
|
};
|
|
138
140
|
this.mediaRecorder.start(); // Start recording, and dump data every second
|
|
139
141
|
}
|
|
140
|
-
async saveVideoRecording(videoTosave, mimeType) {
|
|
141
|
-
var blob = new Blob(videoTosave, {
|
|
142
|
-
type: mimeType.split(';')[0],
|
|
143
|
-
});
|
|
144
|
-
this.callbackRecordingReady(blob);
|
|
145
|
-
}
|
|
146
142
|
updateCanvasSize(canvas) {
|
|
147
143
|
this.videoSize = { width: this.videoElement.videoWidth, height: this.videoElement.videoHeight };
|
|
148
144
|
canvas.width = this.videoSize.width;
|
|
@@ -5318,17 +5318,13 @@ class Stream {
|
|
|
5318
5318
|
this.recordedChunks.push(event.data);
|
|
5319
5319
|
};
|
|
5320
5320
|
this.mediaRecorder.onstop = _e => {
|
|
5321
|
-
|
|
5322
|
-
|
|
5321
|
+
var blob = new Blob(this.recordedChunks, {
|
|
5322
|
+
type: options.mimeType.split(';')[0],
|
|
5323
|
+
});
|
|
5324
|
+
this.callbackRecordingReady(blob);
|
|
5323
5325
|
};
|
|
5324
5326
|
this.mediaRecorder.start(); // Start recording, and dump data every second
|
|
5325
5327
|
}
|
|
5326
|
-
async saveVideoRecording(videoTosave, mimeType) {
|
|
5327
|
-
var blob = new Blob(videoTosave, {
|
|
5328
|
-
type: mimeType.split(';')[0],
|
|
5329
|
-
});
|
|
5330
|
-
this.callbackRecordingReady(blob);
|
|
5331
|
-
}
|
|
5332
5328
|
updateCanvasSize(canvas) {
|
|
5333
5329
|
this.videoSize = { width: this.videoElement.videoWidth, height: this.videoElement.videoHeight };
|
|
5334
5330
|
canvas.width = this.videoSize.width;
|
|
@@ -5564,6 +5560,7 @@ const CaptureError = class {
|
|
|
5564
5560
|
registerInstance(this, hostRef);
|
|
5565
5561
|
this.eventCaptureErrorDone = createEvent(this, "captureErrorDone", 7);
|
|
5566
5562
|
this.type = undefined;
|
|
5563
|
+
this.message = undefined;
|
|
5567
5564
|
this.buttonEnabled = undefined;
|
|
5568
5565
|
this.buttonText = undefined;
|
|
5569
5566
|
}
|
|
@@ -5595,7 +5592,7 @@ const CaptureError = class {
|
|
|
5595
5592
|
this.eventCaptureErrorDone.emit();
|
|
5596
5593
|
}
|
|
5597
5594
|
render() {
|
|
5598
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.titleR1), h("h1", { class: "color-red" }, this.titleR2), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR1), h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR2)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
|
|
5595
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.titleR1), h("h1", { class: "color-red" }, this.titleR2), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR1), h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR2), h("p", { class: "color-red font-weight-bold font-size-18 mt-5" }, this.message)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText))))));
|
|
5599
5596
|
}
|
|
5600
5597
|
};
|
|
5601
5598
|
CaptureError.style = captureErrorCss;
|
|
@@ -5763,7 +5760,7 @@ class Cameras {
|
|
|
5763
5760
|
}
|
|
5764
5761
|
else {
|
|
5765
5762
|
mediaTrack.facingMode = 'environment';
|
|
5766
|
-
mediaTrack.width = { ideal:
|
|
5763
|
+
mediaTrack.width = { ideal: 1280 };
|
|
5767
5764
|
mediaTrack.aspectRatio = 1;
|
|
5768
5765
|
}
|
|
5769
5766
|
}
|
|
@@ -5779,14 +5776,15 @@ class Cameras {
|
|
|
5779
5776
|
mediaTrack.width = 1280;
|
|
5780
5777
|
}
|
|
5781
5778
|
else {
|
|
5782
|
-
mediaTrack.facingMode = 'user';
|
|
5783
5779
|
if (portrait) {
|
|
5780
|
+
mediaTrack.facingMode = 'user';
|
|
5784
5781
|
mediaTrack.width = 1280;
|
|
5785
5782
|
mediaTrack.height = 720;
|
|
5786
5783
|
}
|
|
5787
5784
|
else {
|
|
5788
5785
|
mediaTrack.facingMode = 'environment';
|
|
5789
5786
|
mediaTrack.width = 1280;
|
|
5787
|
+
mediaTrack.height = 720;
|
|
5790
5788
|
}
|
|
5791
5789
|
}
|
|
5792
5790
|
constraints.video = mediaTrack;
|
|
@@ -6281,17 +6279,22 @@ const IdSingleSide = class {
|
|
|
6281
6279
|
this.idFlow.photoFile = null;
|
|
6282
6280
|
this.idFlow.recordingFile = null;
|
|
6283
6281
|
this.showTimeout = false;
|
|
6282
|
+
this.errorMessage = '';
|
|
6284
6283
|
}
|
|
6285
6284
|
howToDone() {
|
|
6286
6285
|
this.showHowTo = false;
|
|
6287
6286
|
}
|
|
6288
6287
|
timeElapsed() {
|
|
6289
6288
|
this.showTimeout = true;
|
|
6289
|
+
this.errorMessage = 'timeout';
|
|
6290
6290
|
}
|
|
6291
6291
|
async captureIdImage(event) {
|
|
6292
|
+
console.log('photoIdCapture');
|
|
6293
|
+
console.log(event);
|
|
6292
6294
|
let idPhoto = event.detail;
|
|
6293
6295
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
6294
6296
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
6297
|
+
this.errorMessage = 'Empty id photo';
|
|
6295
6298
|
this.showTimeout = true;
|
|
6296
6299
|
return;
|
|
6297
6300
|
}
|
|
@@ -6308,9 +6311,12 @@ const IdSingleSide = class {
|
|
|
6308
6311
|
await this.endFlow();
|
|
6309
6312
|
}
|
|
6310
6313
|
async capturedIdRecording(event) {
|
|
6314
|
+
console.log('recordingIdCapture');
|
|
6315
|
+
console.log(event);
|
|
6311
6316
|
let idRecording = event.detail;
|
|
6312
6317
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
6313
|
-
await this.baseComponent.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording }, getLogMessage());
|
|
6318
|
+
await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, getLogMessage());
|
|
6319
|
+
this.errorMessage = 'Empty id recording';
|
|
6314
6320
|
this.showTimeout = true;
|
|
6315
6321
|
return;
|
|
6316
6322
|
}
|
|
@@ -6340,6 +6346,7 @@ const IdSingleSide = class {
|
|
|
6340
6346
|
this.idFlow.photoFile = null;
|
|
6341
6347
|
this.idFlow.recordingFile = null;
|
|
6342
6348
|
this.switchCamera();
|
|
6349
|
+
this.errorMessage = 'Upload photo not successful';
|
|
6343
6350
|
this.showTimeout = true;
|
|
6344
6351
|
}
|
|
6345
6352
|
}
|
|
@@ -6354,6 +6361,7 @@ const IdSingleSide = class {
|
|
|
6354
6361
|
else {
|
|
6355
6362
|
this.idFlow.photoFile = null;
|
|
6356
6363
|
this.idFlow.recordingFile = null;
|
|
6364
|
+
this.errorMessage = 'Upload recording not successful';
|
|
6357
6365
|
this.showTimeout = true;
|
|
6358
6366
|
}
|
|
6359
6367
|
}
|
|
@@ -6383,7 +6391,7 @@ const IdSingleSide = class {
|
|
|
6383
6391
|
}
|
|
6384
6392
|
}
|
|
6385
6393
|
render() {
|
|
6386
|
-
let error = h("capture-error", { type: "ID" });
|
|
6394
|
+
let error = h("capture-error", { type: "ID", message: this.errorMessage });
|
|
6387
6395
|
let capture = h("id-capture", { id: "idFront" });
|
|
6388
6396
|
let howToInfo = h("how-to-info", { idSide: "front" });
|
|
6389
6397
|
return this.showHowTo ? howToInfo : this.showTimeout ? error : capture;
|
|
@@ -6457,7 +6465,7 @@ function v4(options, buf, offset) {
|
|
|
6457
6465
|
}
|
|
6458
6466
|
|
|
6459
6467
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6460
|
-
const version$1 = "3.6.
|
|
6468
|
+
const version$1 = "3.6.3";
|
|
6461
6469
|
const description = "Person Identification Component";
|
|
6462
6470
|
const main = "./dist/index.cjs.js";
|
|
6463
6471
|
const module = "./dist/index.js";
|
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"]]],["agreement-check_18",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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);
|
|
14
|
+
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_18",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"message":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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"]]],["agreement-check_18",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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 bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_18",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"message":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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
|
});
|