@ekyc_qoobiss/qbs-ect-cmp 1.2.0 → 1.2.2
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 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +9 -5
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +13 -3
- package/dist/collection/components/identification-component/identification-component.js +33 -0
- package/dist/collection/helpers/store.js +1 -0
- package/dist/esm/agreement-check_17.entry.js +33 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/qbs-ect-cmp/{p-b65cc797.entry.js → p-04ba9f77.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +1 -0
- package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +2 -0
- package/dist/types/components/identification-component/identification-component.d.ts +2 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/helpers/store.d.ts +1 -0
- package/package.json +1 -1
|
@@ -356,6 +356,7 @@ const { state, onChange } = createStore({
|
|
|
356
356
|
hasIdBack: false,
|
|
357
357
|
agreementsValidation: true,
|
|
358
358
|
phoneValidation: true,
|
|
359
|
+
phoneNumber: '',
|
|
359
360
|
apiBaseUrl: 'https://apiro.id-kyc.com',
|
|
360
361
|
});
|
|
361
362
|
onChange('flowStatus', value => {
|
|
@@ -6034,6 +6035,15 @@ const IdentificationComponent = class {
|
|
|
6034
6035
|
}
|
|
6035
6036
|
await this.initializeRequest();
|
|
6036
6037
|
}
|
|
6038
|
+
async onPhoneChange(newValue, _oldValue) {
|
|
6039
|
+
if (state.phoneNumber != '') {
|
|
6040
|
+
newValue = state.phoneNumber;
|
|
6041
|
+
return;
|
|
6042
|
+
}
|
|
6043
|
+
if (state.phoneNumber !== newValue) {
|
|
6044
|
+
state.phoneNumber = newValue;
|
|
6045
|
+
}
|
|
6046
|
+
}
|
|
6037
6047
|
agreementAcceptanceEmitted(data) {
|
|
6038
6048
|
try {
|
|
6039
6049
|
this.apiCall.GenerateAgreement(data.detail.agreementType);
|
|
@@ -6069,6 +6079,7 @@ const IdentificationComponent = class {
|
|
|
6069
6079
|
this.api_url = undefined;
|
|
6070
6080
|
this.env = undefined;
|
|
6071
6081
|
this.redirect_id = undefined;
|
|
6082
|
+
this.otp_phone_number = undefined;
|
|
6072
6083
|
this.idSide = '';
|
|
6073
6084
|
this.errorMessage = undefined;
|
|
6074
6085
|
this.errorTitle = undefined;
|
|
@@ -6088,6 +6099,9 @@ const IdentificationComponent = class {
|
|
|
6088
6099
|
if (this.redirect_id) {
|
|
6089
6100
|
state.redirectId = this.redirect_id;
|
|
6090
6101
|
}
|
|
6102
|
+
if (this.otp_phone_number) {
|
|
6103
|
+
state.phoneNumber = this.otp_phone_number;
|
|
6104
|
+
}
|
|
6091
6105
|
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
6092
6106
|
if (flowSt) {
|
|
6093
6107
|
state.flowStatus = FlowStatus[flowSt];
|
|
@@ -6194,7 +6208,8 @@ const IdentificationComponent = class {
|
|
|
6194
6208
|
"order_id": ["onOrderIdChange"],
|
|
6195
6209
|
"api_url": ["onApiUrlChange"],
|
|
6196
6210
|
"env": ["onEnvChange"],
|
|
6197
|
-
"redirect_id": ["onRedirectIdChange"]
|
|
6211
|
+
"redirect_id": ["onRedirectIdChange"],
|
|
6212
|
+
"otp_phone_number": ["onPhoneChange"]
|
|
6198
6213
|
}; }
|
|
6199
6214
|
};
|
|
6200
6215
|
IdentificationComponent.style = identificationComponentCss;
|
|
@@ -9138,6 +9153,7 @@ const MobileRedirect = class {
|
|
|
9138
9153
|
this.orderStatus = undefined;
|
|
9139
9154
|
this.redirectLink = undefined;
|
|
9140
9155
|
this.qrCode = undefined;
|
|
9156
|
+
this.prefilledPhone = false;
|
|
9141
9157
|
this.apiCall = new ApiCall();
|
|
9142
9158
|
this.invalidValue = false;
|
|
9143
9159
|
this.waitingMobile = false;
|
|
@@ -9148,6 +9164,10 @@ const MobileRedirect = class {
|
|
|
9148
9164
|
let envUri = state.environment == 'PROD' ? 'ect' : 'test';
|
|
9149
9165
|
let baseUri = state.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
|
|
9150
9166
|
this.redirectLink = baseUri + envUri + '?redirectId=' + state.redirectId;
|
|
9167
|
+
if (state.phoneNumber != '') {
|
|
9168
|
+
this.contact = state.phoneNumber;
|
|
9169
|
+
this.prefilledPhone = true;
|
|
9170
|
+
}
|
|
9151
9171
|
var self = this;
|
|
9152
9172
|
browser.toDataURL(this.redirectLink, { type: 'image/png', errorCorrectionLevel: 'M', scale: 6 }, function (error, url) {
|
|
9153
9173
|
if (error)
|
|
@@ -9197,13 +9217,11 @@ const MobileRedirect = class {
|
|
|
9197
9217
|
if (this.contact.length > 10) {
|
|
9198
9218
|
this.contact = this.contact.substring(0, 10);
|
|
9199
9219
|
}
|
|
9200
|
-
|
|
9201
|
-
this.invalidValue = false;
|
|
9202
|
-
}
|
|
9220
|
+
this.invalidValue = this.contact.length != 10;
|
|
9203
9221
|
ev.target.value = this.contact;
|
|
9204
9222
|
}
|
|
9205
9223
|
render() {
|
|
9206
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { hidden: this.waitingMobile }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop)), index.h("div", { class: "qr-canvas align-center" }, index.h("img", { src: this.qrCode })), index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextBottom)), index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, index.h("b", null, MobileRedirectValues.Validation)), index.h("input", { type: "text", id: "codeInput", class: "main-input", value: this.contact, onInput: ev => this.handleChangeContact(ev) })), index.h("div", { class: "pos-relative" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, MobileRedirectValues.FooterText)))), index.h("div", { hidden: this.waitingMobile == false }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
9224
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { hidden: this.waitingMobile }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop)), index.h("div", { class: "qr-canvas align-center" }, index.h("img", { src: this.qrCode })), index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextBottom)), index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, index.h("b", null, MobileRedirectValues.Validation)), index.h("input", { type: "text", id: "codeInput", class: "main-input", hidden: this.prefilledPhone, value: this.contact, onInput: ev => this.handleChangeContact(ev) })), index.h("div", { class: "pos-relative" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, MobileRedirectValues.FooterText)))), index.h("div", { hidden: this.waitingMobile == false }, index.h("div", { class: "text-center" }, index.h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
9207
9225
|
}
|
|
9208
9226
|
};
|
|
9209
9227
|
MobileRedirect.style = mobileRedirectCss;
|
|
@@ -9347,6 +9365,8 @@ const SmsCodeValidation = class {
|
|
|
9347
9365
|
this.buttonText = undefined;
|
|
9348
9366
|
this.phoneNumber = undefined;
|
|
9349
9367
|
this.code = undefined;
|
|
9368
|
+
this.prefilledPhone = false;
|
|
9369
|
+
this.canSend = false;
|
|
9350
9370
|
this.apiCall = new ApiCall();
|
|
9351
9371
|
}
|
|
9352
9372
|
async doAction() {
|
|
@@ -9376,6 +9396,10 @@ const SmsCodeValidation = class {
|
|
|
9376
9396
|
this.title = PhoneValidationValues.Title;
|
|
9377
9397
|
this.details = PhoneValidationValues.Description;
|
|
9378
9398
|
this.buttonText = PhoneValidationValues.Button;
|
|
9399
|
+
if (state.phoneNumber != '') {
|
|
9400
|
+
this.phoneNumber = state.phoneNumber;
|
|
9401
|
+
this.prefilledPhone = true;
|
|
9402
|
+
}
|
|
9379
9403
|
}
|
|
9380
9404
|
if (state.flowStatus == FlowStatus.CODE || state.flowStatus == FlowStatus.CODEERROR) {
|
|
9381
9405
|
this.title = CodeValidationValues.Title;
|
|
@@ -9388,6 +9412,7 @@ const SmsCodeValidation = class {
|
|
|
9388
9412
|
this.phoneNumber = value.replace(/\D/g, '');
|
|
9389
9413
|
if (this.phoneNumber.length > 10)
|
|
9390
9414
|
this.phoneNumber = this.phoneNumber.substring(0, 10);
|
|
9415
|
+
this.canSend = this.phoneNumber.length == 10;
|
|
9391
9416
|
ev.target.value = this.phoneNumber;
|
|
9392
9417
|
}
|
|
9393
9418
|
handleChangeCode(ev) {
|
|
@@ -9395,6 +9420,7 @@ const SmsCodeValidation = class {
|
|
|
9395
9420
|
this.code = value;
|
|
9396
9421
|
if (this.code.length > 4)
|
|
9397
9422
|
this.code = this.code.substring(0, 4);
|
|
9423
|
+
this.canSend = this.code.length == 4;
|
|
9398
9424
|
ev.target.value = this.code;
|
|
9399
9425
|
}
|
|
9400
9426
|
render() {
|
|
@@ -9404,12 +9430,12 @@ const SmsCodeValidation = class {
|
|
|
9404
9430
|
errorBlock = index.h("p", { class: "main-text font-size-18 mt-15 color-red text-center" }, CodeValidationValues.Error);
|
|
9405
9431
|
}
|
|
9406
9432
|
if (state.flowStatus == FlowStatus.PHONE) {
|
|
9407
|
-
inputBlock = (index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1" }, index.h("b", null, PhoneValidationValues.Label)), index.h("input", { type: "tel", id: "phoneInput", class: "main-input", onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
|
|
9433
|
+
inputBlock = (index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1" }, index.h("b", null, PhoneValidationValues.Label)), index.h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
|
|
9408
9434
|
}
|
|
9409
9435
|
else {
|
|
9410
9436
|
inputBlock = (index.h("div", { class: "input-container mb-15" }, index.h("input", { type: "text", id: "codeInput", class: "main-input", onInput: ev => this.handleChangeCode(ev), value: this.code })));
|
|
9411
9437
|
}
|
|
9412
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row row-validare" }, index.h("div", null, index.h("h1", { class: "text-center" }, this.title), errorBlock == null ? index.h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { id: "action", class: "main-button", onClick: () => this.doAction() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, PhoneValidationValues.FooterText))))));
|
|
9438
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row row-validare" }, index.h("div", null, index.h("h1", { class: "text-center" }, this.title), errorBlock == null ? index.h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, PhoneValidationValues.FooterText))))));
|
|
9413
9439
|
}
|
|
9414
9440
|
};
|
|
9415
9441
|
SmsCodeValidation.style = smsCodeValidationCss;
|
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],"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);
|
|
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],"otp_phone_number":[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],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[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],"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);
|
|
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],"otp_phone_number":[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],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[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;
|
|
@@ -16,6 +16,7 @@ export class MobileRedirect {
|
|
|
16
16
|
this.orderStatus = undefined;
|
|
17
17
|
this.redirectLink = undefined;
|
|
18
18
|
this.qrCode = undefined;
|
|
19
|
+
this.prefilledPhone = false;
|
|
19
20
|
this.apiCall = new ApiCall();
|
|
20
21
|
this.invalidValue = false;
|
|
21
22
|
this.waitingMobile = false;
|
|
@@ -26,6 +27,10 @@ export class MobileRedirect {
|
|
|
26
27
|
let envUri = store.environment == 'PROD' ? 'ect' : 'test';
|
|
27
28
|
let baseUri = store.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
|
|
28
29
|
this.redirectLink = baseUri + envUri + '?redirectId=' + store.redirectId;
|
|
30
|
+
if (store.phoneNumber != '') {
|
|
31
|
+
this.contact = store.phoneNumber;
|
|
32
|
+
this.prefilledPhone = true;
|
|
33
|
+
}
|
|
29
34
|
var self = this;
|
|
30
35
|
QRCode.toDataURL(this.redirectLink, { type: 'image/png', errorCorrectionLevel: 'M', scale: 6 }, function (error, url) {
|
|
31
36
|
if (error)
|
|
@@ -76,13 +81,11 @@ export class MobileRedirect {
|
|
|
76
81
|
if (this.contact.length > 10) {
|
|
77
82
|
this.contact = this.contact.substring(0, 10);
|
|
78
83
|
}
|
|
79
|
-
|
|
80
|
-
this.invalidValue = false;
|
|
81
|
-
}
|
|
84
|
+
this.invalidValue = this.contact.length != 10;
|
|
82
85
|
ev.target.value = this.contact;
|
|
83
86
|
}
|
|
84
87
|
render() {
|
|
85
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { hidden: this.waitingMobile }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop)), h("div", { class: "qr-canvas align-center" }, h("img", { src: this.qrCode })), h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextBottom)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, h("b", null, MobileRedirectValues.Validation)), h("input", { type: "text", id: "codeInput", class: "main-input", value: this.contact, onInput: ev => this.handleChangeContact(ev) })), h("div", { class: "pos-relative" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), h("p", { class: "main-text font-size-18 text-right mb-0" }, MobileRedirectValues.FooterText)))), h("div", { hidden: this.waitingMobile == false }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
88
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { hidden: this.waitingMobile }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop)), h("div", { class: "qr-canvas align-center" }, h("img", { src: this.qrCode })), h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextBottom)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, h("b", null, MobileRedirectValues.Validation)), h("input", { type: "text", id: "codeInput", class: "main-input", hidden: this.prefilledPhone, value: this.contact, onInput: ev => this.handleChangeContact(ev) })), h("div", { class: "pos-relative" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), h("p", { class: "main-text font-size-18 text-right mb-0" }, MobileRedirectValues.FooterText)))), h("div", { hidden: this.waitingMobile == false }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
86
89
|
}
|
|
87
90
|
static get is() { return "mobile-redirect"; }
|
|
88
91
|
static get originalStyleUrls() {
|
|
@@ -104,7 +107,8 @@ export class MobileRedirect {
|
|
|
104
107
|
"waitingMobile": {},
|
|
105
108
|
"orderStatus": {},
|
|
106
109
|
"redirectLink": {},
|
|
107
|
-
"qrCode": {}
|
|
110
|
+
"qrCode": {},
|
|
111
|
+
"prefilledPhone": {}
|
|
108
112
|
};
|
|
109
113
|
}
|
|
110
114
|
static get events() {
|
|
@@ -10,6 +10,8 @@ export class SmsCodeValidation {
|
|
|
10
10
|
this.buttonText = undefined;
|
|
11
11
|
this.phoneNumber = undefined;
|
|
12
12
|
this.code = undefined;
|
|
13
|
+
this.prefilledPhone = false;
|
|
14
|
+
this.canSend = false;
|
|
13
15
|
this.apiCall = new ApiCall();
|
|
14
16
|
}
|
|
15
17
|
async doAction() {
|
|
@@ -39,6 +41,10 @@ export class SmsCodeValidation {
|
|
|
39
41
|
this.title = PhoneValidationValues.Title;
|
|
40
42
|
this.details = PhoneValidationValues.Description;
|
|
41
43
|
this.buttonText = PhoneValidationValues.Button;
|
|
44
|
+
if (store.phoneNumber != '') {
|
|
45
|
+
this.phoneNumber = store.phoneNumber;
|
|
46
|
+
this.prefilledPhone = true;
|
|
47
|
+
}
|
|
42
48
|
}
|
|
43
49
|
if (store.flowStatus == FlowStatus.CODE || store.flowStatus == FlowStatus.CODEERROR) {
|
|
44
50
|
this.title = CodeValidationValues.Title;
|
|
@@ -51,6 +57,7 @@ export class SmsCodeValidation {
|
|
|
51
57
|
this.phoneNumber = value.replace(/\D/g, '');
|
|
52
58
|
if (this.phoneNumber.length > 10)
|
|
53
59
|
this.phoneNumber = this.phoneNumber.substring(0, 10);
|
|
60
|
+
this.canSend = this.phoneNumber.length == 10;
|
|
54
61
|
ev.target.value = this.phoneNumber;
|
|
55
62
|
}
|
|
56
63
|
handleChangeCode(ev) {
|
|
@@ -58,6 +65,7 @@ export class SmsCodeValidation {
|
|
|
58
65
|
this.code = value;
|
|
59
66
|
if (this.code.length > 4)
|
|
60
67
|
this.code = this.code.substring(0, 4);
|
|
68
|
+
this.canSend = this.code.length == 4;
|
|
61
69
|
ev.target.value = this.code;
|
|
62
70
|
}
|
|
63
71
|
render() {
|
|
@@ -67,12 +75,12 @@ export class SmsCodeValidation {
|
|
|
67
75
|
errorBlock = h("p", { class: "main-text font-size-18 mt-15 color-red text-center" }, CodeValidationValues.Error);
|
|
68
76
|
}
|
|
69
77
|
if (store.flowStatus == FlowStatus.PHONE) {
|
|
70
|
-
inputBlock = (h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
|
|
78
|
+
inputBlock = (h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
|
|
71
79
|
}
|
|
72
80
|
else {
|
|
73
81
|
inputBlock = (h("div", { class: "input-container mb-15" }, h("input", { type: "text", id: "codeInput", class: "main-input", onInput: ev => this.handleChangeCode(ev), value: this.code })));
|
|
74
82
|
}
|
|
75
|
-
return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", null, h("h1", { class: "text-center" }, this.title), errorBlock == null ? h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, PhoneValidationValues.FooterText))))));
|
|
83
|
+
return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", null, h("h1", { class: "text-center" }, this.title), errorBlock == null ? h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, PhoneValidationValues.FooterText))))));
|
|
76
84
|
}
|
|
77
85
|
static get is() { return "sms-code-validation"; }
|
|
78
86
|
static get originalStyleUrls() {
|
|
@@ -91,7 +99,9 @@ export class SmsCodeValidation {
|
|
|
91
99
|
"details": {},
|
|
92
100
|
"buttonText": {},
|
|
93
101
|
"phoneNumber": {},
|
|
94
|
-
"code": {}
|
|
102
|
+
"code": {},
|
|
103
|
+
"prefilledPhone": {},
|
|
104
|
+
"canSend": {}
|
|
95
105
|
};
|
|
96
106
|
}
|
|
97
107
|
static get events() {
|
|
@@ -57,6 +57,15 @@ export class IdentificationComponent {
|
|
|
57
57
|
}
|
|
58
58
|
await this.initializeRequest();
|
|
59
59
|
}
|
|
60
|
+
async onPhoneChange(newValue, _oldValue) {
|
|
61
|
+
if (store.phoneNumber != '') {
|
|
62
|
+
newValue = store.phoneNumber;
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (store.phoneNumber !== newValue) {
|
|
66
|
+
store.phoneNumber = newValue;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
60
69
|
agreementAcceptanceEmitted(data) {
|
|
61
70
|
try {
|
|
62
71
|
this.apiCall.GenerateAgreement(data.detail.agreementType);
|
|
@@ -91,6 +100,7 @@ export class IdentificationComponent {
|
|
|
91
100
|
this.api_url = undefined;
|
|
92
101
|
this.env = undefined;
|
|
93
102
|
this.redirect_id = undefined;
|
|
103
|
+
this.otp_phone_number = undefined;
|
|
94
104
|
this.idSide = '';
|
|
95
105
|
this.errorMessage = undefined;
|
|
96
106
|
this.errorTitle = undefined;
|
|
@@ -110,6 +120,9 @@ export class IdentificationComponent {
|
|
|
110
120
|
if (this.redirect_id) {
|
|
111
121
|
store.redirectId = this.redirect_id;
|
|
112
122
|
}
|
|
123
|
+
if (this.otp_phone_number) {
|
|
124
|
+
store.phoneNumber = this.otp_phone_number;
|
|
125
|
+
}
|
|
113
126
|
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
114
127
|
if (flowSt) {
|
|
115
128
|
store.flowStatus = FlowStatus[flowSt];
|
|
@@ -309,6 +322,23 @@ export class IdentificationComponent {
|
|
|
309
322
|
},
|
|
310
323
|
"attribute": "redirect_id",
|
|
311
324
|
"reflect": true
|
|
325
|
+
},
|
|
326
|
+
"otp_phone_number": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"mutable": true,
|
|
329
|
+
"complexType": {
|
|
330
|
+
"original": "string",
|
|
331
|
+
"resolved": "string",
|
|
332
|
+
"references": {}
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"optional": false,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": ""
|
|
339
|
+
},
|
|
340
|
+
"attribute": "otp_phone_number",
|
|
341
|
+
"reflect": true
|
|
312
342
|
}
|
|
313
343
|
};
|
|
314
344
|
}
|
|
@@ -335,6 +365,9 @@ export class IdentificationComponent {
|
|
|
335
365
|
}, {
|
|
336
366
|
"propName": "redirect_id",
|
|
337
367
|
"methodName": "onRedirectIdChange"
|
|
368
|
+
}, {
|
|
369
|
+
"propName": "otp_phone_number",
|
|
370
|
+
"methodName": "onPhoneChange"
|
|
338
371
|
}];
|
|
339
372
|
}
|
|
340
373
|
static get listeners() {
|
|
@@ -352,6 +352,7 @@ const { state, onChange } = createStore({
|
|
|
352
352
|
hasIdBack: false,
|
|
353
353
|
agreementsValidation: true,
|
|
354
354
|
phoneValidation: true,
|
|
355
|
+
phoneNumber: '',
|
|
355
356
|
apiBaseUrl: 'https://apiro.id-kyc.com',
|
|
356
357
|
});
|
|
357
358
|
onChange('flowStatus', value => {
|
|
@@ -6030,6 +6031,15 @@ const IdentificationComponent = class {
|
|
|
6030
6031
|
}
|
|
6031
6032
|
await this.initializeRequest();
|
|
6032
6033
|
}
|
|
6034
|
+
async onPhoneChange(newValue, _oldValue) {
|
|
6035
|
+
if (state.phoneNumber != '') {
|
|
6036
|
+
newValue = state.phoneNumber;
|
|
6037
|
+
return;
|
|
6038
|
+
}
|
|
6039
|
+
if (state.phoneNumber !== newValue) {
|
|
6040
|
+
state.phoneNumber = newValue;
|
|
6041
|
+
}
|
|
6042
|
+
}
|
|
6033
6043
|
agreementAcceptanceEmitted(data) {
|
|
6034
6044
|
try {
|
|
6035
6045
|
this.apiCall.GenerateAgreement(data.detail.agreementType);
|
|
@@ -6065,6 +6075,7 @@ const IdentificationComponent = class {
|
|
|
6065
6075
|
this.api_url = undefined;
|
|
6066
6076
|
this.env = undefined;
|
|
6067
6077
|
this.redirect_id = undefined;
|
|
6078
|
+
this.otp_phone_number = undefined;
|
|
6068
6079
|
this.idSide = '';
|
|
6069
6080
|
this.errorMessage = undefined;
|
|
6070
6081
|
this.errorTitle = undefined;
|
|
@@ -6084,6 +6095,9 @@ const IdentificationComponent = class {
|
|
|
6084
6095
|
if (this.redirect_id) {
|
|
6085
6096
|
state.redirectId = this.redirect_id;
|
|
6086
6097
|
}
|
|
6098
|
+
if (this.otp_phone_number) {
|
|
6099
|
+
state.phoneNumber = this.otp_phone_number;
|
|
6100
|
+
}
|
|
6087
6101
|
var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
|
|
6088
6102
|
if (flowSt) {
|
|
6089
6103
|
state.flowStatus = FlowStatus[flowSt];
|
|
@@ -6190,7 +6204,8 @@ const IdentificationComponent = class {
|
|
|
6190
6204
|
"order_id": ["onOrderIdChange"],
|
|
6191
6205
|
"api_url": ["onApiUrlChange"],
|
|
6192
6206
|
"env": ["onEnvChange"],
|
|
6193
|
-
"redirect_id": ["onRedirectIdChange"]
|
|
6207
|
+
"redirect_id": ["onRedirectIdChange"],
|
|
6208
|
+
"otp_phone_number": ["onPhoneChange"]
|
|
6194
6209
|
}; }
|
|
6195
6210
|
};
|
|
6196
6211
|
IdentificationComponent.style = identificationComponentCss;
|
|
@@ -9134,6 +9149,7 @@ const MobileRedirect = class {
|
|
|
9134
9149
|
this.orderStatus = undefined;
|
|
9135
9150
|
this.redirectLink = undefined;
|
|
9136
9151
|
this.qrCode = undefined;
|
|
9152
|
+
this.prefilledPhone = false;
|
|
9137
9153
|
this.apiCall = new ApiCall();
|
|
9138
9154
|
this.invalidValue = false;
|
|
9139
9155
|
this.waitingMobile = false;
|
|
@@ -9144,6 +9160,10 @@ const MobileRedirect = class {
|
|
|
9144
9160
|
let envUri = state.environment == 'PROD' ? 'ect' : 'test';
|
|
9145
9161
|
let baseUri = state.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
|
|
9146
9162
|
this.redirectLink = baseUri + envUri + '?redirectId=' + state.redirectId;
|
|
9163
|
+
if (state.phoneNumber != '') {
|
|
9164
|
+
this.contact = state.phoneNumber;
|
|
9165
|
+
this.prefilledPhone = true;
|
|
9166
|
+
}
|
|
9147
9167
|
var self = this;
|
|
9148
9168
|
browser.toDataURL(this.redirectLink, { type: 'image/png', errorCorrectionLevel: 'M', scale: 6 }, function (error, url) {
|
|
9149
9169
|
if (error)
|
|
@@ -9193,13 +9213,11 @@ const MobileRedirect = class {
|
|
|
9193
9213
|
if (this.contact.length > 10) {
|
|
9194
9214
|
this.contact = this.contact.substring(0, 10);
|
|
9195
9215
|
}
|
|
9196
|
-
|
|
9197
|
-
this.invalidValue = false;
|
|
9198
|
-
}
|
|
9216
|
+
this.invalidValue = this.contact.length != 10;
|
|
9199
9217
|
ev.target.value = this.contact;
|
|
9200
9218
|
}
|
|
9201
9219
|
render() {
|
|
9202
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { hidden: this.waitingMobile }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop)), h("div", { class: "qr-canvas align-center" }, h("img", { src: this.qrCode })), h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextBottom)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, h("b", null, MobileRedirectValues.Validation)), h("input", { type: "text", id: "codeInput", class: "main-input", value: this.contact, onInput: ev => this.handleChangeContact(ev) })), h("div", { class: "pos-relative" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), h("p", { class: "main-text font-size-18 text-right mb-0" }, MobileRedirectValues.FooterText)))), h("div", { hidden: this.waitingMobile == false }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
9220
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { hidden: this.waitingMobile }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop)), h("div", { class: "qr-canvas align-center" }, h("img", { src: this.qrCode })), h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextBottom)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, h("b", null, MobileRedirectValues.Validation)), h("input", { type: "text", id: "codeInput", class: "main-input", hidden: this.prefilledPhone, value: this.contact, onInput: ev => this.handleChangeContact(ev) })), h("div", { class: "pos-relative" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), h("p", { class: "main-text font-size-18 text-right mb-0" }, MobileRedirectValues.FooterText)))), h("div", { hidden: this.waitingMobile == false }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
9203
9221
|
}
|
|
9204
9222
|
};
|
|
9205
9223
|
MobileRedirect.style = mobileRedirectCss;
|
|
@@ -9343,6 +9361,8 @@ const SmsCodeValidation = class {
|
|
|
9343
9361
|
this.buttonText = undefined;
|
|
9344
9362
|
this.phoneNumber = undefined;
|
|
9345
9363
|
this.code = undefined;
|
|
9364
|
+
this.prefilledPhone = false;
|
|
9365
|
+
this.canSend = false;
|
|
9346
9366
|
this.apiCall = new ApiCall();
|
|
9347
9367
|
}
|
|
9348
9368
|
async doAction() {
|
|
@@ -9372,6 +9392,10 @@ const SmsCodeValidation = class {
|
|
|
9372
9392
|
this.title = PhoneValidationValues.Title;
|
|
9373
9393
|
this.details = PhoneValidationValues.Description;
|
|
9374
9394
|
this.buttonText = PhoneValidationValues.Button;
|
|
9395
|
+
if (state.phoneNumber != '') {
|
|
9396
|
+
this.phoneNumber = state.phoneNumber;
|
|
9397
|
+
this.prefilledPhone = true;
|
|
9398
|
+
}
|
|
9375
9399
|
}
|
|
9376
9400
|
if (state.flowStatus == FlowStatus.CODE || state.flowStatus == FlowStatus.CODEERROR) {
|
|
9377
9401
|
this.title = CodeValidationValues.Title;
|
|
@@ -9384,6 +9408,7 @@ const SmsCodeValidation = class {
|
|
|
9384
9408
|
this.phoneNumber = value.replace(/\D/g, '');
|
|
9385
9409
|
if (this.phoneNumber.length > 10)
|
|
9386
9410
|
this.phoneNumber = this.phoneNumber.substring(0, 10);
|
|
9411
|
+
this.canSend = this.phoneNumber.length == 10;
|
|
9387
9412
|
ev.target.value = this.phoneNumber;
|
|
9388
9413
|
}
|
|
9389
9414
|
handleChangeCode(ev) {
|
|
@@ -9391,6 +9416,7 @@ const SmsCodeValidation = class {
|
|
|
9391
9416
|
this.code = value;
|
|
9392
9417
|
if (this.code.length > 4)
|
|
9393
9418
|
this.code = this.code.substring(0, 4);
|
|
9419
|
+
this.canSend = this.code.length == 4;
|
|
9394
9420
|
ev.target.value = this.code;
|
|
9395
9421
|
}
|
|
9396
9422
|
render() {
|
|
@@ -9400,12 +9426,12 @@ const SmsCodeValidation = class {
|
|
|
9400
9426
|
errorBlock = h("p", { class: "main-text font-size-18 mt-15 color-red text-center" }, CodeValidationValues.Error);
|
|
9401
9427
|
}
|
|
9402
9428
|
if (state.flowStatus == FlowStatus.PHONE) {
|
|
9403
|
-
inputBlock = (h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
|
|
9429
|
+
inputBlock = (h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
|
|
9404
9430
|
}
|
|
9405
9431
|
else {
|
|
9406
9432
|
inputBlock = (h("div", { class: "input-container mb-15" }, h("input", { type: "text", id: "codeInput", class: "main-input", onInput: ev => this.handleChangeCode(ev), value: this.code })));
|
|
9407
9433
|
}
|
|
9408
|
-
return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", null, h("h1", { class: "text-center" }, this.title), errorBlock == null ? h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, PhoneValidationValues.FooterText))))));
|
|
9434
|
+
return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", null, h("h1", { class: "text-center" }, this.title), errorBlock == null ? h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, PhoneValidationValues.FooterText))))));
|
|
9409
9435
|
}
|
|
9410
9436
|
};
|
|
9411
9437
|
SmsCodeValidation.style = smsCodeValidationCss;
|
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],"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);
|
|
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],"otp_phone_number":[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],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[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],"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);
|
|
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],"otp_phone_number":[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],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[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
|
});
|