@incodetech/web 0.0.0-dev-20260325-b97b3e9 → 0.0.0-dev-20260325-9772cd2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authentication/authentication.es.js +2 -2
- package/dist/back-horizontal-hint-CktUy0An.js +5 -0
- package/dist/back-vertical-hint-CMOWSEsc.js +5 -0
- package/dist/extensibility.es.js +3 -3
- package/dist/{flipAnimation-Dth_zuN5.js → flipAnimation-CmG-kgPi.js} +497 -470
- package/dist/flow/flow.es.js +3 -3
- package/dist/flow/styles.css +382 -428
- package/dist/front-horizontal-hint-Ca8ux7ED.js +7 -0
- package/dist/front-vertical-hint-Cl9a47Kq.js +7 -0
- package/dist/id/id.es.js +2 -2
- package/dist/id/styles.css +131 -177
- package/dist/{manualCaptureButton-iyltFWfQ.js → manualCaptureButton-6WD7GhPe.js} +286 -281
- package/dist/passport-horizontal-hint-CWnj6Kh1.js +5 -0
- package/dist/passport-vertical-hint-DzkQdaag.js +5 -0
- 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 M, b as m, B as F, S as H } from "./button-qiC4m4lf.js";
|
|
2
|
+
import { _ as E, D as A, q as k, A as v, d as y, y as h, k as z, P as q, z as b, T as N } from "./vendor-preact-BY8u4mdq.js";
|
|
3
3
|
import "./uiConfig-BSR3Bl6G.js";
|
|
4
|
-
import { P as
|
|
5
|
-
import { T as
|
|
6
|
-
import { L as
|
|
7
|
-
import { S as
|
|
8
|
-
import { L as
|
|
4
|
+
import { P as T } from "./page-CH1_PpOG.js";
|
|
5
|
+
import { T as R } from "./typography-DgyeaZWI.js";
|
|
6
|
+
import { L as Q, P as J, c as X, a as Y, d as e1, C as t1, b as i1 } from "./captureFooter-BIPDtCn6.js";
|
|
7
|
+
import { S as G } from "./spinner-_-QbAnd8.js";
|
|
8
|
+
import { M as V, L as U, B as n1 } from "./manualCaptureButton-6WD7GhPe.js";
|
|
9
9
|
import "@incodetech/core";
|
|
10
10
|
import "./inputComposed-7r-2MfA7.js";
|
|
11
11
|
import "./checkbox-KYc1FnQr.js";
|
|
12
12
|
import "./phoneInputComposed-B4OTfqLt.js";
|
|
13
13
|
import "./dateInputComposed-DzB7gNed.js";
|
|
14
|
-
import { E as
|
|
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
|
|
18
|
-
size:
|
|
17
|
+
const o1 = ({
|
|
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,58 +62,58 @@ const n1 = ({
|
|
|
62
62
|
)
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
|
-
},
|
|
66
|
-
(
|
|
67
|
-
const { class:
|
|
65
|
+
}, a1 = (i) => /* @__PURE__ */ E("svg", { width: 10, height: 10, viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ E("g", { clipPath: "url(#clip0_6394_10544)" }, /* @__PURE__ */ E("path", { d: "M8.3538 4.90039L3.9788 9.58789C3.93243 9.63737 3.87124 9.67042 3.80444 9.68207C3.73764 9.69372 3.66887 9.68332 3.60849 9.65245C3.54812 9.62158 3.49943 9.57191 3.46976 9.51094C3.4401 9.44997 3.43106 9.38101 3.44403 9.31445L4.01669 6.45L1.76552 5.60468C1.71717 5.5866 1.67405 5.55682 1.64002 5.51801C1.60599 5.4792 1.58211 5.43256 1.5705 5.38226C1.5589 5.33196 1.55993 5.27957 1.57351 5.22977C1.58709 5.17997 1.61279 5.13431 1.64833 5.09687L6.02333 0.409372C6.06969 0.359894 6.13089 0.326837 6.19769 0.315191C6.26448 0.303545 6.33326 0.313941 6.39363 0.34481C6.454 0.375679 6.50269 0.425347 6.53236 0.486318C6.56203 0.547289 6.57106 0.616255 6.55809 0.68281L5.98387 3.55039L8.23505 4.39453C8.28304 4.41273 8.32581 4.44248 8.35957 4.48114C8.39333 4.5198 8.41706 4.56618 8.42864 4.61618C8.44023 4.66619 8.43931 4.71828 8.42599 4.76784C8.41266 4.81741 8.38733 4.86293 8.35223 4.90039H8.3538Z", fill: "var(--icon-brand-500-static)" })), /* @__PURE__ */ E("defs", null, /* @__PURE__ */ E("clipPath", { id: "clip0_6394_10544" }, /* @__PURE__ */ E("rect", { width: 10, height: 10, fill: "white" })))), s1 = A(
|
|
66
|
+
(i, t) => {
|
|
67
|
+
const { class: n, rows: r = 4, ...l } = i;
|
|
68
68
|
return /* @__PURE__ */ e(
|
|
69
69
|
"textarea",
|
|
70
70
|
{
|
|
71
71
|
...l,
|
|
72
72
|
ref: t,
|
|
73
73
|
rows: r,
|
|
74
|
-
class:
|
|
74
|
+
class: M("IncodeTextArea", n)
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
),
|
|
78
|
+
), c1 = A(
|
|
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:
|
|
87
|
-
required:
|
|
88
|
-
rows:
|
|
89
|
-
class:
|
|
90
|
-
...
|
|
86
|
+
showHelperIcon: a,
|
|
87
|
+
required: s,
|
|
88
|
+
rows: c = 4,
|
|
89
|
+
class: d,
|
|
90
|
+
...f
|
|
91
91
|
}, C) => {
|
|
92
|
-
const
|
|
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
|
{
|
|
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
|
+
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
|
-
id:
|
|
110
|
-
rows:
|
|
111
|
-
...
|
|
109
|
+
id: i,
|
|
110
|
+
rows: c,
|
|
111
|
+
...f,
|
|
112
112
|
ref: C,
|
|
113
|
-
required:
|
|
114
|
-
...!t &&
|
|
115
|
-
"aria-describedby":
|
|
116
|
-
"aria-required":
|
|
113
|
+
required: s,
|
|
114
|
+
...!t && n ? { "aria-label": n } : {},
|
|
115
|
+
"aria-describedby": _ || void 0,
|
|
116
|
+
"aria-required": s ? "true" : void 0,
|
|
117
117
|
"aria-invalid": r ? "true" : void 0
|
|
118
118
|
}
|
|
119
119
|
) }),
|
|
@@ -121,9 +121,9 @@ const n1 = ({
|
|
|
121
121
|
"div",
|
|
122
122
|
{
|
|
123
123
|
class: "IncodeTextAreaComposedErrorWrapper",
|
|
124
|
-
"data-testid": `${
|
|
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
|
}
|
|
@@ -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
|
+
a && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(l1, { size: 17 }) }),
|
|
138
|
+
/* @__PURE__ */ e("p", { id: w, class: "IncodeTextAreaComposedHelper", children: o })
|
|
139
139
|
]
|
|
140
140
|
}
|
|
141
141
|
)
|
|
142
142
|
] });
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
|
-
|
|
146
|
-
function
|
|
147
|
-
children:
|
|
145
|
+
c1.displayName = "TextAreaComposed";
|
|
146
|
+
function d1({
|
|
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(p1, { label: l })
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
),
|
|
@@ -190,7 +190,7 @@ function s1({
|
|
|
190
190
|
{
|
|
191
191
|
class: "IncodeVerificationOptionCardArrow",
|
|
192
192
|
"data-testid": "chevron-right-icon",
|
|
193
|
-
children: /* @__PURE__ */ e(
|
|
193
|
+
children: /* @__PURE__ */ e(o1, { size: 24, variant: "m" })
|
|
194
194
|
}
|
|
195
195
|
)
|
|
196
196
|
] })
|
|
@@ -198,13 +198,13 @@ function s1({
|
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function p1({ label: i }) {
|
|
202
202
|
return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardTag", children: [
|
|
203
|
-
/* @__PURE__ */ e(
|
|
204
|
-
/* @__PURE__ */ e("span", { children:
|
|
203
|
+
/* @__PURE__ */ e(a1, {}),
|
|
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",
|
|
@@ -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
|
+
), h1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
274
256
|
"svg",
|
|
275
257
|
{
|
|
276
258
|
width: "24",
|
|
@@ -278,7 +260,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
278
260
|
viewBox: "0 0 24 24",
|
|
279
261
|
fill: "none",
|
|
280
262
|
xmlns: "http://www.w3.org/2000/svg",
|
|
281
|
-
class:
|
|
263
|
+
class: i,
|
|
282
264
|
"aria-hidden": "true",
|
|
283
265
|
children: [
|
|
284
266
|
/* @__PURE__ */ e(
|
|
@@ -311,8 +293,8 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
311
293
|
)
|
|
312
294
|
]
|
|
313
295
|
}
|
|
314
|
-
),
|
|
315
|
-
className:
|
|
296
|
+
), f1 = ({
|
|
297
|
+
className: i
|
|
316
298
|
}) => /* @__PURE__ */ e(
|
|
317
299
|
"svg",
|
|
318
300
|
{
|
|
@@ -321,7 +303,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
321
303
|
viewBox: "0 0 24 24",
|
|
322
304
|
fill: "none",
|
|
323
305
|
xmlns: "http://www.w3.org/2000/svg",
|
|
324
|
-
class:
|
|
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
|
-
),
|
|
347
|
+
), I1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
366
348
|
"svg",
|
|
367
349
|
{
|
|
368
350
|
width: "64",
|
|
@@ -370,7 +352,7 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
370
352
|
viewBox: "0 0 64 64",
|
|
371
353
|
fill: "none",
|
|
372
354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
373
|
-
class:
|
|
355
|
+
class: i,
|
|
374
356
|
"aria-hidden": "true",
|
|
375
357
|
children: [
|
|
376
358
|
/* @__PURE__ */ e("circle", { cx: "32", cy: "32", r: "32", fill: "#14151A" }),
|
|
@@ -383,108 +365,95 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
383
365
|
)
|
|
384
366
|
]
|
|
385
367
|
}
|
|
386
|
-
),
|
|
387
|
-
|
|
388
|
-
|
|
368
|
+
), v1 = ({
|
|
369
|
+
open: i,
|
|
370
|
+
onClose: t,
|
|
371
|
+
onTakeManually: n,
|
|
372
|
+
portalContainer: r
|
|
389
373
|
}) => {
|
|
390
|
-
const { t:
|
|
391
|
-
|
|
374
|
+
const { t: l } = m(), o = k((s) => {
|
|
375
|
+
s?.focus();
|
|
376
|
+
}, []), a = () => {
|
|
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: (s) => {
|
|
384
|
+
s || t();
|
|
385
|
+
},
|
|
386
|
+
class: "IncodeCommonIssuesFullScreen",
|
|
387
|
+
hasBackdrop: !1,
|
|
388
|
+
portalContainer: r ?? void 0,
|
|
389
|
+
manageInitialFocus: !1,
|
|
390
|
+
children: /* @__PURE__ */ e(V.Content, { class: "IncodeCommonIssuesContent", children: [
|
|
391
|
+
/* @__PURE__ */ e(V.Close, { "aria-label": l("commonIssues.close") }),
|
|
392
|
+
/* @__PURE__ */ e(V.Icon, { class: "IncodeCommonIssuesQuestionIcon", children: /* @__PURE__ */ e(I1, {}) }),
|
|
393
|
+
/* @__PURE__ */ e(V.TitleSection, { children: /* @__PURE__ */ e(
|
|
394
|
+
R,
|
|
405
395
|
{
|
|
406
|
-
|
|
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
|
-
h1,
|
|
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(h1, {}) }),
|
|
406
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
407
|
+
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: l("commonIssues.glarePresent") }),
|
|
408
|
+
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: l("commonIssues.glarePresentDescription") })
|
|
409
|
+
] })
|
|
410
|
+
] }),
|
|
411
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
412
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(u1, {}) }),
|
|
413
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
414
|
+
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: l("commonIssues.blurPresent") }),
|
|
415
|
+
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: l("commonIssues.blurPresentDescription") })
|
|
416
|
+
] })
|
|
417
|
+
] }),
|
|
418
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
419
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(f1, {}) }),
|
|
420
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
421
|
+
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: l("commonIssues.notReadable") }),
|
|
422
|
+
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: l("commonIssues.notReadableDescription") })
|
|
423
|
+
] })
|
|
424
|
+
] })
|
|
425
|
+
] }),
|
|
426
|
+
/* @__PURE__ */ e(V.Actions, { class: "IncodeCommonIssuesButtons", children: [
|
|
422
427
|
/* @__PURE__ */ e(
|
|
423
|
-
|
|
428
|
+
F,
|
|
424
429
|
{
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
class: "
|
|
428
|
-
|
|
429
|
-
children: i("commonIssues.commonIssues")
|
|
430
|
+
variant: "link",
|
|
431
|
+
onClick: a,
|
|
432
|
+
class: "IncodeCommonIssuesTakeManually",
|
|
433
|
+
children: l("commonIssues.takeManually")
|
|
430
434
|
}
|
|
431
435
|
),
|
|
432
|
-
/* @__PURE__ */ e(
|
|
433
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCards", children: [
|
|
434
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
435
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(p1, {}) }),
|
|
436
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
437
|
-
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: i("commonIssues.glarePresent") }),
|
|
438
|
-
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: i("commonIssues.glarePresentDescription") })
|
|
439
|
-
] })
|
|
440
|
-
] }),
|
|
441
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
442
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(d1, {}) }),
|
|
443
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
444
|
-
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: i("commonIssues.blurPresent") }),
|
|
445
|
-
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: i("commonIssues.blurPresentDescription") })
|
|
446
|
-
] })
|
|
447
|
-
] }),
|
|
448
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
449
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(u1, {}) }),
|
|
450
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
451
|
-
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: i("commonIssues.notReadable") }),
|
|
452
|
-
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: i("commonIssues.notReadableDescription") })
|
|
453
|
-
] })
|
|
454
|
-
] })
|
|
455
|
-
] }),
|
|
456
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesButtons", children: [
|
|
457
|
-
/* @__PURE__ */ e(
|
|
458
|
-
D,
|
|
459
|
-
{
|
|
460
|
-
variant: "link",
|
|
461
|
-
onClick: l,
|
|
462
|
-
class: "IncodeCommonIssuesTakeManually",
|
|
463
|
-
children: i("commonIssues.takeManually")
|
|
464
|
-
}
|
|
465
|
-
),
|
|
466
|
-
/* @__PURE__ */ e(D, { onClick: n, class: "IncodeCommonIssuesTryAgain", children: i("commonIssues.tryAgain") })
|
|
467
|
-
] })
|
|
436
|
+
/* @__PURE__ */ e(F, { onClick: t, class: "IncodeCommonIssuesTryAgain", children: l("commonIssues.tryAgain") })
|
|
468
437
|
] })
|
|
469
438
|
] })
|
|
470
439
|
}
|
|
471
440
|
);
|
|
472
|
-
},
|
|
473
|
-
orientation:
|
|
441
|
+
}, g1 = ({
|
|
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", a = t === "passport", s = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
|
|
480
449
|
return /* @__PURE__ */ e(
|
|
481
450
|
"div",
|
|
482
451
|
{
|
|
483
|
-
class:
|
|
452
|
+
class: M(
|
|
484
453
|
"IncodeCaptureFrame",
|
|
485
454
|
o ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical",
|
|
486
|
-
|
|
487
|
-
|
|
455
|
+
s,
|
|
456
|
+
a && "IncodeCaptureFramePassport",
|
|
488
457
|
l
|
|
489
458
|
),
|
|
490
459
|
"aria-hidden": "true",
|
|
@@ -492,72 +461,72 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
492
461
|
children: r
|
|
493
462
|
}
|
|
494
463
|
);
|
|
495
|
-
},
|
|
496
|
-
imageUrl:
|
|
464
|
+
}, $ = ({
|
|
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: a
|
|
503
472
|
}) => {
|
|
504
|
-
const { t:
|
|
505
|
-
return /* @__PURE__ */ e(
|
|
473
|
+
const { t: s } = m();
|
|
474
|
+
return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayout", children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayoutContent", children: [
|
|
506
475
|
l && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingTopArea", children: l }),
|
|
507
476
|
/* @__PURE__ */ e(
|
|
508
|
-
|
|
477
|
+
g1,
|
|
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
|
+
a && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingOverlay", "aria-hidden": "true", children: a })
|
|
524
493
|
]
|
|
525
494
|
}
|
|
526
495
|
),
|
|
527
496
|
/* @__PURE__ */ e("div", { class: "IncodeIdProcessingBottomArea", children: [
|
|
528
497
|
/* @__PURE__ */ e("div", { class: "IncodeCaptureEncryptionLabel", children: [
|
|
529
|
-
/* @__PURE__ */ e(
|
|
530
|
-
/* @__PURE__ */ e("span", { children:
|
|
498
|
+
/* @__PURE__ */ e(Q, { className: "IncodeCaptureEncryptionIcon" }),
|
|
499
|
+
/* @__PURE__ */ e("span", { children: s("v2.capture.label") })
|
|
531
500
|
] }),
|
|
532
501
|
o
|
|
533
502
|
] })
|
|
534
503
|
] }) }) });
|
|
535
504
|
}, m1 = ({
|
|
536
|
-
imageUrl:
|
|
505
|
+
imageUrl: i,
|
|
537
506
|
progress: t,
|
|
538
|
-
orientation:
|
|
507
|
+
orientation: n,
|
|
539
508
|
mode: r
|
|
540
509
|
}) => {
|
|
541
|
-
const { t: l } = m(), o =
|
|
542
|
-
return
|
|
510
|
+
const { t: l } = m(), o = v(null), a = n !== "vertical" || r === "passport", [s, c] = y(null);
|
|
511
|
+
return h(() => {
|
|
543
512
|
o.current?.focus();
|
|
544
|
-
}, []),
|
|
545
|
-
|
|
546
|
-
d
|
|
547
|
-
}) : import("./id-laser-v-BTHJaSfx.js").then((
|
|
548
|
-
d
|
|
513
|
+
}, []), h(() => {
|
|
514
|
+
a ? import("./id-laser-h-BBV3r3rz.js").then((d) => {
|
|
515
|
+
c(d.default);
|
|
516
|
+
}) : import("./id-laser-v-BTHJaSfx.js").then((d) => {
|
|
517
|
+
c(d.default);
|
|
549
518
|
});
|
|
550
|
-
}, [
|
|
551
|
-
|
|
519
|
+
}, [a]), /* @__PURE__ */ e(
|
|
520
|
+
$,
|
|
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(J, { progress: t }),
|
|
559
528
|
/* @__PURE__ */ e(
|
|
560
|
-
|
|
529
|
+
R,
|
|
561
530
|
{
|
|
562
531
|
ref: o,
|
|
563
532
|
id: "analyzing-title",
|
|
@@ -567,20 +536,20 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
567
536
|
}
|
|
568
537
|
)
|
|
569
538
|
] }),
|
|
570
|
-
overlayContent:
|
|
571
|
-
|
|
539
|
+
overlayContent: s ? /* @__PURE__ */ e(
|
|
540
|
+
U,
|
|
572
541
|
{
|
|
573
|
-
animationData:
|
|
542
|
+
animationData: s,
|
|
574
543
|
loop: !0,
|
|
575
544
|
className: "IncodeAnalyzingLottie"
|
|
576
545
|
}
|
|
577
546
|
) : null
|
|
578
547
|
}
|
|
579
548
|
);
|
|
580
|
-
},
|
|
549
|
+
}, w1 = ({ 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
|
+
), W = ({ 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
|
+
), K = ({
|
|
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:
|
|
626
|
-
onButtonClick:
|
|
627
|
-
attemptsRemaining:
|
|
594
|
+
buttonText: a,
|
|
595
|
+
onButtonClick: s,
|
|
596
|
+
attemptsRemaining: c
|
|
628
597
|
}) => {
|
|
629
|
-
const { t:
|
|
630
|
-
return
|
|
631
|
-
|
|
598
|
+
const { t: d } = m(), f = v(null);
|
|
599
|
+
return h(() => {
|
|
600
|
+
f.current?.focus();
|
|
632
601
|
}, []), /* @__PURE__ */ e(
|
|
633
|
-
|
|
602
|
+
$,
|
|
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(w1, { className: "IncodeIdProcessingResultIcon" }) : /* @__PURE__ */ e(W, { className: "IncodeIdProcessingResultIcon" }),
|
|
610
|
+
/* @__PURE__ */ e(H, { size: 16 }),
|
|
642
611
|
l && /* @__PURE__ */ e(
|
|
643
|
-
|
|
612
|
+
R,
|
|
644
613
|
{
|
|
645
|
-
ref:
|
|
614
|
+
ref: f,
|
|
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(z, { children: [
|
|
621
|
+
/* @__PURE__ */ e(H, { size: 12 }),
|
|
653
622
|
/* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultSubtitle", children: o })
|
|
654
623
|
] })
|
|
655
624
|
] }),
|
|
656
625
|
bottomContent: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingResultButtonContainer", children: [
|
|
657
|
-
|
|
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(
|
|
629
|
+
/* @__PURE__ */ e(F, { onClick: s, "data-testid": "retry-button", children: a })
|
|
661
630
|
] })
|
|
662
631
|
}
|
|
663
632
|
);
|
|
664
|
-
},
|
|
665
|
-
const { t:
|
|
633
|
+
}, x1 = ({ manager: i, state: t }) => {
|
|
634
|
+
const { t: n } = m();
|
|
666
635
|
if (!t.previewImageUrl)
|
|
667
636
|
return null;
|
|
668
|
-
const r = t.currentMode === "passport" ? "passport" : "id", l = () => t.needsBackCapture ?
|
|
637
|
+
const r = t.currentMode === "passport" ? "passport" : "id", l = () => t.needsBackCapture ? n("v2.idSuccess.subtitle") : t.needsFrontCapture ? n("idv2.capture.processing.successBackSubtitleScanFront") : n("v2.idSuccess.subtitleBack"), o = () => t.needsBackCapture ? n("idv2.capture.processing.scanBack") : t.needsFrontCapture ? n("idv2.capture.processing.scanFront") : n("idv2.capturePreview.continue");
|
|
669
638
|
return /* @__PURE__ */ e(
|
|
670
|
-
|
|
639
|
+
K,
|
|
671
640
|
{
|
|
672
641
|
variant: "success",
|
|
673
642
|
imageUrl: t.previewImageUrl,
|
|
674
643
|
orientation: t.orientation,
|
|
675
644
|
mode: r,
|
|
676
|
-
title:
|
|
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
|
-
},
|
|
651
|
+
}, L1 = ({ manager: i, state: t, ...n }) => {
|
|
683
652
|
const { t: r } = m();
|
|
684
653
|
if (t.status === "error")
|
|
685
654
|
return /* @__PURE__ */ e("div", { class: "IncodeIdError", role: "alert", children: [
|
|
686
655
|
/* @__PURE__ */ e("div", { class: "IncodeIdErrorMessage", children: t.error }),
|
|
687
|
-
/* @__PURE__ */ e(
|
|
656
|
+
/* @__PURE__ */ e(F, { onClick: () => i.reset(), "data-testid": "retry-button", children: r("idv2.capturePreview.retry") })
|
|
688
657
|
] });
|
|
689
658
|
const l = t.currentMode === "passport" ? "passport" : "id";
|
|
690
659
|
return t.previewImageUrl ? /* @__PURE__ */ e(
|
|
691
|
-
|
|
660
|
+
K,
|
|
692
661
|
{
|
|
693
662
|
variant: "error",
|
|
694
663
|
imageUrl: t.previewImageUrl,
|
|
@@ -697,156 +666,156 @@ const d1 = ({ className: n }) => /* @__PURE__ */ e(
|
|
|
697
666
|
title: t.uploadErrorMessage,
|
|
698
667
|
subtitle: t.uploadErrorDescription,
|
|
699
668
|
buttonText: t.canRetry ? r("idv2.capturePreview.tryAgain") : r("idv2.capturePreview.continue"),
|
|
700
|
-
onButtonClick: () =>
|
|
669
|
+
onButtonClick: () => i.continueFromError(),
|
|
701
670
|
attemptsRemaining: t.attemptsRemaining
|
|
702
671
|
}
|
|
703
672
|
) : null;
|
|
704
|
-
},
|
|
705
|
-
const { t } = m(),
|
|
706
|
-
|
|
707
|
-
|
|
673
|
+
}, s2 = ({ manager: i }) => {
|
|
674
|
+
const { t } = m(), n = v(null);
|
|
675
|
+
h(() => {
|
|
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(
|
|
716
|
-
/* @__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 }),
|
|
717
686
|
/* @__PURE__ */ e("p", { class: "IncodeIdExpiredSubtitle", children: t("idv2.capture.notifications.useDifferent") }),
|
|
718
|
-
/* @__PURE__ */ e(
|
|
687
|
+
/* @__PURE__ */ e(H, { size: 80 })
|
|
719
688
|
] }),
|
|
720
|
-
/* @__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") }) })
|
|
721
690
|
] });
|
|
722
691
|
}, L = /* @__PURE__ */ new Map();
|
|
723
|
-
let
|
|
724
|
-
const
|
|
692
|
+
let S = !1;
|
|
693
|
+
const D = {
|
|
725
694
|
blur: () => import("./blurdevicelottie-_BZRug1c.js"),
|
|
726
695
|
glare: () => import("./glaredevicelottie-DLuIStvb.js"),
|
|
727
696
|
align: () => import("./aligndevicelottie-DlQCRPfM.js"),
|
|
728
697
|
front: () => import("./frontdevicelottie-KhKxT5n9.js"),
|
|
729
698
|
back: () => import("./backdevicelottie-B4NgyWmX.js")
|
|
730
699
|
};
|
|
731
|
-
function
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
]).then(([t,
|
|
739
|
-
L.set("blur", t.default), L.set("glare",
|
|
700
|
+
function j(i) {
|
|
701
|
+
S || (S = !0, Promise.all([
|
|
702
|
+
D.blur(),
|
|
703
|
+
D.glare(),
|
|
704
|
+
D.align(),
|
|
705
|
+
D.front(),
|
|
706
|
+
D.back()
|
|
707
|
+
]).then(([t, n, r, l, o]) => {
|
|
708
|
+
L.set("blur", t.default), L.set("glare", n.default), L.set("align", r.default), L.set("front", l.default), L.set("back", o.default), i?.();
|
|
740
709
|
}).catch(() => {
|
|
741
710
|
}));
|
|
742
711
|
}
|
|
743
|
-
function
|
|
744
|
-
|
|
712
|
+
function y1() {
|
|
713
|
+
j();
|
|
745
714
|
}
|
|
746
|
-
function
|
|
747
|
-
|
|
748
|
-
|
|
715
|
+
function _1() {
|
|
716
|
+
h(() => {
|
|
717
|
+
y1();
|
|
749
718
|
}, []);
|
|
750
719
|
}
|
|
751
|
-
function
|
|
752
|
-
const { t:
|
|
753
|
-
if (
|
|
754
|
-
|
|
755
|
-
}, []),
|
|
720
|
+
function M1(i, t) {
|
|
721
|
+
const { t: n } = m(), [, r] = y(0);
|
|
722
|
+
if (h(() => {
|
|
723
|
+
j(() => r((l) => l + 1));
|
|
724
|
+
}, []), i === "blur")
|
|
756
725
|
return {
|
|
757
|
-
title:
|
|
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
|
-
const
|
|
784
|
-
detectionStatus:
|
|
752
|
+
const B1 = ({
|
|
753
|
+
detectionStatus: i,
|
|
785
754
|
mode: t,
|
|
786
|
-
isCapturing:
|
|
755
|
+
isCapturing: n
|
|
787
756
|
}) => {
|
|
788
|
-
const { t: r } = m(), l =
|
|
757
|
+
const { t: r } = m(), l = M1(i, t), o = v(null), a = v({
|
|
789
758
|
message: "",
|
|
790
759
|
at: 0
|
|
791
|
-
}),
|
|
792
|
-
const
|
|
793
|
-
if (
|
|
794
|
-
|
|
795
|
-
const
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
760
|
+
}), s = v(i), c = v(!1), d = v(), f = v(), C = i === "detecting" || i === "idNotDetected" || i === "manualCapture", w = i === "manualCapture", u = i === "wrongSide", _ = i === "farAway", B = i === "glare", Z = i === "blur", g = k((p) => {
|
|
761
|
+
const x = Date.now(), O = a.current;
|
|
762
|
+
if (p === O.message && x - O.at < 200) return;
|
|
763
|
+
a.current = { message: p, at: x };
|
|
764
|
+
const P = o.current;
|
|
765
|
+
P && (clearTimeout(d.current), P.textContent = "", f.current = setTimeout(() => {
|
|
766
|
+
P.textContent = p, d.current = setTimeout(() => {
|
|
767
|
+
P.textContent = "";
|
|
799
768
|
}, 3e3);
|
|
800
769
|
}, 50));
|
|
801
|
-
}, []),
|
|
802
|
-
return
|
|
803
|
-
if (
|
|
804
|
-
|
|
770
|
+
}, []), I = k(() => r(t === "passport" ? "idv2.capture.fillFramePassport" : t === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [t, r]);
|
|
771
|
+
return h(() => {
|
|
772
|
+
if (w) {
|
|
773
|
+
c.current = !1;
|
|
805
774
|
return;
|
|
806
775
|
}
|
|
807
|
-
if (
|
|
808
|
-
const
|
|
809
|
-
|
|
776
|
+
if (c.current || !C) return;
|
|
777
|
+
const p = setTimeout(() => {
|
|
778
|
+
c.current = !0, g(I());
|
|
810
779
|
}, 500);
|
|
811
|
-
return () => clearTimeout(
|
|
812
|
-
}, [C,
|
|
813
|
-
const
|
|
814
|
-
|
|
815
|
-
}, [
|
|
816
|
-
if (!
|
|
780
|
+
return () => clearTimeout(p);
|
|
781
|
+
}, [C, w, g, I]), h(() => {
|
|
782
|
+
const p = s.current;
|
|
783
|
+
s.current = i, p !== "manualCapture" && w && g(r("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
|
|
784
|
+
}, [g, i, w, r]), h(() => {
|
|
785
|
+
if (!n) {
|
|
817
786
|
if (u) {
|
|
818
|
-
const
|
|
819
|
-
|
|
787
|
+
const x = t === "front" || t === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
|
|
788
|
+
g(`${r(`${x}.title`)}. ${r(`${x}.description`)}`);
|
|
820
789
|
return;
|
|
821
790
|
}
|
|
822
|
-
if (
|
|
823
|
-
|
|
791
|
+
if (_) {
|
|
792
|
+
g(`${r("idv2.capture.notifications.notAligned.title")}.`);
|
|
824
793
|
return;
|
|
825
794
|
}
|
|
826
795
|
if (B) {
|
|
827
|
-
|
|
796
|
+
g(`${r("idv2.capture.notifications.glare.title")}.`);
|
|
828
797
|
return;
|
|
829
798
|
}
|
|
830
799
|
if (Z) {
|
|
831
|
-
|
|
800
|
+
g(`${r("idv2.capture.notifications.blur.title")}.`);
|
|
832
801
|
return;
|
|
833
802
|
}
|
|
834
|
-
C &&
|
|
803
|
+
C && c.current && g(I());
|
|
835
804
|
}
|
|
836
805
|
}, [
|
|
837
|
-
|
|
806
|
+
g,
|
|
838
807
|
Z,
|
|
839
|
-
|
|
840
|
-
|
|
808
|
+
n,
|
|
809
|
+
_,
|
|
841
810
|
B,
|
|
842
811
|
C,
|
|
843
812
|
u,
|
|
844
813
|
t,
|
|
845
814
|
r,
|
|
846
|
-
|
|
847
|
-
]),
|
|
848
|
-
clearTimeout(
|
|
849
|
-
}, []), /* @__PURE__ */ e(
|
|
815
|
+
I
|
|
816
|
+
]), h(() => () => {
|
|
817
|
+
clearTimeout(f.current), clearTimeout(d.current);
|
|
818
|
+
}, []), /* @__PURE__ */ e(z, { children: [
|
|
850
819
|
/* @__PURE__ */ e(
|
|
851
820
|
"div",
|
|
852
821
|
{
|
|
@@ -856,72 +825,124 @@ const _1 = ({
|
|
|
856
825
|
"aria-atomic": "true"
|
|
857
826
|
}
|
|
858
827
|
),
|
|
859
|
-
l ? /* @__PURE__ */ e("div", { class:
|
|
860
|
-
/* @__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: [
|
|
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(H, { size: 16, direction: "horizontal" }),
|
|
834
|
+
l.animationData && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ e(U, { animationData: l.animationData, loop: !0 }) })
|
|
866
835
|
] }) }) : null
|
|
867
836
|
] });
|
|
868
|
-
},
|
|
837
|
+
}, Z1 = b(
|
|
838
|
+
() => import("./front-horizontal-hint-Ca8ux7ED.js")
|
|
839
|
+
), E1 = b(
|
|
840
|
+
() => import("./front-vertical-hint-Cl9a47Kq.js")
|
|
841
|
+
), V1 = b(
|
|
842
|
+
() => import("./back-horizontal-hint-CktUy0An.js")
|
|
843
|
+
), H1 = b(
|
|
844
|
+
() => import("./back-vertical-hint-CMOWSEsc.js")
|
|
845
|
+
), b1 = b(
|
|
846
|
+
() => import("./passport-horizontal-hint-CWnj6Kh1.js")
|
|
847
|
+
), D1 = b(
|
|
848
|
+
() => import("./passport-vertical-hint-DzkQdaag.js")
|
|
849
|
+
), F1 = {
|
|
850
|
+
"front-horizontal": 348,
|
|
851
|
+
"back-horizontal": 348,
|
|
852
|
+
"passport-horizontal": 342
|
|
853
|
+
}, T1 = {
|
|
854
|
+
"front-vertical": 446,
|
|
855
|
+
"back-vertical": 446,
|
|
856
|
+
"passport-vertical": 342
|
|
857
|
+
};
|
|
858
|
+
function R1(i, t, n, r) {
|
|
859
|
+
const l = `${i}-${t}`, o = F1[l];
|
|
860
|
+
if (o) return n / o;
|
|
861
|
+
const a = T1[l];
|
|
862
|
+
return a ? r / a : 1;
|
|
863
|
+
}
|
|
864
|
+
const P1 = ({ mode: i, orientation: t }) => {
|
|
865
|
+
const n = v(null), [r, l] = y(1);
|
|
866
|
+
h(() => {
|
|
867
|
+
const a = n.current;
|
|
868
|
+
if (!a) return;
|
|
869
|
+
const s = () => {
|
|
870
|
+
l(
|
|
871
|
+
R1(i, t, a.clientWidth, a.clientHeight)
|
|
872
|
+
);
|
|
873
|
+
};
|
|
874
|
+
s();
|
|
875
|
+
const c = new ResizeObserver(s);
|
|
876
|
+
return c.observe(a), () => c.disconnect();
|
|
877
|
+
}, [i, t]);
|
|
878
|
+
const o = () => i === "front" ? t === "horizontal" ? /* @__PURE__ */ e(Z1, {}) : /* @__PURE__ */ e(E1, {}) : i === "back" ? t === "horizontal" ? /* @__PURE__ */ e(V1, {}) : /* @__PURE__ */ e(H1, {}) : i === "passport" ? t === "horizontal" ? /* @__PURE__ */ e(b1, {}) : /* @__PURE__ */ e(D1, {}) : null;
|
|
879
|
+
return /* @__PURE__ */ e(
|
|
880
|
+
"div",
|
|
881
|
+
{
|
|
882
|
+
ref: n,
|
|
883
|
+
class: "IncodeIdHint",
|
|
884
|
+
"aria-hidden": "true",
|
|
885
|
+
role: "presentation",
|
|
886
|
+
children: /* @__PURE__ */ e("div", { class: "IncodeIdHintAnimated", children: /* @__PURE__ */ e(q, { fallback: null, children: /* @__PURE__ */ e("div", { class: "IncodeIdHintSvg", style: { transform: `scale(${r})` }, children: o() }) }) })
|
|
887
|
+
}
|
|
888
|
+
);
|
|
889
|
+
}, k1 = A(
|
|
869
890
|
({
|
|
870
|
-
mode:
|
|
891
|
+
mode: i,
|
|
871
892
|
orientation: t,
|
|
872
|
-
detectionStatus:
|
|
893
|
+
detectionStatus: n,
|
|
873
894
|
counterValue: r,
|
|
874
895
|
isCapturing: l,
|
|
875
896
|
showManualCapture: o,
|
|
876
|
-
onCapture:
|
|
877
|
-
onOpenHelp:
|
|
878
|
-
helpButtonRef:
|
|
879
|
-
captureButtonRef:
|
|
880
|
-
},
|
|
897
|
+
onCapture: a,
|
|
898
|
+
onOpenHelp: s,
|
|
899
|
+
helpButtonRef: c,
|
|
900
|
+
captureButtonRef: d
|
|
901
|
+
}, f) => {
|
|
881
902
|
const { t: C } = m();
|
|
882
|
-
|
|
883
|
-
o &&
|
|
884
|
-
}, [o,
|
|
885
|
-
const
|
|
886
|
-
if (l ||
|
|
903
|
+
_1(), h(() => {
|
|
904
|
+
o && d && d.current?.focus();
|
|
905
|
+
}, [o, d]);
|
|
906
|
+
const w = () => l || n === "capturing" ? "capturing" : n === "blur" || n === "glare" || n === "wrongSide" || n === "farAway" ? "error" : "idle", u = N(() => {
|
|
907
|
+
if (l || n === "capturing")
|
|
887
908
|
return {
|
|
888
909
|
title: C("idv2.capture.takingPhoto"),
|
|
889
910
|
subtitle: C("idv2.capture.dontMove")
|
|
890
911
|
};
|
|
891
|
-
if (
|
|
892
|
-
const
|
|
893
|
-
return
|
|
912
|
+
if (n === "detecting" || n === "idNotDetected" || n === "manualCapture") {
|
|
913
|
+
const p = n === "manualCapture";
|
|
914
|
+
return i === "passport" ? {
|
|
894
915
|
title: C("idv2.capture.fillFramePassport"),
|
|
895
|
-
subtitle:
|
|
896
|
-
} :
|
|
916
|
+
subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
|
|
917
|
+
} : i === "back" ? {
|
|
897
918
|
title: C("idv2.capture.v2.fillFrameBack"),
|
|
898
|
-
subtitle:
|
|
919
|
+
subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
|
|
899
920
|
} : {
|
|
900
921
|
title: C("idv2.capture.v2.fillFrameFront"),
|
|
901
|
-
subtitle:
|
|
922
|
+
subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
|
|
902
923
|
};
|
|
903
924
|
}
|
|
904
925
|
return null;
|
|
905
|
-
}, [l,
|
|
926
|
+
}, [l, n, i, C]), _ = w(), B = i === "passport", Z = t !== "vertical" || B, g = Z ? "horizontal" : "vertical";
|
|
906
927
|
return /* @__PURE__ */ e(
|
|
907
|
-
|
|
928
|
+
t1,
|
|
908
929
|
{
|
|
909
|
-
className:
|
|
930
|
+
className: M(
|
|
910
931
|
"IncodeCaptureOverlayId",
|
|
911
932
|
!Z && "IncodeCaptureOverlayVertical"
|
|
912
933
|
),
|
|
913
934
|
children: [
|
|
914
935
|
/* @__PURE__ */ e("div", { class: "IncodeCaptureTopSection", children: [
|
|
915
936
|
/* @__PURE__ */ e(
|
|
916
|
-
|
|
937
|
+
B1,
|
|
917
938
|
{
|
|
918
|
-
detectionStatus:
|
|
919
|
-
mode:
|
|
939
|
+
detectionStatus: n,
|
|
940
|
+
mode: i,
|
|
920
941
|
isCapturing: l
|
|
921
942
|
}
|
|
922
943
|
),
|
|
923
944
|
/* @__PURE__ */ e(
|
|
924
|
-
|
|
945
|
+
X,
|
|
925
946
|
{
|
|
926
947
|
title: u?.title ?? "",
|
|
927
948
|
subtitle: u?.subtitle,
|
|
@@ -931,25 +952,28 @@ const _1 = ({
|
|
|
931
952
|
)
|
|
932
953
|
] }),
|
|
933
954
|
/* @__PURE__ */ e(
|
|
934
|
-
|
|
955
|
+
Y,
|
|
935
956
|
{
|
|
936
|
-
ref:
|
|
957
|
+
ref: f,
|
|
937
958
|
variant: "locked",
|
|
938
|
-
orientation:
|
|
939
|
-
frameState:
|
|
940
|
-
className:
|
|
941
|
-
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
|
+
]
|
|
942
966
|
}
|
|
943
967
|
),
|
|
944
968
|
/* @__PURE__ */ e("div", { class: "IncodeSrOnly", "aria-live": "polite", "aria-atomic": "true", children: l && r > 0 ? r : "" }),
|
|
945
969
|
/* @__PURE__ */ e(
|
|
946
|
-
|
|
970
|
+
e1,
|
|
947
971
|
{
|
|
948
|
-
onOpenHelp:
|
|
949
|
-
onCapture:
|
|
972
|
+
onOpenHelp: s,
|
|
973
|
+
onCapture: a,
|
|
950
974
|
isManualCapture: o,
|
|
951
|
-
helpButtonRef:
|
|
952
|
-
captureButtonRef:
|
|
975
|
+
helpButtonRef: c,
|
|
976
|
+
captureButtonRef: d,
|
|
953
977
|
captureAriaDescribedBy: o ? "manual-capture-tooltip" : void 0,
|
|
954
978
|
children: o ? /* @__PURE__ */ e("div", { class: "IncodeIdManualCaptureTooltipContainer", children: /* @__PURE__ */ e(
|
|
955
979
|
"div",
|
|
@@ -969,10 +993,10 @@ const _1 = ({
|
|
|
969
993
|
}
|
|
970
994
|
);
|
|
971
995
|
}
|
|
972
|
-
),
|
|
973
|
-
const { t:
|
|
996
|
+
), c2 = ({ manager: i, state: t }) => {
|
|
997
|
+
const { t: n } = m();
|
|
974
998
|
if (t.captureStatus === "initializing")
|
|
975
|
-
return /* @__PURE__ */ e(
|
|
999
|
+
return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: /* @__PURE__ */ e(G, { size: "large", title: `${n("webcam.loading")}...` }) });
|
|
976
1000
|
if (t.captureStatus === "uploading" && t.previewImageUrl) {
|
|
977
1001
|
const r = t.currentMode === "passport" ? "passport" : "id";
|
|
978
1002
|
return /* @__PURE__ */ e(
|
|
@@ -985,102 +1009,105 @@ const _1 = ({
|
|
|
985
1009
|
}
|
|
986
1010
|
);
|
|
987
1011
|
}
|
|
988
|
-
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(
|
|
989
|
-
},
|
|
990
|
-
const
|
|
991
|
-
|
|
992
|
-
const
|
|
993
|
-
if (!
|
|
994
|
-
|
|
1012
|
+
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(x1, { manager: i, state: t }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ e(L1, { manager: i, state: t }) : /* @__PURE__ */ e(A1, { manager: i, state: t });
|
|
1013
|
+
}, A1 = ({ manager: i, state: t }) => {
|
|
1014
|
+
const n = v(null), r = v(null), l = v(null), o = v(null), a = v(null), [s, c] = y(!1), [d, f] = y(!1);
|
|
1015
|
+
h(() => {
|
|
1016
|
+
const I = n.current;
|
|
1017
|
+
if (!I || !t.stream) {
|
|
1018
|
+
f(!1);
|
|
995
1019
|
return;
|
|
996
1020
|
}
|
|
997
|
-
|
|
998
|
-
const
|
|
999
|
-
return
|
|
1000
|
-
}), () =>
|
|
1001
|
-
}, [t.stream]),
|
|
1002
|
-
const
|
|
1003
|
-
const
|
|
1004
|
-
if (!
|
|
1021
|
+
f(!1);
|
|
1022
|
+
const p = () => f(!0);
|
|
1023
|
+
return I.addEventListener("playing", p), I.srcObject = t.stream, I.play().catch(() => {
|
|
1024
|
+
}), () => I.removeEventListener("playing", p);
|
|
1025
|
+
}, [t.stream]), h(() => {
|
|
1026
|
+
const I = () => {
|
|
1027
|
+
const p = r.current;
|
|
1028
|
+
if (!p)
|
|
1005
1029
|
return;
|
|
1006
|
-
const
|
|
1007
|
-
|
|
1008
|
-
x:
|
|
1009
|
-
y:
|
|
1010
|
-
width:
|
|
1011
|
-
height:
|
|
1030
|
+
const x = p.getBoundingClientRect();
|
|
1031
|
+
i.updateDetectionArea({
|
|
1032
|
+
x: x.left,
|
|
1033
|
+
y: x.top,
|
|
1034
|
+
width: x.width,
|
|
1035
|
+
height: x.height
|
|
1012
1036
|
});
|
|
1013
1037
|
};
|
|
1014
|
-
return
|
|
1015
|
-
}, [
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1038
|
+
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
1039
|
+
}, [i, t.orientation, d]);
|
|
1040
|
+
const C = t.captureStatus === "capturing" || t.detectionStatus === "capturing", w = t.detectionStatus, u = w === "manualCapture" || t.showCaptureButtonInAuto && t.captureStatus === "detecting" && w !== "capturing", _ = () => {
|
|
1041
|
+
c(!0);
|
|
1042
|
+
}, B = () => {
|
|
1043
|
+
c(!1), requestAnimationFrame(() => {
|
|
1020
1044
|
o.current ? o.current.focus() : l.current?.focus();
|
|
1021
1045
|
});
|
|
1022
|
-
}, B = () => {
|
|
1023
|
-
a(!1), n.switchToManualCapture();
|
|
1024
1046
|
}, Z = () => {
|
|
1025
|
-
|
|
1047
|
+
c(!1), i.switchToManualCapture();
|
|
1048
|
+
}, g = () => {
|
|
1049
|
+
i.capture();
|
|
1026
1050
|
};
|
|
1027
|
-
return /* @__PURE__ */ e(
|
|
1028
|
-
/* @__PURE__ */ e(
|
|
1029
|
-
|
|
1051
|
+
return /* @__PURE__ */ e(T, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: [
|
|
1052
|
+
/* @__PURE__ */ e(i1, { stream: t.stream, "aria-hidden": s || void 0, children: /* @__PURE__ */ e(
|
|
1053
|
+
k1,
|
|
1030
1054
|
{
|
|
1031
1055
|
ref: r,
|
|
1032
1056
|
mode: t.currentMode,
|
|
1033
1057
|
orientation: t.orientation,
|
|
1034
1058
|
detectionStatus: t.detectionStatus,
|
|
1035
1059
|
counterValue: t.counterValue,
|
|
1036
|
-
isCapturing:
|
|
1037
|
-
showManualCapture:
|
|
1038
|
-
onCapture:
|
|
1039
|
-
onOpenHelp:
|
|
1060
|
+
isCapturing: C,
|
|
1061
|
+
showManualCapture: u,
|
|
1062
|
+
onCapture: g,
|
|
1063
|
+
onOpenHelp: _,
|
|
1040
1064
|
helpButtonRef: l,
|
|
1041
1065
|
captureButtonRef: o
|
|
1042
1066
|
}
|
|
1043
1067
|
) }),
|
|
1044
|
-
|
|
1045
|
-
|
|
1068
|
+
/* @__PURE__ */ e("div", { ref: a }),
|
|
1069
|
+
/* @__PURE__ */ e(
|
|
1070
|
+
v1,
|
|
1046
1071
|
{
|
|
1047
|
-
|
|
1048
|
-
|
|
1072
|
+
open: s,
|
|
1073
|
+
onClose: B,
|
|
1074
|
+
onTakeManually: Z,
|
|
1075
|
+
portalContainer: a.current
|
|
1049
1076
|
}
|
|
1050
1077
|
)
|
|
1051
1078
|
] });
|
|
1052
|
-
},
|
|
1053
|
-
const { t:
|
|
1054
|
-
if (
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
}) :
|
|
1058
|
-
|
|
1079
|
+
}, d2 = ({ manager: i, state: t }) => {
|
|
1080
|
+
const { t: n } = m(), [r, l] = y(!1), [o, a] = y(null), s = t.selectedDocumentType === "passport", c = t.currentMode === "back";
|
|
1081
|
+
if (h(() => {
|
|
1082
|
+
s ? import("./passport-tutorial-CaYBFTqt.js").then((u) => {
|
|
1083
|
+
a(u.default);
|
|
1084
|
+
}) : c ? import("./back-tutorial-An9AcMSe.js").then((u) => {
|
|
1085
|
+
a(u.default);
|
|
1059
1086
|
}) : import("./id-tutorial-B-F5Q28m.js").then((u) => {
|
|
1060
|
-
|
|
1087
|
+
a(u.default);
|
|
1061
1088
|
});
|
|
1062
|
-
}, [
|
|
1089
|
+
}, [s, c]), !o)
|
|
1063
1090
|
return null;
|
|
1064
|
-
const
|
|
1091
|
+
const d = n(s ? "idv2.capture.passport.title" : c ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), f = n(s ? "idv2.capture.passport.subtitle" : c ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), C = n(c ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
|
|
1065
1092
|
return /* @__PURE__ */ e(
|
|
1066
|
-
|
|
1093
|
+
n1,
|
|
1067
1094
|
{
|
|
1068
1095
|
animationData: o,
|
|
1069
|
-
title:
|
|
1070
|
-
subtitle:
|
|
1096
|
+
title: d,
|
|
1097
|
+
subtitle: f,
|
|
1071
1098
|
onContinue: () => {
|
|
1072
|
-
l(!0),
|
|
1099
|
+
l(!0), i.nextStep();
|
|
1073
1100
|
},
|
|
1074
|
-
buttonText:
|
|
1101
|
+
buttonText: n("idv2.tutorial.startScan"),
|
|
1075
1102
|
disclaimerText: C,
|
|
1076
1103
|
isLoading: r,
|
|
1077
|
-
className:
|
|
1104
|
+
className: M(
|
|
1078
1105
|
"IncodeIdTutorial",
|
|
1079
|
-
|
|
1106
|
+
s ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"
|
|
1080
1107
|
)
|
|
1081
1108
|
}
|
|
1082
1109
|
);
|
|
1083
|
-
},
|
|
1110
|
+
}, U1 = () => /* @__PURE__ */ e(
|
|
1084
1111
|
"svg",
|
|
1085
1112
|
{
|
|
1086
1113
|
width: "119",
|
|
@@ -1274,7 +1301,7 @@ const _1 = ({
|
|
|
1274
1301
|
] })
|
|
1275
1302
|
]
|
|
1276
1303
|
}
|
|
1277
|
-
),
|
|
1304
|
+
), O1 = () => /* @__PURE__ */ e(
|
|
1278
1305
|
"svg",
|
|
1279
1306
|
{
|
|
1280
1307
|
width: "118",
|
|
@@ -1579,7 +1606,7 @@ const _1 = ({
|
|
|
1579
1606
|
] })
|
|
1580
1607
|
]
|
|
1581
1608
|
}
|
|
1582
|
-
),
|
|
1609
|
+
), S1 = () => /* @__PURE__ */ e(
|
|
1583
1610
|
"svg",
|
|
1584
1611
|
{
|
|
1585
1612
|
width: "60",
|
|
@@ -1790,7 +1817,7 @@ const _1 = ({
|
|
|
1790
1817
|
] })
|
|
1791
1818
|
]
|
|
1792
1819
|
}
|
|
1793
|
-
),
|
|
1820
|
+
), z1 = () => /* @__PURE__ */ e(
|
|
1794
1821
|
"svg",
|
|
1795
1822
|
{
|
|
1796
1823
|
width: "60",
|
|
@@ -1996,7 +2023,7 @@ const _1 = ({
|
|
|
1996
2023
|
] })
|
|
1997
2024
|
]
|
|
1998
2025
|
}
|
|
1999
|
-
),
|
|
2026
|
+
), N1 = () => /* @__PURE__ */ e(
|
|
2000
2027
|
"svg",
|
|
2001
2028
|
{
|
|
2002
2029
|
width: "61",
|
|
@@ -2305,30 +2332,30 @@ const _1 = ({
|
|
|
2305
2332
|
] })
|
|
2306
2333
|
]
|
|
2307
2334
|
}
|
|
2308
|
-
),
|
|
2335
|
+
), G1 = {
|
|
2309
2336
|
digitalIdUpload: {
|
|
2310
2337
|
type: "digitalIdUpload",
|
|
2311
|
-
icon:
|
|
2338
|
+
icon: N1,
|
|
2312
2339
|
title: "idv2.chooser.digitalIdUploadButtonTitle",
|
|
2313
2340
|
testId: "verification-option-digitalIdUpload",
|
|
2314
2341
|
weight: 1
|
|
2315
2342
|
},
|
|
2316
2343
|
id: {
|
|
2317
2344
|
type: "id",
|
|
2318
|
-
icon:
|
|
2345
|
+
icon: U1,
|
|
2319
2346
|
title: "idv2.chooser.idButtonTitle",
|
|
2320
2347
|
testId: "verification-option-id",
|
|
2321
2348
|
weight: 2
|
|
2322
2349
|
},
|
|
2323
2350
|
passport: {
|
|
2324
2351
|
type: "passport",
|
|
2325
|
-
icon:
|
|
2352
|
+
icon: O1,
|
|
2326
2353
|
title: "idv2.chooser.passportButtonTitle",
|
|
2327
2354
|
testId: "verification-option-passport",
|
|
2328
2355
|
weight: 3
|
|
2329
2356
|
},
|
|
2330
2357
|
digitalId: {
|
|
2331
|
-
icon:
|
|
2358
|
+
icon: S1,
|
|
2332
2359
|
title: "idv2.chooser.digitalIdButtonTitle",
|
|
2333
2360
|
testId: "verification-option-digitalId",
|
|
2334
2361
|
type: "digitalId",
|
|
@@ -2336,83 +2363,83 @@ const _1 = ({
|
|
|
2336
2363
|
},
|
|
2337
2364
|
manualIdUpload: {
|
|
2338
2365
|
type: "manualIdUpload",
|
|
2339
|
-
icon:
|
|
2366
|
+
icon: z1,
|
|
2340
2367
|
title: "idv2.chooser.manualUploadButtonTitle",
|
|
2341
2368
|
testId: "verification-option-manualIdUpload",
|
|
2342
2369
|
weight: 5
|
|
2343
2370
|
}
|
|
2344
2371
|
};
|
|
2345
|
-
function
|
|
2346
|
-
const t = (
|
|
2347
|
-
const l =
|
|
2348
|
-
return l &&
|
|
2372
|
+
function $1(i) {
|
|
2373
|
+
const t = (n, r) => {
|
|
2374
|
+
const l = G1[r];
|
|
2375
|
+
return l && n.push(l), n;
|
|
2349
2376
|
};
|
|
2350
|
-
return
|
|
2377
|
+
return i.reduce(t, []).sort((n, r) => n.weight - r.weight);
|
|
2351
2378
|
}
|
|
2352
|
-
const
|
|
2353
|
-
const { t:
|
|
2354
|
-
() =>
|
|
2379
|
+
const C2 = ({ manager: i, state: t }) => {
|
|
2380
|
+
const { t: n } = m(), r = N(
|
|
2381
|
+
() => $1(t.availableDocumentTypes),
|
|
2355
2382
|
[t.availableDocumentTypes]
|
|
2356
2383
|
), l = (o) => {
|
|
2357
|
-
|
|
2384
|
+
i.selectDocument(o);
|
|
2358
2385
|
};
|
|
2359
2386
|
return /* @__PURE__ */ e(
|
|
2360
|
-
|
|
2387
|
+
T,
|
|
2361
2388
|
{
|
|
2362
|
-
title:
|
|
2389
|
+
title: n("idv2.chooser.chooseHowToVerifyTitle"),
|
|
2363
2390
|
"data-testid": "document-chooser-page",
|
|
2364
2391
|
className: "IncodeChooserPage",
|
|
2365
|
-
children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(
|
|
2366
|
-
|
|
2392
|
+
children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(d1, { children: r.map((o) => /* @__PURE__ */ e(
|
|
2393
|
+
C1,
|
|
2367
2394
|
{
|
|
2368
2395
|
icon: o.icon,
|
|
2369
|
-
title:
|
|
2396
|
+
title: n(o.title),
|
|
2370
2397
|
testId: o.testId,
|
|
2371
|
-
tag: o.tag ?
|
|
2398
|
+
tag: o.tag ? n(o.tag) : void 0,
|
|
2372
2399
|
onClick: () => l(o.type)
|
|
2373
2400
|
},
|
|
2374
2401
|
o.type
|
|
2375
2402
|
)) }) })
|
|
2376
2403
|
}
|
|
2377
2404
|
);
|
|
2378
|
-
},
|
|
2379
|
-
manager:
|
|
2405
|
+
}, p2 = ({
|
|
2406
|
+
manager: i,
|
|
2380
2407
|
direction: t
|
|
2381
2408
|
}) => {
|
|
2382
|
-
const [
|
|
2383
|
-
|
|
2384
|
-
import("./flip-animation-COR596wy.js").then((
|
|
2385
|
-
r(
|
|
2409
|
+
const [n, r] = y(null), [l, o] = y(!1), { t: a } = m();
|
|
2410
|
+
h(() => {
|
|
2411
|
+
import("./flip-animation-COR596wy.js").then((d) => {
|
|
2412
|
+
r(d.default);
|
|
2386
2413
|
});
|
|
2387
2414
|
}, []);
|
|
2388
|
-
const
|
|
2389
|
-
await new Promise((
|
|
2390
|
-
}, [t,
|
|
2391
|
-
return l ? /* @__PURE__ */ e(
|
|
2392
|
-
/* @__PURE__ */ e(
|
|
2393
|
-
/* @__PURE__ */ e(
|
|
2415
|
+
const s = k(async () => {
|
|
2416
|
+
await new Promise((d) => setTimeout(d, 1e3)), t === "toBack" ? i.continueToBack() : i.continueToFront(), o(!0);
|
|
2417
|
+
}, [t, i]);
|
|
2418
|
+
return l ? /* @__PURE__ */ e(G, { size: "large" }) : n ? /* @__PURE__ */ e("div", { class: "IncodeFlipAnimation", children: [
|
|
2419
|
+
/* @__PURE__ */ e(R, { role: "status", className: "IncodeFlipAnimationTitle", children: a(t === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront") }),
|
|
2420
|
+
/* @__PURE__ */ e(H, { size: 32 }),
|
|
2394
2421
|
/* @__PURE__ */ e(
|
|
2395
|
-
|
|
2422
|
+
U,
|
|
2396
2423
|
{
|
|
2397
|
-
animationData:
|
|
2424
|
+
animationData: n,
|
|
2398
2425
|
loop: !1,
|
|
2399
2426
|
reverse: t === "toFront",
|
|
2400
|
-
onComplete:
|
|
2427
|
+
onComplete: s
|
|
2401
2428
|
}
|
|
2402
2429
|
)
|
|
2403
2430
|
] }) : null;
|
|
2404
2431
|
};
|
|
2405
2432
|
export {
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2433
|
+
c2 as C,
|
|
2434
|
+
p2 as F,
|
|
2435
|
+
L1 as I,
|
|
2436
|
+
a1 as S,
|
|
2437
|
+
s1 as T,
|
|
2438
|
+
C1 as V,
|
|
2439
|
+
c1 as a,
|
|
2440
|
+
d1 as b,
|
|
2441
|
+
d2 as c,
|
|
2442
|
+
C2 as d,
|
|
2443
|
+
s2 as e,
|
|
2444
|
+
o1 as f
|
|
2418
2445
|
};
|