@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,483 +0,0 @@
|
|
|
1
|
-
import { c as I18N_LOCAL, h as createI18n, m as setI18nInstance, p as hasI18nInstance, s as useTranslationWithFallback } from "../devWarn-Cus67U3P.js";
|
|
2
|
-
import { b as u, d as T, f as _, l as A, m as d, x as G, y } from "../vendor-preact-HIccnts1.js";
|
|
3
|
-
import { a as getStandaloneSetupPolicy } from "../dashboardTheme-DmmLPc5-.js";
|
|
4
|
-
import { b as PrizmaButton } from "../icons-Bz641AZd.js";
|
|
5
|
-
import { p as cn } from "../spacer-BMVbQdv1.js";
|
|
6
|
-
import { t as Page } from "../page-BR1C3Nzj.js";
|
|
7
|
-
import { a as TerminalErrorPage, b as useManager, t as preloadOptionalDashboardTheme } from "../hooks-CE8vvsR8.js";
|
|
8
|
-
import { t as TransitionSpinner } from "../transitionSpinner-BYT6Y26d.js";
|
|
9
|
-
import { t as IncodeComponent } from "../incodeComponent-C1TMotqV.js";
|
|
10
|
-
import { t as Checkbox } from "../checkbox-COiob4-f.js";
|
|
11
|
-
import "../withEndScreenTexts-oHy-aDwN.js";
|
|
12
|
-
import { t as IncodeWorkflow } from "../workflow-CXjNrouG.js";
|
|
13
|
-
import { StepUpError, StepUpError as StepUpError$1, createStepUpInitMessage, createStepUpManager, readHostedPageMessage, validateStepUpOptions } from "@incodetech/core/step-up";
|
|
14
|
-
//#region src/modules/step-up/stepUpHostedFrame.tsx
|
|
15
|
-
/**
|
|
16
|
-
* Adds `permissionsUi` to the URL fragment, next to what is already there
|
|
17
|
-
* (session token, stepUpId, returnOrigin). The fragment never reaches a
|
|
18
|
-
* server. Works on the raw text: re-serializing through `URLSearchParams`
|
|
19
|
-
* would re-encode the token (`+`, `/`, `=`). An existing `permissionsUi`
|
|
20
|
-
* entry is replaced; every other entry is kept byte for byte.
|
|
21
|
-
*/
|
|
22
|
-
function withPermissionsUi(url, permissionsUi) {
|
|
23
|
-
const hashAt = url.indexOf("#");
|
|
24
|
-
const base = hashAt === -1 ? url : url.slice(0, hashAt);
|
|
25
|
-
const kept = (hashAt === -1 ? "" : url.slice(hashAt + 1)).split("&").filter((entry) => entry !== "" && !entry.startsWith("permissionsUi="));
|
|
26
|
-
kept.push(`permissionsUi=${encodeURIComponent(permissionsUi)}`);
|
|
27
|
-
return `${base}#${kept.join("&")}`;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Shows the hosted step-up page in an iframe (contract v0.2 §6.6). On its
|
|
31
|
-
* `ready`, posts it `init` (permissions + this page's origin) with target
|
|
32
|
-
* origin exactly `origin`, never `'*'`. Only messages from this iframe's own
|
|
33
|
-
* window are read; a tagged one from any origin but exactly `origin` is a
|
|
34
|
-
* mismatch.
|
|
35
|
-
*
|
|
36
|
-
* The listener is registered in a layout effect, in the same task that sets
|
|
37
|
-
* the iframe `src`, so a page that loads fast and sends a single `ready`
|
|
38
|
-
* cannot post before anyone listens. If no `ready` arrives within
|
|
39
|
-
* `readyTimeoutMs`, it fails with `VERIFICATION_ERROR` (`READY_TIMEOUT`).
|
|
40
|
-
*/
|
|
41
|
-
var StepUpHostedFrame = ({ url, origin, stepUpId, permissions, permissionsUi, readyTimeoutMs, onFinished, onDenied, onFailed, onOriginMismatch }) => {
|
|
42
|
-
const { t } = useTranslationWithFallback();
|
|
43
|
-
const frameRef = A(null);
|
|
44
|
-
const src = T(() => withPermissionsUi(url, permissionsUi), [url, permissionsUi]);
|
|
45
|
-
const latest = A({
|
|
46
|
-
permissions,
|
|
47
|
-
onFinished,
|
|
48
|
-
onDenied,
|
|
49
|
-
onFailed,
|
|
50
|
-
onOriginMismatch
|
|
51
|
-
});
|
|
52
|
-
latest.current = {
|
|
53
|
-
permissions,
|
|
54
|
-
onFinished,
|
|
55
|
-
onDenied,
|
|
56
|
-
onFailed,
|
|
57
|
-
onOriginMismatch
|
|
58
|
-
};
|
|
59
|
-
_(() => {
|
|
60
|
-
let readyTimer = setTimeout(() => {
|
|
61
|
-
readyTimer = void 0;
|
|
62
|
-
const message = `The hosted step-up page sent no ready within ${readyTimeoutMs} ms`;
|
|
63
|
-
latest.current.onFailed("VERIFICATION_ERROR", message, {
|
|
64
|
-
code: "READY_TIMEOUT",
|
|
65
|
-
message
|
|
66
|
-
});
|
|
67
|
-
}, readyTimeoutMs);
|
|
68
|
-
const clearReadyTimer = () => {
|
|
69
|
-
if (readyTimer === void 0) return;
|
|
70
|
-
clearTimeout(readyTimer);
|
|
71
|
-
readyTimer = void 0;
|
|
72
|
-
};
|
|
73
|
-
const handleMessage = (event) => {
|
|
74
|
-
const frameWindow = frameRef.current?.contentWindow;
|
|
75
|
-
if (!frameWindow || event.source !== frameWindow) return;
|
|
76
|
-
const message = readHostedPageMessage({
|
|
77
|
-
origin: event.origin,
|
|
78
|
-
data: event.data
|
|
79
|
-
}, origin, stepUpId);
|
|
80
|
-
const current = latest.current;
|
|
81
|
-
if (message.kind !== "ignored") clearReadyTimer();
|
|
82
|
-
switch (message.kind) {
|
|
83
|
-
case "ready":
|
|
84
|
-
clearReadyTimer();
|
|
85
|
-
frameWindow.postMessage(createStepUpInitMessage(current.permissions, window.location.origin), origin);
|
|
86
|
-
return;
|
|
87
|
-
case "finished":
|
|
88
|
-
current.onFinished(message.approvedScopes);
|
|
89
|
-
return;
|
|
90
|
-
case "error": {
|
|
91
|
-
if (message.code === "USER_DENIED") {
|
|
92
|
-
current.onDenied();
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
const detail = {
|
|
96
|
-
code: message.code,
|
|
97
|
-
...message.message ? { message: message.message } : {}
|
|
98
|
-
};
|
|
99
|
-
if (message.code === "FACE_CHECK_FAILED") current.onFailed("FACE_CHECK_FAILED", message.message ?? "The hosted page reported a failed face check", detail);
|
|
100
|
-
else if (message.code === "VERIFICATION_PENDING") current.onFailed("VERIFICATION_PENDING", message.message ?? "The verification has no result yet", detail);
|
|
101
|
-
else current.onFailed("VERIFICATION_ERROR", message.message ?? `The hosted page reported ${message.code}`, detail);
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
case "originMismatch":
|
|
105
|
-
current.onOriginMismatch(event.origin);
|
|
106
|
-
return;
|
|
107
|
-
default: return;
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
window.addEventListener("message", handleMessage);
|
|
111
|
-
return () => {
|
|
112
|
-
clearReadyTimer();
|
|
113
|
-
window.removeEventListener("message", handleMessage);
|
|
114
|
-
};
|
|
115
|
-
}, [
|
|
116
|
-
origin,
|
|
117
|
-
stepUpId,
|
|
118
|
-
readyTimeoutMs
|
|
119
|
-
]);
|
|
120
|
-
return /* @__PURE__ */ u("div", {
|
|
121
|
-
class: "IncodeStepUpFrameContainer",
|
|
122
|
-
children: /* @__PURE__ */ u("iframe", {
|
|
123
|
-
ref: frameRef,
|
|
124
|
-
class: "IncodeStepUpFrame",
|
|
125
|
-
src,
|
|
126
|
-
title: t("stepUp.hostedFrame.title"),
|
|
127
|
-
allow: "camera; microphone; geolocation; fullscreen",
|
|
128
|
-
"data-testid": "step-up-frame"
|
|
129
|
-
})
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region src/modules/step-up/stepUpPermissionsScreen.tsx
|
|
134
|
-
var DURATION_KEYS = {
|
|
135
|
-
days: "stepUp.duration.days",
|
|
136
|
-
hours: "stepUp.duration.hours",
|
|
137
|
-
minutes: "stepUp.duration.minutes",
|
|
138
|
-
seconds: "stepUp.duration.seconds"
|
|
139
|
-
};
|
|
140
|
-
var SCOPES_HEADING_ID = "incode-step-up-scopes-heading";
|
|
141
|
-
var SCOPE_HINT_ID = "incode-step-up-scope-hint";
|
|
142
|
-
/**
|
|
143
|
-
* The permissions screen: purpose, scope checkboxes (the scopes Incode marked
|
|
144
|
-
* autoSelect start checked; Approve stays disabled while none is), duration
|
|
145
|
-
* when there is one, Approve / Deny. Renders manager state only; the rules
|
|
146
|
-
* live in the core step-up machine.
|
|
147
|
-
*/
|
|
148
|
-
var StepUpPermissionsScreen = ({ state, manager }) => {
|
|
149
|
-
const { t, i18n } = useTranslationWithFallback();
|
|
150
|
-
const tx = (key, values) => t(key, {
|
|
151
|
-
defaultValue: I18N_LOCAL[key],
|
|
152
|
-
...values
|
|
153
|
-
});
|
|
154
|
-
const plural = (key, count) => t(key, {
|
|
155
|
-
count,
|
|
156
|
-
defaultValue: I18N_LOCAL[`${key}_other`],
|
|
157
|
-
defaultValue_one: I18N_LOCAL[`${key}_one`],
|
|
158
|
-
defaultValue_other: I18N_LOCAL[`${key}_other`]
|
|
159
|
-
});
|
|
160
|
-
const formatNumber = (value) => {
|
|
161
|
-
try {
|
|
162
|
-
return new Intl.NumberFormat(i18n.language).format(value);
|
|
163
|
-
} catch {
|
|
164
|
-
return String(value);
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
const describeLimit = (limit) => {
|
|
168
|
-
let usage;
|
|
169
|
-
if (limit.usageLimit !== void 0) usage = limit.usageLimitLabel ? tx("stepUp.permissions.usageWithLabel", {
|
|
170
|
-
uses: formatNumber(limit.usageLimit),
|
|
171
|
-
label: limit.usageLimitLabel
|
|
172
|
-
}) : plural("stepUp.permissions.usageTimes", limit.usageLimit);
|
|
173
|
-
if (limit.budgetLimit === void 0) return usage ? tx("stepUp.permissions.limitUsage", { usage }) : void 0;
|
|
174
|
-
const amount = formatNumber(limit.budgetLimit);
|
|
175
|
-
return usage ? tx("stepUp.permissions.limitBudgetAndUsage", {
|
|
176
|
-
amount,
|
|
177
|
-
usage
|
|
178
|
-
}) : tx("stepUp.permissions.limitBudget", { amount });
|
|
179
|
-
};
|
|
180
|
-
const duration = plural(DURATION_KEYS[state.duration.unit], state.duration.count);
|
|
181
|
-
const [changed, setChanged] = d(false);
|
|
182
|
-
return /* @__PURE__ */ u(Page, {
|
|
183
|
-
className: "IncodeStepUpPermissions IncodeScrollablePage",
|
|
184
|
-
title: t("stepUp.permissions.title"),
|
|
185
|
-
subtitle: state.purpose ?? t("stepUp.permissions.subtitle"),
|
|
186
|
-
"data-testid": "step-up-permissions",
|
|
187
|
-
children: /* @__PURE__ */ u("div", {
|
|
188
|
-
class: "IncodeStepUpPermissionsContent",
|
|
189
|
-
children: [/* @__PURE__ */ u("div", {
|
|
190
|
-
class: "IncodeStepUpPermissionsBody",
|
|
191
|
-
children: [
|
|
192
|
-
/* @__PURE__ */ u("div", {
|
|
193
|
-
class: "IncodeStepUpScopeList",
|
|
194
|
-
role: "group",
|
|
195
|
-
"aria-labelledby": SCOPES_HEADING_ID,
|
|
196
|
-
"aria-describedby": state.canApprove ? void 0 : SCOPE_HINT_ID,
|
|
197
|
-
children: [/* @__PURE__ */ u("p", {
|
|
198
|
-
id: SCOPES_HEADING_ID,
|
|
199
|
-
class: "IncodeStepUpScopesHeading",
|
|
200
|
-
children: t("stepUp.permissions.scopesLabel")
|
|
201
|
-
}), state.scopes.map((scope) => {
|
|
202
|
-
const id = `incode-step-up-scope-${scope.name}`;
|
|
203
|
-
const limitText = scope.limit ? describeLimit(scope.limit) : void 0;
|
|
204
|
-
const describedBy = [scope.description ? `${id}-description` : void 0, limitText ? `${id}-limit` : void 0].filter(Boolean).join(" ") || void 0;
|
|
205
|
-
return /* @__PURE__ */ u(Checkbox, {
|
|
206
|
-
id,
|
|
207
|
-
class: "IncodeStepUpScope",
|
|
208
|
-
size: "s",
|
|
209
|
-
name: "scopes",
|
|
210
|
-
value: scope.name,
|
|
211
|
-
checked: scope.checked,
|
|
212
|
-
onChange: () => {
|
|
213
|
-
setChanged(true);
|
|
214
|
-
manager.toggleScope(scope.name);
|
|
215
|
-
},
|
|
216
|
-
"aria-labelledby": `${id}-name`,
|
|
217
|
-
"aria-describedby": describedBy,
|
|
218
|
-
label: /* @__PURE__ */ u("span", {
|
|
219
|
-
class: "IncodeStepUpScopeLabel",
|
|
220
|
-
children: [
|
|
221
|
-
/* @__PURE__ */ u("span", {
|
|
222
|
-
id: `${id}-name`,
|
|
223
|
-
class: "IncodeStepUpScopeName",
|
|
224
|
-
children: scope.displayName
|
|
225
|
-
}),
|
|
226
|
-
scope.description ? /* @__PURE__ */ u("span", {
|
|
227
|
-
id: `${id}-description`,
|
|
228
|
-
class: "IncodeStepUpScopeDetail",
|
|
229
|
-
children: scope.description
|
|
230
|
-
}) : null,
|
|
231
|
-
limitText ? /* @__PURE__ */ u("span", {
|
|
232
|
-
id: `${id}-limit`,
|
|
233
|
-
class: "IncodeStepUpScopeDetail",
|
|
234
|
-
"data-testid": `step-up-limit-${scope.name}`,
|
|
235
|
-
children: limitText
|
|
236
|
-
}) : null
|
|
237
|
-
]
|
|
238
|
-
}),
|
|
239
|
-
"data-testid": `step-up-scope-${scope.name}`
|
|
240
|
-
}, scope.name);
|
|
241
|
-
})]
|
|
242
|
-
}),
|
|
243
|
-
/* @__PURE__ */ u("p", {
|
|
244
|
-
class: "IncodeStepUpDuration",
|
|
245
|
-
"data-testid": "step-up-duration",
|
|
246
|
-
children: tx("stepUp.permissions.duration", { duration })
|
|
247
|
-
}),
|
|
248
|
-
state.canApprove ? null : /* @__PURE__ */ u("p", {
|
|
249
|
-
id: SCOPE_HINT_ID,
|
|
250
|
-
class: cn("IncodeStepUpScopeHint", changed && "IncodeStepUpScopeHintError"),
|
|
251
|
-
role: changed ? "alert" : void 0,
|
|
252
|
-
"data-testid": "step-up-scope-hint",
|
|
253
|
-
children: t("stepUp.permissions.scopeRequired")
|
|
254
|
-
})
|
|
255
|
-
]
|
|
256
|
-
}), /* @__PURE__ */ u("div", {
|
|
257
|
-
class: "IncodeStepUpActions",
|
|
258
|
-
children: [/* @__PURE__ */ u(PrizmaButton, {
|
|
259
|
-
variant: "primary",
|
|
260
|
-
size: "L",
|
|
261
|
-
className: cn("IncodeButton IncodeButtonPrimary IncodeButtonL IncodeStepUpApprove", state.saving && "IncodeButtonLoading"),
|
|
262
|
-
"data-testid": "step-up-approve",
|
|
263
|
-
disabled: !state.canApprove || state.saving,
|
|
264
|
-
loading: state.saving,
|
|
265
|
-
onClick: () => manager.approve(),
|
|
266
|
-
children: t("stepUp.permissions.approve")
|
|
267
|
-
}), /* @__PURE__ */ u(PrizmaButton, {
|
|
268
|
-
variant: "secondary",
|
|
269
|
-
size: "L",
|
|
270
|
-
className: "IncodeButton IncodeButtonSecondary IncodeButtonL IncodeStepUpDeny",
|
|
271
|
-
"data-testid": "step-up-deny",
|
|
272
|
-
disabled: state.saving,
|
|
273
|
-
onClick: () => manager.deny(),
|
|
274
|
-
children: t("stepUp.permissions.deny")
|
|
275
|
-
})]
|
|
276
|
-
})]
|
|
277
|
-
})
|
|
278
|
-
});
|
|
279
|
-
};
|
|
280
|
-
//#endregion
|
|
281
|
-
//#region src/modules/step-up/step-up.tsx
|
|
282
|
-
var THEME_WAIT_MS = 2e3;
|
|
283
|
-
/**
|
|
284
|
-
* A permissions screen shown before the face check comes before the workflow
|
|
285
|
-
* that would load the tenant theme, so load it here with the step-up's own
|
|
286
|
-
* session token: embedded mode always has one, while the host's
|
|
287
|
-
* `setup({ token })` may have none. `setup({ theme: false })` still skips it.
|
|
288
|
-
*/
|
|
289
|
-
function useThemeBeforePermissions(options) {
|
|
290
|
-
const needsTheme = options.mode === "embedded" && options.permissionsUi === "sdk" && options.permissionsOrder === "beforeFaceCheck" && !options.disableDashboardTheme && Boolean(options.sessionToken) && getStandaloneSetupPolicy().theme.enabled;
|
|
291
|
-
const [ready, setReady] = d(() => !needsTheme);
|
|
292
|
-
y(() => {
|
|
293
|
-
if (ready) return;
|
|
294
|
-
let active = true;
|
|
295
|
-
const show = () => {
|
|
296
|
-
if (active) setReady(true);
|
|
297
|
-
};
|
|
298
|
-
const timer = setTimeout(show, THEME_WAIT_MS);
|
|
299
|
-
preloadOptionalDashboardTheme({
|
|
300
|
-
...getStandaloneSetupPolicy(),
|
|
301
|
-
token: options.sessionToken
|
|
302
|
-
}, void 0).then(show);
|
|
303
|
-
return () => {
|
|
304
|
-
active = false;
|
|
305
|
-
clearTimeout(timer);
|
|
306
|
-
};
|
|
307
|
-
}, [ready, options.sessionToken]);
|
|
308
|
-
return ready;
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Step-up component: the workflow in token mode (or the hosted page in an
|
|
312
|
-
* iframe), then the permissions screen, then `onFinish`. Mounted by
|
|
313
|
-
* {@link renderStepUp}.
|
|
314
|
-
*/
|
|
315
|
-
var IncodeStepUp = ({ options }) => {
|
|
316
|
-
const [state, manager] = useManager(() => createStepUpManager({
|
|
317
|
-
stepUpId: options.stepUpId,
|
|
318
|
-
permissions: options.permissions,
|
|
319
|
-
permissionsUi: options.permissionsUi,
|
|
320
|
-
permissionsOrder: options.permissionsOrder,
|
|
321
|
-
hostSavesPermissions: options.onPermissionsApproved !== void 0
|
|
322
|
-
}), { autoLoad: false });
|
|
323
|
-
const themeReady = useThemeBeforePermissions(options);
|
|
324
|
-
const mountedRef = A(true);
|
|
325
|
-
y(() => () => {
|
|
326
|
-
mountedRef.current = false;
|
|
327
|
-
}, []);
|
|
328
|
-
const saving = state.status === "permissions" && state.saving;
|
|
329
|
-
const saveStartedRef = A(false);
|
|
330
|
-
y(() => {
|
|
331
|
-
if (!saving || saveStartedRef.current || state.status !== "permissions") return;
|
|
332
|
-
saveStartedRef.current = true;
|
|
333
|
-
const approvedScopes = state.scopes.filter((scope) => scope.checked).map((scope) => scope.name);
|
|
334
|
-
Promise.resolve().then(() => options.onPermissionsApproved?.({
|
|
335
|
-
stepUpId: options.stepUpId,
|
|
336
|
-
approvedScopes
|
|
337
|
-
})).then(() => {
|
|
338
|
-
if (mountedRef.current) manager.permissionsSaved();
|
|
339
|
-
}, (error) => {
|
|
340
|
-
if (!mountedRef.current) return;
|
|
341
|
-
manager.permissionsSaveFailed(error instanceof Error ? error.message : String(error));
|
|
342
|
-
});
|
|
343
|
-
}, [
|
|
344
|
-
saving,
|
|
345
|
-
state,
|
|
346
|
-
options,
|
|
347
|
-
manager
|
|
348
|
-
]);
|
|
349
|
-
const firedRef = A(false);
|
|
350
|
-
const [mismatchOrigin, setMismatchOrigin] = d();
|
|
351
|
-
y(() => {
|
|
352
|
-
if (firedRef.current) return;
|
|
353
|
-
let notify;
|
|
354
|
-
if (mismatchOrigin !== void 0) notify = () => options.onError?.(new StepUpError$1("IFRAME_ORIGIN_MISMATCH", `The step-up frame posted from ${mismatchOrigin || "an unknown origin"}, expected ${options.onboardingOrigin ?? ""}`, options.stepUpId));
|
|
355
|
-
else if (state.status === "finished") {
|
|
356
|
-
const result = state.result;
|
|
357
|
-
notify = () => options.onFinish(result);
|
|
358
|
-
} else if (state.status === "closed") notify = () => options.onError?.(new StepUpError$1("USER_DENIED", "The user denied the permissions", options.stepUpId));
|
|
359
|
-
else if (state.status === "error") {
|
|
360
|
-
const { code, error, detail } = state;
|
|
361
|
-
notify = () => options.onError?.(new StepUpError$1(code, error, options.stepUpId, detail));
|
|
362
|
-
}
|
|
363
|
-
if (!notify) return;
|
|
364
|
-
firedRef.current = true;
|
|
365
|
-
queueMicrotask(notify);
|
|
366
|
-
}, [
|
|
367
|
-
state,
|
|
368
|
-
options,
|
|
369
|
-
mismatchOrigin
|
|
370
|
-
]);
|
|
371
|
-
if (mismatchOrigin !== void 0) return null;
|
|
372
|
-
if (state.status === "permissions" && !themeReady) return /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u("div", {
|
|
373
|
-
class: "IncodeStepUp",
|
|
374
|
-
children: /* @__PURE__ */ u(TransitionSpinner, { renderMode: "spinnerOnly" })
|
|
375
|
-
}) });
|
|
376
|
-
if (state.status === "verifying") {
|
|
377
|
-
if (options.mode === "hosted" && options.onboardingUrl) return /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u("div", {
|
|
378
|
-
class: "IncodeStepUp",
|
|
379
|
-
children: /* @__PURE__ */ u(StepUpHostedFrame, {
|
|
380
|
-
url: options.onboardingUrl,
|
|
381
|
-
origin: options.onboardingOrigin ?? "",
|
|
382
|
-
stepUpId: options.stepUpId,
|
|
383
|
-
permissions: options.permissions,
|
|
384
|
-
permissionsUi: options.permissionsUi,
|
|
385
|
-
readyTimeoutMs: options.readyTimeoutMs,
|
|
386
|
-
onOriginMismatch: setMismatchOrigin,
|
|
387
|
-
onFinished: (approvedScopes) => manager.hostedFinished(approvedScopes),
|
|
388
|
-
onDenied: () => manager.hostedDenied(),
|
|
389
|
-
onFailed: (code, message, detail) => manager.verificationFailed(message, code, detail)
|
|
390
|
-
})
|
|
391
|
-
}) });
|
|
392
|
-
return /* @__PURE__ */ u("div", {
|
|
393
|
-
class: "IncodeStepUp",
|
|
394
|
-
children: /* @__PURE__ */ u(IncodeWorkflow, {
|
|
395
|
-
config: {
|
|
396
|
-
token: options.sessionToken,
|
|
397
|
-
...options.interviewId ? { interviewId: options.interviewId } : {},
|
|
398
|
-
...options.lang ? { lang: options.lang } : {},
|
|
399
|
-
...options.disableDashboardTheme ? { disableDashboardTheme: true } : {}
|
|
400
|
-
},
|
|
401
|
-
onFinish: (result) => manager.workflowFinished(result),
|
|
402
|
-
onError: (error, errorCode, moduleErrorCode) => {
|
|
403
|
-
const code = moduleErrorCode ?? (errorCode !== void 0 ? String(errorCode) : void 0);
|
|
404
|
-
manager.verificationFailed(error ?? "Verification failed", "VERIFICATION_ERROR", {
|
|
405
|
-
...code ? { code } : {},
|
|
406
|
-
...error ? { message: error } : {}
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
})
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
if (state.status === "permissions") return /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u("div", {
|
|
413
|
-
class: "IncodeStepUp",
|
|
414
|
-
children: /* @__PURE__ */ u(StepUpPermissionsScreen, {
|
|
415
|
-
state,
|
|
416
|
-
manager
|
|
417
|
-
})
|
|
418
|
-
}) });
|
|
419
|
-
if (state.status === "error") return /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u("div", {
|
|
420
|
-
class: "IncodeStepUp",
|
|
421
|
-
children: /* @__PURE__ */ u(TerminalErrorPage, { retryable: false })
|
|
422
|
-
}) });
|
|
423
|
-
return null;
|
|
424
|
-
};
|
|
425
|
-
/**
|
|
426
|
-
* The live mount per container. A new `renderStepUp` on the same container
|
|
427
|
-
* replaces it; an older handle's `unmount` then does nothing.
|
|
428
|
-
*/
|
|
429
|
-
var activeMounts = /* @__PURE__ */ new WeakMap();
|
|
430
|
-
function isElement(value) {
|
|
431
|
-
return typeof value === "object" && value !== null && value.nodeType === 1;
|
|
432
|
-
}
|
|
433
|
-
/**
|
|
434
|
-
* Renders a step-up into `container`: the agent class's workflow in token
|
|
435
|
-
* mode and the permissions screen (skipped with `permissionsUi: 'none'`),
|
|
436
|
-
* in the order `permissionsOrder` sets (the permissions screen first by
|
|
437
|
-
* default, `beforeFaceCheck`), then
|
|
438
|
-
* `onFinish({ stepUpId, approvedScopes })` (`approvedScopes: []` with
|
|
439
|
-
* `permissionsUi: 'none'`). Errors reach `onError` as a `StepUpError` with
|
|
440
|
-
* `code` `USER_DENIED`, `FACE_CHECK_FAILED` (the check ran and failed),
|
|
441
|
-
* `VERIFICATION_PENDING` (no result yet), `VERIFICATION_ERROR` (could not
|
|
442
|
-
* finish; `detail` has the original code and message) or
|
|
443
|
-
* `IFRAME_ORIGIN_MISMATCH`.
|
|
444
|
-
*
|
|
445
|
-
* With `mode: 'hosted'` it frames `onboardingUrl` instead; the hosted page
|
|
446
|
-
* runs the face check and draws the permissions (it receives them by
|
|
447
|
-
* `postMessage`, contract v0.2 §6.6) and the SDK relays its result.
|
|
448
|
-
*
|
|
449
|
-
* `onFinish` is only a hint: the bank server's status read
|
|
450
|
-
* (`GET /step-ups/{id}`) is what checks the face check and activates the
|
|
451
|
-
* mandate.
|
|
452
|
-
*
|
|
453
|
-
* A failed or denied step-up is final. To retry, the bank asks for a new
|
|
454
|
-
* decision and starts a new step-up (new `stepUpId` and session token), then
|
|
455
|
-
* calls `renderStepUp` with those. The same container is fine: the new call
|
|
456
|
-
* replaces the earlier step-up with a fresh one (new state, new callbacks),
|
|
457
|
-
* and the earlier handle's `unmount` then does nothing.
|
|
458
|
-
*
|
|
459
|
-
* `mode: 'embedded'` (the default) needs `setup({ apiURL })` first, as for `<incode-workflow>`.
|
|
460
|
-
* Import from `@incodetech/web/step-up` and load
|
|
461
|
-
* `@incodetech/web/step-up/styles.css`.
|
|
462
|
-
*
|
|
463
|
-
* The step-up fills `container`'s height, as the other SDK elements do. Give
|
|
464
|
-
* the container a height to size it; without one it is 560px tall.
|
|
465
|
-
*
|
|
466
|
-
* @throws StepUpError with code `INVALID_OPTIONS` for bad options.
|
|
467
|
-
*/
|
|
468
|
-
function renderStepUp(container, options) {
|
|
469
|
-
if (!isElement(container)) throw new StepUpError$1("INVALID_OPTIONS", "container must be an HTML element");
|
|
470
|
-
const normalized = validateStepUpOptions(options);
|
|
471
|
-
if (!hasI18nInstance()) setI18nInstance(createI18n(normalized.lang ? { lang: normalized.lang } : void 0));
|
|
472
|
-
G(null, container);
|
|
473
|
-
const mount = {};
|
|
474
|
-
activeMounts.set(container, mount);
|
|
475
|
-
G(/* @__PURE__ */ u(IncodeStepUp, { options: normalized }), container);
|
|
476
|
-
return { unmount() {
|
|
477
|
-
if (activeMounts.get(container) !== mount) return;
|
|
478
|
-
activeMounts.delete(container);
|
|
479
|
-
G(null, container);
|
|
480
|
-
} };
|
|
481
|
-
}
|
|
482
|
-
//#endregion
|
|
483
|
-
export { IncodeStepUp, StepUpError, renderStepUp };
|