@incodetech/web 2.4.1-agentic.9 → 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/dist/{GeolocationPermissionDenied-Bl0ESi9x.js → GeolocationPermissionDenied-DRRBxdLP.js} +5 -5
- 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-BtuHt1ef.js → af-ZA-CtJyXRHO.js} +11 -27
- package/dist/{ageVerification-JN9VvXwE.js → ageVerification-C6fgHkhK.js} +5 -5
- package/dist/{am-l8nD7Xzz.js → am-BvQDMy8e.js} +11 -27
- package/dist/antifraud/antifraud.es.js +5 -5
- package/dist/{applyStudioConfig-B64x1L-J.js → applyStudioConfig-DO18I6Cf.js} +2 -2
- package/dist/{ar-AE-CO4WaEdG.js → ar-AE-CmS-eCPq.js} +11 -27
- package/dist/{ar-DsKx-YwP.js → ar-Bpe0wGYL.js} +11 -27
- package/dist/{ar-EG-CgYEh6do.js → ar-EG-DaxpzWwx.js} +11 -27
- package/dist/authentication/authentication.es.js +9 -8
- package/dist/{autoFocusTitle-MePwRIrH.js → autoFocusTitle-D_vDhPqZ.js} +2 -2
- package/dist/{az-DTmme8ut.js → az-zSRFEU_F.js} +11 -27
- package/dist/{back-horizontal-hint-yueBylfH.js → back-horizontal-hint-Bci98ivl.js} +1 -1
- package/dist/{back-vertical-hint-NzFSG2Bh.js → back-vertical-hint-DyPCItxn.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-BYTLqczq.js → baseTutorial-Bktx_Yrr.js} +4 -4
- package/dist/{bn-CvF9FlWn.js → bn-BrITyCOh.js} +11 -27
- package/dist/{bottomSheet-BbgC68Rm.js → bottomSheet-CzU1QNua.js} +3 -3
- package/dist/{bs-DE7QTPiz.js → bs-rdaEnpNo.js} +11 -27
- package/dist/{ca-B2IOmHal.js → ca-BEtpN_ag.js} +11 -27
- package/dist/cameraOverlay-D6NPWfIT.js +2 -0
- package/dist/{cameraOverlayHeader-DKPegKOB.js → cameraOverlayHeader-DZHCfN1x.js} +5 -5
- package/dist/{cameraView-B9ulYDlK.js → cameraView-CYd-_y_r.js} +3 -3
- package/dist/capture-BBQJgktJ.js +2 -0
- package/dist/{capture-BfiBco34.js → capture-BstPDTgL.js} +10 -10
- package/dist/{capture-Ofbv-y4C.js → capture-CkvbPbJK.js} +21 -21
- package/dist/capture-DiJGnu9z.js +3 -0
- package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
- package/dist/{captureFocusContext-CbhM0Rak.js → captureFocusContext-FsGun4Yd.js} +11 -11
- package/dist/{captureFooter-CyQw85c9.js → captureFooter-BLJ1Qvov.js} +5 -5
- package/dist/{ceb-DMyDJibH.js → ceb-D5rPC9mY.js} +11 -27
- package/dist/certificate-issuance/certificate-issuance.es.js +40 -29
- package/dist/{checkbox-COiob4-f.js → checkbox-HfnbGBMk.js} +4 -4
- package/dist/{chooser-CMZn17HH.js → chooser-Dm0wohHb.js} +12 -12
- package/dist/{connectionError-DQc99Xwr.js → connectionError-BFVvBEMq.js} +5 -5
- package/dist/consent/consent.es.js +11 -11
- package/dist/{countryDefinitions-YYJL8AKj.js → countryDefinitions-UXJ0maPk.js} +6 -0
- package/dist/{countryFlag-mUH97k33.js → countryFlag-CjuXF_8C.js} +1 -1
- package/dist/{countrySelector-Clj3rtbE.js → countrySelector-CEJAgeRY.js} +4 -4
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -5
- package/dist/{cs-CZ-BoJHPkXg.js → cs-CZ-BEprNqLt.js} +11 -27
- package/dist/{cs-C6BvjMnL.js → cs-D_U436l9.js} +11 -27
- package/dist/curp-validation/curp-validation.es.js +42 -28
- package/dist/{customFields-CTQsIMU8.js → customFields-DqebmaL5.js} +24 -18
- package/dist/{customWatchlist-BGVgykZy.js → customWatchlist-DVSMbzw5.js} +6 -6
- package/dist/{da-DK-BgryIABe.js → da-DK-dMikXCNn.js} +11 -27
- package/dist/{dashboardTheme-DmmLPc5-.js → dashboardTheme-CB91NoiD.js} +24 -19
- package/dist/{dateInputComposed-BAglkb04.js → dateInputComposed-CVJ4LSep.js} +4 -5
- package/dist/dateInputComposed-DF0Dx86l.js +1 -0
- package/dist/{de-CmigCxj3.js → de-C3c7Bo-M.js} +11 -27
- package/dist/{denied-B-Sa9xtg.js → denied-BR9pZqKi.js} +7 -7
- package/dist/{devWarn-Cus67U3P.js → devWarn-CXWsIkak.js} +86 -108
- package/dist/{deviceWallet-BC90NDd9.js → deviceWallet-DDHk7jBw.js} +4 -4
- package/dist/{digitalIdRedirect-C849eRWw.js → digitalIdRedirect-DKJgITR_.js} +4 -4
- package/dist/{digitalIdUpload-7IBs1xuH.js → digitalIdUpload-BgG6svjJ.js} +7 -7
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/{documentCapture-Dg6F5vPo.js → documentCapture-Cu3F_ka7.js} +23 -22
- package/dist/documentCapture-owKpu8oI.js +2 -0
- package/dist/{dropdownComposed-B-jwhIk3.js → dropdownComposed-BJCNWDGU.js} +4 -4
- package/dist/dropdownComposed-zidm_XVK.js +1 -0
- package/dist/dynamic-forms/dynamic-forms.es.js +57 -35
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-Qc_5cB3W.js +2 -0
- package/dist/{ekybModule-CXckmono.js → ekybModule-tV6tUWe_.js} +101 -86
- 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 +1 -1
- 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-Dvb4nz8D.js → ekycPrefillModule-B1xn0veW.js} +96 -69
- package/dist/{el-GR-DEVeeY1N.js → el-GR-eG5AImZr.js} +11 -27
- package/dist/{el-C504mByE.js → el-LOaoXfUU.js} +11 -27
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-DdTsRO4E.js → electronic-signature-BleJ65-Y.js} +12 -12
- package/dist/email/email.es.js +10 -10
- package/dist/{emailInput-BhovfkJr.js → emailInput-BVx96bJy.js} +23 -12
- package/dist/{en-CjGMhH0a.js → en-B_-7--AN.js} +11 -27
- package/dist/{en-DG-D0uJ-8uf.js → en-DG-BDnlBAUl.js} +11 -27
- package/dist/{errorContent-Do4AkQxk.js → errorContent-x8IajOaE.js} +6 -6
- package/dist/{errorParams-BsjlLhGl.js → errorParams-B68-Euu2.js} +1 -1
- package/dist/{es-419-Dj2u3lIS.js → es-419-DS4mN2d_.js} +1 -1
- package/dist/{es-ES-BFt41nFI.js → es-ES-BMafdM90.js} +11 -27
- package/dist/{es-MX-B_Wc9vvS.js → es-MX-DqhG7Zy7.js} +11 -27
- package/dist/{es-CceiWbcv.js → es-T4K5G5zB.js} +12 -28
- package/dist/{et-Bj_x5sOU.js → et-fBoHBc5h.js} +11 -27
- package/dist/{expiredId-CMUoX-P0.js → expiredId-Q5ITzZU-.js} +6 -6
- package/dist/extensibility.es.js +328 -45
- package/dist/{fa-IR-BN0UsB54.js → fa-IR--PnMtKvC.js} +11 -27
- 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-D0OyUbR5.js → faceMatch-D-ehWIdN.js} +40 -28
- package/dist/faceMatch-RxP2VPBm.js +2 -0
- package/dist/{fi-FI-XID8T9Ko.js → fi-FI-D-T9bf67.js} +11 -27
- 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-C0ZLkktZ.js → fieldLabelHint-yMZjXK6p.js} +1 -1
- package/dist/{finalSuccessScreen-LISnhuf3.js → finalSuccessScreen-CDr8bsI6.js} +24 -17
- package/dist/fiscal-qr/fiscal-qr.es.js +22 -19
- package/dist/{flipAnimation-DjM5JYfL.js → flipAnimation-C95PZFAJ.js} +5 -5
- package/dist/{flipCapturedCardEligibility-BNIrIYfu.js → flipCapturedCardEligibility-CcB0uVfH.js} +4 -4
- package/dist/flow/flow.es.js +100 -99
- package/dist/flow/styles.css +1 -1
- package/dist/formField-Ba8BQ_l8.js +49 -0
- package/dist/{fr-IbVATPZV.js → fr-BlNTqS4_.js} +11 -27
- package/dist/{fr-CA-Bmt-kW3D.js → fr-CA-DBO_1sfd.js} +11 -27
- package/dist/{front-horizontal-hint-C9-5nbdp.js → front-horizontal-hint-LxyNVfjy.js} +1 -1
- package/dist/{front-vertical-hint-DTtHshwX.js → front-vertical-hint-BKEg_DRs.js} +1 -1
- package/dist/geolocation/geolocation.es.js +10 -10
- package/dist/government-validation/government-validation.es.js +7 -7
- package/dist/{he-B1oTlS7p.js → he-C-PnifVg.js} +11 -27
- package/dist/{hi-BFeWb9MT.js → hi-mETIwcDe.js} +11 -27
- package/dist/{hmn-naJkqwAe.js → hmn-BZabGetu.js} +11 -27
- package/dist/{homeScreen-kVe-PwZV.js → homeScreen-CcRzcWya.js} +7 -7
- package/dist/{hooks-CE8vvsR8.js → hooks-nmwpawA2.js} +49 -11
- package/dist/{hr-CpwG7WJ4.js → hr-DzkTH3cj.js} +11 -27
- package/dist/{ht-mbMGmJ9j.js → ht-D5zV7ROu.js} +11 -27
- package/dist/{hu-CAPECmUZ.js → hu-CeHrYR4q.js} +12 -28
- package/dist/{icons-Bz641AZd.js → icons-DLZTxOV2.js} +2 -2
- package/dist/id/id.es.js +38 -37
- package/dist/{id-DNQTblvO.js → id-B_qFrh_W.js} +12 -28
- package/dist/{id-back-of-card-DNgfCJsN.js → id-back-of-card-BhF5T4fC.js} +1 -1
- package/dist/{id-back-of-card-vertical-D7qtwPW5.js → id-back-of-card-vertical-BudLiGPR.js} +1 -1
- package/dist/{id-front-of-card-CM0hV6jv.js → id-front-of-card-CiGcJhVW.js} +1 -1
- package/dist/{id-front-of-card-vertical-Cz0op2vf.js → id-front-of-card-vertical-C_GyecLf.js} +1 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -13
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +12 -7
- package/dist/{idFlipTransition-Cue3HSGt.js → idFlipTransition-DuwSIp-D.js} +13 -13
- package/dist/{idOcr-XOJ-JY-l.js → idOcr-DatcQrFh.js} +60 -37
- package/dist/identity-reuse/identity-reuse.es.js +14 -13
- package/dist/identity-reuse/styles.css.js +1 -0
- package/dist/{incodeComponent-C1TMotqV.js → incodeComponent-DFue7FgD.js} +10 -10
- package/dist/{incodeModule-BeATmadl.js → incodeModule-BWSWx6zz.js} +5 -5
- package/dist/index.es.js +3 -3
- package/dist/{inputComposed-CRp1H6U_.js → inputComposed-6M3lOVUo.js} +4 -4
- package/dist/{it-BcT816iZ.js → it-CwzQoTtJ.js} +11 -27
- package/dist/{ja-JP-BhZupQ7A.js → ja-JP-Cg6pV7OS.js} +12 -28
- package/dist/{ja-B5spS5-8.js → ja-eNtdzeB5.js} +11 -27
- package/dist/{jv-DalcXb84.js → jv-BANHtRb4.js} +11 -27
- package/dist/{ka-CbUOmftP.js → ka-DWhlum5Q.js} +11 -27
- package/dist/{kk-0EE3IrpX.js → kk-CAsKyYR9.js} +11 -27
- package/dist/{km-8LSGXQaW.js → km-DJHdr0lO.js} +16 -32
- package/dist/{ko-BjG0PPAP.js → ko-BAPbgx_r.js} +11 -27
- package/dist/{ko-KP-CpVrSvZB.js → ko-KP-BRD8crfV.js} +11 -27
- package/dist/{ky-xwaTThY0.js → ky-0IKHwWw_.js} +11 -27
- package/dist/kyb-checks/kyb-checks.es.js +1 -1
- package/dist/{kybChecksModule-DvZ-BZRh.js → kybChecksModule-CWFpU32e.js} +80 -64
- package/dist/kybChecksModule-D3u3hdUP.js +2 -0
- package/dist/{lo-EQF7PXWa.js → lo-DkBffqOP.js} +11 -27
- package/dist/{lt-DMmeCaHo.js → lt-Btf5JQPU.js} +12 -28
- package/dist/{lv-C1iTZMfE.js → lv-DMnPY0bZ.js} +12 -28
- package/dist/{mandatoryConsent-CvTtalAL.js → mandatoryConsent-Ci6fJR2F.js} +11 -11
- package/dist/{manualCaptureButton-BuQHmszh.js → manualCaptureButton-DrdeVhq8.js} +4 -4
- package/dist/{manualCaptureButton-DQAbimvq.js → manualCaptureButton-ZxWHf5Sa.js} +10 -10
- package/dist/{mk-DzMpKPOz.js → mk-CQIDbtM2.js} +11 -27
- package/dist/{mn-BvXd9F52.js → mn-Cc1HnwyR.js} +11 -27
- package/dist/{ms-Cp7ZJ7mK.js → ms-CORA9eaw.js} +11 -27
- package/dist/{my-GmBVDdMo.js → my-CNDvlF-Z.js} +11 -27
- package/dist/{nb-NO-y1MiZO8w.js → nb-NO-BwZ27fuH.js} +11 -27
- package/dist/{ne-Cl08Ph1J.js → ne-D7rkhft1.js} +11 -27
- package/dist/{nl-xrUuWU-J.js → nl-DsxNMb79.js} +12 -28
- package/dist/{optionAccessibleLabel-BU3kQ0En.js → optionAccessibleLabel-Cz2x8Q7x.js} +25 -10
- package/dist/{otpInput-Dmg_f47Q.js → otpInput-B2fLiJsF.js} +96 -15
- package/dist/{page-BR1C3Nzj.js → page-B0CjRMtF.js} +6 -6
- package/dist/{pageUiConfig-CHSWT3Gw.js → pageUiConfig-mKn_YhhU.js} +5 -5
- package/dist/{passport-horizontal-hint-SkVy1ylo.js → passport-horizontal-hint-Bn18pckF.js} +1 -1
- package/dist/{passport-vertical-hint-CgCA8IKR.js → passport-vertical-hint-D_bvTNZY.js} +1 -1
- package/dist/passwordRequirements-13qw_WSJ.js +49 -0
- package/dist/{pdf-B05hp9AA.js → pdf-DO_HvE8T.js} +2 -2
- package/dist/pdfViewer-CCHNUl5h.js +2 -0
- package/dist/{pdfViewer-CYoSQQNz.js → pdfViewer-pgBIY_Q7.js} +4 -4
- package/dist/{permissionInstructionList-hPNjHN71.js → permissionInstructionList-DPDqNKFJ.js} +3 -3
- package/dist/{permissions-Bu02I3PR.js → permissions-CKjgrM7q.js} +13 -13
- package/dist/phone/phone.es.js +11 -11
- package/dist/{phoneInputComposed-B7W1co5m.js → phoneInputComposed-BbZuW8Q8.js} +6 -6
- package/dist/{pl-C01qnZKR.js → pl-DOgi6huc.js} +11 -27
- package/dist/{preloadableLazy-BDZiRMcF.js → preloadableLazy-KWGuHoqn.js} +1 -1
- package/dist/{processing-CIy9REXo.js → processing-v4EkL9-U.js} +2 -2
- package/dist/{progressBar-Bv7JPmtA.js → progressBar-D-kfX8X1.js} +2 -2
- package/dist/{pt-BR-wEX_V9Uj.js → pt-BR-x__xGSN_.js} +11 -27
- package/dist/{pt-D4WG4iEZ.js → pt-CX0ngiGh.js} +11 -27
- package/dist/{pt-PT-BPg4BIJf.js → pt-PT-BKwyOX-W.js} +11 -27
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +13 -13
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/{registerIncodeElement-B5W7SqS3.js → registerIncodeElement-FoirFu19.js} +1 -1
- package/dist/{resendTimer-CeSq33kX.js → resendTimer-DHgQUcAi.js} +2 -2
- package/dist/{richText-BMvr5dhl.js → richText-DlHC_sMB.js} +4 -4
- package/dist/{ro-Cqlj7IaS.js → ro-DGB5aI9B.js} +11 -27
- package/dist/{ru-4u-5Riz6.js → ru-Dnl6YnE6.js} +12 -28
- package/dist/{ru-RU-hoEJT3Zf.js → ru-RU-BM5Leyxp.js} +11 -27
- package/dist/{sanitizeSvg-wb-lG02K.js → sanitizeSvg-IfqLuP1N.js} +1 -1
- package/dist/selfie/selfie.es.js +13 -12
- package/dist/signature/signature.es.js +10 -10
- package/dist/{sk-Bcrhcaus.js → sk-B4HQZzV6.js} +12 -28
- package/dist/{sl-_NIS9uQY.js → sl-ClgVmZ1h.js} +11 -27
- package/dist/{smsTabContent-CuxElbq9.js → smsTabContent-D9Eb005G.js} +7 -7
- package/dist/{so-B9pngiw2.js → so-BLFIV5-m.js} +11 -27
- package/dist/{spacer-BMVbQdv1.js → spacer-D5j2phXI.js} +293 -322
- package/dist/spinner-BeYdZjPC.js +69 -0
- package/dist/{sr-CwLs8KQk.js → sr-CkSmwRiY.js} +11 -27
- package/dist/{sr-Latn-My3nXAfv.js → sr-Latn-BdLB-I3Z.js} +15 -31
- package/dist/{sr-YU-D6EswTRk.js → sr-YU-DJ3geBJs.js} +1 -1
- package/dist/{sv-SE-3XWHgiaY.js → sv-SE-DEfqYDzZ.js} +11 -27
- package/dist/{sw-u0GGYzxM.js → sw-16U52YpC.js} +11 -27
- package/dist/{th-DuUtrE7A.js → th-Cg0hYujg.js} +11 -27
- package/dist/{th-TH-CIxIVJnV.js → th-TH-BBPg926O.js} +11 -27
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-PH-vdHV7e5l.js → tl-PH-DSHq83jb.js} +11 -27
- package/dist/{tl-Cnee5vHJ.js → tl-SL2bqb6j.js} +11 -27
- package/dist/{tr-B6NfQ1YM.js → tr-DclJKp5i.js} +11 -27
- package/dist/{transitionSpinner-BYT6Y26d.js → transitionSpinner-b8SMrhfd.js} +6 -6
- package/dist/{tutorial-DGi7njtc.js → tutorial-0IhGg6rb.js} +4 -4
- package/dist/types/ae-signature.d.ts +7 -3
- package/dist/types/antifraud.d.ts +7 -3
- package/dist/types/authentication.d.ts +7 -3
- package/dist/types/certificate-issuance.d.ts +7 -3
- package/dist/types/consent.d.ts +7 -3
- package/dist/types/cross-document-data-match.d.ts +7 -3
- package/dist/types/curp-validation.d.ts +7 -3
- package/dist/types/document-capture.d.ts +7 -3
- package/dist/types/dynamic-forms.d.ts +7 -3
- package/dist/types/ekyb.d.ts +7 -3
- package/dist/types/ekyc-prefill.d.ts +7 -3
- package/dist/types/ekyc.d.ts +7 -3
- package/dist/types/electronic-signature.d.ts +7 -3
- package/dist/types/email.d.ts +7 -3
- package/dist/types/extensibility.d.ts +7 -10
- package/dist/types/face-match.d.ts +7 -3
- package/dist/types/field-comparison.d.ts +7 -3
- package/dist/types/fiscal-qr.d.ts +7 -3
- package/dist/types/flow.d.ts +7 -3
- package/dist/types/geolocation.d.ts +7 -3
- package/dist/types/government-validation.d.ts +7 -3
- package/dist/types/id-selfie-flow.d.ts +7 -3
- package/dist/types/id-verification.d.ts +7 -3
- package/dist/types/id.d.ts +7 -3
- package/dist/types/identity-reuse.d.ts +8 -4
- package/dist/types/kyb-checks.d.ts +7 -3
- package/dist/types/phone.d.ts +7 -3
- package/dist/types/qe-signature.d.ts +7 -3
- package/dist/types/selfie.d.ts +7 -3
- package/dist/types/signature.d.ts +7 -3
- package/dist/types/video-selfie.d.ts +1 -1
- package/dist/types/watchlist.d.ts +7 -3
- package/dist/types/workflow.d.ts +7 -3
- package/dist/{typography-CHx4UfE3.js → typography-D3swFCxZ.js} +2 -2
- package/dist/{uk-D8SBQUPY.js → uk-CfFK_Tnk.js} +11 -27
- package/dist/{uk-UA-CMvgmdmw.js → uk-UA-vkh8X4bX.js} +12 -28
- package/dist/{ur-DCLXBfJS.js → ur-32a-9tt8.js} +11 -27
- package/dist/{useCameraPreview-DrteOjaq.js → useCameraPreview-hNLhri73.js} +1 -1
- package/dist/{useCaptureHelpButton-BEjYpwg6.js → useCaptureHelpButton-BJQvSkuJ.js} +2 -2
- package/dist/{useIsDarkTheme-DAs5RhsW.js → useIsDarkTheme-DoOFy9TN.js} +1 -1
- package/dist/{useModuleLoader--rVDzHqn.js → useModuleLoader-BCYS1xLP.js} +25 -17
- package/dist/{uz-CdTikNR8.js → uz-BEx-De8I.js} +11 -27
- package/dist/{vendor-preact-HIccnts1.js → vendor-preact-CjnloSla.js} +129 -5
- package/dist/{verificationResult-D8QnyuI1.js → verificationResult-tHoFvrGZ.js} +6 -6
- package/dist/{vi-8i3fXIYC.js → vi-CMQXfqfw.js} +11 -27
- 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 +32 -24
- package/dist/watchlist/watchlist.es.js +7 -6
- package/dist/{watchlistForBusiness-gQlRJDj7.js → watchlistForBusiness-CbRaBYoJ.js} +29 -20
- package/dist/{withEndScreenTexts-oHy-aDwN.js → withEndScreenTexts-10ck20tq.js} +43 -28
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +531 -1
- package/dist/{zh-CN-C_3DQPAO.js → zh-CN-BelxA_Rf.js} +11 -27
- package/dist/{zh-HANT-DzKThLGe.js → zh-HANT-DsztptZA.js} +11 -27
- package/dist/{zh-TW-CRwvuA_1.js → zh-TW-DKQC3FXd.js} +11 -27
- package/dist/{zh-JxvLpfJI.js → zh-v3x4XYal.js} +11 -27
- package/package.json +5 -14
- package/dist/cameraOverlay-CbaSCAzN.js +0 -2
- package/dist/capture-B105Gyzk.js +0 -2
- package/dist/capture-kxXHrakb.js +0 -3
- package/dist/captureButtonIcon-DdqcSAFo.js +0 -1
- package/dist/dateInputComposed-Bq9yEjqE.js +0 -1
- package/dist/documentCapture-CSovKIfj.js +0 -2
- package/dist/dropdownComposed-D9WtKiZl.js +0 -1
- package/dist/ekybModule-CqV7hjNi.js +0 -2
- package/dist/ekycModule-DHEPIoB-.js +0 -328
- package/dist/ekycModule-OERg1YPW.js +0 -2
- package/dist/ekycPrefillModule-B4BJQWaa.js +0 -2
- package/dist/faceMatch-1IxVsuQC.js +0 -2
- package/dist/fieldComparison-D3dONVPr.js +0 -113
- package/dist/fieldComparison-DWl2ByZ2.js +0 -2
- package/dist/formField-BP6uJTSh.js +0 -34
- package/dist/inputComposed-Dc8tBgb6.js +0 -1
- package/dist/kybChecksModule-DMKKtrmB.js +0 -2
- package/dist/passwordInputComposed-DKEB8EmI.js +0 -74
- package/dist/pdfViewer-BRAs-KYx.js +0 -2
- package/dist/radioGroupComposed-BZ5zWFS6.js +0 -160
- package/dist/radioGroupComposed-DA4CM0OB.js +0 -1
- package/dist/spinner-DkgXsNMB.js +0 -106
- package/dist/step-up/step-up.es.js +0 -483
- package/dist/step-up/styles.css +0 -2
- package/dist/types/step-up.d.ts +0 -85
- package/dist/workflow-CXjNrouG.js +0 -531
- /package/dist/{aligndevicelottie-B6hTuIe8.js → aligndevicelottie-BEKzL4SB.js} +0 -0
- /package/dist/{assertClassBrand-CuHX5JcR.js → assertClassBrand-F6pL6aIr.js} +0 -0
- /package/dist/{back-tutorial-v-0Ek2vm.js → back-tutorial-B9W63fa-.js} +0 -0
- /package/dist/{backdevicelottie-DF1HiZ5r.js → backdevicelottie-DsN8QBV3.js} +0 -0
- /package/dist/{blurdevicelottie-BSyppjCM.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
- /package/dist/{defineProperty-CRYuXE79.js → defineProperty-B4FQTz14.js} +0 -0
- /package/dist/{flip-animation-BwsJr5v0.js → flip-animation-DJVnWWL5.js} +0 -0
- /package/dist/{frontdevicelottie-DBYQ8I6w.js → frontdevicelottie-DiW1Wmya.js} +0 -0
- /package/dist/{glaredevicelottie-Cd1wXkQ6.js → glaredevicelottie-CK-fnX_s.js} +0 -0
- /package/dist/{id-laser-h-xw6WLLM_.js → id-laser-h-6Am_cjM8.js} +0 -0
- /package/dist/{id-laser-v-BHYuyf78.js → id-laser-v-DXoF3flH.js} +0 -0
- /package/dist/{id-tutorial-CYXjnunq.js → id-tutorial-DkKH3eTE.js} +0 -0
- /package/dist/{lottie_light-B819EhaL.js → lottie_light-Bam05Bc9.js} +0 -0
- /package/dist/{passport-tutorial-B_BAoSVc.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
- /package/dist/{pdf.worker.min-DzBNMoKS.js → pdf.worker.min-D0hm-8jN.js} +0 -0
- /package/dist/{policyUrls-Hvb4jPfF.js → policyUrls-B3TEaluh.js} +0 -0
- /package/dist/{purify.es-DIIgrZ-E.js → purify.es-DhY3JLdI.js} +0 -0
- /package/dist/{selfieTutorial-2UnQ3071.js → selfieTutorial-DnsRD1Z9.js} +0 -0
|
@@ -1,2 +1,532 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as toThemeUiConfig, h as readStoredLanguage, r as setThemeUiConfig, u as useTranslation } from "../devWarn-CXWsIkak.js";
|
|
2
|
+
import { b as y, h as d, l as z, o as P, u as A, x as u } from "../vendor-preact-CjnloSla.js";
|
|
3
|
+
import { i as fetchAndApplyTheme } from "../dashboardTheme-CB91NoiD.js";
|
|
4
|
+
import { t as AutoFocusTitle } from "../autoFocusTitle-D_vDhPqZ.js";
|
|
5
|
+
import { t as Page } from "../page-B0CjRMtF.js";
|
|
6
|
+
import { b as withSessionExpiry, i as TerminalErrorPage, m as useIsBrowserSupported, n as ResolvedConfigProvider, y as useManager } from "../hooks-nmwpawA2.js";
|
|
7
|
+
import { t as TransitionSpinner } from "../transitionSpinner-b8SMrhfd.js";
|
|
8
|
+
import { r as BrowserNotSupported, t as IncodeComponent } from "../incodeComponent-DFue7FgD.js";
|
|
9
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-BWSWx6zz.js";
|
|
10
|
+
import { _ as resolveSessionLanguage, a as isHandoffLinkRejection, g as isDesktopOrEmulated, i as UnsupportedModule, n as resolveApiKey, p as setupSDK, r as extractIncodeStatus, s as LAZY_UI_MODULES, t as withEndScreenTexts } from "../withEndScreenTexts-10ck20tq.js";
|
|
11
|
+
import { a as HEADLESS_WORKFLOW_MODULE_KEYS, n as useModuleLoader } from "../useModuleLoader-BCYS1xLP.js";
|
|
12
|
+
import { initializeWasmUtil, resolveWasmConfigForPipelines, setWasmConfig, warmupWasm } from "@incodetech/core/wasm";
|
|
13
|
+
import { bootstrapSession, getFinishStatus, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
14
|
+
import { classifyScoreStatus } from "@incodetech/core/flow";
|
|
15
|
+
import { createWorkflowManager } from "@incodetech/core/workflow";
|
|
16
|
+
//#region src/modules/workflow/finishScreenStatusIcons.tsx
|
|
17
|
+
var FinishStatusSuccessIcon = () => /* @__PURE__ */ u("svg", {
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
width: "54",
|
|
20
|
+
height: "54",
|
|
21
|
+
viewBox: "0 0 54 54",
|
|
22
|
+
fill: "none",
|
|
23
|
+
class: "IncodeFinishStatusSuccessIcon",
|
|
24
|
+
"aria-hidden": "true",
|
|
25
|
+
focusable: "false",
|
|
26
|
+
children: [/* @__PURE__ */ u("path", {
|
|
27
|
+
d: "M27 53.25c14.498 0 26.25-11.752 26.25-26.25S41.498.75 27 .75.75 12.503.75 27 12.503 53.25 27 53.25Z",
|
|
28
|
+
fill: "#0CD5A2"
|
|
29
|
+
}), /* @__PURE__ */ u("path", {
|
|
30
|
+
d: "M37.5 20L23.492 35.75L16.5 27.875",
|
|
31
|
+
stroke: "white",
|
|
32
|
+
"stroke-width": "4",
|
|
33
|
+
"stroke-linecap": "round",
|
|
34
|
+
"stroke-linejoin": "round"
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
37
|
+
var FinishStatusReviewIcon = () => /* @__PURE__ */ u("svg", {
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
width: "56",
|
|
40
|
+
height: "54",
|
|
41
|
+
viewBox: "0 0 33 32",
|
|
42
|
+
fill: "none",
|
|
43
|
+
class: "IncodeFinishStatusReviewIcon",
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
focusable: "false",
|
|
46
|
+
children: /* @__PURE__ */ u("path", {
|
|
47
|
+
d: "M16.5 0c8.848 0 16 7.17 16 16 0 8.834-7.152 16-16 16-8.832 0-16-7.166-16-16 0-8.83 7.168-16 16-16Zm0 20.69c-.768 0-1.392.624-1.392 1.392a1.41 1.41 0 0 0 1.408 1.408c.768 0 1.392-.64 1.392-1.408s-.624-1.392-1.408-1.392Zm0-12.162c-.768 0-1.408.642-1.408 1.408v7.072c0 .77.64 1.392 1.408 1.392s1.392-.622 1.392-1.392V9.936c0-.766-.624-1.408-1.392-1.408Z",
|
|
48
|
+
fill: "#FF9900"
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
var FinishStatusErrorIcon = () => /* @__PURE__ */ u("svg", {
|
|
52
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
+
width: "72",
|
|
54
|
+
height: "72",
|
|
55
|
+
viewBox: "0 0 72 72",
|
|
56
|
+
fill: "none",
|
|
57
|
+
class: "IncodeFinishStatusErrorIcon",
|
|
58
|
+
"aria-hidden": "true",
|
|
59
|
+
focusable: "false",
|
|
60
|
+
children: /* @__PURE__ */ u("path", {
|
|
61
|
+
"fill-rule": "evenodd",
|
|
62
|
+
"clip-rule": "evenodd",
|
|
63
|
+
d: "M44.598 44.592a2.245 2.245 0 0 1-3.183 0l-5.418-5.421-5.403 5.403a2.25 2.25 0 0 1-3.183-3.18l5.403-5.403-5.406-5.409a2.247 2.247 0 0 1 0-3.18 2.247 2.247 0 0 1 3.18 0l5.406 5.406 5.406-5.403a2.247 2.247 0 0 1 3.18 0 2.247 2.247 0 0 1 0 3.18l-5.403 5.406 5.421 5.418a2.25 2.25 0 0 1 0 3.183ZM36 7.5C20.286 7.5 7.5 20.283 7.5 36c0 15.714 12.786 28.5 28.5 28.5S64.5 51.714 64.5 36C64.5 20.283 51.714 7.5 36 7.5Z",
|
|
64
|
+
fill: "#FF0000"
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/modules/workflow/finishScreenBySessionStatus.tsx
|
|
69
|
+
var VARIANT_CONTENT = {
|
|
70
|
+
success: {
|
|
71
|
+
Icon: FinishStatusSuccessIcon,
|
|
72
|
+
titleKey: "finishScreenBySessionStatus.success.title",
|
|
73
|
+
titleDefault: "Identity",
|
|
74
|
+
subtitleKey: "finishScreenBySessionStatus.success.subtitle",
|
|
75
|
+
subtitleDefault: "successfully verified"
|
|
76
|
+
},
|
|
77
|
+
error: {
|
|
78
|
+
Icon: FinishStatusErrorIcon,
|
|
79
|
+
titleKey: "finishScreenBySessionStatus.error.title",
|
|
80
|
+
titleDefault: "Unable to verify identity",
|
|
81
|
+
descriptionKey: "finishScreenBySessionStatus.error.description",
|
|
82
|
+
descriptionDefault: "We encountered an issue while processing your request. Please try again later."
|
|
83
|
+
},
|
|
84
|
+
review: {
|
|
85
|
+
Icon: FinishStatusReviewIcon,
|
|
86
|
+
titleKey: "finishScreenBySessionStatus.review.title",
|
|
87
|
+
titleDefault: "Verification under review",
|
|
88
|
+
descriptionKey: "finishScreenBySessionStatus.review.description",
|
|
89
|
+
descriptionDefault: "Your information did not match our records. Please contact IT support for assistance."
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
/** Status-specific workflow completion screen (success / error / review). */
|
|
93
|
+
var FinishScreenBySessionStatus = ({ scoreStatus }) => {
|
|
94
|
+
const { t } = useTranslation();
|
|
95
|
+
const variant = classifyScoreStatus(scoreStatus);
|
|
96
|
+
const content = VARIANT_CONTENT[variant];
|
|
97
|
+
const { Icon } = content;
|
|
98
|
+
return /* @__PURE__ */ u(Page, {
|
|
99
|
+
className: "IncodeFinishScreenBySessionStatus",
|
|
100
|
+
"data-testid": "finish-screen-by-session-status",
|
|
101
|
+
hideHeader: true,
|
|
102
|
+
hideFooterBranding: true,
|
|
103
|
+
children: /* @__PURE__ */ u("div", {
|
|
104
|
+
class: "IncodeFinishScreenStatus",
|
|
105
|
+
"data-variant": variant,
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ u(Icon, {}),
|
|
108
|
+
/* @__PURE__ */ u("div", {
|
|
109
|
+
class: "IncodeFinishScreenTitleGroup",
|
|
110
|
+
children: [/* @__PURE__ */ u(AutoFocusTitle, {
|
|
111
|
+
className: "IncodeFinishScreenTitle",
|
|
112
|
+
children: t(content.titleKey, { defaultValue: content.titleDefault })
|
|
113
|
+
}, variant), content.subtitleKey ? /* @__PURE__ */ u("p", {
|
|
114
|
+
class: "IncodeFinishScreenSubtitle",
|
|
115
|
+
children: t(content.subtitleKey, { defaultValue: content.subtitleDefault })
|
|
116
|
+
}) : null]
|
|
117
|
+
}),
|
|
118
|
+
content.descriptionKey ? /* @__PURE__ */ u("p", {
|
|
119
|
+
class: "IncodeFinishScreenDescription",
|
|
120
|
+
children: t(content.descriptionKey, { defaultValue: content.descriptionDefault })
|
|
121
|
+
}) : null
|
|
122
|
+
]
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/modules/workflow/workflowInit.ts
|
|
128
|
+
var LAZY_WORKFLOW_MODULES = {
|
|
129
|
+
...LAZY_UI_MODULES,
|
|
130
|
+
REDIRECT_TO_MOBILE: () => import("../redirect-to-mobile/redirect-to-mobile.es.js").then((m) => m.RedirectToMobile),
|
|
131
|
+
ID: () => import("../id-verification/id-verification.es.js").then((m) => m.IdVerification)
|
|
132
|
+
};
|
|
133
|
+
function setupWorkflowSDK(options) {
|
|
134
|
+
return setupSDK({
|
|
135
|
+
...options,
|
|
136
|
+
preloadFlow: false
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
async function fetchWorkflowTheme() {
|
|
140
|
+
try {
|
|
141
|
+
const theme = await fetchAndApplyTheme();
|
|
142
|
+
return {
|
|
143
|
+
theme,
|
|
144
|
+
uiConfig: toThemeUiConfig(theme)
|
|
145
|
+
};
|
|
146
|
+
} catch {
|
|
147
|
+
return {};
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function createWorkflowUIManager(options = {}) {
|
|
151
|
+
let endScreen = {
|
|
152
|
+
endScreenTitle: null,
|
|
153
|
+
endScreenText: null
|
|
154
|
+
};
|
|
155
|
+
const manager = createWorkflowManager({
|
|
156
|
+
customModuleCallback: options.customModuleCallback,
|
|
157
|
+
interviewId: options.interviewId,
|
|
158
|
+
isDesktop: options.isDesktop ?? isDesktopOrEmulated(),
|
|
159
|
+
isReturnLeg: options.isReturnLeg,
|
|
160
|
+
getFinishStatus: async (workflowId, signal) => {
|
|
161
|
+
return {
|
|
162
|
+
...await getFinishStatus(workflowId, signal),
|
|
163
|
+
...endScreen
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
return Object.assign(manager, {
|
|
168
|
+
setEndScreenTexts(endScreenTitle, endScreenText) {
|
|
169
|
+
endScreen = {
|
|
170
|
+
endScreenTitle,
|
|
171
|
+
endScreenText
|
|
172
|
+
};
|
|
173
|
+
},
|
|
174
|
+
getEndScreenTexts() {
|
|
175
|
+
return endScreen;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
function warmupWorkflowWasm(wasmConfig) {
|
|
180
|
+
if (wasmConfig === false) return;
|
|
181
|
+
const resolved = resolveWasmConfigForPipelines(wasmConfig?.pipelines ?? [], wasmConfig);
|
|
182
|
+
const upgradeConfig = {
|
|
183
|
+
...resolved,
|
|
184
|
+
pipelines: resolved.pipelines ? [...resolved.pipelines] : void 0
|
|
185
|
+
};
|
|
186
|
+
setWasmConfig(upgradeConfig);
|
|
187
|
+
return warmupWasm(resolved).then(() => initializeWasmUtil(upgradeConfig)).catch((error) => {
|
|
188
|
+
console.error("Workflow WASM warmup failed:", error);
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/modules/workflow/createWorkflowSession.ts
|
|
193
|
+
async function createWorkflowSession(config, signal) {
|
|
194
|
+
return bootstrapSession(await resolveApiKey(config), {
|
|
195
|
+
configurationId: config.configurationId,
|
|
196
|
+
externalId: config.externalId,
|
|
197
|
+
externalCustomerId: config.externalCustomerId,
|
|
198
|
+
language: config.lang,
|
|
199
|
+
customFields: config.customFields,
|
|
200
|
+
uuid: config.uuid,
|
|
201
|
+
urlUuid: config.urlUuid,
|
|
202
|
+
loginHint: config.loginHint,
|
|
203
|
+
onUrlUuidRefreshed: config.onUrlUuidRefreshed
|
|
204
|
+
}, signal);
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/modules/workflow/workflowConfig.ts
|
|
208
|
+
function hasWorkflowToken(config) {
|
|
209
|
+
return typeof config.token === "string";
|
|
210
|
+
}
|
|
211
|
+
function isSelfLoadingWorkflowConfig(config) {
|
|
212
|
+
const bootstrapConfig = config;
|
|
213
|
+
return typeof bootstrapConfig.configurationId === "string" && (typeof bootstrapConfig.apiKey === "string" || typeof bootstrapConfig.clientId === "string");
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/modules/workflow/useWorkflowInitialization.ts
|
|
217
|
+
function useWorkflowInitialization(options) {
|
|
218
|
+
const { onError, onUrlUuidRefreshed } = options;
|
|
219
|
+
const [state, setState] = d({ status: "initializing" });
|
|
220
|
+
const managerRef = A(null);
|
|
221
|
+
y(() => {
|
|
222
|
+
if (state.status !== "initializing") return;
|
|
223
|
+
const abortController = new AbortController();
|
|
224
|
+
const { signal } = abortController;
|
|
225
|
+
const initialize = async () => {
|
|
226
|
+
try {
|
|
227
|
+
let resolvedToken;
|
|
228
|
+
let resolvedInterviewId;
|
|
229
|
+
let endScreenTitle = null;
|
|
230
|
+
let endScreenText = null;
|
|
231
|
+
if (hasWorkflowToken(options)) {
|
|
232
|
+
resolvedToken = options.token;
|
|
233
|
+
resolvedInterviewId = options.interviewId;
|
|
234
|
+
endScreenTitle = options.endScreenTitle ?? null;
|
|
235
|
+
endScreenText = options.endScreenText ?? null;
|
|
236
|
+
if (options.urlUuid) await refreshQrUrlUuid({
|
|
237
|
+
urlUuid: options.urlUuid,
|
|
238
|
+
onboardingId: null,
|
|
239
|
+
onRefreshed: onUrlUuidRefreshed
|
|
240
|
+
}, signal);
|
|
241
|
+
} else if (isSelfLoadingWorkflowConfig(options)) {
|
|
242
|
+
const session = await createWorkflowSession(options, signal);
|
|
243
|
+
resolvedToken = session.token;
|
|
244
|
+
resolvedInterviewId = session.interviewId;
|
|
245
|
+
endScreenTitle = session.endScreenTitle ?? null;
|
|
246
|
+
endScreenText = session.endScreenText ?? null;
|
|
247
|
+
} else throw new Error("Workflow requires token, or configurationId with apiKey or clientId");
|
|
248
|
+
if (signal.aborted) return;
|
|
249
|
+
const sessionReady = setupWorkflowSDK({
|
|
250
|
+
token: resolvedToken,
|
|
251
|
+
lang: options.lang,
|
|
252
|
+
wasmConfig: options.wasmConfig
|
|
253
|
+
});
|
|
254
|
+
const themePromise = options.disableDashboardTheme ? Promise.resolve() : fetchWorkflowTheme().then((result) => {
|
|
255
|
+
if (result.uiConfig) setThemeUiConfig(result.uiConfig);
|
|
256
|
+
});
|
|
257
|
+
managerRef.current = createWorkflowUIManager({
|
|
258
|
+
customModuleCallback: options.customModuleCallback,
|
|
259
|
+
interviewId: resolvedInterviewId,
|
|
260
|
+
isDesktop: options.isDesktop,
|
|
261
|
+
isReturnLeg: options.digitalIdReturn !== void 0
|
|
262
|
+
});
|
|
263
|
+
managerRef.current.setEndScreenTexts(endScreenTitle, endScreenText);
|
|
264
|
+
managerRef.current.load();
|
|
265
|
+
await sessionReady;
|
|
266
|
+
if (signal.aborted) return;
|
|
267
|
+
warmupWorkflowWasm(options.wasmConfig);
|
|
268
|
+
await themePromise;
|
|
269
|
+
if (signal.aborted) return;
|
|
270
|
+
setState({
|
|
271
|
+
status: "ready",
|
|
272
|
+
workflowManager: managerRef.current
|
|
273
|
+
});
|
|
274
|
+
} catch (error) {
|
|
275
|
+
if (signal.aborted) return;
|
|
276
|
+
managerRef.current?.stop();
|
|
277
|
+
managerRef.current = null;
|
|
278
|
+
const errorMessage = error instanceof Error ? error.message : "Failed to initialize SDK";
|
|
279
|
+
const errorCode = extractIncodeStatus(error);
|
|
280
|
+
setState({
|
|
281
|
+
status: "error",
|
|
282
|
+
error: errorMessage,
|
|
283
|
+
errorCode
|
|
284
|
+
});
|
|
285
|
+
onError?.(errorMessage, errorCode);
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
initialize();
|
|
289
|
+
return () => {
|
|
290
|
+
abortController.abort();
|
|
291
|
+
managerRef.current?.stop();
|
|
292
|
+
managerRef.current = null;
|
|
293
|
+
};
|
|
294
|
+
}, []);
|
|
295
|
+
return state;
|
|
296
|
+
}
|
|
297
|
+
//#endregion
|
|
298
|
+
//#region src/modules/workflow/workflow.tsx
|
|
299
|
+
var LazyHomeScreen = z(() => import("../homeScreen-CcRzcWya.js").then((module) => ({ default: module.HomeScreen })));
|
|
300
|
+
function mapModuleConfig(options) {
|
|
301
|
+
const { moduleKey, config, workflowId, authHint, loginHintPrefill, lang, mergeSessionRecordings, ageAssurance, digitalIdReturn, digitalIdReturnUrl } = options;
|
|
302
|
+
switch (moduleKey) {
|
|
303
|
+
case "AUTHENTICATION": return {
|
|
304
|
+
...config,
|
|
305
|
+
authHint
|
|
306
|
+
};
|
|
307
|
+
case "DYNAMIC_FORMS": return {
|
|
308
|
+
...config,
|
|
309
|
+
prefillValue: loginHintPrefill
|
|
310
|
+
};
|
|
311
|
+
case "REDIRECT_TO_MOBILE": return {
|
|
312
|
+
...config,
|
|
313
|
+
flowId: workflowId,
|
|
314
|
+
authHint,
|
|
315
|
+
lang
|
|
316
|
+
};
|
|
317
|
+
case "ID_CAPTURE":
|
|
318
|
+
case "TUTORIAL_ID": return {
|
|
319
|
+
...config,
|
|
320
|
+
mergeSessionRecordings: config.mergeSessionRecordings ?? mergeSessionRecordings,
|
|
321
|
+
ageAssurance: config.ageAssurance ?? ageAssurance,
|
|
322
|
+
skipProcessId: true,
|
|
323
|
+
digitalIdReturn,
|
|
324
|
+
digitalIdReturnUrl
|
|
325
|
+
};
|
|
326
|
+
case "ID": return config;
|
|
327
|
+
case "SELFIE": return {
|
|
328
|
+
...config,
|
|
329
|
+
ageAssurance: config.ageAssurance ?? ageAssurance
|
|
330
|
+
};
|
|
331
|
+
case "ADDRESS": return {
|
|
332
|
+
...config,
|
|
333
|
+
processingType: "addressStatement"
|
|
334
|
+
};
|
|
335
|
+
case "SECOND_ID": return {
|
|
336
|
+
...config,
|
|
337
|
+
isSecondId: true,
|
|
338
|
+
digitalIdReturn,
|
|
339
|
+
digitalIdReturnUrl
|
|
340
|
+
};
|
|
341
|
+
case "MANDATORY_CONSENT": return {
|
|
342
|
+
...config,
|
|
343
|
+
type: "MANDATORY"
|
|
344
|
+
};
|
|
345
|
+
default: return config;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Inner component mounted only after `useWorkflowInitialization` has resolved
|
|
350
|
+
* the session and constructed the manager. Splitting this out keeps the
|
|
351
|
+
* `useManager` factory call out of the init path — token-mode and
|
|
352
|
+
* self-loading mode both arrive here with a fully-constructed manager.
|
|
353
|
+
*/
|
|
354
|
+
var IncodeWorkflowReady = ({ config, workflowManager: initialManager, onFinish, onError }) => {
|
|
355
|
+
const { i18n } = useTranslation();
|
|
356
|
+
const [workflowState, workflowManager] = useManager(() => initialManager, {
|
|
357
|
+
autoLoad: false,
|
|
358
|
+
manageLifecycle: false
|
|
359
|
+
});
|
|
360
|
+
const moduleKey = workflowState?.status === "ready" ? workflowState.currentNode.moduleKey : void 0;
|
|
361
|
+
const browser = useIsBrowserSupported();
|
|
362
|
+
const loadedWorkflowConfig = workflowState && "workflowConfig" in workflowState ? workflowState.workflowConfig : void 0;
|
|
363
|
+
const workflowDisablesBrowserScreen = loadedWorkflowConfig ? loadedWorkflowConfig.disableUnsupportedBrowserScreen === true : void 0;
|
|
364
|
+
const showFinishScreen = workflowState?.status === "finished" && workflowState.workflowConfig.showFinishScreenBySessionStatus === true;
|
|
365
|
+
const moduleLoaderState = useModuleLoader({
|
|
366
|
+
moduleKey,
|
|
367
|
+
modules: LAZY_WORKFLOW_MODULES,
|
|
368
|
+
headlessModuleKeys: HEADLESS_WORKFLOW_MODULE_KEYS,
|
|
369
|
+
onModuleLoading: config.onModuleLoading,
|
|
370
|
+
onModuleLoaded: config.onModuleLoaded,
|
|
371
|
+
onError
|
|
372
|
+
});
|
|
373
|
+
const terminalFiredRef = A(false);
|
|
374
|
+
y(() => {
|
|
375
|
+
if (terminalFiredRef.current) return;
|
|
376
|
+
if (workflowState?.status === "finished") {
|
|
377
|
+
terminalFiredRef.current = true;
|
|
378
|
+
const finishStatus = withEndScreenTexts(workflowState.finishStatus, initialManager.getEndScreenTexts());
|
|
379
|
+
const oauth2Secured = workflowState.workflowConfig.oauth2Secured === true;
|
|
380
|
+
queueMicrotask(() => onFinish?.(finishStatus, {
|
|
381
|
+
sdkOwnsTerminalScreen: showFinishScreen,
|
|
382
|
+
oauth2Secured,
|
|
383
|
+
...workflowState.workflowConfig.redirectOriginOnly !== void 0 ? { redirectOriginOnly: workflowState.workflowConfig.redirectOriginOnly } : {},
|
|
384
|
+
...workflowState.completedOnMobile ? { completedOnMobile: true } : {}
|
|
385
|
+
}));
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
if (workflowState?.status === "asyncResolution") {
|
|
389
|
+
terminalFiredRef.current = true;
|
|
390
|
+
queueMicrotask(() => onFinish?.());
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
if (workflowState?.status === "error" && onError) {
|
|
394
|
+
terminalFiredRef.current = true;
|
|
395
|
+
const { error, errorCode, moduleErrorCode } = workflowState;
|
|
396
|
+
queueMicrotask(() => onError(error, errorCode, moduleErrorCode));
|
|
397
|
+
}
|
|
398
|
+
}, [
|
|
399
|
+
workflowState,
|
|
400
|
+
onFinish,
|
|
401
|
+
onError,
|
|
402
|
+
showFinishScreen,
|
|
403
|
+
initialManager
|
|
404
|
+
]);
|
|
405
|
+
const spinnerRenderMode = config.spinnerConfig?.title || config.spinnerConfig?.subtitle ? "spinnerAndText" : "spinnerOnly";
|
|
406
|
+
const renderSpinner = () => /* @__PURE__ */ u("div", {
|
|
407
|
+
class: "IncodeWorkflow",
|
|
408
|
+
children: /* @__PURE__ */ u(TransitionSpinner, {
|
|
409
|
+
spinnerConfig: config.spinnerConfig,
|
|
410
|
+
renderMode: spinnerRenderMode
|
|
411
|
+
})
|
|
412
|
+
});
|
|
413
|
+
const handleModuleError = (error, _errorCode, moduleErrorCode) => {
|
|
414
|
+
const deferToGenericCopy = moduleKey === "MANDATORY_CONSENT" || moduleKey === "ML_CONSENT";
|
|
415
|
+
workflowManager.errorModule(error ?? (deferToGenericCopy ? void 0 : "Module error"), moduleErrorCode);
|
|
416
|
+
};
|
|
417
|
+
if (!browser.isSupported && workflowDisablesBrowserScreen === false) return /* @__PURE__ */ u("div", {
|
|
418
|
+
class: "IncodeWorkflow",
|
|
419
|
+
children: /* @__PURE__ */ u(BrowserNotSupported, { onContinue: browser.continueAnyway })
|
|
420
|
+
});
|
|
421
|
+
if (workflowState && "homeScreen" in workflowState && workflowState.homeScreen.visible) return /* @__PURE__ */ u("div", {
|
|
422
|
+
class: "IncodeWorkflow",
|
|
423
|
+
children: /* @__PURE__ */ u(P, {
|
|
424
|
+
fallback: null,
|
|
425
|
+
children: /* @__PURE__ */ u(LazyHomeScreen, {
|
|
426
|
+
isContinueLoading: workflowState.homeScreen.isContinueLoading,
|
|
427
|
+
onContinue: () => workflowManager.continueFromHome()
|
|
428
|
+
})
|
|
429
|
+
})
|
|
430
|
+
});
|
|
431
|
+
if (!workflowState || workflowState.status === "idle" || workflowState.status === "loading") return renderSpinner();
|
|
432
|
+
if (workflowState.status === "error") return /* @__PURE__ */ u("div", {
|
|
433
|
+
class: "IncodeWorkflow",
|
|
434
|
+
children: /* @__PURE__ */ u(TerminalErrorPage, {
|
|
435
|
+
message: workflowState.error,
|
|
436
|
+
moduleErrorCode: workflowState.moduleErrorCode
|
|
437
|
+
})
|
|
438
|
+
});
|
|
439
|
+
if (workflowState.status === "completing") return /* @__PURE__ */ u("div", {
|
|
440
|
+
class: "IncodeWorkflow",
|
|
441
|
+
children: /* @__PURE__ */ u(TransitionSpinner, {})
|
|
442
|
+
});
|
|
443
|
+
if (workflowState.status === "finished") {
|
|
444
|
+
if (showFinishScreen) return /* @__PURE__ */ u("div", {
|
|
445
|
+
class: "IncodeWorkflow",
|
|
446
|
+
children: /* @__PURE__ */ u(FinishScreenBySessionStatus, { scoreStatus: workflowState.scoreStatus })
|
|
447
|
+
});
|
|
448
|
+
return null;
|
|
449
|
+
}
|
|
450
|
+
if (workflowState.status === "asyncResolution" || workflowState.status === "closed") return null;
|
|
451
|
+
if (moduleLoaderState.status === "unsupported") return /* @__PURE__ */ u("div", {
|
|
452
|
+
class: "IncodeWorkflow",
|
|
453
|
+
children: /* @__PURE__ */ u(UnsupportedModule, {
|
|
454
|
+
moduleKey: workflowState.currentNode.moduleKey,
|
|
455
|
+
onNext: () => workflowManager.completeModule()
|
|
456
|
+
})
|
|
457
|
+
});
|
|
458
|
+
if (moduleLoaderState.status === "idle" || moduleLoaderState.status === "loading" || moduleLoaderState.status === "error") return renderSpinner();
|
|
459
|
+
const { Component } = moduleLoaderState;
|
|
460
|
+
const moduleConfig = mapModuleConfig({
|
|
461
|
+
moduleKey: workflowState.currentNode.moduleKey,
|
|
462
|
+
config: workflowState.config,
|
|
463
|
+
workflowId: workflowState.workflowConfig.id,
|
|
464
|
+
authHint: config.authHint,
|
|
465
|
+
loginHintPrefill: config.loginHintPrefill,
|
|
466
|
+
lang: i18n.language,
|
|
467
|
+
mergeSessionRecordings: workflowState.workflowConfig.mergeSessionRecordings,
|
|
468
|
+
ageAssurance: workflowState.workflowConfig.ageAssurance,
|
|
469
|
+
digitalIdReturn: config.digitalIdReturn,
|
|
470
|
+
digitalIdReturnUrl: config.digitalIdReturnUrl
|
|
471
|
+
});
|
|
472
|
+
let extraProps = {};
|
|
473
|
+
if (workflowState.currentNode.moduleKey === "REDIRECT_TO_MOBILE") extraProps = {
|
|
474
|
+
onFinish: () => workflowManager.finishWorkflow(),
|
|
475
|
+
onContinue: () => workflowManager.completeModule()
|
|
476
|
+
};
|
|
477
|
+
return /* @__PURE__ */ u("div", {
|
|
478
|
+
class: "IncodeWorkflow",
|
|
479
|
+
children: /* @__PURE__ */ u(Component, {
|
|
480
|
+
config: moduleConfig,
|
|
481
|
+
onFinish: (output) => workflowManager.completeModule(output),
|
|
482
|
+
onError: handleModuleError,
|
|
483
|
+
...extraProps
|
|
484
|
+
}, workflowState.currentNode.id)
|
|
485
|
+
});
|
|
486
|
+
};
|
|
487
|
+
var IncodeWorkflowContent = ({ config, onFinish, onError }) => {
|
|
488
|
+
const { i18n } = useTranslation();
|
|
489
|
+
const initialSessionLanguage = A(isSelfLoadingWorkflowConfig(config) ? resolveSessionLanguage(config.lang, i18n.language, readStoredLanguage()) : config.lang).current;
|
|
490
|
+
const initState = useWorkflowInitialization({
|
|
491
|
+
...config,
|
|
492
|
+
lang: initialSessionLanguage,
|
|
493
|
+
onError
|
|
494
|
+
});
|
|
495
|
+
y(() => {
|
|
496
|
+
if (readStoredLanguage()) return;
|
|
497
|
+
if (config.lang && i18n.language !== config.lang) i18n.changeLanguage(config.lang);
|
|
498
|
+
}, [config.lang, i18n]);
|
|
499
|
+
const spinnerRenderMode = config.spinnerConfig?.title || config.spinnerConfig?.subtitle ? "spinnerAndText" : "spinnerOnly";
|
|
500
|
+
if (initState.status === "error") return /* @__PURE__ */ u("div", {
|
|
501
|
+
class: "IncodeWorkflow",
|
|
502
|
+
children: /* @__PURE__ */ u(TerminalErrorPage, {
|
|
503
|
+
message: initState.error,
|
|
504
|
+
retryable: !isHandoffLinkRejection(initState.errorCode)
|
|
505
|
+
})
|
|
506
|
+
});
|
|
507
|
+
if (initState.status === "initializing") return /* @__PURE__ */ u("div", {
|
|
508
|
+
class: "IncodeWorkflow",
|
|
509
|
+
children: /* @__PURE__ */ u(TransitionSpinner, {
|
|
510
|
+
spinnerConfig: config.spinnerConfig,
|
|
511
|
+
renderMode: spinnerRenderMode
|
|
512
|
+
})
|
|
513
|
+
});
|
|
514
|
+
return /* @__PURE__ */ u(IncodeWorkflowReady, {
|
|
515
|
+
config,
|
|
516
|
+
workflowManager: initState.workflowManager,
|
|
517
|
+
onFinish,
|
|
518
|
+
onError
|
|
519
|
+
});
|
|
520
|
+
};
|
|
521
|
+
var IncodeWorkflowContentRoot = ({ config, onFinish, onError }) => /* @__PURE__ */ u(IncodeComponent, {
|
|
522
|
+
deferBrowserCheck: true,
|
|
523
|
+
children: config ? /* @__PURE__ */ u(ResolvedConfigProvider, { children: /* @__PURE__ */ u(IncodeWorkflowContent, {
|
|
524
|
+
config,
|
|
525
|
+
onFinish,
|
|
526
|
+
onError
|
|
527
|
+
}) }) : null
|
|
528
|
+
});
|
|
529
|
+
var IncodeWorkflow = withSessionExpiry(IncodeWorkflowContentRoot, { keepMountedOffline: true });
|
|
530
|
+
registerIncodeModuleElement(IncodeWorkflow, "incode-workflow");
|
|
531
|
+
//#endregion
|
|
2
532
|
export { IncodeWorkflow, mapModuleConfig };
|
|
@@ -100,6 +100,7 @@ var zh_CN_default = {
|
|
|
100
100
|
"delete": "删除",
|
|
101
101
|
"disconnect": "断开",
|
|
102
102
|
"done": "完成!",
|
|
103
|
+
"editDate": "编辑日期",
|
|
103
104
|
"error": "错误",
|
|
104
105
|
"female": "女性",
|
|
105
106
|
"finishGptOptInLabel": "是的,我希望在我的手机上接收来自{{company_name}} 的重要信息",
|
|
@@ -1583,6 +1584,7 @@ var zh_CN_default = {
|
|
|
1583
1584
|
"step3": "3.良好的照明",
|
|
1584
1585
|
"submit": "继续"
|
|
1585
1586
|
},
|
|
1587
|
+
"kyb": { "errors": { "anyOf": { "street_city_postalCode": "至少需填写街道、城市或邮政编码中的一项" } } },
|
|
1586
1588
|
"light": {
|
|
1587
1589
|
"avoid": "避免灯光给脸部造成阴影",
|
|
1588
1590
|
"balanced": "寻找平衡光线"
|
|
@@ -2021,33 +2023,6 @@ var zh_CN_default = {
|
|
|
2021
2023
|
"successTitle": "成功签署!"
|
|
2022
2024
|
},
|
|
2023
2025
|
"start": "开始",
|
|
2024
|
-
"stepUp": {
|
|
2025
|
-
"duration": {
|
|
2026
|
-
"days_one": "{{count}} 天",
|
|
2027
|
-
"hours_one": "{{count}} 小时",
|
|
2028
|
-
"minutes_one": "{{count}} 分钟",
|
|
2029
|
-
"minutes_other": "{{count}} 分钟",
|
|
2030
|
-
"seconds_one": "{{count}} 第二",
|
|
2031
|
-
"seconds_other": "{{count}} 秒"
|
|
2032
|
-
},
|
|
2033
|
-
"hostedFrame": { "title": "身份验证" },
|
|
2034
|
-
"permissions": {
|
|
2035
|
-
"alwaysIncluded": "始终包含",
|
|
2036
|
-
"approve": "批准",
|
|
2037
|
-
"deny": "拒绝",
|
|
2038
|
-
"duration": "访问有效期为{{duration}} 。",
|
|
2039
|
-
"limitBudget": "上限:最多{{amount}}",
|
|
2040
|
-
"limitBudgetAndUsage": "上限:最多{{amount}} ,{{usage}}",
|
|
2041
|
-
"limitUsage": "限制:{{usage}}",
|
|
2042
|
-
"scopeRequired": "请至少选择一项权限。",
|
|
2043
|
-
"scopesLabel": "权限",
|
|
2044
|
-
"subtitle": "选择该AI代理可以为您代办哪些事务。",
|
|
2045
|
-
"title": "一个人工智能代理请求访问权限",
|
|
2046
|
-
"usageTimes_one": "{{count}} 时间",
|
|
2047
|
-
"usageTimes_other": "{{count}} 次数",
|
|
2048
|
-
"usageWithLabel": "{{uses}} {{label}}"
|
|
2049
|
-
}
|
|
2050
|
-
},
|
|
2051
2026
|
"support": {
|
|
2052
2027
|
"approved": "您已获得批准",
|
|
2053
2028
|
"connected": "连接",
|
|
@@ -2171,6 +2146,7 @@ var zh_CN_default = {
|
|
|
2171
2146
|
"addressSearch": "输入地址",
|
|
2172
2147
|
"dlState": { "searchPlaceholder": "搜索州" },
|
|
2173
2148
|
"enterManually": "手动输入",
|
|
2149
|
+
"enterYourDetails": "请输入您的详细信息",
|
|
2174
2150
|
"errors": {
|
|
2175
2151
|
"ARPostalCodeInvalidFormat": "请输入有效的阿根廷邮政编码(格式:A1111AAA)",
|
|
2176
2152
|
"CAPostalCodeInvalidFormat": "请输入有效的加拿大邮政编码(格式:A1A 1A1)。",
|
|
@@ -2222,9 +2198,13 @@ var zh_CN_default = {
|
|
|
2222
2198
|
"addressDetailsSection": "详细地址",
|
|
2223
2199
|
"addressLine2": "2 号线",
|
|
2224
2200
|
"apartment": "公寓、套房或单元编号",
|
|
2201
|
+
"area": "区域",
|
|
2225
2202
|
"BR": "巴西",
|
|
2226
2203
|
"brazilian": "巴西",
|
|
2227
2204
|
"brazilianBornAbroad": "在国外出生的巴西人",
|
|
2205
|
+
"buildingName": "楼宇名称",
|
|
2206
|
+
"canada": "加拿大",
|
|
2207
|
+
"chooseDlState": "驾驶执照州",
|
|
2228
2208
|
"chooseState": "国家",
|
|
2229
2209
|
"city": "城市",
|
|
2230
2210
|
"CN": "中国",
|
|
@@ -2251,10 +2231,12 @@ var zh_CN_default = {
|
|
|
2251
2231
|
"last4SSN": "最后 4 位 SSN",
|
|
2252
2232
|
"lastName": "姓氏",
|
|
2253
2233
|
"maternalSurname": "母姓",
|
|
2234
|
+
"mexico": "墨西哥",
|
|
2254
2235
|
"middleName": "中间名",
|
|
2255
2236
|
"nationality": "国籍",
|
|
2256
2237
|
"naturalizedBrazilian": "入籍巴西",
|
|
2257
2238
|
"optional": "可选",
|
|
2239
|
+
"otherCountry": "另一个国家",
|
|
2258
2240
|
"panNumber": "PAN 号码",
|
|
2259
2241
|
"passportNumber": "护照号码",
|
|
2260
2242
|
"phIdTypeGsis": "GSIS",
|
|
@@ -2288,6 +2270,7 @@ var zh_CN_default = {
|
|
|
2288
2270
|
"surname": "您的姓氏"
|
|
2289
2271
|
},
|
|
2290
2272
|
"processing": "正在处理...",
|
|
2273
|
+
"progressSteps": "进展步骤",
|
|
2291
2274
|
"submitButton": "继续",
|
|
2292
2275
|
"success": "验证已提交,进入下一步。",
|
|
2293
2276
|
"successTitle": "eKYC 已验证!",
|
|
@@ -2415,6 +2398,7 @@ var zh_CN_default = {
|
|
|
2415
2398
|
"businessName": "企业名称",
|
|
2416
2399
|
"continue": "继续",
|
|
2417
2400
|
"country": "国家",
|
|
2401
|
+
"dateOfIncorporation": "注册日期",
|
|
2418
2402
|
"processing": "加工",
|
|
2419
2403
|
"title": "企业观察清单"
|
|
2420
2404
|
},
|