@incodetech/core 2.1.1 → 2.2.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{3dAvatarProvider-BwOmTMOy.esm.js → 3dAvatarProvider-g02DTFqT.esm.js} +811 -880
- package/dist/Actor-iTq7YY48.d.ts +1 -0
- package/dist/BrowserDiagnosticsCryptoProvider-BwGL3Lmi.esm.js +95 -0
- package/dist/BrowserLazyImportProvider-BhoA957O.esm.js +114 -0
- package/dist/{BrowserStorageProvider-CBHBhKQN.esm.js → BrowserStorageProvider-k-FDkC4W.esm.js} +2 -4
- package/dist/{BrowserTimerProvider-CHloo0eQ.esm.js → BrowserTimerProvider-BXhgNxLt.esm.js} +1 -2
- package/dist/{BrowserVisibilityObserverProvider-GBS6XSii.esm.js → BrowserVisibilityObserverProvider-BX1BiLDK.esm.js} +1 -2
- package/dist/Face2DProvider-UUQt_vRC.esm.js +437 -0
- package/dist/{createFaceAvatar-CpdYp9Iy.d.ts → FaceDetectionProvider-Mh6q3EbA.d.ts} +107 -159
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +9 -0
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +23 -0
- package/dist/IFeatureManagementCapability-DdEUp6tB.d.ts +1125 -0
- package/dist/IIdCaptureCapability-DHTT3FC2.d.ts +237 -0
- package/dist/IStorageCapability-ORkQfK3F.d.ts +242 -0
- package/dist/{ITimerCapability-DJ73P4RK.esm.js → ITimerCapability-DgdDzp8G.esm.js} +1 -2
- package/dist/{Manager-goNPc_h_.d.ts → Manager-CQQ99QOI.d.ts} +1 -0
- package/dist/{MotionSensorProvider-BHuHoYvJ.esm.js → MotionSensorProvider-DGiV77J_.esm.js} +2 -37
- package/dist/{OpenViduRecordingProvider-CK6A5kiU.esm.js → OpenViduRecordingProvider-Du98qevC.esm.js} +2 -4
- package/dist/PrivacyLensProvider-D8PS7AJa.esm.js +405 -0
- package/dist/StateMachine-EDpYWy0i.d.ts +6 -0
- package/dist/{StreamCanvasCapture-CAqUdVkM.esm.js → StreamCanvasCapture-D2XcXCZ4.esm.js} +2 -4
- package/dist/{addressSearch-D7msRieq.esm.js → addressSearch-DQyrvDQj.esm.js} +10 -21
- package/dist/ae-signature.d.ts +4 -6
- package/dist/ae-signature.esm.js +10 -11
- package/dist/antifraud.d.ts +1 -6
- package/dist/antifraud.esm.js +3 -8
- package/dist/{antifraudManager-5KA84wtF.esm.js → antifraudManager-B8Plzf7a.esm.js} +11 -8
- package/dist/{antifraudManager-DCiNI6np.d.ts → antifraudManager-BY36bS12.d.ts} +3 -3
- package/dist/{antifraudStateMachine-BQVw46N5.esm.js → antifraudStateMachine-r4VxSBS4.esm.js} +5 -7
- package/dist/api-Bx3gKW_y.esm.js +129 -0
- package/dist/{apiError-DkOXfFBu.esm.js → apiError-oiEnJIlk.esm.js} +25 -3
- package/dist/authentication.d.ts +3 -19
- package/dist/authentication.esm.js +3 -35
- package/dist/{authenticationManager-BeT6tNZm.d.ts → authenticationManager-BBMGTcwW.d.ts} +3 -4
- package/dist/{authenticationManager-BryLnSaF.esm.js → authenticationManager-Dq_tudSW.esm.js} +7 -10
- package/dist/{authenticationStateMachine-DbdxfGHx.esm.js → authenticationStateMachine-D4koAtP3.esm.js} +11 -15
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.esm.js +2 -3
- package/dist/avatar2dWarm-DqucNFX4.esm.js +1330 -0
- package/dist/avatarStats-CdUOb3VD.esm.js +136 -0
- package/dist/{backCameraStream-ChrMTJv-.esm.js → backCameraStream-CUeYm5eu.esm.js} +20 -8
- package/dist/browser-DlFgHpoC-DnyrCR8r.esm.js +1513 -0
- package/dist/callback-645_omgz.d.ts +133 -0
- package/dist/camera-_2sXMXiF.esm.js +140 -0
- package/dist/camera.d.ts +19 -2
- package/dist/camera.esm.js +2 -6
- package/dist/{canvas-Pi10hG_l.esm.js → canvas-E1zGkel4.esm.js} +1 -2
- package/dist/certificate-issuance.d.ts +34 -39
- package/dist/certificate-issuance.esm.js +4 -11
- package/dist/{certificateIssuanceStateMachine-DlZQT1_u.esm.js → certificateIssuanceStateMachine-COd7_l2T.esm.js} +7 -11
- package/dist/consent.d.ts +1 -4
- package/dist/consent.esm.js +3 -8
- package/dist/{consentManager-BwNu-uC-.esm.js → consentManager-BApTlfA0.esm.js} +5 -7
- package/dist/{consentManager-B4PMGXW-.d.ts → consentManager-uhDPdU6i.d.ts} +55 -61
- package/dist/{consentStateMachine-BOkVFiU7.esm.js → consentStateMachine-WD-S-Yhs.esm.js} +5 -7
- package/dist/{cpf-16m_cGAM.esm.js → cpf-BIADjddF.esm.js} +1 -2
- package/dist/createFaceAvatar-BEj18KXi.d.ts +50 -0
- package/dist/createFaceAvatar-DQKaRise.esm.js +103 -0
- package/dist/cross-document-data-match.d.ts +2 -26
- package/dist/cross-document-data-match.esm.js +2 -71
- package/dist/crossDocumentDataMatchManager-Dq8Z3SOg.d.ts +41 -0
- package/dist/crossDocumentDataMatchManager-OmYvyung.esm.js +84 -0
- package/dist/curp-validation.d.ts +1 -11
- package/dist/curp-validation.esm.js +3 -8
- package/dist/{curpValidationManager-CoqODZx5.d.ts → curpValidationManager-DVGr7Fq7.d.ts} +4 -6
- package/dist/{curpValidationManager-Cbji2inV.esm.js → curpValidationManager-UZxcrsrz.esm.js} +11 -7
- package/dist/{curpValidationStateMachine-Dlw4qfFb.esm.js → curpValidationStateMachine-9KwnqeoB.esm.js} +22 -14
- package/dist/custom-fields.d.ts +2 -5
- package/dist/custom-fields.esm.js +24 -11
- package/dist/custom-watchlist.d.ts +1 -3
- package/dist/custom-watchlist.esm.js +11 -10
- package/dist/{customWatchlistStateMachine-D8w0mNxm.esm.js → customWatchlistStateMachine-B_ey3TFj.esm.js} +5 -7
- package/dist/{dateUtils-BW6mBV6p.esm.js → dateUtils-CvG0FvK8.esm.js} +1 -2
- package/dist/{deepsightService-CViys6T4.esm.js → deepsightLoader-CWE0SvF1.esm.js} +68 -14
- package/dist/{deepsightService-BuTOFTr8.d.ts → deepsightService-DLVQS_RH.d.ts} +41 -2
- package/dist/device.d.ts +10 -2
- package/dist/device.esm.js +21 -21
- package/dist/document-capture.d.ts +3 -1816
- package/dist/document-capture.esm.js +3 -245
- package/dist/document-upload.d.ts +48 -55
- package/dist/document-upload.esm.js +8 -14
- package/dist/documentCaptureManager-B3t0ydtg.d.ts +2062 -0
- package/dist/documentCaptureManager-DszmcU-l.esm.js +296 -0
- package/dist/{documentCaptureStateMachine-BkTvU3yq.esm.js → documentCaptureStateMachine-D2jBwwVb.esm.js} +66 -40
- package/dist/dynamic-forms.d.ts +2 -4
- package/dist/dynamic-forms.esm.js +3 -9
- package/dist/{dynamicFormsManager-CHXUBNs4.esm.js → dynamicFormsManager-B-OmpJkU.esm.js} +48 -9
- package/dist/{dynamicFormsManager-CKZkE7Wo.d.ts → dynamicFormsManager-fhK0yINk.d.ts} +22 -46
- package/dist/{dynamicFormsStateMachine-DJ1HGZff.esm.js → dynamicFormsStateMachine-D_3oLtOE.esm.js} +161 -34
- package/dist/ekyb.d.ts +5 -137
- package/dist/ekyb.esm.js +4 -179
- package/dist/ekybManager-BJVp2ahf.esm.js +178 -0
- package/dist/ekybManager-Dzswb_b8.d.ts +114 -0
- package/dist/{ekybStateMachine-D9GzA4MW.esm.js → ekybStateMachine-BYcc9VaR.esm.js} +16 -193
- package/dist/ekyc.d.ts +2 -79
- package/dist/ekyc.esm.js +4 -154
- package/dist/ekycManager-BFpHbBoT.d.ts +97 -0
- package/dist/ekycManager-oTstTJuL.esm.js +156 -0
- package/dist/{ekycStateMachine-DnVRiu3s.esm.js → ekycStateMachine-DHvksnrr.esm.js} +141 -423
- package/dist/ekycUtils-Dew1rBG0.esm.js +223 -0
- package/dist/electronic-signature.d.ts +3 -5
- package/dist/electronic-signature.esm.js +2 -10
- package/dist/{electronicSignatureManager-DESRgObX.esm.js → electronicSignatureManager-CApcBEQd.esm.js} +47 -33
- package/dist/{index-36QX_21w.d.ts → electronicSignatureManager-CcUXQZS7.d.ts} +220 -251
- package/dist/email.d.ts +1 -5
- package/dist/email.esm.js +3 -10
- package/dist/{emailManager-CMS4q_r6.d.ts → emailManager-CADXW_9X.d.ts} +4 -7
- package/dist/{emailManager-B9Vrv3Ma.esm.js → emailManager-tE-YvNtS.esm.js} +76 -12
- package/dist/{emailStateMachine-CbmKFVSi.esm.js → emailStateMachine-Bm894MHB.esm.js} +7 -9
- package/dist/{endpoints-CwrFQfW7.esm.js → endpoints-CCzL3XD_.esm.js} +55 -6
- package/dist/{events-1wxZ97yf.esm.js → events-CxfNJVZW.esm.js} +43 -176
- package/dist/events.d.ts +28 -10
- package/dist/events.esm.js +2 -4
- package/dist/extensibility.d.ts +37 -37
- package/dist/extensibility.esm.js +31 -80
- package/dist/{externalFetch-hvmz_npP.esm.js → externalFetch-BKBThAUC.esm.js} +2 -4
- package/dist/face-match.d.ts +2 -225
- package/dist/face-match.esm.js +3 -173
- package/dist/{faceCaptureManagerFactory-C9TiGbkA.esm.js → faceCaptureManagerFactory-4VejGOQX.esm.js} +52 -31
- package/dist/{faceCaptureManagerFactory-DiJ64oem.d.ts → faceCaptureManagerFactory-BxWPpxyd.d.ts} +63 -24
- package/dist/{faceCaptureSetup-BqhqfFHL.esm.js → faceCaptureSetup-BB5KEtbV.esm.js} +57 -36
- package/dist/faceMatchManager-BXp2WUT-.esm.js +201 -0
- package/dist/faceMatchManager-BnvrZM2F.d.ts +268 -0
- package/dist/{faceMatchStateMachine-MDb30gCm.esm.js → faceMatchStateMachine-CJiO2yLO.esm.js} +14 -10
- package/dist/feature-management-DS_Nj5Gg.esm.js +615 -0
- package/dist/feature-management.d.ts +173 -0
- package/dist/feature-management.esm.js +2 -0
- package/dist/field-comparison.d.ts +1 -4
- package/dist/field-comparison.esm.js +2 -7
- package/dist/{fieldComparisonManager-OLKVsG2Z.d.ts → fieldComparisonManager-CBvEGxFx.d.ts} +3 -5
- package/dist/{fieldComparisonManager-Cw4uzD7S.esm.js → fieldComparisonManager-DhnYdYZ2.esm.js} +6 -11
- package/dist/fiscal-qr.d.ts +1 -6
- package/dist/fiscal-qr.esm.js +14 -29
- package/dist/flow-events.d.ts +2 -9
- package/dist/flow.d.ts +59 -21
- package/dist/flow.esm.js +132 -49
- package/dist/{flowCompletionService-B6P6_EF3.esm.js → flowCompletionService-Bt3wD28k.esm.js} +4 -6
- package/dist/flowServices-b0Pd4F1K.esm.js +620 -0
- package/dist/geolocation.d.ts +1 -4
- package/dist/geolocation.esm.js +3 -9
- package/dist/geolocationManager-Cz744E5S.d.ts +506 -0
- package/dist/{geolocationManager-CF6-NizA.esm.js → geolocationManager-DGwnL5lg.esm.js} +44 -16
- package/dist/{geolocationStateMachine-CD2XJs1b.esm.js → geolocationStateMachine-il6jz5DZ.esm.js} +53 -28
- package/dist/{getBrowser-1yNcfFZR.esm.js → getBrowser-Cb8Zgrgp.esm.js} +1 -2
- package/dist/getBrowser-DNrQeL4T.esm.js +16 -0
- package/dist/getDeviceClass-9y-kbVDw.esm.js +19 -0
- package/dist/{getDeviceClass-C-Dg6IsJ.esm.js → getDeviceClass-CeBiEayS.esm.js} +1 -2
- package/dist/getParsedUserAgent-pJjATANs.esm.js +1622 -0
- package/dist/government-validation.d.ts +3 -6
- package/dist/government-validation.esm.js +7 -13
- package/dist/{governmentValidationStateMachine-BE5wiQ7Y.esm.js → governmentValidationStateMachine-BYKYUdza.esm.js} +8 -11
- package/dist/home.d.ts +14 -22
- package/dist/home.esm.js +3 -8
- package/dist/http.d.ts +0 -1
- package/dist/http.esm.js +2 -4
- package/dist/id-ocr.d.ts +8 -7
- package/dist/id-ocr.esm.js +20 -9
- package/dist/id-selfie-flow.d.ts +179 -0
- package/dist/id-selfie-flow.esm.js +917 -0
- package/dist/id-verification.d.ts +2 -191
- package/dist/id-verification.esm.js +3 -43
- package/dist/id.d.ts +7 -18
- package/dist/id.esm.js +47 -53
- package/dist/{idCaptureDefaults-CZajItdO.esm.js → idCaptureDefaults-WeHbQM7W.esm.js} +54 -17
- package/dist/idCaptureManager-BjU-Wyow.d.ts +429 -0
- package/dist/{idCaptureManager-DASPUMtC.esm.js → idCaptureManager-DgohUfUQ.esm.js} +173 -34
- package/dist/idCaptureServices-RDiDS9tg.esm.js +396 -0
- package/dist/{idCaptureStateMachine-DZ2ZTSxu.esm.js → idCaptureStateMachine-DWocZD_m.esm.js} +438 -585
- package/dist/{idOcrManager-Tm4LzKR0.esm.js → idOcrManager-CvJZhmBR.esm.js} +4 -7
- package/dist/{idOcrManager-DLfAjDZn.d.ts → idOcrManager-DXc_xRN7.d.ts} +62 -229
- package/dist/{idOcrStateMachine-BJxZCxwS.esm.js → idOcrStateMachine-Bq_e3l4E.esm.js} +15 -20
- package/dist/idVerificationManager-BB4Pj_N6.d.ts +197 -0
- package/dist/idVerificationManager-CduNXhWd.esm.js +51 -0
- package/dist/{idVerificationStateMachine-DXN9WcdM.esm.js → idVerificationStateMachine-GEQWUPU2.esm.js} +5 -7
- package/dist/identity-reuse.d.ts +1 -4
- package/dist/identity-reuse.esm.js +3 -8
- package/dist/{identityReuseManager-LjkPvSQN.esm.js → identityReuseManager-D5vXknnJ.esm.js} +24 -7
- package/dist/{identityReuseManager-CLVOYxcp.d.ts → identityReuseManager-v2TH5g7e.d.ts} +38 -43
- package/dist/{identityReuseStateMachine-Bp-zONoV.esm.js → identityReuseStateMachine-AubRPhIi.esm.js} +6 -8
- package/dist/index-B8weJxmL.d.ts +1 -0
- package/dist/index-BKOWUhxG.d.ts +258 -0
- package/dist/{index-DrpWp15Z.d.ts → index-CLMF0QLQ.d.ts} +3 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.esm.js +2 -15
- package/dist/{invokeOnCaptureCallback-CCS2Ruzi.esm.js → invokeOnCaptureCallback-1m1VJ3Q4.esm.js} +2 -4
- package/dist/{lib-Bjd6nOLG.esm.js → lib-DAyUtOTj.esm.js} +1510 -1589
- package/dist/mandatory-consent.d.ts +2 -10
- package/dist/mandatory-consent.esm.js +3 -8
- package/dist/{mandatoryConsentManager-DeBmOHcQ.d.ts → mandatoryConsentManager-B29kR0XA.d.ts} +60 -85
- package/dist/{mandatoryConsentManager-DZ26sg4B.esm.js → mandatoryConsentManager-BeELm1zS.esm.js} +4 -7
- package/dist/{mandatoryConsentStateMachine-_44ZoDSh.esm.js → mandatoryConsentStateMachine-zroQGzwb.esm.js} +5 -7
- package/dist/manualReviewService-D4IkipnN.esm.js +15 -0
- package/dist/{mediaRecorderOptions-CClCKAiF.esm.js → mediaRecorderOptions-dALSV8af.esm.js} +2 -4
- package/dist/{mediapipeShared-Bcmkzs3x.esm.js → mediapipeShared-B6oNoXEQ.esm.js} +21 -9
- package/dist/{onDeviceFaceResults-DILtthks.esm.js → onDeviceFaceResults-C6IRJHQB.esm.js} +30 -87
- package/dist/openviduLazy-CCDpFWg1.esm.js +10 -0
- package/dist/{otp-B1YeyRXu.d.ts → otp-CEWfTj9v.d.ts} +0 -1
- package/dist/{otp-uaXiKt_R.esm.js → otp-D2k3PeSL.esm.js} +3 -14
- package/dist/{permissionGuards-BNOe4Tnu.esm.js → permissionGuards-KINpmKtI.esm.js} +2 -4
- package/dist/{permissionServices-C_kxhNeo.esm.js → permissionServices-UvUcOSRb.esm.js} +35 -28
- package/dist/personhood.d.ts +13 -20
- package/dist/personhood.esm.js +153 -85
- package/dist/phone.d.ts +1 -5
- package/dist/phone.esm.js +3 -10
- package/dist/{phoneManager-_KtitbUA.d.ts → phoneManager-BBU8Lq0O.d.ts} +4 -7
- package/dist/{phoneManager-CRblfdcI.esm.js → phoneManager-Cpiai2IM.esm.js} +82 -12
- package/dist/{phoneStateMachine-DjFGWMjQ.esm.js → phoneStateMachine-E1fUUcNM.esm.js} +7 -9
- package/dist/{platform-0Ot-bF_a.esm.js → platform-BJrm5nzZ.esm.js} +31 -11
- package/dist/privacyLensWorker-DI-Rg83h.esm.js +355 -0
- package/dist/qe-signature.d.ts +4 -6
- package/dist/qe-signature.esm.js +10 -11
- package/dist/{recordingService-CxaYkITO.esm.js → recordingService-N4RhdyiT.esm.js} +13 -31
- package/dist/redirect-to-mobile.d.ts +2 -6
- package/dist/redirect-to-mobile.esm.js +3 -10
- package/dist/{redirectToMobileManager-dv29o_LS.d.ts → redirectToMobileManager-BD2PvT5B.d.ts} +8 -44
- package/dist/{redirectToMobileManager-DbuNUlru.esm.js → redirectToMobileManager-C0dfc7f6.esm.js} +28 -8
- package/dist/{redirectToMobileStateMachine-BRaIJWOM.esm.js → redirectToMobileStateMachine-C9SYCJcH.esm.js} +74 -18
- package/dist/rolldown-runtime-FZ4Itg2g.esm.js +42 -0
- package/dist/{runChildModule-kojSv3MH.esm.js → runChildModule-DpRmKWV0.esm.js} +10 -9
- package/dist/{WasmUtilProvider-BgzcXBdl.esm.js → safeStorage-Ep56I-f_.esm.js} +98 -473
- package/dist/selfie.d.ts +8 -21
- package/dist/selfie.esm.js +40 -47
- package/dist/selfieErrorUtils-C2PYBVsp.esm.js +90 -0
- package/dist/{selfieManager-B1Px3GGa.esm.js → selfieManager-CmoNiluM.esm.js} +7 -10
- package/dist/{selfieManager-4juKfrHG.d.ts → selfieManager-DwlCppg0.d.ts} +3 -4
- package/dist/{selfieStateMachine-D0TS93Tu.esm.js → selfieStateMachine-L9pghTly.esm.js} +14 -29
- package/dist/{session-CLsU2Jnb.esm.js → session-DeR_I24J.esm.js} +16 -7
- package/dist/session.d.ts +12 -10
- package/dist/session.esm.js +5 -15
- package/dist/sessionInitializer-DNgRpf5Y.esm.js +1865 -0
- package/dist/{setup-CfNsYAeB.esm.js → setup-DuYKUt0r.esm.js} +319 -137
- package/dist/{setup-CmA2apmN.d.ts → setup-DywQeePQ.d.ts} +186 -4
- package/dist/signature.d.ts +2 -96
- package/dist/signature.esm.js +3 -108
- package/dist/signatureManager-DGBSWz2_.d.ts +106 -0
- package/dist/signatureManager-DdPgcmou.esm.js +113 -0
- package/dist/{signatureStateMachine-CdhlMih-.esm.js → signatureStateMachine-Cf73DGWO.esm.js} +5 -7
- package/dist/spawn-D9jgw9pW.d.ts +1441 -0
- package/dist/src-0Jurt29N.esm.js +4482 -0
- package/dist/{stats-BVy52wLy.esm.js → stats-B0nFKawG.esm.js} +3 -5
- package/dist/stats.esm.js +2 -5
- package/dist/topLevelStateName-B5i2avbh.esm.js +41 -0
- package/dist/{tri-CFAPtAUM.esm.js → tri-4RsGrIt6.esm.js} +3 -119
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
- package/dist/tri.esm.js +2 -4
- package/dist/trueSight-BTl_vvd3.esm.js +1 -0
- package/dist/trueSightService-s3T95geD.esm.js +1894 -0
- package/dist/trust-graph.d.ts +4 -5
- package/dist/trust-graph.esm.js +13 -9
- package/dist/types-BEwVKkLJ.d.ts +15 -0
- package/dist/{types-BKLb3C42.esm.js → types-BN5RPPIZ.esm.js} +1 -2
- package/dist/types-BSBzhHRH.d.ts +57 -0
- package/dist/types-BX_XkMsQ2.d.ts +21 -0
- package/dist/types-BfHiko5D.d.ts +48 -0
- package/dist/{types-D8Cl1N2Z.d.ts → types-BfgmV7s72.d.ts} +2 -2
- package/dist/types-CJ7Yl9K-2.d.ts +164 -0
- package/dist/types-DPIDuhut.d.ts +40 -0
- package/dist/types-DVmXIdzW.d.ts +82 -0
- package/dist/types-DelMqZLe.d.ts +105 -0
- package/dist/types-EELWyWpd.d.ts +6 -0
- package/dist/{types-fO6KIdol.d.ts → types-Hmd7U0JA.d.ts} +80 -6
- package/dist/{types-BUgeB2X6.d.ts → types-KPvmag_B.d.ts} +7 -7
- package/dist/types-M6eb82ra2.d.ts +589 -0
- package/dist/{types-DV3wkhQ4.d.ts → types-Vb4P9ovf.d.ts} +1 -3
- package/dist/{urlUtils-CpiYwn7w.esm.js → urlUtils-D6phjq1-.esm.js} +1 -2
- package/dist/{video-ZY92rkel.esm.js → video-BtSWtHy1.esm.js} +1 -2
- package/dist/video-selfie.d.ts +71 -117
- package/dist/video-selfie.esm.js +575 -643
- package/dist/videoSelfieCameraWarmer-DPx5Lm3d.esm.js +651 -0
- package/dist/videoSelfieStepDetector-D3oo2ofo.d.ts +123 -0
- package/dist/wasm.d.ts +2 -4
- package/dist/wasm.esm.js +4 -15
- package/dist/wasmDefaults-DTUrftxR.esm.js +125 -0
- package/dist/{wasmDsFlagSync-Ch0mFJNT.esm.js → wasmDsFlagSync-BqUCwLY8.esm.js} +2 -4
- package/dist/wasmWebClient-DM8lkb0z.esm.js +407 -0
- package/dist/watchlist-for-business.d.ts +1 -3
- package/dist/watchlist-for-business.esm.js +9 -9
- package/dist/watchlist.d.ts +1 -52
- package/dist/watchlist.esm.js +3 -70
- package/dist/{watchlistForBusinessStateMachine-R1Yp1g5A.esm.js → watchlistForBusinessStateMachine-BcBMkMvV.esm.js} +5 -7
- package/dist/watchlistManager-CjSMmbyq.esm.js +83 -0
- package/dist/watchlistManager-DLXef90v.d.ts +68 -0
- package/dist/{watchlistStateMachine-D07UVq1m.esm.js → watchlistStateMachine-Bl7Wy9Cm.esm.js} +5 -7
- package/dist/workflow.d.ts +239 -203
- package/dist/workflow.esm.js +156 -101
- package/dist/xstate-actors.esm-CtI5S0f4.esm.js +310 -0
- package/dist/{xstate.esm-nY3M5UYm.esm.js → xstate.esm-Cf4e0Cfd.esm.js} +136 -610
- package/package.json +14 -9
- package/dist/Actor-BwgmOPkb.d.ts +0 -2
- package/dist/Face2DProvider-CZU11g6r.esm.js +0 -824
- package/dist/FaceDetectionProvider-CPWg-PAH.d.ts +0 -119
- package/dist/IWasmUtilCapability-DaSNxgA8.d.ts +0 -150
- package/dist/PrivacyLensProvider-B_zrV25p.esm.js +0 -339
- package/dist/StateMachine-D5WO6lHS.d.ts +0 -2
- package/dist/StreamCanvasCapture-DHaWferF.d.ts +0 -42
- package/dist/ae-signature-Pp4oCAHD.esm.js +0 -12
- package/dist/api-DsbUi7TO.esm.js +0 -72
- package/dist/browser-DlFgHpoC-Br3G10gw.esm.js +0 -1425
- package/dist/browserSimulation-DZwEy9bu.esm.js +0 -2804
- package/dist/camera-CxxXV0VN.esm.js +0 -79
- package/dist/canvas-90BqS0NF.d.ts +0 -112
- package/dist/chunk-CIKcdghV.esm.js +0 -49
- package/dist/clientLifecycle-VyzRfALg.esm.js +0 -534
- package/dist/cpf-ocr.d.ts +0 -10
- package/dist/cpf-ocr.esm.js +0 -8
- package/dist/cpfOcrManager-9eM4z4o7.esm.js +0 -190
- package/dist/cpfOcrManager-C5U9E0hf.d.ts +0 -216
- package/dist/createFaceAvatar-BZSg2MNo.esm.js +0 -46
- package/dist/deepsightLoader-CU_tiLMx.esm.js +0 -62
- package/dist/flowServices-DkQmOkLV.esm.js +0 -208
- package/dist/geolocationManager-DaHYFkVO.d.ts +0 -156
- package/dist/getDeviceClass-DIjnTPjR.esm.js +0 -14
- package/dist/http-CnsKEaJY.esm.js +0 -0
- package/dist/idCaptureManager-CwuXtVu6.d.ts +0 -1013
- package/dist/index-BAyZ8_iI.d.ts +0 -93
- package/dist/openviduLazy-jPgABwrt.esm.js +0 -3
- package/dist/openviduLazy-wEojM41w.esm.js +0 -12
- package/dist/qe-signature-BnWIpR-O.esm.js +0 -12
- package/dist/sessionInitializer-Dj7-aJaP.esm.js +0 -547
- package/dist/tri.esm-DDJ1zOqG.esm.js +0 -2593
- package/dist/types-BcF-fii5.d.ts +0 -5
- package/dist/videoSelfieSteps-Djpv7cjb.esm.js +0 -58
- /package/dist/{IVisibilityObserverCapability-BZ1rE7ly.d.ts → IVisibilityObserverCapability-D4tvIB5v.d.ts} +0 -0
- /package/dist/{camera-CKU96nwJ.d.ts → camera-9wWD-pwg.d.ts} +0 -0
- /package/dist/{flowCompletionService-BOSTlAWo.d.ts → flowCompletionService-BlAHsKyv.d.ts} +0 -0
- /package/dist/{types-BgjMAEXl.d.ts → types-Bk_6dmDa.d.ts} +0 -0
- /package/dist/{warmup-Dd0iq6KF.d.ts → warmup-Dv2alr2-.d.ts} +0 -0
|
@@ -1,233 +1,10 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER"];
|
|
9
|
-
const STATE_CODE_HINTS = {
|
|
10
|
-
US: "CA, NY",
|
|
11
|
-
CA: "ON, QC",
|
|
12
|
-
BR: "RJ, SP",
|
|
13
|
-
MX: "JAL, NLE",
|
|
14
|
-
GB: "ENG, SCT",
|
|
15
|
-
ES: "MD, CT",
|
|
16
|
-
AR: "B, C, K"
|
|
17
|
-
};
|
|
18
|
-
const ADDRESS_FIELDS = [
|
|
19
|
-
"address",
|
|
20
|
-
"houseNo",
|
|
21
|
-
"street",
|
|
22
|
-
"address2",
|
|
23
|
-
"city",
|
|
24
|
-
"state",
|
|
25
|
-
"postalCode"
|
|
26
|
-
];
|
|
27
|
-
const DRIVERS_LICENSE_FIELDS = [
|
|
28
|
-
"dlNumber",
|
|
29
|
-
"dlState",
|
|
30
|
-
"dlExpireAt"
|
|
31
|
-
];
|
|
32
|
-
const DOB_OPTIONAL_SOURCES = ["US_TELCO_1", "UK_VOTER_REGISTER"];
|
|
33
|
-
const ADDRESS_OPTIONAL_SOURCES = ["US_TELCO_1", "UK_VOTER_REGISTER"];
|
|
34
|
-
const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
35
|
-
const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
36
|
-
const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
|
|
37
|
-
const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
38
|
-
const PHONE_OPTIONAL_SOURCES = ["CA_RES_CREDIT", "UK_VOTER_REGISTER"];
|
|
39
|
-
const NAME_SOURCES = [
|
|
40
|
-
"US_TELCO_1",
|
|
41
|
-
"US_TELCO_2",
|
|
42
|
-
"US_TELCO_4",
|
|
43
|
-
"US_ADDRESS_1",
|
|
44
|
-
"US_CREDIT_BUREAU_1",
|
|
45
|
-
"US_DRIVERS_LICENSE_1",
|
|
46
|
-
"CA_RES_CREDIT",
|
|
47
|
-
"SERPRO",
|
|
48
|
-
"SE_1",
|
|
49
|
-
"GR_1",
|
|
50
|
-
"GT_1",
|
|
51
|
-
"AR_1",
|
|
52
|
-
"ES_1",
|
|
53
|
-
"UK_VOTER_REGISTER",
|
|
54
|
-
"CL_1",
|
|
55
|
-
"INDIA_PAN"
|
|
56
|
-
];
|
|
57
|
-
const HOUSE_NO_SOURCES = [
|
|
58
|
-
"SERPRO",
|
|
59
|
-
"BR_GOVT_1",
|
|
60
|
-
"GR_1",
|
|
61
|
-
"ES_1"
|
|
62
|
-
];
|
|
63
|
-
const STREET_SOURCES = [
|
|
64
|
-
"US_TELCO_1",
|
|
65
|
-
"US_TELCO_2",
|
|
66
|
-
"US_CREDIT_BUREAU_1",
|
|
67
|
-
"CA_RES_CREDIT",
|
|
68
|
-
"SERPRO",
|
|
69
|
-
"BR_GOVT_1",
|
|
70
|
-
"AR_1",
|
|
71
|
-
"ES_1",
|
|
72
|
-
"UK_VOTER_REGISTER"
|
|
73
|
-
];
|
|
74
|
-
const CITY_SOURCES = [
|
|
75
|
-
"US_TELCO_1",
|
|
76
|
-
"US_TELCO_2",
|
|
77
|
-
"US_CREDIT_BUREAU_1",
|
|
78
|
-
"CA_RES_CREDIT",
|
|
79
|
-
"SERPRO",
|
|
80
|
-
"BR_GOVT_1",
|
|
81
|
-
"AR_1",
|
|
82
|
-
"ES_1",
|
|
83
|
-
"UK_VOTER_REGISTER"
|
|
84
|
-
];
|
|
85
|
-
const ADDRESS_STATE_SOURCES = [
|
|
86
|
-
"US_TELCO_1",
|
|
87
|
-
"US_TELCO_2",
|
|
88
|
-
"US_CREDIT_BUREAU_1",
|
|
89
|
-
"US_DRIVERS_LICENSE_1",
|
|
90
|
-
"CA_RES_CREDIT",
|
|
91
|
-
"SERPRO",
|
|
92
|
-
"BR_GOVT_1",
|
|
93
|
-
"AR_1",
|
|
94
|
-
"ES_1"
|
|
95
|
-
];
|
|
96
|
-
const POSTAL_CODE_SOURCES = [
|
|
97
|
-
"US_TELCO_1",
|
|
98
|
-
"US_TELCO_2",
|
|
99
|
-
"US_CREDIT_BUREAU_1",
|
|
100
|
-
"CA_RES_CREDIT",
|
|
101
|
-
"SERPRO",
|
|
102
|
-
"BR_GOVT_1",
|
|
103
|
-
"AR_1",
|
|
104
|
-
"ES_1",
|
|
105
|
-
"UK_VOTER_REGISTER"
|
|
106
|
-
];
|
|
107
|
-
const TAX_ID_SOURCES = [
|
|
108
|
-
"GT_1",
|
|
109
|
-
"ES_1",
|
|
110
|
-
"CL_1"
|
|
111
|
-
];
|
|
112
|
-
const MIDDLE_NAME_SOURCES = [
|
|
113
|
-
"US_CREDIT_BUREAU_1",
|
|
114
|
-
"CA_RES_CREDIT",
|
|
115
|
-
"UK_VOTER_REGISTER",
|
|
116
|
-
"GR_1",
|
|
117
|
-
"AR_1",
|
|
118
|
-
"ES_1",
|
|
119
|
-
"CL_1",
|
|
120
|
-
"INDIA_PAN"
|
|
121
|
-
];
|
|
122
|
-
const PHONE_RISK_ADDONS = ["phoneCheck", "advancedPhoneCheck"];
|
|
123
|
-
const EMAIL_RISK_ADDONS = ["emailCheck"];
|
|
124
|
-
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region src/modules/ekyc/ekycUtils.ts
|
|
127
|
-
function mapToEKYCvalue(field) {
|
|
128
|
-
switch (field) {
|
|
129
|
-
case "poa": return "poa_document";
|
|
130
|
-
case "document": return "document_scan";
|
|
131
|
-
case "phoneModuleInput": return "phone_module_input";
|
|
132
|
-
case "emailModuleInput": return "email_module_input";
|
|
133
|
-
default: return "user_input";
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
function hasRiskAddon(riskAddons, allowedAddons) {
|
|
137
|
-
return allowedAddons.some((addon) => riskAddons?.includes(addon));
|
|
138
|
-
}
|
|
139
|
-
/** Maps raw backend module config to a field-source mapping */
|
|
140
|
-
function getEKYCFields(config) {
|
|
141
|
-
const hasPhoneRiskAddon = hasRiskAddon(config.riskAddons, PHONE_RISK_ADDONS);
|
|
142
|
-
const hasEmailRiskAddon = hasRiskAddon(config.riskAddons, EMAIL_RISK_ADDONS);
|
|
143
|
-
const shouldRenderEmail = config.checkEmail || hasEmailRiskAddon;
|
|
144
|
-
const shouldRenderPhone = config.checkPhone || hasPhoneRiskAddon;
|
|
145
|
-
return {
|
|
146
|
-
name: config.checkName ? mapToEKYCvalue(config.nameSource ?? "") : false,
|
|
147
|
-
SSN: config.checkSsn ? mapToEKYCvalue(config.ssnSource ?? "") : false,
|
|
148
|
-
address: config.checkAddress ? mapToEKYCvalue(config.addressSource ?? "") : false,
|
|
149
|
-
"date of birth": config.checkDob ? mapToEKYCvalue(config.dobSource ?? "") : false,
|
|
150
|
-
email: shouldRenderEmail ? mapToEKYCvalue(config.emailSource ?? "") : false,
|
|
151
|
-
phone: shouldRenderPhone ? mapToEKYCvalue(config.phoneSource ?? "") : false,
|
|
152
|
-
nationality: config.checkNationality ? mapToEKYCvalue(config.nationalitySource ?? "") : false,
|
|
153
|
-
dlNumber: config.checkDlNumber ? mapToEKYCvalue(config.dlNumberSource ?? "") : false,
|
|
154
|
-
dlState: config.checkDlState ? mapToEKYCvalue(config.dlStateSource ?? "") : false,
|
|
155
|
-
dlExpireAt: config.checkDlExpireAt ? mapToEKYCvalue(config.dlExpireAtSource ?? "") : false,
|
|
156
|
-
last4SSN: config.checkLast4SSN ? mapToEKYCvalue(config.last4SSNSource ?? "") : false,
|
|
157
|
-
idNum: config.checkIdNum ? mapToEKYCvalue(config.idNumSource ?? "") : false,
|
|
158
|
-
idNum1: config.checkIdNum1 ? mapToEKYCvalue(config.idNum1Source ?? "") : false,
|
|
159
|
-
gender: config.checkGender ? mapToEKYCvalue(config.genderSource ?? "") : false,
|
|
160
|
-
panNumber: config.checkPanNumber ? mapToEKYCvalue(config.panNumberSource ?? "") : false
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
/** Maps a verification source string to a country code */
|
|
164
|
-
function getEKYCCountry(source) {
|
|
165
|
-
switch (source) {
|
|
166
|
-
case "BR_GOVT_1":
|
|
167
|
-
case "SERPRO": return "BR";
|
|
168
|
-
case "MX_CONSUMER_1": return "MX";
|
|
169
|
-
case "UK_CREDIT_BUREAU_1":
|
|
170
|
-
case "UK_VOTER_REGISTER": return "GB";
|
|
171
|
-
case "ES_1": return "ES";
|
|
172
|
-
case "CL_1": return "CL";
|
|
173
|
-
case "AR_1": return "AR";
|
|
174
|
-
case "GR_1": return "GR";
|
|
175
|
-
case "GT_1": return "GT";
|
|
176
|
-
case "CO_1": return "CO";
|
|
177
|
-
case "CR_1": return "CR";
|
|
178
|
-
case "CA_RES_CREDIT": return "CA";
|
|
179
|
-
case "INDIA_PAN": return "IN";
|
|
180
|
-
default: return "US";
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Returns true if the input carries any raw-shape signal — i.e. a non-empty
|
|
185
|
-
* `source` or at least one `check*` flag set. Used by `toEkycConfig` to
|
|
186
|
-
* distinguish a raw backend config from an unconfigured / empty input.
|
|
187
|
-
*/
|
|
188
|
-
function hasRawSignal(c) {
|
|
189
|
-
return Boolean(c.source || c.checkName || c.checkEmail || c.checkAddress || c.checkPhone || c.checkSsn || c.checkDob || c.checkNationality || c.checkDlNumber || c.checkDlState || c.checkDlExpireAt || c.checkLast4SSN || c.checkIdNum || c.checkIdNum1 || c.checkGender || c.checkPanNumber || c.riskAddons?.length);
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
|
193
|
-
*
|
|
194
|
-
* Accepts either:
|
|
195
|
-
* - A manager-ready `EkycConfig` (with `flowId` or `verificationFields`) →
|
|
196
|
-
* returned unchanged.
|
|
197
|
-
* - A raw backend `EkycModuleConfig` (with `source` + `check*` / `*Source`
|
|
198
|
-
* fields, as embedded in a workflow node or returned by
|
|
199
|
-
* `/omni/flow/onboarding/configuration`) → derived into an `EkycConfig`.
|
|
200
|
-
* - A config with no recognizable signal (e.g. `{}`) → returned unchanged,
|
|
201
|
-
* so the machine still lands in `misconfigured` instead of a silent
|
|
202
|
-
* empty form.
|
|
203
|
-
*
|
|
204
|
-
* Idempotent: `toEkycConfig(toEkycConfig(x))` equals `toEkycConfig(x)`.
|
|
205
|
-
*/
|
|
206
|
-
function toEkycConfig(config) {
|
|
207
|
-
if (config.flowId || config.verificationFields) return config;
|
|
208
|
-
if (!hasRawSignal(config)) return config;
|
|
209
|
-
const source = config.source ?? "";
|
|
210
|
-
return {
|
|
211
|
-
verificationFields: getEKYCFields(config),
|
|
212
|
-
source,
|
|
213
|
-
fieldsCountry: getEKYCCountry(source),
|
|
214
|
-
enablePhoneRisk: config.enablePhoneRisk
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
/** Determines if a field is optional given the current config source */
|
|
218
|
-
function isFieldOptional(fieldName, configSource) {
|
|
219
|
-
if (fieldName === "middleName") return true;
|
|
220
|
-
if (fieldName === "dateOfBirth") return DOB_OPTIONAL_SOURCES.includes(configSource);
|
|
221
|
-
if (fieldName === "street") return false;
|
|
222
|
-
if (ADDRESS_FIELDS.includes(fieldName)) return ADDRESS_OPTIONAL_SOURCES.includes(configSource);
|
|
223
|
-
if (fieldName === "last4SSN") return LAST4SSN_OPTIONAL_SOURCES.includes(configSource);
|
|
224
|
-
if (DRIVERS_LICENSE_FIELDS.includes(fieldName)) return DRIVERS_LICENSE_OPTIONAL_SOURCES.includes(configSource);
|
|
225
|
-
if (fieldName === "email") return EMAIL_OPTIONAL_SOURCES.includes(configSource);
|
|
226
|
-
if (fieldName === "phone") return PHONE_OPTIONAL_SOURCES.includes(configSource);
|
|
227
|
-
return false;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
//#endregion
|
|
1
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
3
|
+
import { a as ADDRESS_STATE_SOURCES, c as EMAIL_SOURCES, d as NAME_SOURCES, f as POSTAL_CODE_SOURCES, h as TAX_ID_SOURCES, i as toEkycConfig, l as HOUSE_NO_SOURCES, m as STREET_SOURCES, n as getEKYCFields, o as CITY_SOURCES, p as STATE_CODE_HINTS, r as isFieldOptional, s as COUNTRY_SELECTOR_DISABLED_SOURCES, t as getEKYCCountry, u as MIDDLE_NAME_SOURCES } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
4
|
+
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.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-DQyrvDQj.esm.js";
|
|
7
|
+
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
|
231
8
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
|
|
232
9
|
var metadata_min_json_default = {
|
|
233
10
|
"version": 4,
|
|
@@ -7674,7 +7451,6 @@ var metadata_min_json_default = {
|
|
|
7674
7451
|
]
|
|
7675
7452
|
}
|
|
7676
7453
|
};
|
|
7677
|
-
|
|
7678
7454
|
//#endregion
|
|
7679
7455
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js
|
|
7680
7456
|
function withMetadataArgument(func, _arguments) {
|
|
@@ -7682,7 +7458,6 @@ function withMetadataArgument(func, _arguments) {
|
|
|
7682
7458
|
args.push(metadata_min_json_default);
|
|
7683
7459
|
return func.apply(this, args);
|
|
7684
7460
|
}
|
|
7685
|
-
|
|
7686
7461
|
//#endregion
|
|
7687
7462
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/tools/semver-compare.js
|
|
7688
7463
|
function semver_compare_default(a, b) {
|
|
@@ -7701,22 +7476,20 @@ function semver_compare_default(a, b) {
|
|
|
7701
7476
|
if (a[1] && b[1]) return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0;
|
|
7702
7477
|
return !a[1] && b[1] ? 1 : a[1] && !b[1] ? -1 : 0;
|
|
7703
7478
|
}
|
|
7704
|
-
|
|
7705
7479
|
//#endregion
|
|
7706
7480
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/isObject.js
|
|
7707
7481
|
var objectConstructor = {}.constructor;
|
|
7708
7482
|
function isObject(object) {
|
|
7709
7483
|
return object !== void 0 && object !== null && object.constructor === objectConstructor;
|
|
7710
7484
|
}
|
|
7711
|
-
|
|
7712
7485
|
//#endregion
|
|
7713
7486
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/metadata.js
|
|
7714
7487
|
function _typeof$6(o) {
|
|
7715
7488
|
"@babel/helpers - typeof";
|
|
7716
|
-
return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
7717
|
-
return typeof o
|
|
7718
|
-
} : function(o
|
|
7719
|
-
return o
|
|
7489
|
+
return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
7490
|
+
return typeof o;
|
|
7491
|
+
} : function(o) {
|
|
7492
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
7720
7493
|
}, _typeof$6(o);
|
|
7721
7494
|
}
|
|
7722
7495
|
function _classCallCheck$2(a, n) {
|
|
@@ -7752,14 +7525,14 @@ var CALLING_CODE_REG_EXP = /^\d+$/;
|
|
|
7752
7525
|
/**
|
|
7753
7526
|
* See: https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md
|
|
7754
7527
|
*/
|
|
7755
|
-
var Metadata =
|
|
7756
|
-
function Metadata
|
|
7757
|
-
_classCallCheck$2(this, Metadata
|
|
7528
|
+
var Metadata = /*#__PURE__*/ function() {
|
|
7529
|
+
function Metadata(metadata) {
|
|
7530
|
+
_classCallCheck$2(this, Metadata);
|
|
7758
7531
|
validateMetadata(metadata);
|
|
7759
7532
|
this.metadata = metadata;
|
|
7760
7533
|
setVersion.call(this, metadata);
|
|
7761
7534
|
}
|
|
7762
|
-
return _createClass$2(Metadata
|
|
7535
|
+
return _createClass$2(Metadata, [
|
|
7763
7536
|
{
|
|
7764
7537
|
key: "getCountries",
|
|
7765
7538
|
value: function getCountries() {
|
|
@@ -7953,14 +7726,14 @@ var Metadata = /* @__PURE__ */ function() {
|
|
|
7953
7726
|
}
|
|
7954
7727
|
]);
|
|
7955
7728
|
}();
|
|
7956
|
-
var NumberingPlan =
|
|
7957
|
-
function NumberingPlan
|
|
7958
|
-
_classCallCheck$2(this, NumberingPlan
|
|
7729
|
+
var NumberingPlan = /*#__PURE__*/ function() {
|
|
7730
|
+
function NumberingPlan(metadata, globalMetadataObject) {
|
|
7731
|
+
_classCallCheck$2(this, NumberingPlan);
|
|
7959
7732
|
this.globalMetadataObject = globalMetadataObject;
|
|
7960
7733
|
this.metadata = metadata;
|
|
7961
7734
|
setVersion.call(this, globalMetadataObject.metadata);
|
|
7962
7735
|
}
|
|
7963
|
-
return _createClass$2(NumberingPlan
|
|
7736
|
+
return _createClass$2(NumberingPlan, [
|
|
7964
7737
|
{
|
|
7965
7738
|
key: "callingCode",
|
|
7966
7739
|
value: function callingCode() {
|
|
@@ -8099,13 +7872,13 @@ var NumberingPlan = /* @__PURE__ */ function() {
|
|
|
8099
7872
|
}
|
|
8100
7873
|
]);
|
|
8101
7874
|
}();
|
|
8102
|
-
var Format =
|
|
8103
|
-
function Format
|
|
8104
|
-
_classCallCheck$2(this, Format
|
|
7875
|
+
var Format = /*#__PURE__*/ function() {
|
|
7876
|
+
function Format(format, metadata) {
|
|
7877
|
+
_classCallCheck$2(this, Format);
|
|
8105
7878
|
this._format = format;
|
|
8106
7879
|
this.metadata = metadata;
|
|
8107
7880
|
}
|
|
8108
|
-
return _createClass$2(Format
|
|
7881
|
+
return _createClass$2(Format, [
|
|
8109
7882
|
{
|
|
8110
7883
|
key: "pattern",
|
|
8111
7884
|
value: function pattern() {
|
|
@@ -8162,13 +7935,13 @@ var Format = /* @__PURE__ */ function() {
|
|
|
8162
7935
|
* Note that the pattern explicitly allows for unbalanced parentheses.
|
|
8163
7936
|
*/
|
|
8164
7937
|
var FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\(?\$1\)?$/;
|
|
8165
|
-
var Type =
|
|
8166
|
-
function Type
|
|
8167
|
-
_classCallCheck$2(this, Type
|
|
7938
|
+
var Type = /*#__PURE__*/ function() {
|
|
7939
|
+
function Type(type, metadata) {
|
|
7940
|
+
_classCallCheck$2(this, Type);
|
|
8168
7941
|
this.type = type;
|
|
8169
7942
|
this.metadata = metadata;
|
|
8170
7943
|
}
|
|
8171
|
-
return _createClass$2(Type
|
|
7944
|
+
return _createClass$2(Type, [{
|
|
8172
7945
|
key: "pattern",
|
|
8173
7946
|
value: function pattern() {
|
|
8174
7947
|
if (this.metadata.v1) return this.type;
|
|
@@ -8201,7 +7974,7 @@ function validateMetadata(metadata) {
|
|
|
8201
7974
|
if (!isObject(metadata) || !isObject(metadata.countries)) throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(isObject(metadata) ? "an object of shape: { " + Object.keys(metadata).join(", ") + " }" : "a " + typeOf(metadata) + ": " + metadata, "."));
|
|
8202
7975
|
}
|
|
8203
7976
|
/* istanbul ignore next */
|
|
8204
|
-
var typeOf = function typeOf
|
|
7977
|
+
var typeOf = function typeOf(_) {
|
|
8205
7978
|
return _typeof$6(_);
|
|
8206
7979
|
};
|
|
8207
7980
|
/**
|
|
@@ -8234,7 +8007,6 @@ function setVersion(metadata) {
|
|
|
8234
8007
|
else if (semver_compare_default(version, V4) === -1) this.v3 = true;
|
|
8235
8008
|
else this.v4 = true;
|
|
8236
8009
|
}
|
|
8237
|
-
|
|
8238
8010
|
//#endregion
|
|
8239
8011
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
|
|
8240
8012
|
function _createForOfIteratorHelperLoose$3(r, e) {
|
|
@@ -8276,11 +8048,10 @@ function mergeArrays(a, b) {
|
|
|
8276
8048
|
var element = _step.value;
|
|
8277
8049
|
if (a.indexOf(element) < 0) merged.push(element);
|
|
8278
8050
|
}
|
|
8279
|
-
return merged.sort(function(a
|
|
8280
|
-
return a
|
|
8051
|
+
return merged.sort(function(a, b) {
|
|
8052
|
+
return a - b;
|
|
8281
8053
|
});
|
|
8282
8054
|
}
|
|
8283
|
-
|
|
8284
8055
|
//#endregion
|
|
8285
8056
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js
|
|
8286
8057
|
function checkNumberLength(nationalNumber, country, metadata) {
|
|
@@ -8307,7 +8078,6 @@ function checkNumberLengthForType(nationalNumber, country, type, metadata) {
|
|
|
8307
8078
|
if (possible_lengths[possible_lengths.length - 1] < actual_length) return "TOO_LONG";
|
|
8308
8079
|
return possible_lengths.indexOf(actual_length, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
8309
8080
|
}
|
|
8310
|
-
|
|
8311
8081
|
//#endregion
|
|
8312
8082
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/isPossible.js
|
|
8313
8083
|
/**
|
|
@@ -8350,7 +8120,6 @@ function isPossibleNumber(nationalNumber, country, metadata) {
|
|
|
8350
8120
|
default: return false;
|
|
8351
8121
|
}
|
|
8352
8122
|
}
|
|
8353
|
-
|
|
8354
8123
|
//#endregion
|
|
8355
8124
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js
|
|
8356
8125
|
/**
|
|
@@ -8360,9 +8129,8 @@ function isPossibleNumber(nationalNumber, country, metadata) {
|
|
|
8360
8129
|
*/
|
|
8361
8130
|
function matchesEntirely(text, regularExpressionText) {
|
|
8362
8131
|
text = text || "";
|
|
8363
|
-
return
|
|
8132
|
+
return new RegExp("^(?:" + regularExpressionText + ")$").test(text);
|
|
8364
8133
|
}
|
|
8365
|
-
|
|
8366
8134
|
//#endregion
|
|
8367
8135
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getNumberType.js
|
|
8368
8136
|
function _createForOfIteratorHelperLoose$2(r, e) {
|
|
@@ -8428,7 +8196,6 @@ function isNumberTypeEqualTo(nationalNumber, type, metadata) {
|
|
|
8428
8196
|
if (type.possibleLengths() && type.possibleLengths().indexOf(nationalNumber.length) < 0) return false;
|
|
8429
8197
|
return matchesEntirely(nationalNumber, type.pattern());
|
|
8430
8198
|
}
|
|
8431
|
-
|
|
8432
8199
|
//#endregion
|
|
8433
8200
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/isValid.js
|
|
8434
8201
|
/**
|
|
@@ -8472,7 +8239,6 @@ function isValidNumber(input, options, metadata) {
|
|
|
8472
8239
|
if (metadata.hasTypes()) return getNumberType(input, options, metadata.metadata) !== void 0;
|
|
8473
8240
|
return matchesEntirely(options.v2 ? input.nationalNumber : input.phone, metadata.nationalNumberPattern());
|
|
8474
8241
|
}
|
|
8475
|
-
|
|
8476
8242
|
//#endregion
|
|
8477
8243
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
|
|
8478
8244
|
/**
|
|
@@ -8495,25 +8261,14 @@ function couldNationalNumberBelongToCountry(nationalNumber, country, metadata) {
|
|
|
8495
8261
|
if (_metadata.numberingPlan.possibleLengths().indexOf(nationalNumber.length) >= 0) return true;
|
|
8496
8262
|
return false;
|
|
8497
8263
|
}
|
|
8498
|
-
|
|
8499
8264
|
//#endregion
|
|
8500
8265
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/constants.js
|
|
8501
|
-
var MIN_LENGTH_FOR_NSN = 2;
|
|
8502
|
-
var MAX_LENGTH_FOR_NSN = 17;
|
|
8503
|
-
var MAX_LENGTH_COUNTRY_CODE = 3;
|
|
8504
8266
|
var VALID_DIGITS = "0-90-9٠-٩۰-۹";
|
|
8505
|
-
var
|
|
8506
|
-
var SLASHES = "//";
|
|
8507
|
-
var DOTS = "..";
|
|
8508
|
-
var WHITESPACE = " \xA0 ";
|
|
8509
|
-
var BRACKETS = "()()[]\\[\\]";
|
|
8510
|
-
var TILDES = "~⁓∼~";
|
|
8511
|
-
var VALID_PUNCTUATION = "".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);
|
|
8267
|
+
var VALID_PUNCTUATION = "".concat("-‐-―−ー-").concat("//").concat("..").concat(" \xA0 ").concat("()()[]\\[\\]").concat("~⁓∼~");
|
|
8512
8268
|
var PLUS_CHARS = "++";
|
|
8513
|
-
|
|
8514
8269
|
//#endregion
|
|
8515
8270
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js
|
|
8516
|
-
var CAPTURING_DIGIT_PATTERN =
|
|
8271
|
+
var CAPTURING_DIGIT_PATTERN = new RegExp("([" + VALID_DIGITS + "])");
|
|
8517
8272
|
function stripIddPrefix(number, country, callingCode, metadata) {
|
|
8518
8273
|
if (!country) return;
|
|
8519
8274
|
var countryMetadata = new Metadata(metadata);
|
|
@@ -8527,7 +8282,6 @@ function stripIddPrefix(number, country, callingCode, metadata) {
|
|
|
8527
8282
|
}
|
|
8528
8283
|
return number;
|
|
8529
8284
|
}
|
|
8530
|
-
|
|
8531
8285
|
//#endregion
|
|
8532
8286
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js
|
|
8533
8287
|
/**
|
|
@@ -8545,7 +8299,7 @@ function stripIddPrefix(number, country, callingCode, metadata) {
|
|
|
8545
8299
|
*/
|
|
8546
8300
|
function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {
|
|
8547
8301
|
if (number && metadata.numberingPlan.nationalPrefixForParsing()) {
|
|
8548
|
-
var prefixPattern =
|
|
8302
|
+
var prefixPattern = new RegExp("^(?:" + metadata.numberingPlan.nationalPrefixForParsing() + ")");
|
|
8549
8303
|
var prefixMatch = prefixPattern.exec(number);
|
|
8550
8304
|
if (prefixMatch) {
|
|
8551
8305
|
var nationalNumber;
|
|
@@ -8574,7 +8328,6 @@ function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {
|
|
|
8574
8328
|
}
|
|
8575
8329
|
return { nationalNumber: number };
|
|
8576
8330
|
}
|
|
8577
|
-
|
|
8578
8331
|
//#endregion
|
|
8579
8332
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
|
|
8580
8333
|
function _createForOfIteratorHelperLoose$1(r, e) {
|
|
@@ -8618,7 +8371,6 @@ function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
|
|
|
8618
8371
|
}, void 0, metadata.metadata)) return country;
|
|
8619
8372
|
}
|
|
8620
8373
|
}
|
|
8621
|
-
|
|
8622
8374
|
//#endregion
|
|
8623
8375
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js
|
|
8624
8376
|
var USE_NON_GEOGRAPHIC_COUNTRY_CODE$2 = false;
|
|
@@ -8636,7 +8388,6 @@ function getCountryByCallingCode(callingCode, _ref) {
|
|
|
8636
8388
|
metadata: metadata.metadata
|
|
8637
8389
|
});
|
|
8638
8390
|
}
|
|
8639
|
-
|
|
8640
8391
|
//#endregion
|
|
8641
8392
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js
|
|
8642
8393
|
/**
|
|
@@ -8677,7 +8428,6 @@ function isPossibleIncompleteNationalNumber(nationalNumber, country, metadata) {
|
|
|
8677
8428
|
default: return true;
|
|
8678
8429
|
}
|
|
8679
8430
|
}
|
|
8680
|
-
|
|
8681
8431
|
//#endregion
|
|
8682
8432
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js
|
|
8683
8433
|
/**
|
|
@@ -8705,7 +8455,6 @@ function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number,
|
|
|
8705
8455
|
}
|
|
8706
8456
|
return { number };
|
|
8707
8457
|
}
|
|
8708
|
-
|
|
8709
8458
|
//#endregion
|
|
8710
8459
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js
|
|
8711
8460
|
/**
|
|
@@ -8750,7 +8499,7 @@ function extractCountryCallingCode(number, country, defaultCountry, defaultCalli
|
|
|
8750
8499
|
if (number[1] === "0") return {};
|
|
8751
8500
|
metadata = new Metadata(metadata);
|
|
8752
8501
|
var i = 2;
|
|
8753
|
-
while (i - 1 <=
|
|
8502
|
+
while (i - 1 <= 3 && i <= number.length) {
|
|
8754
8503
|
var _countryCallingCode = number.slice(1, i);
|
|
8755
8504
|
if (metadata.hasCallingCode(_countryCallingCode)) {
|
|
8756
8505
|
metadata.selectNumberingPlan(_countryCallingCode);
|
|
@@ -8764,13 +8513,11 @@ function extractCountryCallingCode(number, country, defaultCountry, defaultCalli
|
|
|
8764
8513
|
}
|
|
8765
8514
|
return {};
|
|
8766
8515
|
}
|
|
8767
|
-
|
|
8768
8516
|
//#endregion
|
|
8769
8517
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js
|
|
8770
8518
|
function applyInternationalSeparatorStyle(formattedNumber) {
|
|
8771
8519
|
return formattedNumber.replace(new RegExp("[".concat(VALID_PUNCTUATION, "]+"), "g"), " ").trim();
|
|
8772
8520
|
}
|
|
8773
|
-
|
|
8774
8521
|
//#endregion
|
|
8775
8522
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js
|
|
8776
8523
|
var FIRST_GROUP_PATTERN = /(\$\d)/;
|
|
@@ -8782,7 +8529,6 @@ function formatNationalNumberUsingFormat(number, format, _ref) {
|
|
|
8782
8529
|
if (useInternationalFormat) return applyInternationalSeparatorStyle(formattedNumber);
|
|
8783
8530
|
return formattedNumber;
|
|
8784
8531
|
}
|
|
8785
|
-
|
|
8786
8532
|
//#endregion
|
|
8787
8533
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js
|
|
8788
8534
|
/**
|
|
@@ -8801,7 +8547,6 @@ function getIddPrefix(country, callingCode, metadata) {
|
|
|
8801
8547
|
if (countryMetadata.defaultIDDPrefix()) return countryMetadata.defaultIDDPrefix();
|
|
8802
8548
|
if (SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())) return countryMetadata.IDDPrefix();
|
|
8803
8549
|
}
|
|
8804
|
-
|
|
8805
8550
|
//#endregion
|
|
8806
8551
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js
|
|
8807
8552
|
var RFC3966_EXTN_PREFIX = ";ext=";
|
|
@@ -8810,7 +8555,7 @@ var RFC3966_EXTN_PREFIX = ";ext=";
|
|
|
8810
8555
|
* an expression that captures up to max_length digits.
|
|
8811
8556
|
* @return {string} RegEx pattern to capture extension digits.
|
|
8812
8557
|
*/
|
|
8813
|
-
var getExtensionDigitsPattern = function getExtensionDigitsPattern
|
|
8558
|
+
var getExtensionDigitsPattern = function getExtensionDigitsPattern(maxLength) {
|
|
8814
8559
|
return "([".concat(VALID_DIGITS, "]{1,").concat(maxLength, "})");
|
|
8815
8560
|
};
|
|
8816
8561
|
/**
|
|
@@ -8859,21 +8604,19 @@ function createExtensionPattern(purpose) {
|
|
|
8859
8604
|
var onlyCommasExtn = possibleSeparatorsNumberExtLabelNoComma + "(?:,)+" + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;
|
|
8860
8605
|
return rfcExtn + "|" + explicitExtn + "|" + ambiguousExtn + "|" + americanStyleExtnWithSuffix + "|" + autoDiallingExtn + "|" + onlyCommasExtn;
|
|
8861
8606
|
}
|
|
8862
|
-
|
|
8863
8607
|
//#endregion
|
|
8864
8608
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js
|
|
8865
|
-
var MIN_LENGTH_PHONE_NUMBER_PATTERN = "[" + VALID_DIGITS + "]{
|
|
8609
|
+
var MIN_LENGTH_PHONE_NUMBER_PATTERN = "[" + VALID_DIGITS + "]{2}";
|
|
8866
8610
|
var VALID_PHONE_NUMBER = "[" + PLUS_CHARS + "]{0,1}(?:[" + VALID_PUNCTUATION + "]*[" + VALID_DIGITS + "]){3,}[" + VALID_PUNCTUATION + VALID_DIGITS + "]*";
|
|
8867
8611
|
var VALID_PHONE_NUMBER_START_REG_EXP = new RegExp("^[" + PLUS_CHARS + "]{0,1}(?:[" + VALID_PUNCTUATION + "]*[" + VALID_DIGITS + "]){1,2}$", "i");
|
|
8868
8612
|
var VALID_PHONE_NUMBER_WITH_EXTENSION = VALID_PHONE_NUMBER + "(?:" + createExtensionPattern() + ")?";
|
|
8869
8613
|
var VALID_PHONE_NUMBER_PATTERN = new RegExp("^" + MIN_LENGTH_PHONE_NUMBER_PATTERN + "$|^" + VALID_PHONE_NUMBER_WITH_EXTENSION + "$", "i");
|
|
8870
8614
|
function isViablePhoneNumber(number) {
|
|
8871
|
-
return number.length >=
|
|
8615
|
+
return number.length >= 2 && VALID_PHONE_NUMBER_PATTERN.test(number);
|
|
8872
8616
|
}
|
|
8873
8617
|
function isViablePhoneNumberStart(number) {
|
|
8874
8618
|
return VALID_PHONE_NUMBER_START_REG_EXP.test(number);
|
|
8875
8619
|
}
|
|
8876
|
-
|
|
8877
8620
|
//#endregion
|
|
8878
8621
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/RFC3966.js
|
|
8879
8622
|
/**
|
|
@@ -8886,7 +8629,6 @@ function formatRFC3966(_ref) {
|
|
|
8886
8629
|
if (number[0] !== "+") throw new Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
|
|
8887
8630
|
return "tel:".concat(number).concat(ext ? ";ext=" + ext : "");
|
|
8888
8631
|
}
|
|
8889
|
-
|
|
8890
8632
|
//#endregion
|
|
8891
8633
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/format.js
|
|
8892
8634
|
var DEFAULT_OPTIONS = { formatExtension: function formatExtension(formattedNumber, extension, metadata) {
|
|
@@ -8987,23 +8729,22 @@ function pickFirstMatchingElement(elements, testFunction) {
|
|
|
8987
8729
|
i++;
|
|
8988
8730
|
}
|
|
8989
8731
|
}
|
|
8990
|
-
|
|
8991
8732
|
//#endregion
|
|
8992
8733
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/PhoneNumber.js
|
|
8993
8734
|
function _typeof$5(o) {
|
|
8994
8735
|
"@babel/helpers - typeof";
|
|
8995
|
-
return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
8996
|
-
return typeof o
|
|
8997
|
-
} : function(o
|
|
8998
|
-
return o
|
|
8736
|
+
return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
8737
|
+
return typeof o;
|
|
8738
|
+
} : function(o) {
|
|
8739
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8999
8740
|
}, _typeof$5(o);
|
|
9000
8741
|
}
|
|
9001
8742
|
function ownKeys$4(e, r) {
|
|
9002
8743
|
var t = Object.keys(e);
|
|
9003
8744
|
if (Object.getOwnPropertySymbols) {
|
|
9004
8745
|
var o = Object.getOwnPropertySymbols(e);
|
|
9005
|
-
r && (o = o.filter(function(r
|
|
9006
|
-
return Object.getOwnPropertyDescriptor(e, r
|
|
8746
|
+
r && (o = o.filter(function(r) {
|
|
8747
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
9007
8748
|
})), t.push.apply(t, o);
|
|
9008
8749
|
}
|
|
9009
8750
|
return t;
|
|
@@ -9011,10 +8752,10 @@ function ownKeys$4(e, r) {
|
|
|
9011
8752
|
function _objectSpread$4(e) {
|
|
9012
8753
|
for (var r = 1; r < arguments.length; r++) {
|
|
9013
8754
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
9014
|
-
r % 2 ? ownKeys$4(Object(t), !0).forEach(function(r
|
|
9015
|
-
_defineProperty$4(e, r
|
|
9016
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function(r
|
|
9017
|
-
Object.defineProperty(e, r
|
|
8755
|
+
r % 2 ? ownKeys$4(Object(t), !0).forEach(function(r) {
|
|
8756
|
+
_defineProperty$4(e, r, t[r]);
|
|
8757
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function(r) {
|
|
8758
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
9018
8759
|
});
|
|
9019
8760
|
}
|
|
9020
8761
|
return e;
|
|
@@ -9054,15 +8795,15 @@ function _toPrimitive$5(t, r) {
|
|
|
9054
8795
|
return ("string" === r ? String : Number)(t);
|
|
9055
8796
|
}
|
|
9056
8797
|
var USE_NON_GEOGRAPHIC_COUNTRY_CODE$1 = false;
|
|
9057
|
-
var PhoneNumber =
|
|
8798
|
+
var PhoneNumber = /*#__PURE__*/ function() {
|
|
9058
8799
|
/**
|
|
9059
8800
|
* @param {string} countryOrCountryCallingCode
|
|
9060
8801
|
* @param {string} nationalNumber
|
|
9061
8802
|
* @param {object} metadata — Metadata JSON
|
|
9062
8803
|
* @return {PhoneNumber}
|
|
9063
8804
|
*/
|
|
9064
|
-
function PhoneNumber
|
|
9065
|
-
_classCallCheck$1(this, PhoneNumber
|
|
8805
|
+
function PhoneNumber(countryOrCountryCallingCode, nationalNumber, metadata) {
|
|
8806
|
+
_classCallCheck$1(this, PhoneNumber);
|
|
9066
8807
|
if (!countryOrCountryCallingCode) throw new TypeError("First argument is required");
|
|
9067
8808
|
if (typeof countryOrCountryCallingCode !== "string") throw new TypeError("First argument must be a string");
|
|
9068
8809
|
if (countryOrCountryCallingCode[0] === "+" && !nationalNumber) throw new TypeError("`metadata` argument not passed");
|
|
@@ -9087,7 +8828,7 @@ var PhoneNumber = /* @__PURE__ */ function() {
|
|
|
9087
8828
|
return metadata;
|
|
9088
8829
|
};
|
|
9089
8830
|
}
|
|
9090
|
-
return _createClass$1(PhoneNumber
|
|
8831
|
+
return _createClass$1(PhoneNumber, [
|
|
9091
8832
|
{
|
|
9092
8833
|
key: "setExt",
|
|
9093
8834
|
value: function setExt(ext) {
|
|
@@ -9127,7 +8868,7 @@ var PhoneNumber = /* @__PURE__ */ function() {
|
|
|
9127
8868
|
},
|
|
9128
8869
|
{
|
|
9129
8870
|
key: "getType",
|
|
9130
|
-
value: function getType
|
|
8871
|
+
value: function getType() {
|
|
9131
8872
|
return getNumberType(this, { v2: true }, this.getMetadata());
|
|
9132
8873
|
}
|
|
9133
8874
|
},
|
|
@@ -9157,7 +8898,7 @@ var PhoneNumber = /* @__PURE__ */ function() {
|
|
|
9157
8898
|
}
|
|
9158
8899
|
]);
|
|
9159
8900
|
}();
|
|
9160
|
-
var isCountryCode = function isCountryCode
|
|
8901
|
+
var isCountryCode = function isCountryCode(value) {
|
|
9161
8902
|
return /^[A-Z]{2}$/.test(value);
|
|
9162
8903
|
};
|
|
9163
8904
|
function getCountryAndCountryCallingCode(countryOrCountryCallingCode, metadataJson) {
|
|
@@ -9181,15 +8922,14 @@ function getCountryAndCountryCallingCode(countryOrCountryCallingCode, metadataJs
|
|
|
9181
8922
|
};
|
|
9182
8923
|
}
|
|
9183
8924
|
var E164_NUMBER_REGEXP = /^\+\d+$/;
|
|
9184
|
-
|
|
9185
8925
|
//#endregion
|
|
9186
8926
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/ParseError.js
|
|
9187
8927
|
function _typeof$4(o) {
|
|
9188
8928
|
"@babel/helpers - typeof";
|
|
9189
|
-
return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
9190
|
-
return typeof o
|
|
9191
|
-
} : function(o
|
|
9192
|
-
return o
|
|
8929
|
+
return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
8930
|
+
return typeof o;
|
|
8931
|
+
} : function(o) {
|
|
8932
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9193
8933
|
}, _typeof$4(o);
|
|
9194
8934
|
}
|
|
9195
8935
|
function _defineProperties(e, r) {
|
|
@@ -9240,22 +8980,22 @@ function _inherits(t, e) {
|
|
|
9240
8980
|
}
|
|
9241
8981
|
function _wrapNativeSuper(t) {
|
|
9242
8982
|
var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
|
|
9243
|
-
return _wrapNativeSuper = function _wrapNativeSuper
|
|
9244
|
-
if (null === t
|
|
9245
|
-
if ("function" != typeof t
|
|
8983
|
+
return _wrapNativeSuper = function _wrapNativeSuper(t) {
|
|
8984
|
+
if (null === t || !_isNativeFunction(t)) return t;
|
|
8985
|
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
9246
8986
|
if (void 0 !== r) {
|
|
9247
|
-
if (r.has(t
|
|
9248
|
-
r.set(t
|
|
8987
|
+
if (r.has(t)) return r.get(t);
|
|
8988
|
+
r.set(t, Wrapper);
|
|
9249
8989
|
}
|
|
9250
8990
|
function Wrapper() {
|
|
9251
|
-
return _construct(t
|
|
8991
|
+
return _construct(t, arguments, _getPrototypeOf(this).constructor);
|
|
9252
8992
|
}
|
|
9253
|
-
return Wrapper.prototype = Object.create(t
|
|
8993
|
+
return Wrapper.prototype = Object.create(t.prototype, { constructor: {
|
|
9254
8994
|
value: Wrapper,
|
|
9255
8995
|
enumerable: !1,
|
|
9256
8996
|
writable: !0,
|
|
9257
8997
|
configurable: !0
|
|
9258
|
-
} }), _setPrototypeOf(Wrapper, t
|
|
8998
|
+
} }), _setPrototypeOf(Wrapper, t);
|
|
9259
8999
|
}, _wrapNativeSuper(t);
|
|
9260
9000
|
}
|
|
9261
9001
|
function _construct(t, e, r) {
|
|
@@ -9268,8 +9008,8 @@ function _construct(t, e, r) {
|
|
|
9268
9008
|
function _isNativeReflectConstruct() {
|
|
9269
9009
|
try {
|
|
9270
9010
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
9271
|
-
} catch (t
|
|
9272
|
-
return (_isNativeReflectConstruct = function _isNativeReflectConstruct
|
|
9011
|
+
} catch (t) {}
|
|
9012
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
9273
9013
|
return !!t;
|
|
9274
9014
|
})();
|
|
9275
9015
|
}
|
|
@@ -9281,28 +9021,27 @@ function _isNativeFunction(t) {
|
|
|
9281
9021
|
}
|
|
9282
9022
|
}
|
|
9283
9023
|
function _setPrototypeOf(t, e) {
|
|
9284
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t
|
|
9285
|
-
return t
|
|
9024
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
9025
|
+
return t.__proto__ = e, t;
|
|
9286
9026
|
}, _setPrototypeOf(t, e);
|
|
9287
9027
|
}
|
|
9288
9028
|
function _getPrototypeOf(t) {
|
|
9289
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t
|
|
9290
|
-
return t
|
|
9029
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
9030
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
9291
9031
|
}, _getPrototypeOf(t);
|
|
9292
9032
|
}
|
|
9293
|
-
var ParseError =
|
|
9294
|
-
function ParseError
|
|
9033
|
+
var ParseError = /*#__PURE__*/ function(_Error) {
|
|
9034
|
+
function ParseError(code) {
|
|
9295
9035
|
var _this;
|
|
9296
|
-
_classCallCheck(this, ParseError
|
|
9297
|
-
_this = _callSuper(this, ParseError
|
|
9298
|
-
Object.setPrototypeOf(_this, ParseError
|
|
9036
|
+
_classCallCheck(this, ParseError);
|
|
9037
|
+
_this = _callSuper(this, ParseError, [code]);
|
|
9038
|
+
Object.setPrototypeOf(_this, ParseError.prototype);
|
|
9299
9039
|
_this.name = _this.constructor.name;
|
|
9300
9040
|
return _this;
|
|
9301
9041
|
}
|
|
9302
|
-
_inherits(ParseError
|
|
9303
|
-
return _createClass(ParseError
|
|
9304
|
-
}(
|
|
9305
|
-
|
|
9042
|
+
_inherits(ParseError, _Error);
|
|
9043
|
+
return _createClass(ParseError);
|
|
9044
|
+
}(/*#__PURE__*/ _wrapNativeSuper(Error));
|
|
9306
9045
|
//#endregion
|
|
9307
9046
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js
|
|
9308
9047
|
var EXTN_PATTERN = new RegExp("(?:" + createExtensionPattern() + ")$", "i");
|
|
@@ -9320,7 +9059,6 @@ function extractExtension(number) {
|
|
|
9320
9059
|
i++;
|
|
9321
9060
|
}
|
|
9322
9061
|
}
|
|
9323
|
-
|
|
9324
9062
|
//#endregion
|
|
9325
9063
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/parseDigits.js
|
|
9326
9064
|
var DIGITS = {
|
|
@@ -9368,7 +9106,6 @@ var DIGITS = {
|
|
|
9368
9106
|
function parseDigit(character) {
|
|
9369
9107
|
return DIGITS[character];
|
|
9370
9108
|
}
|
|
9371
|
-
|
|
9372
9109
|
//#endregion
|
|
9373
9110
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js
|
|
9374
9111
|
function _createForOfIteratorHelperLoose(r, e) {
|
|
@@ -9414,12 +9151,12 @@ function _arrayLikeToArray$1(r, a) {
|
|
|
9414
9151
|
* ```
|
|
9415
9152
|
*/
|
|
9416
9153
|
function parseIncompletePhoneNumber(string) {
|
|
9417
|
-
var result
|
|
9154
|
+
var result = "";
|
|
9418
9155
|
for (var _iterator = _createForOfIteratorHelperLoose(string.split("")), _step; !(_step = _iterator()).done;) {
|
|
9419
9156
|
var character = _step.value;
|
|
9420
|
-
result
|
|
9157
|
+
result += parsePhoneNumberCharacter(character, result) || "";
|
|
9421
9158
|
}
|
|
9422
|
-
return result
|
|
9159
|
+
return result;
|
|
9423
9160
|
}
|
|
9424
9161
|
/**
|
|
9425
9162
|
* Parses next character while parsing phone number digits (including a `+`)
|
|
@@ -9442,12 +9179,8 @@ function parsePhoneNumberCharacter(character, prevParsedCharacters, eventListene
|
|
|
9442
9179
|
}
|
|
9443
9180
|
return parseDigit(character);
|
|
9444
9181
|
}
|
|
9445
|
-
|
|
9446
|
-
//#endregion
|
|
9447
|
-
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js
|
|
9448
|
-
var PLUS_SIGN = "+";
|
|
9449
9182
|
var RFC3966_PHONE_DIGIT_ = "([" + VALID_DIGITS + "]|[\\-\\.\\(\\)]?)";
|
|
9450
|
-
var RFC3966_GLOBAL_NUMBER_DIGITS_ = "
|
|
9183
|
+
var RFC3966_GLOBAL_NUMBER_DIGITS_ = "^\\+" + RFC3966_PHONE_DIGIT_ + "*[" + VALID_DIGITS + "]" + RFC3966_PHONE_DIGIT_ + "*$";
|
|
9451
9184
|
/**
|
|
9452
9185
|
* Regular expression of valid global-number-digits for the phone-context
|
|
9453
9186
|
* parameter, following the syntax defined in RFC3966.
|
|
@@ -9492,7 +9225,6 @@ function isPhoneContextValid(phoneContext) {
|
|
|
9492
9225
|
if (phoneContext.length === 0) return false;
|
|
9493
9226
|
return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);
|
|
9494
9227
|
}
|
|
9495
|
-
|
|
9496
9228
|
//#endregion
|
|
9497
9229
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js
|
|
9498
9230
|
/**
|
|
@@ -9508,7 +9240,7 @@ function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse,
|
|
|
9508
9240
|
if (phoneContext === null) phoneNumberString = extractFormattedPhoneNumber(numberToParse) || "";
|
|
9509
9241
|
else {
|
|
9510
9242
|
phoneNumberString = "";
|
|
9511
|
-
if (phoneContext.charAt(0) ===
|
|
9243
|
+
if (phoneContext.charAt(0) === "+") phoneNumberString += phoneContext;
|
|
9512
9244
|
var indexOfRfc3966Prefix = numberToParse.indexOf(RFC3966_PREFIX_);
|
|
9513
9245
|
var indexOfNationalNumber;
|
|
9514
9246
|
/* istanbul ignore else */
|
|
@@ -9521,12 +9253,11 @@ function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse,
|
|
|
9521
9253
|
if (indexOfIsdn > 0) phoneNumberString = phoneNumberString.substring(0, indexOfIsdn);
|
|
9522
9254
|
if (phoneNumberString !== "") return phoneNumberString;
|
|
9523
9255
|
}
|
|
9524
|
-
|
|
9525
9256
|
//#endregion
|
|
9526
9257
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parse.js
|
|
9527
9258
|
var MAX_INPUT_STRING_LENGTH = 250;
|
|
9528
|
-
var PHONE_NUMBER_START_PATTERN =
|
|
9529
|
-
var AFTER_PHONE_NUMBER_END_PATTERN =
|
|
9259
|
+
var PHONE_NUMBER_START_PATTERN = new RegExp("[" + PLUS_CHARS + VALID_DIGITS + "]");
|
|
9260
|
+
var AFTER_PHONE_NUMBER_END_PATTERN = new RegExp("[^" + VALID_DIGITS + "#]+$");
|
|
9530
9261
|
var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
|
|
9531
9262
|
/**
|
|
9532
9263
|
* Parses a phone number.
|
|
@@ -9560,12 +9291,12 @@ function parse(text, options, metadata) {
|
|
|
9560
9291
|
if (options.v2) throw new ParseError("INVALID_COUNTRY");
|
|
9561
9292
|
return {};
|
|
9562
9293
|
}
|
|
9563
|
-
if (!nationalNumber || nationalNumber.length <
|
|
9294
|
+
if (!nationalNumber || nationalNumber.length < 2) {
|
|
9564
9295
|
/* istanbul ignore if */
|
|
9565
9296
|
if (options.v2) throw new ParseError("TOO_SHORT");
|
|
9566
9297
|
return {};
|
|
9567
9298
|
}
|
|
9568
|
-
if (nationalNumber.length >
|
|
9299
|
+
if (nationalNumber.length > 17) {
|
|
9569
9300
|
if (options.v2) throw new ParseError("TOO_LONG");
|
|
9570
9301
|
return {};
|
|
9571
9302
|
}
|
|
@@ -9619,8 +9350,8 @@ function _extractFormattedPhoneNumber(text, extract, throwOnError) {
|
|
|
9619
9350
|
* @return {object} `{ ?number, ?ext }`.
|
|
9620
9351
|
*/
|
|
9621
9352
|
function parseInput(text, v2, extract) {
|
|
9622
|
-
var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, { extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text
|
|
9623
|
-
return _extractFormattedPhoneNumber(text
|
|
9353
|
+
var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, { extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text) {
|
|
9354
|
+
return _extractFormattedPhoneNumber(text, extract, v2);
|
|
9624
9355
|
} });
|
|
9625
9356
|
if (!number) return {};
|
|
9626
9357
|
if (!isViablePhoneNumber(number)) {
|
|
@@ -9635,12 +9366,12 @@ function parseInput(text, v2, extract) {
|
|
|
9635
9366
|
* Creates `parse()` result object.
|
|
9636
9367
|
*/
|
|
9637
9368
|
function result(country, nationalNumber, ext) {
|
|
9638
|
-
var result
|
|
9369
|
+
var result = {
|
|
9639
9370
|
country,
|
|
9640
9371
|
phone: nationalNumber
|
|
9641
9372
|
};
|
|
9642
|
-
if (ext) result
|
|
9643
|
-
return result
|
|
9373
|
+
if (ext) result.ext = ext;
|
|
9374
|
+
return result;
|
|
9644
9375
|
}
|
|
9645
9376
|
/**
|
|
9646
9377
|
* Parses a viable phone number.
|
|
@@ -9684,23 +9415,22 @@ function parsePhoneNumber$3(formattedPhoneNumber, defaultCountry, defaultCalling
|
|
|
9684
9415
|
carrierCode
|
|
9685
9416
|
};
|
|
9686
9417
|
}
|
|
9687
|
-
|
|
9688
9418
|
//#endregion
|
|
9689
9419
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js
|
|
9690
9420
|
function _typeof$3(o) {
|
|
9691
9421
|
"@babel/helpers - typeof";
|
|
9692
|
-
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
9693
|
-
return typeof o
|
|
9694
|
-
} : function(o
|
|
9695
|
-
return o
|
|
9422
|
+
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
9423
|
+
return typeof o;
|
|
9424
|
+
} : function(o) {
|
|
9425
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9696
9426
|
}, _typeof$3(o);
|
|
9697
9427
|
}
|
|
9698
9428
|
function ownKeys$3(e, r) {
|
|
9699
9429
|
var t = Object.keys(e);
|
|
9700
9430
|
if (Object.getOwnPropertySymbols) {
|
|
9701
9431
|
var o = Object.getOwnPropertySymbols(e);
|
|
9702
|
-
r && (o = o.filter(function(r
|
|
9703
|
-
return Object.getOwnPropertyDescriptor(e, r
|
|
9432
|
+
r && (o = o.filter(function(r) {
|
|
9433
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
9704
9434
|
})), t.push.apply(t, o);
|
|
9705
9435
|
}
|
|
9706
9436
|
return t;
|
|
@@ -9708,10 +9438,10 @@ function ownKeys$3(e, r) {
|
|
|
9708
9438
|
function _objectSpread$3(e) {
|
|
9709
9439
|
for (var r = 1; r < arguments.length; r++) {
|
|
9710
9440
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
9711
|
-
r % 2 ? ownKeys$3(Object(t), !0).forEach(function(r
|
|
9712
|
-
_defineProperty$3(e, r
|
|
9713
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function(r
|
|
9714
|
-
Object.defineProperty(e, r
|
|
9441
|
+
r % 2 ? ownKeys$3(Object(t), !0).forEach(function(r) {
|
|
9442
|
+
_defineProperty$3(e, r, t[r]);
|
|
9443
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function(r) {
|
|
9444
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
9715
9445
|
});
|
|
9716
9446
|
}
|
|
9717
9447
|
return e;
|
|
@@ -9741,23 +9471,22 @@ function _toPrimitive$3(t, r) {
|
|
|
9741
9471
|
function parsePhoneNumberWithError(text, options, metadata) {
|
|
9742
9472
|
return parse(text, _objectSpread$3(_objectSpread$3({}, options), {}, { v2: true }), metadata);
|
|
9743
9473
|
}
|
|
9744
|
-
|
|
9745
9474
|
//#endregion
|
|
9746
9475
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/normalizeArguments.js
|
|
9747
9476
|
function _typeof$2(o) {
|
|
9748
9477
|
"@babel/helpers - typeof";
|
|
9749
|
-
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
9750
|
-
return typeof o
|
|
9751
|
-
} : function(o
|
|
9752
|
-
return o
|
|
9478
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
9479
|
+
return typeof o;
|
|
9480
|
+
} : function(o) {
|
|
9481
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9753
9482
|
}, _typeof$2(o);
|
|
9754
9483
|
}
|
|
9755
9484
|
function ownKeys$2(e, r) {
|
|
9756
9485
|
var t = Object.keys(e);
|
|
9757
9486
|
if (Object.getOwnPropertySymbols) {
|
|
9758
9487
|
var o = Object.getOwnPropertySymbols(e);
|
|
9759
|
-
r && (o = o.filter(function(r
|
|
9760
|
-
return Object.getOwnPropertyDescriptor(e, r
|
|
9488
|
+
r && (o = o.filter(function(r) {
|
|
9489
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
9761
9490
|
})), t.push.apply(t, o);
|
|
9762
9491
|
}
|
|
9763
9492
|
return t;
|
|
@@ -9765,10 +9494,10 @@ function ownKeys$2(e, r) {
|
|
|
9765
9494
|
function _objectSpread$2(e) {
|
|
9766
9495
|
for (var r = 1; r < arguments.length; r++) {
|
|
9767
9496
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
9768
|
-
r % 2 ? ownKeys$2(Object(t), !0).forEach(function(r
|
|
9769
|
-
_defineProperty$2(e, r
|
|
9770
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function(r
|
|
9771
|
-
Object.defineProperty(e, r
|
|
9497
|
+
r % 2 ? ownKeys$2(Object(t), !0).forEach(function(r) {
|
|
9498
|
+
_defineProperty$2(e, r, t[r]);
|
|
9499
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function(r) {
|
|
9500
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
9772
9501
|
});
|
|
9773
9502
|
}
|
|
9774
9503
|
return e;
|
|
@@ -9822,8 +9551,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
9822
9551
|
if (Object(t) !== t) return;
|
|
9823
9552
|
f = !1;
|
|
9824
9553
|
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
9825
|
-
} catch (r
|
|
9826
|
-
o = !0, n = r
|
|
9554
|
+
} catch (r) {
|
|
9555
|
+
o = !0, n = r;
|
|
9827
9556
|
} finally {
|
|
9828
9557
|
try {
|
|
9829
9558
|
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
@@ -9864,23 +9593,22 @@ function normalizeArguments(args) {
|
|
|
9864
9593
|
metadata
|
|
9865
9594
|
};
|
|
9866
9595
|
}
|
|
9867
|
-
|
|
9868
9596
|
//#endregion
|
|
9869
9597
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js
|
|
9870
9598
|
function _typeof$1(o) {
|
|
9871
9599
|
"@babel/helpers - typeof";
|
|
9872
|
-
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
9873
|
-
return typeof o
|
|
9874
|
-
} : function(o
|
|
9875
|
-
return o
|
|
9600
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
9601
|
+
return typeof o;
|
|
9602
|
+
} : function(o) {
|
|
9603
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9876
9604
|
}, _typeof$1(o);
|
|
9877
9605
|
}
|
|
9878
9606
|
function ownKeys$1(e, r) {
|
|
9879
9607
|
var t = Object.keys(e);
|
|
9880
9608
|
if (Object.getOwnPropertySymbols) {
|
|
9881
9609
|
var o = Object.getOwnPropertySymbols(e);
|
|
9882
|
-
r && (o = o.filter(function(r
|
|
9883
|
-
return Object.getOwnPropertyDescriptor(e, r
|
|
9610
|
+
r && (o = o.filter(function(r) {
|
|
9611
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
9884
9612
|
})), t.push.apply(t, o);
|
|
9885
9613
|
}
|
|
9886
9614
|
return t;
|
|
@@ -9888,10 +9616,10 @@ function ownKeys$1(e, r) {
|
|
|
9888
9616
|
function _objectSpread$1(e) {
|
|
9889
9617
|
for (var r = 1; r < arguments.length; r++) {
|
|
9890
9618
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
9891
|
-
r % 2 ? ownKeys$1(Object(t), !0).forEach(function(r
|
|
9892
|
-
_defineProperty$1(e, r
|
|
9893
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r
|
|
9894
|
-
Object.defineProperty(e, r
|
|
9619
|
+
r % 2 ? ownKeys$1(Object(t), !0).forEach(function(r) {
|
|
9620
|
+
_defineProperty$1(e, r, t[r]);
|
|
9621
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r) {
|
|
9622
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
9895
9623
|
});
|
|
9896
9624
|
}
|
|
9897
9625
|
return e;
|
|
@@ -9927,30 +9655,28 @@ function parsePhoneNumber$2(text, options, metadata) {
|
|
|
9927
9655
|
if (error instanceof ParseError) {} else throw error;
|
|
9928
9656
|
}
|
|
9929
9657
|
}
|
|
9930
|
-
|
|
9931
9658
|
//#endregion
|
|
9932
9659
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parsePhoneNumber.js
|
|
9933
9660
|
function parsePhoneNumber$1() {
|
|
9934
9661
|
var _normalizeArguments = normalizeArguments(arguments), text = _normalizeArguments.text, options = _normalizeArguments.options, metadata = _normalizeArguments.metadata;
|
|
9935
9662
|
return parsePhoneNumber$2(text, options, metadata);
|
|
9936
9663
|
}
|
|
9937
|
-
|
|
9938
9664
|
//#endregion
|
|
9939
9665
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js
|
|
9940
9666
|
function _typeof(o) {
|
|
9941
9667
|
"@babel/helpers - typeof";
|
|
9942
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
9943
|
-
return typeof o
|
|
9944
|
-
} : function(o
|
|
9945
|
-
return o
|
|
9668
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
9669
|
+
return typeof o;
|
|
9670
|
+
} : function(o) {
|
|
9671
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9946
9672
|
}, _typeof(o);
|
|
9947
9673
|
}
|
|
9948
9674
|
function ownKeys(e, r) {
|
|
9949
9675
|
var t = Object.keys(e);
|
|
9950
9676
|
if (Object.getOwnPropertySymbols) {
|
|
9951
9677
|
var o = Object.getOwnPropertySymbols(e);
|
|
9952
|
-
r && (o = o.filter(function(r
|
|
9953
|
-
return Object.getOwnPropertyDescriptor(e, r
|
|
9678
|
+
r && (o = o.filter(function(r) {
|
|
9679
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
9954
9680
|
})), t.push.apply(t, o);
|
|
9955
9681
|
}
|
|
9956
9682
|
return t;
|
|
@@ -9958,10 +9684,10 @@ function ownKeys(e, r) {
|
|
|
9958
9684
|
function _objectSpread(e) {
|
|
9959
9685
|
for (var r = 1; r < arguments.length; r++) {
|
|
9960
9686
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
9961
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function(r
|
|
9962
|
-
_defineProperty(e, r
|
|
9963
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r
|
|
9964
|
-
Object.defineProperty(e, r
|
|
9687
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
9688
|
+
_defineProperty(e, r, t[r]);
|
|
9689
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
9690
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
9965
9691
|
});
|
|
9966
9692
|
}
|
|
9967
9693
|
return e;
|
|
@@ -9994,19 +9720,16 @@ function isValidPhoneNumber$1() {
|
|
|
9994
9720
|
var phoneNumber = parsePhoneNumber$2(text, options, metadata);
|
|
9995
9721
|
return phoneNumber && phoneNumber.isValid() || false;
|
|
9996
9722
|
}
|
|
9997
|
-
|
|
9998
9723
|
//#endregion
|
|
9999
9724
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js
|
|
10000
9725
|
function parsePhoneNumber() {
|
|
10001
9726
|
return withMetadataArgument(parsePhoneNumber$1, arguments);
|
|
10002
9727
|
}
|
|
10003
|
-
|
|
10004
9728
|
//#endregion
|
|
10005
9729
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/min/exports/isValidPhoneNumber.js
|
|
10006
9730
|
function isValidPhoneNumber() {
|
|
10007
9731
|
return withMetadataArgument(isValidPhoneNumber$1, arguments);
|
|
10008
9732
|
}
|
|
10009
|
-
|
|
10010
9733
|
//#endregion
|
|
10011
9734
|
//#region ../infra/src/providers/browser/PhoneValidationProvider.ts
|
|
10012
9735
|
var PhoneValidationProvider = class {
|
|
@@ -10026,7 +9749,6 @@ var PhoneValidationProvider = class {
|
|
|
10026
9749
|
return null;
|
|
10027
9750
|
}
|
|
10028
9751
|
};
|
|
10029
|
-
|
|
10030
9752
|
//#endregion
|
|
10031
9753
|
//#region src/modules/ekyc/ekycValidators.ts
|
|
10032
9754
|
const phoneValidator = new PhoneValidationProvider();
|
|
@@ -10125,7 +9847,8 @@ const evaluateRules = (value, rules, field, validators) => {
|
|
|
10125
9847
|
function validateEkycForm(values, fields) {
|
|
10126
9848
|
const validators = createValidators();
|
|
10127
9849
|
return fields.reduce((errors, field) => {
|
|
10128
|
-
const
|
|
9850
|
+
const value = normalizeFieldValue(values[field.name]);
|
|
9851
|
+
const error = evaluateRules(value, field.validation, field, validators);
|
|
10129
9852
|
if (error) errors[field.name] = error;
|
|
10130
9853
|
return errors;
|
|
10131
9854
|
}, {});
|
|
@@ -10134,9 +9857,9 @@ function validateEkycField(values, fieldName, fields) {
|
|
|
10134
9857
|
const field = fields.find((f) => f.name === fieldName);
|
|
10135
9858
|
if (!field) return void 0;
|
|
10136
9859
|
const validators = createValidators();
|
|
10137
|
-
|
|
9860
|
+
const value = normalizeFieldValue(values[field.name]);
|
|
9861
|
+
return evaluateRules(value, field.validation, field, validators);
|
|
10138
9862
|
}
|
|
10139
|
-
|
|
10140
9863
|
//#endregion
|
|
10141
9864
|
//#region src/modules/ekyc/ekycActions.ts
|
|
10142
9865
|
function buildValidationRules(field, country, configSource) {
|
|
@@ -10385,7 +10108,6 @@ function processFieldValue(name, value, fieldsCountry) {
|
|
|
10385
10108
|
if (name === "panNumber") return value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase();
|
|
10386
10109
|
return value;
|
|
10387
10110
|
}
|
|
10388
|
-
|
|
10389
10111
|
//#endregion
|
|
10390
10112
|
//#region src/modules/ekyc/ekycServices.ts
|
|
10391
10113
|
/** Fetches module configuration for EXTERNAL_VERIFICATION */
|
|
@@ -10429,7 +10151,6 @@ async function submitEkyc(data, signal) {
|
|
|
10429
10151
|
throw err;
|
|
10430
10152
|
}
|
|
10431
10153
|
}
|
|
10432
|
-
|
|
10433
10154
|
//#endregion
|
|
10434
10155
|
//#region src/modules/ekyc/ekycGuards.ts
|
|
10435
10156
|
const hasNoValidationErrorsGuard = ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0;
|
|
@@ -10440,7 +10161,6 @@ const isCountryNotSupportedGuard = ({ event }) => {
|
|
|
10440
10161
|
const err = event.error;
|
|
10441
10162
|
return err instanceof EkycSubmitError && err.status === 400 && err.apiError === COUNTRY_NOT_SUPPORTED_MSG;
|
|
10442
10163
|
};
|
|
10443
|
-
|
|
10444
10164
|
//#endregion
|
|
10445
10165
|
//#region src/modules/ekyc/ekycActors.ts
|
|
10446
10166
|
const fetchModuleConfigActor = fromPromise(async ({ input, signal }) => fetchModuleConfig(input.flowId, signal));
|
|
@@ -10452,7 +10172,6 @@ const fetchPrefillDataActor = fromPromise(async ({ signal }) => {
|
|
|
10452
10172
|
};
|
|
10453
10173
|
});
|
|
10454
10174
|
const submitEkycActor = fromPromise(async ({ input, signal }) => submitEkyc(input, signal));
|
|
10455
|
-
|
|
10456
10175
|
//#endregion
|
|
10457
10176
|
//#region src/modules/ekyc/ekycStateMachine.ts
|
|
10458
10177
|
const ADDRESS_AUTOCOMPLETE_KEYS = [
|
|
@@ -10709,6 +10428,5 @@ const ekycMachine = setup({
|
|
|
10709
10428
|
closed: { type: "final" }
|
|
10710
10429
|
}
|
|
10711
10430
|
});
|
|
10712
|
-
|
|
10713
10431
|
//#endregion
|
|
10714
|
-
export {
|
|
10432
|
+
export { ekycMachine as t };
|