@incodetech/web 2.0.0-rc.0 → 2.0.0
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/package.json +3 -3
- package/dist/ae-signature/ae-signature.es.js +0 -15
- package/dist/ae-signature/styles.css +0 -348
- package/dist/ae-signature/styles2.css +0 -107
- package/dist/aligndevicelottie-DoV8xKjh.js +0 -12757
- package/dist/antifraud/antifraud.es.js +0 -18
- package/dist/antifraud/styles.css +0 -2
- package/dist/authentication/authentication.es.js +0 -29
- package/dist/autoFocusTitle-QexamZ4i.js +0 -16
- package/dist/back-horizontal-hint-B8Brxh3U.js +0 -137
- package/dist/back-tutorial-1NOQobGO.js +0 -14585
- package/dist/back-vertical-hint-BBo36dxn.js +0 -128
- package/dist/backdevicelottie-C_ceuqY7.js +0 -16678
- package/dist/base.css +0 -5818
- 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/consent/consent.es.js +0 -90
- package/dist/consent/styles.css +0 -116
- package/dist/countrySelector-CE-JgIsv.js +0 -58
- package/dist/cpf-ocr/styles.css +0 -45
- package/dist/cpfOcr-D_tbwbvh.js +0 -78
- package/dist/cross-document-data-match/cross-document-data-match.es.js +0 -18
- package/dist/curp-validation/curp-validation.es.js +0 -279
- package/dist/curp-validation/styles.css +0 -82
- package/dist/custom-fields/styles.css +0 -22
- 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/document-capture/styles.css +0 -367
- package/dist/documentCapture-xX-JT7ZY.js +0 -763
- package/dist/dropdownComposed-DFRBG22E.js +0 -284
- package/dist/dropdownComposed-DwTzc2YU.js +0 -1
- package/dist/dynamic-forms/styles.css +0 -36
- package/dist/dynamicForms-CJP1Ia6Q.js +0 -262
- package/dist/ekyb/ekyb.es.js +0 -2
- package/dist/ekyb/styles.css +0 -137
- package/dist/ekybModule-BSs7mndb.js +0 -280
- package/dist/ekybModule-D9M3E2Gm.js +0 -2
- package/dist/ekyc/ekyc.es.js +0 -2
- package/dist/ekyc/styles.css +0 -106
- package/dist/ekycModule-CU9pt5YN.js +0 -246
- package/dist/ekycModule-CZw9cLno.js +0 -2
- package/dist/electronic-signature/electronic-signature.es.js +0 -2
- package/dist/electronic-signature-COYXjGdd.js +0 -410
- package/dist/email/email.es.js +0 -87
- package/dist/email/styles.css +0 -12
- package/dist/emailInput-DppGf9pv.js +0 -37
- package/dist/expiredId-BnmzE8T3.js +0 -70
- package/dist/extensibility-CzEJfRwo.js +0 -2586
- package/dist/extensibility.es.js +0 -25
- package/dist/face-match/face-match.es.js +0 -2
- package/dist/face-match/styles.css +0 -910
- package/dist/faceMatch-B8j0g0Yo.js +0 -2
- package/dist/faceMatch-BV8UD7tj.js +0 -201
- package/dist/flip-animation-CgwRsEmK.js +0 -6983
- package/dist/flow/flow.es.js +0 -661
- package/dist/flow/styles.css +0 -5205
- package/dist/front-horizontal-hint-DGGGi8e1.js +0 -380
- package/dist/front-vertical-hint-CNr5mE6Q.js +0 -420
- package/dist/frontdevicelottie-Bu6f9fDE.js +0 -17302
- package/dist/geolocation/geolocation.es.js +0 -857
- package/dist/geolocation/styles.css +0 -158
- package/dist/glaredevicelottie-B10axYs_.js +0 -14466
- package/dist/governmentValidation/governmentValidation.es.js +0 -98
- package/dist/governmentValidation/styles.css +0 -58
- 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/id.es.js +0 -832
- package/dist/id/styles.css +0 -1287
- package/dist/id-laser-h-mBAzHVOK.js +0 -467
- package/dist/id-laser-v-CrFg4bcJ.js +0 -483
- package/dist/id-ocr/styles.css +0 -46
- package/dist/id-tutorial-BCr42Pnn.js +0 -13153
- package/dist/id-verification/id-verification.es.js +0 -20
- package/dist/idOcr-CCjfWQvH.js +0 -94
- package/dist/identity-reuse/identity-reuse.es.js +0 -198
- package/dist/identity-reuse/styles.css +0 -163
- package/dist/incode-logo-DX016usY.js +0 -4
- package/dist/incodeComponent-C1o4M0ZK.js +0 -50
- package/dist/incodeModule-BqCjVgEI.js +0 -18
- package/dist/index.es.js +0 -16
- 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/passport-horizontal-hint-Bgquwtac.js +0 -293
- package/dist/passport-tutorial-DwRwtPVX.js +0 -11689
- package/dist/passport-vertical-hint-BT1D5BrW.js +0 -267
- package/dist/pdf-BurGZ08w.js +0 -14967
- package/dist/pdfViewer-BGBNL1Ea.js +0 -63
- package/dist/phone/phone.es.js +0 -98
- package/dist/phone/styles.css +0 -11
- package/dist/phoneInputComposed-bvWhGLFZ.js +0 -11206
- package/dist/processing-G_y3o32b.js +0 -6
- package/dist/qe-signature/qe-signature.es.js +0 -15
- package/dist/radioGroupComposed-BbmvxmD2.js +0 -177
- package/dist/redirect-to-mobile/styles.css +0 -588
- 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/selfie/selfie.es.js +0 -43
- package/dist/selfie/styles.css +0 -706
- package/dist/selfieTutorial-BgrlUMXP.js +0 -2677
- package/dist/signature/signature.es.js +0 -546
- 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/themes/dark.css +0 -1347
- package/dist/themes/light.css +0 -1225
- package/dist/transitionSpinner-PIEPU2Vx.js +0 -17
- package/dist/tutorial-9vHAHvMK.js +0 -2587
- package/dist/types/ae-signature.d.ts +0 -40
- package/dist/types/antifraud.d.ts +0 -40
- package/dist/types/authentication.d.ts +0 -45
- package/dist/types/base.d.ts +0 -1
- package/dist/types/consent.d.ts +0 -41
- package/dist/types/cpf-ocr/styles.d.ts +0 -1
- package/dist/types/cross-document-data-match.d.ts +0 -34
- package/dist/types/curp-validation.d.ts +0 -40
- package/dist/types/custom-fields/styles.d.ts +0 -1
- package/dist/types/dark.d.ts +0 -1
- package/dist/types/document-capture/styles.d.ts +0 -1
- package/dist/types/dynamic-forms/styles.d.ts +0 -1
- package/dist/types/ekyb.d.ts +0 -34
- package/dist/types/ekyc.d.ts +0 -34
- package/dist/types/electronic-signature.d.ts +0 -43
- package/dist/types/email.d.ts +0 -67
- package/dist/types/extensibility.d.ts +0 -981
- package/dist/types/face-match.d.ts +0 -59
- package/dist/types/flow.d.ts +0 -137
- package/dist/types/geolocation.d.ts +0 -41
- package/dist/types/governmentValidation.d.ts +0 -34
- package/dist/types/id-ocr/styles.d.ts +0 -1
- package/dist/types/id-verification.d.ts +0 -40
- package/dist/types/id.d.ts +0 -41
- package/dist/types/identity-reuse.d.ts +0 -43
- package/dist/types/index.d.ts +0 -32
- package/dist/types/light.d.ts +0 -1
- package/dist/types/mandatory-consent/styles.d.ts +0 -1
- package/dist/types/phone.d.ts +0 -68
- package/dist/types/qe-signature.d.ts +0 -40
- package/dist/types/redirect-to-mobile/styles.d.ts +0 -1
- package/dist/types/selfie.d.ts +0 -41
- package/dist/types/signature.d.ts +0 -40
- package/dist/types/styles.d.ts +0 -1
- package/dist/types/themes/dark.d.ts +0 -1
- package/dist/types/themes/light.d.ts +0 -1
- package/dist/types/watchlist-for-business/styles.d.ts +0 -1
- package/dist/types/watchlist.d.ts +0 -40
- package/dist/types/workflow.d.ts +0 -91
- 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/watchlist/watchlist.es.js +0 -33
- package/dist/watchlist-for-business/styles.css +0 -18
- package/dist/watchlistForBusiness-BcSNtHCV.js +0 -77
- package/dist/workflow/styles.css +0 -4612
- package/dist/workflow/workflow.es.js +0 -244
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { f as e, l as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
//#region src/shared/spacer/spacer.tsx
|
|
3
|
-
var r = new Set([
|
|
4
|
-
0,
|
|
5
|
-
2,
|
|
6
|
-
4,
|
|
7
|
-
8,
|
|
8
|
-
12,
|
|
9
|
-
16,
|
|
10
|
-
20,
|
|
11
|
-
24,
|
|
12
|
-
32,
|
|
13
|
-
40,
|
|
14
|
-
48,
|
|
15
|
-
64,
|
|
16
|
-
80,
|
|
17
|
-
96,
|
|
18
|
-
104,
|
|
19
|
-
120,
|
|
20
|
-
200
|
|
21
|
-
]), i = (e, t) => t === "horizontal" ? {
|
|
22
|
-
0: "IncodeSpacerHorizontal0",
|
|
23
|
-
2: "IncodeSpacerHorizontal2",
|
|
24
|
-
4: "IncodeSpacerHorizontal4",
|
|
25
|
-
8: "IncodeSpacerHorizontal8",
|
|
26
|
-
12: "IncodeSpacerHorizontal12",
|
|
27
|
-
16: "IncodeSpacerHorizontal16",
|
|
28
|
-
20: "IncodeSpacerHorizontal20",
|
|
29
|
-
24: "IncodeSpacerHorizontal24",
|
|
30
|
-
32: "IncodeSpacerHorizontal32",
|
|
31
|
-
40: "IncodeSpacerHorizontal40",
|
|
32
|
-
48: "IncodeSpacerHorizontal48",
|
|
33
|
-
64: "IncodeSpacerHorizontal64",
|
|
34
|
-
80: "IncodeSpacerHorizontal80",
|
|
35
|
-
96: "IncodeSpacerHorizontal96",
|
|
36
|
-
104: "IncodeSpacerHorizontal104",
|
|
37
|
-
120: "IncodeSpacerHorizontal120",
|
|
38
|
-
200: "IncodeSpacerHorizontal200"
|
|
39
|
-
}[e] : {
|
|
40
|
-
0: "IncodeSpacerVertical0",
|
|
41
|
-
2: "IncodeSpacerVertical2",
|
|
42
|
-
4: "IncodeSpacerVertical4",
|
|
43
|
-
8: "IncodeSpacerVertical8",
|
|
44
|
-
12: "IncodeSpacerVertical12",
|
|
45
|
-
16: "IncodeSpacerVertical16",
|
|
46
|
-
20: "IncodeSpacerVertical20",
|
|
47
|
-
24: "IncodeSpacerVertical24",
|
|
48
|
-
32: "IncodeSpacerVertical32",
|
|
49
|
-
40: "IncodeSpacerVertical40",
|
|
50
|
-
48: "IncodeSpacerVertical48",
|
|
51
|
-
64: "IncodeSpacerVertical64",
|
|
52
|
-
80: "IncodeSpacerVertical80",
|
|
53
|
-
96: "IncodeSpacerVertical96",
|
|
54
|
-
104: "IncodeSpacerVertical104",
|
|
55
|
-
120: "IncodeSpacerVertical120",
|
|
56
|
-
200: "IncodeSpacerVertical200"
|
|
57
|
-
}[e], a = ({ size: e, className: t, direction: a = "vertical" }) => e === void 0 ? /* @__PURE__ */ n("div", { class: `IncodeSpacerFlex ${t || ""}` }) : (a === "horizontal" || a === "vertical") && typeof e == "number" && r.has(e) ? /* @__PURE__ */ n("div", { class: `${i(e, a)} ${t || ""}` }) : /* @__PURE__ */ n("div", { class: `${t || ""}` }), o = (...e) => {
|
|
58
|
-
let t = [];
|
|
59
|
-
for (let n of e) if (n) {
|
|
60
|
-
if (typeof n == "string") t.push(n);
|
|
61
|
-
else if (typeof n == "object") for (let [e, r] of Object.entries(n)) r && t.push(e);
|
|
62
|
-
}
|
|
63
|
-
return t.join(" ");
|
|
64
|
-
}, s = 1e3, c = ({ size: e, className: t }) => /* @__PURE__ */ n("svg", {
|
|
65
|
-
width: e,
|
|
66
|
-
height: e,
|
|
67
|
-
viewBox: "0 0 31 31",
|
|
68
|
-
fill: "none",
|
|
69
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
70
|
-
class: o("IncodeLoadingIconPrimaryIcon", t),
|
|
71
|
-
"aria-hidden": "true",
|
|
72
|
-
children: /* @__PURE__ */ n("path", { d: "M28.1614 15.2837C29.453 15.2837 30.5186 14.2304 30.3181 12.9545C30.1344 11.7862 29.8129 10.6411 29.3582 9.54344C28.6044 7.72356 27.4995 6.06997 26.1066 4.67709C24.7137 3.28421 23.0601 2.17932 21.2403 1.4255C20.1426 0.970841 18.9974 0.649265 17.8292 0.46563C16.5533 0.265073 15.5 1.33073 15.5 2.62232C15.5 3.91391 16.5601 4.93461 17.8187 5.22473C18.3748 5.35291 18.9206 5.52729 19.4503 5.74672C20.7028 6.26548 21.8407 7.02585 22.7993 7.98441C23.7578 8.94296 24.5182 10.0809 25.037 11.3333C25.2564 11.8631 25.4308 12.4089 25.559 12.965C25.8491 14.2236 26.8698 15.2837 28.1614 15.2837Z" })
|
|
73
|
-
}), l = ({ size: e, className: t }) => /* @__PURE__ */ n("svg", {
|
|
74
|
-
width: e,
|
|
75
|
-
height: e,
|
|
76
|
-
viewBox: "0 0 31 31",
|
|
77
|
-
fill: "none",
|
|
78
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
79
|
-
class: o("IncodeLoadingIconSecondaryIcon", t),
|
|
80
|
-
"aria-hidden": "true",
|
|
81
|
-
children: [/* @__PURE__ */ n("title", { children: "Spinner Outer part" }), /* @__PURE__ */ n("path", { d: "M30.5 15.2837C30.5 23.568 23.7843 30.2837 15.5 30.2837C7.21573 30.2837 0.5 23.568 0.5 15.2837C0.5 6.99942 7.21573 0.283691 15.5 0.283691C23.7843 0.283691 30.5 6.99942 30.5 15.2837ZM5.17725 15.2837C5.17725 20.9848 9.7989 25.6064 15.5 25.6064C21.2011 25.6064 25.8227 20.9848 25.8227 15.2837C25.8227 9.5826 21.2011 4.96095 15.5 4.96095C9.7989 4.96095 5.17725 9.5826 5.17725 15.2837Z" })]
|
|
82
|
-
}), u = ({ size: r = 30, secondaryClass: i, primaryClass: a }) => {
|
|
83
|
-
let o = t(null);
|
|
84
|
-
return e(() => {
|
|
85
|
-
if (!o.current) return;
|
|
86
|
-
let e = performance.now() % s;
|
|
87
|
-
o.current.style.animationDelay = `-${e}ms`;
|
|
88
|
-
}, []), /* @__PURE__ */ n("div", {
|
|
89
|
-
ref: o,
|
|
90
|
-
class: "IncodeLoadingIcon",
|
|
91
|
-
children: [/* @__PURE__ */ n(l, {
|
|
92
|
-
size: r,
|
|
93
|
-
className: i
|
|
94
|
-
}), /* @__PURE__ */ n("div", {
|
|
95
|
-
class: "IncodeLoadingIconPrimary",
|
|
96
|
-
children: /* @__PURE__ */ n(c, {
|
|
97
|
-
size: r,
|
|
98
|
-
className: a
|
|
99
|
-
})
|
|
100
|
-
})]
|
|
101
|
-
});
|
|
102
|
-
};
|
|
103
|
-
//#endregion
|
|
104
|
-
export { o as n, a as r, u as t };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-9s4OSqwi.js";
|
|
2
|
-
import { _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as i } from "./hooks-BVnGysT7.js";
|
|
4
|
-
import { t as a } from "./incodeComponent-C1o4M0ZK.js";
|
|
5
|
-
import { t as o } from "./page-C1yT4DLb.js";
|
|
6
|
-
import { n as s } from "./typography-CxjaknHN.js";
|
|
7
|
-
import { t as c } from "./transitionSpinner-PIEPU2Vx.js";
|
|
8
|
-
import { t as l } from "./button-DcCUEn2n.js";
|
|
9
|
-
import { t as u } from "./checkbox-Cl57ltq_.js";
|
|
10
|
-
import { t as d } from "./incodeModule-BqCjVgEI.js";
|
|
11
|
-
import { t as f } from "./richText-DbJ5sl2n.js";
|
|
12
|
-
import { createMandatoryConsentManager as p } from "@incodetech/core/mandatory-consent";
|
|
13
|
-
//#region src/modules/mandatory-consent/mandatoryConsent.tsx
|
|
14
|
-
var m = ({ config: a, manager: d, onFinish: m, onError: h }) => {
|
|
15
|
-
let { t: g } = e(), _ = n(null), [v, y] = i(() => d ?? p({ config: a }), { manageLifecycle: !d });
|
|
16
|
-
if (t(() => {
|
|
17
|
-
v.status === "display" && _.current?.focus();
|
|
18
|
-
}, [v.status]), t(() => {
|
|
19
|
-
if (v.status === "finished") {
|
|
20
|
-
m?.();
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (v.status === "closed") {
|
|
24
|
-
h?.(void 0);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
v.status === "error" && h?.(v.error);
|
|
28
|
-
}, [
|
|
29
|
-
v,
|
|
30
|
-
m,
|
|
31
|
-
h
|
|
32
|
-
]), v.status === "finished" || v.status === "closed" || v.status === "error") return null;
|
|
33
|
-
if (v.status === "idle" || v.status === "loading") return /* @__PURE__ */ r(c, { hideText: !0 });
|
|
34
|
-
let b = v.text.split("\n").filter((e) => e.trim().length > 0).join(" ");
|
|
35
|
-
return /* @__PURE__ */ r(o, {
|
|
36
|
-
className: "IncodeConsentPage",
|
|
37
|
-
hideFooterBranding: !0,
|
|
38
|
-
hideHeader: !0,
|
|
39
|
-
children: /* @__PURE__ */ r("div", {
|
|
40
|
-
class: "IncodeConsentContent",
|
|
41
|
-
children: [/* @__PURE__ */ r("div", {
|
|
42
|
-
class: "IncodeConsentBody",
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ r(s, {
|
|
45
|
-
ref: _,
|
|
46
|
-
className: "IncodeConsentTitle",
|
|
47
|
-
tabIndex: -1,
|
|
48
|
-
children: v.title
|
|
49
|
-
}),
|
|
50
|
-
/* @__PURE__ */ r("p", {
|
|
51
|
-
class: "IncodeConsentSubtitle",
|
|
52
|
-
children: g("biometricConsent.subtitle")
|
|
53
|
-
}),
|
|
54
|
-
/* @__PURE__ */ r("div", {
|
|
55
|
-
class: "IncodeConsentCheckboxList",
|
|
56
|
-
children: /* @__PURE__ */ r(u, {
|
|
57
|
-
id: "mandatory-consent-checkbox",
|
|
58
|
-
class: "IncodeConsentCheckbox",
|
|
59
|
-
checked: v.isSigned,
|
|
60
|
-
required: !0,
|
|
61
|
-
onChange: () => y.toggle(),
|
|
62
|
-
label: /* @__PURE__ */ r("span", {
|
|
63
|
-
class: "IncodeConsentCheckboxLabel",
|
|
64
|
-
onClick: (e) => {
|
|
65
|
-
e.target.closest("a") && e.stopPropagation();
|
|
66
|
-
},
|
|
67
|
-
children: /* @__PURE__ */ r(f, {
|
|
68
|
-
content: b,
|
|
69
|
-
class: "IncodeRichText"
|
|
70
|
-
})
|
|
71
|
-
})
|
|
72
|
-
})
|
|
73
|
-
})
|
|
74
|
-
]
|
|
75
|
-
}), /* @__PURE__ */ r("div", {
|
|
76
|
-
class: "IncodeConsentActions",
|
|
77
|
-
children: [/* @__PURE__ */ r(l, {
|
|
78
|
-
"data-testid": "mandatory-consent-submit",
|
|
79
|
-
class: "IncodeConsentButton",
|
|
80
|
-
onClick: () => y.submit(),
|
|
81
|
-
disabled: !v.canSubmit,
|
|
82
|
-
isLoading: v.status === "submitting",
|
|
83
|
-
children: g("biometricConsent.button.continue")
|
|
84
|
-
}), /* @__PURE__ */ r(l, {
|
|
85
|
-
variant: "link",
|
|
86
|
-
onClick: () => y.cancel(),
|
|
87
|
-
children: g("biometricConsent.button.cancel")
|
|
88
|
-
})]
|
|
89
|
-
})]
|
|
90
|
-
})
|
|
91
|
-
}, "ready");
|
|
92
|
-
}, h = ({ config: e, manager: t, onFinish: n, onError: i }) => /* @__PURE__ */ r(a, { children: e ? /* @__PURE__ */ r(m, {
|
|
93
|
-
config: e,
|
|
94
|
-
manager: t,
|
|
95
|
-
onFinish: n,
|
|
96
|
-
onError: i
|
|
97
|
-
}) : null });
|
|
98
|
-
d(h, "incode-mandatory-consent");
|
|
99
|
-
//#endregion
|
|
100
|
-
export { h as MandatoryConsent };
|
package/dist/modal-NMxsQHAO.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { C as e, b as t, d as n, f as r, g as i, h as a, l as o, p as s, r as c, v as l, x as u, y as d } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as f } from "./loadingIcon-BN5YRQUb.js";
|
|
3
|
-
import { o as p } from "./icons-Cc7zwchP.js";
|
|
4
|
-
import { a as m, i as h, n as g, o as _, r as v, t as y } from "./modal.hooks-CAjcIFZK.js";
|
|
5
|
-
//#region src/shared/modal/modal.tsx
|
|
6
|
-
var b = u(null);
|
|
7
|
-
function x() {
|
|
8
|
-
let e = i(b);
|
|
9
|
-
if (!e) throw Error("Modal compound components must be used within Modal.Root");
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
function S({ open: e, children: t, onOpenChange: r, dismissible: i = !0, portalContainer: u, class: d, hasBackdrop: p = !0, manageInitialFocus: y = !0, returnFocusRef: x }) {
|
|
13
|
-
let S = m(e, u ?? void 0), [C, w] = s(!1), T = o(null), E = a(() => {
|
|
14
|
-
i && r?.(!1);
|
|
15
|
-
}, [i, r]), D = n(() => ({
|
|
16
|
-
setHasDescription: w,
|
|
17
|
-
dismissible: i,
|
|
18
|
-
requestClose: E
|
|
19
|
-
}), [i, E]), O = e && !!S;
|
|
20
|
-
return g(e), v(e, i, E), h(O, T, y, x), _(O, T), !S || !e ? null : c(/* @__PURE__ */ l(b.Provider, {
|
|
21
|
-
value: D,
|
|
22
|
-
children: /* @__PURE__ */ l("div", {
|
|
23
|
-
class: f("IncodeModalRoot", d),
|
|
24
|
-
"data-incode-modal": "",
|
|
25
|
-
children: [p && /* @__PURE__ */ l("div", {
|
|
26
|
-
class: "IncodeModalBackdrop",
|
|
27
|
-
"aria-hidden": "true",
|
|
28
|
-
onMouseDown: () => {
|
|
29
|
-
E();
|
|
30
|
-
}
|
|
31
|
-
}), /* @__PURE__ */ l("div", {
|
|
32
|
-
ref: T,
|
|
33
|
-
class: "IncodeModalDialog",
|
|
34
|
-
role: "dialog",
|
|
35
|
-
"aria-modal": "true",
|
|
36
|
-
"aria-labelledby": "incode-modal-title",
|
|
37
|
-
"aria-describedby": C ? "incode-modal-description" : void 0,
|
|
38
|
-
tabIndex: -1,
|
|
39
|
-
onMouseDown: (e) => {
|
|
40
|
-
e.stopPropagation();
|
|
41
|
-
},
|
|
42
|
-
children: t
|
|
43
|
-
})]
|
|
44
|
-
})
|
|
45
|
-
}), S);
|
|
46
|
-
}
|
|
47
|
-
function C({ children: e, class: t }) {
|
|
48
|
-
return /* @__PURE__ */ l("div", {
|
|
49
|
-
class: f("IncodeModalContent", t),
|
|
50
|
-
children: e
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
function w({ "aria-label": e = "Close", title: t = "Close", class: n, onClick: r }) {
|
|
54
|
-
let { dismissible: i, requestClose: a } = x();
|
|
55
|
-
if (!i) return null;
|
|
56
|
-
let o = async () => {
|
|
57
|
-
r && await r(), a();
|
|
58
|
-
};
|
|
59
|
-
return /* @__PURE__ */ l("button", {
|
|
60
|
-
type: "button",
|
|
61
|
-
class: f("IncodeModalClose", n),
|
|
62
|
-
"aria-label": e,
|
|
63
|
-
title: t,
|
|
64
|
-
onClick: o,
|
|
65
|
-
children: /* @__PURE__ */ l(p, {
|
|
66
|
-
height: 32,
|
|
67
|
-
width: 32,
|
|
68
|
-
fillColor: "var(--icon-neutral-300)"
|
|
69
|
-
})
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function T({ children: e, class: t }) {
|
|
73
|
-
return /* @__PURE__ */ l("div", {
|
|
74
|
-
class: f("IncodeModalIcon", t),
|
|
75
|
-
children: e
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function E({ children: e, align: t = "center" }) {
|
|
79
|
-
let n = {
|
|
80
|
-
center: "IncodeModalTitleSectionCenter",
|
|
81
|
-
left: "IncodeModalTitleSectionLeft"
|
|
82
|
-
}[t];
|
|
83
|
-
return /* @__PURE__ */ l("div", {
|
|
84
|
-
class: n,
|
|
85
|
-
children: e
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function D({ children: e, ref: t, class: n }) {
|
|
89
|
-
return /* @__PURE__ */ l("h2", {
|
|
90
|
-
id: "incode-modal-title",
|
|
91
|
-
ref: t,
|
|
92
|
-
className: f("IncodeModalTitle", n),
|
|
93
|
-
children: e
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
function O({ children: e, class: t }) {
|
|
97
|
-
let { setHasDescription: n } = x();
|
|
98
|
-
return r(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ l("p", {
|
|
99
|
-
id: "incode-modal-description",
|
|
100
|
-
className: f("IncodeModalSubtitle", t),
|
|
101
|
-
children: e
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function k(t) {
|
|
105
|
-
return e(t) && t.props != null && typeof t.props == "object" && "autoFocus" in t.props;
|
|
106
|
-
}
|
|
107
|
-
function A({ children: n, class: r, orientation: i = "vertical" }) {
|
|
108
|
-
let a = i === "vertical" ? "IncodeModalActionsVertical" : "IncodeModalActionsHorizontal", o = d(n), s = [];
|
|
109
|
-
for (let i = 0; i < o.length; i++) {
|
|
110
|
-
let c = o[i];
|
|
111
|
-
if (k(c)) return /* @__PURE__ */ l("div", {
|
|
112
|
-
class: f(a, r),
|
|
113
|
-
role: "group",
|
|
114
|
-
children: n
|
|
115
|
-
});
|
|
116
|
-
s.push(e(c) && i === 0 ? t(c, { [y]: "" }) : c);
|
|
117
|
-
}
|
|
118
|
-
return /* @__PURE__ */ l("div", {
|
|
119
|
-
class: f(a, r),
|
|
120
|
-
role: "group",
|
|
121
|
-
children: s
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
var j = {
|
|
125
|
-
Root: S,
|
|
126
|
-
Content: C,
|
|
127
|
-
Close: w,
|
|
128
|
-
Icon: T,
|
|
129
|
-
TitleSection: E,
|
|
130
|
-
Title: D,
|
|
131
|
-
Subtitle: O,
|
|
132
|
-
Actions: A
|
|
133
|
-
};
|
|
134
|
-
//#endregion
|
|
135
|
-
export { j as t };
|
|
@@ -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 };
|