@incodetech/core 0.0.0-dev-20261201-bcf41e7a → 0.0.0-dev-20261201-05907dca
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-C5dOOMt6.esm.js → FaceDetectionProvider-BB4a2cIV.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-CJO7D9eZ.esm.js → apiError-D1Qva1f7.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Cv_jCMGJ.d.ts → authenticationManager-DyLXbx0U.d.ts} +1 -1
- package/dist/{authenticationManager-aN4L7zuz.esm.js → authenticationManager-N86YLlu6.esm.js} +3 -3
- package/dist/{authenticationStateMachine-CrqkFPRT.esm.js → authenticationStateMachine-BjbEA9CF.esm.js} +3 -3
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-9ThuTAcx.d.ts → consentManager-DlvhoJYc.d.ts} +5 -5
- package/dist/curp-validation.d.ts +1 -1
- package/dist/{curpValidationManager-DFWjZq3i.d.ts → curpValidationManager-equZ8npF.d.ts} +1 -1
- package/dist/{deepsightCaptureConfig-C66ahpbd.esm.js → deepsightCaptureConfig-Dy79arCi.esm.js} +2 -2
- package/dist/{deepsightLoader-C79inICH.esm.js → deepsightLoader-Cfw5H-p-.esm.js} +4 -4
- package/dist/{desktopCameraElection-U5cGf_FU.esm.js → desktopCameraElection-f96yiNjK.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-sJWgqtUy.d.ts → documentCaptureManager-DLWTqjUr.d.ts} +1 -1
- package/dist/{documentSignatureStateMachine-DqqwvvDm.esm.js → documentSignatureStateMachine-D82VbAxX.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DK7vxpMH.esm.js → dynamicFormsManager-BpAjLc3w.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-DLF8DYpl.esm.js → dynamicFormsStateMachine-oqclgsxh.esm.js} +1 -1
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-DP1MEUQ_.esm.js → ekybManager-DYzxc9Vb.esm.js} +1 -1
- package/dist/{ekybStateMachine-DYUl09cC.esm.js → ekybStateMachine-BqNA3ecV.esm.js} +1 -1
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-Y9JjrHvd.esm.js → ekycManager--prF1NF-.esm.js} +1 -1
- package/dist/{ekycManager-P1jYeS8s.d.ts → ekycManager-C0eg6Bp1.d.ts} +1 -1
- package/dist/{ekycPrefillManager-Di6aMx68.d.ts → ekycPrefillManager-BwmPXfhY.d.ts} +4 -4
- package/dist/{ekycPrefillManager-CZldcVY5.esm.js → ekycPrefillManager-CHyWI8RC.esm.js} +1 -1
- package/dist/{ekycPrefillStateMachine-B8T-GZIi.esm.js → ekycPrefillStateMachine-BDo-aBGD.esm.js} +1 -1
- package/dist/{ekycStateMachine-3FCrYuNv.esm.js → ekycStateMachine-BkLaohif.esm.js} +114 -28
- package/dist/{ekycUtils-DfBNTcvX.esm.js → ekycUtils-hvgP9yJm.esm.js} +75 -9
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DnpxTBha.esm.js → electronicSignatureManager-CDKCezLl.esm.js} +1 -1
- package/dist/extensibility.d.ts +13 -13
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-B15Ry9Bj.esm.js → faceCaptureManagerFactory-CET4AIbO.esm.js} +2 -2
- package/dist/{faceCaptureManagerFactory-2oqROMSB.d.ts → faceCaptureManagerFactory-au_c-DNF.d.ts} +3 -3
- package/dist/{faceCaptureSetup-B944AKd-.esm.js → faceCaptureSetup-D3NOCUkm.esm.js} +7 -7
- package/dist/{feature-management-BQSa2eVc.esm.js → feature-management-EGEvYULX.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +6 -6
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-D2aikrG9.esm.js → flowCompletionService-D3SBykKt.esm.js} +1 -1
- package/dist/{flowServices-E3lKW8An.esm.js → flowServices-CekwLaIy.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-AasT8XSO.esm.js → geolocationManager-zgm7knTk.esm.js} +1 -1
- package/dist/{geolocationStateMachine-BhtSd3lc.esm.js → geolocationStateMachine-B0Qwu1_j.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-BMsGPjcf.d.ts → idCaptureManager-BsUU-w59.d.ts} +2 -2
- package/dist/{idCaptureManager-DHmvbvgU.esm.js → idCaptureManager-DOKK5pRi.esm.js} +4 -4
- package/dist/{idCaptureServices-DBtFQvpt.esm.js → idCaptureServices-BS1ucxoL.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-BoTNUq6T.esm.js → idCaptureStateMachine-C8zgjyes.esm.js} +11 -11
- package/dist/{idOcrManager-DflRx-_u.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
- package/dist/{index-k1LUfkAo.d.ts → index-D_ekSPsL.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-BN5CnCkm.esm.js → kybChecksManager-BrouzbHU.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-CMVaVAsg.esm.js → kybChecksStateMachine-CpFcvA_H.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-C5o1gUTc.d.ts → mandatoryConsentManager-atisC67v.d.ts} +6 -6
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-Dy27FR2M.esm.js → recordingService-Drjsms0b.esm.js} +1 -1
- package/dist/{runChildModule-DSSE84df.esm.js → runChildModule-2P5MR9As.esm.js} +1 -1
- package/dist/{sdkVersion-BSGdHq76.esm.js → sdkVersion-B_7y7XrS.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-Bh1ocgV4.esm.js → selfieErrorUtils-CCFbepk2.esm.js} +1 -1
- package/dist/{selfieManager-C9ZJq0Z3.esm.js → selfieManager-DlD0PBFx.esm.js} +3 -3
- package/dist/{selfieManager-RgcJwpHg.d.ts → selfieManager-f_H2gWoq.d.ts} +1 -1
- package/dist/{selfieStateMachine-xLHsQPLy.esm.js → selfieStateMachine-BvzrAiKy.esm.js} +3 -3
- package/dist/{session-Bty0Uulw.esm.js → session-D227v2ne.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CvOQVUFs.esm.js → sessionInitializer-CtHdsTe_.esm.js} +4 -4
- package/dist/{setup-BIu7oJOZ.esm.js → setup-D2gzk_iV.esm.js} +5 -5
- package/dist/trueSight-3RYjjVdb.esm.js +1 -0
- package/dist/{trueSightService-B9lkK1VF.esm.js → trueSightService-uXg8m1Ag.esm.js} +1 -1
- package/dist/{types-BVgTvWOP.d.ts → types-Bw8pDpKj.d.ts} +1 -1
- package/dist/{types-B8KMmCCy.d.ts → types-CDB9tjCQ.d.ts} +10 -1
- package/dist/types-Ceg3vxtu.d.ts +6 -0
- package/dist/{types-YS7g_P7z.d.ts → types-DCFPnmPC.d.ts} +1 -1
- package/dist/{types-BV2Tl1wE.d.ts → types-DtKCkoHt.d.ts} +1 -1
- package/dist/{types-DH4VaTRC.d.ts → types-DwrpHPgX.d.ts} +1 -1
- package/dist/{types-DAhpyjuI.d.ts → types-DzE5T1IT.d.ts} +1 -1
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-Dg-NDqO8.esm.js → videoSelfieCameraWarmer-DRwUwNvl.esm.js} +3 -3
- package/dist/{videoSelfieStepDetector-DCOmz3yk.d.ts → videoSelfieStepDetector-xKgkFKob.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +19 -19
- package/package.json +2 -2
- package/dist/trueSight-BOq-NOAC.esm.js +0 -1
- package/dist/types-RLVmm_Hf.d.ts +0 -6
|
@@ -11,7 +11,7 @@ import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
|
11
11
|
import { a as formatPostalCode, c as getPostalCodeMaxLength, d as fillFromSuggestion, f as getStreetLevelErrorForSuggestion, i as PAYLOAD_TRANSFORMS, l as validatePostalCode, n as searchAddress, o as getPostalCodeErrorKey, p as keepSuggestionInOptions, r as standardDeps, s as getPostalCodeErrorParams, t as debounceSearchActor, u as STREET_LEVEL_REQUIRED_ERROR } from "./addressSearch-Bw456gzP.esm.js";
|
|
12
12
|
import { a as buildPayload, i as checkSupport, l as DYNAMIC_REQUIRED_KEY, r as resolveForm } from "./trim-JimszAvC.esm.js";
|
|
13
13
|
import { t as isFormDefinitionsEnabled } from "./formDefinitionsRollout-B-c4yO2z.esm.js";
|
|
14
|
-
import { C as
|
|
14
|
+
import { A as STREET_SOURCES, C as HOUSE_NO_SOURCES, D as ONE_OF_REQUIRED_GROUPS, E as NAME_SOURCES, M as VOCABULARY, N as EKYC_INDEX, O as POSTAL_CODE_SOURCES, S as EMAIL_SOURCES, T as MODULE_PREFILL_RISK_ADDONS, _ as ANY_OF_RISK_ADDONS, a as getEKYCCountry, b as COUNTRY_CODE_OMITTED_SOURCES, c as getEkycRiskAddons, d as mapToEKYCvalue, f as resolveEkycSource, g as ADDRESS_STATE_SOURCES, h as withRiskAddonFields, i as getAnyOfRiskAddonFields, j as TAX_ID_SOURCES, k as STATE_CODE_HINTS, l as getRiskAddonFields, m as toEkycConfigFor, o as getEKYCDisplayModes, r as getAnyOfOnlyFields, s as getEKYCFields, t as EKYC_GROUP_KEYS, u as isFieldOptional, v as APARTMENT_SOURCES, w as MIDDLE_NAME_SOURCES, x as COUNTRY_SELECTOR_DISABLED_SOURCES, y as CITY_SOURCES } from "./ekycUtils-hvgP9yJm.esm.js";
|
|
15
15
|
import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
|
|
16
16
|
import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
|
|
17
17
|
import { n as hasAllowedCharacters } from "./allowedCharacters-Bnir--CN.esm.js";
|
|
@@ -3938,12 +3938,16 @@ const PREFILL_ORIGINS = new Map(PREFILL_ORIGIN_ENTRIES.flatMap((origin) => (orig
|
|
|
3938
3938
|
/**
|
|
3939
3939
|
* Risk add-ons whose earlier module already captured a group's value, so the
|
|
3940
3940
|
* group fills from that module whatever its source says (as in Web SDK 1):
|
|
3941
|
-
* each origin's `riskAddons` and `groups`.
|
|
3941
|
+
* each origin's `riskAddons` and `groups`. An add-on can name several origins
|
|
3942
|
+
* (Age Verify: the phone and the email module).
|
|
3942
3943
|
*/
|
|
3943
|
-
const RISK_ADDON_ORIGINS =
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3944
|
+
const RISK_ADDON_ORIGINS = PREFILL_ORIGIN_ENTRIES.reduce((byAddon, origin) => {
|
|
3945
|
+
for (const addon of origin.riskAddons ?? []) byAddon.set(addon, [...byAddon.get(addon) ?? [], {
|
|
3946
|
+
groups: origin.groups ?? [],
|
|
3947
|
+
origin: origin.id
|
|
3948
|
+
}]);
|
|
3949
|
+
return byAddon;
|
|
3950
|
+
}, /* @__PURE__ */ new Map());
|
|
3947
3951
|
/** Origins whose values another module verified (`locks`). */
|
|
3948
3952
|
const LOCKING_ORIGINS = PREFILL_ORIGIN_ENTRIES.filter((origin) => origin.locks).map((origin) => origin.id);
|
|
3949
3953
|
function toEkycResolveContext(verificationFields, enablePhoneRisk, displayModes = {}, riskAddons = []) {
|
|
@@ -3958,11 +3962,7 @@ function toEkycResolveContext(verificationFields, enablePhoneRisk, displayModes
|
|
|
3958
3962
|
if (mode) modes[group] = mode;
|
|
3959
3963
|
}
|
|
3960
3964
|
const addons = enablePhoneRisk ? [...riskAddons, "phoneCheck"] : riskAddons;
|
|
3961
|
-
for (const addon of addons)
|
|
3962
|
-
const entry = RISK_ADDON_ORIGINS.get(addon);
|
|
3963
|
-
if (!entry) continue;
|
|
3964
|
-
for (const group of entry.groups) origins[group] = entry.origin;
|
|
3965
|
-
}
|
|
3965
|
+
for (const addon of addons) for (const entry of RISK_ADDON_ORIGINS.get(addon) ?? []) for (const group of entry.groups) origins[group] = entry.origin;
|
|
3966
3966
|
return {
|
|
3967
3967
|
groups: Object.fromEntries(groups.map(([group, key]) => [group, Boolean(verificationFields[key])])),
|
|
3968
3968
|
phoneRisk: enablePhoneRisk,
|
|
@@ -4034,6 +4034,71 @@ function withOneOfRequired(def, oneOf) {
|
|
|
4034
4034
|
return def.required ? [...rules, oneOf] : [oneOf, ...rules];
|
|
4035
4035
|
}
|
|
4036
4036
|
/**
|
|
4037
|
+
* Adds each configured any-of add-on's "at least one" rule (Age Verify's email
|
|
4038
|
+
* or phone) to today's builder's fields, when all of them are optional. A
|
|
4039
|
+
* member required on its own already gives the add-on its value. Today's
|
|
4040
|
+
* builder names the email and phone fields after their verification field.
|
|
4041
|
+
*/
|
|
4042
|
+
function applyAnyOfRiskAddons(defs, riskAddons) {
|
|
4043
|
+
for (const addon of riskAddons) {
|
|
4044
|
+
const message = ANY_OF_RISK_ADDONS[addon];
|
|
4045
|
+
if (!message) continue;
|
|
4046
|
+
const names = new Set(getAnyOfRiskAddonFields(addon));
|
|
4047
|
+
const members = defs.filter((def) => names.has(def.name));
|
|
4048
|
+
if (members.length === 0 || members.some((def) => def.required)) continue;
|
|
4049
|
+
const oneOf = {
|
|
4050
|
+
type: "oneOfRequired",
|
|
4051
|
+
fields: members.map((def) => def.name),
|
|
4052
|
+
message
|
|
4053
|
+
};
|
|
4054
|
+
for (const def of members) def.validation = withOneOfRequired(def, oneOf);
|
|
4055
|
+
}
|
|
4056
|
+
}
|
|
4057
|
+
/**
|
|
4058
|
+
* A resolved definition with the configured any-of add-ons applied, before
|
|
4059
|
+
* prefill and projection read it. A field shown only because of one is
|
|
4060
|
+
* optional, unless the definition shows its group anyway (`forceShow`). When
|
|
4061
|
+
* every shown field of the add-on is then optional, its "at least one" rule
|
|
4062
|
+
* joins the group rules, so prefill also turns a blank `hidden` or `readOnly`
|
|
4063
|
+
* group editable for it (`resolvePrefill`).
|
|
4064
|
+
*/
|
|
4065
|
+
function withAnyOfRiskAddons(form, anyOf) {
|
|
4066
|
+
const addons = anyOf.riskAddons.filter((addon) => ANY_OF_RISK_ADDONS[addon] !== void 0);
|
|
4067
|
+
if (addons.length === 0) return form;
|
|
4068
|
+
const forced = new Set((form.definition.groups ?? []).filter((policy) => policy.whenDisabled === "forceShow").map((policy) => policy.group));
|
|
4069
|
+
const fields = form.fields.map((resolved) => {
|
|
4070
|
+
const { group } = resolved.field;
|
|
4071
|
+
const key = EKYC_GROUP_KEYS[group];
|
|
4072
|
+
return key && anyOf.only.has(key) && !forced.has(group) ? {
|
|
4073
|
+
...resolved,
|
|
4074
|
+
required: false
|
|
4075
|
+
} : resolved;
|
|
4076
|
+
});
|
|
4077
|
+
const groupRules = [...form.groupRules];
|
|
4078
|
+
for (const addon of addons) {
|
|
4079
|
+
const keys = new Set(getAnyOfRiskAddonFields(addon));
|
|
4080
|
+
const members = fields.filter((resolved) => {
|
|
4081
|
+
const key = EKYC_GROUP_KEYS[resolved.field.group];
|
|
4082
|
+
return key !== void 0 && keys.has(key);
|
|
4083
|
+
});
|
|
4084
|
+
if (members.length === 0 || members.some((resolved) => resolved.required)) continue;
|
|
4085
|
+
const message = ANY_OF_RISK_ADDONS[addon];
|
|
4086
|
+
groupRules.push({
|
|
4087
|
+
rule: {
|
|
4088
|
+
id: "oneOfRequired",
|
|
4089
|
+
fields: members.map((resolved) => resolved.field.name),
|
|
4090
|
+
...message && { message: { key: message } }
|
|
4091
|
+
},
|
|
4092
|
+
fields: members.map((resolved) => resolved.field.name)
|
|
4093
|
+
});
|
|
4094
|
+
}
|
|
4095
|
+
return {
|
|
4096
|
+
...form,
|
|
4097
|
+
fields,
|
|
4098
|
+
groupRules
|
|
4099
|
+
};
|
|
4100
|
+
}
|
|
4101
|
+
/**
|
|
4037
4102
|
* Projects a resolved definition to today's `EkycFieldDef[]`, identical to
|
|
4038
4103
|
* what `legacyBuildFieldDefs` returns for the same source and country.
|
|
4039
4104
|
*/
|
|
@@ -4114,15 +4179,19 @@ function applyOneOfRequiredGroups(defs, configSource) {
|
|
|
4114
4179
|
* it was created, so it can't change mid-session. The options are named so a
|
|
4115
4180
|
* caller can't swap the two booleans.
|
|
4116
4181
|
*/
|
|
4117
|
-
function buildFieldDefs(fields, configSource, country, { useDefinitions, enablePhoneRisk = false, riskAddons = [] }) {
|
|
4182
|
+
function buildFieldDefs(fields, configSource, country, { useDefinitions, enablePhoneRisk = false, riskAddons = [], anyOfOnly = /* @__PURE__ */ new Set() }) {
|
|
4118
4183
|
const definition = selectEkycDefinition(configSource, country, useDefinitions, riskAddons);
|
|
4119
|
-
if (definition) return projectEkycFields(resolveForm(definition, toEkycResolveContext(fields, enablePhoneRisk, {}, riskAddons)),
|
|
4120
|
-
|
|
4184
|
+
if (definition) return projectEkycFields(withAnyOfRiskAddons(resolveForm(definition, toEkycResolveContext(fields, enablePhoneRisk, {}, riskAddons)), {
|
|
4185
|
+
riskAddons,
|
|
4186
|
+
only: anyOfOnly
|
|
4187
|
+
}), fields, country);
|
|
4188
|
+
return legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk, riskAddons, anyOfOnly);
|
|
4121
4189
|
}
|
|
4122
4190
|
/** The per-source builder for sources without a form definition yet. */
|
|
4123
|
-
function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = false, riskAddons = []) {
|
|
4191
|
+
function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = false, riskAddons = [], anyOfOnly = /* @__PURE__ */ new Set()) {
|
|
4124
4192
|
const defs = [];
|
|
4125
4193
|
const addonFields = getRiskAddonFields(riskAddons);
|
|
4194
|
+
const optionalFields = new Set([...anyOfOnly].filter((field) => !(field === "email" && EMAIL_SOURCES.includes(configSource))));
|
|
4126
4195
|
const add = (name, type, label, source, opts) => {
|
|
4127
4196
|
if (source === false) return;
|
|
4128
4197
|
const def = {
|
|
@@ -4130,7 +4199,7 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
|
|
|
4130
4199
|
type,
|
|
4131
4200
|
label,
|
|
4132
4201
|
source,
|
|
4133
|
-
required: addonFields.has(name) || !isFieldOptional(name, configSource),
|
|
4202
|
+
required: !optionalFields.has(name) && (addonFields.has(name) || !isFieldOptional(name, configSource)),
|
|
4134
4203
|
...opts
|
|
4135
4204
|
};
|
|
4136
4205
|
const validation = buildValidationRules(def, country);
|
|
@@ -4245,9 +4314,10 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
|
|
|
4245
4314
|
addDriversLicenseFields();
|
|
4246
4315
|
}
|
|
4247
4316
|
applyOneOfRequiredGroups(defs, configSource);
|
|
4317
|
+
applyAnyOfRiskAddons(defs, riskAddons);
|
|
4248
4318
|
return defs;
|
|
4249
4319
|
}
|
|
4250
|
-
function applyPrefill(fields, ocrData, otpStatus, _country) {
|
|
4320
|
+
function applyPrefill(fields, ocrData, otpStatus, _country, riskAddons = []) {
|
|
4251
4321
|
const values = {};
|
|
4252
4322
|
const prefilled = {};
|
|
4253
4323
|
const readonlyFields = [];
|
|
@@ -4302,12 +4372,15 @@ function applyPrefill(fields, ocrData, otpStatus, _country) {
|
|
|
4302
4372
|
}
|
|
4303
4373
|
}
|
|
4304
4374
|
}
|
|
4305
|
-
|
|
4375
|
+
const fromModules = riskAddons.some((addon) => MODULE_PREFILL_RISK_ADDONS.includes(addon));
|
|
4376
|
+
const phoneFromModule = fields.phone === "phone_module_input" || fromModules && !!fields.phone;
|
|
4377
|
+
const emailFromModule = fields.email === "email_module_input" || fromModules && !!fields.email;
|
|
4378
|
+
if (phoneFromModule && otpStatus?.phone) {
|
|
4306
4379
|
values.phone = otpStatus.phone;
|
|
4307
4380
|
prefilled.phone = true;
|
|
4308
4381
|
readonlyFields.push("phone");
|
|
4309
4382
|
}
|
|
4310
|
-
if (
|
|
4383
|
+
if (emailFromModule && otpStatus?.email) {
|
|
4311
4384
|
values.email = otpStatus.email;
|
|
4312
4385
|
prefilled.email = true;
|
|
4313
4386
|
hideEmail = true;
|
|
@@ -4356,7 +4429,10 @@ function prefillFromDefinition(config, data) {
|
|
|
4356
4429
|
const definition = selectEkycDefinition(configSource, country, config.useDefinitions, config.riskAddons);
|
|
4357
4430
|
if (!definition) return void 0;
|
|
4358
4431
|
const context = toEkycResolveContext(verificationFields, config.enablePhoneRisk ?? false, config.displayModes, config.riskAddons);
|
|
4359
|
-
const form = resolveForm(definition, context)
|
|
4432
|
+
const form = withAnyOfRiskAddons(resolveForm(definition, context), {
|
|
4433
|
+
riskAddons: config.riskAddons ?? [],
|
|
4434
|
+
only: config.anyOfOnly ?? /* @__PURE__ */ new Set()
|
|
4435
|
+
});
|
|
4360
4436
|
const defs = projectEkycFields(form, verificationFields, country);
|
|
4361
4437
|
const result = resolvePrefill(form, context, data, ekycPrefillChecks(defs, country));
|
|
4362
4438
|
const modes = new Map(result.fields.map((prefilled) => [prefilled.field.name, prefilled.displayMode]));
|
|
@@ -4459,6 +4535,7 @@ const ekycFormConfig = (context) => ({
|
|
|
4459
4535
|
country: context.fieldsCountry,
|
|
4460
4536
|
enablePhoneRisk: context.moduleConfig?.enablePhoneRisk ?? context.config.enablePhoneRisk,
|
|
4461
4537
|
riskAddons: getEkycRiskAddons(context),
|
|
4538
|
+
anyOfOnly: getAnyOfOnlyFields(context),
|
|
4462
4539
|
useDefinitions: context._formDefinitions
|
|
4463
4540
|
});
|
|
4464
4541
|
/**
|
|
@@ -4470,7 +4547,10 @@ function resolveEkycSubmitForm(context) {
|
|
|
4470
4547
|
const config = ekycFormConfig(context);
|
|
4471
4548
|
const definition = selectEkycDefinition(config.configSource, config.country, config.useDefinitions, config.riskAddons);
|
|
4472
4549
|
if (!definition) return void 0;
|
|
4473
|
-
return resolveForm(definition, toEkycResolveContext(config.verificationFields, config.enablePhoneRisk ?? false, config.displayModes, config.riskAddons))
|
|
4550
|
+
return withAnyOfRiskAddons(resolveForm(definition, toEkycResolveContext(config.verificationFields, config.enablePhoneRisk ?? false, config.displayModes, config.riskAddons)), {
|
|
4551
|
+
riskAddons: config.riskAddons ?? [],
|
|
4552
|
+
only: config.anyOfOnly ?? /* @__PURE__ */ new Set()
|
|
4553
|
+
});
|
|
4474
4554
|
}
|
|
4475
4555
|
/** The `submitEkyc` actor's input, from the machine context at submit. */
|
|
4476
4556
|
function toEkycSubmitInput(context) {
|
|
@@ -4703,7 +4783,11 @@ const ekycMachine = setup({
|
|
|
4703
4783
|
fields: buildFieldDefs(vFields, source, country, {
|
|
4704
4784
|
useDefinitions,
|
|
4705
4785
|
enablePhoneRisk: config.enablePhoneRisk,
|
|
4706
|
-
riskAddons
|
|
4786
|
+
riskAddons,
|
|
4787
|
+
anyOfOnly: getAnyOfOnlyFields({
|
|
4788
|
+
config: context.config,
|
|
4789
|
+
moduleConfig: config
|
|
4790
|
+
})
|
|
4707
4791
|
}),
|
|
4708
4792
|
displayModes: getEKYCDisplayModes(config)
|
|
4709
4793
|
};
|
|
@@ -4717,7 +4801,7 @@ const ekycMachine = setup({
|
|
|
4717
4801
|
hideEmail: false,
|
|
4718
4802
|
fields: fromDefinition.fields
|
|
4719
4803
|
};
|
|
4720
|
-
const { values, prefilled, hideEmail, readonlyFields } = applyPrefill(context.verificationFields, ocrData, otpStatus, context.fieldsCountry);
|
|
4804
|
+
const { values, prefilled, hideEmail, readonlyFields } = applyPrefill(context.verificationFields, ocrData, otpStatus, context.fieldsCountry, getEkycRiskAddons(context));
|
|
4721
4805
|
return {
|
|
4722
4806
|
values,
|
|
4723
4807
|
prefilled,
|
|
@@ -4756,10 +4840,11 @@ const ekycMachine = setup({
|
|
|
4756
4840
|
if (!errs) return {};
|
|
4757
4841
|
const next = { ...errs };
|
|
4758
4842
|
delete next[event.name];
|
|
4759
|
-
const
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4843
|
+
const rules = context.fields.find((f) => f.name === event.name)?.validation ?? [];
|
|
4844
|
+
for (const rule of rules) {
|
|
4845
|
+
if (rule.type !== "oneOfRequired") continue;
|
|
4846
|
+
const groupKey = oneOfRequiredErrorKey(rule);
|
|
4847
|
+
for (const sibling of rule.fields) if (next[sibling]?.key === groupKey) delete next[sibling];
|
|
4763
4848
|
}
|
|
4764
4849
|
if (Object.keys(next).length === Object.keys(errs).length) return {};
|
|
4765
4850
|
return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
|
|
@@ -4892,7 +4977,8 @@ const ekycMachine = setup({
|
|
|
4892
4977
|
fields: buildFieldDefs(vFields, source, country, {
|
|
4893
4978
|
useDefinitions: context._formDefinitions,
|
|
4894
4979
|
enablePhoneRisk: context.config.enablePhoneRisk,
|
|
4895
|
-
riskAddons: context.config.riskAddons
|
|
4980
|
+
riskAddons: context.config.riskAddons,
|
|
4981
|
+
anyOfOnly: getAnyOfOnlyFields(context)
|
|
4896
4982
|
})
|
|
4897
4983
|
};
|
|
4898
4984
|
})
|
|
@@ -772,7 +772,11 @@ const VOCABULARY = {
|
|
|
772
772
|
id: "email",
|
|
773
773
|
type: "group",
|
|
774
774
|
modules: ["ekyc", "kybChecks"],
|
|
775
|
-
enabledBy: [
|
|
775
|
+
enabledBy: [
|
|
776
|
+
"checkEmail",
|
|
777
|
+
"riskAddon:emailCheck",
|
|
778
|
+
"riskAddon:ageVerify"
|
|
779
|
+
],
|
|
776
780
|
sourceKey: "emailSource",
|
|
777
781
|
displayModeKey: "emailDisplayMode",
|
|
778
782
|
since: "1.0"
|
|
@@ -789,7 +793,8 @@ const VOCABULARY = {
|
|
|
789
793
|
"checkPhone",
|
|
790
794
|
"riskAddon:phoneCheck",
|
|
791
795
|
"riskAddon:advancedPhoneCheck",
|
|
792
|
-
"riskAddon:phoneProfile"
|
|
796
|
+
"riskAddon:phoneProfile",
|
|
797
|
+
"riskAddon:ageVerify"
|
|
793
798
|
],
|
|
794
799
|
sourceKey: "phoneSource",
|
|
795
800
|
displayModeKey: "phoneDisplayMode",
|
|
@@ -1014,7 +1019,11 @@ const VOCABULARY = {
|
|
|
1014
1019
|
type: "prefillOrigin",
|
|
1015
1020
|
since: "1.2",
|
|
1016
1021
|
configValues: ["phoneModuleInput"],
|
|
1017
|
-
riskAddons: [
|
|
1022
|
+
riskAddons: [
|
|
1023
|
+
"phoneCheck",
|
|
1024
|
+
"phoneProfile",
|
|
1025
|
+
"ageVerify"
|
|
1026
|
+
],
|
|
1018
1027
|
groups: ["phone"],
|
|
1019
1028
|
locks: true
|
|
1020
1029
|
},
|
|
@@ -1023,7 +1032,7 @@ const VOCABULARY = {
|
|
|
1023
1032
|
type: "prefillOrigin",
|
|
1024
1033
|
since: "1.2",
|
|
1025
1034
|
configValues: ["emailModuleInput"],
|
|
1026
|
-
riskAddons: ["emailCheck"],
|
|
1035
|
+
riskAddons: ["emailCheck", "ageVerify"],
|
|
1027
1036
|
groups: ["email"],
|
|
1028
1037
|
locks: true
|
|
1029
1038
|
},
|
|
@@ -1327,6 +1336,24 @@ const MIDDLE_NAME_SOURCES = [
|
|
|
1327
1336
|
*/
|
|
1328
1337
|
const RISK_ADDON_SOURCE_OVERRIDES = { phoneProfile: "PHONE_PROFILE" };
|
|
1329
1338
|
/**
|
|
1339
|
+
* Risk add-ons that run on any one of the fields they show, each with the
|
|
1340
|
+
* message its "at least one" rule shows. The vocabulary's `enabledBy` names
|
|
1341
|
+
* the fields. A field shown only because of such an add-on is optional, and
|
|
1342
|
+
* when all of them end up optional the user must fill at least one. Age
|
|
1343
|
+
* Verify (ENG-65039) runs on an email, a phone or both; the backend skips it
|
|
1344
|
+
* silently when the request has neither.
|
|
1345
|
+
*/
|
|
1346
|
+
const ANY_OF_RISK_ADDONS = { ageVerify: "verification.errors.emailOrPhoneRequired" };
|
|
1347
|
+
/**
|
|
1348
|
+
* Risk add-ons that fill in the phone and email an earlier phone or email
|
|
1349
|
+
* module verified, whatever origin the module configuration names, with the
|
|
1350
|
+
* form definitions switch off. With it on, the vocabulary's `phoneModule` and
|
|
1351
|
+
* `emailModule` origins list them. Age Verify does this in both switch
|
|
1352
|
+
* states, as Web SDK 1 does (`isAgeVerify`); the other phone and email
|
|
1353
|
+
* add-ons keep their switch-off prefill.
|
|
1354
|
+
*/
|
|
1355
|
+
const MODULE_PREFILL_RISK_ADDONS = ["ageVerify"];
|
|
1356
|
+
/**
|
|
1330
1357
|
* Sources whose legacy request body must not carry `countryCode`. With the
|
|
1331
1358
|
* form definitions switch on, RISK_ADDONS_ONLY with phoneProfile gets its
|
|
1332
1359
|
* add-on form instead, which sends no `countryCode` either.
|
|
@@ -1337,19 +1364,23 @@ const COUNTRY_CODE_OMITTED_SOURCES = ["PHONE_PROFILE"];
|
|
|
1337
1364
|
var ekycUtils_exports = /* @__PURE__ */ __exportAll({
|
|
1338
1365
|
EKYC_GROUP_KEYS: () => EKYC_GROUP_KEYS,
|
|
1339
1366
|
NO_STATE_SOURCES: () => NO_STATE_SOURCES,
|
|
1367
|
+
getAnyOfOnlyFields: () => getAnyOfOnlyFields,
|
|
1368
|
+
getAnyOfRiskAddonFields: () => getAnyOfRiskAddonFields,
|
|
1340
1369
|
getEKYCCountry: () => getEKYCCountry,
|
|
1341
1370
|
getEKYCDisplayModes: () => getEKYCDisplayModes,
|
|
1342
1371
|
getEKYCFields: () => getEKYCFields,
|
|
1343
1372
|
getEkycRiskAddons: () => getEkycRiskAddons,
|
|
1344
1373
|
getRiskAddonFields: () => getRiskAddonFields,
|
|
1345
1374
|
indexCountries: () => indexCountries,
|
|
1375
|
+
isAnyOfRiskAddon: () => isAnyOfRiskAddon,
|
|
1346
1376
|
isFieldOptional: () => isFieldOptional,
|
|
1347
1377
|
legacyEkycCountry: () => legacyEkycCountry,
|
|
1348
1378
|
mapToEKYCvalue: () => mapToEKYCvalue,
|
|
1349
1379
|
resolveEkycSource: () => resolveEkycSource,
|
|
1350
1380
|
toEkycConfig: () => toEkycConfig,
|
|
1351
1381
|
toEkycConfigFor: () => toEkycConfigFor,
|
|
1352
|
-
withRiskAddonFields: () => withRiskAddonFields
|
|
1382
|
+
withRiskAddonFields: () => withRiskAddonFields,
|
|
1383
|
+
withoutAnyOfRiskAddons: () => withoutAnyOfRiskAddons
|
|
1353
1384
|
});
|
|
1354
1385
|
function mapToEKYCvalue(field) {
|
|
1355
1386
|
switch (field) {
|
|
@@ -1425,13 +1456,26 @@ function getEKYCFields(config) {
|
|
|
1425
1456
|
}
|
|
1426
1457
|
return fields;
|
|
1427
1458
|
}
|
|
1459
|
+
/** An add-on that runs on any one of its fields (`ANY_OF_RISK_ADDONS`). */
|
|
1460
|
+
const isAnyOfRiskAddon = (addon) => ANY_OF_RISK_ADDONS[addon] !== void 0;
|
|
1461
|
+
/** The add-ons without the ones that run on any one of their fields. */
|
|
1462
|
+
const withoutAnyOfRiskAddons = (riskAddons) => riskAddons?.filter((addon) => !isAnyOfRiskAddon(addon));
|
|
1463
|
+
/** The verification fields the given add-ons show, from `enabledBy`. */
|
|
1464
|
+
function fieldsShownBy(riskAddons) {
|
|
1465
|
+
return new Set(FIELD_SWITCHES.filter((switches) => riskAddons?.some((addon) => switches.riskAddons.includes(addon))).map((switches) => switches.field));
|
|
1466
|
+
}
|
|
1428
1467
|
/**
|
|
1429
1468
|
* The verification fields the configured risk add-ons check, which are
|
|
1430
1469
|
* required whatever the source says (decision B20). The vocabulary's
|
|
1431
1470
|
* `enabledBy` names each group's add-ons, so a new add-on needs no code here.
|
|
1471
|
+
* An add-on that runs on any one of its fields requires none of them.
|
|
1432
1472
|
*/
|
|
1433
1473
|
function getRiskAddonFields(riskAddons) {
|
|
1434
|
-
return
|
|
1474
|
+
return fieldsShownBy(withoutAnyOfRiskAddons(riskAddons));
|
|
1475
|
+
}
|
|
1476
|
+
/** The verification fields an add-on that runs on any one of them shows. */
|
|
1477
|
+
function getAnyOfRiskAddonFields(addon) {
|
|
1478
|
+
return [...fieldsShownBy([addon])];
|
|
1435
1479
|
}
|
|
1436
1480
|
/**
|
|
1437
1481
|
* A field mapping with the fields the risk add-ons check turned on, as
|
|
@@ -1440,10 +1484,27 @@ function getRiskAddonFields(riskAddons) {
|
|
|
1440
1484
|
*/
|
|
1441
1485
|
function withRiskAddonFields(fields, riskAddons) {
|
|
1442
1486
|
const merged = { ...fields };
|
|
1443
|
-
for (const field of
|
|
1487
|
+
for (const field of fieldsShownBy(riskAddons)) if (!merged[field]) merged[field] = "user_input";
|
|
1444
1488
|
return merged;
|
|
1445
1489
|
}
|
|
1446
1490
|
/**
|
|
1491
|
+
* The verification fields shown only because of an add-on that runs on any
|
|
1492
|
+
* one of them (Age Verify): the module configuration's check flags and the
|
|
1493
|
+
* other add-ons leave them off. No source rule covers such a field, so it is
|
|
1494
|
+
* optional on its own, as in Web SDK 1 (`getAgeVerifyOnlyFields`).
|
|
1495
|
+
*/
|
|
1496
|
+
function getAnyOfOnlyFields(context) {
|
|
1497
|
+
const riskAddons = getEkycRiskAddons(context);
|
|
1498
|
+
if (!riskAddons?.some(isAnyOfRiskAddon)) return /* @__PURE__ */ new Set();
|
|
1499
|
+
const { moduleConfig } = context;
|
|
1500
|
+
if (!moduleConfig && context.config.anyOfOnlyFields) return new Set(context.config.anyOfOnlyFields);
|
|
1501
|
+
const without = moduleConfig ? getEKYCFields({
|
|
1502
|
+
...moduleConfig,
|
|
1503
|
+
riskAddons: withoutAnyOfRiskAddons(moduleConfig.riskAddons)
|
|
1504
|
+
}) : withRiskAddonFields(context.config.verificationFields ?? {}, withoutAnyOfRiskAddons(riskAddons));
|
|
1505
|
+
return new Set([...fieldsShownBy(riskAddons.filter(isAnyOfRiskAddon))].filter((field) => !without[field]));
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1447
1508
|
* The risk add-ons in force: the fetched module configuration's for a
|
|
1448
1509
|
* `flowId` config, else the ones the resolved config carries.
|
|
1449
1510
|
*/
|
|
@@ -1553,6 +1614,10 @@ function toEkycConfigFor(config, useDefinitions) {
|
|
|
1553
1614
|
if (!hasRawSignal(config)) return config;
|
|
1554
1615
|
const source = useDefinitions ? config.source ?? "" : resolveEkycSource(config.source ?? "", config.riskAddons);
|
|
1555
1616
|
const displayModes = getEKYCDisplayModes(config);
|
|
1617
|
+
const anyOfOnlyFields = [...getAnyOfOnlyFields({
|
|
1618
|
+
config: {},
|
|
1619
|
+
moduleConfig: config
|
|
1620
|
+
})];
|
|
1556
1621
|
return {
|
|
1557
1622
|
verificationFields: getEKYCFields(config),
|
|
1558
1623
|
source,
|
|
@@ -1560,7 +1625,8 @@ function toEkycConfigFor(config, useDefinitions) {
|
|
|
1560
1625
|
enablePhoneRisk: config.enablePhoneRisk,
|
|
1561
1626
|
...config.autoExecution === true && { autoExecution: true },
|
|
1562
1627
|
...Object.keys(displayModes).length > 0 && { displayModes },
|
|
1563
|
-
...config.riskAddons?.length ? { riskAddons: config.riskAddons } : {}
|
|
1628
|
+
...config.riskAddons?.length ? { riskAddons: config.riskAddons } : {},
|
|
1629
|
+
...anyOfOnlyFields.length > 0 && { anyOfOnlyFields }
|
|
1564
1630
|
};
|
|
1565
1631
|
}
|
|
1566
1632
|
/** Determines if a field is optional given the current config source */
|
|
@@ -1577,4 +1643,4 @@ function isFieldOptional(fieldName, configSource) {
|
|
|
1577
1643
|
return false;
|
|
1578
1644
|
}
|
|
1579
1645
|
//#endregion
|
|
1580
|
-
export {
|
|
1646
|
+
export { STREET_SOURCES as A, HOUSE_NO_SOURCES as C, ONE_OF_REQUIRED_GROUPS as D, NAME_SOURCES as E, VOCABULARY as M, EKYC_INDEX as N, POSTAL_CODE_SOURCES as O, EMAIL_SOURCES as S, MODULE_PREFILL_RISK_ADDONS as T, ANY_OF_RISK_ADDONS as _, getEKYCCountry as a, COUNTRY_CODE_OMITTED_SOURCES as b, getEkycRiskAddons as c, mapToEKYCvalue as d, resolveEkycSource as f, ADDRESS_STATE_SOURCES as g, withRiskAddonFields as h, getAnyOfRiskAddonFields as i, TAX_ID_SOURCES as j, STATE_CODE_HINTS as k, getRiskAddonFields as l, toEkycConfigFor as m, ekycUtils_exports as n, getEKYCDisplayModes as o, toEkycConfig as p, getAnyOfOnlyFields as r, getEKYCFields as s, EKYC_GROUP_KEYS as t, isFieldOptional as u, APARTMENT_SOURCES as v, MIDDLE_NAME_SOURCES as w, COUNTRY_SELECTOR_DISABLED_SOURCES as x, CITY_SOURCES as y };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-CDKCezLl.esm.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -2,7 +2,7 @@ import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
|
2
2
|
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
3
3
|
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
4
4
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
5
|
-
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-D1Qva1f7.esm.js";
|
|
6
6
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
7
7
|
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
8
8
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -5,33 +5,33 @@ import "./Actor-DqjOqDfU.js";
|
|
|
5
5
|
import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
|
|
6
6
|
import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-5tYz-a4o.js";
|
|
7
7
|
import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BxfCsyA7.js";
|
|
8
|
-
import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-
|
|
8
|
+
import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-au_c-DNF.js";
|
|
9
9
|
import "./createFaceAvatar-Ct9QrQ66.js";
|
|
10
10
|
import { a as IStorageCapability } from "./IWasmUtilCapability-CLWIYHB4.js";
|
|
11
11
|
import "./StreamCanvasCapture-BqaHTJF0.js";
|
|
12
|
-
import { i as createIdCaptureManagerFromActor, n as IdCaptureManager, q as WasmUtilProvider, r as IdCaptureState, y as IdCaptureActor } from "./idCaptureManager-
|
|
13
|
-
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-
|
|
12
|
+
import { i as createIdCaptureManagerFromActor, n as IdCaptureManager, q as WasmUtilProvider, r as IdCaptureState, y as IdCaptureActor } from "./idCaptureManager-BsUU-w59.js";
|
|
13
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DyLXbx0U.js";
|
|
14
14
|
import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-BcYhxO63.js";
|
|
15
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
15
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-DlvhoJYc.js";
|
|
16
16
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-crZcIUSY.js";
|
|
17
|
-
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-
|
|
17
|
+
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-equZ8npF.js";
|
|
18
18
|
import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-CdWTbsew.js";
|
|
19
19
|
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-lJrveDS4.js";
|
|
20
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
20
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-DLWTqjUr.js";
|
|
21
21
|
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-C45pTncO.js";
|
|
22
22
|
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-XpAF7sBY.js";
|
|
23
|
-
import { c as EkycPrefillManager, m as EkycPrefillActor, p as createEkycPrefillManagerFromActor, u as EkycPrefillState } from "./ekycPrefillManager-
|
|
24
|
-
import { i as createEkycManagerFromActor, n as EkycState, o as EkycActor, t as EkycManager } from "./ekycManager-
|
|
23
|
+
import { c as EkycPrefillManager, m as EkycPrefillActor, p as createEkycPrefillManagerFromActor, u as EkycPrefillState } from "./ekycPrefillManager-BwmPXfhY.js";
|
|
24
|
+
import { i as createEkycManagerFromActor, n as EkycState, o as EkycActor, t as EkycManager } from "./ekycManager-C0eg6Bp1.js";
|
|
25
25
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-pM7ZPuMa.js";
|
|
26
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-
|
|
27
|
-
import { i as CaptureIdResponse } from "./types-
|
|
26
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-f_H2gWoq.js";
|
|
27
|
+
import { i as CaptureIdResponse } from "./types-DCFPnmPC.js";
|
|
28
28
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-bA-xw2TP.js";
|
|
29
29
|
import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DQq4GxBO.js";
|
|
30
30
|
import { i as WatchlistForBusinessState, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager, s as WatchlistForBusinessActor } from "./watchlistForBusinessManager-l7ZERQcV.js";
|
|
31
31
|
import { a as createIdentityReuseManagerFromActor, o as IdentityReuseActor, r as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-BE6LHcuP.js";
|
|
32
32
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-mFOHRhVd.js";
|
|
33
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
34
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-
|
|
33
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-atisC67v.js";
|
|
34
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-C0C7lFGd.js";
|
|
35
35
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-Db99n9Yu.js";
|
|
36
36
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-daT_8fj_.js";
|
|
37
37
|
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-CENrvxpK.js";
|
|
@@ -40,7 +40,7 @@ import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n
|
|
|
40
40
|
import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-C5b5WtcY.js";
|
|
41
41
|
import { a as FiscalQrActor, i as createFiscalQrManagerFromActor, n as FiscalQrState, t as FiscalQrManager } from "./fiscalQrManager-DFnFVpP9.js";
|
|
42
42
|
import { c as KybChecksState, d as createKybChecksManagerFromActor, f as KybChecksActor, o as KybChecksManager } from "./kybChecksManager-CKDy1mel.js";
|
|
43
|
-
import "./types-
|
|
43
|
+
import "./types-DtKCkoHt.js";
|
|
44
44
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
45
45
|
type AuthenticationUploadResponse = {
|
|
46
46
|
overallStatus: 'PASS' | 'FAIL';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-D2gzk_iV.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
3
|
-
import { b as getDeviceFingerprintInfo, v as getFingerprint } from "./sessionInitializer-
|
|
3
|
+
import { b as getDeviceFingerprintInfo, v as getFingerprint } from "./sessionInitializer-CtHdsTe_.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
|
-
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-
|
|
6
|
+
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-CDKCezLl.esm.js";
|
|
7
7
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-B673OXCo.esm.js";
|
|
8
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
9
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
8
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-D3NOCUkm.esm.js";
|
|
9
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-N86YLlu6.esm.js";
|
|
10
10
|
import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-D-Dm90F3.esm.js";
|
|
11
11
|
import { n as createConsentManagerFromActor } from "./consentManager-DQ1uiNhr.esm.js";
|
|
12
12
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-CeeEmCV1.esm.js";
|
|
@@ -14,13 +14,13 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
|
|
|
14
14
|
import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-BuEt-nm4.esm.js";
|
|
15
15
|
import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-C1z0B5NU.esm.js";
|
|
16
16
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DoHy82WC.esm.js";
|
|
17
|
-
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-
|
|
18
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
19
|
-
import { n as createEkycManagerFromActor } from "./ekycManager
|
|
20
|
-
import { n as createEkycPrefillManagerFromActor } from "./ekycPrefillManager-
|
|
17
|
+
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-BpAjLc3w.esm.js";
|
|
18
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-DYzxc9Vb.esm.js";
|
|
19
|
+
import { n as createEkycManagerFromActor } from "./ekycManager--prF1NF-.esm.js";
|
|
20
|
+
import { n as createEkycPrefillManagerFromActor } from "./ekycPrefillManager-CHyWI8RC.esm.js";
|
|
21
21
|
import { n as createEmailManagerFromActor } from "./emailManager-CUX2saAB.esm.js";
|
|
22
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
23
|
-
import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
22
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-DlD0PBFx.esm.js";
|
|
23
|
+
import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-DOKK5pRi.esm.js";
|
|
24
24
|
import { n as createPhoneManagerFromActor } from "./phoneManager-uQEAWKlO.esm.js";
|
|
25
25
|
import { n as createWatchlistManagerFromActor } from "./watchlistManager-Dc9sFwZx.esm.js";
|
|
26
26
|
import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-VDu1ypVz.esm.js";
|
|
@@ -30,10 +30,10 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
|
|
|
30
30
|
import { n as createIdOcrManagerFromActor } from "./idOcrManager-C9C8UaPr.esm.js";
|
|
31
31
|
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-UQZkhZFB.esm.js";
|
|
32
32
|
import { n as createSignatureManagerFromActor } from "./signatureManager-3g4_cavt.esm.js";
|
|
33
|
-
import { n as createGeolocationManagerFromActor } from "./geolocationManager-
|
|
33
|
+
import { n as createGeolocationManagerFromActor } from "./geolocationManager-zgm7knTk.esm.js";
|
|
34
34
|
import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-B7lIuL4r.esm.js";
|
|
35
35
|
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-B_6wwpeT.esm.js";
|
|
36
36
|
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-BzaXiW4H.esm.js";
|
|
37
37
|
import { n as createFiscalQrManagerFromActor } from "./fiscalQrManager-Dg6Mp58y.esm.js";
|
|
38
|
-
import { n as createKybChecksManagerFromActor } from "./kybChecksManager-
|
|
38
|
+
import { n as createKybChecksManagerFromActor } from "./kybChecksManager-BrouzbHU.esm.js";
|
|
39
39
|
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createCertificateIssuanceManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createCustomFieldsManagerFromActor, createCustomWatchlistManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createEkycPrefillManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createFiscalQrManagerFromActor, createGeolocationManagerFromActor, createGovernmentValidationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createKybChecksManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistForBusinessManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
package/dist/{faceCaptureManagerFactory-B15Ry9Bj.esm.js → faceCaptureManagerFactory-CET4AIbO.esm.js}
RENAMED
|
@@ -3,11 +3,11 @@ 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 { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
6
|
-
import { r as concealmentToAvatar } from "./faceCaptureSetup-
|
|
6
|
+
import { r as concealmentToAvatar } from "./faceCaptureSetup-D3NOCUkm.esm.js";
|
|
7
7
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-0SxaYTcb.esm.js";
|
|
8
8
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
9
9
|
import { i as primeMotionFromUserGestureIfNeeded } from "./permissionServices-GQyOY1tb.esm.js";
|
|
10
|
-
import { r as wantsDeepsightMotion } from "./deepsightCaptureConfig-
|
|
10
|
+
import { r as wantsDeepsightMotion } from "./deepsightCaptureConfig-Dy79arCi.esm.js";
|
|
11
11
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
12
12
|
function getPermissionStatus(snapshot) {
|
|
13
13
|
if (!snapshot.matches("permissions")) return;
|
package/dist/{faceCaptureManagerFactory-2oqROMSB.d.ts → faceCaptureManagerFactory-au_c-DNF.d.ts}
RENAMED
|
@@ -5,11 +5,11 @@ import "./Actor-DqjOqDfU.js";
|
|
|
5
5
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
6
|
import "./index-DHuAkTe0.js";
|
|
7
7
|
import { c as FaceAttributesThresholds, d as FaceDetectionCallbacks, f as FaceDetectionConfig, h as IFaceDetectionCapability, l as FaceChecksConfig, m as FacePositionConstraints, p as FaceDetectionThresholds, s as FaceFeed, t as AvatarId, u as FaceCoordinates, v as WebApiHostRequestConfig, y as IncodeCanvas } from "./createFaceAvatar-Ct9QrQ66.js";
|
|
8
|
-
import { i as FlowModuleConfig } from "./types-
|
|
8
|
+
import { i as FlowModuleConfig } from "./types-DwrpHPgX.js";
|
|
9
9
|
import "./IWasmUtilCapability-CLWIYHB4.js";
|
|
10
10
|
import { n as PermissionStatus, t as PermissionResult } from "./types-CeEcakO7.js";
|
|
11
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-
|
|
12
|
-
import { t as AuthenticationConfig } from "./types-
|
|
11
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-DzE5T1IT.js";
|
|
12
|
+
import { t as AuthenticationConfig } from "./types-Ceg3vxtu.js";
|
|
13
13
|
import { t as BaseWasmProvider } from "./BaseWasmProvider-CPdofn7R.js";
|
|
14
14
|
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-BqaHTJF0.js";
|
|
15
15
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|