@incodetech/web 0.0.0-dev-20260325-b97b3e9 → 0.0.0-dev-20260325-9772cd2

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.
@@ -1,26 +1,26 @@
1
- import { u as e, c as y, b as m, S as _, B as D } from "./button-qiC4m4lf.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-BY8u4mdq.js";
1
+ import { u as e, c as M, b as m, B as F, S as H } from "./button-qiC4m4lf.js";
2
+ import { _ as E, D as A, q as k, A as v, d as y, y as h, k as z, P as q, z as b, T as N } from "./vendor-preact-BY8u4mdq.js";
3
3
  import "./uiConfig-BSR3Bl6G.js";
4
- import { P as F } from "./page-CH1_PpOG.js";
5
- import { T as H } from "./typography-DgyeaZWI.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-BIPDtCn6.js";
7
- import { S as z } from "./spinner-_-QbAnd8.js";
8
- import { L as k, B as e1 } from "./manualCaptureButton-iyltFWfQ.js";
4
+ import { P as T } from "./page-CH1_PpOG.js";
5
+ import { T as R } from "./typography-DgyeaZWI.js";
6
+ import { L as Q, P as J, c as X, a as Y, d as e1, C as t1, b as i1 } from "./captureFooter-BIPDtCn6.js";
7
+ import { S as G } from "./spinner-_-QbAnd8.js";
8
+ import { M as V, L as U, B as n1 } from "./manualCaptureButton-6WD7GhPe.js";
9
9
  import "@incodetech/core";
10
10
  import "./inputComposed-7r-2MfA7.js";
11
11
  import "./checkbox-KYc1FnQr.js";
12
12
  import "./phoneInputComposed-B4OTfqLt.js";
13
13
  import "./dateInputComposed-DzB7gNed.js";
14
- import { E as t1 } from "./errorIcon-DbJL-4MJ.js";
15
- import { S as i1 } from "./successIcon-C-3-t1kz.js";
14
+ import { E as r1 } from "./errorIcon-DbJL-4MJ.js";
15
+ import { S as l1 } from "./successIcon-C-3-t1kz.js";
16
16
  import "./countries-DfLkrF0x.js";
17
- const n1 = ({
18
- size: n,
17
+ const o1 = ({
18
+ size: i,
19
19
  class: t,
20
- variant: i = "xs"
20
+ variant: n = "xs"
21
21
  }) => {
22
- const r = n ?? (i === "xs" ? 14 : 24);
23
- return i === "xs" ? /* @__PURE__ */ e(
22
+ const r = i ?? (n === "xs" ? 14 : 24);
23
+ return n === "xs" ? /* @__PURE__ */ e(
24
24
  "svg",
25
25
  {
26
26
  width: r,
@@ -62,58 +62,58 @@ const n1 = ({
62
62
  )
63
63
  }
64
64
  );
65
- }, 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(
66
- (n, t) => {
67
- const { class: i, rows: r = 4, ...l } = n;
65
+ }, a1 = (i) => /* @__PURE__ */ E("svg", { width: 10, height: 10, viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__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" })))), s1 = A(
66
+ (i, t) => {
67
+ const { class: n, rows: r = 4, ...l } = i;
68
68
  return /* @__PURE__ */ e(
69
69
  "textarea",
70
70
  {
71
71
  ...l,
72
72
  ref: t,
73
73
  rows: r,
74
- class: y("IncodeTextArea", i)
74
+ class: M("IncodeTextArea", n)
75
75
  }
76
76
  );
77
77
  }
78
- ), o1 = R(
78
+ ), c1 = A(
79
79
  ({
80
- id: n,
80
+ id: i,
81
81
  label: t,
82
- "aria-label": i,
82
+ "aria-label": n,
83
83
  error: r,
84
84
  showErrorIcon: l,
85
85
  helper: o,
86
- showHelperIcon: c,
87
- required: a,
88
- rows: d = 4,
89
- class: s,
90
- ...g
86
+ showHelperIcon: a,
87
+ required: s,
88
+ rows: c = 4,
89
+ class: d,
90
+ ...f
91
91
  }, C) => {
92
- const v = `${n}-helper`, u = `${n}-error`, x = [o ? v : null, r ? u : null].filter(Boolean).join(" ");
93
- return /* @__PURE__ */ e("div", { class: y("IncodeTextAreaComposed", s), children: [
92
+ const w = `${i}-helper`, u = `${i}-error`, _ = [o ? w : null, r ? u : null].filter(Boolean).join(" ");
93
+ return /* @__PURE__ */ e("div", { class: M("IncodeTextAreaComposed", d), children: [
94
94
  t && /* @__PURE__ */ e(
95
95
  "label",
96
96
  {
97
97
  class: "IncodeTextAreaComposedLabel",
98
- htmlFor: n,
99
- "data-testid": `${n}-label`,
98
+ htmlFor: i,
99
+ "data-testid": `${i}-label`,
100
100
  children: [
101
101
  t,
102
- a && /* @__PURE__ */ e("span", { class: "IncodeTextAreaComposedRequired", children: " *" })
102
+ s && /* @__PURE__ */ e("span", { class: "IncodeTextAreaComposedRequired", children: " *" })
103
103
  ]
104
104
  }
105
105
  ),
106
106
  /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedWrapper", children: /* @__PURE__ */ e(
107
- l1,
107
+ s1,
108
108
  {
109
- id: n,
110
- rows: d,
111
- ...g,
109
+ id: i,
110
+ rows: c,
111
+ ...f,
112
112
  ref: C,
113
- required: a,
114
- ...!t && i ? { "aria-label": i } : {},
115
- "aria-describedby": x || void 0,
116
- "aria-required": a ? "true" : void 0,
113
+ required: s,
114
+ ...!t && n ? { "aria-label": n } : {},
115
+ "aria-describedby": _ || void 0,
116
+ "aria-required": s ? "true" : void 0,
117
117
  "aria-invalid": r ? "true" : void 0
118
118
  }
119
119
  ) }),
@@ -121,9 +121,9 @@ const n1 = ({
121
121
  "div",
122
122
  {
123
123
  class: "IncodeTextAreaComposedErrorWrapper",
124
- "data-testid": `${n}-error-wrapper`,
124
+ "data-testid": `${i}-error-wrapper`,
125
125
  children: [
126
- l && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(t1, { size: 17 }) }),
126
+ l && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(r1, { size: 17 }) }),
127
127
  /* @__PURE__ */ e("p", { id: u, class: "IncodeTextAreaComposedError", children: r })
128
128
  ]
129
129
  }
@@ -132,26 +132,26 @@ const n1 = ({
132
132
  "div",
133
133
  {
134
134
  class: "IncodeTextAreaComposedHelperWrapper",
135
- "data-testid": `${n}-helper-wrapper`,
135
+ "data-testid": `${i}-helper-wrapper`,
136
136
  children: [
137
- c && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(i1, { size: 17 }) }),
138
- /* @__PURE__ */ e("p", { id: v, class: "IncodeTextAreaComposedHelper", children: o })
137
+ a && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(l1, { size: 17 }) }),
138
+ /* @__PURE__ */ e("p", { id: w, class: "IncodeTextAreaComposedHelper", children: o })
139
139
  ]
140
140
  }
141
141
  )
142
142
  ] });
143
143
  }
144
144
  );
145
- o1.displayName = "TextAreaComposed";
146
- function a1({
147
- children: n
145
+ c1.displayName = "TextAreaComposed";
146
+ function d1({
147
+ children: i
148
148
  }) {
149
- return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardList", children: n });
149
+ return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardList", children: i });
150
150
  }
151
- function s1({
152
- icon: n,
151
+ function C1({
152
+ icon: i,
153
153
  title: t,
154
- testId: i,
154
+ testId: n,
155
155
  onClick: r,
156
156
  tag: l
157
157
  }) {
@@ -161,27 +161,27 @@ function s1({
161
161
  type: "button",
162
162
  class: "IncodeVerificationOptionCard",
163
163
  onClick: r,
164
- "data-testid": i,
165
- "aria-labelledby": `${i}-label`,
164
+ "data-testid": n,
165
+ "aria-labelledby": `${n}-label`,
166
166
  children: [
167
167
  /* @__PURE__ */ e(
168
168
  "span",
169
169
  {
170
170
  class: "IncodeVerificationOptionCardIcon",
171
171
  "aria-hidden": "true",
172
- "data-testid": `${i}-icon`,
173
- children: /* @__PURE__ */ e(n, {})
172
+ "data-testid": `${n}-icon`,
173
+ children: /* @__PURE__ */ e(i, {})
174
174
  }
175
175
  ),
176
176
  /* @__PURE__ */ e("span", { class: "IncodeVerificationOptionCardContent", children: [
177
177
  /* @__PURE__ */ e(
178
178
  "span",
179
179
  {
180
- id: `${i}-label`,
180
+ id: `${n}-label`,
181
181
  class: "IncodeVerificationOptionCardTitleTagContainer",
182
182
  children: [
183
183
  /* @__PURE__ */ e("span", { class: "IncodeVerificationOptionCardTitle", children: t }),
184
- l && /* @__PURE__ */ e(c1, { label: l })
184
+ l && /* @__PURE__ */ e(p1, { label: l })
185
185
  ]
186
186
  }
187
187
  ),
@@ -190,7 +190,7 @@ function s1({
190
190
  {
191
191
  class: "IncodeVerificationOptionCardArrow",
192
192
  "data-testid": "chevron-right-icon",
193
- children: /* @__PURE__ */ e(n1, { size: 24, variant: "m" })
193
+ children: /* @__PURE__ */ e(o1, { size: 24, variant: "m" })
194
194
  }
195
195
  )
196
196
  ] })
@@ -198,13 +198,13 @@ function s1({
198
198
  }
199
199
  );
200
200
  }
201
- function c1({ label: n }) {
201
+ function p1({ label: i }) {
202
202
  return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardTag", children: [
203
- /* @__PURE__ */ e(r1, {}),
204
- /* @__PURE__ */ e("span", { children: n })
203
+ /* @__PURE__ */ e(a1, {}),
204
+ /* @__PURE__ */ e("span", { children: i })
205
205
  ] });
206
206
  }
207
- const d1 = ({ className: n }) => /* @__PURE__ */ e(
207
+ const u1 = ({ className: i }) => /* @__PURE__ */ e(
208
208
  "svg",
209
209
  {
210
210
  width: "24",
@@ -212,7 +212,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
212
212
  viewBox: "0 0 24 24",
213
213
  fill: "none",
214
214
  xmlns: "http://www.w3.org/2000/svg",
215
- class: n,
215
+ class: i,
216
216
  "aria-hidden": "true",
217
217
  children: [
218
218
  /* @__PURE__ */ e(
@@ -252,25 +252,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
252
252
  )
253
253
  ]
254
254
  }
255
- ), C1 = ({ className: n }) => /* @__PURE__ */ e(
256
- "svg",
257
- {
258
- width: "24",
259
- height: "24",
260
- viewBox: "0 0 24 24",
261
- fill: "none",
262
- xmlns: "http://www.w3.org/2000/svg",
263
- class: n,
264
- "aria-hidden": "true",
265
- children: /* @__PURE__ */ e(
266
- "path",
267
- {
268
- d: "M18.0431 4.54303C18.4336 4.15251 19.0666 4.15251 19.4572 4.54303C19.8476 4.93356 19.8476 5.5666 19.4572 5.95709L13.4142 12.0001L19.4572 18.043C19.8476 18.4336 19.8476 19.0666 19.4572 19.4571C19.0667 19.8475 18.4336 19.8475 18.0431 19.4571L12.0001 13.4141L5.95715 19.4571C5.56666 19.8475 4.93361 19.8475 4.54309 19.4571C4.15258 19.0666 4.15261 18.4336 4.54309 18.043L10.5861 12.0001L4.54309 5.95709C4.15258 5.56658 4.15261 4.93356 4.54309 4.54303C4.93362 4.15251 5.56663 4.15251 5.95715 4.54303L12.0001 10.586L18.0431 4.54303Z",
269
- fill: "currentColor"
270
- }
271
- )
272
- }
273
- ), p1 = ({ className: n }) => /* @__PURE__ */ e(
255
+ ), h1 = ({ className: i }) => /* @__PURE__ */ e(
274
256
  "svg",
275
257
  {
276
258
  width: "24",
@@ -278,7 +260,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
278
260
  viewBox: "0 0 24 24",
279
261
  fill: "none",
280
262
  xmlns: "http://www.w3.org/2000/svg",
281
- class: n,
263
+ class: i,
282
264
  "aria-hidden": "true",
283
265
  children: [
284
266
  /* @__PURE__ */ e(
@@ -311,8 +293,8 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
311
293
  )
312
294
  ]
313
295
  }
314
- ), u1 = ({
315
- className: n
296
+ ), f1 = ({
297
+ className: i
316
298
  }) => /* @__PURE__ */ e(
317
299
  "svg",
318
300
  {
@@ -321,7 +303,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
321
303
  viewBox: "0 0 24 24",
322
304
  fill: "none",
323
305
  xmlns: "http://www.w3.org/2000/svg",
324
- class: n,
306
+ class: i,
325
307
  "aria-hidden": "true",
326
308
  children: [
327
309
  /* @__PURE__ */ e(
@@ -362,7 +344,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
362
344
  )
363
345
  ]
364
346
  }
365
- ), h1 = ({ className: n }) => /* @__PURE__ */ e(
347
+ ), I1 = ({ className: i }) => /* @__PURE__ */ e(
366
348
  "svg",
367
349
  {
368
350
  width: "64",
@@ -370,7 +352,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
370
352
  viewBox: "0 0 64 64",
371
353
  fill: "none",
372
354
  xmlns: "http://www.w3.org/2000/svg",
373
- class: n,
355
+ class: i,
374
356
  "aria-hidden": "true",
375
357
  children: [
376
358
  /* @__PURE__ */ e("circle", { cx: "32", cy: "32", r: "32", fill: "#14151A" }),
@@ -383,108 +365,95 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
383
365
  )
384
366
  ]
385
367
  }
386
- ), f1 = ({
387
- onClose: n,
388
- onTakeManually: t
368
+ ), v1 = ({
369
+ open: i,
370
+ onClose: t,
371
+ onTakeManually: n,
372
+ portalContainer: r
389
373
  }) => {
390
- const { t: i } = m(), r = I(null), l = () => {
391
- t(), n();
374
+ const { t: l } = m(), o = k((s) => {
375
+ s?.focus();
376
+ }, []), a = () => {
377
+ n(), t();
392
378
  };
393
- return f(() => {
394
- r.current?.focus();
395
- }, []), /* @__PURE__ */ e(
396
- "div",
379
+ return /* @__PURE__ */ e(
380
+ V.Root,
397
381
  {
398
- class: "IncodeCommonIssuesModal",
399
- role: "dialog",
400
- "aria-modal": "true",
401
- "aria-labelledby": "common-issues-title",
402
- children: /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesModalContent", children: [
403
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesHeader", children: /* @__PURE__ */ e(
404
- "button",
382
+ open: i,
383
+ onOpenChange: (s) => {
384
+ s || t();
385
+ },
386
+ class: "IncodeCommonIssuesFullScreen",
387
+ hasBackdrop: !1,
388
+ portalContainer: r ?? void 0,
389
+ manageInitialFocus: !1,
390
+ children: /* @__PURE__ */ e(V.Content, { class: "IncodeCommonIssuesContent", children: [
391
+ /* @__PURE__ */ e(V.Close, { "aria-label": l("commonIssues.close") }),
392
+ /* @__PURE__ */ e(V.Icon, { class: "IncodeCommonIssuesQuestionIcon", children: /* @__PURE__ */ e(I1, {}) }),
393
+ /* @__PURE__ */ e(V.TitleSection, { children: /* @__PURE__ */ e(
394
+ R,
405
395
  {
406
- type: "button",
407
- class: "IncodeCommonIssuesCloseButton",
408
- onClick: n,
409
- "aria-label": i("commonIssues.close"),
410
- children: /* @__PURE__ */ e(C1, {})
396
+ id: "incode-modal-title",
397
+ ref: o,
398
+ className: "IncodeCommonIssuesTitle",
399
+ tabIndex: -1,
400
+ children: l("commonIssues.commonIssues")
411
401
  }
412
402
  ) }),
413
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesContent", children: [
414
- /* @__PURE__ */ e(
415
- h1,
416
- {
417
- className: "IncodeCommonIssuesQuestionIcon",
418
- "aria-hidden": "true"
419
- }
420
- ),
421
- /* @__PURE__ */ e(_, { size: 12 }),
403
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCards", children: [
404
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
405
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(h1, {}) }),
406
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
407
+ /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: l("commonIssues.glarePresent") }),
408
+ /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: l("commonIssues.glarePresentDescription") })
409
+ ] })
410
+ ] }),
411
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
412
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(u1, {}) }),
413
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
414
+ /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: l("commonIssues.blurPresent") }),
415
+ /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: l("commonIssues.blurPresentDescription") })
416
+ ] })
417
+ ] }),
418
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
419
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(f1, {}) }),
420
+ /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
421
+ /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: l("commonIssues.notReadable") }),
422
+ /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: l("commonIssues.notReadableDescription") })
423
+ ] })
424
+ ] })
425
+ ] }),
426
+ /* @__PURE__ */ e(V.Actions, { class: "IncodeCommonIssuesButtons", children: [
422
427
  /* @__PURE__ */ e(
423
- "h2",
428
+ F,
424
429
  {
425
- ref: r,
426
- id: "common-issues-title",
427
- class: "IncodeCommonIssuesTitle",
428
- tabIndex: -1,
429
- children: i("commonIssues.commonIssues")
430
+ variant: "link",
431
+ onClick: a,
432
+ class: "IncodeCommonIssuesTakeManually",
433
+ children: l("commonIssues.takeManually")
430
434
  }
431
435
  ),
432
- /* @__PURE__ */ e(_, { size: 24 }),
433
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCards", children: [
434
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
435
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(p1, {}) }),
436
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
437
- /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: i("commonIssues.glarePresent") }),
438
- /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: i("commonIssues.glarePresentDescription") })
439
- ] })
440
- ] }),
441
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
442
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(d1, {}) }),
443
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
444
- /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: i("commonIssues.blurPresent") }),
445
- /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: i("commonIssues.blurPresentDescription") })
446
- ] })
447
- ] }),
448
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
449
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(u1, {}) }),
450
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
451
- /* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: i("commonIssues.notReadable") }),
452
- /* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: i("commonIssues.notReadableDescription") })
453
- ] })
454
- ] })
455
- ] }),
456
- /* @__PURE__ */ e("div", { class: "IncodeCommonIssuesButtons", children: [
457
- /* @__PURE__ */ e(
458
- D,
459
- {
460
- variant: "link",
461
- onClick: l,
462
- class: "IncodeCommonIssuesTakeManually",
463
- children: i("commonIssues.takeManually")
464
- }
465
- ),
466
- /* @__PURE__ */ e(D, { onClick: n, class: "IncodeCommonIssuesTryAgain", children: i("commonIssues.tryAgain") })
467
- ] })
436
+ /* @__PURE__ */ e(F, { onClick: t, class: "IncodeCommonIssuesTryAgain", children: l("commonIssues.tryAgain") })
468
437
  ] })
469
438
  ] })
470
439
  }
471
440
  );
472
- }, I1 = ({
473
- orientation: n,
441
+ }, g1 = ({
442
+ orientation: i,
474
443
  mode: t,
475
- state: i,
444
+ state: n,
476
445
  children: r,
477
446
  className: l
478
447
  }) => {
479
- const o = n !== "vertical" || t === "passport", c = t === "passport", a = `IncodeCaptureFrame${i.charAt(0).toUpperCase() + i.slice(1)}`;
448
+ const o = i !== "vertical" || t === "passport", a = t === "passport", s = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
480
449
  return /* @__PURE__ */ e(
481
450
  "div",
482
451
  {
483
- class: y(
452
+ class: M(
484
453
  "IncodeCaptureFrame",
485
454
  o ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical",
486
- a,
487
- c && "IncodeCaptureFramePassport",
455
+ s,
456
+ a && "IncodeCaptureFramePassport",
488
457
  l
489
458
  ),
490
459
  "aria-hidden": "true",
@@ -492,72 +461,72 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
492
461
  children: r
493
462
  }
494
463
  );
495
- }, N = ({
496
- imageUrl: n,
464
+ }, $ = ({
465
+ imageUrl: i,
497
466
  orientation: t,
498
- mode: i,
467
+ mode: n,
499
468
  borderState: r,
500
469
  topContent: l,
501
470
  bottomContent: o,
502
- overlayContent: c
471
+ overlayContent: a
503
472
  }) => {
504
- const { t: a } = m();
505
- return /* @__PURE__ */ e(F, { hideHeader: !0, hideFooterBranding: !0, children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayout", children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayoutContent", children: [
473
+ const { t: s } = m();
474
+ return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayout", children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayoutContent", children: [
506
475
  l && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingTopArea", children: l }),
507
476
  /* @__PURE__ */ e(
508
- I1,
477
+ g1,
509
478
  {
510
479
  orientation: t,
511
- mode: i === "id" ? "front" : i,
480
+ mode: n === "id" ? "front" : n,
512
481
  state: r,
513
482
  children: [
514
483
  /* @__PURE__ */ e(
515
484
  "img",
516
485
  {
517
- src: n,
486
+ src: i,
518
487
  alt: "",
519
488
  "aria-hidden": "true",
520
489
  class: "IncodeIdProcessingImage"
521
490
  }
522
491
  ),
523
- c && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingOverlay", "aria-hidden": "true", children: c })
492
+ a && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingOverlay", "aria-hidden": "true", children: a })
524
493
  ]
525
494
  }
526
495
  ),
527
496
  /* @__PURE__ */ e("div", { class: "IncodeIdProcessingBottomArea", children: [
528
497
  /* @__PURE__ */ e("div", { class: "IncodeCaptureEncryptionLabel", children: [
529
- /* @__PURE__ */ e(K, { className: "IncodeCaptureEncryptionIcon" }),
530
- /* @__PURE__ */ e("span", { children: a("v2.capture.label") })
498
+ /* @__PURE__ */ e(Q, { className: "IncodeCaptureEncryptionIcon" }),
499
+ /* @__PURE__ */ e("span", { children: s("v2.capture.label") })
531
500
  ] }),
532
501
  o
533
502
  ] })
534
503
  ] }) }) });
535
504
  }, m1 = ({
536
- imageUrl: n,
505
+ imageUrl: i,
537
506
  progress: t,
538
- orientation: i,
507
+ orientation: n,
539
508
  mode: r
540
509
  }) => {
541
- const { t: l } = m(), o = I(null), c = i !== "vertical" || r === "passport", [a, d] = M(null);
542
- return f(() => {
510
+ const { t: l } = m(), o = v(null), a = n !== "vertical" || r === "passport", [s, c] = y(null);
511
+ return h(() => {
543
512
  o.current?.focus();
544
- }, []), f(() => {
545
- c ? import("./id-laser-h-BBV3r3rz.js").then((s) => {
546
- d(s.default);
547
- }) : import("./id-laser-v-BTHJaSfx.js").then((s) => {
548
- d(s.default);
513
+ }, []), h(() => {
514
+ a ? import("./id-laser-h-BBV3r3rz.js").then((d) => {
515
+ c(d.default);
516
+ }) : import("./id-laser-v-BTHJaSfx.js").then((d) => {
517
+ c(d.default);
549
518
  });
550
- }, [c]), /* @__PURE__ */ e(
551
- N,
519
+ }, [a]), /* @__PURE__ */ e(
520
+ $,
552
521
  {
553
- imageUrl: n,
554
- orientation: i,
522
+ imageUrl: i,
523
+ orientation: n,
555
524
  mode: r,
556
525
  borderState: "analyzing",
557
526
  topContent: /* @__PURE__ */ e("div", { class: "IncodeAnalyzingContent", children: [
558
- /* @__PURE__ */ e(j, { progress: t }),
527
+ /* @__PURE__ */ e(J, { progress: t }),
559
528
  /* @__PURE__ */ e(
560
- H,
529
+ R,
561
530
  {
562
531
  ref: o,
563
532
  id: "analyzing-title",
@@ -567,20 +536,20 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
567
536
  }
568
537
  )
569
538
  ] }),
570
- overlayContent: a ? /* @__PURE__ */ e(
571
- k,
539
+ overlayContent: s ? /* @__PURE__ */ e(
540
+ U,
572
541
  {
573
- animationData: a,
542
+ animationData: s,
574
543
  loop: !0,
575
544
  className: "IncodeAnalyzingLottie"
576
545
  }
577
546
  ) : null
578
547
  }
579
548
  );
580
- }, g1 = ({ className: n, ...t }) => /* @__PURE__ */ e(
549
+ }, w1 = ({ className: i, ...t }) => /* @__PURE__ */ e(
581
550
  "svg",
582
551
  {
583
- class: n,
552
+ class: i,
584
553
  width: "32",
585
554
  height: "32",
586
555
  viewBox: "0 0 32 32",
@@ -596,10 +565,10 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
596
565
  }
597
566
  )
598
567
  }
599
- ), G = ({ className: n, ...t }) => /* @__PURE__ */ e(
568
+ ), W = ({ className: i, ...t }) => /* @__PURE__ */ e(
600
569
  "svg",
601
570
  {
602
- class: n,
571
+ class: i,
603
572
  width: "33",
604
573
  height: "32",
605
574
  viewBox: "0 0 33 32",
@@ -615,80 +584,80 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
615
584
  }
616
585
  )
617
586
  }
618
- ), $ = ({
619
- variant: n,
587
+ ), K = ({
588
+ variant: i,
620
589
  imageUrl: t,
621
- orientation: i,
590
+ orientation: n,
622
591
  mode: r,
623
592
  title: l,
624
593
  subtitle: o,
625
- buttonText: c,
626
- onButtonClick: a,
627
- attemptsRemaining: d
594
+ buttonText: a,
595
+ onButtonClick: s,
596
+ attemptsRemaining: c
628
597
  }) => {
629
- const { t: s } = m(), g = I(null);
630
- return f(() => {
631
- g.current?.focus();
598
+ const { t: d } = m(), f = v(null);
599
+ return h(() => {
600
+ f.current?.focus();
632
601
  }, []), /* @__PURE__ */ e(
633
- N,
602
+ $,
634
603
  {
635
604
  imageUrl: t,
636
- orientation: i,
605
+ orientation: n,
637
606
  mode: r,
638
- borderState: n,
607
+ borderState: i,
639
608
  topContent: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingResultContent", role: "status", children: [
640
- n === "success" ? /* @__PURE__ */ e(g1, { className: "IncodeIdProcessingResultIcon" }) : /* @__PURE__ */ e(G, { className: "IncodeIdProcessingResultIcon" }),
641
- /* @__PURE__ */ e(_, { size: 16 }),
609
+ i === "success" ? /* @__PURE__ */ e(w1, { className: "IncodeIdProcessingResultIcon" }) : /* @__PURE__ */ e(W, { className: "IncodeIdProcessingResultIcon" }),
610
+ /* @__PURE__ */ e(H, { size: 16 }),
642
611
  l && /* @__PURE__ */ e(
643
- H,
612
+ R,
644
613
  {
645
- ref: g,
614
+ ref: f,
646
615
  className: "IncodeIdProcessingResultTitle",
647
616
  tabIndex: -1,
648
617
  children: l
649
618
  }
650
619
  ),
651
- o && /* @__PURE__ */ e(O, { children: [
652
- /* @__PURE__ */ e(_, { size: 12 }),
620
+ o && /* @__PURE__ */ e(z, { children: [
621
+ /* @__PURE__ */ e(H, { size: 12 }),
653
622
  /* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultSubtitle", children: o })
654
623
  ] })
655
624
  ] }),
656
625
  bottomContent: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingResultButtonContainer", children: [
657
- d !== void 0 && d > 0 && /* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultAttempts", children: s("v2.idError.attemptsLeft", {
658
- count: d
626
+ c !== void 0 && c > 0 && /* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultAttempts", children: d("v2.idError.attemptsLeft", {
627
+ count: c
659
628
  }) }),
660
- /* @__PURE__ */ e(D, { onClick: a, "data-testid": "retry-button", children: c })
629
+ /* @__PURE__ */ e(F, { onClick: s, "data-testid": "retry-button", children: a })
661
630
  ] })
662
631
  }
663
632
  );
664
- }, v1 = ({ manager: n, state: t }) => {
665
- const { t: i } = m();
633
+ }, x1 = ({ manager: i, state: t }) => {
634
+ const { t: n } = m();
666
635
  if (!t.previewImageUrl)
667
636
  return null;
668
- 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");
637
+ 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");
669
638
  return /* @__PURE__ */ e(
670
- $,
639
+ K,
671
640
  {
672
641
  variant: "success",
673
642
  imageUrl: t.previewImageUrl,
674
643
  orientation: t.orientation,
675
644
  mode: r,
676
- title: i("v2.idSuccess.title"),
645
+ title: n("v2.idSuccess.title"),
677
646
  subtitle: l(),
678
647
  buttonText: o(),
679
- onButtonClick: () => n.nextStep()
648
+ onButtonClick: () => i.nextStep()
680
649
  }
681
650
  );
682
- }, w1 = ({ manager: n, state: t, ...i }) => {
651
+ }, L1 = ({ manager: i, state: t, ...n }) => {
683
652
  const { t: r } = m();
684
653
  if (t.status === "error")
685
654
  return /* @__PURE__ */ e("div", { class: "IncodeIdError", role: "alert", children: [
686
655
  /* @__PURE__ */ e("div", { class: "IncodeIdErrorMessage", children: t.error }),
687
- /* @__PURE__ */ e(D, { onClick: () => n.reset(), "data-testid": "retry-button", children: r("idv2.capturePreview.retry") })
656
+ /* @__PURE__ */ e(F, { onClick: () => i.reset(), "data-testid": "retry-button", children: r("idv2.capturePreview.retry") })
688
657
  ] });
689
658
  const l = t.currentMode === "passport" ? "passport" : "id";
690
659
  return t.previewImageUrl ? /* @__PURE__ */ e(
691
- $,
660
+ K,
692
661
  {
693
662
  variant: "error",
694
663
  imageUrl: t.previewImageUrl,
@@ -697,156 +666,156 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
697
666
  title: t.uploadErrorMessage,
698
667
  subtitle: t.uploadErrorDescription,
699
668
  buttonText: t.canRetry ? r("idv2.capturePreview.tryAgain") : r("idv2.capturePreview.continue"),
700
- onButtonClick: () => n.continueFromError(),
669
+ onButtonClick: () => i.continueFromError(),
701
670
  attemptsRemaining: t.attemptsRemaining
702
671
  }
703
672
  ) : null;
704
- }, Q1 = ({ manager: n }) => {
705
- const { t } = m(), i = I(null);
706
- f(() => {
707
- i.current?.focus();
673
+ }, s2 = ({ manager: i }) => {
674
+ const { t } = m(), n = v(null);
675
+ h(() => {
676
+ n.current?.focus();
708
677
  }, []);
709
678
  const r = () => {
710
- n.retryCapture();
679
+ i.retryCapture();
711
680
  };
712
- return /* @__PURE__ */ e(F, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdExpiredPage", children: [
681
+ return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdExpiredPage", children: [
713
682
  /* @__PURE__ */ e("div", { class: "IncodeIdExpiredContent", role: "alert", children: [
714
- /* @__PURE__ */ e(G, { className: "IncodeIdExpiredIcon" }),
715
- /* @__PURE__ */ e(H, { ref: i, tabIndex: -1, className: "IncodeIdExpiredTitle", children: t("idv2.capture.notifications.expiredId") }),
716
- /* @__PURE__ */ e(_, { size: 12 }),
683
+ /* @__PURE__ */ e(W, { className: "IncodeIdExpiredIcon" }),
684
+ /* @__PURE__ */ e(R, { ref: n, tabIndex: -1, className: "IncodeIdExpiredTitle", children: t("idv2.capture.notifications.expiredId") }),
685
+ /* @__PURE__ */ e(H, { size: 12 }),
717
686
  /* @__PURE__ */ e("p", { class: "IncodeIdExpiredSubtitle", children: t("idv2.capture.notifications.useDifferent") }),
718
- /* @__PURE__ */ e(_, { size: 80 })
687
+ /* @__PURE__ */ e(H, { size: 80 })
719
688
  ] }),
720
- /* @__PURE__ */ e("div", { class: "IncodeIdExpiredButtonContainer", children: /* @__PURE__ */ e(D, { variant: "primary", onClick: r, children: t("idv2.unacceptedId.tryAgain") }) })
689
+ /* @__PURE__ */ e("div", { class: "IncodeIdExpiredButtonContainer", children: /* @__PURE__ */ e(F, { variant: "primary", onClick: r, children: t("idv2.unacceptedId.tryAgain") }) })
721
690
  ] });
722
691
  }, L = /* @__PURE__ */ new Map();
723
- let A = !1;
724
- const b = {
692
+ let S = !1;
693
+ const D = {
725
694
  blur: () => import("./blurdevicelottie-_BZRug1c.js"),
726
695
  glare: () => import("./glaredevicelottie-DLuIStvb.js"),
727
696
  align: () => import("./aligndevicelottie-DlQCRPfM.js"),
728
697
  front: () => import("./frontdevicelottie-KhKxT5n9.js"),
729
698
  back: () => import("./backdevicelottie-B4NgyWmX.js")
730
699
  };
731
- function W(n) {
732
- A || (A = !0, Promise.all([
733
- b.blur(),
734
- b.glare(),
735
- b.align(),
736
- b.front(),
737
- b.back()
738
- ]).then(([t, i, r, l, o]) => {
739
- 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?.();
700
+ function j(i) {
701
+ S || (S = !0, Promise.all([
702
+ D.blur(),
703
+ D.glare(),
704
+ D.align(),
705
+ D.front(),
706
+ D.back()
707
+ ]).then(([t, n, r, l, o]) => {
708
+ L.set("blur", t.default), L.set("glare", n.default), L.set("align", r.default), L.set("front", l.default), L.set("back", o.default), i?.();
740
709
  }).catch(() => {
741
710
  }));
742
711
  }
743
- function L1() {
744
- W();
712
+ function y1() {
713
+ j();
745
714
  }
746
- function x1() {
747
- f(() => {
748
- L1();
715
+ function _1() {
716
+ h(() => {
717
+ y1();
749
718
  }, []);
750
719
  }
751
- function y1(n, t) {
752
- const { t: i } = m(), [, r] = M(0);
753
- if (f(() => {
754
- W(() => r((l) => l + 1));
755
- }, []), n === "blur")
720
+ function M1(i, t) {
721
+ const { t: n } = m(), [, r] = y(0);
722
+ if (h(() => {
723
+ j(() => r((l) => l + 1));
724
+ }, []), i === "blur")
756
725
  return {
757
- title: i("idv2.capture.notifications.blur.title"),
758
- description: i("idv2.capture.notifications.blur.description"),
726
+ title: n("idv2.capture.notifications.blur.title"),
727
+ description: n("idv2.capture.notifications.blur.description"),
759
728
  animationData: L.get("blur") ?? null
760
729
  };
761
- if (n === "glare")
730
+ if (i === "glare")
762
731
  return {
763
- title: i("idv2.capture.notifications.glare.title"),
764
- description: i("idv2.capture.notifications.glare.description"),
732
+ title: n("idv2.capture.notifications.glare.title"),
733
+ description: n("idv2.capture.notifications.glare.description"),
765
734
  animationData: L.get("glare") ?? null
766
735
  };
767
- if (n === "farAway")
736
+ if (i === "farAway")
768
737
  return {
769
- title: i("idv2.capture.notifications.notAligned.title"),
770
- description: i("idv2.capture.notifications.notAligned.description"),
738
+ title: n("idv2.capture.notifications.notAligned.title"),
739
+ description: n("idv2.capture.notifications.notAligned.description"),
771
740
  animationData: L.get("align") ?? null
772
741
  };
773
- if (n === "wrongSide") {
742
+ if (i === "wrongSide") {
774
743
  const l = t === "back";
775
744
  return {
776
- title: i(l ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
777
- description: i(l ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
745
+ title: n(l ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
746
+ description: n(l ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
778
747
  animationData: L.get(l ? "back" : "front") ?? null
779
748
  };
780
749
  }
781
750
  return null;
782
751
  }
783
- const _1 = ({
784
- detectionStatus: n,
752
+ const B1 = ({
753
+ detectionStatus: i,
785
754
  mode: t,
786
- isCapturing: i
755
+ isCapturing: n
787
756
  }) => {
788
- const { t: r } = m(), l = y1(n, t), o = I(null), c = I({
757
+ const { t: r } = m(), l = M1(i, t), o = v(null), a = v({
789
758
  message: "",
790
759
  at: 0
791
- }), 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) => {
792
- const V = Date.now(), U = c.current;
793
- if (h === U.message && V - U.at < 200) return;
794
- c.current = { message: h, at: V };
795
- const T = o.current;
796
- T && (clearTimeout(s.current), T.textContent = "", g.current = setTimeout(() => {
797
- T.textContent = h, s.current = setTimeout(() => {
798
- T.textContent = "";
760
+ }), s = v(i), c = v(!1), d = v(), f = v(), C = i === "detecting" || i === "idNotDetected" || i === "manualCapture", w = i === "manualCapture", u = i === "wrongSide", _ = i === "farAway", B = i === "glare", Z = i === "blur", g = k((p) => {
761
+ const x = Date.now(), O = a.current;
762
+ if (p === O.message && x - O.at < 200) return;
763
+ a.current = { message: p, at: x };
764
+ const P = o.current;
765
+ P && (clearTimeout(d.current), P.textContent = "", f.current = setTimeout(() => {
766
+ P.textContent = p, d.current = setTimeout(() => {
767
+ P.textContent = "";
799
768
  }, 3e3);
800
769
  }, 50));
801
- }, []), w = P(() => r(t === "passport" ? "idv2.capture.fillFramePassport" : t === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [t, r]);
802
- return f(() => {
803
- if (v) {
804
- d.current = !1;
770
+ }, []), I = k(() => r(t === "passport" ? "idv2.capture.fillFramePassport" : t === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [t, r]);
771
+ return h(() => {
772
+ if (w) {
773
+ c.current = !1;
805
774
  return;
806
775
  }
807
- if (d.current || !C) return;
808
- const h = setTimeout(() => {
809
- d.current = !0, p(w());
776
+ if (c.current || !C) return;
777
+ const p = setTimeout(() => {
778
+ c.current = !0, g(I());
810
779
  }, 500);
811
- return () => clearTimeout(h);
812
- }, [C, v, p, w]), f(() => {
813
- const h = a.current;
814
- a.current = n, h !== "manualCapture" && v && p(r("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
815
- }, [p, n, v, r]), f(() => {
816
- if (!i) {
780
+ return () => clearTimeout(p);
781
+ }, [C, w, g, I]), h(() => {
782
+ const p = s.current;
783
+ s.current = i, p !== "manualCapture" && w && g(r("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
784
+ }, [g, i, w, r]), h(() => {
785
+ if (!n) {
817
786
  if (u) {
818
- const V = t === "front" || t === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
819
- p(`${r(`${V}.title`)}. ${r(`${V}.description`)}`);
787
+ const x = t === "front" || t === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
788
+ g(`${r(`${x}.title`)}. ${r(`${x}.description`)}`);
820
789
  return;
821
790
  }
822
- if (x) {
823
- p(`${r("idv2.capture.notifications.notAligned.title")}.`);
791
+ if (_) {
792
+ g(`${r("idv2.capture.notifications.notAligned.title")}.`);
824
793
  return;
825
794
  }
826
795
  if (B) {
827
- p(`${r("idv2.capture.notifications.glare.title")}.`);
796
+ g(`${r("idv2.capture.notifications.glare.title")}.`);
828
797
  return;
829
798
  }
830
799
  if (Z) {
831
- p(`${r("idv2.capture.notifications.blur.title")}.`);
800
+ g(`${r("idv2.capture.notifications.blur.title")}.`);
832
801
  return;
833
802
  }
834
- C && d.current && p(w());
803
+ C && c.current && g(I());
835
804
  }
836
805
  }, [
837
- p,
806
+ g,
838
807
  Z,
839
- i,
840
- x,
808
+ n,
809
+ _,
841
810
  B,
842
811
  C,
843
812
  u,
844
813
  t,
845
814
  r,
846
- w
847
- ]), f(() => () => {
848
- clearTimeout(g.current), clearTimeout(s.current);
849
- }, []), /* @__PURE__ */ e(O, { children: [
815
+ I
816
+ ]), h(() => () => {
817
+ clearTimeout(f.current), clearTimeout(d.current);
818
+ }, []), /* @__PURE__ */ e(z, { children: [
850
819
  /* @__PURE__ */ e(
851
820
  "div",
852
821
  {
@@ -856,72 +825,124 @@ const _1 = ({
856
825
  "aria-atomic": "true"
857
826
  }
858
827
  ),
859
- l ? /* @__PURE__ */ e("div", { class: y("IncodeIdCaptureNotification"), "aria-hidden": "true", children: /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationContent", children: [
860
- /* @__PURE__ */ e("div", { class: y("IncodeIdCaptureNotificationText"), children: [
828
+ l ? /* @__PURE__ */ e("div", { class: M("IncodeIdCaptureNotification"), "aria-hidden": "true", children: /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationContent", children: [
829
+ /* @__PURE__ */ e("div", { class: M("IncodeIdCaptureNotificationText"), children: [
861
830
  /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationTitle", children: l.title }),
862
831
  l.description && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationDescription", children: l.description })
863
832
  ] }),
864
- /* @__PURE__ */ e(_, { size: 16, direction: "horizontal" }),
865
- l.animationData && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ e(k, { animationData: l.animationData, loop: !0 }) })
833
+ /* @__PURE__ */ e(H, { size: 16, direction: "horizontal" }),
834
+ l.animationData && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ e(U, { animationData: l.animationData, loop: !0 }) })
866
835
  ] }) }) : null
867
836
  ] });
868
- }, M1 = R(
837
+ }, Z1 = b(
838
+ () => import("./front-horizontal-hint-Ca8ux7ED.js")
839
+ ), E1 = b(
840
+ () => import("./front-vertical-hint-Cl9a47Kq.js")
841
+ ), V1 = b(
842
+ () => import("./back-horizontal-hint-CktUy0An.js")
843
+ ), H1 = b(
844
+ () => import("./back-vertical-hint-CMOWSEsc.js")
845
+ ), b1 = b(
846
+ () => import("./passport-horizontal-hint-CWnj6Kh1.js")
847
+ ), D1 = b(
848
+ () => import("./passport-vertical-hint-DzkQdaag.js")
849
+ ), F1 = {
850
+ "front-horizontal": 348,
851
+ "back-horizontal": 348,
852
+ "passport-horizontal": 342
853
+ }, T1 = {
854
+ "front-vertical": 446,
855
+ "back-vertical": 446,
856
+ "passport-vertical": 342
857
+ };
858
+ function R1(i, t, n, r) {
859
+ const l = `${i}-${t}`, o = F1[l];
860
+ if (o) return n / o;
861
+ const a = T1[l];
862
+ return a ? r / a : 1;
863
+ }
864
+ const P1 = ({ mode: i, orientation: t }) => {
865
+ const n = v(null), [r, l] = y(1);
866
+ h(() => {
867
+ const a = n.current;
868
+ if (!a) return;
869
+ const s = () => {
870
+ l(
871
+ R1(i, t, a.clientWidth, a.clientHeight)
872
+ );
873
+ };
874
+ s();
875
+ const c = new ResizeObserver(s);
876
+ return c.observe(a), () => c.disconnect();
877
+ }, [i, t]);
878
+ const o = () => i === "front" ? t === "horizontal" ? /* @__PURE__ */ e(Z1, {}) : /* @__PURE__ */ e(E1, {}) : i === "back" ? t === "horizontal" ? /* @__PURE__ */ e(V1, {}) : /* @__PURE__ */ e(H1, {}) : i === "passport" ? t === "horizontal" ? /* @__PURE__ */ e(b1, {}) : /* @__PURE__ */ e(D1, {}) : null;
879
+ return /* @__PURE__ */ e(
880
+ "div",
881
+ {
882
+ ref: n,
883
+ class: "IncodeIdHint",
884
+ "aria-hidden": "true",
885
+ role: "presentation",
886
+ children: /* @__PURE__ */ e("div", { class: "IncodeIdHintAnimated", children: /* @__PURE__ */ e(q, { fallback: null, children: /* @__PURE__ */ e("div", { class: "IncodeIdHintSvg", style: { transform: `scale(${r})` }, children: o() }) }) })
887
+ }
888
+ );
889
+ }, k1 = A(
869
890
  ({
870
- mode: n,
891
+ mode: i,
871
892
  orientation: t,
872
- detectionStatus: i,
893
+ detectionStatus: n,
873
894
  counterValue: r,
874
895
  isCapturing: l,
875
896
  showManualCapture: o,
876
- onCapture: c,
877
- onOpenHelp: a,
878
- helpButtonRef: d,
879
- captureButtonRef: s
880
- }, g) => {
897
+ onCapture: a,
898
+ onOpenHelp: s,
899
+ helpButtonRef: c,
900
+ captureButtonRef: d
901
+ }, f) => {
881
902
  const { t: C } = m();
882
- x1(), f(() => {
883
- o && s && s.current?.focus();
884
- }, [o, s]);
885
- const v = () => l || i === "capturing" ? "capturing" : i === "blur" || i === "glare" || i === "wrongSide" || i === "farAway" ? "error" : "idle", u = S(() => {
886
- if (l || i === "capturing")
903
+ _1(), h(() => {
904
+ o && d && d.current?.focus();
905
+ }, [o, d]);
906
+ const w = () => l || n === "capturing" ? "capturing" : n === "blur" || n === "glare" || n === "wrongSide" || n === "farAway" ? "error" : "idle", u = N(() => {
907
+ if (l || n === "capturing")
887
908
  return {
888
909
  title: C("idv2.capture.takingPhoto"),
889
910
  subtitle: C("idv2.capture.dontMove")
890
911
  };
891
- if (i === "detecting" || i === "idNotDetected" || i === "manualCapture") {
892
- const h = i === "manualCapture";
893
- return n === "passport" ? {
912
+ if (n === "detecting" || n === "idNotDetected" || n === "manualCapture") {
913
+ const p = n === "manualCapture";
914
+ return i === "passport" ? {
894
915
  title: C("idv2.capture.fillFramePassport"),
895
- subtitle: h ? "" : C("idv2.capture.v2.autoCapture")
896
- } : n === "back" ? {
916
+ subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
917
+ } : i === "back" ? {
897
918
  title: C("idv2.capture.v2.fillFrameBack"),
898
- subtitle: h ? "" : C("idv2.capture.v2.autoCapture")
919
+ subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
899
920
  } : {
900
921
  title: C("idv2.capture.v2.fillFrameFront"),
901
- subtitle: h ? "" : C("idv2.capture.v2.autoCapture")
922
+ subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
902
923
  };
903
924
  }
904
925
  return null;
905
- }, [l, i, n, C]), x = v(), B = n === "passport", Z = t !== "vertical" || B, p = Z ? "horizontal" : "vertical";
926
+ }, [l, n, i, C]), _ = w(), B = i === "passport", Z = t !== "vertical" || B, g = Z ? "horizontal" : "vertical";
906
927
  return /* @__PURE__ */ e(
907
- X,
928
+ t1,
908
929
  {
909
- className: y(
930
+ className: M(
910
931
  "IncodeCaptureOverlayId",
911
932
  !Z && "IncodeCaptureOverlayVertical"
912
933
  ),
913
934
  children: [
914
935
  /* @__PURE__ */ e("div", { class: "IncodeCaptureTopSection", children: [
915
936
  /* @__PURE__ */ e(
916
- _1,
937
+ B1,
917
938
  {
918
- detectionStatus: i,
919
- mode: n,
939
+ detectionStatus: n,
940
+ mode: i,
920
941
  isCapturing: l
921
942
  }
922
943
  ),
923
944
  /* @__PURE__ */ e(
924
- q,
945
+ X,
925
946
  {
926
947
  title: u?.title ?? "",
927
948
  subtitle: u?.subtitle,
@@ -931,25 +952,28 @@ const _1 = ({
931
952
  )
932
953
  ] }),
933
954
  /* @__PURE__ */ e(
934
- Q,
955
+ Y,
935
956
  {
936
- ref: g,
957
+ ref: f,
937
958
  variant: "locked",
938
- orientation: p,
939
- frameState: x,
940
- className: y(B && "IncodeCaptureFramePassport"),
941
- children: l && r > 0 && /* @__PURE__ */ e("div", { class: "IncodeCaptureCounter", children: r })
959
+ orientation: g,
960
+ frameState: _,
961
+ className: M(B && "IncodeCaptureFramePassport"),
962
+ children: [
963
+ l && r > 0 && /* @__PURE__ */ e("div", { class: "IncodeCaptureCounter", children: r }),
964
+ n === "idNotDetected" && /* @__PURE__ */ e(P1, { mode: i, orientation: t ?? "horizontal" })
965
+ ]
942
966
  }
943
967
  ),
944
968
  /* @__PURE__ */ e("div", { class: "IncodeSrOnly", "aria-live": "polite", "aria-atomic": "true", children: l && r > 0 ? r : "" }),
945
969
  /* @__PURE__ */ e(
946
- J,
970
+ e1,
947
971
  {
948
- onOpenHelp: a,
949
- onCapture: c,
972
+ onOpenHelp: s,
973
+ onCapture: a,
950
974
  isManualCapture: o,
951
- helpButtonRef: d,
952
- captureButtonRef: s,
975
+ helpButtonRef: c,
976
+ captureButtonRef: d,
953
977
  captureAriaDescribedBy: o ? "manual-capture-tooltip" : void 0,
954
978
  children: o ? /* @__PURE__ */ e("div", { class: "IncodeIdManualCaptureTooltipContainer", children: /* @__PURE__ */ e(
955
979
  "div",
@@ -969,10 +993,10 @@ const _1 = ({
969
993
  }
970
994
  );
971
995
  }
972
- ), J1 = ({ manager: n, state: t }) => {
973
- const { t: i } = m();
996
+ ), c2 = ({ manager: i, state: t }) => {
997
+ const { t: n } = m();
974
998
  if (t.captureStatus === "initializing")
975
- return /* @__PURE__ */ e(F, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: /* @__PURE__ */ e(z, { size: "large", title: `${i("webcam.loading")}...` }) });
999
+ return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: /* @__PURE__ */ e(G, { size: "large", title: `${n("webcam.loading")}...` }) });
976
1000
  if (t.captureStatus === "uploading" && t.previewImageUrl) {
977
1001
  const r = t.currentMode === "passport" ? "passport" : "id";
978
1002
  return /* @__PURE__ */ e(
@@ -985,102 +1009,105 @@ const _1 = ({
985
1009
  }
986
1010
  );
987
1011
  }
988
- 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 });
989
- }, B1 = ({ manager: n, state: t }) => {
990
- const i = I(null), r = I(null), l = I(null), o = I(null), [c, a] = M(!1), [d, s] = M(!1);
991
- f(() => {
992
- const p = i.current;
993
- if (!p || !t.stream) {
994
- s(!1);
1012
+ return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(x1, { manager: i, state: t }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ e(L1, { manager: i, state: t }) : /* @__PURE__ */ e(A1, { manager: i, state: t });
1013
+ }, A1 = ({ manager: i, state: t }) => {
1014
+ const n = v(null), r = v(null), l = v(null), o = v(null), a = v(null), [s, c] = y(!1), [d, f] = y(!1);
1015
+ h(() => {
1016
+ const I = n.current;
1017
+ if (!I || !t.stream) {
1018
+ f(!1);
995
1019
  return;
996
1020
  }
997
- s(!1);
998
- const w = () => s(!0);
999
- return p.addEventListener("playing", w), p.srcObject = t.stream, p.play().catch(() => {
1000
- }), () => p.removeEventListener("playing", w);
1001
- }, [t.stream]), f(() => {
1002
- const p = () => {
1003
- const w = r.current;
1004
- if (!w)
1021
+ f(!1);
1022
+ const p = () => f(!0);
1023
+ return I.addEventListener("playing", p), I.srcObject = t.stream, I.play().catch(() => {
1024
+ }), () => I.removeEventListener("playing", p);
1025
+ }, [t.stream]), h(() => {
1026
+ const I = () => {
1027
+ const p = r.current;
1028
+ if (!p)
1005
1029
  return;
1006
- const h = w.getBoundingClientRect();
1007
- n.updateDetectionArea({
1008
- x: h.left,
1009
- y: h.top,
1010
- width: h.width,
1011
- height: h.height
1030
+ const x = p.getBoundingClientRect();
1031
+ i.updateDetectionArea({
1032
+ x: x.left,
1033
+ y: x.top,
1034
+ width: x.width,
1035
+ height: x.height
1012
1036
  });
1013
1037
  };
1014
- return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
1015
- }, [n, t.orientation, d]);
1016
- const g = t.captureStatus === "capturing" || t.detectionStatus === "capturing", C = t.detectionStatus, v = C === "manualCapture" || t.showCaptureButtonInAuto && t.captureStatus === "detecting" && C !== "capturing", u = () => {
1017
- a(!0);
1018
- }, x = () => {
1019
- a(!1), requestAnimationFrame(() => {
1038
+ return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
1039
+ }, [i, t.orientation, d]);
1040
+ const C = t.captureStatus === "capturing" || t.detectionStatus === "capturing", w = t.detectionStatus, u = w === "manualCapture" || t.showCaptureButtonInAuto && t.captureStatus === "detecting" && w !== "capturing", _ = () => {
1041
+ c(!0);
1042
+ }, B = () => {
1043
+ c(!1), requestAnimationFrame(() => {
1020
1044
  o.current ? o.current.focus() : l.current?.focus();
1021
1045
  });
1022
- }, B = () => {
1023
- a(!1), n.switchToManualCapture();
1024
1046
  }, Z = () => {
1025
- n.capture();
1047
+ c(!1), i.switchToManualCapture();
1048
+ }, g = () => {
1049
+ i.capture();
1026
1050
  };
1027
- return /* @__PURE__ */ e(F, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: [
1028
- /* @__PURE__ */ e(Y, { stream: t.stream, "aria-hidden": c || void 0, children: /* @__PURE__ */ e(
1029
- M1,
1051
+ return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: [
1052
+ /* @__PURE__ */ e(i1, { stream: t.stream, "aria-hidden": s || void 0, children: /* @__PURE__ */ e(
1053
+ k1,
1030
1054
  {
1031
1055
  ref: r,
1032
1056
  mode: t.currentMode,
1033
1057
  orientation: t.orientation,
1034
1058
  detectionStatus: t.detectionStatus,
1035
1059
  counterValue: t.counterValue,
1036
- isCapturing: g,
1037
- showManualCapture: v,
1038
- onCapture: Z,
1039
- onOpenHelp: u,
1060
+ isCapturing: C,
1061
+ showManualCapture: u,
1062
+ onCapture: g,
1063
+ onOpenHelp: _,
1040
1064
  helpButtonRef: l,
1041
1065
  captureButtonRef: o
1042
1066
  }
1043
1067
  ) }),
1044
- c && /* @__PURE__ */ e(
1045
- f1,
1068
+ /* @__PURE__ */ e("div", { ref: a }),
1069
+ /* @__PURE__ */ e(
1070
+ v1,
1046
1071
  {
1047
- onClose: x,
1048
- onTakeManually: B
1072
+ open: s,
1073
+ onClose: B,
1074
+ onTakeManually: Z,
1075
+ portalContainer: a.current
1049
1076
  }
1050
1077
  )
1051
1078
  ] });
1052
- }, X1 = ({ manager: n, state: t }) => {
1053
- const { t: i } = m(), [r, l] = M(!1), [o, c] = M(null), a = t.selectedDocumentType === "passport", d = t.currentMode === "back";
1054
- if (f(() => {
1055
- a ? import("./passport-tutorial-CaYBFTqt.js").then((u) => {
1056
- c(u.default);
1057
- }) : d ? import("./back-tutorial-An9AcMSe.js").then((u) => {
1058
- c(u.default);
1079
+ }, d2 = ({ manager: i, state: t }) => {
1080
+ const { t: n } = m(), [r, l] = y(!1), [o, a] = y(null), s = t.selectedDocumentType === "passport", c = t.currentMode === "back";
1081
+ if (h(() => {
1082
+ s ? import("./passport-tutorial-CaYBFTqt.js").then((u) => {
1083
+ a(u.default);
1084
+ }) : c ? import("./back-tutorial-An9AcMSe.js").then((u) => {
1085
+ a(u.default);
1059
1086
  }) : import("./id-tutorial-B-F5Q28m.js").then((u) => {
1060
- c(u.default);
1087
+ a(u.default);
1061
1088
  });
1062
- }, [a, d]), !o)
1089
+ }, [s, c]), !o)
1063
1090
  return null;
1064
- 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");
1091
+ const d = n(s ? "idv2.capture.passport.title" : c ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), f = n(s ? "idv2.capture.passport.subtitle" : c ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), C = n(c ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
1065
1092
  return /* @__PURE__ */ e(
1066
- e1,
1093
+ n1,
1067
1094
  {
1068
1095
  animationData: o,
1069
- title: s,
1070
- subtitle: g,
1096
+ title: d,
1097
+ subtitle: f,
1071
1098
  onContinue: () => {
1072
- l(!0), n.nextStep();
1099
+ l(!0), i.nextStep();
1073
1100
  },
1074
- buttonText: i("idv2.tutorial.startScan"),
1101
+ buttonText: n("idv2.tutorial.startScan"),
1075
1102
  disclaimerText: C,
1076
1103
  isLoading: r,
1077
- className: y(
1104
+ className: M(
1078
1105
  "IncodeIdTutorial",
1079
- a ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"
1106
+ s ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"
1080
1107
  )
1081
1108
  }
1082
1109
  );
1083
- }, Z1 = () => /* @__PURE__ */ e(
1110
+ }, U1 = () => /* @__PURE__ */ e(
1084
1111
  "svg",
1085
1112
  {
1086
1113
  width: "119",
@@ -1274,7 +1301,7 @@ const _1 = ({
1274
1301
  ] })
1275
1302
  ]
1276
1303
  }
1277
- ), E1 = () => /* @__PURE__ */ e(
1304
+ ), O1 = () => /* @__PURE__ */ e(
1278
1305
  "svg",
1279
1306
  {
1280
1307
  width: "118",
@@ -1579,7 +1606,7 @@ const _1 = ({
1579
1606
  ] })
1580
1607
  ]
1581
1608
  }
1582
- ), V1 = () => /* @__PURE__ */ e(
1609
+ ), S1 = () => /* @__PURE__ */ e(
1583
1610
  "svg",
1584
1611
  {
1585
1612
  width: "60",
@@ -1790,7 +1817,7 @@ const _1 = ({
1790
1817
  ] })
1791
1818
  ]
1792
1819
  }
1793
- ), b1 = () => /* @__PURE__ */ e(
1820
+ ), z1 = () => /* @__PURE__ */ e(
1794
1821
  "svg",
1795
1822
  {
1796
1823
  width: "60",
@@ -1996,7 +2023,7 @@ const _1 = ({
1996
2023
  ] })
1997
2024
  ]
1998
2025
  }
1999
- ), D1 = () => /* @__PURE__ */ e(
2026
+ ), N1 = () => /* @__PURE__ */ e(
2000
2027
  "svg",
2001
2028
  {
2002
2029
  width: "61",
@@ -2305,30 +2332,30 @@ const _1 = ({
2305
2332
  ] })
2306
2333
  ]
2307
2334
  }
2308
- ), F1 = {
2335
+ ), G1 = {
2309
2336
  digitalIdUpload: {
2310
2337
  type: "digitalIdUpload",
2311
- icon: D1,
2338
+ icon: N1,
2312
2339
  title: "idv2.chooser.digitalIdUploadButtonTitle",
2313
2340
  testId: "verification-option-digitalIdUpload",
2314
2341
  weight: 1
2315
2342
  },
2316
2343
  id: {
2317
2344
  type: "id",
2318
- icon: Z1,
2345
+ icon: U1,
2319
2346
  title: "idv2.chooser.idButtonTitle",
2320
2347
  testId: "verification-option-id",
2321
2348
  weight: 2
2322
2349
  },
2323
2350
  passport: {
2324
2351
  type: "passport",
2325
- icon: E1,
2352
+ icon: O1,
2326
2353
  title: "idv2.chooser.passportButtonTitle",
2327
2354
  testId: "verification-option-passport",
2328
2355
  weight: 3
2329
2356
  },
2330
2357
  digitalId: {
2331
- icon: V1,
2358
+ icon: S1,
2332
2359
  title: "idv2.chooser.digitalIdButtonTitle",
2333
2360
  testId: "verification-option-digitalId",
2334
2361
  type: "digitalId",
@@ -2336,83 +2363,83 @@ const _1 = ({
2336
2363
  },
2337
2364
  manualIdUpload: {
2338
2365
  type: "manualIdUpload",
2339
- icon: b1,
2366
+ icon: z1,
2340
2367
  title: "idv2.chooser.manualUploadButtonTitle",
2341
2368
  testId: "verification-option-manualIdUpload",
2342
2369
  weight: 5
2343
2370
  }
2344
2371
  };
2345
- function T1(n) {
2346
- const t = (i, r) => {
2347
- const l = F1[r];
2348
- return l && i.push(l), i;
2372
+ function $1(i) {
2373
+ const t = (n, r) => {
2374
+ const l = G1[r];
2375
+ return l && n.push(l), n;
2349
2376
  };
2350
- return n.reduce(t, []).sort((i, r) => i.weight - r.weight);
2377
+ return i.reduce(t, []).sort((n, r) => n.weight - r.weight);
2351
2378
  }
2352
- const Y1 = ({ manager: n, state: t }) => {
2353
- const { t: i } = m(), r = S(
2354
- () => T1(t.availableDocumentTypes),
2379
+ const C2 = ({ manager: i, state: t }) => {
2380
+ const { t: n } = m(), r = N(
2381
+ () => $1(t.availableDocumentTypes),
2355
2382
  [t.availableDocumentTypes]
2356
2383
  ), l = (o) => {
2357
- n.selectDocument(o);
2384
+ i.selectDocument(o);
2358
2385
  };
2359
2386
  return /* @__PURE__ */ e(
2360
- F,
2387
+ T,
2361
2388
  {
2362
- title: i("idv2.chooser.chooseHowToVerifyTitle"),
2389
+ title: n("idv2.chooser.chooseHowToVerifyTitle"),
2363
2390
  "data-testid": "document-chooser-page",
2364
2391
  className: "IncodeChooserPage",
2365
- children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(a1, { children: r.map((o) => /* @__PURE__ */ e(
2366
- s1,
2392
+ children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(d1, { children: r.map((o) => /* @__PURE__ */ e(
2393
+ C1,
2367
2394
  {
2368
2395
  icon: o.icon,
2369
- title: i(o.title),
2396
+ title: n(o.title),
2370
2397
  testId: o.testId,
2371
- tag: o.tag ? i(o.tag) : void 0,
2398
+ tag: o.tag ? n(o.tag) : void 0,
2372
2399
  onClick: () => l(o.type)
2373
2400
  },
2374
2401
  o.type
2375
2402
  )) }) })
2376
2403
  }
2377
2404
  );
2378
- }, e2 = ({
2379
- manager: n,
2405
+ }, p2 = ({
2406
+ manager: i,
2380
2407
  direction: t
2381
2408
  }) => {
2382
- const [i, r] = M(null), [l, o] = M(!1), { t: c } = m();
2383
- f(() => {
2384
- import("./flip-animation-COR596wy.js").then((s) => {
2385
- r(s.default);
2409
+ const [n, r] = y(null), [l, o] = y(!1), { t: a } = m();
2410
+ h(() => {
2411
+ import("./flip-animation-COR596wy.js").then((d) => {
2412
+ r(d.default);
2386
2413
  });
2387
2414
  }, []);
2388
- const a = P(async () => {
2389
- await new Promise((s) => setTimeout(s, 1e3)), t === "toBack" ? n.continueToBack() : n.continueToFront(), o(!0);
2390
- }, [t, n]);
2391
- return l ? /* @__PURE__ */ e(z, { size: "large" }) : i ? /* @__PURE__ */ e("div", { class: "IncodeFlipAnimation", children: [
2392
- /* @__PURE__ */ e(H, { role: "status", className: "IncodeFlipAnimationTitle", children: c(t === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront") }),
2393
- /* @__PURE__ */ e(_, { size: 32 }),
2415
+ const s = k(async () => {
2416
+ await new Promise((d) => setTimeout(d, 1e3)), t === "toBack" ? i.continueToBack() : i.continueToFront(), o(!0);
2417
+ }, [t, i]);
2418
+ return l ? /* @__PURE__ */ e(G, { size: "large" }) : n ? /* @__PURE__ */ e("div", { class: "IncodeFlipAnimation", children: [
2419
+ /* @__PURE__ */ e(R, { role: "status", className: "IncodeFlipAnimationTitle", children: a(t === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront") }),
2420
+ /* @__PURE__ */ e(H, { size: 32 }),
2394
2421
  /* @__PURE__ */ e(
2395
- k,
2422
+ U,
2396
2423
  {
2397
- animationData: i,
2424
+ animationData: n,
2398
2425
  loop: !1,
2399
2426
  reverse: t === "toFront",
2400
- onComplete: a
2427
+ onComplete: s
2401
2428
  }
2402
2429
  )
2403
2430
  ] }) : null;
2404
2431
  };
2405
2432
  export {
2406
- J1 as C,
2407
- e2 as F,
2408
- w1 as I,
2409
- r1 as S,
2410
- l1 as T,
2411
- s1 as V,
2412
- o1 as a,
2413
- a1 as b,
2414
- X1 as c,
2415
- Y1 as d,
2416
- Q1 as e,
2417
- n1 as f
2433
+ c2 as C,
2434
+ p2 as F,
2435
+ L1 as I,
2436
+ a1 as S,
2437
+ s1 as T,
2438
+ C1 as V,
2439
+ c1 as a,
2440
+ d1 as b,
2441
+ d2 as c,
2442
+ C2 as d,
2443
+ s2 as e,
2444
+ o1 as f
2418
2445
  };