@incodetech/web 2.4.1-agentic.2 → 2.4.1-agentic.4
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-ClGp0a23.js → GeolocationPermissionDenied-D94bdjyF.js} +6 -6
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{ageVerification-CtuJDuRV.js → ageVerification-BDOUlLgW.js} +6 -6
- package/dist/antifraud/antifraud.es.js +5 -5
- package/dist/{applyStudioConfig-C6-Ak0q6.js → applyStudioConfig-Bv6hDQPF.js} +2 -2
- package/dist/{ar-B5ToweVl.js → ar-Bvb3jWVl.js} +1 -1
- package/dist/{asset-Ctwd_20H.js → asset-CJZ1Ikp6.js} +12 -12
- package/dist/authentication/authentication.es.js +7 -7
- package/dist/{autoFocusTitle-CzaCWWW5.js → autoFocusTitle-CFQv2qm9.js} +2 -2
- package/dist/{back-horizontal-hint-qzSaNkEU.js → back-horizontal-hint-D5xvRtEe.js} +1 -1
- package/dist/{back-vertical-hint-DkYLOege.js → back-vertical-hint-DoKJSQhY.js} +1 -1
- package/dist/{baseTutorial-CF6WiVYt.js → baseTutorial-DnjmrpNP.js} +5 -5
- package/dist/{bottomSheet-DylE2INk.js → bottomSheet-TIGGgdUv.js} +3 -3
- package/dist/cameraOverlay-zes_uVXP.js +2 -0
- package/dist/{cameraOverlayHeader-CuVGnyXI.js → cameraOverlayHeader-BsPm1bpT.js} +5 -5
- package/dist/{cameraView-D9ZxLKtA.js → cameraView-B2u3A2er.js} +3 -3
- package/dist/{capture-0jMDSGCE.js → capture-BlTXqOcz.js} +22 -22
- package/dist/capture-Bqz-HuS4.js +2 -0
- package/dist/capture-C5nJvXPr.js +3 -0
- package/dist/{capture-BlGlXoTx.js → capture-O_LUwpuy.js} +12 -12
- package/dist/captureButtonIcon-D1yXASJj.js +1 -0
- package/dist/{captureFocusContext-9789qOe3.js → captureFocusContext-FqGx5csX.js} +11 -11
- package/dist/{captureFooter-B6WUFQCV.js → captureFooter-BrhVf38c.js} +5 -5
- package/dist/certificate-issuance/certificate-issuance.es.js +11 -11
- package/dist/{check-icon-BdHltEK6.js → check-icon-BcWK-zvF.js} +1 -1
- package/dist/{checkbox-BwUQ0Rs9.js → checkbox-Bag1GfVW.js} +4 -4
- package/dist/{chooser-CmG71-lh.js → chooser-CFskOXPE.js} +11 -11
- package/dist/{connectionError-DexRpKWs.js → connectionError-DFwg9dd_.js} +6 -6
- package/dist/consent/consent.es.js +11 -11
- package/dist/{countrySelector-C0OEKMqL.js → countrySelector-mMHRgbJz.js} +3 -3
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -5
- package/dist/curp-validation/curp-validation.es.js +15 -15
- package/dist/{customFields-DQgRumW0.js → customFields-BjBO-DPQ.js} +13 -13
- package/dist/{customWatchlist-BbC0fA-6.js → customWatchlist-CzpjJdT0.js} +8 -8
- package/dist/{dashboardTheme-DtXsx9IK.js → dashboardTheme-g7Uzl4ha.js} +1 -1
- package/dist/{dateInputComposed-1IcnucPq.js → dateInputComposed-BbKtrgYY.js} +5 -5
- package/dist/dateInputComposed-dlwceD7F.js +1 -0
- package/dist/{denied-CwdVWAUw.js → denied-DoR4blJ8.js} +8 -8
- package/dist/{deviceWallet-CMjguFJO.js → deviceWallet-B-EscwqS.js} +4 -4
- package/dist/{digitalIdRedirect-MNty16-5.js → digitalIdRedirect-DLDJL6C_.js} +4 -4
- package/dist/{digitalIdUpload-CUzTaoaI.js → digitalIdUpload-ArapuyPi.js} +9 -9
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/{documentCapture-Cs2zEfJD.js → documentCapture-0EpiaXMR.js} +22 -22
- package/dist/documentCapture-CrEUPnIL.js +2 -0
- package/dist/dropdownComposed-CSxkP-9c.js +1 -0
- package/dist/{dropdownComposed-x3ewHxbT.js → dropdownComposed-K3uWlHr4.js} +4 -4
- package/dist/dynamic-forms/dynamic-forms.es.js +14 -14
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-BMc0OYLc.js +2 -0
- package/dist/{ekybModule-C5hEBLMs.js → ekybModule-CCt2Hqv_.js} +15 -15
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-TVKk0qdS.js → ekycModule-CDh--b4e.js} +18 -18
- package/dist/ekycModule-uYip4GjM.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BMda_cf3.js → electronic-signature-CvIq-x1i.js} +11 -11
- package/dist/email/email.es.js +10 -10
- package/dist/{emailInput-BI8gWC0D.js → emailInput-D1pVzVa_.js} +4 -4
- package/dist/{errorContent-pPAgyy2i.js → errorContent-DI6cGFFZ.js} +6 -6
- package/dist/{es-419-DxKrJq7W.js → es-419-Bko3zYzE.js} +1 -1
- package/dist/{expiredId-DWjw94rT.js → expiredId-CyrlA1u0.js} +6 -6
- package/dist/extensibility.es.js +46 -46
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-CfYI0uwm.js +2 -0
- package/dist/{faceMatch-DV7NxYu_.js → faceMatch-DXcmxapF.js} +11 -11
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-D-HgOvTm.js +2 -0
- package/dist/{fieldComparison-CFLU1h6n.js → fieldComparison-hd_tMt7I.js} +10 -10
- package/dist/{fieldLabelHint-CjrLxBaj.js → fieldLabelHint-D51pJr0N.js} +1 -1
- package/dist/{finalSuccessScreen-C50L96j9.js → finalSuccessScreen-AFE-NL40.js} +14 -14
- package/dist/fiscal-qr/fiscal-qr.es.js +15 -15
- package/dist/{flipAnimation-8x-qdtF_.js → flipAnimation-DgBFOqyM.js} +5 -5
- package/dist/{flipCapturedCardEligibility-DLr9F2g2.js → flipCapturedCardEligibility-koOunXsJ.js} +4 -4
- package/dist/flow/flow.es.js +12 -12
- package/dist/{formField-CfQKYeGF.js → formField-CFzC_tYt.js} +3 -3
- package/dist/{front-horizontal-hint-DOphQZg2.js → front-horizontal-hint-CDHj9LQF.js} +1 -1
- package/dist/{front-vertical-hint-S6PcS9_m.js → front-vertical-hint-B_pU27Iv.js} +1 -1
- package/dist/geolocation/geolocation.es.js +10 -10
- package/dist/government-validation/government-validation.es.js +7 -7
- package/dist/{homeScreen-C3pPw52y.js → homeScreen-Ce5apPCj.js} +8 -8
- package/dist/{hooks-BFP0WaJM.js → hooks-BWLXnDcl.js} +8 -8
- package/dist/{i18n-Dp014ljG.js → i18n-BZhI6pGC.js} +109 -86
- package/dist/{icons-c-hFaG4L.js → icons-JOXfeNVq.js} +1 -1
- package/dist/id/id.es.js +39 -39
- package/dist/{id-back-of-card-Bk6ZQUE9.js → id-back-of-card-BEAthtU0.js} +1 -1
- package/dist/{id-back-of-card-vertical-BZo00s50.js → id-back-of-card-vertical-Ce0d7tp5.js} +1 -1
- package/dist/{id-front-of-card-BJ96se7u.js → id-front-of-card-DS0lS9jP.js} +1 -1
- package/dist/{id-front-of-card-vertical-DSfJB0lX.js → id-front-of-card-vertical-BLWn85NX.js} +1 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -12
- package/dist/id-verification/id-verification.es.js +6 -6
- package/dist/{idFlipTransition-DXdtXYza.js → idFlipTransition-MJ0llJqU.js} +13 -13
- package/dist/{idOcr-CjqfkRJ7.js → idOcr-Bu8a383y.js} +14 -14
- package/dist/identity-reuse/identity-reuse.es.js +10 -10
- package/dist/{incodeComponent-DtKh-UUm.js → incodeComponent-B6TUdSW0.js} +12 -12
- package/dist/{incodeModule-DCHXAeYU.js → incodeModule-DAOVFQmI.js} +5 -5
- package/dist/index.es.js +4 -4
- package/dist/inputComposed-DE4zOIm2.js +1 -0
- package/dist/{inputComposed-CmVsaHOa.js → inputComposed-DXTUInVH.js} +4 -4
- package/dist/{km-CCCb2Rnt.js → km-C4Ujxn70.js} +4 -4
- package/dist/kyb-checks/kyb-checks.es.js +1 -1
- package/dist/kybChecksModule-CJbbNkiQ.js +2 -0
- package/dist/{kybChecksModule-C6Y9Hxpr.js → kybChecksModule-DfaUFRzT.js} +13 -13
- package/dist/{lt-B2ZI-Cgu.js → lt-Ba0b__vv.js} +1 -1
- package/dist/{lv-BJnxtSYw.js → lv-LQ0FbdNS.js} +1 -1
- package/dist/{mandatoryConsent-BiQuEZRu.js → mandatoryConsent-F0yy-Ybh.js} +11 -11
- package/dist/{manualCaptureButton-Dw0MMSkc.js → manualCaptureButton-BT4H2SqV.js} +12 -12
- package/dist/{manualCaptureButton-BRSmPTeR.js → manualCaptureButton-CGytv0gD.js} +4 -4
- package/dist/{nl-e1gbmAFO.js → nl-igrFFZKa.js} +1 -1
- package/dist/{numberedStep-CeN77hnQ.js → numberedStep-CCwW7rAI.js} +1 -1
- package/dist/{optionAccessibleLabel-BTUieMxH.js → optionAccessibleLabel-CfmnhlZd.js} +6 -6
- package/dist/{otpInput-D3L3QhnR.js → otpInput-BD_Etg-s.js} +7 -7
- package/dist/{page-U6jZ7BBI.js → page-BaHe9yk-.js} +6 -6
- package/dist/{pageUiConfig-Qf6ItVv9.js → pageUiConfig-D68YQ5gl.js} +5 -5
- package/dist/{passport-horizontal-hint-Ddsh6fUS.js → passport-horizontal-hint-JdWoLKa5.js} +1 -1
- package/dist/{passport-vertical-hint-Dukxq6-T.js → passport-vertical-hint-BgtJXbvC.js} +1 -1
- package/dist/{passwordInputComposed-CW_1DcB8.js → passwordInputComposed-CGTGKm40.js} +5 -5
- package/dist/pdfViewer-BlOqv-t5.js +2 -0
- package/dist/{pdfViewer-BrqSEtbr.js → pdfViewer-DUrv7Jen.js} +4 -4
- package/dist/{permissions-3LgeouU9.js → permissions-K5U6ZKvv.js} +13 -13
- package/dist/phone/phone.es.js +11 -11
- package/dist/{phoneInputComposed-DlJMTavK.js → phoneInputComposed-BOV8kRk0.js} +5 -5
- package/dist/{preloadableLazy-C8_OYaTC.js → preloadableLazy-CauER0_6.js} +1 -1
- package/dist/{processing-B5EH7yNg.js → processing-Ceq2dMyt.js} +2 -2
- package/dist/{progressBar-CSpS29pV.js → progressBar-DueDHYB-.js} +2 -2
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/radioGroupComposed-OjEvWy7Y.js +1 -0
- package/dist/{radioGroupComposed-CW8ElYSR.js → radioGroupComposed-kaR9Jvk7.js} +4 -4
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +14 -14
- package/dist/{registerIncodeElement-oiLvm6xq.js → registerIncodeElement-DkDorW4-.js} +1 -1
- package/dist/{reload-icon-FD2e9Wet.js → reload-icon-iuOvlXo8.js} +1 -1
- package/dist/{resendTimer-D1H3gwkI.js → resendTimer-Do5EYeBY.js} +2 -2
- package/dist/{richText-sUdTiRDE.js → richText-DBGVN4P1.js} +1 -1
- package/dist/selfie/selfie.es.js +11 -11
- package/dist/signature/signature.es.js +9 -9
- package/dist/{sk-AB8sSlNw.js → sk-CEvuclu5.js} +2 -2
- package/dist/{smsTabContent-CBEKgzFv.js → smsTabContent-Djn3SmTb.js} +7 -7
- package/dist/{spacer-Jaru_3sb.js → spacer-B7en1YsW.js} +1 -1
- package/dist/{spinner-51btbot0.js → spinner-Bdb0Z7SD.js} +5 -5
- package/dist/{sr-Latn-DgT7eTG2.js → sr-Latn-BRMZunQT.js} +6 -6
- package/dist/{sr-YU-BBhB_G63.js → sr-YU-CqG6Fd63.js} +1 -1
- package/dist/step-up/step-up.es.js +486 -0
- package/dist/step-up/styles.css +2 -0
- package/dist/{tr-DKuVBwqW.js → tr-BMckqFMZ.js} +1 -1
- package/dist/{transitionSpinner-Di0XBAix.js → transitionSpinner-DAtrAN_6.js} +5 -5
- package/dist/{tutorial-C9psDR2i.js → tutorial-tQVIAllP.js} +4 -4
- package/dist/types/step-up.d.ts +82 -0
- package/dist/{typography-CiGhKJGx.js → typography-_6vuCfvg.js} +2 -2
- package/dist/{uiConfig-BJAuZQWc.js → uiConfig-71gkIpbB.js} +1 -1
- package/dist/{useCameraPreview-Bd7AYE9h.js → useCameraPreview-BML51Swe.js} +1 -1
- package/dist/{useCaptureHelpButton-Dj-jESrS.js → useCaptureHelpButton-CfW2pjZv.js} +2 -2
- package/dist/{useIsDarkTheme-Bu9CvKxW.js → useIsDarkTheme-Ci5PUppi.js} +1 -1
- package/dist/{useModuleLoader-BBCNkJmc.js → useModuleLoader-MHFwe5jf.js} +1 -1
- package/dist/{vendor-preact-DHGqBGMH.js → vendor-preact-HIccnts1.js} +1 -1
- package/dist/{verificationResult-Clxdxm_s.js → verificationResult-Bj5TODzq.js} +7 -7
- package/dist/video-selfie/video-selfie.es.js +16 -16
- package/dist/watchlist/watchlist.es.js +8 -8
- package/dist/{watchlistForBusiness-CpFp2EYX.js → watchlistForBusiness-C6FawOwv.js} +12 -12
- package/dist/{withEndScreenTexts-DhN_T_kp.js → withEndScreenTexts-CwPIZ4TD.js} +19 -19
- package/dist/workflow/workflow.es.js +1 -534
- package/dist/workflow-DQpDZrSE.js +535 -0
- package/package.json +11 -2
- package/dist/cameraOverlay-DNf0PEF4.js +0 -2
- package/dist/capture-DKBA5j5A.js +0 -3
- package/dist/capture-D_Dwrj1F.js +0 -2
- package/dist/captureButtonIcon-A9kn2E_m.js +0 -1
- package/dist/dateInputComposed-BFlCk-sg.js +0 -1
- package/dist/documentCapture-CnHv9nyT.js +0 -2
- package/dist/dropdownComposed-C9sLQE6i.js +0 -1
- package/dist/ekybModule-B5IEiSyi.js +0 -2
- package/dist/ekycModule-B7OFnP3H.js +0 -2
- package/dist/faceMatch-B2aMz3X2.js +0 -2
- package/dist/fieldComparison-BY2XXsp3.js +0 -2
- package/dist/inputComposed-DvGrso7g.js +0 -1
- package/dist/kybChecksModule-r3MIpFhS.js +0 -2
- package/dist/pdfViewer-rDnnHzmw.js +0 -2
- package/dist/radioGroupComposed-flIYNffL.js +0 -1
- /package/dist/{af-ZA-BKpmmWDe.js → af-ZA-DIzH6nAS.js} +0 -0
- /package/dist/{aligndevicelottie-BEKzL4SB.js → aligndevicelottie-DroBRtbt.js} +0 -0
- /package/dist/{am-CW_ro5Ws.js → am-Cf7FJoc7.js} +0 -0
- /package/dist/{ar-AE-D9h8UMbm.js → ar-AE-Dzb2Rxk5.js} +0 -0
- /package/dist/{ar-EG-DQqE9B26.js → ar-EG-C4dvMenK.js} +0 -0
- /package/dist/{az-DAZq-CQj.js → az-DNfZXnOg.js} +0 -0
- /package/dist/{back-tutorial-B9W63fa-.js → back-tutorial-ydxRtY-Y.js} +0 -0
- /package/dist/{backdevicelottie-DsN8QBV3.js → backdevicelottie-hv8vbwYH.js} +0 -0
- /package/dist/{blurdevicelottie-DkV7Kwo4.js → blurdevicelottie-Cgu4hKn7.js} +0 -0
- /package/dist/{bn-DRTyq2Y9.js → bn-CWiGvQvV.js} +0 -0
- /package/dist/{bs-B8q0B86-.js → bs-Dhx6bRUJ.js} +0 -0
- /package/dist/{ca-DvsHXRB-.js → ca-CKSE3E0A.js} +0 -0
- /package/dist/{ceb-pvlomXHV.js → ceb-Bz8oHYwV.js} +0 -0
- /package/dist/{cs-DB5PLEdt.js → cs-C2bGL1I6.js} +0 -0
- /package/dist/{cs-CZ-GgvnJLMj.js → cs-CZ-CNnAvyd9.js} +0 -0
- /package/dist/{da-DK-ZhpcfE_F.js → da-DK-JHByJNo1.js} +0 -0
- /package/dist/{de-DEBjzaow.js → de-C_MCfW1n.js} +0 -0
- /package/dist/{el-Dplr_D5N.js → el-C3AJc9LG.js} +0 -0
- /package/dist/{el-GR-IZ4reOR7.js → el-GR-DYpyaJb6.js} +0 -0
- /package/dist/{en-Db1L_u7B.js → en-CaspqW6a.js} +0 -0
- /package/dist/{en-DG-C6tsWvHi.js → en-DG-CipwLrxN.js} +0 -0
- /package/dist/{es-C5unKsaF.js → es-Dt7761yB.js} +0 -0
- /package/dist/{es-ES-sHbsufzT.js → es-ES-DvZ_YmDa.js} +0 -0
- /package/dist/{es-MX-Cd_DCR0A.js → es-MX-C-4os_uZ.js} +0 -0
- /package/dist/{et-BoGq2cx8.js → et-CEAVHPDJ.js} +0 -0
- /package/dist/{fa-IR-DuUxGXrf.js → fa-IR-iBrmNZC0.js} +0 -0
- /package/dist/{fi-FI-DMOBNTjA.js → fi-FI-Cl5J9IR8.js} +0 -0
- /package/dist/{flip-animation-DJVnWWL5.js → flip-animation-CJhh7l_J.js} +0 -0
- /package/dist/{fr-DSR-AP0e.js → fr-BgQ-r629.js} +0 -0
- /package/dist/{fr-CA-DZ8jlsp3.js → fr-CA-BhP0BJGG.js} +0 -0
- /package/dist/{frontdevicelottie-DiW1Wmya.js → frontdevicelottie-vyO3BJJe.js} +0 -0
- /package/dist/{glaredevicelottie-CK-fnX_s.js → glaredevicelottie-DrgkRjFh.js} +0 -0
- /package/dist/{he-N5dfJeyd.js → he-BQXCzS7U.js} +0 -0
- /package/dist/{hi-JR6K9zbd.js → hi-CEcagjkf.js} +0 -0
- /package/dist/{hmn-j2YA7FxW.js → hmn-fl1HaEtU.js} +0 -0
- /package/dist/{hr-8cOdwB0t.js → hr-BFryD77v.js} +0 -0
- /package/dist/{ht-DDNL4C__.js → ht-D3fmriv1.js} +0 -0
- /package/dist/{hu-CynQQUFQ.js → hu-BpNGpe6H.js} +0 -0
- /package/dist/{id-o_Yg0n8W.js → id-j8ftM81c.js} +0 -0
- /package/dist/{id-laser-h-6Am_cjM8.js → id-laser-h-CUz29uFc.js} +0 -0
- /package/dist/{id-laser-v-DXoF3flH.js → id-laser-v-Bnf10QJp.js} +0 -0
- /package/dist/{id-tutorial-DkKH3eTE.js → id-tutorial-DGwvKAMs.js} +0 -0
- /package/dist/{it-BXevrtHn.js → it-DKg04Qd8.js} +0 -0
- /package/dist/{ja-DiTXnTx-.js → ja-CUJHR7JN.js} +0 -0
- /package/dist/{ja-JP-D1IRWR-p.js → ja-JP-MTZ8VgW3.js} +0 -0
- /package/dist/{jv-Us70GzGp.js → jv-CImCHLmx.js} +0 -0
- /package/dist/{ka-BSsWQ4yU.js → ka-D6JGBkh5.js} +0 -0
- /package/dist/{kk-D5R6r4H7.js → kk-C_lpEHcV.js} +0 -0
- /package/dist/{ko-KP-JF4khv1Y.js → ko-KP-egEBh6uO.js} +0 -0
- /package/dist/{ko-kQioCg2w.js → ko-SpjVFkD5.js} +0 -0
- /package/dist/{ky-CLOemVjC.js → ky-D-LUhIg1.js} +0 -0
- /package/dist/{lo-tzHUt1CQ.js → lo-DMKZJL3M.js} +0 -0
- /package/dist/{lottie_light-B819EhaL.js → lottie_light-Bam05Bc9.js} +0 -0
- /package/dist/{mk-Cj7Iw2Q4.js → mk-khZFmLBx.js} +0 -0
- /package/dist/{mn-CA_rNxtz.js → mn-DlyqpXsq.js} +0 -0
- /package/dist/{ms-BydA1Zjz.js → ms-Dh9XMjdt.js} +0 -0
- /package/dist/{my-gFKufKaG.js → my-CWxULaK-.js} +0 -0
- /package/dist/{nb-NO-CDsGQbOZ.js → nb-NO-yS_USbTc.js} +0 -0
- /package/dist/{ne-Cyfi0vFI.js → ne-27HAitfz.js} +0 -0
- /package/dist/{passport-tutorial-D3Fpk-Tj.js → passport-tutorial-DoqqyBXo.js} +0 -0
- /package/dist/{pdf-Bd5QplFS.js → pdf-CKGcYdXK.js} +0 -0
- /package/dist/{pdf.worker.min-DzBNMoKS.js → pdf.worker.min-D0hm-8jN.js} +0 -0
- /package/dist/{pl-BSMcCWS-.js → pl-Cor8bhcX.js} +0 -0
- /package/dist/{pt-BNFC2quK.js → pt-BHKQVXpM.js} +0 -0
- /package/dist/{pt-BR-bH8DC2gH.js → pt-BR-Dlg1OvVr.js} +0 -0
- /package/dist/{pt-PT-B8PXmgwU.js → pt-PT-Cz6GmOKE.js} +0 -0
- /package/dist/{ro-DnN8QNYa.js → ro-DsgEsQQk.js} +0 -0
- /package/dist/{ru-DAwUFXHq.js → ru-QVAXxFmn.js} +0 -0
- /package/dist/{ru-RU-Coxt0VCU.js → ru-RU-DvSrql4A.js} +0 -0
- /package/dist/{sanitizeSvg-OdNh1mqY.js → sanitizeSvg-Dqsvc2EE.js} +0 -0
- /package/dist/{selfieTutorial-DnsRD1Z9.js → selfieTutorial-BTewRjM5.js} +0 -0
- /package/dist/{sl-6Dfzfi7s.js → sl-GJ71Zwpl.js} +0 -0
- /package/dist/{so-X5BdrDvV.js → so-D1c9Xzlb.js} +0 -0
- /package/dist/{sr-JHjMcbGs.js → sr-DVHv7mVV.js} +0 -0
- /package/dist/{sv-SE-CvX8mC8T.js → sv-SE-Xk1NnNNY.js} +0 -0
- /package/dist/{sw-CN0TdnY4.js → sw-B5LHr4Qt.js} +0 -0
- /package/dist/{th-BmFntKib.js → th-CEV6FB7A.js} +0 -0
- /package/dist/{th-TH-CWr4z3JK.js → th-TH-xqmYV2ex.js} +0 -0
- /package/dist/{tl-rzkk5P_n.js → tl-BaKBWydC.js} +0 -0
- /package/dist/{tl-PH-BRIbtBRN.js → tl-PH-Kvodhio6.js} +0 -0
- /package/dist/{uk-CXjqq4lX.js → uk-DbBc7UsG.js} +0 -0
- /package/dist/{uk-UA-BIE9WByU.js → uk-UA-ZRINk1V7.js} +0 -0
- /package/dist/{ur-vNGesC3r.js → ur-BdY8g0Yk.js} +0 -0
- /package/dist/{uz-Gmw1XRgv.js → uz-DtG0SIV2.js} +0 -0
- /package/dist/{vi-DTxxRUw0.js → vi-DQ6L1lUM.js} +0 -0
- /package/dist/{zh-CN-aB48G_R1.js → zh-CN-PcP__Skx.js} +0 -0
- /package/dist/{zh-DjtyfO4e.js → zh-DAbZ_UCS.js} +0 -0
- /package/dist/{zh-HANT-8p8SH8C3.js → zh-HANT-VyBpvKz2.js} +0 -0
- /package/dist/{zh-TW-CCsz9gKq.js → zh-TW-Ba3UOVe7.js} +0 -0
|
@@ -1122,7 +1122,7 @@ var sk_default = {
|
|
|
1122
1122
|
"confirm": "Pokračovať v rýchlom overení",
|
|
1123
1123
|
"continue": "Pokračujte v rýchlom overovaní",
|
|
1124
1124
|
"retry": "Skúste to znova",
|
|
1125
|
-
"scanNew": "Overiť pomocou
|
|
1125
|
+
"scanNew": "Overiť pomocou identifikačného čísla",
|
|
1126
1126
|
"skip": "Preskočiť",
|
|
1127
1127
|
"verify": "Overenie pomocou ID"
|
|
1128
1128
|
},
|
|
@@ -2344,7 +2344,7 @@ var sk_default = {
|
|
|
2344
2344
|
"idTypeMismatch": "Toto je iné ID",
|
|
2345
2345
|
"idTypeMismatchShowSameId": "Toto je iné identifikačné číslo. Ukážte, prosím, to isté identifikačné číslo, ktoré ste naskenovali predtým.",
|
|
2346
2346
|
"nameVerificationFailedTryAgain": "Overenie mena sa nepodarilo. Skúste to prosím znova.",
|
|
2347
|
-
"photoVerificationFailedTryAgain": "Overenie fotografie na doklad sa nepodarilo. Skúste to prosím znova."
|
|
2347
|
+
"photoVerificationFailedTryAgain": "Overenie fotografie na doklad totožnosti sa nepodarilo. Skúste to prosím znova."
|
|
2348
2348
|
},
|
|
2349
2349
|
"ifYouHavent": "Ak nie, skúste to znova.",
|
|
2350
2350
|
"imDone": "Áno, skončil som",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as q, b as u, m as d
|
|
3
|
-
import { r as SuccessIcon, u as ErrorIcon, x as PrizmaButton } from "./icons-
|
|
4
|
-
import { n as cn, t as Spacer } from "./spacer-
|
|
5
|
-
import { t as AutoFocusTitle } from "./autoFocusTitle-
|
|
6
|
-
import { n as useResendTimerAnnouncements, t as formatResendTimer } from "./resendTimer-
|
|
7
|
-
import { r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-
|
|
1
|
+
import { a as useTranslation, i as Trans } from "./i18n-BZhI6pGC.js";
|
|
2
|
+
import { T as k, _ as q, b as u, m as d } from "./vendor-preact-HIccnts1.js";
|
|
3
|
+
import { r as SuccessIcon, u as ErrorIcon, x as PrizmaButton } from "./icons-JOXfeNVq.js";
|
|
4
|
+
import { n as cn, t as Spacer } from "./spacer-B7en1YsW.js";
|
|
5
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-CFQv2qm9.js";
|
|
6
|
+
import { n as useResendTimerAnnouncements, t as formatResendTimer } from "./resendTimer-Do5EYeBY.js";
|
|
7
|
+
import { r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-BOV8kRk0.js";
|
|
8
8
|
//#region src/modules/redirect-to-mobile/smsSentView.tsx
|
|
9
9
|
var SmsSentView = ({ formattedPhone, hasError, resendTimer, canResendSms, onResend, onChangePhone }) => {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
|
|
2
|
-
import { _ as q, b as u, f as _, l as A, m as d,
|
|
2
|
+
import { T as k, _ as q, b as u, f as _, l as A, m as d, y } from "./vendor-preact-HIccnts1.js";
|
|
3
3
|
import "./devWarn-CW20j1Qd.js";
|
|
4
|
-
import { n as cn, t as Spacer } from "./spacer-
|
|
5
|
-
import { t as Title } from "./typography-
|
|
6
|
-
import { a as animationRegistry, i as isActiveOverride, n as useAnimation, r as useAsset, t as Asset } from "./asset-
|
|
4
|
+
import { n as cn, t as Spacer } from "./spacer-B7en1YsW.js";
|
|
5
|
+
import { t as Title } from "./typography-_6vuCfvg.js";
|
|
6
|
+
import { a as animationRegistry, i as isActiveOverride, n as useAnimation, r as useAsset, t as Asset } from "./asset-CJZ1Ikp6.js";
|
|
7
7
|
//#region src/shared/lottie/lottie.tsx
|
|
8
8
|
var lottiePromise = null;
|
|
9
9
|
var lottiePlayer;
|
|
10
10
|
async function loadLottie() {
|
|
11
11
|
if (lottiePromise) return lottiePromise;
|
|
12
|
-
lottiePromise = import("./lottie_light-
|
|
12
|
+
lottiePromise = import("./lottie_light-Bam05Bc9.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((mod) => {
|
|
13
13
|
lottiePlayer = mod.default;
|
|
14
14
|
return lottiePlayer;
|
|
15
15
|
}, (error) => {
|
|
@@ -1120,7 +1120,7 @@ var sr_Latn_default = {
|
|
|
1120
1120
|
"confirm": "Nastavite sa brzim verifikovanjem",
|
|
1121
1121
|
"continue": "Nastavite sa brzim verifikovanjem",
|
|
1122
1122
|
"retry": "Pokušajte ponovo",
|
|
1123
|
-
"scanNew": "
|
|
1123
|
+
"scanNew": "Verifikujte pomoću lične karte",
|
|
1124
1124
|
"skip": "Preskoči",
|
|
1125
1125
|
"verify": "Proverite koristeći ID"
|
|
1126
1126
|
},
|
|
@@ -1134,7 +1134,7 @@ var sr_Latn_default = {
|
|
|
1134
1134
|
"loading": "Učitavanje vaših podataka...",
|
|
1135
1135
|
"opensInNewTab": "(otvara se u novom tabu)",
|
|
1136
1136
|
"privacyPolicyLink": "Incode-ova Politika Privatnosti",
|
|
1137
|
-
"scanANewDocument": "
|
|
1137
|
+
"scanANewDocument": "Skenirajte novi dokument",
|
|
1138
1138
|
"sharedData": {
|
|
1139
1139
|
"dateOfBirth": "Datum rođenja",
|
|
1140
1140
|
"documentImage": "Slika dokumenta, kada i kako je snimljena",
|
|
@@ -1685,7 +1685,7 @@ var sr_Latn_default = {
|
|
|
1685
1685
|
"glareDetectedChange": "Promenite uslove osvetljenja",
|
|
1686
1686
|
"glareDetectedDescription": "Pronađite bolje osvetljenje da biste izbegli refleksije",
|
|
1687
1687
|
"hintNotProvided": "Nismo mogli da proverimo vaš selfi",
|
|
1688
|
-
"hintNotProvidedDescription": "Neka
|
|
1688
|
+
"hintNotProvidedDescription": "Neka je informacija nedostajala u zahtevu. Molimo pokušajte ponovo",
|
|
1689
1689
|
"idRejected": "Dokument odbijen. Pokušajte ponovo.",
|
|
1690
1690
|
"idScanFailed": "Skeniranje ID-a nije uspelo",
|
|
1691
1691
|
"idTypeUnacceptable": "Nevažeći lični dokument",
|
|
@@ -1711,7 +1711,7 @@ var sr_Latn_default = {
|
|
|
1711
1711
|
"noAttemptsRemaining": "Nema preostalih pokušaja",
|
|
1712
1712
|
"noFace": "Nije otkriveno lice",
|
|
1713
1713
|
"noMatch": "Nema podudaranja, pokušajte ponovo",
|
|
1714
|
-
"nonexistentCustomer": "Nismo mogli
|
|
1714
|
+
"nonexistentCustomer": "Nismo mogli da pronađemo vašu evidenciju",
|
|
1715
1715
|
"nonexistentCustomerDescription": "Ponovo započnite verifikaciju ili kontaktirajte podršku ako se ovo nastavi dešavati",
|
|
1716
1716
|
"noTries": "Dostignut maksimalni broj pokušaja",
|
|
1717
1717
|
"onBlur": "Držite telefon mirnim da biste napravili jasnu sliku",
|
|
@@ -2339,8 +2339,8 @@ var sr_Latn_default = {
|
|
|
2339
2339
|
"idValidation": {
|
|
2340
2340
|
"idTypeMismatch": "Ovo je drugačiji ID",
|
|
2341
2341
|
"idTypeMismatchShowSameId": "Ovo je drugačija lična karta. Molimo vas da pokažete istu ličnu kartu koju ste skenirali ranije",
|
|
2342
|
-
"nameVerificationFailedTryAgain": "Provera imena nije uspela.
|
|
2343
|
-
"photoVerificationFailedTryAgain": "Provera
|
|
2342
|
+
"nameVerificationFailedTryAgain": "Provera imena nije uspela. Molimo pokušajte ponovo",
|
|
2343
|
+
"photoVerificationFailedTryAgain": "Provera fotografije lične karte nije uspela. Molimo pokušajte ponovo"
|
|
2344
2344
|
},
|
|
2345
2345
|
"ifYouHavent": "Ako niste, pokušajte ponovo.",
|
|
2346
2346
|
"imDone": "Da, završio sam",
|
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import { c as setI18nInstance, l as createI18n, n as I18N_LOCAL, s as hasI18nInstance, t as useTranslationWithFallback } from "../i18n-BZhI6pGC.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-g7Uzl4ha.js";
|
|
4
|
+
import { x as PrizmaButton } from "../icons-JOXfeNVq.js";
|
|
5
|
+
import { n as cn } from "../spacer-B7en1YsW.js";
|
|
6
|
+
import { t as Page } from "../page-BaHe9yk-.js";
|
|
7
|
+
import { a as TerminalErrorPage, t as preloadOptionalDashboardTheme, y as useManager } from "../hooks-BWLXnDcl.js";
|
|
8
|
+
import { t as TransitionSpinner } from "../transitionSpinner-DAtrAN_6.js";
|
|
9
|
+
import { t as IncodeComponent } from "../incodeComponent-B6TUdSW0.js";
|
|
10
|
+
import { t as Checkbox } from "../checkbox-Bag1GfVW.js";
|
|
11
|
+
import "../withEndScreenTexts-CwPIZ4TD.js";
|
|
12
|
+
import { t as IncodeWorkflow } from "../workflow-DQpDZrSE.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 = state.duration ? plural(DURATION_KEYS[state.duration.unit], state.duration.count) : void 0;
|
|
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 = [
|
|
205
|
+
scope.locked ? `${id}-locked` : void 0,
|
|
206
|
+
scope.description ? `${id}-description` : void 0,
|
|
207
|
+
limitText ? `${id}-limit` : void 0
|
|
208
|
+
].filter(Boolean).join(" ") || void 0;
|
|
209
|
+
return /* @__PURE__ */ u(Checkbox, {
|
|
210
|
+
id,
|
|
211
|
+
class: cn("IncodeStepUpScope", scope.locked && "IncodeStepUpScopeLocked"),
|
|
212
|
+
size: "s",
|
|
213
|
+
name: "scopes",
|
|
214
|
+
value: scope.name,
|
|
215
|
+
checked: scope.checked,
|
|
216
|
+
disabled: scope.locked,
|
|
217
|
+
onChange: () => {
|
|
218
|
+
setChanged(true);
|
|
219
|
+
manager.toggleScope(scope.name);
|
|
220
|
+
},
|
|
221
|
+
"aria-labelledby": `${id}-name`,
|
|
222
|
+
"aria-describedby": describedBy,
|
|
223
|
+
label: /* @__PURE__ */ u("span", {
|
|
224
|
+
class: "IncodeStepUpScopeLabel",
|
|
225
|
+
children: [
|
|
226
|
+
/* @__PURE__ */ u("span", {
|
|
227
|
+
id: `${id}-name`,
|
|
228
|
+
class: "IncodeStepUpScopeName",
|
|
229
|
+
children: scope.displayName
|
|
230
|
+
}),
|
|
231
|
+
scope.locked ? /* @__PURE__ */ u("span", {
|
|
232
|
+
id: `${id}-locked`,
|
|
233
|
+
class: "IncodeStepUpScopeDetail",
|
|
234
|
+
children: t("stepUp.permissions.alwaysIncluded")
|
|
235
|
+
}) : null,
|
|
236
|
+
scope.description ? /* @__PURE__ */ u("span", {
|
|
237
|
+
id: `${id}-description`,
|
|
238
|
+
class: "IncodeStepUpScopeDetail",
|
|
239
|
+
children: scope.description
|
|
240
|
+
}) : null,
|
|
241
|
+
limitText ? /* @__PURE__ */ u("span", {
|
|
242
|
+
id: `${id}-limit`,
|
|
243
|
+
class: "IncodeStepUpScopeDetail",
|
|
244
|
+
"data-testid": `step-up-limit-${scope.name}`,
|
|
245
|
+
children: limitText
|
|
246
|
+
}) : null
|
|
247
|
+
]
|
|
248
|
+
}),
|
|
249
|
+
"data-testid": `step-up-scope-${scope.name}`
|
|
250
|
+
}, scope.name);
|
|
251
|
+
})]
|
|
252
|
+
}),
|
|
253
|
+
duration ? /* @__PURE__ */ u("p", {
|
|
254
|
+
class: "IncodeStepUpDuration",
|
|
255
|
+
"data-testid": "step-up-duration",
|
|
256
|
+
children: tx("stepUp.permissions.duration", { duration })
|
|
257
|
+
}) : null,
|
|
258
|
+
state.canApprove ? null : /* @__PURE__ */ u("p", {
|
|
259
|
+
id: SCOPE_HINT_ID,
|
|
260
|
+
class: cn("IncodeStepUpScopeHint", changed && "IncodeStepUpScopeHintError"),
|
|
261
|
+
role: changed ? "alert" : void 0,
|
|
262
|
+
"data-testid": "step-up-scope-hint",
|
|
263
|
+
children: t("stepUp.permissions.scopeRequired")
|
|
264
|
+
})
|
|
265
|
+
]
|
|
266
|
+
}), /* @__PURE__ */ u("div", {
|
|
267
|
+
class: "IncodeStepUpActions",
|
|
268
|
+
children: [/* @__PURE__ */ u(PrizmaButton, {
|
|
269
|
+
variant: "primary",
|
|
270
|
+
size: "L",
|
|
271
|
+
className: cn("IncodeButton IncodeButtonPrimary IncodeButtonL IncodeStepUpApprove", state.saving && "IncodeButtonLoading"),
|
|
272
|
+
"data-testid": "step-up-approve",
|
|
273
|
+
disabled: !state.canApprove || state.saving,
|
|
274
|
+
loading: state.saving,
|
|
275
|
+
onClick: () => manager.approve(),
|
|
276
|
+
children: t("stepUp.permissions.approve")
|
|
277
|
+
}), /* @__PURE__ */ u(PrizmaButton, {
|
|
278
|
+
variant: "secondary",
|
|
279
|
+
size: "L",
|
|
280
|
+
className: "IncodeButton IncodeButtonSecondary IncodeButtonL IncodeStepUpDeny",
|
|
281
|
+
"data-testid": "step-up-deny",
|
|
282
|
+
disabled: state.saving,
|
|
283
|
+
onClick: () => manager.deny(),
|
|
284
|
+
children: t("stepUp.permissions.deny")
|
|
285
|
+
})]
|
|
286
|
+
})]
|
|
287
|
+
})
|
|
288
|
+
});
|
|
289
|
+
};
|
|
290
|
+
//#endregion
|
|
291
|
+
//#region src/modules/step-up/step-up.tsx
|
|
292
|
+
function themeTokenAvailable() {
|
|
293
|
+
const policy = getStandaloneSetupPolicy();
|
|
294
|
+
return policy.theme.enabled && Boolean(policy.token);
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* A permissions screen shown before the face check comes before the workflow
|
|
298
|
+
* that would load the tenant theme, so load it here the way standalone
|
|
299
|
+
* modules do: from the `setup({ token })` session.
|
|
300
|
+
*/
|
|
301
|
+
function useThemeBeforePermissions(options) {
|
|
302
|
+
const needsTheme = options.mode === "embedded" && options.permissionsUi === "sdk" && options.permissionsOrder === "beforeFaceCheck" && !options.disableDashboardTheme;
|
|
303
|
+
const [ready, setReady] = d(() => !needsTheme || !themeTokenAvailable());
|
|
304
|
+
y(() => {
|
|
305
|
+
if (ready) return;
|
|
306
|
+
let active = true;
|
|
307
|
+
preloadOptionalDashboardTheme(getStandaloneSetupPolicy(), void 0).then(() => {
|
|
308
|
+
if (active) setReady(true);
|
|
309
|
+
});
|
|
310
|
+
return () => {
|
|
311
|
+
active = false;
|
|
312
|
+
};
|
|
313
|
+
}, [ready]);
|
|
314
|
+
return ready;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Step-up component: the workflow in token mode (or the hosted page in an
|
|
318
|
+
* iframe), then the permissions screen, then `onFinish`. Mounted by
|
|
319
|
+
* {@link renderStepUp}.
|
|
320
|
+
*/
|
|
321
|
+
var IncodeStepUp = ({ options }) => {
|
|
322
|
+
const [state, manager] = useManager(() => createStepUpManager({
|
|
323
|
+
stepUpId: options.stepUpId,
|
|
324
|
+
permissions: options.permissions,
|
|
325
|
+
permissionsUi: options.permissionsUi,
|
|
326
|
+
permissionsOrder: options.permissionsOrder,
|
|
327
|
+
hostSavesPermissions: options.onPermissionsApproved !== void 0
|
|
328
|
+
}), { autoLoad: false });
|
|
329
|
+
const themeReady = useThemeBeforePermissions(options);
|
|
330
|
+
const mountedRef = A(true);
|
|
331
|
+
y(() => () => {
|
|
332
|
+
mountedRef.current = false;
|
|
333
|
+
}, []);
|
|
334
|
+
const saving = state.status === "permissions" && state.saving;
|
|
335
|
+
const saveStartedRef = A(false);
|
|
336
|
+
y(() => {
|
|
337
|
+
if (!saving || saveStartedRef.current || state.status !== "permissions") return;
|
|
338
|
+
saveStartedRef.current = true;
|
|
339
|
+
const approvedScopes = state.scopes.filter((scope) => scope.checked).map((scope) => scope.name);
|
|
340
|
+
Promise.resolve().then(() => options.onPermissionsApproved?.({
|
|
341
|
+
stepUpId: options.stepUpId,
|
|
342
|
+
approvedScopes
|
|
343
|
+
})).then(() => {
|
|
344
|
+
if (mountedRef.current) manager.permissionsSaved();
|
|
345
|
+
}, (error) => {
|
|
346
|
+
if (!mountedRef.current) return;
|
|
347
|
+
manager.permissionsSaveFailed(error instanceof Error ? error.message : String(error));
|
|
348
|
+
});
|
|
349
|
+
}, [
|
|
350
|
+
saving,
|
|
351
|
+
state,
|
|
352
|
+
options,
|
|
353
|
+
manager
|
|
354
|
+
]);
|
|
355
|
+
const firedRef = A(false);
|
|
356
|
+
const [mismatchOrigin, setMismatchOrigin] = d();
|
|
357
|
+
y(() => {
|
|
358
|
+
if (firedRef.current) return;
|
|
359
|
+
let notify;
|
|
360
|
+
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));
|
|
361
|
+
else if (state.status === "finished") {
|
|
362
|
+
const result = state.result;
|
|
363
|
+
notify = () => options.onFinish(result);
|
|
364
|
+
} else if (state.status === "closed") notify = () => options.onError?.(new StepUpError$1("USER_DENIED", "The user denied the permissions", options.stepUpId));
|
|
365
|
+
else if (state.status === "error") {
|
|
366
|
+
const { code, error, detail } = state;
|
|
367
|
+
notify = () => options.onError?.(new StepUpError$1(code, error, options.stepUpId, detail));
|
|
368
|
+
}
|
|
369
|
+
if (!notify) return;
|
|
370
|
+
firedRef.current = true;
|
|
371
|
+
queueMicrotask(notify);
|
|
372
|
+
}, [
|
|
373
|
+
state,
|
|
374
|
+
options,
|
|
375
|
+
mismatchOrigin
|
|
376
|
+
]);
|
|
377
|
+
if (mismatchOrigin !== void 0) return null;
|
|
378
|
+
if (state.status === "permissions" && !themeReady) return /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u("div", {
|
|
379
|
+
class: "IncodeStepUp",
|
|
380
|
+
children: /* @__PURE__ */ u(TransitionSpinner, { renderMode: "spinnerOnly" })
|
|
381
|
+
}) });
|
|
382
|
+
if (state.status === "verifying") {
|
|
383
|
+
if (options.mode === "hosted" && options.onboardingUrl) return /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u("div", {
|
|
384
|
+
class: "IncodeStepUp",
|
|
385
|
+
children: /* @__PURE__ */ u(StepUpHostedFrame, {
|
|
386
|
+
url: options.onboardingUrl,
|
|
387
|
+
origin: options.onboardingOrigin ?? "",
|
|
388
|
+
stepUpId: options.stepUpId,
|
|
389
|
+
permissions: options.permissions,
|
|
390
|
+
permissionsUi: options.permissionsUi,
|
|
391
|
+
readyTimeoutMs: options.readyTimeoutMs,
|
|
392
|
+
onOriginMismatch: setMismatchOrigin,
|
|
393
|
+
onFinished: (approvedScopes) => manager.hostedFinished(approvedScopes),
|
|
394
|
+
onDenied: () => manager.hostedDenied(),
|
|
395
|
+
onFailed: (code, message, detail) => manager.verificationFailed(message, code, detail)
|
|
396
|
+
})
|
|
397
|
+
}) });
|
|
398
|
+
return /* @__PURE__ */ u("div", {
|
|
399
|
+
class: "IncodeStepUp",
|
|
400
|
+
children: /* @__PURE__ */ u(IncodeWorkflow, {
|
|
401
|
+
config: {
|
|
402
|
+
token: options.sessionToken,
|
|
403
|
+
...options.interviewId ? { interviewId: options.interviewId } : {},
|
|
404
|
+
...options.lang ? { lang: options.lang } : {},
|
|
405
|
+
...options.disableDashboardTheme ? { disableDashboardTheme: true } : {}
|
|
406
|
+
},
|
|
407
|
+
onFinish: (result) => manager.workflowFinished(result),
|
|
408
|
+
onError: (error, errorCode, moduleErrorCode) => {
|
|
409
|
+
const code = moduleErrorCode ?? (errorCode !== void 0 ? String(errorCode) : void 0);
|
|
410
|
+
manager.verificationFailed(error ?? "Verification failed", "VERIFICATION_ERROR", {
|
|
411
|
+
...code ? { code } : {},
|
|
412
|
+
...error ? { message: error } : {}
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
})
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
if (state.status === "permissions") return /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u("div", {
|
|
419
|
+
class: "IncodeStepUp",
|
|
420
|
+
children: /* @__PURE__ */ u(StepUpPermissionsScreen, {
|
|
421
|
+
state,
|
|
422
|
+
manager
|
|
423
|
+
})
|
|
424
|
+
}) });
|
|
425
|
+
if (state.status === "error") return /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u("div", {
|
|
426
|
+
class: "IncodeStepUp",
|
|
427
|
+
children: /* @__PURE__ */ u(TerminalErrorPage, { retryable: false })
|
|
428
|
+
}) });
|
|
429
|
+
return null;
|
|
430
|
+
};
|
|
431
|
+
/**
|
|
432
|
+
* The live mount per container. A new `renderStepUp` on the same container
|
|
433
|
+
* replaces it; an older handle's `unmount` then does nothing.
|
|
434
|
+
*/
|
|
435
|
+
var activeMounts = /* @__PURE__ */ new WeakMap();
|
|
436
|
+
function isElement(value) {
|
|
437
|
+
return typeof value === "object" && value !== null && value.nodeType === 1;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Renders a step-up into `container`: the agent class's workflow in token
|
|
441
|
+
* mode and the permissions screen (skipped with `permissionsUi: 'none'`),
|
|
442
|
+
* in the order `permissionsOrder` sets (the permissions screen first by
|
|
443
|
+
* default, `beforeFaceCheck`), then
|
|
444
|
+
* `onFinish({ stepUpId, approvedScopes })` (`approvedScopes: []` with
|
|
445
|
+
* `permissionsUi: 'none'`). Errors reach `onError` as a `StepUpError` with
|
|
446
|
+
* `code` `USER_DENIED`, `FACE_CHECK_FAILED` (the check ran and failed),
|
|
447
|
+
* `VERIFICATION_PENDING` (no result yet), `VERIFICATION_ERROR` (could not
|
|
448
|
+
* finish; `detail` has the original code and message) or
|
|
449
|
+
* `IFRAME_ORIGIN_MISMATCH`.
|
|
450
|
+
*
|
|
451
|
+
* With `mode: 'hosted'` it frames `onboardingUrl` instead; the hosted page
|
|
452
|
+
* runs the face check and draws the permissions (it receives them by
|
|
453
|
+
* `postMessage`, contract v0.2 §6.6) and the SDK relays its result.
|
|
454
|
+
*
|
|
455
|
+
* `onFinish` is only a hint: the bank server's status read
|
|
456
|
+
* (`GET /step-ups/{id}`) is what checks the face check and activates the
|
|
457
|
+
* mandate.
|
|
458
|
+
*
|
|
459
|
+
* A failed or denied step-up is final. To retry, the bank asks for a new
|
|
460
|
+
* decision and starts a new step-up (new `stepUpId` and session token), then
|
|
461
|
+
* calls `renderStepUp` with those. The same container is fine: the new call
|
|
462
|
+
* replaces the earlier step-up with a fresh one (new state, new callbacks),
|
|
463
|
+
* and the earlier handle's `unmount` then does nothing.
|
|
464
|
+
*
|
|
465
|
+
* `mode: 'embedded'` (the default) needs `setup({ apiURL })` first, as for `<incode-workflow>`.
|
|
466
|
+
* Import from `@incodetech/web/step-up` and load
|
|
467
|
+
* `@incodetech/web/step-up/styles.css`.
|
|
468
|
+
*
|
|
469
|
+
* @throws StepUpError with code `INVALID_OPTIONS` for bad options.
|
|
470
|
+
*/
|
|
471
|
+
function renderStepUp(container, options) {
|
|
472
|
+
if (!isElement(container)) throw new StepUpError$1("INVALID_OPTIONS", "container must be an HTML element");
|
|
473
|
+
const normalized = validateStepUpOptions(options);
|
|
474
|
+
if (!hasI18nInstance()) setI18nInstance(createI18n(normalized.lang ? { lang: normalized.lang } : void 0));
|
|
475
|
+
G(null, container);
|
|
476
|
+
const mount = {};
|
|
477
|
+
activeMounts.set(container, mount);
|
|
478
|
+
G(/* @__PURE__ */ u(IncodeStepUp, { options: normalized }), container);
|
|
479
|
+
return { unmount() {
|
|
480
|
+
if (activeMounts.get(container) !== mount) return;
|
|
481
|
+
activeMounts.delete(container);
|
|
482
|
+
G(null, container);
|
|
483
|
+
} };
|
|
484
|
+
}
|
|
485
|
+
//#endregion
|
|
486
|
+
export { IncodeStepUp, StepUpError, renderStepUp };
|