@incodetech/web 0.0.0-dev-20260505-4b09daf → 0.0.0-dev-20260505-e06a25f

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 (49) hide show
  1. package/dist/ae-signature/ae-signature.es.js +1 -1
  2. package/dist/antifraud/antifraud.es.js +2 -2
  3. package/dist/authentication/authentication.es.js +3 -3
  4. package/dist/consent/consent.es.js +2 -2
  5. package/dist/{cpfOcr-BER55mzm.js → cpfOcr-x1a7kugo.js} +1 -1
  6. package/dist/cross-document-data-match/cross-document-data-match.es.js +2 -2
  7. package/dist/curp-validation/curp-validation.es.js +2 -2
  8. package/dist/{customFields-BFjP9B-9.js → customFields-BnSONYn5.js} +2 -2
  9. package/dist/{customWatchlist-CUGte09n.js → customWatchlist-D6bC85Id.js} +2 -2
  10. package/dist/{documentCapture-BCKbnkZU.js → documentCapture-BgCvTvm0.js} +4 -4
  11. package/dist/ekyb/ekyb.es.js +1 -1
  12. package/dist/{ekybModule-z3H1-0-x.js → ekybModule-DLP7LXB1.js} +6 -6
  13. package/dist/ekybModule-UcHJIiFm.js +2 -0
  14. package/dist/ekyc/ekyc.es.js +1 -1
  15. package/dist/ekycModule-DgBJwzgp.js +2 -0
  16. package/dist/{ekycModule-D_-Rs3dt.js → ekycModule-Du3Jtaz0.js} +10 -10
  17. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  18. package/dist/{electronic-signature-vybbO1oP.js → electronic-signature-C-QUmNr8.js} +2 -2
  19. package/dist/email/email.es.js +3 -3
  20. package/dist/{extensibility-BMC0aVBo.js → extensibility-Dt-TGklI.js} +217 -231
  21. package/dist/extensibility.es.js +5 -5
  22. package/dist/face-match/face-match.es.js +1 -1
  23. package/dist/faceMatch-B9l5cU4z.js +2 -0
  24. package/dist/{faceMatch-DpvaaEgK.js → faceMatch-soVUfKae.js} +2 -2
  25. package/dist/flow/flow.es.js +3 -3
  26. package/dist/geolocation/geolocation.es.js +2 -2
  27. package/dist/governmentValidation/governmentValidation.es.js +2 -2
  28. package/dist/{hooks-K-ks8TCv.js → hooks-BVnGysT7.js} +20 -1
  29. package/dist/id/id.es.js +5 -5
  30. package/dist/{idOcr-CGyRuHlq.js → idOcr-CLXVOmx5.js} +3 -3
  31. package/dist/identity-reuse/identity-reuse.es.js +2 -2
  32. package/dist/{incodeComponent-Cx36DgvY.js → incodeComponent-9ZUPvQgC.js} +1 -1
  33. package/dist/{mandatoryConsent-DyxmgHnZ.js → mandatoryConsent-CB7gSJjK.js} +2 -2
  34. package/dist/{optionAccessibleLabel-DmTGZ8Yn.js → optionAccessibleLabel-BJn-fXDH.js} +1 -1
  35. package/dist/phone/phone.es.js +2 -2
  36. package/dist/qe-signature/qe-signature.es.js +1 -1
  37. package/dist/{redirectToMobile-C_Dwf3Sq.js → redirectToMobile---pcfaJC.js} +2 -2
  38. package/dist/selfie/selfie.es.js +3 -3
  39. package/dist/signature/signature.es.js +3 -3
  40. package/dist/{tutorial-DhSymWQF.js → tutorial-BdUoUyaE.js} +1 -1
  41. package/dist/types/extensibility.d.ts +6 -3
  42. package/dist/{useModuleLoader-BDHx7y12.js → useModuleLoader-DMiKw0PI.js} +12 -12
  43. package/dist/watchlist/watchlist.es.js +2 -2
  44. package/dist/{watchlistForBusiness-B6qmylkp.js → watchlistForBusiness-C19sUpN3.js} +2 -2
  45. package/dist/workflow/workflow.es.js +4 -4
  46. package/package.json +2 -2
  47. package/dist/ekybModule-CtlBDCFZ.js +0 -2
  48. package/dist/ekycModule-CRrgsToG.js +0 -2
  49. package/dist/faceMatch-pE36UIra.js +0 -2
@@ -1,20 +1,20 @@
1
1
  import { n as e } from "./i18n-BnVa5Y-_.js";
2
2
  import { S as t, _ as n, a as r, c as i, d as a, h as o, l as s, o as c, p as l, v as u } from "./vendor-preact-D6SntenC.js";
3
3
  import "./uiConfig-CwpQ-IM6.js";
4
- import "./hooks-K-ks8TCv.js";
5
- import "./incodeComponent-Cx36DgvY.js";
6
- import { t as d } from "./spacer-DCljE53A.js";
7
- import { t as f } from "./page-D5Mt-0zn.js";
8
- import { n as p } from "./loadingIcon-wTrHZMGC.js";
9
- import { t as m } from "./typography-BU5GeRw-.js";
10
- import { t as h } from "./spinner-CNteWaxs.js";
4
+ import { n as d, t as f } from "./hooks-BVnGysT7.js";
5
+ import "./incodeComponent-9ZUPvQgC.js";
6
+ import { t as p } from "./spacer-DCljE53A.js";
7
+ import { t as m } from "./page-D5Mt-0zn.js";
8
+ import { n as h } from "./loadingIcon-wTrHZMGC.js";
9
+ import { t as g } from "./typography-BU5GeRw-.js";
10
+ import { t as _ } from "./spinner-CNteWaxs.js";
11
11
  import "./spinner-BiPJCr9Q.js";
12
12
  import "./processing-C9xzJOq0.js";
13
- import { t as g } from "./button-4-ToV5B_.js";
14
- import { f as _, g as v, i as y, r as b, s as x, t as S } from "./icons-BtdVuyUn.js";
15
- import { t as C } from "./successIcon-SlKgTSty.js";
16
- import { t as w } from "./modal-CfeQw93y.js";
17
- import { a as T, i as E } from "./tutorial-DhSymWQF.js";
13
+ import { t as v } from "./button-4-ToV5B_.js";
14
+ import { f as y, g as b, i as x, r as S, s as C, t as w } from "./icons-BtdVuyUn.js";
15
+ import { t as T } from "./successIcon-SlKgTSty.js";
16
+ import { t as E } from "./modal-CfeQw93y.js";
17
+ import { a as D, i as O } from "./tutorial-BdUoUyaE.js";
18
18
  import "./verificationResult-BInhP13F.js";
19
19
  import "./inputComposed-28d14HXP.js";
20
20
  import "./inputComposed-CXXUBANr.js";
@@ -29,7 +29,7 @@ import "./radioGroupComposed-BPJ5Gj6B.js";
29
29
  import "./bottomSheet-BXIzn-hy.js";
30
30
  import "@incodetech/core/id";
31
31
  //#region src/shared/overlay/overlay.tsx
32
- var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("div", {
32
+ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("div", {
33
33
  class: `IncodeOverlay ${n ?? ""}`,
34
34
  role: "dialog",
35
35
  "aria-modal": "true",
@@ -41,8 +41,8 @@ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
41
41
  children: e
42
42
  })
43
43
  })
44
- }), O = ({ progress: e, label: n, className: r }) => /* @__PURE__ */ u("div", {
45
- class: p("IncodeProgressBarContainer", r),
44
+ }), A = ({ progress: e, label: n, className: r }) => /* @__PURE__ */ u("div", {
45
+ class: h("IncodeProgressBarContainer", r),
46
46
  children: [/* @__PURE__ */ u("div", {
47
47
  class: "IncodeProgressBar",
48
48
  role: "progressbar",
@@ -54,22 +54,22 @@ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
54
54
  class: "IncodeProgressBarFill",
55
55
  style: { width: `${e}%` }
56
56
  })
57
- }), n ? /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(d, { size: 24 }), /* @__PURE__ */ u("p", {
57
+ }), n ? /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(p, { size: 24 }), /* @__PURE__ */ u("p", {
58
58
  class: "IncodeProgressBarLabel",
59
59
  children: n
60
60
  })] }) : null]
61
- }), k = r((e, t) => {
61
+ }), j = r((e, t) => {
62
62
  let { class: n, rows: r = 4, ...i } = e;
63
63
  return /* @__PURE__ */ u("textarea", {
64
64
  ...i,
65
65
  ref: t,
66
66
  rows: r,
67
- class: p("IncodeTextArea", n)
67
+ class: h("IncodeTextArea", n)
68
68
  });
69
- }), A = r(({ id: e, label: t, "aria-label": n, error: r, showErrorIcon: i, helper: a, showHelperIcon: o, required: s, rows: c = 4, class: l, ...d }, f) => {
70
- let m = `${e}-helper`, h = `${e}-error`, g = [a ? m : null, r ? h : null].filter(Boolean).join(" ");
69
+ }), M = r(({ id: e, label: t, "aria-label": n, error: r, showErrorIcon: i, helper: a, showHelperIcon: o, required: s, rows: c = 4, class: l, ...d }, f) => {
70
+ let p = `${e}-helper`, m = `${e}-error`, g = [a ? p : null, r ? m : null].filter(Boolean).join(" ");
71
71
  return /* @__PURE__ */ u("div", {
72
- class: p("IncodeTextAreaComposed", l),
72
+ class: h("IncodeTextAreaComposed", l),
73
73
  children: [
74
74
  t && /* @__PURE__ */ u("label", {
75
75
  class: "IncodeTextAreaComposedLabel",
@@ -82,7 +82,7 @@ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
82
82
  }),
83
83
  /* @__PURE__ */ u("div", {
84
84
  class: "IncodeTextAreaComposedWrapper",
85
- children: /* @__PURE__ */ u(k, {
85
+ children: /* @__PURE__ */ u(j, {
86
86
  id: e,
87
87
  rows: c,
88
88
  ...d,
@@ -99,9 +99,9 @@ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
99
99
  "data-testid": `${e}-error-wrapper`,
100
100
  children: [i && /* @__PURE__ */ u("div", {
101
101
  class: "IncodeTextAreaComposedIconWrapper",
102
- children: /* @__PURE__ */ u(v, { size: 17 })
102
+ children: /* @__PURE__ */ u(b, { size: 17 })
103
103
  }), /* @__PURE__ */ u("p", {
104
- id: h,
104
+ id: m,
105
105
  class: "IncodeTextAreaComposedError",
106
106
  children: r
107
107
  })]
@@ -111,9 +111,9 @@ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
111
111
  "data-testid": `${e}-helper-wrapper`,
112
112
  children: [o && /* @__PURE__ */ u("div", {
113
113
  class: "IncodeTextAreaComposedIconWrapper",
114
- children: /* @__PURE__ */ u(C, { size: 17 })
114
+ children: /* @__PURE__ */ u(T, { size: 17 })
115
115
  }), /* @__PURE__ */ u("p", {
116
- id: m,
116
+ id: p,
117
117
  class: "IncodeTextAreaComposedHelper",
118
118
  children: a
119
119
  })]
@@ -121,16 +121,16 @@ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
121
121
  ]
122
122
  });
123
123
  });
124
- A.displayName = "TextAreaComposed";
124
+ M.displayName = "TextAreaComposed";
125
125
  //#endregion
126
126
  //#region src/shared/card/verificationOption/verificationOptionCard.tsx
127
- function j({ children: e }) {
127
+ function N({ children: e }) {
128
128
  return /* @__PURE__ */ u("div", {
129
129
  class: "IncodeVerificationOptionCardList",
130
130
  children: e
131
131
  });
132
132
  }
133
- function M({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
133
+ function P({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
134
134
  return /* @__PURE__ */ u("button", {
135
135
  type: "button",
136
136
  class: "IncodeVerificationOptionCard",
@@ -150,11 +150,11 @@ function M({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
150
150
  children: [/* @__PURE__ */ u("span", {
151
151
  class: "IncodeVerificationOptionCardTitle",
152
152
  children: t
153
- }), i && /* @__PURE__ */ u(ee, { label: i })]
153
+ }), i && /* @__PURE__ */ u(F, { label: i })]
154
154
  }), /* @__PURE__ */ u("span", {
155
155
  class: "IncodeVerificationOptionCardArrow",
156
156
  "data-testid": "chevron-right-icon",
157
- children: /* @__PURE__ */ u(x, {
157
+ children: /* @__PURE__ */ u(C, {
158
158
  size: 24,
159
159
  variant: "m"
160
160
  })
@@ -162,33 +162,33 @@ function M({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
162
162
  })]
163
163
  });
164
164
  }
165
- function ee({ label: e }) {
165
+ function F({ label: e }) {
166
166
  return /* @__PURE__ */ u("div", {
167
167
  class: "IncodeVerificationOptionCardTag",
168
- children: [/* @__PURE__ */ u(S, {}), /* @__PURE__ */ u("span", { children: e })]
168
+ children: [/* @__PURE__ */ u(w, {}), /* @__PURE__ */ u("span", { children: e })]
169
169
  });
170
170
  }
171
171
  //#endregion
172
172
  //#region src/shared/cameraOverlay/cameraFrame.tsx
173
- var N = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameState: r = "idle", className: i, children: a }, o) => {
173
+ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameState: r = "idle", className: i, children: a }, o) => {
174
174
  let s = `IncodeCameraFrame${r.charAt(0).toUpperCase()}${r.slice(1)}`;
175
175
  return /* @__PURE__ */ u("div", {
176
176
  ref: o,
177
- class: p("IncodeCameraFrame", e === "fill" && "IncodeCameraFrameFill", e === "locked" && "IncodeCameraFrameLocked", e === "locked" && n === "horizontal" && "IncodeCameraFrameHorizontal", e === "locked" && n === "vertical" && "IncodeCameraFrameVertical", s, i),
177
+ class: h("IncodeCameraFrame", e === "fill" && "IncodeCameraFrameFill", e === "locked" && "IncodeCameraFrameLocked", e === "locked" && n === "horizontal" && "IncodeCameraFrameHorizontal", e === "locked" && n === "vertical" && "IncodeCameraFrameVertical", s, i),
178
178
  style: t ? { aspectRatio: t } : void 0,
179
179
  "aria-hidden": !0,
180
180
  children: a
181
181
  });
182
- }), P = ({ children: e, className: t }) => /* @__PURE__ */ u("div", {
183
- class: p("IncodeCameraOverlay", t),
182
+ }), L = ({ children: e, className: t }) => /* @__PURE__ */ u("div", {
183
+ class: h("IncodeCameraOverlay", t),
184
184
  children: e
185
- }), F = ({ title: e, subtitle: t, visible: r = !0, className: i, titleId: a }) => {
185
+ }), R = ({ title: e, subtitle: t, visible: r = !0, className: i, titleId: a }) => {
186
186
  let o = s(null);
187
187
  return n(() => {
188
188
  o.current?.focus();
189
189
  }, []), /* @__PURE__ */ u("div", {
190
- class: p("IncodeCameraOverlayHeader", !r && "IncodeCameraOverlayHeaderHidden", i),
191
- children: [/* @__PURE__ */ u(m, {
190
+ class: h("IncodeCameraOverlayHeader", !r && "IncodeCameraOverlayHeaderHidden", i),
191
+ children: [/* @__PURE__ */ u(g, {
192
192
  ref: o,
193
193
  id: a,
194
194
  className: "IncodeCameraOverlayHeaderTitle",
@@ -199,35 +199,36 @@ var N = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
199
199
  children: t
200
200
  })]
201
201
  });
202
- }, I = ({ stream: e, children: t, videoRef: r, className: i, ...a }) => {
203
- let o = s(null), c = (e) => {
204
- o.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
202
+ }, z = ({ stream: e, children: t, videoRef: r, onPlaying: i, className: a, ...o }) => {
203
+ let c = s(null), l = (e) => {
204
+ c.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
205
205
  };
206
206
  return n(() => {
207
- o.current && e && (o.current.srcObject = e, o.current.play().catch(() => {}));
207
+ c.current && e && (c.current.srcObject = e, c.current.play().catch(() => {}));
208
208
  }, [e]), /* @__PURE__ */ u("div", {
209
- class: p("IncodeCameraView", i),
210
- ...a,
209
+ class: h("IncodeCameraView", a),
210
+ ...o,
211
211
  children: [/* @__PURE__ */ u("div", {
212
212
  class: "IncodeCameraViewVideo",
213
213
  children: /* @__PURE__ */ u("video", {
214
- ref: c,
214
+ ref: l,
215
215
  autoplay: !0,
216
216
  playsInline: !0,
217
217
  muted: !0,
218
+ onPlaying: i,
218
219
  "aria-hidden": "true",
219
220
  class: "IncodeCameraViewVideoElement"
220
221
  })
221
222
  }), t]
222
223
  });
223
- }, L = ({ onOpenHelp: t, onCapture: n, isManualCapture: r, captureAriaLabel: i, captureAriaDescribedBy: a, helpAriaLabel: o, helpButtonRef: s, captureButtonRef: c, encryptionLabel: l, children: d }) => {
224
+ }, B = ({ onOpenHelp: t, onCapture: n, isManualCapture: r, captureAriaLabel: i, captureAriaDescribedBy: a, helpAriaLabel: o, helpButtonRef: s, captureButtonRef: c, encryptionLabel: l, children: d }) => {
224
225
  let { t: f } = e();
225
226
  return /* @__PURE__ */ u("div", {
226
227
  class: "IncodeCaptureFooter",
227
228
  children: [
228
229
  /* @__PURE__ */ u("div", {
229
230
  class: "IncodeCaptureFooterEncryption",
230
- children: [/* @__PURE__ */ u(b, { className: "IncodeCaptureFooterEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l ?? f("v2.capture.label") })]
231
+ children: [/* @__PURE__ */ u(S, { className: "IncodeCaptureFooterEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l ?? f("v2.capture.label") })]
231
232
  }),
232
233
  r && n ? /* @__PURE__ */ u("div", {
233
234
  class: "IncodeCaptureFooterCaptureSection",
@@ -239,18 +240,18 @@ var N = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
239
240
  "aria-label": i ?? f("manualCapture.ariaLabel"),
240
241
  "aria-describedby": a,
241
242
  "data-testid": "capture-button",
242
- children: /* @__PURE__ */ u(_, {})
243
+ children: /* @__PURE__ */ u(y, {})
243
244
  })]
244
245
  }) : null,
245
246
  /* @__PURE__ */ u("div", {
246
247
  class: "IncodeCaptureFooterHelp",
247
- children: /* @__PURE__ */ u(g, {
248
+ children: /* @__PURE__ */ u(v, {
248
249
  ref: s,
249
250
  variant: "link",
250
251
  onClick: t,
251
252
  "aria-label": o ?? f("idv2.needHelp.open"),
252
253
  class: "IncodeCaptureFooterHelpButton",
253
- children: /* @__PURE__ */ u(y, {})
254
+ children: /* @__PURE__ */ u(x, {})
254
255
  })
255
256
  })
256
257
  ]
@@ -258,14 +259,14 @@ var N = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
258
259
  };
259
260
  //#endregion
260
261
  //#region src/shared/manualCapture/manualCapture.tsx
261
- function R(e) {
262
+ function ee(e) {
262
263
  if (e.readyState < 2 || e.videoWidth === 0 || e.videoHeight === 0) return null;
263
264
  let t = document.createElement("canvas");
264
265
  t.width = e.videoWidth, t.height = e.videoHeight;
265
266
  let n = t.getContext("2d");
266
267
  return n ? (n.drawImage(e, 0, 0), t.toDataURL("image/jpeg", .92).split(",")[1] ?? null) : null;
267
268
  }
268
- var z = ({ stream: e, onCapture: t, disabled: r }) => {
269
+ var te = ({ stream: e, onCapture: t, disabled: r }) => {
269
270
  let i = s(null);
270
271
  n(() => {
271
272
  i.current && e && (i.current.srcObject = e, i.current.play().catch(() => {}));
@@ -273,7 +274,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
273
274
  let a = o(() => {
274
275
  let e = i.current;
275
276
  if (!e || r) return;
276
- let n = R(e);
277
+ let n = ee(e);
277
278
  n && t(n);
278
279
  }, [t, r]);
279
280
  return /* @__PURE__ */ u("div", {
@@ -290,7 +291,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
290
291
  })
291
292
  }), /* @__PURE__ */ u("div", {
292
293
  class: "IncodeManualCaptureButtonContainer",
293
- children: /* @__PURE__ */ u(g, {
294
+ children: /* @__PURE__ */ u(v, {
294
295
  variant: "primary",
295
296
  size: "L",
296
297
  onClick: a,
@@ -301,7 +302,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
301
302
  })
302
303
  })]
303
304
  });
304
- }, B = ({ className: e }) => /* @__PURE__ */ u("svg", {
305
+ }, ne = ({ className: e }) => /* @__PURE__ */ u("svg", {
305
306
  width: "24",
306
307
  height: "24",
307
308
  viewBox: "0 0 24 24",
@@ -331,7 +332,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
331
332
  fill: "currentColor"
332
333
  })
333
334
  ]
334
- }), te = ({ className: e }) => /* @__PURE__ */ u("svg", {
335
+ }), re = ({ className: e }) => /* @__PURE__ */ u("svg", {
335
336
  width: "24",
336
337
  height: "24",
337
338
  viewBox: "0 0 24 24",
@@ -357,7 +358,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
357
358
  fill: "currentColor"
358
359
  })
359
360
  ]
360
- }), ne = ({ className: e }) => /* @__PURE__ */ u("svg", {
361
+ }), ie = ({ className: e }) => /* @__PURE__ */ u("svg", {
361
362
  width: "24",
362
363
  height: "24",
363
364
  viewBox: "0 0 24 24",
@@ -391,7 +392,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
391
392
  fill: "currentColor"
392
393
  })
393
394
  ]
394
- }), re = ({ className: e }) => /* @__PURE__ */ u("svg", {
395
+ }), ae = ({ className: e }) => /* @__PURE__ */ u("svg", {
395
396
  width: "64",
396
397
  height: "64",
397
398
  viewBox: "0 0 64 64",
@@ -408,13 +409,13 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
408
409
  d: "M32 41C33.1045 41 34 41.8955 34 43C34 44.1045 33.1045 45 32 45C30.8954 45 30 44.1045 30 43C30 41.8954 30.8954 41 32 41ZM32 18.5C36.6906 18.5001 40.1669 22.0578 40.167 26.5605C40.167 28.8363 39.239 30.7175 37.7119 32.0381C36.5502 33.0426 35.086 33.6855 33.5 33.9863V38H30.5V31.2568L31.9072 31.1699C33.5141 31.0696 34.8469 30.5494 35.75 29.7686C36.6245 29.0121 37.167 27.9561 37.167 26.5605C37.1669 23.7203 35.0394 21.5001 32 21.5C28.9065 21.5001 26.7253 23.7825 26.1406 26.8418L23.1934 26.2793C23.9755 22.1855 27.1118 18.5001 32 18.5Z",
409
410
  fill: "white"
410
411
  })]
411
- }), ie = ({ open: t, onClose: n, onTakeManually: r, portalContainer: i }) => {
412
+ }), oe = ({ open: t, onClose: n, onTakeManually: r, portalContainer: i }) => {
412
413
  let { t: a } = e(), s = o((e) => {
413
414
  e?.focus();
414
415
  }, []), c = () => {
415
416
  r(), n();
416
417
  };
417
- return /* @__PURE__ */ u(w.Root, {
418
+ return /* @__PURE__ */ u(E.Root, {
418
419
  open: t,
419
420
  onOpenChange: (e) => {
420
421
  e || n();
@@ -423,14 +424,14 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
423
424
  hasBackdrop: !1,
424
425
  portalContainer: i ?? void 0,
425
426
  manageInitialFocus: !1,
426
- children: /* @__PURE__ */ u(w.Content, {
427
+ children: /* @__PURE__ */ u(E.Content, {
427
428
  class: "IncodeCommonIssuesContent",
428
429
  children: [
429
- /* @__PURE__ */ u(w.Icon, {
430
+ /* @__PURE__ */ u(E.Icon, {
430
431
  class: "IncodeCommonIssuesQuestionIcon",
431
- children: /* @__PURE__ */ u(re, {})
432
+ children: /* @__PURE__ */ u(ae, {})
432
433
  }),
433
- /* @__PURE__ */ u(w.TitleSection, { children: /* @__PURE__ */ u(m, {
434
+ /* @__PURE__ */ u(E.TitleSection, { children: /* @__PURE__ */ u(g, {
434
435
  id: "incode-modal-title",
435
436
  ref: s,
436
437
  className: "IncodeCommonIssuesTitle",
@@ -445,7 +446,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
445
446
  children: [/* @__PURE__ */ u("div", {
446
447
  class: "IncodeCommonIssuesCardIcon",
447
448
  "aria-hidden": "true",
448
- children: /* @__PURE__ */ u(te, {})
449
+ children: /* @__PURE__ */ u(re, {})
449
450
  }), /* @__PURE__ */ u("div", {
450
451
  class: "IncodeCommonIssuesCardText",
451
452
  children: [/* @__PURE__ */ u("h3", {
@@ -462,7 +463,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
462
463
  children: [/* @__PURE__ */ u("div", {
463
464
  class: "IncodeCommonIssuesCardIcon",
464
465
  "aria-hidden": "true",
465
- children: /* @__PURE__ */ u(B, {})
466
+ children: /* @__PURE__ */ u(ne, {})
466
467
  }), /* @__PURE__ */ u("div", {
467
468
  class: "IncodeCommonIssuesCardText",
468
469
  children: [/* @__PURE__ */ u("h3", {
@@ -479,7 +480,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
479
480
  children: [/* @__PURE__ */ u("div", {
480
481
  class: "IncodeCommonIssuesCardIcon",
481
482
  "aria-hidden": "true",
482
- children: /* @__PURE__ */ u(ne, {})
483
+ children: /* @__PURE__ */ u(ie, {})
483
484
  }), /* @__PURE__ */ u("div", {
484
485
  class: "IncodeCommonIssuesCardText",
485
486
  children: [/* @__PURE__ */ u("h3", {
@@ -493,14 +494,14 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
493
494
  })
494
495
  ]
495
496
  }),
496
- /* @__PURE__ */ u(w.Actions, {
497
+ /* @__PURE__ */ u(E.Actions, {
497
498
  class: "IncodeCommonIssuesButtons",
498
- children: [/* @__PURE__ */ u(g, {
499
+ children: [/* @__PURE__ */ u(v, {
499
500
  variant: "link",
500
501
  onClick: c,
501
502
  class: "IncodeCommonIssuesTakeManually",
502
503
  children: a("commonIssues.takeManually")
503
- }), /* @__PURE__ */ u(g, {
504
+ }), /* @__PURE__ */ u(v, {
504
505
  onClick: n,
505
506
  class: "IncodeCommonIssuesTryAgain",
506
507
  children: a("commonIssues.tryAgain")
@@ -509,17 +510,17 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
509
510
  ]
510
511
  })
511
512
  });
512
- }, ae = ({ orientation: e, mode: t, state: n, children: r, className: i }) => {
513
+ }, V = ({ orientation: e, mode: t, state: n, children: r, className: i }) => {
513
514
  let a = e !== "vertical" || t === "passport", o = t === "passport", s = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
514
515
  return /* @__PURE__ */ u("div", {
515
- class: p("IncodeCaptureFrame", a ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical", s, o && "IncodeCaptureFramePassport", i),
516
+ class: h("IncodeCaptureFrame", a ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical", s, o && "IncodeCaptureFramePassport", i),
516
517
  "aria-hidden": "true",
517
518
  role: "presentation",
518
519
  children: r
519
520
  });
520
- }, V = ({ imageUrl: t, orientation: n, mode: r, borderState: i, topContent: a, bottomContent: o, overlayContent: s, blurImage: c }) => {
521
+ }, H = ({ imageUrl: t, orientation: n, mode: r, borderState: i, topContent: a, bottomContent: o, overlayContent: s, blurImage: c }) => {
521
522
  let { t: l } = e();
522
- return /* @__PURE__ */ u(f, {
523
+ return /* @__PURE__ */ u(m, {
523
524
  hideHeader: !0,
524
525
  hideFooterBranding: !0,
525
526
  children: /* @__PURE__ */ u("div", {
@@ -531,7 +532,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
531
532
  class: "IncodeIdProcessingTopArea",
532
533
  children: a
533
534
  }),
534
- /* @__PURE__ */ u(ae, {
535
+ /* @__PURE__ */ u(V, {
535
536
  orientation: n,
536
537
  mode: r === "id" ? "front" : r,
537
538
  state: i,
@@ -539,7 +540,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
539
540
  src: t,
540
541
  alt: "",
541
542
  "aria-hidden": "true",
542
- class: p("IncodeIdProcessingImage", c ? "IncodeIdProcessingImageBlurred" : void 0)
543
+ class: h("IncodeIdProcessingImage", c ? "IncodeIdProcessingImageBlurred" : void 0)
543
544
  }), s && /* @__PURE__ */ u("div", {
544
545
  class: "IncodeIdProcessingOverlay",
545
546
  "aria-hidden": "true",
@@ -550,24 +551,24 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
550
551
  class: "IncodeIdProcessingBottomArea",
551
552
  children: [/* @__PURE__ */ u("div", {
552
553
  class: "IncodeCaptureEncryptionLabel",
553
- children: [/* @__PURE__ */ u(b, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l("v2.capture.label") })]
554
+ children: [/* @__PURE__ */ u(S, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l("v2.capture.label") })]
554
555
  }), o]
555
556
  })
556
557
  ]
557
558
  })
558
559
  })
559
560
  });
560
- }, H = ({ imageUrl: t, progress: r, orientation: i, mode: a, blurImage: o }) => {
561
- let { t: c } = e(), d = s(null), f = i !== "vertical" || a === "passport", [p, h] = l(null);
561
+ }, U = ({ imageUrl: t, progress: r, orientation: i, mode: a, blurImage: o }) => {
562
+ let { t: c } = e(), d = s(null), f = i !== "vertical" || a === "passport", [p, m] = l(null);
562
563
  return n(() => {
563
564
  d.current?.focus();
564
565
  }, []), n(() => {
565
566
  f ? import("./id-laser-h-BUV5ROmy.js").then((e) => {
566
- h(e.default);
567
+ m(e.default);
567
568
  }) : import("./id-laser-v-DzsdfzVM.js").then((e) => {
568
- h(e.default);
569
+ m(e.default);
569
570
  });
570
- }, [f]), /* @__PURE__ */ u(V, {
571
+ }, [f]), /* @__PURE__ */ u(H, {
571
572
  imageUrl: t,
572
573
  orientation: i,
573
574
  mode: a,
@@ -575,7 +576,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
575
576
  blurImage: o,
576
577
  topContent: /* @__PURE__ */ u("div", {
577
578
  class: "IncodeAnalyzingContent",
578
- children: [/* @__PURE__ */ u(O, { progress: r }), /* @__PURE__ */ u(m, {
579
+ children: [/* @__PURE__ */ u(A, { progress: r }), /* @__PURE__ */ u(g, {
579
580
  ref: d,
580
581
  id: "analyzing-title",
581
582
  className: "IncodeAnalyzingTitle",
@@ -583,13 +584,13 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
583
584
  children: c("idv2.capture.processing.analyzing")
584
585
  })]
585
586
  }),
586
- overlayContent: p ? /* @__PURE__ */ u(T, {
587
+ overlayContent: p ? /* @__PURE__ */ u(D, {
587
588
  animationData: p,
588
589
  loop: !0,
589
590
  className: "IncodeAnalyzingLottie"
590
591
  }) : null
591
592
  });
592
- }, U = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
593
+ }, W = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
593
594
  class: e,
594
595
  width: "32",
595
596
  height: "32",
@@ -602,7 +603,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
602
603
  d: "M16 0C24.8363 0.00012782 32 7.1636 32 16C31.9999 24.8363 24.8363 31.9999 16 32C7.16362 32 7.37067e-05 24.8364 0 16C0 7.16352 7.16357 0 16 0ZM22.3486 11.2314C21.8838 10.7668 21.1503 10.736 20.6494 11.1387L20.6406 11.1455L20.5537 11.2236L13.7139 18.0635L11.4521 15.8008C10.9543 15.3032 10.1473 15.3033 9.64941 15.8008C9.18435 16.2658 9.15345 17.0008 9.55664 17.502L9.56348 17.5098L9.6416 17.5977L12.8125 20.7686C13.2775 21.2335 14.0117 21.2644 14.5127 20.8613L14.5205 20.8545L14.6084 20.7764L22.3486 13.0352C22.8467 12.5371 22.8467 11.7295 22.3486 11.2314Z",
603
604
  fill: "#189F60"
604
605
  })
605
- }), W = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
606
+ }), G = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
606
607
  class: e,
607
608
  width: "33",
608
609
  height: "32",
@@ -615,29 +616,29 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
615
616
  d: "M16.5 0C25.3219 0 32.5 7.17642 32.5 16C32.5 24.8219 25.3219 32 16.5 32C7.67811 32 0.5 24.8219 0.5 16C0.5 7.17642 7.67811 0 16.5 0ZM13.6553 11.3701C13.1618 10.8767 12.3636 10.8767 11.8701 11.3701C11.3767 11.8636 11.3767 12.6618 11.8701 13.1553L14.9053 16.1924L11.8721 19.2256C11.3803 19.7191 11.3803 20.5173 11.8721 21.0107C12.3656 21.504 13.1658 21.5041 13.6592 21.0107L16.6924 17.9775L19.7334 21.0205C19.981 21.2664 20.3029 21.3916 20.6279 21.3916C20.9513 21.3916 21.2746 21.2664 21.5205 21.0205C22.014 20.527 22.014 19.7269 21.5205 19.2334L18.4775 16.1924L21.5107 13.1572C22.0041 12.6638 22.004 11.8639 21.5107 11.3721C21.0173 10.8786 20.2191 10.8786 19.7256 11.3721L16.6904 14.4053L13.6553 11.3701Z",
616
617
  fill: "#E71111"
617
618
  })
618
- }), G = ({ variant: r, imageUrl: i, orientation: a, mode: o, title: c, subtitle: l, buttonText: f, onButtonClick: p, attemptsRemaining: h, blurImage: _ }) => {
619
- let { t: v } = e(), y = s(null);
619
+ }), K = ({ variant: r, imageUrl: i, orientation: a, mode: o, title: c, subtitle: l, buttonText: d, onButtonClick: f, attemptsRemaining: m, blurImage: h }) => {
620
+ let { t: _ } = e(), y = s(null);
620
621
  return n(() => {
621
622
  y.current?.focus();
622
- }, []), /* @__PURE__ */ u(V, {
623
+ }, []), /* @__PURE__ */ u(H, {
623
624
  imageUrl: i,
624
625
  orientation: a,
625
626
  mode: o,
626
627
  borderState: r,
627
- blurImage: _,
628
+ blurImage: h,
628
629
  topContent: /* @__PURE__ */ u("div", {
629
630
  class: "IncodeIdProcessingResultContent",
630
631
  role: "status",
631
632
  children: [
632
- u(r === "success" ? U : W, { className: "IncodeIdProcessingResultIcon" }),
633
- /* @__PURE__ */ u(d, { size: 16 }),
634
- c && /* @__PURE__ */ u(m, {
633
+ u(r === "success" ? W : G, { className: "IncodeIdProcessingResultIcon" }),
634
+ /* @__PURE__ */ u(p, { size: 16 }),
635
+ c && /* @__PURE__ */ u(g, {
635
636
  ref: y,
636
637
  className: "IncodeIdProcessingResultTitle",
637
638
  tabIndex: -1,
638
639
  children: c
639
640
  }),
640
- l && /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(d, { size: 12 }), /* @__PURE__ */ u("p", {
641
+ l && /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(p, { size: 12 }), /* @__PURE__ */ u("p", {
641
642
  class: "IncodeIdProcessingResultSubtitle",
642
643
  children: l
643
644
  })] })
@@ -645,21 +646,21 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
645
646
  }),
646
647
  bottomContent: /* @__PURE__ */ u("div", {
647
648
  class: "IncodeIdProcessingResultButtonContainer",
648
- children: [h !== void 0 && h > 0 && /* @__PURE__ */ u("p", {
649
+ children: [m !== void 0 && m > 0 && /* @__PURE__ */ u("p", {
649
650
  class: "IncodeIdProcessingResultAttempts",
650
- children: v("v2.idError.attemptsLeft", { count: h })
651
- }), /* @__PURE__ */ u(g, {
652
- onClick: p,
651
+ children: _("v2.idError.attemptsLeft", { count: m })
652
+ }), /* @__PURE__ */ u(v, {
653
+ onClick: f,
653
654
  "data-testid": "retry-button",
654
- children: f
655
+ children: d
655
656
  })]
656
657
  })
657
658
  });
658
- }, K = ({ manager: t, state: n, blurImage: r }) => {
659
+ }, q = ({ manager: t, state: n, blurImage: r }) => {
659
660
  let { t: i } = e();
660
661
  if (!n.previewImageUrl) return null;
661
662
  let a = n.currentMode === "passport" ? "passport" : "id";
662
- return /* @__PURE__ */ u(G, {
663
+ return /* @__PURE__ */ u(K, {
663
664
  variant: "success",
664
665
  imageUrl: n.previewImageUrl,
665
666
  orientation: n.orientation,
@@ -670,7 +671,7 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
670
671
  onButtonClick: () => t.nextStep(),
671
672
  blurImage: r
672
673
  });
673
- }, q = ({ manager: t, state: n, blurImage: r, ...i }) => {
674
+ }, J = ({ manager: t, state: n, blurImage: r, ...i }) => {
674
675
  let { t: a } = e();
675
676
  if (n.status === "error") return /* @__PURE__ */ u("div", {
676
677
  class: "IncodeIdError",
@@ -678,14 +679,14 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
678
679
  children: [/* @__PURE__ */ u("div", {
679
680
  class: "IncodeIdErrorMessage",
680
681
  children: n.error
681
- }), /* @__PURE__ */ u(g, {
682
+ }), /* @__PURE__ */ u(v, {
682
683
  onClick: () => t.reset(),
683
684
  "data-testid": "retry-button",
684
685
  children: a("idv2.capture.processing.tryAgain")
685
686
  })]
686
687
  });
687
688
  let o = n.currentMode === "passport" ? "passport" : "id";
688
- return n.previewImageUrl ? /* @__PURE__ */ u(G, {
689
+ return n.previewImageUrl ? /* @__PURE__ */ u(K, {
689
690
  variant: "error",
690
691
  imageUrl: n.previewImageUrl,
691
692
  orientation: n.orientation,
@@ -697,11 +698,11 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
697
698
  attemptsRemaining: n.attemptsRemaining,
698
699
  blurImage: r
699
700
  }) : null;
700
- }, J = ({ manager: t }) => {
701
+ }, se = ({ manager: t }) => {
701
702
  let { t: r } = e(), i = s(null);
702
703
  return n(() => {
703
704
  i.current?.focus();
704
- }, []), /* @__PURE__ */ u(f, {
705
+ }, []), /* @__PURE__ */ u(m, {
705
706
  hideHeader: !0,
706
707
  hideFooterBranding: !0,
707
708
  className: "IncodeIdExpiredPage",
@@ -709,23 +710,23 @@ var z = ({ stream: e, onCapture: t, disabled: r }) => {
709
710
  class: "IncodeIdExpiredContent",
710
711
  role: "alert",
711
712
  children: [
712
- /* @__PURE__ */ u(W, { className: "IncodeIdExpiredIcon" }),
713
- /* @__PURE__ */ u(m, {
713
+ /* @__PURE__ */ u(G, { className: "IncodeIdExpiredIcon" }),
714
+ /* @__PURE__ */ u(g, {
714
715
  ref: i,
715
716
  tabIndex: -1,
716
717
  className: "IncodeIdExpiredTitle",
717
718
  children: r("idv2.capture.notifications.expiredId")
718
719
  }),
719
- /* @__PURE__ */ u(d, { size: 12 }),
720
+ /* @__PURE__ */ u(p, { size: 12 }),
720
721
  /* @__PURE__ */ u("p", {
721
722
  class: "IncodeIdExpiredSubtitle",
722
723
  children: r("idv2.capture.notifications.useDifferent")
723
724
  }),
724
- /* @__PURE__ */ u(d, { size: 80 })
725
+ /* @__PURE__ */ u(p, { size: 80 })
725
726
  ]
726
727
  }), /* @__PURE__ */ u("div", {
727
728
  class: "IncodeIdExpiredButtonContainer",
728
- children: /* @__PURE__ */ u(g, {
729
+ children: /* @__PURE__ */ u(v, {
729
730
  variant: "primary",
730
731
  onClick: () => {
731
732
  t.retryCapture();
@@ -752,15 +753,15 @@ function Q(e) {
752
753
  Y.set("blur", t.default), Y.set("glare", n.default), Y.set("align", r.default), Y.set("front", i.default), Y.set("back", a.default), e?.();
753
754
  }).catch(() => {}));
754
755
  }
755
- function oe() {
756
+ function ce() {
756
757
  Q();
757
758
  }
758
- function se() {
759
+ function le() {
759
760
  n(() => {
760
- oe();
761
+ ce();
761
762
  }, []);
762
763
  }
763
- function ce(t, r) {
764
+ function ue(t, r) {
764
765
  let { t: i } = e(), [, a] = l(0);
765
766
  if (n(() => {
766
767
  Q(() => a((e) => e + 1));
@@ -791,24 +792,24 @@ function ce(t, r) {
791
792
  }
792
793
  //#endregion
793
794
  //#region src/modules/id/capture/captureNotification.tsx
794
- var le = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
795
- let { t: c } = e(), l = ce(r, i), f = s(null), m = s({
795
+ var de = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
796
+ let { t: c } = e(), l = ue(r, i), d = s(null), f = s({
796
797
  message: "",
797
798
  at: 0
798
- }), h = s(r), g = s(!1), _ = s(), v = s(), y = r === "detecting" || r === "idNotDetected" || r === "manualCapture", b = r === "manualCapture", x = r === "wrongSide", S = r === "farAway", C = r === "glare", w = r === "blur", E = o((e) => {
799
- let t = Date.now(), n = m.current;
799
+ }), m = s(r), g = s(!1), _ = s(), v = s(), y = r === "detecting" || r === "idNotDetected" || r === "manualCapture", b = r === "manualCapture", x = r === "wrongSide", S = r === "farAway", C = r === "glare", w = r === "blur", T = o((e) => {
800
+ let t = Date.now(), n = f.current;
800
801
  if (e === n.message && t - n.at < 200) return;
801
- m.current = {
802
+ f.current = {
802
803
  message: e,
803
804
  at: t
804
805
  };
805
- let r = f.current;
806
+ let r = d.current;
806
807
  r && (clearTimeout(_.current), r.textContent = "", v.current = setTimeout(() => {
807
808
  r.textContent = e, _.current = setTimeout(() => {
808
809
  r.textContent = "";
809
810
  }, 3e3);
810
811
  }, 50));
811
- }, []), D = o(() => c(i === "passport" ? "idv2.capture.fillFramePassport" : i === "back" ? "idv2.capture.fillFrameBack" : "idv2.capture.fillFrameFront"), [i, c]);
812
+ }, []), E = o(() => c(i === "passport" ? "idv2.capture.fillFramePassport" : i === "back" ? "idv2.capture.fillFrameBack" : "idv2.capture.fillFrameFront"), [i, c]);
812
813
  return n(() => {
813
814
  if (b) {
814
815
  g.current = !1;
@@ -816,19 +817,19 @@ var le = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
816
817
  }
817
818
  if (g.current || !y) return;
818
819
  let e = setTimeout(() => {
819
- g.current = !0, E(D());
820
+ g.current = !0, T(E());
820
821
  }, 500);
821
822
  return () => clearTimeout(e);
822
823
  }, [
823
824
  y,
824
825
  b,
825
- E,
826
- D
826
+ T,
827
+ E
827
828
  ]), n(() => {
828
- let e = h.current;
829
- h.current = r, e !== "manualCapture" && b && E(c("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
829
+ let e = m.current;
830
+ m.current = r, e !== "manualCapture" && b && T(c("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
830
831
  }, [
831
- E,
832
+ T,
832
833
  r,
833
834
  b,
834
835
  c
@@ -836,25 +837,25 @@ var le = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
836
837
  if (!a) {
837
838
  if (x) {
838
839
  let e = i === "front" || i === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
839
- E(`${c(`${e}.title`)}. ${c(`${e}.description`)}`);
840
+ T(`${c(`${e}.title`)}. ${c(`${e}.description`)}`);
840
841
  return;
841
842
  }
842
843
  if (S) {
843
- E(`${c("idv2.capture.notifications.notAligned.title")}.`);
844
+ T(`${c("idv2.capture.notifications.notAligned.title")}.`);
844
845
  return;
845
846
  }
846
847
  if (C) {
847
- E(`${c("idv2.capture.notifications.glare.title")}.`);
848
+ T(`${c("idv2.capture.notifications.glare.title")}.`);
848
849
  return;
849
850
  }
850
851
  if (w) {
851
- E(`${c("idv2.capture.notifications.blur.title")}.`);
852
+ T(`${c("idv2.capture.notifications.blur.title")}.`);
852
853
  return;
853
854
  }
854
- y && g.current && E(D());
855
+ y && g.current && T(E());
855
856
  }
856
857
  }, [
857
- E,
858
+ T,
858
859
  w,
859
860
  a,
860
861
  S,
@@ -863,22 +864,22 @@ var le = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
863
864
  x,
864
865
  i,
865
866
  c,
866
- D
867
+ E
867
868
  ]), n(() => () => {
868
869
  clearTimeout(v.current), clearTimeout(_.current);
869
870
  }, []), /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u("div", {
870
- ref: f,
871
+ ref: d,
871
872
  class: "IncodeSrOnly",
872
873
  "aria-live": "assertive",
873
874
  "aria-atomic": "true"
874
875
  }), l ? /* @__PURE__ */ u("div", {
875
- class: p("IncodeIdCaptureNotification"),
876
+ class: h("IncodeIdCaptureNotification"),
876
877
  "aria-hidden": "true",
877
878
  children: /* @__PURE__ */ u("div", {
878
879
  class: "IncodeIdCaptureNotificationContent",
879
880
  children: [
880
881
  /* @__PURE__ */ u("div", {
881
- class: p("IncodeIdCaptureNotificationText"),
882
+ class: h("IncodeIdCaptureNotificationText"),
882
883
  children: [/* @__PURE__ */ u("div", {
883
884
  class: "IncodeIdCaptureNotificationTitle",
884
885
  children: l.title
@@ -887,13 +888,13 @@ var le = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
887
888
  children: l.description
888
889
  })]
889
890
  }),
890
- /* @__PURE__ */ u(d, {
891
+ /* @__PURE__ */ u(p, {
891
892
  size: 16,
892
893
  direction: "horizontal"
893
894
  }),
894
895
  l.animationData && /* @__PURE__ */ u("div", {
895
896
  class: "IncodeIdCaptureNotificationAnimation",
896
- children: /* @__PURE__ */ u(T, {
897
+ children: /* @__PURE__ */ u(D, {
897
898
  animationData: l.animationData,
898
899
  loop: !0
899
900
  })
@@ -901,34 +902,34 @@ var le = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
901
902
  ]
902
903
  })
903
904
  }) : null] });
904
- }, ue = i(() => import("./front-horizontal-hint-CNu99K_l.js")), de = i(() => import("./front-vertical-hint-CpQjOGpU.js")), fe = i(() => import("./back-horizontal-hint-Cch8dR2s.js")), pe = i(() => import("./back-vertical-hint-Dzn5uXKH.js")), me = i(() => import("./passport-horizontal-hint-WqdYMc9Y.js")), he = i(() => import("./passport-vertical-hint-rNP6GykM.js")), ge = {
905
+ }, fe = i(() => import("./front-horizontal-hint-CNu99K_l.js")), pe = i(() => import("./front-vertical-hint-CpQjOGpU.js")), me = i(() => import("./back-horizontal-hint-Cch8dR2s.js")), he = i(() => import("./back-vertical-hint-Dzn5uXKH.js")), ge = i(() => import("./passport-horizontal-hint-WqdYMc9Y.js")), _e = i(() => import("./passport-vertical-hint-rNP6GykM.js")), ve = {
905
906
  "front-horizontal": 348,
906
907
  "back-horizontal": 348,
907
908
  "passport-horizontal": 342
908
- }, _e = {
909
+ }, ye = {
909
910
  "front-vertical": 446,
910
911
  "back-vertical": 446,
911
912
  "passport-vertical": 342
912
913
  };
913
- function ve(e, t, n, r) {
914
- let i = `${e}-${t}`, a = ge[i];
914
+ function be(e, t, n, r) {
915
+ let i = `${e}-${t}`, a = ve[i];
915
916
  if (a) return n / a;
916
- let o = _e[i];
917
+ let o = ye[i];
917
918
  return o ? r / o : 1;
918
919
  }
919
- var ye = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
920
+ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
920
921
  let i = s(null), [a, o] = l(1);
921
922
  n(() => {
922
923
  let n = i.current;
923
924
  if (!n) return;
924
925
  let r = () => {
925
- o(ve(e, t, n.clientWidth, n.clientHeight));
926
+ o(be(e, t, n.clientWidth, n.clientHeight));
926
927
  };
927
928
  r();
928
929
  let a = new ResizeObserver(r);
929
930
  return a.observe(n), () => a.disconnect();
930
931
  }, [e, t]);
931
- let d = () => e === "front" ? u(t === "horizontal" ? ue : de, {}) : e === "back" ? u(t === "horizontal" ? fe : pe, {}) : e === "passport" ? u(t === "horizontal" ? me : he, {}) : null;
932
+ let d = () => e === "front" ? u(t === "horizontal" ? fe : pe, {}) : e === "back" ? u(t === "horizontal" ? me : he, {}) : e === "passport" ? u(t === "horizontal" ? ge : _e, {}) : null;
932
933
  return /* @__PURE__ */ u("div", {
933
934
  ref: i,
934
935
  class: "IncodeIdHint",
@@ -949,9 +950,9 @@ var ye = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
949
950
  })
950
951
  })
951
952
  });
952
- }, be = r(({ mode: t, orientation: r, detectionStatus: i, counterValue: o, isCapturing: c, showManualCapture: d, onCapture: f, onOpenHelp: m, helpButtonRef: h, captureButtonRef: g }, _) => {
953
+ }, xe = r(({ mode: t, orientation: r, detectionStatus: i, counterValue: o, isCapturing: c, showManualCapture: d, onCapture: f, onOpenHelp: p, helpButtonRef: m, captureButtonRef: g }, _) => {
953
954
  let { t: v } = e();
954
- se();
955
+ le();
955
956
  let y = s(!1), [b, x] = l(!1);
956
957
  n(() => {
957
958
  if (i === "idNotDetected") {
@@ -988,32 +989,32 @@ var ye = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
988
989
  t,
989
990
  v
990
991
  ]), w = S(), T = t === "passport", E = r !== "vertical" || T ? "horizontal" : "vertical";
991
- return /* @__PURE__ */ u(P, {
992
+ return /* @__PURE__ */ u(L, {
992
993
  className: "IncodeCaptureOverlayId",
993
994
  children: [
994
995
  /* @__PURE__ */ u("div", {
995
996
  class: "IncodeCaptureTopSection",
996
- children: [/* @__PURE__ */ u(le, {
997
+ children: [/* @__PURE__ */ u(de, {
997
998
  detectionStatus: i,
998
999
  mode: t,
999
1000
  isCapturing: c
1000
- }), /* @__PURE__ */ u(F, {
1001
+ }), /* @__PURE__ */ u(R, {
1001
1002
  title: C?.title ?? "",
1002
1003
  subtitle: C?.subtitle,
1003
1004
  visible: C !== null,
1004
1005
  titleId: "id-capture-heading"
1005
1006
  })]
1006
1007
  }),
1007
- /* @__PURE__ */ u(N, {
1008
+ /* @__PURE__ */ u(I, {
1008
1009
  ref: _,
1009
1010
  variant: "locked",
1010
1011
  orientation: E,
1011
1012
  frameState: w,
1012
- className: p(T && "IncodeCaptureFramePassport"),
1013
+ className: h(T && "IncodeCaptureFramePassport"),
1013
1014
  children: [c && o > 0 && /* @__PURE__ */ u("div", {
1014
1015
  class: "IncodeCaptureCounter",
1015
1016
  children: o
1016
- }), b && /* @__PURE__ */ u(ye, {
1017
+ }), b && /* @__PURE__ */ u($, {
1017
1018
  mode: t,
1018
1019
  orientation: r ?? "horizontal",
1019
1020
  onAnimationEnd: () => x(!1)
@@ -1025,11 +1026,11 @@ var ye = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1025
1026
  "aria-atomic": "true",
1026
1027
  children: c && o > 0 ? o : ""
1027
1028
  }),
1028
- /* @__PURE__ */ u(L, {
1029
- onOpenHelp: m,
1029
+ /* @__PURE__ */ u(B, {
1030
+ onOpenHelp: p,
1030
1031
  onCapture: f,
1031
1032
  isManualCapture: d,
1032
- helpButtonRef: h,
1033
+ helpButtonRef: m,
1033
1034
  captureButtonRef: g,
1034
1035
  captureAriaDescribedBy: d ? "manual-capture-tooltip" : void 0,
1035
1036
  children: d ? /* @__PURE__ */ u("div", {
@@ -1047,10 +1048,10 @@ var ye = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1047
1048
  })
1048
1049
  ]
1049
1050
  });
1050
- }), $ = ({ manager: e, state: t }) => {
1051
+ }), Se = ({ manager: e, state: t }) => {
1051
1052
  if (t.captureStatus === "uploading" && t.previewImageUrl) {
1052
1053
  let e = t.currentMode === "passport" ? "passport" : "id";
1053
- return /* @__PURE__ */ u(H, {
1054
+ return /* @__PURE__ */ u(U, {
1054
1055
  imageUrl: t.previewImageUrl,
1055
1056
  progress: t.uploadProgress ?? 0,
1056
1057
  orientation: t.orientation,
@@ -1058,68 +1059,53 @@ var ye = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1058
1059
  blurImage: t.ageAssurance
1059
1060
  });
1060
1061
  }
1061
- return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(K, {
1062
+ return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(q, {
1062
1063
  manager: e,
1063
1064
  state: t,
1064
1065
  blurImage: t.ageAssurance
1065
- }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ u(q, {
1066
+ }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ u(J, {
1066
1067
  manager: e,
1067
1068
  state: t,
1068
1069
  blurImage: t.ageAssurance
1069
- }) : /* @__PURE__ */ u(xe, {
1070
+ }) : /* @__PURE__ */ u(Ce, {
1070
1071
  manager: e,
1071
1072
  state: t
1072
1073
  });
1073
- }, xe = ({ manager: e, state: t }) => {
1074
- let r = s(null), i = s(null), a = s(null), o = s(null), c = s(null), [d, p] = l(!1), [m, h] = l(!1);
1075
- n(() => {
1076
- let e = r.current;
1077
- if (!e || !t.stream) {
1078
- h(!1);
1079
- return;
1080
- }
1081
- h(!1);
1082
- let n = () => h(!0);
1083
- return e.addEventListener("playing", n), e.srcObject = t.stream, e.play().catch(() => {}), () => e.removeEventListener("playing", n);
1084
- }, [t.stream]), n(() => {
1085
- let t = () => {
1086
- let t = i.current;
1087
- if (!t) return;
1088
- let n = t.getBoundingClientRect();
1089
- e.updateDetectionArea({
1090
- x: n.left,
1091
- y: n.top,
1092
- width: n.width,
1093
- height: n.height
1094
- });
1095
- };
1096
- return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
1097
- }, [
1098
- e,
1099
- t.orientation,
1100
- m
1101
- ]);
1074
+ }, Ce = ({ manager: e, state: t }) => {
1075
+ let n = s(null), r = s(null), i = s(null), a = s(null), [c, p] = l(!1), h = o(() => {
1076
+ let t = n.current;
1077
+ if (!t) return;
1078
+ let r = t.getBoundingClientRect();
1079
+ e.updateDetectionArea({
1080
+ x: r.left,
1081
+ y: r.top,
1082
+ width: r.width,
1083
+ height: r.height
1084
+ });
1085
+ }, [e]);
1086
+ d("resize", h), f(n, h);
1102
1087
  let g = t.captureStatus === "capturing" || t.detectionStatus === "capturing", _ = t.detectionStatus, v = _ === "manualCapture" || t.showCaptureButtonInAuto && t.captureStatus === "detecting" && _ !== "capturing", y = () => {
1103
1088
  p(!0);
1104
1089
  }, b = () => {
1105
1090
  p(!1), requestAnimationFrame(() => {
1106
- o.current ? o.current.focus() : a.current?.focus();
1091
+ i.current ? i.current.focus() : r.current?.focus();
1107
1092
  });
1108
1093
  }, x = () => {
1109
1094
  p(!1), e.switchToManualCapture();
1110
1095
  }, S = () => {
1111
1096
  e.capture();
1112
1097
  };
1113
- return /* @__PURE__ */ u(f, {
1098
+ return /* @__PURE__ */ u(m, {
1114
1099
  hideHeader: !0,
1115
1100
  hideFooterBranding: !0,
1116
1101
  className: "IncodeIdCapturePage",
1117
1102
  children: [
1118
- /* @__PURE__ */ u(I, {
1103
+ /* @__PURE__ */ u(z, {
1119
1104
  stream: t.stream,
1120
- "aria-hidden": d || void 0,
1121
- children: /* @__PURE__ */ u(be, {
1122
- ref: i,
1105
+ onPlaying: h,
1106
+ "aria-hidden": c || void 0,
1107
+ children: /* @__PURE__ */ u(xe, {
1108
+ ref: n,
1123
1109
  mode: t.currentMode,
1124
1110
  orientation: t.orientation,
1125
1111
  detectionStatus: t.detectionStatus,
@@ -1128,20 +1114,20 @@ var ye = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1128
1114
  showManualCapture: v,
1129
1115
  onCapture: S,
1130
1116
  onOpenHelp: y,
1131
- helpButtonRef: a,
1132
- captureButtonRef: o
1117
+ helpButtonRef: r,
1118
+ captureButtonRef: i
1133
1119
  })
1134
1120
  }),
1135
- /* @__PURE__ */ u("div", { ref: c }),
1136
- /* @__PURE__ */ u(ie, {
1137
- open: d,
1121
+ /* @__PURE__ */ u("div", { ref: a }),
1122
+ /* @__PURE__ */ u(oe, {
1123
+ open: c,
1138
1124
  onClose: b,
1139
1125
  onTakeManually: x,
1140
- portalContainer: c.current
1126
+ portalContainer: a.current
1141
1127
  })
1142
1128
  ]
1143
1129
  });
1144
- }, Se = ({ manager: t, state: r }) => {
1130
+ }, we = ({ manager: t, state: r }) => {
1145
1131
  let { t: i } = e(), [a, o] = l(!1), [s, c] = l(null), d = r.selectedDocumentType === "passport", f = r.currentMode === "back";
1146
1132
  n(() => {
1147
1133
  d ? import("./passport-tutorial-DYBRCYAN.js").then((e) => {
@@ -1152,20 +1138,20 @@ var ye = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1152
1138
  c(e.default);
1153
1139
  });
1154
1140
  }, [d, f]);
1155
- let m = i(d ? "idv2.capture.passport.title" : f ? "idv2.backTutorial.title" : "idv2.tutorial.title"), h = i(d ? "idv2.capture.passport.subtitle" : f ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), g = i(f ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
1156
- return /* @__PURE__ */ u(E, {
1141
+ let p = i(d ? "idv2.capture.passport.title" : f ? "idv2.backTutorial.title" : "idv2.tutorial.title"), m = i(d ? "idv2.capture.passport.subtitle" : f ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), g = i(f ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
1142
+ return /* @__PURE__ */ u(O, {
1157
1143
  animationData: s,
1158
- title: m,
1159
- subtitle: h,
1144
+ title: p,
1145
+ subtitle: m,
1160
1146
  onContinue: () => {
1161
1147
  o(!0), t.nextStep();
1162
1148
  },
1163
1149
  buttonText: i("idv2.tutorial.startScan"),
1164
1150
  disclaimerText: g,
1165
1151
  isLoading: a,
1166
- className: p("IncodeIdTutorial", d ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId")
1152
+ className: h("IncodeIdTutorial", d ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId")
1167
1153
  });
1168
- }, Ce = {
1154
+ }, Te = {
1169
1155
  digitalIdUpload: {
1170
1156
  type: "digitalIdUpload",
1171
1157
  icon: () => /* @__PURE__ */ u("svg", {
@@ -2202,25 +2188,25 @@ var ye = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
2202
2188
  };
2203
2189
  //#endregion
2204
2190
  //#region src/modules/id/chooser/chooser.helpers.ts
2205
- function we(e) {
2191
+ function Ee(e) {
2206
2192
  return e.reduce((e, t) => {
2207
- let n = Ce[t];
2193
+ let n = Te[t];
2208
2194
  return n && e.push(n), e;
2209
2195
  }, []).sort((e, t) => e.weight - t.weight);
2210
2196
  }
2211
2197
  //#endregion
2212
2198
  //#region src/modules/id/chooser/chooser.tsx
2213
- var Te = ({ manager: t, state: n }) => {
2214
- let { t: r } = e(), i = a(() => we(n.availableDocumentTypes), [n.availableDocumentTypes]), o = (e) => {
2199
+ var De = ({ manager: t, state: n }) => {
2200
+ let { t: r } = e(), i = a(() => Ee(n.availableDocumentTypes), [n.availableDocumentTypes]), o = (e) => {
2215
2201
  t.selectDocument(e);
2216
2202
  };
2217
- return /* @__PURE__ */ u(f, {
2203
+ return /* @__PURE__ */ u(m, {
2218
2204
  title: r("idv2.chooser.chooseHowToVerifyTitle"),
2219
2205
  "data-testid": "document-chooser-page",
2220
2206
  className: "IncodeChooserPage",
2221
2207
  children: /* @__PURE__ */ u("div", {
2222
2208
  class: "IncodeChooserContainer",
2223
- children: /* @__PURE__ */ u(j, { children: i.map((e) => /* @__PURE__ */ u(M, {
2209
+ children: /* @__PURE__ */ u(N, { children: i.map((e) => /* @__PURE__ */ u(P, {
2224
2210
  icon: e.icon,
2225
2211
  title: r(e.title),
2226
2212
  testId: e.testId,
@@ -2229,36 +2215,36 @@ var Te = ({ manager: t, state: n }) => {
2229
2215
  }, e.type)) })
2230
2216
  })
2231
2217
  });
2232
- }, Ee = ({ manager: t, direction: r }) => {
2233
- let [i, a] = l(null), [s, c] = l(!1), { t: f } = e();
2218
+ }, Oe = ({ manager: t, direction: r }) => {
2219
+ let [i, a] = l(null), [s, c] = l(!1), { t: d } = e();
2234
2220
  n(() => {
2235
2221
  import("./flip-animation-B1zV6oY9.js").then((e) => {
2236
2222
  a(e.default);
2237
2223
  });
2238
2224
  }, []);
2239
- let p = o(async () => {
2225
+ let f = o(async () => {
2240
2226
  await new Promise((e) => setTimeout(e, 1e3)), r === "toBack" ? t.continueToBack() : t.continueToFront(), c(!0);
2241
2227
  }, [r, t]);
2242
- return s ? /* @__PURE__ */ u(h, {
2228
+ return s ? /* @__PURE__ */ u(_, {
2243
2229
  size: "large",
2244
- title: `${f("webcam.loading")}...`
2230
+ title: `${d("webcam.loading")}...`
2245
2231
  }) : i ? /* @__PURE__ */ u("div", {
2246
2232
  class: "IncodeFlipAnimation",
2247
2233
  children: [
2248
- /* @__PURE__ */ u(m, {
2234
+ /* @__PURE__ */ u(g, {
2249
2235
  role: "status",
2250
2236
  className: "IncodeFlipAnimationTitle",
2251
- children: f(r === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront")
2237
+ children: d(r === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront")
2252
2238
  }),
2253
- /* @__PURE__ */ u(d, { size: 32 }),
2254
- /* @__PURE__ */ u(T, {
2239
+ /* @__PURE__ */ u(p, { size: 32 }),
2240
+ /* @__PURE__ */ u(D, {
2255
2241
  animationData: i,
2256
2242
  loop: !1,
2257
2243
  reverse: r === "toFront",
2258
- onComplete: p
2244
+ onComplete: f
2259
2245
  })
2260
2246
  ]
2261
2247
  }) : null;
2262
2248
  };
2263
2249
  //#endregion
2264
- export { O as _, J as a, L as c, P as d, N as f, k as g, A as h, $ as i, I as l, j as m, Te as n, q as o, M as p, Se as r, z as s, Ee as t, F as u, D as v };
2250
+ export { A as _, se as a, B as c, L as d, I as f, j as g, M as h, Se as i, z as l, N as m, De as n, J as o, P as p, we as r, te as s, Oe as t, R as u, k as v };