@incodetech/core 0.0.0-dev-20260715-b208c5e1 → 0.0.0-dev-20260715-dcc78bcd
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/{3dAvatarProvider-BYxFCuIv.esm.js → 3dAvatarProvider-D9H4rR6_.esm.js} +811 -880
- package/dist/Actor-iTq7YY48.d.ts +1 -0
- package/dist/{BrowserStorageProvider-CBXGCHnK.esm.js → BrowserStorageProvider-P6aUarE9.esm.js} +1 -2
- package/dist/{BrowserTimerProvider-CHloo0eQ.esm.js → BrowserTimerProvider-BXhgNxLt.esm.js} +1 -2
- package/dist/{BrowserVisibilityObserverProvider-B04zvOXW.esm.js → BrowserVisibilityObserverProvider-sJclps4C.esm.js} +1 -3
- package/dist/{Face2DProvider-TeN1Xqr0.esm.js → Face2DProvider-xWUeSJZI.esm.js} +10 -22
- package/dist/{createFaceAvatar-BjBu2CrU.d.ts → FaceDetectionProvider-BHweGBEM.d.ts} +108 -159
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +23 -0
- package/dist/IStorageCapability-B8IGxCwe.d.ts +131 -0
- package/dist/{ITimerCapability-G7lQg-be.esm.js → ITimerCapability-DgdDzp8G.esm.js} +1 -2
- package/dist/{Manager-DE5DydXZ.d.ts → Manager-CQQ99QOI.d.ts} +1 -0
- package/dist/{MotionSensorProvider-BkHKMCPE.esm.js → MotionSensorProvider-DYvM90IX.esm.js} +1 -2
- package/dist/{OpenViduRecordingProvider-xR5osKzW.esm.js → OpenViduRecordingProvider-Du98qevC.esm.js} +2 -4
- package/dist/{PrivacyLensProvider-CqlsCaJv.esm.js → PrivacyLensProvider-BrYSd1dr.esm.js} +2 -5
- package/dist/StateMachine-EDpYWy0i.d.ts +6 -0
- package/dist/{StreamCanvasCapture-CRk7c7u7.esm.js → StreamCanvasCapture-D2XcXCZ4.esm.js} +2 -4
- package/dist/{WasmUtilProvider-BNQ2PBjG.esm.js → WasmUtilProvider-DAshwHhX.esm.js} +38 -71
- package/dist/{addressSearch-B2NxSpHl.esm.js → addressSearch-DH-IPF-w.esm.js} +10 -21
- package/dist/ae-signature.d.ts +2 -6
- package/dist/ae-signature.esm.js +10 -11
- package/dist/antifraud.d.ts +1 -6
- package/dist/antifraud.esm.js +3 -8
- package/dist/{antifraudManager-C490m0p4.d.ts → antifraudManager-BY36bS12.d.ts} +3 -3
- package/dist/{antifraudManager-C1xnhF2Q.esm.js → antifraudManager-CL2YhiVX.esm.js} +11 -8
- package/dist/{antifraudStateMachine-BQVw46N5.esm.js → antifraudStateMachine-Bf-IiCq7.esm.js} +5 -7
- package/dist/{api-DsbUi7TO.esm.js → api-BDTZNnca.esm.js} +1 -2
- package/dist/{apiError-DkOXfFBu.esm.js → apiError-COvIGYWe.esm.js} +1 -2
- package/dist/authentication.d.ts +2 -19
- package/dist/authentication.esm.js +3 -34
- package/dist/{authenticationManager-DZXQpCjQ.esm.js → authenticationManager-DM7ttL5V.esm.js} +7 -10
- package/dist/{authenticationManager-BD81fnrn.d.ts → authenticationManager-G-k-13Fe.d.ts} +3 -4
- package/dist/{authenticationStateMachine-CJrTbLWU.esm.js → authenticationStateMachine-DiI8jfmO.esm.js} +11 -15
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.esm.js +2 -3
- package/dist/{backCameraStream-DYnfq7Hr.esm.js → backCameraStream-Heg6vA1j.esm.js} +4 -7
- package/dist/browser-DlFgHpoC-DnyrCR8r.esm.js +1513 -0
- package/dist/callback-645_omgz.d.ts +133 -0
- package/dist/{camera-B0yWS33x.esm.js → camera-BmFEyPP_.esm.js} +1 -2
- package/dist/camera.d.ts +1 -2
- package/dist/camera.esm.js +2 -6
- package/dist/{canvas-DsJa51yU.esm.js → canvas-E1zGkel4.esm.js} +1 -2
- package/dist/certificate-issuance.d.ts +34 -39
- package/dist/certificate-issuance.esm.js +4 -11
- package/dist/{certificateIssuanceStateMachine-CpewPqas.esm.js → certificateIssuanceStateMachine-Ce568YfR.esm.js} +7 -11
- package/dist/{clientLifecycle-CCJMDjFe.esm.js → clientLifecycle-DzT65Fvf.esm.js} +23 -29
- package/dist/consent.d.ts +1 -4
- package/dist/consent.esm.js +3 -8
- package/dist/{consentManager-r4MTIoV3.esm.js → consentManager-D3GyyH5u.esm.js} +5 -7
- package/dist/{consentManager-QGuw4zmH.d.ts → consentManager-DLOyIZzt.d.ts} +58 -64
- package/dist/{consentStateMachine-DnqwsZ7o.esm.js → consentStateMachine-Pc3Ez3mV.esm.js} +5 -7
- package/dist/{cpf-B9htWzDt.esm.js → cpf-BIADjddF.esm.js} +1 -2
- package/dist/cpf-ocr.d.ts +1 -5
- package/dist/cpf-ocr.esm.js +2 -8
- package/dist/{cpfOcrManager-RkeZCqSz.d.ts → cpfOcrManager-CQkUAeWO.d.ts} +21 -23
- package/dist/{cpfOcrManager-D6ZQ9kkv.esm.js → cpfOcrManager-Cwm0MesJ.esm.js} +7 -12
- package/dist/createFaceAvatar-BEj18KXi.d.ts +50 -0
- package/dist/{createFaceAvatar-B_v2At2h.esm.js → createFaceAvatar-CwVapQiu.esm.js} +5 -9
- package/dist/cross-document-data-match.d.ts +1 -5
- package/dist/cross-document-data-match.esm.js +2 -8
- package/dist/{crossDocumentDataMatchManager-DoFG_S91.esm.js → crossDocumentDataMatchManager-9rdIO8Qk.esm.js} +12 -12
- package/dist/{crossDocumentDataMatchManager-CdiqxhJm.d.ts → crossDocumentDataMatchManager-Dq8Z3SOg.d.ts} +3 -3
- package/dist/curp-validation.d.ts +1 -11
- package/dist/curp-validation.esm.js +3 -8
- package/dist/{curpValidationManager-07oV78Bn.d.ts → curpValidationManager--HSBTwOy.d.ts} +4 -6
- package/dist/{curpValidationManager-D6jt1Gs9.esm.js → curpValidationManager-C2i9Lzx9.esm.js} +11 -7
- package/dist/{curpValidationStateMachine-Dlw4qfFb.esm.js → curpValidationStateMachine-7i3TD8J2.esm.js} +22 -14
- package/dist/custom-fields.d.ts +2 -5
- package/dist/custom-fields.esm.js +24 -11
- package/dist/custom-watchlist.d.ts +1 -3
- package/dist/custom-watchlist.esm.js +11 -10
- package/dist/{customWatchlistStateMachine-D8w0mNxm.esm.js → customWatchlistStateMachine-D23XTxl2.esm.js} +5 -7
- package/dist/{dateUtils-BW6mBV6p.esm.js → dateUtils-CvG0FvK8.esm.js} +1 -2
- package/dist/{deepsightService-CV1NAkg9.esm.js → deepsightLoader-CQWGVLP0.esm.js} +62 -14
- package/dist/deepsightService-CR-CYdka.d.ts +218 -0
- package/dist/device.d.ts +0 -1
- package/dist/device.esm.js +5 -10
- package/dist/document-capture.d.ts +1 -6
- package/dist/document-capture.esm.js +3 -16
- package/dist/document-upload.d.ts +48 -55
- package/dist/document-upload.esm.js +8 -14
- package/dist/{documentCaptureManager-HNu28khr.d.ts → documentCaptureManager-Biz_PFqs.d.ts} +190 -199
- package/dist/{documentCaptureManager-pufyUaQz.esm.js → documentCaptureManager-DijbJFun.esm.js} +5 -7
- package/dist/{documentCaptureStateMachine-CaJgb_Vn.esm.js → documentCaptureStateMachine-qgsrlcVh.esm.js} +11 -15
- package/dist/dynamic-forms.d.ts +1 -4
- package/dist/dynamic-forms.esm.js +3 -10
- package/dist/{dynamicFormsManager-C3jlNlWK.esm.js → dynamicFormsManager-COik5bJ7.esm.js} +41 -7
- package/dist/{dynamicFormsManager-HQhUJCLg.d.ts → dynamicFormsManager-Dposae2l.d.ts} +3 -4
- package/dist/{dynamicFormsStateMachine-DdpJI6ne.esm.js → dynamicFormsStateMachine-BV-Fn13x.esm.js} +7 -11
- package/dist/ekyb.d.ts +4 -11
- package/dist/ekyb.esm.js +3 -20
- package/dist/{ekybManager-l67BnqxH.esm.js → ekybManager-BTcW4poN.esm.js} +17 -7
- package/dist/{ekybManager-CZUVEWMw.d.ts → ekybManager-CBX0tM04.d.ts} +4 -5
- package/dist/{ekybStateMachine-BmfNaHRF.esm.js → ekybStateMachine-DmZLm35R.esm.js} +16 -25
- package/dist/ekyc.d.ts +2 -7
- package/dist/ekyc.esm.js +3 -11
- package/dist/{ekycManager-ClRqj2rg.d.ts → ekycManager-BFpHbBoT.d.ts} +4 -5
- package/dist/{ekycManager-B_uUa1iN.esm.js → ekycManager-BSMlIpGA.esm.js} +14 -7
- package/dist/{ekycStateMachine-BD8GjdL5.esm.js → ekycStateMachine-a7oP-XWo.esm.js} +140 -201
- package/dist/electronic-signature.d.ts +2 -5
- package/dist/electronic-signature.esm.js +2 -10
- package/dist/{electronicSignatureManager-CzMj-Tjm.esm.js → electronicSignatureManager-DSZu9OHT.esm.js} +9 -14
- package/dist/email.d.ts +1 -5
- package/dist/email.esm.js +3 -10
- package/dist/{emailManager-Lv9BHgel.d.ts → emailManager-CADXW_9X.d.ts} +4 -7
- package/dist/{emailManager-BsynjdWX.esm.js → emailManager-c-mDLieD.esm.js} +76 -12
- package/dist/{emailStateMachine-Z-Jf4qOc.esm.js → emailStateMachine-ChNwY22u.esm.js} +7 -9
- package/dist/{endpoints-CwrFQfW7.esm.js → endpoints-DLQ0g4-R.esm.js} +33 -2
- package/dist/{events-aeCkGlnn.esm.js → events-Dy8PyVO5.esm.js} +4 -168
- package/dist/events.d.ts +1 -9
- package/dist/events.esm.js +2 -4
- package/dist/extensibility.d.ts +30 -42
- package/dist/extensibility.esm.js +29 -87
- package/dist/{externalFetch-hvmz_npP.esm.js → externalFetch-BKBThAUC.esm.js} +2 -4
- package/dist/face-match.d.ts +1 -5
- package/dist/face-match.esm.js +3 -8
- package/dist/{faceCaptureManagerFactory-CGFQg1kl.d.ts → faceCaptureManagerFactory-BWD3O4Eg.d.ts} +50 -14
- package/dist/{faceCaptureManagerFactory-BIH53wvb.esm.js → faceCaptureManagerFactory-CZLSziU3.esm.js} +49 -28
- package/dist/{faceCaptureSetup-shrwrZaK.esm.js → faceCaptureSetup-__lVldUG.esm.js} +12 -15
- package/dist/{faceMatchManager-BrNYVk-p.esm.js → faceMatchManager-B7jlv77Q.esm.js} +24 -7
- package/dist/{faceMatchManager-X2eQo0o-.d.ts → faceMatchManager-CJQG1W1u.d.ts} +4 -4
- package/dist/{faceMatchStateMachine-CbeacEqd.esm.js → faceMatchStateMachine-DD7FxtUj.esm.js} +6 -9
- package/dist/field-comparison.d.ts +1 -4
- package/dist/field-comparison.esm.js +2 -7
- package/dist/{fieldComparisonManager-BxhleGNI.esm.js → fieldComparisonManager-5LlxYad-.esm.js} +6 -11
- package/dist/{fieldComparisonManager-Dg03uIX1.d.ts → fieldComparisonManager-CBvEGxFx.d.ts} +3 -5
- package/dist/fiscal-qr.d.ts +1 -6
- package/dist/fiscal-qr.esm.js +14 -29
- package/dist/flow-events.d.ts +2 -9
- package/dist/flow.d.ts +13 -19
- package/dist/flow.esm.js +109 -34
- package/dist/{flowCompletionService-qf-s8Uxl.esm.js → flowCompletionService-DQSC7Kso.esm.js} +4 -6
- package/dist/{flowServices-CJXaWFlZ.esm.js → flowServices-BQEUaMg6.esm.js} +10 -11
- package/dist/geolocation.d.ts +1 -4
- package/dist/geolocation.esm.js +3 -9
- package/dist/{geolocationManager-CAtyY00b.d.ts → geolocationManager-BWhRzBjk.d.ts} +3 -4
- package/dist/{geolocationManager-4j_DV3jW.esm.js → geolocationManager-D58ehBHU.esm.js} +19 -8
- package/dist/{geolocationStateMachine-BE72KBAX.esm.js → geolocationStateMachine-BorcBNZ6.esm.js} +6 -8
- package/dist/getBrowser-Cb8Zgrgp.esm.js +7 -0
- package/dist/{getDeviceClass-BdgmyOOu.esm.js → getDeviceClass-CeBiEayS.esm.js} +1 -2
- package/dist/{getDeviceClass-DsNb6nEl.esm.js → getDeviceClass-CkgnSJel.esm.js} +3 -5
- package/dist/{getBrowser-CZ66VtC7.esm.js → getParsedUserAgent-pJjATANs.esm.js} +109 -30
- package/dist/government-validation.d.ts +3 -6
- package/dist/government-validation.esm.js +7 -13
- package/dist/{governmentValidationStateMachine-BfZ_WQC0.esm.js → governmentValidationStateMachine-DkakcwTj.esm.js} +8 -11
- package/dist/home.d.ts +14 -22
- package/dist/home.esm.js +3 -8
- package/dist/http.d.ts +0 -1
- package/dist/http.esm.js +2 -4
- package/dist/id-ocr.d.ts +1 -5
- package/dist/id-ocr.esm.js +3 -9
- package/dist/id-verification.d.ts +1 -4
- package/dist/id-verification.esm.js +3 -8
- package/dist/id.d.ts +105 -18
- package/dist/id.esm.js +40 -50
- package/dist/{idCaptureDefaults-Df8XKQ0o.esm.js → idCaptureDefaults-Dzfws4i0.esm.js} +9 -16
- package/dist/{idCaptureManager-Fr9c67Rx.esm.js → idCaptureManager-BGAdNNVq.esm.js} +117 -23
- package/dist/{idCaptureManager-BXG8kVMW.d.ts → idCaptureManager-CSGbGORT.d.ts} +12 -113
- package/dist/{idCaptureStateMachine-CpjwdaYN.esm.js → idCaptureStateMachine-DYgckwCg.esm.js} +56 -195
- package/dist/{idOcrManager-DLF3J2cx.esm.js → idOcrManager-niAg-BE0.esm.js} +4 -7
- package/dist/{idOcrManager-DnhdGuVX.d.ts → idOcrManager-vXa7GdRh.d.ts} +60 -66
- package/dist/{idOcrStateMachine-BPXTUjNY.esm.js → idOcrStateMachine-CpZZL411.esm.js} +13 -18
- package/dist/{idVerificationManager-BD2FO09A.d.ts → idVerificationManager-BB4Pj_N6.d.ts} +31 -35
- package/dist/{idVerificationManager-23kPMn7T.esm.js → idVerificationManager-CujJqsiX.esm.js} +4 -7
- package/dist/{idVerificationStateMachine-C1eMEu_Y.esm.js → idVerificationStateMachine-D-1GlgC5.esm.js} +5 -7
- package/dist/identity-reuse.d.ts +1 -4
- package/dist/identity-reuse.esm.js +3 -8
- package/dist/{identityReuseManager-Ct-9qYpC.esm.js → identityReuseManager-DHfJZTVo.esm.js} +24 -7
- package/dist/{identityReuseManager-DOufEjLa.d.ts → identityReuseManager-aTyLyYrr.d.ts} +38 -43
- package/dist/{identityReuseStateMachine-Cqc-NwEQ.esm.js → identityReuseStateMachine-CM45EBrb.esm.js} +6 -8
- package/dist/index-B8weJxmL.d.ts +1 -0
- package/dist/index-BKOWUhxG.d.ts +258 -0
- package/dist/{index-WMHgnbC1.d.ts → index-CKbmDFNq.d.ts} +160 -165
- package/dist/{index-Bk5nhSg2.d.ts → index-DQ2fdqoI.d.ts} +3 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.esm.js +2 -15
- package/dist/{invokeOnCaptureCallback-Bs09kdY_.esm.js → invokeOnCaptureCallback-B-QfsCQY.esm.js} +2 -4
- package/dist/{lib-DvZ6nVvW.esm.js → lib-DAyUtOTj.esm.js} +1510 -1589
- package/dist/mandatory-consent.d.ts +1 -10
- package/dist/mandatory-consent.esm.js +3 -8
- package/dist/{mandatoryConsentManager-D0qQHcl2.d.ts → mandatoryConsentManager-BlB4bX6_.d.ts} +59 -65
- package/dist/{mandatoryConsentManager-Bh_n0uEP.esm.js → mandatoryConsentManager-CQC-zA4P.esm.js} +4 -7
- package/dist/{mandatoryConsentStateMachine-DYeKH1L7.esm.js → mandatoryConsentStateMachine-BN4Obfl7.esm.js} +5 -7
- package/dist/{mediaRecorderOptions-BIn657lu.esm.js → mediaRecorderOptions-BhSZDDNb.esm.js} +2 -4
- package/dist/{mediapipeShared-B-RiRyLN.esm.js → mediapipeShared-B0iQQ5k7.esm.js} +2 -6
- package/dist/{onDeviceFaceResults-CJuDp67S.esm.js → onDeviceFaceResults-LRTvBL7m.esm.js} +18 -84
- package/dist/openviduLazy-CCDpFWg1.esm.js +10 -0
- package/dist/{otp-D_9QPNbs.d.ts → otp-CEWfTj9v.d.ts} +0 -1
- package/dist/{otp-Bbe_izFJ.esm.js → otp-D2k3PeSL.esm.js} +3 -14
- package/dist/{permissionGuards-CayfS8OY.esm.js → permissionGuards-DguX5vFY.esm.js} +2 -4
- package/dist/{permissionServices-B7lD6fiG.esm.js → permissionServices-DwNCUB2I.esm.js} +4 -9
- package/dist/personhood.d.ts +13 -20
- package/dist/personhood.esm.js +153 -72
- package/dist/phone.d.ts +1 -5
- package/dist/phone.esm.js +3 -10
- package/dist/{phoneManager-85eRUhJD.d.ts → phoneManager-BBU8Lq0O.d.ts} +4 -7
- package/dist/{phoneManager-Byive8Xl.esm.js → phoneManager-KbcmjEeH.esm.js} +82 -12
- package/dist/{phoneStateMachine-BlYF4nKx.esm.js → phoneStateMachine-wDQtaT38.esm.js} +7 -9
- package/dist/{platform-BoeUeUrV.esm.js → platform-wmV7oTAJ.esm.js} +1 -9
- package/dist/qe-signature.d.ts +2 -6
- package/dist/qe-signature.esm.js +10 -11
- package/dist/{recordingService-BzQUrf40.esm.js → recordingService-TuBlOjvH.esm.js} +15 -19
- package/dist/redirect-to-mobile.d.ts +1 -6
- package/dist/redirect-to-mobile.esm.js +3 -10
- package/dist/{redirectToMobileManager-DrxIfZr8.esm.js → redirectToMobileManager-EGXGKftv.esm.js} +25 -8
- package/dist/{redirectToMobileManager-2TtzpSOw.d.ts → redirectToMobileManager-NVQM3o5P.d.ts} +3 -4
- package/dist/{redirectToMobileStateMachine-BetR6r8p.esm.js → redirectToMobileStateMachine-D-8ipBq2.esm.js} +7 -9
- package/dist/rolldown-runtime-FZ4Itg2g.esm.js +42 -0
- package/dist/{runChildModule-FH_tixbR.esm.js → runChildModule-Crz1nHwJ.esm.js} +5 -9
- package/dist/selfie.d.ts +7 -20
- package/dist/selfie.esm.js +40 -46
- package/dist/{selfieManager-CdUnYjmt.esm.js → selfieManager-C4_2DgTF.esm.js} +7 -10
- package/dist/{selfieManager-d7nkO-UP.d.ts → selfieManager-CN8wJ14s.d.ts} +3 -4
- package/dist/{selfieStateMachine-zz4WqziP.esm.js → selfieStateMachine-ODRceav2.esm.js} +15 -20
- package/dist/selfieUploadService-B4LnSIf6.esm.js +62 -0
- package/dist/session-CQ2x2aLl.esm.js +1 -0
- package/dist/session.d.ts +2 -9
- package/dist/session.esm.js +153 -15
- package/dist/sessionInitializer-Cjpnacyg.esm.js +1801 -0
- package/dist/{setup-BxB6QUto.d.ts → setup-CgBvqGWw.d.ts} +2 -4
- package/dist/{setup-DCyhfufM.esm.js → setup-Hyb_Yiuu.esm.js} +126 -18
- package/dist/signature.d.ts +2 -6
- package/dist/signature.esm.js +6 -9
- package/dist/{signatureStateMachine-U8ewxW1t.esm.js → signatureStateMachine-BmKPC5A9.esm.js} +5 -7
- package/dist/spawn-D9jgw9pW.d.ts +1441 -0
- package/dist/{stats-BVy52wLy.esm.js → stats-Bu6bL_CX.esm.js} +3 -5
- package/dist/stats.esm.js +2 -5
- package/dist/topLevelStateName-B5i2avbh.esm.js +41 -0
- package/dist/{tri-Calc36Ny.esm.js → tri-N-xlKhZK.esm.js} +3 -7
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
- package/dist/tri.esm.js +2 -4
- package/dist/trust-graph.d.ts +4 -5
- package/dist/trust-graph.esm.js +13 -9
- package/dist/{types-Db2ooXIu.esm.js → types-BN5RPPIZ.esm.js} +1 -2
- package/dist/{types-ZezaAAbn.d.ts → types-BfgmV7s7.d.ts} +2 -2
- package/dist/{types-NizIIgLD.d.ts → types-BnEHzP1K.d.ts} +3 -5
- package/dist/{types-DCOl8zy6.d.ts → types-Vb4P9ovf.d.ts} +1 -3
- package/dist/{types-C0D4Brd6.d.ts → types-ctqh-iS4.d.ts} +80 -6
- package/dist/{urlUtils-CpiYwn7w.esm.js → urlUtils-D6phjq1-.esm.js} +1 -2
- package/dist/{video-DXf5H9rY.esm.js → video-BtSWtHy1.esm.js} +1 -2
- package/dist/video-selfie.d.ts +10 -15
- package/dist/video-selfie.esm.js +114 -106
- package/dist/{videoSelfieSteps-DAky5sq5.esm.js → videoSelfieSteps-DHcibfYH.esm.js} +1 -2
- package/dist/wasm.d.ts +2 -4
- package/dist/wasm.esm.js +3 -15
- package/dist/watchlist-for-business.d.ts +1 -3
- package/dist/watchlist-for-business.esm.js +9 -9
- package/dist/watchlist.d.ts +1 -3
- package/dist/watchlist.esm.js +11 -10
- package/dist/{watchlistForBusinessStateMachine-Bbn_dcVT.esm.js → watchlistForBusinessStateMachine-BC_-3fJs.esm.js} +5 -7
- package/dist/{watchlistStateMachine-SZ-1xpe4.esm.js → watchlistStateMachine-CL2j3aRl.esm.js} +5 -7
- package/dist/workflow.d.ts +124 -146
- package/dist/workflow.esm.js +75 -80
- package/dist/xstate-actors.esm-CtI5S0f4.esm.js +310 -0
- package/dist/{xstate.esm-nY3M5UYm.esm.js → xstate.esm-Cf4e0Cfd.esm.js} +136 -610
- package/package.json +2 -2
- package/dist/Actor-CdjYVucI.d.ts +0 -2
- package/dist/FaceDetectionProvider-D-zCGbS9.d.ts +0 -119
- package/dist/IWasmUtilCapability-CuiW_6d1.d.ts +0 -150
- package/dist/StateMachine-BTkXO3Na.d.ts +0 -2
- package/dist/StreamCanvasCapture-D9u4hwul.d.ts +0 -42
- package/dist/ae-signature-eQWjmzE8.esm.js +0 -12
- package/dist/browser-DlFgHpoC-BTB6a7n-.esm.js +0 -1425
- package/dist/browserSimulation-CQjwFn0Z.esm.js +0 -1256
- package/dist/canvas-COIxuirO.d.ts +0 -112
- package/dist/chunk-CIKcdghV.esm.js +0 -49
- package/dist/deepsightLoader-BppeThau.esm.js +0 -67
- package/dist/deepsightService-mkIAy_Eq.d.ts +0 -69
- package/dist/http-C3Pq6njG.esm.js +0 -0
- package/dist/index-BD6ZVw2f.d.ts +0 -93
- package/dist/openviduLazy-CuGqb-8Q.esm.js +0 -12
- package/dist/openviduLazy-DNb0xHJp.esm.js +0 -3
- package/dist/qe-signature-D9XM2d-F.esm.js +0 -12
- package/dist/session--C2lbjK5.esm.js +0 -152
- package/dist/sessionInitializer-Dx_oPfHP.esm.js +0 -548
- package/dist/tri.esm-BDhptA8x.esm.js +0 -2593
- /package/dist/{IVisibilityObserverCapability-C3tAkSfF.d.ts → IVisibilityObserverCapability-D4tvIB5v.d.ts} +0 -0
- /package/dist/{camera-DRH7co71.d.ts → camera-9wWD-pwg.d.ts} +0 -0
- /package/dist/{flowCompletionService-DGcE_OvO.d.ts → flowCompletionService-BlAHsKyv.d.ts} +0 -0
- /package/dist/{types-DawqnFVn.d.ts → types-BT-aiBYV.d.ts} +0 -0
- /package/dist/{types-B6KIOo6S.d.ts → types-Bk_6dmDa.d.ts} +0 -0
- /package/dist/{warmup-CE9Fhs6N.d.ts → warmup-Dv2alr2-.d.ts} +0 -0
package/dist/home.esm.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import { l as createManager, s as createActor, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
4
|
-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { c as createManager, o as createActor, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
3
|
//#region src/modules/home/homeStateMachine.ts
|
|
6
4
|
const homeMachine = setup({ types: {
|
|
7
5
|
context: {},
|
|
@@ -20,13 +18,11 @@ const homeMachine = setup({ types: {
|
|
|
20
18
|
finished: { type: "final" }
|
|
21
19
|
}
|
|
22
20
|
});
|
|
23
|
-
|
|
24
21
|
//#endregion
|
|
25
22
|
//#region src/modules/home/homeActor.ts
|
|
26
23
|
function createHomeActor(options = {}) {
|
|
27
24
|
return createActor(homeMachine, { input: { config: options.config ?? {} } }).start();
|
|
28
25
|
}
|
|
29
|
-
|
|
30
26
|
//#endregion
|
|
31
27
|
//#region src/modules/home/homeManager.ts
|
|
32
28
|
function mapState(snapshot) {
|
|
@@ -56,6 +52,5 @@ function createHomeManager(options = {}) {
|
|
|
56
52
|
instrumentation: createManagerInstrumentation(eventModuleNames.home)
|
|
57
53
|
});
|
|
58
54
|
}
|
|
59
|
-
|
|
60
55
|
//#endregion
|
|
61
|
-
export { createHomeManager, homeMachine };
|
|
56
|
+
export { createHomeManager, homeMachine };
|
package/dist/http.d.ts
CHANGED
package/dist/http.esm.js
CHANGED
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./Manager-DE5DydXZ.js";
|
|
3
|
-
import "./Actor-CdjYVucI.js";
|
|
4
|
-
import { a as IdOcrActor, c as IdOcrConfig, d as UpdateOcrDataParams, f as ValidationRule, i as createIdOcrManagerFromActor, l as OcrData, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager, u as OcrFieldConfig } from "./idOcrManager-DnhdGuVX.js";
|
|
5
|
-
|
|
1
|
+
import { a as IdOcrActor, c as IdOcrConfig, d as UpdateOcrDataParams, f as ValidationRule, i as createIdOcrManagerFromActor, l as OcrData, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager, u as OcrFieldConfig } from "./idOcrManager-vXa7GdRh.js";
|
|
6
2
|
//#region src/modules/id-ocr/idOcrFields.d.ts
|
|
7
3
|
declare const OCR_FIELDS: OcrFieldConfig[];
|
|
8
4
|
declare const getOcrFields: (config: Pick<IdOcrConfig, "flowId">) => OcrFieldConfig[];
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
|
|
4
|
-
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
5
|
-
import "./cpf-B9htWzDt.esm.js";
|
|
6
|
-
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-BPXTUjNY.esm.js";
|
|
7
|
-
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-DLF3J2cx.esm.js";
|
|
8
|
-
|
|
9
|
-
export { CPFFlowIds, MIN_AGE, OCR_FIELDS, createIdOcrManager, createIdOcrManagerFromActor, getOcrFields, idOcrStateMachine };
|
|
1
|
+
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-CpZZL411.esm.js";
|
|
2
|
+
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-niAg-BE0.esm.js";
|
|
3
|
+
export { CPFFlowIds, MIN_AGE, OCR_FIELDS, createIdOcrManager, createIdOcrManagerFromActor, getOcrFields, idOcrStateMachine };
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./Manager-DE5DydXZ.js";
|
|
3
|
-
import "./Actor-CdjYVucI.js";
|
|
4
|
-
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, o as idVerificationMachine, r as createIdVerificationManager, s as IdVerificationConfig, t as IdVerificationManager } from "./idVerificationManager-BD2FO09A.js";
|
|
1
|
+
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, o as idVerificationMachine, r as createIdVerificationManager, s as IdVerificationConfig, t as IdVerificationManager } from "./idVerificationManager-BB4Pj_N6.js";
|
|
5
2
|
export { type IdVerificationActor, type IdVerificationConfig, type IdVerificationManager, type IdVerificationState, createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
|
|
4
|
-
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
5
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-C1eMEu_Y.esm.js";
|
|
6
|
-
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-23kPMn7T.esm.js";
|
|
7
|
-
|
|
8
|
-
export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|
|
1
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-D-1GlgC5.esm.js";
|
|
2
|
+
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-CujJqsiX.esm.js";
|
|
3
|
+
export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|
package/dist/id.d.ts
CHANGED
|
@@ -1,20 +1,107 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import { t as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
+
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
3
|
+
import { t as DeepsightService } from "./deepsightService-CR-CYdka.js";
|
|
4
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
|
|
5
|
+
import { A as IdCapturedImageData, B as MANUAL_UPLOAD_MAX_RETRIES, C as IdCaptureDependencies, D as IdCaptureMode, E as IdCaptureInput, F as RecordingSession, G as IIdCaptureCapability, H as ManualUploadSide, I as UploadIdResponse, K as IdCaptureSettings, L as IAnalyticsCapability, M as IdError, N as IdErrorCode, O as IdCaptureOnlyConfig, P as IdFlowStep, R as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, S as IdCaptureContext, T as IdCaptureGeometry, U as ManualUploadTab, V as ManualUploadContext, W as DetectionOrientation, _ as CapturedImage, a as CreateIdCaptureOnlyActorOptions, b as ID_ERROR_CODES, c as IdCaptureOnlyMachine, d as IdCaptureActor, f as createIdCaptureActor, g as CaptureOnlyResponse, h as CaptureIdResponse, j as IdDocumentType, k as IdCaptureThresholds, l as idCaptureOnlyMachine, m as idCaptureMachine, n as IdCaptureManager, o as IdCaptureOnlyActor, p as IdCaptureMachine, r as IdCaptureState, s as createIdCaptureOnlyActor, t as createIdCaptureManager, u as CreateIdCaptureActorOptions, v as DetectionArea, w as IdCaptureEvent, x as IdCaptureConfig, y as DetectionStatus, z as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES } from "./idCaptureManager-CSGbGORT.js";
|
|
6
|
+
//#region src/modules/id/idCaptureServices.d.ts
|
|
7
|
+
type IdCaptureInitResult = {
|
|
8
|
+
stream: CameraStream;
|
|
9
|
+
provider: IIdCaptureCapability;
|
|
10
|
+
captureResolution?: string;
|
|
11
|
+
cameraFallbackLevel?: number;
|
|
12
|
+
};
|
|
13
|
+
type InitializeIdCaptureParams = {
|
|
14
|
+
config: IdCaptureConfig;
|
|
15
|
+
deepsightService?: DeepsightService;
|
|
16
|
+
};
|
|
17
|
+
declare function initializeIdCapture(params: InitializeIdCaptureParams): Promise<IdCaptureInitResult>;
|
|
18
|
+
declare function stopStream(stream: CameraStream): void;
|
|
19
|
+
type UploadIdImageParams = {
|
|
20
|
+
image: string;
|
|
21
|
+
type: 'front' | 'back';
|
|
22
|
+
sendBase64?: boolean;
|
|
23
|
+
isSecondId?: boolean;
|
|
24
|
+
onlyFront?: boolean;
|
|
25
|
+
glare?: number;
|
|
26
|
+
sharpness?: number;
|
|
27
|
+
shouldSkipGlareBack?: boolean;
|
|
28
|
+
shouldSkipGlareFront?: boolean;
|
|
29
|
+
captureType?: string;
|
|
30
|
+
ageAssurance?: boolean;
|
|
31
|
+
onProgress?: (progress: number) => void;
|
|
32
|
+
metadata?: string;
|
|
33
|
+
signal?: AbortSignal;
|
|
34
|
+
analyticsProvider?: IAnalyticsCapability;
|
|
35
|
+
imageData?: ImageData;
|
|
36
|
+
/**
|
|
37
|
+
* [ENG-44176] When `false`, attaches `extractIdFace=false` as a query param
|
|
38
|
+
* to `POST /omni/add/front-id/v2` so the backend skips biometric face
|
|
39
|
+
* extraction. Forwarded only for `type === 'front'`. Omitted / `true` is a
|
|
40
|
+
* no-op on the wire (backend default is extraction on).
|
|
41
|
+
*/
|
|
42
|
+
extractIdFace?: boolean;
|
|
43
|
+
};
|
|
44
|
+
type ValidationError = {
|
|
45
|
+
error: boolean;
|
|
46
|
+
message: string;
|
|
47
|
+
messageDescription?: string;
|
|
48
|
+
errorKey: IdErrorCode;
|
|
49
|
+
};
|
|
50
|
+
declare function validateUploadResponse(response: UploadIdResponse & {
|
|
51
|
+
failReason?: string;
|
|
52
|
+
side?: 'front' | 'back';
|
|
53
|
+
}, sessionState?: {
|
|
54
|
+
skipGlareFront?: boolean;
|
|
55
|
+
skipGlareBack?: boolean;
|
|
56
|
+
}): ValidationError | undefined;
|
|
57
|
+
declare function uploadIdImage(params: UploadIdImageParams): Promise<CaptureIdResponse>;
|
|
58
|
+
type StartRecordingParams = {
|
|
59
|
+
config: IdCaptureConfig;
|
|
60
|
+
stream: CameraStream;
|
|
61
|
+
existing?: RecordingSession;
|
|
62
|
+
type: 'frontId' | 'backId';
|
|
63
|
+
};
|
|
64
|
+
declare function preloadIdRecordingProvider(config: IdCaptureConfig): void;
|
|
65
|
+
declare function startRecordingSession(params: StartRecordingParams): Promise<RecordingSession | undefined>;
|
|
66
|
+
declare function stopRecording(session: RecordingSession): void;
|
|
67
|
+
declare function processId(isSecondId?: boolean, queueName?: string, signal?: AbortSignal): Promise<{
|
|
68
|
+
isDocumentExpired: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
type UploadManualIdFileParams = {
|
|
71
|
+
side: 'front' | 'back' | 'passport';
|
|
72
|
+
/**
|
|
73
|
+
* Raw base64 payload (no `data:<mime>;base64,` prefix). Callers must strip
|
|
74
|
+
* the data-URL prefix — the v2 backend rejects data URLs with
|
|
75
|
+
* `IllegalArgumentException: Illegal base64 character 3a`.
|
|
76
|
+
*/
|
|
77
|
+
base64Image: string;
|
|
78
|
+
retry?: boolean;
|
|
79
|
+
onlyFront?: boolean;
|
|
80
|
+
signal?: AbortSignal;
|
|
81
|
+
isSecondId?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* [ENG-44176] When `false`, attaches `extractIdFace=false` to the upload
|
|
84
|
+
* so the backend skips biometric face extraction. Forwarded only for the
|
|
85
|
+
* `front` and `passport` sides; back uploads ignore it. Omitted / `true`
|
|
86
|
+
* is a no-op on the wire.
|
|
87
|
+
*/
|
|
88
|
+
extractIdFace?: boolean;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Upload a user-selected image as front / back / passport ID.
|
|
92
|
+
*
|
|
93
|
+
* Uses the same request shape as the live-camera path (`uploadIdImage`):
|
|
94
|
+
* JSON body `{ base64Image }` with default application/json Content-Type,
|
|
95
|
+
* `captureType=UPLOAD` query param, `retry=true` when retrying.
|
|
96
|
+
* Back is POSTed to `/omni/add/back-id/v2` (or `/omni/add/back-second-id/v2`
|
|
97
|
+
* when `isSecondId`); front and passport go to `/omni/add/front-id/v2` (or
|
|
98
|
+
* `/omni/add/front-second-id/v2` when `isSecondId`).
|
|
99
|
+
*
|
|
100
|
+
* The v2 endpoints reject raw `image/jpeg` bodies with 415, so the caller
|
|
101
|
+
* must convert the File to base64 before calling this service.
|
|
102
|
+
*/
|
|
103
|
+
declare function uploadManualIdFile(params: UploadManualIdFileParams): Promise<UploadIdResponse>;
|
|
104
|
+
//#endregion
|
|
18
105
|
//#region src/modules/id/idCaptureOnlyManager.d.ts
|
|
19
106
|
type IdCaptureOnlyManager = IdCaptureManager;
|
|
20
107
|
/**
|
|
@@ -34,4 +121,4 @@ declare function createIdCaptureOnlyManagerFromActor(actor: IdCaptureOnlyActor,
|
|
|
34
121
|
*/
|
|
35
122
|
declare function createIdCaptureOnlyManager(options: CreateIdCaptureOnlyActorOptions): IdCaptureOnlyManager;
|
|
36
123
|
//#endregion
|
|
37
|
-
export { CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DetectionArea, DetectionOrientation, DetectionStatus, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig,
|
|
124
|
+
export { type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DetectionArea, type DetectionOrientation, DetectionStatus, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, type ManualUploadContext, type ManualUploadSide, type ManualUploadTab, type PermissionResult, type PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, UploadManualIdFileParams, ValidationError, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
package/dist/id.esm.js
CHANGED
|
@@ -1,40 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./getBrowser-CZ66VtC7.esm.js";
|
|
9
|
-
import "./browserSimulation-CQjwFn0Z.esm.js";
|
|
10
|
-
import "./platform-BoeUeUrV.esm.js";
|
|
11
|
-
import "./tri-Calc36Ny.esm.js";
|
|
12
|
-
import { a as fromPromise, r as assign, s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
13
|
-
import "./apiError-DkOXfFBu.esm.js";
|
|
14
|
-
import "./BrowserVisibilityObserverProvider-B04zvOXW.esm.js";
|
|
15
|
-
import "./MotionSensorProvider-BkHKMCPE.esm.js";
|
|
16
|
-
import "./permissionServices-B7lD6fiG.esm.js";
|
|
17
|
-
import "./camera-B0yWS33x.esm.js";
|
|
18
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CBXGCHnK.esm.js";
|
|
19
|
-
import "./onDeviceFaceResults-CJuDp67S.esm.js";
|
|
20
|
-
import "./ITimerCapability-G7lQg-be.esm.js";
|
|
21
|
-
import "./canvas-DsJa51yU.esm.js";
|
|
22
|
-
import "./backCameraStream-DYnfq7Hr.esm.js";
|
|
23
|
-
import "./video-DXf5H9rY.esm.js";
|
|
24
|
-
import "./getDeviceClass-BdgmyOOu.esm.js";
|
|
25
|
-
import "./deepsightService-CV1NAkg9.esm.js";
|
|
26
|
-
import "./getDeviceClass-DsNb6nEl.esm.js";
|
|
27
|
-
import "./types-Db2ooXIu.esm.js";
|
|
28
|
-
import "./StreamCanvasCapture-CRk7c7u7.esm.js";
|
|
29
|
-
import "./permissionGuards-CayfS8OY.esm.js";
|
|
30
|
-
import "./recordingService-BzQUrf40.esm.js";
|
|
31
|
-
import "./mediaRecorderOptions-BIn657lu.esm.js";
|
|
32
|
-
import "./session--C2lbjK5.esm.js";
|
|
33
|
-
import { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-CpjwdaYN.esm.js";
|
|
34
|
-
import "./idCaptureDefaults-Df8XKQ0o.esm.js";
|
|
35
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-Fr9c67Rx.esm.js";
|
|
36
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-Bs09kdY_.esm.js";
|
|
37
|
-
|
|
1
|
+
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
5
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, h as MANUAL_UPLOAD_MAX_RETRIES, i as preloadIdRecordingProvider, l as uploadIdImage, m as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, o as startRecordingSession, p as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, r as initializeIdCapture, s as stopRecording, t as idCaptureMachine, u as uploadManualIdFile } from "./idCaptureStateMachine-DYgckwCg.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BGAdNNVq.esm.js";
|
|
7
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
|
|
38
8
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
39
9
|
function buildSubImage(canvas) {
|
|
40
10
|
if (!canvas) return void 0;
|
|
@@ -82,15 +52,38 @@ async function finalizeIdCaptureOnly(input, signal) {
|
|
|
82
52
|
croppedImage: buildSubImage(input.croppedCanvas ?? null)
|
|
83
53
|
};
|
|
84
54
|
}
|
|
85
|
-
|
|
55
|
+
/**
|
|
56
|
+
* ID capture state machine variant for the captureOnly flow. Shares the full
|
|
57
|
+
* base ID-capture state tree (chooser, tutorial, permissions, capture,
|
|
58
|
+
* front/back finished, processing, finished); only the upload, process, and
|
|
59
|
+
* recording steps are local instead of remote.
|
|
60
|
+
*/
|
|
61
|
+
const idCaptureOnlyMachine = idCaptureMachine.provide({
|
|
86
62
|
actors: {
|
|
63
|
+
/**
|
|
64
|
+
* "Upload" becomes local finalize. Returns the rich payload typed as
|
|
65
|
+
* `CaptureIdResponse` so the base machine's inline `assign` continues to
|
|
66
|
+
* work; the variant's overridden `storeCapturedImage` action then routes
|
|
67
|
+
* the payload into `captureOnlyImages` keyed by the current side.
|
|
68
|
+
*/
|
|
87
69
|
uploadIdImage: fromPromise(async ({ input, signal }) => {
|
|
88
70
|
return await finalizeIdCaptureOnly(input, signal);
|
|
89
71
|
}),
|
|
72
|
+
/** No backend processing in captureOnly. */
|
|
90
73
|
processId: fromPromise(async () => ({ isDocumentExpired: false })),
|
|
74
|
+
/**
|
|
75
|
+
* No recording session in captureOnly: no backend session, no video
|
|
76
|
+
* upload, no OpenVidu connection. The payload surfaced via `onCapture`
|
|
77
|
+
* does not include any recording artifacts.
|
|
78
|
+
*/
|
|
91
79
|
startRecording: fromPromise(async () => void 0)
|
|
92
80
|
},
|
|
93
|
-
actions: {
|
|
81
|
+
actions: {
|
|
82
|
+
/**
|
|
83
|
+
* Routes the rich payload from `uploadIdImage` into `captureOnlyImages`
|
|
84
|
+
* keyed by side instead of the regular `capturedImages` slot.
|
|
85
|
+
*/
|
|
86
|
+
storeCapturedImage: assign(({ context, event }) => {
|
|
94
87
|
if (!("output" in event) || !context.currentMode) return { captureOnlyImages: context.captureOnlyImages };
|
|
95
88
|
const image = event.output;
|
|
96
89
|
const side = context.currentMode === "back" ? "back" : "front";
|
|
@@ -104,6 +97,13 @@ const _idCaptureOnlyMachine = idCaptureMachine.provide({
|
|
|
104
97
|
}) },
|
|
105
98
|
guards: {
|
|
106
99
|
hasUploadValidationError: () => false,
|
|
100
|
+
/**
|
|
101
|
+
* The base guard relies on the backend's `uploadResponse.skipBackIdCapture`
|
|
102
|
+
* to decide whether to skip back capture. CaptureOnly has no backend
|
|
103
|
+
* response, so the variant honors `config.onlyFront` directly. Other
|
|
104
|
+
* back-skip signals (`onlyBack`, `usSmartCapture`, `currentMode`) match
|
|
105
|
+
* the base behavior.
|
|
106
|
+
*/
|
|
107
107
|
shouldContinueToBack: ({ context }) => {
|
|
108
108
|
if (context.currentMode !== "front" && context.currentMode !== "passport") return false;
|
|
109
109
|
if (context.config.onlyFront) return false;
|
|
@@ -113,14 +113,6 @@ const _idCaptureOnlyMachine = idCaptureMachine.provide({
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
|
-
/**
|
|
117
|
-
* ID capture state machine variant for the captureOnly flow. Shares the full
|
|
118
|
-
* base ID-capture state tree (chooser, tutorial, permissions, capture,
|
|
119
|
-
* front/back finished, processing, finished); only the upload, process, and
|
|
120
|
-
* recording steps are local instead of remote.
|
|
121
|
-
*/
|
|
122
|
-
const idCaptureOnlyMachine = _idCaptureOnlyMachine;
|
|
123
|
-
|
|
124
116
|
//#endregion
|
|
125
117
|
//#region src/modules/id/idCaptureOnlyActor.ts
|
|
126
118
|
/**
|
|
@@ -163,7 +155,6 @@ function createIdCaptureOnlyActor(options) {
|
|
|
163
155
|
dependencies
|
|
164
156
|
} }).start();
|
|
165
157
|
}
|
|
166
|
-
|
|
167
158
|
//#endregion
|
|
168
159
|
//#region src/modules/id/idCaptureOnlyManager.ts
|
|
169
160
|
/**
|
|
@@ -214,6 +205,5 @@ function createIdCaptureOnlyManagerFromActor(actor, config, visibilityObserver)
|
|
|
214
205
|
function createIdCaptureOnlyManager(options) {
|
|
215
206
|
return createIdCaptureOnlyManagerFromActor(createIdCaptureOnlyActor(options), options.config);
|
|
216
207
|
}
|
|
217
|
-
|
|
218
208
|
//#endregion
|
|
219
|
-
export { ID_ERROR_CODES, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
|
209
|
+
export { ID_ERROR_CODES, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { a as mlWasmJSApi_default,
|
|
2
|
-
import { t as IncodeCanvas } from "./canvas-
|
|
3
|
-
|
|
1
|
+
import { a as mlWasmJSApi_default, n as BaseWasmProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
+
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
4
3
|
//#region ../infra/src/providers/wasm/IdCaptureProvider.ts
|
|
5
4
|
var IdCaptureProvider = class extends BaseWasmProvider {
|
|
6
5
|
constructor() {
|
|
7
|
-
super(
|
|
6
|
+
super(0);
|
|
8
7
|
this.lastProcessResult = null;
|
|
9
8
|
this.capturedCanvas = null;
|
|
10
9
|
this.originalCapturedCanvas = null;
|
|
11
10
|
}
|
|
12
11
|
async initialize(config) {
|
|
13
12
|
if (config.videoSelfie === true) {
|
|
14
|
-
this.pipelineType =
|
|
13
|
+
this.pipelineType = 2;
|
|
15
14
|
await this.initializeBase(config, "videoSelfieId");
|
|
16
15
|
} else await this.initializeBase(config, "idCapture");
|
|
17
16
|
}
|
|
@@ -39,13 +38,13 @@ var IdCaptureProvider = class extends BaseWasmProvider {
|
|
|
39
38
|
let wasmModelType;
|
|
40
39
|
switch (modelType) {
|
|
41
40
|
case "v1":
|
|
42
|
-
wasmModelType =
|
|
41
|
+
wasmModelType = 0;
|
|
43
42
|
break;
|
|
44
43
|
case "v2":
|
|
45
|
-
wasmModelType =
|
|
44
|
+
wasmModelType = 1;
|
|
46
45
|
break;
|
|
47
46
|
case "v3":
|
|
48
|
-
wasmModelType =
|
|
47
|
+
wasmModelType = 2;
|
|
49
48
|
break;
|
|
50
49
|
default: throw new Error(`Unknown model type: ${modelType}`);
|
|
51
50
|
}
|
|
@@ -57,7 +56,7 @@ var IdCaptureProvider = class extends BaseWasmProvider {
|
|
|
57
56
|
async processFrame(image) {
|
|
58
57
|
const result = await this.processFrameWasm(image);
|
|
59
58
|
const pipelineType = this.getPipelineType();
|
|
60
|
-
if (result && (pipelineType ===
|
|
59
|
+
if (result && (pipelineType === 0 || pipelineType === 2)) this.lastProcessResult = result;
|
|
61
60
|
else this.lastProcessResult = null;
|
|
62
61
|
}
|
|
63
62
|
/**
|
|
@@ -147,7 +146,6 @@ var IdCaptureProvider = class extends BaseWasmProvider {
|
|
|
147
146
|
this.originalCapturedCanvas = null;
|
|
148
147
|
}
|
|
149
148
|
};
|
|
150
|
-
|
|
151
149
|
//#endregion
|
|
152
150
|
//#region ../infra/src/wasm/idCaptureDefaults.ts
|
|
153
151
|
/**
|
|
@@ -179,10 +177,5 @@ const DEFAULT_ID_CAPTURE_GEOMETRY = {
|
|
|
179
177
|
widthDown: 110,
|
|
180
178
|
widthUp: 205
|
|
181
179
|
};
|
|
182
|
-
/**
|
|
183
|
-
* Default model version for ID capture.
|
|
184
|
-
*/
|
|
185
|
-
const DEFAULT_ID_CAPTURE_MODEL_VERSION = "v2";
|
|
186
|
-
|
|
187
180
|
//#endregion
|
|
188
|
-
export {
|
|
181
|
+
export { DEFAULT_ID_CAPTURE_THRESHOLDS as n, IdCaptureProvider as r, DEFAULT_ID_CAPTURE_GEOMETRY as t };
|
|
@@ -1,10 +1,105 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
|
|
5
|
+
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DwNCUB2I.esm.js";
|
|
6
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
7
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-DYgckwCg.esm.js";
|
|
8
|
+
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
9
|
+
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
10
|
+
function isHoldingState(value) {
|
|
11
|
+
if (value === "holding") return true;
|
|
12
|
+
if (typeof value !== "object" || value === null) return false;
|
|
13
|
+
const uploadingState = value.uploading;
|
|
14
|
+
if (uploadingState === "holding") return true;
|
|
15
|
+
if (typeof uploadingState === "object" && uploadingState !== null) return Object.prototype.hasOwnProperty.call(uploadingState, "holding");
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Maps a Digital ID Upload child-machine snapshot to the exact Figma
|
|
20
|
+
* "Tracked Events" screen name. Source: Upload Digital ID Figma file
|
|
21
|
+
* (`https://www.figma.com/design/wxFsHRvllern4VnjRqM4JO/Upload-Digital-ID---Latest-Design?node-id=25911-4095`).
|
|
22
|
+
*
|
|
23
|
+
* Family is `uploadDigitalid.*` — emitted cross-family under the parent
|
|
24
|
+
* `idCapture` module token. Returns Figma-verbatim strings which the
|
|
25
|
+
* adapter emits as-is on `event.screen` (e.g.
|
|
26
|
+
* `uploadDigitalid.<section>.<state>`). See
|
|
27
|
+
* `docs/patterns/INSTRUMENTATION.md`.
|
|
28
|
+
*/
|
|
29
|
+
function mapDigitalIdScreenName(value, failReason) {
|
|
30
|
+
if (value === "tutorial") return "uploadDigitalid.tutorial.default";
|
|
31
|
+
if (value === "selecting" || value === "reviewing") return "uploadDigitalid.review.default";
|
|
32
|
+
if (value === "uploading" || isHoldingState(value)) return "uploadDigitalid.analyzing.default";
|
|
33
|
+
if (value === "success") return "uploadDigitalid.success.default";
|
|
34
|
+
if (value === "fileTooLarge") return "uploadDigitalid.error.filetoolarge";
|
|
35
|
+
if (value === "error") {
|
|
36
|
+
if (failReason !== null && TERMINAL_REASONS.has(failReason)) return "uploadDigitalid.error.notaccepted";
|
|
37
|
+
return "uploadDigitalid.error.default";
|
|
38
|
+
}
|
|
39
|
+
return "uploadDigitalid.review.default";
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/modules/id/manualUpload/instrumentation.ts
|
|
43
|
+
/**
|
|
44
|
+
* Maps an ID Manual Upload child-machine snapshot to the exact Figma
|
|
45
|
+
* "Tracked Events" screen name. Source: ID Manual Upload Figma file
|
|
46
|
+
* (`https://www.figma.com/design/WCx6d4zXG5nu946mu0KZNO/ID-Manual-Upload---Latest-Design?node-id=2462-18986`).
|
|
47
|
+
*
|
|
48
|
+
* Family is `IDmanual.*` — emitted cross-family under the parent
|
|
49
|
+
* `idCapture` module token (same precedent as `uploadDigitalid.*` from
|
|
50
|
+
* the digital-upload sub-flow). Manual upload has no standalone manager
|
|
51
|
+
* or module token of its own.
|
|
52
|
+
*
|
|
53
|
+
* The mapper returns Figma-verbatim strings (e.g.
|
|
54
|
+
* `'IDmanual.upload.uploadedFrontandBack'`) which the adapter emits as-is
|
|
55
|
+
* on `event.screen`. See `docs/patterns/INSTRUMENTATION.md`.
|
|
56
|
+
*
|
|
57
|
+
* In-scope Figma screens (driven from child SM state + context):
|
|
58
|
+
*
|
|
59
|
+
* - `IDmanual.upload.default` — selecting, ID tab, no front file yet
|
|
60
|
+
* - `IDmanual.upload.uploadedFront` — selecting, ID tab, front uploaded,
|
|
61
|
+
* back still needed
|
|
62
|
+
* - `IDmanual.upload.uploadedFrontandBack` — selecting, ID tab, both
|
|
63
|
+
* sides uploaded (or `onlyFront`/`skipBackFromServer` short-circuit)
|
|
64
|
+
* - `IDmanual.upload.passport` — selecting, passport tab, no file
|
|
65
|
+
* - `IDmanual.upload.uploadedPassport` — selecting, passport tab,
|
|
66
|
+
* passport uploaded
|
|
67
|
+
* - `IDmanual.error.document` — selecting, with a populated
|
|
68
|
+
* `errorMessage`
|
|
69
|
+
*
|
|
70
|
+
* Figma screens intentionally NOT mapped here (parent-level surfaces or
|
|
71
|
+
* shared with other families):
|
|
72
|
+
*
|
|
73
|
+
* - `IDmanual.documentchooser.default` / `IDmanual.howtoverify` —
|
|
74
|
+
* the chooser and the "how to verify" tutorial are PARENT-LEVEL
|
|
75
|
+
* `idCapture` surfaces (one shared React component, fired BEFORE the
|
|
76
|
+
* user picks manual-vs-digital). The Upload Digital ID canvas
|
|
77
|
+
* describes the same physical pixels under its own family name.
|
|
78
|
+
* Decision (Option A, recorded in `.cursor/commands/sync-events.md`):
|
|
79
|
+
* keep emitting the neutral parent names `idCapture.documentchooser`
|
|
80
|
+
* and `idCapture.tutorial.{front,back,passport}` and treat the
|
|
81
|
+
* per-canvas Figma names as design-side aliases. Per-flow attribution
|
|
82
|
+
* would require a `selectedDocumentType`-aware override at the parent
|
|
83
|
+
* dispatcher — explicitly NOT shipped here.
|
|
84
|
+
* - `digitalID.success.default` — appears on the canvas for reference,
|
|
85
|
+
* but the actual success surface is emitted by `mapDigitalIdScreenName`
|
|
86
|
+
* as `uploadDigitalid.success.default`. Manual upload has no dedicated
|
|
87
|
+
* success screen; `finished` returns control to the parent SM.
|
|
88
|
+
*
|
|
89
|
+
* Returns `undefined` for transient (`uploadingFront`/`uploadingBack`/
|
|
90
|
+
* `uploadingPassport`/`checkRetries`) and terminal (`retriesExhausted`/
|
|
91
|
+
* `exhausted`/`finished`) states — the parent dispatcher falls back to
|
|
92
|
+
* its existing default (`idCapture.manualIdUpload`) for those beats.
|
|
93
|
+
*/
|
|
94
|
+
function mapIdManualUploadScreenName(value, context) {
|
|
95
|
+
if (value !== "selecting" || context === void 0) return;
|
|
96
|
+
if (context.errorMessage !== null) return "IDmanual.error.document";
|
|
97
|
+
if (context.activeTab === "passport") return context.passportUploaded ? "IDmanual.upload.uploadedPassport" : "IDmanual.upload.passport";
|
|
98
|
+
if (!context.frontUploaded) return "IDmanual.upload.default";
|
|
99
|
+
if (context.backUploaded || context.skipBackFromServer || context.onlyFront) return "IDmanual.upload.uploadedFrontandBack";
|
|
100
|
+
return "IDmanual.upload.uploadedFront";
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
8
103
|
//#region src/internal/idCapture/idCaptureManagerFactory.ts
|
|
9
104
|
function getPermissionStatus(snapshot) {
|
|
10
105
|
if (!snapshot.matches("permissions")) return;
|
|
@@ -234,7 +329,7 @@ function mapState(snapshot) {
|
|
|
234
329
|
if (snapshot.matches("expiredExhausted")) return { status: "expiredExhausted" };
|
|
235
330
|
if (snapshot.matches("expired")) {
|
|
236
331
|
const counter = context.expiredFromUpload ? context.expiredAttempts : context.processingExpiredAttempts;
|
|
237
|
-
const cap = context.expiredFromUpload ?
|
|
332
|
+
const cap = context.expiredFromUpload ? 3 : context.config.captureAttempts;
|
|
238
333
|
return {
|
|
239
334
|
status: "expired",
|
|
240
335
|
attemptsRemaining: Math.max(0, cap - counter),
|
|
@@ -269,9 +364,9 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
269
364
|
},
|
|
270
365
|
async nextStep() {
|
|
271
366
|
trackElementClicked?.("nextStep");
|
|
272
|
-
const snapshot
|
|
273
|
-
if (snapshot
|
|
274
|
-
const { config, permissionResult } = snapshot
|
|
367
|
+
const snapshot = actor.getSnapshot();
|
|
368
|
+
if (snapshot.matches("tutorial")) {
|
|
369
|
+
const { config, permissionResult } = snapshot.context;
|
|
275
370
|
await primeMotionFromUserGestureIfNeeded({
|
|
276
371
|
ds: config.ds,
|
|
277
372
|
cameraGranted: permissionResult === "granted"
|
|
@@ -338,12 +433,22 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
338
433
|
trackElementClicked?.("cancelMandatoryConsent");
|
|
339
434
|
actor.send({ type: "CONSENT_CANCEL" });
|
|
340
435
|
},
|
|
436
|
+
/**
|
|
437
|
+
* Updates the detection area used for WASM geometry calculation.
|
|
438
|
+
* Call this when the UI detection area dimensions change (e.g., on resize or orientation change).
|
|
439
|
+
*/
|
|
341
440
|
updateDetectionArea(detectionArea) {
|
|
342
441
|
actor.send({
|
|
343
442
|
type: "UPDATE_DETECTION_AREA",
|
|
344
443
|
detectionArea
|
|
345
444
|
});
|
|
346
445
|
},
|
|
446
|
+
/**
|
|
447
|
+
* Manual upload: tab change (ID / Passport). Resets per-tab file selections.
|
|
448
|
+
* Note: there is intentionally no `switchToManualUpload` method — entry to
|
|
449
|
+
* the manual-upload flow is gated by config + Chooser to prevent a
|
|
450
|
+
* dev-console bypass of live camera capture.
|
|
451
|
+
*/
|
|
347
452
|
manualUploadChangeTab(tab) {
|
|
348
453
|
trackElementClicked?.(`manualUpload.tab.${tab}`);
|
|
349
454
|
actor.send({
|
|
@@ -435,8 +540,6 @@ function getCaptureLiveCueScreen(screens, detectionStatus) {
|
|
|
435
540
|
case "offline": return `${screens.capturePrefix}.livecue-dark`;
|
|
436
541
|
case "manualCapture": return `${screens.capturePrefix}.manual`;
|
|
437
542
|
case "capturing": return `${screens.capturePrefix}.takingphoto`;
|
|
438
|
-
case "detecting":
|
|
439
|
-
case "idle":
|
|
440
543
|
default: return `${screens.capturePrefix}.default`;
|
|
441
544
|
}
|
|
442
545
|
}
|
|
@@ -453,10 +556,6 @@ function getCaptureErrorScreen(screens, errorCode) {
|
|
|
453
556
|
case "NO_MORE_TRIES": return `${screens.errorPrefix}.failedExhausted`;
|
|
454
557
|
case "NO_TOKEN":
|
|
455
558
|
case "SERVER_ERROR": return `${screens.errorPrefix}.nointernet`;
|
|
456
|
-
case "UPLOAD_ERROR":
|
|
457
|
-
case "UNEXPECTED_ERROR":
|
|
458
|
-
case "PERMISSION_DENIED":
|
|
459
|
-
case "USER_CANCELLED":
|
|
460
559
|
default: return `${screens.errorPrefix}.failed`;
|
|
461
560
|
}
|
|
462
561
|
}
|
|
@@ -503,8 +602,6 @@ function getPermissionScreen(value) {
|
|
|
503
602
|
case "denied": return "idCapture.permissions.quit";
|
|
504
603
|
case "learnMore": return "idCapture.commonissues.default";
|
|
505
604
|
case "motionOnly": return "idCapture.permissions.motionOnly";
|
|
506
|
-
case "idle":
|
|
507
|
-
case "waitingForUser":
|
|
508
605
|
default: return "idCapture.permissions.default";
|
|
509
606
|
}
|
|
510
607
|
}
|
|
@@ -650,7 +747,6 @@ function createIdCaptureManagerFromActor(actor, visibilityObserver = new Browser
|
|
|
650
747
|
})
|
|
651
748
|
});
|
|
652
749
|
}
|
|
653
|
-
|
|
654
750
|
//#endregion
|
|
655
751
|
//#region src/modules/id/idCaptureActor.ts
|
|
656
752
|
function createIdCaptureActor(options) {
|
|
@@ -660,7 +756,6 @@ function createIdCaptureActor(options) {
|
|
|
660
756
|
dependencies
|
|
661
757
|
} }).start();
|
|
662
758
|
}
|
|
663
|
-
|
|
664
759
|
//#endregion
|
|
665
760
|
//#region src/modules/id/idCaptureManager.ts
|
|
666
761
|
/**
|
|
@@ -675,6 +770,5 @@ function createIdCaptureActor(options) {
|
|
|
675
770
|
function createIdCaptureManager(options) {
|
|
676
771
|
return createIdCaptureManagerFromActor(createIdCaptureActor(options));
|
|
677
772
|
}
|
|
678
|
-
|
|
679
773
|
//#endregion
|
|
680
|
-
export { createIdCaptureActor as n, createIdCaptureManagerFromActor as r, createIdCaptureManager as t };
|
|
774
|
+
export { createIdCaptureActor as n, createIdCaptureManagerFromActor as r, createIdCaptureManager as t };
|