@incodetech/web 0.0.0-dev-20260331-a4ec4fe → 0.0.0-dev-20260401-620f105
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/{Trans-BSLSJO1_.js → Trans-DiTufE_D.js} +1 -1
- package/dist/{addressAutocomplete-BhUbJEuH.js → addressAutocomplete-BSE71Kua.js} +3 -3
- package/dist/authentication/authentication.es.js +3 -3
- package/dist/{button-B2Ewo0rX.js → button-DXIWeie9.js} +90 -91
- package/dist/{cameraView-CT9-WWcG.js → cameraView-DXT7CWqE.js} +1 -1
- package/dist/{captureFooter-B_3eu8kq.js → captureFooter-CKqO4KY2.js} +2 -2
- package/dist/captureOverlay-Crv6ZBp_.js +399 -0
- package/dist/{checkbox-CXnQVsbJ.js → checkbox-wo8qk7tM.js} +2 -2
- package/dist/{chevronDown-DKyU4xPP.js → chevronDown-BksFjKhp.js} +1 -1
- package/dist/{closeIcon-DjWL_arL.js → closeIcon-5Xq6MCZa.js} +1 -1
- package/dist/consent/consent.es.js +5 -5
- package/dist/curp-validation/curp-validation.es.js +8 -8
- package/dist/{dateInputComposed-DmlHvCmR.js → dateInputComposed-D5kgh_aC.js} +3 -3
- package/dist/{documentCapture-DYsIVkcU.js → documentCapture-DyhxCgpZ.js} +8 -8
- package/dist/{dropdownComposed-DFrqye1c.js → dropdownComposed-CzAsPPqv.js} +4 -4
- package/dist/{ekybModule-Ct3A65tt.js → ekybModule-G2eXzUMi.js} +7 -7
- package/dist/{ekycModule-Hi5yRFs3.js → ekycModule-CT6sxv3k.js} +8 -8
- package/dist/email/email.es.js +11 -11
- package/dist/{errorContent-CqNelsXg.js → errorContent-CnY-Deoi.js} +5 -5
- package/dist/{errorIcon-C-Zd24vb.js → errorIcon-DOuc6ONw.js} +1 -1
- package/dist/extensibility.es.js +26 -26
- package/dist/{faceMatch-BVsE7czZ.js → faceMatch-DPa3pI88.js} +3 -3
- package/dist/{fileIcon-DIVwt0SD.js → fileIcon-DEli4GR_.js} +1 -1
- package/dist/{flipAnimation-B48PXORR.js → flipAnimation-Bq6Yj6PU.js} +13 -13
- package/dist/flow/flow.es.js +11 -11
- package/dist/{formField-CPfeaz8y.js → formField-BoozuV2w.js} +6 -6
- package/dist/geolocation/geolocation.es.js +4 -4
- package/dist/governmentValidation/governmentValidation.es.js +7 -7
- package/dist/id/id.es.js +7 -7
- package/dist/{inputComposed-CJQTXKNA.js → inputComposed-QzDneavl.js} +4 -4
- package/dist/{mandatoryConsent-B2zqptlI.js → mandatoryConsent-fZUmh40x.js} +5 -5
- package/dist/{manualCaptureButton-CUq6VXLb.js → manualCaptureButton-CPZ2xxEI.js} +2 -2
- package/dist/{numberedStep-BPgRIYlh.js → numberedStep-DiiXAKRd.js} +1 -1
- package/dist/{otpInput-CGlYkmvB.js → otpInput-B85heGC5.js} +2 -2
- package/dist/{page-DiscPBzz.js → page-D4OThpFS.js} +1 -1
- package/dist/{permissions-DbPRF91z.js → permissions-BeU3HuVB.js} +8 -8
- package/dist/phone/phone.es.js +5 -5
- package/dist/{phoneInput-TwyIF7PG.js → phoneInput-nmmFFaXI.js} +2 -2
- package/dist/{phoneInputComposed-Dsf9ZDTj.js → phoneInputComposed-FjM87j1t.js} +76 -70
- package/dist/{processing-De8XWnFp.js → processing-Ss26Ad0W.js} +2 -2
- package/dist/{richText-DHl4ibE9.js → richText-Bxe6Ywla.js} +1 -1
- package/dist/selfie/selfie.es.js +4 -4
- package/dist/signature/signature.es.js +4 -4
- package/dist/{spinner-DfUoOZN4.js → spinner-CLwSl2tJ.js} +2 -2
- package/dist/{successIcon-DyHNp_UT.js → successIcon-BZphSsQr.js} +1 -1
- package/dist/{tutorial-BnO6iyLI.js → tutorial-BcX5EaL9.js} +8 -8
- package/dist/{typography-zMrvftfB.js → typography-CBPoLoAP.js} +1 -1
- package/dist/{warningIcon-MsE5PaSQ.js → warningIcon-xqaHPxjF.js} +1 -1
- package/package.json +2 -2
- package/dist/captureOverlay-rwQkQuBD.js +0 -390
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { u as t, c as T, b as D, S as W } from "./button-DXIWeie9.js";
|
|
2
|
+
import { D as w, y as h, d as B, A as C, q as $, k as R, P as _, z as A, T as E } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import { E as M } from "./errorIcon-DOuc6ONw.js";
|
|
4
|
+
import { S as G } from "./successIcon-BZphSsQr.js";
|
|
5
|
+
import "./uiConfig-DmIn-g8M.js";
|
|
6
|
+
import { b as L, a as S, c as V, C as j } from "./captureFooter-CKqO4KY2.js";
|
|
7
|
+
import { L as q } from "./manualCaptureButton-CPZ2xxEI.js";
|
|
8
|
+
const K = w(
|
|
9
|
+
(r, a) => {
|
|
10
|
+
const { class: e, rows: i = 4, ...n } = r;
|
|
11
|
+
return /* @__PURE__ */ t(
|
|
12
|
+
"textarea",
|
|
13
|
+
{
|
|
14
|
+
...n,
|
|
15
|
+
ref: a,
|
|
16
|
+
rows: i,
|
|
17
|
+
class: T("IncodeTextArea", e)
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
), U = w(
|
|
22
|
+
({
|
|
23
|
+
id: r,
|
|
24
|
+
label: a,
|
|
25
|
+
"aria-label": e,
|
|
26
|
+
error: i,
|
|
27
|
+
showErrorIcon: n,
|
|
28
|
+
helper: o,
|
|
29
|
+
showHelperIcon: l,
|
|
30
|
+
required: u,
|
|
31
|
+
rows: p = 4,
|
|
32
|
+
class: f,
|
|
33
|
+
...b
|
|
34
|
+
}, c) => {
|
|
35
|
+
const v = `${r}-helper`, m = `${r}-error`, g = [o ? v : null, i ? m : null].filter(Boolean).join(" ");
|
|
36
|
+
return /* @__PURE__ */ t("div", { class: T("IncodeTextAreaComposed", f), children: [
|
|
37
|
+
a && /* @__PURE__ */ t(
|
|
38
|
+
"label",
|
|
39
|
+
{
|
|
40
|
+
class: "IncodeTextAreaComposedLabel",
|
|
41
|
+
htmlFor: r,
|
|
42
|
+
"data-testid": `${r}-label`,
|
|
43
|
+
children: [
|
|
44
|
+
a,
|
|
45
|
+
u && /* @__PURE__ */ t("span", { class: "IncodeTextAreaComposedRequired", children: " *" })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ t("div", { class: "IncodeTextAreaComposedWrapper", children: /* @__PURE__ */ t(
|
|
50
|
+
K,
|
|
51
|
+
{
|
|
52
|
+
id: r,
|
|
53
|
+
rows: p,
|
|
54
|
+
...b,
|
|
55
|
+
ref: c,
|
|
56
|
+
required: u,
|
|
57
|
+
...!a && e ? { "aria-label": e } : {},
|
|
58
|
+
"aria-describedby": g || void 0,
|
|
59
|
+
"aria-required": u ? "true" : void 0,
|
|
60
|
+
"aria-invalid": i ? "true" : void 0
|
|
61
|
+
}
|
|
62
|
+
) }),
|
|
63
|
+
i && /* @__PURE__ */ t(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
class: "IncodeTextAreaComposedErrorWrapper",
|
|
67
|
+
"data-testid": `${r}-error-wrapper`,
|
|
68
|
+
children: [
|
|
69
|
+
n && /* @__PURE__ */ t("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ t(M, { size: 17 }) }),
|
|
70
|
+
/* @__PURE__ */ t("p", { id: m, class: "IncodeTextAreaComposedError", children: i })
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
o && !i && /* @__PURE__ */ t(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
class: "IncodeTextAreaComposedHelperWrapper",
|
|
78
|
+
"data-testid": `${r}-helper-wrapper`,
|
|
79
|
+
children: [
|
|
80
|
+
l && /* @__PURE__ */ t("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ t(G, { size: 17 }) }),
|
|
81
|
+
/* @__PURE__ */ t("p", { id: v, class: "IncodeTextAreaComposedHelper", children: o })
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] });
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
U.displayName = "TextAreaComposed";
|
|
89
|
+
const I = /* @__PURE__ */ new Map();
|
|
90
|
+
let P = !1;
|
|
91
|
+
const y = {
|
|
92
|
+
blur: () => import("./blurdevicelottie-_BZRug1c.js"),
|
|
93
|
+
glare: () => import("./glaredevicelottie-DLuIStvb.js"),
|
|
94
|
+
align: () => import("./aligndevicelottie-DlQCRPfM.js"),
|
|
95
|
+
front: () => import("./frontdevicelottie-KhKxT5n9.js"),
|
|
96
|
+
back: () => import("./backdevicelottie-B4NgyWmX.js")
|
|
97
|
+
};
|
|
98
|
+
function O(r) {
|
|
99
|
+
P || (P = !0, Promise.all([
|
|
100
|
+
y.blur(),
|
|
101
|
+
y.glare(),
|
|
102
|
+
y.align(),
|
|
103
|
+
y.front(),
|
|
104
|
+
y.back()
|
|
105
|
+
]).then(([a, e, i, n, o]) => {
|
|
106
|
+
I.set("blur", a.default), I.set("glare", e.default), I.set("align", i.default), I.set("front", n.default), I.set("back", o.default), r?.();
|
|
107
|
+
}).catch(() => {
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
function J() {
|
|
111
|
+
O();
|
|
112
|
+
}
|
|
113
|
+
function Q() {
|
|
114
|
+
h(() => {
|
|
115
|
+
J();
|
|
116
|
+
}, []);
|
|
117
|
+
}
|
|
118
|
+
function X(r, a) {
|
|
119
|
+
const { t: e } = D(), [, i] = B(0);
|
|
120
|
+
if (h(() => {
|
|
121
|
+
O(() => i((n) => n + 1));
|
|
122
|
+
}, []), r === "blur")
|
|
123
|
+
return {
|
|
124
|
+
title: e("idv2.capture.notifications.blur.title"),
|
|
125
|
+
description: e("idv2.capture.notifications.blur.description"),
|
|
126
|
+
animationData: I.get("blur") ?? null
|
|
127
|
+
};
|
|
128
|
+
if (r === "glare")
|
|
129
|
+
return {
|
|
130
|
+
title: e("idv2.capture.notifications.glare.title"),
|
|
131
|
+
description: e("idv2.capture.notifications.glare.description"),
|
|
132
|
+
animationData: I.get("glare") ?? null
|
|
133
|
+
};
|
|
134
|
+
if (r === "farAway")
|
|
135
|
+
return {
|
|
136
|
+
title: e("idv2.capture.notifications.notAligned.title"),
|
|
137
|
+
description: e("idv2.capture.notifications.notAligned.description"),
|
|
138
|
+
animationData: I.get("align") ?? null
|
|
139
|
+
};
|
|
140
|
+
if (r === "wrongSide") {
|
|
141
|
+
const n = a === "back";
|
|
142
|
+
return {
|
|
143
|
+
title: e(n ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
|
|
144
|
+
description: e(n ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
|
|
145
|
+
animationData: I.get(n ? "back" : "front") ?? null
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
const Y = ({
|
|
151
|
+
detectionStatus: r,
|
|
152
|
+
mode: a,
|
|
153
|
+
isCapturing: e
|
|
154
|
+
}) => {
|
|
155
|
+
const { t: i } = D(), n = X(r, a), o = C(null), l = C({
|
|
156
|
+
message: "",
|
|
157
|
+
at: 0
|
|
158
|
+
}), u = C(r), p = C(!1), f = C(), b = C(), c = r === "detecting" || r === "idNotDetected" || r === "manualCapture", v = r === "manualCapture", m = r === "wrongSide", g = r === "farAway", k = r === "glare", H = r === "blur", s = $((d) => {
|
|
159
|
+
const x = Date.now(), N = l.current;
|
|
160
|
+
if (d === N.message && x - N.at < 200) return;
|
|
161
|
+
l.current = { message: d, at: x };
|
|
162
|
+
const z = o.current;
|
|
163
|
+
z && (clearTimeout(f.current), z.textContent = "", b.current = setTimeout(() => {
|
|
164
|
+
z.textContent = d, f.current = setTimeout(() => {
|
|
165
|
+
z.textContent = "";
|
|
166
|
+
}, 3e3);
|
|
167
|
+
}, 50));
|
|
168
|
+
}, []), F = $(() => i(a === "passport" ? "idv2.capture.fillFramePassport" : a === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [a, i]);
|
|
169
|
+
return h(() => {
|
|
170
|
+
if (v) {
|
|
171
|
+
p.current = !1;
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (p.current || !c) return;
|
|
175
|
+
const d = setTimeout(() => {
|
|
176
|
+
p.current = !0, s(F());
|
|
177
|
+
}, 500);
|
|
178
|
+
return () => clearTimeout(d);
|
|
179
|
+
}, [c, v, s, F]), h(() => {
|
|
180
|
+
const d = u.current;
|
|
181
|
+
u.current = r, d !== "manualCapture" && v && s(i("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
|
|
182
|
+
}, [s, r, v, i]), h(() => {
|
|
183
|
+
if (!e) {
|
|
184
|
+
if (m) {
|
|
185
|
+
const x = a === "front" || a === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
|
|
186
|
+
s(`${i(`${x}.title`)}. ${i(`${x}.description`)}`);
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
if (g) {
|
|
190
|
+
s(`${i("idv2.capture.notifications.notAligned.title")}.`);
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
if (k) {
|
|
194
|
+
s(`${i("idv2.capture.notifications.glare.title")}.`);
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
if (H) {
|
|
198
|
+
s(`${i("idv2.capture.notifications.blur.title")}.`);
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
c && p.current && s(F());
|
|
202
|
+
}
|
|
203
|
+
}, [
|
|
204
|
+
s,
|
|
205
|
+
H,
|
|
206
|
+
e,
|
|
207
|
+
g,
|
|
208
|
+
k,
|
|
209
|
+
c,
|
|
210
|
+
m,
|
|
211
|
+
a,
|
|
212
|
+
i,
|
|
213
|
+
F
|
|
214
|
+
]), h(() => () => {
|
|
215
|
+
clearTimeout(b.current), clearTimeout(f.current);
|
|
216
|
+
}, []), /* @__PURE__ */ t(R, { children: [
|
|
217
|
+
/* @__PURE__ */ t(
|
|
218
|
+
"div",
|
|
219
|
+
{
|
|
220
|
+
ref: o,
|
|
221
|
+
class: "IncodeSrOnly",
|
|
222
|
+
"aria-live": "assertive",
|
|
223
|
+
"aria-atomic": "true"
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
n ? /* @__PURE__ */ t("div", { class: T("IncodeIdCaptureNotification"), "aria-hidden": "true", children: /* @__PURE__ */ t("div", { class: "IncodeIdCaptureNotificationContent", children: [
|
|
227
|
+
/* @__PURE__ */ t("div", { class: T("IncodeIdCaptureNotificationText"), children: [
|
|
228
|
+
/* @__PURE__ */ t("div", { class: "IncodeIdCaptureNotificationTitle", children: n.title }),
|
|
229
|
+
n.description && /* @__PURE__ */ t("div", { class: "IncodeIdCaptureNotificationDescription", children: n.description })
|
|
230
|
+
] }),
|
|
231
|
+
/* @__PURE__ */ t(W, { size: 16, direction: "horizontal" }),
|
|
232
|
+
n.animationData && /* @__PURE__ */ t("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ t(q, { animationData: n.animationData, loop: !0 }) })
|
|
233
|
+
] }) }) : null
|
|
234
|
+
] });
|
|
235
|
+
}, Z = A(
|
|
236
|
+
() => import("./front-horizontal-hint-lRLKd7vY.js")
|
|
237
|
+
), tt = A(
|
|
238
|
+
() => import("./front-vertical-hint-qQoJXRE3.js")
|
|
239
|
+
), rt = A(
|
|
240
|
+
() => import("./back-horizontal-hint-CSlf9KI1.js")
|
|
241
|
+
), et = A(
|
|
242
|
+
() => import("./back-vertical-hint-CNieqiCr.js")
|
|
243
|
+
), it = A(
|
|
244
|
+
() => import("./passport-horizontal-hint-BCtpMp1Y.js")
|
|
245
|
+
), nt = A(
|
|
246
|
+
() => import("./passport-vertical-hint-GaLnzqHP.js")
|
|
247
|
+
), at = {
|
|
248
|
+
"front-horizontal": 348,
|
|
249
|
+
"back-horizontal": 348,
|
|
250
|
+
"passport-horizontal": 342
|
|
251
|
+
}, ot = {
|
|
252
|
+
"front-vertical": 446,
|
|
253
|
+
"back-vertical": 446,
|
|
254
|
+
"passport-vertical": 342
|
|
255
|
+
};
|
|
256
|
+
function ct(r, a, e, i) {
|
|
257
|
+
const n = `${r}-${a}`, o = at[n];
|
|
258
|
+
if (o) return e / o;
|
|
259
|
+
const l = ot[n];
|
|
260
|
+
return l ? i / l : 1;
|
|
261
|
+
}
|
|
262
|
+
const lt = ({ mode: r, orientation: a }) => {
|
|
263
|
+
const e = C(null), [i, n] = B(1);
|
|
264
|
+
h(() => {
|
|
265
|
+
const l = e.current;
|
|
266
|
+
if (!l) return;
|
|
267
|
+
const u = () => {
|
|
268
|
+
n(
|
|
269
|
+
ct(r, a, l.clientWidth, l.clientHeight)
|
|
270
|
+
);
|
|
271
|
+
};
|
|
272
|
+
u();
|
|
273
|
+
const p = new ResizeObserver(u);
|
|
274
|
+
return p.observe(l), () => p.disconnect();
|
|
275
|
+
}, [r, a]);
|
|
276
|
+
const o = () => r === "front" ? a === "horizontal" ? /* @__PURE__ */ t(Z, {}) : /* @__PURE__ */ t(tt, {}) : r === "back" ? a === "horizontal" ? /* @__PURE__ */ t(rt, {}) : /* @__PURE__ */ t(et, {}) : r === "passport" ? a === "horizontal" ? /* @__PURE__ */ t(it, {}) : /* @__PURE__ */ t(nt, {}) : null;
|
|
277
|
+
return /* @__PURE__ */ t(
|
|
278
|
+
"div",
|
|
279
|
+
{
|
|
280
|
+
ref: e,
|
|
281
|
+
class: "IncodeIdHint",
|
|
282
|
+
"aria-hidden": "true",
|
|
283
|
+
role: "presentation",
|
|
284
|
+
children: /* @__PURE__ */ t("div", { class: "IncodeIdHintAnimated", children: /* @__PURE__ */ t(_, { fallback: null, children: /* @__PURE__ */ t("div", { class: "IncodeIdHintSvg", style: { transform: `scale(${i})` }, children: o() }) }) })
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
}, It = w(
|
|
288
|
+
({
|
|
289
|
+
mode: r,
|
|
290
|
+
orientation: a,
|
|
291
|
+
detectionStatus: e,
|
|
292
|
+
counterValue: i,
|
|
293
|
+
isCapturing: n,
|
|
294
|
+
showManualCapture: o,
|
|
295
|
+
onCapture: l,
|
|
296
|
+
onOpenHelp: u,
|
|
297
|
+
helpButtonRef: p,
|
|
298
|
+
captureButtonRef: f
|
|
299
|
+
}, b) => {
|
|
300
|
+
const { t: c } = D();
|
|
301
|
+
Q(), h(() => {
|
|
302
|
+
o && f && f.current?.focus();
|
|
303
|
+
}, [o, f]);
|
|
304
|
+
const v = () => n || e === "capturing" ? "capturing" : e === "blur" || e === "glare" || e === "wrongSide" || e === "farAway" ? "error" : "idle", m = E(() => {
|
|
305
|
+
if (n || e === "capturing")
|
|
306
|
+
return {
|
|
307
|
+
title: c("idv2.capture.takingPhoto"),
|
|
308
|
+
subtitle: c("idv2.capture.dontMove")
|
|
309
|
+
};
|
|
310
|
+
if (e === "detecting" || e === "idNotDetected" || e === "manualCapture") {
|
|
311
|
+
const d = e === "manualCapture";
|
|
312
|
+
return r === "passport" ? {
|
|
313
|
+
title: c("idv2.capture.fillFramePassport"),
|
|
314
|
+
subtitle: d ? "" : c("idv2.capture.v2.autoCapture")
|
|
315
|
+
} : r === "back" ? {
|
|
316
|
+
title: c("idv2.capture.v2.fillFrameBack"),
|
|
317
|
+
subtitle: d ? "" : c("idv2.capture.v2.autoCapture")
|
|
318
|
+
} : {
|
|
319
|
+
title: c("idv2.capture.v2.fillFrameFront"),
|
|
320
|
+
subtitle: d ? "" : c("idv2.capture.v2.autoCapture")
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
return null;
|
|
324
|
+
}, [n, e, r, c]), g = v(), k = r === "passport", H = a !== "vertical" || k, s = H ? "horizontal" : "vertical";
|
|
325
|
+
return /* @__PURE__ */ t(
|
|
326
|
+
j,
|
|
327
|
+
{
|
|
328
|
+
className: T(
|
|
329
|
+
"IncodeCaptureOverlayId",
|
|
330
|
+
!H && "IncodeCaptureOverlayVertical"
|
|
331
|
+
),
|
|
332
|
+
children: [
|
|
333
|
+
/* @__PURE__ */ t("div", { class: "IncodeCaptureTopSection", children: [
|
|
334
|
+
/* @__PURE__ */ t(
|
|
335
|
+
Y,
|
|
336
|
+
{
|
|
337
|
+
detectionStatus: e,
|
|
338
|
+
mode: r,
|
|
339
|
+
isCapturing: n
|
|
340
|
+
}
|
|
341
|
+
),
|
|
342
|
+
/* @__PURE__ */ t(
|
|
343
|
+
L,
|
|
344
|
+
{
|
|
345
|
+
title: m?.title ?? "",
|
|
346
|
+
subtitle: m?.subtitle,
|
|
347
|
+
visible: m !== null,
|
|
348
|
+
titleId: "id-capture-heading"
|
|
349
|
+
}
|
|
350
|
+
)
|
|
351
|
+
] }),
|
|
352
|
+
/* @__PURE__ */ t(
|
|
353
|
+
S,
|
|
354
|
+
{
|
|
355
|
+
ref: b,
|
|
356
|
+
variant: "locked",
|
|
357
|
+
orientation: s,
|
|
358
|
+
frameState: g,
|
|
359
|
+
className: T(k && "IncodeCaptureFramePassport"),
|
|
360
|
+
children: [
|
|
361
|
+
n && i > 0 && /* @__PURE__ */ t("div", { class: "IncodeCaptureCounter", children: i }),
|
|
362
|
+
e === "idNotDetected" && /* @__PURE__ */ t(lt, { mode: r, orientation: a ?? "horizontal" })
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
),
|
|
366
|
+
/* @__PURE__ */ t("div", { class: "IncodeSrOnly", "aria-live": "polite", "aria-atomic": "true", children: n && i > 0 ? i : "" }),
|
|
367
|
+
/* @__PURE__ */ t(
|
|
368
|
+
V,
|
|
369
|
+
{
|
|
370
|
+
onOpenHelp: u,
|
|
371
|
+
onCapture: l,
|
|
372
|
+
isManualCapture: o,
|
|
373
|
+
helpButtonRef: p,
|
|
374
|
+
captureButtonRef: f,
|
|
375
|
+
captureAriaDescribedBy: o ? "manual-capture-tooltip" : void 0,
|
|
376
|
+
children: o ? /* @__PURE__ */ t("div", { class: "IncodeIdManualCaptureTooltipContainer", children: /* @__PURE__ */ t(
|
|
377
|
+
"div",
|
|
378
|
+
{
|
|
379
|
+
id: "manual-capture-tooltip",
|
|
380
|
+
role: "tooltip",
|
|
381
|
+
class: "IncodeIdManualCaptureTooltip",
|
|
382
|
+
children: /* @__PURE__ */ t("ol", { class: "IncodeIdManualCaptureTooltipList", children: [
|
|
383
|
+
/* @__PURE__ */ t("li", { children: c("idv2.commonIssues.firstStep") }),
|
|
384
|
+
/* @__PURE__ */ t("li", { children: c("idv2.commonIssues.secondStep") })
|
|
385
|
+
] })
|
|
386
|
+
}
|
|
387
|
+
) }) : null
|
|
388
|
+
}
|
|
389
|
+
)
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
);
|
|
395
|
+
export {
|
|
396
|
+
It as C,
|
|
397
|
+
K as T,
|
|
398
|
+
U as a
|
|
399
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as e, c as a } from "./button-
|
|
1
|
+
import { u as e, c as a } from "./button-DXIWeie9.js";
|
|
2
2
|
import { D as R, d as S } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
-
import { E as j } from "./errorIcon-
|
|
3
|
+
import { E as j } from "./errorIcon-DOuc6ONw.js";
|
|
4
4
|
const q = ({ size: c = 28 }) => /* @__PURE__ */ e(
|
|
5
5
|
"svg",
|
|
6
6
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as e, I as u, b as C, a as h, B as g } from "../button-
|
|
1
|
+
import { u as e, I as u, b as C, a as h, B as g } from "../button-DXIWeie9.js";
|
|
2
2
|
import { createConsentManager as p } from "@incodetech/core/consent";
|
|
3
3
|
import "../uiConfig-DmIn-g8M.js";
|
|
4
4
|
import "../vendor-preact-BoMmvSgn.js";
|
|
5
5
|
import "@incodetech/core";
|
|
6
|
-
import { C as f } from "../checkbox-
|
|
7
|
-
import { P as d } from "../page-
|
|
8
|
-
import { S as I } from "../spinner-
|
|
9
|
-
import { R as l } from "../richText-
|
|
6
|
+
import { C as f } from "../checkbox-wo8qk7tM.js";
|
|
7
|
+
import { P as d } from "../page-D4OThpFS.js";
|
|
8
|
+
import { S as I } from "../spinner-CLwSl2tJ.js";
|
|
9
|
+
import { R as l } from "../richText-Bxe6Ywla.js";
|
|
10
10
|
import { r as b } from "../incodeModule-C4XIllao.js";
|
|
11
11
|
const T = ({
|
|
12
12
|
config: s,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { b as I, u as e, S as u, B as h, I as S, a as N } from "../button-
|
|
1
|
+
import { b as I, u as e, S as u, B as h, I as S, a as N } from "../button-DXIWeie9.js";
|
|
2
2
|
import { mexicanStates as G, createCurpValidationManager as R } from "@incodetech/core/curp-validation";
|
|
3
3
|
import { k as y } from "../vendor-preact-BoMmvSgn.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
5
|
import "../uiConfig-DmIn-g8M.js";
|
|
6
|
-
import { E as U } from "../errorIcon-
|
|
7
|
-
import { S as D } from "../successIcon-
|
|
8
|
-
import { P as p } from "../page-
|
|
9
|
-
import { S as k } from "../spinner-
|
|
6
|
+
import { E as U } from "../errorIcon-DOuc6ONw.js";
|
|
7
|
+
import { S as D } from "../successIcon-BZphSsQr.js";
|
|
8
|
+
import { P as p } from "../page-D4OThpFS.js";
|
|
9
|
+
import { S as k } from "../spinner-CLwSl2tJ.js";
|
|
10
10
|
import { r as E } from "../incodeModule-C4XIllao.js";
|
|
11
|
-
import { a as C } from "../inputComposed-
|
|
12
|
-
import { D as F } from "../dateInputComposed-
|
|
13
|
-
import { D as P } from "../dropdownComposed-
|
|
11
|
+
import { a as C } from "../inputComposed-QzDneavl.js";
|
|
12
|
+
import { D as F } from "../dateInputComposed-D5kgh_aC.js";
|
|
13
|
+
import { D as P } from "../dropdownComposed-CzAsPPqv.js";
|
|
14
14
|
const T = ({
|
|
15
15
|
curp: s,
|
|
16
16
|
isValid: d,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as e, c as E } from "./button-
|
|
1
|
+
import { u as e, c as E } from "./button-DXIWeie9.js";
|
|
2
2
|
import { g as W, D as Z, A as $ } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
-
import { E as g } from "./errorIcon-
|
|
4
|
-
import { S as x } from "./successIcon-
|
|
3
|
+
import { E as g } from "./errorIcon-DOuc6ONw.js";
|
|
4
|
+
import { S as x } from "./successIcon-BZphSsQr.js";
|
|
5
5
|
const B = ({ class: o }) => {
|
|
6
6
|
const t = W();
|
|
7
7
|
return /* @__PURE__ */ e(
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { b as u, u as e, S as s, B as m, c as D, I as E, a as T } from "./button-
|
|
1
|
+
import { b as u, u as e, S as s, B as m, c as D, I as E, a as T } from "./button-DXIWeie9.js";
|
|
2
2
|
import { createDocumentCaptureManager as N } from "@incodetech/core/document-capture";
|
|
3
3
|
import { A as b, q as Z, k as h, _ as o, d as _, y as k } from "./vendor-preact-BoMmvSgn.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { P as H } from "./page-
|
|
6
|
-
import { S as M } from "./spinner-
|
|
5
|
+
import { P as H } from "./page-D4OThpFS.js";
|
|
6
|
+
import { S as M } from "./spinner-CLwSl2tJ.js";
|
|
7
7
|
import { r as z } from "./incodeModule-C4XIllao.js";
|
|
8
|
-
import { C as U, b as A, a as K, c as j, L as G } from "./captureFooter-
|
|
9
|
-
import { C as W, P as $ } from "./cameraView-
|
|
8
|
+
import { C as U, b as A, a as K, c as j, L as G } from "./captureFooter-CKqO4KY2.js";
|
|
9
|
+
import { C as W, P as $ } from "./cameraView-DXT7CWqE.js";
|
|
10
10
|
import "./uiConfig-DmIn-g8M.js";
|
|
11
|
-
import { O as q, C as J, F as Q } from "./fileIcon-
|
|
12
|
-
import { E as X } from "./errorContent-
|
|
13
|
-
import { S as Y } from "./successIcon-
|
|
11
|
+
import { O as q, C as J, F as Q } from "./fileIcon-DEli4GR_.js";
|
|
12
|
+
import { E as X } from "./errorContent-CnY-Deoi.js";
|
|
13
|
+
import { S as Y } from "./successIcon-BZphSsQr.js";
|
|
14
14
|
function e1(t) {
|
|
15
15
|
if (t.readyState < 2 || t.videoWidth === 0 || t.videoHeight === 0)
|
|
16
16
|
return null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as o, c as U } from "./button-
|
|
1
|
+
import { u as o, c as U } from "./button-DXIWeie9.js";
|
|
2
2
|
import { d as g, A as p, y as C } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
-
import { C as ie } from "./chevronDown-
|
|
4
|
-
import { E as le } from "./errorIcon-
|
|
5
|
-
import { S as pe } from "./successIcon-
|
|
3
|
+
import { C as ie } from "./chevronDown-BksFjKhp.js";
|
|
4
|
+
import { E as le } from "./errorIcon-DOuc6ONw.js";
|
|
5
|
+
import { S as pe } from "./successIcon-BZphSsQr.js";
|
|
6
6
|
const ue = ({ size: c = 20 }) => /* @__PURE__ */ o(
|
|
7
7
|
"svg",
|
|
8
8
|
{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { b as I, u as o, I as J, a as Q, B as Z } from "./button-
|
|
1
|
+
import { b as I, u as o, I as J, a as Q, B as Z } from "./button-DXIWeie9.js";
|
|
2
2
|
import { SUPPORTED_COUNTRIES as M, DEV_ONLY_COUNTRIES as x, computeEkybDisplayErrors as ee, createEkybManager as te } from "@incodetech/core/ekyb";
|
|
3
3
|
import { T as q, y as V, A as D, d as oe, q as C, k as re } from "./vendor-preact-BoMmvSgn.js";
|
|
4
4
|
import "./uiConfig-DmIn-g8M.js";
|
|
5
5
|
import "@incodetech/core";
|
|
6
|
-
import { u as ne, A as se } from "./addressAutocomplete-
|
|
7
|
-
import { P as K } from "./page-
|
|
8
|
-
import { S as ae } from "./spinner-
|
|
9
|
-
import { t as G, F as le, V as P } from "./formField-
|
|
6
|
+
import { u as ne, A as se } from "./addressAutocomplete-BSE71Kua.js";
|
|
7
|
+
import { P as K } from "./page-D4OThpFS.js";
|
|
8
|
+
import { S as ae } from "./spinner-CLwSl2tJ.js";
|
|
9
|
+
import { t as G, F as le, V as P } from "./formField-BoozuV2w.js";
|
|
10
10
|
import { r as ce } from "./incodeModule-C4XIllao.js";
|
|
11
|
-
import { D as Y } from "./dropdownComposed-
|
|
12
|
-
import { a as _ } from "./inputComposed-
|
|
11
|
+
import { D as Y } from "./dropdownComposed-CzAsPPqv.js";
|
|
12
|
+
import { a as _ } from "./inputComposed-QzDneavl.js";
|
|
13
13
|
function ue(t) {
|
|
14
14
|
return [...t.toUpperCase()].map((r) => String.fromCodePoint(127462 + r.charCodeAt(0) - 65)).join("");
|
|
15
15
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { u as r, I as Y, b as $, a as G, B as L } from "./button-
|
|
1
|
+
import { u as r, I as Y, b as $, a as G, B as L } from "./button-DXIWeie9.js";
|
|
2
2
|
import { computeEkycDisplayErrors as j, createEkycManager as z } from "@incodetech/core/ekyc";
|
|
3
3
|
import { y as q, A as F, d as J, q as E, T as Q } from "./vendor-preact-BoMmvSgn.js";
|
|
4
4
|
import "./uiConfig-DmIn-g8M.js";
|
|
5
5
|
import "@incodetech/core";
|
|
6
|
-
import { u as U, A as W } from "./addressAutocomplete-
|
|
7
|
-
import { V as v, t as X, F as Z } from "./formField-
|
|
8
|
-
import { D as f } from "./dateInputComposed-
|
|
9
|
-
import { D as ee } from "./dropdownComposed-
|
|
10
|
-
import { P as T } from "./page-
|
|
11
|
-
import { S as re } from "./spinner-
|
|
6
|
+
import { u as U, A as W } from "./addressAutocomplete-BSE71Kua.js";
|
|
7
|
+
import { V as v, t as X, F as Z } from "./formField-BoozuV2w.js";
|
|
8
|
+
import { D as f } from "./dateInputComposed-D5kgh_aC.js";
|
|
9
|
+
import { D as ee } from "./dropdownComposed-CzAsPPqv.js";
|
|
10
|
+
import { P as T } from "./page-D4OThpFS.js";
|
|
11
|
+
import { S as re } from "./spinner-CLwSl2tJ.js";
|
|
12
12
|
import { r as oe } from "./incodeModule-C4XIllao.js";
|
|
13
|
-
import { P as te } from "./phoneInputComposed-
|
|
13
|
+
import { P as te } from "./phoneInputComposed-FjM87j1t.js";
|
|
14
14
|
const ae = ({ config: p, onFinish: s }) => {
|
|
15
15
|
const { t: l } = $(), [a, d] = G(() => z({ config: p }));
|
|
16
16
|
return q(() => {
|
package/dist/email/email.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { b, u as e, I as O, a as C, S as w, B as y } from "../button-
|
|
1
|
+
import { b, u as e, I as O, a as C, S as w, B as y } from "../button-DXIWeie9.js";
|
|
2
2
|
import { createEmailManager as P } from "@incodetech/core/email";
|
|
3
3
|
import { d as h, y as V } from "../vendor-preact-BoMmvSgn.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { O as S } from "../otpInput-
|
|
6
|
-
import { P as I } from "../page-
|
|
5
|
+
import { O as S } from "../otpInput-B85heGC5.js";
|
|
6
|
+
import { P as I } from "../page-D4OThpFS.js";
|
|
7
7
|
import { r as k } from "../incodeModule-C4XIllao.js";
|
|
8
8
|
import "../uiConfig-DmIn-g8M.js";
|
|
9
|
-
import "../typography-
|
|
10
|
-
import { a as L } from "../inputComposed-
|
|
11
|
-
import "../checkbox-
|
|
12
|
-
import "../phoneInputComposed-
|
|
13
|
-
import "../dateInputComposed-
|
|
14
|
-
import "../captureOverlay-
|
|
15
|
-
import "../manualCaptureButton-
|
|
16
|
-
import "../captureFooter-
|
|
9
|
+
import "../typography-CBPoLoAP.js";
|
|
10
|
+
import { a as L } from "../inputComposed-QzDneavl.js";
|
|
11
|
+
import "../checkbox-wo8qk7tM.js";
|
|
12
|
+
import "../phoneInputComposed-FjM87j1t.js";
|
|
13
|
+
import "../dateInputComposed-D5kgh_aC.js";
|
|
14
|
+
import "../captureOverlay-Crv6ZBp_.js";
|
|
15
|
+
import "../manualCaptureButton-CPZ2xxEI.js";
|
|
16
|
+
import "../captureFooter-CKqO4KY2.js";
|
|
17
17
|
import "../countries-DfLkrF0x.js";
|
|
18
18
|
const v = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, R = ({
|
|
19
19
|
prefilledEmail: i,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as l, u as n, S as r, B as m } from "./button-
|
|
1
|
+
import { b as l, u as n, S as r, B as m } from "./button-DXIWeie9.js";
|
|
2
2
|
import { A as p, y as C } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
-
import { E } from "./errorIcon-
|
|
4
|
-
import { W as I } from "./warningIcon-
|
|
5
|
-
import { P as f } from "./page-
|
|
6
|
-
import { T as h } from "./typography-
|
|
3
|
+
import { E } from "./errorIcon-DOuc6ONw.js";
|
|
4
|
+
import { W as I } from "./warningIcon-xqaHPxjF.js";
|
|
5
|
+
import { P as f } from "./page-D4OThpFS.js";
|
|
6
|
+
import { T as h } from "./typography-CBPoLoAP.js";
|
|
7
7
|
const x = ({
|
|
8
8
|
title: c,
|
|
9
9
|
description: s,
|