@incodetech/core 2.2.0 → 2.3.0-rc.0
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/THIRD_PARTY_NOTICES.txt +281 -0
- package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
- package/dist/{BrowserDiagnosticsCryptoProvider-B8vorxN5.esm.js → BrowserDiagnosticsCryptoProvider-C_9o3L2L.esm.js} +1 -1
- package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
- package/dist/FaceDetectionProvider-DTetAE8H.esm.js +476 -0
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
- package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
- package/dist/IWasmUtilCapability-CXXDA5l1.d.ts +159 -0
- package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
- package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-B3YT2Bt6.d.ts} +54 -41
- package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
- package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-BRSu_aGA.esm.js} +1 -1
- package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
- package/dist/ae-signature.d.ts +4 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-Bg9ynGum.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-BHxehiJZ.esm.js} +1 -1
- package/dist/{apiError-BA1d_au0.esm.js → apiError-D0v5hFyN.esm.js} +14 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-zh9TC62P.esm.js → authenticationManager-C4B4-29g.esm.js} +5 -5
- package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-DXTIUcma.d.ts} +7 -1
- package/dist/{authenticationStateMachine-xzi-vnvE.esm.js → authenticationStateMachine-DJ0zUm-A.esm.js} +6 -62
- package/dist/avatar.d.ts +1 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
- package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
- package/dist/camera.esm.js +1 -1
- package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
- package/dist/certificate-issuance.d.ts +2 -302
- package/dist/certificate-issuance.esm.js +3 -66
- package/dist/certificateIssuanceManager-Bfvkq7Cy.esm.js +69 -0
- package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
- package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-BBD5h8c4.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B5Vqdez-.esm.js} +2 -2
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DbUmqWgV.esm.js} +1 -1
- package/dist/createCameraCycleOwnership-DQ5-F2oW.esm.js +826 -0
- package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
- package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-QMOGwHXR.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-D1ppROcF.esm.js} +2 -2
- package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-DvUPC_8S.esm.js} +1 -1
- package/dist/custom-fields.d.ts +2 -114
- package/dist/custom-fields.esm.js +2 -232
- package/dist/custom-watchlist.d.ts +2 -51
- package/dist/custom-watchlist.esm.js +3 -70
- package/dist/customFieldsManager-2j_PBq4U.esm.js +264 -0
- package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
- package/dist/customWatchlistManager-DUVrEdw9.esm.js +73 -0
- package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
- package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-qZVgkKgP.esm.js} +1 -1
- package/dist/{deepsightLoader--wMKWECS.esm.js → deepsightLoader-Dm7ejW4v.esm.js} +27 -71
- package/dist/device.d.ts +25 -2
- package/dist/device.esm.js +69 -7
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-DR_Wv-3H.esm.js} +2 -2
- package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
- package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-CWOATHfE.esm.js} +5 -5
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
- package/dist/{dynamicFormsManager-fFVIRBNv.esm.js → dynamicFormsManager-Dt98SDfV.esm.js} +16 -5
- package/dist/{dynamicFormsStateMachine-D6D7oEYk.esm.js → dynamicFormsStateMachine-obKr4IIp.esm.js} +35 -3
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-Y3MkoXpC.esm.js → ekybManager-DNZKrKF3.esm.js} +2 -2
- package/dist/{ekybStateMachine-3nlnqdlr.esm.js → ekybStateMachine-DjhHQXZ8.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-CmQBpeiI.esm.js} +2 -2
- package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CmdW2gVm.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
- package/dist/{electronicSignatureManager-DGbAJ00W.esm.js → electronicSignatureManager-DzulxM4_.esm.js} +357 -51
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-B5ek_UfM.esm.js} +2 -2
- package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-CyPFZ7dW.esm.js} +1 -1
- package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-D3B9mUHh.esm.js} +24 -7
- package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
- package/dist/events.d.ts +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +24 -64
- package/dist/extensibility.esm.js +35 -29
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-CvtqcLxs.d.ts} +87 -54
- package/dist/{faceCaptureManagerFactory-CVnZ0fa5.esm.js → faceCaptureManagerFactory-pCmG4MeF.esm.js} +68 -7
- package/dist/faceCaptureSetup-BSextack.esm.js +2106 -0
- package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Caal2zyV.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-BUc5FXYy.esm.js} +1 -1
- package/dist/{feature-management-CPQ4qv3F.esm.js → feature-management-B0sGlozZ.esm.js} +32 -7
- package/dist/feature-management.d.ts +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-BIs6HPJG.esm.js} +2 -2
- package/dist/fiscal-qr.d.ts +2 -56
- package/dist/fiscal-qr.esm.js +2 -308
- package/dist/fiscalQrManager-Bp_-3LJr.esm.js +34131 -0
- package/dist/fiscalQrManager-CHcBJwUM.d.ts +68 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +212 -185
- package/dist/flow.esm.js +119 -30
- package/dist/{flowCompletionService-tfeoGre9.esm.js → flowCompletionService-CLtbWhSK.esm.js} +2 -2
- package/dist/{flowServices-f5Ruz7R9.esm.js → flowServices-B5FwukTQ.esm.js} +91 -26
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CH6RfqFH.esm.js → geolocationManager-DIw-xq9a.esm.js} +2 -2
- package/dist/{geolocationStateMachine-DmbWFely.esm.js → geolocationStateMachine-DpG0TFOU.esm.js} +3 -3
- package/dist/getBrowser-CBiibsL-.esm.js +19 -0
- package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
- package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
- package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
- package/dist/government-validation.d.ts +2 -85
- package/dist/government-validation.esm.js +3 -120
- package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
- package/dist/governmentValidationManager-TjC9iVjH.esm.js +79 -0
- package/dist/governmentValidationStateMachine-D1ZnEqdd.esm.js +54 -0
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +3 -2
- package/dist/id-selfie-flow.esm.js +11 -10
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +29 -5
- package/dist/id.esm.js +48 -46
- package/dist/idCaptureDefaults-BcxjQDI3.esm.js +484 -0
- package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-CvmHOWWd.d.ts} +227 -39
- package/dist/{idCaptureManager-BYwTZ2H8.esm.js → idCaptureManager-Vby8oYqh.esm.js} +259 -46
- package/dist/{idCaptureServices-44kwQItl.esm.js → idCaptureServices-CJIxD9ep.esm.js} +342 -31
- package/dist/idCaptureStateMachine-CmqihkUy.esm.js +5343 -0
- package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
- package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-DHU22hVn.esm.js} +2 -2
- package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-33UvRAHE.esm.js} +1 -1
- package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-CyaixD0D.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-BPGrQZEm.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-CWaNHBO3.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-CQgnATo5.esm.js} +1 -1
- package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +5 -5
- package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-Du-m-tZ_.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DSDAk7WZ.esm.js} +1 -1
- package/dist/multipartRecordingService-B3C_zlev.esm.js +594 -0
- package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
- package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
- package/dist/personhood.d.ts +6 -5
- package/dist/personhood.esm.js +10 -10
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-N1-sbrY4.esm.js} +2 -2
- package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-jl8LJKCo.esm.js} +1 -1
- package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
- package/dist/qe-signature.d.ts +5 -3
- package/dist/qe-signature.esm.js +2 -2
- package/dist/recordingsRepository-CCWy13M-.esm.js +72 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-DsFzdTwA.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-v3otpT-L.esm.js} +1 -1
- package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
- package/dist/{runChildModule-Dukuw23X.esm.js → runChildModule-TuyGE00X.esm.js} +3 -21
- package/dist/safeStorage-B-trhxg6.esm.js +423 -0
- package/dist/{sdkVersion-D1Bm59g6.esm.js → sdkVersion-CLxKvdyz.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +14 -76
- package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-C77GXJH6.esm.js} +30 -4
- package/dist/{selfieManager-Bj6B2ZVy.esm.js → selfieManager-CihVnODO.esm.js} +5 -5
- package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-D1KRJ39M.d.ts} +8 -11
- package/dist/selfieStateMachine-fwMmNtOi.esm.js +69 -0
- package/dist/{session-BFdLgN4i.esm.js → session-BHIeAamR.esm.js} +4 -5
- package/dist/session.d.ts +21 -11
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-dlfDehHk.esm.js → sessionInitializer-BLoK7SP9.esm.js} +187 -68
- package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
- package/dist/{setup-BIAtLa8k.esm.js → setup-msLybMbC.esm.js} +226 -100
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-ChsB-nMD.esm.js} +2 -2
- package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-BHPwkJZS.esm.js} +1 -1
- package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
- package/dist/{stats-B0nFKawG.esm.js → stats-DkK-f8JT.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService---iW2KKJ.esm.js → trueSightService-CKrrfV0Q.esm.js} +7 -7
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
- package/dist/types-BT_Oalip.d.ts +1 -0
- package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
- package/dist/{types-Hmd7U0JA.d.ts → types-CM-jtjJ2.d.ts} +6 -81
- package/dist/{types-Bdf8_LYB2.d.ts → types-CjKBS37a2.d.ts} +303 -13
- package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
- package/dist/types-DgDvvzg0.d.ts +10 -0
- package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
- package/dist/types-ZT1XFIJ8.d.ts +6 -0
- package/dist/video-selfie.d.ts +59 -35
- package/dist/video-selfie.esm.js +510 -601
- package/dist/{videoSelfieCameraWarmer-NEhFZvWx.esm.js → videoSelfieCameraWarmer-CB1IzZkt.esm.js} +14 -153
- package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
- package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-5YHFe0Mq.d.ts} +21 -5
- package/dist/virtualCameraCheck-WOloJ-do.esm.js +48 -0
- package/dist/warmup-CUUnwYxe.esm.js +714 -0
- package/dist/warmup-Cis2p6O0.d.ts +128 -0
- package/dist/wasm.d.ts +30 -6
- package/dist/wasm.esm.js +36 -4
- package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
- package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
- package/dist/watchlist-for-business.d.ts +2 -78
- package/dist/watchlist-for-business.esm.js +3 -102
- package/dist/watchlist.esm.js +2 -2
- package/dist/watchlistForBusinessManager-CpuuB1J2.esm.js +107 -0
- package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
- package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-DEzgjz7C.esm.js} +13 -6
- package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CI8BHFob.esm.js} +2 -2
- package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-DvOby3a-.esm.js} +1 -1
- package/dist/workflow.d.ts +12 -8
- package/dist/workflow.esm.js +48 -39
- package/package.json +4 -10
- package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
- package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
- package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
- package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
- package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
- package/dist/document-upload.d.ts +0 -325
- package/dist/document-upload.esm.js +0 -197
- package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
- package/dist/faceCaptureSetup-Cd-04W_X.esm.js +0 -863
- package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
- package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
- package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
- package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
- package/dist/idCaptureStateMachine-kZ5OpdfM.esm.js +0 -3342
- package/dist/lib-DAyUtOTj.esm.js +0 -12420
- package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
- package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
- package/dist/onDeviceFaceResults-CUHwyZT4.esm.js +0 -646
- package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
- package/dist/recordingService-3NSENVwp.esm.js +0 -329
- package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
- package/dist/selfieStateMachine-CHV_WNst.esm.js +0 -55
- package/dist/trueSight-B_icM8r2.esm.js +0 -1
- package/dist/types-EELWyWpd.d.ts +0 -6
- package/dist/types-Vb4P9ovf.d.ts +0 -22
- package/dist/warmup-Dv2alr2-.d.ts +0 -82
- package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
- package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
- package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
- /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
- /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { v as addEvent } from "./events-
|
|
2
|
-
import { a as
|
|
1
|
+
import { v as addEvent } from "./events-ijlbX_Wx.esm.js";
|
|
2
|
+
import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-B5FwukTQ.esm.js";
|
|
3
3
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-CLtbWhSK.esm.js";
|
|
6
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-TuyGE00X.esm.js";
|
|
7
|
+
import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
7
8
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
8
9
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
|
9
10
|
id: "noOpFlowModule",
|
|
@@ -362,6 +363,8 @@ function createBaseContext(context, isHomeContinueLoading) {
|
|
|
362
363
|
enableHome: context.enableHome,
|
|
363
364
|
finishStatus: void 0,
|
|
364
365
|
isHomeContinueLoading,
|
|
366
|
+
deferActivation: context.deferActivation,
|
|
367
|
+
activationResolved: false,
|
|
365
368
|
skipFaceMatch: false
|
|
366
369
|
};
|
|
367
370
|
}
|
|
@@ -371,13 +374,21 @@ function createInitialContext(input) {
|
|
|
371
374
|
registeredModules: input.modules ?? {},
|
|
372
375
|
lazyRegisteredModules: input.lazyModules ?? {},
|
|
373
376
|
getFinishStatus: input.getFinishStatus ?? getFinishStatus,
|
|
374
|
-
enableHome: input.enableHome === true
|
|
377
|
+
enableHome: input.enableHome === true,
|
|
378
|
+
deferActivation: input.deferActivation === true
|
|
375
379
|
}, false);
|
|
376
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* Whether this flow shows a home screen at all. Shared by `shouldEnterHome`
|
|
383
|
+
* (step-position aware) and the `activatesBeforeFirstModule` guard (which runs
|
|
384
|
+
* before `setFlowData`, so it reads the freshly fetched flow instead of
|
|
385
|
+
* `context.flow`) — keep the home-screen conditions in this one place.
|
|
386
|
+
*/
|
|
387
|
+
function homeScreenEnabled(context, flow) {
|
|
388
|
+
return context.enableHome === true && flow?.disableLaunchScreen !== true && context.isHomeContinueLoading !== true;
|
|
389
|
+
}
|
|
377
390
|
function shouldEnterHome(context) {
|
|
378
|
-
if (context.
|
|
379
|
-
if (context.flow?.disableLaunchScreen === true) return false;
|
|
380
|
-
if (context.isHomeContinueLoading === true) return false;
|
|
391
|
+
if (!homeScreenEnabled(context, context.flow)) return false;
|
|
381
392
|
const firstRealIndex = context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
|
|
382
393
|
return context.currentStepIndex === firstRealIndex;
|
|
383
394
|
}
|
|
@@ -407,6 +418,10 @@ const orchestratedFlowMachine = setup({
|
|
|
407
418
|
return await input.getFinishStatus(input.flowId, signal);
|
|
408
419
|
}),
|
|
409
420
|
runChildModule,
|
|
421
|
+
resolveActivation: fromPromise(async ({ input, signal }) => {
|
|
422
|
+
if (!input.flow) throw new Error("No flow loaded");
|
|
423
|
+
return completeDeferredActivation(input.flow, signal);
|
|
424
|
+
}),
|
|
410
425
|
resolveCurrentModuleMachine: fromPromise(async ({ input }) => {
|
|
411
426
|
if (!input.moduleKey) return;
|
|
412
427
|
const eagerMachine = input.modules[input.moduleKey];
|
|
@@ -437,6 +452,25 @@ const orchestratedFlowMachine = setup({
|
|
|
437
452
|
currentModuleMachine: void 0
|
|
438
453
|
};
|
|
439
454
|
}),
|
|
455
|
+
setActivatedFlow: assign(({ context, event }) => {
|
|
456
|
+
const flow = event.output;
|
|
457
|
+
const flowModules = flow.flowModules ?? [];
|
|
458
|
+
const steps = flowModules.map((m) => m.key);
|
|
459
|
+
let insertedAt = steps.findIndex((key, i) => key !== context.steps[i]);
|
|
460
|
+
if (insertedAt === -1) insertedAt = steps.length;
|
|
461
|
+
const currentStepIndex = steps.length === context.steps.length ? context.currentStepIndex : Math.min(context.currentStepIndex, insertedAt);
|
|
462
|
+
const module = flowModules[currentStepIndex];
|
|
463
|
+
return {
|
|
464
|
+
flow,
|
|
465
|
+
steps,
|
|
466
|
+
currentStepIndex,
|
|
467
|
+
currentStep: module?.key,
|
|
468
|
+
config: getModuleConfig(module, flow),
|
|
469
|
+
currentModuleMachine: void 0,
|
|
470
|
+
activationResolved: true
|
|
471
|
+
};
|
|
472
|
+
}),
|
|
473
|
+
markActivationResolved: assign({ activationResolved: true }),
|
|
440
474
|
setError: assign(({ event }) => {
|
|
441
475
|
const err = event.error;
|
|
442
476
|
return {
|
|
@@ -491,6 +525,16 @@ const orchestratedFlowMachine = setup({
|
|
|
491
525
|
canGoNext: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex < context.steps.length - 1,
|
|
492
526
|
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
493
527
|
shouldEnterHome: ({ context }) => shouldEnterHome(context),
|
|
528
|
+
needsActivation: ({ context }) => context.deferActivation && !context.activationResolved && context.currentStep !== "REDIRECT_TO_MOBILE",
|
|
529
|
+
activatesBeforeFirstModule: ({ context, event }) => {
|
|
530
|
+
if (!("output" in event)) return false;
|
|
531
|
+
if (!context.deferActivation || context.activationResolved) return false;
|
|
532
|
+
const flow = event.output;
|
|
533
|
+
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
534
|
+
if (!firstModuleKey || firstModuleKey === "REDIRECT_TO_MOBILE") return false;
|
|
535
|
+
if (!(context.registeredModules[firstModuleKey] != null || context.lazyRegisteredModules[firstModuleKey] != null)) return false;
|
|
536
|
+
return !homeScreenEnabled(context, flow);
|
|
537
|
+
},
|
|
494
538
|
hasModule: ({ context, event }) => {
|
|
495
539
|
if (!("output" in event)) return false;
|
|
496
540
|
const firstModuleKey = event.output.flowModules?.[0]?.key;
|
|
@@ -519,17 +563,25 @@ const orchestratedFlowMachine = setup({
|
|
|
519
563
|
id: "fetchFlow",
|
|
520
564
|
src: "fetchFlow",
|
|
521
565
|
input: ({ context }) => ({ getFlow: context.getFlow }),
|
|
522
|
-
onDone: [
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
566
|
+
onDone: [
|
|
567
|
+
{
|
|
568
|
+
target: "resolvingActivation",
|
|
569
|
+
guard: "activatesBeforeFirstModule",
|
|
570
|
+
actions: "setFlowData"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
target: "resolvingModule",
|
|
574
|
+
guard: "hasModule",
|
|
575
|
+
actions: "setFlowData"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
target: "error",
|
|
579
|
+
actions: assign({ error: ({ event }) => {
|
|
580
|
+
const firstModuleKey = event.output.flowModules?.[0]?.key;
|
|
581
|
+
return firstModuleKey ? `No registered module found for: ${firstModuleKey}` : "No registered module found: flow has no modules";
|
|
582
|
+
} })
|
|
583
|
+
}
|
|
584
|
+
],
|
|
533
585
|
onError: {
|
|
534
586
|
target: "error",
|
|
535
587
|
actions: "setError"
|
|
@@ -558,6 +610,11 @@ const orchestratedFlowMachine = setup({
|
|
|
558
610
|
guard: "shouldEnterHome",
|
|
559
611
|
actions: ["setCurrentModuleMachine"]
|
|
560
612
|
},
|
|
613
|
+
{
|
|
614
|
+
target: "resolvingActivation",
|
|
615
|
+
guard: "needsActivation",
|
|
616
|
+
actions: ["setCurrentModuleMachine"]
|
|
617
|
+
},
|
|
561
618
|
{
|
|
562
619
|
target: "runningModule",
|
|
563
620
|
guard: "hasCurrentModuleMachine",
|
|
@@ -582,15 +639,41 @@ const orchestratedFlowMachine = setup({
|
|
|
582
639
|
}
|
|
583
640
|
},
|
|
584
641
|
home: { on: {
|
|
585
|
-
HOME_CONTINUE: {
|
|
642
|
+
HOME_CONTINUE: [{
|
|
643
|
+
target: "resolvingActivation",
|
|
644
|
+
guard: "needsActivation",
|
|
645
|
+
actions: "setHomeContinueLoading"
|
|
646
|
+
}, {
|
|
586
647
|
target: "runningModule",
|
|
587
648
|
actions: ["clearHomeContinueLoading", "prefetchNextModule"]
|
|
588
|
-
},
|
|
649
|
+
}],
|
|
589
650
|
RESET: {
|
|
590
651
|
target: "idle",
|
|
591
652
|
actions: "resetContext"
|
|
592
653
|
}
|
|
593
654
|
} },
|
|
655
|
+
resolvingActivation: {
|
|
656
|
+
invoke: {
|
|
657
|
+
id: "resolveActivation",
|
|
658
|
+
src: "resolveActivation",
|
|
659
|
+
input: ({ context }) => ({ flow: context.flow }),
|
|
660
|
+
onDone: {
|
|
661
|
+
target: "resolvingModule",
|
|
662
|
+
actions: "setActivatedFlow"
|
|
663
|
+
},
|
|
664
|
+
onError: {
|
|
665
|
+
target: "resolvingModule",
|
|
666
|
+
actions: "markActivationResolved"
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
on: {
|
|
670
|
+
RESET: {
|
|
671
|
+
target: "idle",
|
|
672
|
+
actions: "resetContext"
|
|
673
|
+
},
|
|
674
|
+
...homeContinueOn
|
|
675
|
+
}
|
|
676
|
+
},
|
|
594
677
|
runningModule: {
|
|
595
678
|
entry: "clearHomeContinueLoading",
|
|
596
679
|
invoke: {
|
|
@@ -647,7 +730,10 @@ const orchestratedFlowMachine = setup({
|
|
|
647
730
|
},
|
|
648
731
|
{
|
|
649
732
|
target: "error",
|
|
650
|
-
actions: assign(({ event }) =>
|
|
733
|
+
actions: ["setModuleErrorCode", assign(({ event }) => {
|
|
734
|
+
const rawError = event.error;
|
|
735
|
+
return { error: rawError === void 0 ? void 0 : String(rawError) };
|
|
736
|
+
})]
|
|
651
737
|
}
|
|
652
738
|
],
|
|
653
739
|
COMPLETE_FLOW: { target: "completing" },
|
|
@@ -701,7 +787,7 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
|
|
|
701
787
|
const isCompletingPhase = snapshot.value === "completing";
|
|
702
788
|
const firstRealIndex = snapshot.context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
|
|
703
789
|
const isAtFirstRealModule = snapshot.context.currentStepIndex === firstRealIndex;
|
|
704
|
-
const isResolvingHomeAnchor = snapshot.value === "resolvingModule" && effectiveEnableHome && isAtFirstRealModule;
|
|
790
|
+
const isResolvingHomeAnchor = (snapshot.value === "resolvingModule" || snapshot.value === "resolvingActivation") && effectiveEnableHome && isAtFirstRealModule;
|
|
705
791
|
const isHomeBoundPhase = isHomePhase || isResolvingHomeAnchor;
|
|
706
792
|
const canShowHome = isTerminal === false && effectiveEnableHome && isCompletingPhase === false;
|
|
707
793
|
const visible = canShowHome ? isHomeBoundPhase : false;
|
|
@@ -723,7 +809,7 @@ function getMappedStatus(snapshot) {
|
|
|
723
809
|
const { value } = snapshot;
|
|
724
810
|
if (value === "idle") return "idle";
|
|
725
811
|
if (value === "completing") return "completing";
|
|
726
|
-
if (value === "loading" || value === "resolvingModule" || typeof value === "object") return "loading";
|
|
812
|
+
if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || typeof value === "object") return "loading";
|
|
727
813
|
if (value === "finished") return "finished";
|
|
728
814
|
if (value === "error") return "error";
|
|
729
815
|
return "ready";
|
|
@@ -762,7 +848,7 @@ function mapOrchestratedFlowState(snapshot, uiOptions) {
|
|
|
762
848
|
};
|
|
763
849
|
if (mappedStatus === "error") return {
|
|
764
850
|
status: "error",
|
|
765
|
-
error: context.error
|
|
851
|
+
error: context.error,
|
|
766
852
|
errorCode: context.errorCode,
|
|
767
853
|
moduleErrorCode: context.moduleErrorCode,
|
|
768
854
|
homeScreen: uiModel.homeScreen,
|
|
@@ -789,7 +875,7 @@ function waitForOrchestratorReadyFromActor(actor, mapState, isResolved) {
|
|
|
789
875
|
return;
|
|
790
876
|
}
|
|
791
877
|
if (initial.status === "error") {
|
|
792
|
-
reject(new Error(initial.error));
|
|
878
|
+
reject(new Error(initial.error ?? "Flow error"));
|
|
793
879
|
return;
|
|
794
880
|
}
|
|
795
881
|
if (initial.status === "finished") {
|
|
@@ -803,7 +889,7 @@ function waitForOrchestratorReadyFromActor(actor, mapState, isResolved) {
|
|
|
803
889
|
resolve();
|
|
804
890
|
} else if (next.status === "error") {
|
|
805
891
|
subscription.unsubscribe();
|
|
806
|
-
reject(new Error(next.error));
|
|
892
|
+
reject(new Error(next.error ?? "Flow error"));
|
|
807
893
|
} else if (next.status === "finished") {
|
|
808
894
|
subscription.unsubscribe();
|
|
809
895
|
reject(/* @__PURE__ */ new Error("Flow finished"));
|
|
@@ -897,7 +983,9 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
897
983
|
* to the terminal error state. Callers always forward the code and let core
|
|
898
984
|
* classify — no per-module branching in the UI.
|
|
899
985
|
*
|
|
900
|
-
* @param error - Error message describing what went wrong
|
|
986
|
+
* @param error - Error message describing what went wrong. Omit it to let
|
|
987
|
+
* the UI fall back to its own generic error copy (e.g. TerminalErrorPage's
|
|
988
|
+
* `common.unexpectedError`) instead of surfacing a raw/technical string.
|
|
901
989
|
* @param moduleErrorCode - Optional machine-readable error code (a
|
|
902
990
|
* `FaceErrorCode`) used by the flow machine to decide advance vs terminate
|
|
903
991
|
*/
|
|
@@ -963,7 +1051,8 @@ function createOrchestratedFlowActor(options) {
|
|
|
963
1051
|
modules: options.modules,
|
|
964
1052
|
lazyModules: options.lazyModules,
|
|
965
1053
|
getFinishStatus: options.getFinishStatus,
|
|
966
|
-
enableHome: options.enableHome
|
|
1054
|
+
enableHome: options.enableHome,
|
|
1055
|
+
deferActivation: options.deferActivation
|
|
967
1056
|
} }).start();
|
|
968
1057
|
}
|
|
969
1058
|
function createOrchestratedFlowManager(options) {
|
|
@@ -977,4 +1066,4 @@ function createOrchestratedFlowManager(options) {
|
|
|
977
1066
|
}));
|
|
978
1067
|
}
|
|
979
1068
|
//#endregion
|
|
980
|
-
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
|
1069
|
+
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
package/dist/{flowCompletionService-tfeoGre9.esm.js → flowCompletionService-CLtbWhSK.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import {
|
|
2
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
|
+
import { i as toIncodeApiError } from "./apiError-D0v5hFyN.esm.js";
|
|
4
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
5
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
6
6
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as getWasmStatus } from "./warmup-CUUnwYxe.esm.js";
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-B0sGlozZ.esm.js";
|
|
2
3
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
5
|
-
import {
|
|
6
|
-
import "./session-
|
|
4
|
+
import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-BLoK7SP9.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-D0v5hFyN.esm.js";
|
|
7
|
+
import "./session-BHIeAamR.esm.js";
|
|
7
8
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
8
9
|
//#region src/modules/flow/dashboardConfig.ts
|
|
9
10
|
function isPlainObject(value) {
|
|
@@ -220,6 +221,7 @@ function facingModeForStep(step) {
|
|
|
220
221
|
* the first well-framed frame.
|
|
221
222
|
*/
|
|
222
223
|
function resolveVideoSelfieSteps(config) {
|
|
224
|
+
if (config.steps && config.steps.length > 0) return [...config.steps];
|
|
223
225
|
const steps = [];
|
|
224
226
|
if (config.checkIdScan) {
|
|
225
227
|
steps.push("frontId");
|
|
@@ -233,16 +235,10 @@ function resolveVideoSelfieSteps(config) {
|
|
|
233
235
|
}
|
|
234
236
|
return steps;
|
|
235
237
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
* flow-level eager warmup ({@link getRequiredWasmPipelines}) and the
|
|
241
|
-
* tutorial-time lazy warmup (`warmupVideoSelfieWasm`).
|
|
242
|
-
*/
|
|
243
|
-
function videoSelfieWasmPipelines(config) {
|
|
244
|
-
const pipelines = ["videoSelfie"];
|
|
245
|
-
if (config.checkIdScan) pipelines.push("videoSelfieId");
|
|
238
|
+
function videoSelfieWasmPipelines(config, steps = resolveVideoSelfieSteps(config)) {
|
|
239
|
+
const pipelines = [];
|
|
240
|
+
if (steps.includes("selfie")) pipelines.push("videoSelfie");
|
|
241
|
+
if (steps.some((step) => step === "frontId" || step === "backId")) pipelines.push("videoSelfieId");
|
|
246
242
|
return pipelines;
|
|
247
243
|
}
|
|
248
244
|
//#endregion
|
|
@@ -281,7 +277,8 @@ function resolveFlowModuleConfig(module, flow) {
|
|
|
281
277
|
};
|
|
282
278
|
if (module.key === "AE_SIGNATURE" || module.key === "QE_SIGNATURE") return {
|
|
283
279
|
uploadDocument: module.configuration.uploadDocument,
|
|
284
|
-
downloadDocument: module.configuration.downloadDocument
|
|
280
|
+
downloadDocument: module.configuration.downloadDocument,
|
|
281
|
+
...module.key === "QE_SIGNATURE" ? { providerCode: module.configuration.providerCode } : {}
|
|
285
282
|
};
|
|
286
283
|
if (module.key === "DYNAMIC_FORMS") return { screens: module.configuration.screens.map((formScreen) => ({
|
|
287
284
|
title: formScreen.title,
|
|
@@ -352,6 +349,30 @@ function getRequiredWasmPipelines(flow) {
|
|
|
352
349
|
return [...pipelines];
|
|
353
350
|
}
|
|
354
351
|
/**
|
|
352
|
+
* The current capture requirement, then one capture ahead once it is ready.
|
|
353
|
+
* Home never looks past its first capture, and redirects stop lookahead.
|
|
354
|
+
* @internal Used by the shared flow shell after rendering.
|
|
355
|
+
*/
|
|
356
|
+
function getNextRequiredWasmPipelines(state, loadedPipelines = getWasmStatus().loadedPipelines) {
|
|
357
|
+
const { flow, currentStepIndex, homeScreen } = state;
|
|
358
|
+
if (currentStepIndex < 0) return [];
|
|
359
|
+
let currentPipelines = [];
|
|
360
|
+
for (let index = currentStepIndex; index < flow.flowModules.length; index++) {
|
|
361
|
+
const module = flow.flowModules[index];
|
|
362
|
+
if (module.key === "REDIRECT_TO_MOBILE") return [];
|
|
363
|
+
const required = getRequiredWasmPipelines({
|
|
364
|
+
...flow,
|
|
365
|
+
flowModules: [module]
|
|
366
|
+
});
|
|
367
|
+
if (index === currentStepIndex && !homeScreen.visible) currentPipelines = required;
|
|
368
|
+
if (required.length === 0) continue;
|
|
369
|
+
const missing = required.filter((pipeline) => !loadedPipelines.includes(pipeline));
|
|
370
|
+
if (missing.length > 0) return missing;
|
|
371
|
+
if (homeScreen.visible || required.some((pipeline) => !currentPipelines.includes(pipeline))) return [];
|
|
372
|
+
}
|
|
373
|
+
return [];
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
355
376
|
* Normalizes flow modules by expanding TUTORIAL_ID into ID + SECOND_ID
|
|
356
377
|
* based on configuration flags. Matches legacy flowService behavior.
|
|
357
378
|
*
|
|
@@ -495,16 +516,52 @@ function prependMandatoryConsent(flow) {
|
|
|
495
516
|
flowModules: [mandatoryConsentModule, ...flow.flowModules]
|
|
496
517
|
};
|
|
497
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
* Deferred counterpart of the activation steps `getFlow` performs when
|
|
521
|
+
* `deferActivation` is off: waits for session activation, sends the flow id to
|
|
522
|
+
* feature management, waits for the device fingerprint, then inserts
|
|
523
|
+
* MANDATORY_CONSENT where `getFlow` would have put it — first, or right after an
|
|
524
|
+
* injected REDIRECT_TO_MOBILE (normalization adds that one in front of
|
|
525
|
+
* everything). Returns the same object when nothing is injected.
|
|
526
|
+
*/
|
|
527
|
+
async function completeDeferredActivation(flow, signal) {
|
|
528
|
+
await initializeSession({ signal }).catch(() => void 0);
|
|
529
|
+
throwIfAborted(signal);
|
|
530
|
+
await updateFeatureManagementUser({ customIDs: { flow_id: flow.flowId } });
|
|
531
|
+
throwIfAborted(signal);
|
|
532
|
+
await whenSessionFingerprintSettled();
|
|
533
|
+
throwIfAborted(signal);
|
|
534
|
+
const withConsent = prependMandatoryConsent(flow);
|
|
535
|
+
if (withConsent === flow) return flow;
|
|
536
|
+
const [consent, ...rest] = withConsent.flowModules;
|
|
537
|
+
if (rest[0]?.key !== "REDIRECT_TO_MOBILE") return withConsent;
|
|
538
|
+
return {
|
|
539
|
+
...flow,
|
|
540
|
+
flowModules: [
|
|
541
|
+
rest[0],
|
|
542
|
+
consent,
|
|
543
|
+
...rest.slice(1)
|
|
544
|
+
]
|
|
545
|
+
};
|
|
546
|
+
}
|
|
498
547
|
function requireActiveToken() {
|
|
499
548
|
const token = getToken();
|
|
500
549
|
if (!token) throw new Error("Standalone module configuration requires an active Flow session");
|
|
501
550
|
return token;
|
|
502
551
|
}
|
|
503
|
-
|
|
552
|
+
function fetchOnboardingStatus(signal) {
|
|
553
|
+
return api.get(endpoints.onboardingStatus, { signal }).then((res) => res.data);
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* `statusPromise` is started alongside the flow fetch so the check does not
|
|
557
|
+
* add a round trip after it; the flow only decides whether the answer matters
|
|
558
|
+
* (`enableMultipleOnboardings`), so its failure is reported only when it does.
|
|
559
|
+
*/
|
|
560
|
+
async function assertSessionCanStart(flow, statusPromise) {
|
|
504
561
|
if (flow.enableMultipleOnboardings) return;
|
|
505
562
|
let data;
|
|
506
563
|
try {
|
|
507
|
-
data =
|
|
564
|
+
data = await statusPromise;
|
|
508
565
|
} catch (error) {
|
|
509
566
|
toIncodeApiError(endpoints.onboardingStatus, error);
|
|
510
567
|
}
|
|
@@ -566,11 +623,16 @@ function resetDashboardFlowCache() {
|
|
|
566
623
|
}
|
|
567
624
|
async function normalizeDashboardFlow(rawFlow, options, signal) {
|
|
568
625
|
throwIfAborted(signal);
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
626
|
+
let flow = rawFlow;
|
|
627
|
+
if (options.deferActivation !== true) {
|
|
628
|
+
await initializeSession({ signal }).catch(() => void 0);
|
|
629
|
+
throwIfAborted(signal);
|
|
630
|
+
await updateFeatureManagementUser({ customIDs: { flow_id: rawFlow.flowId } });
|
|
631
|
+
throwIfAborted(signal);
|
|
632
|
+
await whenSessionFingerprintSettled();
|
|
633
|
+
throwIfAborted(signal);
|
|
634
|
+
flow = prependMandatoryConsent(rawFlow);
|
|
635
|
+
}
|
|
574
636
|
const normalizedModules = normalizeFlowModules(flow, options);
|
|
575
637
|
throwIfAborted(signal);
|
|
576
638
|
return {
|
|
@@ -580,9 +642,12 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
|
|
|
580
642
|
}
|
|
581
643
|
const getFlow = async (signal, options = {}) => {
|
|
582
644
|
throwIfAborted(signal);
|
|
583
|
-
const
|
|
645
|
+
const rawFlowPromise = preloadDashboardFlow(signal);
|
|
646
|
+
const statusPromise = fetchOnboardingStatus(signal);
|
|
647
|
+
statusPromise.catch(() => void 0);
|
|
648
|
+
const rawFlow = await rawFlowPromise;
|
|
584
649
|
throwIfAborted(signal);
|
|
585
|
-
await assertSessionCanStart(rawFlow,
|
|
650
|
+
await assertSessionCanStart(rawFlow, statusPromise);
|
|
586
651
|
throwIfAborted(signal);
|
|
587
652
|
return normalizeDashboardFlow(rawFlow, options, signal);
|
|
588
653
|
};
|
|
@@ -617,4 +682,4 @@ async function resolveDashboardModuleConfig(options) {
|
|
|
617
682
|
return flowConfig;
|
|
618
683
|
}
|
|
619
684
|
//#endregion
|
|
620
|
-
export {
|
|
685
|
+
export { isSupportedCountry as A, COUNTRIES_WITH_CNPJ_VALIDATION as C, INVALID_CNPJ_PATTERNS as D, FIELD_ORDER as E, SUPPORTED_COUNTRIES as O, CNPJ_SECOND_DIGIT_FACTORS as S, FIELD_NAME_MAPPING as T, sortModulesByOrder as _, resolveDashboardModuleConfig as a, ALL_COUNTRIES as b, getRequiredWasmPipelines as c, facingModeForStep as d, resolveVideoSelfieSteps as f, requiresAddressValidation as g, isFieldOptional as h, resetDashboardFlowCache as i, mergeDashboardConfig as j, UBO_FIELD_LABELS as k, normalizeFlowModules as l, hasAtLeastOneAddressField as m, getFlow as n, enrichFlowModuleConfig as o, videoSelfieWasmPipelines as p, preloadDashboardFlow as r, getNextRequiredWasmPipelines as s, completeDeferredActivation as t, resolveFlowModuleConfig as u, toEkybConfig as v, DEV_ONLY_COUNTRIES as w, CNPJ_FIRST_DIGIT_FACTORS as x, ADDRESS_FIELDS as y };
|
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-DIw-xq9a.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-DpG0TFOU.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-DpG0TFOU.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-DmbWFely.esm.js → geolocationStateMachine-DpG0TFOU.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import {
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
2
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
|
+
import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-D0v5hFyN.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region ../infra/src/device/getBrowser.ts
|
|
2
|
+
function getUserAgent() {
|
|
3
|
+
if (typeof navigator === "undefined") return "";
|
|
4
|
+
return navigator.userAgent;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Returns low-entropy User-Agent Client Hint brands when the browser exposes
|
|
8
|
+
* them. `undefined` means Client Hints are unavailable, not that no brands
|
|
9
|
+
* were reported.
|
|
10
|
+
*/
|
|
11
|
+
function getUserAgentBrands() {
|
|
12
|
+
if (typeof navigator === "undefined") return;
|
|
13
|
+
const brands = navigator.userAgentData?.brands;
|
|
14
|
+
if (!brands?.length) return;
|
|
15
|
+
const parsedBrands = brands.flatMap(({ brand }) => typeof brand === "string" ? [brand] : []);
|
|
16
|
+
return parsedBrands.length > 0 ? parsedBrands : void 0;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { getUserAgentBrands as n, getUserAgent as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getUserAgent } from "./getBrowser-
|
|
1
|
+
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
2
2
|
//#region src/internal/device/getBrowser.ts
|
|
3
3
|
function getBrowser() {
|
|
4
4
|
const userAgent = getUserAgent();
|
|
@@ -7,6 +7,7 @@ function getBrowser() {
|
|
|
7
7
|
if (ua.includes("edg/") || ua.includes("edgios/")) return "edge";
|
|
8
8
|
if (ua.includes("samsungbrowser/")) return "samsung_browser";
|
|
9
9
|
if (ua.includes("opr/") || ua.includes("opera") || ua.includes("opios/") || ua.includes("opt/")) return "opera";
|
|
10
|
+
if (ua.includes("miuibrowser/")) return "miui_browser";
|
|
10
11
|
if (ua.includes("chrome") || ua.includes("crios")) return "chrome";
|
|
11
12
|
if (ua.includes("firefox") || ua.includes("fxios")) return "firefox";
|
|
12
13
|
if (ua.includes("safari")) return "safari";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getParsedUserAgent } from "./getParsedUserAgent-
|
|
2
|
-
import {
|
|
1
|
+
import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
|
|
2
|
+
import { f as isTabletWithoutAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
3
3
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
4
4
|
//#region src/internal/device/getDeviceClass.ts
|
|
5
5
|
function getDeviceClass() {
|