@incodetech/web 0.0.0-dev-20260507-a2cd155 → 0.0.0-dev-20260508-00bc415

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.
@@ -10,10 +10,10 @@ import { t as _ } from "./spinner-CKnjVHxw.js";
10
10
  import "./spinner-B4dcie2T.js";
11
11
  import "./processing-c8ep-KSh.js";
12
12
  import { t as v } from "./button-DcCUEn2n.js";
13
- import { f as y, g as b, i as x, r as S, s as C, t as w } from "./icons-Cc7zwchP.js";
14
- import { t as T } from "./successIcon-DbILeIz_.js";
15
- import { t as E } from "./modal-XTO80Vsu.js";
16
- import { a as D, i as O } from "./tutorial-BvRU4P4P.js";
13
+ import { f as y, g as b, i as x, m as S, r as C, s as w, t as T } from "./icons-Cc7zwchP.js";
14
+ import { t as E } from "./successIcon-DbILeIz_.js";
15
+ import { t as D } from "./modal-XTO80Vsu.js";
16
+ import { a as O, i as ee } from "./tutorial-BvRU4P4P.js";
17
17
  import "./verificationResult-9weGpvn5.js";
18
18
  import "./inputComposed-APSw8C7o.js";
19
19
  import "./inputComposed-XYrarFxS.js";
@@ -27,7 +27,7 @@ import "./radioGroupComposed-B74fc1L3.js";
27
27
  import "./bottomSheet-CLMmiBQS.js";
28
28
  import "@incodetech/core/id";
29
29
  //#region src/shared/overlay/overlay.tsx
30
- var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("div", {
30
+ var te = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("div", {
31
31
  class: `IncodeOverlay ${n ?? ""}`,
32
32
  role: "dialog",
33
33
  "aria-modal": "true",
@@ -39,7 +39,7 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
39
39
  children: e
40
40
  })
41
41
  })
42
- }), A = ({ progress: e, label: n, className: r }) => /* @__PURE__ */ u("div", {
42
+ }), k = ({ progress: e, label: n, className: r }) => /* @__PURE__ */ u("div", {
43
43
  class: p("IncodeProgressBarContainer", r),
44
44
  children: [/* @__PURE__ */ u("div", {
45
45
  class: "IncodeProgressBar",
@@ -56,7 +56,347 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
56
56
  class: "IncodeProgressBarLabel",
57
57
  children: n
58
58
  })] }) : null]
59
- }), j = r((e, t) => {
59
+ }), ne = /^(\d{4})-(\d{2})-(\d{2})$/, re = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/, A = {
60
+ mm: "",
61
+ dd: "",
62
+ yyyy: ""
63
+ }, j = (e) => {
64
+ if (!e) return A;
65
+ let t = ne.exec(e);
66
+ return t ? {
67
+ yyyy: t[1],
68
+ mm: t[2],
69
+ dd: t[3]
70
+ } : A;
71
+ }, M = (e, t, n) => {
72
+ if (e < 1 || t < 1 || t > 12 || n < 1 || n > 31) return !1;
73
+ let r = new Date(e, t - 1, n);
74
+ return r.getFullYear() === e && r.getMonth() === t - 1 && r.getDate() === n;
75
+ }, ie = (e, t) => {
76
+ let n = Number(e);
77
+ if (!Number.isFinite(n) || n < 1 || n > 12) return 31;
78
+ let r = Number(t), i = Number.isFinite(r) && r > 0 && t.length === 4 ? r : 2001;
79
+ return new Date(i, n, 0).getDate();
80
+ }, ae = ({ mm: e, dd: t, yyyy: n }) => {
81
+ if (n.length !== 4 || e.length === 0 || t.length === 0) return "";
82
+ let r = Number(n), i = Number(e), a = Number(t);
83
+ return M(r, i, a) ? `${n}-${String(i).padStart(2, "0")}-${String(a).padStart(2, "0")}` : "";
84
+ }, oe = (e) => {
85
+ try {
86
+ let t = new Intl.DateTimeFormat(e || void 0).formatToParts(new Date(2e3, 0, 15)), n = [];
87
+ for (let e of t) e.type === "year" ? n.push("yyyy") : e.type === "month" ? n.push("mm") : e.type === "day" && n.push("dd");
88
+ if (n.length === 3 && new Set(n).size === 3) return n;
89
+ } catch {}
90
+ return [
91
+ "mm",
92
+ "dd",
93
+ "yyyy"
94
+ ];
95
+ }, se = (e) => {
96
+ let t = {
97
+ mm: null,
98
+ dd: null,
99
+ yyyy: null
100
+ }, n = {
101
+ mm: null,
102
+ dd: null,
103
+ yyyy: null
104
+ };
105
+ return e.forEach((r, i) => {
106
+ t[r] = e[i + 1] ?? null, n[r] = e[i - 1] ?? null;
107
+ }), {
108
+ next: t,
109
+ prev: n
110
+ };
111
+ }, N = {
112
+ mm: {
113
+ min: 1,
114
+ max: 12,
115
+ pad: 2
116
+ },
117
+ dd: {
118
+ min: 1,
119
+ max: 31,
120
+ pad: 2
121
+ },
122
+ yyyy: {
123
+ min: 1,
124
+ max: 9999,
125
+ pad: 4
126
+ }
127
+ }, ce = {
128
+ mm: 1,
129
+ dd: 3,
130
+ yyyy: 9
131
+ }, P = (e, t) => String(t).padStart(N[e].pad, "0"), le = (e, t, n) => {
132
+ let { min: r, max: i } = N[e];
133
+ if (t === "") return e === "yyyy" ? P(e, (/* @__PURE__ */ new Date()).getFullYear()) : P(e, n === 1 ? r : i);
134
+ let a = Number(t);
135
+ if (Number.isNaN(a)) return P(e, r);
136
+ let o = a + n;
137
+ return o > i && (o = r), o < r && (o = i), P(e, o);
138
+ }, F = r(({ id: r, label: i, labelHint: o, "aria-label": c, error: d, showErrorIcon: f, helper: m, showHelperIcon: h, required: g, suppressMessages: _ = !1, class: v, value: y, onInput: x, disabled: C, min: w, max: T, name: D, autocomplete: O, autoComplete: ee, ...te }, k) => {
139
+ let { i18n: A } = e(), M = a(() => oe(A.language), [A.language]), F = a(() => se(M), [M]), I = typeof ee == "string" ? ee : typeof O == "string" ? O : void 0, ue = (e) => I ? I === "bday" ? e === "mm" ? "bday-month" : e === "dd" ? "bday-day" : "bday-year" : I : "off", de = I ?? void 0, L = s(null), R = {
140
+ mm: s(null),
141
+ dd: s(null),
142
+ yyyy: s(null)
143
+ }, [z, B] = l(() => j(y));
144
+ n(() => {
145
+ B((e) => ae(e) === (y ?? "") ? e : j(y));
146
+ }, [y]), n(() => {
147
+ let e = L.current;
148
+ if (!e) return;
149
+ let t = y ?? "";
150
+ e.value !== t && (e.value = t);
151
+ }, [y]);
152
+ let V = (e) => {
153
+ L.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
154
+ }, H = `${r}-label`, U = `${r}-helper`, W = `${r}-error`, G = `${r}-format-hint`, fe = a(() => {
155
+ let e = {
156
+ mm: "month",
157
+ dd: "day",
158
+ yyyy: "year"
159
+ };
160
+ return `Date format: ${M.map((t) => e[t]).join(", ")}.`;
161
+ }, [M]), pe = [
162
+ G,
163
+ !_ && m ? U : null,
164
+ !_ && d ? W : null
165
+ ].filter(Boolean).join(" "), me = (e) => {
166
+ let t = ae(e), n = L.current;
167
+ n && (n.value = t);
168
+ let r = new Event("input", { bubbles: !0 });
169
+ Object.defineProperty(r, "target", {
170
+ value: n,
171
+ enumerable: !0,
172
+ configurable: !0
173
+ }), x(r);
174
+ }, K = (e, t) => {
175
+ let n = {
176
+ ...z,
177
+ [e]: t
178
+ };
179
+ if (n.dd && n.mm) {
180
+ let e = ie(n.mm, n.yyyy), t = Number(n.dd);
181
+ Number.isFinite(t) && t > e && (n = {
182
+ ...n,
183
+ dd: P("dd", e)
184
+ });
185
+ }
186
+ B(n), me(n);
187
+ }, q = (e) => {
188
+ if (!e) return;
189
+ let t = R[e].current;
190
+ if (!t) return;
191
+ t.focus();
192
+ let n = t.value.length;
193
+ try {
194
+ t.setSelectionRange(n, n);
195
+ } catch {}
196
+ }, he = (e, t) => (n) => {
197
+ let r = n.target, i = r.value.replace(/\D/g, "").slice(0, t), a = !1;
198
+ if (i.length === 1 && Number(i) > ce[e] && (i = P(e, Number(i)), a = !0), i.length === t) {
199
+ let t = Number(i), { max: n } = N[e];
200
+ Number.isFinite(t) && t > n && (i = P(e, n)), a = !0;
201
+ }
202
+ i !== r.value && (r.value = i), K(e, i), a && q(F.next[e]);
203
+ }, ge = (e) => (t) => {
204
+ let n = t.target, r = n.selectionStart ?? 0;
205
+ if (t.key === "ArrowUp" || t.key === "ArrowDown") {
206
+ t.preventDefault();
207
+ let r = t.key === "ArrowUp" ? 1 : -1, i = le(e, n.value, r);
208
+ n.value = i, K(e, i);
209
+ try {
210
+ n.select();
211
+ } catch {}
212
+ } else t.key === "Backspace" && n.value === "" && r === 0 || t.key === "ArrowLeft" && r === 0 ? (t.preventDefault(), q(F.prev[e])) : t.key === "ArrowRight" && r === n.value.length ? (t.preventDefault(), q(F.next[e])) : (t.key === "/" || t.key === "-" || t.key === " ") && (n.value.length > 0 ? (t.preventDefault(), q(F.next[e])) : t.preventDefault());
213
+ }, _e = (e, t) => (n) => {
214
+ let r = n.target.value;
215
+ if (!r) return;
216
+ let i = r.padStart(t, "0"), a = Number(i), { min: o, max: s } = N[e];
217
+ Number.isFinite(a) && (a < o ? i = P(e, o) : a > s && (i = P(e, s))), i !== r && K(e, i);
218
+ }, ve = (e) => {
219
+ let t = e.target;
220
+ try {
221
+ t.select();
222
+ } catch {}
223
+ }, ye = (e) => {
224
+ let t = e.clipboardData?.getData("text")?.trim() ?? "";
225
+ if (!t) return;
226
+ let n = ne.exec(t), r = re.exec(t), i = null;
227
+ n ? i = {
228
+ yyyy: n[1],
229
+ mm: n[2],
230
+ dd: n[3]
231
+ } : r && (i = {
232
+ mm: r[1].padStart(2, "0"),
233
+ dd: r[2].padStart(2, "0"),
234
+ yyyy: r[3]
235
+ }), i && (e.preventDefault(), B(i), me(i), q("yyyy"));
236
+ }, J = (e) => {
237
+ let t = e.target;
238
+ B(j(t.value)), x(e);
239
+ }, Y = (e) => {
240
+ e.preventDefault();
241
+ let t = L.current;
242
+ if (!(!t || C)) {
243
+ try {
244
+ t.focus();
245
+ } catch {}
246
+ try {
247
+ "showPicker" in HTMLInputElement.prototype && typeof t.showPicker == "function" ? t.showPicker() : t.click();
248
+ } catch {
249
+ t.click();
250
+ }
251
+ }
252
+ }, X = !!ae(z), Z = !!d, Q = i ? { "aria-labelledby": H } : c ? { "aria-label": c } : {}, be = {
253
+ mm: {
254
+ maxLen: 2,
255
+ placeholder: "MM",
256
+ ariaLabel: "Month"
257
+ },
258
+ dd: {
259
+ maxLen: 2,
260
+ placeholder: "DD",
261
+ ariaLabel: "Day"
262
+ },
263
+ yyyy: {
264
+ maxLen: 4,
265
+ placeholder: "YYYY",
266
+ ariaLabel: "Year"
267
+ }
268
+ }, $ = (e) => {
269
+ let { maxLen: t, placeholder: n, ariaLabel: i } = be[e];
270
+ return /* @__PURE__ */ u("input", {
271
+ ref: (t) => {
272
+ R[e].current = t;
273
+ },
274
+ id: `${r}-${e}`,
275
+ class: p("IncodeSegmentedDateInputSegment", `IncodeSegmentedDateInputSegment--${e}`),
276
+ type: "text",
277
+ inputMode: "numeric",
278
+ autoComplete: ue(e),
279
+ autoCorrect: "off",
280
+ spellcheck: !1,
281
+ maxLength: t,
282
+ size: t,
283
+ placeholder: n,
284
+ "aria-label": i,
285
+ "aria-required": g ? "true" : void 0,
286
+ "aria-invalid": Z ? "true" : void 0,
287
+ value: z[e],
288
+ disabled: C,
289
+ "data-testid": `${r}-${e}`,
290
+ onInput: he(e, t),
291
+ onKeyDown: ge(e),
292
+ onBlur: _e(e, t),
293
+ onFocus: ve,
294
+ onPaste: ye
295
+ });
296
+ };
297
+ return /* @__PURE__ */ u("div", {
298
+ class: p("IncodeInputComposed IncodeSegmentedDateInput", v),
299
+ children: [
300
+ i && /* @__PURE__ */ u("label", {
301
+ id: H,
302
+ class: "IncodeInputComposedLabel",
303
+ htmlFor: `${r}-${M[0]}`,
304
+ "data-testid": `${r}-label`,
305
+ children: [i, o && /* @__PURE__ */ u("span", {
306
+ class: "IncodeInputComposedLabelHint",
307
+ "data-testid": `${r}-label-hint`,
308
+ children: o
309
+ })]
310
+ }),
311
+ /* @__PURE__ */ u("div", {
312
+ class: "IncodeInputComposedWrapper",
313
+ children: [
314
+ /* @__PURE__ */ u("div", {
315
+ role: "group",
316
+ class: p("IncodeSegmentedDateInputField", Z && "IncodeSegmentedDateInputField--invalid", C && "IncodeSegmentedDateInputField--disabled"),
317
+ "data-has-value": X ? "true" : void 0,
318
+ "data-disabled": C ? "true" : void 0,
319
+ "aria-invalid": Z ? "true" : void 0,
320
+ "aria-describedby": pe || void 0,
321
+ ...Q,
322
+ children: M.map((e, n) => /* @__PURE__ */ u(t, { children: [$(e), n < M.length - 1 && /* @__PURE__ */ u("span", {
323
+ class: "IncodeSegmentedDateInputSeparator",
324
+ "aria-hidden": "true",
325
+ children: "/"
326
+ })] }, e))
327
+ }),
328
+ /* @__PURE__ */ u("span", {
329
+ id: G,
330
+ class: "IncodeSrOnly",
331
+ "data-testid": `${r}-format-hint`,
332
+ children: fe
333
+ }),
334
+ /* @__PURE__ */ u("input", {
335
+ ref: V,
336
+ id: r,
337
+ type: "date",
338
+ name: D,
339
+ defaultValue: y,
340
+ min: w,
341
+ max: T,
342
+ disabled: C,
343
+ autoComplete: de,
344
+ class: "IncodeSegmentedDateInputHiddenNative",
345
+ tabIndex: -1,
346
+ "aria-hidden": "true",
347
+ "data-has-value": X ? "true" : void 0,
348
+ "data-testid": `${r}-native`,
349
+ onInput: J,
350
+ onChange: J,
351
+ ...te
352
+ }),
353
+ /* @__PURE__ */ u("button", {
354
+ type: "button",
355
+ class: "IncodeSegmentedDateInputIconButton",
356
+ onClick: Y,
357
+ onTouchEnd: Y,
358
+ disabled: C,
359
+ "aria-label": "Open date picker",
360
+ "data-testid": `${r}-picker-trigger`,
361
+ children: /* @__PURE__ */ u("span", {
362
+ class: "IncodeSegmentedDateInputIcon",
363
+ children: /* @__PURE__ */ u(S, {})
364
+ })
365
+ })
366
+ ]
367
+ }),
368
+ !_ && d && /* @__PURE__ */ u("div", {
369
+ class: "IncodeInputComposedErrorWrapper",
370
+ role: "alert",
371
+ "data-testid": `${r}-error-wrapper`,
372
+ children: [f && /* @__PURE__ */ u("div", {
373
+ class: "IncodeInputComposedIconWrapper",
374
+ children: /* @__PURE__ */ u(b, { size: 16 })
375
+ }), /* @__PURE__ */ u("p", {
376
+ id: W,
377
+ class: "IncodeInputComposedError",
378
+ children: d
379
+ })]
380
+ }),
381
+ !_ && m && !d && /* @__PURE__ */ u("div", {
382
+ class: "IncodeInputComposedHelperWrapper",
383
+ "data-testid": `${r}-helper-wrapper`,
384
+ children: [h && /* @__PURE__ */ u("div", {
385
+ class: "IncodeInputComposedIconWrapper",
386
+ children: /* @__PURE__ */ u(E, { size: 16 })
387
+ }), /* @__PURE__ */ u("p", {
388
+ id: U,
389
+ class: "IncodeInputComposedHelper",
390
+ children: m
391
+ })]
392
+ })
393
+ ]
394
+ });
395
+ });
396
+ F.displayName = "SegmentedDateInput";
397
+ //#endregion
398
+ //#region src/shared/textArea/textArea.tsx
399
+ var I = r((e, t) => {
60
400
  let { class: n, rows: r = 4, ...i } = e;
61
401
  return /* @__PURE__ */ u("textarea", {
62
402
  ...i,
@@ -64,7 +404,7 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
64
404
  rows: r,
65
405
  class: p("IncodeTextArea", n)
66
406
  });
67
- }), M = r(({ id: e, label: t, labelHint: n, "aria-label": r, error: i, showErrorIcon: a, helper: o, showHelperIcon: s, required: c, rows: l = 4, class: d, ...f }, m) => {
407
+ }), ue = r(({ id: e, label: t, labelHint: n, "aria-label": r, error: i, showErrorIcon: a, helper: o, showHelperIcon: s, required: c, rows: l = 4, class: d, ...f }, m) => {
68
408
  let h = `${e}-helper`, g = `${e}-error`, _ = [o ? h : null, i ? g : null].filter(Boolean).join(" ");
69
409
  return /* @__PURE__ */ u("div", {
70
410
  class: p("IncodeTextAreaComposed", d),
@@ -81,7 +421,7 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
81
421
  }),
82
422
  /* @__PURE__ */ u("div", {
83
423
  class: "IncodeTextAreaComposedWrapper",
84
- children: /* @__PURE__ */ u(j, {
424
+ children: /* @__PURE__ */ u(I, {
85
425
  id: e,
86
426
  rows: l,
87
427
  ...f,
@@ -110,7 +450,7 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
110
450
  "data-testid": `${e}-helper-wrapper`,
111
451
  children: [s && /* @__PURE__ */ u("div", {
112
452
  class: "IncodeTextAreaComposedIconWrapper",
113
- children: /* @__PURE__ */ u(T, { size: 17 })
453
+ children: /* @__PURE__ */ u(E, { size: 17 })
114
454
  }), /* @__PURE__ */ u("p", {
115
455
  id: h,
116
456
  class: "IncodeTextAreaComposedHelper",
@@ -120,16 +460,16 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
120
460
  ]
121
461
  });
122
462
  });
123
- M.displayName = "TextAreaComposed";
463
+ ue.displayName = "TextAreaComposed";
124
464
  //#endregion
125
465
  //#region src/shared/card/verificationOption/verificationOptionCard.tsx
126
- function N({ children: e }) {
466
+ function de({ children: e }) {
127
467
  return /* @__PURE__ */ u("div", {
128
468
  class: "IncodeVerificationOptionCardList",
129
469
  children: e
130
470
  });
131
471
  }
132
- function P({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
472
+ function L({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
133
473
  return /* @__PURE__ */ u("button", {
134
474
  type: "button",
135
475
  class: "IncodeVerificationOptionCard",
@@ -149,11 +489,11 @@ function P({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
149
489
  children: [/* @__PURE__ */ u("span", {
150
490
  class: "IncodeVerificationOptionCardTitle",
151
491
  children: t
152
- }), i && /* @__PURE__ */ u(F, { label: i })]
492
+ }), i && /* @__PURE__ */ u(R, { label: i })]
153
493
  }), /* @__PURE__ */ u("span", {
154
494
  class: "IncodeVerificationOptionCardArrow",
155
495
  "data-testid": "chevron-right-icon",
156
- children: /* @__PURE__ */ u(C, {
496
+ children: /* @__PURE__ */ u(w, {
157
497
  size: 24,
158
498
  variant: "m"
159
499
  })
@@ -161,15 +501,15 @@ function P({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
161
501
  })]
162
502
  });
163
503
  }
164
- function F({ label: e }) {
504
+ function R({ label: e }) {
165
505
  return /* @__PURE__ */ u("div", {
166
506
  class: "IncodeVerificationOptionCardTag",
167
- children: [/* @__PURE__ */ u(w, {}), /* @__PURE__ */ u("span", { children: e })]
507
+ children: [/* @__PURE__ */ u(T, {}), /* @__PURE__ */ u("span", { children: e })]
168
508
  });
169
509
  }
170
510
  //#endregion
171
511
  //#region src/shared/cameraOverlay/cameraFrame.tsx
172
- var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameState: r = "idle", className: i, children: a }, o) => {
512
+ var z = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameState: r = "idle", className: i, children: a }, o) => {
173
513
  let s = `IncodeCameraFrame${r.charAt(0).toUpperCase()}${r.slice(1)}`;
174
514
  return /* @__PURE__ */ u("div", {
175
515
  ref: o,
@@ -178,10 +518,10 @@ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
178
518
  "aria-hidden": !0,
179
519
  children: a
180
520
  });
181
- }), L = ({ children: e, className: t }) => /* @__PURE__ */ u("div", {
521
+ }), B = ({ children: e, className: t }) => /* @__PURE__ */ u("div", {
182
522
  class: p("IncodeCameraOverlay", t),
183
523
  children: e
184
- }), R = ({ title: e, subtitle: t, visible: r = !0, className: i, titleId: a }) => {
524
+ }), V = ({ title: e, subtitle: t, visible: r = !0, className: i, titleId: a }) => {
185
525
  let o = s(null);
186
526
  return n(() => {
187
527
  o.current?.focus();
@@ -198,7 +538,7 @@ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
198
538
  children: t
199
539
  })]
200
540
  });
201
- }, z = ({ stream: e, children: t, videoRef: r, onPlaying: i, className: a, ...o }) => {
541
+ }, H = ({ stream: e, children: t, videoRef: r, onPlaying: i, className: a, ...o }) => {
202
542
  let c = s(null), l = (e) => {
203
543
  c.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
204
544
  };
@@ -220,14 +560,14 @@ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
220
560
  })
221
561
  }), t]
222
562
  });
223
- }, B = ({ onOpenHelp: t, onCapture: n, isManualCapture: r, captureAriaLabel: i, captureAriaDescribedBy: a, helpAriaLabel: o, helpButtonRef: s, captureButtonRef: c, encryptionLabel: l, children: d }) => {
563
+ }, U = ({ onOpenHelp: t, onCapture: n, isManualCapture: r, captureAriaLabel: i, captureAriaDescribedBy: a, helpAriaLabel: o, helpButtonRef: s, captureButtonRef: c, encryptionLabel: l, children: d }) => {
224
564
  let { t: f } = e();
225
565
  return /* @__PURE__ */ u("div", {
226
566
  class: "IncodeCaptureFooter",
227
567
  children: [
228
568
  /* @__PURE__ */ u("div", {
229
569
  class: "IncodeCaptureFooterEncryption",
230
- children: [/* @__PURE__ */ u(S, { className: "IncodeCaptureFooterEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l ?? f("v2.capture.label") })]
570
+ children: [/* @__PURE__ */ u(C, { className: "IncodeCaptureFooterEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l ?? f("v2.capture.label") })]
231
571
  }),
232
572
  r && n ? /* @__PURE__ */ u("div", {
233
573
  class: "IncodeCaptureFooterCaptureSection",
@@ -258,14 +598,14 @@ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
258
598
  };
259
599
  //#endregion
260
600
  //#region src/shared/manualCapture/manualCapture.tsx
261
- function ee(e) {
601
+ function W(e) {
262
602
  if (e.readyState < 2 || e.videoWidth === 0 || e.videoHeight === 0) return null;
263
603
  let t = document.createElement("canvas");
264
604
  t.width = e.videoWidth, t.height = e.videoHeight;
265
605
  let n = t.getContext("2d");
266
606
  return n ? (n.drawImage(e, 0, 0), t.toDataURL("image/jpeg", .92).split(",")[1] ?? null) : null;
267
607
  }
268
- var te = ({ stream: e, onCapture: t, disabled: r }) => {
608
+ var G = ({ stream: e, onCapture: t, disabled: r }) => {
269
609
  let i = s(null);
270
610
  n(() => {
271
611
  i.current && e && (i.current.srcObject = e, i.current.play().catch(() => {}));
@@ -273,7 +613,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
273
613
  let a = o(() => {
274
614
  let e = i.current;
275
615
  if (!e || r) return;
276
- let n = ee(e);
616
+ let n = W(e);
277
617
  n && t(n);
278
618
  }, [t, r]);
279
619
  return /* @__PURE__ */ u("div", {
@@ -301,7 +641,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
301
641
  })
302
642
  })]
303
643
  });
304
- }, ne = ({ className: e }) => /* @__PURE__ */ u("svg", {
644
+ }, fe = ({ className: e }) => /* @__PURE__ */ u("svg", {
305
645
  width: "24",
306
646
  height: "24",
307
647
  viewBox: "0 0 24 24",
@@ -331,7 +671,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
331
671
  fill: "currentColor"
332
672
  })
333
673
  ]
334
- }), re = ({ className: e }) => /* @__PURE__ */ u("svg", {
674
+ }), pe = ({ className: e }) => /* @__PURE__ */ u("svg", {
335
675
  width: "24",
336
676
  height: "24",
337
677
  viewBox: "0 0 24 24",
@@ -357,7 +697,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
357
697
  fill: "currentColor"
358
698
  })
359
699
  ]
360
- }), ie = ({ className: e }) => /* @__PURE__ */ u("svg", {
700
+ }), me = ({ className: e }) => /* @__PURE__ */ u("svg", {
361
701
  width: "24",
362
702
  height: "24",
363
703
  viewBox: "0 0 24 24",
@@ -391,7 +731,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
391
731
  fill: "currentColor"
392
732
  })
393
733
  ]
394
- }), ae = ({ className: e }) => /* @__PURE__ */ u("svg", {
734
+ }), K = ({ className: e }) => /* @__PURE__ */ u("svg", {
395
735
  width: "64",
396
736
  height: "64",
397
737
  viewBox: "0 0 64 64",
@@ -408,13 +748,13 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
408
748
  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
749
  fill: "white"
410
750
  })]
411
- }), oe = ({ open: t, onClose: n, onTakeManually: r, portalContainer: i }) => {
751
+ }), q = ({ open: t, onClose: n, onTakeManually: r, portalContainer: i }) => {
412
752
  let { t: a } = e(), s = o((e) => {
413
753
  e?.focus();
414
754
  }, []), c = () => {
415
755
  r(), n();
416
756
  };
417
- return /* @__PURE__ */ u(E.Root, {
757
+ return /* @__PURE__ */ u(D.Root, {
418
758
  open: t,
419
759
  onOpenChange: (e) => {
420
760
  e || n();
@@ -423,14 +763,14 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
423
763
  hasBackdrop: !1,
424
764
  portalContainer: i ?? void 0,
425
765
  manageInitialFocus: !1,
426
- children: /* @__PURE__ */ u(E.Content, {
766
+ children: /* @__PURE__ */ u(D.Content, {
427
767
  class: "IncodeCommonIssuesContent",
428
768
  children: [
429
- /* @__PURE__ */ u(E.Icon, {
769
+ /* @__PURE__ */ u(D.Icon, {
430
770
  class: "IncodeCommonIssuesQuestionIcon",
431
- children: /* @__PURE__ */ u(ae, {})
771
+ children: /* @__PURE__ */ u(K, {})
432
772
  }),
433
- /* @__PURE__ */ u(E.TitleSection, { children: /* @__PURE__ */ u(g, {
773
+ /* @__PURE__ */ u(D.TitleSection, { children: /* @__PURE__ */ u(g, {
434
774
  id: "incode-modal-title",
435
775
  ref: s,
436
776
  className: "IncodeCommonIssuesTitle",
@@ -445,7 +785,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
445
785
  children: [/* @__PURE__ */ u("div", {
446
786
  class: "IncodeCommonIssuesCardIcon",
447
787
  "aria-hidden": "true",
448
- children: /* @__PURE__ */ u(re, {})
788
+ children: /* @__PURE__ */ u(pe, {})
449
789
  }), /* @__PURE__ */ u("div", {
450
790
  class: "IncodeCommonIssuesCardText",
451
791
  children: [/* @__PURE__ */ u("h3", {
@@ -462,7 +802,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
462
802
  children: [/* @__PURE__ */ u("div", {
463
803
  class: "IncodeCommonIssuesCardIcon",
464
804
  "aria-hidden": "true",
465
- children: /* @__PURE__ */ u(ne, {})
805
+ children: /* @__PURE__ */ u(fe, {})
466
806
  }), /* @__PURE__ */ u("div", {
467
807
  class: "IncodeCommonIssuesCardText",
468
808
  children: [/* @__PURE__ */ u("h3", {
@@ -479,7 +819,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
479
819
  children: [/* @__PURE__ */ u("div", {
480
820
  class: "IncodeCommonIssuesCardIcon",
481
821
  "aria-hidden": "true",
482
- children: /* @__PURE__ */ u(ie, {})
822
+ children: /* @__PURE__ */ u(me, {})
483
823
  }), /* @__PURE__ */ u("div", {
484
824
  class: "IncodeCommonIssuesCardText",
485
825
  children: [/* @__PURE__ */ u("h3", {
@@ -493,7 +833,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
493
833
  })
494
834
  ]
495
835
  }),
496
- /* @__PURE__ */ u(E.Actions, {
836
+ /* @__PURE__ */ u(D.Actions, {
497
837
  class: "IncodeCommonIssuesButtons",
498
838
  children: [/* @__PURE__ */ u(v, {
499
839
  variant: "link",
@@ -509,7 +849,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
509
849
  ]
510
850
  })
511
851
  });
512
- }, V = ({ orientation: e, mode: t, state: n, children: r, className: i }) => {
852
+ }, he = ({ orientation: e, mode: t, state: n, children: r, className: i }) => {
513
853
  let a = e !== "vertical" || t === "passport", o = t === "passport", s = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
514
854
  return /* @__PURE__ */ u("div", {
515
855
  class: p("IncodeCaptureFrame", a ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical", s, o && "IncodeCaptureFramePassport", i),
@@ -517,7 +857,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
517
857
  role: "presentation",
518
858
  children: r
519
859
  });
520
- }, H = ({ imageUrl: t, orientation: n, mode: r, borderState: i, topContent: a, bottomContent: o, overlayContent: s, blurImage: c }) => {
860
+ }, ge = ({ imageUrl: t, orientation: n, mode: r, borderState: i, topContent: a, bottomContent: o, overlayContent: s, blurImage: c }) => {
521
861
  let { t: l } = e();
522
862
  return /* @__PURE__ */ u(h, {
523
863
  hideHeader: !0,
@@ -531,7 +871,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
531
871
  class: "IncodeIdProcessingTopArea",
532
872
  children: a
533
873
  }),
534
- /* @__PURE__ */ u(V, {
874
+ /* @__PURE__ */ u(he, {
535
875
  orientation: n,
536
876
  mode: r === "id" ? "front" : r,
537
877
  state: i,
@@ -550,14 +890,14 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
550
890
  class: "IncodeIdProcessingBottomArea",
551
891
  children: [/* @__PURE__ */ u("div", {
552
892
  class: "IncodeCaptureEncryptionLabel",
553
- children: [/* @__PURE__ */ u(S, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l("v2.capture.label") })]
893
+ children: [/* @__PURE__ */ u(C, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l("v2.capture.label") })]
554
894
  }), o]
555
895
  })
556
896
  ]
557
897
  })
558
898
  })
559
899
  });
560
- }, U = ({ imageUrl: t, progress: r, orientation: i, mode: a, blurImage: o }) => {
900
+ }, _e = ({ imageUrl: t, progress: r, orientation: i, mode: a, blurImage: o }) => {
561
901
  let { t: c } = e(), d = s(null), f = i !== "vertical" || a === "passport", [p, m] = l(null);
562
902
  return n(() => {
563
903
  d.current?.focus();
@@ -567,7 +907,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
567
907
  }) : import("./id-laser-v-BLY6XMRK.js").then((e) => {
568
908
  m(e.default);
569
909
  });
570
- }, [f]), /* @__PURE__ */ u(H, {
910
+ }, [f]), /* @__PURE__ */ u(ge, {
571
911
  imageUrl: t,
572
912
  orientation: i,
573
913
  mode: a,
@@ -575,7 +915,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
575
915
  blurImage: o,
576
916
  topContent: /* @__PURE__ */ u("div", {
577
917
  class: "IncodeAnalyzingContent",
578
- children: [/* @__PURE__ */ u(A, { progress: r }), /* @__PURE__ */ u(g, {
918
+ children: [/* @__PURE__ */ u(k, { progress: r }), /* @__PURE__ */ u(g, {
579
919
  ref: d,
580
920
  id: "analyzing-title",
581
921
  className: "IncodeAnalyzingTitle",
@@ -583,13 +923,13 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
583
923
  children: c("idv2.capture.processing.analyzing")
584
924
  })]
585
925
  }),
586
- overlayContent: p ? /* @__PURE__ */ u(D, {
926
+ overlayContent: p ? /* @__PURE__ */ u(O, {
587
927
  animationData: p,
588
928
  loop: !0,
589
929
  className: "IncodeAnalyzingLottie"
590
930
  }) : null
591
931
  });
592
- }, W = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
932
+ }, ve = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
593
933
  class: e,
594
934
  width: "32",
595
935
  height: "32",
@@ -602,7 +942,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
602
942
  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
943
  fill: "#189F60"
604
944
  })
605
- }), G = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
945
+ }), ye = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
606
946
  class: e,
607
947
  width: "33",
608
948
  height: "32",
@@ -615,11 +955,11 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
615
955
  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
956
  fill: "#E71111"
617
957
  })
618
- }), K = ({ variant: r, imageUrl: i, orientation: a, mode: o, title: c, subtitle: l, buttonText: d, onButtonClick: f, attemptsRemaining: p, blurImage: h }) => {
958
+ }), J = ({ variant: r, imageUrl: i, orientation: a, mode: o, title: c, subtitle: l, buttonText: d, onButtonClick: f, attemptsRemaining: p, blurImage: h }) => {
619
959
  let { t: _ } = e(), y = s(null);
620
960
  return n(() => {
621
961
  y.current?.focus();
622
- }, []), /* @__PURE__ */ u(H, {
962
+ }, []), /* @__PURE__ */ u(ge, {
623
963
  imageUrl: i,
624
964
  orientation: a,
625
965
  mode: o,
@@ -629,7 +969,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
629
969
  class: "IncodeIdProcessingResultContent",
630
970
  role: "status",
631
971
  children: [
632
- u(r === "success" ? W : G, { className: "IncodeIdProcessingResultIcon" }),
972
+ u(r === "success" ? ve : ye, { className: "IncodeIdProcessingResultIcon" }),
633
973
  /* @__PURE__ */ u(m, { size: 16 }),
634
974
  c && /* @__PURE__ */ u(g, {
635
975
  ref: y,
@@ -655,11 +995,11 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
655
995
  })]
656
996
  })
657
997
  });
658
- }, q = ({ manager: t, state: n, blurImage: r }) => {
998
+ }, Y = ({ manager: t, state: n, blurImage: r }) => {
659
999
  let { t: i } = e();
660
1000
  if (!n.previewImageUrl) return null;
661
1001
  let a = n.currentMode === "passport" ? "passport" : "id";
662
- return /* @__PURE__ */ u(K, {
1002
+ return /* @__PURE__ */ u(J, {
663
1003
  variant: "success",
664
1004
  imageUrl: n.previewImageUrl,
665
1005
  orientation: n.orientation,
@@ -670,7 +1010,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
670
1010
  onButtonClick: () => t.nextStep(),
671
1011
  blurImage: r
672
1012
  });
673
- }, J = ({ manager: t, state: n, blurImage: r, ...i }) => {
1013
+ }, X = ({ manager: t, state: n, blurImage: r, ...i }) => {
674
1014
  let { t: a } = e();
675
1015
  if (n.status === "error") return /* @__PURE__ */ u("div", {
676
1016
  class: "IncodeIdError",
@@ -685,7 +1025,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
685
1025
  })]
686
1026
  });
687
1027
  let o = n.currentMode === "passport" ? "passport" : "id";
688
- return n.previewImageUrl ? /* @__PURE__ */ u(K, {
1028
+ return n.previewImageUrl ? /* @__PURE__ */ u(J, {
689
1029
  variant: "error",
690
1030
  imageUrl: n.previewImageUrl,
691
1031
  orientation: n.orientation,
@@ -697,7 +1037,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
697
1037
  attemptsRemaining: n.attemptsRemaining,
698
1038
  blurImage: r
699
1039
  }) : null;
700
- }, se = ({ manager: t }) => {
1040
+ }, Z = ({ manager: t }) => {
701
1041
  let { t: r } = e(), i = s(null);
702
1042
  return n(() => {
703
1043
  i.current?.focus();
@@ -709,7 +1049,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
709
1049
  class: "IncodeIdExpiredContent",
710
1050
  role: "alert",
711
1051
  children: [
712
- /* @__PURE__ */ u(G, { className: "IncodeIdExpiredIcon" }),
1052
+ /* @__PURE__ */ u(ye, { className: "IncodeIdExpiredIcon" }),
713
1053
  /* @__PURE__ */ u(g, {
714
1054
  ref: i,
715
1055
  tabIndex: -1,
@@ -734,65 +1074,65 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
734
1074
  })
735
1075
  })]
736
1076
  });
737
- }, Y = /* @__PURE__ */ new Map(), X = !1, Z = {
1077
+ }, Q = /* @__PURE__ */ new Map(), be = !1, $ = {
738
1078
  blur: () => import("./blurdevicelottie-DCVb3_MF.js"),
739
1079
  glare: () => import("./glaredevicelottie--PlYPjZt.js"),
740
1080
  align: () => import("./aligndevicelottie-CpAPbotJ.js"),
741
1081
  front: () => import("./frontdevicelottie-6sxr3oQH.js"),
742
1082
  back: () => import("./backdevicelottie-Dx1dP2K0.js")
743
1083
  };
744
- function Q(e) {
745
- X || (X = !0, Promise.all([
746
- Z.blur(),
747
- Z.glare(),
748
- Z.align(),
749
- Z.front(),
750
- Z.back()
1084
+ function xe(e) {
1085
+ be || (be = !0, Promise.all([
1086
+ $.blur(),
1087
+ $.glare(),
1088
+ $.align(),
1089
+ $.front(),
1090
+ $.back()
751
1091
  ]).then(([t, n, r, i, a]) => {
752
- 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?.();
1092
+ Q.set("blur", t.default), Q.set("glare", n.default), Q.set("align", r.default), Q.set("front", i.default), Q.set("back", a.default), e?.();
753
1093
  }).catch(() => {}));
754
1094
  }
755
- function ce() {
756
- Q();
1095
+ function Se() {
1096
+ xe();
757
1097
  }
758
- function le() {
1098
+ function Ce() {
759
1099
  n(() => {
760
- ce();
1100
+ Se();
761
1101
  }, []);
762
1102
  }
763
- function ue(t, r) {
1103
+ function we(t, r) {
764
1104
  let { t: i } = e(), [, a] = l(0);
765
1105
  if (n(() => {
766
- Q(() => a((e) => e + 1));
1106
+ xe(() => a((e) => e + 1));
767
1107
  }, []), t === "blur") return {
768
1108
  title: i("idv2.capture.notifications.blur.title"),
769
1109
  description: i("idv2.capture.notifications.blur.description"),
770
- animationData: Y.get("blur") ?? null
1110
+ animationData: Q.get("blur") ?? null
771
1111
  };
772
1112
  if (t === "glare") return {
773
1113
  title: i("idv2.capture.notifications.glare.title"),
774
1114
  description: i("idv2.capture.notifications.glare.description"),
775
- animationData: Y.get("glare") ?? null
1115
+ animationData: Q.get("glare") ?? null
776
1116
  };
777
1117
  if (t === "farAway") return {
778
1118
  title: i("idv2.capture.notifications.notAligned.title"),
779
1119
  description: i("idv2.capture.notifications.notAligned.description"),
780
- animationData: Y.get("align") ?? null
1120
+ animationData: Q.get("align") ?? null
781
1121
  };
782
1122
  if (t === "wrongSide") {
783
1123
  let e = r === "back";
784
1124
  return {
785
1125
  title: i(e ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
786
1126
  description: i(e ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
787
- animationData: Y.get(e ? "back" : "front") ?? null
1127
+ animationData: Q.get(e ? "back" : "front") ?? null
788
1128
  };
789
1129
  }
790
1130
  return null;
791
1131
  }
792
1132
  //#endregion
793
1133
  //#region src/modules/id/capture/captureNotification.tsx
794
- var de = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
795
- let { t: c } = e(), l = ue(r, i), d = s(null), f = s({
1134
+ var Te = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
1135
+ let { t: c } = e(), l = we(r, i), d = s(null), f = s({
796
1136
  message: "",
797
1137
  at: 0
798
1138
  }), 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", T = o((e) => {
@@ -893,7 +1233,7 @@ var de = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
893
1233
  }),
894
1234
  l.animationData && /* @__PURE__ */ u("div", {
895
1235
  class: "IncodeIdCaptureNotificationAnimation",
896
- children: /* @__PURE__ */ u(D, {
1236
+ children: /* @__PURE__ */ u(O, {
897
1237
  animationData: l.animationData,
898
1238
  loop: !0
899
1239
  })
@@ -901,34 +1241,34 @@ var de = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
901
1241
  ]
902
1242
  })
903
1243
  }) : null] });
904
- }, fe = i(() => import("./front-horizontal-hint-SvDdygvL.js")), pe = i(() => import("./front-vertical-hint-vIniWZ_9.js")), me = i(() => import("./back-horizontal-hint-C_wAUpW0.js")), he = i(() => import("./back-vertical-hint-C9xK0aN8.js")), ge = i(() => import("./passport-horizontal-hint-Bxb4tVrA.js")), _e = i(() => import("./passport-vertical-hint-D6hgaXKT.js")), ve = {
1244
+ }, Ee = i(() => import("./front-horizontal-hint-SvDdygvL.js")), De = i(() => import("./front-vertical-hint-vIniWZ_9.js")), Oe = i(() => import("./back-horizontal-hint-C_wAUpW0.js")), ke = i(() => import("./back-vertical-hint-C9xK0aN8.js")), Ae = i(() => import("./passport-horizontal-hint-Bxb4tVrA.js")), je = i(() => import("./passport-vertical-hint-D6hgaXKT.js")), Me = {
905
1245
  "front-horizontal": 348,
906
1246
  "back-horizontal": 348,
907
1247
  "passport-horizontal": 342
908
- }, ye = {
1248
+ }, Ne = {
909
1249
  "front-vertical": 446,
910
1250
  "back-vertical": 446,
911
1251
  "passport-vertical": 342
912
1252
  };
913
- function be(e, t, n, r) {
914
- let i = `${e}-${t}`, a = ve[i];
1253
+ function Pe(e, t, n, r) {
1254
+ let i = `${e}-${t}`, a = Me[i];
915
1255
  if (a) return n / a;
916
- let o = ye[i];
1256
+ let o = Ne[i];
917
1257
  return o ? r / o : 1;
918
1258
  }
919
- var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1259
+ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
920
1260
  let i = s(null), [a, o] = l(1);
921
1261
  n(() => {
922
1262
  let n = i.current;
923
1263
  if (!n) return;
924
1264
  let r = () => {
925
- o(be(e, t, n.clientWidth, n.clientHeight));
1265
+ o(Pe(e, t, n.clientWidth, n.clientHeight));
926
1266
  };
927
1267
  r();
928
1268
  let a = new ResizeObserver(r);
929
1269
  return a.observe(n), () => a.disconnect();
930
1270
  }, [e, t]);
931
- let d = () => e === "front" ? u(t === "horizontal" ? fe : pe, {}) : e === "back" ? u(t === "horizontal" ? me : he, {}) : e === "passport" ? u(t === "horizontal" ? ge : _e, {}) : null;
1271
+ let d = () => e === "front" ? u(t === "horizontal" ? Ee : De, {}) : e === "back" ? u(t === "horizontal" ? Oe : ke, {}) : e === "passport" ? u(t === "horizontal" ? Ae : je, {}) : null;
932
1272
  return /* @__PURE__ */ u("div", {
933
1273
  ref: i,
934
1274
  class: "IncodeIdHint",
@@ -949,9 +1289,9 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
949
1289
  })
950
1290
  })
951
1291
  });
952
- }, xe = r(({ mode: t, orientation: r, detectionStatus: i, counterValue: o, isCapturing: c, showManualCapture: d, onCapture: f, onOpenHelp: m, helpButtonRef: h, captureButtonRef: g }, _) => {
1292
+ }, Ie = r(({ mode: t, orientation: r, detectionStatus: i, counterValue: o, isCapturing: c, showManualCapture: d, onCapture: f, onOpenHelp: m, helpButtonRef: h, captureButtonRef: g }, _) => {
953
1293
  let { t: v } = e();
954
- le();
1294
+ Ce();
955
1295
  let y = s(!1), [b, x] = l(!1);
956
1296
  n(() => {
957
1297
  if (i === "idNotDetected") {
@@ -988,23 +1328,23 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
988
1328
  t,
989
1329
  v
990
1330
  ]), w = S(), T = t === "passport", E = r !== "vertical" || T ? "horizontal" : "vertical";
991
- return /* @__PURE__ */ u(L, {
1331
+ return /* @__PURE__ */ u(B, {
992
1332
  className: "IncodeCaptureOverlayId",
993
1333
  children: [
994
1334
  /* @__PURE__ */ u("div", {
995
1335
  class: "IncodeCaptureTopSection",
996
- children: [/* @__PURE__ */ u(de, {
1336
+ children: [/* @__PURE__ */ u(Te, {
997
1337
  detectionStatus: i,
998
1338
  mode: t,
999
1339
  isCapturing: c
1000
- }), /* @__PURE__ */ u(R, {
1340
+ }), /* @__PURE__ */ u(V, {
1001
1341
  title: C?.title ?? "",
1002
1342
  subtitle: C?.subtitle,
1003
1343
  visible: C !== null,
1004
1344
  titleId: "id-capture-heading"
1005
1345
  })]
1006
1346
  }),
1007
- /* @__PURE__ */ u(I, {
1347
+ /* @__PURE__ */ u(z, {
1008
1348
  ref: _,
1009
1349
  variant: "locked",
1010
1350
  orientation: E,
@@ -1013,7 +1353,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1013
1353
  children: [c && o > 0 && /* @__PURE__ */ u("div", {
1014
1354
  class: "IncodeCaptureCounter",
1015
1355
  children: o
1016
- }), b && /* @__PURE__ */ u($, {
1356
+ }), b && /* @__PURE__ */ u(Fe, {
1017
1357
  mode: t,
1018
1358
  orientation: r ?? "horizontal",
1019
1359
  onAnimationEnd: () => x(!1)
@@ -1025,7 +1365,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1025
1365
  "aria-atomic": "true",
1026
1366
  children: c && o > 0 ? o : ""
1027
1367
  }),
1028
- /* @__PURE__ */ u(B, {
1368
+ /* @__PURE__ */ u(U, {
1029
1369
  onOpenHelp: m,
1030
1370
  onCapture: f,
1031
1371
  isManualCapture: d,
@@ -1047,10 +1387,10 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1047
1387
  })
1048
1388
  ]
1049
1389
  });
1050
- }), Se = ({ manager: e, state: t }) => {
1390
+ }), Le = ({ manager: e, state: t }) => {
1051
1391
  if (t.captureStatus === "uploading" && t.previewImageUrl) {
1052
1392
  let e = t.currentMode === "passport" ? "passport" : "id";
1053
- return /* @__PURE__ */ u(U, {
1393
+ return /* @__PURE__ */ u(_e, {
1054
1394
  imageUrl: t.previewImageUrl,
1055
1395
  progress: t.uploadProgress ?? 0,
1056
1396
  orientation: t.orientation,
@@ -1058,19 +1398,19 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1058
1398
  blurImage: t.ageAssurance
1059
1399
  });
1060
1400
  }
1061
- return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(q, {
1401
+ return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(Y, {
1062
1402
  manager: e,
1063
1403
  state: t,
1064
1404
  blurImage: t.ageAssurance
1065
- }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ u(J, {
1405
+ }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ u(X, {
1066
1406
  manager: e,
1067
1407
  state: t,
1068
1408
  blurImage: t.ageAssurance
1069
- }) : /* @__PURE__ */ u(Ce, {
1409
+ }) : /* @__PURE__ */ u(Re, {
1070
1410
  manager: e,
1071
1411
  state: t
1072
1412
  });
1073
- }, Ce = ({ manager: e, state: t }) => {
1413
+ }, Re = ({ manager: e, state: t }) => {
1074
1414
  let n = s(null), r = s(null), i = s(null), a = s(null), [c, p] = l(!1), m = o(() => {
1075
1415
  let t = n.current;
1076
1416
  if (!t) return;
@@ -1099,11 +1439,11 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1099
1439
  hideFooterBranding: !0,
1100
1440
  className: "IncodeIdCapturePage",
1101
1441
  children: [
1102
- /* @__PURE__ */ u(z, {
1442
+ /* @__PURE__ */ u(H, {
1103
1443
  stream: t.stream,
1104
1444
  onPlaying: m,
1105
1445
  "aria-hidden": c || void 0,
1106
- children: /* @__PURE__ */ u(xe, {
1446
+ children: /* @__PURE__ */ u(Ie, {
1107
1447
  ref: n,
1108
1448
  mode: t.currentMode,
1109
1449
  orientation: t.orientation,
@@ -1118,7 +1458,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1118
1458
  })
1119
1459
  }),
1120
1460
  /* @__PURE__ */ u("div", { ref: a }),
1121
- /* @__PURE__ */ u(oe, {
1461
+ /* @__PURE__ */ u(q, {
1122
1462
  open: c,
1123
1463
  onClose: b,
1124
1464
  onTakeManually: x,
@@ -1126,7 +1466,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1126
1466
  })
1127
1467
  ]
1128
1468
  });
1129
- }, we = ({ manager: t, state: r }) => {
1469
+ }, ze = ({ manager: t, state: r }) => {
1130
1470
  let { t: i } = e(), [a, o] = l(!1), [s, c] = l(null), d = r.selectedDocumentType === "passport", f = r.currentMode === "back";
1131
1471
  n(() => {
1132
1472
  d ? import("./passport-tutorial-CFp2zeDJ.js").then((e) => {
@@ -1138,7 +1478,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1138
1478
  });
1139
1479
  }, [d, f]);
1140
1480
  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");
1141
- return /* @__PURE__ */ u(O, {
1481
+ return /* @__PURE__ */ u(ee, {
1142
1482
  animationData: s,
1143
1483
  title: m,
1144
1484
  subtitle: h,
@@ -1150,7 +1490,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
1150
1490
  isLoading: a,
1151
1491
  className: p("IncodeIdTutorial", d ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId")
1152
1492
  });
1153
- }, Te = {
1493
+ }, Be = {
1154
1494
  digitalIdUpload: {
1155
1495
  type: "digitalIdUpload",
1156
1496
  icon: () => /* @__PURE__ */ u("svg", {
@@ -2187,16 +2527,16 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
2187
2527
  };
2188
2528
  //#endregion
2189
2529
  //#region src/modules/id/chooser/chooser.helpers.ts
2190
- function Ee(e) {
2530
+ function Ve(e) {
2191
2531
  return e.reduce((e, t) => {
2192
- let n = Te[t];
2532
+ let n = Be[t];
2193
2533
  return n && e.push(n), e;
2194
2534
  }, []).sort((e, t) => e.weight - t.weight);
2195
2535
  }
2196
2536
  //#endregion
2197
2537
  //#region src/modules/id/chooser/chooser.tsx
2198
- var De = ({ manager: t, state: n }) => {
2199
- let { t: r } = e(), i = a(() => Ee(n.availableDocumentTypes), [n.availableDocumentTypes]), o = (e) => {
2538
+ var He = ({ manager: t, state: n }) => {
2539
+ let { t: r } = e(), i = a(() => Ve(n.availableDocumentTypes), [n.availableDocumentTypes]), o = (e) => {
2200
2540
  t.selectDocument(e);
2201
2541
  };
2202
2542
  return /* @__PURE__ */ u(h, {
@@ -2205,7 +2545,7 @@ var De = ({ manager: t, state: n }) => {
2205
2545
  className: "IncodeChooserPage",
2206
2546
  children: /* @__PURE__ */ u("div", {
2207
2547
  class: "IncodeChooserContainer",
2208
- children: /* @__PURE__ */ u(N, { children: i.map((e) => /* @__PURE__ */ u(P, {
2548
+ children: /* @__PURE__ */ u(de, { children: i.map((e) => /* @__PURE__ */ u(L, {
2209
2549
  icon: e.icon,
2210
2550
  title: r(e.title),
2211
2551
  testId: e.testId,
@@ -2214,7 +2554,7 @@ var De = ({ manager: t, state: n }) => {
2214
2554
  }, e.type)) })
2215
2555
  })
2216
2556
  });
2217
- }, Oe = ({ manager: t, direction: r }) => {
2557
+ }, Ue = ({ manager: t, direction: r }) => {
2218
2558
  let [i, a] = l(null), [s, c] = l(!1), { t: d } = e();
2219
2559
  n(() => {
2220
2560
  import("./flip-animation-CviBXTS-.js").then((e) => {
@@ -2236,7 +2576,7 @@ var De = ({ manager: t, state: n }) => {
2236
2576
  children: d(r === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront")
2237
2577
  }),
2238
2578
  /* @__PURE__ */ u(m, { size: 32 }),
2239
- /* @__PURE__ */ u(D, {
2579
+ /* @__PURE__ */ u(O, {
2240
2580
  animationData: i,
2241
2581
  loop: !1,
2242
2582
  reverse: r === "toFront",
@@ -2246,4 +2586,4 @@ var De = ({ manager: t, state: n }) => {
2246
2586
  }) : null;
2247
2587
  };
2248
2588
  //#endregion
2249
- 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 };
2589
+ export { F as _, Z as a, U as c, B as d, z as f, I as g, ue as h, Le as i, H as l, de as m, He as n, X as o, L as p, ze as r, G as s, Ue as t, V as u, k as v, te as y };