@incodetech/web 0.0.0-dev-20260326-ac8336a → 0.0.0-dev-20260326-106dc21
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/{Trans-BQctqaWi.js → Trans-BSLSJO1_.js} +2 -2
- package/dist/{addressAutocomplete-CnuyGGR4.js → addressAutocomplete-BhUbJEuH.js} +6 -6
- package/dist/authentication/authentication.es.js +5 -5
- package/dist/{back-horizontal-hint-CktUy0An.js → back-horizontal-hint-CSlf9KI1.js} +1 -1
- package/dist/{back-vertical-hint-CMOWSEsc.js → back-vertical-hint-CNieqiCr.js} +1 -1
- package/dist/base.css +4 -1
- package/dist/{button-qiC4m4lf.js → button-B2Ewo0rX.js} +2 -2
- package/dist/cameraView-CT9-WWcG.js +55 -0
- package/dist/{captureFooter-BIPDtCn6.js → captureFooter-B_3eu8kq.js} +77 -127
- package/dist/captureOverlay-CB8lyLgp.js +399 -0
- package/dist/{checkbox-KYc1FnQr.js → checkbox-CXnQVsbJ.js} +3 -3
- package/dist/{chevronDown-J1Yx1Jy7.js → chevronDown-DKyU4xPP.js} +1 -1
- package/dist/{closeIcon-C5IKfu-j.js → closeIcon-DjWL_arL.js} +1 -1
- package/dist/consent/consent.es.js +8 -8
- package/dist/curp-validation/curp-validation.es.js +11 -11
- package/dist/{dateInputComposed-DzB7gNed.js → dateInputComposed-DmlHvCmR.js} +4 -4
- package/dist/{documentCapture-B4JcCGTV.js → documentCapture-DYsIVkcU.js} +14 -13
- package/dist/{dropdownComposed-CnmITmQb.js → dropdownComposed-DFrqye1c.js} +5 -5
- package/dist/{ekybModule-BLdLDQLO.js → ekybModule-Cve2s2tf.js} +10 -10
- package/dist/{ekycModule-CmuQbdiJ.js → ekycModule-Hi5yRFs3.js} +11 -11
- package/dist/email/email.es.js +97 -106
- package/dist/email/styles.css +0 -111
- package/dist/{errorContent-BudafcKL.js → errorContent-CqNelsXg.js} +6 -6
- package/dist/{errorIcon-DbJL-4MJ.js → errorIcon-C-Zd24vb.js} +1 -1
- package/dist/extensibility.es.js +92 -89
- package/dist/{faceMatch-DylE4LWy.js → faceMatch-BVsE7czZ.js} +6 -6
- package/dist/{fileIcon-ClvmLl6A.js → fileIcon-DIVwt0SD.js} +1 -1
- package/dist/{flipAnimation-BXWZxnGC.js → flipAnimation-CQ3So9XG.js} +269 -655
- package/dist/flow/flow.es.js +14 -14
- package/dist/flow/styles.css +0 -85
- package/dist/{formField-CMNAU-Eh.js → formField-CPfeaz8y.js} +8 -8
- package/dist/{front-horizontal-hint-Ca8ux7ED.js → front-horizontal-hint-lRLKd7vY.js} +1 -1
- package/dist/{front-vertical-hint-Cl9a47Kq.js → front-vertical-hint-qQoJXRE3.js} +1 -1
- package/dist/geolocation/geolocation.es.js +6 -6
- package/dist/governmentValidation/governmentValidation.es.js +10 -10
- package/dist/id/id.es.js +16 -15
- package/dist/{incodeModule-DtbbjNTQ.js → incodeModule-C4XIllao.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/{inputComposed-7r-2MfA7.js → inputComposed-CJQTXKNA.js} +5 -5
- package/dist/{mandatoryConsent-BcbxGZN6.js → mandatoryConsent-B2zqptlI.js} +8 -8
- package/dist/manualCaptureButton-CUq6VXLb.js +371 -0
- package/dist/otpInput-CGlYkmvB.js +148 -0
- package/dist/{page-CH1_PpOG.js → page-DiscPBzz.js} +2 -2
- package/dist/{passport-horizontal-hint-CWnj6Kh1.js → passport-horizontal-hint-BCtpMp1Y.js} +1 -1
- package/dist/{passport-vertical-hint-DzkQdaag.js → passport-vertical-hint-GaLnzqHP.js} +1 -1
- package/dist/permissions-CDir4ckn.js +707 -0
- package/dist/phone/phone.es.js +66 -64
- package/dist/{phoneInput-C9tQVoqL.js → phoneInput-TwyIF7PG.js} +3 -3
- package/dist/{phoneInputComposed-DYE5UsRs.js → phoneInputComposed-Dsf9ZDTj.js} +6 -6
- package/dist/{processing-DW3Cq3ot.js → processing-De8XWnFp.js} +4 -4
- package/dist/{richText-Bh30370T.js → richText-DHl4ibE9.js} +2 -2
- package/dist/selfie/selfie.es.js +6 -6
- package/dist/signature/signature.es.js +7 -7
- package/dist/{spinner-_-QbAnd8.js → spinner-DfUoOZN4.js} +3 -3
- package/dist/{successIcon-C-3-t1kz.js → successIcon-DyHNp_UT.js} +1 -1
- package/dist/{tutorial-BRvI-ZLU.js → tutorial-Cx_ANvlr.js} +42 -41
- package/dist/{typography-DgyeaZWI.js → typography-zMrvftfB.js} +2 -2
- package/dist/{uiConfig-BSR3Bl6G.js → uiConfig-DmIn-g8M.js} +1 -1
- package/dist/{useMediaQuery-DN93efdT.js → useMediaQuery-lJdQBmC2.js} +1 -1
- package/dist/{vendor-preact-BY8u4mdq.js → vendor-preact-BoMmvSgn.js} +3 -3
- package/dist/{warningIcon-BEDHbr3Z.js → warningIcon-MsE5PaSQ.js} +1 -1
- package/package.json +2 -2
- package/dist/manualCaptureButton-6WD7GhPe.js +0 -1071
- package/dist/otpInput-B4ic8127.js +0 -120
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { u as e,
|
|
2
|
-
import { _ as
|
|
3
|
-
import "./uiConfig-
|
|
4
|
-
import { P as
|
|
5
|
-
import { T as
|
|
6
|
-
import {
|
|
7
|
-
import { S as
|
|
8
|
-
import { M as
|
|
1
|
+
import { u as e, b as C, B as L, c as V, S as _ } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { _ as m, q as E, A as u, d as g, y as f, k as O, T as k } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import "./uiConfig-DmIn-g8M.js";
|
|
4
|
+
import { P as x } from "./page-DiscPBzz.js";
|
|
5
|
+
import { T as y } from "./typography-zMrvftfB.js";
|
|
6
|
+
import { P as A, C as z } from "./cameraView-CT9-WWcG.js";
|
|
7
|
+
import { S as H } from "./spinner-DfUoOZN4.js";
|
|
8
|
+
import { M as w, L as D } from "./manualCaptureButton-CUq6VXLb.js";
|
|
9
|
+
import { L as G } from "./captureFooter-B_3eu8kq.js";
|
|
10
|
+
import { C as N } from "./captureOverlay-CB8lyLgp.js";
|
|
11
|
+
import { B as W } from "./permissions-CDir4ckn.js";
|
|
9
12
|
import "@incodetech/core";
|
|
10
|
-
import "./inputComposed-
|
|
11
|
-
import "./checkbox-
|
|
12
|
-
import "./phoneInputComposed-
|
|
13
|
-
import "./dateInputComposed-
|
|
14
|
-
import { E as r1 } from "./errorIcon-DbJL-4MJ.js";
|
|
15
|
-
import { S as l1 } from "./successIcon-C-3-t1kz.js";
|
|
13
|
+
import "./inputComposed-CJQTXKNA.js";
|
|
14
|
+
import "./checkbox-CXnQVsbJ.js";
|
|
15
|
+
import "./phoneInputComposed-Dsf9ZDTj.js";
|
|
16
|
+
import "./dateInputComposed-DmlHvCmR.js";
|
|
16
17
|
import "./countries-DfLkrF0x.js";
|
|
17
|
-
const
|
|
18
|
+
const $ = ({
|
|
18
19
|
size: i,
|
|
19
20
|
class: t,
|
|
20
|
-
variant:
|
|
21
|
+
variant: l = "xs"
|
|
21
22
|
}) => {
|
|
22
|
-
const
|
|
23
|
-
return
|
|
23
|
+
const n = i ?? (l === "xs" ? 14 : 24);
|
|
24
|
+
return l === "xs" ? /* @__PURE__ */ e(
|
|
24
25
|
"svg",
|
|
25
26
|
{
|
|
26
|
-
width:
|
|
27
|
-
height:
|
|
27
|
+
width: n,
|
|
28
|
+
height: n,
|
|
28
29
|
viewBox: "0 0 14 14",
|
|
29
30
|
fill: "none",
|
|
30
31
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -45,8 +46,8 @@ const o1 = ({
|
|
|
45
46
|
) : /* @__PURE__ */ e(
|
|
46
47
|
"svg",
|
|
47
48
|
{
|
|
48
|
-
width:
|
|
49
|
-
height:
|
|
49
|
+
width: n,
|
|
50
|
+
height: n,
|
|
50
51
|
viewBox: "0 0 24 24",
|
|
51
52
|
fill: "none",
|
|
52
53
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -62,114 +63,34 @@ const o1 = ({
|
|
|
62
63
|
)
|
|
63
64
|
}
|
|
64
65
|
);
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
const { class: n, rows: r = 4, ...l } = i;
|
|
68
|
-
return /* @__PURE__ */ e(
|
|
69
|
-
"textarea",
|
|
70
|
-
{
|
|
71
|
-
...l,
|
|
72
|
-
ref: t,
|
|
73
|
-
rows: r,
|
|
74
|
-
class: M("IncodeTextArea", n)
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
), c1 = A(
|
|
79
|
-
({
|
|
80
|
-
id: i,
|
|
81
|
-
label: t,
|
|
82
|
-
"aria-label": n,
|
|
83
|
-
error: r,
|
|
84
|
-
showErrorIcon: l,
|
|
85
|
-
helper: o,
|
|
86
|
-
showHelperIcon: a,
|
|
87
|
-
required: s,
|
|
88
|
-
rows: c = 4,
|
|
89
|
-
class: d,
|
|
90
|
-
...f
|
|
91
|
-
}, C) => {
|
|
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
|
-
t && /* @__PURE__ */ e(
|
|
95
|
-
"label",
|
|
96
|
-
{
|
|
97
|
-
class: "IncodeTextAreaComposedLabel",
|
|
98
|
-
htmlFor: i,
|
|
99
|
-
"data-testid": `${i}-label`,
|
|
100
|
-
children: [
|
|
101
|
-
t,
|
|
102
|
-
s && /* @__PURE__ */ e("span", { class: "IncodeTextAreaComposedRequired", children: " *" })
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
),
|
|
106
|
-
/* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedWrapper", children: /* @__PURE__ */ e(
|
|
107
|
-
s1,
|
|
108
|
-
{
|
|
109
|
-
id: i,
|
|
110
|
-
rows: c,
|
|
111
|
-
...f,
|
|
112
|
-
ref: C,
|
|
113
|
-
required: s,
|
|
114
|
-
...!t && n ? { "aria-label": n } : {},
|
|
115
|
-
"aria-describedby": _ || void 0,
|
|
116
|
-
"aria-required": s ? "true" : void 0,
|
|
117
|
-
"aria-invalid": r ? "true" : void 0
|
|
118
|
-
}
|
|
119
|
-
) }),
|
|
120
|
-
r && /* @__PURE__ */ e(
|
|
121
|
-
"div",
|
|
122
|
-
{
|
|
123
|
-
class: "IncodeTextAreaComposedErrorWrapper",
|
|
124
|
-
"data-testid": `${i}-error-wrapper`,
|
|
125
|
-
children: [
|
|
126
|
-
l && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(r1, { size: 17 }) }),
|
|
127
|
-
/* @__PURE__ */ e("p", { id: u, class: "IncodeTextAreaComposedError", children: r })
|
|
128
|
-
]
|
|
129
|
-
}
|
|
130
|
-
),
|
|
131
|
-
o && !r && /* @__PURE__ */ e(
|
|
132
|
-
"div",
|
|
133
|
-
{
|
|
134
|
-
class: "IncodeTextAreaComposedHelperWrapper",
|
|
135
|
-
"data-testid": `${i}-helper-wrapper`,
|
|
136
|
-
children: [
|
|
137
|
-
a && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(l1, { size: 17 }) }),
|
|
138
|
-
/* @__PURE__ */ e("p", { id: w, class: "IncodeTextAreaComposedHelper", children: o })
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
] });
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
c1.displayName = "TextAreaComposed";
|
|
146
|
-
function d1({
|
|
66
|
+
}, K = (i) => /* @__PURE__ */ m("svg", { width: 10, height: 10, viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ m("g", { clipPath: "url(#clip0_6394_10544)" }, /* @__PURE__ */ m("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__ */ m("defs", null, /* @__PURE__ */ m("clipPath", { id: "clip0_6394_10544" }, /* @__PURE__ */ m("rect", { width: 10, height: 10, fill: "white" }))));
|
|
67
|
+
function j({
|
|
147
68
|
children: i
|
|
148
69
|
}) {
|
|
149
70
|
return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardList", children: i });
|
|
150
71
|
}
|
|
151
|
-
function
|
|
72
|
+
function q({
|
|
152
73
|
icon: i,
|
|
153
74
|
title: t,
|
|
154
|
-
testId:
|
|
155
|
-
onClick:
|
|
156
|
-
tag:
|
|
75
|
+
testId: l,
|
|
76
|
+
onClick: n,
|
|
77
|
+
tag: r
|
|
157
78
|
}) {
|
|
158
79
|
return /* @__PURE__ */ e(
|
|
159
80
|
"button",
|
|
160
81
|
{
|
|
161
82
|
type: "button",
|
|
162
83
|
class: "IncodeVerificationOptionCard",
|
|
163
|
-
onClick:
|
|
164
|
-
"data-testid":
|
|
165
|
-
"aria-labelledby": `${
|
|
84
|
+
onClick: n,
|
|
85
|
+
"data-testid": l,
|
|
86
|
+
"aria-labelledby": `${l}-label`,
|
|
166
87
|
children: [
|
|
167
88
|
/* @__PURE__ */ e(
|
|
168
89
|
"span",
|
|
169
90
|
{
|
|
170
91
|
class: "IncodeVerificationOptionCardIcon",
|
|
171
92
|
"aria-hidden": "true",
|
|
172
|
-
"data-testid": `${
|
|
93
|
+
"data-testid": `${l}-icon`,
|
|
173
94
|
children: /* @__PURE__ */ e(i, {})
|
|
174
95
|
}
|
|
175
96
|
),
|
|
@@ -177,11 +98,11 @@ function C1({
|
|
|
177
98
|
/* @__PURE__ */ e(
|
|
178
99
|
"span",
|
|
179
100
|
{
|
|
180
|
-
id: `${
|
|
101
|
+
id: `${l}-label`,
|
|
181
102
|
class: "IncodeVerificationOptionCardTitleTagContainer",
|
|
182
103
|
children: [
|
|
183
104
|
/* @__PURE__ */ e("span", { class: "IncodeVerificationOptionCardTitle", children: t }),
|
|
184
|
-
|
|
105
|
+
r && /* @__PURE__ */ e(Q, { label: r })
|
|
185
106
|
]
|
|
186
107
|
}
|
|
187
108
|
),
|
|
@@ -190,7 +111,7 @@ function C1({
|
|
|
190
111
|
{
|
|
191
112
|
class: "IncodeVerificationOptionCardArrow",
|
|
192
113
|
"data-testid": "chevron-right-icon",
|
|
193
|
-
children: /* @__PURE__ */ e(
|
|
114
|
+
children: /* @__PURE__ */ e($, { size: 24, variant: "m" })
|
|
194
115
|
}
|
|
195
116
|
)
|
|
196
117
|
] })
|
|
@@ -198,13 +119,13 @@ function C1({
|
|
|
198
119
|
}
|
|
199
120
|
);
|
|
200
121
|
}
|
|
201
|
-
function
|
|
122
|
+
function Q({ label: i }) {
|
|
202
123
|
return /* @__PURE__ */ e("div", { class: "IncodeVerificationOptionCardTag", children: [
|
|
203
|
-
/* @__PURE__ */ e(
|
|
124
|
+
/* @__PURE__ */ e(K, {}),
|
|
204
125
|
/* @__PURE__ */ e("span", { children: i })
|
|
205
126
|
] });
|
|
206
127
|
}
|
|
207
|
-
const
|
|
128
|
+
const J = ({ className: i }) => /* @__PURE__ */ e(
|
|
208
129
|
"svg",
|
|
209
130
|
{
|
|
210
131
|
width: "24",
|
|
@@ -252,7 +173,7 @@ const u1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
252
173
|
)
|
|
253
174
|
]
|
|
254
175
|
}
|
|
255
|
-
),
|
|
176
|
+
), X = ({ className: i }) => /* @__PURE__ */ e(
|
|
256
177
|
"svg",
|
|
257
178
|
{
|
|
258
179
|
width: "24",
|
|
@@ -293,7 +214,7 @@ const u1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
293
214
|
)
|
|
294
215
|
]
|
|
295
216
|
}
|
|
296
|
-
),
|
|
217
|
+
), Y = ({
|
|
297
218
|
className: i
|
|
298
219
|
}) => /* @__PURE__ */ e(
|
|
299
220
|
"svg",
|
|
@@ -344,7 +265,7 @@ const u1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
344
265
|
)
|
|
345
266
|
]
|
|
346
267
|
}
|
|
347
|
-
),
|
|
268
|
+
), e1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
348
269
|
"svg",
|
|
349
270
|
{
|
|
350
271
|
width: "64",
|
|
@@ -365,19 +286,19 @@ const u1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
365
286
|
)
|
|
366
287
|
]
|
|
367
288
|
}
|
|
368
|
-
),
|
|
289
|
+
), t1 = ({
|
|
369
290
|
open: i,
|
|
370
291
|
onClose: t,
|
|
371
|
-
onTakeManually:
|
|
372
|
-
portalContainer:
|
|
292
|
+
onTakeManually: l,
|
|
293
|
+
portalContainer: n
|
|
373
294
|
}) => {
|
|
374
|
-
const { t:
|
|
295
|
+
const { t: r } = C(), o = E((s) => {
|
|
375
296
|
s?.focus();
|
|
376
297
|
}, []), a = () => {
|
|
377
|
-
|
|
298
|
+
l(), t();
|
|
378
299
|
};
|
|
379
300
|
return /* @__PURE__ */ e(
|
|
380
|
-
|
|
301
|
+
w.Root,
|
|
381
302
|
{
|
|
382
303
|
open: i,
|
|
383
304
|
onOpenChange: (s) => {
|
|
@@ -385,100 +306,100 @@ const u1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
385
306
|
},
|
|
386
307
|
class: "IncodeCommonIssuesFullScreen",
|
|
387
308
|
hasBackdrop: !1,
|
|
388
|
-
portalContainer:
|
|
309
|
+
portalContainer: n ?? void 0,
|
|
389
310
|
manageInitialFocus: !1,
|
|
390
|
-
children: /* @__PURE__ */ e(
|
|
391
|
-
/* @__PURE__ */ e(
|
|
392
|
-
/* @__PURE__ */ e(
|
|
393
|
-
/* @__PURE__ */ e(
|
|
394
|
-
|
|
311
|
+
children: /* @__PURE__ */ e(w.Content, { class: "IncodeCommonIssuesContent", children: [
|
|
312
|
+
/* @__PURE__ */ e(w.Close, { "aria-label": r("commonIssues.close") }),
|
|
313
|
+
/* @__PURE__ */ e(w.Icon, { class: "IncodeCommonIssuesQuestionIcon", children: /* @__PURE__ */ e(e1, {}) }),
|
|
314
|
+
/* @__PURE__ */ e(w.TitleSection, { children: /* @__PURE__ */ e(
|
|
315
|
+
y,
|
|
395
316
|
{
|
|
396
317
|
id: "incode-modal-title",
|
|
397
318
|
ref: o,
|
|
398
319
|
className: "IncodeCommonIssuesTitle",
|
|
399
320
|
tabIndex: -1,
|
|
400
|
-
children:
|
|
321
|
+
children: r("commonIssues.commonIssues")
|
|
401
322
|
}
|
|
402
323
|
) }),
|
|
403
324
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCards", children: [
|
|
404
325
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
405
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
326
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(X, {}) }),
|
|
406
327
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
407
|
-
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children:
|
|
408
|
-
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children:
|
|
328
|
+
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: r("commonIssues.glarePresent") }),
|
|
329
|
+
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: r("commonIssues.glarePresentDescription") })
|
|
409
330
|
] })
|
|
410
331
|
] }),
|
|
411
332
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
412
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
333
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(J, {}) }),
|
|
413
334
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
414
|
-
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children:
|
|
415
|
-
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children:
|
|
335
|
+
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: r("commonIssues.blurPresent") }),
|
|
336
|
+
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: r("commonIssues.blurPresentDescription") })
|
|
416
337
|
] })
|
|
417
338
|
] }),
|
|
418
339
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCard", children: [
|
|
419
|
-
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
340
|
+
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardIcon", "aria-hidden": "true", children: /* @__PURE__ */ e(Y, {}) }),
|
|
420
341
|
/* @__PURE__ */ e("div", { class: "IncodeCommonIssuesCardText", children: [
|
|
421
|
-
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children:
|
|
422
|
-
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children:
|
|
342
|
+
/* @__PURE__ */ e("h3", { class: "IncodeCommonIssuesCardTitle", children: r("commonIssues.notReadable") }),
|
|
343
|
+
/* @__PURE__ */ e("p", { class: "IncodeCommonIssuesCardBody", children: r("commonIssues.notReadableDescription") })
|
|
423
344
|
] })
|
|
424
345
|
] })
|
|
425
346
|
] }),
|
|
426
|
-
/* @__PURE__ */ e(
|
|
347
|
+
/* @__PURE__ */ e(w.Actions, { class: "IncodeCommonIssuesButtons", children: [
|
|
427
348
|
/* @__PURE__ */ e(
|
|
428
|
-
|
|
349
|
+
L,
|
|
429
350
|
{
|
|
430
351
|
variant: "link",
|
|
431
352
|
onClick: a,
|
|
432
353
|
class: "IncodeCommonIssuesTakeManually",
|
|
433
|
-
children:
|
|
354
|
+
children: r("commonIssues.takeManually")
|
|
434
355
|
}
|
|
435
356
|
),
|
|
436
|
-
/* @__PURE__ */ e(
|
|
357
|
+
/* @__PURE__ */ e(L, { onClick: t, class: "IncodeCommonIssuesTryAgain", children: r("commonIssues.tryAgain") })
|
|
437
358
|
] })
|
|
438
359
|
] })
|
|
439
360
|
}
|
|
440
361
|
);
|
|
441
|
-
},
|
|
362
|
+
}, i1 = ({
|
|
442
363
|
orientation: i,
|
|
443
364
|
mode: t,
|
|
444
|
-
state:
|
|
445
|
-
children:
|
|
446
|
-
className:
|
|
365
|
+
state: l,
|
|
366
|
+
children: n,
|
|
367
|
+
className: r
|
|
447
368
|
}) => {
|
|
448
|
-
const o = i !== "vertical" || t === "passport", a = t === "passport", s = `IncodeCaptureFrame${
|
|
369
|
+
const o = i !== "vertical" || t === "passport", a = t === "passport", s = `IncodeCaptureFrame${l.charAt(0).toUpperCase() + l.slice(1)}`;
|
|
449
370
|
return /* @__PURE__ */ e(
|
|
450
371
|
"div",
|
|
451
372
|
{
|
|
452
|
-
class:
|
|
373
|
+
class: V(
|
|
453
374
|
"IncodeCaptureFrame",
|
|
454
375
|
o ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical",
|
|
455
376
|
s,
|
|
456
377
|
a && "IncodeCaptureFramePassport",
|
|
457
|
-
|
|
378
|
+
r
|
|
458
379
|
),
|
|
459
380
|
"aria-hidden": "true",
|
|
460
381
|
role: "presentation",
|
|
461
|
-
children:
|
|
382
|
+
children: n
|
|
462
383
|
}
|
|
463
384
|
);
|
|
464
|
-
},
|
|
385
|
+
}, F = ({
|
|
465
386
|
imageUrl: i,
|
|
466
387
|
orientation: t,
|
|
467
|
-
mode:
|
|
468
|
-
borderState:
|
|
469
|
-
topContent:
|
|
388
|
+
mode: l,
|
|
389
|
+
borderState: n,
|
|
390
|
+
topContent: r,
|
|
470
391
|
bottomContent: o,
|
|
471
392
|
overlayContent: a
|
|
472
393
|
}) => {
|
|
473
|
-
const { t: s } =
|
|
474
|
-
return /* @__PURE__ */ e(
|
|
475
|
-
|
|
394
|
+
const { t: s } = C();
|
|
395
|
+
return /* @__PURE__ */ e(x, { hideHeader: !0, hideFooterBranding: !0, children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayout", children: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingLayoutContent", children: [
|
|
396
|
+
r && /* @__PURE__ */ e("div", { class: "IncodeIdProcessingTopArea", children: r }),
|
|
476
397
|
/* @__PURE__ */ e(
|
|
477
|
-
|
|
398
|
+
i1,
|
|
478
399
|
{
|
|
479
400
|
orientation: t,
|
|
480
|
-
mode:
|
|
481
|
-
state:
|
|
401
|
+
mode: l === "id" ? "front" : l,
|
|
402
|
+
state: n,
|
|
482
403
|
children: [
|
|
483
404
|
/* @__PURE__ */ e(
|
|
484
405
|
"img",
|
|
@@ -495,49 +416,49 @@ const u1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
495
416
|
),
|
|
496
417
|
/* @__PURE__ */ e("div", { class: "IncodeIdProcessingBottomArea", children: [
|
|
497
418
|
/* @__PURE__ */ e("div", { class: "IncodeCaptureEncryptionLabel", children: [
|
|
498
|
-
/* @__PURE__ */ e(
|
|
419
|
+
/* @__PURE__ */ e(G, { className: "IncodeCaptureEncryptionIcon" }),
|
|
499
420
|
/* @__PURE__ */ e("span", { children: s("v2.capture.label") })
|
|
500
421
|
] }),
|
|
501
422
|
o
|
|
502
423
|
] })
|
|
503
424
|
] }) }) });
|
|
504
|
-
},
|
|
425
|
+
}, l1 = ({
|
|
505
426
|
imageUrl: i,
|
|
506
427
|
progress: t,
|
|
507
|
-
orientation:
|
|
508
|
-
mode:
|
|
428
|
+
orientation: l,
|
|
429
|
+
mode: n
|
|
509
430
|
}) => {
|
|
510
|
-
const { t:
|
|
511
|
-
return
|
|
431
|
+
const { t: r } = C(), o = u(null), a = l !== "vertical" || n === "passport", [s, d] = g(null);
|
|
432
|
+
return f(() => {
|
|
512
433
|
o.current?.focus();
|
|
513
|
-
}, []),
|
|
514
|
-
a ? import("./id-laser-h-BBV3r3rz.js").then((
|
|
515
|
-
c
|
|
516
|
-
}) : import("./id-laser-v-BTHJaSfx.js").then((
|
|
517
|
-
c
|
|
434
|
+
}, []), f(() => {
|
|
435
|
+
a ? import("./id-laser-h-BBV3r3rz.js").then((c) => {
|
|
436
|
+
d(c.default);
|
|
437
|
+
}) : import("./id-laser-v-BTHJaSfx.js").then((c) => {
|
|
438
|
+
d(c.default);
|
|
518
439
|
});
|
|
519
440
|
}, [a]), /* @__PURE__ */ e(
|
|
520
|
-
|
|
441
|
+
F,
|
|
521
442
|
{
|
|
522
443
|
imageUrl: i,
|
|
523
|
-
orientation:
|
|
524
|
-
mode:
|
|
444
|
+
orientation: l,
|
|
445
|
+
mode: n,
|
|
525
446
|
borderState: "analyzing",
|
|
526
447
|
topContent: /* @__PURE__ */ e("div", { class: "IncodeAnalyzingContent", children: [
|
|
527
|
-
/* @__PURE__ */ e(
|
|
448
|
+
/* @__PURE__ */ e(A, { progress: t }),
|
|
528
449
|
/* @__PURE__ */ e(
|
|
529
|
-
|
|
450
|
+
y,
|
|
530
451
|
{
|
|
531
452
|
ref: o,
|
|
532
453
|
id: "analyzing-title",
|
|
533
454
|
className: "IncodeAnalyzingTitle",
|
|
534
455
|
tabIndex: -1,
|
|
535
|
-
children:
|
|
456
|
+
children: r("idv2.capture.processing.analyzing")
|
|
536
457
|
}
|
|
537
458
|
)
|
|
538
459
|
] }),
|
|
539
460
|
overlayContent: s ? /* @__PURE__ */ e(
|
|
540
|
-
|
|
461
|
+
D,
|
|
541
462
|
{
|
|
542
463
|
animationData: s,
|
|
543
464
|
loop: !0,
|
|
@@ -546,7 +467,7 @@ const u1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
546
467
|
) : null
|
|
547
468
|
}
|
|
548
469
|
);
|
|
549
|
-
},
|
|
470
|
+
}, n1 = ({ className: i, ...t }) => /* @__PURE__ */ e(
|
|
550
471
|
"svg",
|
|
551
472
|
{
|
|
552
473
|
class: i,
|
|
@@ -565,7 +486,7 @@ const u1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
565
486
|
}
|
|
566
487
|
)
|
|
567
488
|
}
|
|
568
|
-
),
|
|
489
|
+
), R = ({ className: i, ...t }) => /* @__PURE__ */ e(
|
|
569
490
|
"svg",
|
|
570
491
|
{
|
|
571
492
|
class: i,
|
|
@@ -584,530 +505,225 @@ const u1 = ({ className: i }) => /* @__PURE__ */ e(
|
|
|
584
505
|
}
|
|
585
506
|
)
|
|
586
507
|
}
|
|
587
|
-
),
|
|
508
|
+
), U = ({
|
|
588
509
|
variant: i,
|
|
589
510
|
imageUrl: t,
|
|
590
|
-
orientation:
|
|
591
|
-
mode:
|
|
592
|
-
title:
|
|
511
|
+
orientation: l,
|
|
512
|
+
mode: n,
|
|
513
|
+
title: r,
|
|
593
514
|
subtitle: o,
|
|
594
515
|
buttonText: a,
|
|
595
516
|
onButtonClick: s,
|
|
596
|
-
attemptsRemaining:
|
|
517
|
+
attemptsRemaining: d
|
|
597
518
|
}) => {
|
|
598
|
-
const { t:
|
|
599
|
-
return
|
|
600
|
-
|
|
519
|
+
const { t: c } = C(), h = u(null);
|
|
520
|
+
return f(() => {
|
|
521
|
+
h.current?.focus();
|
|
601
522
|
}, []), /* @__PURE__ */ e(
|
|
602
|
-
|
|
523
|
+
F,
|
|
603
524
|
{
|
|
604
525
|
imageUrl: t,
|
|
605
|
-
orientation:
|
|
606
|
-
mode:
|
|
526
|
+
orientation: l,
|
|
527
|
+
mode: n,
|
|
607
528
|
borderState: i,
|
|
608
529
|
topContent: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingResultContent", role: "status", children: [
|
|
609
|
-
i === "success" ? /* @__PURE__ */ e(
|
|
610
|
-
/* @__PURE__ */ e(
|
|
611
|
-
|
|
612
|
-
|
|
530
|
+
i === "success" ? /* @__PURE__ */ e(n1, { className: "IncodeIdProcessingResultIcon" }) : /* @__PURE__ */ e(R, { className: "IncodeIdProcessingResultIcon" }),
|
|
531
|
+
/* @__PURE__ */ e(_, { size: 16 }),
|
|
532
|
+
r && /* @__PURE__ */ e(
|
|
533
|
+
y,
|
|
613
534
|
{
|
|
614
|
-
ref:
|
|
535
|
+
ref: h,
|
|
615
536
|
className: "IncodeIdProcessingResultTitle",
|
|
616
537
|
tabIndex: -1,
|
|
617
|
-
children:
|
|
538
|
+
children: r
|
|
618
539
|
}
|
|
619
540
|
),
|
|
620
|
-
o && /* @__PURE__ */ e(
|
|
621
|
-
/* @__PURE__ */ e(
|
|
541
|
+
o && /* @__PURE__ */ e(O, { children: [
|
|
542
|
+
/* @__PURE__ */ e(_, { size: 12 }),
|
|
622
543
|
/* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultSubtitle", children: o })
|
|
623
544
|
] })
|
|
624
545
|
] }),
|
|
625
546
|
bottomContent: /* @__PURE__ */ e("div", { class: "IncodeIdProcessingResultButtonContainer", children: [
|
|
626
|
-
|
|
627
|
-
count:
|
|
547
|
+
d !== void 0 && d > 0 && /* @__PURE__ */ e("p", { class: "IncodeIdProcessingResultAttempts", children: c("v2.idError.attemptsLeft", {
|
|
548
|
+
count: d
|
|
628
549
|
}) }),
|
|
629
|
-
/* @__PURE__ */ e(
|
|
550
|
+
/* @__PURE__ */ e(L, { onClick: s, "data-testid": "retry-button", children: a })
|
|
630
551
|
] })
|
|
631
552
|
}
|
|
632
553
|
);
|
|
633
|
-
},
|
|
634
|
-
const { t:
|
|
554
|
+
}, r1 = ({ manager: i, state: t }) => {
|
|
555
|
+
const { t: l } = C();
|
|
635
556
|
if (!t.previewImageUrl)
|
|
636
557
|
return null;
|
|
637
|
-
const
|
|
558
|
+
const n = t.currentMode === "passport" ? "passport" : "id", r = () => t.needsBackCapture ? l("v2.idSuccess.subtitle") : t.needsFrontCapture ? l("idv2.capture.processing.successBackSubtitleScanFront") : l("v2.idSuccess.subtitleBack"), o = () => t.needsBackCapture ? l("idv2.capture.processing.scanBack") : t.needsFrontCapture ? l("idv2.capture.processing.scanFront") : l("idv2.capturePreview.continue");
|
|
638
559
|
return /* @__PURE__ */ e(
|
|
639
|
-
|
|
560
|
+
U,
|
|
640
561
|
{
|
|
641
562
|
variant: "success",
|
|
642
563
|
imageUrl: t.previewImageUrl,
|
|
643
564
|
orientation: t.orientation,
|
|
644
|
-
mode:
|
|
645
|
-
title:
|
|
646
|
-
subtitle:
|
|
565
|
+
mode: n,
|
|
566
|
+
title: l("v2.idSuccess.title"),
|
|
567
|
+
subtitle: r(),
|
|
647
568
|
buttonText: o(),
|
|
648
569
|
onButtonClick: () => i.nextStep()
|
|
649
570
|
}
|
|
650
571
|
);
|
|
651
|
-
},
|
|
652
|
-
const { t:
|
|
572
|
+
}, o1 = ({ manager: i, state: t, ...l }) => {
|
|
573
|
+
const { t: n } = C();
|
|
653
574
|
if (t.status === "error")
|
|
654
575
|
return /* @__PURE__ */ e("div", { class: "IncodeIdError", role: "alert", children: [
|
|
655
576
|
/* @__PURE__ */ e("div", { class: "IncodeIdErrorMessage", children: t.error }),
|
|
656
|
-
/* @__PURE__ */ e(
|
|
577
|
+
/* @__PURE__ */ e(L, { onClick: () => i.reset(), "data-testid": "retry-button", children: n("idv2.capturePreview.retry") })
|
|
657
578
|
] });
|
|
658
|
-
const
|
|
579
|
+
const r = t.currentMode === "passport" ? "passport" : "id";
|
|
659
580
|
return t.previewImageUrl ? /* @__PURE__ */ e(
|
|
660
|
-
|
|
581
|
+
U,
|
|
661
582
|
{
|
|
662
583
|
variant: "error",
|
|
663
584
|
imageUrl: t.previewImageUrl,
|
|
664
585
|
orientation: t.orientation,
|
|
665
|
-
mode:
|
|
586
|
+
mode: r,
|
|
666
587
|
title: t.uploadErrorMessage,
|
|
667
588
|
subtitle: t.uploadErrorDescription,
|
|
668
|
-
buttonText: t.canRetry ?
|
|
589
|
+
buttonText: t.canRetry ? n("idv2.capturePreview.tryAgain") : n("idv2.capturePreview.continue"),
|
|
669
590
|
onButtonClick: () => i.continueFromError(),
|
|
670
591
|
attemptsRemaining: t.attemptsRemaining
|
|
671
592
|
}
|
|
672
593
|
) : null;
|
|
673
|
-
},
|
|
674
|
-
const { t } =
|
|
675
|
-
|
|
676
|
-
|
|
594
|
+
}, F1 = ({ manager: i }) => {
|
|
595
|
+
const { t } = C(), l = u(null);
|
|
596
|
+
f(() => {
|
|
597
|
+
l.current?.focus();
|
|
677
598
|
}, []);
|
|
678
|
-
const
|
|
599
|
+
const n = () => {
|
|
679
600
|
i.retryCapture();
|
|
680
601
|
};
|
|
681
|
-
return /* @__PURE__ */ e(
|
|
602
|
+
return /* @__PURE__ */ e(x, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdExpiredPage", children: [
|
|
682
603
|
/* @__PURE__ */ e("div", { class: "IncodeIdExpiredContent", role: "alert", children: [
|
|
683
|
-
/* @__PURE__ */ e(
|
|
684
|
-
/* @__PURE__ */ e(
|
|
685
|
-
/* @__PURE__ */ e(
|
|
604
|
+
/* @__PURE__ */ e(R, { className: "IncodeIdExpiredIcon" }),
|
|
605
|
+
/* @__PURE__ */ e(y, { ref: l, tabIndex: -1, className: "IncodeIdExpiredTitle", children: t("idv2.capture.notifications.expiredId") }),
|
|
606
|
+
/* @__PURE__ */ e(_, { size: 12 }),
|
|
686
607
|
/* @__PURE__ */ e("p", { class: "IncodeIdExpiredSubtitle", children: t("idv2.capture.notifications.useDifferent") }),
|
|
687
|
-
/* @__PURE__ */ e(
|
|
608
|
+
/* @__PURE__ */ e(_, { size: 80 })
|
|
688
609
|
] }),
|
|
689
|
-
/* @__PURE__ */ e("div", { class: "IncodeIdExpiredButtonContainer", children: /* @__PURE__ */ e(
|
|
690
|
-
] });
|
|
691
|
-
}, L = /* @__PURE__ */ new Map();
|
|
692
|
-
let S = !1;
|
|
693
|
-
const D = {
|
|
694
|
-
blur: () => import("./blurdevicelottie-_BZRug1c.js"),
|
|
695
|
-
glare: () => import("./glaredevicelottie-DLuIStvb.js"),
|
|
696
|
-
align: () => import("./aligndevicelottie-DlQCRPfM.js"),
|
|
697
|
-
front: () => import("./frontdevicelottie-KhKxT5n9.js"),
|
|
698
|
-
back: () => import("./backdevicelottie-B4NgyWmX.js")
|
|
699
|
-
};
|
|
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?.();
|
|
709
|
-
}).catch(() => {
|
|
710
|
-
}));
|
|
711
|
-
}
|
|
712
|
-
function y1() {
|
|
713
|
-
j();
|
|
714
|
-
}
|
|
715
|
-
function _1() {
|
|
716
|
-
h(() => {
|
|
717
|
-
y1();
|
|
718
|
-
}, []);
|
|
719
|
-
}
|
|
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")
|
|
725
|
-
return {
|
|
726
|
-
title: n("idv2.capture.notifications.blur.title"),
|
|
727
|
-
description: n("idv2.capture.notifications.blur.description"),
|
|
728
|
-
animationData: L.get("blur") ?? null
|
|
729
|
-
};
|
|
730
|
-
if (i === "glare")
|
|
731
|
-
return {
|
|
732
|
-
title: n("idv2.capture.notifications.glare.title"),
|
|
733
|
-
description: n("idv2.capture.notifications.glare.description"),
|
|
734
|
-
animationData: L.get("glare") ?? null
|
|
735
|
-
};
|
|
736
|
-
if (i === "farAway")
|
|
737
|
-
return {
|
|
738
|
-
title: n("idv2.capture.notifications.notAligned.title"),
|
|
739
|
-
description: n("idv2.capture.notifications.notAligned.description"),
|
|
740
|
-
animationData: L.get("align") ?? null
|
|
741
|
-
};
|
|
742
|
-
if (i === "wrongSide") {
|
|
743
|
-
const l = t === "back";
|
|
744
|
-
return {
|
|
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"),
|
|
747
|
-
animationData: L.get(l ? "back" : "front") ?? null
|
|
748
|
-
};
|
|
749
|
-
}
|
|
750
|
-
return null;
|
|
751
|
-
}
|
|
752
|
-
const B1 = ({
|
|
753
|
-
detectionStatus: i,
|
|
754
|
-
mode: t,
|
|
755
|
-
isCapturing: n
|
|
756
|
-
}) => {
|
|
757
|
-
const { t: r } = m(), l = M1(i, t), o = v(null), a = v({
|
|
758
|
-
message: "",
|
|
759
|
-
at: 0
|
|
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 = "";
|
|
768
|
-
}, 3e3);
|
|
769
|
-
}, 50));
|
|
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;
|
|
774
|
-
return;
|
|
775
|
-
}
|
|
776
|
-
if (c.current || !C) return;
|
|
777
|
-
const p = setTimeout(() => {
|
|
778
|
-
c.current = !0, g(I());
|
|
779
|
-
}, 500);
|
|
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) {
|
|
786
|
-
if (u) {
|
|
787
|
-
const x = t === "front" || t === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
|
|
788
|
-
g(`${r(`${x}.title`)}. ${r(`${x}.description`)}`);
|
|
789
|
-
return;
|
|
790
|
-
}
|
|
791
|
-
if (_) {
|
|
792
|
-
g(`${r("idv2.capture.notifications.notAligned.title")}.`);
|
|
793
|
-
return;
|
|
794
|
-
}
|
|
795
|
-
if (B) {
|
|
796
|
-
g(`${r("idv2.capture.notifications.glare.title")}.`);
|
|
797
|
-
return;
|
|
798
|
-
}
|
|
799
|
-
if (Z) {
|
|
800
|
-
g(`${r("idv2.capture.notifications.blur.title")}.`);
|
|
801
|
-
return;
|
|
802
|
-
}
|
|
803
|
-
C && c.current && g(I());
|
|
804
|
-
}
|
|
805
|
-
}, [
|
|
806
|
-
g,
|
|
807
|
-
Z,
|
|
808
|
-
n,
|
|
809
|
-
_,
|
|
810
|
-
B,
|
|
811
|
-
C,
|
|
812
|
-
u,
|
|
813
|
-
t,
|
|
814
|
-
r,
|
|
815
|
-
I
|
|
816
|
-
]), h(() => () => {
|
|
817
|
-
clearTimeout(f.current), clearTimeout(d.current);
|
|
818
|
-
}, []), /* @__PURE__ */ e(z, { children: [
|
|
819
|
-
/* @__PURE__ */ e(
|
|
820
|
-
"div",
|
|
821
|
-
{
|
|
822
|
-
ref: o,
|
|
823
|
-
class: "IncodeSrOnly",
|
|
824
|
-
"aria-live": "assertive",
|
|
825
|
-
"aria-atomic": "true"
|
|
826
|
-
}
|
|
827
|
-
),
|
|
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
|
-
/* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationTitle", children: l.title }),
|
|
831
|
-
l.description && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationDescription", children: l.description })
|
|
832
|
-
] }),
|
|
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
|
-
] }) }) : null
|
|
610
|
+
/* @__PURE__ */ e("div", { class: "IncodeIdExpiredButtonContainer", children: /* @__PURE__ */ e(L, { variant: "primary", onClick: n, children: t("idv2.unacceptedId.tryAgain") }) })
|
|
836
611
|
] });
|
|
837
|
-
},
|
|
838
|
-
|
|
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(
|
|
890
|
-
({
|
|
891
|
-
mode: i,
|
|
892
|
-
orientation: t,
|
|
893
|
-
detectionStatus: n,
|
|
894
|
-
counterValue: r,
|
|
895
|
-
isCapturing: l,
|
|
896
|
-
showManualCapture: o,
|
|
897
|
-
onCapture: a,
|
|
898
|
-
onOpenHelp: s,
|
|
899
|
-
helpButtonRef: c,
|
|
900
|
-
captureButtonRef: d
|
|
901
|
-
}, f) => {
|
|
902
|
-
const { t: C } = m();
|
|
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")
|
|
908
|
-
return {
|
|
909
|
-
title: C("idv2.capture.takingPhoto"),
|
|
910
|
-
subtitle: C("idv2.capture.dontMove")
|
|
911
|
-
};
|
|
912
|
-
if (n === "detecting" || n === "idNotDetected" || n === "manualCapture") {
|
|
913
|
-
const p = n === "manualCapture";
|
|
914
|
-
return i === "passport" ? {
|
|
915
|
-
title: C("idv2.capture.fillFramePassport"),
|
|
916
|
-
subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
|
|
917
|
-
} : i === "back" ? {
|
|
918
|
-
title: C("idv2.capture.v2.fillFrameBack"),
|
|
919
|
-
subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
|
|
920
|
-
} : {
|
|
921
|
-
title: C("idv2.capture.v2.fillFrameFront"),
|
|
922
|
-
subtitle: p ? "" : C("idv2.capture.v2.autoCapture")
|
|
923
|
-
};
|
|
924
|
-
}
|
|
925
|
-
return null;
|
|
926
|
-
}, [l, n, i, C]), _ = w(), B = i === "passport", Z = t !== "vertical" || B, g = Z ? "horizontal" : "vertical";
|
|
927
|
-
return /* @__PURE__ */ e(
|
|
928
|
-
t1,
|
|
929
|
-
{
|
|
930
|
-
className: M(
|
|
931
|
-
"IncodeCaptureOverlayId",
|
|
932
|
-
!Z && "IncodeCaptureOverlayVertical"
|
|
933
|
-
),
|
|
934
|
-
children: [
|
|
935
|
-
/* @__PURE__ */ e("div", { class: "IncodeCaptureTopSection", children: [
|
|
936
|
-
/* @__PURE__ */ e(
|
|
937
|
-
B1,
|
|
938
|
-
{
|
|
939
|
-
detectionStatus: n,
|
|
940
|
-
mode: i,
|
|
941
|
-
isCapturing: l
|
|
942
|
-
}
|
|
943
|
-
),
|
|
944
|
-
/* @__PURE__ */ e(
|
|
945
|
-
X,
|
|
946
|
-
{
|
|
947
|
-
title: u?.title ?? "",
|
|
948
|
-
subtitle: u?.subtitle,
|
|
949
|
-
visible: u !== null,
|
|
950
|
-
titleId: "id-capture-heading"
|
|
951
|
-
}
|
|
952
|
-
)
|
|
953
|
-
] }),
|
|
954
|
-
/* @__PURE__ */ e(
|
|
955
|
-
Y,
|
|
956
|
-
{
|
|
957
|
-
ref: f,
|
|
958
|
-
variant: "locked",
|
|
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
|
-
]
|
|
966
|
-
}
|
|
967
|
-
),
|
|
968
|
-
/* @__PURE__ */ e("div", { class: "IncodeSrOnly", "aria-live": "polite", "aria-atomic": "true", children: l && r > 0 ? r : "" }),
|
|
969
|
-
/* @__PURE__ */ e(
|
|
970
|
-
e1,
|
|
971
|
-
{
|
|
972
|
-
onOpenHelp: s,
|
|
973
|
-
onCapture: a,
|
|
974
|
-
isManualCapture: o,
|
|
975
|
-
helpButtonRef: c,
|
|
976
|
-
captureButtonRef: d,
|
|
977
|
-
captureAriaDescribedBy: o ? "manual-capture-tooltip" : void 0,
|
|
978
|
-
children: o ? /* @__PURE__ */ e("div", { class: "IncodeIdManualCaptureTooltipContainer", children: /* @__PURE__ */ e(
|
|
979
|
-
"div",
|
|
980
|
-
{
|
|
981
|
-
id: "manual-capture-tooltip",
|
|
982
|
-
role: "tooltip",
|
|
983
|
-
class: "IncodeIdManualCaptureTooltip",
|
|
984
|
-
children: /* @__PURE__ */ e("ol", { class: "IncodeIdManualCaptureTooltipList", children: [
|
|
985
|
-
/* @__PURE__ */ e("li", { children: C("idv2.commonIssues.firstStep") }),
|
|
986
|
-
/* @__PURE__ */ e("li", { children: C("idv2.commonIssues.secondStep") })
|
|
987
|
-
] })
|
|
988
|
-
}
|
|
989
|
-
) }) : null
|
|
990
|
-
}
|
|
991
|
-
)
|
|
992
|
-
]
|
|
993
|
-
}
|
|
994
|
-
);
|
|
995
|
-
}
|
|
996
|
-
), c2 = ({ manager: i, state: t }) => {
|
|
997
|
-
const { t: n } = m();
|
|
612
|
+
}, R1 = ({ manager: i, state: t }) => {
|
|
613
|
+
const { t: l } = C();
|
|
998
614
|
if (t.captureStatus === "initializing")
|
|
999
|
-
return /* @__PURE__ */ e(
|
|
615
|
+
return /* @__PURE__ */ e(x, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: /* @__PURE__ */ e(H, { size: "large", title: `${l("webcam.loading")}...` }) });
|
|
1000
616
|
if (t.captureStatus === "uploading" && t.previewImageUrl) {
|
|
1001
|
-
const
|
|
617
|
+
const n = t.currentMode === "passport" ? "passport" : "id";
|
|
1002
618
|
return /* @__PURE__ */ e(
|
|
1003
|
-
|
|
619
|
+
l1,
|
|
1004
620
|
{
|
|
1005
621
|
imageUrl: t.previewImageUrl,
|
|
1006
622
|
progress: t.uploadProgress ?? 0,
|
|
1007
623
|
orientation: t.orientation,
|
|
1008
|
-
mode:
|
|
624
|
+
mode: n
|
|
1009
625
|
}
|
|
1010
626
|
);
|
|
1011
627
|
}
|
|
1012
|
-
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(
|
|
1013
|
-
},
|
|
1014
|
-
const
|
|
1015
|
-
|
|
1016
|
-
const
|
|
1017
|
-
if (!
|
|
1018
|
-
|
|
628
|
+
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ e(r1, { manager: i, state: t }) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ e(o1, { manager: i, state: t }) : /* @__PURE__ */ e(s1, { manager: i, state: t });
|
|
629
|
+
}, s1 = ({ manager: i, state: t }) => {
|
|
630
|
+
const l = u(null), n = u(null), r = u(null), o = u(null), a = u(null), [s, d] = g(!1), [c, h] = g(!1);
|
|
631
|
+
f(() => {
|
|
632
|
+
const p = l.current;
|
|
633
|
+
if (!p || !t.stream) {
|
|
634
|
+
h(!1);
|
|
1019
635
|
return;
|
|
1020
636
|
}
|
|
1021
|
-
|
|
1022
|
-
const
|
|
1023
|
-
return
|
|
1024
|
-
}), () =>
|
|
1025
|
-
}, [t.stream]),
|
|
1026
|
-
const
|
|
1027
|
-
const
|
|
1028
|
-
if (!
|
|
637
|
+
h(!1);
|
|
638
|
+
const v = () => h(!0);
|
|
639
|
+
return p.addEventListener("playing", v), p.srcObject = t.stream, p.play().catch(() => {
|
|
640
|
+
}), () => p.removeEventListener("playing", v);
|
|
641
|
+
}, [t.stream]), f(() => {
|
|
642
|
+
const p = () => {
|
|
643
|
+
const v = n.current;
|
|
644
|
+
if (!v)
|
|
1029
645
|
return;
|
|
1030
|
-
const
|
|
646
|
+
const M = v.getBoundingClientRect();
|
|
1031
647
|
i.updateDetectionArea({
|
|
1032
|
-
x:
|
|
1033
|
-
y:
|
|
1034
|
-
width:
|
|
1035
|
-
height:
|
|
648
|
+
x: M.left,
|
|
649
|
+
y: M.top,
|
|
650
|
+
width: M.width,
|
|
651
|
+
height: M.height
|
|
1036
652
|
});
|
|
1037
653
|
};
|
|
1038
|
-
return
|
|
1039
|
-
}, [i, t.orientation,
|
|
1040
|
-
const
|
|
1041
|
-
|
|
1042
|
-
},
|
|
1043
|
-
|
|
1044
|
-
o.current ? o.current.focus() :
|
|
654
|
+
return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
|
|
655
|
+
}, [i, t.orientation, c]);
|
|
656
|
+
const B = t.captureStatus === "capturing" || t.detectionStatus === "capturing", Z = t.detectionStatus, I = Z === "manualCapture" || t.showCaptureButtonInAuto && t.captureStatus === "detecting" && Z !== "capturing", P = () => {
|
|
657
|
+
d(!0);
|
|
658
|
+
}, b = () => {
|
|
659
|
+
d(!1), requestAnimationFrame(() => {
|
|
660
|
+
o.current ? o.current.focus() : r.current?.focus();
|
|
1045
661
|
});
|
|
1046
|
-
},
|
|
1047
|
-
|
|
1048
|
-
},
|
|
662
|
+
}, S = () => {
|
|
663
|
+
d(!1), i.switchToManualCapture();
|
|
664
|
+
}, T = () => {
|
|
1049
665
|
i.capture();
|
|
1050
666
|
};
|
|
1051
|
-
return /* @__PURE__ */ e(
|
|
1052
|
-
/* @__PURE__ */ e(
|
|
1053
|
-
|
|
667
|
+
return /* @__PURE__ */ e(x, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeIdCapturePage", children: [
|
|
668
|
+
/* @__PURE__ */ e(z, { stream: t.stream, "aria-hidden": s || void 0, children: /* @__PURE__ */ e(
|
|
669
|
+
N,
|
|
1054
670
|
{
|
|
1055
|
-
ref:
|
|
671
|
+
ref: n,
|
|
1056
672
|
mode: t.currentMode,
|
|
1057
673
|
orientation: t.orientation,
|
|
1058
674
|
detectionStatus: t.detectionStatus,
|
|
1059
675
|
counterValue: t.counterValue,
|
|
1060
|
-
isCapturing:
|
|
1061
|
-
showManualCapture:
|
|
1062
|
-
onCapture:
|
|
1063
|
-
onOpenHelp:
|
|
1064
|
-
helpButtonRef:
|
|
676
|
+
isCapturing: B,
|
|
677
|
+
showManualCapture: I,
|
|
678
|
+
onCapture: T,
|
|
679
|
+
onOpenHelp: P,
|
|
680
|
+
helpButtonRef: r,
|
|
1065
681
|
captureButtonRef: o
|
|
1066
682
|
}
|
|
1067
683
|
) }),
|
|
1068
684
|
/* @__PURE__ */ e("div", { ref: a }),
|
|
1069
685
|
/* @__PURE__ */ e(
|
|
1070
|
-
|
|
686
|
+
t1,
|
|
1071
687
|
{
|
|
1072
688
|
open: s,
|
|
1073
|
-
onClose:
|
|
1074
|
-
onTakeManually:
|
|
689
|
+
onClose: b,
|
|
690
|
+
onTakeManually: S,
|
|
1075
691
|
portalContainer: a.current
|
|
1076
692
|
}
|
|
1077
693
|
)
|
|
1078
694
|
] });
|
|
1079
|
-
},
|
|
1080
|
-
const { t:
|
|
1081
|
-
if (
|
|
1082
|
-
s ? import("./passport-tutorial-CaYBFTqt.js").then((
|
|
1083
|
-
a(
|
|
1084
|
-
}) :
|
|
1085
|
-
a(
|
|
1086
|
-
}) : import("./id-tutorial-B-F5Q28m.js").then((
|
|
1087
|
-
a(
|
|
695
|
+
}, U1 = ({ manager: i, state: t }) => {
|
|
696
|
+
const { t: l } = C(), [n, r] = g(!1), [o, a] = g(null), s = t.selectedDocumentType === "passport", d = t.currentMode === "back";
|
|
697
|
+
if (f(() => {
|
|
698
|
+
s ? import("./passport-tutorial-CaYBFTqt.js").then((I) => {
|
|
699
|
+
a(I.default);
|
|
700
|
+
}) : d ? import("./back-tutorial-An9AcMSe.js").then((I) => {
|
|
701
|
+
a(I.default);
|
|
702
|
+
}) : import("./id-tutorial-B-F5Q28m.js").then((I) => {
|
|
703
|
+
a(I.default);
|
|
1088
704
|
});
|
|
1089
|
-
}, [s,
|
|
705
|
+
}, [s, d]), !o)
|
|
1090
706
|
return null;
|
|
1091
|
-
const
|
|
707
|
+
const c = l(s ? "idv2.capture.passport.title" : d ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), h = l(s ? "idv2.capture.passport.subtitle" : d ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), B = l(d ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
|
|
1092
708
|
return /* @__PURE__ */ e(
|
|
1093
|
-
|
|
709
|
+
W,
|
|
1094
710
|
{
|
|
1095
711
|
animationData: o,
|
|
1096
|
-
title:
|
|
1097
|
-
subtitle:
|
|
712
|
+
title: c,
|
|
713
|
+
subtitle: h,
|
|
1098
714
|
onContinue: () => {
|
|
1099
|
-
|
|
715
|
+
r(!0), i.nextStep();
|
|
1100
716
|
},
|
|
1101
|
-
buttonText:
|
|
1102
|
-
disclaimerText:
|
|
1103
|
-
isLoading:
|
|
1104
|
-
className:
|
|
717
|
+
buttonText: l("idv2.tutorial.startScan"),
|
|
718
|
+
disclaimerText: B,
|
|
719
|
+
isLoading: n,
|
|
720
|
+
className: V(
|
|
1105
721
|
"IncodeIdTutorial",
|
|
1106
722
|
s ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"
|
|
1107
723
|
)
|
|
1108
724
|
}
|
|
1109
725
|
);
|
|
1110
|
-
},
|
|
726
|
+
}, a1 = () => /* @__PURE__ */ e(
|
|
1111
727
|
"svg",
|
|
1112
728
|
{
|
|
1113
729
|
width: "119",
|
|
@@ -1301,7 +917,7 @@ const P1 = ({ mode: i, orientation: t }) => {
|
|
|
1301
917
|
] })
|
|
1302
918
|
]
|
|
1303
919
|
}
|
|
1304
|
-
),
|
|
920
|
+
), d1 = () => /* @__PURE__ */ e(
|
|
1305
921
|
"svg",
|
|
1306
922
|
{
|
|
1307
923
|
width: "118",
|
|
@@ -1606,7 +1222,7 @@ const P1 = ({ mode: i, orientation: t }) => {
|
|
|
1606
1222
|
] })
|
|
1607
1223
|
]
|
|
1608
1224
|
}
|
|
1609
|
-
),
|
|
1225
|
+
), c1 = () => /* @__PURE__ */ e(
|
|
1610
1226
|
"svg",
|
|
1611
1227
|
{
|
|
1612
1228
|
width: "60",
|
|
@@ -1817,7 +1433,7 @@ const P1 = ({ mode: i, orientation: t }) => {
|
|
|
1817
1433
|
] })
|
|
1818
1434
|
]
|
|
1819
1435
|
}
|
|
1820
|
-
),
|
|
1436
|
+
), C1 = () => /* @__PURE__ */ e(
|
|
1821
1437
|
"svg",
|
|
1822
1438
|
{
|
|
1823
1439
|
width: "60",
|
|
@@ -2023,7 +1639,7 @@ const P1 = ({ mode: i, orientation: t }) => {
|
|
|
2023
1639
|
] })
|
|
2024
1640
|
]
|
|
2025
1641
|
}
|
|
2026
|
-
),
|
|
1642
|
+
), p1 = () => /* @__PURE__ */ e(
|
|
2027
1643
|
"svg",
|
|
2028
1644
|
{
|
|
2029
1645
|
width: "61",
|
|
@@ -2332,30 +1948,30 @@ const P1 = ({ mode: i, orientation: t }) => {
|
|
|
2332
1948
|
] })
|
|
2333
1949
|
]
|
|
2334
1950
|
}
|
|
2335
|
-
),
|
|
1951
|
+
), h1 = {
|
|
2336
1952
|
digitalIdUpload: {
|
|
2337
1953
|
type: "digitalIdUpload",
|
|
2338
|
-
icon:
|
|
1954
|
+
icon: p1,
|
|
2339
1955
|
title: "idv2.chooser.digitalIdUploadButtonTitle",
|
|
2340
1956
|
testId: "verification-option-digitalIdUpload",
|
|
2341
1957
|
weight: 1
|
|
2342
1958
|
},
|
|
2343
1959
|
id: {
|
|
2344
1960
|
type: "id",
|
|
2345
|
-
icon:
|
|
1961
|
+
icon: a1,
|
|
2346
1962
|
title: "idv2.chooser.idButtonTitle",
|
|
2347
1963
|
testId: "verification-option-id",
|
|
2348
1964
|
weight: 2
|
|
2349
1965
|
},
|
|
2350
1966
|
passport: {
|
|
2351
1967
|
type: "passport",
|
|
2352
|
-
icon:
|
|
1968
|
+
icon: d1,
|
|
2353
1969
|
title: "idv2.chooser.passportButtonTitle",
|
|
2354
1970
|
testId: "verification-option-passport",
|
|
2355
1971
|
weight: 3
|
|
2356
1972
|
},
|
|
2357
1973
|
digitalId: {
|
|
2358
|
-
icon:
|
|
1974
|
+
icon: c1,
|
|
2359
1975
|
title: "idv2.chooser.digitalIdButtonTitle",
|
|
2360
1976
|
testId: "verification-option-digitalId",
|
|
2361
1977
|
type: "digitalId",
|
|
@@ -2363,65 +1979,65 @@ const P1 = ({ mode: i, orientation: t }) => {
|
|
|
2363
1979
|
},
|
|
2364
1980
|
manualIdUpload: {
|
|
2365
1981
|
type: "manualIdUpload",
|
|
2366
|
-
icon:
|
|
1982
|
+
icon: C1,
|
|
2367
1983
|
title: "idv2.chooser.manualUploadButtonTitle",
|
|
2368
1984
|
testId: "verification-option-manualIdUpload",
|
|
2369
1985
|
weight: 5
|
|
2370
1986
|
}
|
|
2371
1987
|
};
|
|
2372
|
-
function
|
|
2373
|
-
const t = (
|
|
2374
|
-
const
|
|
2375
|
-
return
|
|
1988
|
+
function u1(i) {
|
|
1989
|
+
const t = (l, n) => {
|
|
1990
|
+
const r = h1[n];
|
|
1991
|
+
return r && l.push(r), l;
|
|
2376
1992
|
};
|
|
2377
|
-
return i.reduce(t, []).sort((
|
|
1993
|
+
return i.reduce(t, []).sort((l, n) => l.weight - n.weight);
|
|
2378
1994
|
}
|
|
2379
|
-
const
|
|
2380
|
-
const { t:
|
|
2381
|
-
() =>
|
|
1995
|
+
const P1 = ({ manager: i, state: t }) => {
|
|
1996
|
+
const { t: l } = C(), n = k(
|
|
1997
|
+
() => u1(t.availableDocumentTypes),
|
|
2382
1998
|
[t.availableDocumentTypes]
|
|
2383
|
-
),
|
|
1999
|
+
), r = (o) => {
|
|
2384
2000
|
i.selectDocument(o);
|
|
2385
2001
|
};
|
|
2386
2002
|
return /* @__PURE__ */ e(
|
|
2387
|
-
|
|
2003
|
+
x,
|
|
2388
2004
|
{
|
|
2389
|
-
title:
|
|
2005
|
+
title: l("idv2.chooser.chooseHowToVerifyTitle"),
|
|
2390
2006
|
"data-testid": "document-chooser-page",
|
|
2391
2007
|
className: "IncodeChooserPage",
|
|
2392
|
-
children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(
|
|
2393
|
-
|
|
2008
|
+
children: /* @__PURE__ */ e("div", { class: "IncodeChooserContainer", children: /* @__PURE__ */ e(j, { children: n.map((o) => /* @__PURE__ */ e(
|
|
2009
|
+
q,
|
|
2394
2010
|
{
|
|
2395
2011
|
icon: o.icon,
|
|
2396
|
-
title:
|
|
2012
|
+
title: l(o.title),
|
|
2397
2013
|
testId: o.testId,
|
|
2398
|
-
tag: o.tag ?
|
|
2399
|
-
onClick: () =>
|
|
2014
|
+
tag: o.tag ? l(o.tag) : void 0,
|
|
2015
|
+
onClick: () => r(o.type)
|
|
2400
2016
|
},
|
|
2401
2017
|
o.type
|
|
2402
2018
|
)) }) })
|
|
2403
2019
|
}
|
|
2404
2020
|
);
|
|
2405
|
-
},
|
|
2021
|
+
}, b1 = ({
|
|
2406
2022
|
manager: i,
|
|
2407
2023
|
direction: t
|
|
2408
2024
|
}) => {
|
|
2409
|
-
const [
|
|
2410
|
-
|
|
2411
|
-
import("./flip-animation-COR596wy.js").then((
|
|
2412
|
-
|
|
2025
|
+
const [l, n] = g(null), [r, o] = g(!1), { t: a } = C();
|
|
2026
|
+
f(() => {
|
|
2027
|
+
import("./flip-animation-COR596wy.js").then((c) => {
|
|
2028
|
+
n(c.default);
|
|
2413
2029
|
});
|
|
2414
2030
|
}, []);
|
|
2415
|
-
const s =
|
|
2416
|
-
await new Promise((
|
|
2031
|
+
const s = E(async () => {
|
|
2032
|
+
await new Promise((c) => setTimeout(c, 1e3)), t === "toBack" ? i.continueToBack() : i.continueToFront(), o(!0);
|
|
2417
2033
|
}, [t, i]);
|
|
2418
|
-
return
|
|
2419
|
-
/* @__PURE__ */ e(
|
|
2420
|
-
/* @__PURE__ */ e(
|
|
2034
|
+
return r ? /* @__PURE__ */ e(H, { size: "large" }) : l ? /* @__PURE__ */ e("div", { class: "IncodeFlipAnimation", children: [
|
|
2035
|
+
/* @__PURE__ */ e(y, { role: "status", className: "IncodeFlipAnimationTitle", children: a(t === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront") }),
|
|
2036
|
+
/* @__PURE__ */ e(_, { size: 32 }),
|
|
2421
2037
|
/* @__PURE__ */ e(
|
|
2422
|
-
|
|
2038
|
+
D,
|
|
2423
2039
|
{
|
|
2424
|
-
animationData:
|
|
2040
|
+
animationData: l,
|
|
2425
2041
|
loop: !1,
|
|
2426
2042
|
reverse: t === "toFront",
|
|
2427
2043
|
onComplete: s
|
|
@@ -2430,16 +2046,14 @@ const C2 = ({ manager: i, state: t }) => {
|
|
|
2430
2046
|
] }) : null;
|
|
2431
2047
|
};
|
|
2432
2048
|
export {
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
s2 as e,
|
|
2444
|
-
o1 as f
|
|
2049
|
+
R1 as C,
|
|
2050
|
+
b1 as F,
|
|
2051
|
+
o1 as I,
|
|
2052
|
+
K as S,
|
|
2053
|
+
U1 as T,
|
|
2054
|
+
q as V,
|
|
2055
|
+
j as a,
|
|
2056
|
+
P1 as b,
|
|
2057
|
+
F1 as c,
|
|
2058
|
+
$ as d
|
|
2445
2059
|
};
|