@incodetech/web 0.0.0-dev-20260313-486e658 → 0.0.0-dev-20260313-bc2dab4

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 (64) hide show
  1. package/dist/{AsYouType-BtKe6-rC.js → AsYouType-CpH-Rmtj.js} +1 -1
  2. package/dist/{Trans-C2X8WLEu.js → Trans-CA9a3vKp.js} +1 -1
  3. package/dist/authentication/authentication.es.js +25 -20
  4. package/dist/base.css +9 -4
  5. package/dist/{browser-ponyfill-CLXJUgvu.js → browser-ponyfill-B6W6hHVY.js} +49 -46
  6. package/dist/{incodeModule-DLGHhn9E.js → button-Ca1tRSTI.js} +153 -239
  7. package/dist/{captureFooter-C2Yrou50.js → captureFooter-X2qN1773.js} +72 -70
  8. package/dist/{chevronDown-D5uHEaU-.js → chevronDown-BUaOuf9J.js} +1 -1
  9. package/dist/{closeIcon-BMPoRQCd.js → closeIcon-BM7WLbKp.js} +1 -1
  10. package/dist/{countries-3p5tkqcx.js → countries-C9bhJe4u.js} +3 -3
  11. package/dist/curp-validation/curp-validation.es.js +26 -25
  12. package/dist/{dateInputComposed-CqHIiKPV.js → dateInputComposed-CvFmQpJ0.js} +11 -10
  13. package/dist/document-capture/styles.css +1 -0
  14. package/dist/{documentCapture-CzGmGxzA.js → documentCapture-PdKA2frR.js} +113 -157
  15. package/dist/{dropdownComposed-BgGKKaXv.js → dropdownComposed-DBm7cotT.js} +8 -6
  16. package/dist/{ekybModule-Bttpjr3j.js → ekybModule-DiFpO2sE.js} +16 -14
  17. package/dist/ekycModule-DdD1iChB.js +370 -0
  18. package/dist/email/email.es.js +86 -63
  19. package/dist/{errorContent-6xl4ArMV.js → errorContent-yUAdbZ5o.js} +5 -5
  20. package/dist/{errorIcon-Cxcv4ISP.js → errorIcon-BL647nVh.js} +1 -1
  21. package/dist/extensibility.es.js +290 -0
  22. package/dist/face-match/styles.css +8 -0
  23. package/dist/{faceMatch-DKqzUCml.js → faceMatch-BjdNG_e0.js} +12 -11
  24. package/dist/fileIcon-DOyMcRWU.js +52 -0
  25. package/dist/flipAnimation-DoMQoFPb.js +1355 -0
  26. package/dist/flow/flow.es.js +157 -157
  27. package/dist/flow/styles.css +15 -3
  28. package/dist/formField-C91ckby4.js +94 -0
  29. package/dist/geolocation/geolocation.es.js +15 -14
  30. package/dist/governmentValidation/governmentValidation.es.js +19 -18
  31. package/dist/id/id.es.js +30 -1354
  32. package/dist/id/styles.css +2 -0
  33. package/dist/incodeModule-aE-LkKwM.js +96 -0
  34. package/dist/index.es.js +7 -7
  35. package/dist/{otpInput-BT0ZXrAt.js → otpInput-cazUY73p.js} +1 -1
  36. package/dist/{page-BJDfLRpO.js → page-BVHG3h0V.js} +1 -1
  37. package/dist/permissions-DwF2Ez1N.js +754 -0
  38. package/dist/phone/phone.es.js +53 -30
  39. package/dist/{phoneInput-d3sq4X5R.js → phoneInput-Duuochsh.js} +4 -4
  40. package/dist/phoneInputComposed-B1gXoSzr.js +107 -0
  41. package/dist/{processing-CGb_3dSE.js → processing-CDgOueI3.js} +3 -3
  42. package/dist/selfie/selfie.es.js +29 -18
  43. package/dist/selfie/styles.css +12 -3
  44. package/dist/{spinner--i134wYq.js → spinner-Cx3FPUCD.js} +13 -11
  45. package/dist/{successIcon-1BcPFhum.js → successIcon-BybULRRU.js} +1 -1
  46. package/dist/{tutorial-DXgOS41l.js → tutorial-Dagmccxh.js} +21 -21
  47. package/dist/types/authentication.d.ts +10 -3
  48. package/dist/types/curp-validation.d.ts +5 -1
  49. package/dist/types/email.d.ts +8 -3
  50. package/dist/types/extensibility.d.ts +671 -0
  51. package/dist/types/flow.d.ts +5 -1
  52. package/dist/types/geolocation.d.ts +5 -1
  53. package/dist/types/governmentValidation.d.ts +5 -1
  54. package/dist/types/id.d.ts +8 -3
  55. package/dist/types/phone.d.ts +8 -3
  56. package/dist/types/selfie.d.ts +8 -3
  57. package/dist/{uiConfig-DisZ_yFB.js → uiConfig-Z6RT23Sl.js} +3 -3
  58. package/dist/useFormScrollable-3O3GeT4m.js +15 -0
  59. package/dist/{warningIcon-WqI5X7cK.js → warningIcon-DyoKeqDd.js} +1 -1
  60. package/package.json +6 -2
  61. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  62. package/dist/baseTutorial-hbezn8sT.js +0 -755
  63. package/dist/ekycModule-DfwZMKdL.js +0 -467
  64. package/dist/verificationResult-CKZqPXb9.js +0 -106
@@ -1,79 +1,48 @@
1
- import { u as e, b as C, S as u, B as h, d as y, I as E, a as T, r as N } from "./incodeModule-DLGHhn9E.js";
2
- import { createDocumentCaptureManager as U } from "@incodetech/core/document-capture";
3
- import { A as b, q as Z, k as f, _ as r, d as _, y as k } from "./vendor-preact-BXf0bkEs.js";
1
+ import { b as C, u as e, S as u, B as h, d as D, I as E, a as T } from "./button-Ca1tRSTI.js";
2
+ import { createDocumentCaptureManager as N } from "@incodetech/core/document-capture";
3
+ import { A as b, q as Z, k as f, _ as o, d as _, y as k } from "./vendor-preact-BXf0bkEs.js";
4
4
  import "@incodetech/core";
5
- import { P as H } from "./page-BJDfLRpO.js";
6
- import { S as M } from "./spinner--i134wYq.js";
7
- import { C as A, a as z, b as K, c as j, d as G, P as W, L as $ } from "./captureFooter-C2Yrou50.js";
8
- import "./uiConfig-DisZ_yFB.js";
9
- import { E as q } from "./errorContent-6xl4ArMV.js";
10
- import { S as J } from "./successIcon-1BcPFhum.js";
11
- const Q = ({ size: t = 24 }) => /* @__PURE__ */ e(
12
- "svg",
13
- {
14
- width: t,
15
- height: t,
16
- viewBox: "0 0 24 24",
17
- fill: "none",
18
- xmlns: "http://www.w3.org/2000/svg",
19
- children: /* @__PURE__ */ e(
20
- "path",
21
- {
22
- d: "M13.9648 3.9375C14.9748 3.9375 15.899 4.49179 16.376 5.38379C16.7907 6.16122 16.9686 6.3825 17.0127 6.43164C17.2557 6.68564 17.594 6.83756 17.957 6.85156C19.9019 6.85158 21.4998 8.4483 21.5 10.4121V16.0566C21.4999 18.5966 19.4335 20.6631 16.8936 20.6631H7.10645C4.56749 20.6631 2.50008 18.5966 2.5 16.0566V10.4141C2.50324 8.45242 4.09989 6.8567 6.06152 6.85645C6.40549 6.84145 6.74412 6.68871 6.99512 6.42676C7.04412 6.37276 7.22513 6.13959 7.66211 5.34863C8.14207 4.47871 9.05884 3.9376 10.0527 3.9375H13.9648ZM11.999 9.5625C9.8801 9.5625 8.15637 11.2864 8.15625 13.4053C8.15625 15.5243 9.88002 17.248 11.999 17.248C14.118 17.248 15.8418 15.5243 15.8418 13.4053C15.8417 11.2864 14.1179 9.56251 11.999 9.5625ZM11.999 11.0625C13.2909 11.0625 14.3417 12.1134 14.3418 13.4053C14.3418 14.6973 13.291 15.748 11.999 15.748C10.7071 15.748 9.65625 14.6972 9.65625 13.4053C9.65637 12.1134 10.7071 11.0625 11.999 11.0625ZM17.1729 9.4082C16.7589 9.40829 16.4229 9.77355 16.4229 10.1875C16.4229 10.6015 16.7589 10.9374 17.1729 10.9375C17.5869 10.9375 17.9229 10.6015 17.9229 10.1875V10.1289C17.9229 9.71491 17.5869 9.4082 17.1729 9.4082Z",
23
- fill: "#262831"
24
- }
25
- )
26
- }
27
- ), X = ({ size: t = 24 }) => /* @__PURE__ */ e(
28
- "svg",
29
- {
30
- width: t,
31
- height: t,
32
- viewBox: "0 0 24 24",
33
- fill: "none",
34
- xmlns: "http://www.w3.org/2000/svg",
35
- children: /* @__PURE__ */ e(
36
- "path",
37
- {
38
- d: "M13.2525 2C13.5 2 13.7079 2.21 13.7079 2.46V5.68C13.7079 7.51 15.1931 9.01 17.0149 9.02C17.7574 9.02 18.3515 9.03 18.8069 9.03C19.1139 9.03 19.6188 9.02 20.0446 9.02C20.2921 9.02 20.5 9.22 20.5 9.47V17.51C20.5 19.99 18.5 22 16.0446 22H8.17327C5.58911 22 3.5 19.89 3.5 17.29V6.51C3.5 4.03 5.4901 2 7.96535 2H13.2525ZM11.6386 8.74C11.5396 8.74 11.4406 8.76 11.3515 8.8C11.2624 8.84 11.1832 8.89 11.1139 8.96L8.28218 11.84C7.99505 12.13 7.99505 12.6 8.28218 12.89C8.56931 13.18 9.03465 13.18 9.32178 12.89L10.896 11.29V16.12C10.896 16.53 11.2228 16.86 11.6386 16.86C12.0446 16.86 12.3713 16.53 12.3713 16.12V11.29L13.9455 12.89C14.2327 13.18 14.698 13.18 14.9851 12.89C15.2822 12.6 15.2822 12.13 14.995 11.84L12.1535 8.96C12.0842 8.89 12.005 8.84 11.9158 8.8C11.8267 8.76 11.7376 8.74 11.6386 8.74ZM15.1452 2.906C15.1452 2.475 15.6621 2.261 15.9581 2.572C17.0294 3.696 18.8997 5.661 19.9452 6.759C20.2334 7.062 20.0215 7.565 19.6047 7.566C18.7908 7.569 17.8324 7.566 17.1423 7.559C16.0472 7.559 15.1452 6.648 15.1452 5.542V2.906Z",
39
- fill: "#262831"
40
- }
41
- )
42
- }
43
- );
44
- function Y(t) {
5
+ import { P as H } from "./page-BVHG3h0V.js";
6
+ import { S as M } from "./spinner-Cx3FPUCD.js";
7
+ import { r as z } from "./incodeModule-aE-LkKwM.js";
8
+ import { C as U, c as A, a as K, d as j, b as G, P as W, L as $ } from "./captureFooter-X2qN1773.js";
9
+ import "./uiConfig-Z6RT23Sl.js";
10
+ import { M as q, C as J, F as Q } from "./fileIcon-DOyMcRWU.js";
11
+ import { E as X } from "./errorContent-yUAdbZ5o.js";
12
+ import { S as Y } from "./successIcon-BybULRRU.js";
13
+ function ee(t) {
45
14
  if (t.readyState < 2 || t.videoWidth === 0 || t.videoHeight === 0)
46
15
  return null;
47
- const o = document.createElement("canvas");
48
- o.width = t.videoWidth, o.height = t.videoHeight;
49
- const i = o.getContext("2d");
50
- return i ? (i.drawImage(t, 0, 0), o.toDataURL("image/jpeg", 0.92).split(",")[1] ?? null) : null;
16
+ const r = document.createElement("canvas");
17
+ r.width = t.videoWidth, r.height = t.videoHeight;
18
+ const i = r.getContext("2d");
19
+ return i ? (i.drawImage(t, 0, 0), r.toDataURL("image/jpeg", 0.92).split(",")[1] ?? null) : null;
51
20
  }
52
- const e1 = ({
21
+ const te = ({
53
22
  stream: t,
54
- manager: o,
23
+ manager: r,
55
24
  onOpenHelp: i
56
25
  }) => {
57
26
  const { t: n } = C(), a = b(null), p = Z(() => {
58
- const c = a.current;
59
- if (!c) return;
60
- const l = Y(c);
27
+ const l = a.current;
61
28
  if (!l) return;
29
+ const c = ee(l);
30
+ if (!c) return;
62
31
  const d = new Blob(
63
- [Uint8Array.from(atob(l), (g) => g.charCodeAt(0))],
32
+ [Uint8Array.from(atob(c), (g) => g.charCodeAt(0))],
64
33
  { type: "image/jpeg" }
65
34
  ), v = new File([d], "document.jpg", { type: "image/jpeg" });
66
- o.setFile(v, `data:image/jpeg;base64,${l}`);
67
- }, [o]);
35
+ r.setFile(v, `data:image/jpeg;base64,${c}`);
36
+ }, [r]);
68
37
  return /* @__PURE__ */ e(
69
38
  G,
70
39
  {
71
40
  stream: t,
72
41
  videoRef: a,
73
42
  "data-testid": "document-capture-camera",
74
- children: /* @__PURE__ */ e(A, { children: [
43
+ children: /* @__PURE__ */ e(U, { children: [
75
44
  /* @__PURE__ */ e(
76
- z,
45
+ A,
77
46
  {
78
47
  title: n("documentCapture.camera.title"),
79
48
  subtitle: n("documentCapture.camera.subtitle")
@@ -95,20 +64,7 @@ const e1 = ({
95
64
  ] })
96
65
  }
97
66
  );
98
- }, t1 = ({
99
- children: t,
100
- "aria-labelledby": o,
101
- class: i
102
- }) => /* @__PURE__ */ e(
103
- "div",
104
- {
105
- class: `IncodeModal ${i ?? ""}`,
106
- role: "dialog",
107
- "aria-modal": "true",
108
- "aria-labelledby": o,
109
- children: /* @__PURE__ */ e("div", { class: "IncodeModalContainer", children: /* @__PURE__ */ e("div", { class: "IncodeModalBody", children: t }) })
110
- }
111
- ), n1 = () => /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
67
+ }, ne = () => /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
112
68
  /* @__PURE__ */ e(
113
69
  "path",
114
70
  {
@@ -154,7 +110,7 @@ const e1 = ({
154
110
  fill: "currentColor"
155
111
  }
156
112
  )
157
- ] }), o1 = () => /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
113
+ ] }), oe = () => /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
158
114
  /* @__PURE__ */ e(
159
115
  "path",
160
116
  {
@@ -209,7 +165,7 @@ const e1 = ({
209
165
  fill: "currentColor"
210
166
  }
211
167
  )
212
- ] }), r1 = () => /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
168
+ ] }), re = () => /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
213
169
  /* @__PURE__ */ e(
214
170
  "path",
215
171
  {
@@ -228,7 +184,7 @@ const e1 = ({
228
184
  fill: "currentColor"
229
185
  }
230
186
  )
231
- ] }), i1 = () => /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
187
+ ] }), ie = () => /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
232
188
  "path",
233
189
  {
234
190
  "fill-rule": "evenodd",
@@ -236,55 +192,55 @@ const e1 = ({
236
192
  d: "M14.314 13.9858C14.607 14.2671 14.607 14.7231 14.314 15.0043C14.168 15.1445 13.976 15.2146 13.784 15.2146C13.592 15.2146 13.4 15.1445 13.253 15.0043L12 13.8005L10.744 15.0063C10.597 15.1474 10.405 15.2175 10.213 15.2175C10.022 15.2175 9.83 15.1474 9.683 15.0063C9.39 14.7259 9.39 14.269 9.683 13.9887L10.939 12.7829L9.683 11.5771C9.39 11.2959 9.39 10.8408 9.683 10.5595C9.976 10.2783 10.451 10.2783 10.744 10.5595L12 11.7653L13.253 10.5624C13.546 10.2811 14.021 10.2811 14.314 10.5624C14.607 10.8437 14.607 11.2997 14.314 11.581L13.061 12.7829L14.314 13.9858ZM17.957 6.57747C17.594 6.56403 17.255 6.41811 17.013 6.17427C16.968 6.12723 16.791 5.91507 16.376 5.16819C15.898 4.31187 14.974 3.78003 13.964 3.78003H10.053C9.058 3.78003 8.142 4.29939 7.661 5.13459C7.224 5.89395 7.043 6.11763 6.995 6.16947C6.744 6.42195 6.405 6.56787 6.062 6.58227C4.1 6.58227 2.502 8.11443 2.5 9.99795V15.4143C2.5 17.8527 4.566 19.837 7.106 19.837H16.894C19.433 19.837 21.5 17.8527 21.5 15.4143V9.99603C21.5 8.11059 19.902 6.57747 17.957 6.57747Z",
237
193
  fill: "currentColor"
238
194
  }
239
- ) }), a1 = [
195
+ ) }), ae = [
240
196
  {
241
197
  titleKey: "documentCapture.commonIssues.farPresent",
242
198
  bodyKey: "documentCapture.commonIssues.farPresentDescription",
243
- Icon: n1
199
+ Icon: ne
244
200
  },
245
201
  {
246
202
  titleKey: "documentCapture.commonIssues.foldedIdPresent",
247
203
  bodyKey: "documentCapture.commonIssues.foldedIdPresentDescription",
248
- Icon: o1
204
+ Icon: oe
249
205
  },
250
206
  {
251
207
  titleKey: "documentCapture.commonIssues.shadowPresent",
252
208
  bodyKey: "documentCapture.commonIssues.shadowPresentDescription",
253
- Icon: r1
209
+ Icon: re
254
210
  },
255
211
  {
256
212
  titleKey: "documentCapture.commonIssues.dirtyPresent",
257
213
  bodyKey: "documentCapture.commonIssues.dirtyPresentDescription",
258
- Icon: i1
214
+ Icon: ie
259
215
  }
260
- ], l1 = ({
216
+ ], ce = ({
261
217
  onClose: t
262
218
  }) => {
263
- const { t: o } = C();
264
- return /* @__PURE__ */ e(t1, { "aria-labelledby": "document-common-issues-title", children: [
219
+ const { t: r } = C();
220
+ return /* @__PURE__ */ e(q, { "aria-labelledby": "document-common-issues-title", children: [
265
221
  /* @__PURE__ */ e(
266
222
  "h2",
267
223
  {
268
224
  id: "document-common-issues-title",
269
225
  class: "IncodeDocumentCommonIssuesTitle",
270
- children: o("commonIssues.commonIssues")
226
+ children: r("commonIssues.commonIssues")
271
227
  }
272
228
  ),
273
229
  /* @__PURE__ */ e(u, { size: 32 }),
274
- /* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesCards", children: a1.map((i) => /* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesCard", children: [
230
+ /* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesCards", children: ae.map((i) => /* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesCard", children: [
275
231
  /* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesCardIcon", children: /* @__PURE__ */ e(i.Icon, {}) }),
276
232
  /* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesCardText", children: [
277
- /* @__PURE__ */ e("h5", { class: "IncodeDocumentCommonIssuesCardTitle", children: o(i.titleKey) }),
278
- /* @__PURE__ */ e("p", { class: "IncodeDocumentCommonIssuesCardBody", children: o(i.bodyKey) })
233
+ /* @__PURE__ */ e("h5", { class: "IncodeDocumentCommonIssuesCardTitle", children: r(i.titleKey) }),
234
+ /* @__PURE__ */ e("p", { class: "IncodeDocumentCommonIssuesCardBody", children: r(i.bodyKey) })
279
235
  ] })
280
236
  ] }, i.titleKey)) }),
281
- /* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesButtons", children: /* @__PURE__ */ e(h, { onClick: t, children: o("commonIssues.tryAgain") }) })
237
+ /* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesButtons", children: /* @__PURE__ */ e(h, { onClick: t, children: r("commonIssues.tryAgain") }) })
282
238
  ] });
283
- }, c1 = ({
239
+ }, le = ({
284
240
  manager: t,
285
- captureMode: o
241
+ captureMode: r
286
242
  }) => {
287
- const { t: i } = C(), n = i(o === "file" ? "documentCapture.review.replace" : "documentCapture.review.retake");
243
+ const { t: i } = C(), n = i(r === "file" ? "documentCapture.review.replace" : "documentCapture.review.retake");
288
244
  return /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureActionRow", children: [
289
245
  /* @__PURE__ */ e(
290
246
  h,
@@ -304,16 +260,16 @@ const e1 = ({
304
260
  }
305
261
  )
306
262
  ] });
307
- }, d1 = ({ isFilePdf: t }) => {
308
- const { t: o } = C();
263
+ }, de = ({ isFilePdf: t }) => {
264
+ const { t: r } = C();
309
265
  return /* @__PURE__ */ e(f, { children: [
310
- /* @__PURE__ */ e("h2", { class: "IncodeDocumentCaptureReviewTitle", children: o(t ? "documentCapture.review.titlePdfUpload" : "documentCapture.review.titleCaptured") }),
266
+ /* @__PURE__ */ e("h2", { class: "IncodeDocumentCaptureReviewTitle", children: r(t ? "documentCapture.review.titlePdfUpload" : "documentCapture.review.titleCaptured") }),
311
267
  /* @__PURE__ */ e(u, { size: 12 }),
312
- /* @__PURE__ */ e("p", { class: "IncodeDocumentCaptureReviewSubtitle", children: o(t ? "documentCapture.review.subtitlePdfUpload" : "documentCapture.review.subtitleCaptured") })
268
+ /* @__PURE__ */ e("p", { class: "IncodeDocumentCaptureReviewSubtitle", children: r(t ? "documentCapture.review.subtitlePdfUpload" : "documentCapture.review.subtitleCaptured") })
313
269
  ] });
314
- }, s1 = ({
270
+ }, se = ({
315
271
  manager: t,
316
- pendingNextPage: o
272
+ pendingNextPage: r
317
273
  }) => {
318
274
  const { t: i } = C();
319
275
  return /* @__PURE__ */ e(
@@ -321,43 +277,43 @@ const e1 = ({
321
277
  {
322
278
  onClick: () => t.continue(),
323
279
  "data-testid": "document-capture-continue-button",
324
- children: i(o ? "documentCapture.review.addNextPage" : "documentCapture.review.continue")
280
+ children: i(r ? "documentCapture.review.addNextPage" : "documentCapture.review.continue")
325
281
  }
326
282
  );
327
- }, u1 = () => {
283
+ }, ue = () => {
328
284
  const { t } = C();
329
285
  return /* @__PURE__ */ e(f, { children: [
330
- /* @__PURE__ */ e(J, { size: 30 }),
286
+ /* @__PURE__ */ e(Y, { size: 30 }),
331
287
  /* @__PURE__ */ e(u, { size: 16 }),
332
288
  /* @__PURE__ */ e("h2", { class: "IncodeDocumentCaptureReviewTitle", children: t("documentCapture.review.successTitle") })
333
289
  ] });
334
- }, C1 = ({
290
+ }, Ce = ({
335
291
  progress: t,
336
- isFilePdf: o
292
+ isFilePdf: r
337
293
  }) => {
338
- const { t: i } = C(), n = i(o ? "documentCapture.review.uploading" : "documentCapture.review.analyzing");
294
+ const { t: i } = C(), n = i(r ? "documentCapture.review.uploading" : "documentCapture.review.analyzing");
339
295
  return /* @__PURE__ */ e(f, { children: [
340
296
  /* @__PURE__ */ e(u, { size: 8 }),
341
297
  /* @__PURE__ */ e(W, { progress: t, label: n })
342
298
  ] });
343
- }, p1 = ({
299
+ }, pe = ({
344
300
  state: t,
345
- manager: o,
301
+ manager: r,
346
302
  captureMode: i
347
303
  }) => {
348
304
  const { t: n } = C();
349
305
  if (t.status === "failure")
350
306
  return /* @__PURE__ */ e(
351
- q,
307
+ X,
352
308
  {
353
309
  "data-testid": "document-capture-error",
354
310
  title: n("documentCapture.review.error.title"),
355
311
  description: t.attemptsRemaining <= 0 ? n("notifications.noTries") : n("documentCapture.review.error.description"),
356
312
  attemptsRemaining: t.attemptsRemaining,
357
- onButtonClick: () => o.retry()
313
+ onButtonClick: () => r.retry()
358
314
  }
359
315
  );
360
- const a = t.fileType === "application/pdf" || t.imageBase64.startsWith("data:application/pdf"), { fileName: p } = t, c = t.status === "preview", l = t.status === "uploading", d = t.status === "success";
316
+ const a = t.fileType === "application/pdf" || t.imageBase64.startsWith("data:application/pdf"), { fileName: p } = t, l = t.status === "preview", c = t.status === "uploading", d = t.status === "success";
361
317
  return /* @__PURE__ */ e(
362
318
  H,
363
319
  {
@@ -367,14 +323,14 @@ const e1 = ({
367
323
  "data-testid": "document-capture-review",
368
324
  children: /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureReviewLayout", children: [
369
325
  /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureReviewHeader", children: [
370
- c ? /* @__PURE__ */ e(d1, { isFilePdf: a }) : null,
371
- l ? /* @__PURE__ */ e(C1, { progress: t.progress, isFilePdf: a }) : null,
372
- d ? /* @__PURE__ */ e(u1, {}) : null
326
+ l ? /* @__PURE__ */ e(de, { isFilePdf: a }) : null,
327
+ c ? /* @__PURE__ */ e(Ce, { progress: t.progress, isFilePdf: a }) : null,
328
+ d ? /* @__PURE__ */ e(ue, {}) : null
373
329
  ] }),
374
330
  /* @__PURE__ */ e(
375
331
  "div",
376
332
  {
377
- class: y(
333
+ class: D(
378
334
  "IncodeDocumentCaptureReviewPreview",
379
335
  a && "IncodeDocumentCaptureReviewPreviewPdf"
380
336
  ),
@@ -397,7 +353,7 @@ const e1 = ({
397
353
  {
398
354
  src: t.imageBase64,
399
355
  alt: "",
400
- class: y(
356
+ class: D(
401
357
  "IncodeDocumentCaptureReviewImage",
402
358
  d && "IncodeDocumentCaptureSuccessBorder"
403
359
  ),
@@ -420,16 +376,16 @@ const e1 = ({
420
376
  /* @__PURE__ */ e(
421
377
  "div",
422
378
  {
423
- class: y(
379
+ class: D(
424
380
  "IncodeDocumentCaptureReviewFooter",
425
- l && "IncodeDocumentCaptureReviewFooterEmpty"
381
+ c && "IncodeDocumentCaptureReviewFooterEmpty"
426
382
  ),
427
383
  children: [
428
- c ? /* @__PURE__ */ e(c1, { manager: o, captureMode: i }) : null,
384
+ l ? /* @__PURE__ */ e(le, { manager: r, captureMode: i }) : null,
429
385
  d ? /* @__PURE__ */ e(
430
- s1,
386
+ se,
431
387
  {
432
- manager: o,
388
+ manager: r,
433
389
  pendingNextPage: t.status === "success" && t.pendingNextPage
434
390
  }
435
391
  ) : null
@@ -439,23 +395,23 @@ const e1 = ({
439
395
  ] })
440
396
  }
441
397
  );
442
- }, m1 = (t) => /* @__PURE__ */ r("svg", { viewBox: "0 0 292 305", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ r("circle", { cx: 145.743, cy: 152.074, r: 139.295, fill: "#E5F0FF" }), /* @__PURE__ */ r("g", { filter: "url(#filter0_d_4533_6792)" }, /* @__PURE__ */ r("path", { d: "M58.6299 32.6143C58.6299 29.8528 60.8685 27.6143 63.6299 27.6143H227.017C229.779 27.6143 232.017 29.8528 232.017 32.6143V248.24C232.017 251.002 229.779 253.24 227.017 253.24H63.6299C60.8685 253.24 58.6299 251.002 58.6299 248.24V32.6143Z", fill: "white" }), /* @__PURE__ */ r("path", { d: "M58.6299 32.6143C58.6299 29.8528 60.8685 27.6143 63.6299 27.6143H227.017C229.779 27.6143 232.017 29.8528 232.017 32.6143V248.24C232.017 251.002 229.779 253.24 227.017 253.24H63.6299C60.8685 253.24 58.6299 251.002 58.6299 248.24V32.6143Z", fill: "black", fillOpacity: 0.01 })), /* @__PURE__ */ r("g", { opacity: 0.5 }, /* @__PURE__ */ r("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M73.4139 60.0905C73.4139 59.62 73.7953 59.2385 74.2658 59.2385H216.865C217.336 59.2385 217.717 59.62 217.717 60.0905V62.7331C217.717 63.2036 217.336 63.585 216.865 63.585H74.2658C73.7953 63.585 73.4139 63.2036 73.4139 62.7331V60.0905Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M73.4139 220.911C73.4139 220.44 73.7953 220.059 74.2658 220.059H216.865C217.336 220.059 217.717 220.44 217.717 220.911V223.553C217.717 224.024 217.336 224.405 216.865 224.405H74.2658C73.7953 224.405 73.4139 224.024 73.4139 223.553V220.911Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M73.4139 83.5619C73.4139 83.0914 73.7953 82.7099 74.2658 82.7099H130.805C131.275 82.7099 131.657 83.0914 131.657 83.5619V91.4202C131.657 91.8907 131.275 92.2722 130.805 92.2722H74.2658C73.7953 92.2722 73.4139 91.8907 73.4139 91.4202L73.4139 83.5619Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M73.4138 101.817C73.4138 101.347 73.7953 100.965 74.2658 100.965H130.805C131.275 100.965 131.657 101.347 131.657 101.817V109.676C131.657 110.146 131.275 110.528 130.805 110.528H74.2658C73.7953 110.528 73.4138 110.146 73.4138 109.676L73.4138 101.817Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M73.399 120.072C73.4072 119.601 73.7952 119.227 74.2657 119.235L154.263 120.631C154.734 120.639 155.109 121.028 155.1 121.498L154.963 129.355C154.955 129.826 154.567 130.2 154.097 130.192L74.0988 128.796C73.6284 128.787 73.2536 128.399 73.2619 127.929L73.399 120.072Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M73.399 138.327C73.4072 137.857 73.7952 137.482 74.2657 137.49L97.7678 137.9C98.2383 137.909 98.613 138.297 98.6048 138.767L98.498 144.886C98.4897 145.356 98.1017 145.731 97.6313 145.723L74.1292 145.313C73.6587 145.304 73.284 144.916 73.2922 144.446L73.399 138.327Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M73.4139 38.3582C73.4139 37.8877 73.7953 37.5063 74.2658 37.5063H180.355C180.825 37.5063 181.207 37.8877 181.207 38.3582V47.0859C181.207 47.5564 180.825 47.9378 180.355 47.9378H74.2658C73.7953 47.9378 73.4139 47.5564 73.4139 47.0859V38.3582Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M195.985 37.4887C195.985 37.0182 196.366 36.6367 196.837 36.6367H216.865C217.336 36.6367 217.717 37.0182 217.717 37.4887V46.2163C217.717 46.6868 217.336 47.0683 216.865 47.0683H196.837C196.366 47.0683 195.985 46.6868 195.985 46.2163V37.4887Z", fill: "#C6C8D2" })), /* @__PURE__ */ r("mask", { id: "path-4-inside-1_4533_6792", fill: "white" }, /* @__PURE__ */ r("path", { d: "M63.8701 255.593C60.0041 255.593 56.8701 252.459 56.8701 248.593L56.8701 32.5516C56.8701 28.6856 60.0041 25.5516 63.8701 25.5516L227.68 25.5516C231.546 25.5516 234.68 28.6856 234.68 32.5516V248.593C234.68 252.459 231.546 255.593 227.68 255.593L63.8701 255.593Z" })), /* @__PURE__ */ r("g", { clipPath: "url(#paint0_diamond_4533_6792_clip_path)", "data-figma-skip-parse": "true", mask: "url(#path-4-inside-1_4533_6792)" }, /* @__PURE__ */ r("g", { transform: "matrix(0.0908399 -0.0986632 0.220271 0.965929 54.935 239.235)" }, /* @__PURE__ */ r("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }), /* @__PURE__ */ r("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, transform: "scale(1 -1)", fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }), /* @__PURE__ */ r("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, transform: "scale(-1 1)", fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }), /* @__PURE__ */ r("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, transform: "scale(-1)", fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }))), /* @__PURE__ */ r("path", { d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z", "data-figma-gradient-fill": '{"type":"GRADIENT_DIAMOND","stops":[{"color":{"r":1.0,"g":1.0,"b":1.0,"a":1.0},"position":0.0},{"color":{"r":1.0,"g":1.0,"b":1.0,"a":0.0},"position":1.0},{"color":{"r":1.0,"g":1.0,"b":1.0,"a":0.54000002145767212},"position":1.0}],"stopsVar":[],"transform":{"m00":181.67984008789062,"m01":440.54235839843750,"m02":-256.17605590820312,"m10":-197.32632446289062,"m11":1931.8571777343750,"m12":-628.03063964843750},"opacity":1.0,"blendMode":"NORMAL","visible":true}', mask: "url(#path-4-inside-1_4533_6792)" }), /* @__PURE__ */ r("path", { d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z", fill: "white", fillOpacity: 0.5, mask: "url(#path-4-inside-1_4533_6792)" }), /* @__PURE__ */ r("defs", null, /* @__PURE__ */ r("filter", { id: "filter0_d_4533_6792", x: 34.6299, y: 6.61426, width: 221.387, height: 273.626, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ r("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ r("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ r("feOffset", { dy: 3 }), /* @__PURE__ */ r("feGaussianBlur", { stdDeviation: 12 }), /* @__PURE__ */ r("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" }), /* @__PURE__ */ r("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_4533_6792" }), /* @__PURE__ */ r("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_4533_6792", result: "shape" })), /* @__PURE__ */ r("clipPath", { id: "paint0_diamond_4533_6792_clip_path" }, /* @__PURE__ */ r("path", { d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z", mask: "url(#path-4-inside-1_4533_6792)" })), /* @__PURE__ */ r("linearGradient", { id: "paint0_diamond_4533_6792", x1: 0, y1: 0, x2: 500, y2: 500, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ r("stop", { stopColor: "white" }), /* @__PURE__ */ r("stop", { offset: 1, stopColor: "white", stopOpacity: 0 }), /* @__PURE__ */ r("stop", { offset: 1, stopColor: "white", stopOpacity: 0.54 }))));
443
- function h1(t) {
444
- return new Promise((o, i) => {
398
+ }, me = (t) => /* @__PURE__ */ o("svg", { viewBox: "0 0 292 305", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o("circle", { cx: 145.743, cy: 152.074, r: 139.295, fill: "#E5F0FF" }), /* @__PURE__ */ o("g", { filter: "url(#filter0_d_4533_6792)" }, /* @__PURE__ */ o("path", { d: "M58.6299 32.6143C58.6299 29.8528 60.8685 27.6143 63.6299 27.6143H227.017C229.779 27.6143 232.017 29.8528 232.017 32.6143V248.24C232.017 251.002 229.779 253.24 227.017 253.24H63.6299C60.8685 253.24 58.6299 251.002 58.6299 248.24V32.6143Z", fill: "white" }), /* @__PURE__ */ o("path", { d: "M58.6299 32.6143C58.6299 29.8528 60.8685 27.6143 63.6299 27.6143H227.017C229.779 27.6143 232.017 29.8528 232.017 32.6143V248.24C232.017 251.002 229.779 253.24 227.017 253.24H63.6299C60.8685 253.24 58.6299 251.002 58.6299 248.24V32.6143Z", fill: "black", fillOpacity: 0.01 })), /* @__PURE__ */ o("g", { opacity: 0.5 }, /* @__PURE__ */ o("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M73.4139 60.0905C73.4139 59.62 73.7953 59.2385 74.2658 59.2385H216.865C217.336 59.2385 217.717 59.62 217.717 60.0905V62.7331C217.717 63.2036 217.336 63.585 216.865 63.585H74.2658C73.7953 63.585 73.4139 63.2036 73.4139 62.7331V60.0905Z", fill: "#C6C8D2" }), /* @__PURE__ */ o("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M73.4139 220.911C73.4139 220.44 73.7953 220.059 74.2658 220.059H216.865C217.336 220.059 217.717 220.44 217.717 220.911V223.553C217.717 224.024 217.336 224.405 216.865 224.405H74.2658C73.7953 224.405 73.4139 224.024 73.4139 223.553V220.911Z", fill: "#C6C8D2" }), /* @__PURE__ */ o("path", { d: "M73.4139 83.5619C73.4139 83.0914 73.7953 82.7099 74.2658 82.7099H130.805C131.275 82.7099 131.657 83.0914 131.657 83.5619V91.4202C131.657 91.8907 131.275 92.2722 130.805 92.2722H74.2658C73.7953 92.2722 73.4139 91.8907 73.4139 91.4202L73.4139 83.5619Z", fill: "#C6C8D2" }), /* @__PURE__ */ o("path", { d: "M73.4138 101.817C73.4138 101.347 73.7953 100.965 74.2658 100.965H130.805C131.275 100.965 131.657 101.347 131.657 101.817V109.676C131.657 110.146 131.275 110.528 130.805 110.528H74.2658C73.7953 110.528 73.4138 110.146 73.4138 109.676L73.4138 101.817Z", fill: "#C6C8D2" }), /* @__PURE__ */ o("path", { d: "M73.399 120.072C73.4072 119.601 73.7952 119.227 74.2657 119.235L154.263 120.631C154.734 120.639 155.109 121.028 155.1 121.498L154.963 129.355C154.955 129.826 154.567 130.2 154.097 130.192L74.0988 128.796C73.6284 128.787 73.2536 128.399 73.2619 127.929L73.399 120.072Z", fill: "#C6C8D2" }), /* @__PURE__ */ o("path", { d: "M73.399 138.327C73.4072 137.857 73.7952 137.482 74.2657 137.49L97.7678 137.9C98.2383 137.909 98.613 138.297 98.6048 138.767L98.498 144.886C98.4897 145.356 98.1017 145.731 97.6313 145.723L74.1292 145.313C73.6587 145.304 73.284 144.916 73.2922 144.446L73.399 138.327Z", fill: "#C6C8D2" }), /* @__PURE__ */ o("path", { d: "M73.4139 38.3582C73.4139 37.8877 73.7953 37.5063 74.2658 37.5063H180.355C180.825 37.5063 181.207 37.8877 181.207 38.3582V47.0859C181.207 47.5564 180.825 47.9378 180.355 47.9378H74.2658C73.7953 47.9378 73.4139 47.5564 73.4139 47.0859V38.3582Z", fill: "#C6C8D2" }), /* @__PURE__ */ o("path", { d: "M195.985 37.4887C195.985 37.0182 196.366 36.6367 196.837 36.6367H216.865C217.336 36.6367 217.717 37.0182 217.717 37.4887V46.2163C217.717 46.6868 217.336 47.0683 216.865 47.0683H196.837C196.366 47.0683 195.985 46.6868 195.985 46.2163V37.4887Z", fill: "#C6C8D2" })), /* @__PURE__ */ o("mask", { id: "path-4-inside-1_4533_6792", fill: "white" }, /* @__PURE__ */ o("path", { d: "M63.8701 255.593C60.0041 255.593 56.8701 252.459 56.8701 248.593L56.8701 32.5516C56.8701 28.6856 60.0041 25.5516 63.8701 25.5516L227.68 25.5516C231.546 25.5516 234.68 28.6856 234.68 32.5516V248.593C234.68 252.459 231.546 255.593 227.68 255.593L63.8701 255.593Z" })), /* @__PURE__ */ o("g", { clipPath: "url(#paint0_diamond_4533_6792_clip_path)", "data-figma-skip-parse": "true", mask: "url(#path-4-inside-1_4533_6792)" }, /* @__PURE__ */ o("g", { transform: "matrix(0.0908399 -0.0986632 0.220271 0.965929 54.935 239.235)" }, /* @__PURE__ */ o("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }), /* @__PURE__ */ o("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, transform: "scale(1 -1)", fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }), /* @__PURE__ */ o("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, transform: "scale(-1 1)", fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }), /* @__PURE__ */ o("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, transform: "scale(-1)", fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }))), /* @__PURE__ */ o("path", { d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z", "data-figma-gradient-fill": '{"type":"GRADIENT_DIAMOND","stops":[{"color":{"r":1.0,"g":1.0,"b":1.0,"a":1.0},"position":0.0},{"color":{"r":1.0,"g":1.0,"b":1.0,"a":0.0},"position":1.0},{"color":{"r":1.0,"g":1.0,"b":1.0,"a":0.54000002145767212},"position":1.0}],"stopsVar":[],"transform":{"m00":181.67984008789062,"m01":440.54235839843750,"m02":-256.17605590820312,"m10":-197.32632446289062,"m11":1931.8571777343750,"m12":-628.03063964843750},"opacity":1.0,"blendMode":"NORMAL","visible":true}', mask: "url(#path-4-inside-1_4533_6792)" }), /* @__PURE__ */ o("path", { d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z", fill: "white", fillOpacity: 0.5, mask: "url(#path-4-inside-1_4533_6792)" }), /* @__PURE__ */ o("defs", null, /* @__PURE__ */ o("filter", { id: "filter0_d_4533_6792", x: 34.6299, y: 6.61426, width: 221.387, height: 273.626, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ o("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ o("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ o("feOffset", { dy: 3 }), /* @__PURE__ */ o("feGaussianBlur", { stdDeviation: 12 }), /* @__PURE__ */ o("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" }), /* @__PURE__ */ o("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_4533_6792" }), /* @__PURE__ */ o("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_4533_6792", result: "shape" })), /* @__PURE__ */ o("clipPath", { id: "paint0_diamond_4533_6792_clip_path" }, /* @__PURE__ */ o("path", { d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z", mask: "url(#path-4-inside-1_4533_6792)" })), /* @__PURE__ */ o("linearGradient", { id: "paint0_diamond_4533_6792", x1: 0, y1: 0, x2: 500, y2: 500, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ o("stop", { stopColor: "white" }), /* @__PURE__ */ o("stop", { offset: 1, stopColor: "white", stopOpacity: 0 }), /* @__PURE__ */ o("stop", { offset: 1, stopColor: "white", stopOpacity: 0.54 }))));
399
+ function he(t) {
400
+ return new Promise((r, i) => {
445
401
  const n = new FileReader();
446
- n.onload = () => o(n.result), n.onerror = i, n.readAsDataURL(t);
402
+ n.onload = () => r(n.result), n.onerror = i, n.readAsDataURL(t);
447
403
  });
448
404
  }
449
405
  const L = ({
450
406
  manager: t,
451
- title: o,
407
+ title: r,
452
408
  text: i,
453
409
  allowSkipDocumentCapture: n,
454
410
  captureMode: a,
455
411
  error: p,
456
- pageNumber: c
412
+ pageNumber: l
457
413
  }) => {
458
- const { t: l } = C(), d = b(null), [v, g] = _(!1), D = c > 1 ? "documentCapture.tutorial.multiPageDocument" : "documentCapture.tutorial", B = o?.trim() ? o : l(`${D}.title`), P = i?.trim() ? i : l(`${D}.subtitle`), w = a === "camera", m = Z(() => g(!1), []), x = () => {
414
+ const { t: c } = C(), d = b(null), [v, g] = _(!1), V = l > 1 ? "documentCapture.tutorial.multiPageDocument" : "documentCapture.tutorial", P = r?.trim() ? r : c(`${V}.title`), B = i?.trim() ? i : c(`${V}.subtitle`), w = a === "camera", m = Z(() => g(!1), []), S = () => {
459
415
  w ? g(!0) : d.current?.click();
460
416
  };
461
417
  k(() => {
@@ -467,11 +423,11 @@ const L = ({
467
423
  document.removeEventListener("keydown", s), document.body.style.overflow = "";
468
424
  };
469
425
  }, [v, m]);
470
- const S = async (s) => {
471
- const I = s.target, V = I.files?.[0];
472
- if (V) {
473
- const O = await h1(V);
474
- t.setFile(V, O), w && m();
426
+ const x = async (s) => {
427
+ const I = s.target, y = I.files?.[0];
428
+ if (y) {
429
+ const O = await he(y);
430
+ t.setFile(y, O), w && m();
475
431
  }
476
432
  I.value = "";
477
433
  }, R = () => {
@@ -484,8 +440,8 @@ const L = ({
484
440
  H,
485
441
  {
486
442
  className: "IncodeDocumentCapturePageTutorial",
487
- title: B,
488
- subtitle: P,
443
+ title: P,
444
+ subtitle: B,
489
445
  "data-testid": "document-capture-tutorial",
490
446
  children: [
491
447
  /* @__PURE__ */ e(
@@ -494,21 +450,21 @@ const L = ({
494
450
  ref: d,
495
451
  type: "file",
496
452
  accept: "image/*,application/pdf",
497
- onChange: S,
453
+ onChange: x,
498
454
  "aria-hidden": !0,
499
455
  tabIndex: -1,
500
456
  class: "IncodeDocumentCaptureFileInput"
501
457
  }
502
458
  ),
503
- /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureTutorialContent", children: /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureTutorialIllustration", "aria-hidden": !0, children: /* @__PURE__ */ e(m1, { class: "IncodeDocumentCaptureTutorialImage" }) }) }),
504
- p ? /* @__PURE__ */ e("p", { class: "IncodeDocumentCaptureError", role: "alert", children: l("nativeCamera.maximumSize") }) : null,
459
+ /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureTutorialContent", children: /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureTutorialIllustration", "aria-hidden": !0, children: /* @__PURE__ */ e(me, { class: "IncodeDocumentCaptureTutorialImage" }) }) }),
460
+ p ? /* @__PURE__ */ e("p", { class: "IncodeDocumentCaptureError", role: "alert", children: c("nativeCamera.maximumSize") }) : null,
505
461
  /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureActions", children: [
506
462
  /* @__PURE__ */ e(
507
463
  h,
508
464
  {
509
- onClick: x,
465
+ onClick: S,
510
466
  "data-testid": "document-capture-continue-button",
511
- children: l("documentCapture.tutorial.continue")
467
+ children: c("documentCapture.tutorial.continue")
512
468
  }
513
469
  ),
514
470
  n ? /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureSkipWrapper", children: /* @__PURE__ */ e(
@@ -517,7 +473,7 @@ const L = ({
517
473
  variant: "link",
518
474
  onClick: () => t.skip(),
519
475
  "data-testid": "document-capture-skip-button",
520
- children: l("documentCapture.tutorial.skipButton")
476
+ children: c("documentCapture.tutorial.skipButton")
521
477
  }
522
478
  ) }) : null
523
479
  ] })
@@ -555,8 +511,8 @@ const L = ({
555
511
  onClick: R,
556
512
  "data-testid": "document-capture-camera-option",
557
513
  children: [
558
- /* @__PURE__ */ e(Q, {}),
559
- /* @__PURE__ */ e("span", { children: l("documentCapture.tutorial.takePhoto") })
514
+ /* @__PURE__ */ e(J, {}),
515
+ /* @__PURE__ */ e("span", { children: c("documentCapture.tutorial.takePhoto") })
560
516
  ]
561
517
  }
562
518
  ),
@@ -568,8 +524,8 @@ const L = ({
568
524
  onClick: F,
569
525
  "data-testid": "document-capture-file-option",
570
526
  children: [
571
- /* @__PURE__ */ e(X, {}),
572
- /* @__PURE__ */ e("span", { children: l("documentCapture.tutorial.uploadDocument") })
527
+ /* @__PURE__ */ e(Q, {}),
528
+ /* @__PURE__ */ e("span", { children: c("documentCapture.tutorial.uploadDocument") })
573
529
  ]
574
530
  }
575
531
  )
@@ -582,17 +538,17 @@ const L = ({
582
538
  }
583
539
  ) : null
584
540
  ] });
585
- }, f1 = ({
541
+ }, fe = ({
586
542
  config: t,
587
- onFinish: o,
543
+ onFinish: r,
588
544
  onError: i
589
545
  }) => {
590
546
  const [n, a] = T(
591
- () => U({ config: t })
592
- ), [p, c] = _(!1);
547
+ () => N({ config: t })
548
+ ), [p, l] = _(!1);
593
549
  return k(() => {
594
- n.status === "finished" && o?.(), n.status === "closed" && i?.(void 0);
595
- }, [n.status, o, i]), n.status === "tutorial" ? /* @__PURE__ */ e(
550
+ n.status === "finished" && r?.(), n.status === "closed" && i?.(void 0);
551
+ }, [n.status, r, i]), n.status === "tutorial" ? /* @__PURE__ */ e(
596
552
  L,
597
553
  {
598
554
  manager: a,
@@ -616,14 +572,14 @@ const L = ({
616
572
  }
617
573
  ) : n.status === "initializingCamera" ? /* @__PURE__ */ e(H, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeDocumentCapturePage", children: /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureCentered", children: /* @__PURE__ */ e(M, { size: "large" }) }) }) : n.status === "capturing" && n.captureMode === "camera" ? n.stream ? /* @__PURE__ */ e(f, { children: [
618
574
  /* @__PURE__ */ e(
619
- e1,
575
+ te,
620
576
  {
621
577
  stream: n.stream,
622
578
  manager: a,
623
- onOpenHelp: () => c(!0)
579
+ onOpenHelp: () => l(!0)
624
580
  }
625
581
  ),
626
- p ? /* @__PURE__ */ e(l1, { onClose: () => c(!1) }) : null
582
+ p ? /* @__PURE__ */ e(ce, { onClose: () => l(!1) }) : null
627
583
  ] }) : /* @__PURE__ */ e(
628
584
  H,
629
585
  {
@@ -633,26 +589,26 @@ const L = ({
633
589
  children: /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureCentered", children: /* @__PURE__ */ e(M, { size: "large" }) })
634
590
  }
635
591
  ) : n.status === "preview" || n.status === "uploading" || n.status === "success" || n.status === "failure" ? /* @__PURE__ */ e(
636
- p1,
592
+ pe,
637
593
  {
638
594
  state: n,
639
595
  manager: a,
640
596
  captureMode: t.captureMode ?? "camera"
641
597
  }
642
598
  ) : null;
643
- }, v1 = ({
599
+ }, ve = ({
644
600
  config: t,
645
- onFinish: o,
601
+ onFinish: r,
646
602
  onError: i
647
603
  }) => /* @__PURE__ */ e(E, { children: t ? /* @__PURE__ */ e(
648
- f1,
604
+ fe,
649
605
  {
650
606
  config: t,
651
- onFinish: o,
607
+ onFinish: r,
652
608
  onError: i
653
609
  }
654
610
  ) : null });
655
- N(v1, "incode-document-capture");
611
+ z(ve, "incode-document-capture");
656
612
  export {
657
- v1 as DocumentCapture
613
+ ve as DocumentCapture
658
614
  };
@@ -1,9 +1,9 @@
1
- import { u as e, d as A } from "./incodeModule-DLGHhn9E.js";
1
+ import { u as e, d as A } from "./button-Ca1tRSTI.js";
2
2
  import { D as G, d as E, A as w, y as R } from "./vendor-preact-BXf0bkEs.js";
3
- import { C as ie } from "./closeIcon-BMPoRQCd.js";
4
- import { E as J } from "./errorIcon-Cxcv4ISP.js";
5
- import { S as M } from "./successIcon-1BcPFhum.js";
6
- import { C as pe } from "./chevronDown-D5uHEaU-.js";
3
+ import { C as ie } from "./closeIcon-BM7WLbKp.js";
4
+ import { E as J } from "./errorIcon-BL647nVh.js";
5
+ import { S as M } from "./successIcon-BybULRRU.js";
6
+ import { C as pe } from "./chevronDown-BUaOuf9J.js";
7
7
  const ue = ({ size: r = 20 }) => /* @__PURE__ */ e(
8
8
  "svg",
9
9
  {
@@ -434,5 +434,7 @@ const ue = ({ size: r = 20 }) => /* @__PURE__ */ e(
434
434
  };
435
435
  export {
436
436
  ge as D,
437
- be as I
437
+ be as I,
438
+ ue as S,
439
+ he as a
438
440
  };