@incodetech/web 2.4.1 → 2.5.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +1 -4
- package/dist/{GeolocationPermissionDenied-GbB9B3J0.js → GeolocationPermissionDenied-C7oh9rAr.js} +23 -8
- package/dist/Password-CV69m5l9.js +212 -0
- package/dist/RadioGroup-DmCpmlJN.js +123 -0
- package/dist/RequiredLegend-CLQ0HX7d.js +16 -0
- package/dist/RequiredMarker-CAqxArxr.js +16 -0
- package/dist/TextField-D41q5WTe.js +166 -0
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{af-ZA-Dm5i-KRC.js → af-ZA-Bp16S_5w.js} +135 -881
- package/dist/{ageVerification-n-1fouaD.js → ageVerification-BBnJYo9K.js} +10 -8
- package/dist/{am-UBTEdpJv.js → am-CWJUWWuF.js} +135 -881
- package/dist/antifraud/antifraud.es.js +5 -4
- package/dist/applyStudioConfig-20qjppIu.js +126 -0
- package/dist/{ar-AE--KjG2EAr.js → ar-AE-O12WV51F.js} +136 -882
- package/dist/{ar-RFuhholc.js → ar-DgUYRgR_.js} +135 -881
- package/dist/{ar-EG-y8SWJjy1.js → ar-EG-C7LOd56j.js} +135 -881
- package/dist/assertClassBrand-F6pL6aIr.js +17 -0
- package/dist/authentication/authentication.es.js +9 -6
- package/dist/autoFocusTitle-C2Ro8zdn.js +19 -0
- package/dist/{az-4Z0ZZq7T.js → az-DusLpWep.js} +135 -881
- package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-Bci98ivl.js} +1 -1
- package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DyPCItxn.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-BixkM88z.js → baseTutorial-BBwEV7AE.js} +9 -7
- package/dist/{bn-CNhjOqja.js → bn-CX4BixDE.js} +135 -881
- package/dist/{bottomSheet-B4REej8W.js → bottomSheet-DRRJstLk.js} +3 -3
- package/dist/{bs-Culcuxab.js → bs-DTnRhENx.js} +134 -880
- package/dist/{ca-h1xwo6CW.js → ca-DBI3m_a_.js} +134 -880
- package/dist/cameraOverlay-Bz9UJCHp.js +2 -0
- package/dist/{cameraOverlayHeader-D4Bjr6Fw.js → cameraOverlayHeader-VCCUFLoy.js} +9 -8
- package/dist/{cameraView-BpdAdfIK.js → cameraView-CKWEmlho.js} +13 -14
- package/dist/capture-B6vGKsRf.js +3 -0
- package/dist/capture-B_WX2h2H.js +2 -0
- package/dist/{tutorial-HfSD-QZ3.js → capture-BszIVhdg.js} +226 -82
- package/dist/capture-wy0SZwxu.js +754 -0
- package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
- package/dist/captureFocusContext-OuX65pCg.js +718 -0
- package/dist/captureFooter-5KiLmkNi.js +47 -0
- package/dist/{ceb-pTDH3h1x.js → ceb-fG0bt_zV.js} +135 -881
- package/dist/certificate-issuance/certificate-issuance.es.js +68 -41
- package/dist/certificate-issuance/styles.css +1 -1
- package/dist/certificate-issuance/styles.css.js +1 -1
- package/dist/{checkbox-CALR7EFM.js → checkbox-tpW2Q3Zi.js} +4 -4
- package/dist/chooser-CqCxdQx8.js +1517 -0
- package/dist/connectionError-D67rCsgf.js +100 -0
- package/dist/consent/consent.es.js +19 -14
- package/dist/consent/styles.css +1 -1
- package/dist/consent/styles.css.js +1 -1
- package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-UXJ0maPk.js} +6 -0
- package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CjuXF_8C.js} +1 -1
- package/dist/{countrySelector-DKvvYxP6.js → countrySelector-mjGgTZBA.js} +6 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
- package/dist/{cs-CZ-CiATe8nW.js → cs-CZ-DCggApzq.js} +134 -880
- package/dist/{cs-CrQuSSOI.js → cs-DsBY9V_4.js} +134 -880
- package/dist/curp-validation/curp-validation.es.js +97 -96
- package/dist/curp-validation/styles.css +1 -1
- package/dist/curp-validation/styles.css.js +1 -1
- package/dist/{customFields-DRwjotY-.js → customFields-COihEvWm.js} +33 -20
- package/dist/{customWatchlist-DmROVUfp.js → customWatchlist-CE5WPSMm.js} +11 -9
- package/dist/{da-DK-CgrU79mp.js → da-DK-B7LXeFYP.js} +134 -880
- package/dist/dashboardTheme-Cxl2WlSK.js +388 -0
- package/dist/{dateInputComposed-Bu7vM-M4.js → dateInputComposed-DqOzOxfP.js} +4 -5
- package/dist/dateInputComposed-kP5wiNvH.js +1 -0
- package/dist/{de-D0xnkswj.js → de-BhQ2hOut.js} +134 -880
- package/dist/denied-D4oFpTuV.js +272 -0
- package/dist/devWarn-SLn4Qexk.js +1034 -0
- package/dist/deviceWallet-CPP5AFbd.js +37 -0
- package/dist/{digitalIdRedirect-Dpv37Mbi.js → digitalIdRedirect-DqhYI_sj.js} +4 -4
- package/dist/{digitalIdUpload-DKXe-_GE.js → digitalIdUpload-p7Zcbeom.js} +37 -15
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +1 -1
- package/dist/document-capture/styles.css.js +1 -1
- package/dist/{documentCapture-DlBMtLvL.js → documentCapture-DXG8TB9t.js} +136 -72
- package/dist/documentCapture-DczZSZ4A.js +2 -0
- package/dist/dropdownComposed-C3uN_APy.js +1 -0
- package/dist/{dropdownComposed-B-qTBcja.js → dropdownComposed-CUBU43V3.js} +8 -6
- package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekyb/styles.css.js +1 -1
- package/dist/{ekybModule-qkUiNFdJ.js → ekybModule-mGfuTVTJ.js} +109 -89
- package/dist/ekybModule-xZtYttfn.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekyc/styles.css.js +1 -1
- package/dist/ekyc-prefill/ekyc-prefill.es.js +2 -0
- package/dist/ekyc-prefill/styles.css +2 -0
- package/dist/ekyc-prefill/styles.css.js +1 -0
- package/dist/ekycModule-Cp-GdWbC.js +789 -0
- package/dist/ekycModule-DXy4cT0v.js +2 -0
- package/dist/ekycPrefillModule-BKbRJuek.js +233 -0
- package/dist/ekycPrefillModule-Cdu0zr52.js +2 -0
- package/dist/{el-B5gLXHxC.js → el-D-zg7VzS.js} +134 -880
- package/dist/{el-GR-DPUvlcvr.js → el-GR-D9eldyAW.js} +134 -880
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-Jx8qWrW-.js → electronic-signature-uWLkdb8_.js} +55 -36
- package/dist/email/email.es.js +21 -16
- package/dist/{emailInput-ClX3Lu8X.js → emailInput-Bd8XECrW.js} +23 -12
- package/dist/{en-DG-DOwBuCCl.js → en-DG-CKwP-05W.js} +135 -881
- package/dist/{en-DNuMvR7-.js → en-DY1lnV9V.js} +135 -881
- package/dist/{errorContent-B_pH1MX7.js → errorContent-CqXgrkbQ.js} +21 -20
- package/dist/errorParams-B7BZHaA4.js +37 -0
- package/dist/es-419-DCPTzJnF.js +5 -0
- package/dist/{es-DNl7ceDm.js → es-BKio8b3N.js} +135 -881
- package/dist/{es-ES-BF9vl0Um.js → es-ES-MZM-tZ4f.js} +134 -880
- package/dist/{es-MX-Brp4FXN8.js → es-MX-Bwa400AE.js} +134 -880
- package/dist/{et-D5pPP4r0.js → et-CxKV1DgL.js} +136 -882
- package/dist/expiredId-BGfpQzNG.js +67 -0
- package/dist/extensibility.es.js +382 -55
- package/dist/{fa-IR-BoyK-lax.js → fa-IR-C1bLFtOi.js} +135 -881
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +1 -1
- package/dist/face-match/styles.css.js +1 -1
- package/dist/faceMatch-ClTodgeI.js +2 -0
- package/dist/{faceMatch-Dp1AGBtg.js → faceMatch-DpccWhgb.js} +54 -71
- package/dist/{fi-FI-mYdAUbtG.js → fi-FI-BC_3lqbM.js} +134 -880
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-CXSUE89Z.js +2 -0
- package/dist/fieldComparison-D2c7jots.js +126 -0
- package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-yMZjXK6p.js} +3 -3
- package/dist/{finalSuccessScreen-BgPVGAr4.js → finalSuccessScreen-D1AeAOtK.js} +31 -22
- package/dist/fiscal-qr/fiscal-qr.es.js +32 -26
- package/dist/flipAnimation-DwvNk514.js +46 -0
- package/dist/flipCapturedCardEligibility-C8ppBgP9.js +210 -0
- package/dist/flow/flow.es.js +315 -287
- package/dist/flow/shell/styles.css +1 -1
- package/dist/flow/shell/styles.css.js +1 -1
- package/dist/flow/styles.css +1 -1
- package/dist/formField-Bum3oh1A.js +49 -0
- package/dist/{fr-B4R5fgnm.js → fr-BGr4ZZSw.js} +134 -880
- package/dist/{fr-CA-DJSwRuWt.js → fr-CA-COfhYgrk.js} +134 -880
- package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-LxyNVfjy.js} +1 -1
- package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-BKEg_DRs.js} +1 -1
- package/dist/geolocation/geolocation.es.js +15 -12
- package/dist/government-validation/government-validation.es.js +7 -6
- package/dist/{he-D2RDlnbd.js → he-BGdP9Cfd.js} +135 -881
- package/dist/helpButtonConfig-BFragC_J.js +24 -0
- package/dist/{hi-DFXhGN9O.js → hi-B8upUDpu.js} +135 -881
- package/dist/{hmn-BlNbfL-D.js → hmn-DOK-cZdX.js} +135 -881
- package/dist/{homeScreen-DjzxBrYL.js → homeScreen-CPaZiLqi.js} +26 -14
- package/dist/{incodeComponent-B-lwJJCV.js → hooks-C6m_ILVe.js} +256 -280
- package/dist/{hr-DArr3n62.js → hr-BjtqyvXa.js} +134 -880
- package/dist/{ht-CAd-Hmi1.js → ht-CbbFp5XL.js} +135 -881
- package/dist/{hu-CulT8eq_.js → hu-BXk1xFve.js} +135 -881
- package/dist/{icons-C2LgNjXy.js → icons-DLZTxOV2.js} +153 -80
- package/dist/id/id.es.js +167 -197
- package/dist/id/styles.css +1 -1
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-D2VZL6b-.js → id-BrJu1D4k.js} +134 -880
- package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-BhF5T4fC.js} +1 -1
- package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BudLiGPR.js} +1 -1
- package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-CiGcJhVW.js} +1 -1
- package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-C_GyecLf.js} +1 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -11
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +12 -6
- package/dist/idFlipTransition-DMAbw1_Y.js +154 -0
- package/dist/{idOcr-BWG3vj8j.js → idOcr-D9zxy2eU.js} +64 -37
- package/dist/identity-reuse/identity-reuse.es.js +38 -25
- package/dist/identity-reuse/styles.css.js +1 -0
- package/dist/incodeComponent-DPY-ikO3.js +235 -0
- package/dist/incodeModule-Dyy5PfM4.js +41 -0
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-B35soRFg.js → inputComposed-BG3XgpYE.js} +4 -4
- package/dist/{it-fs9OkGbv.js → it-DI-TPE-K.js} +135 -881
- package/dist/{ja-BvKVI6Oo.js → ja-3XIFqaXu.js} +135 -881
- package/dist/{ja-JP-C5-gDGuX.js → ja-JP-BAeRWiVk.js} +136 -882
- package/dist/{jv-CyId7aPo.js → jv-BhjQxxBl.js} +134 -880
- package/dist/{ka-pqIPc2el.js → ka-Bx4-RrZ_.js} +135 -881
- package/dist/{kk-DK7mWl6k.js → kk-Ct91ZRbP.js} +134 -880
- package/dist/{km-BaJYdDrm.js → km-BWQuuNXz.js} +142 -888
- package/dist/{ko-CdYIGTH_.js → ko-Cve9iLc7.js} +135 -881
- package/dist/{ko-KP-Q3GGdDp3.js → ko-KP-0iLztCuj.js} +135 -881
- package/dist/{ky-Bc7ZXIXy.js → ky-DGt4vj88.js} +134 -880
- package/dist/kyb-checks/kyb-checks.es.js +2 -0
- package/dist/kyb-checks/styles.css +2 -0
- package/dist/kyb-checks/styles.css.js +1 -0
- package/dist/kybChecksModule-BlLRwSFe.js +2 -0
- package/dist/kybChecksModule-DmjxRBhO.js +345 -0
- package/dist/{lo-0jgAavCe.js → lo-DPvsfR2F.js} +135 -881
- package/dist/{lt-DDEjR6RD.js → lt-BMI5NrHt.js} +134 -880
- package/dist/{lv-Ddzb_N3H.js → lv-Bpw5rGRP.js} +135 -881
- package/dist/{mandatoryConsent-C21a2d2-.js → mandatoryConsent-Blhxc0KK.js} +23 -16
- package/dist/{manualCaptureButton-1KC7N_B-.js → manualCaptureButton-B1hLcNl4.js} +8 -7
- package/dist/{manualCaptureButton-C5VMDamt.js → manualCaptureButton-Cr-FQ3-N.js} +16 -12
- package/dist/{mk-SJwou4aX.js → mk-C9Z-5xUg.js} +135 -881
- package/dist/{mn-7B86xjpb.js → mn-p0zBw-tm.js} +134 -880
- package/dist/{ms-Bb-SlQCF.js → ms-CF8aT_Qq.js} +134 -880
- package/dist/{my-3ci4RJZY.js → my-CqWwTa_5.js} +135 -881
- package/dist/{nb-NO-DpZAni0R.js → nb-NO-C7Hb8Ok5.js} +134 -880
- package/dist/{ne-Dncyvxqt.js → ne-B5InVJ21.js} +135 -881
- package/dist/{nl-C1mnzCBH.js → nl-aJiBBLFg.js} +134 -880
- package/dist/{optionAccessibleLabel-DG8Lks9f.js → optionAccessibleLabel-JFrEz0Ax.js} +27 -11
- package/dist/otpInput-Bn8PHFh7.js +245 -0
- package/dist/{page-DINsqGIw.js → page-b7Hx6klV.js} +102 -79
- package/dist/{incode-logo-B1bl2S0z.js → pageUiConfig-BlsOWl2d.js} +88 -14
- package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Bn18pckF.js} +1 -1
- package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-D_bvTNZY.js} +1 -1
- package/dist/passwordRequirements-13qw_WSJ.js +49 -0
- package/dist/{pdf-BKHLi5Ac.js → pdf-DO_HvE8T.js} +2 -17
- package/dist/pdfViewer-BT-O-Zj1.js +2 -0
- package/dist/{pdfViewer-C8xHykz1.js → pdfViewer-D_sXx3SF.js} +11 -14
- package/dist/permissionInstructionList-CGo9uSeQ.js +43 -0
- package/dist/{permissions-B7-lHrFm.js → permissions-CS58hLHp.js} +84 -53
- package/dist/phone/phone.es.js +16 -12
- package/dist/{phoneInputComposed-Di4acsc0.js → phoneInputComposed-Dc2lHg4Z.js} +49 -12
- package/dist/{pl-CWr2fVBg.js → pl-CDmSpQ_-.js} +134 -880
- package/dist/preloadableLazy-KWGuHoqn.js +43 -0
- package/dist/{processing-z5wuXrKw.js → processing-C5A54RCC.js} +2 -2
- package/dist/{progressBar-BcKFaXZR.js → progressBar-CmkJY5xT.js} +2 -2
- package/dist/{pt-AGz2XGAK.js → pt-0SO_cPU9.js} +135 -881
- package/dist/{pt-BR-CMvTsOqE.js → pt-BR-BEfs5M8G.js} +135 -881
- package/dist/{pt-PT-KzIM0vpf.js → pt-PT-ONBmg0BR.js} +135 -881
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/realtimeFeedbackConfig-DeZksjlR.js +16 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +66 -62
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-FoirFu19.js} +1 -1
- package/dist/{resendTimer-On_zrMLS.js → resendTimer-B7aR2zn3.js} +2 -2
- package/dist/richText-DlHC_sMB.js +1761 -0
- package/dist/{ro-DYdJJDKn.js → ro-ChyvDsu3.js} +135 -881
- package/dist/{ru-C1cguVi2.js → ru-B_vdxKv-.js} +134 -880
- package/dist/{ru-RU-18JeDfwz.js → ru-RU-CrvUlCJj.js} +134 -880
- package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-IfqLuP1N.js} +1 -1
- package/dist/selfie/selfie.es.js +37 -14
- package/dist/selfie/styles.css +1 -1
- package/dist/selfie/styles.css.js +1 -1
- package/dist/signature/signature.es.js +18 -13
- package/dist/{sk-CtIcnYOo.js → sk-ljMYKwHQ.js} +136 -882
- package/dist/{sl-DS_Gc0Wc.js → sl-BbVJSIEt.js} +135 -881
- package/dist/{smsTabContent-vE0WyKtg.js → smsTabContent-BOIszuLx.js} +40 -27
- package/dist/{so-dqMTkg5E.js → so-DTymvbrx.js} +135 -881
- package/dist/spacer-DQdgPJjU.js +1100 -0
- package/dist/spinner-DQf6JseL.js +69 -0
- package/dist/{sr-DgHGiiWM.js → sr-JVvblELi.js} +134 -880
- package/dist/{sr-Latn-Du7_x_Tr.js → sr-Latn-9I-jEoNt.js} +142 -888
- package/dist/sr-YU-AHJXObyx.js +5 -0
- package/dist/{sv-SE-Dw61hRjx.js → sv-SE-MhrEy6Di.js} +134 -880
- package/dist/{sw-De-Jo8XY.js → sw-2Mtjggv_.js} +135 -881
- package/dist/{th-BJixOgsM.js → th-CRCVvVIy.js} +135 -881
- package/dist/{th-TH-VyhljC5U.js → th-TH-BJP2vgt1.js} +135 -881
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-DhjdqhA4.js → tl-CI98qs3U.js} +135 -881
- package/dist/{tl-PH-D2S2Irx7.js → tl-PH-Bwmbtl_j.js} +135 -881
- package/dist/{tr-BJAuvOwN.js → tr-Bjsibm46.js} +135 -881
- package/dist/{transitionSpinner-BZO916B1.js → transitionSpinner-BTr1yrwy.js} +7 -7
- package/dist/tutorial-DO3fs1fY.js +28 -0
- package/dist/types/ae-signature.d.ts +17 -4
- package/dist/types/antifraud.d.ts +17 -4
- package/dist/types/authentication.d.ts +17 -4
- package/dist/types/certificate-issuance.d.ts +17 -4
- package/dist/types/consent.d.ts +17 -4
- package/dist/types/cross-document-data-match.d.ts +17 -4
- package/dist/types/curp-validation.d.ts +17 -4
- package/dist/types/document-capture.d.ts +17 -4
- package/dist/types/dynamic-forms.d.ts +17 -4
- package/dist/types/ekyb.d.ts +17 -4
- package/dist/types/ekyc-prefill.d.ts +213 -0
- package/dist/types/ekyc.d.ts +17 -4
- package/dist/types/electronic-signature.d.ts +17 -4
- package/dist/types/email.d.ts +17 -4
- package/dist/types/extensibility.d.ts +204 -37
- package/dist/types/face-match.d.ts +17 -4
- package/dist/types/field-comparison.d.ts +17 -4
- package/dist/types/fiscal-qr.d.ts +17 -4
- package/dist/types/flow.d.ts +38 -5
- package/dist/types/geolocation.d.ts +17 -4
- package/dist/types/government-validation.d.ts +17 -4
- package/dist/types/id-selfie-flow.d.ts +17 -4
- package/dist/types/id-verification.d.ts +17 -4
- package/dist/types/id.d.ts +17 -4
- package/dist/types/identity-reuse.d.ts +18 -5
- package/dist/types/index.d.ts +92 -10
- package/dist/types/kyb-checks.d.ts +213 -0
- package/dist/types/phone.d.ts +17 -4
- package/dist/types/qe-signature.d.ts +17 -4
- package/dist/types/redirect-to-mobile.d.ts +1 -1
- package/dist/types/selfie.d.ts +17 -4
- package/dist/types/signature.d.ts +17 -4
- package/dist/types/video-selfie.d.ts +1 -1
- package/dist/types/watchlist.d.ts +17 -4
- package/dist/types/workflow.d.ts +17 -4
- package/dist/{typography-8iwtPQbj.js → typography-CyT20XIA.js} +3 -11
- package/dist/{uk-UA-BZR90qDZ.js → uk-UA-DmKAplUk.js} +135 -881
- package/dist/{uk-CcU91ee-.js → uk-fCdIfhh5.js} +134 -880
- package/dist/{ur-CIXtUYHK.js → ur-Dh9AF1hS.js} +135 -881
- package/dist/useCameraPreview-hNLhri73.js +93 -0
- package/dist/useCaptureHelpButton-CSuQmlEp.js +43 -0
- package/dist/useIsDarkTheme-DoOFy9TN.js +27 -0
- package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BCYS1xLP.js} +31 -18
- package/dist/{uz-CeLVgwAD.js → uz-DYarfGyT.js} +135 -881
- package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-CjnloSla.js} +147 -5
- package/dist/{verificationResult-C2gxbmAo.js → verificationResult-C8jlwbOw.js} +30 -27
- package/dist/{vi-CgfGVVLY.js → vi-uK03Bfuc.js} +135 -881
- package/dist/video-selfie/styles.css +1 -1
- package/dist/video-selfie/styles.css.js +1 -1
- package/dist/video-selfie/video-selfie.es.js +120 -77
- package/dist/watchlist/watchlist.es.js +12 -9
- package/dist/{watchlistForBusiness-eOPtmu7z.js → watchlistForBusiness-DjSYKjVv.js} +63 -22
- package/dist/{withEndScreenTexts-aFUEeBgM.js → withEndScreenTexts-TlaaD6Qn.js} +253 -55
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +36 -28
- package/dist/{zh-CN-BOxod1_T.js → zh-CN-BkQoAg2R.js} +136 -882
- package/dist/{zh-HANT-zAahQ8nP.js → zh-HANT-DRh68ryN.js} +135 -881
- package/dist/{zh-B-kjeCig.js → zh-JlU3mjl9.js} +134 -880
- package/dist/{zh-TW-B0v7GYYG.js → zh-TW-ByGAHrvB.js} +135 -881
- package/package.json +48 -12
- package/dist/autoFocusTitle-Cy0J3lvr.js +0 -32
- package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
- package/dist/cameraOverlay-DQEG24io.js +0 -2
- package/dist/check-icon-BpjpKqhJ.js +0 -48
- package/dist/connectionError-Cf6iGFyx.js +0 -45
- package/dist/dashboardTheme-CkyISqIs.js +0 -247
- package/dist/dateInputComposed-cgZGBSiu.js +0 -1
- package/dist/denied-ByGDWkTW.js +0 -1871
- package/dist/deviceWallet-C4UT05wN.js +0 -66
- package/dist/documentCapture-Dh1ftzGG.js +0 -2
- package/dist/dropdownComposed-DmT4s8VM.js +0 -1
- package/dist/ekybModule-BHInfPHS.js +0 -2
- package/dist/ekycModule-B2cfT3zi.js +0 -2
- package/dist/ekycModule-BQPl1KQT.js +0 -300
- package/dist/es-419-BU7r2Fvh.js +0 -3193
- package/dist/esm-15CISqPe.js +0 -430
- package/dist/expiredId-GIHjGAuY.js +0 -80
- package/dist/faceMatch-bXhejzhf.js +0 -2
- package/dist/fieldComparison-BirXQb7f.js +0 -2
- package/dist/fieldComparison-D8PL0eR1.js +0 -109
- package/dist/flipAnimation-BgMPQ8Ma.js +0 -3048
- package/dist/formField-0k8wVfXl.js +0 -60
- package/dist/incodeModule-DiVtqekm.js +0 -68
- package/dist/inputComposed-CKujYUSB.js +0 -1
- package/dist/numberedStep-CvbL3ht2.js +0 -13
- package/dist/otpInput-_B7xEZUU.js +0 -157
- package/dist/passwordInputComposed-B3WKjODU.js +0 -74
- package/dist/pdfViewer-DcB41xr7.js +0 -2
- package/dist/radioGroupComposed-CIbHjX4v.js +0 -160
- package/dist/radioGroupComposed-eXNWg1ez.js +0 -1
- package/dist/reload-icon-elAFo9-k.js +0 -70
- package/dist/richText-aCnLd3j2.js +0 -1549
- package/dist/spacer-lcnhSC-5.js +0 -741
- package/dist/spinner-B8BswhBb.js +0 -88
- package/dist/sr-YU-YuZu7wdb.js +0 -3197
- package/dist/statusPage-WIsGgf_m.js +0 -36
- package/dist/uiConfig-CwGL3QjP.js +0 -2589
- package/dist/useCaptureHelpButton-BTUZs3Ev.js +0 -86
- package/dist/useCoverMedia-VLw3OYN_.js +0 -149
- /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
- /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
- /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
- /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
- /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-B4FQTz14.js} +0 -0
- /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
- /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
- /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
- /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
- /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
- /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
- /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-Bam05Bc9.js} +0 -0
- /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
- /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-D0hm-8jN.js} +0 -0
- /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-B3TEaluh.js} +0 -0
- /package/dist/{purify.es-0fCPkEV1.js → purify.es-DhY3JLdI.js} +0 -0
- /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import { n as
|
|
16
|
-
import { n as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
1
|
+
import { u as useTranslation } from "./devWarn-SLn4Qexk.js";
|
|
2
|
+
import { T as k, g, h as d, l as z, o as P, p as _, u as A, v as q, x as u } from "./vendor-preact-CjnloSla.js";
|
|
3
|
+
import { b as PrizmaButton, i as LockIcon, o as FileIcon, v as CameraIcon } from "./icons-DLZTxOV2.js";
|
|
4
|
+
import { h as cn, i as Asset, t as Spacer } from "./spacer-DQdgPJjU.js";
|
|
5
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-C2Ro8zdn.js";
|
|
6
|
+
import { i as useCloseButton, t as Page } from "./page-b7Hx6klV.js";
|
|
7
|
+
import { r as Modal } from "./pageUiConfig-BlsOWl2d.js";
|
|
8
|
+
import { _ as useModuleTerminalCallbacks, p as useIsMobileDeviceWidth, t as withStandaloneModuleBootstrap, y as useManager } from "./hooks-C6m_ILVe.js";
|
|
9
|
+
import { t as Spinner } from "./spinner-DQf6JseL.js";
|
|
10
|
+
import "./transitionSpinner-BTr1yrwy.js";
|
|
11
|
+
import { t as IncodeComponent } from "./incodeComponent-DPY-ikO3.js";
|
|
12
|
+
import { t as ErrorContent } from "./errorContent-CqXgrkbQ.js";
|
|
13
|
+
import { t as ProgressBar } from "./progressBar-CmkJY5xT.js";
|
|
14
|
+
import { t as BottomSheet } from "./bottomSheet-DRRJstLk.js";
|
|
15
|
+
import { n as CameraFrame, t as CameraView } from "./cameraView-CKWEmlho.js";
|
|
16
|
+
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-VCCUFLoy.js";
|
|
17
|
+
import { t as CaptureFooter } from "./captureFooter-5KiLmkNi.js";
|
|
18
|
+
import { t as Permissions } from "./permissions-CS58hLHp.js";
|
|
19
|
+
import { t as useCaptureHelpButton } from "./useCaptureHelpButton-CSuQmlEp.js";
|
|
20
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-Dyy5PfM4.js";
|
|
19
21
|
import { createDocumentCaptureManager } from "@incodetech/core/document-capture";
|
|
20
22
|
//#region src/modules/document-capture/documentCameraView.tsx
|
|
21
23
|
function captureFrameFromVideo(video) {
|
|
@@ -30,6 +32,7 @@ function captureFrameFromVideo(video) {
|
|
|
30
32
|
}
|
|
31
33
|
var DocumentCameraView = ({ stream, manager, onOpenHelp, helpButtonRef }) => {
|
|
32
34
|
const { t } = useTranslation();
|
|
35
|
+
const [previewPending, setPreviewPending] = d(true);
|
|
33
36
|
const videoRef = A(null);
|
|
34
37
|
const helpButton = useCaptureHelpButton({
|
|
35
38
|
onOpenHelp,
|
|
@@ -39,20 +42,22 @@ var DocumentCameraView = ({ stream, manager, onOpenHelp, helpButtonRef }) => {
|
|
|
39
42
|
const closeButton = useCloseButton();
|
|
40
43
|
const handleCapture = q(() => {
|
|
41
44
|
const video = videoRef.current;
|
|
42
|
-
if (!video) return;
|
|
45
|
+
if (!video || previewPending) return;
|
|
43
46
|
const base64 = captureFrameFromVideo(video);
|
|
44
47
|
if (!base64) return;
|
|
45
48
|
const blob = new Blob([Uint8Array.from(atob(base64), (c) => c.charCodeAt(0))], { type: "image/jpeg" });
|
|
46
49
|
const file = new File([blob], "document.jpg", { type: "image/jpeg" });
|
|
47
50
|
manager.setFile(file, `data:image/jpeg;base64,${base64}`);
|
|
48
|
-
}, [manager]);
|
|
51
|
+
}, [manager, previewPending]);
|
|
49
52
|
return /* @__PURE__ */ u("main", {
|
|
50
53
|
class: "IncodeDocumentCaptureCameraPage",
|
|
51
54
|
children: /* @__PURE__ */ u(CameraView, {
|
|
52
55
|
stream,
|
|
53
56
|
videoRef,
|
|
57
|
+
onPreviewPendingChange: setPreviewPending,
|
|
54
58
|
"data-testid": "document-capture-camera",
|
|
55
59
|
children: /* @__PURE__ */ u(CameraOverlay, {
|
|
60
|
+
className: "IncodeCompactReflow",
|
|
56
61
|
floatingHelpButton: helpButton.floating,
|
|
57
62
|
floatingCloseButton: closeButton,
|
|
58
63
|
children: [
|
|
@@ -66,6 +71,7 @@ var DocumentCameraView = ({ stream, manager, onOpenHelp, helpButtonRef }) => {
|
|
|
66
71
|
onOpenHelp,
|
|
67
72
|
helpButtonRef,
|
|
68
73
|
onCapture: handleCapture,
|
|
74
|
+
captureDisabled: previewPending,
|
|
69
75
|
isManualCapture: true,
|
|
70
76
|
captureAriaLabel: t("manualCapture.ariaLabel"),
|
|
71
77
|
helpAriaLabel: helpButton.footer?.ariaLabel,
|
|
@@ -231,10 +237,10 @@ var DocumentCommonIssues = ({ onClose, returnFocusRef }) => {
|
|
|
231
237
|
children: /* @__PURE__ */ u(Modal.Content, {
|
|
232
238
|
class: "IncodeDocumentCommonIssuesContent",
|
|
233
239
|
children: [
|
|
234
|
-
/* @__PURE__ */ u(Modal.
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
})
|
|
240
|
+
/* @__PURE__ */ u(Modal.Header, {
|
|
241
|
+
title: t("commonIssues.commonIssues"),
|
|
242
|
+
headingProps: { className: "IncodeDocumentCommonIssuesTitle" }
|
|
243
|
+
}),
|
|
238
244
|
/* @__PURE__ */ u("div", {
|
|
239
245
|
class: "IncodeDocumentCommonIssuesCards",
|
|
240
246
|
children: ISSUES.map((issue) => /* @__PURE__ */ u("div", {
|
|
@@ -256,9 +262,11 @@ var DocumentCommonIssues = ({ onClose, returnFocusRef }) => {
|
|
|
256
262
|
}),
|
|
257
263
|
/* @__PURE__ */ u(Modal.Actions, {
|
|
258
264
|
class: "IncodeDocumentCommonIssuesButtons",
|
|
259
|
-
children: /* @__PURE__ */ u(
|
|
265
|
+
children: /* @__PURE__ */ u(PrizmaButton, {
|
|
266
|
+
variant: "primary",
|
|
267
|
+
size: "L",
|
|
260
268
|
onClick: onClose,
|
|
261
|
-
|
|
269
|
+
className: "IncodeButton IncodeButtonPrimary IncodeButtonL IncodeDocumentCommonIssuesTryAgain",
|
|
262
270
|
"data-testid": "document-capture-common-issues-close-button",
|
|
263
271
|
children: t("commonIssues.tryAgain")
|
|
264
272
|
})
|
|
@@ -268,17 +276,55 @@ var DocumentCommonIssues = ({ onClose, returnFocusRef }) => {
|
|
|
268
276
|
});
|
|
269
277
|
};
|
|
270
278
|
//#endregion
|
|
279
|
+
//#region src/hooks/useVerticalOverflow.ts
|
|
280
|
+
/** Watches a scroll container and its direct children for vertical overflow. */
|
|
281
|
+
function useVerticalOverflow(enabled = true) {
|
|
282
|
+
const ref = A(null);
|
|
283
|
+
const [isOverflowing, setIsOverflowing] = d(false);
|
|
284
|
+
_(() => {
|
|
285
|
+
const element = ref.current;
|
|
286
|
+
if (!enabled || !element) {
|
|
287
|
+
setIsOverflowing(false);
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
const checkOverflow = () => {
|
|
291
|
+
setIsOverflowing(element.scrollHeight > element.clientHeight + 1);
|
|
292
|
+
};
|
|
293
|
+
let frame = 0;
|
|
294
|
+
const observer = new ResizeObserver(() => {
|
|
295
|
+
cancelAnimationFrame(frame);
|
|
296
|
+
frame = requestAnimationFrame(checkOverflow);
|
|
297
|
+
});
|
|
298
|
+
observer.observe(element);
|
|
299
|
+
for (const child of element.children) observer.observe(child);
|
|
300
|
+
checkOverflow();
|
|
301
|
+
return () => {
|
|
302
|
+
observer.disconnect();
|
|
303
|
+
cancelAnimationFrame(frame);
|
|
304
|
+
};
|
|
305
|
+
}, [enabled]);
|
|
306
|
+
return {
|
|
307
|
+
ref,
|
|
308
|
+
isOverflowing: enabled && isOverflowing
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
//#endregion
|
|
271
312
|
//#region src/modules/document-capture/previewFooter.tsx
|
|
272
313
|
var PreviewFooter = ({ manager }) => {
|
|
273
314
|
const { t } = useTranslation();
|
|
274
315
|
return /* @__PURE__ */ u("div", {
|
|
275
316
|
class: "IncodeDocumentCaptureActionRow",
|
|
276
|
-
children: [/* @__PURE__ */ u(
|
|
317
|
+
children: [/* @__PURE__ */ u(PrizmaButton, {
|
|
318
|
+
size: "L",
|
|
319
|
+
className: "IncodeButton IncodeButtonSecondary IncodeButtonL",
|
|
277
320
|
variant: "secondary",
|
|
278
321
|
onClick: () => manager.retake(),
|
|
279
322
|
"data-testid": "document-capture-retake-button",
|
|
280
323
|
children: t("documentCapture.review.replace")
|
|
281
|
-
}), /* @__PURE__ */ u(
|
|
324
|
+
}), /* @__PURE__ */ u(PrizmaButton, {
|
|
325
|
+
variant: "primary",
|
|
326
|
+
size: "L",
|
|
327
|
+
className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
|
|
282
328
|
onClick: () => manager.accept(),
|
|
283
329
|
"data-testid": "document-capture-accept-button",
|
|
284
330
|
children: t("documentCapture.review.continue")
|
|
@@ -289,23 +335,22 @@ var PreviewFooter = ({ manager }) => {
|
|
|
289
335
|
//#region src/modules/document-capture/previewHeader.tsx
|
|
290
336
|
var PreviewHeader = ({ isFilePdf }) => {
|
|
291
337
|
const { t } = useTranslation();
|
|
292
|
-
return /* @__PURE__ */ u(k, { children:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
class: "IncodeDocumentCaptureReviewSubtitle",
|
|
300
|
-
children: isFilePdf ? t("documentCapture.review.subtitlePdfUpload") : t("documentCapture.review.subtitleCaptured")
|
|
301
|
-
})
|
|
302
|
-
] });
|
|
338
|
+
return /* @__PURE__ */ u(k, { children: /* @__PURE__ */ u(AutoFocusTitle, {
|
|
339
|
+
className: "IncodeDocumentCaptureReviewTitle",
|
|
340
|
+
showSubtitle: true,
|
|
341
|
+
subtitle: isFilePdf ? t("documentCapture.review.subtitlePdfUpload") : t("documentCapture.review.subtitleCaptured"),
|
|
342
|
+
subtitleProps: { className: "IncodeDocumentCaptureReviewSubtitle" },
|
|
343
|
+
children: isFilePdf ? t("documentCapture.review.titlePdfUpload") : t("documentCapture.review.titleCaptured")
|
|
344
|
+
}) });
|
|
303
345
|
};
|
|
304
346
|
//#endregion
|
|
305
347
|
//#region src/modules/document-capture/successFooter.tsx
|
|
306
348
|
var SuccessFooter = ({ manager }) => {
|
|
307
349
|
const { t } = useTranslation();
|
|
308
|
-
return /* @__PURE__ */ u(
|
|
350
|
+
return /* @__PURE__ */ u(PrizmaButton, {
|
|
351
|
+
variant: "primary",
|
|
352
|
+
size: "L",
|
|
353
|
+
className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
|
|
309
354
|
onClick: () => manager.continue(),
|
|
310
355
|
"data-testid": "document-capture-continue-button",
|
|
311
356
|
children: t("documentCapture.review.continue")
|
|
@@ -315,14 +360,14 @@ var SuccessFooter = ({ manager }) => {
|
|
|
315
360
|
//#region src/modules/document-capture/successHeader.tsx
|
|
316
361
|
var SuccessHeader = () => {
|
|
317
362
|
const { t } = useTranslation();
|
|
318
|
-
return /* @__PURE__ */ u(k, { children:
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
363
|
+
return /* @__PURE__ */ u(k, { children: /* @__PURE__ */ u(AutoFocusTitle, {
|
|
364
|
+
className: "IncodeDocumentCaptureReviewTitle",
|
|
365
|
+
icon: {
|
|
366
|
+
type: "status",
|
|
367
|
+
status: "success"
|
|
368
|
+
},
|
|
369
|
+
children: t("documentCapture.review.successTitle")
|
|
370
|
+
}) });
|
|
326
371
|
};
|
|
327
372
|
//#endregion
|
|
328
373
|
//#region src/modules/document-capture/uploadingHeader.tsx
|
|
@@ -345,9 +390,11 @@ var UploadingHeader = ({ progress, isFilePdf }) => {
|
|
|
345
390
|
};
|
|
346
391
|
//#endregion
|
|
347
392
|
//#region src/modules/document-capture/documentReview.tsx
|
|
348
|
-
var PdfViewer = z(() => import("./pdfViewer-
|
|
393
|
+
var PdfViewer = z(() => import("./pdfViewer-BT-O-Zj1.js").then((m) => ({ default: m.PdfViewer })));
|
|
349
394
|
var DocumentReview = ({ state, manager }) => {
|
|
350
395
|
const { t } = useTranslation();
|
|
396
|
+
const isUploading = state.status === "uploading";
|
|
397
|
+
const { ref: layoutRef, isOverflowing } = useVerticalOverflow(isUploading);
|
|
351
398
|
if (state.status === "failure") {
|
|
352
399
|
const noMoreAttempts = state.attemptsRemaining <= 0;
|
|
353
400
|
return /* @__PURE__ */ u(ErrorContent, {
|
|
@@ -361,7 +408,6 @@ var DocumentReview = ({ state, manager }) => {
|
|
|
361
408
|
const isFilePdf = state.fileType === "application/pdf" || state.imageBase64.startsWith("data:application/pdf");
|
|
362
409
|
const { fileName } = state;
|
|
363
410
|
const isPreview = state.status === "preview";
|
|
364
|
-
const isUploading = state.status === "uploading";
|
|
365
411
|
const isSuccess = state.status === "success";
|
|
366
412
|
const isNextPage = state.status === "nextPage";
|
|
367
413
|
const showSuccessChrome = isSuccess || isNextPage;
|
|
@@ -371,7 +417,11 @@ var DocumentReview = ({ state, manager }) => {
|
|
|
371
417
|
className: "IncodeDocumentCapturePage IncodeDocumentCaptureReviewPage",
|
|
372
418
|
"data-testid": "document-capture-review",
|
|
373
419
|
children: /* @__PURE__ */ u("div", {
|
|
374
|
-
|
|
420
|
+
ref: layoutRef,
|
|
421
|
+
class: "IncodeDocumentCaptureReviewLayout IncodeCompactReflow",
|
|
422
|
+
tabIndex: isOverflowing ? 0 : void 0,
|
|
423
|
+
role: isOverflowing ? "region" : void 0,
|
|
424
|
+
"aria-labelledby": isOverflowing ? "document-capture-uploading-title" : void 0,
|
|
375
425
|
children: [
|
|
376
426
|
/* @__PURE__ */ u("div", {
|
|
377
427
|
class: "IncodeDocumentCaptureReviewHeader",
|
|
@@ -442,7 +492,7 @@ var SvgDocumentCaptureTutorial = (props) => /* @__PURE__ */ u("svg", {
|
|
|
442
492
|
cx: 145.743,
|
|
443
493
|
cy: 152.074,
|
|
444
494
|
r: 139.295,
|
|
445
|
-
fill: "#e5f0ff"
|
|
495
|
+
fill: "var(--surface-brand-50, #e5f0ff)"
|
|
446
496
|
}),
|
|
447
497
|
/* @__PURE__ */ u("g", {
|
|
448
498
|
filter: "url(#filter0_d_4533_6792)",
|
|
@@ -602,6 +652,9 @@ function fileToBase64(file) {
|
|
|
602
652
|
reader.readAsDataURL(file);
|
|
603
653
|
});
|
|
604
654
|
}
|
|
655
|
+
function withFallback(override, fallback) {
|
|
656
|
+
return override?.trim() ? override : fallback;
|
|
657
|
+
}
|
|
605
658
|
//#endregion
|
|
606
659
|
//#region src/modules/document-capture/documentTutorial.tsx
|
|
607
660
|
var BYTES_PER_MB = 1024 * 1024;
|
|
@@ -616,8 +669,8 @@ var DocumentTutorial = ({ manager, title: titleProp, text: textProp, allowSkipDo
|
|
|
616
669
|
const prefix = pageNumber > 1 ? "documentCapture.tutorial.multiPageDocument" : "documentCapture.tutorial";
|
|
617
670
|
const maxFileSizeMB = Math.round(maxFileSize / BYTES_PER_MB);
|
|
618
671
|
const subtitleKey = pageNumber > 1 ? `${prefix}.subtitle` : isCaptureOnly ? "documentCapture.tutorial.captureOnlySubtitle" : isUploadOnly ? "documentCapture.tutorial.uploadOnlySubtitle" : "documentCapture.tutorial.subtitle";
|
|
619
|
-
const title =
|
|
620
|
-
const text =
|
|
672
|
+
const title = withFallback(titleProp, t(`${prefix}.title`));
|
|
673
|
+
const text = withFallback(textProp, t(subtitleKey));
|
|
621
674
|
const openFilePicker = () => {
|
|
622
675
|
fileInputRef.current?.click();
|
|
623
676
|
};
|
|
@@ -695,15 +748,20 @@ var DocumentTutorial = ({ manager, title: titleProp, text: textProp, allowSkipDo
|
|
|
695
748
|
}) : null,
|
|
696
749
|
/* @__PURE__ */ u("div", {
|
|
697
750
|
class: "IncodeDocumentCaptureActions",
|
|
698
|
-
children: [/* @__PURE__ */ u(
|
|
751
|
+
children: [/* @__PURE__ */ u(PrizmaButton, {
|
|
752
|
+
variant: "primary",
|
|
753
|
+
size: "L",
|
|
754
|
+
className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
|
|
699
755
|
ref: primaryButtonRef,
|
|
700
756
|
onClick: handlePrimaryClick,
|
|
701
757
|
"data-testid": "document-capture-continue-button",
|
|
702
758
|
children: primaryLabel
|
|
703
759
|
}), allowSkipDocumentCapture ? /* @__PURE__ */ u("div", {
|
|
704
760
|
class: "IncodeDocumentCaptureSkipWrapper",
|
|
705
|
-
children: /* @__PURE__ */ u(
|
|
706
|
-
|
|
761
|
+
children: /* @__PURE__ */ u(PrizmaButton, {
|
|
762
|
+
size: "L",
|
|
763
|
+
className: "IncodeButton IncodeButtonLink IncodeButtonL",
|
|
764
|
+
variant: "tertiary-link",
|
|
707
765
|
onClick: () => manager.skip(),
|
|
708
766
|
"data-testid": "document-capture-skip-button",
|
|
709
767
|
children: t("documentCapture.tutorial.skipButton")
|
|
@@ -723,7 +781,7 @@ var DocumentTutorial = ({ manager, title: titleProp, text: textProp, allowSkipDo
|
|
|
723
781
|
};
|
|
724
782
|
//#endregion
|
|
725
783
|
//#region src/modules/document-capture/nextDocumentPage.tsx
|
|
726
|
-
var NextDocumentPage = ({ manager, nextPageType, onlyUpload, onlyPdf = false }) => {
|
|
784
|
+
var NextDocumentPage = ({ manager, nextPageType, onlyUpload, onlyPdf = false, title, text }) => {
|
|
727
785
|
const { t } = useTranslation();
|
|
728
786
|
const isMobileWidth = useIsMobileDeviceWidth();
|
|
729
787
|
const fileInputRef = A(null);
|
|
@@ -731,7 +789,8 @@ var NextDocumentPage = ({ manager, nextPageType, onlyUpload, onlyPdf = false })
|
|
|
731
789
|
const [isBottomSheetOpen, setIsBottomSheetOpen] = d(false);
|
|
732
790
|
const fileAccept = onlyPdf ? "application/pdf" : "image/jpeg,image/png";
|
|
733
791
|
const prefix = "documentCapture.tutorial.multiPageDocument";
|
|
734
|
-
const
|
|
792
|
+
const pageTitle = withFallback(title, t(`${prefix}.title`));
|
|
793
|
+
const pageSubtitle = withFallback(text, t(nextPageType === "optional" ? `${prefix}.optionalPage.subtitle` : `${prefix}.subtitle`));
|
|
735
794
|
const showBottomSheet = !onlyUpload && isMobileWidth;
|
|
736
795
|
const closeBottomSheet = q(() => setIsBottomSheetOpen(false), []);
|
|
737
796
|
const openFilePicker = () => {
|
|
@@ -758,8 +817,8 @@ var NextDocumentPage = ({ manager, nextPageType, onlyUpload, onlyPdf = false })
|
|
|
758
817
|
};
|
|
759
818
|
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Page, {
|
|
760
819
|
className: "IncodeDocumentCapturePageTutorial",
|
|
761
|
-
title:
|
|
762
|
-
subtitle,
|
|
820
|
+
title: pageTitle,
|
|
821
|
+
subtitle: pageSubtitle,
|
|
763
822
|
"data-testid": "document-capture-tutorial",
|
|
764
823
|
children: [
|
|
765
824
|
/* @__PURE__ */ u("input", {
|
|
@@ -783,15 +842,20 @@ var NextDocumentPage = ({ manager, nextPageType, onlyUpload, onlyPdf = false })
|
|
|
783
842
|
})
|
|
784
843
|
})
|
|
785
844
|
}),
|
|
786
|
-
/* @__PURE__ */ u(
|
|
845
|
+
/* @__PURE__ */ u(PrizmaButton, {
|
|
846
|
+
variant: "primary",
|
|
847
|
+
size: "L",
|
|
848
|
+
className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
|
|
787
849
|
ref: primaryButtonRef,
|
|
788
850
|
onClick: handlePrimaryClick,
|
|
789
851
|
"data-testid": "document-capture-add-next-page-button",
|
|
790
852
|
children: t("documentCapture.button.nextPage")
|
|
791
853
|
}),
|
|
792
854
|
/* @__PURE__ */ u(Spacer, { size: 12 }),
|
|
793
|
-
nextPageType === "optional" && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(
|
|
794
|
-
|
|
855
|
+
nextPageType === "optional" && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(PrizmaButton, {
|
|
856
|
+
size: "L",
|
|
857
|
+
className: "IncodeButton IncodeButtonLink IncodeButtonL",
|
|
858
|
+
variant: "tertiary-link",
|
|
795
859
|
onClick: () => manager.finishPageCapture(),
|
|
796
860
|
"data-testid": "document-capture-finish-pages-button",
|
|
797
861
|
children: t("documentCapture.button.allPagesCaptured")
|
|
@@ -816,10 +880,7 @@ var DocumentCaptureLoading = ({ title }) => {
|
|
|
816
880
|
className: "IncodeDocumentCaptureLoadingPage",
|
|
817
881
|
children: /* @__PURE__ */ u("div", {
|
|
818
882
|
class: "IncodeDocumentCaptureCentered",
|
|
819
|
-
children: /* @__PURE__ */ u(Spinner, {
|
|
820
|
-
size: "large",
|
|
821
|
-
title
|
|
822
|
-
})
|
|
883
|
+
children: /* @__PURE__ */ u(Spinner, { title })
|
|
823
884
|
})
|
|
824
885
|
});
|
|
825
886
|
};
|
|
@@ -836,7 +897,8 @@ var DocumentCaptureContent = ({ config, manager: externalManager, onFinish, onEr
|
|
|
836
897
|
useModuleTerminalCallbacks({
|
|
837
898
|
status: state.status,
|
|
838
899
|
onFinish,
|
|
839
|
-
onError
|
|
900
|
+
onError,
|
|
901
|
+
cameraPermissionDenied: state.status === "permissions" && state.permissionStatus === "denied"
|
|
840
902
|
});
|
|
841
903
|
if (state.status === "finished" || state.status === "closed") return null;
|
|
842
904
|
if (state.status === "tutorial") return /* @__PURE__ */ u(DocumentTutorial, {
|
|
@@ -856,12 +918,14 @@ var DocumentCaptureContent = ({ config, manager: externalManager, onFinish, onEr
|
|
|
856
918
|
manager,
|
|
857
919
|
nextPageType: state.nextPageType,
|
|
858
920
|
onlyUpload: state.onlyUpload,
|
|
859
|
-
onlyPdf: state.onlyPdf
|
|
921
|
+
onlyPdf: state.onlyPdf,
|
|
922
|
+
title: state.title,
|
|
923
|
+
text: state.text
|
|
860
924
|
});
|
|
861
925
|
if (state.status === "capturing" && (state.captureMethod === "file" || state.captureMethod === "gallery")) return /* @__PURE__ */ u(DocumentTutorial, {
|
|
862
926
|
manager,
|
|
863
|
-
title:
|
|
864
|
-
text:
|
|
927
|
+
title: state.title,
|
|
928
|
+
text: state.text,
|
|
865
929
|
allowSkipDocumentCapture: false,
|
|
866
930
|
onlyCapture: false,
|
|
867
931
|
onlyUpload: true,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dropdownComposed-CUBU43V3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as
|
|
3
|
-
import {
|
|
4
|
-
import { t as FieldLabelHint } from "./fieldLabelHint-
|
|
1
|
+
import { T as k, b as y, h as d, u as A, x as u } from "./vendor-preact-CjnloSla.js";
|
|
2
|
+
import { d as CloseIcon, h as CheckmarkCompactIcon, l as ErrorIcon, m as ChevronDown, n as SuccessIcon, r as SearchIcon } from "./icons-DLZTxOV2.js";
|
|
3
|
+
import { h as cn } from "./spacer-DQdgPJjU.js";
|
|
4
|
+
import { t as FieldLabelHint } from "./fieldLabelHint-yMZjXK6p.js";
|
|
5
5
|
//#region src/shared/dropdownComposed/dropdownComposed.tsx
|
|
6
6
|
var normalizeForSearch = (value) => value.normalize("NFD").replace(/\p{Diacritic}/gu, "").toLowerCase();
|
|
7
7
|
var DropdownComposed = ({ id, label, labelHint, placeholder = "Choose an option", value, options, onChange, error, helper, showErrorIcon, showHelperIcon, suppressMessages = false, disabled = false, required, searchable = false, searchPlaceholder = "Search...", noResultsText = "No results found", name, tabIndex, onKeyDown, onBlur, renderSelectedLabel, siblingElement, class: className, "aria-label": ariaLabel, "data-testid": dataTestId }) => {
|
|
@@ -18,6 +18,7 @@ var DropdownComposed = ({ id, label, labelHint, placeholder = "Choose an option"
|
|
|
18
18
|
const selectedOption = options.find((o) => o.value === value);
|
|
19
19
|
const triggerText = selectedOption ? renderSelectedLabel ? renderSelectedLabel(selectedOption) : selectedOption.label : placeholder;
|
|
20
20
|
const filteredOptions = searchable && searchQuery ? options.filter((option) => normalizeForSearch(option.ariaLabel ?? option.label).includes(normalizeForSearch(searchQuery))) : options;
|
|
21
|
+
const hasHighlightedOption = highlightedIndex >= 0 && highlightedIndex < filteredOptions.length;
|
|
21
22
|
const labelId = `${id}-label`;
|
|
22
23
|
const valueId = `${id}-value`;
|
|
23
24
|
const listboxId = `${id}-listbox`;
|
|
@@ -257,7 +258,7 @@ var DropdownComposed = ({ id, label, labelHint, placeholder = "Choose an option"
|
|
|
257
258
|
"data-error": error ? "true" : void 0,
|
|
258
259
|
children: [searchable && /* @__PURE__ */ u("div", {
|
|
259
260
|
class: "IncodeDropdownComposedSearchWrapper",
|
|
260
|
-
"data-option-highlighted":
|
|
261
|
+
"data-option-highlighted": hasHighlightedOption ? "true" : void 0,
|
|
261
262
|
children: /* @__PURE__ */ u("div", {
|
|
262
263
|
class: "IncodeDropdownComposedSearchInner",
|
|
263
264
|
children: [/* @__PURE__ */ u("input", {
|
|
@@ -277,7 +278,7 @@ var DropdownComposed = ({ id, label, labelHint, placeholder = "Choose an option"
|
|
|
277
278
|
"aria-autocomplete": "list",
|
|
278
279
|
"aria-expanded": "true",
|
|
279
280
|
"aria-controls": listboxId,
|
|
280
|
-
"aria-activedescendant":
|
|
281
|
+
"aria-activedescendant": hasHighlightedOption ? `${id}-option-${highlightedIndex}` : void 0,
|
|
281
282
|
"aria-required": required ? "true" : void 0,
|
|
282
283
|
"aria-invalid": error ? "true" : void 0,
|
|
283
284
|
"aria-labelledby": label ? labelId : void 0,
|
|
@@ -290,6 +291,7 @@ var DropdownComposed = ({ id, label, labelHint, placeholder = "Choose an option"
|
|
|
290
291
|
onMouseDown: (e) => e.preventDefault(),
|
|
291
292
|
onClick: () => {
|
|
292
293
|
setSearchQuery("");
|
|
294
|
+
setHighlightedIndex(-1);
|
|
293
295
|
searchInputRef.current?.focus();
|
|
294
296
|
},
|
|
295
297
|
"aria-label": "Clear search query",
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as DateInputComposed } from "../dateInputComposed-
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
1
|
+
import { u as useTranslation } from "../devWarn-SLn4Qexk.js";
|
|
2
|
+
import { f as T, g, x as u } from "../vendor-preact-CjnloSla.js";
|
|
3
|
+
import { b as PrizmaButton } from "../icons-DLZTxOV2.js";
|
|
4
|
+
import { h as cn } from "../spacer-DQdgPJjU.js";
|
|
5
|
+
import { t as PrizmaTextField } from "../TextField-D41q5WTe.js";
|
|
6
|
+
import { t as Page } from "../page-b7Hx6klV.js";
|
|
7
|
+
import { _ as useModuleTerminalCallbacks, t as withStandaloneModuleBootstrap, y as useManager } from "../hooks-C6m_ILVe.js";
|
|
8
|
+
import { t as IncodeComponent } from "../incodeComponent-DPY-ikO3.js";
|
|
9
|
+
import { t as VerificationResult } from "../verificationResult-C8jlwbOw.js";
|
|
10
|
+
import { t as FieldLabelHint } from "../fieldLabelHint-yMZjXK6p.js";
|
|
11
|
+
import { t as DateInputComposed } from "../dateInputComposed-DqOzOxfP.js";
|
|
12
|
+
import { n as getAlpha2FromAlpha3 } from "../countryDefinitions-UXJ0maPk.js";
|
|
13
|
+
import { n as countries, t as PhoneInputComposed } from "../phoneInputComposed-Dc2lHg4Z.js";
|
|
14
|
+
import { t as DropdownComposed } from "../dropdownComposed-CUBU43V3.js";
|
|
15
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-Dyy5PfM4.js";
|
|
16
|
+
import { t as PrizmaRequiredLegend } from "../RequiredLegend-CLQ0HX7d.js";
|
|
17
|
+
import { t as EmailInput } from "../emailInput-Bd8XECrW.js";
|
|
14
18
|
import { createDynamicFormsManager } from "@incodetech/core/dynamic-forms";
|
|
15
19
|
import { formatCPF, isValidCPF } from "@incodetech/core/id-ocr";
|
|
16
20
|
//#region src/modules/dynamic-forms/dynamic-forms.tsx
|
|
@@ -32,6 +36,17 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, isPr
|
|
|
32
36
|
const label = question.question;
|
|
33
37
|
const isRequired = !question.isOptional;
|
|
34
38
|
const autocomplete = getAutocompleteToken(effectiveType);
|
|
39
|
+
const textLabel = labelHint ? /* @__PURE__ */ u("label", {
|
|
40
|
+
class: "IncodeInputComposedLabel",
|
|
41
|
+
htmlFor: id,
|
|
42
|
+
"data-testid": `${id}-label`,
|
|
43
|
+
children: [label, /* @__PURE__ */ u(FieldLabelHint, {
|
|
44
|
+
className: "IncodeInputComposedLabelHint",
|
|
45
|
+
hint: labelHint,
|
|
46
|
+
required: isRequired,
|
|
47
|
+
testId: `${id}-label-hint`
|
|
48
|
+
})]
|
|
49
|
+
}) : null;
|
|
35
50
|
const fieldClass = isPrefilled ? "IncodeDynamicFormsField IncodeDynamicFormsField--prefilled" : "IncodeDynamicFormsField";
|
|
36
51
|
const isCountryField = effectiveType === "COUNTRY" || effectiveType === "NATIONALITY";
|
|
37
52
|
const countryOptions = T(() => isCountryField ? countries.map((c) => ({
|
|
@@ -163,18 +178,20 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, isPr
|
|
|
163
178
|
});
|
|
164
179
|
if (effectiveType === "CPF") return /* @__PURE__ */ u("div", {
|
|
165
180
|
class: fieldClass,
|
|
166
|
-
children: /* @__PURE__ */ u(
|
|
181
|
+
children: [textLabel, /* @__PURE__ */ u(PrizmaTextField, {
|
|
182
|
+
className: "IncodeInputComposed",
|
|
183
|
+
inputClassName: "IncodeInput",
|
|
184
|
+
clearable: false,
|
|
167
185
|
id,
|
|
168
186
|
"data-testid": id,
|
|
169
187
|
name: question.questionId,
|
|
170
|
-
label,
|
|
171
|
-
labelHint,
|
|
188
|
+
label: labelHint ? void 0 : label,
|
|
172
189
|
inputMode: "numeric",
|
|
173
190
|
maxLength: 14,
|
|
174
191
|
value,
|
|
175
192
|
required: isRequired,
|
|
176
|
-
error,
|
|
177
|
-
|
|
193
|
+
error: !!error,
|
|
194
|
+
errorText: error,
|
|
178
195
|
disabled,
|
|
179
196
|
onInput: (e) => {
|
|
180
197
|
const formatted = formatCPF(e.target.value);
|
|
@@ -183,48 +200,52 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, isPr
|
|
|
183
200
|
onFormatValidityChange?.(question.questionId, isValidCPF(formatted));
|
|
184
201
|
},
|
|
185
202
|
onBlur: () => onBlur?.(question.questionId)
|
|
186
|
-
})
|
|
203
|
+
})]
|
|
187
204
|
});
|
|
188
205
|
if (effectiveType === "NUMBER") return /* @__PURE__ */ u("div", {
|
|
189
206
|
class: fieldClass,
|
|
190
|
-
children: /* @__PURE__ */ u(
|
|
207
|
+
children: [textLabel, /* @__PURE__ */ u(PrizmaTextField, {
|
|
208
|
+
className: "IncodeInputComposed",
|
|
209
|
+
inputClassName: "IncodeInput",
|
|
210
|
+
clearable: false,
|
|
191
211
|
id,
|
|
192
212
|
"data-testid": id,
|
|
193
213
|
name: question.questionId,
|
|
194
|
-
label,
|
|
195
|
-
labelHint,
|
|
214
|
+
label: labelHint ? void 0 : label,
|
|
196
215
|
type: "number",
|
|
197
216
|
inputMode: "numeric",
|
|
198
217
|
value,
|
|
199
218
|
required: isRequired,
|
|
200
|
-
error,
|
|
201
|
-
|
|
219
|
+
error: !!error,
|
|
220
|
+
errorText: error,
|
|
202
221
|
disabled,
|
|
203
222
|
onInput: (e) => {
|
|
204
223
|
const numeric = e.target.value.replace(/[^0-9]/g, "");
|
|
205
224
|
onChange(question.questionId, numeric);
|
|
206
225
|
},
|
|
207
226
|
onBlur: () => onBlur?.(question.questionId)
|
|
208
|
-
})
|
|
227
|
+
})]
|
|
209
228
|
});
|
|
210
229
|
return /* @__PURE__ */ u("div", {
|
|
211
230
|
class: fieldClass,
|
|
212
|
-
children: /* @__PURE__ */ u(
|
|
231
|
+
children: [textLabel, /* @__PURE__ */ u(PrizmaTextField, {
|
|
232
|
+
className: "IncodeInputComposed",
|
|
233
|
+
inputClassName: "IncodeInput",
|
|
234
|
+
clearable: false,
|
|
213
235
|
id,
|
|
214
236
|
"data-testid": id,
|
|
215
237
|
name: question.questionId,
|
|
216
|
-
label,
|
|
217
|
-
labelHint,
|
|
238
|
+
label: labelHint ? void 0 : label,
|
|
218
239
|
type: "text",
|
|
219
240
|
value,
|
|
220
241
|
required: isRequired,
|
|
221
|
-
autocomplete,
|
|
222
|
-
error,
|
|
223
|
-
|
|
242
|
+
autoComplete: autocomplete,
|
|
243
|
+
error: !!error,
|
|
244
|
+
errorText: error,
|
|
224
245
|
disabled,
|
|
225
246
|
onInput: (e) => onChange(question.questionId, e.target.value),
|
|
226
247
|
onBlur: () => onBlur?.(question.questionId)
|
|
227
|
-
})
|
|
248
|
+
})]
|
|
228
249
|
});
|
|
229
250
|
};
|
|
230
251
|
var ScreenForm = ({ screen, answers, validationErrors, canSubmit, isSubmitting = false, prefilledQuestionIds, nonEditableQuestionIds, onAnswerChange, onAnswerValidityChange, onValidateField, onSubmit }) => {
|
|
@@ -237,9 +258,12 @@ var ScreenForm = ({ screen, answers, validationErrors, canSubmit, isSubmitting =
|
|
|
237
258
|
className: "IncodeDynamicFormsPage",
|
|
238
259
|
title,
|
|
239
260
|
titleId: title ? titleId : void 0,
|
|
240
|
-
subtitle: t("forms.subtitle"),
|
|
241
261
|
hideFooterBranding: true,
|
|
242
262
|
children: [
|
|
263
|
+
/* @__PURE__ */ u(PrizmaRequiredLegend, {
|
|
264
|
+
className: "IncodeRequiredLegend",
|
|
265
|
+
children: t("forms.subtitle")
|
|
266
|
+
}),
|
|
243
267
|
isSubmitting && /* @__PURE__ */ u("div", {
|
|
244
268
|
role: "status",
|
|
245
269
|
"aria-live": "polite",
|
|
@@ -268,10 +292,13 @@ var ScreenForm = ({ screen, answers, validationErrors, canSubmit, isSubmitting =
|
|
|
268
292
|
}),
|
|
269
293
|
/* @__PURE__ */ u("div", {
|
|
270
294
|
class: "IncodeDynamicFormsFooter",
|
|
271
|
-
children: /* @__PURE__ */ u(
|
|
295
|
+
children: /* @__PURE__ */ u(PrizmaButton, {
|
|
296
|
+
variant: "primary",
|
|
297
|
+
size: "L",
|
|
298
|
+
className: cn("IncodeButton IncodeButtonPrimary IncodeButtonL", isSubmitting && "IncodeButtonLoading"),
|
|
272
299
|
"data-testid": "dynamic-forms-submit",
|
|
273
300
|
disabled: !canSubmit,
|
|
274
|
-
|
|
301
|
+
loading: isSubmitting,
|
|
275
302
|
onClick: onSubmit,
|
|
276
303
|
children: t("common.continue")
|
|
277
304
|
})
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkybModule } from "../ekybModule-
|
|
1
|
+
import { t as EkybModule } from "../ekybModule-mGfuTVTJ.js";
|
|
2
2
|
export { EkybModule };
|