@incodetech/core 2.4.1-agentic.10 → 2.4.1-agentic.11
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/Actor-DqjOqDfU.d.ts +1 -0
- package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-ppyMYVoY.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-BSLpXAGx.esm.js → FaceDetectionProvider-2NzWDbV8.esm.js} +8 -8
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-CduV32Qa.esm.js} +1 -1
- package/dist/{WasmUtilProvider-C_puwvVn.esm.js → WasmUtilProvider-DdhAHHw4.esm.js} +40 -4
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
- package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-Rxm1K67A.esm.js} +5 -4
- package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudManager-BWCVkSu2.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
- package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
- package/dist/{api-BSnbg4HO.esm.js → api-CZpuJuZl.esm.js} +1 -1
- package/dist/{apiError-Bmwy1Fa7.esm.js → apiError-BamZ815u.esm.js} +1 -1
- package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-BecGGZK8.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
- package/dist/{authenticationManager-BoiOaB0m.esm.js → authenticationManager-yBVGiIf_.esm.js} +7 -6
- package/dist/{authenticationStateMachine-BMD1JLwr.esm.js → authenticationStateMachine-DPqTOJPp.esm.js} +50 -18
- package/dist/{browser-pQZA35G2-PIj2uGBm.esm.js → browser-pQZA35G2-DxIBykpe.esm.js} +1 -1
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
- package/dist/{certificateIssuanceManager-DzDuQTsK.esm.js → certificateIssuanceManager-Dxl9UwR0.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-BAOYLACb.esm.js → certificateIssuanceStateMachine-CM4q71h1.esm.js} +3 -3
- package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-7aHaehwF.d.ts → consentManager-B2F_VeAo.d.ts} +8 -7
- package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
- package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
- package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-D7ka2qOC.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
- package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
- package/dist/curp-DZGvefg3.esm.js +14 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-BVTt7IgC.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -4
- package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +5 -5
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-gbsq53p6.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
- package/dist/{deepsightLoader-BKCT8UT1.esm.js → deepsightLoader-CEY2mSPM.esm.js} +5 -5
- package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
- package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-enVPfRsQ.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +5 -4
- package/dist/{documentCaptureManager-BG5TuqJz.esm.js → documentCaptureManager-C11k5BO-.esm.js} +5 -3
- package/dist/{documentCaptureStateMachine-C7PW_Ah9.esm.js → documentCaptureStateMachine-g0gfL0_1.esm.js} +6 -6
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-B0bpHhhJ.esm.js → dynamicFormsManager-BmfCZ2zV.esm.js} +5 -3
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-B-eYytau.esm.js} +4 -4
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-P9mC7W9J.esm.js → ekybManager-BPaMfbgw.esm.js} +5 -3
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybStateMachine-C7HKaeVr.esm.js → ekybStateMachine-C_lEw4I7.esm.js} +18 -20
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-q1fos6IY.d.ts → ekycManager-BKVQazAb.d.ts} +47 -6
- package/dist/{ekycManager-CeeJoRFY.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
- package/dist/{ekycPrefillManager-C6BFFKxc.esm.js → ekycPrefillManager-CCtbmrFd.esm.js} +3 -2
- package/dist/{ekycPrefillManager-PPGVZbWk.d.ts → ekycPrefillManager-DOTl3Y2w.d.ts} +8 -7
- package/dist/{ekycPrefillStateMachine-Dku90kZL.esm.js → ekycPrefillStateMachine-XpxgCAoC.esm.js} +11 -10
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-DXP2hqVw.esm.js} +198 -38
- package/dist/{ekycStateMachine-DBTczgGE.esm.js → ekycStateMachine-nwJRel2s.esm.js} +333 -64
- package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-FcqA6oU4.esm.js} +44 -43
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
- package/dist/{electronicSignatureManager-BKQuhJm_.esm.js → electronicSignatureManager-M2O2VDks.esm.js} +7 -5
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-CTEaYncs.esm.js} +4 -4
- package/dist/events-CP3yOzAl.esm.js +299 -0
- package/dist/events.d.ts +3 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +39 -39
- package/dist/extensibility.esm.js +38 -38
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-ClFsByZc.esm.js → faceCaptureManagerFactory-3Or5qfbA.esm.js} +17 -6
- package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +14 -7
- package/dist/{faceCaptureSetup-9hv5GC_H.esm.js → faceCaptureSetup-Cf87i0rT.esm.js} +46 -38
- package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
- package/dist/{faceMatchManager-CRe7Nvm6.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-EX9QhxFE.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +18 -6
- package/dist/{feature-management-CmKTG_T5.esm.js → feature-management-DG016L6E.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-DuosZJso.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
- package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/{fiscalQrManager-ji0qDaTW.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +47 -11
- package/dist/flow.esm.js +214 -58
- package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-BpeAbbXc.esm.js} +2 -2
- package/dist/{flowServices-Ca2vKNt2.esm.js → flowServices-rDg1bAMs.esm.js} +373 -12
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
- package/dist/{geolocationManager-CiG32lIm.esm.js → geolocationManager-T8m4lqvF.esm.js} +5 -3
- package/dist/{geolocationStateMachine-5rnTEOuw.esm.js → geolocationStateMachine-NWmA1Dtn.esm.js} +5 -5
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BivVZNVe.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
- package/dist/home.d.ts +4 -3
- package/dist/home.esm.js +4 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-selfie-flow.d.ts +4 -3
- package/dist/id-selfie-flow.esm.js +12 -11
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-DBnOC28H.esm.js → idCaptureDefaults-Cjesf5i9.esm.js} +1 -1
- package/dist/{idCaptureManager-B5xqok0L.esm.js → idCaptureManager-5-ReVgbB.esm.js} +12 -10
- package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +7 -6
- package/dist/{idCaptureServices-BIF_7rub.esm.js → idCaptureServices-exB6I9lV.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-B5cfgKvn.esm.js → idCaptureStateMachine-DQ14d3GR.esm.js} +21 -19
- package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
- package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
- package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
- package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-B832arAl.esm.js} +4 -4
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.d.ts +97 -0
- package/dist/identity-search.esm.js +97 -0
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
- package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/{index-Btj1EhiM.d.ts → index-DM43R87x.d.ts} +1 -1
- package/dist/{index-CSPOoqah.d.ts → index-DxYNO94y.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-C1-j4fsq.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
- package/dist/{kybChecksManager-CnqwgKoV.esm.js → kybChecksManager-CZfdCkLC.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-DkWxSU4L.esm.js} +8 -7
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-Bh1asNJh.d.ts} +9 -8
- package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
- package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +3 -3
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
- package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +2 -2
- package/dist/{permissionGuards-DjQUR1du.esm.js → permissionGuards-D-4_VU7-.esm.js} +1 -1
- package/dist/{permissionServices-CZpORUWY.esm.js → permissionServices-DpccEnzE.esm.js} +1 -1
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
- package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneManager-C-qD3p3N.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
- package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
- package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
- package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B_DkDTE5.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-BVSCo0ac.esm.js → recordingService-DxiwS8TV.esm.js} +5 -5
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CqyDfDxs.esm.js → redirectToMobileManager-DTB_pWuS.esm.js} +6 -4
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
- package/dist/{redirectToMobileStateMachine-CXqfo2Gd.esm.js → redirectToMobileStateMachine-nP9DM01_.esm.js} +3 -3
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-BmteMhR7.esm.js → runChildModule-CXLcOcXN.esm.js} +8 -6
- package/dist/{sdkVersion-KZROt6l3.esm.js → sdkVersion-fqxsdqFZ.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +13 -12
- package/dist/{selfieErrorUtils-fqxp645p.esm.js → selfieErrorUtils-MOfYdGPz.esm.js} +1 -1
- package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
- package/dist/{selfieManager-A-n3k9Tu.esm.js → selfieManager-Dq8tIqGd.esm.js} +7 -6
- package/dist/{selfieStateMachine-48PKdKrw.esm.js → selfieStateMachine-BZVDQB8R.esm.js} +5 -5
- package/dist/{session-D0DWDKp9.esm.js → session-C7x_iJ-p.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-I92b2dmL.esm.js → sessionInitializer-k-hKIBg8.esm.js} +9 -8
- package/dist/{setup-BpjzWqR1.esm.js → setup-BRbhjHiU.esm.js} +10 -9
- package/dist/{setup-CG6oLkAa.d.ts → setup-CpXbdA1X.d.ts} +1 -1
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-0_frzAN5.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-C2sigf9p.esm.js → stats-DoByUnTa.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +3 -2
- package/dist/step-up.esm.js +2 -1
- package/dist/{tri-DaUNvo-o.esm.js → tri-CI2exudk.esm.js} +2 -2
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-CxLWmTZk.esm.js +2287 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-DHYTBCIn.esm.js → trueSightService-DhW2O8mB.esm.js} +6 -3
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +5 -3
- package/dist/{types-CgihAhT_.d.ts → types-9wlf1-GE.d.ts} +1 -1
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/types-CE1jkHw3.d.ts +6 -0
- package/dist/{types-BqlZSoZ-.d.ts → types-Cpdum4vi.d.ts} +1 -1
- package/dist/{types-Cbm9J2yF.d.ts → types-DFP7eSle.d.ts} +1 -1
- package/dist/{types-P9LzsfRo.d.ts → types-DJPU3W2M.d.ts} +1 -1
- package/dist/{events-C7h7oaTE.esm.js → types-DYYMdAGv.esm.js} +3 -298
- package/dist/{types-TisHEbBg.d.ts → types-Ddc4Tr_f.d.ts} +28 -1
- package/dist/video-selfie.d.ts +5 -4
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-CTOpqhov.esm.js → videoSelfieCameraWarmer-YwO_uP-b.esm.js} +6 -6
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +2 -2
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/{wasmDsFlagSync-lRIgn5Ic.esm.js → wasmDsFlagSync-D_6e8W62.esm.js} +1 -1
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-C1S5y5yj.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-BMWm5mcP.esm.js} +4 -4
- package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
- package/dist/workflow.d.ts +6 -5
- package/dist/workflow.esm.js +51 -43
- package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
- package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
- package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
- package/package.json +6 -1
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/nationalIds-B91f_RuB.esm.js +0 -99
- package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
- package/dist/tri.esm-Df5eKLsY.esm.js +0 -2165
- package/dist/types-kLsU6Jkt.d.ts +0 -6
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
2
|
import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
|
+
import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-DXP2hqVw.esm.js";
|
|
5
6
|
import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
6
|
-
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion,
|
|
7
|
-
import { n as checkSupport, t as resolveForm } from "./resolveForm-
|
|
8
|
-
import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-
|
|
9
|
-
import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-
|
|
7
|
+
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, t as createBundledDefinitionSource, u as keepSuggestedStateInOptions } from "./definitionSource-Nw0YCbpe.esm.js";
|
|
8
|
+
import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
9
|
+
import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-Rxm1K67A.esm.js";
|
|
10
|
+
import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-FcqA6oU4.esm.js";
|
|
10
11
|
import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
|
|
11
|
-
import {
|
|
12
|
-
import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-BLX7Elcb.esm.js";
|
|
12
|
+
import { t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
|
|
13
13
|
//#region src/internal/forms/resolvePrefill.ts
|
|
14
14
|
const DISPLAY_MODES = /* @__PURE__ */ new Set([
|
|
15
15
|
"editable",
|
|
@@ -205,6 +205,13 @@ const brStateOptions = Object.values({
|
|
|
205
205
|
label: state.name
|
|
206
206
|
}));
|
|
207
207
|
//#endregion
|
|
208
|
+
//#region src/shared/validators/textRules.ts
|
|
209
|
+
const CHARACTER_CLASSES = [
|
|
210
|
+
"letter",
|
|
211
|
+
"digit",
|
|
212
|
+
"space"
|
|
213
|
+
];
|
|
214
|
+
//#endregion
|
|
208
215
|
//#region ../form-definitions/generated/ekyc.ts
|
|
209
216
|
const EKYC_DEFINITIONS = {
|
|
210
217
|
"ekyc/AR/AR_CREDIT_BUR_1": {
|
|
@@ -849,7 +856,7 @@ const EKYC_DEFINITIONS = {
|
|
|
849
856
|
label: { key: "verification.labels.brazilian" }
|
|
850
857
|
},
|
|
851
858
|
{
|
|
852
|
-
value: "
|
|
859
|
+
value: "naturalized_brazilian",
|
|
853
860
|
label: { key: "verification.labels.naturalizedBrazilian" }
|
|
854
861
|
},
|
|
855
862
|
{
|
|
@@ -857,7 +864,7 @@ const EKYC_DEFINITIONS = {
|
|
|
857
864
|
label: { key: "verification.labels.foreigner" }
|
|
858
865
|
},
|
|
859
866
|
{
|
|
860
|
-
value: "
|
|
867
|
+
value: "brazilian_born_abroad",
|
|
861
868
|
label: { key: "verification.labels.brazilianBornAbroad" }
|
|
862
869
|
}
|
|
863
870
|
],
|
|
@@ -1551,14 +1558,6 @@ const EKYC_DEFINITIONS = {
|
|
|
1551
1558
|
rules: [{ id: "noPoBox" }],
|
|
1552
1559
|
prefill: ["document.street", "poa.street"]
|
|
1553
1560
|
},
|
|
1554
|
-
{
|
|
1555
|
-
name: "houseNo",
|
|
1556
|
-
kind: "text",
|
|
1557
|
-
group: "address",
|
|
1558
|
-
section: "address",
|
|
1559
|
-
label: { key: "verification.labels.houseNo" },
|
|
1560
|
-
prefill: ["document.houseNumber", "poa.houseNumber"]
|
|
1561
|
-
},
|
|
1562
1561
|
{
|
|
1563
1562
|
name: "city",
|
|
1564
1563
|
kind: "text",
|
|
@@ -3200,6 +3199,175 @@ const EKYC_DEFINITIONS = {
|
|
|
3200
3199
|
}
|
|
3201
3200
|
}
|
|
3202
3201
|
},
|
|
3202
|
+
"ekyc/HK/HK_RESIDENT_REGISTER": {
|
|
3203
|
+
schemaVersion: 1,
|
|
3204
|
+
vocabulary: "1.3",
|
|
3205
|
+
id: "ekyc/HK/HK_RESIDENT_REGISTER",
|
|
3206
|
+
module: "ekyc",
|
|
3207
|
+
country: "HK",
|
|
3208
|
+
source: "HK_RESIDENT_REGISTER",
|
|
3209
|
+
sections: [{ id: "address" }],
|
|
3210
|
+
fields: [
|
|
3211
|
+
{
|
|
3212
|
+
name: "firstName",
|
|
3213
|
+
kind: "text",
|
|
3214
|
+
group: "name",
|
|
3215
|
+
required: true,
|
|
3216
|
+
label: { key: "verification.labels.firstName" },
|
|
3217
|
+
placeholder: { key: "verification.placeholder.firstName" },
|
|
3218
|
+
input: {
|
|
3219
|
+
maxLength: 100,
|
|
3220
|
+
autofill: "givenName"
|
|
3221
|
+
},
|
|
3222
|
+
rules: [{ id: "nameCharacters" }],
|
|
3223
|
+
prefill: ["document.firstName", "poa.firstName"]
|
|
3224
|
+
},
|
|
3225
|
+
{
|
|
3226
|
+
name: "surName",
|
|
3227
|
+
kind: "text",
|
|
3228
|
+
group: "name",
|
|
3229
|
+
required: true,
|
|
3230
|
+
label: { key: "verification.labels.surName" },
|
|
3231
|
+
placeholder: { key: "verification.placeholder.surname" },
|
|
3232
|
+
input: {
|
|
3233
|
+
maxLength: 100,
|
|
3234
|
+
autofill: "familyName"
|
|
3235
|
+
},
|
|
3236
|
+
rules: [{ id: "nameCharacters" }],
|
|
3237
|
+
prefill: ["document.paternalLastName", "poa.lastName"]
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
name: "dateOfBirth",
|
|
3241
|
+
kind: "date",
|
|
3242
|
+
group: "dateOfBirth",
|
|
3243
|
+
label: { key: "verification.labels.dateOfBirth" },
|
|
3244
|
+
input: { autofill: "birthday" },
|
|
3245
|
+
rules: [{
|
|
3246
|
+
id: "maxAge",
|
|
3247
|
+
params: { years: 120 }
|
|
3248
|
+
}, { id: "notFuture" }],
|
|
3249
|
+
prefill: ["document.birthDate"]
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
name: "gender",
|
|
3253
|
+
kind: "choice",
|
|
3254
|
+
group: "gender",
|
|
3255
|
+
widget: "radio",
|
|
3256
|
+
label: { key: "verification.labels.gender" },
|
|
3257
|
+
options: [{
|
|
3258
|
+
value: "F",
|
|
3259
|
+
label: { key: "common.female" }
|
|
3260
|
+
}, {
|
|
3261
|
+
value: "M",
|
|
3262
|
+
label: { key: "common.male" }
|
|
3263
|
+
}]
|
|
3264
|
+
},
|
|
3265
|
+
{
|
|
3266
|
+
name: "email",
|
|
3267
|
+
kind: "text",
|
|
3268
|
+
group: "email",
|
|
3269
|
+
required: true,
|
|
3270
|
+
label: { key: "verification.labels.email" },
|
|
3271
|
+
placeholder: { key: "verification.placeholder.email" },
|
|
3272
|
+
input: {
|
|
3273
|
+
keyboard: "email",
|
|
3274
|
+
autofill: "email"
|
|
3275
|
+
},
|
|
3276
|
+
rules: [{ id: "emailFormat" }],
|
|
3277
|
+
prefill: ["emailModule.email"]
|
|
3278
|
+
},
|
|
3279
|
+
{
|
|
3280
|
+
name: "phone",
|
|
3281
|
+
kind: "phone",
|
|
3282
|
+
group: "phone",
|
|
3283
|
+
required: true,
|
|
3284
|
+
label: { key: "verification.labels.phone" },
|
|
3285
|
+
input: { autofill: "phone" },
|
|
3286
|
+
phone: { lockCountry: "whenPhoneRisk" },
|
|
3287
|
+
rules: [{ id: "phoneFormat" }],
|
|
3288
|
+
payload: { transforms: [{ id: "e164" }] },
|
|
3289
|
+
prefill: ["phoneModule.phone"]
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
name: "apartment",
|
|
3293
|
+
kind: "text",
|
|
3294
|
+
group: "address",
|
|
3295
|
+
section: "address",
|
|
3296
|
+
label: { key: "verification.labels.apartment" },
|
|
3297
|
+
placeholder: { key: "verification.placeholder.apartment" },
|
|
3298
|
+
input: { autofill: "addressLine2" }
|
|
3299
|
+
},
|
|
3300
|
+
{
|
|
3301
|
+
name: "buildingName",
|
|
3302
|
+
kind: "text",
|
|
3303
|
+
group: "address",
|
|
3304
|
+
section: "address",
|
|
3305
|
+
label: { key: "verification.labels.buildingName" }
|
|
3306
|
+
},
|
|
3307
|
+
{
|
|
3308
|
+
name: "houseNo",
|
|
3309
|
+
kind: "text",
|
|
3310
|
+
group: "address",
|
|
3311
|
+
section: "address",
|
|
3312
|
+
label: { key: "verification.labels.houseNo" },
|
|
3313
|
+
prefill: ["document.houseNumber", "poa.houseNumber"]
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
name: "street",
|
|
3317
|
+
kind: "text",
|
|
3318
|
+
group: "address",
|
|
3319
|
+
section: "address",
|
|
3320
|
+
widget: "addressSearch",
|
|
3321
|
+
label: { key: "verification.labels.street" },
|
|
3322
|
+
input: { autofill: "addressLine1" },
|
|
3323
|
+
rules: [{ id: "noPoBox" }],
|
|
3324
|
+
prefill: ["document.street", "poa.street"]
|
|
3325
|
+
},
|
|
3326
|
+
{
|
|
3327
|
+
name: "city",
|
|
3328
|
+
kind: "text",
|
|
3329
|
+
group: "address",
|
|
3330
|
+
section: "address",
|
|
3331
|
+
label: { key: "verification.labels.area" },
|
|
3332
|
+
input: { autofill: "addressLevel2" },
|
|
3333
|
+
prefill: ["document.city", "poa.city"]
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
name: "state",
|
|
3337
|
+
kind: "choice",
|
|
3338
|
+
group: "address",
|
|
3339
|
+
section: "address",
|
|
3340
|
+
required: true,
|
|
3341
|
+
widget: "select",
|
|
3342
|
+
label: { key: "verification.labels.chooseState" },
|
|
3343
|
+
placeholder: { key: "verification.placeholder.state" },
|
|
3344
|
+
input: { autofill: "addressLevel1" },
|
|
3345
|
+
options: [
|
|
3346
|
+
{
|
|
3347
|
+
value: "Hong Kong",
|
|
3348
|
+
label: { key: "Hong Kong" }
|
|
3349
|
+
},
|
|
3350
|
+
{
|
|
3351
|
+
value: "Kowloon",
|
|
3352
|
+
label: { key: "Kowloon" }
|
|
3353
|
+
},
|
|
3354
|
+
{
|
|
3355
|
+
value: "New Territories",
|
|
3356
|
+
label: { key: "New Territories" }
|
|
3357
|
+
}
|
|
3358
|
+
],
|
|
3359
|
+
payload: { transforms: [{ id: "uppercase" }] },
|
|
3360
|
+
prefill: ["document.state", "poa.state"]
|
|
3361
|
+
}
|
|
3362
|
+
],
|
|
3363
|
+
submit: {
|
|
3364
|
+
static: { plugins: ["kyc"] },
|
|
3365
|
+
context: {
|
|
3366
|
+
source: "source",
|
|
3367
|
+
countryCode: "country"
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3370
|
+
},
|
|
3203
3371
|
"ekyc/IN/IN_DMV": {
|
|
3204
3372
|
schemaVersion: 1,
|
|
3205
3373
|
vocabulary: "1.3",
|
|
@@ -5725,7 +5893,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5725
5893
|
module: "ekyc",
|
|
5726
5894
|
country: "US",
|
|
5727
5895
|
source: "US_TELCO_1",
|
|
5728
|
-
sections: [{ id: "
|
|
5896
|
+
sections: [{ id: "driverLicense" }, { id: "address" }],
|
|
5729
5897
|
fields: [
|
|
5730
5898
|
{
|
|
5731
5899
|
name: "firstName",
|
|
@@ -5812,6 +5980,25 @@ const EKYC_DEFINITIONS = {
|
|
|
5812
5980
|
params: { lengths: [4] }
|
|
5813
5981
|
}]
|
|
5814
5982
|
},
|
|
5983
|
+
{
|
|
5984
|
+
name: "dlNumber",
|
|
5985
|
+
kind: "text",
|
|
5986
|
+
group: "dlNumber",
|
|
5987
|
+
section: "driverLicense",
|
|
5988
|
+
label: { key: "verification.labels.dlNumber" },
|
|
5989
|
+
prefill: ["document.driversLicenseNumber"]
|
|
5990
|
+
},
|
|
5991
|
+
{
|
|
5992
|
+
name: "dlState",
|
|
5993
|
+
kind: "choice",
|
|
5994
|
+
group: "dlState",
|
|
5995
|
+
section: "driverLicense",
|
|
5996
|
+
widget: "select",
|
|
5997
|
+
label: { key: "verification.labels.dlState" },
|
|
5998
|
+
placeholder: { key: "verification.placeholder.state" },
|
|
5999
|
+
optionsRef: "US_STATES",
|
|
6000
|
+
prefill: ["document.driversLicenseState"]
|
|
6001
|
+
},
|
|
5815
6002
|
{
|
|
5816
6003
|
name: "street",
|
|
5817
6004
|
kind: "text",
|
|
@@ -5861,25 +6048,6 @@ const EKYC_DEFINITIONS = {
|
|
|
5861
6048
|
params: { chars: "- " }
|
|
5862
6049
|
}] },
|
|
5863
6050
|
prefill: ["document.postalCode", "poa.postalCode"]
|
|
5864
|
-
},
|
|
5865
|
-
{
|
|
5866
|
-
name: "dlNumber",
|
|
5867
|
-
kind: "text",
|
|
5868
|
-
group: "dlNumber",
|
|
5869
|
-
section: "driverLicense",
|
|
5870
|
-
label: { key: "verification.labels.dlNumber" },
|
|
5871
|
-
prefill: ["document.driversLicenseNumber"]
|
|
5872
|
-
},
|
|
5873
|
-
{
|
|
5874
|
-
name: "dlState",
|
|
5875
|
-
kind: "choice",
|
|
5876
|
-
group: "dlState",
|
|
5877
|
-
section: "driverLicense",
|
|
5878
|
-
widget: "select",
|
|
5879
|
-
label: { key: "verification.labels.dlState" },
|
|
5880
|
-
placeholder: { key: "verification.placeholder.state" },
|
|
5881
|
-
optionsRef: "US_STATES",
|
|
5882
|
-
prefill: ["document.driversLicenseState"]
|
|
5883
6051
|
}
|
|
5884
6052
|
],
|
|
5885
6053
|
submit: {
|
|
@@ -6529,7 +6697,8 @@ const EKYC_SUPPORTED_IDS = {
|
|
|
6529
6697
|
groupRules: /* @__PURE__ */ new Set(["oneOfRequired", "rulesByOption"]),
|
|
6530
6698
|
optionLists: new Set(Object.keys(OPTION_LISTS)),
|
|
6531
6699
|
conditions: /* @__PURE__ */ new Set(["fieldFilled"]),
|
|
6532
|
-
prefillSources: new Set(EKYC_PREFILL_SOURCES)
|
|
6700
|
+
prefillSources: new Set(EKYC_PREFILL_SOURCES),
|
|
6701
|
+
flags: /* @__PURE__ */ new Set()
|
|
6533
6702
|
};
|
|
6534
6703
|
/** Today's field shape only flags `middleName` as optional. */
|
|
6535
6704
|
const LEGACY_OPTIONAL_FLAG = /* @__PURE__ */ new Set(["middleName"]);
|
|
@@ -6669,9 +6838,10 @@ const MIGRATED_EKYC_SOURCES = /* @__PURE__ */ new Set([
|
|
|
6669
6838
|
]);
|
|
6670
6839
|
/**
|
|
6671
6840
|
* The bundled definition for exactly this source and country, if it is
|
|
6672
|
-
* projectable and the rollout lets this source use it.
|
|
6841
|
+
* projectable and the rollout lets this source use it. `useDefinitions` is
|
|
6842
|
+
* the rollout answer the machine read once, when it was created.
|
|
6673
6843
|
*/
|
|
6674
|
-
function selectEkycDefinition(source, country, useDefinitions
|
|
6844
|
+
function selectEkycDefinition(source, country, useDefinitions) {
|
|
6675
6845
|
if (!useDefinitions && MIGRATED_EKYC_SOURCES.has(source)) return void 0;
|
|
6676
6846
|
const definition = bundled.select({
|
|
6677
6847
|
module: "ekyc",
|
|
@@ -6851,9 +7021,10 @@ function applyOneOfRequiredGroups(defs, configSource) {
|
|
|
6851
7021
|
* this country reads it (`packages/form-definitions/catalog/ekyc`) when the
|
|
6852
7022
|
* rollout allows (`selectEkycDefinition`); any other pair keeps the current
|
|
6853
7023
|
* builder. `useDefinitions` is the rollout answer the machine read once, when
|
|
6854
|
-
* it was created, so it can't change mid-session.
|
|
7024
|
+
* it was created, so it can't change mid-session. The options are named so a
|
|
7025
|
+
* caller can't swap the two booleans.
|
|
6855
7026
|
*/
|
|
6856
|
-
function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false
|
|
7027
|
+
function buildFieldDefs(fields, configSource, country, { useDefinitions, enablePhoneRisk = false }) {
|
|
6857
7028
|
const definition = selectEkycDefinition(configSource, country, useDefinitions);
|
|
6858
7029
|
if (definition) return projectEkycFields(resolveForm(definition, toEkycResolveContext(fields, enablePhoneRisk)), fields, country);
|
|
6859
7030
|
return legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk);
|
|
@@ -6911,7 +7082,7 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
|
|
|
6911
7082
|
label: "verification.labels.brazilian"
|
|
6912
7083
|
},
|
|
6913
7084
|
{
|
|
6914
|
-
value: "
|
|
7085
|
+
value: "naturalized_brazilian",
|
|
6915
7086
|
label: "verification.labels.naturalizedBrazilian"
|
|
6916
7087
|
},
|
|
6917
7088
|
{
|
|
@@ -6919,7 +7090,7 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
|
|
|
6919
7090
|
label: "verification.labels.foreigner"
|
|
6920
7091
|
},
|
|
6921
7092
|
{
|
|
6922
|
-
value: "
|
|
7093
|
+
value: "brazilian_born_abroad",
|
|
6923
7094
|
label: "verification.labels.brazilianBornAbroad"
|
|
6924
7095
|
}
|
|
6925
7096
|
] });
|
|
@@ -7163,6 +7334,38 @@ function processFieldValueByName(name, value, fieldsCountry) {
|
|
|
7163
7334
|
if (name === "panNumber") return value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase();
|
|
7164
7335
|
return value;
|
|
7165
7336
|
}
|
|
7337
|
+
/** Whether the form shows a field: not hidden, and not an email shown elsewhere. */
|
|
7338
|
+
const isVisibleEkycField = (field, hideEmail) => field.displayMode !== "hidden" && !(hideEmail && field.name === "email");
|
|
7339
|
+
/**
|
|
7340
|
+
* Splits the form into steps, one per run of visible fields with the same
|
|
7341
|
+
* section, in field order. A section with no visible field has no step.
|
|
7342
|
+
*/
|
|
7343
|
+
function buildEkycSteps(fields, hideEmail) {
|
|
7344
|
+
const steps = [];
|
|
7345
|
+
for (const field of fields) {
|
|
7346
|
+
if (!isVisibleEkycField(field, hideEmail)) continue;
|
|
7347
|
+
const id = field.section ?? "personal";
|
|
7348
|
+
const last = steps[steps.length - 1];
|
|
7349
|
+
if (last?.id === id) last.fieldNames.push(field.name);
|
|
7350
|
+
else steps.push({
|
|
7351
|
+
id,
|
|
7352
|
+
fieldNames: [field.name]
|
|
7353
|
+
});
|
|
7354
|
+
}
|
|
7355
|
+
return steps;
|
|
7356
|
+
}
|
|
7357
|
+
/**
|
|
7358
|
+
* The step index kept within the steps the form has now. A missing index, as
|
|
7359
|
+
* in a snapshot taken before steps existed, is the first step.
|
|
7360
|
+
*/
|
|
7361
|
+
const clampStepIndex = (index, steps) => Number.isFinite(index) ? Math.max(0, Math.min(index, steps.length - 1)) : 0;
|
|
7362
|
+
/** Whether a step's fields have no validation errors. */
|
|
7363
|
+
const isStepValid = (step, errors) => !step || step.fieldNames.every((name) => !errors?.[name]);
|
|
7364
|
+
/** The first step with a validation error, or `undefined` when none has one. */
|
|
7365
|
+
function firstStepWithError(steps, errors) {
|
|
7366
|
+
const index = steps.findIndex((step) => !isStepValid(step, errors));
|
|
7367
|
+
return index === -1 ? void 0 : index;
|
|
7368
|
+
}
|
|
7166
7369
|
//#endregion
|
|
7167
7370
|
//#region src/modules/ekyc/ekycServices.ts
|
|
7168
7371
|
/** Fetches module configuration for EXTERNAL_VERIFICATION */
|
|
@@ -7289,6 +7492,12 @@ const prefillConfig = (context) => ({
|
|
|
7289
7492
|
riskAddons: context.moduleConfig?.riskAddons,
|
|
7290
7493
|
useDefinitions: context._formDefinitions
|
|
7291
7494
|
});
|
|
7495
|
+
const stepsOf = (context) => buildEkycSteps(context.fields, context.hideEmail);
|
|
7496
|
+
/** The step the user is on, kept within the steps the form has now. */
|
|
7497
|
+
const currentStep = (context) => {
|
|
7498
|
+
const steps = stepsOf(context);
|
|
7499
|
+
return steps[clampStepIndex(context.currentStepIndex, steps)];
|
|
7500
|
+
};
|
|
7292
7501
|
const omitKeys = (errors, keys) => {
|
|
7293
7502
|
if (!errors) return void 0;
|
|
7294
7503
|
const next = { ...errors };
|
|
@@ -7319,7 +7528,10 @@ const ekycMachine = setup({
|
|
|
7319
7528
|
verificationFields: vFields,
|
|
7320
7529
|
configSource: source,
|
|
7321
7530
|
fieldsCountry: country,
|
|
7322
|
-
fields: buildFieldDefs(vFields, source, country,
|
|
7531
|
+
fields: buildFieldDefs(vFields, source, country, {
|
|
7532
|
+
useDefinitions: context._formDefinitions,
|
|
7533
|
+
enablePhoneRisk: config.enablePhoneRisk
|
|
7534
|
+
}),
|
|
7323
7535
|
displayModes: getEKYCDisplayModes(config)
|
|
7324
7536
|
};
|
|
7325
7537
|
}),
|
|
@@ -7391,10 +7603,35 @@ const ekycMachine = setup({
|
|
|
7391
7603
|
const errors = validateEkycForm(context.values, context.fields);
|
|
7392
7604
|
return { validationErrors: Object.keys(errors).length > 0 ? errors : void 0 };
|
|
7393
7605
|
}),
|
|
7606
|
+
validateCurrentStep: assign(({ context }) => {
|
|
7607
|
+
const step = currentStep(context);
|
|
7608
|
+
if (!step) return {};
|
|
7609
|
+
const next = { ...context.validationErrors ?? {} };
|
|
7610
|
+
for (const name of step.fieldNames) {
|
|
7611
|
+
const message = validateEkycField(context.values, name, context.fields);
|
|
7612
|
+
if (message) next[name] = message;
|
|
7613
|
+
else delete next[name];
|
|
7614
|
+
}
|
|
7615
|
+
return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
|
|
7616
|
+
}),
|
|
7617
|
+
advanceStep: assign(({ context }) => {
|
|
7618
|
+
const steps = stepsOf(context);
|
|
7619
|
+
return { currentStepIndex: clampStepIndex(clampStepIndex(context.currentStepIndex, steps) + 1, steps) };
|
|
7620
|
+
}),
|
|
7621
|
+
previousStep: assign(({ context }) => {
|
|
7622
|
+
const steps = stepsOf(context);
|
|
7623
|
+
return { currentStepIndex: clampStepIndex(clampStepIndex(context.currentStepIndex, steps) - 1, steps) };
|
|
7624
|
+
}),
|
|
7625
|
+
goToFirstStepWithError: assign(({ context }) => {
|
|
7626
|
+
const index = firstStepWithError(stepsOf(context), context.validationErrors);
|
|
7627
|
+
return index === void 0 ? {} : { currentStepIndex: index };
|
|
7628
|
+
}),
|
|
7629
|
+
resetStep: assign({ currentStepIndex: () => 0 }),
|
|
7394
7630
|
fillAddressFields: assign(({ context, event }) => {
|
|
7395
7631
|
const { suggestion } = event;
|
|
7396
7632
|
const activeFields = new Set(context.fields.filter((f) => !isLocked(f)).map((f) => f.name));
|
|
7397
|
-
const { values:
|
|
7633
|
+
const { values: filled } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
|
|
7634
|
+
const newValues = keepSuggestedStateInOptions(context.fields, context.values, filled);
|
|
7398
7635
|
const clearedErrors = omitKeys(context.validationErrors, ADDRESS_AUTOCOMPLETE_KEYS);
|
|
7399
7636
|
const streetError = getStreetLevelErrorForSuggestion(suggestion, activeFields);
|
|
7400
7637
|
const validationErrors = {
|
|
@@ -7425,7 +7662,12 @@ const ekycMachine = setup({
|
|
|
7425
7662
|
needsPhoneRules: needsPhoneRulesGuard,
|
|
7426
7663
|
isCountryNotSupported: isCountryNotSupportedGuard,
|
|
7427
7664
|
shouldAutoSubmit: ({ context }) => !context.autoSubmitted && showsNoFields(context),
|
|
7428
|
-
showsNoFields: ({ context }) => showsNoFields(context)
|
|
7665
|
+
showsNoFields: ({ context }) => showsNoFields(context),
|
|
7666
|
+
isLastStep: ({ context }) => {
|
|
7667
|
+
const steps = stepsOf(context);
|
|
7668
|
+
return clampStepIndex(context.currentStepIndex, steps) >= steps.length - 1;
|
|
7669
|
+
},
|
|
7670
|
+
currentStepHasNoErrors: ({ context }) => isStepValid(currentStep(context), context.validationErrors)
|
|
7429
7671
|
}
|
|
7430
7672
|
}).createMachine({
|
|
7431
7673
|
id: "ekyc",
|
|
@@ -7447,6 +7689,7 @@ const ekycMachine = setup({
|
|
|
7447
7689
|
autoSubmitted: false,
|
|
7448
7690
|
errorMessage: "",
|
|
7449
7691
|
submitError: "",
|
|
7692
|
+
currentStepIndex: 0,
|
|
7450
7693
|
_formDefinitions: isFormDefinitionsEnabled(),
|
|
7451
7694
|
_searchQuery: ""
|
|
7452
7695
|
};
|
|
@@ -7472,7 +7715,10 @@ const ekycMachine = setup({
|
|
|
7472
7715
|
verificationFields: vFields,
|
|
7473
7716
|
configSource: source,
|
|
7474
7717
|
fieldsCountry: country,
|
|
7475
|
-
fields: buildFieldDefs(vFields, source, country,
|
|
7718
|
+
fields: buildFieldDefs(vFields, source, country, {
|
|
7719
|
+
useDefinitions: context._formDefinitions,
|
|
7720
|
+
enablePhoneRisk: context.config.enablePhoneRisk
|
|
7721
|
+
})
|
|
7476
7722
|
};
|
|
7477
7723
|
})
|
|
7478
7724
|
},
|
|
@@ -7509,19 +7755,22 @@ const ekycMachine = setup({
|
|
|
7509
7755
|
} }
|
|
7510
7756
|
}
|
|
7511
7757
|
},
|
|
7512
|
-
prefilling: {
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7758
|
+
prefilling: {
|
|
7759
|
+
entry: "resetStep",
|
|
7760
|
+
invoke: {
|
|
7761
|
+
id: "fetchPrefillData",
|
|
7762
|
+
src: "fetchPrefillData",
|
|
7763
|
+
input: ({ context }) => ({ addressOrigin: prefillAddressOrigin(prefillConfig(context)) }),
|
|
7764
|
+
onDone: {
|
|
7765
|
+
target: "form",
|
|
7766
|
+
actions: "applyPrefillData"
|
|
7767
|
+
},
|
|
7768
|
+
onError: {
|
|
7769
|
+
target: "form",
|
|
7770
|
+
actions: "applyEmptyPrefill"
|
|
7771
|
+
}
|
|
7523
7772
|
}
|
|
7524
|
-
}
|
|
7773
|
+
},
|
|
7525
7774
|
form: {
|
|
7526
7775
|
initial: "inputting",
|
|
7527
7776
|
states: {
|
|
@@ -7549,7 +7798,8 @@ const ekycMachine = setup({
|
|
|
7549
7798
|
RESULTS: {
|
|
7550
7799
|
target: "inputting",
|
|
7551
7800
|
actions: "setAddressSuggestions"
|
|
7552
|
-
}
|
|
7801
|
+
},
|
|
7802
|
+
SUBMIT: { target: "validatingSubmit" }
|
|
7553
7803
|
}
|
|
7554
7804
|
},
|
|
7555
7805
|
validatingSubmit: {
|
|
@@ -7557,10 +7807,29 @@ const ekycMachine = setup({
|
|
|
7557
7807
|
always: [{
|
|
7558
7808
|
guard: "hasNoValidationErrors",
|
|
7559
7809
|
target: "#ekyc.submitting"
|
|
7810
|
+
}, {
|
|
7811
|
+
target: "inputting",
|
|
7812
|
+
actions: "goToFirstStepWithError"
|
|
7813
|
+
}]
|
|
7814
|
+
},
|
|
7815
|
+
validatingStep: {
|
|
7816
|
+
entry: "validateCurrentStep",
|
|
7817
|
+
always: [{
|
|
7818
|
+
guard: "currentStepHasNoErrors",
|
|
7819
|
+
target: "inputting",
|
|
7820
|
+
actions: "advanceStep"
|
|
7560
7821
|
}, { target: "inputting" }]
|
|
7561
7822
|
}
|
|
7562
7823
|
},
|
|
7563
7824
|
on: {
|
|
7825
|
+
NEXT_STEP: [{
|
|
7826
|
+
guard: "isLastStep",
|
|
7827
|
+
target: ".validatingSubmit"
|
|
7828
|
+
}, { target: ".validatingStep" }],
|
|
7829
|
+
PREVIOUS_STEP: {
|
|
7830
|
+
target: ".inputting",
|
|
7831
|
+
actions: "previousStep"
|
|
7832
|
+
},
|
|
7564
7833
|
SEARCH_ADDRESS: {
|
|
7565
7834
|
target: ".searching",
|
|
7566
7835
|
actions: assign(({ event }) => ({
|
|
@@ -7625,4 +7894,4 @@ const ekycMachine = setup({
|
|
|
7625
7894
|
}
|
|
7626
7895
|
});
|
|
7627
7896
|
//#endregion
|
|
7628
|
-
export { ekycMachine as t };
|
|
7897
|
+
export { isStepValid as i, buildEkycSteps as n, clampStepIndex as r, ekycMachine as t };
|