@ekyc_qoobiss/qbs-ect-cmp 3.6.26 → 3.6.28
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_19.cjs.entry.js +287 -759
- package/dist/cjs/base-component-aa9e52bf.js +832 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/cjs/random-actions.cjs.entry.js +3 -2
- package/dist/collection/components/base-component.js +4 -0
- package/dist/collection/components/common/agreement-check/agreement-check.js +5 -2
- package/dist/collection/components/common/camera-error/camera-error.js +6 -6
- package/dist/collection/components/common/capture-error/capture-error.js +10 -11
- package/dist/collection/components/common/how-to-info/how-to-info.js +8 -9
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +7 -7
- package/dist/collection/components/common/id-capture/id-capture.js +4 -4
- package/dist/collection/components/common/id-tilt/id-tilt.js +4 -4
- package/dist/collection/components/common/random-actions/random-actions.js +6 -2
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +4 -4
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +6 -5
- package/dist/collection/components/flow/agreement-info/agreement-info.js +1 -2
- package/dist/collection/components/flow/end-redirect/end-redirect.js +6 -3
- package/dist/collection/components/flow/landing-validation/landing-validation.js +4 -4
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +6 -7
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +9 -10
- package/dist/collection/components/identification-component/identification-component.js +21 -0
- package/dist/collection/helpers/TranslationUtils.js +37 -0
- package/dist/collection/helpers/store.js +1 -0
- package/dist/collection/helpers/textValues.js +11 -108
- package/dist/collection/models/ITranslationValues.js +1 -0
- package/dist/esm/agreement-check_19.entry.js +80 -552
- package/dist/esm/base-component-b7f50d31.js +824 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/esm/random-actions.entry.js +3 -2
- package/dist/i18n/en.json +100 -0
- package/dist/i18n/ro.json +100 -0
- package/dist/i18n/ru.json +100 -0
- package/dist/qbs-ect-cmp/p-215a7e76.entry.js +1 -0
- package/dist/qbs-ect-cmp/p-7bedffaa.js +1 -0
- package/dist/qbs-ect-cmp/{p-40480abb.entry.js → p-c32a782a.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/base-component.d.ts +2 -0
- package/dist/types/components/common/agreement-check/agreement-check.d.ts +1 -0
- package/dist/types/components/common/random-actions/random-actions.d.ts +2 -0
- package/dist/types/components/flow/end-redirect/end-redirect.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/dist/types/helpers/TranslationUtils.d.ts +9 -0
- package/dist/types/helpers/textValues.d.ts +8 -95
- package/dist/types/models/IEctStore.d.ts +1 -0
- package/dist/types/models/ITranslationValues.d.ts +101 -0
- package/package.json +1 -1
- package/dist/cjs/store-f1a0f55c.js +0 -413
- package/dist/esm/store-fdeed827.js +0 -398
- package/dist/qbs-ect-cmp/p-0b381be5.js +0 -1
- package/dist/qbs-ect-cmp/p-6be3b9ca.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-8942656c.js";export{s as setNonce}from"./p-8942656c.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-054dc5b3",[[1,"loader-dots"]]],["p-
|
|
1
|
+
import{p as e,b as t}from"./p-8942656c.js";export{s as setNonce}from"./p-8942656c.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-054dc5b3",[[1,"loader-dots"]]],["p-215a7e76",[[0,"random-actions"]]],["p-c32a782a",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],phone_number:[1537],lang_iso:[1537],idSide:[32],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{captureStep:[32],showTimeout:[32],showInvalid:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{showError:[32],captureStep:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{agreementsChecked:[32],termsChecked:[32],openAgreements:[32],openTerms:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{title:[32],description:[32],buttonDisabled:[32],demoVideo:[32]}],[0,"end-redirect"],[0,"error-end",{message:[1],errorTitle:[1,"error-title"]}],[0,"landing-validation",{warningText:[32],buttonDisabled:[32]}],[0,"mobile-redirect",{infoTextTop:[32],infoTextBottom:[32],contact:[32],invalidValue:[32],waitingMobile:[32],orderStatus:[32],redirectLink:[32],qrCode:[32],prefilledPhone:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32],prefilledPhone:[32],canSend:[32]}],[0,"id-back-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"id-tilt",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32],buttonEnabled:[32],scrollClass:[32]}],[0,"capture-error",{type:[1],buttonEnabled:[32],buttonText:[32]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32],buttonEnabled:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { EventEmitter } from '../stencil-public-runtime';
|
|
2
2
|
import { ApiCall } from '../helpers/ApiCall';
|
|
3
3
|
import { FlowMoments, FlowSteps } from '../models/FlowSteps';
|
|
4
|
+
import { TranslationValues } from '../models/ITranslationValues';
|
|
4
5
|
export declare class BaseComponent {
|
|
5
6
|
apiCall: ApiCall;
|
|
6
7
|
protected flowStep: FlowSteps;
|
|
7
8
|
private apiErrorEvent;
|
|
8
9
|
private processError;
|
|
10
|
+
translations: TranslationValues;
|
|
9
11
|
constructor(step: FlowSteps | undefined);
|
|
10
12
|
setEventEmitter(event: EventEmitter<any>): void;
|
|
11
13
|
setErrorCallback(callback: (data: any, zone: any) => void): void;
|
|
@@ -39,6 +39,7 @@ export namespace Components {
|
|
|
39
39
|
interface IdentificationComponent {
|
|
40
40
|
"api_url": string;
|
|
41
41
|
"env": string;
|
|
42
|
+
"lang_iso": string;
|
|
42
43
|
"order_id": string;
|
|
43
44
|
"phone_number": string;
|
|
44
45
|
"redirect_id": string;
|
|
@@ -339,6 +340,7 @@ declare namespace LocalJSX {
|
|
|
339
340
|
interface IdentificationComponent {
|
|
340
341
|
"api_url"?: string;
|
|
341
342
|
"env"?: string;
|
|
343
|
+
"lang_iso"?: string;
|
|
342
344
|
"order_id"?: string;
|
|
343
345
|
"phone_number"?: string;
|
|
344
346
|
"redirect_id"?: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TranslationValues } from '../models/ITranslationValues';
|
|
2
|
+
declare class TranslationsController {
|
|
3
|
+
private values;
|
|
4
|
+
getValues(): Promise<TranslationValues>;
|
|
5
|
+
getLocale(element?: HTMLElement): string;
|
|
6
|
+
fetchTranslations(): Promise<any>;
|
|
7
|
+
}
|
|
8
|
+
export declare const Translations: TranslationsController;
|
|
9
|
+
export {};
|
|
@@ -1,46 +1,14 @@
|
|
|
1
1
|
import { FacePose } from '../libs/FaceML5Detector/FacePose';
|
|
2
2
|
import { IDPose } from '../libs/IDML5Detector/IDPose';
|
|
3
|
-
export declare class
|
|
4
|
-
static readonly
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export declare class HowToValues extends GlobalValues {
|
|
8
|
-
static readonly IdTitile: string;
|
|
9
|
-
static readonly IdSubTitileFace: string;
|
|
10
|
-
static readonly IdSubTitileBack: string;
|
|
11
|
-
static readonly IdButton: string;
|
|
12
|
-
static readonly SelfieTitile: string;
|
|
13
|
-
static readonly SelfieSubTitile: string;
|
|
14
|
-
static readonly SelfieButton: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class LandingValues extends GlobalValues {
|
|
17
|
-
static readonly Title: string;
|
|
18
|
-
static readonly Description: string;
|
|
19
|
-
static readonly IdInfo: string;
|
|
20
|
-
static readonly DeviceInfo: string;
|
|
21
|
-
static readonly SmsInfo: string;
|
|
22
|
-
static readonly Warning: string;
|
|
23
|
-
static readonly WarningMd: string;
|
|
24
|
-
static readonly Terms: string;
|
|
25
|
-
static readonly Button: string;
|
|
26
|
-
static readonly ButtonLeave: string;
|
|
27
|
-
}
|
|
28
|
-
export declare class PhoneValidationValues extends GlobalValues {
|
|
29
|
-
static readonly Title: string;
|
|
30
|
-
static readonly Description: string;
|
|
31
|
-
static readonly Button: string;
|
|
32
|
-
static readonly Label: string;
|
|
33
|
-
}
|
|
34
|
-
export declare class CodeValidationValues extends GlobalValues {
|
|
35
|
-
static readonly Title: string;
|
|
36
|
-
static readonly Description: string;
|
|
37
|
-
static readonly Button: string;
|
|
38
|
-
static readonly Error: string;
|
|
3
|
+
export declare class IdCaptureValues {
|
|
4
|
+
static readonly IDPoseDemoMapping: {
|
|
5
|
+
[key in IDPose]: string;
|
|
6
|
+
};
|
|
39
7
|
}
|
|
40
|
-
export declare class
|
|
41
|
-
static readonly
|
|
42
|
-
|
|
43
|
-
|
|
8
|
+
export declare class SelfieCaptureValues {
|
|
9
|
+
static readonly FacePoseDemoMapping: {
|
|
10
|
+
[key in FacePose]: string;
|
|
11
|
+
};
|
|
44
12
|
}
|
|
45
13
|
export declare class SessionKeys {
|
|
46
14
|
static readonly FlowStatusKey: string;
|
|
@@ -52,48 +20,6 @@ export declare class SessionKeys {
|
|
|
52
20
|
static readonly PhoneValidationKey: string;
|
|
53
21
|
static readonly RefreshDoneKey: string;
|
|
54
22
|
}
|
|
55
|
-
export declare class IdCaptureValues extends GlobalValues {
|
|
56
|
-
static readonly Button: string;
|
|
57
|
-
static readonly Title: string;
|
|
58
|
-
static readonly TitleBack: string;
|
|
59
|
-
static readonly TtileRotate: string;
|
|
60
|
-
static readonly ErrorTitleR1: string;
|
|
61
|
-
static readonly ErrorTitleR2: string;
|
|
62
|
-
static readonly ErrorR1: string;
|
|
63
|
-
static readonly ErrorR2: string;
|
|
64
|
-
static readonly IDPoseMapping: {
|
|
65
|
-
[key in IDPose]: string;
|
|
66
|
-
};
|
|
67
|
-
static readonly IDPoseDemoMapping: {
|
|
68
|
-
[key in IDPose]: string;
|
|
69
|
-
};
|
|
70
|
-
static readonly Loading: string;
|
|
71
|
-
}
|
|
72
|
-
export declare class SelfieCaptureValues extends GlobalValues {
|
|
73
|
-
static readonly Title: string;
|
|
74
|
-
static readonly FinalTitle: string;
|
|
75
|
-
static readonly ErrorTitleR1: string;
|
|
76
|
-
static readonly ErrorTitleR2: string;
|
|
77
|
-
static readonly ErrorR1: string;
|
|
78
|
-
static readonly ErrorR2: string;
|
|
79
|
-
static readonly Loading: string;
|
|
80
|
-
static readonly FacePoseMapping: {
|
|
81
|
-
[key in FacePose]: string;
|
|
82
|
-
};
|
|
83
|
-
static readonly FacePoseDemoMapping: {
|
|
84
|
-
[key in FacePose]: string;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
export declare class AgreementInfoValues extends GlobalValues {
|
|
88
|
-
static readonly Title: string;
|
|
89
|
-
static readonly Button: string;
|
|
90
|
-
static readonly Terms: string;
|
|
91
|
-
static readonly Agreement: string;
|
|
92
|
-
}
|
|
93
|
-
export declare class AgreementCheckValues extends GlobalValues {
|
|
94
|
-
static readonly ButtonYes: string;
|
|
95
|
-
static readonly ButtonNo: string;
|
|
96
|
-
}
|
|
97
23
|
export declare class ApiUrls {
|
|
98
24
|
private readonly uriEnv;
|
|
99
25
|
readonly OtpSend: string;
|
|
@@ -109,16 +35,3 @@ export declare class ApiUrls {
|
|
|
109
35
|
readonly AbortRequest: string;
|
|
110
36
|
constructor();
|
|
111
37
|
}
|
|
112
|
-
export declare class MobileRedirectValues extends GlobalValues {
|
|
113
|
-
static readonly InfoTop: string;
|
|
114
|
-
static readonly InfoBottom: string;
|
|
115
|
-
static readonly Validation: string;
|
|
116
|
-
static readonly InfoWaiting: string;
|
|
117
|
-
static readonly InfoAborted: string;
|
|
118
|
-
}
|
|
119
|
-
export declare class CameraErrorValues extends GlobalValues {
|
|
120
|
-
static readonly Title: string;
|
|
121
|
-
static readonly Description: string;
|
|
122
|
-
static readonly Button: string;
|
|
123
|
-
static readonly HowToLink: string;
|
|
124
|
-
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export interface TranslationValues {
|
|
2
|
+
GlobalValues: GlobalValues;
|
|
3
|
+
HowToValues: HowToValues;
|
|
4
|
+
LandingValues: LandingValues;
|
|
5
|
+
PhoneValidationValues: PhoneValidationValues;
|
|
6
|
+
CodeValidationValues: CodeValidationValues;
|
|
7
|
+
CompleteValues: CompleteValues;
|
|
8
|
+
IdCaptureValues: IdCaptureValues;
|
|
9
|
+
SelfieCaptureValues: SelfieCaptureValues;
|
|
10
|
+
AgreementInfoValues: AgreementInfoValues;
|
|
11
|
+
AgreementCheckValues: AgreementCheckValues;
|
|
12
|
+
MobileRedirectValues: MobileRedirectValues;
|
|
13
|
+
CameraErrorValues: CameraErrorValues;
|
|
14
|
+
}
|
|
15
|
+
export interface GlobalValues {
|
|
16
|
+
FooterText: string;
|
|
17
|
+
VideoLenght: number;
|
|
18
|
+
}
|
|
19
|
+
export interface HowToValues {
|
|
20
|
+
IdTitile: string;
|
|
21
|
+
IdSubTitileFace: string;
|
|
22
|
+
IdSubTitileBack: string;
|
|
23
|
+
IdButton: string;
|
|
24
|
+
SelfieTitile: string;
|
|
25
|
+
SelfieSubTitile: string;
|
|
26
|
+
SelfieButton: string;
|
|
27
|
+
}
|
|
28
|
+
export interface LandingValues {
|
|
29
|
+
Title: string;
|
|
30
|
+
Description: string;
|
|
31
|
+
IdInfo: string;
|
|
32
|
+
DeviceInfo: string;
|
|
33
|
+
SmsInfo: string;
|
|
34
|
+
Warning: string;
|
|
35
|
+
WarningMd: string;
|
|
36
|
+
Terms: string;
|
|
37
|
+
Button: string;
|
|
38
|
+
ButtonLeave: string;
|
|
39
|
+
}
|
|
40
|
+
export interface PhoneValidationValues {
|
|
41
|
+
Title: string;
|
|
42
|
+
Description: string;
|
|
43
|
+
Button: string;
|
|
44
|
+
Label: string;
|
|
45
|
+
}
|
|
46
|
+
export interface CodeValidationValues {
|
|
47
|
+
Title: string;
|
|
48
|
+
Description: string;
|
|
49
|
+
Button: string;
|
|
50
|
+
Error: string;
|
|
51
|
+
}
|
|
52
|
+
export interface CompleteValues {
|
|
53
|
+
Title: string;
|
|
54
|
+
Description: string;
|
|
55
|
+
Message: string;
|
|
56
|
+
}
|
|
57
|
+
export interface IdCaptureValues {
|
|
58
|
+
Button: string;
|
|
59
|
+
Title: string;
|
|
60
|
+
TitleBack: string;
|
|
61
|
+
TtileRotate: string;
|
|
62
|
+
ErrorTitleR1: string;
|
|
63
|
+
ErrorTitleR2: string;
|
|
64
|
+
ErrorR1: string;
|
|
65
|
+
ErrorR2: string;
|
|
66
|
+
IDPoseMapping: string;
|
|
67
|
+
Loading: string;
|
|
68
|
+
}
|
|
69
|
+
export interface SelfieCaptureValues {
|
|
70
|
+
Title: string;
|
|
71
|
+
FinalTitle: string;
|
|
72
|
+
ErrorTitleR1: string;
|
|
73
|
+
ErrorTitleR2: string;
|
|
74
|
+
ErrorR1: string;
|
|
75
|
+
ErrorR2: string;
|
|
76
|
+
Loading: string;
|
|
77
|
+
FacePoseMapping: string;
|
|
78
|
+
}
|
|
79
|
+
export interface AgreementInfoValues {
|
|
80
|
+
Title: string;
|
|
81
|
+
Button: string;
|
|
82
|
+
Terms: string;
|
|
83
|
+
Agreement: string;
|
|
84
|
+
}
|
|
85
|
+
export interface AgreementCheckValues {
|
|
86
|
+
ButtonYes: string;
|
|
87
|
+
ButtonNo: string;
|
|
88
|
+
}
|
|
89
|
+
export interface MobileRedirectValues {
|
|
90
|
+
InfoTop: string;
|
|
91
|
+
InfoBottom: string;
|
|
92
|
+
Validation: string;
|
|
93
|
+
InfoWaiting: string;
|
|
94
|
+
InfoAborted: string;
|
|
95
|
+
}
|
|
96
|
+
export interface CameraErrorValues {
|
|
97
|
+
Title: string;
|
|
98
|
+
Description: string;
|
|
99
|
+
Button: string;
|
|
100
|
+
HowToLink: string;
|
|
101
|
+
}
|