@incodetech/web 0.0.0-dev-20260320-b29aeee → 0.0.0-dev-20260320-e46eb90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{Trans-Cm7gi0st.js → Trans-Bw5n8KhH.js} +2 -2
  2. package/dist/{addressAutocomplete-BIQwiDWk.js → addressAutocomplete-D7g-naeA.js} +6 -6
  3. package/dist/authentication/authentication.es.js +5 -5
  4. package/dist/base.css +93 -0
  5. package/dist/{button-zCdeDeEB.js → button-Yr39X4SE.js} +2 -2
  6. package/dist/{captureFooter-SNtyUXrI.js → captureFooter-Dum5qpdZ.js} +4 -4
  7. package/dist/checkbox-BkW6ZbEQ.js +137 -0
  8. package/dist/{chevronDown-DRVnB275.js → chevronDown-CsZysK60.js} +1 -1
  9. package/dist/{closeIcon-D2dmrZca.js → closeIcon-DrD_JWne.js} +1 -1
  10. package/dist/consent/consent.es.js +1889 -0
  11. package/dist/consent/styles.css +113 -0
  12. package/dist/curp-validation/curp-validation.es.js +11 -11
  13. package/dist/{dateInputComposed-C8WTSu9L.js → dateInputComposed-CjfYBUJj.js} +4 -4
  14. package/dist/{documentCapture-DWNK3phM.js → documentCapture-DGJU-4sT.js} +10 -10
  15. package/dist/{dropdownComposed-Cg6lQD2C.js → dropdownComposed-DLZ4R_VD.js} +5 -5
  16. package/dist/{ekybModule-DtMbgF08.js → ekybModule-CnuxaZ9k.js} +10 -10
  17. package/dist/{ekycModule-CXSChoV-.js → ekycModule-BggwsBOH.js} +11 -11
  18. package/dist/email/email.es.js +6 -6
  19. package/dist/{errorContent-B3YzH-UQ.js → errorContent-LcOhVnBZ.js} +6 -6
  20. package/dist/{errorIcon-bIXk9nAy.js → errorIcon-DOyZZgsP.js} +1 -1
  21. package/dist/extensibility.es.js +56 -55
  22. package/dist/{faceMatch-BdMwIeBs.js → faceMatch-C5Sgst55.js} +5 -5
  23. package/dist/{fileIcon-E4B7hd8V.js → fileIcon--4cgz7hZ.js} +1 -1
  24. package/dist/{flipAnimation-DLpjmTf-.js → flipAnimation-CJfs4vnz.js} +379 -509
  25. package/dist/flow/flow.es.js +290 -275
  26. package/dist/flow/styles.css +149 -0
  27. package/dist/{formField-hlgxOSE6.js → formField-6BHE59Av.js} +8 -8
  28. package/dist/geolocation/geolocation.es.js +6 -6
  29. package/dist/governmentValidation/governmentValidation.es.js +10 -10
  30. package/dist/id/id.es.js +15 -15
  31. package/dist/{incodeModule-aE-LkKwM.js → incodeModule-Bxzkb7nW.js} +1 -1
  32. package/dist/index.es.js +3 -3
  33. package/dist/{inputComposed-CyGtRLzv.js → inputComposed-n2VIh213.js} +5 -5
  34. package/dist/{manualCaptureButton-iYqQECzn.js → manualCaptureButton-CtHbJjgz.js} +9 -9
  35. package/dist/{otpInput-B3iNW8b5.js → otpInput-2bT7uNnk.js} +4 -4
  36. package/dist/{page-Dv0s0RPn.js → page-DO2rYslN.js} +2 -2
  37. package/dist/phone/phone.es.js +7 -7
  38. package/dist/{phoneInput-NVIE7YFb.js → phoneInput-B7gKhoUa.js} +3 -3
  39. package/dist/{phoneInputComposed-DKesjaq0.js → phoneInputComposed-C66n6e7L.js} +6 -6
  40. package/dist/{processing-BhY0-0xy.js → processing-BGKugkCh.js} +4 -4
  41. package/dist/selfie/selfie.es.js +6 -6
  42. package/dist/{spinner-BbVGMG-G.js → spinner-Djok6FY8.js} +2 -2
  43. package/dist/{successIcon-DN8LMqE2.js → successIcon-CjkBWk8J.js} +1 -1
  44. package/dist/{tutorial-CDJugc5j.js → tutorial-Dptz5zyj.js} +8 -8
  45. package/dist/types/consent.d.ts +36 -0
  46. package/dist/{uiConfig-Z6RT23Sl.js → uiConfig-CKJmKRCo.js} +1 -1
  47. package/dist/{useMediaQuery-CiSMgDyi.js → useMediaQuery-DSN9IIfj.js} +1 -1
  48. package/dist/{vendor-preact-BXf0bkEs.js → vendor-preact--mDTxXnt.js} +2 -1
  49. package/dist/{warningIcon-BBoCroUd.js → warningIcon-DgHOtF9T.js} +1 -1
  50. package/package.json +12 -2
@@ -1,46 +1,25 @@
1
- import { u as e, d as x, b as g, S as Z, B as k } from "./button-zCdeDeEB.js";
2
- import { _ as V, D as H, d as b, A as m, y as I, k as $, q as U, T as W } from "./vendor-preact-BXf0bkEs.js";
3
- import "./uiConfig-Z6RT23Sl.js";
4
- import { P as D } from "./page-Dv0s0RPn.js";
5
- import { T as P, S as j } from "./spinner-BbVGMG-G.js";
6
- import { L as n1, P as r1, c as l1, a as o1, d as a1, C as s1, b as c1 } from "./captureFooter-SNtyUXrI.js";
7
- import { L as A, B as d1 } from "./manualCaptureButton-iYqQECzn.js";
1
+ import { u as e, d as y, b as m, S as _, B as D } from "./button-Yr39X4SE.js";
2
+ import { _ as E, D as R, A as I, y as f, d as M, k as O, q as P, T as S } from "./vendor-preact--mDTxXnt.js";
3
+ import "./uiConfig-CKJmKRCo.js";
4
+ import { P as F } from "./page-DO2rYslN.js";
5
+ import { T as H, S as z } from "./spinner-Djok6FY8.js";
6
+ import { L as K, P as j, c as q, a as Q, d as J, C as X, b as Y } from "./captureFooter-Dum5qpdZ.js";
7
+ import { L as k, B as e1 } from "./manualCaptureButton-CtHbJjgz.js";
8
8
  import "@incodetech/core";
9
- import "./inputComposed-CyGtRLzv.js";
10
- import { E as K } from "./errorIcon-bIXk9nAy.js";
11
- import "./phoneInputComposed-DKesjaq0.js";
12
- import "./dateInputComposed-C8WTSu9L.js";
13
- import { S as C1 } from "./successIcon-DN8LMqE2.js";
9
+ import "./inputComposed-n2VIh213.js";
10
+ import "./checkbox-BkW6ZbEQ.js";
11
+ import "./phoneInputComposed-C66n6e7L.js";
12
+ import "./dateInputComposed-CjfYBUJj.js";
13
+ import { E as t1 } from "./errorIcon-DOyZZgsP.js";
14
+ import { S as i1 } from "./successIcon-CjkBWk8J.js";
14
15
  import "./countries-DfLkrF0x.js";
15
- const p1 = ({ size: i = 28 }) => /* @__PURE__ */ e(
16
- "svg",
17
- {
18
- width: i,
19
- height: i,
20
- viewBox: "0 0 28 28",
21
- fill: "none",
22
- xmlns: "http://www.w3.org/2000/svg",
23
- "aria-hidden": "true",
24
- children: [
25
- /* @__PURE__ */ e("title", { children: "checkmark" }),
26
- /* @__PURE__ */ e(
27
- "path",
28
- {
29
- "fill-rule": "evenodd",
30
- "clip-rule": "evenodd",
31
- d: "M19.3321 10.2929C19.7226 10.6834 19.7226 11.3166 19.3321 11.7071L13.3321 17.7071C12.9416 18.0976 12.3084 18.0976 11.9179 17.7071L9.29289 15.0821C8.90237 14.6916 8.90237 14.0584 9.29289 13.6679C9.68342 13.2774 10.3166 13.2774 10.7071 13.6679L12.625 15.5858L17.9179 10.2929C18.3084 9.90237 18.9416 9.90237 19.3321 10.2929Z",
32
- fill: "var(--checkbox-icon-default)"
33
- }
34
- )
35
- ]
36
- }
37
- ), h1 = ({
38
- size: i,
16
+ const n1 = ({
17
+ size: n,
39
18
  class: t,
40
- variant: n = "xs"
19
+ variant: i = "xs"
41
20
  }) => {
42
- const r = i ?? (n === "xs" ? 14 : 24);
43
- return n === "xs" ? /* @__PURE__ */ e(
21
+ const r = n ?? (i === "xs" ? 14 : 24);
22
+ return i === "xs" ? /* @__PURE__ */ e(
44
23
  "svg",
45
24
  {
46
25
  width: r,
@@ -82,148 +61,41 @@ const p1 = ({ size: i = 28 }) => /* @__PURE__ */ e(
82
61
  )
83
62
  }
84
63
  );
85
- }, u1 = (i) => /* @__PURE__ */ V("svg", { width: 10, height: 10, viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ V("g", { clipPath: "url(#clip0_6394_10544)" }, /* @__PURE__ */ V("path", { d: "M8.3538 4.90039L3.9788 9.58789C3.93243 9.63737 3.87124 9.67042 3.80444 9.68207C3.73764 9.69372 3.66887 9.68332 3.60849 9.65245C3.54812 9.62158 3.49943 9.57191 3.46976 9.51094C3.4401 9.44997 3.43106 9.38101 3.44403 9.31445L4.01669 6.45L1.76552 5.60468C1.71717 5.5866 1.67405 5.55682 1.64002 5.51801C1.60599 5.4792 1.58211 5.43256 1.5705 5.38226C1.5589 5.33196 1.55993 5.27957 1.57351 5.22977C1.58709 5.17997 1.61279 5.13431 1.64833 5.09687L6.02333 0.409372C6.06969 0.359894 6.13089 0.326837 6.19769 0.315191C6.26448 0.303545 6.33326 0.313941 6.39363 0.34481C6.454 0.375679 6.50269 0.425347 6.53236 0.486318C6.56203 0.547289 6.57106 0.616255 6.55809 0.68281L5.98387 3.55039L8.23505 4.39453C8.28304 4.41273 8.32581 4.44248 8.35957 4.48114C8.39333 4.5198 8.41706 4.56618 8.42864 4.61618C8.44023 4.66619 8.43931 4.71828 8.42599 4.76784C8.41266 4.81741 8.38733 4.86293 8.35223 4.90039H8.3538Z", fill: "var(--icon-brand-500-static)" })), /* @__PURE__ */ V("defs", null, /* @__PURE__ */ V("clipPath", { id: "clip0_6394_10544" }, /* @__PURE__ */ V("rect", { width: 10, height: 10, fill: "white" })))), r2 = H(
86
- ({
87
- id: i,
88
- label: t,
89
- size: n = "m",
90
- checked: r,
91
- defaultChecked: l,
92
- disabled: o = !1,
93
- required: s = !1,
94
- name: a,
95
- value: d,
96
- onChange: c,
97
- error: h,
98
- helper: C,
99
- showErrorIcon: v = !0,
100
- class: u,
101
- "aria-label": L,
102
- "aria-labelledby": y,
103
- "aria-describedby": _,
104
- "aria-invalid": p,
105
- ...w
106
- }, f) => {
107
- const [E, F] = b(!!l), B = r !== void 0, O = B ? !!r : E, R = !!o, Y = !!s, e1 = typeof u == "string" ? u : void 0, t1 = (N) => {
108
- B || F(N.target.checked), c?.(N);
109
- }, S = C ? `${i}-helper` : void 0, z = h ? `${i}-error` : void 0, i1 = [_, z, S].filter(Boolean).join(" ") || void 0;
110
- return /* @__PURE__ */ e("div", { class: x("IncodeCheckbox", e1), children: [
111
- /* @__PURE__ */ e(
112
- "label",
113
- {
114
- class: x("IncodeCheckboxLabel", {
115
- IncodeCheckboxLabelDisabled: R
116
- }),
117
- htmlFor: i,
118
- children: [
119
- /* @__PURE__ */ e("div", { class: "relative inline-flex", children: [
120
- /* @__PURE__ */ e(
121
- "input",
122
- {
123
- ref: f,
124
- type: "checkbox",
125
- class: "IncodeCheckboxInput",
126
- id: i,
127
- name: a,
128
- value: d,
129
- ...B ? { checked: r } : { defaultChecked: l },
130
- disabled: o,
131
- required: s,
132
- onChange: t1,
133
- "aria-label": L,
134
- "aria-labelledby": y,
135
- "aria-describedby": i1,
136
- "aria-invalid": p || !!h,
137
- "aria-required": Y,
138
- ...w
139
- }
140
- ),
141
- /* @__PURE__ */ e(
142
- "div",
143
- {
144
- class: x("IncodeCheckboxVisual", {
145
- IncodeCheckboxVisualChecked: O,
146
- IncodeCheckboxVisualDisabled: R,
147
- IncodeCheckboxVisualError: !!h
148
- }),
149
- children: O && /* @__PURE__ */ e(p1, { size: 28 })
150
- }
151
- )
152
- ] }),
153
- t && /* @__PURE__ */ e(
154
- "span",
155
- {
156
- class: x("IncodeCheckboxText", {
157
- IncodeCheckboxTextS: n === "s",
158
- IncodeCheckboxTextM: n === "m",
159
- IncodeCheckboxTextDisabled: R
160
- }),
161
- "aria-hidden": y ? "true" : void 0,
162
- children: [
163
- t,
164
- s && /* @__PURE__ */ e("span", { class: "IncodeCheckboxRequired", "aria-hidden": "true", children: "*" })
165
- ]
166
- }
167
- )
168
- ]
169
- }
170
- ),
171
- h && /* @__PURE__ */ e(
172
- "div",
173
- {
174
- class: "IncodeCheckboxMessageWrapper",
175
- "data-testid": `${i}-error-wrapper`,
176
- children: [
177
- v && /* @__PURE__ */ e("div", { class: "IncodeCheckboxIconWrapper", children: /* @__PURE__ */ e(K, { size: 17 }) }),
178
- /* @__PURE__ */ e("p", { id: z, class: "IncodeCheckboxErrorText", children: h })
179
- ]
180
- }
181
- ),
182
- C && !h && /* @__PURE__ */ e(
183
- "div",
184
- {
185
- class: "IncodeCheckboxMessageWrapper",
186
- "data-testid": `${i}-helper-wrapper`,
187
- children: /* @__PURE__ */ e("p", { id: S, class: "IncodeCheckboxHelperText", children: C })
188
- }
189
- )
190
- ] });
191
- }
192
- ), f1 = H(
193
- (i, t) => {
194
- const { class: n, rows: r = 4, ...l } = i;
64
+ }, r1 = (n) => /* @__PURE__ */ E("svg", { width: 10, height: 10, viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ E("g", { clipPath: "url(#clip0_6394_10544)" }, /* @__PURE__ */ E("path", { d: "M8.3538 4.90039L3.9788 9.58789C3.93243 9.63737 3.87124 9.67042 3.80444 9.68207C3.73764 9.69372 3.66887 9.68332 3.60849 9.65245C3.54812 9.62158 3.49943 9.57191 3.46976 9.51094C3.4401 9.44997 3.43106 9.38101 3.44403 9.31445L4.01669 6.45L1.76552 5.60468C1.71717 5.5866 1.67405 5.55682 1.64002 5.51801C1.60599 5.4792 1.58211 5.43256 1.5705 5.38226C1.5589 5.33196 1.55993 5.27957 1.57351 5.22977C1.58709 5.17997 1.61279 5.13431 1.64833 5.09687L6.02333 0.409372C6.06969 0.359894 6.13089 0.326837 6.19769 0.315191C6.26448 0.303545 6.33326 0.313941 6.39363 0.34481C6.454 0.375679 6.50269 0.425347 6.53236 0.486318C6.56203 0.547289 6.57106 0.616255 6.55809 0.68281L5.98387 3.55039L8.23505 4.39453C8.28304 4.41273 8.32581 4.44248 8.35957 4.48114C8.39333 4.5198 8.41706 4.56618 8.42864 4.61618C8.44023 4.66619 8.43931 4.71828 8.42599 4.76784C8.41266 4.81741 8.38733 4.86293 8.35223 4.90039H8.3538Z", fill: "var(--icon-brand-500-static)" })), /* @__PURE__ */ E("defs", null, /* @__PURE__ */ E("clipPath", { id: "clip0_6394_10544" }, /* @__PURE__ */ E("rect", { width: 10, height: 10, fill: "white" })))), l1 = R(
65
+ (n, t) => {
66
+ const { class: i, rows: r = 4, ...l } = n;
195
67
  return /* @__PURE__ */ e(
196
68
  "textarea",
197
69
  {
198
70
  ...l,
199
71
  ref: t,
200
72
  rows: r,
201
- class: x("IncodeTextArea", n)
73
+ class: y("IncodeTextArea", i)
202
74
  }
203
75
  );
204
76
  }
205
- ), I1 = H(
77
+ ), o1 = R(
206
78
  ({
207
- id: i,
79
+ id: n,
208
80
  label: t,
209
- "aria-label": n,
81
+ "aria-label": i,
210
82
  error: r,
211
83
  showErrorIcon: l,
212
84
  helper: o,
213
- showHelperIcon: s,
85
+ showHelperIcon: c,
214
86
  required: a,
215
87
  rows: d = 4,
216
- class: c,
217
- ...h
88
+ class: s,
89
+ ...g
218
90
  }, C) => {
219
- const v = `${i}-helper`, u = `${i}-error`, L = [o ? v : null, r ? u : null].filter(Boolean).join(" ");
220
- return /* @__PURE__ */ e("div", { class: x("IncodeTextAreaComposed", c), children: [
91
+ const v = `${n}-helper`, u = `${n}-error`, x = [o ? v : null, r ? u : null].filter(Boolean).join(" ");
92
+ return /* @__PURE__ */ e("div", { class: y("IncodeTextAreaComposed", s), children: [
221
93
  t && /* @__PURE__ */ e(
222
94
  "label",
223
95
  {
224
96
  class: "IncodeTextAreaComposedLabel",
225
- htmlFor: i,
226
- "data-testid": `${i}-label`,
97
+ htmlFor: n,
98
+ "data-testid": `${n}-label`,
227
99
  children: [
228
100
  t,
229
101
  a && /* @__PURE__ */ e("span", { class: "IncodeTextAreaComposedRequired", children: " *" })
@@ -231,15 +103,15 @@ const p1 = ({ size: i = 28 }) => /* @__PURE__ */ e(
231
103
  }
232
104
  ),
233
105
  /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedWrapper", children: /* @__PURE__ */ e(
234
- f1,
106
+ l1,
235
107
  {
236
- id: i,
108
+ id: n,
237
109
  rows: d,
238
- ...h,
110
+ ...g,
239
111
  ref: C,
240
112
  required: a,
241
- ...!t && n ? { "aria-label": n } : {},
242
- "aria-describedby": L || void 0,
113
+ ...!t && i ? { "aria-label": i } : {},
114
+ "aria-describedby": x || void 0,
243
115
  "aria-required": a ? "true" : void 0,
244
116
  "aria-invalid": r ? "true" : void 0
245
117
  }
@@ -248,9 +120,9 @@ const p1 = ({ size: i = 28 }) => /* @__PURE__ */ e(
248
120
  "div",
249
121
  {
250
122
  class: "IncodeTextAreaComposedErrorWrapper",
251
- "data-testid": `${i}-error-wrapper`,
123
+ "data-testid": `${n}-error-wrapper`,
252
124
  children: [
253
- l && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(K, { size: 17 }) }),
125
+ l && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(t1, { size: 17 }) }),
254
126
  /* @__PURE__ */ e("p", { id: u, class: "IncodeTextAreaComposedError", children: r })
255
127
  ]
256
128
  }
@@ -259,9 +131,9 @@ const p1 = ({ size: i = 28 }) => /* @__PURE__ */ e(
259
131
  "div",
260
132
  {
261
133
  class: "IncodeTextAreaComposedHelperWrapper",
262
- "data-testid": `${i}-helper-wrapper`,
134
+ "data-testid": `${n}-helper-wrapper`,
263
135
  children: [
264
- s && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(C1, { size: 17 }) }),
136
+ c && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(i1, { size: 17 }) }),
265
137
  /* @__PURE__ */ e("p", { id: v, class: "IncodeTextAreaComposedHelper", children: o })
266
138
  ]
267
139
  }
@@ -269,16 +141,16 @@ const p1 = ({ size: i = 28 }) => /* @__PURE__ */ e(
269
141
  ] });
270
142
  }
271
143
  );
272
- I1.displayName = "TextAreaComposed";
273
- function v1({
274
- children: i
144
+ o1.displayName = "TextAreaComposed";
145
+ function a1({
146
+ children: n
275
147
  }) {
276
- return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardList", children: i });
148
+ return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardList", children: n });
277
149
  }
278
- function m1({
279
- icon: i,
150
+ function s1({
151
+ icon: n,
280
152
  title: t,
281
- testId: n,
153
+ testId: i,
282
154
  onClick: r,
283
155
  tag: l
284
156
  }) {
@@ -288,27 +160,27 @@ function m1({
288
160
  type: "button",
289
161
  class: "IncodeVerificationOptionCard",
290
162
  onClick: r,
291
- "data-testid": n,
292
- "aria-labelledby": `${n}-label`,
163
+ "data-testid": i,
164
+ "aria-labelledby": `${i}-label`,
293
165
  children: [
294
166
  /* @__PURE__ */ e(
295
167
  "span",
296
168
  {
297
169
  class: "IncodeVerificationOptionCardIcon",
298
170
  "aria-hidden": "true",
299
- "data-testid": `${n}-icon`,
300
- children: /* @__PURE__ */ e(i, {})
171
+ "data-testid": `${i}-icon`,
172
+ children: /* @__PURE__ */ e(n, {})
301
173
  }
302
174
  ),
303
175
  /* @__PURE__ */ e("span", { class: "IncodeVerificationOptionCardContent", children: [
304
176
  /* @__PURE__ */ e(
305
177
  "span",
306
178
  {
307
- id: `${n}-label`,
179
+ id: `${i}-label`,
308
180
  class: "IncodeVerificationOptionCardTitleTagContainer",
309
181
  children: [
310
182
  /* @__PURE__ */ e("span", { class: "IncodeVerificationOptionCardTitle", children: t }),
311
- l && /* @__PURE__ */ e(g1, { label: l })
183
+ l && /* @__PURE__ */ e(c1, { label: l })
312
184
  ]
313
185
  }
314
186
  ),
@@ -317,7 +189,7 @@ function m1({
317
189
  {
318
190
  class: "IncodeVerificationOptionCardArrow",
319
191
  "data-testid": "chevron-right-icon",
320
- children: /* @__PURE__ */ e(h1, { size: 24, variant: "m" })
192
+ children: /* @__PURE__ */ e(n1, { size: 24, variant: "m" })
321
193
  }
322
194
  )
323
195
  ] })
@@ -325,13 +197,13 @@ function m1({
325
197
  }
326
198
  );
327
199
  }
328
- function g1({ label: i }) {
200
+ function c1({ label: n }) {
329
201
  return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardTag", children: [
330
- /* @__PURE__ */ e(u1, {}),
331
- /* @__PURE__ */ e("span", { children: i })
202
+ /* @__PURE__ */ e(r1, {}),
203
+ /* @__PURE__ */ e("span", { children: n })
332
204
  ] });
333
205
  }
334
- const w1 = ({ className: i }) => /* @__PURE__ */ e(
206
+ const d1 = ({ className: n }) => /* @__PURE__ */ e(
335
207
  "svg",
336
208
  {
337
209
  width: "24",
@@ -339,7 +211,7 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
339
211
  viewBox: "0 0 24 24",
340
212
  fill: "none",
341
213
  xmlns: "http://www.w3.org/2000/svg",
342
- class: i,
214
+ class: n,
343
215
  "aria-hidden": "true",
344
216
  children: [
345
217
  /* @__PURE__ */ e(
@@ -379,7 +251,7 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
379
251
  )
380
252
  ]
381
253
  }
382
- ), x1 = ({ className: i }) => /* @__PURE__ */ e(
254
+ ), C1 = ({ className: n }) => /* @__PURE__ */ e(
383
255
  "svg",
384
256
  {
385
257
  width: "24",
@@ -387,7 +259,7 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
387
259
  viewBox: "0 0 24 24",
388
260
  fill: "none",
389
261
  xmlns: "http://www.w3.org/2000/svg",
390
- class: i,
262
+ class: n,
391
263
  "aria-hidden": "true",
392
264
  children: /* @__PURE__ */ e(
393
265
  "path",
@@ -397,7 +269,7 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
397
269
  }
398
270
  )
399
271
  }
400
- ), L1 = ({ className: i }) => /* @__PURE__ */ e(
272
+ ), p1 = ({ className: n }) => /* @__PURE__ */ e(
401
273
  "svg",
402
274
  {
403
275
  width: "24",
@@ -405,7 +277,7 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
405
277
  viewBox: "0 0 24 24",
406
278
  fill: "none",
407
279
  xmlns: "http://www.w3.org/2000/svg",
408
- class: i,
280
+ class: n,
409
281
  "aria-hidden": "true",
410
282
  children: [
411
283
  /* @__PURE__ */ e(
@@ -438,8 +310,8 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
438
310
  )
439
311
  ]
440
312
  }
441
- ), y1 = ({
442
- className: i
313
+ ), u1 = ({
314
+ className: n
443
315
  }) => /* @__PURE__ */ e(
444
316
  "svg",
445
317
  {
@@ -448,7 +320,7 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
448
320
  viewBox: "0 0 24 24",
449
321
  fill: "none",
450
322
  xmlns: "http://www.w3.org/2000/svg",
451
- class: i,
323
+ class: n,
452
324
  "aria-hidden": "true",
453
325
  children: [
454
326
  /* @__PURE__ */ e(
@@ -489,7 +361,7 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
489
361
  )
490
362
  ]
491
363
  }
492
- ), _1 = ({ className: i }) => /* @__PURE__ */ e(
364
+ ), h1 = ({ className: n }) => /* @__PURE__ */ e(
493
365
  "svg",
494
366
  {
495
367
  width: "64",
@@ -497,7 +369,7 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
497
369
  viewBox: "0 0 64 64",
498
370
  fill: "none",
499
371
  xmlns: "http://www.w3.org/2000/svg",
500
- class: i,
372
+ class: n,
501
373
  "aria-hidden": "true",
502
374
  children: [
503
375
  /* @__PURE__ */ e("circle", { cx: "32", cy: "32", r: "32", fill: "#14151A" }),
@@ -510,14 +382,14 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
510
382
  )
511
383
  ]
512
384
  }
513
- ), M1 = ({
514
- onClose: i,
385
+ ), f1 = ({
386
+ onClose: n,
515
387
  onTakeManually: t
516
388
  }) => {
517
- const { t: n } = g(), r = m(null), l = () => {
518
- t(), i();
389
+ const { t: i } = m(), r = I(null), l = () => {
390
+ t(), n();
519
391
  };
520
- return I(() => {
392
+ return f(() => {
521
393
  r.current?.focus();
522
394
  }, []), /* @__PURE__ */ e(
523
395
  "div",
@@ -532,20 +404,20 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
532
404
  {
533
405
  type: "button",
534
406
  class: "IncodeCommonIssuesCloseButton",
535
- onClick: i,
536
- "aria-label": n("commonIssues.close"),
537
- children: /* @__PURE__ */ e(x1, {})
407
+ onClick: n,
408
+ "aria-label": i("commonIssues.close"),
409
+ children: /* @__PURE__ */ e(C1, {})
538
410
  }
539
411
  ) }),
540
412
  /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesContent", children: [
541
413
  /* @__PURE__ */ e(
542
- _1,
414
+ h1,
543
415
  {
544
416
  className: "IncodeCommonIssuesQuestionIcon",
545
417
  "aria-hidden": "true"
546
418
  }
547
419
  ),
548
- /* @__PURE__ */ e(Z, { size: 12 }),
420
+ /* @__PURE__ */ e(_, { size: 12 }),
549
421
  /* @__PURE__ */ e(
550
422
  "h2",
551
423
  {
@@ -553,65 +425,65 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
553
425
  id: "common-issues-title",
554
426
  class: "IncodeCommonIssuesTitle",
555
427
  tabIndex: -1,
556
- children: n("commonIssues.commonIssues")
428
+ children: i("commonIssues.commonIssues")
557
429
  }
558
430
  ),
559
- /* @__PURE__ */ e(Z, { size: 24 }),
431
+ /* @__PURE__ */ e(_, { size: 24 }),
560
432
  /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCards", children: [
561
433
  /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
562
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(L1, {}) }),
434
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(p1, {}) }),
563
435
  /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
564
- /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: n("commonIssues.glarePresent") }),
565
- /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: n("commonIssues.glarePresentDescription") })
436
+ /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: i("commonIssues.glarePresent") }),
437
+ /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: i("commonIssues.glarePresentDescription") })
566
438
  ] })
567
439
  ] }),
568
440
  /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
569
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(w1, {}) }),
441
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(d1, {}) }),
570
442
  /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
571
- /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: n("commonIssues.blurPresent") }),
572
- /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: n("commonIssues.blurPresentDescription") })
443
+ /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: i("commonIssues.blurPresent") }),
444
+ /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: i("commonIssues.blurPresentDescription") })
573
445
  ] })
574
446
  ] }),
575
447
  /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
576
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(y1, {}) }),
448
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(u1, {}) }),
577
449
  /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
578
- /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: n("commonIssues.notReadable") }),
579
- /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: n("commonIssues.notReadableDescription") })
450
+ /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: i("commonIssues.notReadable") }),
451
+ /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: i("commonIssues.notReadableDescription") })
580
452
  ] })
581
453
  ] })
582
454
  ] }),
583
455
  /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesButtons", children: [
584
456
  /* @__PURE__ */ e(
585
- k,
457
+ D,
586
458
  {
587
459
  variant: "link",
588
460
  onClick: l,
589
461
  class: "IncodeCommonIssuesTakeManually",
590
- children: n("commonIssues.takeManually")
462
+ children: i("commonIssues.takeManually")
591
463
  }
592
464
  ),
593
- /* @__PURE__ */ e(k, { onClick: i, class: "IncodeCommonIssuesTryAgain", children: n("commonIssues.tryAgain") })
465
+ /* @__PURE__ */ e(D, { onClick: n, class: "IncodeCommonIssuesTryAgain", children: i("commonIssues.tryAgain") })
594
466
  ] })
595
467
  ] })
596
468
  ] })
597
469
  }
598
470
  );
599
- }, b1 = ({
600
- orientation: i,
471
+ }, I1 = ({
472
+ orientation: n,
601
473
  mode: t,
602
- state: n,
474
+ state: i,
603
475
  children: r,
604
476
  className: l
605
477
  }) => {
606
- const o = i !== "vertical" || t === "passport", s = t === "passport", a = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
478
+ const o = n !== "vertical" || t === "passport", c = t === "passport", a = `IncodeCaptureFrame${i.charAt(0).toUpperCase() + i.slice(1)}`;
607
479
  return /* @__PURE__ */ e(
608
480
  "div",
609
481
  {
610
- class: x(
482
+ class: y(
611
483
  "IncodeCaptureFrame",
612
484
  o ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical",
613
485
  a,
614
- s && "IncodeCaptureFramePassport",
486
+ c && "IncodeCaptureFramePassport",
615
487
  l
616
488
  ),
617
489
  "aria-hidden": "true",
@@ -619,72 +491,72 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
619
491
  children: r
620
492
  }
621
493
  );
622
- }, q = ({
623
- imageUrl: i,
494
+ }, N = ({
495
+ imageUrl: n,
624
496
  orientation: t,
625
- mode: n,
497
+ mode: i,
626
498
  borderState: r,
627
499
  topContent: l,
628
500
  bottomContent: o,
629
- overlayContent: s
501
+ overlayContent: c
630
502
  }) => {
631
- const { t: a } = g();
632
- return /* @__PURE__ */ e(D, { hideHeader: !0, hideFooterBranding: !0, children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayout", children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayoutContent", children: [
503
+ const { t: a } = m();
504
+ return /* @__PURE__ */ e(F, { hideHeader: !0, hideFooterBranding: !0, children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayout", children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayoutContent", children: [
633
505
  l && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingTopArea", children: l }),
634
506
  /* @__PURE__ */ e(
635
- b1,
507
+ I1,
636
508
  {
637
509
  orientation: t,
638
- mode: n === "id" ? "front" : n,
510
+ mode: i === "id" ? "front" : i,
639
511
  state: r,
640
512
  children: [
641
513
  /* @__PURE__ */ e(
642
514
  "img",
643
515
  {
644
- src: i,
516
+ src: n,
645
517
  alt: "",
646
518
  "aria-hidden": "true",
647
519
  class: "IncodeIdProcessingImage"
648
520
  }
649
521
  ),
650
- s && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingOverlay", "aria-hidden": "true", children: s })
522
+ c && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingOverlay", "aria-hidden": "true", children: c })
651
523
  ]
652
524
  }
653
525
  ),
654
526
  /* @__PURE__ */ e("div", { class: "IncodeIdProcessingBottomArea", children: [
655
527
  /* @__PURE__ */ e("div", { class: "IncodeCaptureEncryptionLabel", children: [
656
- /* @__PURE__ */ e(n1, { className: "IncodeCaptureEncryptionIcon" }),
528
+ /* @__PURE__ */ e(K, { className: "IncodeCaptureEncryptionIcon" }),
657
529
  /* @__PURE__ */ e("span", { children: a("v2.capture.label") })
658
530
  ] }),
659
531
  o
660
532
  ] })
661
533
  ] }) }) });
662
- }, B1 = ({
663
- imageUrl: i,
534
+ }, m1 = ({
535
+ imageUrl: n,
664
536
  progress: t,
665
- orientation: n,
537
+ orientation: i,
666
538
  mode: r
667
539
  }) => {
668
- const { t: l } = g(), o = m(null), s = n !== "vertical" || r === "passport", [a, d] = b(null);
669
- return I(() => {
540
+ const { t: l } = m(), o = I(null), c = i !== "vertical" || r === "passport", [a, d] = M(null);
541
+ return f(() => {
670
542
  o.current?.focus();
671
- }, []), I(() => {
672
- s ? import("./id-laser-h-BBV3r3rz.js").then((c) => {
673
- d(c.default);
674
- }) : import("./id-laser-v-BTHJaSfx.js").then((c) => {
675
- d(c.default);
543
+ }, []), f(() => {
544
+ c ? import("./id-laser-h-BBV3r3rz.js").then((s) => {
545
+ d(s.default);
546
+ }) : import("./id-laser-v-BTHJaSfx.js").then((s) => {
547
+ d(s.default);
676
548
  });
677
- }, [s]), /* @__PURE__ */ e(
678
- q,
549
+ }, [c]), /* @__PURE__ */ e(
550
+ N,
679
551
  {
680
- imageUrl: i,
681
- orientation: n,
552
+ imageUrl: n,
553
+ orientation: i,
682
554
  mode: r,
683
555
  borderState: "analyzing",
684
556
  topContent: /* @__PURE__ */ e("div", { class: "IncodeAnalyzingContent", children: [
685
- /* @__PURE__ */ e(r1, { progress: t }),
557
+ /* @__PURE__ */ e(j, { progress: t }),
686
558
  /* @__PURE__ */ e(
687
- P,
559
+ H,
688
560
  {
689
561
  ref: o,
690
562
  id: "analyzing-title",
@@ -695,7 +567,7 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
695
567
  )
696
568
  ] }),
697
569
  overlayContent: a ? /* @__PURE__ */ e(
698
- A,
570
+ k,
699
571
  {
700
572
  animationData: a,
701
573
  loop: !0,
@@ -704,10 +576,10 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
704
576
  ) : null
705
577
  }
706
578
  );
707
- }, Z1 = ({ className: i, ...t }) => /* @__PURE__ */ e(
579
+ }, g1 = ({ className: n, ...t }) => /* @__PURE__ */ e(
708
580
  "svg",
709
581
  {
710
- class: i,
582
+ class: n,
711
583
  width: "32",
712
584
  height: "32",
713
585
  viewBox: "0 0 32 32",
@@ -723,10 +595,10 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
723
595
  }
724
596
  )
725
597
  }
726
- ), Q = ({ className: i, ...t }) => /* @__PURE__ */ e(
598
+ ), G = ({ className: n, ...t }) => /* @__PURE__ */ e(
727
599
  "svg",
728
600
  {
729
- class: i,
601
+ class: n,
730
602
  width: "33",
731
603
  height: "32",
732
604
  viewBox: "0 0 33 32",
@@ -742,80 +614,80 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
742
614
  }
743
615
  )
744
616
  }
745
- ), J = ({
746
- variant: i,
617
+ ), $ = ({
618
+ variant: n,
747
619
  imageUrl: t,
748
- orientation: n,
620
+ orientation: i,
749
621
  mode: r,
750
622
  title: l,
751
623
  subtitle: o,
752
- buttonText: s,
624
+ buttonText: c,
753
625
  onButtonClick: a,
754
626
  attemptsRemaining: d
755
627
  }) => {
756
- const { t: c } = g(), h = m(null);
757
- return I(() => {
758
- h.current?.focus();
628
+ const { t: s } = m(), g = I(null);
629
+ return f(() => {
630
+ g.current?.focus();
759
631
  }, []), /* @__PURE__ */ e(
760
- q,
632
+ N,
761
633
  {
762
634
  imageUrl: t,
763
- orientation: n,
635
+ orientation: i,
764
636
  mode: r,
765
- borderState: i,
637
+ borderState: n,
766
638
  topContent: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingResultContent", role: "status", children: [
767
- i === "success" ? /* @__PURE__ */ e(Z1, { className: "IncodeIdProcessingResultIcon" }) : /* @__PURE__ */ e(Q, { className: "IncodeIdProcessingResultIcon" }),
768
- /* @__PURE__ */ e(Z, { size: 16 }),
639
+ n === "success" ? /* @__PURE__ */ e(g1, { className: "IncodeIdProcessingResultIcon" }) : /* @__PURE__ */ e(G, { className: "IncodeIdProcessingResultIcon" }),
640
+ /* @__PURE__ */ e(_, { size: 16 }),
769
641
  l && /* @__PURE__ */ e(
770
- P,
642
+ H,
771
643
  {
772
- ref: h,
644
+ ref: g,
773
645
  className: "IncodeIdProcessingResultTitle",
774
646
  tabIndex: -1,
775
647
  children: l
776
648
  }
777
649
  ),
778
- o && /* @__PURE__ */ e($, { children: [
779
- /* @__PURE__ */ e(Z, { size: 12 }),
650
+ o && /* @__PURE__ */ e(O, { children: [
651
+ /* @__PURE__ */ e(_, { size: 12 }),
780
652
  /* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultSubtitle", children: o })
781
653
  ] })
782
654
  ] }),
783
655
  bottomContent: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingResultButtonContainer", children: [
784
- d !== void 0 && d > 0 && /* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultAttempts", children: c("v2.idError.attemptsLeft", {
656
+ d !== void 0 && d > 0 && /* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultAttempts", children: s("v2.idError.attemptsLeft", {
785
657
  count: d
786
658
  }) }),
787
- /* @__PURE__ */ e(k, { onClick: a, "data-testid": "retry-button", children: s })
659
+ /* @__PURE__ */ e(D, { onClick: a, "data-testid": "retry-button", children: c })
788
660
  ] })
789
661
  }
790
662
  );
791
- }, E1 = ({ manager: i, state: t }) => {
792
- const { t: n } = g();
663
+ }, v1 = ({ manager: n, state: t }) => {
664
+ const { t: i } = m();
793
665
  if (!t.previewImageUrl)
794
666
  return null;
795
- const r = t.currentMode === "passport" ? "passport" : "id", l = () => t.needsBackCapture ? n("v2.idSuccess.subtitle") : t.needsFrontCapture ? n("idv2.capture.processing.successBackSubtitleScanFront") : n("v2.idSuccess.subtitleBack"), o = () => t.needsBackCapture ? n("idv2.capture.processing.scanBack") : t.needsFrontCapture ? n("idv2.capture.processing.scanFront") : n("idv2.capturePreview.continue");
667
+ const r = t.currentMode === "passport" ? "passport" : "id", l = () => t.needsBackCapture ? i("v2.idSuccess.subtitle") : t.needsFrontCapture ? i("idv2.capture.processing.successBackSubtitleScanFront") : i("v2.idSuccess.subtitleBack"), o = () => t.needsBackCapture ? i("idv2.capture.processing.scanBack") : t.needsFrontCapture ? i("idv2.capture.processing.scanFront") : i("idv2.capturePreview.continue");
796
668
  return /* @__PURE__ */ e(
797
- J,
669
+ $,
798
670
  {
799
671
  variant: "success",
800
672
  imageUrl: t.previewImageUrl,
801
673
  orientation: t.orientation,
802
674
  mode: r,
803
- title: n("v2.idSuccess.title"),
675
+ title: i("v2.idSuccess.title"),
804
676
  subtitle: l(),
805
677
  buttonText: o(),
806
- onButtonClick: () => i.nextStep()
678
+ onButtonClick: () => n.nextStep()
807
679
  }
808
680
  );
809
- }, V1 = ({ manager: i, state: t, ...n }) => {
810
- const { t: r } = g();
681
+ }, w1 = ({ manager: n, state: t, ...i }) => {
682
+ const { t: r } = m();
811
683
  if (t.status === "error")
812
684
  return /* @__PURE__ */ e("div", { class: "IncodeIdError", role: "alert", children: [
813
685
  /* @__PURE__ */ e("div", { class: "IncodeIdErrorMessage", children: t.error }),
814
- /* @__PURE__ */ e(k, { onClick: () => i.reset(), "data-testid": "retry-button", children: r("idv2.capturePreview.retry") })
686
+ /* @__PURE__ */ e(D, { onClick: () => n.reset(), "data-testid": "retry-button", children: r("idv2.capturePreview.retry") })
815
687
  ] });
816
688
  const l = t.currentMode === "passport" ? "passport" : "id";
817
689
  return t.previewImageUrl ? /* @__PURE__ */ e(
818
- J,
690
+ $,
819
691
  {
820
692
  variant: "error",
821
693
  imageUrl: t.previewImageUrl,
@@ -824,137 +696,137 @@ const w1 = ({ className: i }) => /* @__PURE__ */ e(
824
696
  title: t.uploadErrorMessage,
825
697
  subtitle: t.uploadErrorDescription,
826
698
  buttonText: t.canRetry ? r("idv2.capturePreview.tryAgain") : r("idv2.capturePreview.continue"),
827
- onButtonClick: () => i.continueFromError(),
699
+ onButtonClick: () => n.continueFromError(),
828
700
  attemptsRemaining: t.attemptsRemaining
829
701
  }
830
702
  ) : null;
831
- }, l2 = ({ manager: i }) => {
832
- const { t } = g(), n = m(null);
833
- I(() => {
834
- n.current?.focus();
703
+ }, q1 = ({ manager: n }) => {
704
+ const { t } = m(), i = I(null);
705
+ f(() => {
706
+ i.current?.focus();
835
707
  }, []);
836
708
  const r = () => {
837
- i.retryCapture();
709
+ n.retryCapture();
838
710
  };
839
- return /* @__PURE__ */ e(D, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdExpiredPage", children: [
711
+ return /* @__PURE__ */ e(F, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdExpiredPage", children: [
840
712
  /* @__PURE__ */ e("div", { class: "IncodeIdExpiredContent", role: "alert", children: [
841
- /* @__PURE__ */ e(Q, { className: "IncodeIdExpiredIcon" }),
842
- /* @__PURE__ */ e(P, { ref: n, tabIndex: -1, className: "IncodeIdExpiredTitle", children: t("idv2.capture.notifications.expiredId") }),
843
- /* @__PURE__ */ e(Z, { size: 12 }),
713
+ /* @__PURE__ */ e(G, { className: "IncodeIdExpiredIcon" }),
714
+ /* @__PURE__ */ e(H, { ref: i, tabIndex: -1, className: "IncodeIdExpiredTitle", children: t("idv2.capture.notifications.expiredId") }),
715
+ /* @__PURE__ */ e(_, { size: 12 }),
844
716
  /* @__PURE__ */ e("p", { class: "IncodeIdExpiredSubtitle", children: t("idv2.capture.notifications.useDifferent") }),
845
- /* @__PURE__ */ e(Z, { size: 80 })
717
+ /* @__PURE__ */ e(_, { size: 80 })
846
718
  ] }),
847
- /* @__PURE__ */ e("div", { class: "IncodeIdExpiredButtonContainer", children: /* @__PURE__ */ e(k, { variant: "primary", onClick: r, children: t("idv2.unacceptedId.tryAgain") }) })
719
+ /* @__PURE__ */ e("div", { class: "IncodeIdExpiredButtonContainer", children: /* @__PURE__ */ e(D, { variant: "primary", onClick: r, children: t("idv2.unacceptedId.tryAgain") }) })
848
720
  ] });
849
- }, M = /* @__PURE__ */ new Map();
850
- let G = !1;
851
- const T = {
721
+ }, L = /* @__PURE__ */ new Map();
722
+ let A = !1;
723
+ const b = {
852
724
  blur: () => import("./blurdevicelottie-_BZRug1c.js"),
853
725
  glare: () => import("./glaredevicelottie-DLuIStvb.js"),
854
726
  align: () => import("./aligndevicelottie-DlQCRPfM.js"),
855
727
  front: () => import("./frontdevicelottie-KhKxT5n9.js"),
856
728
  back: () => import("./backdevicelottie-B4NgyWmX.js")
857
729
  };
858
- function X(i) {
859
- G || (G = !0, Promise.all([
860
- T.blur(),
861
- T.glare(),
862
- T.align(),
863
- T.front(),
864
- T.back()
865
- ]).then(([t, n, r, l, o]) => {
866
- M.set("blur", t.default), M.set("glare", n.default), M.set("align", r.default), M.set("front", l.default), M.set("back", o.default), i?.();
730
+ function W(n) {
731
+ A || (A = !0, Promise.all([
732
+ b.blur(),
733
+ b.glare(),
734
+ b.align(),
735
+ b.front(),
736
+ b.back()
737
+ ]).then(([t, i, r, l, o]) => {
738
+ L.set("blur", t.default), L.set("glare", i.default), L.set("align", r.default), L.set("front", l.default), L.set("back", o.default), n?.();
867
739
  }).catch(() => {
868
740
  }));
869
741
  }
870
- function T1() {
871
- X();
742
+ function L1() {
743
+ W();
872
744
  }
873
- function k1() {
874
- I(() => {
875
- T1();
745
+ function x1() {
746
+ f(() => {
747
+ L1();
876
748
  }, []);
877
749
  }
878
- function D1(i, t) {
879
- const { t: n } = g(), [, r] = b(0);
880
- if (I(() => {
881
- X(() => r((l) => l + 1));
882
- }, []), i === "blur")
750
+ function y1(n, t) {
751
+ const { t: i } = m(), [, r] = M(0);
752
+ if (f(() => {
753
+ W(() => r((l) => l + 1));
754
+ }, []), n === "blur")
883
755
  return {
884
- title: n("idv2.capture.notifications.blur.title"),
885
- description: n("idv2.capture.notifications.blur.description"),
886
- animationData: M.get("blur") ?? null
756
+ title: i("idv2.capture.notifications.blur.title"),
757
+ description: i("idv2.capture.notifications.blur.description"),
758
+ animationData: L.get("blur") ?? null
887
759
  };
888
- if (i === "glare")
760
+ if (n === "glare")
889
761
  return {
890
- title: n("idv2.capture.notifications.glare.title"),
891
- description: n("idv2.capture.notifications.glare.description"),
892
- animationData: M.get("glare") ?? null
762
+ title: i("idv2.capture.notifications.glare.title"),
763
+ description: i("idv2.capture.notifications.glare.description"),
764
+ animationData: L.get("glare") ?? null
893
765
  };
894
- if (i === "farAway")
766
+ if (n === "farAway")
895
767
  return {
896
- title: n("idv2.capture.notifications.notAligned.title"),
897
- description: n("idv2.capture.notifications.notAligned.description"),
898
- animationData: M.get("align") ?? null
768
+ title: i("idv2.capture.notifications.notAligned.title"),
769
+ description: i("idv2.capture.notifications.notAligned.description"),
770
+ animationData: L.get("align") ?? null
899
771
  };
900
- if (i === "wrongSide") {
772
+ if (n === "wrongSide") {
901
773
  const l = t === "back";
902
774
  return {
903
- title: n(l ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
904
- description: n(l ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
905
- animationData: M.get(l ? "back" : "front") ?? null
775
+ title: i(l ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
776
+ description: i(l ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
777
+ animationData: L.get(l ? "back" : "front") ?? null
906
778
  };
907
779
  }
908
780
  return null;
909
781
  }
910
- const F1 = ({
911
- detectionStatus: i,
782
+ const _1 = ({
783
+ detectionStatus: n,
912
784
  mode: t,
913
- isCapturing: n
785
+ isCapturing: i
914
786
  }) => {
915
- const { t: r } = g(), l = D1(i, t), o = m(null), s = m({
787
+ const { t: r } = m(), l = y1(n, t), o = I(null), c = I({
916
788
  message: "",
917
789
  at: 0
918
- }), a = m(i), d = m(!1), c = m(), h = m(), C = i === "detecting" || i === "idNotDetected" || i === "manualCapture", v = i === "manualCapture", u = i === "wrongSide", L = i === "farAway", y = i === "glare", _ = i === "blur", p = U((f) => {
919
- const E = Date.now(), F = s.current;
920
- if (f === F.message && E - F.at < 200) return;
921
- s.current = { message: f, at: E };
922
- const B = o.current;
923
- B && (clearTimeout(c.current), B.textContent = "", h.current = setTimeout(() => {
924
- B.textContent = f, c.current = setTimeout(() => {
925
- B.textContent = "";
790
+ }), a = I(n), d = I(!1), s = I(), g = I(), C = n === "detecting" || n === "idNotDetected" || n === "manualCapture", v = n === "manualCapture", u = n === "wrongSide", x = n === "farAway", B = n === "glare", Z = n === "blur", p = P((h) => {
791
+ const V = Date.now(), U = c.current;
792
+ if (h === U.message && V - U.at < 200) return;
793
+ c.current = { message: h, at: V };
794
+ const T = o.current;
795
+ T && (clearTimeout(s.current), T.textContent = "", g.current = setTimeout(() => {
796
+ T.textContent = h, s.current = setTimeout(() => {
797
+ T.textContent = "";
926
798
  }, 3e3);
927
799
  }, 50));
928
- }, []), w = U(() => r(t === "passport" ? "idv2.capture.fillFramePassport" : t === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [t, r]);
929
- return I(() => {
800
+ }, []), w = P(() => r(t === "passport" ? "idv2.capture.fillFramePassport" : t === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [t, r]);
801
+ return f(() => {
930
802
  if (v) {
931
803
  d.current = !1;
932
804
  return;
933
805
  }
934
806
  if (d.current || !C) return;
935
- const f = setTimeout(() => {
807
+ const h = setTimeout(() => {
936
808
  d.current = !0, p(w());
937
809
  }, 500);
938
- return () => clearTimeout(f);
939
- }, [C, v, p, w]), I(() => {
940
- const f = a.current;
941
- a.current = i, f !== "manualCapture" && v && p(r("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
942
- }, [p, i, v, r]), I(() => {
943
- if (!n) {
810
+ return () => clearTimeout(h);
811
+ }, [C, v, p, w]), f(() => {
812
+ const h = a.current;
813
+ a.current = n, h !== "manualCapture" && v && p(r("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
814
+ }, [p, n, v, r]), f(() => {
815
+ if (!i) {
944
816
  if (u) {
945
- const E = t === "front" || t === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
946
- p(`${r(`${E}.title`)}. ${r(`${E}.description`)}`);
817
+ const V = t === "front" || t === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
818
+ p(`${r(`${V}.title`)}. ${r(`${V}.description`)}`);
947
819
  return;
948
820
  }
949
- if (L) {
821
+ if (x) {
950
822
  p(`${r("idv2.capture.notifications.notAligned.title")}.`);
951
823
  return;
952
824
  }
953
- if (y) {
825
+ if (B) {
954
826
  p(`${r("idv2.capture.notifications.glare.title")}.`);
955
827
  return;
956
828
  }
957
- if (_) {
829
+ if (Z) {
958
830
  p(`${r("idv2.capture.notifications.blur.title")}.`);
959
831
  return;
960
832
  }
@@ -962,18 +834,18 @@ const F1 = ({
962
834
  }
963
835
  }, [
964
836
  p,
965
- _,
966
- n,
967
- L,
968
- y,
837
+ Z,
838
+ i,
839
+ x,
840
+ B,
969
841
  C,
970
842
  u,
971
843
  t,
972
844
  r,
973
845
  w
974
- ]), I(() => () => {
975
- clearTimeout(h.current), clearTimeout(c.current);
976
- }, []), /* @__PURE__ */ e($, { children: [
846
+ ]), f(() => () => {
847
+ clearTimeout(g.current), clearTimeout(s.current);
848
+ }, []), /* @__PURE__ */ e(O, { children: [
977
849
  /* @__PURE__ */ e(
978
850
  "div",
979
851
  {
@@ -983,72 +855,72 @@ const F1 = ({
983
855
  "aria-atomic": "true"
984
856
  }
985
857
  ),
986
- l ? /* @__PURE__ */ e("div", { class: x("IncodeIdCaptureNotification"), "aria-hidden": "true", children: /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationContent", children: [
987
- /* @__PURE__ */ e("div", { class: x("IncodeIdCaptureNotificationText"), children: [
858
+ l ? /* @__PURE__ */ e("div", { class: y("IncodeIdCaptureNotification"), "aria-hidden": "true", children: /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationContent", children: [
859
+ /* @__PURE__ */ e("div", { class: y("IncodeIdCaptureNotificationText"), children: [
988
860
  /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationTitle", children: l.title }),
989
861
  l.description && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationDescription", children: l.description })
990
862
  ] }),
991
- /* @__PURE__ */ e(Z, { size: 16, direction: "horizontal" }),
992
- l.animationData && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ e(A, { animationData: l.animationData, loop: !0 }) })
863
+ /* @__PURE__ */ e(_, { size: 16, direction: "horizontal" }),
864
+ l.animationData && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ e(k, { animationData: l.animationData, loop: !0 }) })
993
865
  ] }) }) : null
994
866
  ] });
995
- }, H1 = H(
867
+ }, M1 = R(
996
868
  ({
997
- mode: i,
869
+ mode: n,
998
870
  orientation: t,
999
- detectionStatus: n,
871
+ detectionStatus: i,
1000
872
  counterValue: r,
1001
873
  isCapturing: l,
1002
874
  showManualCapture: o,
1003
- onCapture: s,
875
+ onCapture: c,
1004
876
  onOpenHelp: a,
1005
877
  helpButtonRef: d,
1006
- captureButtonRef: c
1007
- }, h) => {
1008
- const { t: C } = g();
1009
- k1(), I(() => {
1010
- o && c && c.current?.focus();
1011
- }, [o, c]);
1012
- const v = () => l || n === "capturing" ? "capturing" : n === "blur" || n === "glare" || n === "wrongSide" || n === "farAway" ? "error" : "idle", u = W(() => {
1013
- if (l || n === "capturing")
878
+ captureButtonRef: s
879
+ }, g) => {
880
+ const { t: C } = m();
881
+ x1(), f(() => {
882
+ o && s && s.current?.focus();
883
+ }, [o, s]);
884
+ const v = () => l || i === "capturing" ? "capturing" : i === "blur" || i === "glare" || i === "wrongSide" || i === "farAway" ? "error" : "idle", u = S(() => {
885
+ if (l || i === "capturing")
1014
886
  return {
1015
887
  title: C("idv2.capture.takingPhoto"),
1016
888
  subtitle: C("idv2.capture.dontMove")
1017
889
  };
1018
- if (n === "detecting" || n === "idNotDetected" || n === "manualCapture") {
1019
- const f = n === "manualCapture";
1020
- return i === "passport" ? {
890
+ if (i === "detecting" || i === "idNotDetected" || i === "manualCapture") {
891
+ const h = i === "manualCapture";
892
+ return n === "passport" ? {
1021
893
  title: C("idv2.capture.fillFramePassport"),
1022
- subtitle: f ? "" : C("idv2.capture.v2.autoCapture")
1023
- } : i === "back" ? {
894
+ subtitle: h ? "" : C("idv2.capture.v2.autoCapture")
895
+ } : n === "back" ? {
1024
896
  title: C("idv2.capture.v2.fillFrameBack"),
1025
- subtitle: f ? "" : C("idv2.capture.v2.autoCapture")
897
+ subtitle: h ? "" : C("idv2.capture.v2.autoCapture")
1026
898
  } : {
1027
899
  title: C("idv2.capture.v2.fillFrameFront"),
1028
- subtitle: f ? "" : C("idv2.capture.v2.autoCapture")
900
+ subtitle: h ? "" : C("idv2.capture.v2.autoCapture")
1029
901
  };
1030
902
  }
1031
903
  return null;
1032
- }, [l, n, i, C]), L = v(), y = i === "passport", _ = t !== "vertical" || y, p = _ ? "horizontal" : "vertical";
904
+ }, [l, i, n, C]), x = v(), B = n === "passport", Z = t !== "vertical" || B, p = Z ? "horizontal" : "vertical";
1033
905
  return /* @__PURE__ */ e(
1034
- s1,
906
+ X,
1035
907
  {
1036
- className: x(
908
+ className: y(
1037
909
  "IncodeCaptureOverlayId",
1038
- !_ && "IncodeCaptureOverlayVertical"
910
+ !Z && "IncodeCaptureOverlayVertical"
1039
911
  ),
1040
912
  children: [
1041
913
  /* @__PURE__ */ e("div", { class: "IncodeCaptureTopSection", children: [
1042
914
  /* @__PURE__ */ e(
1043
- F1,
915
+ _1,
1044
916
  {
1045
- detectionStatus: n,
1046
- mode: i,
917
+ detectionStatus: i,
918
+ mode: n,
1047
919
  isCapturing: l
1048
920
  }
1049
921
  ),
1050
922
  /* @__PURE__ */ e(
1051
- l1,
923
+ q,
1052
924
  {
1053
925
  title: u?.title ?? "",
1054
926
  subtitle: u?.subtitle,
@@ -1058,25 +930,25 @@ const F1 = ({
1058
930
  )
1059
931
  ] }),
1060
932
  /* @__PURE__ */ e(
1061
- o1,
933
+ Q,
1062
934
  {
1063
- ref: h,
935
+ ref: g,
1064
936
  variant: "locked",
1065
937
  orientation: p,
1066
- frameState: L,
1067
- className: x(y && "IncodeCaptureFramePassport"),
938
+ frameState: x,
939
+ className: y(B && "IncodeCaptureFramePassport"),
1068
940
  children: l && r > 0 && /* @__PURE__ */ e("div", { class: "IncodeCaptureCounter", children: r })
1069
941
  }
1070
942
  ),
1071
943
  /* @__PURE__ */ e("div", { class: "IncodeSrOnly", "aria-live": "polite", "aria-atomic": "true", children: l && r > 0 ? r : "" }),
1072
944
  /* @__PURE__ */ e(
1073
- a1,
945
+ J,
1074
946
  {
1075
947
  onOpenHelp: a,
1076
- onCapture: s,
948
+ onCapture: c,
1077
949
  isManualCapture: o,
1078
950
  helpButtonRef: d,
1079
- captureButtonRef: c,
951
+ captureButtonRef: s,
1080
952
  captureAriaDescribedBy: o ? "manual-capture-tooltip" : void 0,
1081
953
  children: o ? /* @__PURE__ */ e("div", { class: "IncodeIdManualCaptureTooltipContainer", children: /* @__PURE__ */ e(
1082
954
  "div",
@@ -1096,14 +968,14 @@ const F1 = ({
1096
968
  }
1097
969
  );
1098
970
  }
1099
- ), o2 = ({ manager: i, state: t }) => {
1100
- const { t: n } = g();
971
+ ), Q1 = ({ manager: n, state: t }) => {
972
+ const { t: i } = m();
1101
973
  if (t.captureStatus === "initializing")
1102
- return /* @__PURE__ */ e(D, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: /* @__PURE__ */ e(j, { size: "large", title: `${n("webcam.loading")}...` }) });
974
+ return /* @__PURE__ */ e(F, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: /* @__PURE__ */ e(z, { size: "large", title: `${i("webcam.loading")}...` }) });
1103
975
  if (t.captureStatus === "uploading" && t.previewImageUrl) {
1104
976
  const r = t.currentMode === "passport" ? "passport" : "id";
1105
977
  return /* @__PURE__ */ e(
1106
- B1,
978
+ m1,
1107
979
  {
1108
980
  imageUrl: t.previewImageUrl,
1109
981
  progress: t.uploadProgress ?? 0,
@@ -1112,102 +984,102 @@ const F1 = ({
1112
984
  }
1113
985
  );
1114
986
  }
1115
- return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(E1, { manager: i, state: t }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ e(V1, { manager: i, state: t }) : /* @__PURE__ */ e(P1, { manager: i, state: t });
1116
- }, P1 = ({ manager: i, state: t }) => {
1117
- const n = m(null), r = m(null), l = m(null), o = m(null), [s, a] = b(!1), [d, c] = b(!1);
1118
- I(() => {
1119
- const p = n.current;
987
+ return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(v1, { manager: n, state: t }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ e(w1, { manager: n, state: t }) : /* @__PURE__ */ e(B1, { manager: n, state: t });
988
+ }, B1 = ({ manager: n, state: t }) => {
989
+ const i = I(null), r = I(null), l = I(null), o = I(null), [c, a] = M(!1), [d, s] = M(!1);
990
+ f(() => {
991
+ const p = i.current;
1120
992
  if (!p || !t.stream) {
1121
- c(!1);
993
+ s(!1);
1122
994
  return;
1123
995
  }
1124
- c(!1);
1125
- const w = () => c(!0);
996
+ s(!1);
997
+ const w = () => s(!0);
1126
998
  return p.addEventListener("playing", w), p.srcObject = t.stream, p.play().catch(() => {
1127
999
  }), () => p.removeEventListener("playing", w);
1128
- }, [t.stream]), I(() => {
1000
+ }, [t.stream]), f(() => {
1129
1001
  const p = () => {
1130
1002
  const w = r.current;
1131
1003
  if (!w)
1132
1004
  return;
1133
- const f = w.getBoundingClientRect();
1134
- i.updateDetectionArea({
1135
- x: f.left,
1136
- y: f.top,
1137
- width: f.width,
1138
- height: f.height
1005
+ const h = w.getBoundingClientRect();
1006
+ n.updateDetectionArea({
1007
+ x: h.left,
1008
+ y: h.top,
1009
+ width: h.width,
1010
+ height: h.height
1139
1011
  });
1140
1012
  };
1141
1013
  return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
1142
- }, [i, t.orientation, d]);
1143
- const h = t.captureStatus === "capturing" || t.detectionStatus === "capturing", C = t.detectionStatus, v = C === "manualCapture" || t.showCaptureButtonInAuto && t.captureStatus === "detecting" && C !== "capturing", u = () => {
1014
+ }, [n, t.orientation, d]);
1015
+ const g = t.captureStatus === "capturing" || t.detectionStatus === "capturing", C = t.detectionStatus, v = C === "manualCapture" || t.showCaptureButtonInAuto && t.captureStatus === "detecting" && C !== "capturing", u = () => {
1144
1016
  a(!0);
1145
- }, L = () => {
1017
+ }, x = () => {
1146
1018
  a(!1), requestAnimationFrame(() => {
1147
1019
  o.current ? o.current.focus() : l.current?.focus();
1148
1020
  });
1149
- }, y = () => {
1150
- a(!1), i.switchToManualCapture();
1151
- }, _ = () => {
1152
- i.capture();
1021
+ }, B = () => {
1022
+ a(!1), n.switchToManualCapture();
1023
+ }, Z = () => {
1024
+ n.capture();
1153
1025
  };
1154
- return /* @__PURE__ */ e(D, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: [
1155
- /* @__PURE__ */ e(c1, { stream: t.stream, "aria-hidden": s || void 0, children: /* @__PURE__ */ e(
1156
- H1,
1026
+ return /* @__PURE__ */ e(F, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: [
1027
+ /* @__PURE__ */ e(Y, { stream: t.stream, "aria-hidden": c || void 0, children: /* @__PURE__ */ e(
1028
+ M1,
1157
1029
  {
1158
1030
  ref: r,
1159
1031
  mode: t.currentMode,
1160
1032
  orientation: t.orientation,
1161
1033
  detectionStatus: t.detectionStatus,
1162
1034
  counterValue: t.counterValue,
1163
- isCapturing: h,
1035
+ isCapturing: g,
1164
1036
  showManualCapture: v,
1165
- onCapture: _,
1037
+ onCapture: Z,
1166
1038
  onOpenHelp: u,
1167
1039
  helpButtonRef: l,
1168
1040
  captureButtonRef: o
1169
1041
  }
1170
1042
  ) }),
1171
- s && /* @__PURE__ */ e(
1172
- M1,
1043
+ c && /* @__PURE__ */ e(
1044
+ f1,
1173
1045
  {
1174
- onClose: L,
1175
- onTakeManually: y
1046
+ onClose: x,
1047
+ onTakeManually: B
1176
1048
  }
1177
1049
  )
1178
1050
  ] });
1179
- }, a2 = ({ manager: i, state: t }) => {
1180
- const { t: n } = g(), [r, l] = b(!1), [o, s] = b(null), a = t.selectedDocumentType === "passport", d = t.currentMode === "back";
1181
- if (I(() => {
1051
+ }, J1 = ({ manager: n, state: t }) => {
1052
+ const { t: i } = m(), [r, l] = M(!1), [o, c] = M(null), a = t.selectedDocumentType === "passport", d = t.currentMode === "back";
1053
+ if (f(() => {
1182
1054
  a ? import("./passport-tutorial-CaYBFTqt.js").then((u) => {
1183
- s(u.default);
1055
+ c(u.default);
1184
1056
  }) : d ? import("./back-tutorial-An9AcMSe.js").then((u) => {
1185
- s(u.default);
1057
+ c(u.default);
1186
1058
  }) : import("./id-tutorial-B-F5Q28m.js").then((u) => {
1187
- s(u.default);
1059
+ c(u.default);
1188
1060
  });
1189
1061
  }, [a, d]), !o)
1190
1062
  return null;
1191
- const c = n(a ? "idv2.capture.passport.title" : d ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), h = n(a ? "idv2.capture.passport.subtitle" : d ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), C = n(d ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
1063
+ const s = i(a ? "idv2.capture.passport.title" : d ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), g = i(a ? "idv2.capture.passport.subtitle" : d ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), C = i(d ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
1192
1064
  return /* @__PURE__ */ e(
1193
- d1,
1065
+ e1,
1194
1066
  {
1195
1067
  animationData: o,
1196
- title: c,
1197
- subtitle: h,
1068
+ title: s,
1069
+ subtitle: g,
1198
1070
  onContinue: () => {
1199
- l(!0), i.nextStep();
1071
+ l(!0), n.nextStep();
1200
1072
  },
1201
- buttonText: n("idv2.tutorial.startScan"),
1073
+ buttonText: i("idv2.tutorial.startScan"),
1202
1074
  disclaimerText: C,
1203
1075
  isLoading: r,
1204
- className: x(
1076
+ className: y(
1205
1077
  "IncodeIdTutorial",
1206
1078
  a ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"
1207
1079
  )
1208
1080
  }
1209
1081
  );
1210
- }, R1 = () => /* @__PURE__ */ e(
1082
+ }, Z1 = () => /* @__PURE__ */ e(
1211
1083
  "svg",
1212
1084
  {
1213
1085
  width: "119",
@@ -1401,7 +1273,7 @@ const F1 = ({
1401
1273
  ] })
1402
1274
  ]
1403
1275
  }
1404
- ), U1 = () => /* @__PURE__ */ e(
1276
+ ), E1 = () => /* @__PURE__ */ e(
1405
1277
  "svg",
1406
1278
  {
1407
1279
  width: "118",
@@ -1706,7 +1578,7 @@ const F1 = ({
1706
1578
  ] })
1707
1579
  ]
1708
1580
  }
1709
- ), A1 = () => /* @__PURE__ */ e(
1581
+ ), V1 = () => /* @__PURE__ */ e(
1710
1582
  "svg",
1711
1583
  {
1712
1584
  width: "60",
@@ -1917,7 +1789,7 @@ const F1 = ({
1917
1789
  ] })
1918
1790
  ]
1919
1791
  }
1920
- ), O1 = () => /* @__PURE__ */ e(
1792
+ ), b1 = () => /* @__PURE__ */ e(
1921
1793
  "svg",
1922
1794
  {
1923
1795
  width: "60",
@@ -2123,7 +1995,7 @@ const F1 = ({
2123
1995
  ] })
2124
1996
  ]
2125
1997
  }
2126
- ), S1 = () => /* @__PURE__ */ e(
1998
+ ), D1 = () => /* @__PURE__ */ e(
2127
1999
  "svg",
2128
2000
  {
2129
2001
  width: "61",
@@ -2432,30 +2304,30 @@ const F1 = ({
2432
2304
  ] })
2433
2305
  ]
2434
2306
  }
2435
- ), z1 = {
2307
+ ), F1 = {
2436
2308
  digitalIdUpload: {
2437
2309
  type: "digitalIdUpload",
2438
- icon: S1,
2310
+ icon: D1,
2439
2311
  title: "idv2.chooser.digitalIdUploadButtonTitle",
2440
2312
  testId: "verification-option-digitalIdUpload",
2441
2313
  weight: 1
2442
2314
  },
2443
2315
  id: {
2444
2316
  type: "id",
2445
- icon: R1,
2317
+ icon: Z1,
2446
2318
  title: "idv2.chooser.idButtonTitle",
2447
2319
  testId: "verification-option-id",
2448
2320
  weight: 2
2449
2321
  },
2450
2322
  passport: {
2451
2323
  type: "passport",
2452
- icon: U1,
2324
+ icon: E1,
2453
2325
  title: "idv2.chooser.passportButtonTitle",
2454
2326
  testId: "verification-option-passport",
2455
2327
  weight: 3
2456
2328
  },
2457
2329
  digitalId: {
2458
- icon: A1,
2330
+ icon: V1,
2459
2331
  title: "idv2.chooser.digitalIdButtonTitle",
2460
2332
  testId: "verification-option-digitalId",
2461
2333
  type: "digitalId",
@@ -2463,65 +2335,65 @@ const F1 = ({
2463
2335
  },
2464
2336
  manualIdUpload: {
2465
2337
  type: "manualIdUpload",
2466
- icon: O1,
2338
+ icon: b1,
2467
2339
  title: "idv2.chooser.manualUploadButtonTitle",
2468
2340
  testId: "verification-option-manualIdUpload",
2469
2341
  weight: 5
2470
2342
  }
2471
2343
  };
2472
- function N1(i) {
2473
- const t = (n, r) => {
2474
- const l = z1[r];
2475
- return l && n.push(l), n;
2344
+ function T1(n) {
2345
+ const t = (i, r) => {
2346
+ const l = F1[r];
2347
+ return l && i.push(l), i;
2476
2348
  };
2477
- return i.reduce(t, []).sort((n, r) => n.weight - r.weight);
2349
+ return n.reduce(t, []).sort((i, r) => i.weight - r.weight);
2478
2350
  }
2479
- const s2 = ({ manager: i, state: t }) => {
2480
- const { t: n } = g(), r = W(
2481
- () => N1(t.availableDocumentTypes),
2351
+ const X1 = ({ manager: n, state: t }) => {
2352
+ const { t: i } = m(), r = S(
2353
+ () => T1(t.availableDocumentTypes),
2482
2354
  [t.availableDocumentTypes]
2483
2355
  ), l = (o) => {
2484
- i.selectDocument(o);
2356
+ n.selectDocument(o);
2485
2357
  };
2486
2358
  return /* @__PURE__ */ e(
2487
- D,
2359
+ F,
2488
2360
  {
2489
- title: n("idv2.chooser.chooseHowToVerifyTitle"),
2361
+ title: i("idv2.chooser.chooseHowToVerifyTitle"),
2490
2362
  "data-testid": "document-chooser-page",
2491
2363
  className: "IncodeChooserPage",
2492
- children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(v1, { children: r.map((o) => /* @__PURE__ */ e(
2493
- m1,
2364
+ children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(a1, { children: r.map((o) => /* @__PURE__ */ e(
2365
+ s1,
2494
2366
  {
2495
2367
  icon: o.icon,
2496
- title: n(o.title),
2368
+ title: i(o.title),
2497
2369
  testId: o.testId,
2498
- tag: o.tag ? n(o.tag) : void 0,
2370
+ tag: o.tag ? i(o.tag) : void 0,
2499
2371
  onClick: () => l(o.type)
2500
2372
  },
2501
2373
  o.type
2502
2374
  )) }) })
2503
2375
  }
2504
2376
  );
2505
- }, c2 = ({
2506
- manager: i,
2377
+ }, Y1 = ({
2378
+ manager: n,
2507
2379
  direction: t
2508
2380
  }) => {
2509
- const [n, r] = b(null), [l, o] = b(!1), { t: s } = g();
2510
- I(() => {
2511
- import("./flip-animation-COR596wy.js").then((c) => {
2512
- r(c.default);
2381
+ const [i, r] = M(null), [l, o] = M(!1), { t: c } = m();
2382
+ f(() => {
2383
+ import("./flip-animation-COR596wy.js").then((s) => {
2384
+ r(s.default);
2513
2385
  });
2514
2386
  }, []);
2515
- const a = U(async () => {
2516
- await new Promise((c) => setTimeout(c, 1e3)), t === "toBack" ? i.continueToBack() : i.continueToFront(), o(!0);
2517
- }, [t, i]);
2518
- return l ? /* @__PURE__ */ e(j, { size: "large" }) : n ? /* @__PURE__ */ e("div", { class: "IncodeFlipAnimation", children: [
2519
- /* @__PURE__ */ e(P, { role: "status", className: "IncodeFlipAnimationTitle", children: s(t === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront") }),
2520
- /* @__PURE__ */ e(Z, { size: 32 }),
2387
+ const a = P(async () => {
2388
+ await new Promise((s) => setTimeout(s, 1e3)), t === "toBack" ? n.continueToBack() : n.continueToFront(), o(!0);
2389
+ }, [t, n]);
2390
+ return l ? /* @__PURE__ */ e(z, { size: "large" }) : i ? /* @__PURE__ */ e("div", { class: "IncodeFlipAnimation", children: [
2391
+ /* @__PURE__ */ e(H, { role: "status", className: "IncodeFlipAnimationTitle", children: c(t === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront") }),
2392
+ /* @__PURE__ */ e(_, { size: 32 }),
2521
2393
  /* @__PURE__ */ e(
2522
- A,
2394
+ k,
2523
2395
  {
2524
- animationData: n,
2396
+ animationData: i,
2525
2397
  loop: !1,
2526
2398
  reverse: t === "toFront",
2527
2399
  onComplete: a
@@ -2530,18 +2402,16 @@ const s2 = ({ manager: i, state: t }) => {
2530
2402
  ] }) : null;
2531
2403
  };
2532
2404
  export {
2533
- r2 as C,
2534
- c2 as F,
2535
- V1 as I,
2536
- u1 as S,
2537
- f1 as T,
2538
- v1 as V,
2539
- I1 as a,
2540
- o2 as b,
2541
- a2 as c,
2542
- s2 as d,
2543
- l2 as e,
2544
- m1 as f,
2545
- p1 as g,
2546
- h1 as h
2405
+ Q1 as C,
2406
+ Y1 as F,
2407
+ w1 as I,
2408
+ r1 as S,
2409
+ l1 as T,
2410
+ a1 as V,
2411
+ o1 as a,
2412
+ J1 as b,
2413
+ X1 as c,
2414
+ q1 as d,
2415
+ s1 as e,
2416
+ n1 as f
2547
2417
  };