@incodetech/core 0.0.0-dev-20261201-b41183a2 → 0.0.0-dev-20261201-e37652f8
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-DILvXMxQ.esm.js → FaceDetectionProvider-DQYbHLxC.esm.js} +7 -7
- package/dist/{addressSearch-BJ711RHG.esm.js → addressSearch-gginelz3.esm.js} +29 -27
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-DRMBLSh7.esm.js → antifraudManager-B673OXCo.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bi0m60oV.esm.js → antifraudStateMachine-C_d7-TUA.esm.js} +1 -1
- package/dist/{api-B58edv6M.esm.js → api-CsXnB7m6.esm.js} +1 -0
- package/dist/{apiError-B80OYJHb.esm.js → apiError-BRiJu_rv.esm.js} +1 -1
- package/dist/{attemptCarry-CxiYlUAO.esm.js → attemptCarry-8gUYc3pL.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CXDKsr-j.esm.js → authenticationManager-CrBlRkAd.esm.js} +4 -4
- package/dist/{authenticationManager-C_ttJLGU.d.ts → authenticationManager-Cv_jCMGJ.d.ts} +1 -1
- package/dist/{authenticationStateMachine-CjheAavc.esm.js → authenticationStateMachine-DLwEyCeH.esm.js} +3 -3
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-DGzHjp2j.esm.js → certificateIssuanceManager-D-Dm90F3.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-DpflnS6P.esm.js → certificateIssuanceStateMachine-CBNw9Niu.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-Bx_osBME.d.ts → consentManager-Bow34QP_.d.ts} +13 -13
- package/dist/{consentManager-CyoeiABc.esm.js → consentManager-DQ1uiNhr.esm.js} +2 -2
- package/dist/{consentStateMachine-BTUrAslr.esm.js → consentStateMachine-Cb7dKk_1.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-cmQmp7Bi.esm.js → crossDocumentDataMatchManager-CeeEmCV1.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-BFPZiliY.d.ts → curpValidationManager-DFWjZq3i.d.ts} +1 -1
- package/dist/{curpValidationManager-EW44fVpH.esm.js → curpValidationManager-vgHG8gob.esm.js} +2 -2
- package/dist/{curpValidationStateMachine-BFkt90Zs.esm.js → curpValidationStateMachine-DaSzh9OA.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-DPMBJrcH.esm.js → customFieldsManager-BuEt-nm4.esm.js} +2 -2
- package/dist/{customWatchlistManager-DiYpPjZx.esm.js → customWatchlistManager-C1z0B5NU.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-D7VxQggF.esm.js → customWatchlistStateMachine-DvwFHjkC.esm.js} +1 -1
- package/dist/{deepsightCaptureConfig-22yGNhzp.esm.js → deepsightCaptureConfig-BVJANeRn.esm.js} +2 -2
- package/dist/{deepsightLoader-DAvHxEmQ.esm.js → deepsightLoader-C6nKqY9Q.esm.js} +4 -4
- package/dist/{desktopCameraElection-DKHWoXIZ.esm.js → desktopCameraElection-BAq-Kaiq.esm.js} +5 -5
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.esm.js +2 -2
- package/dist/{documentCaptureManager-sJWgqtUy.d.ts → documentCaptureManager-DOgJTJ4F.d.ts} +4 -4
- package/dist/{documentCaptureManager-ytELw-yO.esm.js → documentCaptureManager-DoHy82WC.esm.js} +2 -2
- package/dist/{documentCaptureStateMachine-lKG1IVEM.esm.js → documentCaptureStateMachine-C_HQH7vA.esm.js} +2 -2
- package/dist/{documentSignatureStateMachine-BVv6yTDC.esm.js → documentSignatureStateMachine-Btlg3q7j.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-L9BCGhY3.esm.js → dynamicFormsManager-SbEUnFoF.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-UeIgfIgO.esm.js → dynamicFormsStateMachine-Dxv36mAP.esm.js} +2 -2
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BNG13W2D.esm.js → ekybManager-xhoOX9O9.esm.js} +2 -2
- package/dist/{ekybStateMachine-qSw4IjCe.esm.js → ekybStateMachine-CCjUH0j3.esm.js} +184 -57
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -0
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-Bt0FZlZO.esm.js → ekycManager-DrGuK0kT.esm.js} +2 -2
- package/dist/{ekycPrefillManager-C5DMDJEA.esm.js → ekycPrefillManager-C9kdwCC6.esm.js} +2 -2
- package/dist/{ekycPrefillManager-D-8VY48A.d.ts → ekycPrefillManager-Di6aMx68.d.ts} +8 -8
- package/dist/{ekycPrefillStateMachine-66IiDSxQ.esm.js → ekycPrefillStateMachine-DiQifkkd.esm.js} +9 -88
- package/dist/{ekycStateMachine-lo3GvfpV.esm.js → ekycStateMachine-BmMdLe2G.esm.js} +299 -126
- package/dist/{ekycUtils-BnTyeA-_.esm.js → ekycUtils-DfBNTcvX.esm.js} +41 -5
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Dc0_ymIt.esm.js → electronicSignatureManager-C6liTNbu.esm.js} +3 -3
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BBdRYLtH.esm.js → emailManager-CUX2saAB.esm.js} +2 -2
- package/dist/{emailStateMachine-DO7lWYvn.esm.js → emailStateMachine-BzWHKLtW.esm.js} +2 -2
- package/dist/{events-PUWyizJn.esm.js → events-Dlkhhx5O.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +35 -35
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-D0y15MK_.d.ts → faceCaptureManagerFactory-2oqROMSB.d.ts} +3 -3
- package/dist/{faceCaptureManagerFactory-DePLuBnT.esm.js → faceCaptureManagerFactory-OL8BWaIW.esm.js} +3 -3
- package/dist/{faceCaptureSetup-C8qfvh2x.esm.js → faceCaptureSetup-DQVtmb1q.esm.js} +10 -10
- package/dist/{faceMatchManager-nBvS9z0o.esm.js → faceMatchManager-BzaXiW4H.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-48O8j_Lx.esm.js → faceMatchStateMachine-BItwQ_yA.esm.js} +2 -2
- package/dist/{feature-management-srznX8Iz.esm.js → feature-management-D_T-MG_i.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-B1ipvtnp.esm.js → fieldComparisonManager-CzX6IhGd.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-yecjuXV4.esm.js → fiscalQrManager-Dg6Mp58y.esm.js} +2 -2
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +31 -9
- package/dist/flow.esm.js +11 -7
- package/dist/{flowCompletionService-Cba59yFV.esm.js → flowCompletionService-L0J63ui-.esm.js} +2 -2
- package/dist/{flowServices-B33MhjQM.esm.js → flowServices-3OXrEqDE.esm.js} +25 -21
- package/dist/formDefinitionsRollout-B-c4yO2z.esm.js +30 -0
- package/dist/{formErrors-lSfh7Y8J.esm.js → formErrors-kpskZLNT.esm.js} +39 -180
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-C7cHHTkd.esm.js → geolocationManager-CREfQNgO.esm.js} +2 -2
- package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
- package/dist/{geolocationStateMachine-QJqoWT7E.esm.js → geolocationStateMachine-D9_bBr19.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-0-L21hu6.esm.js → governmentValidationManager-B7lIuL4r.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-BFIcq3UB.esm.js → governmentValidationStateMachine-BuW6l3ah.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +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-verification.esm.js +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-3YmXwvvY.esm.js → idCaptureManager-B5ZN7scK.esm.js} +6 -6
- package/dist/{idCaptureManager-B72fNOKa.d.ts → idCaptureManager-BMsGPjcf.d.ts} +2 -2
- package/dist/{idCaptureServices-j-hB9ROq.esm.js → idCaptureServices-7zZ457LW.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-DcQQvjLv.esm.js → idCaptureStateMachine-FP4j-qeT.esm.js} +15 -15
- package/dist/{idOcrManager-CNGVEZ7B.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
- package/dist/{idOcrManager-bjBLjrEE.esm.js → idOcrManager-C9C8UaPr.esm.js} +2 -2
- package/dist/{idOcrStateMachine-D5ifJ1B8.esm.js → idOcrStateMachine-DANDVn-6.esm.js} +1 -1
- package/dist/{idVerificationManager-C8Ja-vKq.esm.js → idVerificationManager-B_6wwpeT.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-BMnfZZli.esm.js → idVerificationStateMachine-MjQmD3yQ.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.esm.js +1 -1
- package/dist/{identityReuseManager-D_jiHp1n.d.ts → identityReuseManager-BE6LHcuP.d.ts} +157 -21
- package/dist/{identityReuseManager-B5BWAleT.esm.js → identityReuseManager-DWECWIiZ.esm.js} +7 -3
- package/dist/{identityReuseStateMachine-Cuggm1UP.esm.js → identityReuseStateMachine-nBv0KUJC.esm.js} +73 -5
- package/dist/{index-O5g5kKdI.d.ts → index-k1LUfkAo.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-BorQeoKZ.esm.js → kybChecksManager-tUsFKBCN.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-kuV8xPAu.esm.js → kybChecksStateMachine-D1q4K7Xr.esm.js} +4 -4
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-C6jjFptX.d.ts → mandatoryConsentManager-De9ZX6o4.d.ts} +10 -10
- package/dist/{mandatoryConsentManager-FfgHdPYw.esm.js → mandatoryConsentManager-S8rgqCld.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-CXuYC3qR.esm.js → mandatoryConsentStateMachine-BtE4heVc.esm.js} +1 -1
- package/dist/{multipartRecordingService-CFmOUGQt.esm.js → multipartRecordingService-C8v02l56.esm.js} +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-oIMdbeLG.esm.js → phoneManager-uQEAWKlO.esm.js} +2 -2
- package/dist/{phoneServices-Dk4j3NhI.esm.js → phoneServices-XoT74eS0.esm.js} +1 -1
- package/dist/{phoneStateMachine-Cu3y7ewi.esm.js → phoneStateMachine-B4W4CSqf.esm.js} +2 -2
- package/dist/{processFaceMatch-CHeI0DEt.esm.js → processFaceMatch-CpQYLU-y.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-RHW4CWxh.esm.js → recordingService-OcyZO_w6.esm.js} +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DmrPLTLG.esm.js → redirectToMobileManager-UQZkhZFB.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-OeQDdgsK.esm.js → redirectToMobileStateMachine-D1wp--wG.esm.js} +1 -1
- package/dist/{runChildModule-pJrB5rsq.esm.js → runChildModule-BuZFd3Df.esm.js} +1 -1
- package/dist/{sdkVersion-CiTnubuK.esm.js → sdkVersion-BY8g-EEL.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +8 -8
- package/dist/{selfieErrorUtils-UJWNVxvr.esm.js → selfieErrorUtils-DIVWh0ih.esm.js} +1 -1
- package/dist/{selfieManager-B9nn8qKH.esm.js → selfieManager-DQ5xB8y6.esm.js} +4 -4
- package/dist/{selfieManager-C44cA6cA.d.ts → selfieManager-RgcJwpHg.d.ts} +1 -1
- package/dist/{selfieStateMachine-7H38L53x.esm.js → selfieStateMachine-fyNh2r31.esm.js} +3 -3
- package/dist/{session-BLrEehWj.esm.js → session-DKnCv6zu.esm.js} +5 -5
- package/dist/session.d.ts +9 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DAC3I8PG.esm.js → sessionInitializer-q5b8Qwr3.esm.js} +7 -7
- package/dist/{setup-BajT35bZ.esm.js → setup-JGwc0kgu.esm.js} +8 -8
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-DRUflksL.esm.js → signatureManager-3g4_cavt.esm.js} +2 -2
- package/dist/{signatureStateMachine-BQZenxel.esm.js → signatureStateMachine-CkES2vVv.esm.js} +1 -1
- package/dist/{stats-DHu3li6G.esm.js → stats-D_gJvsTS.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/trim-OmrUb6mG.esm.js +297 -0
- package/dist/trueSight-9VsfHXFt.esm.js +1 -0
- package/dist/{trueSightService-BLyfduve.esm.js → trueSightService-Dx8AqgKD.esm.js} +3 -3
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{trustGraphStateMachine-0Ehwried.esm.js → trustGraphStateMachine-fuYq0Cxf.esm.js} +1 -1
- package/dist/{types-C57lH3a8.d.ts → types-BV2Tl1wE.d.ts} +1 -1
- package/dist/{types-CaQV2ksk.d.ts → types-BVgTvWOP.d.ts} +1 -1
- package/dist/{types-DDmU-yVM.d.ts → types-DAhpyjuI.d.ts} +1 -1
- package/dist/{types-ujAUlvvI.d.ts → types-DH4VaTRC.d.ts} +4 -4
- package/dist/types-RLVmm_Hf.d.ts +6 -0
- package/dist/{types-ByNCQYE9.d.ts → types-YS7g_P7z.d.ts} +1 -1
- package/dist/uppercase-CwlIuiwR.esm.js +115 -0
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +6 -6
- package/dist/{videoSelfieCameraWarmer-D4nY62Xt.esm.js → videoSelfieCameraWarmer-AoMytGBD.esm.js} +4 -4
- package/dist/{videoSelfieStepDetector-DAEJDeL3.d.ts → videoSelfieStepDetector-DCOmz3yk.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-d8kdf35n.esm.js → watchlistForBusinessManager-VDu1ypVz.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-Y9wFmuMH.esm.js → watchlistForBusinessStateMachine-Dr85bA22.esm.js} +1 -1
- package/dist/{watchlistManager-D1BVrd3H.esm.js → watchlistManager-Dc9sFwZx.esm.js} +2 -2
- package/dist/{watchlistStateMachine-Da4p0sTE.esm.js → watchlistStateMachine-BnKGh6Kk.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -5
- package/dist/workflow.esm.js +40 -40
- package/package.json +1 -1
- package/dist/definitionSource-B9WTvQb9.esm.js +0 -30
- package/dist/resolveForm-DaaQSVWp.esm.js +0 -146
- package/dist/trueSight-BdWbgUnZ.esm.js +0 -1
- package/dist/types-B_THBzAh.d.ts +0 -6
package/dist/flow.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { g as screenOpened, m as screenClosed, v as addEvent } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import "./events-
|
|
2
|
+
import "./events-Dlkhhx5O.esm.js";
|
|
3
3
|
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
4
|
-
import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-
|
|
4
|
+
import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-3OXrEqDE.esm.js";
|
|
5
5
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
9
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
8
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-L0J63ui-.esm.js";
|
|
9
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BuZFd3Df.esm.js";
|
|
10
10
|
import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
11
11
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
12
12
|
const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
|
|
@@ -402,6 +402,7 @@ function createBaseContext(context, isHomeContinueLoading) {
|
|
|
402
402
|
currentStep: void 0,
|
|
403
403
|
config: void 0,
|
|
404
404
|
getFlow: context.getFlow,
|
|
405
|
+
getIdentitySearchHintProvided: context.getIdentitySearchHintProvided,
|
|
405
406
|
registeredModules: context.registeredModules,
|
|
406
407
|
lazyRegisteredModules: context.lazyRegisteredModules,
|
|
407
408
|
currentModuleMachine: void 0,
|
|
@@ -418,6 +419,7 @@ function createBaseContext(context, isHomeContinueLoading) {
|
|
|
418
419
|
function createInitialContext(input) {
|
|
419
420
|
return createBaseContext({
|
|
420
421
|
getFlow: input.getFlow,
|
|
422
|
+
getIdentitySearchHintProvided: input.getIdentitySearchHintProvided,
|
|
421
423
|
registeredModules: input.modules ?? {},
|
|
422
424
|
lazyRegisteredModules: input.lazyModules ?? {},
|
|
423
425
|
getFinishStatus: input.getFinishStatus ?? getFinishStatus,
|
|
@@ -479,7 +481,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
479
481
|
actors: {
|
|
480
482
|
fetchFlow: fromPromise(async ({ input, signal }) => {
|
|
481
483
|
const served = prepareFlowOcrSteps(await retryAfterReconnect(() => input.getFlow(signal), signal));
|
|
482
|
-
const arming = armFlowPresets(served, input.canResolve);
|
|
484
|
+
const arming = armFlowPresets(served, input.canResolve, { identitySearchHintProvided: input.identitySearchHintProvided });
|
|
483
485
|
if (arming.status === "misconfigured") return {
|
|
484
486
|
flow: served,
|
|
485
487
|
arming
|
|
@@ -733,7 +735,8 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
733
735
|
src: "fetchFlow",
|
|
734
736
|
input: ({ context }) => ({
|
|
735
737
|
getFlow: context.getFlow,
|
|
736
|
-
canResolve: (key) => canResolveModule(context, key)
|
|
738
|
+
canResolve: (key) => canResolveModule(context, key),
|
|
739
|
+
identitySearchHintProvided: context.getIdentitySearchHintProvided?.() === true
|
|
737
740
|
}),
|
|
738
741
|
onDone: [
|
|
739
742
|
{
|
|
@@ -1247,7 +1250,8 @@ function createOrchestratedFlowActor(options) {
|
|
|
1247
1250
|
lazyModules: options.lazyModules,
|
|
1248
1251
|
getFinishStatus: options.getFinishStatus,
|
|
1249
1252
|
enableHome: options.enableHome,
|
|
1250
|
-
deferActivation: options.deferActivation
|
|
1253
|
+
deferActivation: options.deferActivation,
|
|
1254
|
+
getIdentitySearchHintProvided: options.getIdentitySearchHintProvided
|
|
1251
1255
|
} }).start();
|
|
1252
1256
|
}
|
|
1253
1257
|
function createOrchestratedFlowManager(options) {
|
package/dist/{flowCompletionService-Cba59yFV.esm.js → flowCompletionService-L0J63ui-.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
|
+
import { i as toIncodeApiError } from "./apiError-BRiJu_rv.esm.js";
|
|
3
3
|
//#region src/modules/flow/flowCompletionService.ts
|
|
4
4
|
const getFinishStatus = async (flowId, signal) => {
|
|
5
5
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as getWasmStatus } from "./warmup-O3rAoe1-.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
3
|
-
import { r as getToken, t as api, u as endpoints } from "./api-
|
|
4
|
-
import { d as whenSessionFingerprintSettled, f as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
5
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
6
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
7
|
-
import "./session-
|
|
3
|
+
import { r as getToken, t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
4
|
+
import { d as whenSessionFingerprintSettled, f as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-q5b8Qwr3.esm.js";
|
|
5
|
+
import { E as updateFeatureManagementUser } from "./feature-management-D_T-MG_i.esm.js";
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-BRiJu_rv.esm.js";
|
|
7
|
+
import "./session-DKnCv6zu.esm.js";
|
|
8
8
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
9
|
-
import { i as prefetchStartInfo } from "./phoneServices-
|
|
9
|
+
import { i as prefetchStartInfo } from "./phoneServices-XoT74eS0.esm.js";
|
|
10
10
|
//#region src/modules/flow/dashboardConfig.ts
|
|
11
11
|
function isPlainObject(value) {
|
|
12
12
|
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
@@ -102,7 +102,6 @@ function videoSelfieWasmPipelines(config, steps = resolveVideoSelfieSteps(config
|
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/modules/flow/presets/identityReusePreset.ts
|
|
104
104
|
const SHARED = "identityShared";
|
|
105
|
-
const HINT_PROVIDED = "identitySearchHintProvided";
|
|
106
105
|
const OUTCOMES = "identityReuseOutcomes";
|
|
107
106
|
/** The modules that switch the preset on. Normalization reads them too. */
|
|
108
107
|
const IDENTITY_REUSE_TRIGGERS = ["IDENTITY_SEARCH", "IDENTITY_REUSE"];
|
|
@@ -194,9 +193,9 @@ const identityReusePreset = {
|
|
|
194
193
|
misconfiguredErrorCode: "IDENTITY_REUSE_FLOW_MISCONFIGURED",
|
|
195
194
|
title: "Identity reuse",
|
|
196
195
|
analyticsModule: eventModuleNames.identityReusePath,
|
|
197
|
-
prepare(modules,
|
|
196
|
+
prepare(modules, context) {
|
|
198
197
|
const groupStart = modules.findIndex((module) => isMember(module.key));
|
|
199
|
-
const dropsContacts =
|
|
198
|
+
const dropsContacts = context.identitySearchHintProvided;
|
|
200
199
|
return modules.flatMap((module, index) => {
|
|
201
200
|
if (dropsContacts && index < groupStart && CONTACTS.includes(module.key)) return [];
|
|
202
201
|
if (module.key === "AUTHENTICATION") return [{
|
|
@@ -209,10 +208,10 @@ const identityReusePreset = {
|
|
|
209
208
|
return [module];
|
|
210
209
|
});
|
|
211
210
|
},
|
|
212
|
-
check(modules,
|
|
211
|
+
check(modules, context) {
|
|
213
212
|
const keys = modules.map((module) => module.key);
|
|
214
213
|
const missing = REQUIRED.filter((key) => !keys.includes(key)).map((key) => key === "ID_VALIDATION" ? ID_VALIDATION_LABEL : key);
|
|
215
|
-
if (
|
|
214
|
+
if (!context.identitySearchHintProvided) {
|
|
216
215
|
const groupStart = keys.findIndex(isMember);
|
|
217
216
|
if (!(groupStart === -1 ? [] : keys.slice(0, groupStart)).some((key) => CONTACTS.includes(key))) missing.push(CONTACT_BEFORE_GROUP);
|
|
218
217
|
}
|
|
@@ -255,7 +254,7 @@ let configConverters;
|
|
|
255
254
|
async function loadFlowConfigConverters(flow) {
|
|
256
255
|
const needed = flow.flowModules.some((module) => module.key === "EXTERNAL_VERIFICATION" || module.key === "EKYB");
|
|
257
256
|
if (configConverters || !needed) return;
|
|
258
|
-
const [ekyc, ekyb] = await Promise.all([import("./ekycUtils-
|
|
257
|
+
const [ekyc, ekyb] = await Promise.all([import("./ekycUtils-DfBNTcvX.esm.js").then((n) => n.n), import("./ekybUtils-CX-dR5p9.esm.js").then((n) => n.t)]);
|
|
259
258
|
configConverters = {
|
|
260
259
|
toEkycConfig: ekyc.toEkycConfig,
|
|
261
260
|
toEkybConfig: ekyb.toEkybConfig
|
|
@@ -501,9 +500,11 @@ function isTriggered(modules, preset) {
|
|
|
501
500
|
return modules.some((module) => preset.triggers.includes(module.key));
|
|
502
501
|
}
|
|
503
502
|
/** Runs the preset's `prepare`, then lays its group out. */
|
|
504
|
-
function prepareAndLayOut(modules,
|
|
505
|
-
return layOut(preset.prepare?.(modules,
|
|
503
|
+
function prepareAndLayOut(modules, context, preset) {
|
|
504
|
+
return layOut(preset.prepare?.(modules, context) ?? modules, preset);
|
|
506
505
|
}
|
|
506
|
+
/** A session without the identity search hint. */
|
|
507
|
+
const NO_SESSION_HINT = { identitySearchHintProvided: false };
|
|
507
508
|
/**
|
|
508
509
|
* Takes the preset's members out of the list and puts them back in run order,
|
|
509
510
|
* at the position of the earliest one. Every other module keeps its served
|
|
@@ -543,14 +544,16 @@ function describeMisconfiguredPreset(preset, problems) {
|
|
|
543
544
|
* @param canResolve - Whether a machine is registered for a module key. It is
|
|
544
545
|
* read when arming runs, after `getFlow`, because `<incode-flow>` fills its
|
|
545
546
|
* lazy registry inside `getFlow`.
|
|
547
|
+
* @param context - What the session start said, such as the identity search
|
|
548
|
+
* hint. Without it, the session has no hint.
|
|
546
549
|
*/
|
|
547
|
-
function armFlowPresets(flow, canResolve) {
|
|
550
|
+
function armFlowPresets(flow, canResolve, context = NO_SESSION_HINT) {
|
|
548
551
|
let laidOut = flow.flowModules ?? [];
|
|
549
552
|
const armedPresets = [];
|
|
550
553
|
for (const preset of FLOW_PRESETS) {
|
|
551
554
|
if (!isTriggered(laidOut, preset)) continue;
|
|
552
|
-
laidOut = prepareAndLayOut(laidOut,
|
|
553
|
-
const { missing, unsupported } = preset.check(laidOut,
|
|
555
|
+
laidOut = prepareAndLayOut(laidOut, context, preset);
|
|
556
|
+
const { missing, unsupported } = preset.check(laidOut, context);
|
|
554
557
|
const unregistered = [...new Set(laidOut.map((module) => module.key).filter((key) => preset.members.includes(key) && !canResolve(key)))];
|
|
555
558
|
if (missing.length + unsupported.length + unregistered.length > 0) {
|
|
556
559
|
const problems = {
|
|
@@ -685,14 +688,15 @@ function stepsTheCurrentDecisionMaySkip({ armedPresets, steps, currentStepIndex
|
|
|
685
688
|
* have prepared it and laid it out, for preloading before the flow loads. It
|
|
686
689
|
* doesn't run the presets' checks, so it also answers for a raw dashboard
|
|
687
690
|
* flow or one that will fail to load. With the identity search hint from
|
|
688
|
-
* session start, for example, that is
|
|
689
|
-
* steps.
|
|
691
|
+
* session start (`options.identitySearchHintProvided`), for example, that is
|
|
692
|
+
* the module after the dropped contact steps.
|
|
690
693
|
*/
|
|
691
|
-
function getFirstFlowModuleKey(flow) {
|
|
694
|
+
function getFirstFlowModuleKey(flow, options = {}) {
|
|
695
|
+
const context = { identitySearchHintProvided: options.identitySearchHintProvided === true };
|
|
692
696
|
const served = flow.flowModules ?? [];
|
|
693
697
|
if (!FLOW_PRESETS.some((preset) => isTriggered(served, preset))) return served[0]?.key;
|
|
694
698
|
let modules = normalizeIdModules(served);
|
|
695
|
-
for (const preset of FLOW_PRESETS) if (isTriggered(modules, preset)) modules = prepareAndLayOut(modules,
|
|
699
|
+
for (const preset of FLOW_PRESETS) if (isTriggered(modules, preset)) modules = prepareAndLayOut(modules, context, preset);
|
|
696
700
|
return modules[0]?.key;
|
|
697
701
|
}
|
|
698
702
|
//#endregion
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/internal/formDefinitionsRollout/formDefinitionsRollout.ts
|
|
2
|
+
/**
|
|
3
|
+
* The rollout switch for form definitions (ENG-59781): one all-or-nothing
|
|
4
|
+
* answer to "do eKYC and eKYB build their forms from catalog definitions, or
|
|
5
|
+
* with today's builders?". The eKYC and eKYB machines read it once, when
|
|
6
|
+
* they're created, and pass the answer to the module adapters
|
|
7
|
+
* (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
|
|
8
|
+
* (`internal/forms`) knows nothing about it. eKYC's public `toEkycConfig`
|
|
9
|
+
* reads it too, for a raw config a flow or workflow converts before the
|
|
10
|
+
* machine exists; the machine converts its own input with its answer.
|
|
11
|
+
*
|
|
12
|
+
* On by default (ENG-63324), so every migrated eKYC source and every eKYB
|
|
13
|
+
* country builds its form from its definition. A catalog-only eKYC source,
|
|
14
|
+
* one today's builder never knew, uses its definition either way, since it
|
|
15
|
+
* has no old path to fall back to.
|
|
16
|
+
*
|
|
17
|
+
* `false` is the rollback: every source and country today's builders know
|
|
18
|
+
* goes back to them. The builders stay in Core until ENG-63328 removes them.
|
|
19
|
+
*
|
|
20
|
+
* This is Incode's rollout decision, not the integrator's: it is not a
|
|
21
|
+
* `setup()` option. It stays a constant, so a rollback is a code change in an
|
|
22
|
+
* SDK release.
|
|
23
|
+
*/
|
|
24
|
+
const ENABLED_BY_DEFAULT = true;
|
|
25
|
+
/** Whether sources and countries with a form definition use it. */
|
|
26
|
+
function isFormDefinitionsEnabled() {
|
|
27
|
+
return ENABLED_BY_DEFAULT;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { isFormDefinitionsEnabled as t };
|
|
@@ -1,35 +1,46 @@
|
|
|
1
1
|
import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
2
2
|
import { r as isCalendarDate, t as INVALID_DATE_ERROR_KEY } from "./calendarDate-D2zWfUlA.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c as readValue, l as DYNAMIC_REQUIRED_KEY, o as blank, s as isEmptyValue } from "./trim-OmrUb6mG.esm.js";
|
|
4
4
|
import { n as hasAllowedCharacters, t as CLASS_PATTERNS } from "./allowedCharacters-Bnir--CN.esm.js";
|
|
5
|
-
//#region src/internal/forms/
|
|
6
|
-
const
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
//#region src/internal/forms/registry.ts
|
|
6
|
+
const byId = (items = []) => new Map(items.map((item) => [item.id, item]));
|
|
7
|
+
/** Builds a registry from lists, keyed by id. */
|
|
8
|
+
function createFormRegistry(input) {
|
|
9
|
+
return {
|
|
10
|
+
schemaVersions: [...input.schemaVersions],
|
|
11
|
+
vocabulary: input.vocabulary,
|
|
12
|
+
kinds: new Set(input.kinds),
|
|
13
|
+
groups: new Set(input.groups),
|
|
14
|
+
conditions: new Set(input.conditions ?? []),
|
|
15
|
+
prefillSources: new Set(input.prefillSources ?? []),
|
|
16
|
+
rules: byId(input.rules),
|
|
17
|
+
transforms: byId(input.transforms),
|
|
18
|
+
groupRules: byId(input.groupRules),
|
|
19
|
+
optionLists: new Map(Object.entries(input.optionLists ?? {})),
|
|
20
|
+
messages: new Map(Object.entries(input.messages ?? {})),
|
|
21
|
+
flags: new Set(input.flags ?? []),
|
|
22
|
+
required: input.required,
|
|
23
|
+
structure: input.structure
|
|
24
|
+
};
|
|
17
25
|
}
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
/** The ids a registry implements, for `checkSupport`. */
|
|
27
|
+
function supportedIds(registry) {
|
|
28
|
+
return {
|
|
29
|
+
schemaVersions: registry.schemaVersions,
|
|
30
|
+
vocabulary: registry.vocabulary,
|
|
31
|
+
kinds: registry.kinds,
|
|
32
|
+
groups: registry.groups,
|
|
33
|
+
rules: new Set(registry.rules.keys()),
|
|
34
|
+
transforms: new Set(registry.transforms.keys()),
|
|
35
|
+
groupRules: new Set(registry.groupRules.keys()),
|
|
36
|
+
optionLists: new Set(registry.optionLists.keys()),
|
|
37
|
+
conditions: registry.conditions,
|
|
38
|
+
prefillSources: registry.prefillSources,
|
|
39
|
+
flags: registry.flags
|
|
40
|
+
};
|
|
32
41
|
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/internal/forms/validateForm.ts
|
|
33
44
|
function optionValues(field, registry) {
|
|
34
45
|
if (field.options) return field.options.map((option) => option.value);
|
|
35
46
|
if (field.optionsRef) return registry.optionLists.get(field.optionsRef);
|
|
@@ -200,138 +211,6 @@ function validateForm(form, values, registry, env, entries = {}) {
|
|
|
200
211
|
return errors;
|
|
201
212
|
}
|
|
202
213
|
//#endregion
|
|
203
|
-
//#region src/internal/forms/buildPayload.ts
|
|
204
|
-
/** The request key a field writes, or nothing when it's never sent. */
|
|
205
|
-
const keyOf = (field) => field.payload?.omit ? void 0 : field.payload?.key ?? field.name;
|
|
206
|
-
const isBlank = (value) => (value ?? "").trim() === "";
|
|
207
|
-
/** The ids of a field's request transforms the registry doesn't implement. */
|
|
208
|
-
const unknownTransforms = (field, registry) => (field.payload?.transforms ?? []).map((ref) => ref.id).filter((id) => !registry.transforms.has(id));
|
|
209
|
-
function transform(field, value, registry, env) {
|
|
210
|
-
return (field.payload?.transforms ?? []).reduce((current, ref) => {
|
|
211
|
-
const impl = registry.transforms.get(ref.id);
|
|
212
|
-
return impl ? impl.apply(current, ref.params ?? {}, env) : current;
|
|
213
|
-
}, value);
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* A `submit.context` entry's runtime value, or nothing when it's empty: the
|
|
217
|
-
* source module configuration names (it can be an alias of the definition's
|
|
218
|
-
* source), else the definition's; the definition's country, so a form with
|
|
219
|
-
* no fixed country leaves the key out; module configuration's risk add-ons.
|
|
220
|
-
*/
|
|
221
|
-
function contextValue(name, definition, env) {
|
|
222
|
-
switch (name) {
|
|
223
|
-
case "source": return env.source || definition.source || void 0;
|
|
224
|
-
case "country": return definition.country || void 0;
|
|
225
|
-
case "riskAddons": return env.riskAddons?.length ? [...env.riskAddons] : void 0;
|
|
226
|
-
default: return;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* The request body a definition describes (spec semantic 5):
|
|
231
|
-
*
|
|
232
|
-
* 1. Every shown field with a non-empty value, under `payload.key` (default
|
|
233
|
-
* its name), after its request transforms. Empty values are left out,
|
|
234
|
-
* never sent as `""` or `null`, so `omitWhenEmpty` changes nothing here;
|
|
235
|
-
* so is a value its transforms leave blank. A list sends its non-blank
|
|
236
|
-
* entries, each transformed. A collection sends each entry with a value as
|
|
237
|
-
* its `join` fields' values, trimmed and joined with a space.
|
|
238
|
-
* 2. `submit.static` keys as written, then `submit.context` keys: the source
|
|
239
|
-
* (`env.source`, else the definition's), the definition's country, or
|
|
240
|
-
* `riskAddons`. An empty context value is left out.
|
|
241
|
-
* 3. `submit.copies` in order: each replaces `to` with `from`'s value, when
|
|
242
|
-
* `from` is in the body.
|
|
243
|
-
*
|
|
244
|
-
* Two writers of one key keep the first and report a problem.
|
|
245
|
-
*/
|
|
246
|
-
function buildPayload(form, values, registry, env, entries = {}) {
|
|
247
|
-
const { definition } = form;
|
|
248
|
-
const body = {};
|
|
249
|
-
const writers = /* @__PURE__ */ new Map();
|
|
250
|
-
const problems = [];
|
|
251
|
-
const write = (key, value, writer) => {
|
|
252
|
-
const first = writers.get(key);
|
|
253
|
-
if (first !== void 0) {
|
|
254
|
-
problems.push({
|
|
255
|
-
kind: "duplicateKey",
|
|
256
|
-
key,
|
|
257
|
-
writers: [first, writer]
|
|
258
|
-
});
|
|
259
|
-
return;
|
|
260
|
-
}
|
|
261
|
-
writers.set(key, writer);
|
|
262
|
-
body[key] = value;
|
|
263
|
-
};
|
|
264
|
-
for (const { field } of form.fields) {
|
|
265
|
-
const key = keyOf(field);
|
|
266
|
-
const value = readValue(values[field.name]);
|
|
267
|
-
if (key === void 0 || isEmptyValue(field, value)) continue;
|
|
268
|
-
for (const id of unknownTransforms(field, registry)) problems.push({
|
|
269
|
-
kind: "unknownTransform",
|
|
270
|
-
field: field.name,
|
|
271
|
-
transform: id
|
|
272
|
-
});
|
|
273
|
-
if (typeof value === "string") {
|
|
274
|
-
const sent = transform(field, value, registry, env);
|
|
275
|
-
if (!isBlank(sent)) write(key, sent, field.name);
|
|
276
|
-
} else if (Array.isArray(value)) {
|
|
277
|
-
const sent = value.filter((entry) => !isBlank(entry)).map((entry) => transform(field, entry, registry, env)).filter((entry) => !isBlank(entry));
|
|
278
|
-
if (sent.length > 0) write(key, sent, field.name);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
for (const { collection } of form.collections) {
|
|
282
|
-
const joined = (entries[collection.id] ?? []).map((entry) => collection.payload.join.map((name) => (entry[name] ?? "").trim()).filter((part) => part !== "").join(" ")).filter((value) => value !== "");
|
|
283
|
-
if (joined.length > 0) write(collection.payload.key, joined, collection.id);
|
|
284
|
-
}
|
|
285
|
-
for (const [key, value] of Object.entries(definition.submit.static ?? {})) write(key, value, "static");
|
|
286
|
-
for (const [key, name] of Object.entries(definition.submit.context ?? {})) {
|
|
287
|
-
const value = contextValue(name, definition, env);
|
|
288
|
-
if (value !== void 0) write(key, value, "context");
|
|
289
|
-
}
|
|
290
|
-
for (const { from, to } of definition.submit.copies ?? []) if (Object.prototype.hasOwnProperty.call(body, from)) body[to] = body[from];
|
|
291
|
-
return {
|
|
292
|
-
body,
|
|
293
|
-
problems
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
//#endregion
|
|
297
|
-
//#region src/internal/forms/registry.ts
|
|
298
|
-
const byId = (items = []) => new Map(items.map((item) => [item.id, item]));
|
|
299
|
-
/** Builds a registry from lists, keyed by id. */
|
|
300
|
-
function createFormRegistry(input) {
|
|
301
|
-
return {
|
|
302
|
-
schemaVersions: [...input.schemaVersions],
|
|
303
|
-
vocabulary: input.vocabulary,
|
|
304
|
-
kinds: new Set(input.kinds),
|
|
305
|
-
groups: new Set(input.groups),
|
|
306
|
-
conditions: new Set(input.conditions ?? []),
|
|
307
|
-
prefillSources: new Set(input.prefillSources ?? []),
|
|
308
|
-
rules: byId(input.rules),
|
|
309
|
-
transforms: byId(input.transforms),
|
|
310
|
-
groupRules: byId(input.groupRules),
|
|
311
|
-
optionLists: new Map(Object.entries(input.optionLists ?? {})),
|
|
312
|
-
messages: new Map(Object.entries(input.messages ?? {})),
|
|
313
|
-
flags: new Set(input.flags ?? []),
|
|
314
|
-
required: input.required,
|
|
315
|
-
structure: input.structure
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
/** The ids a registry implements, for `checkSupport`. */
|
|
319
|
-
function supportedIds(registry) {
|
|
320
|
-
return {
|
|
321
|
-
schemaVersions: registry.schemaVersions,
|
|
322
|
-
vocabulary: registry.vocabulary,
|
|
323
|
-
kinds: registry.kinds,
|
|
324
|
-
groups: registry.groups,
|
|
325
|
-
rules: new Set(registry.rules.keys()),
|
|
326
|
-
transforms: new Set(registry.transforms.keys()),
|
|
327
|
-
groupRules: new Set(registry.groupRules.keys()),
|
|
328
|
-
optionLists: new Set(registry.optionLists.keys()),
|
|
329
|
-
conditions: registry.conditions,
|
|
330
|
-
prefillSources: registry.prefillSources,
|
|
331
|
-
flags: registry.flags
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
//#endregion
|
|
335
214
|
//#region src/shared/formFields.ts
|
|
336
215
|
/**
|
|
337
216
|
* Field state for a module on the form-definition kernel: the values, each
|
|
@@ -436,16 +315,6 @@ const allowedCharacters = {
|
|
|
436
315
|
}
|
|
437
316
|
};
|
|
438
317
|
//#endregion
|
|
439
|
-
//#region src/internal/forms/rules/e164.ts
|
|
440
|
-
/**
|
|
441
|
-
* `e164`: the phone as `+<country code><number>`. While the phone rules
|
|
442
|
-
* aren't loaded, or the number isn't valid, it stays as typed.
|
|
443
|
-
*/
|
|
444
|
-
const e164 = {
|
|
445
|
-
id: "e164",
|
|
446
|
-
apply: (value, _params, env) => env.deps.phone?.formatE164(value, env.country) ?? value
|
|
447
|
-
};
|
|
448
|
-
//#endregion
|
|
449
318
|
//#region src/internal/forms/rules/oneOfRequired.ts
|
|
450
319
|
/**
|
|
451
320
|
* `oneOfRequired`: at least one of the rule's shown fields has a value. With
|
|
@@ -464,16 +333,6 @@ const oneOfRequired = {
|
|
|
464
333
|
}
|
|
465
334
|
};
|
|
466
335
|
//#endregion
|
|
467
|
-
//#region src/internal/forms/rules/trim.ts
|
|
468
|
-
/**
|
|
469
|
-
* `trim`: removes leading and trailing whitespace. On a list, the caller
|
|
470
|
-
* applies it to each entry.
|
|
471
|
-
*/
|
|
472
|
-
const trim = {
|
|
473
|
-
id: "trim",
|
|
474
|
-
apply: (value) => value.trim()
|
|
475
|
-
};
|
|
476
|
-
//#endregion
|
|
477
336
|
//#region src/shared/formErrors.ts
|
|
478
337
|
/**
|
|
479
338
|
* The error for an empty required field, as eKYC, eKYB and Pre-fill show it
|
|
@@ -509,4 +368,4 @@ const STRUCTURE_MESSAGES = {
|
|
|
509
368
|
})
|
|
510
369
|
};
|
|
511
370
|
//#endregion
|
|
512
|
-
export {
|
|
371
|
+
export { phoneDeps as a, validateFieldValue as c, supportedIds as d, allowedCharacters as i, withMessage as l, requiredError as n, setFieldValue as o, oneOfRequired as r, validateAllValues as s, STRUCTURE_MESSAGES as t, createFormRegistry as u };
|
package/dist/geolocation.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-
|
|
1
|
+
import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-Del2ddmt.js";
|
|
2
2
|
export { type GeolocationConfig, type GeolocationManager, type GeolocationState, createGeolocationManager, geolocationMachine };
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createGeolocationManager } from "./geolocationManager-
|
|
2
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
1
|
+
import { t as createGeolocationManager } from "./geolocationManager-CREfQNgO.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-D9_bBr19.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
5
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-D9_bBr19.esm.js";
|
|
6
6
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
7
7
|
var BrowserGeolocationProvider = class {
|
|
8
8
|
getCurrentPosition() {
|
|
@@ -117,7 +117,7 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
117
117
|
type: "isPermissionDenied";
|
|
118
118
|
params: unknown;
|
|
119
119
|
};
|
|
120
|
-
}>, never, "error" | "idle" | "closed" | "finished" | "
|
|
120
|
+
}>, never, "error" | "idle" | "closed" | "finished" | "submitting" | "requestingLocation" | "permissionDenied" | "locationAcquired", string, GeolocationInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
121
121
|
readonly id: "geolocation";
|
|
122
122
|
readonly initial: "idle";
|
|
123
123
|
readonly context: ({ input, self }: {
|
package/dist/{geolocationStateMachine-QJqoWT7E.esm.js → geolocationStateMachine-D9_bBr19.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
import { i as isIOS, t as isAndroid } from "./platform-GIg4uPWe.esm.js";
|
|
3
|
-
import { n as isConnectivityError } from "./apiError-
|
|
3
|
+
import { n as isConnectivityError } from "./apiError-BRiJu_rv.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
6
|
+
import { t as carryAttempts } from "./attemptCarry-8gUYc3pL.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
8
8
|
async function addGeolocation(params, signal) {
|
|
9
9
|
return (await api.post(endpoints.addGeolocation, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
2
|
-
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-
|
|
1
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BuW6l3ah.esm.js";
|
|
2
|
+
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-B7lIuL4r.esm.js";
|
|
3
3
|
export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
6
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BuW6l3ah.esm.js";
|
|
7
7
|
//#region src/modules/government-validation/governmentValidationActor.ts
|
|
8
8
|
function createGovernmentValidationActor(options) {
|
|
9
9
|
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/modules/government-validation/governmentValidationServices.ts
|
package/dist/home.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as NonReducibleUnknown, j as StateMachine, m as EventObject, y as MetaObject } from "./spawn-COZKetCS.js";
|
|
2
2
|
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
3
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
|
-
import { t as EmptyConfig } from "./types-
|
|
4
|
+
import { t as EmptyConfig } from "./types-DH4VaTRC.js";
|
|
5
5
|
//#region src/modules/home/types.d.ts
|
|
6
6
|
type HomeConfig = EmptyConfig;
|
|
7
7
|
//#endregion
|
package/dist/home.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
//#region src/modules/home/homeStateMachine.ts
|
package/dist/http.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getApi, t as api } from "./api-
|
|
1
|
+
import { n as getApi, t as api } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
export { api, getApi };
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-Bpo97EOh.js";
|
|
2
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-
|
|
2
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-C0C7lFGd.js";
|
|
3
3
|
//#region src/modules/id-ocr/idOcrFields.d.ts
|
|
4
4
|
declare const OCR_FIELDS: OcrFieldConfig[];
|
|
5
5
|
declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
|
|
2
|
-
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
3
|
-
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-
|
|
2
|
+
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-DANDVn-6.esm.js";
|
|
3
|
+
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-C9C8UaPr.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrCpfUtils.ts
|
|
5
5
|
function formatCPF(value) {
|
|
6
6
|
const digits = value.replace(/\D/g, "").slice(0, 11);
|
package/dist/id-selfie-flow.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import "./Actor-DqjOqDfU.js";
|
|
|
5
5
|
import { n as FacingMode, t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
6
6
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-BRAZQtkM.js";
|
|
7
7
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
8
|
-
import { i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-
|
|
8
|
+
import { i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-DCOmz3yk.js";
|
|
9
9
|
//#region src/modules/id-selfie-flow/types.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* The capture steps an ID + Selfie flow session can run, in flow order. A
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-JGwc0kgu.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-3OXrEqDE.esm.js";
|
|
5
5
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
6
|
import { i as assign, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
7
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
8
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
9
|
-
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
9
|
+
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-DQYbHLxC.esm.js";
|
|
10
10
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
11
11
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CFyXIRuM.esm.js";
|
|
12
|
-
import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-
|
|
12
|
+
import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-7zZ457LW.esm.js";
|
|
13
13
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
|
|
14
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
15
|
-
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-
|
|
14
|
+
import { n as getFinishStatus } from "./flowCompletionService-L0J63ui-.esm.js";
|
|
15
|
+
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-AoMytGBD.esm.js";
|
|
16
16
|
import { t as CameraCompositor } from "./CameraCompositor-C7N1N61V.esm.js";
|
|
17
17
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
18
18
|
/** Default autocapture window for the selfie step. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
2
|
-
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-
|
|
1
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-MjQmD3yQ.esm.js";
|
|
2
|
+
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-B_6wwpeT.esm.js";
|
|
3
3
|
export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|