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