@incodetech/core 2.4.1-agentic.11 → 2.4.1-agentic.12
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/{CameraCompositor-ppyMYVoY.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
- package/dist/{FaceDetectionProvider-2NzWDbV8.esm.js → FaceDetectionProvider-WtuJ6QBK.esm.js} +16 -11
- package/dist/{IWasmUtilCapability-BRn0wz8v.d.ts → IWasmUtilCapability-XcOtT1TP.d.ts} +5 -4
- package/dist/{MultipartRecordingProvider-CduV32Qa.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-ixfy84ys.d.ts → StreamCanvasCapture-BnBfA6fb.d.ts} +24 -2
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/{WasmUtilProvider-DdhAHHw4.esm.js → WasmUtilProvider-D5RMElzw.esm.js} +7 -0
- package/dist/{WorkerEncoderRecordingProvider-CsDED9UU.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
- package/dist/{addressSearch-Rxm1K67A.esm.js → addressSearch-BzAy6lhp.esm.js} +2 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-DKNOi9-z.esm.js → antifraudManager-Bw5nw5fh.esm.js} +3 -3
- package/dist/{antifraudStateMachine-BJ6PmCsw.esm.js → antifraudStateMachine-kOfsaAuT.esm.js} +2 -4
- package/dist/{api-CZpuJuZl.esm.js → api-DSZSaaWr.esm.js} +2 -0
- package/dist/{apiError-BamZ815u.esm.js → apiError-BDuL1wTs.esm.js} +1 -1
- package/dist/{attemptCarry-BecGGZK8.esm.js → attemptCarry-QFQkA3na.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-yBVGiIf_.esm.js → authenticationManager-B0SioAdd.esm.js} +6 -6
- package/dist/{authenticationManager-DRaugLgH.d.ts → authenticationManager-eYcurNiS.d.ts} +1 -1
- package/dist/{authenticationStateMachine-DPqTOJPp.esm.js → authenticationStateMachine-n1OrhPTv.esm.js} +3 -3
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
- package/dist/{browser-pQZA35G2-DxIBykpe.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
- package/dist/calendarDate-DcqGuEht.esm.js +35 -0
- package/dist/camera-9yYDUOsO.d.ts +5 -0
- package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Dxl9UwR0.esm.js → certificateIssuanceManager-DPT8E9zV.esm.js} +3 -3
- package/dist/{certificateIssuanceStateMachine-CM4q71h1.esm.js → certificateIssuanceStateMachine-BwDb3ezx.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-B2F_VeAo.d.ts → consentManager-B0YKqYtZ.d.ts} +9 -9
- package/dist/{consentManager-BPocwpm2.esm.js → consentManager-DRMJ3O4r.esm.js} +3 -3
- package/dist/{consentStateMachine-DgiIcT9q.esm.js → consentStateMachine-Br0JbW7k.esm.js} +4 -7
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-BfA29Aji.esm.js → crossDocumentDataMatchManager-BIQ-SYcR.esm.js} +3 -4
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-CbvBDoE1.esm.js → curpValidationManager-BKUDQ55W.esm.js} +3 -3
- package/dist/{curpValidationManager-Ci2iVuog.d.ts → curpValidationManager-DgUZySoq.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-BQ8XK2Y3.esm.js → curpValidationStateMachine-BwUBkyyi.esm.js} +13 -14
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-BRqSCR9R.esm.js → customFieldsManager-CPhONu5i.esm.js} +12 -16
- package/dist/{customWatchlistManager-Bd1ooIDB.esm.js → customWatchlistManager-cN57usIW.esm.js} +3 -3
- package/dist/{customWatchlistStateMachine-r8nGhyo1.esm.js → customWatchlistStateMachine-C1Xq1ugl.esm.js} +2 -4
- package/dist/{deepsightLoader-CEY2mSPM.esm.js → deepsightLoader-ClCQCdeL.esm.js} +5 -5
- package/dist/{desktopCameraElection-enVPfRsQ.esm.js → desktopCameraElection-btFONYx6.esm.js} +22 -10
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +15 -15
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.d.ts +123 -0
- package/dist/document-signature.esm.js +149 -0
- package/dist/{documentCaptureManager-C11k5BO-.esm.js → documentCaptureManager-5I3lKDVW.esm.js} +3 -3
- package/dist/{documentCaptureManager-BZBmcOKI.d.ts → documentCaptureManager-BkaPpoKy.d.ts} +1 -1
- package/dist/{documentCaptureStateMachine-g0gfL0_1.esm.js → documentCaptureStateMachine-jtQHasPA.esm.js} +7 -10
- package/dist/documentSignatureStateMachine-DKtU0H-F.esm.js +218 -0
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BmfCZ2zV.esm.js → dynamicFormsManager-B6Bv32wU.esm.js} +3 -3
- package/dist/{dynamicFormsStateMachine-B-eYytau.esm.js → dynamicFormsStateMachine-Kauq2oB-.esm.js} +10 -11
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BPaMfbgw.esm.js → ekybManager-wi135kG-.esm.js} +3 -3
- package/dist/{ekybStateMachine-C_lEw4I7.esm.js → ekybStateMachine-Vjb6_mFt.esm.js} +4 -6
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-nRT0rxei.esm.js → ekycManager-DWCL912J.esm.js} +3 -3
- package/dist/{ekycPrefillManager-DOTl3Y2w.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +4 -4
- package/dist/{ekycPrefillManager-CCtbmrFd.esm.js → ekycPrefillManager-C27Cu6rn.esm.js} +1 -1
- package/dist/{ekycPrefillStateMachine-XpxgCAoC.esm.js → ekycPrefillStateMachine-DqXvupSw.esm.js} +4 -6
- package/dist/{ekycRules-DXP2hqVw.esm.js → ekycRules-1hyjJ6bw.esm.js} +7 -4
- package/dist/{ekycStateMachine-nwJRel2s.esm.js → ekycStateMachine-DjiGyQtm.esm.js} +149 -13
- package/dist/{ekycUtils-FcqA6oU4.esm.js → ekycUtils-D9ui9Ztp.esm.js} +5 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-M2O2VDks.esm.js → electronicSignatureManager-BHnxFx7u.esm.js} +8 -16
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-Co4jarT1.esm.js → emailManager-CfvR6pQN.esm.js} +3 -3
- package/dist/{emailStateMachine-CTEaYncs.esm.js → emailStateMachine-C4FouMzc.esm.js} +3 -5
- package/dist/{events-CP3yOzAl.esm.js → events-CsPmTidH.esm.js} +2 -2
- package/dist/events.d.ts +1 -0
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +36 -36
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-3Or5qfbA.esm.js → faceCaptureManagerFactory-BjVIUTMM.esm.js} +5 -5
- package/dist/{faceCaptureManagerFactory-CRGajjZ4.d.ts → faceCaptureManagerFactory-DhDPxxp-.d.ts} +12 -6
- package/dist/{faceCaptureSetup-Cf87i0rT.esm.js → faceCaptureSetup-q33e6ah9.esm.js} +26 -15
- package/dist/{faceMatchManager-CGmNGbov.esm.js → faceMatchManager-CsPFaja4.esm.js} +3 -3
- package/dist/{faceMatchStateMachine-BuHt7kec.esm.js → faceMatchStateMachine-Co2S7iN8.esm.js} +8 -19
- package/dist/{feature-management-DG016L6E.esm.js → feature-management-BhRKAG--.esm.js} +3 -2
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-VgCU4X96.esm.js → fieldComparisonManager-Chn80m_n.esm.js} +4 -6
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-DOLq45ph.esm.js → fiscalQrManager-CpX6MOy_.esm.js} +6 -7
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +6 -6
- package/dist/flow.esm.js +5 -5
- package/dist/{flowCompletionService-BpeAbbXc.esm.js → flowCompletionService-E_6ChYsV.esm.js} +2 -2
- package/dist/{flowServices-rDg1bAMs.esm.js → flowServices-C23o7MqO.esm.js} +10 -9
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-T8m4lqvF.esm.js → geolocationManager-dgMVi0ed.esm.js} +3 -3
- package/dist/{geolocationStateMachine-NWmA1Dtn.esm.js → geolocationStateMachine-CCVd9xGh.esm.js} +6 -8
- package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-6JQQkzha.esm.js → governmentValidationManager-D2KGYDws.esm.js} +3 -3
- package/dist/{governmentValidationStateMachine-wBunpfQ9.esm.js → governmentValidationStateMachine-DRG-5jwQ.esm.js} +2 -4
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +2 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +2 -2
- package/dist/id-selfie-flow.esm.js +10 -10
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-Cjesf5i9.esm.js → idCaptureDefaults-BivjtJka.esm.js} +1 -1
- package/dist/{idCaptureManager-5-ReVgbB.esm.js → idCaptureManager-B_deOVCC.esm.js} +12 -14
- package/dist/{idCaptureManager-Cqx2y_fC.d.ts → idCaptureManager-DzAMWmRO.d.ts} +12 -5
- package/dist/{idCaptureServices-exB6I9lV.esm.js → idCaptureServices-BFCsusKB.esm.js} +17 -25
- package/dist/{idCaptureStateMachine-DQ14d3GR.esm.js → idCaptureStateMachine--CMATkG9.esm.js} +49 -56
- package/dist/{idOcrManager-im7VfJQi.esm.js → idOcrManager-C-_bzBSX.esm.js} +3 -3
- package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-DflRx-_u.d.ts} +1 -1
- package/dist/{idOcrStateMachine-B832arAl.esm.js → idOcrStateMachine-BNtBkAXC.esm.js} +10 -7
- package/dist/{idVerificationManager-PMGM4hXY.esm.js → idVerificationManager-CdvGdtg2.esm.js} +3 -3
- package/dist/{idVerificationStateMachine-DeeugC00.esm.js → idVerificationStateMachine-mozw0CIg.esm.js} +2 -4
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.esm.js +3 -4
- package/dist/{identityReuseManager-CjFZ7WRa.esm.js → identityReuseManager-Z1Re4UGd.esm.js} +3 -3
- package/dist/{identityReuseStateMachine-CLFjPp13.esm.js → identityReuseStateMachine-C_3fSFCw.esm.js} +3 -7
- package/dist/{index-DxYNO94y.d.ts → index-C0WIMlJE.d.ts} +1 -1
- package/dist/{index-DM43R87x.d.ts → index-CNck5TLp.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-lXP41N7b.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CZfdCkLC.esm.js → kybChecksManager-D-mVF14T.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-DkWxSU4L.esm.js → kybChecksStateMachine-BARZh9GN.esm.js} +5 -9
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Dh3pBhOe.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js} +3 -3
- package/dist/{mandatoryConsentManager-Bh1asNJh.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts} +8 -8
- package/dist/{mandatoryConsentStateMachine-BjuI72HZ.esm.js → mandatoryConsentStateMachine-DpK7fg3E.esm.js} +4 -7
- package/dist/{mediaRecorderOptions-g1TwTlhd.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +1 -1
- package/dist/{multipartRecordingService-WgK8ieRI.esm.js → multipartRecordingService-CEtaAPz4.esm.js} +2 -2
- package/dist/{permissionGuards-D-4_VU7-.esm.js → permissionGuards-BJIaHxvI.esm.js} +1 -1
- package/dist/{permissionServices-DpccEnzE.esm.js → permissionServices-6Mdq1hDk.esm.js} +8 -5
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-rA7updqF.esm.js → phoneManager-D8-l6-0y.esm.js} +3 -3
- package/dist/{phoneServices-CFXcwCFr.esm.js → phoneServices-C9lFIuCM.esm.js} +3 -7
- package/dist/{phoneStateMachine-DKdY2Scx.esm.js → phoneStateMachine-CGLBgJJR.esm.js} +2 -2
- package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
- package/dist/{processFaceMatch-B_DkDTE5.esm.js → processFaceMatch-B1Mhqkep.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-DxiwS8TV.esm.js → recordingService-CLGnDCDl.esm.js} +7 -6
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DTB_pWuS.esm.js → redirectToMobileManager-Djb_daci.esm.js} +3 -3
- package/dist/{redirectToMobileStateMachine-nP9DM01_.esm.js → redirectToMobileStateMachine-BCyQFlpn.esm.js} +7 -17
- package/dist/{runChildModule-CXLcOcXN.esm.js → runChildModule-DF2c6TxC.esm.js} +2 -2
- package/dist/{sdkVersion-fqxsdqFZ.esm.js → sdkVersion-B5_kVegT.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +11 -11
- package/dist/{selfieErrorUtils-MOfYdGPz.esm.js → selfieErrorUtils-BVuv5qO7.esm.js} +1 -1
- package/dist/{selfieManager-DihwheJ6.d.ts → selfieManager-C5a6Fw6W.d.ts} +1 -1
- package/dist/{selfieManager-Dq8tIqGd.esm.js → selfieManager-Dnb5h3qV.esm.js} +6 -6
- package/dist/{selfieStateMachine-BZVDQB8R.esm.js → selfieStateMachine-BT69FLFb.esm.js} +3 -3
- package/dist/{session-C7x_iJ-p.esm.js → session-OCc4b-Iv.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-k-hKIBg8.esm.js → sessionInitializer-BUUpdBy6.esm.js} +11 -13
- package/dist/{setup-CpXbdA1X.d.ts → setup-BpD7lYSf.d.ts} +5 -4
- package/dist/{setup-BRbhjHiU.esm.js → setup-CJMohzTE.esm.js} +10 -10
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-BgAja97K.esm.js → signatureManager-B6dRieBV.esm.js} +3 -3
- package/dist/{signatureStateMachine-CVPmvU2p.esm.js → signatureStateMachine-DSW5-ZO0.esm.js} +3 -5
- package/dist/{stats-DoByUnTa.esm.js → stats-VqHbD5rn.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{tri-CI2exudk.esm.js → tri-B5Yh5glk.esm.js} +2 -2
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-DhW2O8mB.esm.js → trueSightService-D9D2IdEj.esm.js} +6 -7
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{types-Ddc4Tr_f.d.ts → types-B2DGXHe6.d.ts} +2 -0
- package/dist/{types-Cpdum4vi.d.ts → types-BBHnkH6S.d.ts} +4 -4
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/{types-DJPU3W2M.d.ts → types-BkWUNheX.d.ts} +1 -1
- package/dist/types-C2uJrJrS.d.ts +6 -0
- package/dist/{types-DYYMdAGv.esm.js → types-CBQN04Rh.esm.js} +2 -1
- package/dist/{types-CyNndVAT.d.ts → types-CaVUb1DL.d.ts} +1 -1
- package/dist/{types-DFP7eSle.d.ts → types-Crg7oL-l.d.ts} +1 -1
- package/dist/{types-9wlf1-GE.d.ts → types-x5MQKskR.d.ts} +4 -2
- package/dist/video-selfie.d.ts +2 -2
- package/dist/video-selfie.esm.js +9 -9
- package/dist/{videoSelfieCameraWarmer-YwO_uP-b.esm.js → videoSelfieCameraWarmer-CYEHPKK6.esm.js} +9 -9
- package/dist/{videoSelfieStepDetector-DRrh4P0A.d.ts → videoSelfieStepDetector-DGXi_TXk.d.ts} +18 -8
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/{wasmDsFlagSync-D_6e8W62.esm.js → wasmDsFlagSync-BNttW5Sm.esm.js} +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-BH6M4kqA.esm.js → watchlistForBusinessManager-CfLnsL8p.esm.js} +3 -3
- package/dist/{watchlistForBusinessStateMachine-BMWm5mcP.esm.js → watchlistForBusinessStateMachine-EzlC_4I4.esm.js} +9 -6
- package/dist/{watchlistManager-BDaVjzLW.esm.js → watchlistManager-CGXbemnp.esm.js} +3 -3
- package/dist/{watchlistStateMachine-Cx-6QAvu.esm.js → watchlistStateMachine-CsNEmiXL.esm.js} +2 -4
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +40 -38
- package/package.json +6 -1
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- package/dist/tri.esm-CxLWmTZk.esm.js +0 -2287
- package/dist/types-CE1jkHw3.d.ts +0 -6
|
@@ -79,10 +79,18 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
79
79
|
type: "setError";
|
|
80
80
|
params: NonReducibleUnknown;
|
|
81
81
|
};
|
|
82
|
+
clearError: {
|
|
83
|
+
type: "clearError";
|
|
84
|
+
params: NonReducibleUnknown;
|
|
85
|
+
};
|
|
82
86
|
setLoadError: {
|
|
83
87
|
type: "setLoadError";
|
|
84
88
|
params: NonReducibleUnknown;
|
|
85
89
|
};
|
|
90
|
+
resetContext: {
|
|
91
|
+
type: "resetContext";
|
|
92
|
+
params: NonReducibleUnknown;
|
|
93
|
+
};
|
|
86
94
|
setConsentData: {
|
|
87
95
|
type: "setConsentData";
|
|
88
96
|
params: NonReducibleUnknown;
|
|
@@ -91,18 +99,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
91
99
|
type: "toggleCheckbox";
|
|
92
100
|
params: NonReducibleUnknown;
|
|
93
101
|
};
|
|
94
|
-
clearError: {
|
|
95
|
-
type: "clearError";
|
|
96
|
-
params: NonReducibleUnknown;
|
|
97
|
-
};
|
|
98
|
-
resetContext: {
|
|
99
|
-
type: "resetContext";
|
|
100
|
-
params: NonReducibleUnknown;
|
|
101
|
-
};
|
|
102
102
|
}>, {
|
|
103
103
|
type: "canSubmit";
|
|
104
104
|
params: unknown;
|
|
105
|
-
}, never, "error" | "idle" | "finished" | "
|
|
105
|
+
}, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
106
106
|
readonly id: "consent";
|
|
107
107
|
readonly initial: "idle";
|
|
108
108
|
readonly context: ({ input }: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
6
|
+
import { t as consentMachine } from "./consentStateMachine-Br0JbW7k.esm.js";
|
|
7
7
|
//#region src/modules/consent/consentActor.ts
|
|
8
8
|
function createConsentActor(options) {
|
|
9
9
|
return createActor(consentMachine, { input: { config: options.config } }).start();
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/modules/consent/consentServices.ts
|
|
5
5
|
async function fetchCombinedConsent(consentId, language, signal) {
|
|
6
6
|
if (!consentId) throw new Error("Combined consent id is required");
|
|
7
|
-
|
|
7
|
+
return (await api.get(endpoints.getCombinedConsent, {
|
|
8
8
|
signal,
|
|
9
9
|
query: {
|
|
10
10
|
id: consentId,
|
|
11
11
|
language: language ?? "en"
|
|
12
12
|
}
|
|
13
|
-
});
|
|
14
|
-
if (!res.ok) throw new Error(`GET ${endpoints.getCombinedConsent} failed: ${res.status} ${res.statusText}`);
|
|
15
|
-
return res.data;
|
|
13
|
+
})).data;
|
|
16
14
|
}
|
|
17
15
|
async function submitCombinedConsent(params, signal) {
|
|
18
|
-
|
|
19
|
-
if (!res.ok) throw new Error(`POST ${endpoints.signCombinedConsent} failed: ${res.status} ${res.statusText}`);
|
|
16
|
+
await api.post(endpoints.signCombinedConsent, params, { signal });
|
|
20
17
|
}
|
|
21
18
|
//#endregion
|
|
22
19
|
//#region src/modules/consent/consentStateMachine.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-
|
|
1
|
+
import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-BIQ-SYcR.esm.js";
|
|
2
2
|
export { createCrossDocumentDataMatchManager, createCrossDocumentDataMatchManagerFromActor, crossDocumentDataMatchMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
3
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
@@ -10,7 +10,6 @@ import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
|
10
10
|
const MIN_DISPLAY_MS = 3e3;
|
|
11
11
|
async function processCrossDocumentDataMatch(signal) {
|
|
12
12
|
const [res] = await Promise.all([api.post(endpoints.processCrossDocumentDataMatch, {}, { signal }), sleep(MIN_DISPLAY_MS)]);
|
|
13
|
-
if (!res.ok) throw new Error(`POST ${endpoints.processCrossDocumentDataMatch} failed: ${res.status} ${res.statusText}`);
|
|
14
13
|
return res.data;
|
|
15
14
|
}
|
|
16
15
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-
|
|
1
|
+
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-DgUZySoq.js";
|
|
2
2
|
//#region src/modules/curp-validation/curpValidationUtils.d.ts
|
|
3
3
|
type MexicanState = {
|
|
4
4
|
value: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
2
|
-
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-
|
|
1
|
+
import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BwUBkyyi.esm.js";
|
|
2
|
+
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-BKUDQ55W.esm.js";
|
|
3
3
|
export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
|
package/dist/{curpValidationManager-CbvBDoE1.esm.js → curpValidationManager-BKUDQ55W.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
7
|
-
import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
7
|
+
import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BwUBkyyi.esm.js";
|
|
8
8
|
//#region src/modules/curp-validation/curpValidationActor.ts
|
|
9
9
|
function createCurpValidationActor(options) {
|
|
10
10
|
return createActor(curpValidationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
2
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
3
|
import "./Actor-DqjOqDfU.js";
|
|
4
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
+
import { i as FlowModuleConfig } from "./types-B2DGXHe6.js";
|
|
5
5
|
//#region src/modules/curp-validation/types.d.ts
|
|
6
6
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
7
7
|
/** Maximum validation retries before auto-advancing. @default 1 */
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
5
|
+
import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
|
5
6
|
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
7
|
+
import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
|
|
6
8
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
7
9
|
/** Convert YYYY-MM-DD to DD/MM/YYYY for the API */
|
|
8
10
|
function formatDateForApi(date) {
|
|
@@ -146,14 +148,10 @@ const mexicanStates = [
|
|
|
146
148
|
//#endregion
|
|
147
149
|
//#region src/modules/curp-validation/curpValidationServices.ts
|
|
148
150
|
async function fetchOcrData(signal) {
|
|
149
|
-
|
|
150
|
-
if (!res.ok) throw new Error(`GET ${endpoints.ocrData} failed: ${res.status} ${res.statusText}`);
|
|
151
|
-
return res.data;
|
|
151
|
+
return (await api.get(endpoints.ocrData, { signal })).data;
|
|
152
152
|
}
|
|
153
153
|
async function addCurp(curp, signal) {
|
|
154
|
-
|
|
155
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addCurp} failed: ${res.status} ${res.statusText}`);
|
|
156
|
-
return res.data;
|
|
154
|
+
return (await api.post(endpoints.addCurp, { curp }, { signal })).data;
|
|
157
155
|
}
|
|
158
156
|
async function addCurpV2(form, signal) {
|
|
159
157
|
const payload = {
|
|
@@ -164,9 +162,7 @@ async function addCurpV2(form, signal) {
|
|
|
164
162
|
birthDate: formatDateForApi(form.birthDate),
|
|
165
163
|
state: form.birthState
|
|
166
164
|
};
|
|
167
|
-
|
|
168
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addCurpV2} failed: ${res.status} ${res.statusText}`);
|
|
169
|
-
return res.data;
|
|
165
|
+
return (await api.post(endpoints.addCurpV2, payload, { signal })).data;
|
|
170
166
|
}
|
|
171
167
|
//#endregion
|
|
172
168
|
//#region src/modules/curp-validation/curpFields.ts
|
|
@@ -257,7 +253,10 @@ const createValidators = () => ({
|
|
|
257
253
|
}
|
|
258
254
|
});
|
|
259
255
|
const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
|
|
260
|
-
const evaluateRules = (value, validation, validators) => {
|
|
256
|
+
const evaluateRules = (value, validation, validators, type) => {
|
|
257
|
+
const dateError = type === "date" ? calendarDateError(value.trim()) : void 0;
|
|
258
|
+
if (dateError) return dateError;
|
|
259
|
+
if (type === "date" && value.trim() > getLocalIsoDate()) return "verification.errors.futureDate";
|
|
261
260
|
if (!validation) return void 0;
|
|
262
261
|
for (const rule of validation) {
|
|
263
262
|
const error = validators[rule.type](value);
|
|
@@ -273,7 +272,7 @@ const validateGenerateCurpForm = (data, fields) => {
|
|
|
273
272
|
const validators = createValidators();
|
|
274
273
|
return fields.reduce((errors, field) => {
|
|
275
274
|
const value = normalizeFieldValue(data[field.key]);
|
|
276
|
-
const error = evaluateRules(value, field.validation, validators);
|
|
275
|
+
const error = evaluateRules(value, field.validation, validators, field.type);
|
|
277
276
|
if (error) errors[field.key] = error;
|
|
278
277
|
return errors;
|
|
279
278
|
}, {});
|
|
@@ -287,7 +286,7 @@ const validateGenerateCurpField = (data, fieldKey, fields) => {
|
|
|
287
286
|
if (!field) return void 0;
|
|
288
287
|
const validators = createValidators();
|
|
289
288
|
const value = normalizeFieldValue(data[fieldKey]);
|
|
290
|
-
return evaluateRules(value, field.validation, validators);
|
|
289
|
+
return evaluateRules(value, field.validation, validators, field.type);
|
|
291
290
|
};
|
|
292
291
|
/**
|
|
293
292
|
* Runs the single CURP-entry field through its validation rules.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-
|
|
1
|
+
import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-CPhONu5i.esm.js";
|
|
2
2
|
export { createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
2
|
-
import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-
|
|
1
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-C1Xq1ugl.esm.js";
|
|
2
|
+
import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-cN57usIW.esm.js";
|
|
3
3
|
export { createCustomWatchlistManager, createCustomWatchlistManagerFromActor, customWatchlistMachine };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
3
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
4
4
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
5
5
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
+
import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
|
|
8
9
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
9
10
|
//#region src/modules/custom-fields/customFieldsServices.ts
|
|
10
11
|
async function submitCustomFields(params, signal) {
|
|
11
|
-
|
|
12
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addCustomFields} failed: ${res.status} ${res.statusText}`);
|
|
13
|
-
return res.data;
|
|
12
|
+
return (await api.post(endpoints.addCustomFields, params.fields, { signal })).data;
|
|
14
13
|
}
|
|
15
14
|
//#endregion
|
|
16
15
|
//#region src/modules/custom-fields/customFieldsStateMachine.ts
|
|
@@ -21,19 +20,16 @@ function transformFields(fields, customFields) {
|
|
|
21
20
|
else result[key] = value;
|
|
22
21
|
return result;
|
|
23
22
|
}
|
|
24
|
-
function
|
|
25
|
-
return customFields.every((field) => {
|
|
26
|
-
if (field.type === "BOOLEAN") return true;
|
|
27
|
-
const value = fields[field.name];
|
|
28
|
-
return value !== void 0 && value !== "";
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function validateRequiredFields(fields, customFields) {
|
|
23
|
+
function validateFields(fields, customFields) {
|
|
32
24
|
const errors = {};
|
|
33
25
|
for (const field of customFields) {
|
|
34
26
|
if (field.type === "BOOLEAN") continue;
|
|
35
27
|
const value = fields[field.name];
|
|
36
28
|
if (value === void 0 || value === "") errors[field.name] = REQUIRED_FIELD_ERROR;
|
|
29
|
+
else if (field.type === "DATE") {
|
|
30
|
+
const dateError = calendarDateError(value);
|
|
31
|
+
if (dateError) errors[field.name] = dateError;
|
|
32
|
+
}
|
|
37
33
|
}
|
|
38
34
|
return Object.keys(errors).length > 0 ? errors : void 0;
|
|
39
35
|
}
|
|
@@ -59,13 +55,13 @@ const customFieldsMachine = setup({
|
|
|
59
55
|
validationErrors: Object.keys(validationErrors).length > 0 ? validationErrors : void 0
|
|
60
56
|
};
|
|
61
57
|
}),
|
|
62
|
-
setValidationErrors: assign(({ context }) => ({ validationErrors:
|
|
58
|
+
setValidationErrors: assign(({ context }) => ({ validationErrors: validateFields(context.fields, context.config.customFields) })),
|
|
63
59
|
markSuccess: assign({ result: "success" }),
|
|
64
60
|
markFailed: assign({ result: "failed" })
|
|
65
61
|
},
|
|
66
62
|
guards: {
|
|
67
63
|
apiSucceeded: ({ event }) => event.output.success,
|
|
68
|
-
isFormComplete: ({ context }) =>
|
|
64
|
+
isFormComplete: ({ context }) => validateFields(context.fields, context.config.customFields) === void 0
|
|
69
65
|
}
|
|
70
66
|
}).createMachine({
|
|
71
67
|
id: "customFields",
|
package/dist/{customWatchlistManager-Bd1ooIDB.esm.js → customWatchlistManager-cN57usIW.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
6
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-C1Xq1ugl.esm.js";
|
|
7
7
|
//#region src/modules/custom-watchlist/customWatchlistActor.ts
|
|
8
8
|
function createCustomWatchlistActor() {
|
|
9
9
|
return createActor(customWatchlistMachine).start();
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/modules/custom-watchlist/customWatchlistServices.ts
|
|
5
5
|
async function processWatchlist(signal) {
|
|
6
|
-
|
|
7
|
-
if (!res.ok) throw new Error(`POST ${endpoints.processWatchlist} failed: ${res.status} ${res.statusText}`);
|
|
8
|
-
return res.data;
|
|
6
|
+
return (await api.post(endpoints.processWatchlist, {}, { signal })).data;
|
|
9
7
|
}
|
|
10
8
|
//#endregion
|
|
11
9
|
//#region src/modules/custom-watchlist/customWatchlistStateMachine.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
-
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as SDK_PLATFORM, x as IpifyProvider } from "./sessionInitializer-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-D9D2IdEj.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-B5_kVegT.esm.js";
|
|
4
|
+
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as SDK_PLATFORM, x as IpifyProvider } from "./sessionInitializer-BUUpdBy6.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
7
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BNttW5Sm.esm.js";
|
|
8
8
|
import { t as MotionSensorProvider } from "./MotionSensorProvider-DYxh8TjR.esm.js";
|
|
9
9
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
10
|
import { n as runVirtualCameraCheck } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
package/dist/{desktopCameraElection-enVPfRsQ.esm.js → desktopCameraElection-btFONYx6.esm.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { d as getCameraCycleOwnershipDomain, l as wasmRuntime, u as CAMERA_CYCLE_OWNERSHIP_DOMAIN } from "./warmup-9iKKNNuW.esm.js";
|
|
3
|
-
import { i as utilityWasmApi } from "./WasmUtilProvider-
|
|
4
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
+
import { i as utilityWasmApi } from "./WasmUtilProvider-D5RMElzw.esm.js";
|
|
4
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
|
-
import {
|
|
7
|
-
import { l as queryCameraPermission } from "./permissionServices-
|
|
6
|
+
import { c as isCameraDenialErrorName, n as enumerateVideoDevices, o as withAudioTracks, r as requestCameraAccess, s as clearCameraGrantedInDocument, u as markCameraGrantedInDocument } from "./camera-CJKApt0x.esm.js";
|
|
7
|
+
import { l as queryCameraPermission } from "./permissionServices-6Mdq1hDk.esm.js";
|
|
8
8
|
import { r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
9
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
9
|
+
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
10
10
|
//#region ../infra/src/capabilities/ICameraCycleCapability.ts
|
|
11
11
|
/**
|
|
12
12
|
* Fixed protected-endpoint identifiers owned by ml-wasm-kit.
|
|
@@ -295,6 +295,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
295
295
|
let pendingDeliveryEvent = null;
|
|
296
296
|
let visibilityGeneration = 0;
|
|
297
297
|
let hostStream = null;
|
|
298
|
+
let audioStream = null;
|
|
298
299
|
let resourcesReleased = false;
|
|
299
300
|
let cycleTransferred = false;
|
|
300
301
|
let commandQueue = Promise.resolve();
|
|
@@ -343,6 +344,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
343
344
|
}
|
|
344
345
|
});
|
|
345
346
|
};
|
|
347
|
+
const withMic = (videoStream) => withAudioTracks(videoStream, audioStream);
|
|
346
348
|
const releaseResources = () => {
|
|
347
349
|
if (resourcesReleased) return;
|
|
348
350
|
resourcesReleased = true;
|
|
@@ -363,6 +365,8 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
363
365
|
finalizeDeferred = false;
|
|
364
366
|
stopTracks(hostStream);
|
|
365
367
|
hostStream = null;
|
|
368
|
+
stopTracks(audioStream);
|
|
369
|
+
audioStream = null;
|
|
366
370
|
if (cycleTransferred) input.cycleOwnership.releaseByAttempt();
|
|
367
371
|
else input.cycleOwnership.releaseByController();
|
|
368
372
|
};
|
|
@@ -451,8 +455,8 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
451
455
|
onFirstFrame: () => {
|
|
452
456
|
startupTiming.firstFrameMs ??= Math.max(0, now() - cameraStepStartedAt);
|
|
453
457
|
},
|
|
454
|
-
onCameraReady: (
|
|
455
|
-
stopTracks(
|
|
458
|
+
onCameraReady: (claimedAudio) => {
|
|
459
|
+
stopTracks(claimedAudio);
|
|
456
460
|
step.outcome ??= { ready: true };
|
|
457
461
|
},
|
|
458
462
|
onCameraFailed: (error) => {
|
|
@@ -484,10 +488,18 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
484
488
|
await input.configureWorkflow();
|
|
485
489
|
startupTiming.configureMs = Math.max(0, now() - configureStartedAt);
|
|
486
490
|
if (!active) return;
|
|
491
|
+
if (input.recordAudio) try {
|
|
492
|
+
const mic = await requestCameraAccess({ audio: true });
|
|
493
|
+
if (!active) {
|
|
494
|
+
stopTracks(mic);
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
audioStream = mic;
|
|
498
|
+
} catch {}
|
|
487
499
|
recorderOperationInFlight = true;
|
|
488
500
|
const recorderStartedAt = now();
|
|
489
501
|
try {
|
|
490
|
-
await input.recorder.start(displayStream);
|
|
502
|
+
await input.recorder.start(withMic(displayStream));
|
|
491
503
|
recorderStarted = input.recorder.mode !== "none";
|
|
492
504
|
} catch {
|
|
493
505
|
try {
|
|
@@ -610,7 +622,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
610
622
|
}
|
|
611
623
|
try {
|
|
612
624
|
recorderOperationInFlight = true;
|
|
613
|
-
await input.recorder.resumeAfterPoc(displayStream);
|
|
625
|
+
await input.recorder.resumeAfterPoc(withMic(displayStream));
|
|
614
626
|
recorderResumedAfterPoc = true;
|
|
615
627
|
postPocDisplayStream = displayStream;
|
|
616
628
|
} catch {
|
|
@@ -793,7 +805,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
793
805
|
}
|
|
794
806
|
recorderOperationInFlight = true;
|
|
795
807
|
try {
|
|
796
|
-
await input.recorder.resumeFromBackground(resumedStream);
|
|
808
|
+
await input.recorder.resumeFromBackground(withMic(resumedStream));
|
|
797
809
|
if (!active) return;
|
|
798
810
|
if (receivedVisibilityGeneration !== visibilityGeneration) {
|
|
799
811
|
recorderOperationInFlight = false;
|
package/dist/device.d.ts
CHANGED
|
@@ -37,13 +37,13 @@ declare function isApplePlatform(): boolean;
|
|
|
37
37
|
* Whether capture/WASM are known to work in the current browser.
|
|
38
38
|
*
|
|
39
39
|
* Native Android and iOS WebViews are supported; third-party in-app browsers
|
|
40
|
-
* are not, on either platform. Outside a WebView,
|
|
41
|
-
* every platform and Safari is supported on Apple platforms.
|
|
40
|
+
* are not, on either platform. Outside a WebView, Chrome, Brave, and Edge are
|
|
41
|
+
* supported on every platform and Safari is supported on Apple platforms.
|
|
42
42
|
*
|
|
43
43
|
* The rejections run first, because a browser that is unsupported on its own is
|
|
44
44
|
* still unsupported when it hosts the page as a WebView (ENG-51674).
|
|
45
45
|
*
|
|
46
|
-
* Identity comes from the user agent, plus `navigator.
|
|
46
|
+
* Identity comes from the user agent, plus `navigator.island`
|
|
47
47
|
* and Client Hint brands where available. `navigator.island` is load-bearing:
|
|
48
48
|
* Island can be configured (or itself strip) the "Island Browser" UA token and
|
|
49
49
|
* still report Chrome-only Client Hint brands, so the UA and brands alone are
|
package/dist/device.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as isIOSWebView, c as isIslandBrowser, f as isTabletWithoutAndroid, i as isIOS, n as isAndroidWebView, o as isIPad } from "./platform-GIg4uPWe.esm.js";
|
|
2
2
|
import { n as getUserAgentBrands, t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
3
3
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
4
4
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
5
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
5
|
+
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
6
6
|
//#region src/internal/device/browserSupportClassification.ts
|
|
7
7
|
/**
|
|
8
8
|
* Third-party in-app browsers. These are real WebViews — `isAndroidWebView` and
|
|
@@ -13,19 +13,19 @@ const IN_APP_BROWSER_TOKEN = /\b(?:FBAN|FBAV|FB_IAB|FB4A|Instagram|LinkedInApp|T
|
|
|
13
13
|
/**
|
|
14
14
|
* Client Hint brands for the Chromium builds that are supported. `Chromium`
|
|
15
15
|
* covers vanilla and automation builds, which do not carry the Google Chrome
|
|
16
|
-
* brand.
|
|
17
|
-
* rejected, rather than being supported until someone denylists it.
|
|
16
|
+
* brand. Forks reporting no supported brand are rejected.
|
|
18
17
|
*/
|
|
19
|
-
const SUPPORTED_CHROMIUM_BRANDS = /* @__PURE__ */ new Set([
|
|
18
|
+
const SUPPORTED_CHROMIUM_BRANDS = /* @__PURE__ */ new Set([
|
|
19
|
+
"Google Chrome",
|
|
20
|
+
"Chromium",
|
|
21
|
+
"Brave",
|
|
22
|
+
"Microsoft Edge"
|
|
23
|
+
]);
|
|
20
24
|
/**
|
|
21
25
|
* Forks that report a Chrome-compatible UA *and* claim a supported brand. A
|
|
22
26
|
* second guard on top of the allowlist, not a substitute for it.
|
|
23
27
|
*/
|
|
24
|
-
const UNSUPPORTED_CHROMIUM_BRANDS = /* @__PURE__ */ new Set([
|
|
25
|
-
"Brave",
|
|
26
|
-
"Microsoft Edge",
|
|
27
|
-
"Opera"
|
|
28
|
-
]);
|
|
28
|
+
const UNSUPPORTED_CHROMIUM_BRANDS = /* @__PURE__ */ new Set(["Opera"]);
|
|
29
29
|
/** iOS/iPadOS/macOS — the only platforms where Safari is a supported option. */
|
|
30
30
|
function isApplePlatform() {
|
|
31
31
|
const userAgent = getUserAgent();
|
|
@@ -35,13 +35,13 @@ function isApplePlatform() {
|
|
|
35
35
|
* Whether capture/WASM are known to work in the current browser.
|
|
36
36
|
*
|
|
37
37
|
* Native Android and iOS WebViews are supported; third-party in-app browsers
|
|
38
|
-
* are not, on either platform. Outside a WebView,
|
|
39
|
-
* every platform and Safari is supported on Apple platforms.
|
|
38
|
+
* are not, on either platform. Outside a WebView, Chrome, Brave, and Edge are
|
|
39
|
+
* supported on every platform and Safari is supported on Apple platforms.
|
|
40
40
|
*
|
|
41
41
|
* The rejections run first, because a browser that is unsupported on its own is
|
|
42
42
|
* still unsupported when it hosts the page as a WebView (ENG-51674).
|
|
43
43
|
*
|
|
44
|
-
* Identity comes from the user agent, plus `navigator.
|
|
44
|
+
* Identity comes from the user agent, plus `navigator.island`
|
|
45
45
|
* and Client Hint brands where available. `navigator.island` is load-bearing:
|
|
46
46
|
* Island can be configured (or itself strip) the "Island Browser" UA token and
|
|
47
47
|
* still report Chrome-only Client Hint brands, so the UA and brands alone are
|
|
@@ -51,11 +51,11 @@ function isApplePlatform() {
|
|
|
51
51
|
*/
|
|
52
52
|
function isSupportedBrowser() {
|
|
53
53
|
const userAgent = getUserAgent();
|
|
54
|
-
if (
|
|
54
|
+
if (isIslandBrowser() || IN_APP_BROWSER_TOKEN.test(userAgent)) return false;
|
|
55
55
|
if (isAndroidWebView(userAgent) || isIOSWebView(userAgent)) return true;
|
|
56
56
|
const browser = getBrowser();
|
|
57
57
|
if (browser === "safari") return isApplePlatform();
|
|
58
|
-
if (browser !== "chrome") return false;
|
|
58
|
+
if (browser !== "chrome" && browser !== "edge") return false;
|
|
59
59
|
const brands = getUserAgentBrands();
|
|
60
60
|
if (brands === void 0) return true;
|
|
61
61
|
return brands.some((brand) => SUPPORTED_CHROMIUM_BRANDS.has(brand)) && !brands.some((brand) => UNSUPPORTED_CHROMIUM_BRANDS.has(brand));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, u as DocumentUploadStatus } from "./types-
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
1
|
+
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, u as DocumentUploadStatus } from "./types-CaVUb1DL.js";
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-BkaPpoKy.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, type DocumentUploadStatus, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
2
|
-
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-
|
|
1
|
+
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-jtQHasPA.esm.js";
|
|
2
|
+
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-5I3lKDVW.esm.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|