@incodetech/web 2.4.1 → 2.5.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 +1 -4
- package/dist/{GeolocationPermissionDenied-GbB9B3J0.js → GeolocationPermissionDenied-DRRBxdLP.js} +23 -8
- package/dist/Password-CY3Tv_5W.js +212 -0
- package/dist/RadioGroup-CnxMGtas.js +123 -0
- package/dist/RequiredLegend-CLQ0HX7d.js +16 -0
- package/dist/RequiredMarker-CAqxArxr.js +16 -0
- package/dist/TextField-MsdsbAbT.js +166 -0
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{af-ZA-Dm5i-KRC.js → af-ZA-CtJyXRHO.js} +129 -881
- package/dist/{ageVerification-n-1fouaD.js → ageVerification-C6fgHkhK.js} +10 -8
- package/dist/{am-UBTEdpJv.js → am-BvQDMy8e.js} +129 -881
- package/dist/antifraud/antifraud.es.js +5 -4
- package/dist/applyStudioConfig-DO18I6Cf.js +126 -0
- package/dist/{ar-AE--KjG2EAr.js → ar-AE-CmS-eCPq.js} +129 -881
- package/dist/{ar-RFuhholc.js → ar-Bpe0wGYL.js} +129 -881
- package/dist/{ar-EG-y8SWJjy1.js → ar-EG-DaxpzWwx.js} +129 -881
- package/dist/assertClassBrand-F6pL6aIr.js +17 -0
- package/dist/authentication/authentication.es.js +9 -6
- package/dist/autoFocusTitle-D_vDhPqZ.js +19 -0
- package/dist/{az-4Z0ZZq7T.js → az-zSRFEU_F.js} +129 -881
- package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-Bci98ivl.js} +1 -1
- package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DyPCItxn.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-BixkM88z.js → baseTutorial-Bktx_Yrr.js} +9 -7
- package/dist/{bn-CNhjOqja.js → bn-BrITyCOh.js} +129 -881
- package/dist/{bottomSheet-B4REej8W.js → bottomSheet-CzU1QNua.js} +3 -3
- package/dist/{bs-Culcuxab.js → bs-rdaEnpNo.js} +128 -880
- package/dist/{ca-h1xwo6CW.js → ca-BEtpN_ag.js} +128 -880
- package/dist/cameraOverlay-D6NPWfIT.js +2 -0
- package/dist/{cameraOverlayHeader-D4Bjr6Fw.js → cameraOverlayHeader-DZHCfN1x.js} +9 -8
- package/dist/{cameraView-BpdAdfIK.js → cameraView-CYd-_y_r.js} +13 -14
- package/dist/capture-BBQJgktJ.js +2 -0
- package/dist/{tutorial-HfSD-QZ3.js → capture-BstPDTgL.js} +226 -82
- package/dist/capture-CkvbPbJK.js +754 -0
- package/dist/capture-DiJGnu9z.js +3 -0
- package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
- package/dist/captureFocusContext-FsGun4Yd.js +718 -0
- package/dist/captureFooter-BLJ1Qvov.js +47 -0
- package/dist/{ceb-pTDH3h1x.js → ceb-D5rPC9mY.js} +129 -881
- package/dist/certificate-issuance/certificate-issuance.es.js +68 -41
- package/dist/certificate-issuance/styles.css +1 -1
- package/dist/certificate-issuance/styles.css.js +1 -1
- package/dist/{checkbox-CALR7EFM.js → checkbox-HfnbGBMk.js} +4 -4
- package/dist/chooser-Dm0wohHb.js +1517 -0
- package/dist/connectionError-BFVvBEMq.js +100 -0
- package/dist/consent/consent.es.js +19 -14
- package/dist/consent/styles.css +1 -1
- package/dist/consent/styles.css.js +1 -1
- package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-UXJ0maPk.js} +6 -0
- package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CjuXF_8C.js} +1 -1
- package/dist/{countrySelector-DKvvYxP6.js → countrySelector-CEJAgeRY.js} +6 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
- package/dist/{cs-CZ-CiATe8nW.js → cs-CZ-BEprNqLt.js} +128 -880
- package/dist/{cs-CrQuSSOI.js → cs-D_U436l9.js} +128 -880
- package/dist/curp-validation/curp-validation.es.js +97 -96
- package/dist/curp-validation/styles.css +1 -1
- package/dist/curp-validation/styles.css.js +1 -1
- package/dist/{customFields-DRwjotY-.js → customFields-DqebmaL5.js} +33 -20
- package/dist/{customWatchlist-DmROVUfp.js → customWatchlist-DVSMbzw5.js} +11 -9
- package/dist/{da-DK-CgrU79mp.js → da-DK-dMikXCNn.js} +128 -880
- package/dist/dashboardTheme-CB91NoiD.js +388 -0
- package/dist/{dateInputComposed-Bu7vM-M4.js → dateInputComposed-CVJ4LSep.js} +4 -5
- package/dist/dateInputComposed-DF0Dx86l.js +1 -0
- package/dist/{de-D0xnkswj.js → de-C3c7Bo-M.js} +128 -880
- package/dist/denied-BR9pZqKi.js +272 -0
- package/dist/devWarn-CXWsIkak.js +1034 -0
- package/dist/deviceWallet-DDHk7jBw.js +37 -0
- package/dist/{digitalIdRedirect-Dpv37Mbi.js → digitalIdRedirect-DKJgITR_.js} +4 -4
- package/dist/{digitalIdUpload-DKXe-_GE.js → digitalIdUpload-BgG6svjJ.js} +37 -15
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +1 -1
- package/dist/document-capture/styles.css.js +1 -1
- package/dist/{documentCapture-DlBMtLvL.js → documentCapture-Cu3F_ka7.js} +136 -72
- package/dist/documentCapture-owKpu8oI.js +2 -0
- package/dist/{dropdownComposed-B-qTBcja.js → dropdownComposed-BJCNWDGU.js} +8 -6
- package/dist/dropdownComposed-zidm_XVK.js +1 -0
- package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekyb/styles.css.js +1 -1
- package/dist/ekybModule-Qc_5cB3W.js +2 -0
- package/dist/{ekybModule-qkUiNFdJ.js → ekybModule-tV6tUWe_.js} +109 -89
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekyc/styles.css.js +1 -1
- package/dist/ekyc-prefill/ekyc-prefill.es.js +2 -0
- package/dist/ekyc-prefill/styles.css +2 -0
- package/dist/ekyc-prefill/styles.css.js +1 -0
- package/dist/ekycModule-BgB_xu54.js +789 -0
- package/dist/ekycModule-DZ7yboJO.js +2 -0
- package/dist/ekycPrefillModule-B0cJJiuu.js +2 -0
- package/dist/ekycPrefillModule-B1xn0veW.js +233 -0
- package/dist/{el-GR-DPUvlcvr.js → el-GR-eG5AImZr.js} +128 -880
- package/dist/{el-B5gLXHxC.js → el-LOaoXfUU.js} +129 -881
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-Jx8qWrW-.js → electronic-signature-BleJ65-Y.js} +55 -36
- package/dist/email/email.es.js +21 -16
- package/dist/{emailInput-ClX3Lu8X.js → emailInput-BVx96bJy.js} +23 -12
- package/dist/{en-DNuMvR7-.js → en-B_-7--AN.js} +129 -881
- package/dist/{en-DG-DOwBuCCl.js → en-DG-BDnlBAUl.js} +129 -881
- package/dist/{errorContent-B_pH1MX7.js → errorContent-x8IajOaE.js} +21 -20
- package/dist/errorParams-B68-Euu2.js +37 -0
- package/dist/es-419-DS4mN2d_.js +5 -0
- package/dist/{es-ES-BF9vl0Um.js → es-ES-BMafdM90.js} +128 -880
- package/dist/{es-MX-Brp4FXN8.js → es-MX-DqhG7Zy7.js} +128 -880
- package/dist/{es-DNl7ceDm.js → es-T4K5G5zB.js} +129 -881
- package/dist/{et-D5pPP4r0.js → et-fBoHBc5h.js} +129 -881
- package/dist/expiredId-Q5ITzZU-.js +67 -0
- package/dist/extensibility.es.js +382 -55
- package/dist/{fa-IR-BoyK-lax.js → fa-IR--PnMtKvC.js} +129 -881
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +1 -1
- package/dist/face-match/styles.css.js +1 -1
- package/dist/{faceMatch-Dp1AGBtg.js → faceMatch-D-ehWIdN.js} +54 -71
- package/dist/faceMatch-RxP2VPBm.js +2 -0
- package/dist/{fi-FI-mYdAUbtG.js → fi-FI-D-T9bf67.js} +128 -880
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-BhYiGx0t.js +2 -0
- package/dist/fieldComparison-c3xT3K4C.js +126 -0
- package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-yMZjXK6p.js} +3 -3
- package/dist/{finalSuccessScreen-BgPVGAr4.js → finalSuccessScreen-CDr8bsI6.js} +31 -22
- package/dist/fiscal-qr/fiscal-qr.es.js +32 -26
- package/dist/flipAnimation-C95PZFAJ.js +46 -0
- package/dist/flipCapturedCardEligibility-CcB0uVfH.js +210 -0
- package/dist/flow/flow.es.js +315 -287
- package/dist/flow/shell/styles.css +1 -1
- package/dist/flow/shell/styles.css.js +1 -1
- package/dist/flow/styles.css +1 -1
- package/dist/formField-Ba8BQ_l8.js +49 -0
- package/dist/{fr-B4R5fgnm.js → fr-BlNTqS4_.js} +128 -880
- package/dist/{fr-CA-DJSwRuWt.js → fr-CA-DBO_1sfd.js} +128 -880
- package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-LxyNVfjy.js} +1 -1
- package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-BKEg_DRs.js} +1 -1
- package/dist/geolocation/geolocation.es.js +15 -12
- package/dist/government-validation/government-validation.es.js +7 -6
- package/dist/{he-D2RDlnbd.js → he-C-PnifVg.js} +129 -881
- package/dist/helpButtonConfig-BFragC_J.js +24 -0
- package/dist/{hi-DFXhGN9O.js → hi-mETIwcDe.js} +129 -881
- package/dist/{hmn-BlNbfL-D.js → hmn-BZabGetu.js} +129 -881
- package/dist/{homeScreen-DjzxBrYL.js → homeScreen-CcRzcWya.js} +26 -14
- package/dist/{incodeComponent-B-lwJJCV.js → hooks-nmwpawA2.js} +256 -280
- package/dist/{hr-DArr3n62.js → hr-DzkTH3cj.js} +128 -880
- package/dist/{ht-CAd-Hmi1.js → ht-D5zV7ROu.js} +129 -881
- package/dist/{hu-CulT8eq_.js → hu-CeHrYR4q.js} +130 -882
- package/dist/{icons-C2LgNjXy.js → icons-DLZTxOV2.js} +153 -80
- package/dist/id/id.es.js +167 -197
- package/dist/id/styles.css +1 -1
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-D2VZL6b-.js → id-B_qFrh_W.js} +129 -881
- package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-BhF5T4fC.js} +1 -1
- package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BudLiGPR.js} +1 -1
- package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-CiGcJhVW.js} +1 -1
- package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-C_GyecLf.js} +1 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -11
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +12 -6
- package/dist/idFlipTransition-DuwSIp-D.js +154 -0
- package/dist/{idOcr-BWG3vj8j.js → idOcr-DatcQrFh.js} +64 -37
- package/dist/identity-reuse/identity-reuse.es.js +38 -25
- package/dist/identity-reuse/styles.css.js +1 -0
- package/dist/incodeComponent-DFue7FgD.js +235 -0
- package/dist/incodeModule-BWSWx6zz.js +41 -0
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-B35soRFg.js → inputComposed-6M3lOVUo.js} +4 -4
- package/dist/{it-fs9OkGbv.js → it-CwzQoTtJ.js} +130 -882
- package/dist/{ja-JP-C5-gDGuX.js → ja-JP-Cg6pV7OS.js} +130 -882
- package/dist/{ja-BvKVI6Oo.js → ja-eNtdzeB5.js} +129 -881
- package/dist/{jv-CyId7aPo.js → jv-BANHtRb4.js} +128 -880
- package/dist/{ka-pqIPc2el.js → ka-DWhlum5Q.js} +129 -881
- package/dist/{kk-DK7mWl6k.js → kk-CAsKyYR9.js} +128 -880
- package/dist/{km-BaJYdDrm.js → km-DJHdr0lO.js} +137 -889
- package/dist/{ko-CdYIGTH_.js → ko-BAPbgx_r.js} +129 -881
- package/dist/{ko-KP-Q3GGdDp3.js → ko-KP-BRD8crfV.js} +129 -881
- package/dist/{ky-Bc7ZXIXy.js → ky-0IKHwWw_.js} +128 -880
- package/dist/kyb-checks/kyb-checks.es.js +2 -0
- package/dist/kyb-checks/styles.css +2 -0
- package/dist/kyb-checks/styles.css.js +1 -0
- package/dist/kybChecksModule-CWFpU32e.js +345 -0
- package/dist/kybChecksModule-D3u3hdUP.js +2 -0
- package/dist/{lo-0jgAavCe.js → lo-DkBffqOP.js} +129 -881
- package/dist/{lt-DDEjR6RD.js → lt-Btf5JQPU.js} +129 -881
- package/dist/{lv-Ddzb_N3H.js → lv-DMnPY0bZ.js} +129 -881
- package/dist/{mandatoryConsent-C21a2d2-.js → mandatoryConsent-Ci6fJR2F.js} +23 -16
- package/dist/{manualCaptureButton-1KC7N_B-.js → manualCaptureButton-DrdeVhq8.js} +8 -7
- package/dist/{manualCaptureButton-C5VMDamt.js → manualCaptureButton-ZxWHf5Sa.js} +16 -12
- package/dist/{mk-SJwou4aX.js → mk-CQIDbtM2.js} +129 -881
- package/dist/{mn-7B86xjpb.js → mn-Cc1HnwyR.js} +128 -880
- package/dist/{ms-Bb-SlQCF.js → ms-CORA9eaw.js} +128 -880
- package/dist/{my-3ci4RJZY.js → my-CNDvlF-Z.js} +129 -881
- package/dist/{nb-NO-DpZAni0R.js → nb-NO-BwZ27fuH.js} +128 -880
- package/dist/{ne-Dncyvxqt.js → ne-D7rkhft1.js} +129 -881
- package/dist/{nl-C1mnzCBH.js → nl-DsxNMb79.js} +129 -881
- package/dist/{optionAccessibleLabel-DG8Lks9f.js → optionAccessibleLabel-Cz2x8Q7x.js} +27 -11
- package/dist/otpInput-B2fLiJsF.js +245 -0
- package/dist/{page-DINsqGIw.js → page-B0CjRMtF.js} +102 -79
- package/dist/{incode-logo-B1bl2S0z.js → pageUiConfig-mKn_YhhU.js} +88 -14
- package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Bn18pckF.js} +1 -1
- package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-D_bvTNZY.js} +1 -1
- package/dist/passwordRequirements-13qw_WSJ.js +49 -0
- package/dist/{pdf-BKHLi5Ac.js → pdf-DO_HvE8T.js} +2 -17
- package/dist/pdfViewer-CCHNUl5h.js +2 -0
- package/dist/{pdfViewer-C8xHykz1.js → pdfViewer-pgBIY_Q7.js} +11 -14
- package/dist/permissionInstructionList-DPDqNKFJ.js +43 -0
- package/dist/{permissions-B7-lHrFm.js → permissions-CKjgrM7q.js} +84 -53
- package/dist/phone/phone.es.js +16 -12
- package/dist/{phoneInputComposed-Di4acsc0.js → phoneInputComposed-BbZuW8Q8.js} +49 -12
- package/dist/{pl-CWr2fVBg.js → pl-DOgi6huc.js} +128 -880
- package/dist/preloadableLazy-KWGuHoqn.js +43 -0
- package/dist/{processing-z5wuXrKw.js → processing-v4EkL9-U.js} +2 -2
- package/dist/{progressBar-BcKFaXZR.js → progressBar-D-kfX8X1.js} +2 -2
- package/dist/{pt-BR-CMvTsOqE.js → pt-BR-x__xGSN_.js} +129 -881
- package/dist/{pt-AGz2XGAK.js → pt-CX0ngiGh.js} +129 -881
- package/dist/{pt-PT-KzIM0vpf.js → pt-PT-BKwyOX-W.js} +129 -881
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/realtimeFeedbackConfig-DeZksjlR.js +16 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +66 -62
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-FoirFu19.js} +1 -1
- package/dist/{resendTimer-On_zrMLS.js → resendTimer-DHgQUcAi.js} +2 -2
- package/dist/richText-DlHC_sMB.js +1761 -0
- package/dist/{ro-DYdJJDKn.js → ro-DGB5aI9B.js} +129 -881
- package/dist/{ru-C1cguVi2.js → ru-Dnl6YnE6.js} +129 -881
- package/dist/{ru-RU-18JeDfwz.js → ru-RU-BM5Leyxp.js} +128 -880
- package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-IfqLuP1N.js} +1 -1
- package/dist/selfie/selfie.es.js +37 -14
- package/dist/selfie/styles.css +1 -1
- package/dist/selfie/styles.css.js +1 -1
- package/dist/signature/signature.es.js +18 -13
- package/dist/{sk-CtIcnYOo.js → sk-B4HQZzV6.js} +131 -883
- package/dist/{sl-DS_Gc0Wc.js → sl-ClgVmZ1h.js} +129 -881
- package/dist/{smsTabContent-vE0WyKtg.js → smsTabContent-D9Eb005G.js} +40 -27
- package/dist/{so-dqMTkg5E.js → so-BLFIV5-m.js} +129 -881
- package/dist/spacer-D5j2phXI.js +1100 -0
- package/dist/spinner-BeYdZjPC.js +69 -0
- package/dist/{sr-DgHGiiWM.js → sr-CkSmwRiY.js} +128 -880
- package/dist/{sr-Latn-Du7_x_Tr.js → sr-Latn-BdLB-I3Z.js} +136 -888
- package/dist/sr-YU-DJ3geBJs.js +5 -0
- package/dist/{sv-SE-Dw61hRjx.js → sv-SE-DEfqYDzZ.js} +128 -880
- package/dist/{sw-De-Jo8XY.js → sw-16U52YpC.js} +129 -881
- package/dist/{th-BJixOgsM.js → th-Cg0hYujg.js} +129 -881
- package/dist/{th-TH-VyhljC5U.js → th-TH-BBPg926O.js} +129 -881
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-PH-D2S2Irx7.js → tl-PH-DSHq83jb.js} +129 -881
- package/dist/{tl-DhjdqhA4.js → tl-SL2bqb6j.js} +129 -881
- package/dist/{tr-BJAuvOwN.js → tr-DclJKp5i.js} +130 -882
- package/dist/{transitionSpinner-BZO916B1.js → transitionSpinner-b8SMrhfd.js} +7 -7
- package/dist/tutorial-0IhGg6rb.js +28 -0
- package/dist/types/ae-signature.d.ts +17 -4
- package/dist/types/antifraud.d.ts +17 -4
- package/dist/types/authentication.d.ts +17 -4
- package/dist/types/certificate-issuance.d.ts +17 -4
- package/dist/types/consent.d.ts +17 -4
- package/dist/types/cross-document-data-match.d.ts +17 -4
- package/dist/types/curp-validation.d.ts +17 -4
- package/dist/types/document-capture.d.ts +17 -4
- package/dist/types/dynamic-forms.d.ts +17 -4
- package/dist/types/ekyb.d.ts +17 -4
- package/dist/types/ekyc-prefill.d.ts +213 -0
- package/dist/types/ekyc.d.ts +17 -4
- package/dist/types/electronic-signature.d.ts +17 -4
- package/dist/types/email.d.ts +17 -4
- package/dist/types/extensibility.d.ts +204 -37
- package/dist/types/face-match.d.ts +17 -4
- package/dist/types/field-comparison.d.ts +17 -4
- package/dist/types/fiscal-qr.d.ts +17 -4
- package/dist/types/flow.d.ts +38 -5
- package/dist/types/geolocation.d.ts +17 -4
- package/dist/types/government-validation.d.ts +17 -4
- package/dist/types/id-selfie-flow.d.ts +17 -4
- package/dist/types/id-verification.d.ts +17 -4
- package/dist/types/id.d.ts +17 -4
- package/dist/types/identity-reuse.d.ts +18 -5
- package/dist/types/index.d.ts +92 -10
- package/dist/types/kyb-checks.d.ts +213 -0
- package/dist/types/phone.d.ts +17 -4
- package/dist/types/qe-signature.d.ts +17 -4
- package/dist/types/redirect-to-mobile.d.ts +1 -1
- package/dist/types/selfie.d.ts +17 -4
- package/dist/types/signature.d.ts +17 -4
- package/dist/types/video-selfie.d.ts +1 -1
- package/dist/types/watchlist.d.ts +17 -4
- package/dist/types/workflow.d.ts +17 -4
- package/dist/{typography-8iwtPQbj.js → typography-D3swFCxZ.js} +3 -11
- package/dist/{uk-CcU91ee-.js → uk-CfFK_Tnk.js} +128 -880
- package/dist/{uk-UA-BZR90qDZ.js → uk-UA-vkh8X4bX.js} +129 -881
- package/dist/{ur-CIXtUYHK.js → ur-32a-9tt8.js} +129 -881
- package/dist/useCameraPreview-hNLhri73.js +93 -0
- package/dist/useCaptureHelpButton-BJQvSkuJ.js +43 -0
- package/dist/useIsDarkTheme-DoOFy9TN.js +27 -0
- package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BCYS1xLP.js} +31 -18
- package/dist/{uz-CeLVgwAD.js → uz-BEx-De8I.js} +129 -881
- package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-CjnloSla.js} +147 -5
- package/dist/{verificationResult-C2gxbmAo.js → verificationResult-tHoFvrGZ.js} +30 -27
- package/dist/{vi-CgfGVVLY.js → vi-CMQXfqfw.js} +129 -881
- package/dist/video-selfie/styles.css +1 -1
- package/dist/video-selfie/styles.css.js +1 -1
- package/dist/video-selfie/video-selfie.es.js +120 -77
- package/dist/watchlist/watchlist.es.js +12 -9
- package/dist/{watchlistForBusiness-eOPtmu7z.js → watchlistForBusiness-CbRaBYoJ.js} +63 -22
- package/dist/{withEndScreenTexts-aFUEeBgM.js → withEndScreenTexts-10ck20tq.js} +253 -55
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +36 -28
- package/dist/{zh-CN-BOxod1_T.js → zh-CN-BelxA_Rf.js} +128 -880
- package/dist/{zh-HANT-zAahQ8nP.js → zh-HANT-DsztptZA.js} +129 -881
- package/dist/{zh-TW-B0v7GYYG.js → zh-TW-DKQC3FXd.js} +129 -881
- package/dist/{zh-B-kjeCig.js → zh-v3x4XYal.js} +128 -880
- package/package.json +48 -12
- package/dist/autoFocusTitle-Cy0J3lvr.js +0 -32
- package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
- package/dist/cameraOverlay-DQEG24io.js +0 -2
- package/dist/check-icon-BpjpKqhJ.js +0 -48
- package/dist/connectionError-Cf6iGFyx.js +0 -45
- package/dist/dashboardTheme-CkyISqIs.js +0 -247
- package/dist/dateInputComposed-cgZGBSiu.js +0 -1
- package/dist/denied-ByGDWkTW.js +0 -1871
- package/dist/deviceWallet-C4UT05wN.js +0 -66
- package/dist/documentCapture-Dh1ftzGG.js +0 -2
- package/dist/dropdownComposed-DmT4s8VM.js +0 -1
- package/dist/ekybModule-BHInfPHS.js +0 -2
- package/dist/ekycModule-B2cfT3zi.js +0 -2
- package/dist/ekycModule-BQPl1KQT.js +0 -300
- package/dist/es-419-BU7r2Fvh.js +0 -3193
- package/dist/esm-15CISqPe.js +0 -430
- package/dist/expiredId-GIHjGAuY.js +0 -80
- package/dist/faceMatch-bXhejzhf.js +0 -2
- package/dist/fieldComparison-BirXQb7f.js +0 -2
- package/dist/fieldComparison-D8PL0eR1.js +0 -109
- package/dist/flipAnimation-BgMPQ8Ma.js +0 -3048
- package/dist/formField-0k8wVfXl.js +0 -60
- package/dist/incodeModule-DiVtqekm.js +0 -68
- package/dist/inputComposed-CKujYUSB.js +0 -1
- package/dist/numberedStep-CvbL3ht2.js +0 -13
- package/dist/otpInput-_B7xEZUU.js +0 -157
- package/dist/passwordInputComposed-B3WKjODU.js +0 -74
- package/dist/pdfViewer-DcB41xr7.js +0 -2
- package/dist/radioGroupComposed-CIbHjX4v.js +0 -160
- package/dist/radioGroupComposed-eXNWg1ez.js +0 -1
- package/dist/reload-icon-elAFo9-k.js +0 -70
- package/dist/richText-aCnLd3j2.js +0 -1549
- package/dist/spacer-lcnhSC-5.js +0 -741
- package/dist/spinner-B8BswhBb.js +0 -88
- package/dist/sr-YU-YuZu7wdb.js +0 -3197
- package/dist/statusPage-WIsGgf_m.js +0 -36
- package/dist/uiConfig-CwGL3QjP.js +0 -2589
- package/dist/useCaptureHelpButton-BTUZs3Ev.js +0 -86
- package/dist/useCoverMedia-VLw3OYN_.js +0 -149
- /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
- /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
- /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
- /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
- /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-B4FQTz14.js} +0 -0
- /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
- /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
- /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
- /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
- /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
- /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
- /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-Bam05Bc9.js} +0 -0
- /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
- /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-D0hm-8jN.js} +0 -0
- /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-B3TEaluh.js} +0 -0
- /package/dist/{purify.es-0fCPkEV1.js → purify.es-DhY3JLdI.js} +0 -0
- /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
package/dist/flow/flow.es.js
CHANGED
|
@@ -1,14 +1,163 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
8
|
-
import { a as
|
|
9
|
-
import { i as
|
|
1
|
+
import { h as readStoredLanguage, r as setThemeUiConfig, u as useTranslation } from "../devWarn-CXWsIkak.js";
|
|
2
|
+
import { C as Q, b as y, f as T, h as d, l as z, o as P, p as _, u as A, x as u, y as x } from "../vendor-preact-CjnloSla.js";
|
|
3
|
+
import { n as StatusPage } from "../connectionError-BFVvBEMq.js";
|
|
4
|
+
import { b as withSessionExpiry, i as TerminalErrorPage, m as useIsBrowserSupported, n as ResolvedConfigProvider, y as useManager } from "../hooks-nmwpawA2.js";
|
|
5
|
+
import { t as TransitionSpinner } from "../transitionSpinner-b8SMrhfd.js";
|
|
6
|
+
import { r as BrowserNotSupported, t as IncodeComponent } from "../incodeComponent-DFue7FgD.js";
|
|
7
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-BWSWx6zz.js";
|
|
8
|
+
import { _ as resolveSessionLanguage, a as isHandoffLinkRejection, c as createFlowManager, d as preloadFirstModule, f as preloadHomeScreen, h as loadFlowStyles, i as UnsupportedModule, l as fetchTheme, m as warmupWasmIfNeeded, n as resolveApiKey, o as HEADLESS_FLOW_MODULE_KEYS, r as extractIncodeStatus, s as LAZY_UI_MODULES, t as withEndScreenTexts, u as initializeFlowManager } from "../withEndScreenTexts-10ck20tq.js";
|
|
9
|
+
import { i as usePrefetchNextModules, n as useModuleLoader, r as useModulePreloader } from "../useModuleLoader-BCYS1xLP.js";
|
|
10
10
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
11
11
|
import { getNextRequiredWasmPipelines } from "@incodetech/core/flow";
|
|
12
|
+
//#region src/modules/flow/flowTransition.tsx
|
|
13
|
+
/** Longest a frozen screen stays up; a longer wait shows its own loader. */
|
|
14
|
+
var HOLD_LIMIT_MS = 1500;
|
|
15
|
+
/** Fade-through, as in flowShell.css: out first, then in, so texts never overlap. */
|
|
16
|
+
var FADE_OUT_MS = 90;
|
|
17
|
+
var ENTERING_MS = 300;
|
|
18
|
+
var FlowStageContext = Q({ current: void 0 });
|
|
19
|
+
/**
|
|
20
|
+
* Tells `FlowTransition` which part of the flow is on screen (`home`,
|
|
21
|
+
* `step-2`, `loading`…). A loader inside the same stage (an upload) is the
|
|
22
|
+
* module's own feedback and is not held behind the previous screen.
|
|
23
|
+
*/
|
|
24
|
+
function useReportFlowStage(stage) {
|
|
25
|
+
x(FlowStageContext).current = stage;
|
|
26
|
+
}
|
|
27
|
+
function isBlank(root) {
|
|
28
|
+
return (root.textContent ?? "").trim() === "" && root.querySelector("img, svg, video, canvas") === null;
|
|
29
|
+
}
|
|
30
|
+
/** A screen: anything but nothing or a full-screen loader. */
|
|
31
|
+
function showsScreen(root) {
|
|
32
|
+
return !isBlank(root) && !root.querySelector(".IncodeSpinnerFullScreen");
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Rebuilds what a commit just removed (a screen, or a loader that would
|
|
36
|
+
* otherwise give way to a blank), inside shallow copies of its old parents, so
|
|
37
|
+
* the same selectors style it. HTML ids are dropped: the live screen may reuse
|
|
38
|
+
* them. SVG ids stay: clip paths, masks and gradients (the footer logo, every
|
|
39
|
+
* Lottie) point at them with `url(#…)`.
|
|
40
|
+
*/
|
|
41
|
+
function buildFrame(records, stage) {
|
|
42
|
+
for (const record of records) {
|
|
43
|
+
if (record.target !== stage && !stage.contains(record.target)) continue;
|
|
44
|
+
const removed = [...record.removedNodes].find((node) => node instanceof Element && !node.isConnected && !isBlank(node));
|
|
45
|
+
if (!removed) continue;
|
|
46
|
+
let frame = removed;
|
|
47
|
+
for (let parent = record.target; parent !== stage; parent = parent.parentElement) {
|
|
48
|
+
const copy = parent.cloneNode(false);
|
|
49
|
+
copy.appendChild(frame);
|
|
50
|
+
frame = copy;
|
|
51
|
+
}
|
|
52
|
+
for (const element of [frame, ...frame.querySelectorAll("[id]")]) if (!(element instanceof SVGElement)) element.removeAttribute("id");
|
|
53
|
+
return frame;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Module changes without a blank or loader flash: the outgoing screen stays up,
|
|
58
|
+
* frozen, until the next one has something to show (its data, its code), then
|
|
59
|
+
* the two crossfade. Like a Suspense transition, for screens that have already
|
|
60
|
+
* unmounted.
|
|
61
|
+
*/
|
|
62
|
+
var FlowTransition = ({ children }) => {
|
|
63
|
+
const stageKey = A(void 0);
|
|
64
|
+
const stageRef = A(null);
|
|
65
|
+
const ghostRef = A(null);
|
|
66
|
+
_(() => {
|
|
67
|
+
const stage = stageRef.current;
|
|
68
|
+
const ghost = ghostRef.current;
|
|
69
|
+
if (!stage || !ghost) return;
|
|
70
|
+
ghost.inert = true;
|
|
71
|
+
let screenStage = showsScreen(stage) ? stageKey.current : void 0;
|
|
72
|
+
let holdTimer;
|
|
73
|
+
const timers = /* @__PURE__ */ new Set();
|
|
74
|
+
const later = (run, ms) => {
|
|
75
|
+
const timer = setTimeout(() => {
|
|
76
|
+
timers.delete(timer);
|
|
77
|
+
run();
|
|
78
|
+
}, ms);
|
|
79
|
+
timers.add(timer);
|
|
80
|
+
};
|
|
81
|
+
const release = () => {
|
|
82
|
+
clearTimeout(holdTimer);
|
|
83
|
+
holdTimer = void 0;
|
|
84
|
+
const leaving = [...ghost.children];
|
|
85
|
+
stage.classList.remove("IncodeFlowTransitionStage--held");
|
|
86
|
+
if (leaving.length === 0) return;
|
|
87
|
+
for (const frame of leaving) {
|
|
88
|
+
frame.classList.add("IncodeFlowTransitionFrame--leaving");
|
|
89
|
+
later(() => frame.remove(), FADE_OUT_MS);
|
|
90
|
+
}
|
|
91
|
+
stage.classList.add("IncodeFlowTransitionStage--entering");
|
|
92
|
+
later(() => stage.classList.remove("IncodeFlowTransitionStage--entering"), ENTERING_MS);
|
|
93
|
+
};
|
|
94
|
+
const scrollOffsets = /* @__PURE__ */ new WeakMap();
|
|
95
|
+
const recordScroll = (event) => {
|
|
96
|
+
if (event.target instanceof Element) scrollOffsets.set(event.target, event.target.scrollTop);
|
|
97
|
+
};
|
|
98
|
+
stage.addEventListener("scroll", recordScroll, {
|
|
99
|
+
capture: true,
|
|
100
|
+
passive: true
|
|
101
|
+
});
|
|
102
|
+
const showFrame = (frame) => {
|
|
103
|
+
ghost.replaceChildren(frame);
|
|
104
|
+
for (const element of [frame, ...frame.querySelectorAll("*")]) {
|
|
105
|
+
const offset = scrollOffsets.get(element);
|
|
106
|
+
if (offset) element.scrollTop = offset;
|
|
107
|
+
}
|
|
108
|
+
for (const animation of frame.getAnimations?.({ subtree: true }) ?? []) if (animation.effect?.getComputedTiming().iterations !== Infinity) animation.finish();
|
|
109
|
+
};
|
|
110
|
+
const hold = (frame) => {
|
|
111
|
+
showFrame(frame);
|
|
112
|
+
stage.classList.add("IncodeFlowTransitionStage--held");
|
|
113
|
+
holdTimer = setTimeout(release, HOLD_LIMIT_MS);
|
|
114
|
+
};
|
|
115
|
+
const observer = new MutationObserver((records) => {
|
|
116
|
+
const holding = ghost.childElementCount > 0 && holdTimer !== void 0;
|
|
117
|
+
const changedStage = stageKey.current !== screenStage;
|
|
118
|
+
if (showsScreen(stage)) {
|
|
119
|
+
if (changedStage && !holding) {
|
|
120
|
+
const frame = buildFrame(records, stage);
|
|
121
|
+
if (frame) showFrame(frame);
|
|
122
|
+
}
|
|
123
|
+
screenStage = stageKey.current;
|
|
124
|
+
release();
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (holding) return;
|
|
128
|
+
if (!!stage.querySelector(".IncodeSpinnerFullScreen") && !changedStage) return;
|
|
129
|
+
const frame = buildFrame(records, stage);
|
|
130
|
+
if (frame) hold(frame);
|
|
131
|
+
});
|
|
132
|
+
observer.observe(stage, {
|
|
133
|
+
childList: true,
|
|
134
|
+
subtree: true,
|
|
135
|
+
characterData: true
|
|
136
|
+
});
|
|
137
|
+
return () => {
|
|
138
|
+
observer.disconnect();
|
|
139
|
+
stage.removeEventListener("scroll", recordScroll, { capture: true });
|
|
140
|
+
clearTimeout(holdTimer);
|
|
141
|
+
for (const timer of timers) clearTimeout(timer);
|
|
142
|
+
};
|
|
143
|
+
}, []);
|
|
144
|
+
return /* @__PURE__ */ u(FlowStageContext.Provider, {
|
|
145
|
+
value: stageKey,
|
|
146
|
+
children: /* @__PURE__ */ u("div", {
|
|
147
|
+
class: "IncodeFlowTransition",
|
|
148
|
+
children: [/* @__PURE__ */ u("div", {
|
|
149
|
+
ref: stageRef,
|
|
150
|
+
class: "IncodeFlowTransitionStage",
|
|
151
|
+
children
|
|
152
|
+
}), /* @__PURE__ */ u("div", {
|
|
153
|
+
ref: ghostRef,
|
|
154
|
+
class: "IncodeFlowTransitionGhost",
|
|
155
|
+
"aria-hidden": "true"
|
|
156
|
+
})]
|
|
157
|
+
})
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
//#endregion
|
|
12
161
|
//#region src/shared/processing/useDelayedFlag.ts
|
|
13
162
|
/**
|
|
14
163
|
* Returns `true` only once `isTrue` has stayed `true` continuously for
|
|
@@ -55,6 +204,15 @@ function createModuleErrorHandler(flowManager, fallbackMessage) {
|
|
|
55
204
|
flowManager.errorModule(error ?? fallbackMessage, moduleErrorCode);
|
|
56
205
|
};
|
|
57
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Pass a module's error straight to the host `onError` with all its arguments.
|
|
209
|
+
* `fallbackMessage` fills in a missing message.
|
|
210
|
+
*/
|
|
211
|
+
function forwardModuleError(onError, fallbackMessage) {
|
|
212
|
+
return (error, errorCode, moduleErrorCode) => {
|
|
213
|
+
onError?.(error ?? fallbackMessage, errorCode, moduleErrorCode);
|
|
214
|
+
};
|
|
215
|
+
}
|
|
58
216
|
//#endregion
|
|
59
217
|
//#region src/modules/flow/sessionFinishedPage.tsx
|
|
60
218
|
var SessionFinishedPage = () => {
|
|
@@ -63,7 +221,10 @@ var SessionFinishedPage = () => {
|
|
|
63
221
|
const subtitle = t("onboarding.errors.sessionFinished.message");
|
|
64
222
|
return /* @__PURE__ */ u(StatusPage, {
|
|
65
223
|
variant: "error",
|
|
66
|
-
icon:
|
|
224
|
+
icon: {
|
|
225
|
+
type: "status",
|
|
226
|
+
status: "error"
|
|
227
|
+
},
|
|
67
228
|
title: t("onboarding.errors.sessionFinished.title"),
|
|
68
229
|
subtitle: subtitle || void 0
|
|
69
230
|
});
|
|
@@ -138,10 +299,11 @@ function preloadIncodeFlow(config) {
|
|
|
138
299
|
const managerReady = initializeFlowManager({
|
|
139
300
|
token: config.token,
|
|
140
301
|
lang: config.lang,
|
|
302
|
+
wasmConfig: config.wasmConfig,
|
|
141
303
|
flowManager
|
|
142
304
|
});
|
|
143
305
|
managerReady.catch(() => void 0);
|
|
144
|
-
const themePromise = config.disableDashboardTheme ? Promise.resolve(
|
|
306
|
+
const themePromise = config.disableDashboardTheme ? Promise.resolve() : fetchTheme(config.token).then((result) => {
|
|
145
307
|
state.theme = result.theme;
|
|
146
308
|
state.uiConfig = result.uiConfig;
|
|
147
309
|
});
|
|
@@ -150,8 +312,11 @@ function preloadIncodeFlow(config) {
|
|
|
150
312
|
preloadFirstModule(managerState);
|
|
151
313
|
state.unsubscribe?.();
|
|
152
314
|
state.unsubscribe = void 0;
|
|
153
|
-
|
|
154
|
-
|
|
315
|
+
themePromise.then(() => {
|
|
316
|
+
if (preloadCache.get(token) !== state) return;
|
|
317
|
+
state.status = "ready";
|
|
318
|
+
state.readyResolve();
|
|
319
|
+
}, () => void 0);
|
|
155
320
|
} else if (managerState.status === "error") {
|
|
156
321
|
state.unsubscribe?.();
|
|
157
322
|
state.unsubscribe = void 0;
|
|
@@ -238,7 +403,10 @@ function useFlowInitialization(options) {
|
|
|
238
403
|
authHint: options.authHint,
|
|
239
404
|
lang: options.lang,
|
|
240
405
|
enableHome: options.enableHome,
|
|
241
|
-
useCPF: options.useCPF
|
|
406
|
+
useCPF: options.useCPF,
|
|
407
|
+
modulesConfig: options.modulesConfig,
|
|
408
|
+
injectCss: options.injectCss,
|
|
409
|
+
cssNonce: options.cssNonce
|
|
242
410
|
});
|
|
243
411
|
flowManagerRef.current = flowManager;
|
|
244
412
|
if (preloaded?.status === "error") return {
|
|
@@ -252,7 +420,8 @@ function useFlowInitialization(options) {
|
|
|
252
420
|
flowManager
|
|
253
421
|
};
|
|
254
422
|
});
|
|
255
|
-
const
|
|
423
|
+
const initAbortRef = A(null);
|
|
424
|
+
y(() => () => initAbortRef.current?.abort(), []);
|
|
256
425
|
y(() => {
|
|
257
426
|
if (state.status !== "initializing") return;
|
|
258
427
|
const preloaded = token ? getPreloadedData(token) : null;
|
|
@@ -287,9 +456,9 @@ function useFlowInitialization(options) {
|
|
|
287
456
|
cancelled = true;
|
|
288
457
|
};
|
|
289
458
|
}
|
|
290
|
-
if (
|
|
291
|
-
initStartedRef.current = true;
|
|
459
|
+
if (initAbortRef.current) return;
|
|
292
460
|
const abortController = new AbortController();
|
|
461
|
+
initAbortRef.current = abortController;
|
|
293
462
|
const { signal } = abortController;
|
|
294
463
|
const initialize = async () => {
|
|
295
464
|
try {
|
|
@@ -310,6 +479,7 @@ function useFlowInitialization(options) {
|
|
|
310
479
|
const activation = initializeFlowManager({
|
|
311
480
|
token: resolvedToken,
|
|
312
481
|
lang,
|
|
482
|
+
wasmConfig: options.wasmConfig,
|
|
313
483
|
flowManager: state.flowManager
|
|
314
484
|
});
|
|
315
485
|
activation.catch(() => void 0);
|
|
@@ -342,7 +512,6 @@ function useFlowInitialization(options) {
|
|
|
342
512
|
}
|
|
343
513
|
};
|
|
344
514
|
initialize();
|
|
345
|
-
return () => abortController.abort();
|
|
346
515
|
}, [
|
|
347
516
|
token,
|
|
348
517
|
lang,
|
|
@@ -356,156 +525,6 @@ function useFlowInitialization(options) {
|
|
|
356
525
|
return state;
|
|
357
526
|
}
|
|
358
527
|
//#endregion
|
|
359
|
-
//#region src/modules/flow/loadFlowStylesheets.ts
|
|
360
|
-
var loads = /* @__PURE__ */ new WeakMap();
|
|
361
|
-
/** Keep module sheets after base.css, in CSS import order rather than fetch order. */
|
|
362
|
-
function loadFlowStylesheet(load, order, nonce) {
|
|
363
|
-
let documentLoads = loads.get(document);
|
|
364
|
-
if (!documentLoads) {
|
|
365
|
-
documentLoads = /* @__PURE__ */ new Map();
|
|
366
|
-
loads.set(document, documentLoads);
|
|
367
|
-
}
|
|
368
|
-
const cached = documentLoads.get(load);
|
|
369
|
-
if (cached) return cached;
|
|
370
|
-
const promise = load().then(({ default: css }) => {
|
|
371
|
-
const style = document.createElement("style");
|
|
372
|
-
style.dataset.incodeFlowCss = String(order);
|
|
373
|
-
if (nonce) style.nonce = nonce;
|
|
374
|
-
style.textContent = css;
|
|
375
|
-
const owned = Array.from(document.head.querySelectorAll("style[data-incode-flow-css]"));
|
|
376
|
-
const next = owned.find((sheet) => Number(sheet.dataset.incodeFlowCss) > order);
|
|
377
|
-
const last = owned[owned.length - 1];
|
|
378
|
-
document.head.insertBefore(style, next ?? (last ? last.nextSibling : null));
|
|
379
|
-
if (!style.sheet) {
|
|
380
|
-
style.remove();
|
|
381
|
-
throw new Error("Flow stylesheet blocked; check the Content Security Policy and cssNonce");
|
|
382
|
-
}
|
|
383
|
-
}).catch((error) => {
|
|
384
|
-
documentLoads.delete(load);
|
|
385
|
-
throw error;
|
|
386
|
-
});
|
|
387
|
-
documentLoads.set(load, promise);
|
|
388
|
-
return promise;
|
|
389
|
-
}
|
|
390
|
-
//#endregion
|
|
391
|
-
//#region src/modules/flow/flowStyles.ts
|
|
392
|
-
var shell = () => import("./shell/styles.css.js");
|
|
393
|
-
var moduleSheets = [
|
|
394
|
-
{
|
|
395
|
-
keys: [
|
|
396
|
-
"SELFIE",
|
|
397
|
-
"AUTHENTICATION",
|
|
398
|
-
"VIDEO_ONBOARDING"
|
|
399
|
-
],
|
|
400
|
-
load: () => import("../selfie/styles.css.js")
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
keys: ["PHONE"],
|
|
404
|
-
load: () => import("../phone/styles.css.js")
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
keys: ["EMAIL", "DYNAMIC_FORMS"],
|
|
408
|
-
load: () => import("../email/styles.css.js")
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
keys: ["FACE_MATCH"],
|
|
412
|
-
load: () => import("../face-match/styles.css.js")
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
keys: ["GOVT_VALIDATION_PROVISIONING", "INE_VALIDATION"],
|
|
416
|
-
load: () => import("../government-validation/styles.css.js")
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
keys: [
|
|
420
|
-
"ID",
|
|
421
|
-
"ID_CAPTURE",
|
|
422
|
-
"TUTORIAL_ID",
|
|
423
|
-
"SECOND_ID",
|
|
424
|
-
"VIDEO_ONBOARDING"
|
|
425
|
-
],
|
|
426
|
-
load: () => import("../id/styles.css.js")
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
keys: ["ID_OCR"],
|
|
430
|
-
load: () => import("../id-ocr/styles.css.js")
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
keys: ["DOCUMENT_CAPTURE", "ADDRESS"],
|
|
434
|
-
load: () => import("../document-capture/styles.css.js")
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
keys: ["CURP_VALIDATION"],
|
|
438
|
-
load: () => import("../curp-validation/styles.css.js")
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
keys: ["GEOLOCATION"],
|
|
442
|
-
load: () => import("../geolocation/styles.css.js")
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
keys: ["EXTERNAL_VERIFICATION"],
|
|
446
|
-
load: () => import("../ekyc/styles.css.js")
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
keys: ["EKYB"],
|
|
450
|
-
load: () => import("../ekyb/styles.css.js")
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
keys: ["REDIRECT_TO_MOBILE"],
|
|
454
|
-
load: () => import("../redirect-to-mobile/styles.css.js")
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
keys: [
|
|
458
|
-
"COMBINED_CONSENT",
|
|
459
|
-
"MANDATORY_CONSENT",
|
|
460
|
-
"ML_CONSENT"
|
|
461
|
-
],
|
|
462
|
-
load: () => import("../consent/styles.css.js")
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
keys: ["CUSTOM_FIELDS"],
|
|
466
|
-
load: () => import("../custom-fields/styles.css.js")
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
keys: ["DYNAMIC_FORMS"],
|
|
470
|
-
load: () => import("../dynamic-forms/styles.css.js")
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
keys: ["SIGNATURE"],
|
|
474
|
-
load: () => import("../signature/styles.css.js")
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
keys: ["FIELD_COMPARISON"],
|
|
478
|
-
load: () => import("../field-comparison/styles.css.js")
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
keys: ["WATCHLIST_BUSINESS"],
|
|
482
|
-
load: () => import("../watchlist-for-business/styles.css.js")
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
keys: ["AE_SIGNATURE", "QE_SIGNATURE"],
|
|
486
|
-
load: () => import("../electronic-signature/styles.css.js")
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
keys: ["CERTIFICATE_ISSUANCE"],
|
|
490
|
-
load: () => import("../certificate-issuance/styles.css.js")
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
keys: ["FISCAL_QR"],
|
|
494
|
-
load: () => import("../fiscal-qr/styles.css.js")
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
keys: ["VIDEO_ONBOARDING"],
|
|
498
|
-
load: () => import("../video-selfie/styles.css.js")
|
|
499
|
-
}
|
|
500
|
-
];
|
|
501
|
-
async function loadFlowStyles(moduleKey, nonce) {
|
|
502
|
-
const pending = [loadFlowStylesheet(shell, moduleSheets.length, nonce)];
|
|
503
|
-
if (moduleKey) moduleSheets.forEach((sheet, index) => {
|
|
504
|
-
if (sheet.keys.includes(moduleKey)) pending.push(loadFlowStylesheet(sheet.load, index, nonce));
|
|
505
|
-
});
|
|
506
|
-
await Promise.all(pending);
|
|
507
|
-
}
|
|
508
|
-
//#endregion
|
|
509
528
|
//#region src/modules/flow/useFlowStyles.ts
|
|
510
529
|
function useFlowStyles(enabled, onError, nonce) {
|
|
511
530
|
const [loaded, setLoaded] = d(false);
|
|
@@ -534,7 +553,14 @@ function useFlowStyles(enabled, onError, nonce) {
|
|
|
534
553
|
}
|
|
535
554
|
//#endregion
|
|
536
555
|
//#region src/modules/flow/flow.tsx
|
|
537
|
-
|
|
556
|
+
/**
|
|
557
|
+
* A flow the SDK can't run fails the same way on every reload, so its error
|
|
558
|
+
* page offers no "Try again": the integrator has to fix the flow.
|
|
559
|
+
*/
|
|
560
|
+
function isMisconfiguredFlow(moduleErrorCode) {
|
|
561
|
+
return moduleErrorCode === "IDENTITY_REUSE_FLOW_MISCONFIGURED";
|
|
562
|
+
}
|
|
563
|
+
var LazyHomeScreen = z(() => import("../homeScreen-CcRzcWya.js").then((module) => ({ default: module.HomeScreen })));
|
|
538
564
|
var IncodeFlowInitialization = ({ config, onFinish, onError, stylesReady }) => {
|
|
539
565
|
const { i18n } = useTranslation();
|
|
540
566
|
const initialSessionLanguage = A(isSelfLoadingFlowConfig(config) ? resolveSessionLanguage(config.lang, i18n.language, readStoredLanguage()) : config.lang).current;
|
|
@@ -553,37 +579,40 @@ var IncodeFlowInitialization = ({ config, onFinish, onError, stylesReady }) => {
|
|
|
553
579
|
return flowManager.subscribeFlowEvent(config.onFlowEvent);
|
|
554
580
|
}, [flowManager, config.onFlowEvent]);
|
|
555
581
|
if (!stylesReady) return null;
|
|
556
|
-
return /* @__PURE__ */ u(IncodeFlowContent, {
|
|
582
|
+
return /* @__PURE__ */ u(FlowTransition, { children: /* @__PURE__ */ u(IncodeFlowContent, {
|
|
557
583
|
config,
|
|
558
584
|
onFinish,
|
|
559
585
|
onError,
|
|
560
586
|
initState,
|
|
561
587
|
flowState,
|
|
562
588
|
flowManager
|
|
563
|
-
});
|
|
589
|
+
}) });
|
|
564
590
|
};
|
|
565
591
|
var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flowManager }) => {
|
|
566
|
-
const { i18n } = useTranslation();
|
|
592
|
+
const { i18n, ready: translationsReady } = useTranslation();
|
|
567
593
|
const browser = useIsBrowserSupported();
|
|
568
594
|
const flowDisablesBrowserScreen = "flow" in flowState ? flowState.flow.disableUnsupportedBrowserScreen === true : void 0;
|
|
569
595
|
const lazyModuleKey = flowState.presentation.lazyModuleKey;
|
|
570
596
|
const currentModuleKey = flowState.status === "ready" ? flowState.currentStep : void 0;
|
|
597
|
+
const modules = T(() => config.injectCss ? Object.fromEntries(Object.entries(LAZY_UI_MODULES).map(([key, load]) => [key, () => Promise.all([load(), loadFlowStyles(key, config.cssNonce)]).then(([Component]) => Component)])) : LAZY_UI_MODULES, [config.injectCss, config.cssNonce]);
|
|
571
598
|
const moduleLoaderState = useModuleLoader({
|
|
572
599
|
moduleKey: lazyModuleKey,
|
|
573
|
-
modules
|
|
600
|
+
modules,
|
|
574
601
|
onModuleLoading: config.onModuleLoading,
|
|
575
602
|
onModuleLoaded: config.onModuleLoaded,
|
|
576
603
|
onError
|
|
577
604
|
});
|
|
578
605
|
useModulePreloader({
|
|
579
606
|
moduleKey: flowState.status === "ready" && flowState.homeScreen.visible ? currentModuleKey : void 0,
|
|
580
|
-
modules
|
|
607
|
+
modules
|
|
581
608
|
});
|
|
582
609
|
const currentModuleLoaded = moduleLoaderState.status === "loaded";
|
|
583
610
|
const showHomeLoadingScreen = config.enableHome === true && flowState.status === "ready" && flowState.flow.disableLaunchScreen !== true && flowState.currentStepIndex === 0 && flowState.currentStep !== "REDIRECT_TO_MOBILE" && flowState.homeScreen.visible === false && moduleLoaderState.status === "loading";
|
|
584
611
|
const isAwaitingReadyDelayed = useDelayedFlag(flowState.presentation.isAwaitingReady === true, 150);
|
|
585
612
|
const isModuleLoadingDelayed = useDelayedFlag(flowState.status === "ready" && (moduleLoaderState.status === "idle" || moduleLoaderState.status === "loading" || moduleLoaderState.status === "error"), 150);
|
|
586
|
-
|
|
613
|
+
const isHeadlessStep = flowState.status === "ready" && flowState.currentStep !== void 0 && HEADLESS_FLOW_MODULE_KEYS.has(flowState.currentStep);
|
|
614
|
+
const isHeadlessStepDelayed = useDelayedFlag(isHeadlessStep, 150);
|
|
615
|
+
usePrefetchNextModules(flowState.presentation.prefetchModuleKeys, modules, currentModuleLoaded || isHeadlessStep && flowState.currentStep === "IDENTITY_SEARCH");
|
|
587
616
|
y(() => {
|
|
588
617
|
if (flowState.presentation.shouldPrefetchHome) preloadHomeScreen();
|
|
589
618
|
}, [flowState.presentation.shouldPrefetchHome]);
|
|
@@ -592,13 +621,14 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
592
621
|
if (config.lang && i18n.language !== config.lang) i18n.changeLanguage(config.lang);
|
|
593
622
|
}, [config.lang, i18n]);
|
|
594
623
|
const showHome = flowState.homeScreen.visible || showHomeLoadingScreen;
|
|
624
|
+
useReportFlowStage(showHome ? "home" : flowState.status === "ready" ? `step-${flowState.currentStepIndex}` : flowState.status);
|
|
595
625
|
const canWarmup = !flowState.homeScreen.visible || flowState.homeScreen.isContinueLoading;
|
|
596
626
|
const [, refreshWasmStatus] = d(0);
|
|
597
627
|
const pipelineKey = flowState.status === "ready" ? getNextRequiredWasmPipelines(flowState).join(",") : "";
|
|
598
628
|
const onWasmWarmup = A(config.onWasmWarmup);
|
|
599
629
|
onWasmWarmup.current = config.onWasmWarmup;
|
|
600
630
|
y(() => {
|
|
601
|
-
if (!canWarmup || !pipelineKey) return;
|
|
631
|
+
if (!canWarmup || !pipelineKey || config.wasmConfig === false) return;
|
|
602
632
|
let cancelled = false;
|
|
603
633
|
const pipelines = pipelineKey.split(",");
|
|
604
634
|
onWasmWarmup.current?.(pipelines);
|
|
@@ -621,7 +651,12 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
621
651
|
if (flowState?.status === "finished") {
|
|
622
652
|
terminalFiredRef.current = true;
|
|
623
653
|
const finishStatus = withEndScreenTexts(flowState.finishStatus, flowManager.getEndScreenTexts());
|
|
624
|
-
queueMicrotask(() => onFinish(finishStatus
|
|
654
|
+
queueMicrotask(() => onFinish(finishStatus, {
|
|
655
|
+
sdkOwnsTerminalScreen: false,
|
|
656
|
+
oauth2Secured: flowState.flow.oauth2Secured === true,
|
|
657
|
+
...flowState.flow.redirectOriginOnly !== void 0 ? { redirectOriginOnly: flowState.flow.redirectOriginOnly } : {},
|
|
658
|
+
...flowState.completedOnMobile ? { completedOnMobile: true } : {}
|
|
659
|
+
}));
|
|
625
660
|
return;
|
|
626
661
|
}
|
|
627
662
|
if (flowState?.status === "error" && onError) {
|
|
@@ -644,14 +679,28 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
644
679
|
class: "IncodeFlow",
|
|
645
680
|
children: /* @__PURE__ */ u(SessionFinishedPage, {})
|
|
646
681
|
});
|
|
647
|
-
if (initState.status === "error")
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
682
|
+
if (initState.status === "error") {
|
|
683
|
+
const loadErrorCode = flowState.status === "error" ? flowState.moduleErrorCode : void 0;
|
|
684
|
+
return /* @__PURE__ */ u("div", {
|
|
685
|
+
class: "IncodeFlow",
|
|
686
|
+
children: /* @__PURE__ */ u(TerminalErrorPage, {
|
|
687
|
+
message: initState.error,
|
|
688
|
+
moduleErrorCode: loadErrorCode,
|
|
689
|
+
retryable: !isHandoffLinkRejection(initState.errorCode) && !isMisconfiguredFlow(loadErrorCode)
|
|
690
|
+
})
|
|
691
|
+
});
|
|
692
|
+
}
|
|
651
693
|
if (!browser.isSupported && flowDisablesBrowserScreen === false) return /* @__PURE__ */ u("div", {
|
|
652
694
|
class: "IncodeFlow",
|
|
653
695
|
children: /* @__PURE__ */ u(BrowserNotSupported, { onContinue: browser.continueAnyway })
|
|
654
696
|
});
|
|
697
|
+
if (initState.status === "initializing" || !translationsReady) return /* @__PURE__ */ u("div", {
|
|
698
|
+
class: "IncodeFlow",
|
|
699
|
+
children: /* @__PURE__ */ u(TransitionSpinner, {
|
|
700
|
+
spinnerConfig: config.spinnerConfig,
|
|
701
|
+
renderMode: spinnerRenderMode
|
|
702
|
+
})
|
|
703
|
+
});
|
|
655
704
|
if (showHome) return /* @__PURE__ */ u("div", {
|
|
656
705
|
class: "IncodeFlow",
|
|
657
706
|
children: /* @__PURE__ */ u(P, {
|
|
@@ -662,13 +711,6 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
662
711
|
})
|
|
663
712
|
})
|
|
664
713
|
});
|
|
665
|
-
if (initState.status === "initializing") return /* @__PURE__ */ u("div", {
|
|
666
|
-
class: "IncodeFlow",
|
|
667
|
-
children: /* @__PURE__ */ u(TransitionSpinner, {
|
|
668
|
-
spinnerConfig: config.spinnerConfig,
|
|
669
|
-
renderMode: spinnerRenderMode
|
|
670
|
-
})
|
|
671
|
-
});
|
|
672
714
|
if (flowState.presentation.isAwaitingReady) {
|
|
673
715
|
if (!isAwaitingReadyDelayed) return /* @__PURE__ */ u("div", { class: "IncodeFlow" });
|
|
674
716
|
return /* @__PURE__ */ u("div", {
|
|
@@ -681,7 +723,11 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
681
723
|
}
|
|
682
724
|
if (flowState.status === "error") return /* @__PURE__ */ u("div", {
|
|
683
725
|
class: "IncodeFlow",
|
|
684
|
-
children: /* @__PURE__ */ u(TerminalErrorPage, {
|
|
726
|
+
children: /* @__PURE__ */ u(TerminalErrorPage, {
|
|
727
|
+
message: flowState.error,
|
|
728
|
+
moduleErrorCode: flowState.moduleErrorCode,
|
|
729
|
+
retryable: !isMisconfiguredFlow(flowState.moduleErrorCode)
|
|
730
|
+
})
|
|
685
731
|
});
|
|
686
732
|
if (flowState.status === "completing") return /* @__PURE__ */ u("div", {
|
|
687
733
|
class: "IncodeFlow",
|
|
@@ -698,7 +744,17 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
698
744
|
renderMode: spinnerRenderMode
|
|
699
745
|
})
|
|
700
746
|
});
|
|
701
|
-
if (HEADLESS_FLOW_MODULE_KEYS.has(currentStep))
|
|
747
|
+
if (HEADLESS_FLOW_MODULE_KEYS.has(currentStep)) {
|
|
748
|
+
if (!isHeadlessStepDelayed) return /* @__PURE__ */ u("div", { class: "IncodeFlow" });
|
|
749
|
+
return /* @__PURE__ */ u("div", {
|
|
750
|
+
class: "IncodeFlow",
|
|
751
|
+
children: /* @__PURE__ */ u(TransitionSpinner, {
|
|
752
|
+
spinnerConfig: config.spinnerConfig,
|
|
753
|
+
renderMode: spinnerRenderMode,
|
|
754
|
+
accessibleNameKey: "loadingCircle.holdOn"
|
|
755
|
+
})
|
|
756
|
+
});
|
|
757
|
+
}
|
|
702
758
|
if (moduleLoaderState.status === "unsupported") return /* @__PURE__ */ u("div", {
|
|
703
759
|
class: "IncodeFlow",
|
|
704
760
|
children: /* @__PURE__ */ u(UnsupportedModule, {
|
|
@@ -739,9 +795,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
739
795
|
children: /* @__PURE__ */ u(Component, {
|
|
740
796
|
config: flowConfig,
|
|
741
797
|
onFinish: () => flowManager.completeModule(),
|
|
742
|
-
onError: (error)
|
|
743
|
-
onError?.(error ?? "Selfie verification error");
|
|
744
|
-
}
|
|
798
|
+
onError: createModuleErrorHandler(flowManager, "Selfie verification error")
|
|
745
799
|
}, `selfie-${flowState.currentStepIndex}`)
|
|
746
800
|
});
|
|
747
801
|
if (currentStep === "VIDEO_ONBOARDING") return /* @__PURE__ */ u("div", {
|
|
@@ -768,9 +822,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
768
822
|
children: /* @__PURE__ */ u(Component, {
|
|
769
823
|
config: flowConfig,
|
|
770
824
|
onFinish: () => flowManager.completeModule(),
|
|
771
|
-
onError: (error)
|
|
772
|
-
onError?.(error ?? "Phone verification error");
|
|
773
|
-
}
|
|
825
|
+
onError: forwardModuleError(onError, "Phone verification error")
|
|
774
826
|
}, `phone-${flowState.currentStepIndex}`)
|
|
775
827
|
});
|
|
776
828
|
if (currentStep === "EMAIL") {
|
|
@@ -784,9 +836,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
784
836
|
children: /* @__PURE__ */ u(Component, {
|
|
785
837
|
config: emailConfig,
|
|
786
838
|
onFinish: () => flowManager.completeModule(),
|
|
787
|
-
onError: (error)
|
|
788
|
-
onError?.(error ?? "Email verification error");
|
|
789
|
-
}
|
|
839
|
+
onError: forwardModuleError(onError, "Email verification error")
|
|
790
840
|
}, `email-${flowState.currentStepIndex}`)
|
|
791
841
|
});
|
|
792
842
|
}
|
|
@@ -803,48 +853,50 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
803
853
|
digitalIdReturnUrl: config.digitalIdReturnUrl
|
|
804
854
|
},
|
|
805
855
|
onFinish: (output) => flowManager.completeModule(output),
|
|
806
|
-
onError: (error)
|
|
807
|
-
onError?.(error ?? "ID capture error");
|
|
808
|
-
}
|
|
856
|
+
onError: forwardModuleError(onError, "ID capture error")
|
|
809
857
|
}, `id-${flowState.currentStepIndex}`)
|
|
810
858
|
});
|
|
811
859
|
}
|
|
812
|
-
if (currentStep === "ID_OCR") {
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
onFinish: () => flowManager.completeModule(),
|
|
824
|
-
onError: (error) => {
|
|
825
|
-
onError?.(error ?? "ID OCR error");
|
|
826
|
-
}
|
|
827
|
-
}, `id-ocr-${flowState.currentStepIndex}`)
|
|
828
|
-
});
|
|
829
|
-
}
|
|
860
|
+
if (currentStep === "ID_OCR") return /* @__PURE__ */ u("div", {
|
|
861
|
+
class: "IncodeFlow",
|
|
862
|
+
children: /* @__PURE__ */ u(Component, {
|
|
863
|
+
config: {
|
|
864
|
+
...flowConfig,
|
|
865
|
+
flowId
|
|
866
|
+
},
|
|
867
|
+
onFinish: () => flowManager.completeModule(),
|
|
868
|
+
onError: forwardModuleError(onError, "ID OCR error")
|
|
869
|
+
}, `id-ocr-${flowState.currentStepIndex}`)
|
|
870
|
+
});
|
|
830
871
|
if (currentStep === "FACE_MATCH") return /* @__PURE__ */ u("div", {
|
|
831
872
|
class: "IncodeFlow",
|
|
832
873
|
children: /* @__PURE__ */ u(Component, {
|
|
833
874
|
config: flowConfig,
|
|
834
875
|
onFinish: () => flowManager.completeModule(),
|
|
835
|
-
onError: (error)
|
|
836
|
-
onError?.(error ?? "Face match error");
|
|
837
|
-
}
|
|
876
|
+
onError: forwardModuleError(onError, "Face match error")
|
|
838
877
|
}, `face-match-${flowState.currentStepIndex}`)
|
|
839
878
|
});
|
|
879
|
+
if (currentStep === "IDENTITY_REUSE") return /* @__PURE__ */ u("div", {
|
|
880
|
+
class: "IncodeFlow",
|
|
881
|
+
children: /* @__PURE__ */ u(Component, {
|
|
882
|
+
config: flowConfig,
|
|
883
|
+
onFinish: (output) => flowManager.completeModule(output),
|
|
884
|
+
onError: forwardModuleError(onError, "Identity reuse error")
|
|
885
|
+
}, `identity-reuse-${flowState.currentStepIndex}`)
|
|
886
|
+
});
|
|
887
|
+
if (currentStep === "ID_VALIDATION") return /* @__PURE__ */ u("div", {
|
|
888
|
+
class: "IncodeFlow",
|
|
889
|
+
children: /* @__PURE__ */ u(Component, {
|
|
890
|
+
config: flowConfig,
|
|
891
|
+
onFinish: () => flowManager.completeModule()
|
|
892
|
+
}, `id-validation-${flowState.currentStepIndex}`)
|
|
893
|
+
});
|
|
840
894
|
if (currentStep === "CURP_VALIDATION") return /* @__PURE__ */ u("div", {
|
|
841
895
|
class: "IncodeFlow",
|
|
842
896
|
children: /* @__PURE__ */ u(Component, {
|
|
843
897
|
config: flowConfig,
|
|
844
898
|
onFinish: () => flowManager.completeModule(),
|
|
845
|
-
onError: (error)
|
|
846
|
-
onError?.(error ?? "CURP validation error");
|
|
847
|
-
}
|
|
899
|
+
onError: forwardModuleError(onError, "CURP validation error")
|
|
848
900
|
}, `curp-validation-${flowState.currentStepIndex}`)
|
|
849
901
|
});
|
|
850
902
|
if (currentStep === "GOVT_VALIDATION_PROVISIONING") return /* @__PURE__ */ u("div", {
|
|
@@ -852,9 +904,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
852
904
|
children: /* @__PURE__ */ u(Component, {
|
|
853
905
|
config: flowConfig,
|
|
854
906
|
onFinish: () => flowManager.completeModule(),
|
|
855
|
-
onError: (error)
|
|
856
|
-
onError?.(error ?? "Government validation error");
|
|
857
|
-
}
|
|
907
|
+
onError: forwardModuleError(onError, "Government validation error")
|
|
858
908
|
}, `govt-validation-${flowState.currentStepIndex}`)
|
|
859
909
|
});
|
|
860
910
|
if (currentStep === "INE_VALIDATION") return /* @__PURE__ */ u("div", {
|
|
@@ -862,9 +912,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
862
912
|
children: /* @__PURE__ */ u(Component, {
|
|
863
913
|
config: flowConfig,
|
|
864
914
|
onFinish: () => flowManager.completeModule(),
|
|
865
|
-
onError: (error)
|
|
866
|
-
onError?.(error ?? "INE validation error");
|
|
867
|
-
}
|
|
915
|
+
onError: forwardModuleError(onError, "INE validation error")
|
|
868
916
|
}, `ine-validation-${flowState.currentStepIndex}`)
|
|
869
917
|
});
|
|
870
918
|
if (currentStep === "GEOLOCATION") return /* @__PURE__ */ u("div", {
|
|
@@ -872,9 +920,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
872
920
|
children: /* @__PURE__ */ u(Component, {
|
|
873
921
|
config: flowConfig,
|
|
874
922
|
onFinish: () => flowManager.completeModule(),
|
|
875
|
-
onError: (error)
|
|
876
|
-
onError?.(error ?? "Geolocation error");
|
|
877
|
-
}
|
|
923
|
+
onError: forwardModuleError(onError, "Geolocation error")
|
|
878
924
|
}, `geolocation-${flowState.currentStepIndex}`)
|
|
879
925
|
});
|
|
880
926
|
if (currentStep === "EXTERNAL_VERIFICATION") return /* @__PURE__ */ u("div", {
|
|
@@ -882,9 +928,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
882
928
|
children: /* @__PURE__ */ u(Component, {
|
|
883
929
|
config: { flowId: flowState.flow.flowId },
|
|
884
930
|
onFinish: () => flowManager.completeModule(),
|
|
885
|
-
onError: (error)
|
|
886
|
-
onError?.(error ?? "External verification error");
|
|
887
|
-
}
|
|
931
|
+
onError: forwardModuleError(onError, "External verification error")
|
|
888
932
|
}, `ekyc-${flowState.currentStepIndex}`)
|
|
889
933
|
});
|
|
890
934
|
if (currentStep === "DOCUMENT_CAPTURE") return /* @__PURE__ */ u("div", {
|
|
@@ -892,9 +936,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
892
936
|
children: /* @__PURE__ */ u(Component, {
|
|
893
937
|
config: flowConfig,
|
|
894
938
|
onFinish: () => flowManager.completeModule(),
|
|
895
|
-
onError: (error)
|
|
896
|
-
onError?.(error ?? "Document capture error");
|
|
897
|
-
}
|
|
939
|
+
onError: forwardModuleError(onError, "Document capture error")
|
|
898
940
|
}, `document-capture-${flowState.currentStepIndex}`)
|
|
899
941
|
});
|
|
900
942
|
if (currentStep === "ADDRESS") return /* @__PURE__ */ u("div", {
|
|
@@ -905,9 +947,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
905
947
|
processingType: "addressStatement"
|
|
906
948
|
},
|
|
907
949
|
onFinish: () => flowManager.completeModule(),
|
|
908
|
-
onError: (error)
|
|
909
|
-
onError?.(error ?? "Address capture error");
|
|
910
|
-
}
|
|
950
|
+
onError: forwardModuleError(onError, "Address capture error")
|
|
911
951
|
}, `address-${flowState.currentStepIndex}`)
|
|
912
952
|
});
|
|
913
953
|
if (currentStep === "SIGNATURE") return /* @__PURE__ */ u("div", {
|
|
@@ -915,9 +955,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
915
955
|
children: /* @__PURE__ */ u(Component, {
|
|
916
956
|
config: flowConfig,
|
|
917
957
|
onFinish: () => flowManager.completeModule(),
|
|
918
|
-
onError: (error)
|
|
919
|
-
onError?.(error ?? "Signature capture error");
|
|
920
|
-
}
|
|
958
|
+
onError: forwardModuleError(onError, "Signature capture error")
|
|
921
959
|
}, `signature-${flowState.currentStepIndex}`)
|
|
922
960
|
});
|
|
923
961
|
if (currentStep === "EKYB") {
|
|
@@ -933,20 +971,31 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
933
971
|
checkUniqueBeneficialOwner: ekybFlowConfig.checkUniqueBeneficialOwner
|
|
934
972
|
},
|
|
935
973
|
onFinish: () => flowManager.completeModule(),
|
|
936
|
-
onError: (error)
|
|
937
|
-
onError?.(error ?? "eKYB verification error");
|
|
938
|
-
}
|
|
974
|
+
onError: forwardModuleError(onError, "eKYB verification error")
|
|
939
975
|
}, `ekyb-${flowState.currentStepIndex}`)
|
|
940
976
|
});
|
|
941
977
|
}
|
|
978
|
+
if (currentStep === "EKYB_CHECKS") return /* @__PURE__ */ u("div", {
|
|
979
|
+
class: "IncodeFlow",
|
|
980
|
+
children: /* @__PURE__ */ u(Component, {
|
|
981
|
+
config: flowConfig,
|
|
982
|
+
onFinish: () => flowManager.completeModule(),
|
|
983
|
+
onError: forwardModuleError(onError, "KYB checks error")
|
|
984
|
+
}, `kyb-checks-${flowState.currentStepIndex}`)
|
|
985
|
+
});
|
|
986
|
+
if (currentStep === "EKYC_PREFILL") return /* @__PURE__ */ u("div", {
|
|
987
|
+
class: "IncodeFlow",
|
|
988
|
+
children: /* @__PURE__ */ u(Component, {
|
|
989
|
+
config: flowConfig,
|
|
990
|
+
onFinish: () => flowManager.completeModule()
|
|
991
|
+
}, `ekyc-prefill-${flowState.currentStepIndex}`)
|
|
992
|
+
});
|
|
942
993
|
if (currentStep === "COMBINED_CONSENT") return /* @__PURE__ */ u("div", {
|
|
943
994
|
class: "IncodeFlow",
|
|
944
995
|
children: /* @__PURE__ */ u(Component, {
|
|
945
996
|
config: flowConfig,
|
|
946
997
|
onFinish: () => flowManager.completeModule(),
|
|
947
|
-
onError: (error)
|
|
948
|
-
onError?.(error ?? "Combined consent error");
|
|
949
|
-
}
|
|
998
|
+
onError: createModuleErrorHandler(flowManager, "Combined consent error")
|
|
950
999
|
}, `combined-consent-${flowState.currentStepIndex}`)
|
|
951
1000
|
});
|
|
952
1001
|
if (currentStep === "MANDATORY_CONSENT" || currentStep === "ML_CONSENT") {
|
|
@@ -977,9 +1026,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
977
1026
|
language: i18n.language
|
|
978
1027
|
},
|
|
979
1028
|
onFinish: () => flowManager.completeModule(),
|
|
980
|
-
onError: (
|
|
981
|
-
onError?.(error ?? `${label.toUpperCase()} Signature error`);
|
|
982
|
-
}
|
|
1029
|
+
onError: forwardModuleError(onError, `${label.toUpperCase()} Signature error`)
|
|
983
1030
|
}, `${label}-signature-${flowState.currentStepIndex}`)
|
|
984
1031
|
});
|
|
985
1032
|
}
|
|
@@ -987,9 +1034,7 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
987
1034
|
class: "IncodeFlow",
|
|
988
1035
|
children: /* @__PURE__ */ u(Component, {
|
|
989
1036
|
onFinish: () => flowManager.completeModule(),
|
|
990
|
-
onError: (error)
|
|
991
|
-
onError?.(error ?? "Antifraud check error");
|
|
992
|
-
}
|
|
1037
|
+
onError: forwardModuleError(onError, "Antifraud check error")
|
|
993
1038
|
}, `antifraud-${flowState.currentStepIndex}`)
|
|
994
1039
|
});
|
|
995
1040
|
if (currentStep === "CUSTOM_FIELDS") return /* @__PURE__ */ u("div", {
|
|
@@ -997,27 +1042,22 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
997
1042
|
children: /* @__PURE__ */ u(Component, {
|
|
998
1043
|
config: flowConfig,
|
|
999
1044
|
onFinish: () => flowManager.completeModule(),
|
|
1000
|
-
onError: (error)
|
|
1001
|
-
onError?.(error ?? "Custom fields error");
|
|
1002
|
-
}
|
|
1045
|
+
onError: forwardModuleError(onError, "Custom fields error")
|
|
1003
1046
|
}, `custom-fields-${flowState.currentStepIndex}`)
|
|
1004
1047
|
});
|
|
1005
1048
|
if (currentStep === "WATCHLIST") return /* @__PURE__ */ u("div", {
|
|
1006
1049
|
class: "IncodeFlow",
|
|
1007
1050
|
children: /* @__PURE__ */ u(Component, {
|
|
1008
1051
|
onFinish: () => flowManager.completeModule(),
|
|
1009
|
-
onError: (error)
|
|
1010
|
-
onError?.(error ?? "Watchlist check error");
|
|
1011
|
-
}
|
|
1052
|
+
onError: forwardModuleError(onError, "Watchlist check error")
|
|
1012
1053
|
}, `watchlist-${flowState.currentStepIndex}`)
|
|
1013
1054
|
});
|
|
1014
1055
|
if (currentStep === "WATCHLIST_BUSINESS") return /* @__PURE__ */ u("div", {
|
|
1015
1056
|
class: "IncodeFlow",
|
|
1016
1057
|
children: /* @__PURE__ */ u(Component, {
|
|
1058
|
+
config: flowConfig,
|
|
1017
1059
|
onFinish: () => flowManager.completeModule(),
|
|
1018
|
-
onError: (error)
|
|
1019
|
-
onError?.(error ?? "Watchlist for business check error");
|
|
1020
|
-
}
|
|
1060
|
+
onError: forwardModuleError(onError, "Watchlist for business check error")
|
|
1021
1061
|
}, `watchlist-for-business-${flowState.currentStepIndex}`)
|
|
1022
1062
|
});
|
|
1023
1063
|
if (currentStep === "INCODE_WATCHLIST") return /* @__PURE__ */ u("div", {
|
|
@@ -1025,18 +1065,14 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
1025
1065
|
children: /* @__PURE__ */ u(Component, {
|
|
1026
1066
|
config: flowConfig,
|
|
1027
1067
|
onFinish: () => flowManager.completeModule(),
|
|
1028
|
-
onError: (error)
|
|
1029
|
-
onError?.(error ?? "Custom watchlist check error");
|
|
1030
|
-
}
|
|
1068
|
+
onError: forwardModuleError(onError, "Custom watchlist check error")
|
|
1031
1069
|
}, `incode-watchlist-${flowState.currentStepIndex}`)
|
|
1032
1070
|
});
|
|
1033
1071
|
if (currentStep === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ u("div", {
|
|
1034
1072
|
class: "IncodeFlow",
|
|
1035
1073
|
children: /* @__PURE__ */ u(Component, {
|
|
1036
1074
|
onFinish: () => flowManager.completeModule(),
|
|
1037
|
-
onError: (error)
|
|
1038
|
-
onError?.(error ?? "Cross document data match error");
|
|
1039
|
-
}
|
|
1075
|
+
onError: forwardModuleError(onError, "Cross document data match error")
|
|
1040
1076
|
}, `cross-document-data-match-${flowState.currentStepIndex}`)
|
|
1041
1077
|
});
|
|
1042
1078
|
if (currentStep === "CERTIFICATE_ISSUANCE") return /* @__PURE__ */ u("div", {
|
|
@@ -1044,18 +1080,14 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
1044
1080
|
children: /* @__PURE__ */ u(Component, {
|
|
1045
1081
|
config: flowConfig,
|
|
1046
1082
|
onFinish: () => flowManager.completeModule(),
|
|
1047
|
-
onError: (error)
|
|
1048
|
-
onError?.(error ?? "Certificate issuance error");
|
|
1049
|
-
}
|
|
1083
|
+
onError: forwardModuleError(onError, "Certificate issuance error")
|
|
1050
1084
|
}, `certificate-issuance-${flowState.currentStepIndex}`)
|
|
1051
1085
|
});
|
|
1052
1086
|
if (currentStep === "FIELD_COMPARISON") return /* @__PURE__ */ u("div", {
|
|
1053
1087
|
class: "IncodeFlow",
|
|
1054
1088
|
children: /* @__PURE__ */ u(Component, {
|
|
1055
1089
|
onFinish: () => flowManager.completeModule(),
|
|
1056
|
-
onError: (error)
|
|
1057
|
-
onError?.(error ?? "Field comparison error");
|
|
1058
|
-
}
|
|
1090
|
+
onError: forwardModuleError(onError, "Field comparison error")
|
|
1059
1091
|
}, `field-comparison-${flowState.currentStepIndex}`)
|
|
1060
1092
|
});
|
|
1061
1093
|
if (currentStep === "DYNAMIC_FORMS") return /* @__PURE__ */ u("div", {
|
|
@@ -1080,18 +1112,14 @@ var IncodeFlowContent = ({ config, onFinish, onError, initState, flowState, flow
|
|
|
1080
1112
|
prefillValue: config.loginHintPrefill
|
|
1081
1113
|
},
|
|
1082
1114
|
onFinish: () => flowManager.completeModule(),
|
|
1083
|
-
onError: (error)
|
|
1084
|
-
onError?.(error ?? "Dynamic forms error");
|
|
1085
|
-
}
|
|
1115
|
+
onError: forwardModuleError(onError, "Dynamic forms error")
|
|
1086
1116
|
}, `dynamic-forms-${flowState.currentStepIndex}`)
|
|
1087
1117
|
});
|
|
1088
1118
|
if (currentStep === "FISCAL_QR") return /* @__PURE__ */ u("div", {
|
|
1089
1119
|
class: "IncodeFlow",
|
|
1090
1120
|
children: /* @__PURE__ */ u(Component, {
|
|
1091
1121
|
onFinish: () => flowManager.completeModule(),
|
|
1092
|
-
onError: (error)
|
|
1093
|
-
onError?.(error ?? "Fiscal QR error");
|
|
1094
|
-
}
|
|
1122
|
+
onError: forwardModuleError(onError, "Fiscal QR error")
|
|
1095
1123
|
}, `fiscal-qr-${flowState.currentStepIndex}`)
|
|
1096
1124
|
});
|
|
1097
1125
|
}
|
|
@@ -1113,7 +1141,7 @@ var IncodeFlowContentRoot = ({ config, onFinish = () => {}, onError }) => {
|
|
|
1113
1141
|
}) }) : null
|
|
1114
1142
|
});
|
|
1115
1143
|
};
|
|
1116
|
-
var IncodeFlow = withSessionExpiry(IncodeFlowContentRoot);
|
|
1144
|
+
var IncodeFlow = withSessionExpiry(IncodeFlowContentRoot, { keepMountedOffline: true });
|
|
1117
1145
|
registerIncodeModuleElement(IncodeFlow, "incode-flow");
|
|
1118
1146
|
//#endregion
|
|
1119
1147
|
export { IncodeFlow, preloadIncodeFlow };
|