@incodetech/core 0.0.0-dev-20261124-bcd99b1e → 0.0.0-dev-20261125-a91bf928
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-D4ncumfe.esm.js → FaceDetectionProvider-D-1rS3WB.esm.js} +4 -4
- package/dist/{definitionSource-B-Z2EgJJ.esm.js → addressSearch-DKdOJ_e-.esm.js} +67 -8
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{phoneFormat-C3q0Ukh4.esm.js → allowedCharacters-Bnir--CN.esm.js} +1 -11
- package/dist/{apiError-a7tezk_O.esm.js → apiError-CxKf45Ky.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Cp64l__H.d.ts → authenticationManager-BManpfgb.d.ts} +1 -1
- package/dist/{authenticationManager-IpVKgxPn.esm.js → authenticationManager-CThxh6EJ.esm.js} +3 -3
- package/dist/{authenticationStateMachine-B4CuMBgC.esm.js → authenticationStateMachine-DN122Cii.esm.js} +3 -3
- package/dist/{calendarDate-DcqGuEht.esm.js → calendarDate-D2zWfUlA.esm.js} +1 -1
- package/dist/{cnpj-Bl_olpdX.esm.js → cnpj-CVq3vL39.esm.js} +1 -9
- package/dist/cnpj-D5cxwIe-.esm.js +9 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-C6WmQToS.esm.js → curpValidationManager-4v5qMUXm.esm.js} +1 -1
- package/dist/{curpValidationManager-Dynwqu2z.d.ts → curpValidationManager-9U7zMZt8.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-BbJ4YAzE.esm.js → curpValidationStateMachine-BPkEZtmd.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/{customFieldsManager-BBy6X9nh.esm.js → customFieldsManager-BX3u8VPe.esm.js} +1 -1
- package/dist/{deepsightCaptureConfig-D0PCzVcM.esm.js → deepsightCaptureConfig-B7HX2BKP.esm.js} +2 -2
- package/dist/{deepsightLoader-nbl5Dhvf.esm.js → deepsightLoader-C_fdJi9H.esm.js} +4 -4
- package/dist/definitionSource-C_pmsYIx.esm.js +12 -0
- package/dist/{desktopCameraElection-C2jhy2Fd.esm.js → desktopCameraElection-A7IPW-RU.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-DOgJTJ4F.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +4 -4
- package/dist/{documentSignatureStateMachine-DoeIrTmr.esm.js → documentSignatureStateMachine-ClNEf1FQ.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-D_QpTKfT.esm.js → dynamicFormsManager-nl9-642J.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-D_KmQwDZ.esm.js → dynamicFormsStateMachine-DwjwenOE.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BG7eju18.esm.js → ekybManager-B-tbtSFb.esm.js} +1 -1
- package/dist/{ekybManager-BflWuTe4.d.ts → ekybManager-DZdSXQMK.d.ts} +2 -2
- package/dist/{ekybStateMachine-Bc-m_PHQ.esm.js → ekybStateMachine-BC4eZWrb.esm.js} +5 -4
- package/dist/ekyc-prefill.d.ts +3 -4
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-BPUHoUHy.esm.js → ekycManager-CDxoP5gL.esm.js} +1 -1
- package/dist/{ekycManager-BldDiWTJ.d.ts → ekycManager-DusmB-4j.d.ts} +2 -2
- package/dist/{ekycPrefillManager-qgG_uUKA.d.ts → ekycPrefillManager-BwmPXfhY.d.ts} +17 -17
- package/dist/{ekycPrefillManager-BaX95xIW.esm.js → ekycPrefillManager-Cu5EAnkQ.esm.js} +6 -7
- package/dist/{ekycPrefillStateMachine-C8FEAHbH.esm.js → ekycPrefillStateMachine-DdHdgSaW.esm.js} +567 -165
- package/dist/{ekycStateMachine-Cq94FpIm.esm.js → ekycStateMachine-CM1YRW27.esm.js} +483 -155
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-bgoE6nL8.esm.js → electronicSignatureManager-knl_X2jh.esm.js} +1 -1
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +17 -17
- package/dist/{faceCaptureManagerFactory-DvH9-zIi.esm.js → faceCaptureManagerFactory-D0eN82qj.esm.js} +2 -2
- package/dist/{faceCaptureManagerFactory-BZ2XHhkj.d.ts → faceCaptureManagerFactory-Dm7p3T_t.d.ts} +3 -3
- package/dist/{faceCaptureSetup-DuFiwK9F.esm.js → faceCaptureSetup-BfedgErd.esm.js} +7 -7
- package/dist/{feature-management-DiL2uBlX.esm.js → feature-management-BD2hrfZ3.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 +7 -7
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Bs4oWd_W.esm.js → flowCompletionService-DlXzGwgu.esm.js} +1 -1
- package/dist/{flowServices-KLGZ3eWm.esm.js → flowServices-CxTdN-OL.esm.js} +4 -4
- package/dist/formErrors-lSfh7Y8J.esm.js +512 -0
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Del2ddmt.d.ts → geolocationManager-CENrvxpK.d.ts} +1 -1
- package/dist/{geolocationManager-el4FUmYy.esm.js → geolocationManager-Ch5lOvYH.esm.js} +1 -1
- package/dist/{geolocationStateMachine-BnM-qTe3.esm.js → geolocationStateMachine-EN7it_FF.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- 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-UnWwLa3I.esm.js → idCaptureManager-CH2bkanx.esm.js} +4 -4
- package/dist/{idCaptureManager-Co4ZZ-pd.d.ts → idCaptureManager-jjNknNiP.d.ts} +2 -2
- package/dist/{idCaptureServices-DFUdwccM.esm.js → idCaptureServices-BN57-oba.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-DGWGB0Tz.esm.js → idCaptureStateMachine-DIM0ZxBY.esm.js} +11 -11
- package/dist/{idOcrManager-C3BHGgSb.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
- package/dist/{idOcrManager-XTbpfHoF.esm.js → idOcrManager-Dl9eNhT8.esm.js} +1 -1
- package/dist/{idOcrStateMachine-B-00PgPh.esm.js → idOcrStateMachine-CEkUWxGy.esm.js} +1 -1
- package/dist/{index-RghgiJVx.d.ts → index-B-K_tV2Q.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.d.ts +3 -3
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CbkCctw0.esm.js → kybChecksManager-Bh-oiXei.esm.js} +2 -2
- package/dist/{kybChecksManager-B7Di9auB.d.ts → kybChecksManager-CKDy1mel.d.ts} +1 -1
- package/dist/{kybChecksStateMachine-BeB_cgk4.esm.js → kybChecksStateMachine-WIdi80Sq.esm.js} +175 -178
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-B_eFZmo-.d.ts → mandatoryConsentManager-Bwl0YPwg.d.ts} +1 -1
- package/dist/numericRange-zDZFvRb8.esm.js +274 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-PUU8CObN.esm.js → recordingService-5o50qJ9A.esm.js} +1 -1
- package/dist/{runChildModule-BOvtfM8r.esm.js → runChildModule-vqgSWeEF.esm.js} +1 -1
- package/dist/{sdkVersion-thMGaHAC.esm.js → sdkVersion-C3x7ZDSE.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-CqudCvHN.esm.js → selfieErrorUtils-BB-nxdeJ.esm.js} +1 -1
- package/dist/{selfieManager-DWRVOhOE.esm.js → selfieManager-CpV6Lw0q.esm.js} +3 -3
- package/dist/{selfieManager-CKm034l4.d.ts → selfieManager-DOwu6Ukf.d.ts} +1 -1
- package/dist/{selfieStateMachine-CNELgWFK.esm.js → selfieStateMachine-Bxi31PsA.esm.js} +3 -3
- package/dist/{session-pNSU6n3-.esm.js → session-syFGvfFW.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BzvYgZCQ.esm.js → sessionInitializer-C4cinkbs.esm.js} +4 -4
- package/dist/{setup-BQVlJnC0.esm.js → setup-cZWqRr7-.esm.js} +5 -5
- package/dist/trueSight-DK2Q1w9z.esm.js +1 -0
- package/dist/{trueSightService-DjwNQ37t.esm.js → trueSightService-Bm5K21-R.esm.js} +1 -1
- package/dist/types-BTJWXYHA.d.ts +6 -0
- package/dist/{types-BgRHw-dR.d.ts → types-BaA0Qscz.d.ts} +1 -1
- package/dist/{types-_rJ2GjgK.d.ts → types-BqDc7tER.d.ts} +1 -1
- package/dist/{types-DFgJ26nw.d.ts → types-CH9u9ikn.d.ts} +1 -1
- package/dist/{types-Dy4XI7jR.d.ts → types-CRzImo5V.d.ts} +1 -1
- package/dist/{types-BiUMy0Vp.d.ts → types-CoXJsu1W.d.ts} +1 -1
- package/dist/{textRules-D4NRinKY.d.ts → types-D6Q1D1kx.d.ts} +1 -9
- package/dist/{types-CTaL0XJz.d.ts → types-DWqO7owj.d.ts} +2 -24
- package/dist/{types-mK4qyHxM.d.ts → types-g3NuVCT9.d.ts} +16 -29
- package/dist/{types-aKXf9SVN.d.ts → types-ia31g4VQ.d.ts} +3 -3
- package/dist/{types-Bdes6iC1.d.ts → types-tOSLpcSa.d.ts} +10 -2
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-M25qqewS.esm.js → videoSelfieCameraWarmer-B5atbHuu.esm.js} +3 -3
- package/dist/{videoSelfieStepDetector-BBXE3DnI.d.ts → videoSelfieStepDetector-Dfj7UUF3.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-DxeSH80T.esm.js → watchlistForBusinessManager-CiSWk1Lh.esm.js} +1 -1
- package/dist/{watchlistForBusinessStateMachine-BC9UWLuZ.esm.js → watchlistForBusinessStateMachine-DiQW42sd.esm.js} +3 -2
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +21 -21
- package/package.json +1 -1
- package/dist/addressSearch-BKlynuBr.esm.js +0 -71
- package/dist/ekycRules-B7kUzSgu.esm.js +0 -598
- package/dist/trueSight-CiveOb7r.esm.js +0 -1
- package/dist/types-J7D0pbWH.d.ts +0 -6
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
//#region src/internal/forms/checks/esDni.ts
|
|
2
|
+
const DNI_LETTERS = "TRWAGMYFPDXBNJZSQVHLCKE";
|
|
3
|
+
/**
|
|
4
|
+
* Spanish DNI: 8 digits and the check letter for their value modulo 23
|
|
5
|
+
* (`12345678Z`). A space or hyphen before the letter is ignored. NIEs, the
|
|
6
|
+
* foreigners' IDs, are not DNIs and fail.
|
|
7
|
+
*/
|
|
8
|
+
function isValidEsDni(value) {
|
|
9
|
+
const dni = value.replace(/[\s-]/g, "").toUpperCase();
|
|
10
|
+
const match = /^([0-9]{8})([A-Z])$/.exec(dni);
|
|
11
|
+
if (!match) return false;
|
|
12
|
+
const [, digits, letter] = match;
|
|
13
|
+
return DNI_LETTERS[Number(digits) % 23] === letter;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/internal/forms/checks/fiPersonalIdentityCode.ts
|
|
17
|
+
const FI_CHECK_CHARACTERS = "0123456789ABCDEFHJKLMNPRSTUVWXY";
|
|
18
|
+
/** The first year of each century sign; the 2023 reform added Y-U and B-F. */
|
|
19
|
+
const FI_CENTURY = {
|
|
20
|
+
"+": 1800,
|
|
21
|
+
"-": 1900,
|
|
22
|
+
Y: 1900,
|
|
23
|
+
X: 1900,
|
|
24
|
+
W: 1900,
|
|
25
|
+
V: 1900,
|
|
26
|
+
U: 1900,
|
|
27
|
+
A: 2e3,
|
|
28
|
+
B: 2e3,
|
|
29
|
+
C: 2e3,
|
|
30
|
+
D: 2e3,
|
|
31
|
+
E: 2e3,
|
|
32
|
+
F: 2e3
|
|
33
|
+
};
|
|
34
|
+
const isLeapYear = (year) => year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
|
35
|
+
const daysInMonth = (year, month) => month === 2 ? isLeapYear(year) ? 29 : 28 : [
|
|
36
|
+
4,
|
|
37
|
+
6,
|
|
38
|
+
9,
|
|
39
|
+
11
|
|
40
|
+
].includes(month) ? 30 : 31;
|
|
41
|
+
/**
|
|
42
|
+
* Finnish personal identity code (henkilötunnus): `DDMMYY`, a century sign,
|
|
43
|
+
* a 3-digit individual number and a check character for the 9 digits modulo
|
|
44
|
+
* 31 (`131052-308T`). The date must exist.
|
|
45
|
+
*/
|
|
46
|
+
function isValidFiPersonalIdentityCode(value) {
|
|
47
|
+
const match = /^([0-9]{2})([0-9]{2})([0-9]{2})([-+A-FU-Y])([0-9]{3})([0-9A-Y])$/.exec(value.trim().toUpperCase());
|
|
48
|
+
if (!match) return false;
|
|
49
|
+
const [, dd, mm, yy, sign, individual, check] = match;
|
|
50
|
+
const year = FI_CENTURY[sign] + Number(yy);
|
|
51
|
+
const month = Number(mm);
|
|
52
|
+
const day = Number(dd);
|
|
53
|
+
if (month < 1 || month > 12 || day < 1 || day > daysInMonth(year, month)) return false;
|
|
54
|
+
return FI_CHECK_CHARACTERS[Number(`${dd}${mm}${yy}${individual}`) % 31] === check;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/internal/forms/checks/inDrivingLicenseNumber.ts
|
|
58
|
+
const IN_DRIVING_LICENSE_REGEX = /^[A-Z]{2}[-\s]?[0-9]{2}(?:[0-9]{2})?[-\s]?(?:19|20)[0-9]{2}[-\s]?[0-9]{7}$/i;
|
|
59
|
+
/**
|
|
60
|
+
* Indian driving licence number format, `SS-RR[RR]-YYYY-NNNNNNN`, with or
|
|
61
|
+
* without hyphens (`MH-12-2011-0012345`, `MH1220110012345`). Format only:
|
|
62
|
+
* the number has no check digit.
|
|
63
|
+
*/
|
|
64
|
+
function isValidInDrivingLicenseNumber(value) {
|
|
65
|
+
return IN_DRIVING_LICENSE_REGEX.test(value.trim());
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/internal/forms/checks/rut.ts
|
|
69
|
+
/**
|
|
70
|
+
* Chilean RUT/RUN: a 7- or 8-digit body and a check character, 0-9 or K,
|
|
71
|
+
* computed modulo 11. Dots, a hyphen and spaces are ignored
|
|
72
|
+
* (`12.345.678-5`, `12345678-5`, `123456785`).
|
|
73
|
+
*/
|
|
74
|
+
function isValidRut(value) {
|
|
75
|
+
const rut = value.replace(/[.\s-]/g, "").toUpperCase();
|
|
76
|
+
const match = /^([0-9]{7,8})([0-9K])$/.exec(rut);
|
|
77
|
+
if (!match) return false;
|
|
78
|
+
const [, body, check] = match;
|
|
79
|
+
let sum = 0;
|
|
80
|
+
let factor = 2;
|
|
81
|
+
for (let i = body.length - 1; i >= 0; i--) {
|
|
82
|
+
sum += Number(body[i]) * factor;
|
|
83
|
+
factor = factor === 7 ? 2 : factor + 1;
|
|
84
|
+
}
|
|
85
|
+
const rest = 11 - sum % 11;
|
|
86
|
+
return check === (rest === 11 ? "0" : rest === 10 ? "K" : String(rest));
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/internal/forms/resolvePrefill.ts
|
|
90
|
+
const DISPLAY_MODES = /* @__PURE__ */ new Set([
|
|
91
|
+
"editable",
|
|
92
|
+
"readOnly",
|
|
93
|
+
"hidden"
|
|
94
|
+
]);
|
|
95
|
+
const ONE_OF_REQUIRED = "oneOfRequired";
|
|
96
|
+
const filled = (value) => value !== void 0 && value.trim() !== "";
|
|
97
|
+
function configuredMode(context, group) {
|
|
98
|
+
const mode = context.displayModes?.[group];
|
|
99
|
+
return mode !== void 0 && DISPLAY_MODES.has(mode) ? mode : "editable";
|
|
100
|
+
}
|
|
101
|
+
/** The field's prefill source for its group's origin, if it lists one. */
|
|
102
|
+
function sourceFor(field, context) {
|
|
103
|
+
const origin = context.origins?.[field.group];
|
|
104
|
+
if (!origin) return void 0;
|
|
105
|
+
return field.prefill?.find((id) => id.startsWith(`${origin}.`));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Decides each shown field's prefilled value and display mode, from the
|
|
109
|
+
* resolved form, module configuration's origins and display modes, and the
|
|
110
|
+
* values the module read. Pure and synchronous.
|
|
111
|
+
*
|
|
112
|
+
* A value that fails its field's checks is dropped. A group configured
|
|
113
|
+
* `hidden` or `readOnly` becomes `editable` as a whole when one of its
|
|
114
|
+
* required fields has no value, or when a `oneOfRequired` rule over it has
|
|
115
|
+
* none, so the user can always complete the form. An optional field without
|
|
116
|
+
* a value keeps its mode and sends nothing. An editable field filled from one
|
|
117
|
+
* of the context's `lockingOrigins` shows read-only.
|
|
118
|
+
*/
|
|
119
|
+
function resolvePrefill(form, context, data, checks) {
|
|
120
|
+
const candidates = {};
|
|
121
|
+
for (const { field } of form.fields) {
|
|
122
|
+
const source = sourceFor(field, context);
|
|
123
|
+
const raw = source ? data[source] : void 0;
|
|
124
|
+
if (filled(raw)) candidates[field.name] = checks.format(field, raw);
|
|
125
|
+
}
|
|
126
|
+
const values = {};
|
|
127
|
+
for (const { field } of form.fields) {
|
|
128
|
+
const value = candidates[field.name];
|
|
129
|
+
if (filled(value) && checks.isValid(field, value, candidates)) values[field.name] = value;
|
|
130
|
+
}
|
|
131
|
+
const isRequired = (resolved) => resolved.required || resolved.requiredIfFilled.some((name) => filled(values[name]));
|
|
132
|
+
const promoted = /* @__PURE__ */ new Set();
|
|
133
|
+
const promote = (group) => {
|
|
134
|
+
if (configuredMode(context, group) !== "editable") promoted.add(group);
|
|
135
|
+
};
|
|
136
|
+
for (const resolved of form.fields) if (isRequired(resolved) && !filled(values[resolved.field.name])) promote(resolved.field.group);
|
|
137
|
+
const groupOf = new Map(form.fields.map(({ field }) => [field.name, field.group]));
|
|
138
|
+
for (const { rule, fields } of form.groupRules) {
|
|
139
|
+
if (rule.id !== ONE_OF_REQUIRED) continue;
|
|
140
|
+
if (fields.some((name) => filled(values[name]))) continue;
|
|
141
|
+
for (const name of fields) {
|
|
142
|
+
const group = groupOf.get(name);
|
|
143
|
+
if (group) promote(group);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
fields: form.fields.map((resolved) => {
|
|
148
|
+
const { group, name } = resolved.field;
|
|
149
|
+
if (promoted.has(group)) return {
|
|
150
|
+
...resolved,
|
|
151
|
+
displayMode: "editable",
|
|
152
|
+
displayReason: "promoted"
|
|
153
|
+
};
|
|
154
|
+
const configured = configuredMode(context, group);
|
|
155
|
+
const origin = context.origins?.[group];
|
|
156
|
+
if (configured === "editable" && filled(values[name]) && origin !== void 0 && context.lockingOrigins?.includes(origin)) return {
|
|
157
|
+
...resolved,
|
|
158
|
+
displayMode: "readOnly",
|
|
159
|
+
displayReason: "locked"
|
|
160
|
+
};
|
|
161
|
+
return {
|
|
162
|
+
...resolved,
|
|
163
|
+
displayMode: configured,
|
|
164
|
+
displayReason: "configured"
|
|
165
|
+
};
|
|
166
|
+
}),
|
|
167
|
+
values
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/internal/forms/checks/digitCount.ts
|
|
172
|
+
/** `digitCount`: only the digits 0-9, with a count in `lengths` or between `min` and `max`. */
|
|
173
|
+
function hasDigitCount(value, count) {
|
|
174
|
+
if (!/^[0-9]+$/.test(value)) return false;
|
|
175
|
+
const { length } = value;
|
|
176
|
+
if (count.lengths) return count.lengths.includes(length);
|
|
177
|
+
return (count.min === void 0 || length >= count.min) && (count.max === void 0 || length <= count.max);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* The `digitCount` message: one length (`exactDigits`), a list of lengths
|
|
181
|
+
* (`digitsOneOf`), or a range (`digitsBetween`), with the counts as params.
|
|
182
|
+
*/
|
|
183
|
+
function digitCountError(count) {
|
|
184
|
+
if (count.lengths?.length === 1) return {
|
|
185
|
+
key: "verification.errors.exactDigits",
|
|
186
|
+
params: { length: count.lengths[0] }
|
|
187
|
+
};
|
|
188
|
+
if (count.lengths) return {
|
|
189
|
+
key: "verification.errors.digitsOneOf",
|
|
190
|
+
params: { lengths: [...count.lengths] }
|
|
191
|
+
};
|
|
192
|
+
return {
|
|
193
|
+
key: "verification.errors.digitsBetween",
|
|
194
|
+
params: {
|
|
195
|
+
min: count.min ?? 0,
|
|
196
|
+
max: count.max ?? 0
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region src/internal/forms/checks/emailFormat.ts
|
|
202
|
+
/** One `@`, no whitespace, and a dot inside the domain. */
|
|
203
|
+
const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
204
|
+
/** Whether a value has an email's shape: one `@`, no spaces, a dot in the domain. */
|
|
205
|
+
function isEmailFormat(value) {
|
|
206
|
+
return EMAIL_PATTERN.test(value);
|
|
207
|
+
}
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/internal/forms/checks/noPoBox.ts
|
|
210
|
+
const PO_BOX_PATTERN = /POBox|P\.O\.Box|pobox|postofficebox|postbox|po\.box|p\.o\.box/i;
|
|
211
|
+
/** Whether an address describes a P.O. box, ignoring whitespace and case. */
|
|
212
|
+
function isPoBox(address) {
|
|
213
|
+
return PO_BOX_PATTERN.test(address.replace(/\s/g, ""));
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/internal/forms/checks/charTemplate.ts
|
|
217
|
+
const escapeForPattern = (chars) => chars.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
218
|
+
/**
|
|
219
|
+
* `charTemplate`: the whole value matches one template, where `9` is a digit,
|
|
220
|
+
* `A` an uppercase letter A-Z and any other character stands for itself.
|
|
221
|
+
* `ignoreCase` also accepts lowercase letters and literals in either case.
|
|
222
|
+
*/
|
|
223
|
+
function matchesCharTemplate(value, templates, ignoreCase = false) {
|
|
224
|
+
return templates.some((template) => {
|
|
225
|
+
const pattern = [...template].map((char) => {
|
|
226
|
+
if (char === "9") return "[0-9]";
|
|
227
|
+
if (char === "A") return "[A-Z]";
|
|
228
|
+
return escapeForPattern(char);
|
|
229
|
+
}).join("");
|
|
230
|
+
return new RegExp(`^${pattern}$`, ignoreCase ? "iu" : "u").test(value);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region src/internal/forms/checks/maxAge.ts
|
|
235
|
+
/**
|
|
236
|
+
* `maxAge`: an ISO `YYYY-MM-DD` date of birth at most `years` full years
|
|
237
|
+
* before `today`, also ISO, in the user's calendar. As in SDK1, someone turns
|
|
238
|
+
* a year older on their birthday. Field structure validation checks calendar
|
|
239
|
+
* dates before this age rule runs.
|
|
240
|
+
*/
|
|
241
|
+
function isWithinMaxAge(value, today, years) {
|
|
242
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return true;
|
|
243
|
+
const [birthYear, birthMonthDay] = [value.slice(0, 4), value.slice(5)];
|
|
244
|
+
const [todayYear, todayMonthDay] = [today.slice(0, 4), today.slice(5)];
|
|
245
|
+
return Number(todayYear) - Number(birthYear) - (todayMonthDay < birthMonthDay ? 1 : 0) <= years;
|
|
246
|
+
}
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/internal/forms/checks/nameCharacters.ts
|
|
249
|
+
const NAME_REGEX = /^[\p{L}\p{M} '’-]+$/u;
|
|
250
|
+
/** `nameCharacters`: letters from any script, spaces, hyphens and apostrophes. */
|
|
251
|
+
function hasNameCharacters(value) {
|
|
252
|
+
return NAME_REGEX.test(value);
|
|
253
|
+
}
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/internal/forms/checks/notFuture.ts
|
|
256
|
+
/**
|
|
257
|
+
* `notFuture`: an ISO `YYYY-MM-DD` date on or before `today`, also ISO, in
|
|
258
|
+
* the user's calendar. Field structure validation checks calendar dates
|
|
259
|
+
* before this range rule runs.
|
|
260
|
+
*/
|
|
261
|
+
function isNotFuture(value, today) {
|
|
262
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return true;
|
|
263
|
+
return value <= today;
|
|
264
|
+
}
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region src/internal/forms/checks/numericRange.ts
|
|
267
|
+
/** `numericRange`: a whole number from `min` to `max`. */
|
|
268
|
+
function isInNumericRange(value, min, max) {
|
|
269
|
+
if (!/^-?[0-9]+$/.test(value)) return false;
|
|
270
|
+
const number = Number(value);
|
|
271
|
+
return number >= min && number <= max;
|
|
272
|
+
}
|
|
273
|
+
//#endregion
|
|
274
|
+
export { matchesCharTemplate as a, digitCountError as c, isValidRut as d, isValidInDrivingLicenseNumber as f, isWithinMaxAge as i, hasDigitCount as l, isValidEsDni as m, isNotFuture as n, isPoBox as o, isValidFiPersonalIdentityCode as p, hasNameCharacters as r, isEmailFormat as s, isInNumericRange as t, resolvePrefill as u };
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, 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, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-knl_X2jh.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
2
2
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
3
|
-
import { n as recordsLivenessClip } from "./deepsightCaptureConfig-
|
|
3
|
+
import { n as recordsLivenessClip } from "./deepsightCaptureConfig-B7HX2BKP.esm.js";
|
|
4
4
|
import { r as createRecordingCompositor } from "./CameraCompositor-C7N1N61V.esm.js";
|
|
5
5
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-Di_V9TnZ.esm.js";
|
|
6
6
|
import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-BO7urYwT.esm.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { C as createEventBus } from "./types-CBQN04Rh.esm.js";
|
|
3
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
3
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-Bm5K21-R.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
6
|
//#region src/internal/flow-events/flowEvents.ts
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-Dm7p3T_t.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-CeEcakO7.js";
|
|
4
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-
|
|
4
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-BqDc7tER.js";
|
|
5
5
|
import { n as DeepsightService } from "./StreamCanvasCapture-BqaHTJF0.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
7
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
7
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-DOwu6Ukf.js";
|
|
8
8
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
9
9
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
|
10
10
|
type SelfieCaptureOnlyManager = FaceCaptureManager;
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-cZWqRr7-.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
4
4
|
import "./events-ChMS-UzR.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
8
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
9
|
-
import { s as processFace } from "./FaceDetectionProvider-
|
|
10
|
-
import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-
|
|
11
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
12
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
7
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BfedgErd.esm.js";
|
|
8
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D0eN82qj.esm.js";
|
|
9
|
+
import { s as processFace } from "./FaceDetectionProvider-D-1rS3WB.esm.js";
|
|
10
|
+
import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-A7IPW-RU.esm.js";
|
|
11
|
+
import { t as selfieMachine } from "./selfieStateMachine-Bxi31PsA.esm.js";
|
|
12
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-CpV6Lw0q.esm.js";
|
|
13
13
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DNQX9k5e.esm.js";
|
|
14
14
|
/**
|
|
15
15
|
* Selfie state machine variant for the captureOnly flow. Shares the full base
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
1
|
+
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-D-1rS3WB.esm.js";
|
|
2
2
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
3
3
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
4
4
|
const isFaceErrorCode = (value) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-cZWqRr7-.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
4
4
|
import "./events-ChMS-UzR.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
7
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D0eN82qj.esm.js";
|
|
7
|
+
import { t as selfieMachine } from "./selfieStateMachine-Bxi31PsA.esm.js";
|
|
8
8
|
//#region src/modules/selfie/selfieActor.ts
|
|
9
9
|
function createSelfieActor(options) {
|
|
10
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-Dm7p3T_t.js";
|
|
4
4
|
//#region src/modules/selfie/selfieManager.d.ts
|
|
5
5
|
type SelfieState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
5
|
-
import { n as validateUploadResponse } from "./selfieErrorUtils-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-BfedgErd.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-D-1rS3WB.esm.js";
|
|
5
|
+
import { n as validateUploadResponse } from "./selfieErrorUtils-BB-nxdeJ.esm.js";
|
|
6
6
|
/**
|
|
7
7
|
* The selfie capture state machine.
|
|
8
8
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as getApi, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
2
|
-
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-
|
|
3
|
-
import "./trueSight-
|
|
4
|
-
import "./sessionInitializer-
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
2
|
+
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-Bm5K21-R.esm.js";
|
|
3
|
+
import "./trueSight-DK2Q1w9z.esm.js";
|
|
4
|
+
import "./sessionInitializer-C4cinkbs.esm.js";
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-CxKf45Ky.esm.js";
|
|
6
6
|
//#region src/internal/session/sessionService.ts
|
|
7
7
|
/**
|
|
8
8
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./warmup-SWu5L7cW.js";
|
|
2
|
-
import { t as DeviceFingerprintResult } from "./types-
|
|
2
|
+
import { t as DeviceFingerprintResult } from "./types-CH9u9ikn.js";
|
|
3
3
|
import { n as FinishStatus, r as GetFinishStatusFn, s as getFinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
4
4
|
//#region src/internal/session/sessionService.d.ts
|
|
5
5
|
type CreateSessionOptions = {
|
package/dist/session.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as getToken } from "./api-BNxrW8xK.esm.js";
|
|
2
2
|
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
3
|
-
import { d as whenSessionFingerprintSettled, i as initializeSession } from "./sessionInitializer-
|
|
3
|
+
import { d as whenSessionFingerprintSettled, i as initializeSession } from "./sessionInitializer-C4cinkbs.esm.js";
|
|
4
4
|
import { n as onConnectivityChange, r as resumeConnectivity, t as isConnectivityLost } from "./connectivity-BCuEoQ-n.esm.js";
|
|
5
|
-
import { t as IncodeApiError } from "./apiError-
|
|
6
|
-
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
7
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
5
|
+
import { t as IncodeApiError } from "./apiError-CxKf45Ky.esm.js";
|
|
6
|
+
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-syFGvfFW.esm.js";
|
|
7
|
+
import { n as getFinishStatus } from "./flowCompletionService-DlXzGwgu.esm.js";
|
|
8
8
|
//#region src/internal/session/sessionExpired.ts
|
|
9
9
|
var SessionExpiredError = class extends Error {
|
|
10
10
|
constructor() {
|
|
@@ -3,10 +3,10 @@ import { n as resetWasmDeepsightConfigSync } from "./wasmDeepsightConfigSync-Duk
|
|
|
3
3
|
import { S as subscribeEvent, v as addEvent, y as getAnalyticsBatcher } from "./types-CBQN04Rh.esm.js";
|
|
4
4
|
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
5
5
|
import "./events-ChMS-UzR.esm.js";
|
|
6
|
-
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-
|
|
7
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
8
|
-
import "./trueSight-
|
|
9
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
6
|
+
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-Bm5K21-R.esm.js";
|
|
7
|
+
import { t as SDK_VERSION } from "./sdkVersion-C3x7ZDSE.esm.js";
|
|
8
|
+
import "./trueSight-DK2Q1w9z.esm.js";
|
|
9
|
+
import { E as updateFeatureManagementUser } from "./feature-management-BD2hrfZ3.esm.js";
|
|
10
10
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-CrqhpKkP.esm.js";
|
|
11
11
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
12
12
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
@@ -4,15 +4,15 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
|
4
4
|
import { b as resetAnalyticsBatcher, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./types-CBQN04Rh.esm.js";
|
|
5
5
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
6
6
|
import { i as createAnalyticsBatchingService, r as resetExperimentAssignments } from "./events-ChMS-UzR.esm.js";
|
|
7
|
-
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-
|
|
8
|
-
import "./trueSight-
|
|
9
|
-
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, a as resetSessionInit, c as setClientIpLookupEnabled, g as setStandaloneFlowPolicy, h as resolveStandaloneFlowPolicy, i as initializeSession, l as setClientWasmConfig, m as resetStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as registerFlowPreloader, s as setClientHostingApp, u as setClientWasmDisabled } from "./sessionInitializer-
|
|
7
|
+
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-Bm5K21-R.esm.js";
|
|
8
|
+
import "./trueSight-DK2Q1w9z.esm.js";
|
|
9
|
+
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, a as resetSessionInit, c as setClientIpLookupEnabled, g as setStandaloneFlowPolicy, h as resolveStandaloneFlowPolicy, i as initializeSession, l as setClientWasmConfig, m as resetStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as registerFlowPreloader, s as setClientHostingApp, u as setClientWasmDisabled } from "./sessionInitializer-C4cinkbs.esm.js";
|
|
10
10
|
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
11
11
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
12
|
-
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-
|
|
12
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-BD2hrfZ3.esm.js";
|
|
13
13
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CrqhpKkP.esm.js";
|
|
14
14
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-xzRLIIMN.esm.js";
|
|
15
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
15
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-CxTdN-OL.esm.js";
|
|
16
16
|
//#region ../infra/src/wasm/wasmRuntimeProfile.ts
|
|
17
17
|
/**
|
|
18
18
|
* The WASM facts TrueSight reports as `session.webProfile.wasm`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./trueSightService-Bm5K21-R.esm.js";
|
|
@@ -3,7 +3,7 @@ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.
|
|
|
3
3
|
import { S as subscribeEvent, n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
4
4
|
import { i as isApiConfigured, l as withTiming, n as getApi, o as setClient, r as getToken, t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
5
5
|
import "./events-ChMS-UzR.esm.js";
|
|
6
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
6
|
+
import { t as SDK_VERSION } from "./sdkVersion-C3x7ZDSE.esm.js";
|
|
7
7
|
import { n as reportHttpError, t as HttpRequestError } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
8
8
|
/** Dirty-timer half of the interrupted-snapshot rebuild debounce (module boundaries + timer). */
|
|
9
9
|
const SNAPSHOT_DIRTY_INTERVAL_MS = 15e3;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { i as FlowModuleConfig } from "./types-ia31g4VQ.js";
|
|
2
|
+
import { t as BaseFaceCaptureConfig } from "./types-BqDc7tER.js";
|
|
3
|
+
//#region src/modules/authentication/types.d.ts
|
|
4
|
+
type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { AuthenticationConfig as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as AvatarAssetsOverrides } from "./createFaceAvatar-Ct9QrQ66.js";
|
|
2
|
-
import { c as SelfieConcealmentOption, n as Flow, s as DeepsightCaptureConfig } from "./types-
|
|
2
|
+
import { c as SelfieConcealmentOption, n as Flow, s as DeepsightCaptureConfig } from "./types-ia31g4VQ.js";
|
|
3
3
|
import { a as IStorageCapability, n as IWasmUtilCapability } from "./IWasmUtilCapability-CLWIYHB4.js";
|
|
4
4
|
//#region src/internal/faceCapture/types.d.ts
|
|
5
5
|
type CameraResolution = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { y as IncodeCanvas } from "./createFaceAvatar-Ct9QrQ66.js";
|
|
2
|
-
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-
|
|
2
|
+
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-ia31g4VQ.js";
|
|
3
3
|
import { a as IStorageCapability } from "./IWasmUtilCapability-CLWIYHB4.js";
|
|
4
4
|
import { t as PermissionResult } from "./types-CeEcakO7.js";
|
|
5
5
|
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-BqaHTJF0.js";
|
|
@@ -30,12 +30,4 @@ type AddressSuggestion = {
|
|
|
30
30
|
countryCode?: string;
|
|
31
31
|
};
|
|
32
32
|
//#endregion
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* The general-purpose form-definition rules from `vocabulary.json`, as pure
|
|
36
|
-
* checks on a non-empty value. Callers skip empty values: requiredness is its
|
|
37
|
-
* own rule.
|
|
38
|
-
*/
|
|
39
|
-
type CharacterClass = 'letter' | 'digit' | 'space';
|
|
40
|
-
//#endregion
|
|
41
|
-
export { AddressSuggestion as n, FieldDef as r, CharacterClass as t };
|
|
33
|
+
export { FieldDef as n, AddressSuggestion as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as FieldDef } from "./types-D6Q1D1kx.js";
|
|
2
2
|
//#region src/modules/kyb-checks/types.d.ts
|
|
3
3
|
/** KYB checks a step can run. */
|
|
4
4
|
type KybCheckModuleKey = 'identity' | 'address' | 'statusEntityType' | 'personAssociation' | 'webPresence' | 'websiteAnalysis' | 'industryInfo' | 'financialIntelligence' | 'groupStructure';
|
|
@@ -28,27 +28,6 @@ type KybChecksConfig = {
|
|
|
28
28
|
type KybFieldValues = Record<string, KybFieldValue>;
|
|
29
29
|
type KybFieldErrors = Record<string, KybText>;
|
|
30
30
|
type KybChecksErrorKind = 'load' | 'submit';
|
|
31
|
-
/** A field check, run in order; the first failing rule's message is shown. */
|
|
32
|
-
type KybValidationRule = {
|
|
33
|
-
type: 'required';
|
|
34
|
-
} | {
|
|
35
|
-
type: 'allowedCharacters';
|
|
36
|
-
classes: CharacterClass[];
|
|
37
|
-
extra: string;
|
|
38
|
-
/** `letter` means A-Z in either case. */
|
|
39
|
-
ascii: boolean;
|
|
40
|
-
message: KybText;
|
|
41
|
-
} | {
|
|
42
|
-
type: 'maxLength';
|
|
43
|
-
max: number;
|
|
44
|
-
message: KybText;
|
|
45
|
-
};
|
|
46
|
-
/** A check across fields, shown on the first field it names. */
|
|
47
|
-
type KybFormLevelRule = {
|
|
48
|
-
type: 'oneOfRequired';
|
|
49
|
-
fields: string[];
|
|
50
|
-
message: KybText;
|
|
51
|
-
};
|
|
52
31
|
/**
|
|
53
32
|
* One field to render, like eKYB's `EkybFieldDef`. `label` and option labels
|
|
54
33
|
* are translation keys; each `labelText` is the served English fallback.
|
|
@@ -69,7 +48,6 @@ type KybFieldDef = Omit<FieldDef, 'type' | 'options'> & {
|
|
|
69
48
|
refetchOnChange?: string;
|
|
70
49
|
/** The value the backend served, used until the user changes it. */
|
|
71
50
|
initialValue: KybFieldValue;
|
|
72
|
-
validation: KybValidationRule[];
|
|
73
51
|
};
|
|
74
52
|
type KybChecksSection = {
|
|
75
53
|
id: string;
|
|
@@ -77,4 +55,4 @@ type KybChecksSection = {
|
|
|
77
55
|
fields: KybFieldDef[];
|
|
78
56
|
};
|
|
79
57
|
//#endregion
|
|
80
|
-
export { KybChecksSection as a, KybFieldValue as c,
|
|
58
|
+
export { KybChecksSection as a, KybFieldValue as c, KybUnsupportedModule as d, KybChecksResult as i, KybFieldValues as l, KybChecksConfig as n, KybFieldDef as o, KybChecksErrorKind as r, KybFieldErrors as s, KybCheckModuleKey as t, KybText as u };
|