@incodetech/web 0.0.0-dev-20260421-aeeff81 → 0.0.0-dev-20260421-b9de520
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/addressAutocomplete-DTrgJzUp.js +126 -0
- package/dist/ae-signature/ae-signature.es.js +2 -2
- package/dist/antifraud/antifraud.es.js +2 -2
- package/dist/authentication/authentication.es.js +3 -3
- package/dist/base.css +84 -1
- package/dist/bottomSheet-D7Bcy6_9.js +31 -0
- package/dist/consent/consent.es.js +4 -4
- package/dist/cross-document-data-match/cross-document-data-match.es.js +2 -2
- package/dist/curp-validation/curp-validation.es.js +3 -3
- package/dist/{documentCapture-CpF6kCf5.js → documentCapture-BEV5dOjJ.js} +16 -15
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-B7k5uaCZ.js → ekybModule-B4Xva8gU.js} +6 -6
- package/dist/ekybModule-Craxr9wc.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +103 -154
- package/dist/ekycModule-Bw-Zs4MH.js +2 -0
- package/dist/ekycModule-DOVTiBfn.js +250 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-C021QkIh.js → electronic-signature-AVBIN1f_.js} +4 -4
- package/dist/email/email.es.js +5 -5
- package/dist/{extensibility-CfU7fTHy.js → extensibility-DbkDY7L4.js} +90 -163
- package/dist/extensibility.es.js +23 -21
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +23 -3
- package/dist/faceMatch-DO9ECAq7.js +2 -0
- package/dist/{faceMatch-BEoxDC42.js → faceMatch-SlCovmDB.js} +73 -57
- package/dist/flow/flow.es.js +6 -6
- package/dist/flow/styles.css +126 -151
- package/dist/{formField-CWGwTjU0.js → formField-Co4Kh1a4.js} +1 -1
- package/dist/geolocation/geolocation.es.js +4 -4
- package/dist/governmentValidation/governmentValidation.es.js +4 -4
- package/dist/{homeScreen-CAFKUlMd.js → homeScreen-CC6U7vbU.js} +2 -2
- package/dist/{i18n-CeGVT08F.js → i18n-B3g2cb7v.js} +1 -1
- package/dist/id/id.es.js +11 -11
- package/dist/identity-reuse/identity-reuse.es.js +3 -3
- package/dist/{incodeComponent-DzIDROLm.js → incodeComponent-dxwR00fd.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-Bhydm83e.js → mandatoryConsent-wpJR_1w0.js} +4 -4
- package/dist/modal-BxXKrclm.js +135 -0
- package/dist/modal.hooks-B9B0KVgR.js +121 -0
- package/dist/{otpInput-DGxQcqVQ.js → otpInput-Br-1AWsA.js} +1 -1
- package/dist/phone/phone.es.js +4 -4
- package/dist/{processing-DahN4NlZ.js → processing-BuNhGQnB.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/radioButtonComposed-o86b9OGB.js +82 -0
- package/dist/{redirectToMobile-BNMTUUuv.js → redirectToMobile-BjhYByLI.js} +5 -5
- package/dist/{richText-gJTUJEMX.js → richText-BNC8z_ah.js} +1 -1
- package/dist/selfie/selfie.es.js +5 -5
- package/dist/{setup-CYffoS2y.js → setup-da1N2VR6.js} +1 -1
- package/dist/signature/signature.es.js +4 -4
- package/dist/themes/dark.css +3 -0
- package/dist/themes/light.css +3 -0
- package/dist/{transitionSpinner-DMz65Cb2.js → transitionSpinner-CpwivARH.js} +1 -1
- package/dist/{tutorial-vB6h6wPK.js → tutorial-5LMEfxn3.js} +53 -81
- package/dist/{useModuleLoader-J38RiuMO.js → useModuleLoader-B4EtGg2Y.js} +9 -9
- package/dist/verificationResult-VtriXVEd.js +90 -0
- package/dist/watchlist/watchlist.es.js +3 -3
- package/dist/workflow/styles.css +126 -151
- package/dist/workflow/workflow.es.js +6 -6
- package/package.json +2 -2
- package/dist/addressAutocomplete-Xdp9mPRT.js +0 -108
- package/dist/ekybModule-CXY_Mv5-.js +0 -2
- package/dist/ekycModule-BdPdWLQa.js +0 -2
- package/dist/ekycModule-OS6Kw_iX.js +0 -235
- package/dist/faceMatch-C_JTA6_f.js +0 -2
- package/dist/modal-CfWL75re.js +0 -239
- package/dist/verificationResult-BwV7ZiOq.js +0 -81
- /package/dist/{aligndevicelottie-qUSV6Le7.js → aligndevicelottie-C6Ed_QzW.js} +0 -0
- /package/dist/{back-horizontal-hint-iEWk08tl.js → back-horizontal-hint-DvZDkdvV.js} +0 -0
- /package/dist/{back-tutorial-BZmE2nCI.js → back-tutorial-CG_LPTUE.js} +0 -0
- /package/dist/{back-vertical-hint-CB37PPBM.js → back-vertical-hint-CzuG1Hve.js} +0 -0
- /package/dist/{backdevicelottie-DFySVtix.js → backdevicelottie-mGREI6Py.js} +0 -0
- /package/dist/{blurdevicelottie-Vrw4Q73g.js → blurdevicelottie-Bw43-G1P.js} +0 -0
- /package/dist/{browser-ponyfill-VSeGKSP8.js → browser-ponyfill-CYk5g-nD.js} +0 -0
- /package/dist/{defineProperty-CqT6YdHJ.js → defineProperty-DB5OmvER.js} +0 -0
- /package/dist/{flip-animation-C5qWdHLD.js → flip-animation-CAqT4nr6.js} +0 -0
- /package/dist/{front-horizontal-hint-pRbh84gx.js → front-horizontal-hint-BSKWj6i6.js} +0 -0
- /package/dist/{front-vertical-hint-BAKFge2R.js → front-vertical-hint-BYdzIVbN.js} +0 -0
- /package/dist/{frontdevicelottie-oZ1W9xZw.js → frontdevicelottie-Cho1olXp.js} +0 -0
- /package/dist/{glaredevicelottie-sI8UXrQF.js → glaredevicelottie-dg9fVsGy.js} +0 -0
- /package/dist/{id-laser-h-DeeqVBeU.js → id-laser-h-DWh_BVEp.js} +0 -0
- /package/dist/{id-laser-v-CWbE_3-e.js → id-laser-v-Dvk7U4fL.js} +0 -0
- /package/dist/{id-tutorial-CSjRVua_.js → id-tutorial-DsrHcnNV.js} +0 -0
- /package/dist/{incodeModule-D_r2n18O.js → incodeModule-BH9gV7jI.js} +0 -0
- /package/dist/{numberedStep-CR4w_BpM.js → numberedStep-CSQrc-lB.js} +0 -0
- /package/dist/{passport-horizontal-hint-CKL1CfSO.js → passport-horizontal-hint-2XF3bnIM.js} +0 -0
- /package/dist/{passport-tutorial-CfuYKkED.js → passport-tutorial-cKfi7FGo.js} +0 -0
- /package/dist/{passport-vertical-hint-BK1gSSwh.js → passport-vertical-hint-BcYR5CAS.js} +0 -0
- /package/dist/{phoneInput-DtBeLyeD.js → phoneInput-q1YF0o-q.js} +0 -0
- /package/dist/{selfieTutorial-DE1_g-Lg.js → selfieTutorial-CJQBQ-KM.js} +0 -0
- /package/dist/{tabs-CIk4tOL2.js → tabs-DnpffRKI.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as e, t } from "./i18n-
|
|
1
|
+
import { n as e, t } from "./i18n-B3g2cb7v.js";
|
|
2
2
|
import { _ as n, h as r, l as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o, t as s } from "./incodeComponent-
|
|
3
|
+
import { o, t as s } from "./incodeComponent-dxwR00fd.js";
|
|
4
4
|
import { t as c } from "./page-D5Mt-0zn.js";
|
|
5
5
|
import { t as l } from "./button-4-ToV5B_.js";
|
|
6
6
|
import { r as u } from "./icons-Cj7hJH7f.js";
|
|
7
7
|
import { t as d } from "./successIcon-C4GI_9SU.js";
|
|
8
|
-
import { t as f } from "./verificationResult-
|
|
8
|
+
import { t as f } from "./verificationResult-VtriXVEd.js";
|
|
9
9
|
import { t as p } from "./checkbox-Xh75AgKT.js";
|
|
10
|
-
import { t as m } from "./incodeModule-
|
|
10
|
+
import { t as m } from "./incodeModule-BH9gV7jI.js";
|
|
11
11
|
import { createElectronicSignatureManager as h } from "@incodetech/core/electronic-signature";
|
|
12
12
|
//#region src/modules/electronic-signature/documentIllustration.tsx
|
|
13
13
|
var g = () => /* @__PURE__ */ a("svg", {
|
package/dist/email/email.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-B3g2cb7v.js";
|
|
2
2
|
import { _ as t, p as n, v as r } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as i, t as a } from "../incodeComponent-
|
|
3
|
+
import { o as i, t as a } from "../incodeComponent-dxwR00fd.js";
|
|
4
4
|
import { t as o } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as s } from "../page-D5Mt-0zn.js";
|
|
6
|
-
import "../extensibility-
|
|
6
|
+
import "../extensibility-DbkDY7L4.js";
|
|
7
7
|
import { t as c } from "../button-4-ToV5B_.js";
|
|
8
8
|
import { t as l } from "../inputComposed-D7vq-JYi.js";
|
|
9
|
-
import { t as u } from "../otpInput-
|
|
10
|
-
import { t as d } from "../incodeModule-
|
|
9
|
+
import { t as u } from "../otpInput-Br-1AWsA.js";
|
|
10
|
+
import { t as d } from "../incodeModule-BH9gV7jI.js";
|
|
11
11
|
import { createEmailManager as f } from "@incodetech/core/email";
|
|
12
12
|
//#region src/modules/email/emailInput.tsx
|
|
13
13
|
var p = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, m = ({ prefilledEmail: i, emailError: a, label: o, disabled: s = !1, required: c = !1, onEmailChange: u }) => {
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-B3g2cb7v.js";
|
|
2
2
|
import { S as t, _ as n, a as r, c as i, d as a, h as o, l as s, o as c, p as l, v as u } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import "./uiConfig-CwpQ-IM6.js";
|
|
4
|
-
import "./incodeComponent-
|
|
4
|
+
import "./incodeComponent-dxwR00fd.js";
|
|
5
5
|
import { t as d } from "./spacer-DCljE53A.js";
|
|
6
6
|
import { t as f } from "./page-D5Mt-0zn.js";
|
|
7
7
|
import { n as p } from "./loadingIcon-wTrHZMGC.js";
|
|
8
8
|
import { t as m } from "./typography-B7nxauEL.js";
|
|
9
9
|
import { t as h } from "./spinner-DyRQfsz_.js";
|
|
10
10
|
import "./spinner-BmFWJNHp.js";
|
|
11
|
-
import "./processing-
|
|
11
|
+
import "./processing-BuNhGQnB.js";
|
|
12
12
|
import { t as g } from "./button-4-ToV5B_.js";
|
|
13
13
|
import { i as _, m as v, r as y, s as b, t as x, u as S } from "./icons-Cj7hJH7f.js";
|
|
14
|
-
import { a as C, i as w } from "./tutorial-
|
|
14
|
+
import { a as C, i as w } from "./tutorial-5LMEfxn3.js";
|
|
15
15
|
import { t as T } from "./successIcon-C4GI_9SU.js";
|
|
16
|
-
import "./verificationResult-
|
|
16
|
+
import "./verificationResult-VtriXVEd.js";
|
|
17
17
|
import "./inputComposed-D7vq-JYi.js";
|
|
18
18
|
import "./inputComposed-HqPLwoEb.js";
|
|
19
|
-
import "./otpInput-
|
|
19
|
+
import "./otpInput-Br-1AWsA.js";
|
|
20
20
|
import "./checkbox-Xh75AgKT.js";
|
|
21
|
-
import "./formField-
|
|
21
|
+
import "./formField-Co4Kh1a4.js";
|
|
22
22
|
import "./countries-Bbn2lyxr.js";
|
|
23
23
|
import "./phoneInputComposed-BSn0WlMA.js";
|
|
24
24
|
import "./dropdownComposed-3cFHAdBp.js";
|
|
25
25
|
import "./dateInputComposed-DLOh-eXS.js";
|
|
26
|
-
import
|
|
26
|
+
import "./radioButtonComposed-o86b9OGB.js";
|
|
27
|
+
import { t as E } from "./modal-BxXKrclm.js";
|
|
28
|
+
import "./bottomSheet-D7Bcy6_9.js";
|
|
27
29
|
import "@incodetech/core/id";
|
|
28
30
|
//#region src/shared/overlay/overlay.tsx
|
|
29
31
|
var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("div", {
|
|
@@ -55,82 +57,7 @@ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
|
|
|
55
57
|
class: "IncodeProgressBarLabel",
|
|
56
58
|
children: n
|
|
57
59
|
})] }) : null]
|
|
58
|
-
}), k = r((
|
|
59
|
-
let [C, w] = l(!!r), T = n !== void 0, E = T ? !!n : C, D = !!i, O = !!a, k = typeof h == "string" ? h : void 0, A = (e) => {
|
|
60
|
-
T || w(e.target.checked), c?.(e);
|
|
61
|
-
}, j = f ? `${e}-helper` : void 0, M = d ? `${e}-error` : void 0, N = [
|
|
62
|
-
y,
|
|
63
|
-
M,
|
|
64
|
-
j
|
|
65
|
-
].filter(Boolean).join(" ") || void 0;
|
|
66
|
-
return /* @__PURE__ */ u("div", {
|
|
67
|
-
class: p("IncodeRadioButton", k),
|
|
68
|
-
children: [
|
|
69
|
-
/* @__PURE__ */ u("label", {
|
|
70
|
-
class: p("IncodeRadioButtonLabel", { IncodeRadioButtonLabelDisabled: D }),
|
|
71
|
-
htmlFor: e,
|
|
72
|
-
children: [/* @__PURE__ */ u("div", {
|
|
73
|
-
class: "relative inline-flex",
|
|
74
|
-
children: [/* @__PURE__ */ u("input", {
|
|
75
|
-
ref: S,
|
|
76
|
-
type: "radio",
|
|
77
|
-
class: "IncodeRadioButtonInput",
|
|
78
|
-
id: e,
|
|
79
|
-
name: o,
|
|
80
|
-
value: s,
|
|
81
|
-
...T ? { checked: n } : { defaultChecked: r },
|
|
82
|
-
disabled: i,
|
|
83
|
-
required: a,
|
|
84
|
-
onChange: A,
|
|
85
|
-
"aria-label": g,
|
|
86
|
-
"aria-labelledby": _,
|
|
87
|
-
"aria-describedby": N,
|
|
88
|
-
"aria-invalid": b || !!d,
|
|
89
|
-
"aria-required": O,
|
|
90
|
-
...x
|
|
91
|
-
}), /* @__PURE__ */ u("div", {
|
|
92
|
-
class: p("IncodeRadioButtonVisual", {
|
|
93
|
-
IncodeRadioButtonVisualChecked: E,
|
|
94
|
-
IncodeRadioButtonVisualDisabled: D,
|
|
95
|
-
IncodeRadioButtonVisualError: !!d
|
|
96
|
-
}),
|
|
97
|
-
"aria-hidden": "true",
|
|
98
|
-
children: /* @__PURE__ */ u("span", { class: p("IncodeRadioButtonDot", { IncodeRadioButtonDotVisible: E }) })
|
|
99
|
-
})]
|
|
100
|
-
}), t && /* @__PURE__ */ u("span", {
|
|
101
|
-
class: p("IncodeRadioButtonText", { IncodeRadioButtonTextDisabled: D }),
|
|
102
|
-
"aria-hidden": _ ? "true" : void 0,
|
|
103
|
-
children: [t, O && /* @__PURE__ */ u("span", {
|
|
104
|
-
class: "IncodeRadioButtonRequired",
|
|
105
|
-
"aria-hidden": "true",
|
|
106
|
-
children: "*"
|
|
107
|
-
})]
|
|
108
|
-
})]
|
|
109
|
-
}),
|
|
110
|
-
d && /* @__PURE__ */ u("div", {
|
|
111
|
-
class: "IncodeRadioButtonMessageWrapper",
|
|
112
|
-
"data-testid": `${e}-error-wrapper`,
|
|
113
|
-
children: [m && /* @__PURE__ */ u("div", {
|
|
114
|
-
class: "IncodeRadioButtonIconWrapper",
|
|
115
|
-
children: /* @__PURE__ */ u(v, { size: 17 })
|
|
116
|
-
}), /* @__PURE__ */ u("p", {
|
|
117
|
-
id: M,
|
|
118
|
-
class: "IncodeRadioButtonErrorText",
|
|
119
|
-
children: d
|
|
120
|
-
})]
|
|
121
|
-
}),
|
|
122
|
-
f && !d && /* @__PURE__ */ u("div", {
|
|
123
|
-
class: "IncodeRadioButtonMessageWrapper",
|
|
124
|
-
"data-testid": `${e}-helper-wrapper`,
|
|
125
|
-
children: /* @__PURE__ */ u("p", {
|
|
126
|
-
id: j,
|
|
127
|
-
class: "IncodeRadioButtonHelperText",
|
|
128
|
-
children: f
|
|
129
|
-
})
|
|
130
|
-
})
|
|
131
|
-
]
|
|
132
|
-
});
|
|
133
|
-
}), A = r((e, t) => {
|
|
60
|
+
}), k = r((e, t) => {
|
|
134
61
|
let { class: n, rows: r = 4, ...i } = e;
|
|
135
62
|
return /* @__PURE__ */ u("textarea", {
|
|
136
63
|
...i,
|
|
@@ -138,7 +65,7 @@ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
|
|
|
138
65
|
rows: r,
|
|
139
66
|
class: p("IncodeTextArea", n)
|
|
140
67
|
});
|
|
141
|
-
}),
|
|
68
|
+
}), A = r(({ id: e, label: t, "aria-label": n, error: r, showErrorIcon: i, helper: a, showHelperIcon: o, required: s, rows: c = 4, class: l, ...d }, f) => {
|
|
142
69
|
let m = `${e}-helper`, h = `${e}-error`, g = [a ? m : null, r ? h : null].filter(Boolean).join(" ");
|
|
143
70
|
return /* @__PURE__ */ u("div", {
|
|
144
71
|
class: p("IncodeTextAreaComposed", l),
|
|
@@ -154,7 +81,7 @@ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
|
|
|
154
81
|
}),
|
|
155
82
|
/* @__PURE__ */ u("div", {
|
|
156
83
|
class: "IncodeTextAreaComposedWrapper",
|
|
157
|
-
children: /* @__PURE__ */ u(
|
|
84
|
+
children: /* @__PURE__ */ u(k, {
|
|
158
85
|
id: e,
|
|
159
86
|
rows: c,
|
|
160
87
|
...d,
|
|
@@ -193,16 +120,16 @@ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
|
|
|
193
120
|
]
|
|
194
121
|
});
|
|
195
122
|
});
|
|
196
|
-
|
|
123
|
+
A.displayName = "TextAreaComposed";
|
|
197
124
|
//#endregion
|
|
198
125
|
//#region src/shared/card/verificationOption/verificationOptionCard.tsx
|
|
199
|
-
function
|
|
126
|
+
function j({ children: e }) {
|
|
200
127
|
return /* @__PURE__ */ u("div", {
|
|
201
128
|
class: "IncodeVerificationOptionCardList",
|
|
202
129
|
children: e
|
|
203
130
|
});
|
|
204
131
|
}
|
|
205
|
-
function
|
|
132
|
+
function M({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
|
|
206
133
|
return /* @__PURE__ */ u("button", {
|
|
207
134
|
type: "button",
|
|
208
135
|
class: "IncodeVerificationOptionCard",
|
|
@@ -242,7 +169,7 @@ function ee({ label: e }) {
|
|
|
242
169
|
}
|
|
243
170
|
//#endregion
|
|
244
171
|
//#region src/shared/cameraOverlay/cameraFrame.tsx
|
|
245
|
-
var
|
|
172
|
+
var N = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameState: r = "idle", className: i, children: a }, o) => {
|
|
246
173
|
let s = `IncodeCameraFrame${r.charAt(0).toUpperCase()}${r.slice(1)}`;
|
|
247
174
|
return /* @__PURE__ */ u("div", {
|
|
248
175
|
ref: o,
|
|
@@ -251,10 +178,10 @@ var P = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
251
178
|
"aria-hidden": !0,
|
|
252
179
|
children: a
|
|
253
180
|
});
|
|
254
|
-
}),
|
|
181
|
+
}), P = ({ children: e, className: t }) => /* @__PURE__ */ u("div", {
|
|
255
182
|
class: p("IncodeCameraOverlay", t),
|
|
256
183
|
children: e
|
|
257
|
-
}),
|
|
184
|
+
}), F = ({ title: e, subtitle: t, visible: r = !0, className: i, titleId: a }) => {
|
|
258
185
|
let o = s(null);
|
|
259
186
|
return n(() => {
|
|
260
187
|
o.current?.focus();
|
|
@@ -271,7 +198,7 @@ var P = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
271
198
|
children: t
|
|
272
199
|
})]
|
|
273
200
|
});
|
|
274
|
-
},
|
|
201
|
+
}, I = ({ stream: e, children: t, videoRef: r, className: i, ...a }) => {
|
|
275
202
|
let o = s(null), c = (e) => {
|
|
276
203
|
o.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
277
204
|
};
|
|
@@ -292,7 +219,7 @@ var P = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
292
219
|
})
|
|
293
220
|
}), t]
|
|
294
221
|
});
|
|
295
|
-
},
|
|
222
|
+
}, L = ({ onOpenHelp: t, onCapture: n, isManualCapture: r, captureAriaLabel: i, captureAriaDescribedBy: a, helpAriaLabel: o, helpButtonRef: s, captureButtonRef: c, encryptionLabel: l, children: d }) => {
|
|
296
223
|
let { t: f } = e();
|
|
297
224
|
return /* @__PURE__ */ u("div", {
|
|
298
225
|
class: "IncodeCaptureFooter",
|
|
@@ -330,14 +257,14 @@ var P = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
330
257
|
};
|
|
331
258
|
//#endregion
|
|
332
259
|
//#region src/shared/manualCapture/manualCapture.tsx
|
|
333
|
-
function
|
|
260
|
+
function R(e) {
|
|
334
261
|
if (e.readyState < 2 || e.videoWidth === 0 || e.videoHeight === 0) return null;
|
|
335
262
|
let t = document.createElement("canvas");
|
|
336
263
|
t.width = e.videoWidth, t.height = e.videoHeight;
|
|
337
264
|
let n = t.getContext("2d");
|
|
338
265
|
return n ? (n.drawImage(e, 0, 0), t.toDataURL("image/jpeg", .92).split(",")[1] ?? null) : null;
|
|
339
266
|
}
|
|
340
|
-
var
|
|
267
|
+
var z = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
341
268
|
let i = s(null);
|
|
342
269
|
n(() => {
|
|
343
270
|
i.current && e && (i.current.srcObject = e, i.current.play().catch(() => {}));
|
|
@@ -345,7 +272,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
345
272
|
let a = o(() => {
|
|
346
273
|
let e = i.current;
|
|
347
274
|
if (!e || r) return;
|
|
348
|
-
let n =
|
|
275
|
+
let n = R(e);
|
|
349
276
|
n && t(n);
|
|
350
277
|
}, [t, r]);
|
|
351
278
|
return /* @__PURE__ */ u("div", {
|
|
@@ -373,7 +300,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
373
300
|
})
|
|
374
301
|
})]
|
|
375
302
|
});
|
|
376
|
-
},
|
|
303
|
+
}, B = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
377
304
|
width: "24",
|
|
378
305
|
height: "24",
|
|
379
306
|
viewBox: "0 0 24 24",
|
|
@@ -534,7 +461,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
534
461
|
children: [/* @__PURE__ */ u("div", {
|
|
535
462
|
class: "IncodeCommonIssuesCardIcon",
|
|
536
463
|
"aria-hidden": "true",
|
|
537
|
-
children: /* @__PURE__ */ u(
|
|
464
|
+
children: /* @__PURE__ */ u(B, {})
|
|
538
465
|
}), /* @__PURE__ */ u("div", {
|
|
539
466
|
class: "IncodeCommonIssuesCardText",
|
|
540
467
|
children: [/* @__PURE__ */ u("h3", {
|
|
@@ -589,7 +516,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
589
516
|
role: "presentation",
|
|
590
517
|
children: r
|
|
591
518
|
});
|
|
592
|
-
},
|
|
519
|
+
}, V = ({ imageUrl: t, orientation: n, mode: r, borderState: i, topContent: a, bottomContent: o, overlayContent: s }) => {
|
|
593
520
|
let { t: c } = e();
|
|
594
521
|
return /* @__PURE__ */ u(f, {
|
|
595
522
|
hideHeader: !0,
|
|
@@ -629,17 +556,17 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
629
556
|
})
|
|
630
557
|
})
|
|
631
558
|
});
|
|
632
|
-
},
|
|
559
|
+
}, H = ({ imageUrl: t, progress: r, orientation: i, mode: a }) => {
|
|
633
560
|
let { t: o } = e(), c = s(null), d = i !== "vertical" || a === "passport", [f, p] = l(null);
|
|
634
561
|
return n(() => {
|
|
635
562
|
c.current?.focus();
|
|
636
563
|
}, []), n(() => {
|
|
637
|
-
d ? import("./id-laser-h-
|
|
564
|
+
d ? import("./id-laser-h-DWh_BVEp.js").then((e) => {
|
|
638
565
|
p(e.default);
|
|
639
|
-
}) : import("./id-laser-v-
|
|
566
|
+
}) : import("./id-laser-v-Dvk7U4fL.js").then((e) => {
|
|
640
567
|
p(e.default);
|
|
641
568
|
});
|
|
642
|
-
}, [d]), /* @__PURE__ */ u(
|
|
569
|
+
}, [d]), /* @__PURE__ */ u(V, {
|
|
643
570
|
imageUrl: t,
|
|
644
571
|
orientation: i,
|
|
645
572
|
mode: a,
|
|
@@ -660,7 +587,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
660
587
|
className: "IncodeAnalyzingLottie"
|
|
661
588
|
}) : null
|
|
662
589
|
});
|
|
663
|
-
},
|
|
590
|
+
}, U = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
|
|
664
591
|
class: e,
|
|
665
592
|
width: "32",
|
|
666
593
|
height: "32",
|
|
@@ -673,7 +600,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
673
600
|
d: "M16 0C24.8363 0.00012782 32 7.1636 32 16C31.9999 24.8363 24.8363 31.9999 16 32C7.16362 32 7.37067e-05 24.8364 0 16C0 7.16352 7.16357 0 16 0ZM22.3486 11.2314C21.8838 10.7668 21.1503 10.736 20.6494 11.1387L20.6406 11.1455L20.5537 11.2236L13.7139 18.0635L11.4521 15.8008C10.9543 15.3032 10.1473 15.3033 9.64941 15.8008C9.18435 16.2658 9.15345 17.0008 9.55664 17.502L9.56348 17.5098L9.6416 17.5977L12.8125 20.7686C13.2775 21.2335 14.0117 21.2644 14.5127 20.8613L14.5205 20.8545L14.6084 20.7764L22.3486 13.0352C22.8467 12.5371 22.8467 11.7295 22.3486 11.2314Z",
|
|
674
601
|
fill: "#189F60"
|
|
675
602
|
})
|
|
676
|
-
}),
|
|
603
|
+
}), W = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
|
|
677
604
|
class: e,
|
|
678
605
|
width: "33",
|
|
679
606
|
height: "32",
|
|
@@ -686,11 +613,11 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
686
613
|
d: "M16.5 0C25.3219 0 32.5 7.17642 32.5 16C32.5 24.8219 25.3219 32 16.5 32C7.67811 32 0.5 24.8219 0.5 16C0.5 7.17642 7.67811 0 16.5 0ZM13.6553 11.3701C13.1618 10.8767 12.3636 10.8767 11.8701 11.3701C11.3767 11.8636 11.3767 12.6618 11.8701 13.1553L14.9053 16.1924L11.8721 19.2256C11.3803 19.7191 11.3803 20.5173 11.8721 21.0107C12.3656 21.504 13.1658 21.5041 13.6592 21.0107L16.6924 17.9775L19.7334 21.0205C19.981 21.2664 20.3029 21.3916 20.6279 21.3916C20.9513 21.3916 21.2746 21.2664 21.5205 21.0205C22.014 20.527 22.014 19.7269 21.5205 19.2334L18.4775 16.1924L21.5107 13.1572C22.0041 12.6638 22.004 11.8639 21.5107 11.3721C21.0173 10.8786 20.2191 10.8786 19.7256 11.3721L16.6904 14.4053L13.6553 11.3701Z",
|
|
687
614
|
fill: "#E71111"
|
|
688
615
|
})
|
|
689
|
-
}),
|
|
616
|
+
}), G = ({ variant: r, imageUrl: i, orientation: a, mode: o, title: c, subtitle: l, buttonText: f, onButtonClick: p, attemptsRemaining: h }) => {
|
|
690
617
|
let { t: _ } = e(), v = s(null);
|
|
691
618
|
return n(() => {
|
|
692
619
|
v.current?.focus();
|
|
693
|
-
}, []), /* @__PURE__ */ u(
|
|
620
|
+
}, []), /* @__PURE__ */ u(V, {
|
|
694
621
|
imageUrl: i,
|
|
695
622
|
orientation: a,
|
|
696
623
|
mode: o,
|
|
@@ -699,7 +626,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
699
626
|
class: "IncodeIdProcessingResultContent",
|
|
700
627
|
role: "status",
|
|
701
628
|
children: [
|
|
702
|
-
u(r === "success" ?
|
|
629
|
+
u(r === "success" ? U : W, { className: "IncodeIdProcessingResultIcon" }),
|
|
703
630
|
/* @__PURE__ */ u(d, { size: 16 }),
|
|
704
631
|
c && /* @__PURE__ */ u(m, {
|
|
705
632
|
ref: v,
|
|
@@ -725,11 +652,11 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
725
652
|
})]
|
|
726
653
|
})
|
|
727
654
|
});
|
|
728
|
-
},
|
|
655
|
+
}, K = ({ manager: t, state: n }) => {
|
|
729
656
|
let { t: r } = e();
|
|
730
657
|
if (!n.previewImageUrl) return null;
|
|
731
658
|
let i = n.currentMode === "passport" ? "passport" : "id";
|
|
732
|
-
return /* @__PURE__ */ u(
|
|
659
|
+
return /* @__PURE__ */ u(G, {
|
|
733
660
|
variant: "success",
|
|
734
661
|
imageUrl: n.previewImageUrl,
|
|
735
662
|
orientation: n.orientation,
|
|
@@ -739,7 +666,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
739
666
|
buttonText: n.needsBackCapture ? r("idv2.capture.processing.scanBack") : n.needsFrontCapture ? r("idv2.capture.processing.scanFront") : r("idv2.capturePreview.continue"),
|
|
740
667
|
onButtonClick: () => t.nextStep()
|
|
741
668
|
});
|
|
742
|
-
},
|
|
669
|
+
}, q = ({ manager: t, state: n, ...r }) => {
|
|
743
670
|
let { t: i } = e();
|
|
744
671
|
if (n.status === "error") return /* @__PURE__ */ u("div", {
|
|
745
672
|
class: "IncodeIdError",
|
|
@@ -754,7 +681,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
754
681
|
})]
|
|
755
682
|
});
|
|
756
683
|
let a = n.currentMode === "passport" ? "passport" : "id";
|
|
757
|
-
return n.previewImageUrl ? /* @__PURE__ */ u(
|
|
684
|
+
return n.previewImageUrl ? /* @__PURE__ */ u(G, {
|
|
758
685
|
variant: "error",
|
|
759
686
|
imageUrl: n.previewImageUrl,
|
|
760
687
|
orientation: n.orientation,
|
|
@@ -765,7 +692,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
765
692
|
onButtonClick: () => t.continueFromError(),
|
|
766
693
|
attemptsRemaining: n.attemptsRemaining
|
|
767
694
|
}) : null;
|
|
768
|
-
},
|
|
695
|
+
}, J = ({ manager: t }) => {
|
|
769
696
|
let { t: r } = e(), i = s(null);
|
|
770
697
|
return n(() => {
|
|
771
698
|
i.current?.focus();
|
|
@@ -777,7 +704,7 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
777
704
|
class: "IncodeIdExpiredContent",
|
|
778
705
|
role: "alert",
|
|
779
706
|
children: [
|
|
780
|
-
/* @__PURE__ */ u(
|
|
707
|
+
/* @__PURE__ */ u(W, { className: "IncodeIdExpiredIcon" }),
|
|
781
708
|
/* @__PURE__ */ u(m, {
|
|
782
709
|
ref: i,
|
|
783
710
|
tabIndex: -1,
|
|
@@ -803,11 +730,11 @@ var B = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
803
730
|
})]
|
|
804
731
|
});
|
|
805
732
|
}, Y = /* @__PURE__ */ new Map(), X = !1, Z = {
|
|
806
|
-
blur: () => import("./blurdevicelottie-
|
|
807
|
-
glare: () => import("./glaredevicelottie-
|
|
808
|
-
align: () => import("./aligndevicelottie-
|
|
809
|
-
front: () => import("./frontdevicelottie-
|
|
810
|
-
back: () => import("./backdevicelottie-
|
|
733
|
+
blur: () => import("./blurdevicelottie-Bw43-G1P.js"),
|
|
734
|
+
glare: () => import("./glaredevicelottie-dg9fVsGy.js"),
|
|
735
|
+
align: () => import("./aligndevicelottie-C6Ed_QzW.js"),
|
|
736
|
+
front: () => import("./frontdevicelottie-Cho1olXp.js"),
|
|
737
|
+
back: () => import("./backdevicelottie-mGREI6Py.js")
|
|
811
738
|
};
|
|
812
739
|
function Q(e) {
|
|
813
740
|
X || (X = !0, Promise.all([
|
|
@@ -820,15 +747,15 @@ function Q(e) {
|
|
|
820
747
|
Y.set("blur", t.default), Y.set("glare", n.default), Y.set("align", r.default), Y.set("front", i.default), Y.set("back", a.default), e?.();
|
|
821
748
|
}).catch(() => {}));
|
|
822
749
|
}
|
|
823
|
-
function
|
|
750
|
+
function oe() {
|
|
824
751
|
Q();
|
|
825
752
|
}
|
|
826
|
-
function
|
|
753
|
+
function se() {
|
|
827
754
|
n(() => {
|
|
828
|
-
|
|
755
|
+
oe();
|
|
829
756
|
}, []);
|
|
830
757
|
}
|
|
831
|
-
function
|
|
758
|
+
function ce(t, r) {
|
|
832
759
|
let { t: i } = e(), [, a] = l(0);
|
|
833
760
|
if (n(() => {
|
|
834
761
|
Q(() => a((e) => e + 1));
|
|
@@ -859,8 +786,8 @@ function le(t, r) {
|
|
|
859
786
|
}
|
|
860
787
|
//#endregion
|
|
861
788
|
//#region src/modules/id/capture/captureNotification.tsx
|
|
862
|
-
var
|
|
863
|
-
let { t: c } = e(), l =
|
|
789
|
+
var le = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
|
|
790
|
+
let { t: c } = e(), l = ce(r, i), f = s(null), m = s({
|
|
864
791
|
message: "",
|
|
865
792
|
at: 0
|
|
866
793
|
}), h = s(r), g = s(!1), _ = s(), v = s(), y = r === "detecting" || r === "idNotDetected" || r === "manualCapture", b = r === "manualCapture", x = r === "wrongSide", S = r === "farAway", w = r === "glare", T = r === "blur", E = o((e) => {
|
|
@@ -969,34 +896,34 @@ var ue = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
|
|
|
969
896
|
]
|
|
970
897
|
})
|
|
971
898
|
}) : null] });
|
|
972
|
-
},
|
|
899
|
+
}, ue = i(() => import("./front-horizontal-hint-BSKWj6i6.js")), de = i(() => import("./front-vertical-hint-BYdzIVbN.js")), fe = i(() => import("./back-horizontal-hint-DvZDkdvV.js")), pe = i(() => import("./back-vertical-hint-CzuG1Hve.js")), me = i(() => import("./passport-horizontal-hint-2XF3bnIM.js")), he = i(() => import("./passport-vertical-hint-BcYR5CAS.js")), ge = {
|
|
973
900
|
"front-horizontal": 348,
|
|
974
901
|
"back-horizontal": 348,
|
|
975
902
|
"passport-horizontal": 342
|
|
976
|
-
},
|
|
903
|
+
}, _e = {
|
|
977
904
|
"front-vertical": 446,
|
|
978
905
|
"back-vertical": 446,
|
|
979
906
|
"passport-vertical": 342
|
|
980
907
|
};
|
|
981
|
-
function
|
|
982
|
-
let i = `${e}-${t}`, a =
|
|
908
|
+
function ve(e, t, n, r) {
|
|
909
|
+
let i = `${e}-${t}`, a = ge[i];
|
|
983
910
|
if (a) return n / a;
|
|
984
|
-
let o =
|
|
911
|
+
let o = _e[i];
|
|
985
912
|
return o ? r / o : 1;
|
|
986
913
|
}
|
|
987
|
-
var
|
|
914
|
+
var ye = ({ mode: e, orientation: t }) => {
|
|
988
915
|
let r = s(null), [i, a] = l(1);
|
|
989
916
|
n(() => {
|
|
990
917
|
let n = r.current;
|
|
991
918
|
if (!n) return;
|
|
992
919
|
let i = () => {
|
|
993
|
-
a(
|
|
920
|
+
a(ve(e, t, n.clientWidth, n.clientHeight));
|
|
994
921
|
};
|
|
995
922
|
i();
|
|
996
923
|
let o = new ResizeObserver(i);
|
|
997
924
|
return o.observe(n), () => o.disconnect();
|
|
998
925
|
}, [e, t]);
|
|
999
|
-
let o = () => e === "front" ? u(t === "horizontal" ?
|
|
926
|
+
let o = () => e === "front" ? u(t === "horizontal" ? ue : de, {}) : e === "back" ? u(t === "horizontal" ? fe : pe, {}) : e === "passport" ? u(t === "horizontal" ? me : he, {}) : null;
|
|
1000
927
|
return /* @__PURE__ */ u("div", {
|
|
1001
928
|
ref: r,
|
|
1002
929
|
class: "IncodeIdHint",
|
|
@@ -1014,9 +941,9 @@ var be = ({ mode: e, orientation: t }) => {
|
|
|
1014
941
|
})
|
|
1015
942
|
})
|
|
1016
943
|
});
|
|
1017
|
-
},
|
|
944
|
+
}, be = r(({ mode: t, orientation: r, detectionStatus: i, counterValue: o, isCapturing: s, showManualCapture: c, onCapture: l, onOpenHelp: d, helpButtonRef: f, captureButtonRef: m }, h) => {
|
|
1018
945
|
let { t: g } = e();
|
|
1019
|
-
|
|
946
|
+
se(), n(() => {
|
|
1020
947
|
c && m && m.current?.focus();
|
|
1021
948
|
}, [c, m]);
|
|
1022
949
|
let _ = () => s || i === "capturing" ? "capturing" : i === "blur" || i === "glare" || i === "wrongSide" || i === "farAway" ? "error" : "idle", v = a(() => {
|
|
@@ -1044,23 +971,23 @@ var be = ({ mode: e, orientation: t }) => {
|
|
|
1044
971
|
t,
|
|
1045
972
|
g
|
|
1046
973
|
]), y = _(), b = t === "passport", x = r !== "vertical" || b, S = x ? "horizontal" : "vertical";
|
|
1047
|
-
return /* @__PURE__ */ u(
|
|
974
|
+
return /* @__PURE__ */ u(P, {
|
|
1048
975
|
className: p("IncodeCaptureOverlayId", !x && "IncodeCaptureOverlayVertical"),
|
|
1049
976
|
children: [
|
|
1050
977
|
/* @__PURE__ */ u("div", {
|
|
1051
978
|
class: "IncodeCaptureTopSection",
|
|
1052
|
-
children: [/* @__PURE__ */ u(
|
|
979
|
+
children: [/* @__PURE__ */ u(le, {
|
|
1053
980
|
detectionStatus: i,
|
|
1054
981
|
mode: t,
|
|
1055
982
|
isCapturing: s
|
|
1056
|
-
}), /* @__PURE__ */ u(
|
|
983
|
+
}), /* @__PURE__ */ u(F, {
|
|
1057
984
|
title: v?.title ?? "",
|
|
1058
985
|
subtitle: v?.subtitle,
|
|
1059
986
|
visible: v !== null,
|
|
1060
987
|
titleId: "id-capture-heading"
|
|
1061
988
|
})]
|
|
1062
989
|
}),
|
|
1063
|
-
/* @__PURE__ */ u(
|
|
990
|
+
/* @__PURE__ */ u(N, {
|
|
1064
991
|
ref: h,
|
|
1065
992
|
variant: "locked",
|
|
1066
993
|
orientation: S,
|
|
@@ -1069,7 +996,7 @@ var be = ({ mode: e, orientation: t }) => {
|
|
|
1069
996
|
children: [s && o > 0 && /* @__PURE__ */ u("div", {
|
|
1070
997
|
class: "IncodeCaptureCounter",
|
|
1071
998
|
children: o
|
|
1072
|
-
}), i === "idNotDetected" && /* @__PURE__ */ u(
|
|
999
|
+
}), i === "idNotDetected" && /* @__PURE__ */ u(ye, {
|
|
1073
1000
|
mode: t,
|
|
1074
1001
|
orientation: r ?? "horizontal"
|
|
1075
1002
|
})]
|
|
@@ -1080,7 +1007,7 @@ var be = ({ mode: e, orientation: t }) => {
|
|
|
1080
1007
|
"aria-atomic": "true",
|
|
1081
1008
|
children: s && o > 0 ? o : ""
|
|
1082
1009
|
}),
|
|
1083
|
-
/* @__PURE__ */ u(
|
|
1010
|
+
/* @__PURE__ */ u(L, {
|
|
1084
1011
|
onOpenHelp: d,
|
|
1085
1012
|
onCapture: l,
|
|
1086
1013
|
isManualCapture: c,
|
|
@@ -1102,27 +1029,27 @@ var be = ({ mode: e, orientation: t }) => {
|
|
|
1102
1029
|
})
|
|
1103
1030
|
]
|
|
1104
1031
|
});
|
|
1105
|
-
}),
|
|
1032
|
+
}), $ = ({ manager: e, state: t }) => {
|
|
1106
1033
|
if (t.captureStatus === "uploading" && t.previewImageUrl) {
|
|
1107
1034
|
let e = t.currentMode === "passport" ? "passport" : "id";
|
|
1108
|
-
return /* @__PURE__ */ u(
|
|
1035
|
+
return /* @__PURE__ */ u(H, {
|
|
1109
1036
|
imageUrl: t.previewImageUrl,
|
|
1110
1037
|
progress: t.uploadProgress ?? 0,
|
|
1111
1038
|
orientation: t.orientation,
|
|
1112
1039
|
mode: e
|
|
1113
1040
|
});
|
|
1114
1041
|
}
|
|
1115
|
-
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(
|
|
1042
|
+
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(K, {
|
|
1116
1043
|
manager: e,
|
|
1117
1044
|
state: t
|
|
1118
|
-
}) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ u(
|
|
1045
|
+
}) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ u(q, {
|
|
1119
1046
|
manager: e,
|
|
1120
1047
|
state: t
|
|
1121
|
-
}) : /* @__PURE__ */ u(
|
|
1048
|
+
}) : /* @__PURE__ */ u(xe, {
|
|
1122
1049
|
manager: e,
|
|
1123
1050
|
state: t
|
|
1124
1051
|
});
|
|
1125
|
-
},
|
|
1052
|
+
}, xe = ({ manager: e, state: t }) => {
|
|
1126
1053
|
let r = s(null), i = s(null), a = s(null), o = s(null), c = s(null), [d, p] = l(!1), [m, h] = l(!1);
|
|
1127
1054
|
n(() => {
|
|
1128
1055
|
let e = r.current;
|
|
@@ -1167,10 +1094,10 @@ var be = ({ mode: e, orientation: t }) => {
|
|
|
1167
1094
|
hideFooterBranding: !0,
|
|
1168
1095
|
className: "IncodeIdCapturePage",
|
|
1169
1096
|
children: [
|
|
1170
|
-
/* @__PURE__ */ u(
|
|
1097
|
+
/* @__PURE__ */ u(I, {
|
|
1171
1098
|
stream: t.stream,
|
|
1172
1099
|
"aria-hidden": d || void 0,
|
|
1173
|
-
children: /* @__PURE__ */ u(
|
|
1100
|
+
children: /* @__PURE__ */ u(be, {
|
|
1174
1101
|
ref: i,
|
|
1175
1102
|
mode: t.currentMode,
|
|
1176
1103
|
orientation: t.orientation,
|
|
@@ -1193,14 +1120,14 @@ var be = ({ mode: e, orientation: t }) => {
|
|
|
1193
1120
|
})
|
|
1194
1121
|
]
|
|
1195
1122
|
});
|
|
1196
|
-
},
|
|
1123
|
+
}, Se = ({ manager: t, state: r }) => {
|
|
1197
1124
|
let { t: i } = e(), [a, o] = l(!1), [s, c] = l(null), d = r.selectedDocumentType === "passport", f = r.currentMode === "back";
|
|
1198
1125
|
if (n(() => {
|
|
1199
|
-
d ? import("./passport-tutorial-
|
|
1126
|
+
d ? import("./passport-tutorial-cKfi7FGo.js").then((e) => {
|
|
1200
1127
|
c(e.default);
|
|
1201
|
-
}) : f ? import("./back-tutorial-
|
|
1128
|
+
}) : f ? import("./back-tutorial-CG_LPTUE.js").then((e) => {
|
|
1202
1129
|
c(e.default);
|
|
1203
|
-
}) : import("./id-tutorial-
|
|
1130
|
+
}) : import("./id-tutorial-DsrHcnNV.js").then((e) => {
|
|
1204
1131
|
c(e.default);
|
|
1205
1132
|
});
|
|
1206
1133
|
}, [d, f]), !s) return /* @__PURE__ */ u(h, {
|
|
@@ -1221,7 +1148,7 @@ var be = ({ mode: e, orientation: t }) => {
|
|
|
1221
1148
|
isLoading: a,
|
|
1222
1149
|
className: p("IncodeIdTutorial", d ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId")
|
|
1223
1150
|
});
|
|
1224
|
-
},
|
|
1151
|
+
}, Ce = {
|
|
1225
1152
|
digitalIdUpload: {
|
|
1226
1153
|
type: "digitalIdUpload",
|
|
1227
1154
|
icon: () => /* @__PURE__ */ u("svg", {
|
|
@@ -2258,16 +2185,16 @@ var be = ({ mode: e, orientation: t }) => {
|
|
|
2258
2185
|
};
|
|
2259
2186
|
//#endregion
|
|
2260
2187
|
//#region src/modules/id/chooser/chooser.helpers.ts
|
|
2261
|
-
function
|
|
2188
|
+
function we(e) {
|
|
2262
2189
|
return e.reduce((e, t) => {
|
|
2263
|
-
let n =
|
|
2190
|
+
let n = Ce[t];
|
|
2264
2191
|
return n && e.push(n), e;
|
|
2265
2192
|
}, []).sort((e, t) => e.weight - t.weight);
|
|
2266
2193
|
}
|
|
2267
2194
|
//#endregion
|
|
2268
2195
|
//#region src/modules/id/chooser/chooser.tsx
|
|
2269
|
-
var
|
|
2270
|
-
let { t: r } = e(), i = a(() =>
|
|
2196
|
+
var Te = ({ manager: t, state: n }) => {
|
|
2197
|
+
let { t: r } = e(), i = a(() => we(n.availableDocumentTypes), [n.availableDocumentTypes]), o = (e) => {
|
|
2271
2198
|
t.selectDocument(e);
|
|
2272
2199
|
};
|
|
2273
2200
|
return /* @__PURE__ */ u(f, {
|
|
@@ -2276,7 +2203,7 @@ var Ee = ({ manager: t, state: n }) => {
|
|
|
2276
2203
|
className: "IncodeChooserPage",
|
|
2277
2204
|
children: /* @__PURE__ */ u("div", {
|
|
2278
2205
|
class: "IncodeChooserContainer",
|
|
2279
|
-
children: /* @__PURE__ */ u(
|
|
2206
|
+
children: /* @__PURE__ */ u(j, { children: i.map((e) => /* @__PURE__ */ u(M, {
|
|
2280
2207
|
icon: e.icon,
|
|
2281
2208
|
title: r(e.title),
|
|
2282
2209
|
testId: e.testId,
|
|
@@ -2285,10 +2212,10 @@ var Ee = ({ manager: t, state: n }) => {
|
|
|
2285
2212
|
}, e.type)) })
|
|
2286
2213
|
})
|
|
2287
2214
|
});
|
|
2288
|
-
},
|
|
2215
|
+
}, Ee = ({ manager: t, direction: r }) => {
|
|
2289
2216
|
let [i, a] = l(null), [s, c] = l(!1), { t: f } = e();
|
|
2290
2217
|
n(() => {
|
|
2291
|
-
import("./flip-animation-
|
|
2218
|
+
import("./flip-animation-CAqT4nr6.js").then((e) => {
|
|
2292
2219
|
a(e.default);
|
|
2293
2220
|
});
|
|
2294
2221
|
}, []);
|
|
@@ -2317,4 +2244,4 @@ var Ee = ({ manager: t, state: n }) => {
|
|
|
2317
2244
|
}) : null;
|
|
2318
2245
|
};
|
|
2319
2246
|
//#endregion
|
|
2320
|
-
export {
|
|
2247
|
+
export { O as _, J as a, L as c, P as d, N as f, k as g, A as h, $ as i, I as l, j as m, Te as n, q as o, M as p, Se as r, z as s, Ee as t, F as u, D as v };
|