@incodetech/core 0.0.0-dev-20261201-e37652f8 → 0.0.0-dev-20261201-c0869cdc
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/{FaceDetectionProvider-DQYbHLxC.esm.js → FaceDetectionProvider-CEDTLBxf.esm.js} +4 -4
- package/dist/{addressSearch-gginelz3.esm.js → addressSearch-Bw456gzP.esm.js} +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-BRiJu_rv.esm.js → apiError-9sqVNr8Z.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CrBlRkAd.esm.js → authenticationManager-Dpe6eish.esm.js} +3 -3
- package/dist/{authenticationStateMachine-DLwEyCeH.esm.js → authenticationStateMachine-CE2aswQD.esm.js} +3 -3
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-Bow34QP_.d.ts → consentManager-Bx_osBME.d.ts} +13 -13
- package/dist/{deepsightCaptureConfig-BVJANeRn.esm.js → deepsightCaptureConfig-B2tbZ2Vp.esm.js} +2 -2
- package/dist/{deepsightLoader-C6nKqY9Q.esm.js → deepsightLoader-CpxjdBDn.esm.js} +4 -4
- package/dist/{desktopCameraElection-BAq-Kaiq.esm.js → desktopCameraElection-BQa5d1UN.esm.js} +4 -4
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentSignatureStateMachine-Btlg3q7j.esm.js → documentSignatureStateMachine-7lDWCoJv.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-SbEUnFoF.esm.js → dynamicFormsManager-CauvOJUq.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-Dxv36mAP.esm.js → dynamicFormsStateMachine-BMIaq2Z0.esm.js} +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-xhoOX9O9.esm.js → ekybManager-V6EDA0qj.esm.js} +1 -1
- package/dist/{ekybStateMachine-CCjUH0j3.esm.js → ekybStateMachine-C9jbzhwB.esm.js} +371 -1113
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DrGuK0kT.esm.js → ekycManager-Y9JjrHvd.esm.js} +1 -1
- package/dist/{ekycPrefillManager-C9kdwCC6.esm.js → ekycPrefillManager-DQaDT_Rk.esm.js} +2 -2
- package/dist/{ekycPrefillManager-Di6aMx68.d.ts → ekycPrefillManager-Dhy0OG_b.d.ts} +34 -34
- package/dist/{ekycPrefillStateMachine-DiQifkkd.esm.js → ekycPrefillStateMachine-BFHdjhlZ.esm.js} +122 -140
- package/dist/ekycStateMachine-3FCrYuNv.esm.js +5072 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C6liTNbu.esm.js → electronicSignatureManager-BHB7Sclu.esm.js} +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-OL8BWaIW.esm.js → faceCaptureManagerFactory-BlbO0Dgn.esm.js} +2 -2
- package/dist/{faceCaptureSetup-DQVtmb1q.esm.js → faceCaptureSetup-BLE5RXEH.esm.js} +7 -7
- package/dist/{feature-management-D_T-MG_i.esm.js → feature-management-ZraOM_Uu.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-L0J63ui-.esm.js → flowCompletionService-wzRcLeXc.esm.js} +1 -1
- package/dist/{flowServices-3OXrEqDE.esm.js → flowServices-DCAeyW6L.esm.js} +4 -4
- package/dist/{formErrors-kpskZLNT.esm.js → formErrors-BVC6OSFV.esm.js} +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CREfQNgO.esm.js → geolocationManager-B_WD0VH8.esm.js} +1 -1
- package/dist/{geolocationStateMachine-D9_bBr19.esm.js → geolocationStateMachine-Dc_q5hML.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-B5ZN7scK.esm.js → idCaptureManager-VhvvQuKJ.esm.js} +4 -4
- package/dist/{idCaptureServices-7zZ457LW.esm.js → idCaptureServices-lhavn2k4.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-FP4j-qeT.esm.js → idCaptureStateMachine-B8tMRIJP.esm.js} +11 -11
- package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-voLpv_jJ.d.ts} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-BE6LHcuP.d.ts → identityReuseManager-CvQdfhKq.d.ts} +4 -4
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-tUsFKBCN.esm.js → kybChecksManager-BqsFG5r5.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-D1q4K7Xr.esm.js → kybChecksStateMachine-YuwBEkNg.esm.js} +3 -3
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-De9ZX6o4.d.ts → mandatoryConsentManager-BYjam2YH.d.ts} +9 -9
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-OcyZO_w6.esm.js → recordingService-DwJWzO_3.esm.js} +1 -1
- package/dist/{runChildModule-BuZFd3Df.esm.js → runChildModule-BLam7j8s.esm.js} +1 -1
- package/dist/{sdkVersion-BY8g-EEL.esm.js → sdkVersion-CdueUO8C.esm.js} +1 -1
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-DIVWh0ih.esm.js → selfieErrorUtils-CueHMVat.esm.js} +1 -1
- package/dist/{selfieManager-DQ5xB8y6.esm.js → selfieManager-DZwDoJps.esm.js} +3 -3
- package/dist/{selfieStateMachine-fyNh2r31.esm.js → selfieStateMachine-B1OtDQRl.esm.js} +3 -3
- package/dist/{session-DKnCv6zu.esm.js → session-Bx_UFrZi.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-q5b8Qwr3.esm.js → sessionInitializer-ogkILAkt.esm.js} +4 -4
- package/dist/{setup-JGwc0kgu.esm.js → setup-CQfozJVU.esm.js} +5 -5
- package/dist/{trim-OmrUb6mG.esm.js → trim-JimszAvC.esm.js} +7 -1
- package/dist/trueSight-ChfrtmTL.esm.js +1 -0
- package/dist/{trueSightService-Dx8AqgKD.esm.js → trueSightService-CINABvZv.esm.js} +1 -1
- package/dist/{uppercase-CwlIuiwR.esm.js → uppercase-BShuo-xK.esm.js} +24 -2
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-AoMytGBD.esm.js → videoSelfieCameraWarmer-BsN3VwgP.esm.js} +3 -3
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +18 -18
- package/package.json +3 -3
- package/dist/ekycStateMachine-BmMdLe2G.esm.js +0 -9328
- package/dist/trueSight-9VsfHXFt.esm.js +0 -1
package/dist/ekyc-prefill.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as EkycPrefillFieldDef, f as EkycPrefillValues, i as EkycPrefillErrorKind, l as EkycPrefillModuleConfig, n as EkycPrefillConfigField, o as EkycPrefillFieldError, s as EkycPrefillFieldErrors, t as EkycPrefillConfig, u as EkycPrefillServedField } from "./types-g3NuVCT9.js";
|
|
2
|
-
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-
|
|
2
|
+
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-Dhy0OG_b.js";
|
|
3
3
|
//#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
|
package/dist/ekyc-prefill.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
2
|
-
import { t as createEkycPrefillManager } from "./ekycPrefillManager-
|
|
1
|
+
import { r as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-BFHdjhlZ.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-DQaDT_Rk.esm.js";
|
|
3
3
|
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { d as toEkycConfig } from "./ekycUtils-DfBNTcvX.esm.js";
|
|
2
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
2
|
+
import { t as ekycMachine } from "./ekycStateMachine-3FCrYuNv.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-Y9JjrHvd.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-
|
|
6
|
+
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-3FCrYuNv.esm.js";
|
|
7
7
|
//#region src/modules/ekyc/ekycActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYC actor.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
2
2
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
-
import { n as ekycPrefillFormCheck, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
4
|
-
import { s as validateAllValues } from "./formErrors-
|
|
3
|
+
import { n as ekycPrefillFormCheck, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-BFHdjhlZ.esm.js";
|
|
4
|
+
import { s as validateAllValues } from "./formErrors-BVC6OSFV.esm.js";
|
|
5
5
|
//#region src/modules/ekyc-prefill/ekycPrefillActor.ts
|
|
6
6
|
/** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
|
|
7
7
|
function createEkycPrefillActor(options = {}) {
|
|
@@ -27,15 +27,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
27
27
|
} | {
|
|
28
28
|
type: "CLOSE";
|
|
29
29
|
}, {
|
|
30
|
-
[x: string]: ActorRefFromLogic<PromiseActorLogic<
|
|
30
|
+
[x: string]: ActorRefFromLogic<PromiseActorLogic<void, {
|
|
31
31
|
hasPhone: boolean;
|
|
32
|
-
}, EventObject>> | undefined;
|
|
32
|
+
}, EventObject>> | ActorRefFromLogic<PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>> | undefined;
|
|
33
33
|
}, Values<{
|
|
34
|
-
submit: {
|
|
35
|
-
src: "submit";
|
|
36
|
-
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
37
|
-
id: string | undefined;
|
|
38
|
-
};
|
|
39
34
|
loadPhoneRules: {
|
|
40
35
|
src: "loadPhoneRules";
|
|
41
36
|
logic: PromiseActorLogic<void, {
|
|
@@ -43,11 +38,12 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
43
38
|
}, EventObject>;
|
|
44
39
|
id: string | undefined;
|
|
45
40
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
submit: {
|
|
42
|
+
src: "submit";
|
|
43
|
+
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
44
|
+
id: string | undefined;
|
|
50
45
|
};
|
|
46
|
+
}>, Values<{
|
|
51
47
|
applyForm: {
|
|
52
48
|
type: "applyForm";
|
|
53
49
|
params: NonReducibleUnknown;
|
|
@@ -80,11 +76,11 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
80
76
|
type: "setSubmitError";
|
|
81
77
|
params: NonReducibleUnknown;
|
|
82
78
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
params: unknown;
|
|
79
|
+
clearError: {
|
|
80
|
+
type: "clearError";
|
|
81
|
+
params: NonReducibleUnknown;
|
|
87
82
|
};
|
|
83
|
+
}>, Values<{
|
|
88
84
|
phoneRulesFailed: {
|
|
89
85
|
type: "phoneRulesFailed";
|
|
90
86
|
params: unknown;
|
|
@@ -97,6 +93,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
97
93
|
type: "canRender";
|
|
98
94
|
params: unknown;
|
|
99
95
|
};
|
|
96
|
+
isValid: {
|
|
97
|
+
type: "isValid";
|
|
98
|
+
params: unknown;
|
|
99
|
+
};
|
|
100
100
|
isBadRequest: {
|
|
101
101
|
type: "isBadRequest";
|
|
102
102
|
params: unknown;
|
|
@@ -109,20 +109,24 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
109
109
|
type: "isLimitReached";
|
|
110
110
|
params: unknown;
|
|
111
111
|
};
|
|
112
|
-
}>, never, "error" | "idle" | "closed" | "finished" | "
|
|
112
|
+
}>, never, "error" | "idle" | "closed" | "finished" | "misconfigured" | "submitting" | "limitReached" | {
|
|
113
113
|
form: "inputting" | "validating";
|
|
114
114
|
}, string, EkycPrefillInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
115
115
|
readonly id: "ekycPrefill";
|
|
116
116
|
readonly initial: "idle";
|
|
117
117
|
readonly context: ({ input }: {
|
|
118
118
|
spawn: {
|
|
119
|
-
<TSrc extends "
|
|
120
|
-
src: "
|
|
121
|
-
logic: PromiseActorLogic<
|
|
119
|
+
<TSrc extends "loadPhoneRules" | "submit">(logic: TSrc, ...[options]: ({
|
|
120
|
+
src: "loadPhoneRules";
|
|
121
|
+
logic: PromiseActorLogic<void, {
|
|
122
|
+
hasPhone: boolean;
|
|
123
|
+
}, EventObject>;
|
|
122
124
|
id: string | undefined;
|
|
123
125
|
} extends (infer T) ? T extends {
|
|
124
|
-
src: "
|
|
125
|
-
logic: PromiseActorLogic<
|
|
126
|
+
src: "loadPhoneRules";
|
|
127
|
+
logic: PromiseActorLogic<void, {
|
|
128
|
+
hasPhone: boolean;
|
|
129
|
+
}, EventObject>;
|
|
126
130
|
id: string | undefined;
|
|
127
131
|
} ? T extends {
|
|
128
132
|
src: TSrc;
|
|
@@ -132,16 +136,12 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
132
136
|
input?: InputFrom<T["logic"]> | undefined;
|
|
133
137
|
syncSnapshot?: boolean;
|
|
134
138
|
} & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
|
|
135
|
-
src: "
|
|
136
|
-
logic: PromiseActorLogic<
|
|
137
|
-
hasPhone: boolean;
|
|
138
|
-
}, EventObject>;
|
|
139
|
+
src: "submit";
|
|
140
|
+
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
139
141
|
id: string | undefined;
|
|
140
142
|
} extends (infer T_1) ? T_1 extends {
|
|
141
|
-
src: "
|
|
142
|
-
logic: PromiseActorLogic<
|
|
143
|
-
hasPhone: boolean;
|
|
144
|
-
}, EventObject>;
|
|
143
|
+
src: "submit";
|
|
144
|
+
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
145
145
|
id: string | undefined;
|
|
146
146
|
} ? T_1 extends {
|
|
147
147
|
src: TSrc;
|
|
@@ -151,11 +151,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
151
151
|
input?: InputFrom<T_1["logic"]> | undefined;
|
|
152
152
|
syncSnapshot?: boolean;
|
|
153
153
|
} & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never)): ActorRefFromLogic<GetConcreteByKey<Values<{
|
|
154
|
-
submit: {
|
|
155
|
-
src: "submit";
|
|
156
|
-
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
157
|
-
id: string | undefined;
|
|
158
|
-
};
|
|
159
154
|
loadPhoneRules: {
|
|
160
155
|
src: "loadPhoneRules";
|
|
161
156
|
logic: PromiseActorLogic<void, {
|
|
@@ -163,6 +158,11 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
163
158
|
}, EventObject>;
|
|
164
159
|
id: string | undefined;
|
|
165
160
|
};
|
|
161
|
+
submit: {
|
|
162
|
+
src: "submit";
|
|
163
|
+
logic: PromiseActorLogic<EkycPrefillSubmitResponse, SubmitInput, EventObject>;
|
|
164
|
+
id: string | undefined;
|
|
165
|
+
};
|
|
166
166
|
}>, "src", TSrc>["logic"]>;
|
|
167
167
|
<TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: ({
|
|
168
168
|
id?: never;
|
package/dist/{ekycPrefillStateMachine-DiQifkkd.esm.js → ekycPrefillStateMachine-BFHdjhlZ.esm.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
3
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError } from "./apiError-9sqVNr8Z.esm.js";
|
|
4
4
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
7
|
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
8
8
|
import { a as hasNameCharacters, c as isEmailFormat, d as resolvePrefill, f as isValidRut, h as isValidEsDni, i as isNotFuture, l as digitCountError, m as isValidFiPersonalIdentityCode, n as hasScriptCharacters, o as isWithinMaxAge, p as isValidInDrivingLicenseNumber, r as isInNumericRange, s as isPoBox, t as SCRIPT_PATTERNS, u as hasDigitCount } from "./scriptCharacters-D7swUycV.esm.js";
|
|
9
|
+
import { a as digitGroups, c as expandDefinitions, i as e164NoPlus, n as stripSeparators, o as createBundledDefinitionSource, r as nationalNumber, s as matchesCharTemplate, t as uppercase } from "./uppercase-BShuo-xK.esm.js";
|
|
9
10
|
import { t as validateCNPJ } from "./cnpj-CVq3vL39.esm.js";
|
|
10
|
-
import { a as buildPayload, i as checkSupport, n as e164, r as resolveForm, t as trim } from "./trim-
|
|
11
|
-
import { a as
|
|
12
|
-
import { a as phoneDeps, c as validateFieldValue, d as supportedIds, i as allowedCharacters, l as withMessage, n as requiredError, o as setFieldValue, r as oneOfRequired, s as validateAllValues, t as STRUCTURE_MESSAGES, u as createFormRegistry } from "./formErrors-kpskZLNT.esm.js";
|
|
11
|
+
import { a as buildPayload, i as checkSupport, n as e164, r as resolveForm, t as trim } from "./trim-JimszAvC.esm.js";
|
|
12
|
+
import { a as phoneDeps, c as validateFieldValue, d as supportedIds, i as allowedCharacters, l as withMessage, n as requiredError, o as setFieldValue, r as oneOfRequired, s as validateAllValues, t as STRUCTURE_MESSAGES, u as createFormRegistry } from "./formErrors-BVC6OSFV.esm.js";
|
|
13
13
|
import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
|
|
14
14
|
//#region src/internal/forms/formatValue.ts
|
|
15
15
|
/**
|
|
@@ -63,9 +63,114 @@ function toEkycPrefillConfig(raw) {
|
|
|
63
63
|
autoExecution: config.autoExecution === true
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
const EKYCPREFILL_DEFINITIONS = /* @__PURE__ */ expandDefinitions([
|
|
67
|
+
{
|
|
68
|
+
name: "taxIdNumber",
|
|
69
|
+
kind: "text",
|
|
70
|
+
group: "ssn",
|
|
71
|
+
required: true,
|
|
72
|
+
label: { key: "verification.labels.taxId" },
|
|
73
|
+
displayLabel: {
|
|
74
|
+
key: "verification.labels.cpf",
|
|
75
|
+
text: "CPF"
|
|
76
|
+
},
|
|
77
|
+
input: {
|
|
78
|
+
maxLength: 14,
|
|
79
|
+
keyboard: "numeric",
|
|
80
|
+
format: [{
|
|
81
|
+
id: "digitGroups",
|
|
82
|
+
params: {
|
|
83
|
+
groups: [
|
|
84
|
+
3,
|
|
85
|
+
3,
|
|
86
|
+
3,
|
|
87
|
+
2
|
|
88
|
+
],
|
|
89
|
+
separator: ".",
|
|
90
|
+
separators: [
|
|
91
|
+
".",
|
|
92
|
+
".",
|
|
93
|
+
"-"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}]
|
|
97
|
+
},
|
|
98
|
+
rules: [{ id: "cpf" }],
|
|
99
|
+
payload: { transforms: [{ id: "trim" }, {
|
|
100
|
+
id: "stripSeparators",
|
|
101
|
+
params: { chars: ".-" }
|
|
102
|
+
}] }
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "phone",
|
|
106
|
+
kind: "phone",
|
|
107
|
+
group: "phone",
|
|
108
|
+
required: true,
|
|
109
|
+
label: { key: "verification.labels.phone" },
|
|
110
|
+
input: { autofill: "phone" },
|
|
111
|
+
phone: { lockCountry: true },
|
|
112
|
+
rules: [{ id: "phoneFormat" }],
|
|
113
|
+
payload: { transforms: [{ id: "e164" }] }
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "dateOfBirth",
|
|
117
|
+
kind: "date",
|
|
118
|
+
group: "dateOfBirth",
|
|
119
|
+
label: { key: "verification.labels.dateOfBirth" },
|
|
120
|
+
input: { autofill: "birthday" },
|
|
121
|
+
rules: [{ id: "notFuture" }, {
|
|
122
|
+
id: "maxAge",
|
|
123
|
+
params: { years: 120 }
|
|
124
|
+
}],
|
|
125
|
+
payload: { transforms: [{ id: "trim" }] }
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "ssn",
|
|
129
|
+
kind: "text",
|
|
130
|
+
group: "ssn",
|
|
131
|
+
widget: "masked",
|
|
132
|
+
label: { key: "verification.labels.ssn" },
|
|
133
|
+
input: {
|
|
134
|
+
maxLength: 11,
|
|
135
|
+
keyboard: "numeric",
|
|
136
|
+
format: [{
|
|
137
|
+
id: "digitGroups",
|
|
138
|
+
params: {
|
|
139
|
+
groups: [
|
|
140
|
+
3,
|
|
141
|
+
2,
|
|
142
|
+
4
|
|
143
|
+
],
|
|
144
|
+
separator: "-"
|
|
145
|
+
}
|
|
146
|
+
}]
|
|
147
|
+
},
|
|
148
|
+
rules: [{ id: "ssnFormat" }],
|
|
149
|
+
payload: { transforms: [{ id: "trim" }, {
|
|
150
|
+
id: "stripSeparators",
|
|
151
|
+
params: { chars: "-" }
|
|
152
|
+
}] }
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: "surName",
|
|
156
|
+
kind: "text",
|
|
157
|
+
group: "name",
|
|
158
|
+
label: { key: "verification.labels.lastName" },
|
|
159
|
+
placeholder: { key: "verification.placeholder.lastName" },
|
|
160
|
+
input: {
|
|
161
|
+
maxLength: 100,
|
|
162
|
+
autofill: "familyName"
|
|
163
|
+
},
|
|
164
|
+
rules: [{ id: "nameCharacters" }],
|
|
165
|
+
payload: { transforms: [{ id: "trim" }] }
|
|
166
|
+
}
|
|
167
|
+
], [{
|
|
168
|
+
static: { plugins: ["kyc-prefill"] },
|
|
169
|
+
context: {
|
|
170
|
+
countryCode: "country",
|
|
171
|
+
source: "source"
|
|
172
|
+
}
|
|
173
|
+
}], {
|
|
69
174
|
"ekycprefill/BR/BR_PREFILL": {
|
|
70
175
|
schemaVersion: 1,
|
|
71
176
|
vocabulary: "1.4",
|
|
@@ -73,50 +178,8 @@ const EKYCPREFILL_DEFINITIONS = {
|
|
|
73
178
|
module: "ekycprefill",
|
|
74
179
|
country: "BR",
|
|
75
180
|
source: "BR_PREFILL",
|
|
76
|
-
fields: [
|
|
77
|
-
|
|
78
|
-
kind: "text",
|
|
79
|
-
group: "ssn",
|
|
80
|
-
required: true,
|
|
81
|
-
label: { key: "verification.labels.taxId" },
|
|
82
|
-
displayLabel: {
|
|
83
|
-
key: "verification.labels.cpf",
|
|
84
|
-
text: "CPF"
|
|
85
|
-
},
|
|
86
|
-
input: {
|
|
87
|
-
maxLength: 14,
|
|
88
|
-
keyboard: "numeric",
|
|
89
|
-
format: [{
|
|
90
|
-
id: "digitGroups",
|
|
91
|
-
params: {
|
|
92
|
-
groups: [
|
|
93
|
-
3,
|
|
94
|
-
3,
|
|
95
|
-
3,
|
|
96
|
-
2
|
|
97
|
-
],
|
|
98
|
-
separator: ".",
|
|
99
|
-
separators: [
|
|
100
|
-
".",
|
|
101
|
-
".",
|
|
102
|
-
"-"
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}]
|
|
106
|
-
},
|
|
107
|
-
rules: [{ id: "cpf" }],
|
|
108
|
-
payload: { transforms: [{ id: "trim" }, {
|
|
109
|
-
id: "stripSeparators",
|
|
110
|
-
params: { chars: ".-" }
|
|
111
|
-
}] }
|
|
112
|
-
}],
|
|
113
|
-
submit: {
|
|
114
|
-
static: { plugins: ["kyc-prefill"] },
|
|
115
|
-
context: {
|
|
116
|
-
countryCode: "country",
|
|
117
|
-
source: "source"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
181
|
+
fields: [0],
|
|
182
|
+
submit: 0
|
|
120
183
|
},
|
|
121
184
|
"ekycprefill/US/US_PREFILL": {
|
|
122
185
|
schemaVersion: 1,
|
|
@@ -126,69 +189,10 @@ const EKYCPREFILL_DEFINITIONS = {
|
|
|
126
189
|
country: "US",
|
|
127
190
|
source: "US_PREFILL",
|
|
128
191
|
fields: [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
required: true,
|
|
134
|
-
label: { key: "verification.labels.phone" },
|
|
135
|
-
input: { autofill: "phone" },
|
|
136
|
-
phone: { lockCountry: true },
|
|
137
|
-
rules: [{ id: "phoneFormat" }],
|
|
138
|
-
payload: { transforms: [{ id: "e164" }] }
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: "dateOfBirth",
|
|
142
|
-
kind: "date",
|
|
143
|
-
group: "dateOfBirth",
|
|
144
|
-
label: { key: "verification.labels.dateOfBirth" },
|
|
145
|
-
input: { autofill: "birthday" },
|
|
146
|
-
rules: [{ id: "notFuture" }, {
|
|
147
|
-
id: "maxAge",
|
|
148
|
-
params: { years: 120 }
|
|
149
|
-
}],
|
|
150
|
-
payload: { transforms: [{ id: "trim" }] }
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
name: "ssn",
|
|
154
|
-
kind: "text",
|
|
155
|
-
group: "ssn",
|
|
156
|
-
widget: "masked",
|
|
157
|
-
label: { key: "verification.labels.ssn" },
|
|
158
|
-
input: {
|
|
159
|
-
maxLength: 11,
|
|
160
|
-
keyboard: "numeric",
|
|
161
|
-
format: [{
|
|
162
|
-
id: "digitGroups",
|
|
163
|
-
params: {
|
|
164
|
-
groups: [
|
|
165
|
-
3,
|
|
166
|
-
2,
|
|
167
|
-
4
|
|
168
|
-
],
|
|
169
|
-
separator: "-"
|
|
170
|
-
}
|
|
171
|
-
}]
|
|
172
|
-
},
|
|
173
|
-
rules: [{ id: "ssnFormat" }],
|
|
174
|
-
payload: { transforms: [{ id: "trim" }, {
|
|
175
|
-
id: "stripSeparators",
|
|
176
|
-
params: { chars: "-" }
|
|
177
|
-
}] }
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
name: "surName",
|
|
181
|
-
kind: "text",
|
|
182
|
-
group: "name",
|
|
183
|
-
label: { key: "verification.labels.lastName" },
|
|
184
|
-
placeholder: { key: "verification.placeholder.lastName" },
|
|
185
|
-
input: {
|
|
186
|
-
maxLength: 100,
|
|
187
|
-
autofill: "familyName"
|
|
188
|
-
},
|
|
189
|
-
rules: [{ id: "nameCharacters" }],
|
|
190
|
-
payload: { transforms: [{ id: "trim" }] }
|
|
191
|
-
}
|
|
192
|
+
1,
|
|
193
|
+
2,
|
|
194
|
+
3,
|
|
195
|
+
4
|
|
192
196
|
],
|
|
193
197
|
groupRules: [{
|
|
194
198
|
id: "oneOfRequired",
|
|
@@ -202,13 +206,7 @@ const EKYCPREFILL_DEFINITIONS = {
|
|
|
202
206
|
text: "Provide at least one of {{fields}}"
|
|
203
207
|
}
|
|
204
208
|
}],
|
|
205
|
-
submit:
|
|
206
|
-
static: { plugins: ["kyc-prefill"] },
|
|
207
|
-
context: {
|
|
208
|
-
countryCode: "country",
|
|
209
|
-
source: "source"
|
|
210
|
-
}
|
|
211
|
-
}
|
|
209
|
+
submit: 0
|
|
212
210
|
},
|
|
213
211
|
"ekycprefill/US/US_PREFILL_EXPRESS": {
|
|
214
212
|
schemaVersion: 1,
|
|
@@ -217,26 +215,10 @@ const EKYCPREFILL_DEFINITIONS = {
|
|
|
217
215
|
module: "ekycprefill",
|
|
218
216
|
country: "US",
|
|
219
217
|
source: "US_PREFILL_EXPRESS",
|
|
220
|
-
fields: [
|
|
221
|
-
|
|
222
|
-
kind: "phone",
|
|
223
|
-
group: "phone",
|
|
224
|
-
required: true,
|
|
225
|
-
label: { key: "verification.labels.phone" },
|
|
226
|
-
input: { autofill: "phone" },
|
|
227
|
-
phone: { lockCountry: true },
|
|
228
|
-
rules: [{ id: "phoneFormat" }],
|
|
229
|
-
payload: { transforms: [{ id: "e164" }] }
|
|
230
|
-
}],
|
|
231
|
-
submit: {
|
|
232
|
-
static: { plugins: ["kyc-prefill"] },
|
|
233
|
-
context: {
|
|
234
|
-
countryCode: "country",
|
|
235
|
-
source: "source"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
218
|
+
fields: [1],
|
|
219
|
+
submit: 0
|
|
238
220
|
}
|
|
239
|
-
};
|
|
221
|
+
});
|
|
240
222
|
//#endregion
|
|
241
223
|
//#region src/internal/forms/rules/charTemplate.ts
|
|
242
224
|
const isTemplate = (value) => typeof value === "string" && value !== "";
|