@incodetech/web 2.1.0-rc.2 → 2.1.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ae-signature/ae-signature.es.js +2 -2
- package/dist/ae-signature/styles.css +59 -45
- package/dist/antifraud/antifraud.es.js +4 -4
- package/dist/authentication/authentication.es.js +5 -4
- package/dist/base.css +87 -59
- package/dist/{button-Ch5-QgHB.js → button-Dz6AsbmF.js} +2 -1
- package/dist/cameraView-DIEzM5ru.js +47 -0
- package/dist/{tutorial-Cap8qKvM.js → capture-CkGvdDNH.js} +18 -568
- package/dist/certificate-issuance/certificate-issuance.es.js +7 -7
- package/dist/consent/consent.es.js +8 -8
- package/dist/{countrySelector-B4WuNUya.js → countrySelector-SvUOyPo0.js} +1 -1
- package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
- package/dist/cpfOcr-B79245-3.js +2 -0
- package/dist/{cpfOcr-liTE9e70.js → cpfOcr-BhxT-lRN.js} +5 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
- package/dist/curp-validation/curp-validation.es.js +7 -7
- package/dist/{customFields-BQ4scZfL.js → customFields-BDsXR7A-.js} +6 -6
- package/dist/{customWatchlist-7s0_wGtE.js → customWatchlist-CYoRNCim.js} +5 -5
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-DXYYyxZl.js +2 -0
- package/dist/{documentCapture-CwoSD_Iq.js → documentCapture-DhbO-A-V.js} +11 -9
- package/dist/{dynamicForms-DvTU65bW.js → dynamicForms-BifGbC9F.js} +19 -8
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-C6Nttked.js +2 -0
- package/dist/{ekybModule-CwZvxios.js → ekybModule-DGnTw5UV.js} +12 -12
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-CDIEjI6V.js +2 -0
- package/dist/{ekycModule-jkXByPXe.js → ekycModule-Dxpdd0ns.js} +10 -10
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-h1sAGg7l.js → electronic-signature-Ueoffasr.js} +37 -26
- package/dist/email/email.es.js +7 -7
- package/dist/{emailInput-BRMJMJV6.js → emailInput-DsLkDtER.js} +5 -5
- package/dist/{expiredId-D17oN5K2.js → expiredId-BZXLrLk-.js} +4 -4
- package/dist/{extensibility-CTmAsaji.js → extensibility-7sRIN0JC.js} +41 -76
- package/dist/extensibility.es.js +13 -11
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +4 -0
- package/dist/faceMatch-B_HvxLm_.js +2 -0
- package/dist/{faceMatch-Dez_bq3n.js → faceMatch-DyTBoMDm.js} +8 -8
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-DfNEuEE5.js +2 -0
- package/dist/{fieldComparison-BelzSC48.js → fieldComparison-L_knHqgw.js} +7 -7
- package/dist/fiscal-qr/fiscal-qr.es.js +8 -7
- package/dist/flow/flow.es.js +22 -9
- package/dist/flow/styles.css +4151 -3042
- package/dist/geolocation/geolocation.es.js +14 -9
- package/dist/{governmentValidation/governmentValidation.es.js → government-validation/government-validation.es.js} +10 -14
- package/dist/{homeScreen-BIdVm9KA.js → homeScreen-B6T0JVh8.js} +2 -2
- package/dist/{hooks-Da_yP_Dr.js → hooks-CNu7o-v8.js} +39 -2
- package/dist/{i18n-DoP1NB7u.js → i18n-CU4xq8qC.js} +1 -1
- package/dist/id/id.es.js +76 -46
- package/dist/id/styles.css +1 -9
- package/dist/id-ocr/styles.css +12 -2
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-C4K2XVJr.js → idOcr-WFBvqy3b.js} +31 -13
- package/dist/identity-reuse/identity-reuse.es.js +6 -6
- package/dist/{incodeComponent-Cmi1rlWs.js → incodeComponent-CfzJGETt.js} +2 -2
- package/dist/{incodeModule-M8DszCee.js → incodeModule-B-4_3JrK.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-DOQ0DKgM.js → mandatoryConsent-D0GTKu-H.js} +7 -7
- package/dist/{optionAccessibleLabel-_nvVCTSL.js → optionAccessibleLabel-gfF-58Mv.js} +3 -3
- package/dist/{otpInput-Q_kzSZeD.js → otpInput-CnDc6pQm.js} +12 -11
- package/dist/{pdf-BMUXKJuC.js → pdf-BqtJTlor.js} +1 -1
- package/dist/{pdfViewer-BewML6eg.js → pdfViewer-B97DmT9m.js} +57 -20
- package/dist/phone/phone.es.js +6 -6
- package/dist/{processing-Boki1Z8j.js → processing-BeUMfdJJ.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{radioGroupComposed-TuAWUAFK.js → radioGroupComposed-DuQxslB2.js} +1 -1
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +17 -18
- package/dist/redirect-to-mobile/styles.css +2 -2
- package/dist/{richText-DsTP4H3j.js → richText-CB1fmegc.js} +1 -1
- package/dist/selfie/selfie.es.js +8 -7
- package/dist/selfie/styles.css +133 -63
- package/dist/signature/signature.es.js +8 -8
- package/dist/spinner-BCDCoi9C.js +1 -0
- package/dist/{spinner-BRNNKqPN.js → spinner-BMeIEK1d.js} +12 -6
- package/dist/themes/dark.css +16 -0
- package/dist/themes/light.css +16 -0
- package/dist/{transitionSpinner-4rPkt-KM.js → transitionSpinner-CuNCqHNi.js} +9 -8
- package/dist/tutorial-CCfPuVKX.js +706 -0
- package/dist/types/ae-signature.d.ts +23 -1
- package/dist/types/antifraud.d.ts +23 -1
- package/dist/types/authentication.d.ts +23 -1
- package/dist/types/certificate-issuance.d.ts +23 -1
- package/dist/types/consent.d.ts +23 -1
- package/dist/types/cross-document-data-match.d.ts +23 -1
- package/dist/types/curp-validation.d.ts +23 -1
- package/dist/types/document-capture.d.ts +23 -1
- package/dist/types/ekyb.d.ts +23 -1
- package/dist/types/ekyc.d.ts +23 -1
- package/dist/types/electronic-signature.d.ts +23 -1
- package/dist/types/email.d.ts +23 -1
- package/dist/types/extensibility.d.ts +39 -2
- package/dist/types/face-match.d.ts +23 -1
- package/dist/types/field-comparison.d.ts +23 -1
- package/dist/types/fiscal-qr.d.ts +23 -1
- package/dist/types/flow.d.ts +23 -1
- package/dist/types/geolocation.d.ts +27 -2
- package/dist/types/{governmentValidation.d.ts → government-validation.d.ts} +23 -1
- package/dist/types/id-verification.d.ts +23 -1
- package/dist/types/id.d.ts +23 -1
- package/dist/types/identity-reuse.d.ts +23 -1
- package/dist/types/phone.d.ts +23 -1
- package/dist/types/qe-signature.d.ts +23 -1
- package/dist/types/selfie.d.ts +23 -1
- package/dist/types/signature.d.ts +23 -1
- package/dist/types/video-selfie.d.ts +72 -0
- package/dist/types/watchlist.d.ts +23 -1
- package/dist/types/workflow.d.ts +23 -1
- package/dist/{useModuleLoader-Kt78XfNR.js → useModuleLoader-Gvo9qscB.js} +38 -23
- package/dist/{verificationResult-B6PBXbp9.js → verificationResult-BWWkmeiA.js} +3 -3
- package/dist/video-selfie/styles.css +1644 -0
- package/dist/video-selfie/video-selfie.es.js +854 -0
- package/dist/watchlist/watchlist.es.js +5 -5
- package/dist/{watchlistForBusiness-DCKlKG81.js → watchlistForBusiness-D2Uo_TwF.js} +7 -7
- package/dist/workflow/styles.css +148 -76
- package/dist/workflow/workflow.es.js +23 -27
- package/package.json +29 -2
- package/dist/cpfOcr-BJOYoITy.js +0 -2
- package/dist/documentCapture-3RHCHepT.js +0 -2
- package/dist/ekybModule-BkVQBQvW.js +0 -2
- package/dist/ekycModule-BIbj7hr1.js +0 -2
- package/dist/faceMatch-C0-RPzrc.js +0 -2
- package/dist/fieldComparison-7FUznk_9.js +0 -2
- package/dist/spinner-zRaUjXtH.js +0 -1
- /package/dist/{aligndevicelottie-DMXPhIDs.js → aligndevicelottie-DFscByAI.js} +0 -0
- /package/dist/{back-horizontal-hint-DNIIDrEW.js → back-horizontal-hint-xTnSQbzn.js} +0 -0
- /package/dist/{back-tutorial-B8JJSJBB.js → back-tutorial-cI_4VHmE.js} +0 -0
- /package/dist/{back-vertical-hint-CW6ZS7bP.js → back-vertical-hint-BWWlHfX2.js} +0 -0
- /package/dist/{backdevicelottie-By75Bznp.js → backdevicelottie-COyhTrxM.js} +0 -0
- /package/dist/{blurdevicelottie-C_9VAHkM.js → blurdevicelottie-BLVeJHEG.js} +0 -0
- /package/dist/{browser-ponyfill-C_DpU0lQ.js → browser-ponyfill-Df13Th-G.js} +0 -0
- /package/dist/{defineProperty-CTu-cLWm.js → defineProperty-Qjefk7Uf.js} +0 -0
- /package/dist/{flip-animation-st9bra1p.js → flip-animation-CZYSUtMm.js} +0 -0
- /package/dist/{front-horizontal-hint-DvME-aVk.js → front-horizontal-hint-B84GgTO1.js} +0 -0
- /package/dist/{front-vertical-hint-BUG1VMsP.js → front-vertical-hint-Bs_avngq.js} +0 -0
- /package/dist/{frontdevicelottie-uObOEs8p.js → frontdevicelottie-B4tE2PYQ.js} +0 -0
- /package/dist/{glaredevicelottie-CsfIgqIc.js → glaredevicelottie-D1pR73sx.js} +0 -0
- /package/dist/{governmentValidation → government-validation}/styles.css +0 -0
- /package/dist/{id-laser-h-BvVSaLyU.js → id-laser-h-CzPegPMn.js} +0 -0
- /package/dist/{id-laser-v-Dj_RN_s9.js → id-laser-v-BiUXkM4x.js} +0 -0
- /package/dist/{id-tutorial-BOOsXlAJ.js → id-tutorial-DwO90SAm.js} +0 -0
- /package/dist/{lottie_light-BG-RL2Iu.js → lottie_light-C6B2ec41.js} +0 -0
- /package/dist/{numberedStep-Dc0BUU-j.js → numberedStep-CEb-lFJm.js} +0 -0
- /package/dist/{passport-horizontal-hint-BhpVt73n.js → passport-horizontal-hint-Bj0ZJY0g.js} +0 -0
- /package/dist/{passport-tutorial-CeSup6m9.js → passport-tutorial-D9JNsMsM.js} +0 -0
- /package/dist/{passport-vertical-hint-CVRBnZXS.js → passport-vertical-hint-Dfk77xUJ.js} +0 -0
- /package/dist/{registerIncodeElement-CdlNRRv5.js → registerIncodeElement-DaNjbAwZ.js} +0 -0
- /package/dist/{requiredLabelHint-DX3oVNtu.js → requiredLabelHint-D0RhuMed.js} +0 -0
- /package/dist/{selfieTutorial-CYa8bq6B.js → selfieTutorial-pB-N-fj5.js} +0 -0
- /package/dist/{snackbar-CGL6gp9u.js → snackbar-DS7Mv62v.js} +0 -0
- /package/dist/{statusPage-BUm5gtQY.js → statusPage-Bk8nJwXV.js} +0 -0
- /package/dist/{tabs-DUkWjBGk.js → tabs-C__chW-u.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { d as T, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
3
|
import { t as DropdownComposed } from "./dropdownComposed-CoU0enG6.js";
|
|
4
4
|
//#region src/shared/countrySelector/countrySelector.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CpfOcr } from "../cpfOcr-
|
|
1
|
+
import { t as CpfOcr } from "../cpfOcr-BhxT-lRN.js";
|
|
2
2
|
export { CpfOcr };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as y, p as d, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "./hooks-CNu7o-v8.js";
|
|
3
3
|
import { r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
4
4
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
5
|
-
import { t as Spinner } from "./spinner-
|
|
6
|
-
import "./spinner-
|
|
7
|
-
import { t as Button } from "./button-
|
|
8
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
5
|
+
import { t as Spinner } from "./spinner-BMeIEK1d.js";
|
|
6
|
+
import "./spinner-BCDCoi9C.js";
|
|
7
|
+
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
8
|
+
import { t as VerificationResult } from "./verificationResult-BWWkmeiA.js";
|
|
9
9
|
import { t as InputComposed } from "./inputComposed-C1R2LAa3.js";
|
|
10
10
|
import { createCpfOcrManager } from "@incodetech/core/cpf-ocr";
|
|
11
11
|
//#region src/modules/cpf-ocr/cpfOcr.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as y, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
4
|
-
import { t as Spinner } from "../spinner-
|
|
5
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
2
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
3
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
4
|
+
import { t as Spinner } from "../spinner-BMeIEK1d.js";
|
|
5
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
6
6
|
import { createCrossDocumentDataMatchManager } from "@incodetech/core/cross-document-data-match";
|
|
7
7
|
//#region src/modules/cross-document-data-match/cross-document-data-match.tsx
|
|
8
8
|
var CrossDocumentDataMatchContent = ({ onFinish }) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as useTranslation } from "../i18n-
|
|
1
|
+
import { n as useTranslation } from "../i18n-CU4xq8qC.js";
|
|
2
2
|
import { d as T, v as u, x as k } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { r as Spacer } from "../loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "../page-DidH_RkX.js";
|
|
7
|
-
import { t as TransitionSpinner } from "../transitionSpinner-
|
|
8
|
-
import { t as Button } from "../button-
|
|
7
|
+
import { t as TransitionSpinner } from "../transitionSpinner-CuNCqHNi.js";
|
|
8
|
+
import { t as Button } from "../button-Dz6AsbmF.js";
|
|
9
9
|
import { t as ErrorIcon } from "../errorIcon-BA4T6iy-.js";
|
|
10
10
|
import "../icons-CJJbIpBq.js";
|
|
11
11
|
import { t as SuccessIcon } from "../successIcon-B5mGvdx1.js";
|
|
@@ -15,8 +15,8 @@ import { t as DropdownComposed } from "../dropdownComposed-CoU0enG6.js";
|
|
|
15
15
|
import "../dropdownComposed-BAoxIIsE.js";
|
|
16
16
|
import { t as DateInputComposed } from "../dateInputComposed-DuaofcBl.js";
|
|
17
17
|
import "../dateInputComposed-DRzZi6uy.js";
|
|
18
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
19
|
-
import { n as getRequiredHintMode, t as getFieldHint } from "../requiredLabelHint-
|
|
18
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
19
|
+
import { n as getRequiredHintMode, t as getFieldHint } from "../requiredLabelHint-D0RhuMed.js";
|
|
20
20
|
import { GENERATE_CURP_FIELDS, createCurpValidationManager, mexicanStates } from "@incodetech/core/curp-validation";
|
|
21
21
|
//#region src/modules/curp-validation/curpInput.tsx
|
|
22
22
|
var CurpInput = ({ curp, errorKey, onCurpChange, onCurpBlur, onVerify, onSwitchToGenerate, disabled = false, placeholder, continueLabel, dontHaveLabel }) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { p as d, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "./hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { r as Spacer, t as LoadingIcon } from "./loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
7
|
-
import { t as Button } from "./button-
|
|
7
|
+
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
8
8
|
import { t as SuccessIcon } from "./successIcon-B5mGvdx1.js";
|
|
9
9
|
import { t as InputComposed } from "./inputComposed-C1R2LAa3.js";
|
|
10
10
|
import { t as Checkbox } from "./checkbox-1wUHSoaK.js";
|
|
11
11
|
import { t as DateInputComposed } from "./dateInputComposed-DuaofcBl.js";
|
|
12
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
13
|
-
import { t as StatusPage } from "./statusPage-
|
|
12
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
13
|
+
import { t as StatusPage } from "./statusPage-Bk8nJwXV.js";
|
|
14
14
|
import { createCustomFieldsManager } from "@incodetech/core/custom-fields";
|
|
15
15
|
//#region src/modules/custom-fields/customFields.tsx
|
|
16
16
|
var INPUT_TYPE_MAP = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "./hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { t as LoadingIcon } from "./loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as SuccessIcon } from "./successIcon-B5mGvdx1.js";
|
|
7
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
8
|
-
import { t as StatusPage } from "./statusPage-
|
|
7
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
8
|
+
import { t as StatusPage } from "./statusPage-Bk8nJwXV.js";
|
|
9
9
|
import { createCustomWatchlistManager } from "@incodetech/core/custom-watchlist";
|
|
10
10
|
//#region src/modules/custom-watchlist/customWatchlist.tsx
|
|
11
11
|
var CustomWatchlistContent = ({ onFinish }) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DocumentCapture } from "../documentCapture-
|
|
1
|
+
import { t as DocumentCapture } from "../documentCapture-DhbO-A-V.js";
|
|
2
2
|
export { DocumentCapture };
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { c as z, h as q, l as A, m as g, o as P, p as d, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { a as useIsMobileDeviceWidth, c as useModuleTerminalCallbacks, u as useManager } from "./hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { n as cn, r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as Spinner } from "./spinner-
|
|
9
|
-
import { t as Button } from "./button-
|
|
7
|
+
import { _ as ProgressBar, d as CameraOverlay, l as CaptureFooter, u as CameraOverlayHeader, v as Overlay } from "./extensibility-7sRIN0JC.js";
|
|
8
|
+
import { t as Spinner } from "./spinner-BMeIEK1d.js";
|
|
9
|
+
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
10
10
|
import { a as FileIcon, p as CameraIcon, r as LockIcon } from "./icons-CJJbIpBq.js";
|
|
11
11
|
import { t as SuccessIcon } from "./successIcon-B5mGvdx1.js";
|
|
12
|
-
import {
|
|
12
|
+
import { a as ErrorContent } from "./tutorial-CCfPuVKX.js";
|
|
13
13
|
import { t as BottomSheet } from "./bottomSheet-CnWbbUAM.js";
|
|
14
|
-
import { t as
|
|
14
|
+
import { n as CameraFrame, t as CameraView } from "./cameraView-DIEzM5ru.js";
|
|
15
|
+
import { i as Permissions } from "./capture-CkGvdDNH.js";
|
|
16
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
15
17
|
import { createDocumentCaptureManager } from "@incodetech/core/document-capture";
|
|
16
18
|
//#region src/modules/document-capture/documentCameraView.tsx
|
|
17
19
|
function captureFrameFromVideo(video) {
|
|
@@ -308,7 +310,7 @@ var UploadingHeader = ({ progress, isFilePdf }) => {
|
|
|
308
310
|
};
|
|
309
311
|
//#endregion
|
|
310
312
|
//#region src/modules/document-capture/documentReview.tsx
|
|
311
|
-
var PdfViewer = z(() => import("./pdfViewer-
|
|
313
|
+
var PdfViewer = z(() => import("./pdfViewer-B97DmT9m.js").then((n) => n.n).then((m) => ({ default: m.PdfViewer })));
|
|
312
314
|
var DocumentReview = ({ state, manager }) => {
|
|
313
315
|
const { t } = useTranslation();
|
|
314
316
|
if (state.status === "failure") return /* @__PURE__ */ u(ErrorContent, {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { d as T, m as g, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "./hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
7
|
-
import { t as Button } from "./button-
|
|
8
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
7
|
+
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
8
|
+
import { t as VerificationResult } from "./verificationResult-BWWkmeiA.js";
|
|
9
9
|
import { t as InputComposed } from "./inputComposed-C1R2LAa3.js";
|
|
10
10
|
import { n as countries, t as PhoneInputComposed } from "./phoneInputComposed-DMiXfF-1.js";
|
|
11
11
|
import { t as DropdownComposed } from "./dropdownComposed-CoU0enG6.js";
|
|
12
12
|
import { t as DateInputComposed } from "./dateInputComposed-DuaofcBl.js";
|
|
13
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
14
|
-
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-
|
|
15
|
-
import { t as EmailInput } from "./emailInput-
|
|
13
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
14
|
+
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-D0RhuMed.js";
|
|
15
|
+
import { t as EmailInput } from "./emailInput-DsLkDtER.js";
|
|
16
16
|
import { formatCPF, isValidCPF } from "@incodetech/core/cpf-ocr";
|
|
17
17
|
import { createDynamicFormsManager } from "@incodetech/core/dynamic-forms";
|
|
18
18
|
//#region src/modules/dynamic-forms/dynamicForms.tsx
|
|
@@ -52,6 +52,7 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, onCh
|
|
|
52
52
|
class: "IncodeDynamicFormsField",
|
|
53
53
|
children: /* @__PURE__ */ u(DropdownComposed, {
|
|
54
54
|
id,
|
|
55
|
+
"data-testid": id,
|
|
55
56
|
name: question.questionId,
|
|
56
57
|
label,
|
|
57
58
|
labelHint,
|
|
@@ -69,6 +70,7 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, onCh
|
|
|
69
70
|
class: "IncodeDynamicFormsField",
|
|
70
71
|
children: /* @__PURE__ */ u(DateInputComposed, {
|
|
71
72
|
id,
|
|
73
|
+
"data-testid": id,
|
|
72
74
|
name: question.questionId,
|
|
73
75
|
label,
|
|
74
76
|
labelHint,
|
|
@@ -87,6 +89,7 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, onCh
|
|
|
87
89
|
onFocusOut: () => onBlur?.(question.questionId),
|
|
88
90
|
children: /* @__PURE__ */ u(PhoneInputComposed, {
|
|
89
91
|
id,
|
|
92
|
+
"data-testid": id,
|
|
90
93
|
label,
|
|
91
94
|
labelHint,
|
|
92
95
|
value,
|
|
@@ -105,6 +108,7 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, onCh
|
|
|
105
108
|
class: "IncodeDynamicFormsField",
|
|
106
109
|
children: /* @__PURE__ */ u(DropdownComposed, {
|
|
107
110
|
id,
|
|
111
|
+
"data-testid": id,
|
|
108
112
|
label,
|
|
109
113
|
labelHint,
|
|
110
114
|
value,
|
|
@@ -126,6 +130,7 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, onCh
|
|
|
126
130
|
class: "IncodeDynamicFormsField",
|
|
127
131
|
children: /* @__PURE__ */ u(DropdownComposed, {
|
|
128
132
|
id,
|
|
133
|
+
"data-testid": id,
|
|
129
134
|
label,
|
|
130
135
|
labelHint,
|
|
131
136
|
value,
|
|
@@ -142,6 +147,8 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, onCh
|
|
|
142
147
|
if (effectiveType === "EMAIL") return /* @__PURE__ */ u("div", {
|
|
143
148
|
class: "IncodeDynamicFormsField",
|
|
144
149
|
children: /* @__PURE__ */ u(EmailInput, {
|
|
150
|
+
id,
|
|
151
|
+
"data-testid": id,
|
|
145
152
|
value,
|
|
146
153
|
emailError: error,
|
|
147
154
|
label,
|
|
@@ -159,6 +166,7 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, onCh
|
|
|
159
166
|
class: "IncodeDynamicFormsField",
|
|
160
167
|
children: /* @__PURE__ */ u(InputComposed, {
|
|
161
168
|
id,
|
|
169
|
+
"data-testid": id,
|
|
162
170
|
name: question.questionId,
|
|
163
171
|
label,
|
|
164
172
|
labelHint,
|
|
@@ -182,6 +190,7 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, onCh
|
|
|
182
190
|
class: "IncodeDynamicFormsField",
|
|
183
191
|
children: /* @__PURE__ */ u(InputComposed, {
|
|
184
192
|
id,
|
|
193
|
+
"data-testid": id,
|
|
185
194
|
name: question.questionId,
|
|
186
195
|
label,
|
|
187
196
|
labelHint,
|
|
@@ -203,6 +212,7 @@ var QuestionInput = ({ question, value, disabled = false, error, labelHint, onCh
|
|
|
203
212
|
class: "IncodeDynamicFormsField",
|
|
204
213
|
children: /* @__PURE__ */ u(InputComposed, {
|
|
205
214
|
id,
|
|
215
|
+
"data-testid": id,
|
|
206
216
|
name: question.questionId,
|
|
207
217
|
label,
|
|
208
218
|
labelHint,
|
|
@@ -262,6 +272,7 @@ var ScreenForm = ({ screen, answers, validationErrors, canSubmit, isSubmitting =
|
|
|
262
272
|
}, question.questionId);
|
|
263
273
|
}), /* @__PURE__ */ u(Button, {
|
|
264
274
|
type: "submit",
|
|
275
|
+
"data-testid": "dynamic-forms-submit",
|
|
265
276
|
disabled: !canSubmit,
|
|
266
277
|
isLoading: isSubmitting,
|
|
267
278
|
children: t("common.continue")
|
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-DGnTw5UV.js";
|
|
2
2
|
export { EkybModule };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, d as T, l as A, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, o as useFormScrollable, u as useManager } from "./hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
7
|
-
import "./extensibility-
|
|
8
|
-
import { t as Spinner } from "./spinner-
|
|
9
|
-
import { t as Button } from "./button-
|
|
10
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
7
|
+
import "./extensibility-7sRIN0JC.js";
|
|
8
|
+
import { t as Spinner } from "./spinner-BMeIEK1d.js";
|
|
9
|
+
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
10
|
+
import { t as VerificationResult } from "./verificationResult-BWWkmeiA.js";
|
|
11
11
|
import { t as InputComposed } from "./inputComposed-C1R2LAa3.js";
|
|
12
|
-
import { i as translateError, r as FormField } from "./radioGroupComposed-
|
|
12
|
+
import { i as translateError, r as FormField } from "./radioGroupComposed-DuQxslB2.js";
|
|
13
13
|
import { t as DropdownComposed } from "./dropdownComposed-CoU0enG6.js";
|
|
14
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
15
|
-
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-
|
|
16
|
-
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-
|
|
17
|
-
import { t as CountrySelector$1 } from "./countrySelector-
|
|
14
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
15
|
+
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-D0RhuMed.js";
|
|
16
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-gfF-58Mv.js";
|
|
17
|
+
import { t as CountrySelector$1 } from "./countrySelector-SvUOyPo0.js";
|
|
18
18
|
import { DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager } from "@incodetech/core/ekyb";
|
|
19
19
|
//#region src/modules/ekyb/countrySelector.tsx
|
|
20
20
|
var CountrySelector = ({ value, onChange }) => {
|
package/dist/ekyc/ekyc.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkycModule } from "../ekycModule-
|
|
1
|
+
import { t as EkycModule } from "../ekycModule-Dxpdd0ns.js";
|
|
2
2
|
export { EkycModule };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, d as T, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, o as useFormScrollable, u as useManager } from "./hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
6
|
-
import { t as Spinner } from "./spinner-
|
|
7
|
-
import { t as Button } from "./button-
|
|
8
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
9
|
-
import { i as translateError, r as FormField, t as RadioGroupComposed } from "./radioGroupComposed-
|
|
6
|
+
import { t as Spinner } from "./spinner-BMeIEK1d.js";
|
|
7
|
+
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
8
|
+
import { t as VerificationResult } from "./verificationResult-BWWkmeiA.js";
|
|
9
|
+
import { i as translateError, r as FormField, t as RadioGroupComposed } from "./radioGroupComposed-DuQxslB2.js";
|
|
10
10
|
import { t as PhoneInputComposed } from "./phoneInputComposed-DMiXfF-1.js";
|
|
11
11
|
import { t as DropdownComposed } from "./dropdownComposed-CoU0enG6.js";
|
|
12
12
|
import { t as DateInputComposed } from "./dateInputComposed-DuaofcBl.js";
|
|
13
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
14
|
-
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-
|
|
15
|
-
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-
|
|
13
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
14
|
+
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-D0RhuMed.js";
|
|
15
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-gfF-58Mv.js";
|
|
16
16
|
import { createEkycManager } from "@incodetech/core/ekyc";
|
|
17
17
|
//#region src/modules/ekyc/ekycModule.tsx
|
|
18
18
|
var EkycContent = ({ config, onFinish }) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-
|
|
1
|
+
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-Ueoffasr.js";
|
|
2
2
|
export { AeSignature, ElectronicSignature };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { n as useTranslation, t as Trans } from "./i18n-
|
|
1
|
+
import { n as useTranslation, t as Trans } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, h as q, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "./hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
6
|
-
import { t as Button } from "./button-
|
|
6
|
+
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
7
7
|
import { c as ChevronLeftIcon, r as LockIcon } from "./icons-CJJbIpBq.js";
|
|
8
8
|
import { t as SuccessIcon } from "./successIcon-B5mGvdx1.js";
|
|
9
9
|
import { t as AutoFocusTitle } from "./autoFocusTitle-CuRu2lPg.js";
|
|
10
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
10
|
+
import { t as VerificationResult } from "./verificationResult-BWWkmeiA.js";
|
|
11
11
|
import { t as Checkbox } from "./checkbox-1wUHSoaK.js";
|
|
12
|
-
import { t as PdfViewer } from "./pdfViewer-
|
|
13
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
12
|
+
import { t as PdfViewer } from "./pdfViewer-B97DmT9m.js";
|
|
13
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
14
14
|
import { createElectronicSignatureManager } from "@incodetech/core/electronic-signature";
|
|
15
15
|
//#region src/modules/electronic-signature/documentIllustration.tsx
|
|
16
16
|
var DocumentIllustration = () => /* @__PURE__ */ u("svg", {
|
|
@@ -193,7 +193,7 @@ function getVariantCopy(variant, t) {
|
|
|
193
193
|
if (variant === "qe") return {
|
|
194
194
|
signingTitle: t("qes.consent.title"),
|
|
195
195
|
signingSubtitle: t("qes.consent.text"),
|
|
196
|
-
signButtonLabel: t("
|
|
196
|
+
signButtonLabel: t("aes.confirmSignature.finishSigning")
|
|
197
197
|
};
|
|
198
198
|
return {
|
|
199
199
|
signingTitle: t("aes.confirmSignature.title"),
|
|
@@ -214,8 +214,7 @@ var ElectronicSignatureContent = ({ config, onFinish, onError }) => {
|
|
|
214
214
|
status: state.status,
|
|
215
215
|
onFinish,
|
|
216
216
|
onError: state.status === "closed" ? () => onError?.("closed") : onError,
|
|
217
|
-
|
|
218
|
-
errorStatuses: ["failed"]
|
|
217
|
+
errorStatuses: []
|
|
219
218
|
});
|
|
220
219
|
const handleFileChange = q((event) => {
|
|
221
220
|
const file = event.target.files?.[0];
|
|
@@ -285,7 +284,7 @@ var ElectronicSignatureContent = ({ config, onFinish, onError }) => {
|
|
|
285
284
|
children: [/* @__PURE__ */ u(Button, {
|
|
286
285
|
onClick: () => manager.finish(),
|
|
287
286
|
children: t("common.continue")
|
|
288
|
-
}), state.signedDocuments.map((doc, i) => /* @__PURE__ */ u("a", {
|
|
287
|
+
}), state.signedDocuments.filter((doc) => !!doc.signedDocumentUrl).map((doc, i) => /* @__PURE__ */ u("a", {
|
|
289
288
|
href: doc.signedDocumentUrl,
|
|
290
289
|
target: "_blank",
|
|
291
290
|
rel: "noopener noreferrer",
|
|
@@ -304,25 +303,36 @@ var ElectronicSignatureContent = ({ config, onFinish, onError }) => {
|
|
|
304
303
|
warningTitle: t("aes.confirmSignature.fail"),
|
|
305
304
|
onRetry: () => manager.retry()
|
|
306
305
|
});
|
|
306
|
+
if (state.status === "signError") return /* @__PURE__ */ u(VerificationResult, {
|
|
307
|
+
status: "warning",
|
|
308
|
+
warningTitle: t("aes.confirmSignature.fail")
|
|
309
|
+
});
|
|
307
310
|
if (state.status === "signing") {
|
|
308
311
|
if (state.viewingDocumentUrl) return /* @__PURE__ */ u(Page, {
|
|
309
312
|
className: "IncodeElectronicSignature",
|
|
310
|
-
children: [
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
313
|
+
children: [
|
|
314
|
+
/* @__PURE__ */ u(AutoFocusTitle, {
|
|
315
|
+
className: "IncodeSrOnly",
|
|
316
|
+
children: t("aes.confirmSignature.contract")
|
|
317
|
+
}),
|
|
318
|
+
/* @__PURE__ */ u("div", {
|
|
319
|
+
className: "IncodeElectronicSignatureDocViewHeader",
|
|
320
|
+
children: /* @__PURE__ */ u(Button, {
|
|
321
|
+
size: "M",
|
|
322
|
+
variant: "link",
|
|
323
|
+
class: "IncodeElectronicSignatureBackButton",
|
|
324
|
+
icon: /* @__PURE__ */ u(ChevronLeftIcon, { variant: "m" }),
|
|
325
|
+
onClick: () => manager.closeDocumentView(),
|
|
326
|
+
"aria-label": t("common.back")
|
|
327
|
+
})
|
|
328
|
+
}),
|
|
329
|
+
/* @__PURE__ */ u(PdfViewer, {
|
|
330
|
+
url: state.viewingDocumentUrl,
|
|
331
|
+
mode: "full",
|
|
332
|
+
className: "IncodeElectronicSignatureDocViewer",
|
|
333
|
+
"aria-label": t("aes.confirmSignature.contract")
|
|
319
334
|
})
|
|
320
|
-
|
|
321
|
-
url: state.viewingDocumentUrl,
|
|
322
|
-
mode: "full",
|
|
323
|
-
className: "IncodeElectronicSignatureDocViewer",
|
|
324
|
-
"aria-label": t("aes.confirmSignature.viewDocument")
|
|
325
|
-
})]
|
|
335
|
+
]
|
|
326
336
|
});
|
|
327
337
|
const variant = state.variant;
|
|
328
338
|
const consentItems = getConsentItems(variant, t);
|
|
@@ -361,6 +371,7 @@ var ElectronicSignatureContent = ({ config, onFinish, onError }) => {
|
|
|
361
371
|
id: `es-${item.id}`,
|
|
362
372
|
label: item.label,
|
|
363
373
|
size: "s",
|
|
374
|
+
required: true,
|
|
364
375
|
checked: !!state.consentChecks[item.id],
|
|
365
376
|
onChange: () => manager.setConsent(item.id, !state.consentChecks[item.id])
|
|
366
377
|
}, item.id))
|
package/dist/email/email.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as useTranslation } from "../i18n-
|
|
1
|
+
import { n as useTranslation } from "../i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, p as d, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, s as isTerminalModuleState, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { r as Spacer } from "../loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "../page-DidH_RkX.js";
|
|
7
|
-
import { t as Button } from "../button-
|
|
8
|
-
import { t as OtpInput } from "../otpInput-
|
|
9
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
10
|
-
import { t as EmailInput } from "../emailInput-
|
|
7
|
+
import { t as Button } from "../button-Dz6AsbmF.js";
|
|
8
|
+
import { t as OtpInput } from "../otpInput-CnDc6pQm.js";
|
|
9
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
10
|
+
import { t as EmailInput } from "../emailInput-DsLkDtER.js";
|
|
11
11
|
import { createEmailManager } from "@incodetech/core/email";
|
|
12
12
|
//#region src/modules/email/email.tsx
|
|
13
13
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import "./extensibility-
|
|
3
|
+
import "./extensibility-7sRIN0JC.js";
|
|
4
4
|
import { t as InputComposed } from "./inputComposed-C1R2LAa3.js";
|
|
5
5
|
//#region src/modules/email/emailInput.tsx
|
|
6
6
|
var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
|
|
7
|
-
var EmailInput = ({ value, emailError, label, labelHint, disabled = false, required = false, onEmailChange, onBlur }) => {
|
|
7
|
+
var EmailInput = ({ value, emailError, label, labelHint, disabled = false, required = false, id = "email-input", "data-testid": dataTestId, onEmailChange, onBlur }) => {
|
|
8
8
|
const { t } = useTranslation();
|
|
9
9
|
const handleEmailChange = (e) => {
|
|
10
10
|
const trimmed = e.target.value.trim();
|
|
@@ -16,7 +16,7 @@ var EmailInput = ({ value, emailError, label, labelHint, disabled = false, requi
|
|
|
16
16
|
class: "IncodeEmailInputContainer",
|
|
17
17
|
onFocusOut: onBlur,
|
|
18
18
|
children: /* @__PURE__ */ u(InputComposed, {
|
|
19
|
-
id
|
|
19
|
+
id,
|
|
20
20
|
type: "email",
|
|
21
21
|
value,
|
|
22
22
|
onInput: handleEmailChange,
|
|
@@ -25,7 +25,7 @@ var EmailInput = ({ value, emailError, label, labelHint, disabled = false, requi
|
|
|
25
25
|
required,
|
|
26
26
|
label,
|
|
27
27
|
labelHint,
|
|
28
|
-
"data-testid":
|
|
28
|
+
"data-testid": dataTestId ?? id,
|
|
29
29
|
"aria-label": !label ? "Email address" : void 0,
|
|
30
30
|
"aria-invalid": emailError ? "true" : void 0,
|
|
31
31
|
autocomplete: "email",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
3
|
import { r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
4
4
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
5
5
|
import { t as Title } from "./typography-BZIpjo97.js";
|
|
6
|
-
import { t as Button } from "./button-
|
|
6
|
+
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
7
7
|
//#region src/shared/icons/redStrikeIcon.tsx
|
|
8
8
|
var RedStrikeIcon = ({ className, ...rest }) => /* @__PURE__ */ u("svg", {
|
|
9
9
|
class: className,
|
|
@@ -31,7 +31,7 @@ var RedStrikeIcon = ({ className, ...rest }) => /* @__PURE__ */ u("svg", {
|
|
|
31
31
|
* bottom). The optional attempts counter (added by core PR #439 / SDK 1
|
|
32
32
|
* `IdError` parity) renders only when `attemptsRemaining` is supplied.
|
|
33
33
|
*/
|
|
34
|
-
var ExpiredId = ({ onRetry, onContinue, attemptsRemaining }) => {
|
|
34
|
+
var ExpiredId = ({ onRetry, onContinue, attemptsRemaining, isBackSide }) => {
|
|
35
35
|
const { t } = useTranslation();
|
|
36
36
|
const titleRef = A(null);
|
|
37
37
|
y(() => {
|
|
@@ -56,7 +56,7 @@ var ExpiredId = ({ onRetry, onContinue, attemptsRemaining }) => {
|
|
|
56
56
|
/* @__PURE__ */ u(Spacer, { size: 12 }),
|
|
57
57
|
/* @__PURE__ */ u("p", {
|
|
58
58
|
class: "IncodeIdExpiredSubtitle",
|
|
59
|
-
children: t("idv2.capture.expiredId.pleaseTryWithADifferentId")
|
|
59
|
+
children: isBackSide ? t("idv2.digitalIdUpload.wrongDocumentTypeScreen.errorSubtitle") : t("idv2.capture.expiredId.pleaseTryWithADifferentId")
|
|
60
60
|
}),
|
|
61
61
|
/* @__PURE__ */ u(Spacer, { size: 80 }),
|
|
62
62
|
attemptsRemaining !== void 0 ? /* @__PURE__ */ u("p", {
|