@ekyc_qoobiss/qbs-ect-cmp 1.12.4 → 1.12.6
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 +33 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/collection/components/flow/error-end/error-end.js +20 -2
- package/dist/collection/components/flow/id-double-side/id-double-side.js +8 -0
- package/dist/collection/components/flow/id-single-side/id-single-side.js +4 -0
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +7 -2
- package/dist/collection/components/flow/user-liveness/user-liveness.js +4 -0
- package/dist/collection/components/identification-component/identification-component.js +9 -7
- package/dist/esm/agreement-check_17.entry.js +33 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/qbs-ect-cmp/{p-2682cc4d.entry.js → p-2b405f2e.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/flow/error-end/error-end.d.ts +1 -0
- package/dist/types/components/identification-component/identification-component.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
|
@@ -5172,13 +5172,14 @@ const ErrorEnd = class {
|
|
|
5172
5172
|
constructor(hostRef) {
|
|
5173
5173
|
index.registerInstance(this, hostRef);
|
|
5174
5174
|
this.message = undefined;
|
|
5175
|
+
this.errorTitle = undefined;
|
|
5175
5176
|
}
|
|
5176
5177
|
componentDidLoad() {
|
|
5177
5178
|
Events.init(window);
|
|
5178
|
-
Events.flowError(this.message);
|
|
5179
|
+
Events.flowError(this.errorTitle + ' ' + this.message);
|
|
5179
5180
|
}
|
|
5180
5181
|
render() {
|
|
5181
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-2 text-center mt-10" }, this.message)))));
|
|
5182
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class: "text-center" }, index.h("h1", null, this.errorTitle)), index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-2 text-center mt-10" }, this.message)))));
|
|
5182
5183
|
}
|
|
5183
5184
|
};
|
|
5184
5185
|
ErrorEnd.style = errorEndCss;
|
|
@@ -5619,6 +5620,10 @@ const IdDoubleSide = class {
|
|
|
5619
5620
|
}
|
|
5620
5621
|
async captureIdImage(event) {
|
|
5621
5622
|
let idPhoto = event.detail;
|
|
5623
|
+
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5624
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5625
|
+
return;
|
|
5626
|
+
}
|
|
5622
5627
|
try {
|
|
5623
5628
|
this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
|
|
5624
5629
|
this.uploadPhoto();
|
|
@@ -5629,6 +5634,10 @@ const IdDoubleSide = class {
|
|
|
5629
5634
|
}
|
|
5630
5635
|
async captureIdBackImage(event) {
|
|
5631
5636
|
let idPhoto = event.detail;
|
|
5637
|
+
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5638
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5639
|
+
return;
|
|
5640
|
+
}
|
|
5632
5641
|
try {
|
|
5633
5642
|
this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
|
|
5634
5643
|
this.uploadPhoto();
|
|
@@ -5763,6 +5772,10 @@ const IdSingleSide = class {
|
|
|
5763
5772
|
}
|
|
5764
5773
|
async captureIdImage(event) {
|
|
5765
5774
|
let idPhoto = event.detail;
|
|
5775
|
+
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5776
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5777
|
+
return;
|
|
5778
|
+
}
|
|
5766
5779
|
try {
|
|
5767
5780
|
this.idFlow.photoFile = new File([idPhoto], 'idImage.png', { type: 'image/png' });
|
|
5768
5781
|
await this.uploadPhoto();
|
|
@@ -6014,20 +6027,20 @@ const IdentificationComponent = class {
|
|
|
6014
6027
|
}
|
|
6015
6028
|
}
|
|
6016
6029
|
async apiErrorEmitter(data) {
|
|
6030
|
+
var _a, _b;
|
|
6017
6031
|
let apiLogData = { message: '', stack: '' };
|
|
6018
6032
|
if (data.detail) {
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
}
|
|
6033
|
+
this.errorTitle = (_a = data.detail.message) !== null && _a !== void 0 ? _a : '';
|
|
6034
|
+
this.errorMessage = (_b = data.detail.stack) !== null && _b !== void 0 ? _b : '';
|
|
6022
6035
|
apiLogData.message = data.detail.message;
|
|
6023
6036
|
apiLogData.stack = data.detail.stack;
|
|
6024
6037
|
}
|
|
6025
6038
|
else if (data.message) {
|
|
6026
|
-
this.
|
|
6039
|
+
this.errorTitle = data.message;
|
|
6027
6040
|
apiLogData.message = data.message;
|
|
6028
6041
|
}
|
|
6029
6042
|
else {
|
|
6030
|
-
this.
|
|
6043
|
+
this.errorTitle = data;
|
|
6031
6044
|
}
|
|
6032
6045
|
await this.apiCall.AddLog(apiLogData);
|
|
6033
6046
|
Events.flowError(data);
|
|
@@ -6042,6 +6055,7 @@ const IdentificationComponent = class {
|
|
|
6042
6055
|
this.redirect_id = undefined;
|
|
6043
6056
|
this.idSide = '';
|
|
6044
6057
|
this.errorMessage = undefined;
|
|
6058
|
+
this.errorTitle = undefined;
|
|
6045
6059
|
ML5.getInstance();
|
|
6046
6060
|
this.device = initDevice();
|
|
6047
6061
|
}
|
|
@@ -6127,7 +6141,7 @@ const IdentificationComponent = class {
|
|
|
6127
6141
|
currentBlock = index.h("end-redirect", null);
|
|
6128
6142
|
}
|
|
6129
6143
|
if (state.flowStatus == FlowStatus.ERROREND) {
|
|
6130
|
-
currentBlock = index.h("error-end", { message: this.errorMessage });
|
|
6144
|
+
currentBlock = index.h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
|
|
6131
6145
|
}
|
|
6132
6146
|
return index.h("div", null, currentBlock);
|
|
6133
6147
|
}
|
|
@@ -9113,7 +9127,7 @@ const MobileRedirect = class {
|
|
|
9113
9127
|
state.flowStatus = FlowStatus.COMPLETE;
|
|
9114
9128
|
}
|
|
9115
9129
|
if (this.orderStatus == OrderStatuses.NotFound) {
|
|
9116
|
-
this.apiErrorEvent.emit('No order was started for this process.');
|
|
9130
|
+
this.apiErrorEvent.emit({ message: 'No order was started for this process.' });
|
|
9117
9131
|
}
|
|
9118
9132
|
if (this.orderStatus == OrderStatuses.Capturing) {
|
|
9119
9133
|
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
@@ -9126,7 +9140,12 @@ const MobileRedirect = class {
|
|
|
9126
9140
|
}
|
|
9127
9141
|
this.waitingMobile = true;
|
|
9128
9142
|
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
9129
|
-
|
|
9143
|
+
try {
|
|
9144
|
+
await this.apiCall.SendLink(this.redirectLink, this.contact);
|
|
9145
|
+
}
|
|
9146
|
+
catch (e) {
|
|
9147
|
+
this.apiErrorEvent.emit(e);
|
|
9148
|
+
}
|
|
9130
9149
|
}
|
|
9131
9150
|
handleChangeContact(ev) {
|
|
9132
9151
|
let value = ev.target ? ev.target.value : '';
|
|
@@ -9387,6 +9406,10 @@ const UserLiveness = class {
|
|
|
9387
9406
|
}
|
|
9388
9407
|
async captureSelfieImage(event) {
|
|
9389
9408
|
let selfiePhoto = event.detail;
|
|
9409
|
+
if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
|
|
9410
|
+
await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
|
|
9411
|
+
return;
|
|
9412
|
+
}
|
|
9390
9413
|
try {
|
|
9391
9414
|
this.selfieFlow.photoFile = new File([selfiePhoto], 'selfie.png', { type: 'image/png' });
|
|
9392
9415
|
await this.uploadPhoto();
|
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_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"idSide":[32],"errorMessage":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"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",{"device":[16],"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",{"device":[16],"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,"end-redirect"],[0,"error-end",{"message":[1]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"id-back-capture",{"device":[16],"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",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"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]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["agreement-check_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"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",{"device":[16],"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",{"device":[16],"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,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"id-back-capture",{"device":[16],"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",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"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]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"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_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"idSide":[32],"errorMessage":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"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",{"device":[16],"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",{"device":[16],"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,"end-redirect"],[0,"error-end",{"message":[1]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"id-back-capture",{"device":[16],"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",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"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]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
20
|
+
return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["agreement-check_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"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",{"device":[16],"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",{"device":[16],"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,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"id-back-capture",{"device":[16],"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",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"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]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
|
@@ -3,13 +3,14 @@ import Events from '../../../helpers/Events';
|
|
|
3
3
|
export class ErrorEnd {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.message = undefined;
|
|
6
|
+
this.errorTitle = undefined;
|
|
6
7
|
}
|
|
7
8
|
componentDidLoad() {
|
|
8
9
|
Events.init(window);
|
|
9
|
-
Events.flowError(this.message);
|
|
10
|
+
Events.flowError(this.errorTitle + ' ' + this.message);
|
|
10
11
|
}
|
|
11
12
|
render() {
|
|
12
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("p", { class: "color-red font-weight-bold font-size-2 text-center mt-10" }, this.message)))));
|
|
13
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "text-center" }, h("h1", null, this.errorTitle)), h("div", null, h("p", { class: "color-red font-weight-bold font-size-2 text-center mt-10" }, this.message)))));
|
|
13
14
|
}
|
|
14
15
|
static get is() { return "error-end"; }
|
|
15
16
|
static get originalStyleUrls() {
|
|
@@ -40,6 +41,23 @@ export class ErrorEnd {
|
|
|
40
41
|
},
|
|
41
42
|
"attribute": "message",
|
|
42
43
|
"reflect": false
|
|
44
|
+
},
|
|
45
|
+
"errorTitle": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "string",
|
|
50
|
+
"resolved": "string",
|
|
51
|
+
"references": {}
|
|
52
|
+
},
|
|
53
|
+
"required": false,
|
|
54
|
+
"optional": false,
|
|
55
|
+
"docs": {
|
|
56
|
+
"tags": [],
|
|
57
|
+
"text": ""
|
|
58
|
+
},
|
|
59
|
+
"attribute": "error-title",
|
|
60
|
+
"reflect": false
|
|
43
61
|
}
|
|
44
62
|
};
|
|
45
63
|
}
|
|
@@ -58,6 +58,10 @@ export class IdDoubleSide {
|
|
|
58
58
|
}
|
|
59
59
|
async captureIdImage(event) {
|
|
60
60
|
let idPhoto = event.detail;
|
|
61
|
+
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
62
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
61
65
|
try {
|
|
62
66
|
this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
|
|
63
67
|
this.uploadPhoto();
|
|
@@ -68,6 +72,10 @@ export class IdDoubleSide {
|
|
|
68
72
|
}
|
|
69
73
|
async captureIdBackImage(event) {
|
|
70
74
|
let idPhoto = event.detail;
|
|
75
|
+
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
76
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
71
79
|
try {
|
|
72
80
|
this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
|
|
73
81
|
this.uploadPhoto();
|
|
@@ -33,6 +33,10 @@ export class IdSingleSide {
|
|
|
33
33
|
}
|
|
34
34
|
async captureIdImage(event) {
|
|
35
35
|
let idPhoto = event.detail;
|
|
36
|
+
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
37
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
36
40
|
try {
|
|
37
41
|
this.idFlow.photoFile = new File([idPhoto], 'idImage.png', { type: 'image/png' });
|
|
38
42
|
await this.uploadPhoto();
|
|
@@ -49,7 +49,7 @@ export class MobileRedirect {
|
|
|
49
49
|
store.flowStatus = FlowStatus.COMPLETE;
|
|
50
50
|
}
|
|
51
51
|
if (this.orderStatus == OrderStatuses.NotFound) {
|
|
52
|
-
this.apiErrorEvent.emit('No order was started for this process.');
|
|
52
|
+
this.apiErrorEvent.emit({ message: 'No order was started for this process.' });
|
|
53
53
|
}
|
|
54
54
|
if (this.orderStatus == OrderStatuses.Capturing) {
|
|
55
55
|
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
@@ -63,7 +63,12 @@ export class MobileRedirect {
|
|
|
63
63
|
}
|
|
64
64
|
this.waitingMobile = true;
|
|
65
65
|
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
66
|
-
|
|
66
|
+
try {
|
|
67
|
+
await this.apiCall.SendLink(this.redirectLink, this.contact);
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
this.apiErrorEvent.emit(e);
|
|
71
|
+
}
|
|
67
72
|
}
|
|
68
73
|
handleChangeContact(ev) {
|
|
69
74
|
let value = ev.target ? ev.target.value : '';
|
|
@@ -35,6 +35,10 @@ export class UserLiveness {
|
|
|
35
35
|
}
|
|
36
36
|
async captureSelfieImage(event) {
|
|
37
37
|
let selfiePhoto = event.detail;
|
|
38
|
+
if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
|
|
39
|
+
await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
38
42
|
try {
|
|
39
43
|
this.selfieFlow.photoFile = new File([selfiePhoto], 'selfie.png', { type: 'image/png' });
|
|
40
44
|
await this.uploadPhoto();
|
|
@@ -68,20 +68,20 @@ export class IdentificationComponent {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
async apiErrorEmitter(data) {
|
|
71
|
+
var _a, _b;
|
|
71
72
|
let apiLogData = { message: '', stack: '' };
|
|
72
73
|
if (data.detail) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
74
|
+
this.errorTitle = (_a = data.detail.message) !== null && _a !== void 0 ? _a : '';
|
|
75
|
+
this.errorMessage = (_b = data.detail.stack) !== null && _b !== void 0 ? _b : '';
|
|
76
76
|
apiLogData.message = data.detail.message;
|
|
77
77
|
apiLogData.stack = data.detail.stack;
|
|
78
78
|
}
|
|
79
79
|
else if (data.message) {
|
|
80
|
-
this.
|
|
80
|
+
this.errorTitle = data.message;
|
|
81
81
|
apiLogData.message = data.message;
|
|
82
82
|
}
|
|
83
83
|
else {
|
|
84
|
-
this.
|
|
84
|
+
this.errorTitle = data;
|
|
85
85
|
}
|
|
86
86
|
await this.apiCall.AddLog(apiLogData);
|
|
87
87
|
Events.flowError(data);
|
|
@@ -95,6 +95,7 @@ export class IdentificationComponent {
|
|
|
95
95
|
this.redirect_id = undefined;
|
|
96
96
|
this.idSide = '';
|
|
97
97
|
this.errorMessage = undefined;
|
|
98
|
+
this.errorTitle = undefined;
|
|
98
99
|
ML5.getInstance();
|
|
99
100
|
this.device = initDevice();
|
|
100
101
|
}
|
|
@@ -180,7 +181,7 @@ export class IdentificationComponent {
|
|
|
180
181
|
currentBlock = h("end-redirect", null);
|
|
181
182
|
}
|
|
182
183
|
if (store.flowStatus == FlowStatus.ERROREND) {
|
|
183
|
-
currentBlock = h("error-end", { message: this.errorMessage });
|
|
184
|
+
currentBlock = h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
|
|
184
185
|
}
|
|
185
186
|
return h("div", null, currentBlock);
|
|
186
187
|
}
|
|
@@ -288,7 +289,8 @@ export class IdentificationComponent {
|
|
|
288
289
|
static get states() {
|
|
289
290
|
return {
|
|
290
291
|
"idSide": {},
|
|
291
|
-
"errorMessage": {}
|
|
292
|
+
"errorMessage": {},
|
|
293
|
+
"errorTitle": {}
|
|
292
294
|
};
|
|
293
295
|
}
|
|
294
296
|
static get watchers() {
|
|
@@ -5168,13 +5168,14 @@ const ErrorEnd = class {
|
|
|
5168
5168
|
constructor(hostRef) {
|
|
5169
5169
|
registerInstance(this, hostRef);
|
|
5170
5170
|
this.message = undefined;
|
|
5171
|
+
this.errorTitle = undefined;
|
|
5171
5172
|
}
|
|
5172
5173
|
componentDidLoad() {
|
|
5173
5174
|
Events.init(window);
|
|
5174
|
-
Events.flowError(this.message);
|
|
5175
|
+
Events.flowError(this.errorTitle + ' ' + this.message);
|
|
5175
5176
|
}
|
|
5176
5177
|
render() {
|
|
5177
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("p", { class: "color-red font-weight-bold font-size-2 text-center mt-10" }, this.message)))));
|
|
5178
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "text-center" }, h("h1", null, this.errorTitle)), h("div", null, h("p", { class: "color-red font-weight-bold font-size-2 text-center mt-10" }, this.message)))));
|
|
5178
5179
|
}
|
|
5179
5180
|
};
|
|
5180
5181
|
ErrorEnd.style = errorEndCss;
|
|
@@ -5615,6 +5616,10 @@ const IdDoubleSide = class {
|
|
|
5615
5616
|
}
|
|
5616
5617
|
async captureIdImage(event) {
|
|
5617
5618
|
let idPhoto = event.detail;
|
|
5619
|
+
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5620
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5621
|
+
return;
|
|
5622
|
+
}
|
|
5618
5623
|
try {
|
|
5619
5624
|
this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
|
|
5620
5625
|
this.uploadPhoto();
|
|
@@ -5625,6 +5630,10 @@ const IdDoubleSide = class {
|
|
|
5625
5630
|
}
|
|
5626
5631
|
async captureIdBackImage(event) {
|
|
5627
5632
|
let idPhoto = event.detail;
|
|
5633
|
+
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5634
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5635
|
+
return;
|
|
5636
|
+
}
|
|
5628
5637
|
try {
|
|
5629
5638
|
this.flow.photoFile = new File([idPhoto], this.flow.photoFileName, { type: 'image/png' });
|
|
5630
5639
|
this.uploadPhoto();
|
|
@@ -5759,6 +5768,10 @@ const IdSingleSide = class {
|
|
|
5759
5768
|
}
|
|
5760
5769
|
async captureIdImage(event) {
|
|
5761
5770
|
let idPhoto = event.detail;
|
|
5771
|
+
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
5772
|
+
await this.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto });
|
|
5773
|
+
return;
|
|
5774
|
+
}
|
|
5762
5775
|
try {
|
|
5763
5776
|
this.idFlow.photoFile = new File([idPhoto], 'idImage.png', { type: 'image/png' });
|
|
5764
5777
|
await this.uploadPhoto();
|
|
@@ -6010,20 +6023,20 @@ const IdentificationComponent = class {
|
|
|
6010
6023
|
}
|
|
6011
6024
|
}
|
|
6012
6025
|
async apiErrorEmitter(data) {
|
|
6026
|
+
var _a, _b;
|
|
6013
6027
|
let apiLogData = { message: '', stack: '' };
|
|
6014
6028
|
if (data.detail) {
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
}
|
|
6029
|
+
this.errorTitle = (_a = data.detail.message) !== null && _a !== void 0 ? _a : '';
|
|
6030
|
+
this.errorMessage = (_b = data.detail.stack) !== null && _b !== void 0 ? _b : '';
|
|
6018
6031
|
apiLogData.message = data.detail.message;
|
|
6019
6032
|
apiLogData.stack = data.detail.stack;
|
|
6020
6033
|
}
|
|
6021
6034
|
else if (data.message) {
|
|
6022
|
-
this.
|
|
6035
|
+
this.errorTitle = data.message;
|
|
6023
6036
|
apiLogData.message = data.message;
|
|
6024
6037
|
}
|
|
6025
6038
|
else {
|
|
6026
|
-
this.
|
|
6039
|
+
this.errorTitle = data;
|
|
6027
6040
|
}
|
|
6028
6041
|
await this.apiCall.AddLog(apiLogData);
|
|
6029
6042
|
Events.flowError(data);
|
|
@@ -6038,6 +6051,7 @@ const IdentificationComponent = class {
|
|
|
6038
6051
|
this.redirect_id = undefined;
|
|
6039
6052
|
this.idSide = '';
|
|
6040
6053
|
this.errorMessage = undefined;
|
|
6054
|
+
this.errorTitle = undefined;
|
|
6041
6055
|
ML5.getInstance();
|
|
6042
6056
|
this.device = initDevice();
|
|
6043
6057
|
}
|
|
@@ -6123,7 +6137,7 @@ const IdentificationComponent = class {
|
|
|
6123
6137
|
currentBlock = h("end-redirect", null);
|
|
6124
6138
|
}
|
|
6125
6139
|
if (state.flowStatus == FlowStatus.ERROREND) {
|
|
6126
|
-
currentBlock = h("error-end", { message: this.errorMessage });
|
|
6140
|
+
currentBlock = h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
|
|
6127
6141
|
}
|
|
6128
6142
|
return h("div", null, currentBlock);
|
|
6129
6143
|
}
|
|
@@ -9109,7 +9123,7 @@ const MobileRedirect = class {
|
|
|
9109
9123
|
state.flowStatus = FlowStatus.COMPLETE;
|
|
9110
9124
|
}
|
|
9111
9125
|
if (this.orderStatus == OrderStatuses.NotFound) {
|
|
9112
|
-
this.apiErrorEvent.emit('No order was started for this process.');
|
|
9126
|
+
this.apiErrorEvent.emit({ message: 'No order was started for this process.' });
|
|
9113
9127
|
}
|
|
9114
9128
|
if (this.orderStatus == OrderStatuses.Capturing) {
|
|
9115
9129
|
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
@@ -9122,7 +9136,12 @@ const MobileRedirect = class {
|
|
|
9122
9136
|
}
|
|
9123
9137
|
this.waitingMobile = true;
|
|
9124
9138
|
this.infoTextTop = MobileRedirectValues.InfoWaiting;
|
|
9125
|
-
|
|
9139
|
+
try {
|
|
9140
|
+
await this.apiCall.SendLink(this.redirectLink, this.contact);
|
|
9141
|
+
}
|
|
9142
|
+
catch (e) {
|
|
9143
|
+
this.apiErrorEvent.emit(e);
|
|
9144
|
+
}
|
|
9126
9145
|
}
|
|
9127
9146
|
handleChangeContact(ev) {
|
|
9128
9147
|
let value = ev.target ? ev.target.value : '';
|
|
@@ -9383,6 +9402,10 @@ const UserLiveness = class {
|
|
|
9383
9402
|
}
|
|
9384
9403
|
async captureSelfieImage(event) {
|
|
9385
9404
|
let selfiePhoto = event.detail;
|
|
9405
|
+
if (selfiePhoto.length == 0 || selfiePhoto.size == 0) {
|
|
9406
|
+
await this.apiCall.AddLog({ message: 'Empty selfie', blobData: selfiePhoto });
|
|
9407
|
+
return;
|
|
9408
|
+
}
|
|
9386
9409
|
try {
|
|
9387
9410
|
this.selfieFlow.photoFile = new File([selfiePhoto], 'selfie.png', { type: 'image/png' });
|
|
9388
9411
|
await this.uploadPhoto();
|
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_17",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"idSide":[32],"errorMessage":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"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",{"device":[16],"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",{"device":[16],"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,"end-redirect"],[0,"error-end",{"message":[1]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"id-back-capture",{"device":[16],"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",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"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]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
14
|
+
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_17",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"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",{"device":[16],"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",{"device":[16],"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,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"id-back-capture",{"device":[16],"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",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"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]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"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_17",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"idSide":[32],"errorMessage":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"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",{"device":[16],"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",{"device":[16],"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,"end-redirect"],[0,"error-end",{"message":[1]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"id-back-capture",{"device":[16],"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",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"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]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
17
|
+
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_17",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"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",{"device":[16],"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",{"device":[16],"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,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"id-back-capture",{"device":[16],"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",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"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]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
|
|
18
18
|
});
|