@incodetech/core 2.4.0-rc.4 → 2.4.1-agentic
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FaceDetectionProvider-CzQEFzP8.esm.js → FaceDetectionProvider-B83VmClw.esm.js} +29 -64
- package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
- package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-GTkoJyFY.esm.js} +75 -22
- package/dist/{addressSearch-DPjIKJrX.esm.js → addressSearch-41sMcnJk.esm.js} +72 -31
- package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-CQ08atTC.esm.js} +2 -2
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BcsUTTIr.esm.js} +1 -1
- package/dist/{api-Cz90EHyu.esm.js → api-BO8JA7Pf.esm.js} +6 -5
- package/dist/{apiError-B_uY7RO6.esm.js → apiError-CfuIvnUy.esm.js} +1 -1
- package/dist/attemptCarry-BjTJ6bMQ.esm.js +45 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-C-cOki0Y.d.ts} +1 -1
- package/dist/{authenticationManager-CSHZQTlb.esm.js → authenticationManager-DvmklBTE.esm.js} +5 -5
- package/dist/{authenticationStateMachine-DrO14KyC.esm.js → authenticationStateMachine-BL2ptOA0.esm.js} +3 -3
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-C5_NNfUN.esm.js} +3 -43
- package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
- package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-CM0fuqDC.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-kksIUOPD.esm.js} +2 -2
- package/dist/cnpj-Co1ottYN.esm.js +77 -0
- package/dist/connectivity-HSl0diCx.esm.js +133 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CBwFozhv.esm.js} +4 -3
- package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-_q9yJUku.d.ts} +14 -7
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-CpmRAcr2.esm.js} +20 -7
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-64O8t10a.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CLgJQcx0.esm.js} +3 -2
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-CXpFE-Mv.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-Bx9YhVkJ.esm.js} +28 -20
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DWt_0YtJ.esm.js} +2 -2
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-D8o-2Nej.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-Sbi6DIcK.esm.js} +1 -1
- package/dist/{deepsightLoader-DkrG5zbN.esm.js → deepsightLoader-DMxtowCm.esm.js} +6 -28
- package/dist/{deepsightService-BrltL1DF.esm.js → deepsightService-twg3bXqY.esm.js} +20 -59
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-kHY2IDJi.esm.js} +177 -40
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-6tnnDkMX.d.ts} +14 -2
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-CMSC_Mhd.esm.js} +26 -19
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BCwD5Rto.esm.js} +43 -35
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
- package/dist/{dynamicFormsManager-D7Xnjm7B.esm.js → dynamicFormsManager-DU6W1e20.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-Cgk0VPP4.esm.js → dynamicFormsStateMachine-C8Z7k3vo.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-TB6ZG5lX.d.ts} +2 -2
- package/dist/{ekybManager-yj_Y36jM.esm.js → ekybManager-TGfqyjuu.esm.js} +2 -2
- package/dist/{ekybStateMachine-DIRBMkaD.esm.js → ekybStateMachine-DBgFuEPK.esm.js} +26 -44
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BSQteIfC.d.ts} +1 -1
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-C2cgG2Pl.esm.js} +2 -2
- package/dist/ekycStateMachine-CuNF7z4O.esm.js +7505 -0
- package/dist/ekycUtils-BFncpC4F.esm.js +1401 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Btsa7Prh.esm.js → electronicSignatureManager-C7pqXsRm.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-FH_CP0cT.esm.js} +2 -2
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-Cx-uTaBV.esm.js} +32 -20
- package/dist/{events-Du2A4-Qr.esm.js → events-CQteqXfy.esm.js} +2 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +35 -21
- package/dist/extensibility.esm.js +34 -34
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-C-xKdj-d.d.ts} +71 -66
- package/dist/{faceCaptureManagerFactory-CdDfnyyb.esm.js → faceCaptureManagerFactory-CBm05KnT.esm.js} +4 -4
- package/dist/{faceCaptureSetup-CCucWLdy.esm.js → faceCaptureSetup-BQjCbL51.esm.js} +82 -64
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-B2zp7yP4.esm.js} +2 -2
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-ByTMQCUC.esm.js} +40 -27
- package/dist/{feature-management-DCD0I_XZ.esm.js → feature-management-DjAG5lsJ.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-CC0vKmpf.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-Be-r4oZj.esm.js} +4 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +10 -10
- package/dist/flow.esm.js +8 -11
- package/dist/{flowCompletionService-xFODSJEq.esm.js → flowCompletionService-ChMU2v79.esm.js} +2 -2
- package/dist/{flowServices-COMEf-WP.esm.js → flowServices-g2tVWsJl.esm.js} +8 -50
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
- package/dist/{geolocationManager-B2C2yfrn.esm.js → geolocationManager-DLbvZwUB.esm.js} +6 -8
- package/dist/{geolocationStateMachine-Dbg9jw62.esm.js → geolocationStateMachine-CAJVongM.esm.js} +12 -8
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CkX9TEkh.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-PTPCP26N.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -16
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-MSQoqScU.esm.js} +3 -3
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +66 -5
- package/dist/{idCaptureManager-DZtgScdd.esm.js → idCaptureManager-zZdTcpG1.esm.js} +63 -17
- package/dist/{idCaptureServices-mpibFz4U.esm.js → idCaptureServices-8OHinO0N.esm.js} +9 -9
- package/dist/{idCaptureStateMachine-DWJOHeGn.esm.js → idCaptureStateMachine-B3G6XoDG.esm.js} +914 -536
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B1aZnobs.esm.js} +2 -2
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-_Kebv-Ue.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DQn6c84z.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
- package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Bcnkbjf8.esm.js} +1 -1
- package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
- package/dist/{index-CKQ9QBZP.d.ts → index-DMDAk85K.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-CXIBwBeE.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +4 -3
- package/dist/{mandatoryConsentManager-okPILEru.d.ts → mandatoryConsentManager-xx3mY-xw.d.ts} +13 -6
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +20 -7
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +3 -13
- package/dist/nationalIds-B91f_RuB.esm.js +99 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-B3OPL8Si.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DnBAN_hW.esm.js} +4 -4
- package/dist/phone-number.d.ts +7 -1
- package/dist/phone-number.esm.js +15 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-C6jut_pz.esm.js} +3 -3
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-T1-drWfG.esm.js} +37 -25
- package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
- package/dist/processFaceMatch-BWme3kVV.esm.js +21 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-BJXC6Kx9.esm.js} +4 -3
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-BBMAc2Gb.esm.js} +27 -6
- package/dist/{runChildModule-C09a9ACV.esm.js → runChildModule-DPHTqSdF.esm.js} +3 -3
- package/dist/{sdkVersion-xE2xE2_9.esm.js → sdkVersion-C3_P-Qbq.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-CoXIxVCy.esm.js → selfieErrorUtils-BL0BLMnp.esm.js} +1 -1
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-BMmpUii2.d.ts} +1 -1
- package/dist/{selfieManager-RcVUu1KJ.esm.js → selfieManager-Cbliomv7.esm.js} +5 -5
- package/dist/{selfieStateMachine-nWbIRIBD.esm.js → selfieStateMachine-B5m_Kn0O.esm.js} +3 -3
- package/dist/{session-Cr4IVgYu.esm.js → session-DAaAewMX.esm.js} +77 -9
- package/dist/session.d.ts +96 -10
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-c3CChZts.esm.js → sessionInitializer-CWFT4dfw.esm.js} +402 -202
- package/dist/{setup-BvKrAlOo.esm.js → setup-CDAKwTr7.esm.js} +32 -19
- package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BeEVCcsC.esm.js} +2 -2
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-_1c1vSid.esm.js} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-BpMz-hTP.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{tri-xzRLIIMN.esm.js → tri-BajQnjbf.esm.js} +142 -8
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-BAvhAU7T.esm.js → trueSightService-BujtUIW6.esm.js} +19 -10
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-yPH8lAH-.d.ts → types--3HDl2SF.d.ts} +2 -2
- package/dist/types-B2FK_wYb.d.ts +249 -0
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/{types-0L-eFDmr.d.ts → types-C397LhmN.d.ts} +1 -1
- package/dist/types-D9r3zRfY.d.ts +6 -0
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/{types-B6HsSzpk.d.ts → types-DuD8TRJU.d.ts} +3 -2
- package/dist/{types-Ckir_BEs.d.ts → types-PTZHRhGX.d.ts} +1 -1
- package/dist/{types-DUnFZ08M.d.ts → types-ZTZelfbM.d.ts} +2 -2
- package/dist/{types-CK8Jbjkp.d.ts → types-e8fCsvvk.d.ts} +1 -1
- package/dist/{types-BAxn7MpY.d.ts → types-xEEWCx1j.d.ts} +123 -48
- package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
- package/dist/video-selfie.d.ts +8 -8
- package/dist/video-selfie.esm.js +95 -22
- package/dist/{videoSelfieCameraWarmer-LeE2vbAW.esm.js → videoSelfieCameraWarmer-DjkPpoj_.esm.js} +18 -21
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts} +9 -4
- package/dist/{warmup-BElYWRh7.esm.js → warmup-BkfxQZsC.esm.js} +175 -11
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BhU5H2oR.esm.js} +1 -1
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-DTj9auyA.esm.js} +43 -17
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-CVay6-9A.esm.js} +37 -7
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
- package/dist/watchlistForBusinessStateMachine-DA6K5na4.esm.js +166 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-B8gQ_rw3.esm.js} +2 -2
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -2
- package/dist/workflow.esm.js +57 -47
- package/package.json +3 -2
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
- package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
- package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
- package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
- package/dist/types-BvLo3U4u.d.ts +0 -134
- package/dist/types-zOgZqMni.d.ts +0 -6
- package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
- /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
3
|
import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
|
-
|
|
4
|
+
//#region src/shared/usStates.ts
|
|
5
|
+
const usStates = {
|
|
5
6
|
AL: {
|
|
6
7
|
code: "AL",
|
|
7
8
|
name: "Alabama"
|
|
@@ -202,7 +203,8 @@ const usStateOptions = Object.values({
|
|
|
202
203
|
code: "WY",
|
|
203
204
|
name: "Wyoming"
|
|
204
205
|
}
|
|
205
|
-
}
|
|
206
|
+
};
|
|
207
|
+
const usStateOptions = Object.values(usStates).map((state) => ({
|
|
206
208
|
value: state.code,
|
|
207
209
|
label: state.name
|
|
208
210
|
}));
|
|
@@ -271,36 +273,43 @@ const POSTAL_CODE_MAX_LENGTH_BY_COUNTRY = {
|
|
|
271
273
|
UK: 8,
|
|
272
274
|
AR: 8,
|
|
273
275
|
CA: 7,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
NG: 6,
|
|
277
|
-
DE: 5,
|
|
278
|
-
ES: 5,
|
|
279
|
-
FR: 5,
|
|
280
|
-
IT: 5,
|
|
281
|
-
KE: 5,
|
|
282
|
-
MX: 5
|
|
276
|
+
NL: 6,
|
|
277
|
+
PT: 8
|
|
283
278
|
};
|
|
284
279
|
const FIXED_LENGTH_KEY = "verification.errors.invalidPostalCodeFixedLength";
|
|
280
|
+
/**
|
|
281
|
+
* Countries whose postal code is a fixed number of digits. It sets the
|
|
282
|
+
* check, the input's max length and the digits-only typing mask.
|
|
283
|
+
*/
|
|
285
284
|
const FIXED_DIGIT_POSTAL_CODE_LENGTH = {
|
|
285
|
+
BE: 4,
|
|
286
|
+
DK: 4,
|
|
287
|
+
NO: 4,
|
|
288
|
+
PH: 4,
|
|
286
289
|
DE: 5,
|
|
287
290
|
ES: 5,
|
|
291
|
+
FI: 5,
|
|
288
292
|
FR: 5,
|
|
293
|
+
GR: 5,
|
|
289
294
|
IT: 5,
|
|
290
295
|
KE: 5,
|
|
291
296
|
MX: 5,
|
|
292
297
|
CN: 6,
|
|
298
|
+
IN: 6,
|
|
293
299
|
NG: 6,
|
|
300
|
+
SG: 6,
|
|
294
301
|
IL: 7
|
|
295
302
|
};
|
|
296
303
|
function getPostalCodeMaxLength(country) {
|
|
297
|
-
return POSTAL_CODE_MAX_LENGTH_BY_COUNTRY[country] ?? 8;
|
|
304
|
+
return POSTAL_CODE_MAX_LENGTH_BY_COUNTRY[country] ?? FIXED_DIGIT_POSTAL_CODE_LENGTH[country] ?? 8;
|
|
298
305
|
}
|
|
299
306
|
function getPostalCodeErrorKey(country) {
|
|
300
307
|
if (country in FIXED_DIGIT_POSTAL_CODE_LENGTH) return FIXED_LENGTH_KEY;
|
|
301
308
|
if (country === "CA") return "verification.errors.CAPostalCodeInvalidFormat";
|
|
302
309
|
if (country === "AR") return "verification.errors.ARPostalCodeInvalidFormat";
|
|
303
310
|
if (country === "GB" || country === "UK") return "verification.errors.UKPostalCodeInvalidFormat";
|
|
311
|
+
if (country === "NL") return "verification.errors.NLPostalCodeInvalidFormat";
|
|
312
|
+
if (country === "PT") return "verification.errors.PTPostalCodeInvalidFormat";
|
|
304
313
|
if (country === "US") return "verification.errors.zipCodeInvalidFormat";
|
|
305
314
|
return "verification.errors.postalCodeInvalidFormat";
|
|
306
315
|
}
|
|
@@ -309,15 +318,18 @@ const BR_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{8}|\d{5}-\d{3})$/;
|
|
|
309
318
|
const CA_POSTAL_CODE_REGEX = /^[A-Za-z]\d[A-Za-z] \d[A-Za-z]\d$/;
|
|
310
319
|
const UK_POSTAL_CODE_REGEX = /^(?:[A-Z]{2}\d|[A-Z]{2}\d{2}|[A-Z]\d|[A-Z]\d{2}|[A-Z]\d[A-Z]|[A-Z]{2}\d[A-Z]) \d[A-Z]{2}$/;
|
|
311
320
|
const AR_POSTAL_CODE_REGEX = /^[A-Za-z]\d{4}[A-Za-z]{3}$/;
|
|
312
|
-
|
|
313
|
-
const
|
|
314
|
-
|
|
321
|
+
/** Four digits and two uppercase letters, such as 1016DV. */
|
|
322
|
+
const NL_POSTAL_CODE_REGEX = /^\d{4}[A-Z]{2}$/;
|
|
323
|
+
/** Seven digits, the first 1 to 9, with or without a hyphen: 4430-458. */
|
|
324
|
+
const PT_POSTAL_CODE_REGEX = /^[1-9]\d{3}-?\d{3}$/;
|
|
315
325
|
/**
|
|
316
326
|
* Validates a postal code by country.
|
|
317
327
|
* Covers all countries used by eKYC and eKYB.
|
|
318
328
|
*/
|
|
319
329
|
function validatePostalCode(postalCode, country) {
|
|
320
330
|
if (!postalCode) return false;
|
|
331
|
+
const fixedDigits = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
|
|
332
|
+
if (fixedDigits !== void 0) return postalCode.length === fixedDigits && /^\d+$/.test(postalCode);
|
|
321
333
|
switch (country) {
|
|
322
334
|
case "US": return US_POSTAL_CODE_REGEX.test(postalCode);
|
|
323
335
|
case "BR": return BR_POSTAL_CODE_REGEX.test(postalCode);
|
|
@@ -325,15 +337,8 @@ function validatePostalCode(postalCode, country) {
|
|
|
325
337
|
case "GB":
|
|
326
338
|
case "UK": return UK_POSTAL_CODE_REGEX.test(postalCode.toUpperCase());
|
|
327
339
|
case "AR": return AR_POSTAL_CODE_REGEX.test(postalCode.replace(/\s/g, "").toUpperCase());
|
|
328
|
-
case "
|
|
329
|
-
case "
|
|
330
|
-
case "NG": return SIX_DIGIT_REGEX.test(postalCode);
|
|
331
|
-
case "DE":
|
|
332
|
-
case "FR":
|
|
333
|
-
case "IT":
|
|
334
|
-
case "ES":
|
|
335
|
-
case "MX":
|
|
336
|
-
case "KE": return FIVE_DIGIT_REGEX.test(postalCode);
|
|
340
|
+
case "NL": return NL_POSTAL_CODE_REGEX.test(postalCode);
|
|
341
|
+
case "PT": return PT_POSTAL_CODE_REGEX.test(postalCode);
|
|
337
342
|
case "CM": return postalCode.length > 0;
|
|
338
343
|
default: {
|
|
339
344
|
const stripped = postalCode.replace(/\D/g, "");
|
|
@@ -346,6 +351,8 @@ function validatePostalCode(postalCode, country) {
|
|
|
346
351
|
* Covers all countries used by eKYC and eKYB.
|
|
347
352
|
*/
|
|
348
353
|
function formatPostalCode(value, country) {
|
|
354
|
+
const fixedDigits = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
|
|
355
|
+
if (fixedDigits !== void 0) return value.replace(/\D/g, "").slice(0, fixedDigits);
|
|
349
356
|
if (country === "US" || country === "BR") {
|
|
350
357
|
const maxDigits = country === "US" ? 9 : 8;
|
|
351
358
|
const hasDash = value.includes("-");
|
|
@@ -357,7 +364,6 @@ function formatPostalCode(value, country) {
|
|
|
357
364
|
if (hasDash) return `${digits.slice(0, 5)}-${digits.slice(5)}`;
|
|
358
365
|
return digits;
|
|
359
366
|
}
|
|
360
|
-
if (country === "ES") return value.replace(/\D/g, "").slice(0, 5);
|
|
361
367
|
if (country === "CA") {
|
|
362
368
|
const normalized = value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 6);
|
|
363
369
|
if (normalized.length <= 3) return normalized;
|
|
@@ -369,9 +375,11 @@ function formatPostalCode(value, country) {
|
|
|
369
375
|
return `${normalized.slice(0, -3)} ${normalized.slice(-3)}`;
|
|
370
376
|
}
|
|
371
377
|
if (country === "AR") return value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 8);
|
|
372
|
-
if (country === "
|
|
373
|
-
|
|
374
|
-
|
|
378
|
+
if (country === "PT") {
|
|
379
|
+
const digits = value.replace(/\D/g, "").slice(0, 7);
|
|
380
|
+
return digits.length <= 4 ? digits : `${digits.slice(0, 4)}-${digits.slice(4)}`;
|
|
381
|
+
}
|
|
382
|
+
if (country === "NL") return `${value.replace(/\D/g, "").slice(0, 4)}${value.replace(/[^A-Za-z]/g, "").slice(0, 2).toUpperCase()}`;
|
|
375
383
|
return value.slice(0, 8);
|
|
376
384
|
}
|
|
377
385
|
//#endregion
|
|
@@ -429,6 +437,7 @@ function checkSupport(definition, ids) {
|
|
|
429
437
|
});
|
|
430
438
|
for (const key of keys) need("condition", ids.conditions, key, `${path}.requiredWhen[${i}]`);
|
|
431
439
|
});
|
|
440
|
+
field.prefill?.forEach((id, i) => need("prefillSource", ids.prefillSources, id, `${path}.prefill[${i}]`));
|
|
432
441
|
const lock = field.phone?.lockCountry;
|
|
433
442
|
if (typeof lock === "string" && lock !== "whenPhoneRisk") problems.push({
|
|
434
443
|
category: "phoneLock",
|
|
@@ -445,7 +454,17 @@ function checkSupport(definition, ids) {
|
|
|
445
454
|
path: `groups.${policy.group}`
|
|
446
455
|
});
|
|
447
456
|
});
|
|
448
|
-
definition.groupRules?.forEach((rule, i) =>
|
|
457
|
+
definition.groupRules?.forEach((rule, i) => {
|
|
458
|
+
need("groupRule", ids.groupRules, rule.id, `groupRules[${i}]`);
|
|
459
|
+
const cases = rule.id === "rulesByOption" ? rule.params?.cases : void 0;
|
|
460
|
+
if (cases && typeof cases === "object" && !Array.isArray(cases)) for (const [value, rules] of Object.entries(cases)) {
|
|
461
|
+
if (!Array.isArray(rules)) continue;
|
|
462
|
+
rules.forEach((ref, j) => {
|
|
463
|
+
const id = ref?.id;
|
|
464
|
+
need("rule", ids.rules, typeof id === "string" ? id : "(missing)", `groupRules[${i}].params.cases.${value}[${j}]`);
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
});
|
|
449
468
|
definition.collections?.forEach((collection) => {
|
|
450
469
|
need("group", ids.groups, collection.group, `collections.${collection.id}`);
|
|
451
470
|
collection.fields.forEach((field) => checkField(field, `collections.${collection.id}.fields.${field.name}`));
|
|
@@ -514,6 +533,28 @@ function resolveForm(definition, context) {
|
|
|
514
533
|
};
|
|
515
534
|
}
|
|
516
535
|
//#endregion
|
|
536
|
+
//#region src/internal/formDefinitionsRollout/formDefinitionsRollout.ts
|
|
537
|
+
/**
|
|
538
|
+
* The rollout switch for form definitions (ENG-59781): one all-or-nothing
|
|
539
|
+
* answer to "do eKYC and eKYB build their forms from catalog definitions, or
|
|
540
|
+
* with today's builders?". Both module adapters ask it before selecting a
|
|
541
|
+
* definition (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
|
|
542
|
+
* (`internal/forms`) knows nothing about it.
|
|
543
|
+
*
|
|
544
|
+
* Off by default, so every source and country keeps today's builder. A
|
|
545
|
+
* catalog-only eKYC source, one today's builder never knew, uses its
|
|
546
|
+
* definition either way, since it has no old path to fall back to.
|
|
547
|
+
*
|
|
548
|
+
* This is Incode's rollout decision, not the integrator's: it is not a
|
|
549
|
+
* `setup()` option. A later step reads a Statsig gate here instead of the
|
|
550
|
+
* constant.
|
|
551
|
+
*/
|
|
552
|
+
const ENABLED_BY_DEFAULT = false;
|
|
553
|
+
/** Whether sources and countries with a form definition use it. */
|
|
554
|
+
function isFormDefinitionsEnabled() {
|
|
555
|
+
return ENABLED_BY_DEFAULT;
|
|
556
|
+
}
|
|
557
|
+
//#endregion
|
|
517
558
|
//#region src/shared/addressSearch.ts
|
|
518
559
|
/** Searches for address suggestions via the address autocomplete API. */
|
|
519
560
|
async function searchAddress(query, signal) {
|
|
@@ -560,4 +601,4 @@ const debounceSearchActor = fromCallback(({ input, sendBack }) => {
|
|
|
560
601
|
};
|
|
561
602
|
});
|
|
562
603
|
//#endregion
|
|
563
|
-
export {
|
|
604
|
+
export { usStates as _, createBundledDefinitionSource as a, formatPostalCode as c, validatePostalCode as d, DYNAMIC_REQUIRED_KEY as f, usStateOptions as g, getStreetLevelErrorForSuggestion as h, resolveForm as i, getPostalCodeErrorKey as l, fillFromSuggestion as m, searchAddress as n, checkSupport as o, STREET_LEVEL_REQUIRED_ERROR as p, isFormDefinitionsEnabled as r, FIXED_DIGIT_POSTAL_CODE_LENGTH as s, debounceSearchActor as t, getPostalCodeMaxLength as u };
|
|
@@ -13,8 +13,7 @@ const VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE = "VIDEO_SELFIE_VALIDATION
|
|
|
13
13
|
const ADVANCEABLE_ERROR_CODES = [
|
|
14
14
|
"NONEXISTENT_CUSTOMER",
|
|
15
15
|
"HINT_NOT_PROVIDED",
|
|
16
|
-
"NO_MORE_ATTEMPTS"
|
|
17
|
-
VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE
|
|
16
|
+
"NO_MORE_ATTEMPTS"
|
|
18
17
|
];
|
|
19
18
|
/** True when the given code is a module terminal error the flow should advance past rather than fail on. */
|
|
20
19
|
const isAdvanceableError = (moduleErrorCode) => moduleErrorCode !== void 0 && ADVANCEABLE_ERROR_CODES.includes(moduleErrorCode);
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-C7pqXsRm.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
2
|
-
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-
|
|
1
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BcsUTTIr.esm.js";
|
|
2
|
+
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-CQ08atTC.esm.js";
|
|
3
3
|
export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
4
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BcsUTTIr.esm.js";
|
|
5
5
|
//#region src/modules/antifraud/antifraudActor.ts
|
|
6
6
|
function createAntifraudActor() {
|
|
7
7
|
return createActor(antifraudMachine).start();
|
package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BcsUTTIr.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
import { t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
//#region src/modules/antifraud/antifraudServices.ts
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
//#region src/internal/http/endpoints.ts
|
|
3
3
|
const endpoints = {
|
|
4
4
|
createSession: "/omni/start",
|
|
5
|
+
sessionContinue: "/omni/session/continue",
|
|
5
6
|
flow: "/omni/onboarding/flow",
|
|
6
7
|
events: "/omni/interview-events",
|
|
7
8
|
selfie: "/omni/add/face",
|
|
@@ -270,10 +271,10 @@ async function withTiming(method, url, call) {
|
|
|
270
271
|
* (later keys overwrite earlier ones in object spread).
|
|
271
272
|
*
|
|
272
273
|
* Existing call sites that already pass an explicit
|
|
273
|
-
* `X-Incode-Hardware-Id` header (`recordingsRepository.uploadDeepsightVideo
|
|
274
|
-
* `internal/virtualCameraCheck.logFrame`) now use the
|
|
275
|
-
* passed in unconditionally — previously the auto-injection
|
|
276
|
-
* clobbered them.
|
|
274
|
+
* `X-Incode-Hardware-Id` header (`recordingsRepository.uploadDeepsightVideo`;
|
|
275
|
+
* the retired `internal/virtualCameraCheck.logFrame` did too) now use the
|
|
276
|
+
* value they passed in unconditionally — previously the auto-injection
|
|
277
|
+
* silently clobbered them. Those call sites pass tokens that are already
|
|
277
278
|
* supposed to be the active session token, so behaviour is
|
|
278
279
|
* unchanged in practice; the change unblocks personhood (which
|
|
279
280
|
* needs to attach its own slot's token) without bypassing the
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { r as getToken } from "./api-BO8JA7Pf.esm.js";
|
|
2
|
+
import { a as watchConnectivity } from "./connectivity-HSl0diCx.esm.js";
|
|
3
|
+
//#region src/internal/session/attemptCarry.ts
|
|
4
|
+
const carried = /* @__PURE__ */ new Map();
|
|
5
|
+
/**
|
|
6
|
+
* Keeps spent attempts across the remount after a connectivity loss: the
|
|
7
|
+
* session boundary stops the step while offline and mounts a new manager on
|
|
8
|
+
* recovery. Call once in the machine's `context` factory.
|
|
9
|
+
*
|
|
10
|
+
* `read` sees every snapshot until connectivity is lost, so an attempt whose
|
|
11
|
+
* outcome arrives after the loss is not charged. It returns the counters the
|
|
12
|
+
* next mount starts with; a step that reached its no-attempts outcome must
|
|
13
|
+
* return a value its start guard reads as spent. Only an actor that ends while
|
|
14
|
+
* connectivity is lost leaves a carry, and the next actor of the same machine
|
|
15
|
+
* in the session takes it once.
|
|
16
|
+
*/
|
|
17
|
+
function carryAttempts(machineId, self, read) {
|
|
18
|
+
const token = getToken();
|
|
19
|
+
if (token === null) return {};
|
|
20
|
+
const key = `${token}:${machineId}`;
|
|
21
|
+
const restored = carried.get(key) ?? {};
|
|
22
|
+
carried.delete(key);
|
|
23
|
+
let carry = restored;
|
|
24
|
+
let lost = false;
|
|
25
|
+
const unwatch = watchConnectivity((next) => {
|
|
26
|
+
lost = next;
|
|
27
|
+
});
|
|
28
|
+
const end = () => {
|
|
29
|
+
unwatch();
|
|
30
|
+
if (lost) carried.set(key, carry);
|
|
31
|
+
};
|
|
32
|
+
self.subscribe({
|
|
33
|
+
next: (snapshot) => {
|
|
34
|
+
if (!lost) carry = read(snapshot, carry);
|
|
35
|
+
},
|
|
36
|
+
complete: end,
|
|
37
|
+
error: (err) => {
|
|
38
|
+
end();
|
|
39
|
+
throw err;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
return restored;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { carryAttempts as t };
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
2
|
-
import { t as AuthenticationConfig } from "./types-
|
|
3
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-C-xKdj-d.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-D9r3zRfY.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-C-cOki0Y.js";
|
|
4
4
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BL2ptOA0.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DvmklBTE.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-C-xKdj-d.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
package/dist/{authenticationManager-CSHZQTlb.esm.js → authenticationManager-DvmklBTE.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
3
|
-
import { n as eventModuleNames } from "./events-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-CDAKwTr7.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-GTkoJyFY.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./events-CQteqXfy.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CBm05KnT.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BL2ptOA0.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as
|
|
5
|
-
import {
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BQjCbL51.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-B83VmClw.esm.js";
|
|
5
|
+
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-kHY2IDJi.esm.js";
|
|
6
6
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
7
7
|
const AUTH_ERROR_MAP = {
|
|
8
8
|
SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as isIOS, c as isIPhone14OrHigher, d as isSafari, i as isDesktop, t as isAndroid } from "./platform-
|
|
2
|
-
import {
|
|
1
|
+
import { a as isIOS, c as isIPhone14OrHigher, d as isSafari, i as isDesktop, t as isAndroid } from "./platform-aPh7gTWh.esm.js";
|
|
2
|
+
import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-E_Kcre4O.esm.js";
|
|
3
3
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
4
4
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
5
5
|
//#region src/internal/camera/backCameraStream.ts
|
|
@@ -396,9 +396,6 @@ async function getDesktopCameraStreamResult(options, fallbackLevel = 0) {
|
|
|
396
396
|
return getDesktopCameraStreamResult(options, nextLevel);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
async function getDesktopCameraStream(options, fallbackLevel = 0) {
|
|
400
|
-
return (await getDesktopCameraStreamResult(options, fallbackLevel)).stream;
|
|
401
|
-
}
|
|
402
399
|
/**
|
|
403
400
|
* Pick the best back-facing device from a list already filtered by label.
|
|
404
401
|
* Prefers the highest megapixel count when labels advertise it, else the first.
|
|
@@ -450,43 +447,6 @@ async function getDesktopBackCameraStream(deviceId) {
|
|
|
450
447
|
return original;
|
|
451
448
|
}
|
|
452
449
|
}
|
|
453
|
-
/**
|
|
454
|
-
* Desktop front-camera (selfie) acquisition with verify-and-correct.
|
|
455
|
-
*
|
|
456
|
-
* Counterpart to {@link getDesktopBackCameraStream}. Requesting a front camera
|
|
457
|
-
* uses an *advisory* `facingMode: 'user'` hint, which the browser may ignore —
|
|
458
|
-
* notably on a Surface after the back camera was explicitly opened by deviceId
|
|
459
|
-
* for ID capture, the browser remembers the rear camera as its preferred device
|
|
460
|
-
* and hands it back for the selfie too.
|
|
461
|
-
*
|
|
462
|
-
* The caller supplies an `open(deviceId?)` callback so this stays agnostic to
|
|
463
|
-
* the selfie resolution strategy. We then verify by LABEL only (never
|
|
464
|
-
* facingMode):
|
|
465
|
-
* 1. Open via the callback.
|
|
466
|
-
* 2. If the opened track is NOT a back camera → trust it, return as-is.
|
|
467
|
-
* 3. If it IS a back camera, enumerate and reopen the first non-back device.
|
|
468
|
-
* 4. If there is no non-back device, or the reopen fails → keep the original.
|
|
469
|
-
*
|
|
470
|
-
* Note: "first non-back device" is intentionally simple — on machines that also
|
|
471
|
-
* expose a Windows Hello IR sensor this could pick the IR camera. Accepted
|
|
472
|
-
* tradeoff; revisit with a front-label allowlist if it proves a problem.
|
|
473
|
-
*/
|
|
474
|
-
async function ensureFrontCameraStream(open) {
|
|
475
|
-
const original = await open();
|
|
476
|
-
const track = original.getVideoTracks()[0];
|
|
477
|
-
if (!track || !isBackCameraLabel(track.label)) return original;
|
|
478
|
-
const frontDevices = (await enumerateVideoDevices()).filter((d) => !isBackCameraLabel(d.label));
|
|
479
|
-
if (frontDevices.length === 0) return original;
|
|
480
|
-
const target = frontDevices[0];
|
|
481
|
-
if (track.getSettings().deviceId === target.deviceId) return original;
|
|
482
|
-
try {
|
|
483
|
-
const corrected = await open(target.deviceId);
|
|
484
|
-
stopCameraStream(original);
|
|
485
|
-
return corrected;
|
|
486
|
-
} catch {
|
|
487
|
-
return original;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
450
|
async function getBackCameraStream(deviceId) {
|
|
491
451
|
if (isIOS()) return getIOSCameraStream();
|
|
492
452
|
if (isAndroid()) {
|
|
@@ -501,4 +461,4 @@ async function getBackCameraStream(deviceId) {
|
|
|
501
461
|
};
|
|
502
462
|
}
|
|
503
463
|
//#endregion
|
|
504
|
-
export {
|
|
464
|
+
export { selectBestBackDevice as a, isBackFacingTrack as i, hasBackCamera as n, isBackCameraLabel as r, getBackCameraStream as t };
|