@incodetech/web 0.0.0-dev-20260325-b804685 → 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.
- package/dist/back-horizontal-hint-CktUy0An.js +5 -0
- package/dist/back-vertical-hint-CMOWSEsc.js +5 -0
- package/dist/extensibility.es.js +1 -1
- package/dist/{flipAnimation-CK0kvOE9.js → flipAnimation-CmG-kgPi.js} +306 -251
- package/dist/flow/flow.es.js +3 -3
- package/dist/flow/styles.css +0 -4
- package/dist/front-horizontal-hint-Ca8ux7ED.js +7 -0
- package/dist/front-vertical-hint-Cl9a47Kq.js +7 -0
- package/dist/id/id.es.js +1 -1
- package/dist/id/styles.css +0 -4
- package/dist/passport-horizontal-hint-CWnj6Kh1.js +5 -0
- package/dist/passport-vertical-hint-DzkQdaag.js +5 -0
- package/package.json +2 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { u as e, c as
|
|
2
|
-
import { _ as E, D as
|
|
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
4
|
import { P as T } from "./page-CH1_PpOG.js";
|
|
5
|
-
import { T as
|
|
6
|
-
import { L as
|
|
7
|
-
import { S as
|
|
8
|
-
import { M as V, L as
|
|
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
|
|
15
|
-
import { S as
|
|
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
|
|
17
|
+
const o1 = ({
|
|
18
18
|
size: i,
|
|
19
19
|
class: t,
|
|
20
20
|
variant: n = "xs"
|
|
@@ -62,7 +62,7 @@ const r1 = ({
|
|
|
62
62
|
)
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
|
-
},
|
|
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
66
|
(i, t) => {
|
|
67
67
|
const { class: n, rows: r = 4, ...l } = i;
|
|
68
68
|
return /* @__PURE__ */ e(
|
|
@@ -71,11 +71,11 @@ const r1 = ({
|
|
|
71
71
|
...l,
|
|
72
72
|
ref: t,
|
|
73
73
|
rows: r,
|
|
74
|
-
class:
|
|
74
|
+
class: M("IncodeTextArea", n)
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
),
|
|
78
|
+
), c1 = A(
|
|
79
79
|
({
|
|
80
80
|
id: i,
|
|
81
81
|
label: t,
|
|
@@ -83,14 +83,14 @@ const r1 = ({
|
|
|
83
83
|
error: r,
|
|
84
84
|
showErrorIcon: l,
|
|
85
85
|
helper: o,
|
|
86
|
-
showHelperIcon:
|
|
87
|
-
required:
|
|
86
|
+
showHelperIcon: a,
|
|
87
|
+
required: s,
|
|
88
88
|
rows: c = 4,
|
|
89
89
|
class: d,
|
|
90
|
-
...
|
|
90
|
+
...f
|
|
91
91
|
}, C) => {
|
|
92
|
-
const w = `${i}-helper`, u = `${i}-error`,
|
|
93
|
-
return /* @__PURE__ */ e("div", { class:
|
|
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
|
{
|
|
@@ -99,21 +99,21 @@ const r1 = ({
|
|
|
99
99
|
"data-testid": `${i}-label`,
|
|
100
100
|
children: [
|
|
101
101
|
t,
|
|
102
|
-
|
|
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
|
-
|
|
107
|
+
s1,
|
|
108
108
|
{
|
|
109
109
|
id: i,
|
|
110
110
|
rows: c,
|
|
111
|
-
...
|
|
111
|
+
...f,
|
|
112
112
|
ref: C,
|
|
113
|
-
required:
|
|
113
|
+
required: s,
|
|
114
114
|
...!t && n ? { "aria-label": n } : {},
|
|
115
|
-
"aria-describedby":
|
|
116
|
-
"aria-required":
|
|
115
|
+
"aria-describedby": _ || void 0,
|
|
116
|
+
"aria-required": s ? "true" : void 0,
|
|
117
117
|
"aria-invalid": r ? "true" : void 0
|
|
118
118
|
}
|
|
119
119
|
) }),
|
|
@@ -123,7 +123,7 @@ const r1 = ({
|
|
|
123
123
|
class: "IncodeTextAreaComposedErrorWrapper",
|
|
124
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(r1, { size: 17 }) }),
|
|
127
127
|
/* @__PURE__ */ e("p", { id: u, class: "IncodeTextAreaComposedError", children: r })
|
|
128
128
|
]
|
|
129
129
|
}
|
|
@@ -134,7 +134,7 @@ const r1 = ({
|
|
|
134
134
|
class: "IncodeTextAreaComposedHelperWrapper",
|
|
135
135
|
"data-testid": `${i}-helper-wrapper`,
|
|
136
136
|
children: [
|
|
137
|
-
|
|
137
|
+
a && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(l1, { size: 17 }) }),
|
|
138
138
|
/* @__PURE__ */ e("p", { id: w, class: "IncodeTextAreaComposedHelper", children: o })
|
|
139
139
|
]
|
|
140
140
|
}
|
|
@@ -142,13 +142,13 @@ const r1 = ({
|
|
|
142
142
|
] });
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
|
-
|
|
146
|
-
function
|
|
145
|
+
c1.displayName = "TextAreaComposed";
|
|
146
|
+
function d1({
|
|
147
147
|
children: i
|
|
148
148
|
}) {
|
|
149
149
|
return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardList", children: i });
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function C1({
|
|
152
152
|
icon: i,
|
|
153
153
|
title: t,
|
|
154
154
|
testId: n,
|
|
@@ -181,7 +181,7 @@ function c1({
|
|
|
181
181
|
class: "IncodeVerificationOptionCardTitleTagContainer",
|
|
182
182
|
children: [
|
|
183
183
|
/* @__PURE__ */ e("span", { class: "IncodeVerificationOptionCardTitle", children: t }),
|
|
184
|
-
l && /* @__PURE__ */ e(
|
|
184
|
+
l && /* @__PURE__ */ e(p1, { label: l })
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
),
|
|
@@ -190,7 +190,7 @@ function c1({
|
|
|
190
190
|
{
|
|
191
191
|
class: "IncodeVerificationOptionCardArrow",
|
|
192
192
|
"data-testid": "chevron-right-icon",
|
|
193
|
-
children: /* @__PURE__ */ e(
|
|
193
|
+
children: /* @__PURE__ */ e(o1, { size: 24, variant: "m" })
|
|
194
194
|
}
|
|
195
195
|
)
|
|
196
196
|
] })
|
|
@@ -198,13 +198,13 @@ function c1({
|
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function p1({ label: i }) {
|
|
202
202
|
return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardTag", children: [
|
|
203
|
-
/* @__PURE__ */ e(
|
|
203
|
+
/* @__PURE__ */ e(a1, {}),
|
|
204
204
|
/* @__PURE__ */ e("span", { children: i })
|
|
205
205
|
] });
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const u1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
208
208
|
"svg",
|
|
209
209
|
{
|
|
210
210
|
width: "24",
|
|
@@ -252,7 +252,7 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
252
252
|
)
|
|
253
253
|
]
|
|
254
254
|
}
|
|
255
|
-
),
|
|
255
|
+
), h1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
256
256
|
"svg",
|
|
257
257
|
{
|
|
258
258
|
width: "24",
|
|
@@ -293,7 +293,7 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
293
293
|
)
|
|
294
294
|
]
|
|
295
295
|
}
|
|
296
|
-
),
|
|
296
|
+
), f1 = ({
|
|
297
297
|
className: i
|
|
298
298
|
}) => /* @__PURE__ */ e(
|
|
299
299
|
"svg",
|
|
@@ -344,7 +344,7 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
344
344
|
)
|
|
345
345
|
]
|
|
346
346
|
}
|
|
347
|
-
),
|
|
347
|
+
), I1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
348
348
|
"svg",
|
|
349
349
|
{
|
|
350
350
|
width: "64",
|
|
@@ -365,23 +365,23 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
365
365
|
)
|
|
366
366
|
]
|
|
367
367
|
}
|
|
368
|
-
),
|
|
368
|
+
), v1 = ({
|
|
369
369
|
open: i,
|
|
370
370
|
onClose: t,
|
|
371
371
|
onTakeManually: n,
|
|
372
372
|
portalContainer: r
|
|
373
373
|
}) => {
|
|
374
|
-
const { t: l } =
|
|
375
|
-
|
|
376
|
-
}, []),
|
|
374
|
+
const { t: l } = m(), o = k((s) => {
|
|
375
|
+
s?.focus();
|
|
376
|
+
}, []), a = () => {
|
|
377
377
|
n(), t();
|
|
378
378
|
};
|
|
379
379
|
return /* @__PURE__ */ e(
|
|
380
380
|
V.Root,
|
|
381
381
|
{
|
|
382
382
|
open: i,
|
|
383
|
-
onOpenChange: (
|
|
384
|
-
|
|
383
|
+
onOpenChange: (s) => {
|
|
384
|
+
s || t();
|
|
385
385
|
},
|
|
386
386
|
class: "IncodeCommonIssuesFullScreen",
|
|
387
387
|
hasBackdrop: !1,
|
|
@@ -389,9 +389,9 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
389
389
|
manageInitialFocus: !1,
|
|
390
390
|
children: /* @__PURE__ */ e(V.Content, { class: "IncodeCommonIssuesContent", children: [
|
|
391
391
|
/* @__PURE__ */ e(V.Close, { "aria-label": l("commonIssues.close") }),
|
|
392
|
-
/* @__PURE__ */ e(V.Icon, { class: "IncodeCommonIssuesQuestionIcon", children: /* @__PURE__ */ e(
|
|
392
|
+
/* @__PURE__ */ e(V.Icon, { class: "IncodeCommonIssuesQuestionIcon", children: /* @__PURE__ */ e(I1, {}) }),
|
|
393
393
|
/* @__PURE__ */ e(V.TitleSection, { children: /* @__PURE__ */ e(
|
|
394
|
-
|
|
394
|
+
R,
|
|
395
395
|
{
|
|
396
396
|
id: "incode-modal-title",
|
|
397
397
|
ref: o,
|
|
@@ -402,21 +402,21 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
402
402
|
) }),
|
|
403
403
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCards", children: [
|
|
404
404
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
405
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
405
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(h1, {}) }),
|
|
406
406
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
407
407
|
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: l("commonIssues.glarePresent") }),
|
|
408
408
|
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: l("commonIssues.glarePresentDescription") })
|
|
409
409
|
] })
|
|
410
410
|
] }),
|
|
411
411
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
412
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
412
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(u1, {}) }),
|
|
413
413
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
414
414
|
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: l("commonIssues.blurPresent") }),
|
|
415
415
|
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: l("commonIssues.blurPresentDescription") })
|
|
416
416
|
] })
|
|
417
417
|
] }),
|
|
418
418
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
419
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
419
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(f1, {}) }),
|
|
420
420
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
421
421
|
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: l("commonIssues.notReadable") }),
|
|
422
422
|
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: l("commonIssues.notReadableDescription") })
|
|
@@ -425,35 +425,35 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
425
425
|
] }),
|
|
426
426
|
/* @__PURE__ */ e(V.Actions, { class: "IncodeCommonIssuesButtons", children: [
|
|
427
427
|
/* @__PURE__ */ e(
|
|
428
|
-
|
|
428
|
+
F,
|
|
429
429
|
{
|
|
430
430
|
variant: "link",
|
|
431
|
-
onClick:
|
|
431
|
+
onClick: a,
|
|
432
432
|
class: "IncodeCommonIssuesTakeManually",
|
|
433
433
|
children: l("commonIssues.takeManually")
|
|
434
434
|
}
|
|
435
435
|
),
|
|
436
|
-
/* @__PURE__ */ e(
|
|
436
|
+
/* @__PURE__ */ e(F, { onClick: t, class: "IncodeCommonIssuesTryAgain", children: l("commonIssues.tryAgain") })
|
|
437
437
|
] })
|
|
438
438
|
] })
|
|
439
439
|
}
|
|
440
440
|
);
|
|
441
|
-
},
|
|
441
|
+
}, g1 = ({
|
|
442
442
|
orientation: i,
|
|
443
443
|
mode: t,
|
|
444
444
|
state: n,
|
|
445
445
|
children: r,
|
|
446
446
|
className: l
|
|
447
447
|
}) => {
|
|
448
|
-
const o = i !== "vertical" || t === "passport",
|
|
448
|
+
const o = i !== "vertical" || t === "passport", a = t === "passport", s = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
|
|
449
449
|
return /* @__PURE__ */ e(
|
|
450
450
|
"div",
|
|
451
451
|
{
|
|
452
|
-
class:
|
|
452
|
+
class: M(
|
|
453
453
|
"IncodeCaptureFrame",
|
|
454
454
|
o ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical",
|
|
455
|
-
|
|
456
|
-
|
|
455
|
+
s,
|
|
456
|
+
a && "IncodeCaptureFramePassport",
|
|
457
457
|
l
|
|
458
458
|
),
|
|
459
459
|
"aria-hidden": "true",
|
|
@@ -461,20 +461,20 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
461
461
|
children: r
|
|
462
462
|
}
|
|
463
463
|
);
|
|
464
|
-
},
|
|
464
|
+
}, $ = ({
|
|
465
465
|
imageUrl: i,
|
|
466
466
|
orientation: t,
|
|
467
467
|
mode: n,
|
|
468
468
|
borderState: r,
|
|
469
469
|
topContent: l,
|
|
470
470
|
bottomContent: o,
|
|
471
|
-
overlayContent:
|
|
471
|
+
overlayContent: a
|
|
472
472
|
}) => {
|
|
473
|
-
const { t:
|
|
473
|
+
const { t: s } = m();
|
|
474
474
|
return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayout", children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayoutContent", children: [
|
|
475
475
|
l && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingTopArea", children: l }),
|
|
476
476
|
/* @__PURE__ */ e(
|
|
477
|
-
|
|
477
|
+
g1,
|
|
478
478
|
{
|
|
479
479
|
orientation: t,
|
|
480
480
|
mode: n === "id" ? "front" : n,
|
|
@@ -489,14 +489,14 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
489
489
|
class: "IncodeIdProcessingImage"
|
|
490
490
|
}
|
|
491
491
|
),
|
|
492
|
-
|
|
492
|
+
a && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingOverlay", "aria-hidden": "true", children: a })
|
|
493
493
|
]
|
|
494
494
|
}
|
|
495
495
|
),
|
|
496
496
|
/* @__PURE__ */ e("div", { class: "IncodeIdProcessingBottomArea", children: [
|
|
497
497
|
/* @__PURE__ */ e("div", { class: "IncodeCaptureEncryptionLabel", children: [
|
|
498
|
-
/* @__PURE__ */ e(
|
|
499
|
-
/* @__PURE__ */ e("span", { children:
|
|
498
|
+
/* @__PURE__ */ e(Q, { className: "IncodeCaptureEncryptionIcon" }),
|
|
499
|
+
/* @__PURE__ */ e("span", { children: s("v2.capture.label") })
|
|
500
500
|
] }),
|
|
501
501
|
o
|
|
502
502
|
] })
|
|
@@ -507,26 +507,26 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
507
507
|
orientation: n,
|
|
508
508
|
mode: r
|
|
509
509
|
}) => {
|
|
510
|
-
const { t: l } =
|
|
511
|
-
return
|
|
510
|
+
const { t: l } = m(), o = v(null), a = n !== "vertical" || r === "passport", [s, c] = y(null);
|
|
511
|
+
return h(() => {
|
|
512
512
|
o.current?.focus();
|
|
513
|
-
}, []),
|
|
514
|
-
|
|
513
|
+
}, []), h(() => {
|
|
514
|
+
a ? import("./id-laser-h-BBV3r3rz.js").then((d) => {
|
|
515
515
|
c(d.default);
|
|
516
516
|
}) : import("./id-laser-v-BTHJaSfx.js").then((d) => {
|
|
517
517
|
c(d.default);
|
|
518
518
|
});
|
|
519
|
-
}, [
|
|
520
|
-
|
|
519
|
+
}, [a]), /* @__PURE__ */ e(
|
|
520
|
+
$,
|
|
521
521
|
{
|
|
522
522
|
imageUrl: i,
|
|
523
523
|
orientation: n,
|
|
524
524
|
mode: r,
|
|
525
525
|
borderState: "analyzing",
|
|
526
526
|
topContent: /* @__PURE__ */ e("div", { class: "IncodeAnalyzingContent", children: [
|
|
527
|
-
/* @__PURE__ */ e(
|
|
527
|
+
/* @__PURE__ */ e(J, { progress: t }),
|
|
528
528
|
/* @__PURE__ */ e(
|
|
529
|
-
|
|
529
|
+
R,
|
|
530
530
|
{
|
|
531
531
|
ref: o,
|
|
532
532
|
id: "analyzing-title",
|
|
@@ -536,17 +536,17 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
536
536
|
}
|
|
537
537
|
)
|
|
538
538
|
] }),
|
|
539
|
-
overlayContent:
|
|
540
|
-
|
|
539
|
+
overlayContent: s ? /* @__PURE__ */ e(
|
|
540
|
+
U,
|
|
541
541
|
{
|
|
542
|
-
animationData:
|
|
542
|
+
animationData: s,
|
|
543
543
|
loop: !0,
|
|
544
544
|
className: "IncodeAnalyzingLottie"
|
|
545
545
|
}
|
|
546
546
|
) : null
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
|
-
},
|
|
549
|
+
}, w1 = ({ className: i, ...t }) => /* @__PURE__ */ e(
|
|
550
550
|
"svg",
|
|
551
551
|
{
|
|
552
552
|
class: i,
|
|
@@ -565,7 +565,7 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
565
565
|
}
|
|
566
566
|
)
|
|
567
567
|
}
|
|
568
|
-
),
|
|
568
|
+
), W = ({ className: i, ...t }) => /* @__PURE__ */ e(
|
|
569
569
|
"svg",
|
|
570
570
|
{
|
|
571
571
|
class: i,
|
|
@@ -584,41 +584,41 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
584
584
|
}
|
|
585
585
|
)
|
|
586
586
|
}
|
|
587
|
-
),
|
|
587
|
+
), K = ({
|
|
588
588
|
variant: i,
|
|
589
589
|
imageUrl: t,
|
|
590
590
|
orientation: n,
|
|
591
591
|
mode: r,
|
|
592
592
|
title: l,
|
|
593
593
|
subtitle: o,
|
|
594
|
-
buttonText:
|
|
595
|
-
onButtonClick:
|
|
594
|
+
buttonText: a,
|
|
595
|
+
onButtonClick: s,
|
|
596
596
|
attemptsRemaining: c
|
|
597
597
|
}) => {
|
|
598
|
-
const { t: d } =
|
|
599
|
-
return
|
|
600
|
-
|
|
598
|
+
const { t: d } = m(), f = v(null);
|
|
599
|
+
return h(() => {
|
|
600
|
+
f.current?.focus();
|
|
601
601
|
}, []), /* @__PURE__ */ e(
|
|
602
|
-
|
|
602
|
+
$,
|
|
603
603
|
{
|
|
604
604
|
imageUrl: t,
|
|
605
605
|
orientation: n,
|
|
606
606
|
mode: r,
|
|
607
607
|
borderState: i,
|
|
608
608
|
topContent: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingResultContent", role: "status", children: [
|
|
609
|
-
i === "success" ? /* @__PURE__ */ e(
|
|
610
|
-
/* @__PURE__ */ e(
|
|
609
|
+
i === "success" ? /* @__PURE__ */ e(w1, { className: "IncodeIdProcessingResultIcon" }) : /* @__PURE__ */ e(W, { className: "IncodeIdProcessingResultIcon" }),
|
|
610
|
+
/* @__PURE__ */ e(H, { size: 16 }),
|
|
611
611
|
l && /* @__PURE__ */ e(
|
|
612
|
-
|
|
612
|
+
R,
|
|
613
613
|
{
|
|
614
|
-
ref:
|
|
614
|
+
ref: f,
|
|
615
615
|
className: "IncodeIdProcessingResultTitle",
|
|
616
616
|
tabIndex: -1,
|
|
617
617
|
children: l
|
|
618
618
|
}
|
|
619
619
|
),
|
|
620
|
-
o && /* @__PURE__ */ e(
|
|
621
|
-
/* @__PURE__ */ e(
|
|
620
|
+
o && /* @__PURE__ */ e(z, { children: [
|
|
621
|
+
/* @__PURE__ */ e(H, { size: 12 }),
|
|
622
622
|
/* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultSubtitle", children: o })
|
|
623
623
|
] })
|
|
624
624
|
] }),
|
|
@@ -626,17 +626,17 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
626
626
|
c !== void 0 && c > 0 && /* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultAttempts", children: d("v2.idError.attemptsLeft", {
|
|
627
627
|
count: c
|
|
628
628
|
}) }),
|
|
629
|
-
/* @__PURE__ */ e(
|
|
629
|
+
/* @__PURE__ */ e(F, { onClick: s, "data-testid": "retry-button", children: a })
|
|
630
630
|
] })
|
|
631
631
|
}
|
|
632
632
|
);
|
|
633
|
-
},
|
|
634
|
-
const { t: n } =
|
|
633
|
+
}, x1 = ({ manager: i, state: t }) => {
|
|
634
|
+
const { t: n } = m();
|
|
635
635
|
if (!t.previewImageUrl)
|
|
636
636
|
return null;
|
|
637
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");
|
|
638
638
|
return /* @__PURE__ */ e(
|
|
639
|
-
|
|
639
|
+
K,
|
|
640
640
|
{
|
|
641
641
|
variant: "success",
|
|
642
642
|
imageUrl: t.previewImageUrl,
|
|
@@ -648,16 +648,16 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
648
648
|
onButtonClick: () => i.nextStep()
|
|
649
649
|
}
|
|
650
650
|
);
|
|
651
|
-
},
|
|
652
|
-
const { t: r } =
|
|
651
|
+
}, L1 = ({ manager: i, state: t, ...n }) => {
|
|
652
|
+
const { t: r } = m();
|
|
653
653
|
if (t.status === "error")
|
|
654
654
|
return /* @__PURE__ */ e("div", { class: "IncodeIdError", role: "alert", children: [
|
|
655
655
|
/* @__PURE__ */ e("div", { class: "IncodeIdErrorMessage", children: t.error }),
|
|
656
|
-
/* @__PURE__ */ e(
|
|
656
|
+
/* @__PURE__ */ e(F, { onClick: () => i.reset(), "data-testid": "retry-button", children: r("idv2.capturePreview.retry") })
|
|
657
657
|
] });
|
|
658
658
|
const l = t.currentMode === "passport" ? "passport" : "id";
|
|
659
659
|
return t.previewImageUrl ? /* @__PURE__ */ e(
|
|
660
|
-
|
|
660
|
+
K,
|
|
661
661
|
{
|
|
662
662
|
variant: "error",
|
|
663
663
|
imageUrl: t.previewImageUrl,
|
|
@@ -670,9 +670,9 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
670
670
|
attemptsRemaining: t.attemptsRemaining
|
|
671
671
|
}
|
|
672
672
|
) : null;
|
|
673
|
-
},
|
|
674
|
-
const { t } =
|
|
675
|
-
|
|
673
|
+
}, s2 = ({ manager: i }) => {
|
|
674
|
+
const { t } = m(), n = v(null);
|
|
675
|
+
h(() => {
|
|
676
676
|
n.current?.focus();
|
|
677
677
|
}, []);
|
|
678
678
|
const r = () => {
|
|
@@ -680,47 +680,47 @@ const C1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
680
680
|
};
|
|
681
681
|
return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdExpiredPage", children: [
|
|
682
682
|
/* @__PURE__ */ e("div", { class: "IncodeIdExpiredContent", role: "alert", children: [
|
|
683
|
-
/* @__PURE__ */ e(
|
|
684
|
-
/* @__PURE__ */ e(
|
|
685
|
-
/* @__PURE__ */ e(
|
|
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 }),
|
|
686
686
|
/* @__PURE__ */ e("p", { class: "IncodeIdExpiredSubtitle", children: t("idv2.capture.notifications.useDifferent") }),
|
|
687
|
-
/* @__PURE__ */ e(
|
|
687
|
+
/* @__PURE__ */ e(H, { size: 80 })
|
|
688
688
|
] }),
|
|
689
|
-
/* @__PURE__ */ e("div", { class: "IncodeIdExpiredButtonContainer", children: /* @__PURE__ */ e(
|
|
689
|
+
/* @__PURE__ */ e("div", { class: "IncodeIdExpiredButtonContainer", children: /* @__PURE__ */ e(F, { variant: "primary", onClick: r, children: t("idv2.unacceptedId.tryAgain") }) })
|
|
690
690
|
] });
|
|
691
691
|
}, L = /* @__PURE__ */ new Map();
|
|
692
|
-
let
|
|
693
|
-
const
|
|
692
|
+
let S = !1;
|
|
693
|
+
const D = {
|
|
694
694
|
blur: () => import("./blurdevicelottie-_BZRug1c.js"),
|
|
695
695
|
glare: () => import("./glaredevicelottie-DLuIStvb.js"),
|
|
696
696
|
align: () => import("./aligndevicelottie-DlQCRPfM.js"),
|
|
697
697
|
front: () => import("./frontdevicelottie-KhKxT5n9.js"),
|
|
698
698
|
back: () => import("./backdevicelottie-B4NgyWmX.js")
|
|
699
699
|
};
|
|
700
|
-
function
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
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
707
|
]).then(([t, n, r, l, o]) => {
|
|
708
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?.();
|
|
709
709
|
}).catch(() => {
|
|
710
710
|
}));
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
|
|
712
|
+
function y1() {
|
|
713
|
+
j();
|
|
714
714
|
}
|
|
715
|
-
function
|
|
716
|
-
|
|
717
|
-
|
|
715
|
+
function _1() {
|
|
716
|
+
h(() => {
|
|
717
|
+
y1();
|
|
718
718
|
}, []);
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
const { t: n } =
|
|
722
|
-
if (
|
|
723
|
-
|
|
720
|
+
function M1(i, t) {
|
|
721
|
+
const { t: n } = m(), [, r] = y(0);
|
|
722
|
+
if (h(() => {
|
|
723
|
+
j(() => r((l) => l + 1));
|
|
724
724
|
}, []), i === "blur")
|
|
725
725
|
return {
|
|
726
726
|
title: n("idv2.capture.notifications.blur.title"),
|
|
@@ -749,73 +749,73 @@ function y1(i, t) {
|
|
|
749
749
|
}
|
|
750
750
|
return null;
|
|
751
751
|
}
|
|
752
|
-
const
|
|
752
|
+
const B1 = ({
|
|
753
753
|
detectionStatus: i,
|
|
754
754
|
mode: t,
|
|
755
755
|
isCapturing: n
|
|
756
756
|
}) => {
|
|
757
|
-
const { t: r } =
|
|
757
|
+
const { t: r } = m(), l = M1(i, t), o = v(null), a = v({
|
|
758
758
|
message: "",
|
|
759
759
|
at: 0
|
|
760
|
-
}),
|
|
761
|
-
const x = Date.now(),
|
|
762
|
-
if (p ===
|
|
763
|
-
|
|
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
764
|
const P = o.current;
|
|
765
|
-
P && (clearTimeout(d.current), P.textContent = "",
|
|
765
|
+
P && (clearTimeout(d.current), P.textContent = "", f.current = setTimeout(() => {
|
|
766
766
|
P.textContent = p, d.current = setTimeout(() => {
|
|
767
767
|
P.textContent = "";
|
|
768
768
|
}, 3e3);
|
|
769
769
|
}, 50));
|
|
770
|
-
}, []),
|
|
771
|
-
return
|
|
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
772
|
if (w) {
|
|
773
773
|
c.current = !1;
|
|
774
774
|
return;
|
|
775
775
|
}
|
|
776
776
|
if (c.current || !C) return;
|
|
777
777
|
const p = setTimeout(() => {
|
|
778
|
-
c.current = !0,
|
|
778
|
+
c.current = !0, g(I());
|
|
779
779
|
}, 500);
|
|
780
780
|
return () => clearTimeout(p);
|
|
781
|
-
}, [C, w,
|
|
782
|
-
const p =
|
|
783
|
-
|
|
784
|
-
}, [
|
|
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
785
|
if (!n) {
|
|
786
786
|
if (u) {
|
|
787
787
|
const x = t === "front" || t === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
|
|
788
|
-
|
|
788
|
+
g(`${r(`${x}.title`)}. ${r(`${x}.description`)}`);
|
|
789
789
|
return;
|
|
790
790
|
}
|
|
791
|
-
if (
|
|
792
|
-
|
|
791
|
+
if (_) {
|
|
792
|
+
g(`${r("idv2.capture.notifications.notAligned.title")}.`);
|
|
793
793
|
return;
|
|
794
794
|
}
|
|
795
795
|
if (B) {
|
|
796
|
-
|
|
796
|
+
g(`${r("idv2.capture.notifications.glare.title")}.`);
|
|
797
797
|
return;
|
|
798
798
|
}
|
|
799
799
|
if (Z) {
|
|
800
|
-
|
|
800
|
+
g(`${r("idv2.capture.notifications.blur.title")}.`);
|
|
801
801
|
return;
|
|
802
802
|
}
|
|
803
|
-
C && c.current &&
|
|
803
|
+
C && c.current && g(I());
|
|
804
804
|
}
|
|
805
805
|
}, [
|
|
806
|
-
|
|
806
|
+
g,
|
|
807
807
|
Z,
|
|
808
808
|
n,
|
|
809
|
-
|
|
809
|
+
_,
|
|
810
810
|
B,
|
|
811
811
|
C,
|
|
812
812
|
u,
|
|
813
813
|
t,
|
|
814
814
|
r,
|
|
815
|
-
|
|
816
|
-
]),
|
|
817
|
-
clearTimeout(
|
|
818
|
-
}, []), /* @__PURE__ */ e(
|
|
815
|
+
I
|
|
816
|
+
]), h(() => () => {
|
|
817
|
+
clearTimeout(f.current), clearTimeout(d.current);
|
|
818
|
+
}, []), /* @__PURE__ */ e(z, { children: [
|
|
819
819
|
/* @__PURE__ */ e(
|
|
820
820
|
"div",
|
|
821
821
|
{
|
|
@@ -825,16 +825,68 @@ const _1 = ({
|
|
|
825
825
|
"aria-atomic": "true"
|
|
826
826
|
}
|
|
827
827
|
),
|
|
828
|
-
l ? /* @__PURE__ */ e("div", { class:
|
|
829
|
-
/* @__PURE__ */ e("div", { class:
|
|
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: [
|
|
830
830
|
/* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationTitle", children: l.title }),
|
|
831
831
|
l.description && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationDescription", children: l.description })
|
|
832
832
|
] }),
|
|
833
|
-
/* @__PURE__ */ e(
|
|
834
|
-
l.animationData && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ e(
|
|
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 }) })
|
|
835
835
|
] }) }) : null
|
|
836
836
|
] });
|
|
837
|
-
},
|
|
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(
|
|
838
890
|
({
|
|
839
891
|
mode: i,
|
|
840
892
|
orientation: t,
|
|
@@ -842,13 +894,13 @@ const _1 = ({
|
|
|
842
894
|
counterValue: r,
|
|
843
895
|
isCapturing: l,
|
|
844
896
|
showManualCapture: o,
|
|
845
|
-
onCapture:
|
|
846
|
-
onOpenHelp:
|
|
897
|
+
onCapture: a,
|
|
898
|
+
onOpenHelp: s,
|
|
847
899
|
helpButtonRef: c,
|
|
848
900
|
captureButtonRef: d
|
|
849
|
-
},
|
|
850
|
-
const { t: C } =
|
|
851
|
-
|
|
901
|
+
}, f) => {
|
|
902
|
+
const { t: C } = m();
|
|
903
|
+
_1(), h(() => {
|
|
852
904
|
o && d && d.current?.focus();
|
|
853
905
|
}, [o, d]);
|
|
854
906
|
const w = () => l || n === "capturing" ? "capturing" : n === "blur" || n === "glare" || n === "wrongSide" || n === "farAway" ? "error" : "idle", u = N(() => {
|
|
@@ -871,18 +923,18 @@ const _1 = ({
|
|
|
871
923
|
};
|
|
872
924
|
}
|
|
873
925
|
return null;
|
|
874
|
-
}, [l, n, i, C]),
|
|
926
|
+
}, [l, n, i, C]), _ = w(), B = i === "passport", Z = t !== "vertical" || B, g = Z ? "horizontal" : "vertical";
|
|
875
927
|
return /* @__PURE__ */ e(
|
|
876
|
-
|
|
928
|
+
t1,
|
|
877
929
|
{
|
|
878
|
-
className:
|
|
930
|
+
className: M(
|
|
879
931
|
"IncodeCaptureOverlayId",
|
|
880
932
|
!Z && "IncodeCaptureOverlayVertical"
|
|
881
933
|
),
|
|
882
934
|
children: [
|
|
883
935
|
/* @__PURE__ */ e("div", { class: "IncodeCaptureTopSection", children: [
|
|
884
936
|
/* @__PURE__ */ e(
|
|
885
|
-
|
|
937
|
+
B1,
|
|
886
938
|
{
|
|
887
939
|
detectionStatus: n,
|
|
888
940
|
mode: i,
|
|
@@ -890,7 +942,7 @@ const _1 = ({
|
|
|
890
942
|
}
|
|
891
943
|
),
|
|
892
944
|
/* @__PURE__ */ e(
|
|
893
|
-
|
|
945
|
+
X,
|
|
894
946
|
{
|
|
895
947
|
title: u?.title ?? "",
|
|
896
948
|
subtitle: u?.subtitle,
|
|
@@ -900,22 +952,25 @@ const _1 = ({
|
|
|
900
952
|
)
|
|
901
953
|
] }),
|
|
902
954
|
/* @__PURE__ */ e(
|
|
903
|
-
|
|
955
|
+
Y,
|
|
904
956
|
{
|
|
905
|
-
ref:
|
|
957
|
+
ref: f,
|
|
906
958
|
variant: "locked",
|
|
907
|
-
orientation:
|
|
908
|
-
frameState:
|
|
909
|
-
className:
|
|
910
|
-
children:
|
|
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
|
+
]
|
|
911
966
|
}
|
|
912
967
|
),
|
|
913
968
|
/* @__PURE__ */ e("div", { class: "IncodeSrOnly", "aria-live": "polite", "aria-atomic": "true", children: l && r > 0 ? r : "" }),
|
|
914
969
|
/* @__PURE__ */ e(
|
|
915
|
-
|
|
970
|
+
e1,
|
|
916
971
|
{
|
|
917
|
-
onOpenHelp:
|
|
918
|
-
onCapture:
|
|
972
|
+
onOpenHelp: s,
|
|
973
|
+
onCapture: a,
|
|
919
974
|
isManualCapture: o,
|
|
920
975
|
helpButtonRef: c,
|
|
921
976
|
captureButtonRef: d,
|
|
@@ -938,10 +993,10 @@ const _1 = ({
|
|
|
938
993
|
}
|
|
939
994
|
);
|
|
940
995
|
}
|
|
941
|
-
),
|
|
942
|
-
const { t: n } =
|
|
996
|
+
), c2 = ({ manager: i, state: t }) => {
|
|
997
|
+
const { t: n } = m();
|
|
943
998
|
if (t.captureStatus === "initializing")
|
|
944
|
-
return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: /* @__PURE__ */ e(
|
|
999
|
+
return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: /* @__PURE__ */ e(G, { size: "large", title: `${n("webcam.loading")}...` }) });
|
|
945
1000
|
if (t.captureStatus === "uploading" && t.previewImageUrl) {
|
|
946
1001
|
const r = t.currentMode === "passport" ? "passport" : "id";
|
|
947
1002
|
return /* @__PURE__ */ e(
|
|
@@ -954,21 +1009,21 @@ const _1 = ({
|
|
|
954
1009
|
}
|
|
955
1010
|
);
|
|
956
1011
|
}
|
|
957
|
-
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(
|
|
958
|
-
},
|
|
959
|
-
const n =
|
|
960
|
-
|
|
961
|
-
const
|
|
962
|
-
if (!
|
|
963
|
-
|
|
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);
|
|
964
1019
|
return;
|
|
965
1020
|
}
|
|
966
|
-
|
|
967
|
-
const p = () =>
|
|
968
|
-
return
|
|
969
|
-
}), () =>
|
|
970
|
-
}, [t.stream]),
|
|
971
|
-
const
|
|
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 = () => {
|
|
972
1027
|
const p = r.current;
|
|
973
1028
|
if (!p)
|
|
974
1029
|
return;
|
|
@@ -980,9 +1035,9 @@ const _1 = ({
|
|
|
980
1035
|
height: x.height
|
|
981
1036
|
});
|
|
982
1037
|
};
|
|
983
|
-
return
|
|
1038
|
+
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
984
1039
|
}, [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",
|
|
1040
|
+
const C = t.captureStatus === "capturing" || t.detectionStatus === "capturing", w = t.detectionStatus, u = w === "manualCapture" || t.showCaptureButtonInAuto && t.captureStatus === "detecting" && w !== "capturing", _ = () => {
|
|
986
1041
|
c(!0);
|
|
987
1042
|
}, B = () => {
|
|
988
1043
|
c(!1), requestAnimationFrame(() => {
|
|
@@ -990,12 +1045,12 @@ const _1 = ({
|
|
|
990
1045
|
});
|
|
991
1046
|
}, Z = () => {
|
|
992
1047
|
c(!1), i.switchToManualCapture();
|
|
993
|
-
},
|
|
1048
|
+
}, g = () => {
|
|
994
1049
|
i.capture();
|
|
995
1050
|
};
|
|
996
1051
|
return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: [
|
|
997
|
-
/* @__PURE__ */ e(
|
|
998
|
-
|
|
1052
|
+
/* @__PURE__ */ e(i1, { stream: t.stream, "aria-hidden": s || void 0, children: /* @__PURE__ */ e(
|
|
1053
|
+
k1,
|
|
999
1054
|
{
|
|
1000
1055
|
ref: r,
|
|
1001
1056
|
mode: t.currentMode,
|
|
@@ -1004,55 +1059,55 @@ const _1 = ({
|
|
|
1004
1059
|
counterValue: t.counterValue,
|
|
1005
1060
|
isCapturing: C,
|
|
1006
1061
|
showManualCapture: u,
|
|
1007
|
-
onCapture:
|
|
1008
|
-
onOpenHelp:
|
|
1062
|
+
onCapture: g,
|
|
1063
|
+
onOpenHelp: _,
|
|
1009
1064
|
helpButtonRef: l,
|
|
1010
1065
|
captureButtonRef: o
|
|
1011
1066
|
}
|
|
1012
1067
|
) }),
|
|
1013
|
-
/* @__PURE__ */ e("div", { ref:
|
|
1068
|
+
/* @__PURE__ */ e("div", { ref: a }),
|
|
1014
1069
|
/* @__PURE__ */ e(
|
|
1015
|
-
|
|
1070
|
+
v1,
|
|
1016
1071
|
{
|
|
1017
|
-
open:
|
|
1072
|
+
open: s,
|
|
1018
1073
|
onClose: B,
|
|
1019
1074
|
onTakeManually: Z,
|
|
1020
|
-
portalContainer:
|
|
1075
|
+
portalContainer: a.current
|
|
1021
1076
|
}
|
|
1022
1077
|
)
|
|
1023
1078
|
] });
|
|
1024
|
-
},
|
|
1025
|
-
const { t: n } =
|
|
1026
|
-
if (
|
|
1027
|
-
|
|
1028
|
-
|
|
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);
|
|
1029
1084
|
}) : c ? import("./back-tutorial-An9AcMSe.js").then((u) => {
|
|
1030
|
-
|
|
1085
|
+
a(u.default);
|
|
1031
1086
|
}) : import("./id-tutorial-B-F5Q28m.js").then((u) => {
|
|
1032
|
-
|
|
1087
|
+
a(u.default);
|
|
1033
1088
|
});
|
|
1034
|
-
}, [
|
|
1089
|
+
}, [s, c]), !o)
|
|
1035
1090
|
return null;
|
|
1036
|
-
const d = n(
|
|
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");
|
|
1037
1092
|
return /* @__PURE__ */ e(
|
|
1038
|
-
|
|
1093
|
+
n1,
|
|
1039
1094
|
{
|
|
1040
1095
|
animationData: o,
|
|
1041
1096
|
title: d,
|
|
1042
|
-
subtitle:
|
|
1097
|
+
subtitle: f,
|
|
1043
1098
|
onContinue: () => {
|
|
1044
1099
|
l(!0), i.nextStep();
|
|
1045
1100
|
},
|
|
1046
1101
|
buttonText: n("idv2.tutorial.startScan"),
|
|
1047
1102
|
disclaimerText: C,
|
|
1048
1103
|
isLoading: r,
|
|
1049
|
-
className:
|
|
1104
|
+
className: M(
|
|
1050
1105
|
"IncodeIdTutorial",
|
|
1051
|
-
|
|
1106
|
+
s ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"
|
|
1052
1107
|
)
|
|
1053
1108
|
}
|
|
1054
1109
|
);
|
|
1055
|
-
},
|
|
1110
|
+
}, U1 = () => /* @__PURE__ */ e(
|
|
1056
1111
|
"svg",
|
|
1057
1112
|
{
|
|
1058
1113
|
width: "119",
|
|
@@ -1246,7 +1301,7 @@ const _1 = ({
|
|
|
1246
1301
|
] })
|
|
1247
1302
|
]
|
|
1248
1303
|
}
|
|
1249
|
-
),
|
|
1304
|
+
), O1 = () => /* @__PURE__ */ e(
|
|
1250
1305
|
"svg",
|
|
1251
1306
|
{
|
|
1252
1307
|
width: "118",
|
|
@@ -1551,7 +1606,7 @@ const _1 = ({
|
|
|
1551
1606
|
] })
|
|
1552
1607
|
]
|
|
1553
1608
|
}
|
|
1554
|
-
),
|
|
1609
|
+
), S1 = () => /* @__PURE__ */ e(
|
|
1555
1610
|
"svg",
|
|
1556
1611
|
{
|
|
1557
1612
|
width: "60",
|
|
@@ -1762,7 +1817,7 @@ const _1 = ({
|
|
|
1762
1817
|
] })
|
|
1763
1818
|
]
|
|
1764
1819
|
}
|
|
1765
|
-
),
|
|
1820
|
+
), z1 = () => /* @__PURE__ */ e(
|
|
1766
1821
|
"svg",
|
|
1767
1822
|
{
|
|
1768
1823
|
width: "60",
|
|
@@ -1968,7 +2023,7 @@ const _1 = ({
|
|
|
1968
2023
|
] })
|
|
1969
2024
|
]
|
|
1970
2025
|
}
|
|
1971
|
-
),
|
|
2026
|
+
), N1 = () => /* @__PURE__ */ e(
|
|
1972
2027
|
"svg",
|
|
1973
2028
|
{
|
|
1974
2029
|
width: "61",
|
|
@@ -2277,30 +2332,30 @@ const _1 = ({
|
|
|
2277
2332
|
] })
|
|
2278
2333
|
]
|
|
2279
2334
|
}
|
|
2280
|
-
),
|
|
2335
|
+
), G1 = {
|
|
2281
2336
|
digitalIdUpload: {
|
|
2282
2337
|
type: "digitalIdUpload",
|
|
2283
|
-
icon:
|
|
2338
|
+
icon: N1,
|
|
2284
2339
|
title: "idv2.chooser.digitalIdUploadButtonTitle",
|
|
2285
2340
|
testId: "verification-option-digitalIdUpload",
|
|
2286
2341
|
weight: 1
|
|
2287
2342
|
},
|
|
2288
2343
|
id: {
|
|
2289
2344
|
type: "id",
|
|
2290
|
-
icon:
|
|
2345
|
+
icon: U1,
|
|
2291
2346
|
title: "idv2.chooser.idButtonTitle",
|
|
2292
2347
|
testId: "verification-option-id",
|
|
2293
2348
|
weight: 2
|
|
2294
2349
|
},
|
|
2295
2350
|
passport: {
|
|
2296
2351
|
type: "passport",
|
|
2297
|
-
icon:
|
|
2352
|
+
icon: O1,
|
|
2298
2353
|
title: "idv2.chooser.passportButtonTitle",
|
|
2299
2354
|
testId: "verification-option-passport",
|
|
2300
2355
|
weight: 3
|
|
2301
2356
|
},
|
|
2302
2357
|
digitalId: {
|
|
2303
|
-
icon:
|
|
2358
|
+
icon: S1,
|
|
2304
2359
|
title: "idv2.chooser.digitalIdButtonTitle",
|
|
2305
2360
|
testId: "verification-option-digitalId",
|
|
2306
2361
|
type: "digitalId",
|
|
@@ -2308,22 +2363,22 @@ const _1 = ({
|
|
|
2308
2363
|
},
|
|
2309
2364
|
manualIdUpload: {
|
|
2310
2365
|
type: "manualIdUpload",
|
|
2311
|
-
icon:
|
|
2366
|
+
icon: z1,
|
|
2312
2367
|
title: "idv2.chooser.manualUploadButtonTitle",
|
|
2313
2368
|
testId: "verification-option-manualIdUpload",
|
|
2314
2369
|
weight: 5
|
|
2315
2370
|
}
|
|
2316
2371
|
};
|
|
2317
|
-
function
|
|
2372
|
+
function $1(i) {
|
|
2318
2373
|
const t = (n, r) => {
|
|
2319
|
-
const l =
|
|
2374
|
+
const l = G1[r];
|
|
2320
2375
|
return l && n.push(l), n;
|
|
2321
2376
|
};
|
|
2322
2377
|
return i.reduce(t, []).sort((n, r) => n.weight - r.weight);
|
|
2323
2378
|
}
|
|
2324
|
-
const
|
|
2325
|
-
const { t: n } =
|
|
2326
|
-
() =>
|
|
2379
|
+
const C2 = ({ manager: i, state: t }) => {
|
|
2380
|
+
const { t: n } = m(), r = N(
|
|
2381
|
+
() => $1(t.availableDocumentTypes),
|
|
2327
2382
|
[t.availableDocumentTypes]
|
|
2328
2383
|
), l = (o) => {
|
|
2329
2384
|
i.selectDocument(o);
|
|
@@ -2334,8 +2389,8 @@ const Y1 = ({ manager: i, state: t }) => {
|
|
|
2334
2389
|
title: n("idv2.chooser.chooseHowToVerifyTitle"),
|
|
2335
2390
|
"data-testid": "document-chooser-page",
|
|
2336
2391
|
className: "IncodeChooserPage",
|
|
2337
|
-
children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(
|
|
2338
|
-
|
|
2392
|
+
children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(d1, { children: r.map((o) => /* @__PURE__ */ e(
|
|
2393
|
+
C1,
|
|
2339
2394
|
{
|
|
2340
2395
|
icon: o.icon,
|
|
2341
2396
|
title: n(o.title),
|
|
@@ -2347,44 +2402,44 @@ const Y1 = ({ manager: i, state: t }) => {
|
|
|
2347
2402
|
)) }) })
|
|
2348
2403
|
}
|
|
2349
2404
|
);
|
|
2350
|
-
},
|
|
2405
|
+
}, p2 = ({
|
|
2351
2406
|
manager: i,
|
|
2352
2407
|
direction: t
|
|
2353
2408
|
}) => {
|
|
2354
|
-
const [n, r] =
|
|
2355
|
-
|
|
2409
|
+
const [n, r] = y(null), [l, o] = y(!1), { t: a } = m();
|
|
2410
|
+
h(() => {
|
|
2356
2411
|
import("./flip-animation-COR596wy.js").then((d) => {
|
|
2357
2412
|
r(d.default);
|
|
2358
2413
|
});
|
|
2359
2414
|
}, []);
|
|
2360
|
-
const
|
|
2415
|
+
const s = k(async () => {
|
|
2361
2416
|
await new Promise((d) => setTimeout(d, 1e3)), t === "toBack" ? i.continueToBack() : i.continueToFront(), o(!0);
|
|
2362
2417
|
}, [t, i]);
|
|
2363
|
-
return l ? /* @__PURE__ */ e(
|
|
2364
|
-
/* @__PURE__ */ e(
|
|
2365
|
-
/* @__PURE__ */ e(
|
|
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 }),
|
|
2366
2421
|
/* @__PURE__ */ e(
|
|
2367
|
-
|
|
2422
|
+
U,
|
|
2368
2423
|
{
|
|
2369
2424
|
animationData: n,
|
|
2370
2425
|
loop: !1,
|
|
2371
2426
|
reverse: t === "toFront",
|
|
2372
|
-
onComplete:
|
|
2427
|
+
onComplete: s
|
|
2373
2428
|
}
|
|
2374
2429
|
)
|
|
2375
2430
|
] }) : null;
|
|
2376
2431
|
};
|
|
2377
2432
|
export {
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
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
|
|
2390
2445
|
};
|