@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,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { u as useTranslation } from "./devWarn-SLn4Qexk.js";
|
|
2
|
+
import { b as y, h as d, u as A, v as q, x as u } from "./vendor-preact-CjnloSla.js";
|
|
3
|
+
import { t as PrizmaTextField } from "./TextField-D41q5WTe.js";
|
|
4
|
+
import { p as useIsMobileDeviceWidth } from "./hooks-C6m_ILVe.js";
|
|
5
|
+
import { t as FieldLabelHint } from "./fieldLabelHint-yMZjXK6p.js";
|
|
6
|
+
import { n as translateError } from "./errorParams-B7BZHaA4.js";
|
|
7
|
+
import { t as BottomSheet } from "./bottomSheet-DRRJstLk.js";
|
|
7
8
|
//#region src/shared/addressAutocomplete/addressAutocomplete.tsx
|
|
8
|
-
var AddressAutocomplete = ({ label, value, error, errorParams, suggestions, readonly, required, labelHint, onChange, onSearch, onSelect, onBlur }) => {
|
|
9
|
+
var AddressAutocomplete = ({ label, value, error, errorParams, suggestions, readonly, disabled, required, labelHint, onChange, onSearch, onSelect, onBlur }) => {
|
|
9
10
|
const { t } = useTranslation();
|
|
10
11
|
const [showSuggestions, setShowSuggestions] = d(false);
|
|
11
12
|
const [isModalOpen, setIsModalOpen] = d(false);
|
|
@@ -20,6 +21,7 @@ var AddressAutocomplete = ({ label, value, error, errorParams, suggestions, read
|
|
|
20
21
|
const mobileTitleId = "ekyc-address-modal-title";
|
|
21
22
|
const isMobile = useIsMobileDeviceWidth();
|
|
22
23
|
const translatedLabel = t(label);
|
|
24
|
+
const errorText = translateError(t, error, errorParams);
|
|
23
25
|
y(() => {
|
|
24
26
|
function handleClickOutside(e) {
|
|
25
27
|
if (containerRef.current && !containerRef.current.contains(e.target)) setShowSuggestions(false);
|
|
@@ -90,15 +92,29 @@ var AddressAutocomplete = ({ label, value, error, errorParams, suggestions, read
|
|
|
90
92
|
className: "IncodeAddressAutocomplete",
|
|
91
93
|
ref: containerRef,
|
|
92
94
|
children: [
|
|
93
|
-
/* @__PURE__ */ u(
|
|
95
|
+
labelHint && /* @__PURE__ */ u("label", {
|
|
96
|
+
class: "IncodeInputComposedLabel",
|
|
97
|
+
htmlFor: "ekyc-street",
|
|
98
|
+
children: [translatedLabel, /* @__PURE__ */ u(FieldLabelHint, {
|
|
99
|
+
className: "IncodeInputComposedLabelHint",
|
|
100
|
+
hint: labelHint,
|
|
101
|
+
required,
|
|
102
|
+
testId: "ekyc-street-label-hint"
|
|
103
|
+
})]
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ u(PrizmaTextField, {
|
|
106
|
+
className: "IncodeInputComposed",
|
|
107
|
+
inputClassName: "IncodeInput",
|
|
108
|
+
clearable: false,
|
|
94
109
|
id: "ekyc-street",
|
|
95
|
-
label: translatedLabel,
|
|
96
|
-
labelHint,
|
|
110
|
+
label: labelHint ? void 0 : translatedLabel,
|
|
97
111
|
name: "street",
|
|
98
112
|
value,
|
|
99
113
|
readOnly: readonly,
|
|
114
|
+
disabled,
|
|
100
115
|
required,
|
|
101
|
-
error:
|
|
116
|
+
error: !!errorText,
|
|
117
|
+
errorText,
|
|
102
118
|
onInput: (e) => handleInput(e.target.value),
|
|
103
119
|
onKeyDown: handleKeyDown,
|
|
104
120
|
onBlur,
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { u as useTranslation } from "./devWarn-SLn4Qexk.js";
|
|
2
|
+
import { b as y, g, h as d, i as D, u as A, v as q, x as u } from "./vendor-preact-CjnloSla.js";
|
|
3
|
+
import { b as PrizmaButton } from "./icons-DLZTxOV2.js";
|
|
4
|
+
import { _ as PrizmaLoadingSpinner, g as mergeAriaIds, h as cn, t as Spacer } from "./spacer-DQdgPJjU.js";
|
|
5
|
+
import { n as useResendTimerAnnouncements, t as formatResendTimer } from "./resendTimer-B7aR2zn3.js";
|
|
6
|
+
//#region ../../node_modules/.pnpm/@incodetech+prizma-core-web@0.20.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@incodetech/prizma-core-web/dist/Otp.js
|
|
7
|
+
var IconFailCircle = () => u("svg", {
|
|
8
|
+
viewBox: "0 0 16 16",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
"aria-hidden": "true",
|
|
11
|
+
children: [u("path", {
|
|
12
|
+
className: "prizma-input-otp__err-circle",
|
|
13
|
+
fillRule: "evenodd",
|
|
14
|
+
clipRule: "evenodd",
|
|
15
|
+
d: "M8 1.66667C4.508 1.66667 1.66667 4.508 1.66667 8C1.66667 11.4927 4.508 14.3333 8 14.3333C11.492 14.3333 14.3333 11.4927 14.3333 8C14.3333 4.508 11.492 1.66667 8 1.66667Z"
|
|
16
|
+
}), u("path", {
|
|
17
|
+
className: "prizma-input-otp__err-x",
|
|
18
|
+
fillRule: "evenodd",
|
|
19
|
+
clipRule: "evenodd",
|
|
20
|
+
d: "M6.0931 6.0898 C6.2884 5.8946 6.605 5.8946 6.8002 6.0898 L8.002 7.2916 L9.2028 6.0908 C9.398 5.8955 9.7146 5.8955 9.9098 6.0908 C10.1051 6.2861 10.1051 6.6026 9.9098 6.7979 L8.7091 7.9986 L9.9138 9.2034 C10.109 9.3986 10.109 9.7152 9.9138 9.9104 C9.7185 10.1057 9.4019 10.1057 9.2067 9.9104 L8.002 8.7058 L6.8015 9.9062 C6.6063 10.1015 6.2897 10.1015 6.0944 9.9062 C5.8992 9.711 5.8992 9.3944 6.0944 9.1991 L7.2949 7.9986 L6.0931 6.797 C5.8979 6.6017 5.8979 6.2851 6.0931 6.0898 Z"
|
|
21
|
+
})]
|
|
22
|
+
});
|
|
23
|
+
var PrizmaOtp = D((props, ref) => {
|
|
24
|
+
const { errorText, disabled = false, readOnly = false, loading = false, error = false, length = 6, pattern = "[A-Za-z0-9]*", inputMode = "numeric", autoComplete = "one-time-code", onValueChange, onComplete, id, value: controlledValue, defaultValue = "", className, inputClassName, style, onChange, ...inputRest } = props;
|
|
25
|
+
const reactId = g();
|
|
26
|
+
const inputId = id ?? `otp-${reactId}`;
|
|
27
|
+
const messageId = `${inputId}-msg`;
|
|
28
|
+
const isControlled = controlledValue !== void 0;
|
|
29
|
+
const [internalValue, setInternalValue] = d(String(defaultValue ?? ""));
|
|
30
|
+
const value = isControlled ? controlledValue : internalValue;
|
|
31
|
+
const hasValue = value !== "" && value !== void 0;
|
|
32
|
+
const showError = error && !!errorText;
|
|
33
|
+
const handleChange = (e) => {
|
|
34
|
+
const next = e.target.value;
|
|
35
|
+
if (!isControlled) setInternalValue(next);
|
|
36
|
+
onChange?.(e);
|
|
37
|
+
onValueChange?.(next);
|
|
38
|
+
if (next.length === length) onComplete?.(next);
|
|
39
|
+
};
|
|
40
|
+
return u("div", {
|
|
41
|
+
className: [
|
|
42
|
+
"prizma-input-otp",
|
|
43
|
+
hasValue ? "prizma-input-otp--filled" : "",
|
|
44
|
+
error ? "prizma-input-otp--error" : "",
|
|
45
|
+
disabled ? "prizma-input-otp--disabled" : "",
|
|
46
|
+
readOnly ? "prizma-input-otp--readonly" : "",
|
|
47
|
+
loading ? "prizma-input-otp--loading" : "",
|
|
48
|
+
className ?? ""
|
|
49
|
+
].filter(Boolean).join(" "),
|
|
50
|
+
style,
|
|
51
|
+
"aria-disabled": disabled ? "true" : void 0,
|
|
52
|
+
"aria-busy": loading ? "true" : void 0,
|
|
53
|
+
children: [u("div", {
|
|
54
|
+
className: "prizma-input-otp__field",
|
|
55
|
+
children: loading ? u(PrizmaLoadingSpinner, {}) : u("input", {
|
|
56
|
+
...inputRest,
|
|
57
|
+
ref,
|
|
58
|
+
id: inputId,
|
|
59
|
+
type: "text",
|
|
60
|
+
inputMode,
|
|
61
|
+
autoComplete,
|
|
62
|
+
pattern,
|
|
63
|
+
maxLength: length,
|
|
64
|
+
className: ["prizma-input-otp__input", inputClassName].filter(Boolean).join(" "),
|
|
65
|
+
value,
|
|
66
|
+
disabled,
|
|
67
|
+
readOnly,
|
|
68
|
+
"aria-invalid": inputRest["aria-invalid"] ?? (error ? "true" : void 0),
|
|
69
|
+
"aria-describedby": mergeAriaIds(inputRest["aria-describedby"], showError ? messageId : void 0),
|
|
70
|
+
onChange: handleChange
|
|
71
|
+
})
|
|
72
|
+
}), showError && u("div", {
|
|
73
|
+
className: "prizma-input-otp__error",
|
|
74
|
+
id: messageId,
|
|
75
|
+
role: "alert",
|
|
76
|
+
children: [u("span", {
|
|
77
|
+
className: "prizma-input-otp__error-icon",
|
|
78
|
+
children: u(IconFailCircle, {})
|
|
79
|
+
}), u("span", {
|
|
80
|
+
className: "prizma-input-otp__error-text",
|
|
81
|
+
children: errorText
|
|
82
|
+
})]
|
|
83
|
+
})]
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
PrizmaOtp.displayName = "PrizmaOtp";
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/shared/otpInput/otpInput.tsx
|
|
89
|
+
var normalizeOtp = (value, maxLength) => {
|
|
90
|
+
return value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase().slice(0, maxLength);
|
|
91
|
+
};
|
|
92
|
+
var OtpInput = ({ value, otpLength, resendTimer, canResend, error, validationError, isValid = true, onSubmit, onChange, onValidate, onResend, onBack, backLinkText = "otp.changePhoneNumber", disabled = false, isLoading = false }) => {
|
|
93
|
+
const { t } = useTranslation();
|
|
94
|
+
const inputRef = A(null);
|
|
95
|
+
const prevCodeLengthRef = A(value.length);
|
|
96
|
+
const lastSubmittedCodeRef = A(null);
|
|
97
|
+
const liveRef = useResendTimerAnnouncements({
|
|
98
|
+
canResend,
|
|
99
|
+
resendTimer
|
|
100
|
+
});
|
|
101
|
+
y(() => {
|
|
102
|
+
if (error) {
|
|
103
|
+
lastSubmittedCodeRef.current = null;
|
|
104
|
+
setTimeout(() => {
|
|
105
|
+
inputRef.current?.focus();
|
|
106
|
+
}, 0);
|
|
107
|
+
}
|
|
108
|
+
}, [error]);
|
|
109
|
+
const submitCode = q((rawCode) => {
|
|
110
|
+
const normalized = normalizeOtp(rawCode, otpLength);
|
|
111
|
+
if (normalized.length !== otpLength || isLoading) return;
|
|
112
|
+
if (lastSubmittedCodeRef.current === normalized) return;
|
|
113
|
+
lastSubmittedCodeRef.current = normalized;
|
|
114
|
+
onSubmit(normalized);
|
|
115
|
+
}, [
|
|
116
|
+
isLoading,
|
|
117
|
+
onSubmit,
|
|
118
|
+
otpLength
|
|
119
|
+
]);
|
|
120
|
+
y(() => {
|
|
121
|
+
const reachedMax = value.length === otpLength && prevCodeLengthRef.current < otpLength;
|
|
122
|
+
prevCodeLengthRef.current = value.length;
|
|
123
|
+
if (reachedMax) submitCode(value);
|
|
124
|
+
}, [
|
|
125
|
+
value,
|
|
126
|
+
otpLength,
|
|
127
|
+
submitCode
|
|
128
|
+
]);
|
|
129
|
+
const handleChange = (e) => {
|
|
130
|
+
const target = e.target;
|
|
131
|
+
onChange(normalizeOtp(target.value, otpLength));
|
|
132
|
+
};
|
|
133
|
+
const handlePaste = (e) => {
|
|
134
|
+
e.preventDefault();
|
|
135
|
+
const normalized = normalizeOtp(e.clipboardData?.getData("text") || "", otpLength);
|
|
136
|
+
if (normalized) onChange(normalized);
|
|
137
|
+
};
|
|
138
|
+
const handleSubmitClick = () => {
|
|
139
|
+
if (value.length < otpLength) {
|
|
140
|
+
onValidate?.();
|
|
141
|
+
inputRef.current?.focus();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
submitCode(value);
|
|
145
|
+
};
|
|
146
|
+
const displayedError = error ?? validationError;
|
|
147
|
+
const renderActions = () => {
|
|
148
|
+
if (!canResend && resendTimer > 0) return /* @__PURE__ */ u("div", {
|
|
149
|
+
class: "IncodeOtpInputActions",
|
|
150
|
+
"data-testid": "otp-timer",
|
|
151
|
+
children: /* @__PURE__ */ u(PrizmaButton, {
|
|
152
|
+
size: "L",
|
|
153
|
+
className: "IncodeButton IncodeButtonLink IncodeButtonL",
|
|
154
|
+
variant: "tertiary-link",
|
|
155
|
+
disabled: true,
|
|
156
|
+
children: t("otp.resendCountdown", { time: formatResendTimer(resendTimer) })
|
|
157
|
+
})
|
|
158
|
+
});
|
|
159
|
+
const handleResend = () => {
|
|
160
|
+
lastSubmittedCodeRef.current = null;
|
|
161
|
+
onChange("");
|
|
162
|
+
onResend();
|
|
163
|
+
};
|
|
164
|
+
const handleBack = () => {
|
|
165
|
+
lastSubmittedCodeRef.current = null;
|
|
166
|
+
onChange("");
|
|
167
|
+
onBack();
|
|
168
|
+
};
|
|
169
|
+
return /* @__PURE__ */ u("div", {
|
|
170
|
+
class: "IncodeOtpInputActions",
|
|
171
|
+
children: /* @__PURE__ */ u("p", {
|
|
172
|
+
class: `IncodeOtpInputResendText ${disabled ? "IncodeOtpInputResendTextDisabled" : ""}`,
|
|
173
|
+
"data-testid": "otp-resend-section",
|
|
174
|
+
children: [
|
|
175
|
+
t("otp.didYouNotGetIt"),
|
|
176
|
+
/* @__PURE__ */ u(PrizmaButton, {
|
|
177
|
+
variant: "tertiary-link",
|
|
178
|
+
size: "L",
|
|
179
|
+
onClick: handleResend,
|
|
180
|
+
disabled: disabled || !canResend,
|
|
181
|
+
"data-testid": "otp-resend",
|
|
182
|
+
className: "IncodeButton IncodeButtonLink IncodeButtonInline",
|
|
183
|
+
children: t("otp.resendCode")
|
|
184
|
+
}),
|
|
185
|
+
` ${t("otp.or")} `,
|
|
186
|
+
/* @__PURE__ */ u(PrizmaButton, {
|
|
187
|
+
variant: "tertiary-link",
|
|
188
|
+
size: "L",
|
|
189
|
+
onClick: handleBack,
|
|
190
|
+
disabled,
|
|
191
|
+
"data-testid": "otp-back",
|
|
192
|
+
className: "IncodeButton IncodeButtonLink IncodeButtonInline",
|
|
193
|
+
children: t(backLinkText)
|
|
194
|
+
})
|
|
195
|
+
]
|
|
196
|
+
})
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
return /* @__PURE__ */ u("div", {
|
|
200
|
+
class: `IncodeOtpInput IncodeOtpInputComposed`,
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ u("div", {
|
|
203
|
+
ref: liveRef,
|
|
204
|
+
class: "IncodeSrOnly",
|
|
205
|
+
"aria-live": "polite",
|
|
206
|
+
"aria-atomic": "true"
|
|
207
|
+
}),
|
|
208
|
+
/* @__PURE__ */ u(PrizmaOtp, {
|
|
209
|
+
className: "IncodeInputComposed IncodeOtpSingleInput",
|
|
210
|
+
inputClassName: "IncodeInput",
|
|
211
|
+
id: "otp-code",
|
|
212
|
+
inputMode: "text",
|
|
213
|
+
ref: inputRef,
|
|
214
|
+
length: otpLength,
|
|
215
|
+
value,
|
|
216
|
+
error: !!displayedError,
|
|
217
|
+
errorText: displayedError,
|
|
218
|
+
onInput: handleChange,
|
|
219
|
+
onBlur: onValidate,
|
|
220
|
+
onPaste: handlePaste,
|
|
221
|
+
disabled: disabled || isLoading,
|
|
222
|
+
required: true,
|
|
223
|
+
"aria-required": "true",
|
|
224
|
+
autoComplete: "one-time-code",
|
|
225
|
+
"data-testid": "otp-input-0",
|
|
226
|
+
"aria-label": t("otp.verificationCode")
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ u(Spacer, {}),
|
|
229
|
+
/* @__PURE__ */ u(PrizmaButton, {
|
|
230
|
+
variant: "primary",
|
|
231
|
+
size: "L",
|
|
232
|
+
className: cn("IncodeButton IncodeButtonPrimary IncodeButtonL", isLoading && "IncodeButtonLoading"),
|
|
233
|
+
onClick: handleSubmitClick,
|
|
234
|
+
disabled: disabled || isLoading || !isValid,
|
|
235
|
+
loading: isLoading,
|
|
236
|
+
"data-testid": "otp-submit",
|
|
237
|
+
children: t("common.continue")
|
|
238
|
+
}),
|
|
239
|
+
/* @__PURE__ */ u(Spacer, { size: 12 }),
|
|
240
|
+
renderActions()
|
|
241
|
+
]
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
//#endregion
|
|
245
|
+
export { OtpInput as t };
|
|
@@ -1,20 +1,27 @@
|
|
|
1
|
-
import { o as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { o as useUiConfig, u as useTranslation } from "./devWarn-SLn4Qexk.js";
|
|
2
|
+
import { C as Q, T as k, _ as h, a as M, h as d, i as D, u as A, x as u, y as x } from "./vendor-preact-CjnloSla.js";
|
|
3
|
+
import { t as DEFAULT_HELP_BUTTON_POSITION } from "./helpButtonConfig-BFragC_J.js";
|
|
4
|
+
import { b as PrizmaButton, d as CloseIcon } from "./icons-DLZTxOV2.js";
|
|
5
|
+
import { h as cn, t as Spacer } from "./spacer-DQdgPJjU.js";
|
|
6
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-C2Ro8zdn.js";
|
|
7
|
+
import { n as IncodeLogo, r as Modal, t as usePageUiConfig } from "./pageUiConfig-BlsOWl2d.js";
|
|
6
8
|
//#region src/shared/closeButton/closeButton.tsx
|
|
7
9
|
/** The "X" button that cancels the current module. Purely presentational. */
|
|
8
10
|
var CloseButton = D(({ onClick, ariaLabel, class: className, size = "S", iconSize = 24, color = "var(--icon-neutral-500)", "data-testid": dataTestId }, ref) => {
|
|
9
|
-
return /* @__PURE__ */ u(
|
|
11
|
+
return /* @__PURE__ */ u(PrizmaButton, {
|
|
12
|
+
...size === "L" || size === "inline" ? {
|
|
13
|
+
variant: "tertiary-link",
|
|
14
|
+
size: "L"
|
|
15
|
+
} : {
|
|
16
|
+
variant: "icon",
|
|
17
|
+
size
|
|
18
|
+
},
|
|
10
19
|
ref,
|
|
11
|
-
size,
|
|
12
|
-
variant: "link",
|
|
13
20
|
onClick,
|
|
14
21
|
"aria-label": ariaLabel,
|
|
15
|
-
|
|
22
|
+
className: cn("IncodeButton IncodeButtonLink IncodeButtonIconOnly IncodeCloseButton", size === "inline" ? "IncodeButtonInline" : `IncodeButton${size}`, className),
|
|
16
23
|
"data-testid": dataTestId,
|
|
17
|
-
|
|
24
|
+
children: /* @__PURE__ */ u(CloseIcon, {
|
|
18
25
|
width: iconSize,
|
|
19
26
|
height: iconSize,
|
|
20
27
|
fillColor: color
|
|
@@ -35,12 +42,16 @@ function QuitConfirmDialog({ open, onOpenChange, onConfirm, returnFocusRef }) {
|
|
|
35
42
|
onOpenChange,
|
|
36
43
|
returnFocusRef,
|
|
37
44
|
"data-testid": "quit-confirm-dialog",
|
|
38
|
-
children: /* @__PURE__ */ u(Modal.Content, { children: [/* @__PURE__ */ u(Modal.
|
|
45
|
+
children: /* @__PURE__ */ u(Modal.Content, { children: [/* @__PURE__ */ u(Modal.Header, { title: t("page.close.confirmQuit") }), /* @__PURE__ */ u(Modal.Actions, { children: [/* @__PURE__ */ u(PrizmaButton, {
|
|
46
|
+
size: "L",
|
|
47
|
+
className: "IncodeButton IncodeButtonSecondary IncodeButtonL",
|
|
39
48
|
variant: "secondary",
|
|
40
49
|
onClick: () => onOpenChange(false),
|
|
41
50
|
"data-testid": "quit-confirm-cancel",
|
|
42
51
|
children: t("page.close.cancel")
|
|
43
|
-
}), /* @__PURE__ */ u(
|
|
52
|
+
}), /* @__PURE__ */ u(PrizmaButton, {
|
|
53
|
+
size: "L",
|
|
54
|
+
className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
|
|
44
55
|
variant: "primary",
|
|
45
56
|
onClick: onConfirm,
|
|
46
57
|
"data-testid": "quit-confirm-confirm",
|
|
@@ -69,16 +80,18 @@ function CloseButtonWithConfirm({ onConfirm, ...buttonProps }) {
|
|
|
69
80
|
})] });
|
|
70
81
|
}
|
|
71
82
|
//#endregion
|
|
72
|
-
//#region src/shared/helpButton/helpButtonConfig.ts
|
|
73
|
-
var DEFAULT_HELP_BUTTON_POSITION = "bottomRight";
|
|
74
|
-
//#endregion
|
|
75
83
|
//#region src/shared/uiConfig/resolveCornerControls.ts
|
|
76
84
|
var lastWarnedCollision = null;
|
|
77
|
-
/**
|
|
78
|
-
|
|
79
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Resolves help/close button corners together; on collision, help yields
|
|
87
|
+
* (keeps the host's explicit close position). `closeEnabled` is whether the
|
|
88
|
+
* module allows the user to cancel (`allowUserToCancel`): without it there is
|
|
89
|
+
* no close button, so its position is ignored and nothing can collide.
|
|
90
|
+
*/
|
|
91
|
+
function resolveCornerControls(uiConfig, closeEnabled = false) {
|
|
92
|
+
const { helpButtonPosition, closeButtonPosition } = uiConfig;
|
|
80
93
|
const help = helpButtonPosition ?? "bottomRight";
|
|
81
|
-
const close =
|
|
94
|
+
const close = closeEnabled ? closeButtonPosition ?? "topRight" : void 0;
|
|
82
95
|
if (close && close === help) {
|
|
83
96
|
const collision = `${help}|${close}`;
|
|
84
97
|
if (lastWarnedCollision !== collision) {
|
|
@@ -109,12 +122,15 @@ function useModuleCancelContext() {
|
|
|
109
122
|
* Resolves the close button: where it sits and what it cancels. Shared by
|
|
110
123
|
* `Page`'s header and the capture screens' floating overlay control.
|
|
111
124
|
*
|
|
112
|
-
* Undefined (hidden) unless
|
|
113
|
-
*
|
|
125
|
+
* Undefined (hidden) unless the module allows cancelling: the module root
|
|
126
|
+
* (`withInstanceOverrides`) publishes a cancel action only when its `config`
|
|
127
|
+
* sets `allowUserToCancel` — see `moduleCancelContext`. The corner comes from
|
|
128
|
+
* `uiConfig.closeButtonPosition`.
|
|
114
129
|
*/
|
|
115
130
|
function useCloseButton() {
|
|
116
|
-
const
|
|
131
|
+
const uiConfig = useUiConfig();
|
|
117
132
|
const moduleCancel = useModuleCancelContext();
|
|
133
|
+
const { close } = resolveCornerControls(uiConfig, moduleCancel !== void 0);
|
|
118
134
|
const { t } = useTranslation();
|
|
119
135
|
if (!close || !moduleCancel) return;
|
|
120
136
|
return {
|
|
@@ -124,35 +140,53 @@ function useCloseButton() {
|
|
|
124
140
|
};
|
|
125
141
|
}
|
|
126
142
|
//#endregion
|
|
127
|
-
//#region src/shared/page/
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
function
|
|
138
|
-
const
|
|
143
|
+
//#region src/shared/page/logoQuality.ts
|
|
144
|
+
/** An SVG never blurs, so it may fill its box. Any other URL counts as raster. */
|
|
145
|
+
var isVectorLogo = (src) => /^data:image\/svg\+xml|\.svg([?#]|$)/i.test(src);
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/shared/page/useLogoShape.ts
|
|
148
|
+
/** Narrower than 1.5:1 is squarish (mark, badge, stacked lockup). */
|
|
149
|
+
var SQUARISH_MAX_RATIO = 1.5;
|
|
150
|
+
/** Shape per logo URL, so later screens get the right box straight away. */
|
|
151
|
+
var squarishBySrc = /* @__PURE__ */ new Map();
|
|
152
|
+
/** Whether a logo is squarish, read from its natural size once it loads. */
|
|
153
|
+
function useLogoShape(src) {
|
|
154
|
+
const [, rerender] = h((n) => n + 1, 0);
|
|
155
|
+
const onLoad = (event) => {
|
|
156
|
+
const { naturalWidth, naturalHeight } = event.currentTarget;
|
|
157
|
+
if (!naturalWidth || !naturalHeight) return;
|
|
158
|
+
if (!squarishBySrc.has(src)) {
|
|
159
|
+
const isSquarish = naturalWidth / naturalHeight < SQUARISH_MAX_RATIO;
|
|
160
|
+
squarishBySrc.set(src, isSquarish);
|
|
161
|
+
}
|
|
162
|
+
if (squarishBySrc.get(src)) rerender(0);
|
|
163
|
+
};
|
|
139
164
|
return {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
logoSrc: resolveFirst([args.logo?.src, args.uiConfig.logoSrc]) ?? args.defaultLogoSrc,
|
|
143
|
-
logoHeightPx: parseLogoHeight(logoHeight) ?? 80
|
|
165
|
+
isSquarish: squarishBySrc.get(src) === true,
|
|
166
|
+
onLoad
|
|
144
167
|
};
|
|
145
168
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/shared/page/logo.tsx
|
|
171
|
+
/** Customer logo, sized by shape (see `logo.css`). */
|
|
172
|
+
var CustomLogo = ({ src, class: className }) => {
|
|
173
|
+
const { isSquarish, onLoad } = useLogoShape(src);
|
|
174
|
+
return /* @__PURE__ */ u("img", {
|
|
175
|
+
src,
|
|
176
|
+
class: cn("IncodePageLogo", "IncodePageLogoCustom", isSquarish && "IncodePageLogoSquarish", isVectorLogo(src) && "IncodePageLogoVector", className),
|
|
177
|
+
onLoad,
|
|
178
|
+
"aria-hidden": "true",
|
|
179
|
+
alt: ""
|
|
151
180
|
});
|
|
152
|
-
}
|
|
181
|
+
};
|
|
182
|
+
/** Header logo: the customer's if there is one, otherwise Incode's. */
|
|
183
|
+
var Logo = ({ src, class: className }) => src ? /* @__PURE__ */ u(CustomLogo, {
|
|
184
|
+
src,
|
|
185
|
+
class: className
|
|
186
|
+
}) : /* @__PURE__ */ u(IncodeLogo, { class: cn("IncodePageLogo", className) });
|
|
153
187
|
//#endregion
|
|
154
188
|
//#region src/shared/page/verifiedByIncode.tsx
|
|
155
|
-
var VerifiedByIncodeLogo = ()
|
|
189
|
+
var VerifiedByIncodeLogo = M(function VerifiedByIncodeLogo() {
|
|
156
190
|
return /* @__PURE__ */ u("svg", {
|
|
157
191
|
width: "121",
|
|
158
192
|
height: "15",
|
|
@@ -164,7 +198,7 @@ var VerifiedByIncodeLogo = () => {
|
|
|
164
198
|
/* @__PURE__ */ u("title", { children: "Verified by Incode" }),
|
|
165
199
|
/* @__PURE__ */ u("path", {
|
|
166
200
|
d: "M14.044 7.258c0-.978-.518-1.854-1.301-2.335a2.74 2.74 0 0 0-.754-2.57c-.71-.7-1.685-.934-2.602-.744A2.8 2.8 0 0 0 7.022.324c-.99 0-1.878.511-2.365 1.285a2.82 2.82 0 0 0-2.602.744c-.71.701-.946 1.665-.754 2.57A2.77 2.77 0 0 0 0 7.258c0 .979.517 1.854 1.3 2.336-.206.89.045 1.869.755 2.57s1.685.949 2.602.744a2.82 2.82 0 0 0 2.365 1.285c.99 0 1.862-.511 2.365-1.285a2.82 2.82 0 0 0 2.602-.744c.71-.701.96-1.665.754-2.57a2.75 2.75 0 0 0 1.3-2.336ZM5.558 9.55 4.124 8.134a.647.647 0 0 1 0-.934.666.666 0 0 1 .947 0l.975.949 2.942-2.905a.666.666 0 0 1 .946 0 .646.646 0 0 1 0 .934L6.504 9.55a.666.666 0 0 1-.946 0Z",
|
|
167
|
-
fill: "
|
|
201
|
+
fill: "var(--icon-brand-500-static)"
|
|
168
202
|
}),
|
|
169
203
|
/* @__PURE__ */ u("g", {
|
|
170
204
|
clipPath: "url(#clip0_3596_4926)",
|
|
@@ -172,7 +206,7 @@ var VerifiedByIncodeLogo = () => {
|
|
|
172
206
|
fillRule: "evenodd",
|
|
173
207
|
clipRule: "evenodd",
|
|
174
208
|
d: "M99.562 4.776q1.784 0 2.694.991.904.99.903 2.845.001 1.854-.932 2.865-.94 1.014-2.651 1.013-1.77 0-2.673-.999l-.074-.085q-.824-.99-.823-2.794c0-2.545 1.194-3.836 3.555-3.836Zm16.678 0c1.153 0 2.006.37 2.549 1.113q.77 1.053.789 2.896v.262h-5.066q.089.947.592 1.44.524.52 1.511.52.652 0 1.243-.16a4.7 4.7 0 0 0 1.045-.411l.142-.078v1.615l-.057.025q-1.141.491-2.619.491-1.668 0-2.628-1.003-.956-1.005-.955-2.832 0-1.869.903-2.872.91-1.006 2.551-1.006Zm-5.022-2.817v8.715c0 .408-.172.755-.51 1.033q-.493.405-1.234.595-.73.187-1.508.187-1.577 0-2.601-.883-1.029-.893-1.027-3.08 0-1.754.874-2.75.882-1.001 2.595-1 .4 0 .92.1.438.087.801.244V1.959zm-18.72 2.83q1.186 0 2.256.434l.06.024V6.79l-.133-.055q-1.08-.449-1.966-.448-1.102.002-1.633.534-.534.53-.535 1.72.001 1.247.523 1.807.515.558 1.688.559.959 0 1.933-.46l.137-.064v1.547l-.057.025a5.55 5.55 0 0 1-2.258.463q-1.489 0-2.506-.807l-.1-.083-.077-.068c-.65-.602-.973-1.54-.973-2.806q-.001-2.03 1.033-2.95 1.03-.914 2.608-.914Zm-13.714.2.015 7.287h-1.72V4.99zm5.455-.2q1.545 0 2.297.65.754.658.753 2.02v4.817h-1.704V7.66c0-.942-.527-1.4-1.62-1.4q-.686 0-1.319.19l-.157.052v5.775h-1.705v-6.71l.052-.026q.66-.333 1.601-.542l.208-.044a8 8 0 0 1 1.594-.164ZM99.56 6.217c-.672 0-1.145.198-1.428.593q-.436.606-.436 1.803 0 1.195.45 1.816c.293.404.761.607 1.414.607 1.268 0 1.894-.792 1.894-2.423q0-1.223-.456-1.814-.444-.581-1.437-.582Zm8.462.028c-1.308 0-1.952.756-1.952 2.31q.001 1.17.446 1.818c.287.422.795.635 1.535.635q.65 0 1.086-.15c.246-.086.369-.186.387-.295l.003-.03V6.617l-.108-.055a3.312 3.312 0 0 0-1.397-.318Zm8.173-.056q-.729 0-1.131.372-.356.328-.498 1.08l-.019.109h3.285l-.017-.112q-.12-.714-.462-1.058-.387-.39-1.158-.391ZM78.842 2.456v1.54h-1.806v-1.54z",
|
|
175
|
-
fill: "
|
|
209
|
+
fill: "var(--icon-brand-500-static)"
|
|
176
210
|
})
|
|
177
211
|
}),
|
|
178
212
|
/* @__PURE__ */ u("path", {
|
|
@@ -222,24 +256,21 @@ var VerifiedByIncodeLogo = () => {
|
|
|
222
256
|
}) })
|
|
223
257
|
]
|
|
224
258
|
});
|
|
225
|
-
};
|
|
259
|
+
});
|
|
226
260
|
//#endregion
|
|
227
261
|
//#region src/shared/page/page.tsx
|
|
228
|
-
var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children, hideHeader, hideFooterBranding, footerBrandingSlot, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus }) => {
|
|
229
|
-
const titleRef = A(null);
|
|
262
|
+
var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children, hideHeader, hideFooterBranding, footerBrandingSlot, theme, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus }) => {
|
|
230
263
|
const closeButton = useCloseButton();
|
|
231
|
-
y(() => {
|
|
232
|
-
titleRef.current?.focus();
|
|
233
|
-
}, []);
|
|
234
264
|
const uiConfig = usePageUiConfig({
|
|
235
265
|
hideHeader,
|
|
236
266
|
hideFooterBranding,
|
|
237
267
|
logo,
|
|
238
|
-
|
|
268
|
+
theme
|
|
239
269
|
});
|
|
240
270
|
const shouldShowHeader = title || subtitle || titleTopSlot;
|
|
241
271
|
return /* @__PURE__ */ u("div", {
|
|
242
272
|
class: `IncodePageContainer ${className ?? ""}`,
|
|
273
|
+
"data-incode-theme": theme,
|
|
243
274
|
"data-testid": dataTestId,
|
|
244
275
|
"data-permission-status": dataPermissionStatus,
|
|
245
276
|
children: /* @__PURE__ */ u("main", {
|
|
@@ -247,13 +278,7 @@ var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children,
|
|
|
247
278
|
children: [
|
|
248
279
|
!uiConfig.hideHeader && /* @__PURE__ */ u("header", {
|
|
249
280
|
class: "IncodePageHeader",
|
|
250
|
-
children: [/* @__PURE__ */ u(
|
|
251
|
-
src: uiConfig.logoSrc,
|
|
252
|
-
height: uiConfig.logoHeightPx,
|
|
253
|
-
class: "IncodePageLogo",
|
|
254
|
-
"aria-hidden": "true",
|
|
255
|
-
alt: ""
|
|
256
|
-
}), closeButton ? /* @__PURE__ */ u(CloseButtonWithConfirm, {
|
|
281
|
+
children: [/* @__PURE__ */ u(Logo, { src: uiConfig.logoSrc }), closeButton ? /* @__PURE__ */ u(CloseButtonWithConfirm, {
|
|
257
282
|
onConfirm: closeButton.onQuit,
|
|
258
283
|
ariaLabel: closeButton.ariaLabel,
|
|
259
284
|
"data-testid": "page-close-button",
|
|
@@ -262,23 +287,21 @@ var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children,
|
|
|
262
287
|
}),
|
|
263
288
|
shouldShowHeader ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: uiConfig.hideHeader ? 40 : 24 }), /* @__PURE__ */ u("div", {
|
|
264
289
|
class: "IncodePageTitleContainer",
|
|
265
|
-
children: [
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
})] }) : null
|
|
281
|
-
]
|
|
290
|
+
children: [titleTopSlot ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
|
|
291
|
+
class: "IncodePageTitleTopSlot",
|
|
292
|
+
children: titleTopSlot
|
|
293
|
+
}), /* @__PURE__ */ u(Spacer, { size: 12 })] }) : null, title ? /* @__PURE__ */ u(AutoFocusTitle, {
|
|
294
|
+
id: titleId,
|
|
295
|
+
className: "IncodePageTitle",
|
|
296
|
+
tabIndex: -1,
|
|
297
|
+
showSubtitle: Boolean(subtitle),
|
|
298
|
+
subtitle,
|
|
299
|
+
subtitleProps: { className: "IncodePageSubtitle" },
|
|
300
|
+
children: title
|
|
301
|
+
}) : subtitle ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u("p", {
|
|
302
|
+
class: "IncodePageSubtitle",
|
|
303
|
+
children: subtitle
|
|
304
|
+
})] }) : null]
|
|
282
305
|
})] }) : null,
|
|
283
306
|
/* @__PURE__ */ u("div", {
|
|
284
307
|
class: "IncodePageContent",
|
|
@@ -296,4 +319,4 @@ var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children,
|
|
|
296
319
|
});
|
|
297
320
|
};
|
|
298
321
|
//#endregion
|
|
299
|
-
export { ModuleCancelProvider as a, CloseButtonWithConfirm as c, useCloseButton as i, VerifiedByIncodeLogo as n,
|
|
322
|
+
export { ModuleCancelProvider as a, CloseButtonWithConfirm as c, useCloseButton as i, VerifiedByIncodeLogo as n, useModuleCancelContext as o, Logo as r, resolveCornerControls as s, Page as t };
|