@incodetech/core 2.3.2 → 2.4.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +1243 -3
- package/dist/Actor-DpTj5PFb.d.ts +1 -0
- package/dist/{BaseWasmProvider-Dyi6dKp1.d.ts → BaseWasmProvider-BL9wIRnN.d.ts} +2 -2
- package/dist/{FaceDetectionProvider-DtmtCKa9.esm.js → FaceDetectionProvider-BjTer9h3.esm.js} +126 -10
- package/dist/HttpRequestError-Bh0pNGSC.esm.js +35 -0
- package/dist/{IIdCaptureCapability-RNiFhvXR.d.ts → IIdCaptureCapability-DBsv9-7M.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-CNWRl7jr.d.ts → IWasmUtilCapability-CPX0RGdQ.d.ts} +28 -5
- package/dist/{Manager-CQQ99QOI.d.ts → Manager-C9T5amUN.d.ts} +7 -1
- package/dist/{MotionSensorProvider-DyhbM4Si.esm.js → MotionSensorProvider-DYxh8TjR.esm.js} +1 -1
- package/dist/{ekycStateMachine-UeJRO8_p.esm.js → PhoneValidationProvider-SZiOS0jB.esm.js} +232 -827
- package/dist/{StreamCanvasCapture-_8gdW5Lk.d.ts → StreamCanvasCapture-DVmzJux5.d.ts} +2 -2
- package/dist/{safeStorage-BdU9_m2E.esm.js → WasmUtilProvider-CIdnE7Fx.esm.js} +95 -46
- package/dist/{addressSearch-DyHGgeX8.esm.js → addressSearch-BiYZjvp3.esm.js} +143 -4
- package/dist/{advanceableErrors-CpF2cBy6.esm.js → advanceableErrors-q_pfU3Cn.esm.js} +5 -4
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-BY36bS12.d.ts → antifraudManager-DbGCvlJs.d.ts} +2 -2
- package/dist/{antifraudManager-DNkw66oW.esm.js → antifraudManager-HL08jeDX.esm.js} +3 -3
- package/dist/{antifraudStateMachine-DBeq47D2.esm.js → antifraudStateMachine-DoJVzblM.esm.js} +3 -3
- package/dist/{apiError-CmGEmaGU.esm.js → apiError-DcSWedC6.esm.js} +2 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CboRCl_N.d.ts → authenticationManager-CANv5-W5.d.ts} +2 -8
- package/dist/{authenticationManager-BFjSjtQ_.esm.js → authenticationManager-SaiAxqvS.esm.js} +6 -6
- package/dist/{authenticationStateMachine-Dfo34ZiI.esm.js → authenticationStateMachine-CHSxmV7z.esm.js} +5 -6
- package/dist/avatar.d.ts +1 -1
- package/dist/{backCameraStream-B0-YgP_y.esm.js → backCameraStream-CMvXj4X4.esm.js} +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-C3-CI0_s.esm.js → certificateIssuanceManager-CMg4SgL4.esm.js} +3 -3
- package/dist/{certificateIssuanceManager-DCgEidHz.d.ts → certificateIssuanceManager-Dr8A4Lgr.d.ts} +2 -3
- package/dist/{certificateIssuanceStateMachine-CxqS_nD-.esm.js → certificateIssuanceStateMachine-Cs64QmYH.esm.js} +4 -4
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-B6E1XJDw.esm.js → consentManager-CjrxY737.esm.js} +3 -3
- package/dist/{consentManager-2h_w6wFc.d.ts → consentManager-DgzWQpAR.d.ts} +6 -7
- package/dist/{consentStateMachine-DTSfdGiW.esm.js → consentStateMachine-BCj5Jb3g.esm.js} +3 -3
- package/dist/{createCameraCycleOwnership-DnwTl1ad.esm.js → createCameraCycleOwnership-kdlhkmmY.esm.js} +71 -65
- package/dist/{createFaceAvatar-BlcTYgJv.d.ts → createFaceAvatar-DXgmQmQy.d.ts} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-9XhFVZ5S.esm.js → crossDocumentDataMatchManager-BHnGRsto.esm.js} +4 -4
- package/dist/{crossDocumentDataMatchManager-Dq8Z3SOg.d.ts → crossDocumentDataMatchManager-yCWCOzcU.d.ts} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DNuZn9fn.d.ts → curpValidationManager-B-1EZbP_.d.ts} +3 -3
- package/dist/{curpValidationManager-DbIMYFcJ.esm.js → curpValidationManager-DBNIn8BF.esm.js} +15 -22
- package/dist/{curpValidationStateMachine-g5kMfuLj.esm.js → curpValidationStateMachine-DAxImy8p.esm.js} +4 -4
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-CzWZTkW-.esm.js → customFieldsManager-BV6UyLFV.esm.js} +4 -4
- package/dist/{customFieldsManager-8-W2KY4n.d.ts → customFieldsManager-CF-cO8ap.d.ts} +2 -2
- package/dist/{customWatchlistManager-DWTED5Ur.esm.js → customWatchlistManager-DML0UPzf.esm.js} +3 -3
- package/dist/{customWatchlistManager-PBWHr_oM.d.ts → customWatchlistManager-DolUswyR.d.ts} +2 -2
- package/dist/{customWatchlistStateMachine-DOQou6TW.esm.js → customWatchlistStateMachine-D9gI5uu7.esm.js} +3 -3
- package/dist/deepsightLoader-DvfAYnzg.esm.js +55 -0
- package/dist/{deepsightLoader-v-dLejS-.esm.js → deepsightService-DLGO9yv1.esm.js} +51 -56
- package/dist/device.esm.js +1 -1
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-BRPxqYD2.esm.js → documentCaptureManager-C9XUnYU6.esm.js} +17 -18
- package/dist/{documentCaptureManager-lEtCM320.d.ts → documentCaptureManager-DkyDtm3Y.d.ts} +11 -34
- package/dist/{documentCaptureStateMachine-D312sSIu.esm.js → documentCaptureStateMachine-BHDsCfhL.esm.js} +55 -58
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C-9Jhnd3.esm.js → dynamicFormsManager-5uIXobxi.esm.js} +3 -3
- package/dist/{dynamicFormsManager-D5R_uxLQ.d.ts → dynamicFormsManager-C0dHs1ty.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-DGI_F2PP.esm.js → dynamicFormsStateMachine-DQmok084.esm.js} +4 -4
- package/dist/ekyb.d.ts +5 -5
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BwRuGAwt.d.ts → ekybManager-BaZ_7CEu.d.ts} +4 -4
- package/dist/{ekybManager-DeoMcZEz.esm.js → ekybManager-CazShiQz.esm.js} +23 -27
- package/dist/{ekybStateMachine-D1IJ1Z72.esm.js → ekybStateMachine-hstiCNmW.esm.js} +338 -13
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-BX2d46FY.esm.js → ekycManager-BdJRUsz0.esm.js} +29 -36
- package/dist/{ekycManager-DLzDuBzI.d.ts → ekycManager-DW-ynodd.d.ts} +3 -3
- package/dist/ekycStateMachine-x6Klot8g.esm.js +1444 -0
- package/dist/{ekycUtils-D6wfSpPN.esm.js → ekycUtils-zY8CdKJL.esm.js} +53 -3
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-yYUc30na.esm.js → electronicSignatureManager-Bc8spG8p.esm.js} +10 -10
- package/dist/{electronicSignatureManager-Ds-KEVTq.d.ts → electronicSignatureManager-DTSLOvKR.d.ts} +2 -3
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-bR1N5rV_.esm.js → emailManager-CtlKRRaR.esm.js} +20 -26
- package/dist/{emailManager-CADXW_9X.d.ts → emailManager-Dy6omJVp.d.ts} +2 -2
- package/dist/{emailStateMachine-Bc_6oIYw.esm.js → emailStateMachine-5Neq3rE5.esm.js} +4 -4
- package/dist/{endpoints-B-3Q-LUw.esm.js → endpoints-DHzlkQNe.esm.js} +2 -0
- package/dist/{events-ijlbX_Wx.esm.js → events-CAgFE-k3.esm.js} +19 -7
- package/dist/events.d.ts +3 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +38 -38
- package/dist/extensibility.esm.js +36 -36
- package/dist/{externalFetch-BKBThAUC.esm.js → externalFetch-DrR9xshk.esm.js} +3 -2
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-m-7ae67q.d.ts → faceCaptureManagerFactory-jKQ2QtY-.d.ts} +11 -51
- package/dist/{faceCaptureManagerFactory-B6i9QcAk.esm.js → faceCaptureManagerFactory-uFm1AcaY.esm.js} +19 -54
- package/dist/{faceCaptureSetup-DU1mjRr6.esm.js → faceCaptureSetup-Cu2wabzo.esm.js} +99 -395
- package/dist/{faceMatchManager-Bmv0HzuY.esm.js → faceMatchManager-9Nj9aPci.esm.js} +3 -3
- package/dist/{faceMatchManager-BnvrZM2F.d.ts → faceMatchManager-DIgG-UFS.d.ts} +1 -2
- package/dist/{faceMatchStateMachine-mRIHQ3dA.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js} +6 -4
- package/dist/{feature-management-C8CuN0os.esm.js → feature-management-BTbYruNe.esm.js} +3 -3
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +2 -2
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CBvEGxFx.d.ts → fieldComparisonManager-CUX4gza2.d.ts} +6 -3
- package/dist/{fieldComparisonManager-CC-klG0h.esm.js → fieldComparisonManager-Dk38hXZP.esm.js} +35 -17
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-B1STmT6z.d.ts → fiscalQrManager-D0Iy7EKR.d.ts} +2 -2
- package/dist/fiscalQrManager-DmBkQfs0.esm.js +6798 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +14 -13
- package/dist/flow.esm.js +14 -14
- package/dist/{flowCompletionService-DccgtDnm.esm.js → flowCompletionService-xnn_SlJU.esm.js} +2 -2
- package/dist/{flowServices-CdsWsppG.esm.js → flowServices-DA64AEZC.esm.js} +11 -7
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CGHBxtMb.esm.js → geolocationManager-CqNLY45e.esm.js} +6 -7
- package/dist/{geolocationManager-Cz744E5S.d.ts → geolocationManager-Dn24g1fl.d.ts} +2 -3
- package/dist/{geolocationStateMachine-CdEb1Gn0.esm.js → geolocationStateMachine-D-cQi7ar.esm.js} +4 -4
- package/dist/{getDeviceClass-5NYZg9s6.esm.js → getDeviceClass-bsWdEDxP.esm.js} +1 -1
- package/dist/{getParsedUserAgent-B2iFDql1.esm.js → getParsedUserAgent-DhQPeKqw.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-D02vT4yY.d.ts → governmentValidationManager-B82zOut8.d.ts} +3 -3
- package/dist/{governmentValidationManager-CacFOtKO.esm.js → governmentValidationManager-CP0SiOOe.esm.js} +3 -3
- package/dist/{governmentValidationStateMachine-CoaZOSTP.esm.js → governmentValidationStateMachine-C3YQ8yCZ.esm.js} +3 -3
- package/dist/home.d.ts +3 -26
- package/dist/home.esm.js +2 -2
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +6 -9
- package/dist/id-selfie-flow.esm.js +23 -28
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +4 -4
- package/dist/id.esm.js +4 -205
- package/dist/{idCaptureDefaults-Dl64Trv5.esm.js → idCaptureDefaults-CBg73RnV.esm.js} +8 -5
- package/dist/{idCaptureManager-BHwL2Z0V.d.ts → idCaptureManager-BY97SRCV.d.ts} +242 -98
- package/dist/{idCaptureManager-BNmVJQkd.esm.js → idCaptureManager-D4V8vXtY.esm.js} +276 -210
- package/dist/{idCaptureServices-dtDG2HXS.esm.js → idCaptureServices-DJ33k3-p.esm.js} +21 -39
- package/dist/{idCaptureStateMachine-BbiZD3uf.esm.js → idCaptureStateMachine-PJt0yzom.esm.js} +989 -872
- package/dist/{idOcrManager-CFlDwUvN.d.ts → idOcrManager-BTdHlJ9D.d.ts} +2 -3
- package/dist/{idOcrManager-ByWuQ4ej.esm.js → idOcrManager-DxoCesYP.esm.js} +3 -3
- package/dist/{idOcrStateMachine-Bt_abXQQ.esm.js → idOcrStateMachine-kPn7DB2I.esm.js} +3 -3
- package/dist/{idVerificationManager-BB4Pj_N6.d.ts → idVerificationManager-BJapZfpy.d.ts} +2 -3
- package/dist/{idVerificationManager-DT42c77H.esm.js → idVerificationManager-CDhRUU5n.esm.js} +3 -3
- package/dist/{idVerificationStateMachine-DbDVIh9t.esm.js → idVerificationStateMachine-0HTVVxse.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-yG3acUrQ.esm.js → identityReuseManager-BleUi6TK.esm.js} +26 -13
- package/dist/{identityReuseManager-BXEBBI3N.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +164 -46
- package/dist/{identityReuseStateMachine-BhAkuIra.esm.js → identityReuseStateMachine-BrBUpfn5.esm.js} +89 -23
- package/dist/{index-CeaC32qI.d.ts → index-DfEuu-Ew.d.ts} +2 -2
- package/dist/index-DpTj5PFb.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BjzPjJ_p.esm.js → invokeOnCaptureCallback-BW7V3vub.esm.js} +1 -1
- package/dist/lamejs-B6TzhU5q.esm.js +10 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-7dI0D08q.esm.js → mandatoryConsentManager-CX_Dyht7.esm.js} +3 -3
- package/dist/{mandatoryConsentManager-DFVm_i2B.d.ts → mandatoryConsentManager-TkX57U6f.d.ts} +3 -4
- package/dist/{mandatoryConsentStateMachine-DC5Mo6M1.esm.js → mandatoryConsentStateMachine-CoaSB7P7.esm.js} +3 -3
- package/dist/{multipartRecordingService-mwKFTlhR.esm.js → multipartRecordingService-DbeQpXdU.esm.js} +2 -2
- package/dist/{permissionGuards-D6TfVop2.esm.js → permissionGuards-Bf4LbHjC.esm.js} +1 -1
- package/dist/{permissionServices-EY3_Vx6c.esm.js → permissionServices-d2UW0r_L.esm.js} +34 -3
- package/dist/phone-number.d.ts +24 -0
- package/dist/phone-number.esm.js +1922 -0
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-IjhSv5XS.esm.js → phoneManager-BGBcpqsk.esm.js} +31 -22
- package/dist/{phoneManager-BBU8Lq0O.d.ts → phoneManager-BO-LTih5.d.ts} +16 -3
- package/dist/{phoneStateMachine-CXdXufKg.esm.js → phoneStateMachine-CEm2y7yG.esm.js} +39 -20
- package/dist/phoneValidation-DnBcNUNh.esm.js +48 -0
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-FLEWJtv8.esm.js → redirectToMobileManager-B1yQHFLu.esm.js} +4 -4
- package/dist/{redirectToMobileManager-BD2PvT5B.d.ts → redirectToMobileManager-CVsvpVbQ.d.ts} +2 -2
- package/dist/{redirectToMobileStateMachine-CSWWgUTO.esm.js → redirectToMobileStateMachine--Sr9NEVT.esm.js} +5 -5
- package/dist/{rolldown-runtime-FDOR9p9I.esm.js → rolldown-runtime-B-1-B7_t.esm.js} +10 -1
- package/dist/{runChildModule-B2Y_hlix.esm.js → runChildModule-vdxQMCmO.esm.js} +13 -12
- package/dist/safeStorage-UxDrnjwa.esm.js +35 -0
- package/dist/{sdkVersion-N1UiyFiY.esm.js → sdkVersion-F5YZbjip.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +12 -12
- package/dist/selfieErrorUtils-D-tsgEuX.esm.js +21 -0
- package/dist/{selfieManager-BSZG891S.d.ts → selfieManager-1J0IEyFq.d.ts} +2 -8
- package/dist/{selfieManager-AS6wfUvZ.esm.js → selfieManager-26pENXxw.esm.js} +6 -6
- package/dist/selfieStateMachine-BhfKsl3I.esm.js +41 -0
- package/dist/{session-BESZc05k.esm.js → session-Bu7djCsj.esm.js} +5 -5
- package/dist/session.d.ts +15 -3
- package/dist/session.esm.js +30 -5
- package/dist/sessionInitializer-jxbfCnE-.esm.js +974 -0
- package/dist/{setup-BuPbxpwF.esm.js → setup-C38QkrSP.esm.js} +232 -112
- package/dist/{setup-Cyko6cAn.d.ts → setup-lgkQ8dJW.d.ts} +20 -11
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-DGBSWz2_.d.ts → signatureManager-BpVt_Jv7.d.ts} +2 -2
- package/dist/{signatureManager-B72np4ZO.esm.js → signatureManager-qqXyH93e.esm.js} +7 -11
- package/dist/{signatureStateMachine-ce_XMA3l.esm.js → signatureStateMachine-BkRSrkKp.esm.js} +3 -3
- package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
- package/dist/{src-35ekGRzK.esm.js → src-DJAJjRYQ.esm.js} +1 -1
- package/dist/{stats-CZcy2J53.esm.js → stats-DmG_tkGk.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{sessionInitializer-CnhAkMUN.esm.js → thumbmark.esm-CRc0cYvz.esm.js} +33 -776
- package/dist/{trueSightService-M5VpCo96.esm.js → trueSightService-BWgRVGIT.esm.js} +893 -900
- package/dist/trust-graph.d.ts +1 -2
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{types-C0oWGUzg.d.ts → types-0L-eFDmr.d.ts} +1 -1
- package/dist/{types-C1g9itHE.d.ts → types-BGXxRwQM.d.ts} +6 -7
- package/dist/{types-BfgmV7s7.d.ts → types-BQA7lRDV.d.ts} +1 -1
- package/dist/{types-CxGdmzxa.d.ts → types-BvFmYX5c.d.ts} +1 -1
- package/dist/{types-Cx-1zo-i.d.ts → types-BvLo3U4u.d.ts} +1 -1
- package/dist/types-C71Zo6vl.d.ts +6 -0
- package/dist/{types-DEGVXwsk2.d.ts → types-CyPUIpzf.d.ts} +110 -62
- package/dist/{types-Bx-BWveD.d.ts → types-DTYr9pCB.d.ts} +1 -1
- package/dist/{types-BjSly8cp.d.ts → types-DUnFZ08M.d.ts} +1 -1
- package/dist/{types-ESdtnHtg.d.ts → types-zpO4fU6a.d.ts} +3 -4
- package/dist/{urlUtils-D6phjq1-.esm.js → urlUtils-6jsE6rKp.esm.js} +9 -1
- package/dist/video-selfie.d.ts +6 -9
- package/dist/video-selfie.esm.js +1386 -1344
- package/dist/{videoSelfieCameraWarmer-q9ZjvXu9.esm.js → videoSelfieCameraWarmer-C366RKqu.esm.js} +11 -11
- package/dist/{videoSelfieFlowModuleMachine-BUe2uACW.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-ChYgFM15.d.ts → videoSelfieStepDetector-C5QHOvWb.d.ts} +4 -4
- package/dist/videoTrimByCopy-BFfAiNpv.esm.js +15901 -0
- package/dist/{warmup-Cis2p6O0.d.ts → warmup-BUPPRAA1.d.ts} +7 -0
- package/dist/{warmup-ChDwHSel.esm.js → warmup-DMtbyb2l.esm.js} +27 -9
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +4 -4
- package/dist/{wasmDsFlagSync-DYrLUEII.esm.js → wasmDsFlagSync-BXCGqP48.esm.js} +1 -1
- package/dist/{wasmWebClient-B7baE-Wf.esm.js → wasmWebClient-kbYZ2sxw.esm.js} +259 -20
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CsnJnG-C.d.ts → watchlistForBusinessManager-B3GDPZrr.d.ts} +2 -2
- package/dist/{watchlistForBusinessManager-CIMkpEhu.esm.js → watchlistForBusinessManager-BvF4jK3S.esm.js} +7 -5
- package/dist/{watchlistForBusinessStateMachine-CJ-MvUre.esm.js → watchlistForBusinessStateMachine-121XK-Et.esm.js} +3 -3
- package/dist/{watchlistManager-CixcLNDT.esm.js → watchlistManager-CNWEOYSq.esm.js} +3 -3
- package/dist/{watchlistManager-DLXef90v.d.ts → watchlistManager-DJQOd8Pw.d.ts} +2 -2
- package/dist/{watchlistStateMachine-CBqk2w-h.esm.js → watchlistStateMachine-Dgfm42w2.esm.js} +3 -3
- package/dist/workflow.d.ts +34 -5
- package/dist/workflow.esm.js +64 -46
- package/dist/{xstate-actors.esm-BXeQ-Ucz.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
- package/dist/{xstate.esm-BuFLFuzz.esm.js → xstate.esm-DSajW7CJ.esm.js} +24 -10
- package/package.json +13 -5
- package/dist/Actor-iTq7YY48.d.ts +0 -1
- package/dist/StateMachine-EDpYWy0i.d.ts +0 -6
- package/dist/fiscalQrManager-DbCVMIBx.esm.js +0 -34143
- package/dist/index-B8weJxmL.d.ts +0 -1
- package/dist/selfieErrorUtils-UiQ46EBa.esm.js +0 -116
- package/dist/selfieStateMachine-DY7vJVNY.esm.js +0 -71
- package/dist/types-BN5RPPIZ.esm.js +0 -34
- package/dist/types-Bt9RuRqt.d.ts +0 -6
- package/dist/virtualCameraCheck-Cjab7FTI.esm.js +0 -48
- /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
3
|
-
import { _ as TAX_ID_SOURCES, a as ADDRESS_STATE_SOURCES, c as COUNTRY_SELECTOR_DISABLED_SOURCES, d as MIDDLE_NAME_SOURCES, f as NAME_SOURCES, g as STREET_SOURCES, h as STATE_CODE_HINTS, i as toEkycConfig, l as EMAIL_SOURCES, m as POSTAL_CODE_SOURCES, n as getEKYCFields, o as APARTMENT_SOURCES, p as ONE_OF_REQUIRED_GROUPS, r as isFieldOptional, s as CITY_SOURCES, t as getEKYCCountry, u as HOUSE_NO_SOURCES } from "./ekycUtils-D6wfSpPN.esm.js";
|
|
4
|
-
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
|
-
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
|
-
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DyHGgeX8.esm.js";
|
|
7
|
-
import { n as DateFormattingProvider, t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
8
2
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
|
|
9
3
|
var metadata_min_json_default = {
|
|
10
4
|
"version": 4,
|
|
@@ -7484,13 +7478,13 @@ function isObject(object) {
|
|
|
7484
7478
|
}
|
|
7485
7479
|
//#endregion
|
|
7486
7480
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/metadata.js
|
|
7487
|
-
function _typeof$
|
|
7481
|
+
function _typeof$7(o) {
|
|
7488
7482
|
"@babel/helpers - typeof";
|
|
7489
|
-
return _typeof$
|
|
7483
|
+
return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
7490
7484
|
return typeof o;
|
|
7491
7485
|
} : function(o) {
|
|
7492
7486
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
7493
|
-
}, _typeof$
|
|
7487
|
+
}, _typeof$7(o);
|
|
7494
7488
|
}
|
|
7495
7489
|
function _classCallCheck$2(a, n) {
|
|
7496
7490
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -7498,22 +7492,22 @@ function _classCallCheck$2(a, n) {
|
|
|
7498
7492
|
function _defineProperties$2(e, r) {
|
|
7499
7493
|
for (var t = 0; t < r.length; t++) {
|
|
7500
7494
|
var o = r[t];
|
|
7501
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$
|
|
7495
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$7(o.key), o);
|
|
7502
7496
|
}
|
|
7503
7497
|
}
|
|
7504
7498
|
function _createClass$2(e, r, t) {
|
|
7505
7499
|
return r && _defineProperties$2(e.prototype, r), t && _defineProperties$2(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
7506
7500
|
}
|
|
7507
|
-
function _toPropertyKey$
|
|
7508
|
-
var i = _toPrimitive$
|
|
7509
|
-
return "symbol" == _typeof$
|
|
7501
|
+
function _toPropertyKey$7(t) {
|
|
7502
|
+
var i = _toPrimitive$7(t, "string");
|
|
7503
|
+
return "symbol" == _typeof$7(i) ? i : i + "";
|
|
7510
7504
|
}
|
|
7511
|
-
function _toPrimitive$
|
|
7512
|
-
if ("object" != _typeof$
|
|
7505
|
+
function _toPrimitive$7(t, r) {
|
|
7506
|
+
if ("object" != _typeof$7(t) || !t) return t;
|
|
7513
7507
|
var e = t[Symbol.toPrimitive];
|
|
7514
7508
|
if (void 0 !== e) {
|
|
7515
7509
|
var i = e.call(t, r || "default");
|
|
7516
|
-
if ("object" != _typeof$
|
|
7510
|
+
if ("object" != _typeof$7(i)) return i;
|
|
7517
7511
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7518
7512
|
}
|
|
7519
7513
|
return ("string" === r ? String : Number)(t);
|
|
@@ -7975,7 +7969,7 @@ function validateMetadata(metadata) {
|
|
|
7975
7969
|
}
|
|
7976
7970
|
/* istanbul ignore next */
|
|
7977
7971
|
var typeOf = function typeOf(_) {
|
|
7978
|
-
return _typeof$
|
|
7972
|
+
return _typeof$7(_);
|
|
7979
7973
|
};
|
|
7980
7974
|
/**
|
|
7981
7975
|
* Returns "country calling code" for a country.
|
|
@@ -8009,10 +8003,10 @@ function setVersion(metadata) {
|
|
|
8009
8003
|
}
|
|
8010
8004
|
//#endregion
|
|
8011
8005
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
|
|
8012
|
-
function _createForOfIteratorHelperLoose$
|
|
8006
|
+
function _createForOfIteratorHelperLoose$4(r, e) {
|
|
8013
8007
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8014
8008
|
if (t) return (t = t.call(r)).next.bind(t);
|
|
8015
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray$
|
|
8009
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(r)) || e && r && "number" == typeof r.length) {
|
|
8016
8010
|
t && (r = t);
|
|
8017
8011
|
var o = 0;
|
|
8018
8012
|
return function() {
|
|
@@ -8024,14 +8018,14 @@ function _createForOfIteratorHelperLoose$3(r, e) {
|
|
|
8024
8018
|
}
|
|
8025
8019
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8026
8020
|
}
|
|
8027
|
-
function _unsupportedIterableToArray$
|
|
8021
|
+
function _unsupportedIterableToArray$5(r, a) {
|
|
8028
8022
|
if (r) {
|
|
8029
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
8023
|
+
if ("string" == typeof r) return _arrayLikeToArray$5(r, a);
|
|
8030
8024
|
var t = {}.toString.call(r).slice(8, -1);
|
|
8031
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
8025
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$5(r, a) : void 0;
|
|
8032
8026
|
}
|
|
8033
8027
|
}
|
|
8034
|
-
function _arrayLikeToArray$
|
|
8028
|
+
function _arrayLikeToArray$5(r, a) {
|
|
8035
8029
|
(null == a || a > r.length) && (a = r.length);
|
|
8036
8030
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
8037
8031
|
return n;
|
|
@@ -8044,7 +8038,7 @@ function _arrayLikeToArray$4(r, a) {
|
|
|
8044
8038
|
*/
|
|
8045
8039
|
function mergeArrays(a, b) {
|
|
8046
8040
|
var merged = a.slice();
|
|
8047
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
8041
|
+
for (var _iterator = _createForOfIteratorHelperLoose$4(b), _step; !(_step = _iterator()).done;) {
|
|
8048
8042
|
var element = _step.value;
|
|
8049
8043
|
if (a.indexOf(element) < 0) merged.push(element);
|
|
8050
8044
|
}
|
|
@@ -8093,7 +8087,7 @@ function checkNumberLengthForType(nationalNumber, country, type, metadata) {
|
|
|
8093
8087
|
* @param {object} metadata
|
|
8094
8088
|
* @return {string}
|
|
8095
8089
|
*/
|
|
8096
|
-
function isPossiblePhoneNumber(input, options, metadata) {
|
|
8090
|
+
function isPossiblePhoneNumber$2(input, options, metadata) {
|
|
8097
8091
|
/* istanbul ignore if */
|
|
8098
8092
|
if (options === void 0) options = {};
|
|
8099
8093
|
metadata = new Metadata(metadata);
|
|
@@ -8133,10 +8127,10 @@ function matchesEntirely(text, regularExpressionText) {
|
|
|
8133
8127
|
}
|
|
8134
8128
|
//#endregion
|
|
8135
8129
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getNumberType.js
|
|
8136
|
-
function _createForOfIteratorHelperLoose$
|
|
8130
|
+
function _createForOfIteratorHelperLoose$3(r, e) {
|
|
8137
8131
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8138
8132
|
if (t) return (t = t.call(r)).next.bind(t);
|
|
8139
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray$
|
|
8133
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) {
|
|
8140
8134
|
t && (r = t);
|
|
8141
8135
|
var o = 0;
|
|
8142
8136
|
return function() {
|
|
@@ -8148,14 +8142,14 @@ function _createForOfIteratorHelperLoose$2(r, e) {
|
|
|
8148
8142
|
}
|
|
8149
8143
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8150
8144
|
}
|
|
8151
|
-
function _unsupportedIterableToArray$
|
|
8145
|
+
function _unsupportedIterableToArray$4(r, a) {
|
|
8152
8146
|
if (r) {
|
|
8153
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
8147
|
+
if ("string" == typeof r) return _arrayLikeToArray$4(r, a);
|
|
8154
8148
|
var t = {}.toString.call(r).slice(8, -1);
|
|
8155
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
8149
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0;
|
|
8156
8150
|
}
|
|
8157
8151
|
}
|
|
8158
|
-
function _arrayLikeToArray$
|
|
8152
|
+
function _arrayLikeToArray$4(r, a) {
|
|
8159
8153
|
(null == a || a > r.length) && (a = r.length);
|
|
8160
8154
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
8161
8155
|
return n;
|
|
@@ -8185,7 +8179,7 @@ function getNumberType(input, options, metadata) {
|
|
|
8185
8179
|
if (isNumberTypeEqualTo(nationalNumber, "MOBILE", metadata)) return "FIXED_LINE_OR_MOBILE";
|
|
8186
8180
|
return "FIXED_LINE";
|
|
8187
8181
|
}
|
|
8188
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
8182
|
+
for (var _iterator = _createForOfIteratorHelperLoose$3(NON_FIXED_LINE_PHONE_TYPES), _step; !(_step = _iterator()).done;) {
|
|
8189
8183
|
var type = _step.value;
|
|
8190
8184
|
if (isNumberTypeEqualTo(nationalNumber, type, metadata)) return type;
|
|
8191
8185
|
}
|
|
@@ -8330,10 +8324,10 @@ function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {
|
|
|
8330
8324
|
}
|
|
8331
8325
|
//#endregion
|
|
8332
8326
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
|
|
8333
|
-
function _createForOfIteratorHelperLoose$
|
|
8327
|
+
function _createForOfIteratorHelperLoose$2(r, e) {
|
|
8334
8328
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8335
8329
|
if (t) return (t = t.call(r)).next.bind(t);
|
|
8336
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray$
|
|
8330
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(r)) || e && r && "number" == typeof r.length) {
|
|
8337
8331
|
t && (r = t);
|
|
8338
8332
|
var o = 0;
|
|
8339
8333
|
return function() {
|
|
@@ -8345,14 +8339,14 @@ function _createForOfIteratorHelperLoose$1(r, e) {
|
|
|
8345
8339
|
}
|
|
8346
8340
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8347
8341
|
}
|
|
8348
|
-
function _unsupportedIterableToArray$
|
|
8342
|
+
function _unsupportedIterableToArray$3(r, a) {
|
|
8349
8343
|
if (r) {
|
|
8350
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
8344
|
+
if ("string" == typeof r) return _arrayLikeToArray$3(r, a);
|
|
8351
8345
|
var t = {}.toString.call(r).slice(8, -1);
|
|
8352
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
8346
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0;
|
|
8353
8347
|
}
|
|
8354
8348
|
}
|
|
8355
|
-
function _arrayLikeToArray$
|
|
8349
|
+
function _arrayLikeToArray$3(r, a) {
|
|
8356
8350
|
(null == a || a > r.length) && (a = r.length);
|
|
8357
8351
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
8358
8352
|
return n;
|
|
@@ -8360,7 +8354,7 @@ function _arrayLikeToArray$2(r, a) {
|
|
|
8360
8354
|
function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
|
|
8361
8355
|
var countries = _ref.countries, metadata = _ref.metadata;
|
|
8362
8356
|
metadata = new Metadata(metadata);
|
|
8363
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
8357
|
+
for (var _iterator = _createForOfIteratorHelperLoose$2(countries), _step; !(_step = _iterator()).done;) {
|
|
8364
8358
|
var country = _step.value;
|
|
8365
8359
|
metadata.selectNumberingPlan(country);
|
|
8366
8360
|
if (metadata.leadingDigits()) {
|
|
@@ -8731,15 +8725,15 @@ function pickFirstMatchingElement(elements, testFunction) {
|
|
|
8731
8725
|
}
|
|
8732
8726
|
//#endregion
|
|
8733
8727
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/PhoneNumber.js
|
|
8734
|
-
function _typeof$
|
|
8728
|
+
function _typeof$6(o) {
|
|
8735
8729
|
"@babel/helpers - typeof";
|
|
8736
|
-
return _typeof$
|
|
8730
|
+
return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
8737
8731
|
return typeof o;
|
|
8738
8732
|
} : function(o) {
|
|
8739
8733
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8740
|
-
}, _typeof$
|
|
8734
|
+
}, _typeof$6(o);
|
|
8741
8735
|
}
|
|
8742
|
-
function ownKeys$
|
|
8736
|
+
function ownKeys$5(e, r) {
|
|
8743
8737
|
var t = Object.keys(e);
|
|
8744
8738
|
if (Object.getOwnPropertySymbols) {
|
|
8745
8739
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -8749,19 +8743,19 @@ function ownKeys$4(e, r) {
|
|
|
8749
8743
|
}
|
|
8750
8744
|
return t;
|
|
8751
8745
|
}
|
|
8752
|
-
function _objectSpread$
|
|
8746
|
+
function _objectSpread$5(e) {
|
|
8753
8747
|
for (var r = 1; r < arguments.length; r++) {
|
|
8754
8748
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
8755
|
-
r % 2 ? ownKeys$
|
|
8756
|
-
_defineProperty$
|
|
8757
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$
|
|
8749
|
+
r % 2 ? ownKeys$5(Object(t), !0).forEach(function(r) {
|
|
8750
|
+
_defineProperty$5(e, r, t[r]);
|
|
8751
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function(r) {
|
|
8758
8752
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
8759
8753
|
});
|
|
8760
8754
|
}
|
|
8761
8755
|
return e;
|
|
8762
8756
|
}
|
|
8763
|
-
function _defineProperty$
|
|
8764
|
-
return (r = _toPropertyKey$
|
|
8757
|
+
function _defineProperty$5(e, r, t) {
|
|
8758
|
+
return (r = _toPropertyKey$6(r)) in e ? Object.defineProperty(e, r, {
|
|
8765
8759
|
value: t,
|
|
8766
8760
|
enumerable: !0,
|
|
8767
8761
|
configurable: !0,
|
|
@@ -8774,22 +8768,22 @@ function _classCallCheck$1(a, n) {
|
|
|
8774
8768
|
function _defineProperties$1(e, r) {
|
|
8775
8769
|
for (var t = 0; t < r.length; t++) {
|
|
8776
8770
|
var o = r[t];
|
|
8777
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$
|
|
8771
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$6(o.key), o);
|
|
8778
8772
|
}
|
|
8779
8773
|
}
|
|
8780
8774
|
function _createClass$1(e, r, t) {
|
|
8781
8775
|
return r && _defineProperties$1(e.prototype, r), t && _defineProperties$1(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
8782
8776
|
}
|
|
8783
|
-
function _toPropertyKey$
|
|
8784
|
-
var i = _toPrimitive$
|
|
8785
|
-
return "symbol" == _typeof$
|
|
8777
|
+
function _toPropertyKey$6(t) {
|
|
8778
|
+
var i = _toPrimitive$6(t, "string");
|
|
8779
|
+
return "symbol" == _typeof$6(i) ? i : i + "";
|
|
8786
8780
|
}
|
|
8787
|
-
function _toPrimitive$
|
|
8788
|
-
if ("object" != _typeof$
|
|
8781
|
+
function _toPrimitive$6(t, r) {
|
|
8782
|
+
if ("object" != _typeof$6(t) || !t) return t;
|
|
8789
8783
|
var e = t[Symbol.toPrimitive];
|
|
8790
8784
|
if (void 0 !== e) {
|
|
8791
8785
|
var i = e.call(t, r || "default");
|
|
8792
|
-
if ("object" != _typeof$
|
|
8786
|
+
if ("object" != _typeof$6(i)) return i;
|
|
8793
8787
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8794
8788
|
}
|
|
8795
8789
|
return ("string" === r ? String : Number)(t);
|
|
@@ -8845,7 +8839,7 @@ var PhoneNumber = /*#__PURE__*/ function() {
|
|
|
8845
8839
|
{
|
|
8846
8840
|
key: "isPossible",
|
|
8847
8841
|
value: function isPossible() {
|
|
8848
|
-
return isPossiblePhoneNumber(this, { v2: true }, this.getMetadata());
|
|
8842
|
+
return isPossiblePhoneNumber$2(this, { v2: true }, this.getMetadata());
|
|
8849
8843
|
}
|
|
8850
8844
|
},
|
|
8851
8845
|
{
|
|
@@ -8875,7 +8869,7 @@ var PhoneNumber = /*#__PURE__*/ function() {
|
|
|
8875
8869
|
{
|
|
8876
8870
|
key: "format",
|
|
8877
8871
|
value: function format(_format, options) {
|
|
8878
|
-
return formatNumber(this, _format, options ? _objectSpread$
|
|
8872
|
+
return formatNumber(this, _format, options ? _objectSpread$5(_objectSpread$5({}, options), {}, { v2: true }) : { v2: true }, this.getMetadata());
|
|
8879
8873
|
}
|
|
8880
8874
|
},
|
|
8881
8875
|
{
|
|
@@ -8924,33 +8918,33 @@ function getCountryAndCountryCallingCode(countryOrCountryCallingCode, metadataJs
|
|
|
8924
8918
|
var E164_NUMBER_REGEXP = /^\+\d+$/;
|
|
8925
8919
|
//#endregion
|
|
8926
8920
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/ParseError.js
|
|
8927
|
-
function _typeof$
|
|
8921
|
+
function _typeof$5(o) {
|
|
8928
8922
|
"@babel/helpers - typeof";
|
|
8929
|
-
return _typeof$
|
|
8923
|
+
return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
8930
8924
|
return typeof o;
|
|
8931
8925
|
} : function(o) {
|
|
8932
8926
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8933
|
-
}, _typeof$
|
|
8927
|
+
}, _typeof$5(o);
|
|
8934
8928
|
}
|
|
8935
8929
|
function _defineProperties(e, r) {
|
|
8936
8930
|
for (var t = 0; t < r.length; t++) {
|
|
8937
8931
|
var o = r[t];
|
|
8938
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$
|
|
8932
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$5(o.key), o);
|
|
8939
8933
|
}
|
|
8940
8934
|
}
|
|
8941
8935
|
function _createClass(e, r, t) {
|
|
8942
8936
|
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
8943
8937
|
}
|
|
8944
|
-
function _toPropertyKey$
|
|
8945
|
-
var i = _toPrimitive$
|
|
8946
|
-
return "symbol" == _typeof$
|
|
8938
|
+
function _toPropertyKey$5(t) {
|
|
8939
|
+
var i = _toPrimitive$5(t, "string");
|
|
8940
|
+
return "symbol" == _typeof$5(i) ? i : i + "";
|
|
8947
8941
|
}
|
|
8948
|
-
function _toPrimitive$
|
|
8949
|
-
if ("object" != _typeof$
|
|
8942
|
+
function _toPrimitive$5(t, r) {
|
|
8943
|
+
if ("object" != _typeof$5(t) || !t) return t;
|
|
8950
8944
|
var e = t[Symbol.toPrimitive];
|
|
8951
8945
|
if (void 0 !== e) {
|
|
8952
8946
|
var i = e.call(t, r || "default");
|
|
8953
|
-
if ("object" != _typeof$
|
|
8947
|
+
if ("object" != _typeof$5(i)) return i;
|
|
8954
8948
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8955
8949
|
}
|
|
8956
8950
|
return ("string" === r ? String : Number)(t);
|
|
@@ -8962,7 +8956,7 @@ function _callSuper(t, o, e) {
|
|
|
8962
8956
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
8963
8957
|
}
|
|
8964
8958
|
function _possibleConstructorReturn(t, e) {
|
|
8965
|
-
if (e && ("object" == _typeof$
|
|
8959
|
+
if (e && ("object" == _typeof$5(e) || "function" == typeof e)) return e;
|
|
8966
8960
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
8967
8961
|
return _assertThisInitialized(t);
|
|
8968
8962
|
}
|
|
@@ -9061,6 +9055,33 @@ function extractExtension(number) {
|
|
|
9061
9055
|
}
|
|
9062
9056
|
//#endregion
|
|
9063
9057
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/parseDigits.js
|
|
9058
|
+
function _createForOfIteratorHelperLoose$1(r, e) {
|
|
9059
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9060
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
9061
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) {
|
|
9062
|
+
t && (r = t);
|
|
9063
|
+
var o = 0;
|
|
9064
|
+
return function() {
|
|
9065
|
+
return o >= r.length ? { done: !0 } : {
|
|
9066
|
+
done: !1,
|
|
9067
|
+
value: r[o++]
|
|
9068
|
+
};
|
|
9069
|
+
};
|
|
9070
|
+
}
|
|
9071
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9072
|
+
}
|
|
9073
|
+
function _unsupportedIterableToArray$2(r, a) {
|
|
9074
|
+
if (r) {
|
|
9075
|
+
if ("string" == typeof r) return _arrayLikeToArray$2(r, a);
|
|
9076
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
9077
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0;
|
|
9078
|
+
}
|
|
9079
|
+
}
|
|
9080
|
+
function _arrayLikeToArray$2(r, a) {
|
|
9081
|
+
(null == a || a > r.length) && (a = r.length);
|
|
9082
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
9083
|
+
return n;
|
|
9084
|
+
}
|
|
9064
9085
|
var DIGITS = {
|
|
9065
9086
|
"0": "0",
|
|
9066
9087
|
"1": "1",
|
|
@@ -9106,6 +9127,28 @@ var DIGITS = {
|
|
|
9106
9127
|
function parseDigit(character) {
|
|
9107
9128
|
return DIGITS[character];
|
|
9108
9129
|
}
|
|
9130
|
+
/**
|
|
9131
|
+
* Parses phone number digits from a string.
|
|
9132
|
+
* Drops all punctuation leaving only digits.
|
|
9133
|
+
* Also converts wide-ascii and arabic-indic numerals to conventional numerals.
|
|
9134
|
+
* E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.
|
|
9135
|
+
* @param {string} string
|
|
9136
|
+
* @return {string}
|
|
9137
|
+
* @example
|
|
9138
|
+
* ```js
|
|
9139
|
+
* parseDigits('8 (800) 555')
|
|
9140
|
+
* // Outputs '8800555'.
|
|
9141
|
+
* ```
|
|
9142
|
+
*/
|
|
9143
|
+
function parseDigits(string) {
|
|
9144
|
+
var result = "";
|
|
9145
|
+
for (var _iterator = _createForOfIteratorHelperLoose$1(string.split("")), _step; !(_step = _iterator()).done;) {
|
|
9146
|
+
var character = _step.value;
|
|
9147
|
+
var digit = parseDigit(character);
|
|
9148
|
+
if (digit) result += digit;
|
|
9149
|
+
}
|
|
9150
|
+
return result;
|
|
9151
|
+
}
|
|
9109
9152
|
//#endregion
|
|
9110
9153
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js
|
|
9111
9154
|
function _createForOfIteratorHelperLoose(r, e) {
|
|
@@ -9417,15 +9460,15 @@ function parsePhoneNumber$3(formattedPhoneNumber, defaultCountry, defaultCalling
|
|
|
9417
9460
|
}
|
|
9418
9461
|
//#endregion
|
|
9419
9462
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js
|
|
9420
|
-
function _typeof$
|
|
9463
|
+
function _typeof$4(o) {
|
|
9421
9464
|
"@babel/helpers - typeof";
|
|
9422
|
-
return _typeof$
|
|
9465
|
+
return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
9423
9466
|
return typeof o;
|
|
9424
9467
|
} : function(o) {
|
|
9425
9468
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9426
|
-
}, _typeof$
|
|
9469
|
+
}, _typeof$4(o);
|
|
9427
9470
|
}
|
|
9428
|
-
function ownKeys$
|
|
9471
|
+
function ownKeys$4(e, r) {
|
|
9429
9472
|
var t = Object.keys(e);
|
|
9430
9473
|
if (Object.getOwnPropertySymbols) {
|
|
9431
9474
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -9435,53 +9478,53 @@ function ownKeys$3(e, r) {
|
|
|
9435
9478
|
}
|
|
9436
9479
|
return t;
|
|
9437
9480
|
}
|
|
9438
|
-
function _objectSpread$
|
|
9481
|
+
function _objectSpread$4(e) {
|
|
9439
9482
|
for (var r = 1; r < arguments.length; r++) {
|
|
9440
9483
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
9441
|
-
r % 2 ? ownKeys$
|
|
9442
|
-
_defineProperty$
|
|
9443
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$
|
|
9484
|
+
r % 2 ? ownKeys$4(Object(t), !0).forEach(function(r) {
|
|
9485
|
+
_defineProperty$4(e, r, t[r]);
|
|
9486
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function(r) {
|
|
9444
9487
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
9445
9488
|
});
|
|
9446
9489
|
}
|
|
9447
9490
|
return e;
|
|
9448
9491
|
}
|
|
9449
|
-
function _defineProperty$
|
|
9450
|
-
return (r = _toPropertyKey$
|
|
9492
|
+
function _defineProperty$4(e, r, t) {
|
|
9493
|
+
return (r = _toPropertyKey$4(r)) in e ? Object.defineProperty(e, r, {
|
|
9451
9494
|
value: t,
|
|
9452
9495
|
enumerable: !0,
|
|
9453
9496
|
configurable: !0,
|
|
9454
9497
|
writable: !0
|
|
9455
9498
|
}) : e[r] = t, e;
|
|
9456
9499
|
}
|
|
9457
|
-
function _toPropertyKey$
|
|
9458
|
-
var i = _toPrimitive$
|
|
9459
|
-
return "symbol" == _typeof$
|
|
9500
|
+
function _toPropertyKey$4(t) {
|
|
9501
|
+
var i = _toPrimitive$4(t, "string");
|
|
9502
|
+
return "symbol" == _typeof$4(i) ? i : i + "";
|
|
9460
9503
|
}
|
|
9461
|
-
function _toPrimitive$
|
|
9462
|
-
if ("object" != _typeof$
|
|
9504
|
+
function _toPrimitive$4(t, r) {
|
|
9505
|
+
if ("object" != _typeof$4(t) || !t) return t;
|
|
9463
9506
|
var e = t[Symbol.toPrimitive];
|
|
9464
9507
|
if (void 0 !== e) {
|
|
9465
9508
|
var i = e.call(t, r || "default");
|
|
9466
|
-
if ("object" != _typeof$
|
|
9509
|
+
if ("object" != _typeof$4(i)) return i;
|
|
9467
9510
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9468
9511
|
}
|
|
9469
9512
|
return ("string" === r ? String : Number)(t);
|
|
9470
9513
|
}
|
|
9471
9514
|
function parsePhoneNumberWithError(text, options, metadata) {
|
|
9472
|
-
return parse(text, _objectSpread$
|
|
9515
|
+
return parse(text, _objectSpread$4(_objectSpread$4({}, options), {}, { v2: true }), metadata);
|
|
9473
9516
|
}
|
|
9474
9517
|
//#endregion
|
|
9475
9518
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/normalizeArguments.js
|
|
9476
|
-
function _typeof$
|
|
9519
|
+
function _typeof$3(o) {
|
|
9477
9520
|
"@babel/helpers - typeof";
|
|
9478
|
-
return _typeof$
|
|
9521
|
+
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
9479
9522
|
return typeof o;
|
|
9480
9523
|
} : function(o) {
|
|
9481
9524
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9482
|
-
}, _typeof$
|
|
9525
|
+
}, _typeof$3(o);
|
|
9483
9526
|
}
|
|
9484
|
-
function ownKeys$
|
|
9527
|
+
function ownKeys$3(e, r) {
|
|
9485
9528
|
var t = Object.keys(e);
|
|
9486
9529
|
if (Object.getOwnPropertySymbols) {
|
|
9487
9530
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -9491,35 +9534,35 @@ function ownKeys$2(e, r) {
|
|
|
9491
9534
|
}
|
|
9492
9535
|
return t;
|
|
9493
9536
|
}
|
|
9494
|
-
function _objectSpread$
|
|
9537
|
+
function _objectSpread$3(e) {
|
|
9495
9538
|
for (var r = 1; r < arguments.length; r++) {
|
|
9496
9539
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
9497
|
-
r % 2 ? ownKeys$
|
|
9498
|
-
_defineProperty$
|
|
9499
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$
|
|
9540
|
+
r % 2 ? ownKeys$3(Object(t), !0).forEach(function(r) {
|
|
9541
|
+
_defineProperty$3(e, r, t[r]);
|
|
9542
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function(r) {
|
|
9500
9543
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
9501
9544
|
});
|
|
9502
9545
|
}
|
|
9503
9546
|
return e;
|
|
9504
9547
|
}
|
|
9505
|
-
function _defineProperty$
|
|
9506
|
-
return (r = _toPropertyKey$
|
|
9548
|
+
function _defineProperty$3(e, r, t) {
|
|
9549
|
+
return (r = _toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, {
|
|
9507
9550
|
value: t,
|
|
9508
9551
|
enumerable: !0,
|
|
9509
9552
|
configurable: !0,
|
|
9510
9553
|
writable: !0
|
|
9511
9554
|
}) : e[r] = t, e;
|
|
9512
9555
|
}
|
|
9513
|
-
function _toPropertyKey$
|
|
9514
|
-
var i = _toPrimitive$
|
|
9515
|
-
return "symbol" == _typeof$
|
|
9556
|
+
function _toPropertyKey$3(t) {
|
|
9557
|
+
var i = _toPrimitive$3(t, "string");
|
|
9558
|
+
return "symbol" == _typeof$3(i) ? i : i + "";
|
|
9516
9559
|
}
|
|
9517
|
-
function _toPrimitive$
|
|
9518
|
-
if ("object" != _typeof$
|
|
9560
|
+
function _toPrimitive$3(t, r) {
|
|
9561
|
+
if ("object" != _typeof$3(t) || !t) return t;
|
|
9519
9562
|
var e = t[Symbol.toPrimitive];
|
|
9520
9563
|
if (void 0 !== e) {
|
|
9521
9564
|
var i = e.call(t, r || "default");
|
|
9522
|
-
if ("object" != _typeof$
|
|
9565
|
+
if ("object" != _typeof$3(i)) return i;
|
|
9523
9566
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9524
9567
|
}
|
|
9525
9568
|
return ("string" === r ? String : Number)(t);
|
|
@@ -9581,7 +9624,7 @@ function normalizeArguments(args) {
|
|
|
9581
9624
|
options = void 0;
|
|
9582
9625
|
metadata = arg_3;
|
|
9583
9626
|
}
|
|
9584
|
-
if (arg_2) options = _objectSpread$
|
|
9627
|
+
if (arg_2) options = _objectSpread$3({ defaultCountry: arg_2 }, options);
|
|
9585
9628
|
} else if (isObject(arg_2)) if (arg_3) {
|
|
9586
9629
|
options = arg_2;
|
|
9587
9630
|
metadata = arg_3;
|
|
@@ -9595,6 +9638,74 @@ function normalizeArguments(args) {
|
|
|
9595
9638
|
}
|
|
9596
9639
|
//#endregion
|
|
9597
9640
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js
|
|
9641
|
+
function _typeof$2(o) {
|
|
9642
|
+
"@babel/helpers - typeof";
|
|
9643
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
9644
|
+
return typeof o;
|
|
9645
|
+
} : function(o) {
|
|
9646
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9647
|
+
}, _typeof$2(o);
|
|
9648
|
+
}
|
|
9649
|
+
function ownKeys$2(e, r) {
|
|
9650
|
+
var t = Object.keys(e);
|
|
9651
|
+
if (Object.getOwnPropertySymbols) {
|
|
9652
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
9653
|
+
r && (o = o.filter(function(r) {
|
|
9654
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
9655
|
+
})), t.push.apply(t, o);
|
|
9656
|
+
}
|
|
9657
|
+
return t;
|
|
9658
|
+
}
|
|
9659
|
+
function _objectSpread$2(e) {
|
|
9660
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
9661
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
9662
|
+
r % 2 ? ownKeys$2(Object(t), !0).forEach(function(r) {
|
|
9663
|
+
_defineProperty$2(e, r, t[r]);
|
|
9664
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function(r) {
|
|
9665
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
9666
|
+
});
|
|
9667
|
+
}
|
|
9668
|
+
return e;
|
|
9669
|
+
}
|
|
9670
|
+
function _defineProperty$2(e, r, t) {
|
|
9671
|
+
return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, {
|
|
9672
|
+
value: t,
|
|
9673
|
+
enumerable: !0,
|
|
9674
|
+
configurable: !0,
|
|
9675
|
+
writable: !0
|
|
9676
|
+
}) : e[r] = t, e;
|
|
9677
|
+
}
|
|
9678
|
+
function _toPropertyKey$2(t) {
|
|
9679
|
+
var i = _toPrimitive$2(t, "string");
|
|
9680
|
+
return "symbol" == _typeof$2(i) ? i : i + "";
|
|
9681
|
+
}
|
|
9682
|
+
function _toPrimitive$2(t, r) {
|
|
9683
|
+
if ("object" != _typeof$2(t) || !t) return t;
|
|
9684
|
+
var e = t[Symbol.toPrimitive];
|
|
9685
|
+
if (void 0 !== e) {
|
|
9686
|
+
var i = e.call(t, r || "default");
|
|
9687
|
+
if ("object" != _typeof$2(i)) return i;
|
|
9688
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9689
|
+
}
|
|
9690
|
+
return ("string" === r ? String : Number)(t);
|
|
9691
|
+
}
|
|
9692
|
+
function parsePhoneNumber$2(text, options, metadata) {
|
|
9693
|
+
if (options && options.defaultCountry && !isSupportedCountry(options.defaultCountry, metadata)) options = _objectSpread$2(_objectSpread$2({}, options), {}, { defaultCountry: void 0 });
|
|
9694
|
+
try {
|
|
9695
|
+
return parsePhoneNumberWithError(text, options, metadata);
|
|
9696
|
+
} catch (error) {
|
|
9697
|
+
/* istanbul ignore else */
|
|
9698
|
+
if (error instanceof ParseError) {} else throw error;
|
|
9699
|
+
}
|
|
9700
|
+
}
|
|
9701
|
+
//#endregion
|
|
9702
|
+
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parsePhoneNumber.js
|
|
9703
|
+
function parsePhoneNumber$1() {
|
|
9704
|
+
var _normalizeArguments = normalizeArguments(arguments), text = _normalizeArguments.text, options = _normalizeArguments.options, metadata = _normalizeArguments.metadata;
|
|
9705
|
+
return parsePhoneNumber$2(text, options, metadata);
|
|
9706
|
+
}
|
|
9707
|
+
//#endregion
|
|
9708
|
+
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js
|
|
9598
9709
|
function _typeof$1(o) {
|
|
9599
9710
|
"@babel/helpers - typeof";
|
|
9600
9711
|
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -9646,23 +9757,14 @@ function _toPrimitive$1(t, r) {
|
|
|
9646
9757
|
}
|
|
9647
9758
|
return ("string" === r ? String : Number)(t);
|
|
9648
9759
|
}
|
|
9649
|
-
function
|
|
9650
|
-
if (options && options.defaultCountry && !isSupportedCountry(options.defaultCountry, metadata)) options = _objectSpread$1(_objectSpread$1({}, options), {}, { defaultCountry: void 0 });
|
|
9651
|
-
try {
|
|
9652
|
-
return parsePhoneNumberWithError(text, options, metadata);
|
|
9653
|
-
} catch (error) {
|
|
9654
|
-
/* istanbul ignore else */
|
|
9655
|
-
if (error instanceof ParseError) {} else throw error;
|
|
9656
|
-
}
|
|
9657
|
-
}
|
|
9658
|
-
//#endregion
|
|
9659
|
-
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parsePhoneNumber.js
|
|
9660
|
-
function parsePhoneNumber$1() {
|
|
9760
|
+
function isValidPhoneNumber$1() {
|
|
9661
9761
|
var _normalizeArguments = normalizeArguments(arguments), text = _normalizeArguments.text, options = _normalizeArguments.options, metadata = _normalizeArguments.metadata;
|
|
9662
|
-
|
|
9762
|
+
options = _objectSpread$1(_objectSpread$1({}, options), {}, { extract: false });
|
|
9763
|
+
var phoneNumber = parsePhoneNumber$2(text, options, metadata);
|
|
9764
|
+
return phoneNumber && phoneNumber.isValid() || false;
|
|
9663
9765
|
}
|
|
9664
9766
|
//#endregion
|
|
9665
|
-
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/
|
|
9767
|
+
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/isPossiblePhoneNumber.js
|
|
9666
9768
|
function _typeof(o) {
|
|
9667
9769
|
"@babel/helpers - typeof";
|
|
9668
9770
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -9714,11 +9816,11 @@ function _toPrimitive(t, r) {
|
|
|
9714
9816
|
}
|
|
9715
9817
|
return ("string" === r ? String : Number)(t);
|
|
9716
9818
|
}
|
|
9717
|
-
function
|
|
9819
|
+
function isPossiblePhoneNumber$1() {
|
|
9718
9820
|
var _normalizeArguments = normalizeArguments(arguments), text = _normalizeArguments.text, options = _normalizeArguments.options, metadata = _normalizeArguments.metadata;
|
|
9719
9821
|
options = _objectSpread(_objectSpread({}, options), {}, { extract: false });
|
|
9720
9822
|
var phoneNumber = parsePhoneNumber$2(text, options, metadata);
|
|
9721
|
-
return phoneNumber && phoneNumber.
|
|
9823
|
+
return phoneNumber && phoneNumber.isPossible() || false;
|
|
9722
9824
|
}
|
|
9723
9825
|
//#endregion
|
|
9724
9826
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js
|
|
@@ -9731,8 +9833,17 @@ function isValidPhoneNumber() {
|
|
|
9731
9833
|
return withMetadataArgument(isValidPhoneNumber$1, arguments);
|
|
9732
9834
|
}
|
|
9733
9835
|
//#endregion
|
|
9836
|
+
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/min/exports/isPossiblePhoneNumber.js
|
|
9837
|
+
function isPossiblePhoneNumber() {
|
|
9838
|
+
return withMetadataArgument(isPossiblePhoneNumber$1, arguments);
|
|
9839
|
+
}
|
|
9840
|
+
//#endregion
|
|
9734
9841
|
//#region ../infra/src/providers/browser/PhoneValidationProvider.ts
|
|
9842
|
+
var PhoneValidationProvider_exports = /* @__PURE__ */ __exportAll({ PhoneValidationProvider: () => PhoneValidationProvider });
|
|
9735
9843
|
var PhoneValidationProvider = class {
|
|
9844
|
+
isPossible(phone) {
|
|
9845
|
+
return isPossiblePhoneNumber(phone);
|
|
9846
|
+
}
|
|
9736
9847
|
isValid(phone, country) {
|
|
9737
9848
|
if (!phone) return false;
|
|
9738
9849
|
try {
|
|
@@ -9750,710 +9861,4 @@ var PhoneValidationProvider = class {
|
|
|
9750
9861
|
}
|
|
9751
9862
|
};
|
|
9752
9863
|
//#endregion
|
|
9753
|
-
|
|
9754
|
-
const phoneValidator = new PhoneValidationProvider();
|
|
9755
|
-
/** Progressively formats an SSN as XXX-XX-XXXX */
|
|
9756
|
-
function formatSSN(value) {
|
|
9757
|
-
const ssn = value?.replace(/\D/g, "") ?? "";
|
|
9758
|
-
if (ssn.length < 4) return ssn;
|
|
9759
|
-
if (ssn.length < 6) return `${ssn.slice(0, 3)}-${ssn.slice(3)}`;
|
|
9760
|
-
return `${ssn.slice(0, 3)}-${ssn.slice(3, 5)}-${ssn.slice(5, 9)}`;
|
|
9761
|
-
}
|
|
9762
|
-
/**
|
|
9763
|
-
* Strips invalid characters from a name.
|
|
9764
|
-
* Fixes SDKv1 regex syntax issue — allows letters, accented chars, spaces, commas, apostrophes.
|
|
9765
|
-
*/
|
|
9766
|
-
function cleanName(name) {
|
|
9767
|
-
return (name ?? "").replace(/[^a-zA-ZñÑáéíóúÁÉÍÓÚ\s,'´]/g, "").slice(0, 100);
|
|
9768
|
-
}
|
|
9769
|
-
const PO_BOX_REGEX = /POBox|P\.O\.Box|pobox|postofficebox|postbox|po\.box|p\.o\.box/i;
|
|
9770
|
-
/** Returns true if the address looks like a P.O. Box */
|
|
9771
|
-
function isPoBox(address) {
|
|
9772
|
-
return PO_BOX_REGEX.test(address.replace(/\s/g, ""));
|
|
9773
|
-
}
|
|
9774
|
-
function validatePhone(phone, country) {
|
|
9775
|
-
return phoneValidator.isValid(phone, country);
|
|
9776
|
-
}
|
|
9777
|
-
function formatPhoneE164(phone, country) {
|
|
9778
|
-
return phoneValidator.formatE164(phone, country) ?? phone;
|
|
9779
|
-
}
|
|
9780
|
-
const ONE_OF_REQUIRED_ERROR_KEY = "verification.errors.dobOrSsnRequired";
|
|
9781
|
-
const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
|
|
9782
|
-
const SSN_FORMAT_REGEX = /^\d{3}-\d{2}-\d{4}$/;
|
|
9783
|
-
const EMAIL_FORMAT_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
9784
|
-
const buildPostalCodeParams = (country) => {
|
|
9785
|
-
const fixedLen = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
|
|
9786
|
-
if (fixedLen !== void 0) return { length: fixedLen };
|
|
9787
|
-
let maxLen = getPostalCodeMaxLength(country);
|
|
9788
|
-
if (country === "US" || country === "BR") maxLen = maxLen - 1;
|
|
9789
|
-
return { maxLength: maxLen };
|
|
9790
|
-
};
|
|
9791
|
-
const createValidators = () => ({
|
|
9792
|
-
required: (value, _rule, field) => {
|
|
9793
|
-
if (value.trim().length > 0) return void 0;
|
|
9794
|
-
const fieldName = field.displayLabel ?? field.label;
|
|
9795
|
-
return fieldName ? {
|
|
9796
|
-
key: DYNAMIC_REQUIRED_KEY,
|
|
9797
|
-
params: { fieldName }
|
|
9798
|
-
} : { key: DYNAMIC_REQUIRED_KEY };
|
|
9799
|
-
},
|
|
9800
|
-
streetLevelRequired: (value) => {
|
|
9801
|
-
if (value.trim().length > 0) return void 0;
|
|
9802
|
-
return STREET_LEVEL_REQUIRED_ERROR;
|
|
9803
|
-
},
|
|
9804
|
-
cpf: (value) => {
|
|
9805
|
-
if (value.trim().length === 0) return void 0;
|
|
9806
|
-
return validateCPF(value) ? void 0 : { key: "verification.errors.invalidTaxId" };
|
|
9807
|
-
},
|
|
9808
|
-
ssnFormat: (value) => {
|
|
9809
|
-
if (value.trim().length === 0) return void 0;
|
|
9810
|
-
return SSN_FORMAT_REGEX.test(value) ? void 0 : { key: "verification.errors.ssnFormat" };
|
|
9811
|
-
},
|
|
9812
|
-
noPoBox: (value) => {
|
|
9813
|
-
if (value.trim().length === 0) return void 0;
|
|
9814
|
-
return isPoBox(value) ? { key: "verification.errors.poBox" } : void 0;
|
|
9815
|
-
},
|
|
9816
|
-
postalCodeFormat: (value, rule) => {
|
|
9817
|
-
if (rule.type !== "postalCodeFormat") return void 0;
|
|
9818
|
-
if (value.trim().length === 0) return void 0;
|
|
9819
|
-
if (validatePostalCode(value, rule.country)) return void 0;
|
|
9820
|
-
return {
|
|
9821
|
-
key: getPostalCodeErrorKey(rule.country),
|
|
9822
|
-
params: buildPostalCodeParams(rule.country)
|
|
9823
|
-
};
|
|
9824
|
-
},
|
|
9825
|
-
phoneFormat: (value, rule) => {
|
|
9826
|
-
if (rule.type !== "phoneFormat") return void 0;
|
|
9827
|
-
const trimmed = value.trim();
|
|
9828
|
-
if (rule.optional && trimmed.length === 0) return void 0;
|
|
9829
|
-
return validatePhone(trimmed, rule.country) ? void 0 : { key: "verification.errors.phoneInvalid" };
|
|
9830
|
-
},
|
|
9831
|
-
emailFormat: (value) => {
|
|
9832
|
-
if (value.trim().length === 0) return void 0;
|
|
9833
|
-
return EMAIL_FORMAT_REGEX.test(value) ? void 0 : { key: "verification.errors.emailInvalid" };
|
|
9834
|
-
},
|
|
9835
|
-
exactLength: (value, rule) => {
|
|
9836
|
-
if (rule.type !== "exactLength") return void 0;
|
|
9837
|
-
if (value.trim().length === 0) return void 0;
|
|
9838
|
-
return value.length === rule.length ? void 0 : { key: "verification.errors.exactly10Characters" };
|
|
9839
|
-
},
|
|
9840
|
-
oneOfRequired: (_value, rule, _field, values) => {
|
|
9841
|
-
if (rule.type !== "oneOfRequired") return void 0;
|
|
9842
|
-
return rule.fields.some((name) => normalizeFieldValue(values[name]).trim().length > 0) ? void 0 : { key: ONE_OF_REQUIRED_ERROR_KEY };
|
|
9843
|
-
}
|
|
9844
|
-
});
|
|
9845
|
-
const evaluateRules = (value, rules, field, values, validators) => {
|
|
9846
|
-
if (!rules) return void 0;
|
|
9847
|
-
for (const rule of rules) {
|
|
9848
|
-
const error = validators[rule.type](value, rule, field, values);
|
|
9849
|
-
if (error) return error;
|
|
9850
|
-
}
|
|
9851
|
-
};
|
|
9852
|
-
function validateEkycForm(values, fields) {
|
|
9853
|
-
const validators = createValidators();
|
|
9854
|
-
return fields.reduce((errors, field) => {
|
|
9855
|
-
const value = normalizeFieldValue(values[field.name]);
|
|
9856
|
-
const error = evaluateRules(value, field.validation, field, values, validators);
|
|
9857
|
-
if (error) errors[field.name] = error;
|
|
9858
|
-
return errors;
|
|
9859
|
-
}, {});
|
|
9860
|
-
}
|
|
9861
|
-
function validateEkycField(values, fieldName, fields) {
|
|
9862
|
-
const field = fields.find((f) => f.name === fieldName);
|
|
9863
|
-
if (!field) return void 0;
|
|
9864
|
-
const validators = createValidators();
|
|
9865
|
-
const value = normalizeFieldValue(values[field.name]);
|
|
9866
|
-
return evaluateRules(value, field.validation, field, values, validators);
|
|
9867
|
-
}
|
|
9868
|
-
//#endregion
|
|
9869
|
-
//#region src/modules/ekyc/ekycActions.ts
|
|
9870
|
-
const dateFormattingInstance = new DateFormattingProvider();
|
|
9871
|
-
function buildValidationRules(field, country, configSource) {
|
|
9872
|
-
const rules = [];
|
|
9873
|
-
if (field.required) rules.push({ type: "required" });
|
|
9874
|
-
if (field.name === "taxId" && country === "BR") rules.push({ type: "cpf" });
|
|
9875
|
-
if (field.name === "ssn" && (country === "US" || country === "CA")) rules.push({ type: "ssnFormat" });
|
|
9876
|
-
if (field.name === "street") rules.push({ type: "noPoBox" });
|
|
9877
|
-
if (field.name === "postalCode") rules.push({
|
|
9878
|
-
type: "postalCodeFormat",
|
|
9879
|
-
country
|
|
9880
|
-
});
|
|
9881
|
-
if (field.name === "phone") rules.push({
|
|
9882
|
-
type: "phoneFormat",
|
|
9883
|
-
country,
|
|
9884
|
-
optional: isFieldOptional("phone", configSource)
|
|
9885
|
-
});
|
|
9886
|
-
if (field.name === "email") rules.push({ type: "emailFormat" });
|
|
9887
|
-
if (field.name === "panNumber") rules.push({
|
|
9888
|
-
type: "exactLength",
|
|
9889
|
-
length: 10
|
|
9890
|
-
});
|
|
9891
|
-
return rules;
|
|
9892
|
-
}
|
|
9893
|
-
function applyOneOfRequiredGroups(defs, configSource) {
|
|
9894
|
-
for (const group of ONE_OF_REQUIRED_GROUPS[configSource] ?? []) {
|
|
9895
|
-
const members = defs.filter((def) => group.includes(def.name));
|
|
9896
|
-
const fields = members.map((def) => def.name);
|
|
9897
|
-
for (const def of members) def.validation = [{
|
|
9898
|
-
type: "oneOfRequired",
|
|
9899
|
-
fields
|
|
9900
|
-
}, ...def.validation ?? []];
|
|
9901
|
-
}
|
|
9902
|
-
}
|
|
9903
|
-
function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false) {
|
|
9904
|
-
const defs = [];
|
|
9905
|
-
const add = (name, type, label, source, opts) => {
|
|
9906
|
-
if (source === false) return;
|
|
9907
|
-
const def = {
|
|
9908
|
-
name,
|
|
9909
|
-
type,
|
|
9910
|
-
label,
|
|
9911
|
-
source,
|
|
9912
|
-
required: !isFieldOptional(name, configSource),
|
|
9913
|
-
...opts
|
|
9914
|
-
};
|
|
9915
|
-
const validation = buildValidationRules(def, country, configSource);
|
|
9916
|
-
if (validation.length > 0) def.validation = validation;
|
|
9917
|
-
defs.push(def);
|
|
9918
|
-
};
|
|
9919
|
-
const nameSource = fields.name || (NAME_SOURCES.includes(configSource) ? "user_input" : false);
|
|
9920
|
-
if (nameSource) {
|
|
9921
|
-
add("firstName", "text", "verification.labels.firstName", nameSource, {
|
|
9922
|
-
maxLength: 100,
|
|
9923
|
-
placeholder: "verification.placeholder.firstName"
|
|
9924
|
-
});
|
|
9925
|
-
if (MIDDLE_NAME_SOURCES.includes(configSource)) add("middleName", "text", "verification.labels.middleName", nameSource, {
|
|
9926
|
-
maxLength: 100,
|
|
9927
|
-
placeholder: "verification.placeholder.middleName",
|
|
9928
|
-
optional: true
|
|
9929
|
-
});
|
|
9930
|
-
add("surName", "text", country === "US" ? "verification.labels.lastName" : "verification.labels.surName", nameSource, {
|
|
9931
|
-
maxLength: 100,
|
|
9932
|
-
placeholder: country === "US" ? "verification.placeholder.lastName" : "verification.placeholder.surname"
|
|
9933
|
-
});
|
|
9934
|
-
if (country === "MX") add("maternalSurname", "text", "verification.labels.maternalSurname", nameSource, {
|
|
9935
|
-
maxLength: 100,
|
|
9936
|
-
placeholder: "verification.placeholder.maternalSurname"
|
|
9937
|
-
});
|
|
9938
|
-
}
|
|
9939
|
-
if (fields["date of birth"]) add("dateOfBirth", "date", "verification.labels.dateOfBirth", fields["date of birth"]);
|
|
9940
|
-
const emailSource = fields.email || (EMAIL_SOURCES.includes(configSource) ? "user_input" : false);
|
|
9941
|
-
if (emailSource) add("email", "text", "verification.labels.email", emailSource, { placeholder: "verification.placeholder.email" });
|
|
9942
|
-
if (fields.phone) {
|
|
9943
|
-
const phoneCountrySelectorDisabled = enablePhoneRisk && configSource !== "PHONE_RISK_1" || COUNTRY_SELECTOR_DISABLED_SOURCES.includes(configSource);
|
|
9944
|
-
add("phone", "phone", "verification.labels.phone", fields.phone, { disableCountrySelector: phoneCountrySelectorDisabled });
|
|
9945
|
-
}
|
|
9946
|
-
if (fields.SSN) if (country === "BR" || TAX_ID_SOURCES.includes(configSource)) add("taxId", "text", "verification.labels.taxId", fields.SSN, { ...country === "BR" && { displayLabel: "CPF" } });
|
|
9947
|
-
else if (country === "CN") add("ssn", "text", "verification.labels.prcId", fields.SSN);
|
|
9948
|
-
else add("ssn", "text", "verification.labels.ssn", fields.SSN, { maxLength: 11 });
|
|
9949
|
-
if (fields.nationality) if (country === "BR") add("nationality", "dropdown", "verification.labels.nationality", fields.nationality, { options: [
|
|
9950
|
-
{
|
|
9951
|
-
value: "brazilian",
|
|
9952
|
-
label: "verification.labels.brazilian"
|
|
9953
|
-
},
|
|
9954
|
-
{
|
|
9955
|
-
value: "naturalizedBrazilian",
|
|
9956
|
-
label: "verification.labels.naturalizedBrazilian"
|
|
9957
|
-
},
|
|
9958
|
-
{
|
|
9959
|
-
value: "foreigner",
|
|
9960
|
-
label: "verification.labels.foreigner"
|
|
9961
|
-
},
|
|
9962
|
-
{
|
|
9963
|
-
value: "brazilianBornAbroad",
|
|
9964
|
-
label: "verification.labels.brazilianBornAbroad"
|
|
9965
|
-
}
|
|
9966
|
-
] });
|
|
9967
|
-
else add("nationality", "text", "verification.labels.nationality", fields.nationality);
|
|
9968
|
-
if (fields.last4SSN) add("last4SSN", "text", "verification.labels.last4SSN", fields.last4SSN, { maxLength: 4 });
|
|
9969
|
-
if (fields.idNum) add("idNum", "text", "verification.labels.idNum", fields.idNum, { maxLength: 13 });
|
|
9970
|
-
if (fields.idNum1) add("idNum1", "text", "verification.labels.idNum1", fields.idNum1);
|
|
9971
|
-
if (fields.gender) add("gender", "radio", "verification.labels.gender", fields.gender, { options: [{
|
|
9972
|
-
value: "F",
|
|
9973
|
-
label: "common.female"
|
|
9974
|
-
}, {
|
|
9975
|
-
value: "M",
|
|
9976
|
-
label: "common.male"
|
|
9977
|
-
}] });
|
|
9978
|
-
if (fields.panNumber) add("panNumber", "text", "verification.labels.panNumber", fields.panNumber, { maxLength: 10 });
|
|
9979
|
-
const addAddressFields = () => {
|
|
9980
|
-
const needsAddress = HOUSE_NO_SOURCES.includes(configSource) || STREET_SOURCES.includes(configSource) || ADDRESS_STATE_SOURCES.includes(configSource);
|
|
9981
|
-
const addrSource = fields.address || (needsAddress ? "user_input" : false);
|
|
9982
|
-
if (!addrSource) return;
|
|
9983
|
-
if (HOUSE_NO_SOURCES.includes(configSource)) add("houseNo", "text", "verification.labels.houseNo", addrSource, { section: "address" });
|
|
9984
|
-
if (STREET_SOURCES.includes(configSource)) add("street", "text", "verification.labels.street", addrSource, { section: "address" });
|
|
9985
|
-
if (APARTMENT_SOURCES.includes(configSource)) add("apartment", "text", "verification.labels.apartment", addrSource, {
|
|
9986
|
-
section: "address",
|
|
9987
|
-
placeholder: "verification.placeholder.apartment"
|
|
9988
|
-
});
|
|
9989
|
-
if (CITY_SOURCES.includes(configSource)) add("city", "text", "verification.labels.city", addrSource, { section: "address" });
|
|
9990
|
-
if (ADDRESS_STATE_SOURCES.includes(configSource)) add("state", country === "US" ? "dropdown" : "text", country === "US" ? "verification.labels.chooseState" : "verification.labels.state", addrSource, {
|
|
9991
|
-
section: "address",
|
|
9992
|
-
...country === "US" ? {
|
|
9993
|
-
options: usStateOptions,
|
|
9994
|
-
placeholder: "verification.placeholder.state"
|
|
9995
|
-
} : {
|
|
9996
|
-
placeholder: "verification.placeholder.stateCode",
|
|
9997
|
-
placeholderParams: { states: STATE_CODE_HINTS[country] ?? "" }
|
|
9998
|
-
}
|
|
9999
|
-
});
|
|
10000
|
-
if (POSTAL_CODE_SOURCES.includes(configSource)) add("postalCode", "text", country === "US" ? "verification.labels.zipCode" : "verification.labels.postalCode", addrSource, {
|
|
10001
|
-
section: "address",
|
|
10002
|
-
maxLength: getPostalCodeMaxLength(country)
|
|
10003
|
-
});
|
|
10004
|
-
};
|
|
10005
|
-
const addDriversLicenseFields = () => {
|
|
10006
|
-
if (fields.dlNumber) add("dlNumber", "text", "verification.labels.dlNumber", fields.dlNumber, { section: "driverLicense" });
|
|
10007
|
-
if (fields.dlState) add("dlState", "dropdown", "verification.labels.dlState", fields.dlState, {
|
|
10008
|
-
section: "driverLicense",
|
|
10009
|
-
options: usStateOptions,
|
|
10010
|
-
placeholder: "verification.placeholder.state"
|
|
10011
|
-
});
|
|
10012
|
-
if (fields.dlExpireAt) add("dlExpireAt", "date", "verification.labels.dlExpireAt", fields.dlExpireAt, { section: "driverLicense" });
|
|
10013
|
-
};
|
|
10014
|
-
if (configSource === "US_TELCO_1") {
|
|
10015
|
-
addDriversLicenseFields();
|
|
10016
|
-
addAddressFields();
|
|
10017
|
-
} else {
|
|
10018
|
-
addAddressFields();
|
|
10019
|
-
addDriversLicenseFields();
|
|
10020
|
-
}
|
|
10021
|
-
applyOneOfRequiredGroups(defs, configSource);
|
|
10022
|
-
return defs;
|
|
10023
|
-
}
|
|
10024
|
-
function applyPrefill(fields, ocrData, otpStatus, _country) {
|
|
10025
|
-
const values = {};
|
|
10026
|
-
const prefilled = {};
|
|
10027
|
-
const readonlyFields = [];
|
|
10028
|
-
let hideEmail = false;
|
|
10029
|
-
if (fields.name === "document_scan" && ocrData?.name) {
|
|
10030
|
-
if (ocrData.name.firstName) {
|
|
10031
|
-
values.firstName = ocrData.name.firstName;
|
|
10032
|
-
prefilled.firstName = true;
|
|
10033
|
-
readonlyFields.push("firstName");
|
|
10034
|
-
}
|
|
10035
|
-
if (ocrData.name.paternalLastName) {
|
|
10036
|
-
values.surName = ocrData.name.paternalLastName;
|
|
10037
|
-
prefilled.surName = true;
|
|
10038
|
-
readonlyFields.push("surName");
|
|
10039
|
-
}
|
|
10040
|
-
if (ocrData.name.middleName) {
|
|
10041
|
-
values.middleName = ocrData.name.middleName;
|
|
10042
|
-
prefilled.middleName = true;
|
|
10043
|
-
readonlyFields.push("middleName");
|
|
10044
|
-
}
|
|
10045
|
-
if (ocrData.name.maternalLastName) {
|
|
10046
|
-
values.maternalSurname = ocrData.name.maternalLastName;
|
|
10047
|
-
prefilled.maternalSurname = true;
|
|
10048
|
-
readonlyFields.push("maternalSurname");
|
|
10049
|
-
}
|
|
10050
|
-
}
|
|
10051
|
-
const ocrBirthDate = dateFormattingInstance.utcToIsoDateString(ocrData?.birthDate);
|
|
10052
|
-
if (fields["date of birth"] === "document_scan" && ocrBirthDate) {
|
|
10053
|
-
values.dateOfBirth = ocrBirthDate;
|
|
10054
|
-
prefilled.dateOfBirth = true;
|
|
10055
|
-
readonlyFields.push("dateOfBirth");
|
|
10056
|
-
}
|
|
10057
|
-
const addressSource = fields.address;
|
|
10058
|
-
if (addressSource === "document_scan" || addressSource === "poa_document") {
|
|
10059
|
-
const addrData = addressSource === "poa_document" ? ocrData?.addressFieldsFromStatement ?? void 0 : ocrData?.addressFields ?? ocrData?.checkedAddressBean ?? void 0;
|
|
10060
|
-
if (addrData) {
|
|
10061
|
-
if (addrData.street) {
|
|
10062
|
-
values.street = addrData.street;
|
|
10063
|
-
prefilled.street = true;
|
|
10064
|
-
readonlyFields.push("street");
|
|
10065
|
-
}
|
|
10066
|
-
if (addrData.city) {
|
|
10067
|
-
values.city = addrData.city;
|
|
10068
|
-
prefilled.city = true;
|
|
10069
|
-
readonlyFields.push("city");
|
|
10070
|
-
}
|
|
10071
|
-
if (addrData.state) {
|
|
10072
|
-
values.state = addrData.state;
|
|
10073
|
-
prefilled.state = true;
|
|
10074
|
-
readonlyFields.push("state");
|
|
10075
|
-
}
|
|
10076
|
-
if (addrData.postalCode) {
|
|
10077
|
-
values.postalCode = addrData.postalCode;
|
|
10078
|
-
prefilled.postalCode = true;
|
|
10079
|
-
readonlyFields.push("postalCode");
|
|
10080
|
-
}
|
|
10081
|
-
if (addrData.houseNumber) {
|
|
10082
|
-
values.houseNo = addrData.houseNumber;
|
|
10083
|
-
prefilled.houseNo = true;
|
|
10084
|
-
readonlyFields.push("houseNo");
|
|
10085
|
-
}
|
|
10086
|
-
}
|
|
10087
|
-
}
|
|
10088
|
-
if (fields.phone === "phone_module_input" && otpStatus?.phone) {
|
|
10089
|
-
values.phone = otpStatus.phone;
|
|
10090
|
-
prefilled.phone = true;
|
|
10091
|
-
readonlyFields.push("phone");
|
|
10092
|
-
}
|
|
10093
|
-
if (fields.email === "email_module_input" && otpStatus?.email) {
|
|
10094
|
-
values.email = otpStatus.email;
|
|
10095
|
-
prefilled.email = true;
|
|
10096
|
-
hideEmail = true;
|
|
10097
|
-
}
|
|
10098
|
-
return {
|
|
10099
|
-
values,
|
|
10100
|
-
prefilled,
|
|
10101
|
-
hideEmail,
|
|
10102
|
-
readonlyFields
|
|
10103
|
-
};
|
|
10104
|
-
}
|
|
10105
|
-
function buildSubmitPayload(ctx) {
|
|
10106
|
-
const payload = {};
|
|
10107
|
-
for (const field of ctx.fields) {
|
|
10108
|
-
const val = ctx.values[field.name];
|
|
10109
|
-
if (val !== void 0 && val !== "") payload[field.name] = val;
|
|
10110
|
-
}
|
|
10111
|
-
if (payload.nationality) payload.nationality = payload.nationality.toUpperCase();
|
|
10112
|
-
if (ctx.fieldsCountry) payload.countryCode = ctx.fieldsCountry;
|
|
10113
|
-
if (ctx.hideEmail && ctx.values.email) payload.email = ctx.values.email;
|
|
10114
|
-
if (payload.ssn && (ctx.fieldsCountry === "US" || ctx.fieldsCountry === "CA")) payload.ssn = payload.ssn.replace(/-/g, "");
|
|
10115
|
-
if (payload.postalCode) payload.postalCode = payload.postalCode.replace(/[-\s]/g, "");
|
|
10116
|
-
if (payload.phone) payload.phone = formatPhoneE164(payload.phone, ctx.fieldsCountry);
|
|
10117
|
-
if (payload.state) payload.state = payload.state.toUpperCase();
|
|
10118
|
-
if (ctx.configSource === "UK_CREDIT_BUREAU_1" && payload.countryCode) payload.country = payload.countryCode;
|
|
10119
|
-
if (ctx.configSource === "US_DRIVERS_LICENSE_1" && payload.dlState) payload.state = payload.dlState;
|
|
10120
|
-
return {
|
|
10121
|
-
...payload,
|
|
10122
|
-
plugins: ["kyc"],
|
|
10123
|
-
source: ctx.configSource
|
|
10124
|
-
};
|
|
10125
|
-
}
|
|
10126
|
-
function processFieldValue(name, value, fieldsCountry) {
|
|
10127
|
-
if ((name === "firstName" || name === "surName" || name === "middleName" || name === "maternalSurname") && value) return cleanName(value);
|
|
10128
|
-
if (name === "ssn" && (fieldsCountry === "US" || fieldsCountry === "CA")) return formatSSN(value);
|
|
10129
|
-
if (name === "postalCode") return formatPostalCode(value, fieldsCountry);
|
|
10130
|
-
if (name === "panNumber") return value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase();
|
|
10131
|
-
return value;
|
|
10132
|
-
}
|
|
10133
|
-
//#endregion
|
|
10134
|
-
//#region src/modules/ekyc/ekycServices.ts
|
|
10135
|
-
/** Fetches module configuration for EXTERNAL_VERIFICATION */
|
|
10136
|
-
async function fetchModuleConfig(flowId, signal) {
|
|
10137
|
-
const url = `${endpoints.moduleConfig}?id=${encodeURIComponent(flowId)}&moduleKey=EXTERNAL_VERIFICATION`;
|
|
10138
|
-
const res = await api.get(url, { signal });
|
|
10139
|
-
if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
|
|
10140
|
-
return res.data;
|
|
10141
|
-
}
|
|
10142
|
-
/** Fetches OCR data for pre-fill */
|
|
10143
|
-
async function fetchOcrData(signal) {
|
|
10144
|
-
const res = await api.get(endpoints.ocrData, { signal });
|
|
10145
|
-
if (!res.ok) throw new Error(`GET ${endpoints.ocrData} failed: ${res.status} ${res.statusText}`);
|
|
10146
|
-
return res.data;
|
|
10147
|
-
}
|
|
10148
|
-
/** Fetches phone/email from prior OTP modules */
|
|
10149
|
-
async function fetchOtpStatus(signal) {
|
|
10150
|
-
const res = await api.get(endpoints.otpStatus, { signal });
|
|
10151
|
-
if (!res.ok) throw new Error(`GET ${endpoints.otpStatus} failed: ${res.status} ${res.statusText}`);
|
|
10152
|
-
return res.data;
|
|
10153
|
-
}
|
|
10154
|
-
var EkycSubmitError = class extends Error {
|
|
10155
|
-
constructor(status, apiError) {
|
|
10156
|
-
super(`POST ${endpoints.ekycSubmit} failed: ${status} – ${apiError}`);
|
|
10157
|
-
this.name = "EkycSubmitError";
|
|
10158
|
-
this.status = status;
|
|
10159
|
-
this.apiError = apiError;
|
|
10160
|
-
}
|
|
10161
|
-
};
|
|
10162
|
-
/** Submits eKYC verification */
|
|
10163
|
-
async function submitEkyc(data, signal) {
|
|
10164
|
-
try {
|
|
10165
|
-
return (await api.post(endpoints.ekycSubmit, data, { signal })).data;
|
|
10166
|
-
} catch (err) {
|
|
10167
|
-
const httpErr = err;
|
|
10168
|
-
if (typeof httpErr.status === "number") {
|
|
10169
|
-
const body = httpErr.data;
|
|
10170
|
-
const apiError = body?.error ?? body?.message ?? String(err);
|
|
10171
|
-
throw new EkycSubmitError(httpErr.status, apiError);
|
|
10172
|
-
}
|
|
10173
|
-
throw err;
|
|
10174
|
-
}
|
|
10175
|
-
}
|
|
10176
|
-
//#endregion
|
|
10177
|
-
//#region src/modules/ekyc/ekycGuards.ts
|
|
10178
|
-
const hasNoValidationErrorsGuard = ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0;
|
|
10179
|
-
const hasFlowIdGuard = ({ context }) => !!context.config.flowId;
|
|
10180
|
-
const hasVerificationFieldsGuard = ({ context }) => !!context.config.verificationFields;
|
|
10181
|
-
const COUNTRY_NOT_SUPPORTED_MSG = "Request unsuccessful. Country not supported for EKYC.";
|
|
10182
|
-
const isCountryNotSupportedGuard = ({ event }) => {
|
|
10183
|
-
const err = event.error;
|
|
10184
|
-
return err instanceof EkycSubmitError && err.status === 400 && err.apiError === COUNTRY_NOT_SUPPORTED_MSG;
|
|
10185
|
-
};
|
|
10186
|
-
//#endregion
|
|
10187
|
-
//#region src/modules/ekyc/ekycActors.ts
|
|
10188
|
-
const fetchModuleConfigActor = fromPromise(async ({ input, signal }) => fetchModuleConfig(input.flowId, signal));
|
|
10189
|
-
const fetchPrefillDataActor = fromPromise(async ({ signal }) => {
|
|
10190
|
-
const [ocrData, otpStatus] = await Promise.all([fetchOcrData(signal).catch(() => void 0), fetchOtpStatus(signal).catch(() => void 0)]);
|
|
10191
|
-
return {
|
|
10192
|
-
ocrData,
|
|
10193
|
-
otpStatus
|
|
10194
|
-
};
|
|
10195
|
-
});
|
|
10196
|
-
const submitEkycActor = fromPromise(async ({ input, signal }) => submitEkyc(input, signal));
|
|
10197
|
-
//#endregion
|
|
10198
|
-
//#region src/modules/ekyc/ekycStateMachine.ts
|
|
10199
|
-
const ADDRESS_AUTOCOMPLETE_KEYS = [
|
|
10200
|
-
"street",
|
|
10201
|
-
"city",
|
|
10202
|
-
"state",
|
|
10203
|
-
"postalCode",
|
|
10204
|
-
"houseNo"
|
|
10205
|
-
];
|
|
10206
|
-
const omitKeys = (errors, keys) => {
|
|
10207
|
-
if (!errors) return void 0;
|
|
10208
|
-
const next = { ...errors };
|
|
10209
|
-
for (const key of keys) delete next[key];
|
|
10210
|
-
return Object.keys(next).length > 0 ? next : void 0;
|
|
10211
|
-
};
|
|
10212
|
-
const ekycMachine = setup({
|
|
10213
|
-
types: {
|
|
10214
|
-
context: {},
|
|
10215
|
-
events: {},
|
|
10216
|
-
input: {}
|
|
10217
|
-
},
|
|
10218
|
-
actors: {
|
|
10219
|
-
fetchModuleConfig: fetchModuleConfigActor,
|
|
10220
|
-
fetchPrefillData: fetchPrefillDataActor,
|
|
10221
|
-
submitEkyc: submitEkycActor,
|
|
10222
|
-
debounceSearch: debounceSearchActor
|
|
10223
|
-
},
|
|
10224
|
-
actions: {
|
|
10225
|
-
setModuleConfig: assign(({ context, event }) => {
|
|
10226
|
-
const config = event.output;
|
|
10227
|
-
const source = config.source ?? context.config.source ?? "";
|
|
10228
|
-
const country = context.config.fieldsCountry ?? getEKYCCountry(source);
|
|
10229
|
-
const vFields = getEKYCFields(config);
|
|
10230
|
-
return {
|
|
10231
|
-
moduleConfig: config,
|
|
10232
|
-
verificationFields: vFields,
|
|
10233
|
-
configSource: source,
|
|
10234
|
-
fieldsCountry: country,
|
|
10235
|
-
fields: buildFieldDefs(vFields, source, country, config.enablePhoneRisk)
|
|
10236
|
-
};
|
|
10237
|
-
}),
|
|
10238
|
-
applyPrefillData: assign(({ context, event }) => {
|
|
10239
|
-
const { ocrData, otpStatus } = event.output;
|
|
10240
|
-
const { values, prefilled, hideEmail, readonlyFields } = applyPrefill(context.verificationFields, ocrData, otpStatus, context.fieldsCountry);
|
|
10241
|
-
return {
|
|
10242
|
-
values,
|
|
10243
|
-
prefilled,
|
|
10244
|
-
hideEmail,
|
|
10245
|
-
fields: context.fields.map((f) => ({
|
|
10246
|
-
...f,
|
|
10247
|
-
readonly: readonlyFields.includes(f.name) ? true : f.readonly
|
|
10248
|
-
}))
|
|
10249
|
-
};
|
|
10250
|
-
}),
|
|
10251
|
-
updateField: assign(({ context, event }) => {
|
|
10252
|
-
if (event.type !== "DATA_CHANGED") return {};
|
|
10253
|
-
const processedValue = processFieldValue(event.name, event.value, context.fieldsCountry);
|
|
10254
|
-
return {
|
|
10255
|
-
values: {
|
|
10256
|
-
...context.values,
|
|
10257
|
-
[event.name]: processedValue
|
|
10258
|
-
},
|
|
10259
|
-
submitError: ""
|
|
10260
|
-
};
|
|
10261
|
-
}),
|
|
10262
|
-
clearFieldValidationError: assign(({ context, event }) => {
|
|
10263
|
-
if (event.type !== "DATA_CHANGED") return {};
|
|
10264
|
-
const errs = context.validationErrors;
|
|
10265
|
-
if (!errs) return {};
|
|
10266
|
-
const next = { ...errs };
|
|
10267
|
-
delete next[event.name];
|
|
10268
|
-
const oneOfRule = context.fields.find((f) => f.name === event.name)?.validation?.find((rule) => rule.type === "oneOfRequired");
|
|
10269
|
-
if (oneOfRule?.type === "oneOfRequired") {
|
|
10270
|
-
for (const sibling of oneOfRule.fields) if (next[sibling]?.key === "verification.errors.dobOrSsnRequired") delete next[sibling];
|
|
10271
|
-
}
|
|
10272
|
-
if (Object.keys(next).length === Object.keys(errs).length) return {};
|
|
10273
|
-
return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
|
|
10274
|
-
}),
|
|
10275
|
-
validateFormField: assign(({ context, event }) => {
|
|
10276
|
-
if (event.type !== "VALIDATE_FIELD") return {};
|
|
10277
|
-
const message = validateEkycField(context.values, event.name, context.fields);
|
|
10278
|
-
const next = { ...context.validationErrors ?? {} };
|
|
10279
|
-
if (message) next[event.name] = message;
|
|
10280
|
-
else delete next[event.name];
|
|
10281
|
-
return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
|
|
10282
|
-
}),
|
|
10283
|
-
computeValidationResult: assign(({ context }) => {
|
|
10284
|
-
const errors = validateEkycForm(context.values, context.fields);
|
|
10285
|
-
return { validationErrors: Object.keys(errors).length > 0 ? errors : void 0 };
|
|
10286
|
-
}),
|
|
10287
|
-
fillAddressFields: assign(({ context, event }) => {
|
|
10288
|
-
const { suggestion } = event;
|
|
10289
|
-
const activeFields = new Set(context.fields.map((f) => f.name));
|
|
10290
|
-
const { values: newValues } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
|
|
10291
|
-
const clearedErrors = omitKeys(context.validationErrors, ADDRESS_AUTOCOMPLETE_KEYS);
|
|
10292
|
-
const streetError = getStreetLevelErrorForSuggestion(suggestion, activeFields);
|
|
10293
|
-
const validationErrors = {
|
|
10294
|
-
...clearedErrors ?? {},
|
|
10295
|
-
...streetError !== void 0 ? { street: streetError } : {}
|
|
10296
|
-
};
|
|
10297
|
-
return {
|
|
10298
|
-
values: newValues,
|
|
10299
|
-
addressSuggestions: [],
|
|
10300
|
-
_searchQuery: "",
|
|
10301
|
-
validationErrors: Object.keys(validationErrors).length > 0 ? validationErrors : void 0,
|
|
10302
|
-
submitError: ""
|
|
10303
|
-
};
|
|
10304
|
-
}),
|
|
10305
|
-
setAddressSuggestions: assign(({ event }) => ({ addressSuggestions: event.suggestions })),
|
|
10306
|
-
setErrorMessage: assign(({ event }) => ({ errorMessage: String(event.error ?? "verification.error") })),
|
|
10307
|
-
clearErrorMessage: assign({ errorMessage: () => "" }),
|
|
10308
|
-
setSubmitError: assign(() => ({ submitError: "verification.errors.countryNotSupported" })),
|
|
10309
|
-
clearSubmitError: assign({ submitError: () => "" })
|
|
10310
|
-
},
|
|
10311
|
-
guards: {
|
|
10312
|
-
hasNoValidationErrors: hasNoValidationErrorsGuard,
|
|
10313
|
-
hasFlowId: hasFlowIdGuard,
|
|
10314
|
-
hasVerificationFields: hasVerificationFieldsGuard,
|
|
10315
|
-
isCountryNotSupported: isCountryNotSupportedGuard
|
|
10316
|
-
}
|
|
10317
|
-
}).createMachine({
|
|
10318
|
-
id: "ekyc",
|
|
10319
|
-
initial: "idle",
|
|
10320
|
-
context: ({ input }) => {
|
|
10321
|
-
const config = toEkycConfig(input.config);
|
|
10322
|
-
return {
|
|
10323
|
-
config,
|
|
10324
|
-
moduleConfig: void 0,
|
|
10325
|
-
verificationFields: {},
|
|
10326
|
-
configSource: config.source ?? "",
|
|
10327
|
-
fieldsCountry: config.fieldsCountry ?? "",
|
|
10328
|
-
fields: [],
|
|
10329
|
-
values: {},
|
|
10330
|
-
addressSuggestions: [],
|
|
10331
|
-
prefilled: {},
|
|
10332
|
-
hideEmail: false,
|
|
10333
|
-
errorMessage: "",
|
|
10334
|
-
submitError: "",
|
|
10335
|
-
_searchQuery: ""
|
|
10336
|
-
};
|
|
10337
|
-
},
|
|
10338
|
-
states: {
|
|
10339
|
-
idle: { on: { LOAD: [
|
|
10340
|
-
{
|
|
10341
|
-
target: "loading",
|
|
10342
|
-
guard: "hasFlowId"
|
|
10343
|
-
},
|
|
10344
|
-
{
|
|
10345
|
-
target: "prefilling",
|
|
10346
|
-
guard: "hasVerificationFields",
|
|
10347
|
-
actions: assign(({ context }) => {
|
|
10348
|
-
const vFields = context.config.verificationFields;
|
|
10349
|
-
const source = context.config.source ?? "";
|
|
10350
|
-
const country = context.config.fieldsCountry ?? getEKYCCountry(source);
|
|
10351
|
-
return {
|
|
10352
|
-
verificationFields: vFields,
|
|
10353
|
-
configSource: source,
|
|
10354
|
-
fieldsCountry: country,
|
|
10355
|
-
fields: buildFieldDefs(vFields, source, country, context.config.enablePhoneRisk)
|
|
10356
|
-
};
|
|
10357
|
-
})
|
|
10358
|
-
},
|
|
10359
|
-
{ target: "misconfigured" }
|
|
10360
|
-
] } },
|
|
10361
|
-
loading: { invoke: {
|
|
10362
|
-
id: "fetchModuleConfig",
|
|
10363
|
-
src: "fetchModuleConfig",
|
|
10364
|
-
input: ({ context }) => ({ flowId: context.config.flowId }),
|
|
10365
|
-
onDone: {
|
|
10366
|
-
target: "prefilling",
|
|
10367
|
-
actions: "setModuleConfig"
|
|
10368
|
-
},
|
|
10369
|
-
onError: {
|
|
10370
|
-
target: "error",
|
|
10371
|
-
actions: "setErrorMessage"
|
|
10372
|
-
}
|
|
10373
|
-
} },
|
|
10374
|
-
prefilling: { invoke: {
|
|
10375
|
-
id: "fetchPrefillData",
|
|
10376
|
-
src: "fetchPrefillData",
|
|
10377
|
-
onDone: {
|
|
10378
|
-
target: "form",
|
|
10379
|
-
actions: "applyPrefillData"
|
|
10380
|
-
},
|
|
10381
|
-
onError: { target: "form" }
|
|
10382
|
-
} },
|
|
10383
|
-
form: {
|
|
10384
|
-
initial: "inputting",
|
|
10385
|
-
states: {
|
|
10386
|
-
inputting: { on: {
|
|
10387
|
-
DATA_CHANGED: { actions: ["updateField", "clearFieldValidationError"] },
|
|
10388
|
-
VALIDATE_FIELD: { actions: "validateFormField" },
|
|
10389
|
-
SUBMIT: { target: "validatingSubmit" }
|
|
10390
|
-
} },
|
|
10391
|
-
searching: {
|
|
10392
|
-
invoke: {
|
|
10393
|
-
id: "debounceSearch",
|
|
10394
|
-
src: "debounceSearch",
|
|
10395
|
-
input: ({ context }) => ({ query: context._searchQuery })
|
|
10396
|
-
},
|
|
10397
|
-
on: {
|
|
10398
|
-
DATA_CHANGED: { actions: ["updateField", "clearFieldValidationError"] },
|
|
10399
|
-
VALIDATE_FIELD: { actions: "validateFormField" },
|
|
10400
|
-
RESULTS: {
|
|
10401
|
-
target: "inputting",
|
|
10402
|
-
actions: "setAddressSuggestions"
|
|
10403
|
-
}
|
|
10404
|
-
}
|
|
10405
|
-
},
|
|
10406
|
-
validatingSubmit: {
|
|
10407
|
-
entry: "computeValidationResult",
|
|
10408
|
-
always: [{
|
|
10409
|
-
guard: "hasNoValidationErrors",
|
|
10410
|
-
target: "#ekyc.submitting"
|
|
10411
|
-
}, { target: "inputting" }]
|
|
10412
|
-
}
|
|
10413
|
-
},
|
|
10414
|
-
on: {
|
|
10415
|
-
SEARCH_ADDRESS: {
|
|
10416
|
-
target: ".searching",
|
|
10417
|
-
actions: assign(({ event }) => ({
|
|
10418
|
-
_searchQuery: event.query,
|
|
10419
|
-
addressSuggestions: []
|
|
10420
|
-
}))
|
|
10421
|
-
},
|
|
10422
|
-
SELECT_ADDRESS: {
|
|
10423
|
-
target: ".inputting",
|
|
10424
|
-
actions: "fillAddressFields"
|
|
10425
|
-
},
|
|
10426
|
-
SKIP: { target: "#ekyc.finished" },
|
|
10427
|
-
CLOSE: { target: "#ekyc.closed" }
|
|
10428
|
-
}
|
|
10429
|
-
},
|
|
10430
|
-
submitting: { invoke: {
|
|
10431
|
-
id: "submitEkyc",
|
|
10432
|
-
src: "submitEkyc",
|
|
10433
|
-
input: ({ context }) => buildSubmitPayload(context),
|
|
10434
|
-
onDone: { target: "success" },
|
|
10435
|
-
onError: [{
|
|
10436
|
-
target: "form",
|
|
10437
|
-
guard: "isCountryNotSupported",
|
|
10438
|
-
actions: "setSubmitError"
|
|
10439
|
-
}, {
|
|
10440
|
-
target: "error",
|
|
10441
|
-
actions: "setErrorMessage"
|
|
10442
|
-
}]
|
|
10443
|
-
} },
|
|
10444
|
-
success: { after: { 3e3: "finished" } },
|
|
10445
|
-
error: { on: {
|
|
10446
|
-
RETRY: {
|
|
10447
|
-
target: "form",
|
|
10448
|
-
actions: "clearErrorMessage"
|
|
10449
|
-
},
|
|
10450
|
-
SKIP: { target: "finished" },
|
|
10451
|
-
CLOSE: { target: "closed" }
|
|
10452
|
-
} },
|
|
10453
|
-
misconfigured: { on: { CLOSE: { target: "closed" } } },
|
|
10454
|
-
finished: { type: "final" },
|
|
10455
|
-
closed: { type: "final" }
|
|
10456
|
-
}
|
|
10457
|
-
});
|
|
10458
|
-
//#endregion
|
|
10459
|
-
export { ekycMachine as t };
|
|
9864
|
+
export { metadata_min_json_default as C, withMetadataArgument as S, VALID_PUNCTUATION as _, PhoneNumber as a, getCountryCallingCode as b, applyInternationalSeparatorStyle as c, getCountryByCallingCode as d, getCountryByNationalNumber as f, VALID_DIGITS as g, PLUS_CHARS as h, parseDigits as i, extractCountryCallingCode as l, stripIddPrefix as m, PhoneValidationProvider_exports as n, FIRST_GROUP_PATTERN as o, extractNationalNumberFromPossiblyIncompleteNumber as p, parsePhoneNumber as r, formatNationalNumberUsingFormat as s, PhoneValidationProvider as t, extractCountryCallingCodeFromInternationalNumberWithoutPlusSign as u, checkNumberLength as v, isObject as x, Metadata as y };
|