@incodetech/web 0.0.0-dev-20260325-bc7b3fb → 0.0.0-dev-20260325-b804685
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.
- package/dist/authentication/authentication.es.js +2 -2
- package/dist/extensibility.es.js +3 -3
- package/dist/{flipAnimation-Dth_zuN5.js → flipAnimation-CK0kvOE9.js} +396 -424
- package/dist/flow/styles.css +382 -424
- package/dist/id/id.es.js +2 -2
- package/dist/id/styles.css +131 -173
- package/dist/{manualCaptureButton-iyltFWfQ.js → manualCaptureButton-6WD7GhPe.js} +286 -281
- package/dist/selfie/selfie.es.js +2 -2
- package/dist/{tutorial-BmIdFtSC.js → tutorial-BRvI-ZLU.js} +1 -1
- package/dist/types/extensibility.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { u as e, c as
|
|
2
|
-
import { _ as E, D as
|
|
1
|
+
import { u as e, c as _, b as v, B as D, S as F } from "./button-qiC4m4lf.js";
|
|
2
|
+
import { _ as E, D as k, q as R, A as g, d as M, y as I, k as S, T as N } from "./vendor-preact-BY8u4mdq.js";
|
|
3
3
|
import "./uiConfig-BSR3Bl6G.js";
|
|
4
|
-
import { P as
|
|
4
|
+
import { P as T } from "./page-CH1_PpOG.js";
|
|
5
5
|
import { T as H } from "./typography-DgyeaZWI.js";
|
|
6
|
-
import { L as
|
|
6
|
+
import { L as j, P as q, c as Q, a as J, d as X, C as Y, b as e1 } from "./captureFooter-BIPDtCn6.js";
|
|
7
7
|
import { S as z } from "./spinner-_-QbAnd8.js";
|
|
8
|
-
import { L as
|
|
8
|
+
import { M as V, L as A, B as t1 } 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
|
|
15
|
-
import { S as
|
|
14
|
+
import { E as i1 } from "./errorIcon-DbJL-4MJ.js";
|
|
15
|
+
import { S as n1 } from "./successIcon-C-3-t1kz.js";
|
|
16
16
|
import "./countries-DfLkrF0x.js";
|
|
17
|
-
const
|
|
18
|
-
size:
|
|
17
|
+
const r1 = ({
|
|
18
|
+
size: i,
|
|
19
19
|
class: t,
|
|
20
|
-
variant:
|
|
20
|
+
variant: n = "xs"
|
|
21
21
|
}) => {
|
|
22
|
-
const r =
|
|
23
|
-
return
|
|
22
|
+
const r = i ?? (n === "xs" ? 14 : 24);
|
|
23
|
+
return n === "xs" ? /* @__PURE__ */ e(
|
|
24
24
|
"svg",
|
|
25
25
|
{
|
|
26
26
|
width: r,
|
|
@@ -62,41 +62,41 @@ const n1 = ({
|
|
|
62
62
|
)
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
|
-
},
|
|
66
|
-
(
|
|
67
|
-
const { class:
|
|
65
|
+
}, l1 = (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" })))), o1 = k(
|
|
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:
|
|
74
|
+
class: _("IncodeTextArea", n)
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
),
|
|
78
|
+
), a1 = k(
|
|
79
79
|
({
|
|
80
|
-
id:
|
|
80
|
+
id: i,
|
|
81
81
|
label: t,
|
|
82
|
-
"aria-label":
|
|
82
|
+
"aria-label": n,
|
|
83
83
|
error: r,
|
|
84
84
|
showErrorIcon: l,
|
|
85
85
|
helper: o,
|
|
86
|
-
showHelperIcon:
|
|
86
|
+
showHelperIcon: s,
|
|
87
87
|
required: a,
|
|
88
|
-
rows:
|
|
89
|
-
class:
|
|
90
|
-
...
|
|
88
|
+
rows: c = 4,
|
|
89
|
+
class: d,
|
|
90
|
+
...h
|
|
91
91
|
}, C) => {
|
|
92
|
-
const
|
|
93
|
-
return /* @__PURE__ */ e("div", { class:
|
|
92
|
+
const w = `${i}-helper`, u = `${i}-error`, y = [o ? w : null, r ? u : null].filter(Boolean).join(" ");
|
|
93
|
+
return /* @__PURE__ */ e("div", { class: _("IncodeTextAreaComposed", d), children: [
|
|
94
94
|
t && /* @__PURE__ */ e(
|
|
95
95
|
"label",
|
|
96
96
|
{
|
|
97
97
|
class: "IncodeTextAreaComposedLabel",
|
|
98
|
-
htmlFor:
|
|
99
|
-
"data-testid": `${
|
|
98
|
+
htmlFor: i,
|
|
99
|
+
"data-testid": `${i}-label`,
|
|
100
100
|
children: [
|
|
101
101
|
t,
|
|
102
102
|
a && /* @__PURE__ */ e("span", { class: "IncodeTextAreaComposedRequired", children: " *" })
|
|
@@ -104,15 +104,15 @@ const n1 = ({
|
|
|
104
104
|
}
|
|
105
105
|
),
|
|
106
106
|
/* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedWrapper", children: /* @__PURE__ */ e(
|
|
107
|
-
|
|
107
|
+
o1,
|
|
108
108
|
{
|
|
109
|
-
id:
|
|
110
|
-
rows:
|
|
111
|
-
...
|
|
109
|
+
id: i,
|
|
110
|
+
rows: c,
|
|
111
|
+
...h,
|
|
112
112
|
ref: C,
|
|
113
113
|
required: a,
|
|
114
|
-
...!t &&
|
|
115
|
-
"aria-describedby":
|
|
114
|
+
...!t && n ? { "aria-label": n } : {},
|
|
115
|
+
"aria-describedby": y || void 0,
|
|
116
116
|
"aria-required": a ? "true" : void 0,
|
|
117
117
|
"aria-invalid": r ? "true" : void 0
|
|
118
118
|
}
|
|
@@ -121,9 +121,9 @@ const n1 = ({
|
|
|
121
121
|
"div",
|
|
122
122
|
{
|
|
123
123
|
class: "IncodeTextAreaComposedErrorWrapper",
|
|
124
|
-
"data-testid": `${
|
|
124
|
+
"data-testid": `${i}-error-wrapper`,
|
|
125
125
|
children: [
|
|
126
|
-
l && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(
|
|
126
|
+
l && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(i1, { 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": `${
|
|
135
|
+
"data-testid": `${i}-helper-wrapper`,
|
|
136
136
|
children: [
|
|
137
|
-
|
|
138
|
-
/* @__PURE__ */ e("p", { id:
|
|
137
|
+
s && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(n1, { 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
|
-
|
|
146
|
-
function
|
|
147
|
-
children:
|
|
145
|
+
a1.displayName = "TextAreaComposed";
|
|
146
|
+
function s1({
|
|
147
|
+
children: i
|
|
148
148
|
}) {
|
|
149
|
-
return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardList", children:
|
|
149
|
+
return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardList", children: i });
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
icon:
|
|
151
|
+
function c1({
|
|
152
|
+
icon: i,
|
|
153
153
|
title: t,
|
|
154
|
-
testId:
|
|
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":
|
|
165
|
-
"aria-labelledby": `${
|
|
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": `${
|
|
173
|
-
children: /* @__PURE__ */ e(
|
|
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: `${
|
|
180
|
+
id: `${n}-label`,
|
|
181
181
|
class: "IncodeVerificationOptionCardTitleTagContainer",
|
|
182
182
|
children: [
|
|
183
183
|
/* @__PURE__ */ e("span", { class: "IncodeVerificationOptionCardTitle", children: t }),
|
|
184
|
-
l && /* @__PURE__ */ e(
|
|
184
|
+
l && /* @__PURE__ */ e(d1, { 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(
|
|
193
|
+
children: /* @__PURE__ */ e(r1, { size: 24, variant: "m" })
|
|
194
194
|
}
|
|
195
195
|
)
|
|
196
196
|
] })
|
|
@@ -198,13 +198,13 @@ function s1({
|
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function d1({ label: i }) {
|
|
202
202
|
return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardTag", children: [
|
|
203
|
-
/* @__PURE__ */ e(
|
|
204
|
-
/* @__PURE__ */ e("span", { children:
|
|
203
|
+
/* @__PURE__ */ e(l1, {}),
|
|
204
|
+
/* @__PURE__ */ e("span", { children: i })
|
|
205
205
|
] });
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const C1 = ({ 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:
|
|
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
|
-
),
|
|
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
|
+
), p1 = ({ 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:
|
|
263
|
+
class: i,
|
|
282
264
|
"aria-hidden": "true",
|
|
283
265
|
children: [
|
|
284
266
|
/* @__PURE__ */ e(
|
|
@@ -312,7 +294,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
312
294
|
]
|
|
313
295
|
}
|
|
314
296
|
), u1 = ({
|
|
315
|
-
className:
|
|
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:
|
|
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:
|
|
347
|
+
), h1 = ({ 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:
|
|
355
|
+
class: i,
|
|
374
356
|
"aria-hidden": "true",
|
|
375
357
|
children: [
|
|
376
358
|
/* @__PURE__ */ e("circle", { cx: "32", cy: "32", r: "32", fill: "#14151A" }),
|
|
@@ -384,107 +366,94 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
384
366
|
]
|
|
385
367
|
}
|
|
386
368
|
), f1 = ({
|
|
387
|
-
|
|
388
|
-
|
|
369
|
+
open: i,
|
|
370
|
+
onClose: t,
|
|
371
|
+
onTakeManually: n,
|
|
372
|
+
portalContainer: r
|
|
389
373
|
}) => {
|
|
390
|
-
const { t:
|
|
391
|
-
|
|
374
|
+
const { t: l } = v(), o = R((a) => {
|
|
375
|
+
a?.focus();
|
|
376
|
+
}, []), s = () => {
|
|
377
|
+
n(), t();
|
|
392
378
|
};
|
|
393
|
-
return
|
|
394
|
-
|
|
395
|
-
}, []), /* @__PURE__ */ e(
|
|
396
|
-
"div",
|
|
379
|
+
return /* @__PURE__ */ e(
|
|
380
|
+
V.Root,
|
|
397
381
|
{
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
382
|
+
open: i,
|
|
383
|
+
onOpenChange: (a) => {
|
|
384
|
+
a || 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(h1, {}) }),
|
|
393
|
+
/* @__PURE__ */ e(V.TitleSection, { children: /* @__PURE__ */ e(
|
|
394
|
+
H,
|
|
405
395
|
{
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
children:
|
|
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: "
|
|
414
|
-
/* @__PURE__ */ e(
|
|
415
|
-
|
|
416
|
-
{
|
|
417
|
-
|
|
418
|
-
"
|
|
419
|
-
}
|
|
420
|
-
),
|
|
421
|
-
/* @__PURE__ */ e(
|
|
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(p1, {}) }),
|
|
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(C1, {}) }),
|
|
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(u1, {}) }),
|
|
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
|
-
|
|
428
|
+
D,
|
|
424
429
|
{
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
class: "
|
|
428
|
-
|
|
429
|
-
children: i("commonIssues.commonIssues")
|
|
430
|
+
variant: "link",
|
|
431
|
+
onClick: s,
|
|
432
|
+
class: "IncodeCommonIssuesTakeManually",
|
|
433
|
+
children: l("commonIssues.takeManually")
|
|
430
434
|
}
|
|
431
435
|
),
|
|
432
|
-
/* @__PURE__ */ e(
|
|
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(D, { onClick: t, class: "IncodeCommonIssuesTryAgain", children: l("commonIssues.tryAgain") })
|
|
468
437
|
] })
|
|
469
438
|
] })
|
|
470
439
|
}
|
|
471
440
|
);
|
|
472
441
|
}, I1 = ({
|
|
473
|
-
orientation:
|
|
442
|
+
orientation: i,
|
|
474
443
|
mode: t,
|
|
475
|
-
state:
|
|
444
|
+
state: n,
|
|
476
445
|
children: r,
|
|
477
446
|
className: l
|
|
478
447
|
}) => {
|
|
479
|
-
const o =
|
|
448
|
+
const o = i !== "vertical" || t === "passport", s = t === "passport", a = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
|
|
480
449
|
return /* @__PURE__ */ e(
|
|
481
450
|
"div",
|
|
482
451
|
{
|
|
483
|
-
class:
|
|
452
|
+
class: _(
|
|
484
453
|
"IncodeCaptureFrame",
|
|
485
454
|
o ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical",
|
|
486
455
|
a,
|
|
487
|
-
|
|
456
|
+
s && "IncodeCaptureFramePassport",
|
|
488
457
|
l
|
|
489
458
|
),
|
|
490
459
|
"aria-hidden": "true",
|
|
@@ -492,70 +461,70 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
492
461
|
children: r
|
|
493
462
|
}
|
|
494
463
|
);
|
|
495
|
-
},
|
|
496
|
-
imageUrl:
|
|
464
|
+
}, G = ({
|
|
465
|
+
imageUrl: i,
|
|
497
466
|
orientation: t,
|
|
498
|
-
mode:
|
|
467
|
+
mode: n,
|
|
499
468
|
borderState: r,
|
|
500
469
|
topContent: l,
|
|
501
470
|
bottomContent: o,
|
|
502
|
-
overlayContent:
|
|
471
|
+
overlayContent: s
|
|
503
472
|
}) => {
|
|
504
|
-
const { t: a } =
|
|
505
|
-
return /* @__PURE__ */ e(
|
|
473
|
+
const { t: a } = v();
|
|
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
477
|
I1,
|
|
509
478
|
{
|
|
510
479
|
orientation: t,
|
|
511
|
-
mode:
|
|
480
|
+
mode: n === "id" ? "front" : n,
|
|
512
481
|
state: r,
|
|
513
482
|
children: [
|
|
514
483
|
/* @__PURE__ */ e(
|
|
515
484
|
"img",
|
|
516
485
|
{
|
|
517
|
-
src:
|
|
486
|
+
src: i,
|
|
518
487
|
alt: "",
|
|
519
488
|
"aria-hidden": "true",
|
|
520
489
|
class: "IncodeIdProcessingImage"
|
|
521
490
|
}
|
|
522
491
|
),
|
|
523
|
-
|
|
492
|
+
s && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingOverlay", "aria-hidden": "true", children: s })
|
|
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(
|
|
498
|
+
/* @__PURE__ */ e(j, { className: "IncodeCaptureEncryptionIcon" }),
|
|
530
499
|
/* @__PURE__ */ e("span", { children: a("v2.capture.label") })
|
|
531
500
|
] }),
|
|
532
501
|
o
|
|
533
502
|
] })
|
|
534
503
|
] }) }) });
|
|
535
504
|
}, m1 = ({
|
|
536
|
-
imageUrl:
|
|
505
|
+
imageUrl: i,
|
|
537
506
|
progress: t,
|
|
538
|
-
orientation:
|
|
507
|
+
orientation: n,
|
|
539
508
|
mode: r
|
|
540
509
|
}) => {
|
|
541
|
-
const { t: l } =
|
|
542
|
-
return
|
|
510
|
+
const { t: l } = v(), o = g(null), s = n !== "vertical" || r === "passport", [a, c] = M(null);
|
|
511
|
+
return I(() => {
|
|
543
512
|
o.current?.focus();
|
|
544
|
-
}, []),
|
|
545
|
-
|
|
546
|
-
d
|
|
547
|
-
}) : import("./id-laser-v-BTHJaSfx.js").then((
|
|
548
|
-
d
|
|
513
|
+
}, []), I(() => {
|
|
514
|
+
s ? 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
|
-
}, [
|
|
551
|
-
|
|
519
|
+
}, [s]), /* @__PURE__ */ e(
|
|
520
|
+
G,
|
|
552
521
|
{
|
|
553
|
-
imageUrl:
|
|
554
|
-
orientation:
|
|
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(
|
|
527
|
+
/* @__PURE__ */ e(q, { progress: t }),
|
|
559
528
|
/* @__PURE__ */ e(
|
|
560
529
|
H,
|
|
561
530
|
{
|
|
@@ -568,7 +537,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
568
537
|
)
|
|
569
538
|
] }),
|
|
570
539
|
overlayContent: a ? /* @__PURE__ */ e(
|
|
571
|
-
|
|
540
|
+
A,
|
|
572
541
|
{
|
|
573
542
|
animationData: a,
|
|
574
543
|
loop: !0,
|
|
@@ -577,10 +546,10 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
577
546
|
) : null
|
|
578
547
|
}
|
|
579
548
|
);
|
|
580
|
-
}, g1 = ({ className:
|
|
549
|
+
}, g1 = ({ className: i, ...t }) => /* @__PURE__ */ e(
|
|
581
550
|
"svg",
|
|
582
551
|
{
|
|
583
|
-
class:
|
|
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
|
-
),
|
|
568
|
+
), $ = ({ className: i, ...t }) => /* @__PURE__ */ e(
|
|
600
569
|
"svg",
|
|
601
570
|
{
|
|
602
|
-
class:
|
|
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:
|
|
587
|
+
), W = ({
|
|
588
|
+
variant: i,
|
|
620
589
|
imageUrl: t,
|
|
621
|
-
orientation:
|
|
590
|
+
orientation: n,
|
|
622
591
|
mode: r,
|
|
623
592
|
title: l,
|
|
624
593
|
subtitle: o,
|
|
625
|
-
buttonText:
|
|
594
|
+
buttonText: s,
|
|
626
595
|
onButtonClick: a,
|
|
627
|
-
attemptsRemaining:
|
|
596
|
+
attemptsRemaining: c
|
|
628
597
|
}) => {
|
|
629
|
-
const { t:
|
|
630
|
-
return
|
|
631
|
-
|
|
598
|
+
const { t: d } = v(), h = g(null);
|
|
599
|
+
return I(() => {
|
|
600
|
+
h.current?.focus();
|
|
632
601
|
}, []), /* @__PURE__ */ e(
|
|
633
|
-
|
|
602
|
+
G,
|
|
634
603
|
{
|
|
635
604
|
imageUrl: t,
|
|
636
|
-
orientation:
|
|
605
|
+
orientation: n,
|
|
637
606
|
mode: r,
|
|
638
|
-
borderState:
|
|
607
|
+
borderState: i,
|
|
639
608
|
topContent: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingResultContent", role: "status", children: [
|
|
640
|
-
|
|
641
|
-
/* @__PURE__ */ e(
|
|
609
|
+
i === "success" ? /* @__PURE__ */ e(g1, { className: "IncodeIdProcessingResultIcon" }) : /* @__PURE__ */ e($, { className: "IncodeIdProcessingResultIcon" }),
|
|
610
|
+
/* @__PURE__ */ e(F, { size: 16 }),
|
|
642
611
|
l && /* @__PURE__ */ e(
|
|
643
612
|
H,
|
|
644
613
|
{
|
|
645
|
-
ref:
|
|
614
|
+
ref: h,
|
|
646
615
|
className: "IncodeIdProcessingResultTitle",
|
|
647
616
|
tabIndex: -1,
|
|
648
617
|
children: l
|
|
649
618
|
}
|
|
650
619
|
),
|
|
651
|
-
o && /* @__PURE__ */ e(
|
|
652
|
-
/* @__PURE__ */ e(
|
|
620
|
+
o && /* @__PURE__ */ e(S, { children: [
|
|
621
|
+
/* @__PURE__ */ e(F, { 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
|
-
|
|
658
|
-
count:
|
|
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:
|
|
629
|
+
/* @__PURE__ */ e(D, { onClick: a, "data-testid": "retry-button", children: s })
|
|
661
630
|
] })
|
|
662
631
|
}
|
|
663
632
|
);
|
|
664
|
-
}, v1 = ({ manager:
|
|
665
|
-
const { t:
|
|
633
|
+
}, v1 = ({ manager: i, state: t }) => {
|
|
634
|
+
const { t: n } = v();
|
|
666
635
|
if (!t.previewImageUrl)
|
|
667
636
|
return null;
|
|
668
|
-
const r = t.currentMode === "passport" ? "passport" : "id", l = () => t.needsBackCapture ?
|
|
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
|
+
W,
|
|
671
640
|
{
|
|
672
641
|
variant: "success",
|
|
673
642
|
imageUrl: t.previewImageUrl,
|
|
674
643
|
orientation: t.orientation,
|
|
675
644
|
mode: r,
|
|
676
|
-
title:
|
|
645
|
+
title: n("v2.idSuccess.title"),
|
|
677
646
|
subtitle: l(),
|
|
678
647
|
buttonText: o(),
|
|
679
|
-
onButtonClick: () =>
|
|
648
|
+
onButtonClick: () => i.nextStep()
|
|
680
649
|
}
|
|
681
650
|
);
|
|
682
|
-
}, w1 = ({ manager:
|
|
683
|
-
const { t: r } =
|
|
651
|
+
}, w1 = ({ manager: i, state: t, ...n }) => {
|
|
652
|
+
const { t: r } = v();
|
|
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: () =>
|
|
656
|
+
/* @__PURE__ */ e(D, { 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
|
+
W,
|
|
692
661
|
{
|
|
693
662
|
variant: "error",
|
|
694
663
|
imageUrl: t.previewImageUrl,
|
|
@@ -697,30 +666,30 @@ 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: () =>
|
|
669
|
+
onButtonClick: () => i.continueFromError(),
|
|
701
670
|
attemptsRemaining: t.attemptsRemaining
|
|
702
671
|
}
|
|
703
672
|
) : null;
|
|
704
|
-
}, Q1 = ({ manager:
|
|
705
|
-
const { t } =
|
|
706
|
-
|
|
707
|
-
|
|
673
|
+
}, Q1 = ({ manager: i }) => {
|
|
674
|
+
const { t } = v(), n = g(null);
|
|
675
|
+
I(() => {
|
|
676
|
+
n.current?.focus();
|
|
708
677
|
}, []);
|
|
709
678
|
const r = () => {
|
|
710
|
-
|
|
679
|
+
i.retryCapture();
|
|
711
680
|
};
|
|
712
|
-
return /* @__PURE__ */ e(
|
|
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(
|
|
715
|
-
/* @__PURE__ */ e(H, { ref:
|
|
716
|
-
/* @__PURE__ */ e(
|
|
683
|
+
/* @__PURE__ */ e($, { className: "IncodeIdExpiredIcon" }),
|
|
684
|
+
/* @__PURE__ */ e(H, { ref: n, tabIndex: -1, className: "IncodeIdExpiredTitle", children: t("idv2.capture.notifications.expiredId") }),
|
|
685
|
+
/* @__PURE__ */ e(F, { size: 12 }),
|
|
717
686
|
/* @__PURE__ */ e("p", { class: "IncodeIdExpiredSubtitle", children: t("idv2.capture.notifications.useDifferent") }),
|
|
718
|
-
/* @__PURE__ */ e(
|
|
687
|
+
/* @__PURE__ */ e(F, { size: 80 })
|
|
719
688
|
] }),
|
|
720
689
|
/* @__PURE__ */ e("div", { class: "IncodeIdExpiredButtonContainer", children: /* @__PURE__ */ e(D, { variant: "primary", onClick: r, children: t("idv2.unacceptedId.tryAgain") }) })
|
|
721
690
|
] });
|
|
722
691
|
}, L = /* @__PURE__ */ new Map();
|
|
723
|
-
let
|
|
692
|
+
let O = !1;
|
|
724
693
|
const b = {
|
|
725
694
|
blur: () => import("./blurdevicelottie-_BZRug1c.js"),
|
|
726
695
|
glare: () => import("./glaredevicelottie-DLuIStvb.js"),
|
|
@@ -728,125 +697,125 @@ const b = {
|
|
|
728
697
|
front: () => import("./frontdevicelottie-KhKxT5n9.js"),
|
|
729
698
|
back: () => import("./backdevicelottie-B4NgyWmX.js")
|
|
730
699
|
};
|
|
731
|
-
function
|
|
732
|
-
|
|
700
|
+
function K(i) {
|
|
701
|
+
O || (O = !0, Promise.all([
|
|
733
702
|
b.blur(),
|
|
734
703
|
b.glare(),
|
|
735
704
|
b.align(),
|
|
736
705
|
b.front(),
|
|
737
706
|
b.back()
|
|
738
|
-
]).then(([t,
|
|
739
|
-
L.set("blur", t.default), L.set("glare",
|
|
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();
|
|
745
|
-
}
|
|
746
712
|
function x1() {
|
|
747
|
-
|
|
748
|
-
|
|
713
|
+
K();
|
|
714
|
+
}
|
|
715
|
+
function L1() {
|
|
716
|
+
I(() => {
|
|
717
|
+
x1();
|
|
749
718
|
}, []);
|
|
750
719
|
}
|
|
751
|
-
function y1(
|
|
752
|
-
const { t:
|
|
753
|
-
if (
|
|
754
|
-
|
|
755
|
-
}, []),
|
|
720
|
+
function y1(i, t) {
|
|
721
|
+
const { t: n } = v(), [, r] = M(0);
|
|
722
|
+
if (I(() => {
|
|
723
|
+
K(() => r((l) => l + 1));
|
|
724
|
+
}, []), i === "blur")
|
|
756
725
|
return {
|
|
757
|
-
title:
|
|
758
|
-
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 (
|
|
730
|
+
if (i === "glare")
|
|
762
731
|
return {
|
|
763
|
-
title:
|
|
764
|
-
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 (
|
|
736
|
+
if (i === "farAway")
|
|
768
737
|
return {
|
|
769
|
-
title:
|
|
770
|
-
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 (
|
|
742
|
+
if (i === "wrongSide") {
|
|
774
743
|
const l = t === "back";
|
|
775
744
|
return {
|
|
776
|
-
title:
|
|
777
|
-
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
752
|
const _1 = ({
|
|
784
|
-
detectionStatus:
|
|
753
|
+
detectionStatus: i,
|
|
785
754
|
mode: t,
|
|
786
|
-
isCapturing:
|
|
755
|
+
isCapturing: n
|
|
787
756
|
}) => {
|
|
788
|
-
const { t: r } =
|
|
757
|
+
const { t: r } = v(), l = y1(i, t), o = g(null), s = g({
|
|
789
758
|
message: "",
|
|
790
759
|
at: 0
|
|
791
|
-
}), a =
|
|
792
|
-
const
|
|
793
|
-
if (
|
|
794
|
-
|
|
795
|
-
const
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
760
|
+
}), a = g(i), c = g(!1), d = g(), h = g(), C = i === "detecting" || i === "idNotDetected" || i === "manualCapture", w = i === "manualCapture", u = i === "wrongSide", y = i === "farAway", B = i === "glare", Z = i === "blur", m = R((p) => {
|
|
761
|
+
const x = Date.now(), U = s.current;
|
|
762
|
+
if (p === U.message && x - U.at < 200) return;
|
|
763
|
+
s.current = { message: p, at: x };
|
|
764
|
+
const P = o.current;
|
|
765
|
+
P && (clearTimeout(d.current), P.textContent = "", h.current = setTimeout(() => {
|
|
766
|
+
P.textContent = p, d.current = setTimeout(() => {
|
|
767
|
+
P.textContent = "";
|
|
799
768
|
}, 3e3);
|
|
800
769
|
}, 50));
|
|
801
|
-
}, []),
|
|
802
|
-
return
|
|
803
|
-
if (
|
|
804
|
-
|
|
770
|
+
}, []), f = R(() => r(t === "passport" ? "idv2.capture.fillFramePassport" : t === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [t, r]);
|
|
771
|
+
return I(() => {
|
|
772
|
+
if (w) {
|
|
773
|
+
c.current = !1;
|
|
805
774
|
return;
|
|
806
775
|
}
|
|
807
|
-
if (
|
|
808
|
-
const
|
|
809
|
-
|
|
776
|
+
if (c.current || !C) return;
|
|
777
|
+
const p = setTimeout(() => {
|
|
778
|
+
c.current = !0, m(f());
|
|
810
779
|
}, 500);
|
|
811
|
-
return () => clearTimeout(
|
|
812
|
-
}, [C,
|
|
813
|
-
const
|
|
814
|
-
a.current =
|
|
815
|
-
}, [
|
|
816
|
-
if (!
|
|
780
|
+
return () => clearTimeout(p);
|
|
781
|
+
}, [C, w, m, f]), I(() => {
|
|
782
|
+
const p = a.current;
|
|
783
|
+
a.current = i, p !== "manualCapture" && w && m(r("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
|
|
784
|
+
}, [m, i, w, r]), I(() => {
|
|
785
|
+
if (!n) {
|
|
817
786
|
if (u) {
|
|
818
|
-
const
|
|
819
|
-
|
|
787
|
+
const x = t === "front" || t === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
|
|
788
|
+
m(`${r(`${x}.title`)}. ${r(`${x}.description`)}`);
|
|
820
789
|
return;
|
|
821
790
|
}
|
|
822
|
-
if (
|
|
823
|
-
|
|
791
|
+
if (y) {
|
|
792
|
+
m(`${r("idv2.capture.notifications.notAligned.title")}.`);
|
|
824
793
|
return;
|
|
825
794
|
}
|
|
826
795
|
if (B) {
|
|
827
|
-
|
|
796
|
+
m(`${r("idv2.capture.notifications.glare.title")}.`);
|
|
828
797
|
return;
|
|
829
798
|
}
|
|
830
799
|
if (Z) {
|
|
831
|
-
|
|
800
|
+
m(`${r("idv2.capture.notifications.blur.title")}.`);
|
|
832
801
|
return;
|
|
833
802
|
}
|
|
834
|
-
C &&
|
|
803
|
+
C && c.current && m(f());
|
|
835
804
|
}
|
|
836
805
|
}, [
|
|
837
|
-
|
|
806
|
+
m,
|
|
838
807
|
Z,
|
|
839
|
-
|
|
840
|
-
|
|
808
|
+
n,
|
|
809
|
+
y,
|
|
841
810
|
B,
|
|
842
811
|
C,
|
|
843
812
|
u,
|
|
844
813
|
t,
|
|
845
814
|
r,
|
|
846
|
-
|
|
847
|
-
]),
|
|
848
|
-
clearTimeout(
|
|
849
|
-
}, []), /* @__PURE__ */ e(
|
|
815
|
+
f
|
|
816
|
+
]), I(() => () => {
|
|
817
|
+
clearTimeout(h.current), clearTimeout(d.current);
|
|
818
|
+
}, []), /* @__PURE__ */ e(S, { children: [
|
|
850
819
|
/* @__PURE__ */ e(
|
|
851
820
|
"div",
|
|
852
821
|
{
|
|
@@ -856,57 +825,57 @@ const _1 = ({
|
|
|
856
825
|
"aria-atomic": "true"
|
|
857
826
|
}
|
|
858
827
|
),
|
|
859
|
-
l ? /* @__PURE__ */ e("div", { class:
|
|
860
|
-
/* @__PURE__ */ e("div", { class:
|
|
828
|
+
l ? /* @__PURE__ */ e("div", { class: _("IncodeIdCaptureNotification"), "aria-hidden": "true", children: /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationContent", children: [
|
|
829
|
+
/* @__PURE__ */ e("div", { class: _("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(
|
|
865
|
-
l.animationData && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ e(
|
|
833
|
+
/* @__PURE__ */ e(F, { size: 16, direction: "horizontal" }),
|
|
834
|
+
l.animationData && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ e(A, { animationData: l.animationData, loop: !0 }) })
|
|
866
835
|
] }) }) : null
|
|
867
836
|
] });
|
|
868
|
-
}, M1 =
|
|
837
|
+
}, M1 = k(
|
|
869
838
|
({
|
|
870
|
-
mode:
|
|
839
|
+
mode: i,
|
|
871
840
|
orientation: t,
|
|
872
|
-
detectionStatus:
|
|
841
|
+
detectionStatus: n,
|
|
873
842
|
counterValue: r,
|
|
874
843
|
isCapturing: l,
|
|
875
844
|
showManualCapture: o,
|
|
876
|
-
onCapture:
|
|
845
|
+
onCapture: s,
|
|
877
846
|
onOpenHelp: a,
|
|
878
|
-
helpButtonRef:
|
|
879
|
-
captureButtonRef:
|
|
880
|
-
},
|
|
881
|
-
const { t: C } =
|
|
882
|
-
|
|
883
|
-
o &&
|
|
884
|
-
}, [o,
|
|
885
|
-
const
|
|
886
|
-
if (l ||
|
|
847
|
+
helpButtonRef: c,
|
|
848
|
+
captureButtonRef: d
|
|
849
|
+
}, h) => {
|
|
850
|
+
const { t: C } = v();
|
|
851
|
+
L1(), I(() => {
|
|
852
|
+
o && d && d.current?.focus();
|
|
853
|
+
}, [o, d]);
|
|
854
|
+
const w = () => l || n === "capturing" ? "capturing" : n === "blur" || n === "glare" || n === "wrongSide" || n === "farAway" ? "error" : "idle", u = N(() => {
|
|
855
|
+
if (l || n === "capturing")
|
|
887
856
|
return {
|
|
888
857
|
title: C("idv2.capture.takingPhoto"),
|
|
889
858
|
subtitle: C("idv2.capture.dontMove")
|
|
890
859
|
};
|
|
891
|
-
if (
|
|
892
|
-
const
|
|
893
|
-
return
|
|
860
|
+
if (n === "detecting" || n === "idNotDetected" || n === "manualCapture") {
|
|
861
|
+
const p = n === "manualCapture";
|
|
862
|
+
return i === "passport" ? {
|
|
894
863
|
title: C("idv2.capture.fillFramePassport"),
|
|
895
|
-
subtitle:
|
|
896
|
-
} :
|
|
864
|
+
subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
|
|
865
|
+
} : i === "back" ? {
|
|
897
866
|
title: C("idv2.capture.v2.fillFrameBack"),
|
|
898
|
-
subtitle:
|
|
867
|
+
subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
|
|
899
868
|
} : {
|
|
900
869
|
title: C("idv2.capture.v2.fillFrameFront"),
|
|
901
|
-
subtitle:
|
|
870
|
+
subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
|
|
902
871
|
};
|
|
903
872
|
}
|
|
904
873
|
return null;
|
|
905
|
-
}, [l,
|
|
874
|
+
}, [l, n, i, C]), y = w(), B = i === "passport", Z = t !== "vertical" || B, m = Z ? "horizontal" : "vertical";
|
|
906
875
|
return /* @__PURE__ */ e(
|
|
907
|
-
|
|
876
|
+
Y,
|
|
908
877
|
{
|
|
909
|
-
className:
|
|
878
|
+
className: _(
|
|
910
879
|
"IncodeCaptureOverlayId",
|
|
911
880
|
!Z && "IncodeCaptureOverlayVertical"
|
|
912
881
|
),
|
|
@@ -915,13 +884,13 @@ const _1 = ({
|
|
|
915
884
|
/* @__PURE__ */ e(
|
|
916
885
|
_1,
|
|
917
886
|
{
|
|
918
|
-
detectionStatus:
|
|
919
|
-
mode:
|
|
887
|
+
detectionStatus: n,
|
|
888
|
+
mode: i,
|
|
920
889
|
isCapturing: l
|
|
921
890
|
}
|
|
922
891
|
),
|
|
923
892
|
/* @__PURE__ */ e(
|
|
924
|
-
|
|
893
|
+
Q,
|
|
925
894
|
{
|
|
926
895
|
title: u?.title ?? "",
|
|
927
896
|
subtitle: u?.subtitle,
|
|
@@ -931,25 +900,25 @@ const _1 = ({
|
|
|
931
900
|
)
|
|
932
901
|
] }),
|
|
933
902
|
/* @__PURE__ */ e(
|
|
934
|
-
|
|
903
|
+
J,
|
|
935
904
|
{
|
|
936
|
-
ref:
|
|
905
|
+
ref: h,
|
|
937
906
|
variant: "locked",
|
|
938
|
-
orientation:
|
|
939
|
-
frameState:
|
|
940
|
-
className:
|
|
907
|
+
orientation: m,
|
|
908
|
+
frameState: y,
|
|
909
|
+
className: _(B && "IncodeCaptureFramePassport"),
|
|
941
910
|
children: l && r > 0 && /* @__PURE__ */ e("div", { class: "IncodeCaptureCounter", children: r })
|
|
942
911
|
}
|
|
943
912
|
),
|
|
944
913
|
/* @__PURE__ */ e("div", { class: "IncodeSrOnly", "aria-live": "polite", "aria-atomic": "true", children: l && r > 0 ? r : "" }),
|
|
945
914
|
/* @__PURE__ */ e(
|
|
946
|
-
|
|
915
|
+
X,
|
|
947
916
|
{
|
|
948
917
|
onOpenHelp: a,
|
|
949
|
-
onCapture:
|
|
918
|
+
onCapture: s,
|
|
950
919
|
isManualCapture: o,
|
|
951
|
-
helpButtonRef:
|
|
952
|
-
captureButtonRef:
|
|
920
|
+
helpButtonRef: c,
|
|
921
|
+
captureButtonRef: d,
|
|
953
922
|
captureAriaDescribedBy: o ? "manual-capture-tooltip" : void 0,
|
|
954
923
|
children: o ? /* @__PURE__ */ e("div", { class: "IncodeIdManualCaptureTooltipContainer", children: /* @__PURE__ */ e(
|
|
955
924
|
"div",
|
|
@@ -969,10 +938,10 @@ const _1 = ({
|
|
|
969
938
|
}
|
|
970
939
|
);
|
|
971
940
|
}
|
|
972
|
-
), J1 = ({ manager:
|
|
973
|
-
const { t:
|
|
941
|
+
), J1 = ({ manager: i, state: t }) => {
|
|
942
|
+
const { t: n } = v();
|
|
974
943
|
if (t.captureStatus === "initializing")
|
|
975
|
-
return /* @__PURE__ */ e(
|
|
944
|
+
return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: /* @__PURE__ */ e(z, { size: "large", title: `${n("webcam.loading")}...` }) });
|
|
976
945
|
if (t.captureStatus === "uploading" && t.previewImageUrl) {
|
|
977
946
|
const r = t.currentMode === "passport" ? "passport" : "id";
|
|
978
947
|
return /* @__PURE__ */ e(
|
|
@@ -985,47 +954,47 @@ const _1 = ({
|
|
|
985
954
|
}
|
|
986
955
|
);
|
|
987
956
|
}
|
|
988
|
-
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(v1, { manager:
|
|
989
|
-
}, B1 = ({ manager:
|
|
990
|
-
const
|
|
991
|
-
|
|
992
|
-
const
|
|
993
|
-
if (!
|
|
994
|
-
|
|
957
|
+
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(v1, { manager: i, state: t }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ e(w1, { manager: i, state: t }) : /* @__PURE__ */ e(B1, { manager: i, state: t });
|
|
958
|
+
}, B1 = ({ manager: i, state: t }) => {
|
|
959
|
+
const n = g(null), r = g(null), l = g(null), o = g(null), s = g(null), [a, c] = M(!1), [d, h] = M(!1);
|
|
960
|
+
I(() => {
|
|
961
|
+
const f = n.current;
|
|
962
|
+
if (!f || !t.stream) {
|
|
963
|
+
h(!1);
|
|
995
964
|
return;
|
|
996
965
|
}
|
|
997
|
-
|
|
998
|
-
const
|
|
999
|
-
return
|
|
1000
|
-
}), () =>
|
|
1001
|
-
}, [t.stream]),
|
|
1002
|
-
const
|
|
1003
|
-
const
|
|
1004
|
-
if (!
|
|
966
|
+
h(!1);
|
|
967
|
+
const p = () => h(!0);
|
|
968
|
+
return f.addEventListener("playing", p), f.srcObject = t.stream, f.play().catch(() => {
|
|
969
|
+
}), () => f.removeEventListener("playing", p);
|
|
970
|
+
}, [t.stream]), I(() => {
|
|
971
|
+
const f = () => {
|
|
972
|
+
const p = r.current;
|
|
973
|
+
if (!p)
|
|
1005
974
|
return;
|
|
1006
|
-
const
|
|
1007
|
-
|
|
1008
|
-
x:
|
|
1009
|
-
y:
|
|
1010
|
-
width:
|
|
1011
|
-
height:
|
|
975
|
+
const x = p.getBoundingClientRect();
|
|
976
|
+
i.updateDetectionArea({
|
|
977
|
+
x: x.left,
|
|
978
|
+
y: x.top,
|
|
979
|
+
width: x.width,
|
|
980
|
+
height: x.height
|
|
1012
981
|
});
|
|
1013
982
|
};
|
|
1014
|
-
return
|
|
1015
|
-
}, [
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1018
|
-
},
|
|
1019
|
-
|
|
983
|
+
return f(), window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
|
|
984
|
+
}, [i, t.orientation, d]);
|
|
985
|
+
const C = t.captureStatus === "capturing" || t.detectionStatus === "capturing", w = t.detectionStatus, u = w === "manualCapture" || t.showCaptureButtonInAuto && t.captureStatus === "detecting" && w !== "capturing", y = () => {
|
|
986
|
+
c(!0);
|
|
987
|
+
}, B = () => {
|
|
988
|
+
c(!1), requestAnimationFrame(() => {
|
|
1020
989
|
o.current ? o.current.focus() : l.current?.focus();
|
|
1021
990
|
});
|
|
1022
|
-
}, B = () => {
|
|
1023
|
-
a(!1), n.switchToManualCapture();
|
|
1024
991
|
}, Z = () => {
|
|
1025
|
-
|
|
992
|
+
c(!1), i.switchToManualCapture();
|
|
993
|
+
}, m = () => {
|
|
994
|
+
i.capture();
|
|
1026
995
|
};
|
|
1027
|
-
return /* @__PURE__ */ e(
|
|
1028
|
-
/* @__PURE__ */ e(
|
|
996
|
+
return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: [
|
|
997
|
+
/* @__PURE__ */ e(e1, { stream: t.stream, "aria-hidden": a || void 0, children: /* @__PURE__ */ e(
|
|
1029
998
|
M1,
|
|
1030
999
|
{
|
|
1031
1000
|
ref: r,
|
|
@@ -1033,48 +1002,51 @@ const _1 = ({
|
|
|
1033
1002
|
orientation: t.orientation,
|
|
1034
1003
|
detectionStatus: t.detectionStatus,
|
|
1035
1004
|
counterValue: t.counterValue,
|
|
1036
|
-
isCapturing:
|
|
1037
|
-
showManualCapture:
|
|
1038
|
-
onCapture:
|
|
1039
|
-
onOpenHelp:
|
|
1005
|
+
isCapturing: C,
|
|
1006
|
+
showManualCapture: u,
|
|
1007
|
+
onCapture: m,
|
|
1008
|
+
onOpenHelp: y,
|
|
1040
1009
|
helpButtonRef: l,
|
|
1041
1010
|
captureButtonRef: o
|
|
1042
1011
|
}
|
|
1043
1012
|
) }),
|
|
1044
|
-
|
|
1013
|
+
/* @__PURE__ */ e("div", { ref: s }),
|
|
1014
|
+
/* @__PURE__ */ e(
|
|
1045
1015
|
f1,
|
|
1046
1016
|
{
|
|
1047
|
-
|
|
1048
|
-
|
|
1017
|
+
open: a,
|
|
1018
|
+
onClose: B,
|
|
1019
|
+
onTakeManually: Z,
|
|
1020
|
+
portalContainer: s.current
|
|
1049
1021
|
}
|
|
1050
1022
|
)
|
|
1051
1023
|
] });
|
|
1052
|
-
}, X1 = ({ manager:
|
|
1053
|
-
const { t:
|
|
1054
|
-
if (
|
|
1024
|
+
}, X1 = ({ manager: i, state: t }) => {
|
|
1025
|
+
const { t: n } = v(), [r, l] = M(!1), [o, s] = M(null), a = t.selectedDocumentType === "passport", c = t.currentMode === "back";
|
|
1026
|
+
if (I(() => {
|
|
1055
1027
|
a ? import("./passport-tutorial-CaYBFTqt.js").then((u) => {
|
|
1056
|
-
|
|
1057
|
-
}) :
|
|
1058
|
-
|
|
1028
|
+
s(u.default);
|
|
1029
|
+
}) : c ? import("./back-tutorial-An9AcMSe.js").then((u) => {
|
|
1030
|
+
s(u.default);
|
|
1059
1031
|
}) : import("./id-tutorial-B-F5Q28m.js").then((u) => {
|
|
1060
|
-
|
|
1032
|
+
s(u.default);
|
|
1061
1033
|
});
|
|
1062
|
-
}, [a,
|
|
1034
|
+
}, [a, c]), !o)
|
|
1063
1035
|
return null;
|
|
1064
|
-
const
|
|
1036
|
+
const d = n(a ? "idv2.capture.passport.title" : c ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), h = n(a ? "idv2.capture.passport.subtitle" : c ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), C = n(c ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
|
|
1065
1037
|
return /* @__PURE__ */ e(
|
|
1066
|
-
|
|
1038
|
+
t1,
|
|
1067
1039
|
{
|
|
1068
1040
|
animationData: o,
|
|
1069
|
-
title:
|
|
1070
|
-
subtitle:
|
|
1041
|
+
title: d,
|
|
1042
|
+
subtitle: h,
|
|
1071
1043
|
onContinue: () => {
|
|
1072
|
-
l(!0),
|
|
1044
|
+
l(!0), i.nextStep();
|
|
1073
1045
|
},
|
|
1074
|
-
buttonText:
|
|
1046
|
+
buttonText: n("idv2.tutorial.startScan"),
|
|
1075
1047
|
disclaimerText: C,
|
|
1076
1048
|
isLoading: r,
|
|
1077
|
-
className:
|
|
1049
|
+
className: _(
|
|
1078
1050
|
"IncodeIdTutorial",
|
|
1079
1051
|
a ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"
|
|
1080
1052
|
)
|
|
@@ -1790,7 +1762,7 @@ const _1 = ({
|
|
|
1790
1762
|
] })
|
|
1791
1763
|
]
|
|
1792
1764
|
}
|
|
1793
|
-
),
|
|
1765
|
+
), F1 = () => /* @__PURE__ */ e(
|
|
1794
1766
|
"svg",
|
|
1795
1767
|
{
|
|
1796
1768
|
width: "60",
|
|
@@ -1996,7 +1968,7 @@ const _1 = ({
|
|
|
1996
1968
|
] })
|
|
1997
1969
|
]
|
|
1998
1970
|
}
|
|
1999
|
-
),
|
|
1971
|
+
), b1 = () => /* @__PURE__ */ e(
|
|
2000
1972
|
"svg",
|
|
2001
1973
|
{
|
|
2002
1974
|
width: "61",
|
|
@@ -2305,10 +2277,10 @@ const _1 = ({
|
|
|
2305
2277
|
] })
|
|
2306
2278
|
]
|
|
2307
2279
|
}
|
|
2308
|
-
),
|
|
2280
|
+
), D1 = {
|
|
2309
2281
|
digitalIdUpload: {
|
|
2310
2282
|
type: "digitalIdUpload",
|
|
2311
|
-
icon:
|
|
2283
|
+
icon: b1,
|
|
2312
2284
|
title: "idv2.chooser.digitalIdUploadButtonTitle",
|
|
2313
2285
|
testId: "verification-option-digitalIdUpload",
|
|
2314
2286
|
weight: 1
|
|
@@ -2336,39 +2308,39 @@ const _1 = ({
|
|
|
2336
2308
|
},
|
|
2337
2309
|
manualIdUpload: {
|
|
2338
2310
|
type: "manualIdUpload",
|
|
2339
|
-
icon:
|
|
2311
|
+
icon: F1,
|
|
2340
2312
|
title: "idv2.chooser.manualUploadButtonTitle",
|
|
2341
2313
|
testId: "verification-option-manualIdUpload",
|
|
2342
2314
|
weight: 5
|
|
2343
2315
|
}
|
|
2344
2316
|
};
|
|
2345
|
-
function T1(
|
|
2346
|
-
const t = (
|
|
2347
|
-
const l =
|
|
2348
|
-
return l &&
|
|
2317
|
+
function T1(i) {
|
|
2318
|
+
const t = (n, r) => {
|
|
2319
|
+
const l = D1[r];
|
|
2320
|
+
return l && n.push(l), n;
|
|
2349
2321
|
};
|
|
2350
|
-
return
|
|
2322
|
+
return i.reduce(t, []).sort((n, r) => n.weight - r.weight);
|
|
2351
2323
|
}
|
|
2352
|
-
const Y1 = ({ manager:
|
|
2353
|
-
const { t:
|
|
2324
|
+
const Y1 = ({ manager: i, state: t }) => {
|
|
2325
|
+
const { t: n } = v(), r = N(
|
|
2354
2326
|
() => T1(t.availableDocumentTypes),
|
|
2355
2327
|
[t.availableDocumentTypes]
|
|
2356
2328
|
), l = (o) => {
|
|
2357
|
-
|
|
2329
|
+
i.selectDocument(o);
|
|
2358
2330
|
};
|
|
2359
2331
|
return /* @__PURE__ */ e(
|
|
2360
|
-
|
|
2332
|
+
T,
|
|
2361
2333
|
{
|
|
2362
|
-
title:
|
|
2334
|
+
title: n("idv2.chooser.chooseHowToVerifyTitle"),
|
|
2363
2335
|
"data-testid": "document-chooser-page",
|
|
2364
2336
|
className: "IncodeChooserPage",
|
|
2365
|
-
children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(
|
|
2366
|
-
|
|
2337
|
+
children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(s1, { children: r.map((o) => /* @__PURE__ */ e(
|
|
2338
|
+
c1,
|
|
2367
2339
|
{
|
|
2368
2340
|
icon: o.icon,
|
|
2369
|
-
title:
|
|
2341
|
+
title: n(o.title),
|
|
2370
2342
|
testId: o.testId,
|
|
2371
|
-
tag: o.tag ?
|
|
2343
|
+
tag: o.tag ? n(o.tag) : void 0,
|
|
2372
2344
|
onClick: () => l(o.type)
|
|
2373
2345
|
},
|
|
2374
2346
|
o.type
|
|
@@ -2376,25 +2348,25 @@ const Y1 = ({ manager: n, state: t }) => {
|
|
|
2376
2348
|
}
|
|
2377
2349
|
);
|
|
2378
2350
|
}, e2 = ({
|
|
2379
|
-
manager:
|
|
2351
|
+
manager: i,
|
|
2380
2352
|
direction: t
|
|
2381
2353
|
}) => {
|
|
2382
|
-
const [
|
|
2383
|
-
|
|
2384
|
-
import("./flip-animation-COR596wy.js").then((
|
|
2385
|
-
r(
|
|
2354
|
+
const [n, r] = M(null), [l, o] = M(!1), { t: s } = v();
|
|
2355
|
+
I(() => {
|
|
2356
|
+
import("./flip-animation-COR596wy.js").then((d) => {
|
|
2357
|
+
r(d.default);
|
|
2386
2358
|
});
|
|
2387
2359
|
}, []);
|
|
2388
|
-
const a =
|
|
2389
|
-
await new Promise((
|
|
2390
|
-
}, [t,
|
|
2391
|
-
return l ? /* @__PURE__ */ e(z, { size: "large" }) :
|
|
2392
|
-
/* @__PURE__ */ e(H, { role: "status", className: "IncodeFlipAnimationTitle", children:
|
|
2393
|
-
/* @__PURE__ */ e(
|
|
2360
|
+
const a = R(async () => {
|
|
2361
|
+
await new Promise((d) => setTimeout(d, 1e3)), t === "toBack" ? i.continueToBack() : i.continueToFront(), o(!0);
|
|
2362
|
+
}, [t, i]);
|
|
2363
|
+
return l ? /* @__PURE__ */ e(z, { size: "large" }) : n ? /* @__PURE__ */ e("div", { class: "IncodeFlipAnimation", children: [
|
|
2364
|
+
/* @__PURE__ */ e(H, { role: "status", className: "IncodeFlipAnimationTitle", children: s(t === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront") }),
|
|
2365
|
+
/* @__PURE__ */ e(F, { size: 32 }),
|
|
2394
2366
|
/* @__PURE__ */ e(
|
|
2395
|
-
|
|
2367
|
+
A,
|
|
2396
2368
|
{
|
|
2397
|
-
animationData:
|
|
2369
|
+
animationData: n,
|
|
2398
2370
|
loop: !1,
|
|
2399
2371
|
reverse: t === "toFront",
|
|
2400
2372
|
onComplete: a
|
|
@@ -2406,13 +2378,13 @@ export {
|
|
|
2406
2378
|
J1 as C,
|
|
2407
2379
|
e2 as F,
|
|
2408
2380
|
w1 as I,
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2381
|
+
l1 as S,
|
|
2382
|
+
o1 as T,
|
|
2383
|
+
c1 as V,
|
|
2384
|
+
a1 as a,
|
|
2385
|
+
s1 as b,
|
|
2414
2386
|
X1 as c,
|
|
2415
2387
|
Y1 as d,
|
|
2416
2388
|
Q1 as e,
|
|
2417
|
-
|
|
2389
|
+
r1 as f
|
|
2418
2390
|
};
|