@incodetech/web 2.0.1 → 2.1.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/dist/ae-signature/ae-signature.es.js +15 -13
- package/dist/ae-signature/styles.css +3 -17
- package/dist/ae-signature/styles2.css +15 -5
- package/dist/aligndevicelottie-DY_bX_p8.js +12769 -0
- package/dist/antifraud/antifraud.es.js +23 -16
- package/dist/authentication/authentication.es.js +42 -27
- package/dist/autoFocusTitle-BzkUiELM.js +29 -0
- package/dist/{back-horizontal-hint-B8Brxh3U.js → back-horizontal-hint-D_8LptLm.js} +26 -26
- package/dist/back-tutorial-vb1MxlrT.js +14597 -0
- package/dist/{back-vertical-hint-BBo36dxn.js → back-vertical-hint-C1evxxq2.js} +27 -27
- package/dist/backdevicelottie-HypPqBz7.js +16690 -0
- package/dist/base.css +1258 -104
- package/dist/blurdevicelottie-CBXtBFiJ.js +15951 -0
- package/dist/bottomSheet-F1GJfQx_.js +39 -0
- package/dist/browser-ponyfill-CLLvZCVg.js +441 -0
- package/dist/button-CM_hgyIP.js +35 -0
- package/dist/checkbox-BoeLHKgp.js +96 -0
- package/dist/consent/consent.es.js +89 -73
- package/dist/consent/styles.css +35 -22
- package/dist/countrySelector-mSWyHSy4.js +60 -0
- package/dist/cpf-ocr/cpf-ocr.es.js +2 -0
- package/dist/cpfOcr-MtpRztkG.js +92 -0
- package/dist/cpfOcr-jJkYCfsX.js +2 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +20 -16
- package/dist/curp-validation/curp-validation.es.js +247 -203
- package/dist/customFields-DXXt9HGM.js +140 -0
- package/dist/customWatchlist-DsW04UF6.js +36 -0
- package/dist/dateInputComposed-C_mh4XBg.js +69 -0
- package/dist/dateInputComposed-Cy6a7ymh.js +1 -0
- package/dist/defineProperty-mefzVtTv.js +39 -0
- package/dist/document-capture/document-capture.es.js +2 -0
- package/dist/document-capture/styles.css +2 -5
- package/dist/documentCapture-8ypBJehw.js +2 -0
- package/dist/documentCapture-BDV_921m.js +880 -0
- package/dist/dropdownComposed-CEWBSdGl.js +1 -0
- package/dist/dropdownComposed-_fgAlo_C.js +380 -0
- package/dist/dynamic-forms/styles.css +25 -13
- package/dist/dynamicForms-DyfnsS7E.js +352 -0
- package/dist/ekyb/ekyb.es.js +2 -2
- package/dist/ekyb/styles.css +2 -0
- package/dist/ekybModule-CIPGmCvD.js +279 -0
- package/dist/ekybModule-DFoYpheB.js +2 -0
- package/dist/ekyc/ekyc.es.js +2 -2
- package/dist/ekyc/styles.css +9 -7
- package/dist/ekycModule-BGzwgjl1.js +2 -0
- package/dist/ekycModule-BuTaC5ct.js +257 -0
- package/dist/electronic-signature/electronic-signature.es.js +2 -2
- package/dist/electronic-signature-B-Q7M0wK.js +430 -0
- package/dist/email/email.es.js +199 -66
- package/dist/emailInput-KZmhjOdZ.js +39 -0
- package/dist/errorIcon-DJRZpd8j.js +26 -0
- package/dist/expiredId-Q1t6aVpk.js +85 -0
- package/dist/extensibility-Cs3KQQdC.js +3070 -0
- package/dist/extensibility.es.js +26 -25
- package/dist/face-match/face-match.es.js +2 -2
- package/dist/face-match/styles.css +0 -4
- package/dist/faceMatch--RDHJe4t.js +343 -0
- package/dist/faceMatch-yEKPYaym.js +2 -0
- package/dist/field-comparison/field-comparison.es.js +2 -0
- package/dist/field-comparison/styles.css +16 -0
- package/dist/fieldComparison-CAF86bTC.js +88 -0
- package/dist/fieldComparison-D0an7T_g.js +2 -0
- package/dist/fiscal-qr/fiscal-qr.es.js +224 -0
- package/dist/fiscal-qr/styles.css +71 -0
- package/dist/{flip-animation-CgwRsEmK.js → flip-animation-BGRvygw9.js} +4221 -4221
- package/dist/flow/flow.es.js +619 -484
- package/dist/flow/styles.css +378 -418
- package/dist/{front-horizontal-hint-DGGGi8e1.js → front-horizontal-hint-Uf5bHCsd.js} +70 -70
- package/dist/{front-vertical-hint-CNr5mE6Q.js → front-vertical-hint-DdWNA45v.js} +81 -81
- package/dist/frontdevicelottie-CLqitJhG.js +17314 -0
- package/dist/geolocation/geolocation.es.js +486 -395
- package/dist/glaredevicelottie-BS04U6Fc.js +14478 -0
- package/dist/governmentValidation/governmentValidation.es.js +166 -93
- package/dist/governmentValidation/styles.css +0 -17
- package/dist/homeScreen-BZnIEDrV.js +264 -0
- package/dist/hooks-Da_yP_Dr.js +149 -0
- package/dist/i18n-CoCO2ZuN.js +2971 -0
- package/dist/icons-Dbs9ZfYM.js +360 -0
- package/dist/id/id.es.js +583 -414
- package/dist/id/styles.css +59 -43
- package/dist/id-laser-h-DX8UbVNH.js +467 -0
- package/dist/id-laser-v-DhnHdjlB.js +490 -0
- package/dist/id-tutorial-lj4iKtYT.js +13165 -0
- package/dist/id-verification/id-verification.es.js +21 -17
- package/dist/idOcr-CjGbb4dB.js +123 -0
- package/dist/identity-reuse/identity-reuse.es.js +311 -182
- package/dist/identity-reuse/styles.css +134 -80
- package/dist/incode-logo-57XFniXU.js +4 -0
- package/dist/incodeComponent-wfnHlnXx.js +63 -0
- package/dist/incodeModule-BUDoTwT9.js +13 -0
- package/dist/index.es.js +17 -13
- package/dist/inputComposed-BEn7_nZd.js +1 -0
- package/dist/inputComposed-CQ4AsvZg.js +99 -0
- package/dist/loadingIcon-B0ysgiNq.js +148 -0
- package/dist/lottie_light-Dp9Bz3mf.js +9031 -0
- package/dist/mandatoryConsent-r0PQHmv-.js +107 -0
- package/dist/modal-nTSaG7nB.js +139 -0
- package/dist/modal.hooks-D2xhIuHA.js +195 -0
- package/dist/numberedStep-CEtwZqLp.js +13 -0
- package/dist/optionAccessibleLabel-CnA-mNAU.js +202 -0
- package/dist/otpInput-_JmtVwa0.js +195 -0
- package/dist/page-DxGQj7Gk.js +71 -0
- package/dist/{passport-horizontal-hint-Bgquwtac.js → passport-horizontal-hint-Bbm2mvSn.js} +55 -55
- package/dist/{passport-tutorial-DwRwtPVX.js → passport-tutorial-zT1ZoA-D.js} +7096 -7084
- package/dist/{passport-vertical-hint-BT1D5BrW.js → passport-vertical-hint-DJbCtBiM.js} +49 -49
- package/dist/pdf-BZA70WbM.js +22398 -0
- package/dist/pdfViewer-BK-yVIve.js +114 -0
- package/dist/phone/phone.es.js +214 -70
- package/dist/phoneInputComposed-DjNdsmPE.js +12142 -0
- package/dist/processing-BM-wT-1W.js +8 -0
- package/dist/qe-signature/qe-signature.es.js +15 -13
- package/dist/radioGroupComposed-BNuaopVr.js +215 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +2774 -0
- package/dist/redirect-to-mobile/styles.css +19 -269
- package/dist/registerIncodeElement-77NGCDsy.js +11 -0
- package/dist/requiredLabelHint-DEadtiwx.js +17 -0
- package/dist/richText-Cf9aMOCk.js +3153 -0
- package/dist/rolldown-runtime--E5BIlTp.js +33 -0
- package/dist/selfie/selfie.es.js +54 -37
- package/dist/selfie/styles.css +0 -4
- package/dist/selfieTutorial-CtruLyO2.js +2689 -0
- package/dist/signature/signature.es.js +778 -405
- package/dist/snackbar-CxepGC3e.js +16 -0
- package/dist/spinner-B6RxGFrI.js +1 -0
- package/dist/spinner-D8a_2LvW.js +42 -0
- package/dist/statusPage-DMYPUwRZ.js +28 -0
- package/dist/successIcon-BAyDPT7I.js +30 -0
- package/dist/tabs-C8npVBbk.js +103 -0
- package/dist/themes/dark.css +5 -0
- package/dist/themes/light.css +4 -0
- package/dist/transitionSpinner-DRRz-NV8.js +26 -0
- package/dist/{tutorial-9vHAHvMK.js → tutorial-D1qaY2Tm.js} +1105 -856
- package/dist/types/ae-signature.d.ts +4 -1
- package/dist/types/antifraud.d.ts +9 -3
- package/dist/types/authentication.d.ts +4 -1
- package/dist/types/consent.d.ts +4 -1
- package/dist/types/cpf-ocr.d.ts +12 -0
- package/dist/types/cross-document-data-match.d.ts +4 -1
- package/dist/types/curp-validation.d.ts +9 -3
- package/dist/types/document-capture.d.ts +37 -0
- package/dist/types/ekyb.d.ts +4 -1
- package/dist/types/ekyc.d.ts +4 -1
- package/dist/types/electronic-signature.d.ts +4 -1
- package/dist/types/email.d.ts +4 -1
- package/dist/types/extensibility.d.ts +40 -15
- package/dist/types/face-match.d.ts +4 -1
- package/dist/types/field-comparison.d.ts +38 -0
- package/dist/types/fiscal-qr.d.ts +43 -0
- package/dist/types/flow.d.ts +5 -2
- package/dist/types/geolocation.d.ts +4 -1
- package/dist/types/governmentValidation.d.ts +4 -1
- package/dist/types/id-verification.d.ts +4 -1
- package/dist/types/id.d.ts +4 -1
- package/dist/types/identity-reuse.d.ts +4 -1
- package/dist/types/index.d.ts +26 -2
- package/dist/types/phone.d.ts +4 -1
- package/dist/types/qe-signature.d.ts +4 -1
- package/dist/types/redirect-to-mobile.d.ts +17 -0
- package/dist/types/selfie.d.ts +4 -1
- package/dist/types/signature.d.ts +4 -1
- package/dist/types/watchlist.d.ts +4 -1
- package/dist/types/workflow.d.ts +55 -11
- package/dist/typography-YLgHHuao.js +45 -0
- package/dist/uiConfig-D2_wawvr.js +25 -0
- package/dist/useModuleLoader-CeJ2jL25.js +672 -0
- package/dist/vendor-preact-DThS2ZQ_.js +955 -0
- package/dist/verificationResult-Do5SpZ6X.js +64 -0
- package/dist/verifiedByIncode-DjXOdCml.js +103 -0
- package/dist/watchlist/watchlist.es.js +31 -28
- package/dist/watchlistForBusiness-BFFXC9d-.js +80 -0
- package/dist/workflow/styles.css +449 -427
- package/dist/workflow/workflow.es.js +268 -182
- package/package.json +32 -10
- package/dist/aligndevicelottie-DoV8xKjh.js +0 -12757
- package/dist/autoFocusTitle-QexamZ4i.js +0 -16
- package/dist/back-tutorial-1NOQobGO.js +0 -14585
- package/dist/backdevicelottie-C_ceuqY7.js +0 -16678
- package/dist/blurdevicelottie-UO14Y0WC.js +0 -15939
- package/dist/bottomSheet-DE_8TFEC.js +0 -31
- package/dist/browser-ponyfill-jOkuz57z.js +0 -299
- package/dist/button-DcCUEn2n.js +0 -24
- package/dist/checkbox-Cl57ltq_.js +0 -85
- package/dist/countrySelector-CE-JgIsv.js +0 -58
- package/dist/cpfOcr-D_tbwbvh.js +0 -78
- package/dist/customFields-CW38fQUv.js +0 -127
- package/dist/customWatchlist-D9_yjEQd.js +0 -33
- package/dist/dateInputComposed-BpAGsjN6.js +0 -55
- package/dist/dateInputComposed-DU3o6PAV.js +0 -1
- package/dist/defineProperty-Dh8nSJpJ.js +0 -39
- package/dist/documentCapture-xX-JT7ZY.js +0 -763
- package/dist/dropdownComposed-DFRBG22E.js +0 -284
- package/dist/dropdownComposed-DwTzc2YU.js +0 -1
- package/dist/dynamicForms-CJP1Ia6Q.js +0 -262
- package/dist/ekybModule-BSs7mndb.js +0 -280
- package/dist/ekybModule-D9M3E2Gm.js +0 -2
- package/dist/ekycModule-CU9pt5YN.js +0 -246
- package/dist/ekycModule-CZw9cLno.js +0 -2
- package/dist/electronic-signature-COYXjGdd.js +0 -410
- package/dist/emailInput-DppGf9pv.js +0 -37
- package/dist/expiredId-BnmzE8T3.js +0 -70
- package/dist/extensibility-CzEJfRwo.js +0 -2586
- package/dist/faceMatch-B8j0g0Yo.js +0 -2
- package/dist/faceMatch-BV8UD7tj.js +0 -201
- package/dist/frontdevicelottie-Bu6f9fDE.js +0 -17302
- package/dist/glaredevicelottie-B10axYs_.js +0 -14466
- package/dist/homeScreen-DnP1jw9A.js +0 -227
- package/dist/hooks-BVnGysT7.js +0 -80
- package/dist/i18n-9s4OSqwi.js +0 -2010
- package/dist/icons-Cc7zwchP.js +0 -310
- package/dist/id-laser-h-mBAzHVOK.js +0 -467
- package/dist/id-laser-v-CrFg4bcJ.js +0 -483
- package/dist/id-tutorial-BCr42Pnn.js +0 -13153
- package/dist/idOcr-CCjfWQvH.js +0 -94
- package/dist/incode-logo-DX016usY.js +0 -4
- package/dist/incodeComponent-C1o4M0ZK.js +0 -50
- package/dist/incodeModule-BqCjVgEI.js +0 -18
- package/dist/inputComposed-APSw8C7o.js +0 -89
- package/dist/inputComposed-XYrarFxS.js +0 -1
- package/dist/loadingIcon-BN5YRQUb.js +0 -104
- package/dist/mandatoryConsent-DssKMC3v.js +0 -100
- package/dist/modal-NMxsQHAO.js +0 -135
- package/dist/modal.hooks-CAjcIFZK.js +0 -126
- package/dist/numberedStep-CT-alrK5.js +0 -11
- package/dist/optionAccessibleLabel-CzEeX3Q4.js +0 -140
- package/dist/otpInput-DqRA_egd.js +0 -145
- package/dist/page-C1yT4DLb.js +0 -69
- package/dist/pdf-BurGZ08w.js +0 -14967
- package/dist/pdfViewer-BGBNL1Ea.js +0 -63
- package/dist/phoneInputComposed-bvWhGLFZ.js +0 -11206
- package/dist/processing-G_y3o32b.js +0 -6
- package/dist/radioGroupComposed-BbmvxmD2.js +0 -177
- package/dist/redirectToMobile-C3k1gloW.js +0 -1514
- package/dist/requiredLabelHint-BLwgqozE.js +0 -13
- package/dist/richText-DbJ5sl2n.js +0 -1973
- package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
- package/dist/selfieTutorial-BgrlUMXP.js +0 -2677
- package/dist/snackbar-BDp8x7Cv.js +0 -14
- package/dist/spinner-B4dcie2T.js +0 -1
- package/dist/spinner-CKnjVHxw.js +0 -39
- package/dist/statusPage-CUI7ApcU.js +0 -28
- package/dist/successIcon-DbILeIz_.js +0 -28
- package/dist/tabs-DaPyP71c.js +0 -78
- package/dist/transitionSpinner-PIEPU2Vx.js +0 -17
- package/dist/types/cpf-ocr/styles.d.ts +0 -1
- package/dist/types/document-capture/styles.d.ts +0 -1
- package/dist/types/redirect-to-mobile/styles.d.ts +0 -1
- package/dist/typography-CxjaknHN.js +0 -28
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/useModuleLoader-BFiVA41N.js +0 -432
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/verificationResult-BrVbUJ4U.js +0 -97
- package/dist/verifiedByIncode-ChZBpqNy.js +0 -101
- package/dist/watchlistForBusiness-BcSNtHCV.js +0 -77
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { _ as e, p as t } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
//#region src/shared/modal/modal.hooks.ts
|
|
3
|
-
var n = "IncodeModalScrollLock", r = "data-incode-modal-initial-focus", i = [
|
|
4
|
-
"button:not([disabled])",
|
|
5
|
-
"[href]",
|
|
6
|
-
"input:not([disabled])",
|
|
7
|
-
"select:not([disabled])",
|
|
8
|
-
"textarea:not([disabled])",
|
|
9
|
-
"[tabindex]:not([tabindex=\"-1\"])"
|
|
10
|
-
].join(", ");
|
|
11
|
-
function a(e) {
|
|
12
|
-
return Array.from(e.querySelectorAll(i));
|
|
13
|
-
}
|
|
14
|
-
function o(e) {
|
|
15
|
-
try {
|
|
16
|
-
return e.matches(i);
|
|
17
|
-
} catch {
|
|
18
|
-
return !1;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function s(e) {
|
|
22
|
-
let t = e.querySelector("[autofocus]");
|
|
23
|
-
if (t && o(t)) return t;
|
|
24
|
-
let n = e.querySelector(`[${r}]`);
|
|
25
|
-
if (n) {
|
|
26
|
-
if (o(n)) return n;
|
|
27
|
-
let e = n.querySelector(i);
|
|
28
|
-
if (e) return e;
|
|
29
|
-
}
|
|
30
|
-
return a(e)[0] ?? e;
|
|
31
|
-
}
|
|
32
|
-
function c(n, r) {
|
|
33
|
-
let [i, a] = t(null);
|
|
34
|
-
return e(() => {
|
|
35
|
-
if (!n) {
|
|
36
|
-
a(null);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
if (r) return a(r), () => {
|
|
40
|
-
a(null);
|
|
41
|
-
};
|
|
42
|
-
let e = document.createElement("div");
|
|
43
|
-
return e.setAttribute("data-incode-modal-portal", ""), (document.querySelector(".IncodeComponent") ?? document.body).appendChild(e), a(e), () => {
|
|
44
|
-
e.remove(), a(null);
|
|
45
|
-
};
|
|
46
|
-
}, [n, r]), i;
|
|
47
|
-
}
|
|
48
|
-
function l(t) {
|
|
49
|
-
e(() => {
|
|
50
|
-
if (!t) return;
|
|
51
|
-
let e = document.querySelector(".IncodeComponent");
|
|
52
|
-
return (e ?? document.body).classList.add(n), () => {
|
|
53
|
-
(e ?? document.body).classList.remove(n);
|
|
54
|
-
};
|
|
55
|
-
}, [t]);
|
|
56
|
-
}
|
|
57
|
-
function u(t, n, r) {
|
|
58
|
-
e(() => {
|
|
59
|
-
if (!t || !n) return;
|
|
60
|
-
let e = (e) => {
|
|
61
|
-
e.key === "Escape" && (e.preventDefault(), r());
|
|
62
|
-
};
|
|
63
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
64
|
-
}, [
|
|
65
|
-
t,
|
|
66
|
-
n,
|
|
67
|
-
r
|
|
68
|
-
]);
|
|
69
|
-
}
|
|
70
|
-
function d(t, n, r = !0, i) {
|
|
71
|
-
e(() => {
|
|
72
|
-
if (!t) return;
|
|
73
|
-
let e = document.activeElement, a = i?.current ?? null;
|
|
74
|
-
if (r) {
|
|
75
|
-
let e = n.current;
|
|
76
|
-
e && s(e).focus();
|
|
77
|
-
}
|
|
78
|
-
return () => {
|
|
79
|
-
if (a && typeof a.focus == "function") {
|
|
80
|
-
a.focus();
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
e && typeof e.focus == "function" && e.focus();
|
|
84
|
-
};
|
|
85
|
-
}, [
|
|
86
|
-
t,
|
|
87
|
-
n,
|
|
88
|
-
r,
|
|
89
|
-
i
|
|
90
|
-
]);
|
|
91
|
-
}
|
|
92
|
-
function f(t, n) {
|
|
93
|
-
e(() => {
|
|
94
|
-
if (!t || typeof window > "u") return;
|
|
95
|
-
let e = window.visualViewport;
|
|
96
|
-
if (!e) return;
|
|
97
|
-
let r = () => {
|
|
98
|
-
let t = n.current;
|
|
99
|
-
t && (t.style.setProperty("--incode-visual-viewport-height", `${e.height}px`), t.style.setProperty("--incode-visual-viewport-offset-top", `${e.offsetTop}px`));
|
|
100
|
-
};
|
|
101
|
-
return r(), e.addEventListener("resize", r), e.addEventListener("scroll", r), () => {
|
|
102
|
-
e.removeEventListener("resize", r), e.removeEventListener("scroll", r);
|
|
103
|
-
};
|
|
104
|
-
}, [t, n]);
|
|
105
|
-
}
|
|
106
|
-
function p(t, n) {
|
|
107
|
-
e(() => {
|
|
108
|
-
if (!t) return;
|
|
109
|
-
let e = (e) => {
|
|
110
|
-
if (e.key !== "Tab") return;
|
|
111
|
-
let t = n.current;
|
|
112
|
-
if (!t) return;
|
|
113
|
-
let r = a(t);
|
|
114
|
-
if (r.length === 0 && document.activeElement === t) {
|
|
115
|
-
e.preventDefault();
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
if (r.length === 0) return;
|
|
119
|
-
let i = r[0], o = r[r.length - 1];
|
|
120
|
-
e.shiftKey ? document.activeElement === i && (e.preventDefault(), o.focus()) : document.activeElement === o && (e.preventDefault(), i.focus());
|
|
121
|
-
};
|
|
122
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
123
|
-
}, [t, n]);
|
|
124
|
-
}
|
|
125
|
-
//#endregion
|
|
126
|
-
export { c as a, d as i, l as n, p as o, u as r, f as s, r as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { v as e } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
//#region src/shared/permissions/camera/numberedStep.tsx
|
|
3
|
-
var t = ({ number: t }) => /* @__PURE__ */ e("div", {
|
|
4
|
-
class: "IncodeNumberedStep",
|
|
5
|
-
children: /* @__PURE__ */ e("span", {
|
|
6
|
-
class: "IncodeNumberedStepText",
|
|
7
|
-
children: t
|
|
8
|
-
})
|
|
9
|
-
});
|
|
10
|
-
//#endregion
|
|
11
|
-
export { t };
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-9s4OSqwi.js";
|
|
2
|
-
import { _ as t, h as n, l as r, p as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { r as o } from "./hooks-BVnGysT7.js";
|
|
4
|
-
import { t as s } from "./inputComposed-APSw8C7o.js";
|
|
5
|
-
import { i as c } from "./radioGroupComposed-BbmvxmD2.js";
|
|
6
|
-
import { t as l } from "./bottomSheet-DE_8TFEC.js";
|
|
7
|
-
//#region src/shared/addressAutocomplete/addressAutocomplete.tsx
|
|
8
|
-
var u = ({ label: u, value: d, error: f, errorParams: p, suggestions: m, readonly: h, required: g, labelHint: _, onChange: v, onSearch: y, onSelect: b, onBlur: x }) => {
|
|
9
|
-
let { t: S } = e(), [C, w] = i(!1), [T, E] = i(!1), [D, O] = i(""), [k, A] = i(-1), [j, M] = i(-1), N = r(null), P = r(null), F = r(null), I = "ekyc-address-listbox", L = "ekyc-address-mobile-listbox", R = "ekyc-address-modal-title", z = o(), B = S(u);
|
|
10
|
-
t(() => {
|
|
11
|
-
function e(e) {
|
|
12
|
-
N.current && !N.current.contains(e.target) && w(!1);
|
|
13
|
-
}
|
|
14
|
-
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
15
|
-
}, []), t(() => {
|
|
16
|
-
A(-1), M(-1);
|
|
17
|
-
}, [m]), t(() => {
|
|
18
|
-
let e = z ? F : P, t = z ? j : k;
|
|
19
|
-
t < 0 || e.current?.children[t]?.scrollIntoView({ block: "nearest" });
|
|
20
|
-
}, [
|
|
21
|
-
k,
|
|
22
|
-
j,
|
|
23
|
-
z
|
|
24
|
-
]);
|
|
25
|
-
let V = n((e) => {
|
|
26
|
-
b(e), w(!1), E(!1), A(-1), M(-1);
|
|
27
|
-
}, [b]), H = n(() => {
|
|
28
|
-
E(!1), M(-1);
|
|
29
|
-
}, []), U = (e) => {
|
|
30
|
-
v(e), e.length >= 3 ? z ? (E(!0), O(e), y(e)) : (y(e), w(!0)) : w(!1);
|
|
31
|
-
}, W = (e, t, n) => (r) => {
|
|
32
|
-
m.length !== 0 && (r.key === "ArrowDown" ? (r.preventDefault(), t((e) => e < m.length - 1 ? e + 1 : 0)) : r.key === "ArrowUp" ? (r.preventDefault(), t((e) => e > 0 ? e - 1 : m.length - 1)) : r.key === "Enter" && e() >= 0 ? (r.preventDefault(), V(m[e()])) : r.key === "Escape" && n && n());
|
|
33
|
-
}, G = W(() => k, A, () => {
|
|
34
|
-
w(!1), A(-1);
|
|
35
|
-
}), K = W(() => j, M), q = !z && C && m.length > 0, J = q && k >= 0 ? `${I}-option-${k}` : void 0;
|
|
36
|
-
return /* @__PURE__ */ a("div", {
|
|
37
|
-
className: "IncodeAddressAutocomplete",
|
|
38
|
-
ref: N,
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ a(s, {
|
|
41
|
-
id: "ekyc-street",
|
|
42
|
-
label: B,
|
|
43
|
-
labelHint: _,
|
|
44
|
-
name: "street",
|
|
45
|
-
value: d,
|
|
46
|
-
readOnly: h,
|
|
47
|
-
required: g,
|
|
48
|
-
error: c(S, f, p),
|
|
49
|
-
onInput: (e) => U(e.target.value),
|
|
50
|
-
onKeyDown: G,
|
|
51
|
-
onBlur: x,
|
|
52
|
-
role: "combobox",
|
|
53
|
-
"aria-expanded": q,
|
|
54
|
-
"aria-controls": I,
|
|
55
|
-
"aria-activedescendant": J,
|
|
56
|
-
"aria-autocomplete": "list",
|
|
57
|
-
"data-testid": "ekyc-address-input"
|
|
58
|
-
}),
|
|
59
|
-
q && /* @__PURE__ */ a("ul", {
|
|
60
|
-
ref: P,
|
|
61
|
-
id: I,
|
|
62
|
-
role: "listbox",
|
|
63
|
-
className: "IncodeAddressAutocompleteSuggestions",
|
|
64
|
-
children: m.map((e, t) => /* @__PURE__ */ a("li", {
|
|
65
|
-
id: `${I}-option-${t}`,
|
|
66
|
-
role: "option",
|
|
67
|
-
"aria-selected": t === k,
|
|
68
|
-
className: `IncodeAddressAutocompleteSuggestion ${t === k ? "IncodeAddressAutocompleteSuggestionActive" : ""}`,
|
|
69
|
-
onClick: () => V(e),
|
|
70
|
-
children: e.label
|
|
71
|
-
}, e.id))
|
|
72
|
-
}),
|
|
73
|
-
z && /* @__PURE__ */ a(l, {
|
|
74
|
-
isOpen: T,
|
|
75
|
-
onClose: H,
|
|
76
|
-
labelledById: R,
|
|
77
|
-
children: [/* @__PURE__ */ a("div", {
|
|
78
|
-
className: "IncodeAddressAutocompleteModalHeader",
|
|
79
|
-
children: [/* @__PURE__ */ a("h3", {
|
|
80
|
-
id: R,
|
|
81
|
-
children: S("verification.addressSearch")
|
|
82
|
-
}), /* @__PURE__ */ a("button", {
|
|
83
|
-
className: "IncodeAddressAutocompleteModalClose",
|
|
84
|
-
onClick: H,
|
|
85
|
-
type: "button",
|
|
86
|
-
"aria-label": S("common.close"),
|
|
87
|
-
children: "×"
|
|
88
|
-
})]
|
|
89
|
-
}), /* @__PURE__ */ a("div", {
|
|
90
|
-
className: "IncodeAddressAutocompleteModalBody",
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ a("input", {
|
|
93
|
-
className: "IncodeAddressAutocompleteModalInput",
|
|
94
|
-
type: "text",
|
|
95
|
-
value: D,
|
|
96
|
-
placeholder: S("verification.addressPlaceholder"),
|
|
97
|
-
"aria-label": S("verification.addressSearch"),
|
|
98
|
-
role: "combobox",
|
|
99
|
-
"aria-expanded": m.length > 0,
|
|
100
|
-
"aria-controls": L,
|
|
101
|
-
"aria-activedescendant": j >= 0 ? `${L}-option-${j}` : void 0,
|
|
102
|
-
"aria-autocomplete": "list",
|
|
103
|
-
onInput: (e) => {
|
|
104
|
-
let t = e.target.value;
|
|
105
|
-
O(t), t.length >= 3 && y(t);
|
|
106
|
-
},
|
|
107
|
-
onKeyDown: K,
|
|
108
|
-
autoFocus: !0
|
|
109
|
-
}),
|
|
110
|
-
m.length > 0 && /* @__PURE__ */ a("ul", {
|
|
111
|
-
ref: F,
|
|
112
|
-
id: L,
|
|
113
|
-
role: "listbox",
|
|
114
|
-
className: "IncodeAddressAutocompleteModalSuggestions",
|
|
115
|
-
children: m.map((e, t) => /* @__PURE__ */ a("li", {
|
|
116
|
-
id: `${L}-option-${t}`,
|
|
117
|
-
role: "option",
|
|
118
|
-
"aria-selected": t === j,
|
|
119
|
-
className: `IncodeAddressAutocompleteModalSuggestion ${t === j ? "IncodeAddressAutocompleteModalSuggestionActive" : ""}`,
|
|
120
|
-
onClick: () => V(e),
|
|
121
|
-
children: e.label
|
|
122
|
-
}, e.id))
|
|
123
|
-
}),
|
|
124
|
-
/* @__PURE__ */ a("button", {
|
|
125
|
-
className: "IncodeAddressAutocompleteEnterManually",
|
|
126
|
-
onClick: H,
|
|
127
|
-
type: "button",
|
|
128
|
-
children: S("verification.enterManually")
|
|
129
|
-
})
|
|
130
|
-
]
|
|
131
|
-
})]
|
|
132
|
-
})
|
|
133
|
-
]
|
|
134
|
-
});
|
|
135
|
-
}, d = /^(?:[\u{1F1E6}-\u{1F1FF}]{2}|\p{Extended_Pictographic})\s*/u;
|
|
136
|
-
function f(e) {
|
|
137
|
-
return e.replace(d, "").trimStart();
|
|
138
|
-
}
|
|
139
|
-
//#endregion
|
|
140
|
-
export { u as n, f as t };
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-9s4OSqwi.js";
|
|
2
|
-
import { _ as t, h as n, l as r, p as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { r as o } from "./loadingIcon-BN5YRQUb.js";
|
|
4
|
-
import { t as s } from "./button-DcCUEn2n.js";
|
|
5
|
-
import { t as c } from "./inputComposed-APSw8C7o.js";
|
|
6
|
-
import "./inputComposed-XYrarFxS.js";
|
|
7
|
-
//#region src/shared/otpInput/otpInput.tsx
|
|
8
|
-
var l = 6, u = (e) => `${Math.floor(e / 60)}:${(e % 60).toString().padStart(2, "0")}`, d = (e) => e.replace(/[^a-zA-Z0-9]/g, "").toUpperCase().slice(0, l), f = ({ resendTimer: f, canResend: p, error: m, onSubmit: h, onResend: g, onBack: _, backLinkText: v = "otp.changePhoneNumber", disabled: y = !1, isLoading: b = !1 }) => {
|
|
9
|
-
let { t: x } = e(), [S, C] = i(""), w = r(null), T = r(0), E = r(null), D = r(null), O = r(p), k = r(!1), A = r(), j = n((e) => {
|
|
10
|
-
let t = D.current;
|
|
11
|
-
t && (clearTimeout(A.current), t.textContent = "", A.current = setTimeout(() => {
|
|
12
|
-
t.textContent = e;
|
|
13
|
-
}, 50));
|
|
14
|
-
}, []);
|
|
15
|
-
t(() => {
|
|
16
|
-
let e = !O.current;
|
|
17
|
-
return O.current = p, e && p && j(x("otp.resendCodeAvailable")), () => clearTimeout(A.current);
|
|
18
|
-
}, [
|
|
19
|
-
p,
|
|
20
|
-
j,
|
|
21
|
-
x
|
|
22
|
-
]), t(() => {
|
|
23
|
-
m && (E.current = null, setTimeout(() => {
|
|
24
|
-
w.current?.focus();
|
|
25
|
-
}, 0));
|
|
26
|
-
}, [m]);
|
|
27
|
-
let M = n((e) => {
|
|
28
|
-
let t = d(e);
|
|
29
|
-
t.length !== l || b || E.current !== t && (E.current = t, h(t));
|
|
30
|
-
}, [b, h]);
|
|
31
|
-
t(() => {
|
|
32
|
-
if (!S) return;
|
|
33
|
-
let e = S.length === l && T.current < l;
|
|
34
|
-
T.current = S.length, e && M(S);
|
|
35
|
-
}, [S, M]);
|
|
36
|
-
let N = (e) => {
|
|
37
|
-
let t = e.target;
|
|
38
|
-
C(d(t.value));
|
|
39
|
-
}, P = (e) => {
|
|
40
|
-
e.preventDefault();
|
|
41
|
-
let t = d(e.clipboardData?.getData("text") || "");
|
|
42
|
-
t && (C(t), t.length === l && M(t));
|
|
43
|
-
};
|
|
44
|
-
t(() => {
|
|
45
|
-
if (p || f <= 0) {
|
|
46
|
-
k.current = !1;
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (!k.current) {
|
|
50
|
-
k.current = !0, j(x("otp.timerStarted", { time: String(f) }));
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
f === 10 ? j(x("otp.timerTenSeconds")) : f === 5 && j(x("otp.timerFiveSeconds"));
|
|
54
|
-
}, [
|
|
55
|
-
f,
|
|
56
|
-
p,
|
|
57
|
-
j,
|
|
58
|
-
x
|
|
59
|
-
]);
|
|
60
|
-
let F = () => {
|
|
61
|
-
if (!p && f > 0) return /* @__PURE__ */ a("div", {
|
|
62
|
-
class: "IncodeOtpInputActions",
|
|
63
|
-
children: /* @__PURE__ */ a("p", {
|
|
64
|
-
class: "IncodeOtpInputTimerText",
|
|
65
|
-
"data-testid": "otp-timer",
|
|
66
|
-
children: x("otp.resendCountdown", { time: u(f) })
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
let e = () => {
|
|
70
|
-
E.current = null, C(""), g();
|
|
71
|
-
}, t = () => {
|
|
72
|
-
E.current = null, C(""), _();
|
|
73
|
-
};
|
|
74
|
-
return /* @__PURE__ */ a("div", {
|
|
75
|
-
class: "IncodeOtpInputActions",
|
|
76
|
-
children: /* @__PURE__ */ a("p", {
|
|
77
|
-
class: `IncodeOtpInputResendText ${y ? "IncodeOtpInputResendTextDisabled" : ""}`,
|
|
78
|
-
"data-testid": "otp-resend-section",
|
|
79
|
-
children: [
|
|
80
|
-
x("otp.didYouNotGetIt"),
|
|
81
|
-
/* @__PURE__ */ a("button", {
|
|
82
|
-
type: "button",
|
|
83
|
-
class: "IncodeOtpInputLink",
|
|
84
|
-
onClick: e,
|
|
85
|
-
disabled: y || !p,
|
|
86
|
-
"data-testid": "otp-resend",
|
|
87
|
-
children: x("otp.resendCode")
|
|
88
|
-
}),
|
|
89
|
-
` ${x("otp.or")} `,
|
|
90
|
-
/* @__PURE__ */ a("button", {
|
|
91
|
-
type: "button",
|
|
92
|
-
class: "IncodeOtpInputLink",
|
|
93
|
-
onClick: t,
|
|
94
|
-
disabled: y,
|
|
95
|
-
"data-testid": "otp-back",
|
|
96
|
-
children: x(v)
|
|
97
|
-
})
|
|
98
|
-
]
|
|
99
|
-
})
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
return /* @__PURE__ */ a("div", {
|
|
103
|
-
class: "IncodeOtpInput IncodeOtpInputComposed",
|
|
104
|
-
children: [
|
|
105
|
-
/* @__PURE__ */ a("div", {
|
|
106
|
-
ref: D,
|
|
107
|
-
class: "IncodeSrOnly",
|
|
108
|
-
"aria-live": "polite",
|
|
109
|
-
"aria-atomic": "true"
|
|
110
|
-
}),
|
|
111
|
-
/* @__PURE__ */ a(c, {
|
|
112
|
-
id: "otp-code",
|
|
113
|
-
type: "text",
|
|
114
|
-
inputMode: "text",
|
|
115
|
-
ref: w,
|
|
116
|
-
maxLength: l,
|
|
117
|
-
value: S,
|
|
118
|
-
error: m,
|
|
119
|
-
onInput: N,
|
|
120
|
-
onPaste: P,
|
|
121
|
-
disabled: y || b,
|
|
122
|
-
required: !0,
|
|
123
|
-
autocomplete: "one-time-code",
|
|
124
|
-
"data-testid": "otp-input-0",
|
|
125
|
-
"aria-label": x("otp.verificationCode"),
|
|
126
|
-
class: "IncodeOtpSingleInput",
|
|
127
|
-
showErrorIcon: !0
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ a(o, {}),
|
|
130
|
-
/* @__PURE__ */ a(s, {
|
|
131
|
-
onClick: () => {
|
|
132
|
-
M(S);
|
|
133
|
-
},
|
|
134
|
-
disabled: S.length < l || b,
|
|
135
|
-
isLoading: b,
|
|
136
|
-
"data-testid": "otp-submit",
|
|
137
|
-
children: x("common.continue")
|
|
138
|
-
}),
|
|
139
|
-
/* @__PURE__ */ a(o, { size: 12 }),
|
|
140
|
-
F()
|
|
141
|
-
]
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
//#endregion
|
|
145
|
-
export { f as t };
|
package/dist/page-C1yT4DLb.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { S as e, _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { r as i } from "./loadingIcon-BN5YRQUb.js";
|
|
3
|
-
import { t as a } from "./incode-logo-DX016usY.js";
|
|
4
|
-
import { n as o, t as s } from "./verifiedByIncode-ChZBpqNy.js";
|
|
5
|
-
//#region src/shared/page/page.tsx
|
|
6
|
-
var c = ({ title: c, titleId: l, subtitle: u, titleTopSlot: d, className: f, logo: p, children: m, hideHeader: h, hideFooterBranding: g, "data-testid": _, "data-permission-status": v }) => {
|
|
7
|
-
let y = n(null);
|
|
8
|
-
t(() => {
|
|
9
|
-
y.current?.focus();
|
|
10
|
-
}, []);
|
|
11
|
-
let b = o({
|
|
12
|
-
hideHeader: h,
|
|
13
|
-
hideFooterBranding: g,
|
|
14
|
-
logo: p,
|
|
15
|
-
defaultLogoSrc: a
|
|
16
|
-
}), x = c || u || d;
|
|
17
|
-
return /* @__PURE__ */ r("div", {
|
|
18
|
-
class: `IncodePageContainer ${f ?? ""}`,
|
|
19
|
-
"data-testid": _,
|
|
20
|
-
"data-permission-status": v,
|
|
21
|
-
children: /* @__PURE__ */ r("main", {
|
|
22
|
-
class: "IncodePageInner",
|
|
23
|
-
children: [
|
|
24
|
-
!b.hideHeader && /* @__PURE__ */ r("header", {
|
|
25
|
-
class: "IncodePageHeader",
|
|
26
|
-
children: /* @__PURE__ */ r("img", {
|
|
27
|
-
src: b.logoSrc,
|
|
28
|
-
height: b.logoHeightPx,
|
|
29
|
-
class: "IncodePageLogo",
|
|
30
|
-
"aria-hidden": "true"
|
|
31
|
-
})
|
|
32
|
-
}),
|
|
33
|
-
x ? /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ r(i, { size: b.hideHeader ? 40 : 24 }), /* @__PURE__ */ r("div", {
|
|
34
|
-
class: "IncodePageTitleContainer",
|
|
35
|
-
children: [
|
|
36
|
-
d ? /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ r("div", {
|
|
37
|
-
class: "IncodePageTitleTopSlot",
|
|
38
|
-
children: d
|
|
39
|
-
}), /* @__PURE__ */ r(i, { size: 12 })] }) : null,
|
|
40
|
-
c ? /* @__PURE__ */ r("h2", {
|
|
41
|
-
ref: y,
|
|
42
|
-
id: l,
|
|
43
|
-
class: "IncodePageTitle",
|
|
44
|
-
tabIndex: -1,
|
|
45
|
-
children: c
|
|
46
|
-
}) : null,
|
|
47
|
-
u ? /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ r(i, { size: 12 }), /* @__PURE__ */ r("p", {
|
|
48
|
-
class: "IncodePageSubtitle",
|
|
49
|
-
children: u
|
|
50
|
-
})] }) : null
|
|
51
|
-
]
|
|
52
|
-
})] }) : null,
|
|
53
|
-
/* @__PURE__ */ r("div", {
|
|
54
|
-
class: "IncodePageContent",
|
|
55
|
-
children: m
|
|
56
|
-
}),
|
|
57
|
-
b.hideFooterBranding ? null : /* @__PURE__ */ r("div", {
|
|
58
|
-
class: "IncodePageFooter",
|
|
59
|
-
children: /* @__PURE__ */ r("div", {
|
|
60
|
-
class: "IncodePageFooterInner",
|
|
61
|
-
children: /* @__PURE__ */ r(s, {})
|
|
62
|
-
})
|
|
63
|
-
})
|
|
64
|
-
]
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
//#endregion
|
|
69
|
-
export { c as t };
|