@incodetech/core 0.0.0-dev-20261201-b41183a2 → 0.0.0-dev-20261201-e37652f8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FaceDetectionProvider-DILvXMxQ.esm.js → FaceDetectionProvider-DQYbHLxC.esm.js} +7 -7
- package/dist/{addressSearch-BJ711RHG.esm.js → addressSearch-gginelz3.esm.js} +29 -27
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-DRMBLSh7.esm.js → antifraudManager-B673OXCo.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bi0m60oV.esm.js → antifraudStateMachine-C_d7-TUA.esm.js} +1 -1
- package/dist/{api-B58edv6M.esm.js → api-CsXnB7m6.esm.js} +1 -0
- package/dist/{apiError-B80OYJHb.esm.js → apiError-BRiJu_rv.esm.js} +1 -1
- package/dist/{attemptCarry-CxiYlUAO.esm.js → attemptCarry-8gUYc3pL.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CXDKsr-j.esm.js → authenticationManager-CrBlRkAd.esm.js} +4 -4
- package/dist/{authenticationManager-C_ttJLGU.d.ts → authenticationManager-Cv_jCMGJ.d.ts} +1 -1
- package/dist/{authenticationStateMachine-CjheAavc.esm.js → authenticationStateMachine-DLwEyCeH.esm.js} +3 -3
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-DGzHjp2j.esm.js → certificateIssuanceManager-D-Dm90F3.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-DpflnS6P.esm.js → certificateIssuanceStateMachine-CBNw9Niu.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-Bx_osBME.d.ts → consentManager-Bow34QP_.d.ts} +13 -13
- package/dist/{consentManager-CyoeiABc.esm.js → consentManager-DQ1uiNhr.esm.js} +2 -2
- package/dist/{consentStateMachine-BTUrAslr.esm.js → consentStateMachine-Cb7dKk_1.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-cmQmp7Bi.esm.js → crossDocumentDataMatchManager-CeeEmCV1.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-BFPZiliY.d.ts → curpValidationManager-DFWjZq3i.d.ts} +1 -1
- package/dist/{curpValidationManager-EW44fVpH.esm.js → curpValidationManager-vgHG8gob.esm.js} +2 -2
- package/dist/{curpValidationStateMachine-BFkt90Zs.esm.js → curpValidationStateMachine-DaSzh9OA.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-DPMBJrcH.esm.js → customFieldsManager-BuEt-nm4.esm.js} +2 -2
- package/dist/{customWatchlistManager-DiYpPjZx.esm.js → customWatchlistManager-C1z0B5NU.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-D7VxQggF.esm.js → customWatchlistStateMachine-DvwFHjkC.esm.js} +1 -1
- package/dist/{deepsightCaptureConfig-22yGNhzp.esm.js → deepsightCaptureConfig-BVJANeRn.esm.js} +2 -2
- package/dist/{deepsightLoader-DAvHxEmQ.esm.js → deepsightLoader-C6nKqY9Q.esm.js} +4 -4
- package/dist/{desktopCameraElection-DKHWoXIZ.esm.js → desktopCameraElection-BAq-Kaiq.esm.js} +5 -5
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.esm.js +2 -2
- package/dist/{documentCaptureManager-sJWgqtUy.d.ts → documentCaptureManager-DOgJTJ4F.d.ts} +4 -4
- package/dist/{documentCaptureManager-ytELw-yO.esm.js → documentCaptureManager-DoHy82WC.esm.js} +2 -2
- package/dist/{documentCaptureStateMachine-lKG1IVEM.esm.js → documentCaptureStateMachine-C_HQH7vA.esm.js} +2 -2
- package/dist/{documentSignatureStateMachine-BVv6yTDC.esm.js → documentSignatureStateMachine-Btlg3q7j.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-L9BCGhY3.esm.js → dynamicFormsManager-SbEUnFoF.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-UeIgfIgO.esm.js → dynamicFormsStateMachine-Dxv36mAP.esm.js} +2 -2
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BNG13W2D.esm.js → ekybManager-xhoOX9O9.esm.js} +2 -2
- package/dist/{ekybStateMachine-qSw4IjCe.esm.js → ekybStateMachine-CCjUH0j3.esm.js} +184 -57
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -0
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-Bt0FZlZO.esm.js → ekycManager-DrGuK0kT.esm.js} +2 -2
- package/dist/{ekycPrefillManager-C5DMDJEA.esm.js → ekycPrefillManager-C9kdwCC6.esm.js} +2 -2
- package/dist/{ekycPrefillManager-D-8VY48A.d.ts → ekycPrefillManager-Di6aMx68.d.ts} +8 -8
- package/dist/{ekycPrefillStateMachine-66IiDSxQ.esm.js → ekycPrefillStateMachine-DiQifkkd.esm.js} +9 -88
- package/dist/{ekycStateMachine-lo3GvfpV.esm.js → ekycStateMachine-BmMdLe2G.esm.js} +299 -126
- package/dist/{ekycUtils-BnTyeA-_.esm.js → ekycUtils-DfBNTcvX.esm.js} +41 -5
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Dc0_ymIt.esm.js → electronicSignatureManager-C6liTNbu.esm.js} +3 -3
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BBdRYLtH.esm.js → emailManager-CUX2saAB.esm.js} +2 -2
- package/dist/{emailStateMachine-DO7lWYvn.esm.js → emailStateMachine-BzWHKLtW.esm.js} +2 -2
- package/dist/{events-PUWyizJn.esm.js → events-Dlkhhx5O.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +35 -35
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-D0y15MK_.d.ts → faceCaptureManagerFactory-2oqROMSB.d.ts} +3 -3
- package/dist/{faceCaptureManagerFactory-DePLuBnT.esm.js → faceCaptureManagerFactory-OL8BWaIW.esm.js} +3 -3
- package/dist/{faceCaptureSetup-C8qfvh2x.esm.js → faceCaptureSetup-DQVtmb1q.esm.js} +10 -10
- package/dist/{faceMatchManager-nBvS9z0o.esm.js → faceMatchManager-BzaXiW4H.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-48O8j_Lx.esm.js → faceMatchStateMachine-BItwQ_yA.esm.js} +2 -2
- package/dist/{feature-management-srznX8Iz.esm.js → feature-management-D_T-MG_i.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-B1ipvtnp.esm.js → fieldComparisonManager-CzX6IhGd.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-yecjuXV4.esm.js → fiscalQrManager-Dg6Mp58y.esm.js} +2 -2
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +31 -9
- package/dist/flow.esm.js +11 -7
- package/dist/{flowCompletionService-Cba59yFV.esm.js → flowCompletionService-L0J63ui-.esm.js} +2 -2
- package/dist/{flowServices-B33MhjQM.esm.js → flowServices-3OXrEqDE.esm.js} +25 -21
- package/dist/formDefinitionsRollout-B-c4yO2z.esm.js +30 -0
- package/dist/{formErrors-lSfh7Y8J.esm.js → formErrors-kpskZLNT.esm.js} +39 -180
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-C7cHHTkd.esm.js → geolocationManager-CREfQNgO.esm.js} +2 -2
- package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
- package/dist/{geolocationStateMachine-QJqoWT7E.esm.js → geolocationStateMachine-D9_bBr19.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-0-L21hu6.esm.js → governmentValidationManager-B7lIuL4r.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-BFIcq3UB.esm.js → governmentValidationStateMachine-BuW6l3ah.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-3YmXwvvY.esm.js → idCaptureManager-B5ZN7scK.esm.js} +6 -6
- package/dist/{idCaptureManager-B72fNOKa.d.ts → idCaptureManager-BMsGPjcf.d.ts} +2 -2
- package/dist/{idCaptureServices-j-hB9ROq.esm.js → idCaptureServices-7zZ457LW.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-DcQQvjLv.esm.js → idCaptureStateMachine-FP4j-qeT.esm.js} +15 -15
- package/dist/{idOcrManager-CNGVEZ7B.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
- package/dist/{idOcrManager-bjBLjrEE.esm.js → idOcrManager-C9C8UaPr.esm.js} +2 -2
- package/dist/{idOcrStateMachine-D5ifJ1B8.esm.js → idOcrStateMachine-DANDVn-6.esm.js} +1 -1
- package/dist/{idVerificationManager-C8Ja-vKq.esm.js → idVerificationManager-B_6wwpeT.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-BMnfZZli.esm.js → idVerificationStateMachine-MjQmD3yQ.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.esm.js +1 -1
- package/dist/{identityReuseManager-D_jiHp1n.d.ts → identityReuseManager-BE6LHcuP.d.ts} +157 -21
- package/dist/{identityReuseManager-B5BWAleT.esm.js → identityReuseManager-DWECWIiZ.esm.js} +7 -3
- package/dist/{identityReuseStateMachine-Cuggm1UP.esm.js → identityReuseStateMachine-nBv0KUJC.esm.js} +73 -5
- package/dist/{index-O5g5kKdI.d.ts → index-k1LUfkAo.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-BorQeoKZ.esm.js → kybChecksManager-tUsFKBCN.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-kuV8xPAu.esm.js → kybChecksStateMachine-D1q4K7Xr.esm.js} +4 -4
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-C6jjFptX.d.ts → mandatoryConsentManager-De9ZX6o4.d.ts} +10 -10
- package/dist/{mandatoryConsentManager-FfgHdPYw.esm.js → mandatoryConsentManager-S8rgqCld.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-CXuYC3qR.esm.js → mandatoryConsentStateMachine-BtE4heVc.esm.js} +1 -1
- package/dist/{multipartRecordingService-CFmOUGQt.esm.js → multipartRecordingService-C8v02l56.esm.js} +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-oIMdbeLG.esm.js → phoneManager-uQEAWKlO.esm.js} +2 -2
- package/dist/{phoneServices-Dk4j3NhI.esm.js → phoneServices-XoT74eS0.esm.js} +1 -1
- package/dist/{phoneStateMachine-Cu3y7ewi.esm.js → phoneStateMachine-B4W4CSqf.esm.js} +2 -2
- package/dist/{processFaceMatch-CHeI0DEt.esm.js → processFaceMatch-CpQYLU-y.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-RHW4CWxh.esm.js → recordingService-OcyZO_w6.esm.js} +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DmrPLTLG.esm.js → redirectToMobileManager-UQZkhZFB.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-OeQDdgsK.esm.js → redirectToMobileStateMachine-D1wp--wG.esm.js} +1 -1
- package/dist/{runChildModule-pJrB5rsq.esm.js → runChildModule-BuZFd3Df.esm.js} +1 -1
- package/dist/{sdkVersion-CiTnubuK.esm.js → sdkVersion-BY8g-EEL.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +8 -8
- package/dist/{selfieErrorUtils-UJWNVxvr.esm.js → selfieErrorUtils-DIVWh0ih.esm.js} +1 -1
- package/dist/{selfieManager-B9nn8qKH.esm.js → selfieManager-DQ5xB8y6.esm.js} +4 -4
- package/dist/{selfieManager-C44cA6cA.d.ts → selfieManager-RgcJwpHg.d.ts} +1 -1
- package/dist/{selfieStateMachine-7H38L53x.esm.js → selfieStateMachine-fyNh2r31.esm.js} +3 -3
- package/dist/{session-BLrEehWj.esm.js → session-DKnCv6zu.esm.js} +5 -5
- package/dist/session.d.ts +9 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DAC3I8PG.esm.js → sessionInitializer-q5b8Qwr3.esm.js} +7 -7
- package/dist/{setup-BajT35bZ.esm.js → setup-JGwc0kgu.esm.js} +8 -8
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-DRUflksL.esm.js → signatureManager-3g4_cavt.esm.js} +2 -2
- package/dist/{signatureStateMachine-BQZenxel.esm.js → signatureStateMachine-CkES2vVv.esm.js} +1 -1
- package/dist/{stats-DHu3li6G.esm.js → stats-D_gJvsTS.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/trim-OmrUb6mG.esm.js +297 -0
- package/dist/trueSight-9VsfHXFt.esm.js +1 -0
- package/dist/{trueSightService-BLyfduve.esm.js → trueSightService-Dx8AqgKD.esm.js} +3 -3
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{trustGraphStateMachine-0Ehwried.esm.js → trustGraphStateMachine-fuYq0Cxf.esm.js} +1 -1
- package/dist/{types-C57lH3a8.d.ts → types-BV2Tl1wE.d.ts} +1 -1
- package/dist/{types-CaQV2ksk.d.ts → types-BVgTvWOP.d.ts} +1 -1
- package/dist/{types-DDmU-yVM.d.ts → types-DAhpyjuI.d.ts} +1 -1
- package/dist/{types-ujAUlvvI.d.ts → types-DH4VaTRC.d.ts} +4 -4
- package/dist/types-RLVmm_Hf.d.ts +6 -0
- package/dist/{types-ByNCQYE9.d.ts → types-YS7g_P7z.d.ts} +1 -1
- package/dist/uppercase-CwlIuiwR.esm.js +115 -0
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +6 -6
- package/dist/{videoSelfieCameraWarmer-D4nY62Xt.esm.js → videoSelfieCameraWarmer-AoMytGBD.esm.js} +4 -4
- package/dist/{videoSelfieStepDetector-DAEJDeL3.d.ts → videoSelfieStepDetector-DCOmz3yk.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-d8kdf35n.esm.js → watchlistForBusinessManager-VDu1ypVz.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-Y9wFmuMH.esm.js → watchlistForBusinessStateMachine-Dr85bA22.esm.js} +1 -1
- package/dist/{watchlistManager-D1BVrd3H.esm.js → watchlistManager-Dc9sFwZx.esm.js} +2 -2
- package/dist/{watchlistStateMachine-Da4p0sTE.esm.js → watchlistStateMachine-BnKGh6Kk.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -5
- package/dist/workflow.esm.js +40 -40
- package/package.json +1 -1
- package/dist/definitionSource-B9WTvQb9.esm.js +0 -30
- package/dist/resolveForm-DaaQSVWp.esm.js +0 -146
- package/dist/trueSight-BdWbgUnZ.esm.js +0 -1
- package/dist/types-B_THBzAh.d.ts +0 -6
package/dist/id.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
2
|
import { n as PermissionStatus, t as PermissionResult } from "./types-CeEcakO7.js";
|
|
3
|
-
import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-
|
|
3
|
+
import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-BMsGPjcf.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
5
5
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-BRAZQtkM.js";
|
|
6
|
-
import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-
|
|
6
|
+
import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-YS7g_P7z.js";
|
|
7
7
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
package/dist/id.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-
|
|
2
|
-
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
3
|
-
import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-
|
|
1
|
+
import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-FP4j-qeT.esm.js";
|
|
2
|
+
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-B5ZN7scK.esm.js";
|
|
3
|
+
import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-7zZ457LW.esm.js";
|
|
4
4
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.ts
|
|
5
5
|
/**
|
|
6
6
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-JGwc0kgu.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
3
|
-
import { t as api, u as endpoints } from "./api-
|
|
4
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
3
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
4
|
+
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
5
5
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
6
6
|
import { r as isDesktop } from "./platform-GIg4uPWe.esm.js";
|
|
7
7
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
@@ -12,9 +12,9 @@ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-0SxaYTcb.esm.js";
|
|
|
12
12
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
13
13
|
import { i as primeMotionFromUserGestureIfNeeded, l as resetWasmMotionPrimedForModule, s as requiresMotionPermissionUserGesture } from "./permissionServices-GQyOY1tb.esm.js";
|
|
14
14
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
15
|
-
import { r as wantsDeepsightMotion } from "./deepsightCaptureConfig-
|
|
16
|
-
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
17
|
-
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-
|
|
15
|
+
import { r as wantsDeepsightMotion } from "./deepsightCaptureConfig-BVJANeRn.esm.js";
|
|
16
|
+
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-FP4j-qeT.esm.js";
|
|
17
|
+
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-7zZ457LW.esm.js";
|
|
18
18
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-D2FOfi4O.esm.js";
|
|
19
19
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
20
20
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -5,14 +5,14 @@ import "./Actor-DqjOqDfU.js";
|
|
|
5
5
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
6
|
import "./index-DHuAkTe0.js";
|
|
7
7
|
import "./createFaceAvatar-Ct9QrQ66.js";
|
|
8
|
-
import { a as RegulationTypes } from "./types-
|
|
8
|
+
import { a as RegulationTypes } from "./types-DH4VaTRC.js";
|
|
9
9
|
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-CLWIYHB4.js";
|
|
10
10
|
import { n as PermissionStatus } from "./types-CeEcakO7.js";
|
|
11
11
|
import { t as BaseWasmProvider } from "./BaseWasmProvider-CPdofn7R.js";
|
|
12
12
|
import { n as DeepsightService } from "./StreamCanvasCapture-BqaHTJF0.js";
|
|
13
13
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
14
14
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-BRAZQtkM.js";
|
|
15
|
-
import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-
|
|
15
|
+
import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-YS7g_P7z.js";
|
|
16
16
|
//#region src/internal/http/endpoints.d.ts
|
|
17
17
|
/**
|
|
18
18
|
* Backend `CaptureType` for the `captureType` query param on `add/front-id`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-JGwc0kgu.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
3
|
+
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-D_T-MG_i.esm.js";
|
|
4
4
|
import { r as isDesktop } from "./platform-GIg4uPWe.esm.js";
|
|
5
5
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
6
6
|
import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
@@ -432,7 +432,7 @@ async function startRecordingSession(params) {
|
|
|
432
432
|
const [compositorModule, recorderModule, serviceModule] = await Promise.all([
|
|
433
433
|
import("./CameraCompositor-C7N1N61V.esm.js").then((n) => n.n),
|
|
434
434
|
import("./WorkerEncoderRecordingProvider-BO7urYwT.esm.js").then((n) => n.n),
|
|
435
|
-
import("./multipartRecordingService-
|
|
435
|
+
import("./multipartRecordingService-C8v02l56.esm.js").then((n) => n.n)
|
|
436
436
|
]);
|
|
437
437
|
const recordingSource = params.stream.clone();
|
|
438
438
|
const compositor = compositorModule.createRecordingCompositor();
|
package/dist/{idCaptureStateMachine-DcQQvjLv.esm.js → idCaptureStateMachine-FP4j-qeT.esm.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { n as getTimestamp, r as revokeObjectURL } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-
|
|
2
|
+
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-JGwc0kgu.esm.js";
|
|
3
3
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
4
4
|
import { n as eventModuleNames, v as addEvent } from "./types-DLsivQsu.esm.js";
|
|
5
|
-
import { r as getToken, t as api, u as endpoints } from "./api-
|
|
6
|
-
import { n as recordExperimentAssignmentOnce, t as createManagerInstrumentation } from "./events-
|
|
7
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-
|
|
8
|
-
import "./trueSight-
|
|
9
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
5
|
+
import { r as getToken, t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
6
|
+
import { n as recordExperimentAssignmentOnce, t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
7
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-Dx8AqgKD.esm.js";
|
|
8
|
+
import "./trueSight-9VsfHXFt.esm.js";
|
|
9
|
+
import { t as getDisableIpify } from "./sessionInitializer-q5b8Qwr3.esm.js";
|
|
10
10
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
11
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
12
|
-
import { t as addDeviceStats } from "./stats-
|
|
11
|
+
import { s as exposeExperimentOnce } from "./feature-management-D_T-MG_i.esm.js";
|
|
12
|
+
import { t as addDeviceStats } from "./stats-D_gJvsTS.esm.js";
|
|
13
13
|
import { d as isSamsungDevice, i as isIOS, l as isMacOsSafari, o as isIPad, s as isIPhone14OrHigher, t as isAndroid } from "./platform-GIg4uPWe.esm.js";
|
|
14
|
-
import "./session-
|
|
14
|
+
import "./session-DKnCv6zu.esm.js";
|
|
15
15
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
16
16
|
import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
17
17
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
@@ -20,17 +20,17 @@ import { c as isCameraDenialErrorName } from "./camera-CJKApt0x.esm.js";
|
|
|
20
20
|
import { a as requestMotionPermission, d as queryPermission, n as checkPermission, r as invokeRequestPermissionActor, s as requiresMotionPermissionUserGesture, t as canPrimeMotionWithoutUserGesture } from "./permissionServices-GQyOY1tb.esm.js";
|
|
21
21
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
22
22
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
23
|
-
import { r as wantsDeepsightMotion } from "./deepsightCaptureConfig-
|
|
24
|
-
import { a as cameraCycleProvider, c as deepsightSignalConfigActor, i as runProtectedAttempt, l as PROTECTED_CAPTURE_TARGET, n as createCameraCycleOwnership, r as readIadCameraStepGates, s as flagIdManualReview, t as electDesktopCameraDevice } from "./desktopCameraElection-
|
|
23
|
+
import { r as wantsDeepsightMotion } from "./deepsightCaptureConfig-BVJANeRn.esm.js";
|
|
24
|
+
import { a as cameraCycleProvider, c as deepsightSignalConfigActor, i as runProtectedAttempt, l as PROTECTED_CAPTURE_TARGET, n as createCameraCycleOwnership, r as readIadCameraStepGates, s as flagIdManualReview, t as electDesktopCameraDevice } from "./desktopCameraElection-BAq-Kaiq.esm.js";
|
|
25
25
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
26
26
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-SvIvYyWB.esm.js";
|
|
27
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
27
|
+
import { t as carryAttempts } from "./attemptCarry-8gUYc3pL.esm.js";
|
|
28
28
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
29
29
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
30
30
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
31
31
|
import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
32
32
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CFyXIRuM.esm.js";
|
|
33
|
-
import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-
|
|
33
|
+
import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-7zZ457LW.esm.js";
|
|
34
34
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
|
|
35
35
|
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
36
36
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
@@ -2104,7 +2104,7 @@ fromPromise(async ({ input }) => {
|
|
|
2104
2104
|
});
|
|
2105
2105
|
fromPromise(async ({ input }) => {
|
|
2106
2106
|
if (!input.dependencies) return;
|
|
2107
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
2107
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-C6nKqY9Q.esm.js");
|
|
2108
2108
|
return loadDeepsightSession({
|
|
2109
2109
|
ds: input.ds,
|
|
2110
2110
|
storage: input.dependencies.storage,
|
|
@@ -2548,7 +2548,7 @@ function cleanup(service) {
|
|
|
2548
2548
|
service.cleanup();
|
|
2549
2549
|
} catch {}
|
|
2550
2550
|
}
|
|
2551
|
-
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-
|
|
2551
|
+
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-C6nKqY9Q.esm.js")).loadDeepsightSession(input)) {
|
|
2552
2552
|
let disposed = false;
|
|
2553
2553
|
let preparation;
|
|
2554
2554
|
let service;
|
|
@@ -110,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
|
|
|
110
110
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
111
111
|
params: unknown;
|
|
112
112
|
};
|
|
113
|
-
}>, never, "error" | "idle" | "success" | "finished" | "
|
|
113
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
114
114
|
readonly id: "idOcr";
|
|
115
115
|
readonly initial: "idle";
|
|
116
116
|
readonly context: ({ input }: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
5
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-DANDVn-6.esm.js";
|
|
6
6
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
7
7
|
function createIdOcrActor(options) {
|
|
8
8
|
return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { n as calendarDateError, t as INVALID_DATE_ERROR_KEY } from "./calendarDate-D2zWfUlA.esm.js";
|
package/dist/{idVerificationManager-C8Ja-vKq.esm.js → idVerificationManager-B_6wwpeT.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
5
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-MjQmD3yQ.esm.js";
|
|
6
6
|
//#region src/modules/id-verification/idVerificationActor.ts
|
|
7
7
|
function createIdVerificationActor(options) {
|
|
8
8
|
return createActor(idVerificationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
import { 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/id-verification/idVerificationServices.ts
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
export { type FetchCompanyNameResponse, type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseOutput, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
1
|
+
import { _ as SubmitResponse, a as createIdentityReuseManagerFromActor, c as SelectedDocumentId, d as FetchConsentResponse, f as FetchDocumentsResponse, g as ReusableDocument, h as IdentityReuseOutput, i as createIdentityReuseManager, l as identityReuseMachine, m as IdentityReuseConsent, n as IdentityReuseSharedDetails, p as IdentityReuseConfig, r as IdentityReuseState, s as SCAN_NEW_DOCUMENT, t as IdentityReuseManager, u as FetchCompanyNameResponse } from "./identityReuseManager-BE6LHcuP.js";
|
|
2
|
+
export { type FetchCompanyNameResponse, type FetchConsentResponse, type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseConsent, type IdentityReuseManager, type IdentityReuseOutput, type IdentityReuseSharedDetails, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-
|
|
2
|
-
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-
|
|
1
|
+
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-nBv0KUJC.esm.js";
|
|
2
|
+
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-DWECWIiZ.esm.js";
|
|
3
3
|
export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as moduleClosed, g as screenOpened, m as screenClosed, n as eventModuleNames, p as moduleOpened } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
3
3
|
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
@@ -8,10 +8,17 @@ import "./Actor-DqjOqDfU.js";
|
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```typescript
|
|
11
|
-
* const config: IdentityReuseConfig = {};
|
|
11
|
+
* const config: IdentityReuseConfig = { language: 'es' };
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
type IdentityReuseConfig = {
|
|
14
|
+
type IdentityReuseConfig = {
|
|
15
|
+
/**
|
|
16
|
+
* Locale for the organization's consent text, such as `es` or `en-US`.
|
|
17
|
+
* Without it, the backend uses the session's language. `<incode-flow>` and
|
|
18
|
+
* the `IdentityReuse` component pass the UI language.
|
|
19
|
+
*/
|
|
20
|
+
language?: string;
|
|
21
|
+
};
|
|
15
22
|
/**
|
|
16
23
|
* A reusable identity document previously verified with a partner organization.
|
|
17
24
|
* Internal shape consumed by the state machine, manager, and UI; the service
|
|
@@ -51,15 +58,46 @@ type FetchDocumentsResponse = ReusableDocument[];
|
|
|
51
58
|
* passed to `.provide()` that supplies the name.
|
|
52
59
|
*/
|
|
53
60
|
type FetchCompanyNameResponse = string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* The organization's data-sharing consent, from
|
|
63
|
+
* GET /omni/identity-reuse/consent. The "Shared details" sheet shows `text`
|
|
64
|
+
* and the `scopes`, and an accepted share records `revisionId` and `locale`.
|
|
65
|
+
*/
|
|
66
|
+
type IdentityReuseConsent = {
|
|
67
|
+
/** The consent revision the person accepts. Sent on submit. */
|
|
68
|
+
revisionId: string;
|
|
69
|
+
/** The locale of `text`. Sent on submit. */
|
|
70
|
+
locale: string;
|
|
71
|
+
/**
|
|
72
|
+
* The text to show. `undefined` when the backend sends none, and the
|
|
73
|
+
* screen then shows its own copy.
|
|
74
|
+
*/
|
|
75
|
+
text?: string;
|
|
76
|
+
/**
|
|
77
|
+
* What the organization may see, as catalog ids (`name`, `date_of_birth`,
|
|
78
|
+
* `document_image`, ... or `all`). Empty when the backend sends none.
|
|
79
|
+
*/
|
|
80
|
+
scopes: string[];
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* The consent as resolved by the `fetchConsent` actor: `undefined` when the
|
|
84
|
+
* organization has none. Use it to type a `fetchConsent` override passed to
|
|
85
|
+
* `.provide()`.
|
|
86
|
+
*/
|
|
87
|
+
type FetchConsentResponse = IdentityReuseConsent | undefined;
|
|
54
88
|
/**
|
|
55
89
|
* @internal Request body for POST /omni/identity-reuse/submit.
|
|
56
90
|
*
|
|
57
91
|
* - `{ accepted: true, documentId }` — user is reusing the selected document.
|
|
92
|
+
* With the consent the person accepted, `consentRevisionId` and
|
|
93
|
+
* `consentLocale` come together.
|
|
58
94
|
* - `{ accepted: false }` — user opted to scan a new document instead.
|
|
59
95
|
*/
|
|
60
96
|
type SubmitParams = {
|
|
61
97
|
accepted: true;
|
|
62
98
|
documentId: string;
|
|
99
|
+
consentRevisionId?: string;
|
|
100
|
+
consentLocale?: string;
|
|
63
101
|
} | {
|
|
64
102
|
accepted: false;
|
|
65
103
|
};
|
|
@@ -96,6 +134,8 @@ type IdentityReuseContext = {
|
|
|
96
134
|
documents: ReusableDocument[];
|
|
97
135
|
selectedDocumentId: SelectedDocumentId | undefined;
|
|
98
136
|
companyName: string | undefined;
|
|
137
|
+
/** The organization's consent, when it has one and it loaded in time. */
|
|
138
|
+
consent: IdentityReuseConsent | undefined;
|
|
99
139
|
error: string | undefined;
|
|
100
140
|
/** The backend imported the document the person accepted. */
|
|
101
141
|
identityShared: boolean;
|
|
@@ -116,8 +156,17 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
116
156
|
} | {
|
|
117
157
|
type: "RETRY";
|
|
118
158
|
}, {
|
|
119
|
-
[x: string]: ActorRefFromLogic<PromiseActorLogic<
|
|
159
|
+
[x: string]: ActorRefFromLogic<PromiseActorLogic<FetchConsentResponse, {
|
|
160
|
+
locale?: string;
|
|
161
|
+
}, EventObject>> | ActorRefFromLogic<PromiseActorLogic<FetchDocumentsResponse, void, EventObject>> | ActorRefFromLogic<PromiseActorLogic<FetchCompanyNameResponse, void, EventObject>> | ActorRefFromLogic<PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>> | undefined;
|
|
120
162
|
}, Values<{
|
|
163
|
+
fetchConsent: {
|
|
164
|
+
src: "fetchConsent";
|
|
165
|
+
logic: PromiseActorLogic<FetchConsentResponse, {
|
|
166
|
+
locale?: string;
|
|
167
|
+
}, EventObject>;
|
|
168
|
+
id: string | undefined;
|
|
169
|
+
};
|
|
121
170
|
fetchDocuments: {
|
|
122
171
|
src: "fetchDocuments";
|
|
123
172
|
logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
|
|
@@ -138,14 +187,18 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
138
187
|
type: "setDocuments";
|
|
139
188
|
params: NonReducibleUnknown;
|
|
140
189
|
};
|
|
141
|
-
|
|
142
|
-
type: "
|
|
190
|
+
setConsent: {
|
|
191
|
+
type: "setConsent";
|
|
143
192
|
params: NonReducibleUnknown;
|
|
144
193
|
};
|
|
145
194
|
setError: {
|
|
146
195
|
type: "setError";
|
|
147
196
|
params: NonReducibleUnknown;
|
|
148
197
|
};
|
|
198
|
+
clearError: {
|
|
199
|
+
type: "clearError";
|
|
200
|
+
params: NonReducibleUnknown;
|
|
201
|
+
};
|
|
149
202
|
setSelectedDocument: {
|
|
150
203
|
type: "setSelectedDocument";
|
|
151
204
|
params: NonReducibleUnknown;
|
|
@@ -163,6 +216,10 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
163
216
|
type: "hasDocuments";
|
|
164
217
|
params: unknown;
|
|
165
218
|
};
|
|
219
|
+
hasConsent: {
|
|
220
|
+
type: "hasConsent";
|
|
221
|
+
params: unknown;
|
|
222
|
+
};
|
|
166
223
|
hasCompanyName: {
|
|
167
224
|
type: "hasCompanyName";
|
|
168
225
|
params: unknown;
|
|
@@ -171,9 +228,10 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
171
228
|
type: "isKnownSelection";
|
|
172
229
|
params: unknown;
|
|
173
230
|
};
|
|
174
|
-
}>, "companyNameTimeout", "error" | "idle" | "finished" | "submitting" | "documentsFound" | {
|
|
231
|
+
}>, "companyNameTimeout" | "consentTimeout", "error" | "idle" | "finished" | "submitting" | "documentsFound" | {
|
|
175
232
|
loading: {
|
|
176
233
|
documents: "done" | "fetching";
|
|
234
|
+
consent: "done" | "fetching" | "check";
|
|
177
235
|
company: "done" | "fetching" | "check";
|
|
178
236
|
};
|
|
179
237
|
}, string, IdentityReuseInput, IdentityReuseOutput, EventObject, MetaObject, {
|
|
@@ -181,13 +239,17 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
181
239
|
readonly initial: "idle";
|
|
182
240
|
readonly context: ({ input }: {
|
|
183
241
|
spawn: {
|
|
184
|
-
<TSrc extends "fetchDocuments" | "fetchCompanyName" | "submitDocument">(logic: TSrc, ...[options]: ({
|
|
185
|
-
src: "
|
|
186
|
-
logic: PromiseActorLogic<
|
|
242
|
+
<TSrc extends "fetchConsent" | "fetchDocuments" | "fetchCompanyName" | "submitDocument">(logic: TSrc, ...[options]: ({
|
|
243
|
+
src: "fetchConsent";
|
|
244
|
+
logic: PromiseActorLogic<FetchConsentResponse, {
|
|
245
|
+
locale?: string;
|
|
246
|
+
}, EventObject>;
|
|
187
247
|
id: string | undefined;
|
|
188
248
|
} extends (infer T) ? T extends {
|
|
189
|
-
src: "
|
|
190
|
-
logic: PromiseActorLogic<
|
|
249
|
+
src: "fetchConsent";
|
|
250
|
+
logic: PromiseActorLogic<FetchConsentResponse, {
|
|
251
|
+
locale?: string;
|
|
252
|
+
}, EventObject>;
|
|
191
253
|
id: string | undefined;
|
|
192
254
|
} ? T extends {
|
|
193
255
|
src: TSrc;
|
|
@@ -197,12 +259,12 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
197
259
|
input?: InputFrom<T["logic"]> | undefined;
|
|
198
260
|
syncSnapshot?: boolean;
|
|
199
261
|
} & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
|
|
200
|
-
src: "
|
|
201
|
-
logic: PromiseActorLogic<
|
|
262
|
+
src: "fetchDocuments";
|
|
263
|
+
logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
|
|
202
264
|
id: string | undefined;
|
|
203
265
|
} extends (infer T_1) ? T_1 extends {
|
|
204
|
-
src: "
|
|
205
|
-
logic: PromiseActorLogic<
|
|
266
|
+
src: "fetchDocuments";
|
|
267
|
+
logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
|
|
206
268
|
id: string | undefined;
|
|
207
269
|
} ? T_1 extends {
|
|
208
270
|
src: TSrc;
|
|
@@ -212,12 +274,12 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
212
274
|
input?: InputFrom<T_1["logic"]> | undefined;
|
|
213
275
|
syncSnapshot?: boolean;
|
|
214
276
|
} & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
215
|
-
src: "
|
|
216
|
-
logic: PromiseActorLogic<
|
|
277
|
+
src: "fetchCompanyName";
|
|
278
|
+
logic: PromiseActorLogic<FetchCompanyNameResponse, void, EventObject>;
|
|
217
279
|
id: string | undefined;
|
|
218
280
|
} extends (infer T_2) ? T_2 extends {
|
|
219
|
-
src: "
|
|
220
|
-
logic: PromiseActorLogic<
|
|
281
|
+
src: "fetchCompanyName";
|
|
282
|
+
logic: PromiseActorLogic<FetchCompanyNameResponse, void, EventObject>;
|
|
221
283
|
id: string | undefined;
|
|
222
284
|
} ? T_2 extends {
|
|
223
285
|
src: TSrc;
|
|
@@ -226,7 +288,29 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
226
288
|
systemId?: string;
|
|
227
289
|
input?: InputFrom<T_2["logic"]> | undefined;
|
|
228
290
|
syncSnapshot?: boolean;
|
|
229
|
-
} & { [K_2 in RequiredActorOptions<T_2>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_2>>> : never : never : never)
|
|
291
|
+
} & { [K_2 in RequiredActorOptions<T_2>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_2>>> : never : never : never) | ({
|
|
292
|
+
src: "submitDocument";
|
|
293
|
+
logic: PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>;
|
|
294
|
+
id: string | undefined;
|
|
295
|
+
} extends (infer T_3) ? T_3 extends {
|
|
296
|
+
src: "submitDocument";
|
|
297
|
+
logic: PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>;
|
|
298
|
+
id: string | undefined;
|
|
299
|
+
} ? T_3 extends {
|
|
300
|
+
src: TSrc;
|
|
301
|
+
} ? ConditionalRequired<[options?: ({
|
|
302
|
+
id?: T_3["id"] | undefined;
|
|
303
|
+
systemId?: string;
|
|
304
|
+
input?: InputFrom<T_3["logic"]> | undefined;
|
|
305
|
+
syncSnapshot?: boolean;
|
|
306
|
+
} & { [K_3 in RequiredActorOptions<T_3>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_3>>> : never : never : never)): ActorRefFromLogic<GetConcreteByKey<Values<{
|
|
307
|
+
fetchConsent: {
|
|
308
|
+
src: "fetchConsent";
|
|
309
|
+
logic: PromiseActorLogic<FetchConsentResponse, {
|
|
310
|
+
locale?: string;
|
|
311
|
+
}, EventObject>;
|
|
312
|
+
id: string | undefined;
|
|
313
|
+
};
|
|
230
314
|
fetchDocuments: {
|
|
231
315
|
src: "fetchDocuments";
|
|
232
316
|
logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
|
|
@@ -281,6 +365,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
281
365
|
documents: never[];
|
|
282
366
|
selectedDocumentId: undefined;
|
|
283
367
|
companyName: undefined;
|
|
368
|
+
consent: undefined;
|
|
284
369
|
error: undefined;
|
|
285
370
|
identityShared: false;
|
|
286
371
|
};
|
|
@@ -382,6 +467,45 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
382
467
|
};
|
|
383
468
|
};
|
|
384
469
|
};
|
|
470
|
+
readonly consent: {
|
|
471
|
+
readonly initial: "check";
|
|
472
|
+
readonly states: {
|
|
473
|
+
readonly check: {
|
|
474
|
+
readonly always: readonly [{
|
|
475
|
+
readonly target: "done";
|
|
476
|
+
readonly guard: "hasConsent";
|
|
477
|
+
}, {
|
|
478
|
+
readonly target: "fetching";
|
|
479
|
+
}];
|
|
480
|
+
};
|
|
481
|
+
readonly fetching: {
|
|
482
|
+
readonly invoke: {
|
|
483
|
+
readonly id: "fetchConsent";
|
|
484
|
+
readonly src: "fetchConsent";
|
|
485
|
+
readonly input: ({ context }: {
|
|
486
|
+
context: IdentityReuseContext;
|
|
487
|
+
}) => {
|
|
488
|
+
locale: string | undefined;
|
|
489
|
+
};
|
|
490
|
+
readonly onDone: {
|
|
491
|
+
readonly target: "done";
|
|
492
|
+
readonly actions: "setConsent";
|
|
493
|
+
};
|
|
494
|
+
readonly onError: {
|
|
495
|
+
readonly target: "done";
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
readonly after: {
|
|
499
|
+
readonly consentTimeout: {
|
|
500
|
+
readonly target: "done";
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
readonly done: {
|
|
505
|
+
readonly type: "final";
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
};
|
|
385
509
|
};
|
|
386
510
|
readonly onDone: readonly [{
|
|
387
511
|
readonly target: "documentsFound";
|
|
@@ -487,6 +611,18 @@ type IdentityReuseDocumentsFoundState = {
|
|
|
487
611
|
documents: ReusableDocument[];
|
|
488
612
|
selectedDocumentId: SelectedDocumentId | undefined;
|
|
489
613
|
companyName?: string;
|
|
614
|
+
/**
|
|
615
|
+
* What the organization's consent says, for the "Shared details" sheet:
|
|
616
|
+
* its `text` (when it has one) and its `scopes`, as catalog ids. Left out
|
|
617
|
+
* when the organization has no consent or it didn't load in time, and the
|
|
618
|
+
* sheet then shows its own copy.
|
|
619
|
+
*/
|
|
620
|
+
consent?: IdentityReuseSharedDetails;
|
|
621
|
+
};
|
|
622
|
+
/** The parts of the organization's consent the screen shows. */
|
|
623
|
+
type IdentityReuseSharedDetails = {
|
|
624
|
+
text?: string;
|
|
625
|
+
scopes: string[];
|
|
490
626
|
};
|
|
491
627
|
/** Submitting the chosen document for reuse */
|
|
492
628
|
type IdentityReuseSubmittingState = {
|
|
@@ -605,4 +741,4 @@ declare function createIdentityReuseManagerFromActor(actor: IdentityReuseActor):
|
|
|
605
741
|
};
|
|
606
742
|
type IdentityReuseManager = ReturnType<typeof createIdentityReuseManager>;
|
|
607
743
|
//#endregion
|
|
608
|
-
export {
|
|
744
|
+
export { SubmitResponse as _, createIdentityReuseManagerFromActor as a, SelectedDocumentId as c, FetchConsentResponse as d, FetchDocumentsResponse as f, ReusableDocument as g, IdentityReuseOutput as h, createIdentityReuseManager as i, identityReuseMachine as l, IdentityReuseConsent as m, IdentityReuseSharedDetails as n, IdentityReuseActor as o, IdentityReuseConfig as p, IdentityReuseState as r, SCAN_NEW_DOCUMENT as s, IdentityReuseManager as t, FetchCompanyNameResponse as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
5
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-nBv0KUJC.esm.js";
|
|
6
6
|
//#region src/modules/identity-reuse/identityReuseActor.ts
|
|
7
7
|
/**
|
|
8
8
|
* Creates and starts an IdentityReuse actor.
|
|
@@ -22,7 +22,11 @@ function mapState(snapshot) {
|
|
|
22
22
|
status: "documentsFound",
|
|
23
23
|
documents: context.documents,
|
|
24
24
|
selectedDocumentId: context.selectedDocumentId,
|
|
25
|
-
...context.companyName !== void 0 && { companyName: context.companyName }
|
|
25
|
+
...context.companyName !== void 0 && { companyName: context.companyName },
|
|
26
|
+
...context.consent !== void 0 && { consent: {
|
|
27
|
+
...context.consent.text !== void 0 && { text: context.consent.text },
|
|
28
|
+
scopes: context.consent.scopes
|
|
29
|
+
} }
|
|
26
30
|
};
|
|
27
31
|
if (snapshot.matches("submitting")) return { status: "submitting" };
|
|
28
32
|
if (snapshot.matches("finished")) return {
|