@incodetech/web 0.0.0-dev-20260508-00bc415 → 0.0.0-dev-20260508-2ed9245
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/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/consent/consent.es.js +7 -7
- package/dist/{countrySelector-CxwhZU7X.js → countrySelector-CoffOdbC.js} +2 -2
- package/dist/{cpfOcr-BzoRvWuh.js → cpfOcr-BYlfZY40.js} +1 -1
- package/dist/cross-document-data-match/cross-document-data-match.es.js +2 -2
- package/dist/curp-validation/curp-validation.es.js +10 -10
- package/dist/{customFields-64Wcgiwr.js → customFields-BraeAxZp.js} +6 -6
- package/dist/{customWatchlist-BT1PQfoG.js → customWatchlist-CFFQpv_v.js} +4 -4
- package/dist/{documentCapture-DY9gBtL3.js → documentCapture-DPlR8XwV.js} +6 -6
- package/dist/dropdownComposed-BvVIyMBo.js +1 -0
- package/dist/{dynamicForms-DVcc_LgI.js → dynamicForms-iowHKj2D.js} +9 -9
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-C3lXG2tC.js → ekybModule-BFOWbi7v.js} +9 -9
- package/dist/ekybModule-VFeaId2k.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-L1RBjKZI.js → ekycModule-BPi7gpEg.js} +11 -11
- package/dist/ekycModule-DvRBzbaa.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BeiUCIMV.js → electronic-signature-Cio3QpBY.js} +6 -6
- package/dist/email/email.es.js +5 -5
- package/dist/{emailInput-D9okrB8A.js → emailInput-1AO-Fmsw.js} +2 -2
- package/dist/{extensibility-C1ysVDds.js → extensibility-CL6pOTDM.js} +153 -456
- package/dist/extensibility.es.js +15 -15
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/{faceMatch-B6hGcl2-.js → faceMatch-BtHZNJ0A.js} +5 -5
- package/dist/faceMatch-Drzy4xup.js +2 -0
- package/dist/flow/flow.es.js +6 -6
- package/dist/{formField-BkU7EVsS.js → formField-DHnOQD0l.js} +1 -1
- package/dist/geolocation/geolocation.es.js +4 -4
- package/dist/governmentValidation/governmentValidation.es.js +5 -5
- package/dist/{homeScreen-DprCAAmv.js → homeScreen-CmsrGndM.js} +3 -3
- package/dist/{i18n-BnVa5Y-_.js → i18n-D6pCC7RL.js} +1 -1
- package/dist/id/id.es.js +10 -10
- package/dist/{idOcr-Lsc8NxXa.js → idOcr-DQtsITAI.js} +30 -31
- package/dist/identity-reuse/identity-reuse.es.js +3 -3
- package/dist/{incodeComponent-9ZUPvQgC.js → incodeComponent-BRtpx7iO.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-BVUiGOKK.js → mandatoryConsent-CCXO_vxQ.js} +6 -6
- package/dist/{optionAccessibleLabel-BNqnKbwB.js → optionAccessibleLabel-D-791Qve.js} +3 -3
- package/dist/{otpInput-CLo5__yb.js → otpInput-S08V9UR2.js} +1 -2
- package/dist/{pdf-BK9eYHAw.js → pdf-DL0w_-nc.js} +1 -1
- package/dist/phone/phone.es.js +6 -6
- package/dist/{phoneInputComposed-bvWhGLFZ.js → phoneInputComposed-Dl4rnkJh.js} +1 -1
- package/dist/{processing-c8ep-KSh.js → processing-Byt0PHxP.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{redirectToMobile-Cg-BpzrT.js → redirectToMobile-CDqR2ADA.js} +8 -8
- package/dist/{richText-gJTUJEMX.js → richText-oCMMhPa2.js} +1 -1
- package/dist/segmentedDateInput-DIZb0ruK.js +348 -0
- package/dist/segmentedDateInput-DI_bDhHG.js +1 -0
- package/dist/selfie/selfie.es.js +6 -6
- package/dist/signature/signature.es.js +6 -6
- package/dist/{transitionSpinner-av72n-l1.js → transitionSpinner-DHelnP9m.js} +1 -1
- package/dist/{tutorial-BvRU4P4P.js → tutorial-CpB1q1y3.js} +5 -5
- package/dist/{useModuleLoader-Hkfm3FWm.js → useModuleLoader-DR_UitYZ.js} +15 -15
- package/dist/{verificationResult-9weGpvn5.js → verificationResult-Boi07OiG.js} +1 -1
- package/dist/watchlist/watchlist.es.js +4 -4
- package/dist/{watchlistForBusiness-DjgJnsPT.js → watchlistForBusiness-k2IqUCN_.js} +5 -5
- package/dist/workflow/workflow.es.js +6 -6
- package/package.json +2 -2
- package/dist/dateInputComposed-B4IHGFn2.js +0 -1
- package/dist/dateInputComposed-YUmNQwOo.js +0 -44
- package/dist/dropdownComposed-DwTzc2YU.js +0 -1
- package/dist/ekybModule-B92LkG1f.js +0 -2
- package/dist/ekycModule-Dl44pQfM.js +0 -2
- package/dist/faceMatch-Dh01E8Zv.js +0 -2
- package/dist/inputComposed-XYrarFxS.js +0 -1
- /package/dist/{aligndevicelottie-CpAPbotJ.js → aligndevicelottie-Dfs3Ku2-.js} +0 -0
- /package/dist/{autoFocusTitle-C01okScG.js → autoFocusTitle-CZoNkxcF.js} +0 -0
- /package/dist/{back-horizontal-hint-C_wAUpW0.js → back-horizontal-hint-Cch8dR2s.js} +0 -0
- /package/dist/{back-tutorial-H9SCe0gx.js → back-tutorial-DCeMC-YK.js} +0 -0
- /package/dist/{back-vertical-hint-C9xK0aN8.js → back-vertical-hint-Dzn5uXKH.js} +0 -0
- /package/dist/{backdevicelottie-Dx1dP2K0.js → backdevicelottie-B4ve1L_u.js} +0 -0
- /package/dist/{blurdevicelottie-DCVb3_MF.js → blurdevicelottie-DIQrsw9H.js} +0 -0
- /package/dist/{bottomSheet-CLMmiBQS.js → bottomSheet-DE_8TFEC.js} +0 -0
- /package/dist/{browser-ponyfill-Dxc09_1M.js → browser-ponyfill-Dqca0y49.js} +0 -0
- /package/dist/{checkbox-Cl57ltq_.js → checkbox-CfusZiOJ.js} +0 -0
- /package/dist/{defineProperty-CqT6YdHJ.js → defineProperty-CplHoz4_.js} +0 -0
- /package/dist/{dropdownComposed-DFRBG22E.js → dropdownComposed-Cmj-HO0i.js} +0 -0
- /package/dist/{flip-animation-CviBXTS-.js → flip-animation-B1zV6oY9.js} +0 -0
- /package/dist/{front-horizontal-hint-SvDdygvL.js → front-horizontal-hint-CNu99K_l.js} +0 -0
- /package/dist/{front-vertical-hint-vIniWZ_9.js → front-vertical-hint-CpQjOGpU.js} +0 -0
- /package/dist/{frontdevicelottie-6sxr3oQH.js → frontdevicelottie-D3Gw7Qab.js} +0 -0
- /package/dist/{glaredevicelottie--PlYPjZt.js → glaredevicelottie-BPRxXRbG.js} +0 -0
- /package/dist/{id-laser-h-D0KN9qFd.js → id-laser-h-BUV5ROmy.js} +0 -0
- /package/dist/{id-laser-v-BLY6XMRK.js → id-laser-v-DzsdfzVM.js} +0 -0
- /package/dist/{id-tutorial-Dnuu_ZUb.js → id-tutorial-B2d6DkZv.js} +0 -0
- /package/dist/{incodeModule-D_r2n18O.js → incodeModule-grHfB1zI.js} +0 -0
- /package/dist/{numberedStep-CR4w_BpM.js → numberedStep-CT-alrK5.js} +0 -0
- /package/dist/{passport-horizontal-hint-Bxb4tVrA.js → passport-horizontal-hint-WqdYMc9Y.js} +0 -0
- /package/dist/{passport-tutorial-CFp2zeDJ.js → passport-tutorial-DYBRCYAN.js} +0 -0
- /package/dist/{passport-vertical-hint-D6hgaXKT.js → passport-vertical-hint-rNP6GykM.js} +0 -0
- /package/dist/{radioGroupComposed-B74fc1L3.js → radioGroupComposed-CEw7kuBy.js} +0 -0
- /package/dist/{requiredLabelHint-J9rEJWcF.js → requiredLabelHint-DF0yOi3G.js} +0 -0
- /package/dist/{selfieTutorial-1QMt37Us.js → selfieTutorial-CMc0HW_O.js} +0 -0
- /package/dist/{snackbar-BVeXpux9.js → snackbar-B3hIVhgk.js} +0 -0
- /package/dist/{statusPage-BvmC0O1t.js → statusPage-DXmurxxX.js} +0 -0
- /package/dist/{tabs-MPYTnMQG.js → tabs-D-xvkepW.js} +0 -0
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-D6pCC7RL.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
4
|
import { n as d, t as f } from "./hooks-BVnGysT7.js";
|
|
5
|
-
import "./incodeComponent-
|
|
5
|
+
import "./incodeComponent-BRtpx7iO.js";
|
|
6
6
|
import { n as p, r as m } from "./loadingIcon-BN5YRQUb.js";
|
|
7
7
|
import { t as h } from "./page-DCsXSlHl.js";
|
|
8
8
|
import { t as g } from "./typography-CxjaknHN.js";
|
|
9
9
|
import { t as _ } from "./spinner-CKnjVHxw.js";
|
|
10
10
|
import "./spinner-B4dcie2T.js";
|
|
11
|
-
import "./processing-
|
|
11
|
+
import "./processing-Byt0PHxP.js";
|
|
12
12
|
import { t as v } from "./button-DcCUEn2n.js";
|
|
13
13
|
import { f as y, g as b, i as x, m as S, r as C, s as w, t as T } from "./icons-Cc7zwchP.js";
|
|
14
14
|
import { t as E } from "./successIcon-DbILeIz_.js";
|
|
15
15
|
import { t as D } from "./modal-XTO80Vsu.js";
|
|
16
|
-
import { a as O, i as ee } from "./tutorial-
|
|
17
|
-
import "./verificationResult-
|
|
18
|
-
import "./inputComposed-APSw8C7o.js";
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./bottomSheet-CLMmiBQS.js";
|
|
16
|
+
import { a as O, i as ee } from "./tutorial-CpB1q1y3.js";
|
|
17
|
+
import "./verificationResult-Boi07OiG.js";
|
|
18
|
+
import { t as k } from "./inputComposed-APSw8C7o.js";
|
|
19
|
+
import "./otpInput-S08V9UR2.js";
|
|
20
|
+
import "./checkbox-CfusZiOJ.js";
|
|
21
|
+
import "./formField-DHnOQD0l.js";
|
|
22
|
+
import "./phoneInputComposed-Dl4rnkJh.js";
|
|
23
|
+
import "./dropdownComposed-BvVIyMBo.js";
|
|
24
|
+
import "./segmentedDateInput-DI_bDhHG.js";
|
|
25
|
+
import "./radioGroupComposed-CEw7kuBy.js";
|
|
26
|
+
import "./bottomSheet-DE_8TFEC.js";
|
|
28
27
|
import "@incodetech/core/id";
|
|
29
28
|
//#region src/shared/overlay/overlay.tsx
|
|
30
29
|
var te = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("div", {
|
|
@@ -39,7 +38,7 @@ var te = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u(
|
|
|
39
38
|
children: e
|
|
40
39
|
})
|
|
41
40
|
})
|
|
42
|
-
}),
|
|
41
|
+
}), A = ({ progress: e, label: n, className: r }) => /* @__PURE__ */ u("div", {
|
|
43
42
|
class: p("IncodeProgressBarContainer", r),
|
|
44
43
|
children: [/* @__PURE__ */ u("div", {
|
|
45
44
|
class: "IncodeProgressBar",
|
|
@@ -56,347 +55,45 @@ var te = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u(
|
|
|
56
55
|
class: "IncodeProgressBarLabel",
|
|
57
56
|
children: n
|
|
58
57
|
})] }) : null]
|
|
59
|
-
}),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}, j = (e) => {
|
|
64
|
-
if (!e) return A;
|
|
65
|
-
let t = ne.exec(e);
|
|
66
|
-
return t ? {
|
|
67
|
-
yyyy: t[1],
|
|
68
|
-
mm: t[2],
|
|
69
|
-
dd: t[3]
|
|
70
|
-
} : A;
|
|
71
|
-
}, M = (e, t, n) => {
|
|
72
|
-
if (e < 1 || t < 1 || t > 12 || n < 1 || n > 31) return !1;
|
|
73
|
-
let r = new Date(e, t - 1, n);
|
|
74
|
-
return r.getFullYear() === e && r.getMonth() === t - 1 && r.getDate() === n;
|
|
75
|
-
}, ie = (e, t) => {
|
|
76
|
-
let n = Number(e);
|
|
77
|
-
if (!Number.isFinite(n) || n < 1 || n > 12) return 31;
|
|
78
|
-
let r = Number(t), i = Number.isFinite(r) && r > 0 && t.length === 4 ? r : 2001;
|
|
79
|
-
return new Date(i, n, 0).getDate();
|
|
80
|
-
}, ae = ({ mm: e, dd: t, yyyy: n }) => {
|
|
81
|
-
if (n.length !== 4 || e.length === 0 || t.length === 0) return "";
|
|
82
|
-
let r = Number(n), i = Number(e), a = Number(t);
|
|
83
|
-
return M(r, i, a) ? `${n}-${String(i).padStart(2, "0")}-${String(a).padStart(2, "0")}` : "";
|
|
84
|
-
}, oe = (e) => {
|
|
85
|
-
try {
|
|
86
|
-
let t = new Intl.DateTimeFormat(e || void 0).formatToParts(new Date(2e3, 0, 15)), n = [];
|
|
87
|
-
for (let e of t) e.type === "year" ? n.push("yyyy") : e.type === "month" ? n.push("mm") : e.type === "day" && n.push("dd");
|
|
88
|
-
if (n.length === 3 && new Set(n).size === 3) return n;
|
|
89
|
-
} catch {}
|
|
90
|
-
return [
|
|
91
|
-
"mm",
|
|
92
|
-
"dd",
|
|
93
|
-
"yyyy"
|
|
94
|
-
];
|
|
95
|
-
}, se = (e) => {
|
|
96
|
-
let t = {
|
|
97
|
-
mm: null,
|
|
98
|
-
dd: null,
|
|
99
|
-
yyyy: null
|
|
100
|
-
}, n = {
|
|
101
|
-
mm: null,
|
|
102
|
-
dd: null,
|
|
103
|
-
yyyy: null
|
|
104
|
-
};
|
|
105
|
-
return e.forEach((r, i) => {
|
|
106
|
-
t[r] = e[i + 1] ?? null, n[r] = e[i - 1] ?? null;
|
|
107
|
-
}), {
|
|
108
|
-
next: t,
|
|
109
|
-
prev: n
|
|
110
|
-
};
|
|
111
|
-
}, N = {
|
|
112
|
-
mm: {
|
|
113
|
-
min: 1,
|
|
114
|
-
max: 12,
|
|
115
|
-
pad: 2
|
|
116
|
-
},
|
|
117
|
-
dd: {
|
|
118
|
-
min: 1,
|
|
119
|
-
max: 31,
|
|
120
|
-
pad: 2
|
|
121
|
-
},
|
|
122
|
-
yyyy: {
|
|
123
|
-
min: 1,
|
|
124
|
-
max: 9999,
|
|
125
|
-
pad: 4
|
|
126
|
-
}
|
|
127
|
-
}, ce = {
|
|
128
|
-
mm: 1,
|
|
129
|
-
dd: 3,
|
|
130
|
-
yyyy: 9
|
|
131
|
-
}, P = (e, t) => String(t).padStart(N[e].pad, "0"), le = (e, t, n) => {
|
|
132
|
-
let { min: r, max: i } = N[e];
|
|
133
|
-
if (t === "") return e === "yyyy" ? P(e, (/* @__PURE__ */ new Date()).getFullYear()) : P(e, n === 1 ? r : i);
|
|
134
|
-
let a = Number(t);
|
|
135
|
-
if (Number.isNaN(a)) return P(e, r);
|
|
136
|
-
let o = a + n;
|
|
137
|
-
return o > i && (o = r), o < r && (o = i), P(e, o);
|
|
138
|
-
}, F = r(({ id: r, label: i, labelHint: o, "aria-label": c, error: d, showErrorIcon: f, helper: m, showHelperIcon: h, required: g, suppressMessages: _ = !1, class: v, value: y, onInput: x, disabled: C, min: w, max: T, name: D, autocomplete: O, autoComplete: ee, ...te }, k) => {
|
|
139
|
-
let { i18n: A } = e(), M = a(() => oe(A.language), [A.language]), F = a(() => se(M), [M]), I = typeof ee == "string" ? ee : typeof O == "string" ? O : void 0, ue = (e) => I ? I === "bday" ? e === "mm" ? "bday-month" : e === "dd" ? "bday-day" : "bday-year" : I : "off", de = I ?? void 0, L = s(null), R = {
|
|
140
|
-
mm: s(null),
|
|
141
|
-
dd: s(null),
|
|
142
|
-
yyyy: s(null)
|
|
143
|
-
}, [z, B] = l(() => j(y));
|
|
144
|
-
n(() => {
|
|
145
|
-
B((e) => ae(e) === (y ?? "") ? e : j(y));
|
|
146
|
-
}, [y]), n(() => {
|
|
147
|
-
let e = L.current;
|
|
148
|
-
if (!e) return;
|
|
149
|
-
let t = y ?? "";
|
|
150
|
-
e.value !== t && (e.value = t);
|
|
151
|
-
}, [y]);
|
|
152
|
-
let V = (e) => {
|
|
153
|
-
L.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
|
|
154
|
-
}, H = `${r}-label`, U = `${r}-helper`, W = `${r}-error`, G = `${r}-format-hint`, fe = a(() => {
|
|
155
|
-
let e = {
|
|
156
|
-
mm: "month",
|
|
157
|
-
dd: "day",
|
|
158
|
-
yyyy: "year"
|
|
159
|
-
};
|
|
160
|
-
return `Date format: ${M.map((t) => e[t]).join(", ")}.`;
|
|
161
|
-
}, [M]), pe = [
|
|
162
|
-
G,
|
|
163
|
-
!_ && m ? U : null,
|
|
164
|
-
!_ && d ? W : null
|
|
165
|
-
].filter(Boolean).join(" "), me = (e) => {
|
|
166
|
-
let t = ae(e), n = L.current;
|
|
167
|
-
n && (n.value = t);
|
|
168
|
-
let r = new Event("input", { bubbles: !0 });
|
|
169
|
-
Object.defineProperty(r, "target", {
|
|
170
|
-
value: n,
|
|
171
|
-
enumerable: !0,
|
|
172
|
-
configurable: !0
|
|
173
|
-
}), x(r);
|
|
174
|
-
}, K = (e, t) => {
|
|
175
|
-
let n = {
|
|
176
|
-
...z,
|
|
177
|
-
[e]: t
|
|
178
|
-
};
|
|
179
|
-
if (n.dd && n.mm) {
|
|
180
|
-
let e = ie(n.mm, n.yyyy), t = Number(n.dd);
|
|
181
|
-
Number.isFinite(t) && t > e && (n = {
|
|
182
|
-
...n,
|
|
183
|
-
dd: P("dd", e)
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
B(n), me(n);
|
|
187
|
-
}, q = (e) => {
|
|
188
|
-
if (!e) return;
|
|
189
|
-
let t = R[e].current;
|
|
190
|
-
if (!t) return;
|
|
191
|
-
t.focus();
|
|
192
|
-
let n = t.value.length;
|
|
193
|
-
try {
|
|
194
|
-
t.setSelectionRange(n, n);
|
|
195
|
-
} catch {}
|
|
196
|
-
}, he = (e, t) => (n) => {
|
|
197
|
-
let r = n.target, i = r.value.replace(/\D/g, "").slice(0, t), a = !1;
|
|
198
|
-
if (i.length === 1 && Number(i) > ce[e] && (i = P(e, Number(i)), a = !0), i.length === t) {
|
|
199
|
-
let t = Number(i), { max: n } = N[e];
|
|
200
|
-
Number.isFinite(t) && t > n && (i = P(e, n)), a = !0;
|
|
201
|
-
}
|
|
202
|
-
i !== r.value && (r.value = i), K(e, i), a && q(F.next[e]);
|
|
203
|
-
}, ge = (e) => (t) => {
|
|
204
|
-
let n = t.target, r = n.selectionStart ?? 0;
|
|
205
|
-
if (t.key === "ArrowUp" || t.key === "ArrowDown") {
|
|
206
|
-
t.preventDefault();
|
|
207
|
-
let r = t.key === "ArrowUp" ? 1 : -1, i = le(e, n.value, r);
|
|
208
|
-
n.value = i, K(e, i);
|
|
209
|
-
try {
|
|
210
|
-
n.select();
|
|
211
|
-
} catch {}
|
|
212
|
-
} else t.key === "Backspace" && n.value === "" && r === 0 || t.key === "ArrowLeft" && r === 0 ? (t.preventDefault(), q(F.prev[e])) : t.key === "ArrowRight" && r === n.value.length ? (t.preventDefault(), q(F.next[e])) : (t.key === "/" || t.key === "-" || t.key === " ") && (n.value.length > 0 ? (t.preventDefault(), q(F.next[e])) : t.preventDefault());
|
|
213
|
-
}, _e = (e, t) => (n) => {
|
|
214
|
-
let r = n.target.value;
|
|
215
|
-
if (!r) return;
|
|
216
|
-
let i = r.padStart(t, "0"), a = Number(i), { min: o, max: s } = N[e];
|
|
217
|
-
Number.isFinite(a) && (a < o ? i = P(e, o) : a > s && (i = P(e, s))), i !== r && K(e, i);
|
|
218
|
-
}, ve = (e) => {
|
|
219
|
-
let t = e.target;
|
|
220
|
-
try {
|
|
221
|
-
t.select();
|
|
222
|
-
} catch {}
|
|
223
|
-
}, ye = (e) => {
|
|
224
|
-
let t = e.clipboardData?.getData("text")?.trim() ?? "";
|
|
225
|
-
if (!t) return;
|
|
226
|
-
let n = ne.exec(t), r = re.exec(t), i = null;
|
|
227
|
-
n ? i = {
|
|
228
|
-
yyyy: n[1],
|
|
229
|
-
mm: n[2],
|
|
230
|
-
dd: n[3]
|
|
231
|
-
} : r && (i = {
|
|
232
|
-
mm: r[1].padStart(2, "0"),
|
|
233
|
-
dd: r[2].padStart(2, "0"),
|
|
234
|
-
yyyy: r[3]
|
|
235
|
-
}), i && (e.preventDefault(), B(i), me(i), q("yyyy"));
|
|
236
|
-
}, J = (e) => {
|
|
237
|
-
let t = e.target;
|
|
238
|
-
B(j(t.value)), x(e);
|
|
239
|
-
}, Y = (e) => {
|
|
58
|
+
}), j = r(({ id: e, label: t, disabled: n, class: r, ...i }, a) => {
|
|
59
|
+
let o = s(null), c = (e) => {
|
|
60
|
+
o.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
|
|
61
|
+
}, l = (e) => {
|
|
240
62
|
e.preventDefault();
|
|
241
|
-
let t =
|
|
242
|
-
if (!(!t ||
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
try {
|
|
247
|
-
"showPicker" in HTMLInputElement.prototype && typeof t.showPicker == "function" ? t.showPicker() : t.click();
|
|
248
|
-
} catch {
|
|
249
|
-
t.click();
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}, X = !!ae(z), Z = !!d, Q = i ? { "aria-labelledby": H } : c ? { "aria-label": c } : {}, be = {
|
|
253
|
-
mm: {
|
|
254
|
-
maxLen: 2,
|
|
255
|
-
placeholder: "MM",
|
|
256
|
-
ariaLabel: "Month"
|
|
257
|
-
},
|
|
258
|
-
dd: {
|
|
259
|
-
maxLen: 2,
|
|
260
|
-
placeholder: "DD",
|
|
261
|
-
ariaLabel: "Day"
|
|
262
|
-
},
|
|
263
|
-
yyyy: {
|
|
264
|
-
maxLen: 4,
|
|
265
|
-
placeholder: "YYYY",
|
|
266
|
-
ariaLabel: "Year"
|
|
63
|
+
let t = o.current;
|
|
64
|
+
if (!(!t || n)) if (t.focus(), "showPicker" in HTMLInputElement.prototype) try {
|
|
65
|
+
t.showPicker();
|
|
66
|
+
} catch {
|
|
67
|
+
t.click();
|
|
267
68
|
}
|
|
268
|
-
|
|
269
|
-
let { maxLen: t, placeholder: n, ariaLabel: i } = be[e];
|
|
270
|
-
return /* @__PURE__ */ u("input", {
|
|
271
|
-
ref: (t) => {
|
|
272
|
-
R[e].current = t;
|
|
273
|
-
},
|
|
274
|
-
id: `${r}-${e}`,
|
|
275
|
-
class: p("IncodeSegmentedDateInputSegment", `IncodeSegmentedDateInputSegment--${e}`),
|
|
276
|
-
type: "text",
|
|
277
|
-
inputMode: "numeric",
|
|
278
|
-
autoComplete: ue(e),
|
|
279
|
-
autoCorrect: "off",
|
|
280
|
-
spellcheck: !1,
|
|
281
|
-
maxLength: t,
|
|
282
|
-
size: t,
|
|
283
|
-
placeholder: n,
|
|
284
|
-
"aria-label": i,
|
|
285
|
-
"aria-required": g ? "true" : void 0,
|
|
286
|
-
"aria-invalid": Z ? "true" : void 0,
|
|
287
|
-
value: z[e],
|
|
288
|
-
disabled: C,
|
|
289
|
-
"data-testid": `${r}-${e}`,
|
|
290
|
-
onInput: he(e, t),
|
|
291
|
-
onKeyDown: ge(e),
|
|
292
|
-
onBlur: _e(e, t),
|
|
293
|
-
onFocus: ve,
|
|
294
|
-
onPaste: ye
|
|
295
|
-
});
|
|
69
|
+
else t.click();
|
|
296
70
|
};
|
|
297
|
-
return /* @__PURE__ */ u(
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
/* @__PURE__ */ u("
|
|
312
|
-
class: "
|
|
313
|
-
children:
|
|
314
|
-
/* @__PURE__ */ u("div", {
|
|
315
|
-
role: "group",
|
|
316
|
-
class: p("IncodeSegmentedDateInputField", Z && "IncodeSegmentedDateInputField--invalid", C && "IncodeSegmentedDateInputField--disabled"),
|
|
317
|
-
"data-has-value": X ? "true" : void 0,
|
|
318
|
-
"data-disabled": C ? "true" : void 0,
|
|
319
|
-
"aria-invalid": Z ? "true" : void 0,
|
|
320
|
-
"aria-describedby": pe || void 0,
|
|
321
|
-
...Q,
|
|
322
|
-
children: M.map((e, n) => /* @__PURE__ */ u(t, { children: [$(e), n < M.length - 1 && /* @__PURE__ */ u("span", {
|
|
323
|
-
class: "IncodeSegmentedDateInputSeparator",
|
|
324
|
-
"aria-hidden": "true",
|
|
325
|
-
children: "/"
|
|
326
|
-
})] }, e))
|
|
327
|
-
}),
|
|
328
|
-
/* @__PURE__ */ u("span", {
|
|
329
|
-
id: G,
|
|
330
|
-
class: "IncodeSrOnly",
|
|
331
|
-
"data-testid": `${r}-format-hint`,
|
|
332
|
-
children: fe
|
|
333
|
-
}),
|
|
334
|
-
/* @__PURE__ */ u("input", {
|
|
335
|
-
ref: V,
|
|
336
|
-
id: r,
|
|
337
|
-
type: "date",
|
|
338
|
-
name: D,
|
|
339
|
-
defaultValue: y,
|
|
340
|
-
min: w,
|
|
341
|
-
max: T,
|
|
342
|
-
disabled: C,
|
|
343
|
-
autoComplete: de,
|
|
344
|
-
class: "IncodeSegmentedDateInputHiddenNative",
|
|
345
|
-
tabIndex: -1,
|
|
346
|
-
"aria-hidden": "true",
|
|
347
|
-
"data-has-value": X ? "true" : void 0,
|
|
348
|
-
"data-testid": `${r}-native`,
|
|
349
|
-
onInput: J,
|
|
350
|
-
onChange: J,
|
|
351
|
-
...te
|
|
352
|
-
}),
|
|
353
|
-
/* @__PURE__ */ u("button", {
|
|
354
|
-
type: "button",
|
|
355
|
-
class: "IncodeSegmentedDateInputIconButton",
|
|
356
|
-
onClick: Y,
|
|
357
|
-
onTouchEnd: Y,
|
|
358
|
-
disabled: C,
|
|
359
|
-
"aria-label": "Open date picker",
|
|
360
|
-
"data-testid": `${r}-picker-trigger`,
|
|
361
|
-
children: /* @__PURE__ */ u("span", {
|
|
362
|
-
class: "IncodeSegmentedDateInputIcon",
|
|
363
|
-
children: /* @__PURE__ */ u(S, {})
|
|
364
|
-
})
|
|
365
|
-
})
|
|
366
|
-
]
|
|
367
|
-
}),
|
|
368
|
-
!_ && d && /* @__PURE__ */ u("div", {
|
|
369
|
-
class: "IncodeInputComposedErrorWrapper",
|
|
370
|
-
role: "alert",
|
|
371
|
-
"data-testid": `${r}-error-wrapper`,
|
|
372
|
-
children: [f && /* @__PURE__ */ u("div", {
|
|
373
|
-
class: "IncodeInputComposedIconWrapper",
|
|
374
|
-
children: /* @__PURE__ */ u(b, { size: 16 })
|
|
375
|
-
}), /* @__PURE__ */ u("p", {
|
|
376
|
-
id: W,
|
|
377
|
-
class: "IncodeInputComposedError",
|
|
378
|
-
children: d
|
|
379
|
-
})]
|
|
380
|
-
}),
|
|
381
|
-
!_ && m && !d && /* @__PURE__ */ u("div", {
|
|
382
|
-
class: "IncodeInputComposedHelperWrapper",
|
|
383
|
-
"data-testid": `${r}-helper-wrapper`,
|
|
384
|
-
children: [h && /* @__PURE__ */ u("div", {
|
|
385
|
-
class: "IncodeInputComposedIconWrapper",
|
|
386
|
-
children: /* @__PURE__ */ u(E, { size: 16 })
|
|
387
|
-
}), /* @__PURE__ */ u("p", {
|
|
388
|
-
id: U,
|
|
389
|
-
class: "IncodeInputComposedHelper",
|
|
390
|
-
children: m
|
|
391
|
-
})]
|
|
71
|
+
return /* @__PURE__ */ u(k, {
|
|
72
|
+
ref: c,
|
|
73
|
+
id: e,
|
|
74
|
+
type: "date",
|
|
75
|
+
label: t,
|
|
76
|
+
disabled: n,
|
|
77
|
+
class: p("IncodeDateInputComposed", r),
|
|
78
|
+
rightIcon: /* @__PURE__ */ u("button", {
|
|
79
|
+
type: "button",
|
|
80
|
+
class: "IncodeDateInputComposedIconButton",
|
|
81
|
+
onClick: l,
|
|
82
|
+
onTouchEnd: l,
|
|
83
|
+
disabled: n,
|
|
84
|
+
"aria-label": "Open date picker",
|
|
85
|
+
children: /* @__PURE__ */ u("span", {
|
|
86
|
+
class: "IncodeDateInputComposedIcon",
|
|
87
|
+
children: /* @__PURE__ */ u(S, {})
|
|
392
88
|
})
|
|
393
|
-
|
|
89
|
+
}),
|
|
90
|
+
...i
|
|
394
91
|
});
|
|
395
92
|
});
|
|
396
|
-
|
|
93
|
+
j.displayName = "DateInputComposed";
|
|
397
94
|
//#endregion
|
|
398
95
|
//#region src/shared/textArea/textArea.tsx
|
|
399
|
-
var
|
|
96
|
+
var M = r((e, t) => {
|
|
400
97
|
let { class: n, rows: r = 4, ...i } = e;
|
|
401
98
|
return /* @__PURE__ */ u("textarea", {
|
|
402
99
|
...i,
|
|
@@ -404,7 +101,7 @@ var I = r((e, t) => {
|
|
|
404
101
|
rows: r,
|
|
405
102
|
class: p("IncodeTextArea", n)
|
|
406
103
|
});
|
|
407
|
-
}),
|
|
104
|
+
}), N = r(({ id: e, label: t, labelHint: n, "aria-label": r, error: i, showErrorIcon: a, helper: o, showHelperIcon: s, required: c, rows: l = 4, class: d, ...f }, m) => {
|
|
408
105
|
let h = `${e}-helper`, g = `${e}-error`, _ = [o ? h : null, i ? g : null].filter(Boolean).join(" ");
|
|
409
106
|
return /* @__PURE__ */ u("div", {
|
|
410
107
|
class: p("IncodeTextAreaComposed", d),
|
|
@@ -421,7 +118,7 @@ var I = r((e, t) => {
|
|
|
421
118
|
}),
|
|
422
119
|
/* @__PURE__ */ u("div", {
|
|
423
120
|
class: "IncodeTextAreaComposedWrapper",
|
|
424
|
-
children: /* @__PURE__ */ u(
|
|
121
|
+
children: /* @__PURE__ */ u(M, {
|
|
425
122
|
id: e,
|
|
426
123
|
rows: l,
|
|
427
124
|
...f,
|
|
@@ -460,16 +157,16 @@ var I = r((e, t) => {
|
|
|
460
157
|
]
|
|
461
158
|
});
|
|
462
159
|
});
|
|
463
|
-
|
|
160
|
+
N.displayName = "TextAreaComposed";
|
|
464
161
|
//#endregion
|
|
465
162
|
//#region src/shared/card/verificationOption/verificationOptionCard.tsx
|
|
466
|
-
function
|
|
163
|
+
function P({ children: e }) {
|
|
467
164
|
return /* @__PURE__ */ u("div", {
|
|
468
165
|
class: "IncodeVerificationOptionCardList",
|
|
469
166
|
children: e
|
|
470
167
|
});
|
|
471
168
|
}
|
|
472
|
-
function
|
|
169
|
+
function F({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
|
|
473
170
|
return /* @__PURE__ */ u("button", {
|
|
474
171
|
type: "button",
|
|
475
172
|
class: "IncodeVerificationOptionCard",
|
|
@@ -489,7 +186,7 @@ function L({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
|
|
|
489
186
|
children: [/* @__PURE__ */ u("span", {
|
|
490
187
|
class: "IncodeVerificationOptionCardTitle",
|
|
491
188
|
children: t
|
|
492
|
-
}), i && /* @__PURE__ */ u(
|
|
189
|
+
}), i && /* @__PURE__ */ u(ne, { label: i })]
|
|
493
190
|
}), /* @__PURE__ */ u("span", {
|
|
494
191
|
class: "IncodeVerificationOptionCardArrow",
|
|
495
192
|
"data-testid": "chevron-right-icon",
|
|
@@ -501,7 +198,7 @@ function L({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
|
|
|
501
198
|
})]
|
|
502
199
|
});
|
|
503
200
|
}
|
|
504
|
-
function
|
|
201
|
+
function ne({ label: e }) {
|
|
505
202
|
return /* @__PURE__ */ u("div", {
|
|
506
203
|
class: "IncodeVerificationOptionCardTag",
|
|
507
204
|
children: [/* @__PURE__ */ u(T, {}), /* @__PURE__ */ u("span", { children: e })]
|
|
@@ -509,7 +206,7 @@ function R({ label: e }) {
|
|
|
509
206
|
}
|
|
510
207
|
//#endregion
|
|
511
208
|
//#region src/shared/cameraOverlay/cameraFrame.tsx
|
|
512
|
-
var
|
|
209
|
+
var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameState: r = "idle", className: i, children: a }, o) => {
|
|
513
210
|
let s = `IncodeCameraFrame${r.charAt(0).toUpperCase()}${r.slice(1)}`;
|
|
514
211
|
return /* @__PURE__ */ u("div", {
|
|
515
212
|
ref: o,
|
|
@@ -518,10 +215,10 @@ var z = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
518
215
|
"aria-hidden": !0,
|
|
519
216
|
children: a
|
|
520
217
|
});
|
|
521
|
-
}),
|
|
218
|
+
}), L = ({ children: e, className: t }) => /* @__PURE__ */ u("div", {
|
|
522
219
|
class: p("IncodeCameraOverlay", t),
|
|
523
220
|
children: e
|
|
524
|
-
}),
|
|
221
|
+
}), R = ({ title: e, subtitle: t, visible: r = !0, className: i, titleId: a }) => {
|
|
525
222
|
let o = s(null);
|
|
526
223
|
return n(() => {
|
|
527
224
|
o.current?.focus();
|
|
@@ -538,7 +235,7 @@ var z = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
538
235
|
children: t
|
|
539
236
|
})]
|
|
540
237
|
});
|
|
541
|
-
},
|
|
238
|
+
}, z = ({ stream: e, children: t, videoRef: r, onPlaying: i, className: a, ...o }) => {
|
|
542
239
|
let c = s(null), l = (e) => {
|
|
543
240
|
c.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
544
241
|
};
|
|
@@ -560,7 +257,7 @@ var z = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
560
257
|
})
|
|
561
258
|
}), t]
|
|
562
259
|
});
|
|
563
|
-
},
|
|
260
|
+
}, B = ({ onOpenHelp: t, onCapture: n, isManualCapture: r, captureAriaLabel: i, captureAriaDescribedBy: a, helpAriaLabel: o, helpButtonRef: s, captureButtonRef: c, encryptionLabel: l, children: d }) => {
|
|
564
261
|
let { t: f } = e();
|
|
565
262
|
return /* @__PURE__ */ u("div", {
|
|
566
263
|
class: "IncodeCaptureFooter",
|
|
@@ -598,14 +295,14 @@ var z = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
598
295
|
};
|
|
599
296
|
//#endregion
|
|
600
297
|
//#region src/shared/manualCapture/manualCapture.tsx
|
|
601
|
-
function
|
|
298
|
+
function re(e) {
|
|
602
299
|
if (e.readyState < 2 || e.videoWidth === 0 || e.videoHeight === 0) return null;
|
|
603
300
|
let t = document.createElement("canvas");
|
|
604
301
|
t.width = e.videoWidth, t.height = e.videoHeight;
|
|
605
302
|
let n = t.getContext("2d");
|
|
606
303
|
return n ? (n.drawImage(e, 0, 0), t.toDataURL("image/jpeg", .92).split(",")[1] ?? null) : null;
|
|
607
304
|
}
|
|
608
|
-
var
|
|
305
|
+
var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
609
306
|
let i = s(null);
|
|
610
307
|
n(() => {
|
|
611
308
|
i.current && e && (i.current.srcObject = e, i.current.play().catch(() => {}));
|
|
@@ -613,7 +310,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
613
310
|
let a = o(() => {
|
|
614
311
|
let e = i.current;
|
|
615
312
|
if (!e || r) return;
|
|
616
|
-
let n =
|
|
313
|
+
let n = re(e);
|
|
617
314
|
n && t(n);
|
|
618
315
|
}, [t, r]);
|
|
619
316
|
return /* @__PURE__ */ u("div", {
|
|
@@ -641,7 +338,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
641
338
|
})
|
|
642
339
|
})]
|
|
643
340
|
});
|
|
644
|
-
},
|
|
341
|
+
}, ae = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
645
342
|
width: "24",
|
|
646
343
|
height: "24",
|
|
647
344
|
viewBox: "0 0 24 24",
|
|
@@ -671,7 +368,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
671
368
|
fill: "currentColor"
|
|
672
369
|
})
|
|
673
370
|
]
|
|
674
|
-
}),
|
|
371
|
+
}), oe = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
675
372
|
width: "24",
|
|
676
373
|
height: "24",
|
|
677
374
|
viewBox: "0 0 24 24",
|
|
@@ -697,7 +394,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
697
394
|
fill: "currentColor"
|
|
698
395
|
})
|
|
699
396
|
]
|
|
700
|
-
}),
|
|
397
|
+
}), se = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
701
398
|
width: "24",
|
|
702
399
|
height: "24",
|
|
703
400
|
viewBox: "0 0 24 24",
|
|
@@ -731,7 +428,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
731
428
|
fill: "currentColor"
|
|
732
429
|
})
|
|
733
430
|
]
|
|
734
|
-
}),
|
|
431
|
+
}), ce = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
735
432
|
width: "64",
|
|
736
433
|
height: "64",
|
|
737
434
|
viewBox: "0 0 64 64",
|
|
@@ -748,7 +445,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
748
445
|
d: "M32 41C33.1045 41 34 41.8955 34 43C34 44.1045 33.1045 45 32 45C30.8954 45 30 44.1045 30 43C30 41.8954 30.8954 41 32 41ZM32 18.5C36.6906 18.5001 40.1669 22.0578 40.167 26.5605C40.167 28.8363 39.239 30.7175 37.7119 32.0381C36.5502 33.0426 35.086 33.6855 33.5 33.9863V38H30.5V31.2568L31.9072 31.1699C33.5141 31.0696 34.8469 30.5494 35.75 29.7686C36.6245 29.0121 37.167 27.9561 37.167 26.5605C37.1669 23.7203 35.0394 21.5001 32 21.5C28.9065 21.5001 26.7253 23.7825 26.1406 26.8418L23.1934 26.2793C23.9755 22.1855 27.1118 18.5001 32 18.5Z",
|
|
749
446
|
fill: "white"
|
|
750
447
|
})]
|
|
751
|
-
}),
|
|
448
|
+
}), V = ({ open: t, onClose: n, onTakeManually: r, portalContainer: i }) => {
|
|
752
449
|
let { t: a } = e(), s = o((e) => {
|
|
753
450
|
e?.focus();
|
|
754
451
|
}, []), c = () => {
|
|
@@ -768,7 +465,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
768
465
|
children: [
|
|
769
466
|
/* @__PURE__ */ u(D.Icon, {
|
|
770
467
|
class: "IncodeCommonIssuesQuestionIcon",
|
|
771
|
-
children: /* @__PURE__ */ u(
|
|
468
|
+
children: /* @__PURE__ */ u(ce, {})
|
|
772
469
|
}),
|
|
773
470
|
/* @__PURE__ */ u(D.TitleSection, { children: /* @__PURE__ */ u(g, {
|
|
774
471
|
id: "incode-modal-title",
|
|
@@ -785,7 +482,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
785
482
|
children: [/* @__PURE__ */ u("div", {
|
|
786
483
|
class: "IncodeCommonIssuesCardIcon",
|
|
787
484
|
"aria-hidden": "true",
|
|
788
|
-
children: /* @__PURE__ */ u(
|
|
485
|
+
children: /* @__PURE__ */ u(oe, {})
|
|
789
486
|
}), /* @__PURE__ */ u("div", {
|
|
790
487
|
class: "IncodeCommonIssuesCardText",
|
|
791
488
|
children: [/* @__PURE__ */ u("h3", {
|
|
@@ -802,7 +499,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
802
499
|
children: [/* @__PURE__ */ u("div", {
|
|
803
500
|
class: "IncodeCommonIssuesCardIcon",
|
|
804
501
|
"aria-hidden": "true",
|
|
805
|
-
children: /* @__PURE__ */ u(
|
|
502
|
+
children: /* @__PURE__ */ u(ae, {})
|
|
806
503
|
}), /* @__PURE__ */ u("div", {
|
|
807
504
|
class: "IncodeCommonIssuesCardText",
|
|
808
505
|
children: [/* @__PURE__ */ u("h3", {
|
|
@@ -819,7 +516,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
819
516
|
children: [/* @__PURE__ */ u("div", {
|
|
820
517
|
class: "IncodeCommonIssuesCardIcon",
|
|
821
518
|
"aria-hidden": "true",
|
|
822
|
-
children: /* @__PURE__ */ u(
|
|
519
|
+
children: /* @__PURE__ */ u(se, {})
|
|
823
520
|
}), /* @__PURE__ */ u("div", {
|
|
824
521
|
class: "IncodeCommonIssuesCardText",
|
|
825
522
|
children: [/* @__PURE__ */ u("h3", {
|
|
@@ -849,7 +546,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
849
546
|
]
|
|
850
547
|
})
|
|
851
548
|
});
|
|
852
|
-
},
|
|
549
|
+
}, H = ({ orientation: e, mode: t, state: n, children: r, className: i }) => {
|
|
853
550
|
let a = e !== "vertical" || t === "passport", o = t === "passport", s = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
|
|
854
551
|
return /* @__PURE__ */ u("div", {
|
|
855
552
|
class: p("IncodeCaptureFrame", a ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical", s, o && "IncodeCaptureFramePassport", i),
|
|
@@ -857,7 +554,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
857
554
|
role: "presentation",
|
|
858
555
|
children: r
|
|
859
556
|
});
|
|
860
|
-
},
|
|
557
|
+
}, U = ({ imageUrl: t, orientation: n, mode: r, borderState: i, topContent: a, bottomContent: o, overlayContent: s, blurImage: c }) => {
|
|
861
558
|
let { t: l } = e();
|
|
862
559
|
return /* @__PURE__ */ u(h, {
|
|
863
560
|
hideHeader: !0,
|
|
@@ -871,7 +568,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
871
568
|
class: "IncodeIdProcessingTopArea",
|
|
872
569
|
children: a
|
|
873
570
|
}),
|
|
874
|
-
/* @__PURE__ */ u(
|
|
571
|
+
/* @__PURE__ */ u(H, {
|
|
875
572
|
orientation: n,
|
|
876
573
|
mode: r === "id" ? "front" : r,
|
|
877
574
|
state: i,
|
|
@@ -897,17 +594,17 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
897
594
|
})
|
|
898
595
|
})
|
|
899
596
|
});
|
|
900
|
-
},
|
|
597
|
+
}, W = ({ imageUrl: t, progress: r, orientation: i, mode: a, blurImage: o }) => {
|
|
901
598
|
let { t: c } = e(), d = s(null), f = i !== "vertical" || a === "passport", [p, m] = l(null);
|
|
902
599
|
return n(() => {
|
|
903
600
|
d.current?.focus();
|
|
904
601
|
}, []), n(() => {
|
|
905
|
-
f ? import("./id-laser-h-
|
|
602
|
+
f ? import("./id-laser-h-BUV5ROmy.js").then((e) => {
|
|
906
603
|
m(e.default);
|
|
907
|
-
}) : import("./id-laser-v-
|
|
604
|
+
}) : import("./id-laser-v-DzsdfzVM.js").then((e) => {
|
|
908
605
|
m(e.default);
|
|
909
606
|
});
|
|
910
|
-
}, [f]), /* @__PURE__ */ u(
|
|
607
|
+
}, [f]), /* @__PURE__ */ u(U, {
|
|
911
608
|
imageUrl: t,
|
|
912
609
|
orientation: i,
|
|
913
610
|
mode: a,
|
|
@@ -915,7 +612,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
915
612
|
blurImage: o,
|
|
916
613
|
topContent: /* @__PURE__ */ u("div", {
|
|
917
614
|
class: "IncodeAnalyzingContent",
|
|
918
|
-
children: [/* @__PURE__ */ u(
|
|
615
|
+
children: [/* @__PURE__ */ u(A, { progress: r }), /* @__PURE__ */ u(g, {
|
|
919
616
|
ref: d,
|
|
920
617
|
id: "analyzing-title",
|
|
921
618
|
className: "IncodeAnalyzingTitle",
|
|
@@ -929,7 +626,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
929
626
|
className: "IncodeAnalyzingLottie"
|
|
930
627
|
}) : null
|
|
931
628
|
});
|
|
932
|
-
},
|
|
629
|
+
}, G = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
|
|
933
630
|
class: e,
|
|
934
631
|
width: "32",
|
|
935
632
|
height: "32",
|
|
@@ -942,7 +639,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
942
639
|
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",
|
|
943
640
|
fill: "#189F60"
|
|
944
641
|
})
|
|
945
|
-
}),
|
|
642
|
+
}), K = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
|
|
946
643
|
class: e,
|
|
947
644
|
width: "33",
|
|
948
645
|
height: "32",
|
|
@@ -955,11 +652,11 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
955
652
|
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",
|
|
956
653
|
fill: "#E71111"
|
|
957
654
|
})
|
|
958
|
-
}),
|
|
655
|
+
}), q = ({ variant: r, imageUrl: i, orientation: a, mode: o, title: c, subtitle: l, buttonText: d, onButtonClick: f, attemptsRemaining: p, blurImage: h }) => {
|
|
959
656
|
let { t: _ } = e(), y = s(null);
|
|
960
657
|
return n(() => {
|
|
961
658
|
y.current?.focus();
|
|
962
|
-
}, []), /* @__PURE__ */ u(
|
|
659
|
+
}, []), /* @__PURE__ */ u(U, {
|
|
963
660
|
imageUrl: i,
|
|
964
661
|
orientation: a,
|
|
965
662
|
mode: o,
|
|
@@ -969,7 +666,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
969
666
|
class: "IncodeIdProcessingResultContent",
|
|
970
667
|
role: "status",
|
|
971
668
|
children: [
|
|
972
|
-
u(r === "success" ?
|
|
669
|
+
u(r === "success" ? G : K, { className: "IncodeIdProcessingResultIcon" }),
|
|
973
670
|
/* @__PURE__ */ u(m, { size: 16 }),
|
|
974
671
|
c && /* @__PURE__ */ u(g, {
|
|
975
672
|
ref: y,
|
|
@@ -995,11 +692,11 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
995
692
|
})]
|
|
996
693
|
})
|
|
997
694
|
});
|
|
998
|
-
},
|
|
695
|
+
}, le = ({ manager: t, state: n, blurImage: r }) => {
|
|
999
696
|
let { t: i } = e();
|
|
1000
697
|
if (!n.previewImageUrl) return null;
|
|
1001
698
|
let a = n.currentMode === "passport" ? "passport" : "id";
|
|
1002
|
-
return /* @__PURE__ */ u(
|
|
699
|
+
return /* @__PURE__ */ u(q, {
|
|
1003
700
|
variant: "success",
|
|
1004
701
|
imageUrl: n.previewImageUrl,
|
|
1005
702
|
orientation: n.orientation,
|
|
@@ -1010,7 +707,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
1010
707
|
onButtonClick: () => t.nextStep(),
|
|
1011
708
|
blurImage: r
|
|
1012
709
|
});
|
|
1013
|
-
},
|
|
710
|
+
}, J = ({ manager: t, state: n, blurImage: r, ...i }) => {
|
|
1014
711
|
let { t: a } = e();
|
|
1015
712
|
if (n.status === "error") return /* @__PURE__ */ u("div", {
|
|
1016
713
|
class: "IncodeIdError",
|
|
@@ -1025,7 +722,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
1025
722
|
})]
|
|
1026
723
|
});
|
|
1027
724
|
let o = n.currentMode === "passport" ? "passport" : "id";
|
|
1028
|
-
return n.previewImageUrl ? /* @__PURE__ */ u(
|
|
725
|
+
return n.previewImageUrl ? /* @__PURE__ */ u(q, {
|
|
1029
726
|
variant: "error",
|
|
1030
727
|
imageUrl: n.previewImageUrl,
|
|
1031
728
|
orientation: n.orientation,
|
|
@@ -1037,7 +734,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
1037
734
|
attemptsRemaining: n.attemptsRemaining,
|
|
1038
735
|
blurImage: r
|
|
1039
736
|
}) : null;
|
|
1040
|
-
},
|
|
737
|
+
}, ue = ({ manager: t }) => {
|
|
1041
738
|
let { t: r } = e(), i = s(null);
|
|
1042
739
|
return n(() => {
|
|
1043
740
|
i.current?.focus();
|
|
@@ -1049,7 +746,7 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
1049
746
|
class: "IncodeIdExpiredContent",
|
|
1050
747
|
role: "alert",
|
|
1051
748
|
children: [
|
|
1052
|
-
/* @__PURE__ */ u(
|
|
749
|
+
/* @__PURE__ */ u(K, { className: "IncodeIdExpiredIcon" }),
|
|
1053
750
|
/* @__PURE__ */ u(g, {
|
|
1054
751
|
ref: i,
|
|
1055
752
|
tabIndex: -1,
|
|
@@ -1074,65 +771,65 @@ var G = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
1074
771
|
})
|
|
1075
772
|
})]
|
|
1076
773
|
});
|
|
1077
|
-
},
|
|
1078
|
-
blur: () => import("./blurdevicelottie-
|
|
1079
|
-
glare: () => import("./glaredevicelottie
|
|
1080
|
-
align: () => import("./aligndevicelottie-
|
|
1081
|
-
front: () => import("./frontdevicelottie-
|
|
1082
|
-
back: () => import("./backdevicelottie-
|
|
774
|
+
}, Y = /* @__PURE__ */ new Map(), X = !1, Z = {
|
|
775
|
+
blur: () => import("./blurdevicelottie-DIQrsw9H.js"),
|
|
776
|
+
glare: () => import("./glaredevicelottie-BPRxXRbG.js"),
|
|
777
|
+
align: () => import("./aligndevicelottie-Dfs3Ku2-.js"),
|
|
778
|
+
front: () => import("./frontdevicelottie-D3Gw7Qab.js"),
|
|
779
|
+
back: () => import("./backdevicelottie-B4ve1L_u.js")
|
|
1083
780
|
};
|
|
1084
|
-
function
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
781
|
+
function Q(e) {
|
|
782
|
+
X || (X = !0, Promise.all([
|
|
783
|
+
Z.blur(),
|
|
784
|
+
Z.glare(),
|
|
785
|
+
Z.align(),
|
|
786
|
+
Z.front(),
|
|
787
|
+
Z.back()
|
|
1091
788
|
]).then(([t, n, r, i, a]) => {
|
|
1092
|
-
|
|
789
|
+
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?.();
|
|
1093
790
|
}).catch(() => {}));
|
|
1094
791
|
}
|
|
1095
|
-
function
|
|
1096
|
-
|
|
792
|
+
function de() {
|
|
793
|
+
Q();
|
|
1097
794
|
}
|
|
1098
|
-
function
|
|
795
|
+
function fe() {
|
|
1099
796
|
n(() => {
|
|
1100
|
-
|
|
797
|
+
de();
|
|
1101
798
|
}, []);
|
|
1102
799
|
}
|
|
1103
|
-
function
|
|
800
|
+
function pe(t, r) {
|
|
1104
801
|
let { t: i } = e(), [, a] = l(0);
|
|
1105
802
|
if (n(() => {
|
|
1106
|
-
|
|
803
|
+
Q(() => a((e) => e + 1));
|
|
1107
804
|
}, []), t === "blur") return {
|
|
1108
805
|
title: i("idv2.capture.notifications.blur.title"),
|
|
1109
806
|
description: i("idv2.capture.notifications.blur.description"),
|
|
1110
|
-
animationData:
|
|
807
|
+
animationData: Y.get("blur") ?? null
|
|
1111
808
|
};
|
|
1112
809
|
if (t === "glare") return {
|
|
1113
810
|
title: i("idv2.capture.notifications.glare.title"),
|
|
1114
811
|
description: i("idv2.capture.notifications.glare.description"),
|
|
1115
|
-
animationData:
|
|
812
|
+
animationData: Y.get("glare") ?? null
|
|
1116
813
|
};
|
|
1117
814
|
if (t === "farAway") return {
|
|
1118
815
|
title: i("idv2.capture.notifications.notAligned.title"),
|
|
1119
816
|
description: i("idv2.capture.notifications.notAligned.description"),
|
|
1120
|
-
animationData:
|
|
817
|
+
animationData: Y.get("align") ?? null
|
|
1121
818
|
};
|
|
1122
819
|
if (t === "wrongSide") {
|
|
1123
820
|
let e = r === "back";
|
|
1124
821
|
return {
|
|
1125
822
|
title: i(e ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
|
|
1126
823
|
description: i(e ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
|
|
1127
|
-
animationData:
|
|
824
|
+
animationData: Y.get(e ? "back" : "front") ?? null
|
|
1128
825
|
};
|
|
1129
826
|
}
|
|
1130
827
|
return null;
|
|
1131
828
|
}
|
|
1132
829
|
//#endregion
|
|
1133
830
|
//#region src/modules/id/capture/captureNotification.tsx
|
|
1134
|
-
var
|
|
1135
|
-
let { t: c } = e(), l =
|
|
831
|
+
var me = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
|
|
832
|
+
let { t: c } = e(), l = pe(r, i), d = s(null), f = s({
|
|
1136
833
|
message: "",
|
|
1137
834
|
at: 0
|
|
1138
835
|
}), 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", C = r === "glare", w = r === "blur", T = o((e) => {
|
|
@@ -1241,34 +938,34 @@ var Te = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
|
|
|
1241
938
|
]
|
|
1242
939
|
})
|
|
1243
940
|
}) : null] });
|
|
1244
|
-
},
|
|
941
|
+
}, he = i(() => import("./front-horizontal-hint-CNu99K_l.js")), ge = i(() => import("./front-vertical-hint-CpQjOGpU.js")), _e = i(() => import("./back-horizontal-hint-Cch8dR2s.js")), ve = i(() => import("./back-vertical-hint-Dzn5uXKH.js")), ye = i(() => import("./passport-horizontal-hint-WqdYMc9Y.js")), be = i(() => import("./passport-vertical-hint-rNP6GykM.js")), $ = {
|
|
1245
942
|
"front-horizontal": 348,
|
|
1246
943
|
"back-horizontal": 348,
|
|
1247
944
|
"passport-horizontal": 342
|
|
1248
|
-
},
|
|
945
|
+
}, xe = {
|
|
1249
946
|
"front-vertical": 446,
|
|
1250
947
|
"back-vertical": 446,
|
|
1251
948
|
"passport-vertical": 342
|
|
1252
949
|
};
|
|
1253
|
-
function
|
|
1254
|
-
let i = `${e}-${t}`, a =
|
|
950
|
+
function Se(e, t, n, r) {
|
|
951
|
+
let i = `${e}-${t}`, a = $[i];
|
|
1255
952
|
if (a) return n / a;
|
|
1256
|
-
let o =
|
|
953
|
+
let o = xe[i];
|
|
1257
954
|
return o ? r / o : 1;
|
|
1258
955
|
}
|
|
1259
|
-
var
|
|
956
|
+
var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
1260
957
|
let i = s(null), [a, o] = l(1);
|
|
1261
958
|
n(() => {
|
|
1262
959
|
let n = i.current;
|
|
1263
960
|
if (!n) return;
|
|
1264
961
|
let r = () => {
|
|
1265
|
-
o(
|
|
962
|
+
o(Se(e, t, n.clientWidth, n.clientHeight));
|
|
1266
963
|
};
|
|
1267
964
|
r();
|
|
1268
965
|
let a = new ResizeObserver(r);
|
|
1269
966
|
return a.observe(n), () => a.disconnect();
|
|
1270
967
|
}, [e, t]);
|
|
1271
|
-
let d = () => e === "front" ? u(t === "horizontal" ?
|
|
968
|
+
let d = () => e === "front" ? u(t === "horizontal" ? he : ge, {}) : e === "back" ? u(t === "horizontal" ? _e : ve, {}) : e === "passport" ? u(t === "horizontal" ? ye : be, {}) : null;
|
|
1272
969
|
return /* @__PURE__ */ u("div", {
|
|
1273
970
|
ref: i,
|
|
1274
971
|
class: "IncodeIdHint",
|
|
@@ -1289,9 +986,9 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1289
986
|
})
|
|
1290
987
|
})
|
|
1291
988
|
});
|
|
1292
|
-
},
|
|
989
|
+
}, we = r(({ mode: t, orientation: r, detectionStatus: i, counterValue: o, isCapturing: c, showManualCapture: d, onCapture: f, onOpenHelp: m, helpButtonRef: h, captureButtonRef: g }, _) => {
|
|
1293
990
|
let { t: v } = e();
|
|
1294
|
-
|
|
991
|
+
fe();
|
|
1295
992
|
let y = s(!1), [b, x] = l(!1);
|
|
1296
993
|
n(() => {
|
|
1297
994
|
if (i === "idNotDetected") {
|
|
@@ -1328,23 +1025,23 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1328
1025
|
t,
|
|
1329
1026
|
v
|
|
1330
1027
|
]), w = S(), T = t === "passport", E = r !== "vertical" || T ? "horizontal" : "vertical";
|
|
1331
|
-
return /* @__PURE__ */ u(
|
|
1028
|
+
return /* @__PURE__ */ u(L, {
|
|
1332
1029
|
className: "IncodeCaptureOverlayId",
|
|
1333
1030
|
children: [
|
|
1334
1031
|
/* @__PURE__ */ u("div", {
|
|
1335
1032
|
class: "IncodeCaptureTopSection",
|
|
1336
|
-
children: [/* @__PURE__ */ u(
|
|
1033
|
+
children: [/* @__PURE__ */ u(me, {
|
|
1337
1034
|
detectionStatus: i,
|
|
1338
1035
|
mode: t,
|
|
1339
1036
|
isCapturing: c
|
|
1340
|
-
}), /* @__PURE__ */ u(
|
|
1037
|
+
}), /* @__PURE__ */ u(R, {
|
|
1341
1038
|
title: C?.title ?? "",
|
|
1342
1039
|
subtitle: C?.subtitle,
|
|
1343
1040
|
visible: C !== null,
|
|
1344
1041
|
titleId: "id-capture-heading"
|
|
1345
1042
|
})]
|
|
1346
1043
|
}),
|
|
1347
|
-
/* @__PURE__ */ u(
|
|
1044
|
+
/* @__PURE__ */ u(I, {
|
|
1348
1045
|
ref: _,
|
|
1349
1046
|
variant: "locked",
|
|
1350
1047
|
orientation: E,
|
|
@@ -1353,7 +1050,7 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1353
1050
|
children: [c && o > 0 && /* @__PURE__ */ u("div", {
|
|
1354
1051
|
class: "IncodeCaptureCounter",
|
|
1355
1052
|
children: o
|
|
1356
|
-
}), b && /* @__PURE__ */ u(
|
|
1053
|
+
}), b && /* @__PURE__ */ u(Ce, {
|
|
1357
1054
|
mode: t,
|
|
1358
1055
|
orientation: r ?? "horizontal",
|
|
1359
1056
|
onAnimationEnd: () => x(!1)
|
|
@@ -1365,7 +1062,7 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1365
1062
|
"aria-atomic": "true",
|
|
1366
1063
|
children: c && o > 0 ? o : ""
|
|
1367
1064
|
}),
|
|
1368
|
-
/* @__PURE__ */ u(
|
|
1065
|
+
/* @__PURE__ */ u(B, {
|
|
1369
1066
|
onOpenHelp: m,
|
|
1370
1067
|
onCapture: f,
|
|
1371
1068
|
isManualCapture: d,
|
|
@@ -1387,10 +1084,10 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1387
1084
|
})
|
|
1388
1085
|
]
|
|
1389
1086
|
});
|
|
1390
|
-
}),
|
|
1087
|
+
}), Te = ({ manager: e, state: t }) => {
|
|
1391
1088
|
if (t.captureStatus === "uploading" && t.previewImageUrl) {
|
|
1392
1089
|
let e = t.currentMode === "passport" ? "passport" : "id";
|
|
1393
|
-
return /* @__PURE__ */ u(
|
|
1090
|
+
return /* @__PURE__ */ u(W, {
|
|
1394
1091
|
imageUrl: t.previewImageUrl,
|
|
1395
1092
|
progress: t.uploadProgress ?? 0,
|
|
1396
1093
|
orientation: t.orientation,
|
|
@@ -1398,19 +1095,19 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1398
1095
|
blurImage: t.ageAssurance
|
|
1399
1096
|
});
|
|
1400
1097
|
}
|
|
1401
|
-
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(
|
|
1098
|
+
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(le, {
|
|
1402
1099
|
manager: e,
|
|
1403
1100
|
state: t,
|
|
1404
1101
|
blurImage: t.ageAssurance
|
|
1405
|
-
}) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ u(
|
|
1102
|
+
}) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ u(J, {
|
|
1406
1103
|
manager: e,
|
|
1407
1104
|
state: t,
|
|
1408
1105
|
blurImage: t.ageAssurance
|
|
1409
|
-
}) : /* @__PURE__ */ u(
|
|
1106
|
+
}) : /* @__PURE__ */ u(Ee, {
|
|
1410
1107
|
manager: e,
|
|
1411
1108
|
state: t
|
|
1412
1109
|
});
|
|
1413
|
-
},
|
|
1110
|
+
}, Ee = ({ manager: e, state: t }) => {
|
|
1414
1111
|
let n = s(null), r = s(null), i = s(null), a = s(null), [c, p] = l(!1), m = o(() => {
|
|
1415
1112
|
let t = n.current;
|
|
1416
1113
|
if (!t) return;
|
|
@@ -1439,11 +1136,11 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1439
1136
|
hideFooterBranding: !0,
|
|
1440
1137
|
className: "IncodeIdCapturePage",
|
|
1441
1138
|
children: [
|
|
1442
|
-
/* @__PURE__ */ u(
|
|
1139
|
+
/* @__PURE__ */ u(z, {
|
|
1443
1140
|
stream: t.stream,
|
|
1444
1141
|
onPlaying: m,
|
|
1445
1142
|
"aria-hidden": c || void 0,
|
|
1446
|
-
children: /* @__PURE__ */ u(
|
|
1143
|
+
children: /* @__PURE__ */ u(we, {
|
|
1447
1144
|
ref: n,
|
|
1448
1145
|
mode: t.currentMode,
|
|
1449
1146
|
orientation: t.orientation,
|
|
@@ -1458,7 +1155,7 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1458
1155
|
})
|
|
1459
1156
|
}),
|
|
1460
1157
|
/* @__PURE__ */ u("div", { ref: a }),
|
|
1461
|
-
/* @__PURE__ */ u(
|
|
1158
|
+
/* @__PURE__ */ u(V, {
|
|
1462
1159
|
open: c,
|
|
1463
1160
|
onClose: b,
|
|
1464
1161
|
onTakeManually: x,
|
|
@@ -1466,14 +1163,14 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1466
1163
|
})
|
|
1467
1164
|
]
|
|
1468
1165
|
});
|
|
1469
|
-
},
|
|
1166
|
+
}, De = ({ manager: t, state: r }) => {
|
|
1470
1167
|
let { t: i } = e(), [a, o] = l(!1), [s, c] = l(null), d = r.selectedDocumentType === "passport", f = r.currentMode === "back";
|
|
1471
1168
|
n(() => {
|
|
1472
|
-
d ? import("./passport-tutorial-
|
|
1169
|
+
d ? import("./passport-tutorial-DYBRCYAN.js").then((e) => {
|
|
1473
1170
|
c(e.default);
|
|
1474
|
-
}) : f ? import("./back-tutorial-
|
|
1171
|
+
}) : f ? import("./back-tutorial-DCeMC-YK.js").then((e) => {
|
|
1475
1172
|
c(e.default);
|
|
1476
|
-
}) : import("./id-tutorial-
|
|
1173
|
+
}) : import("./id-tutorial-B2d6DkZv.js").then((e) => {
|
|
1477
1174
|
c(e.default);
|
|
1478
1175
|
});
|
|
1479
1176
|
}, [d, f]);
|
|
@@ -1490,7 +1187,7 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1490
1187
|
isLoading: a,
|
|
1491
1188
|
className: p("IncodeIdTutorial", d ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId")
|
|
1492
1189
|
});
|
|
1493
|
-
},
|
|
1190
|
+
}, Oe = {
|
|
1494
1191
|
digitalIdUpload: {
|
|
1495
1192
|
type: "digitalIdUpload",
|
|
1496
1193
|
icon: () => /* @__PURE__ */ u("svg", {
|
|
@@ -2527,16 +2224,16 @@ var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
2527
2224
|
};
|
|
2528
2225
|
//#endregion
|
|
2529
2226
|
//#region src/modules/id/chooser/chooser.helpers.ts
|
|
2530
|
-
function
|
|
2227
|
+
function ke(e) {
|
|
2531
2228
|
return e.reduce((e, t) => {
|
|
2532
|
-
let n =
|
|
2229
|
+
let n = Oe[t];
|
|
2533
2230
|
return n && e.push(n), e;
|
|
2534
2231
|
}, []).sort((e, t) => e.weight - t.weight);
|
|
2535
2232
|
}
|
|
2536
2233
|
//#endregion
|
|
2537
2234
|
//#region src/modules/id/chooser/chooser.tsx
|
|
2538
|
-
var
|
|
2539
|
-
let { t: r } = e(), i = a(() =>
|
|
2235
|
+
var Ae = ({ manager: t, state: n }) => {
|
|
2236
|
+
let { t: r } = e(), i = a(() => ke(n.availableDocumentTypes), [n.availableDocumentTypes]), o = (e) => {
|
|
2540
2237
|
t.selectDocument(e);
|
|
2541
2238
|
};
|
|
2542
2239
|
return /* @__PURE__ */ u(h, {
|
|
@@ -2545,7 +2242,7 @@ var He = ({ manager: t, state: n }) => {
|
|
|
2545
2242
|
className: "IncodeChooserPage",
|
|
2546
2243
|
children: /* @__PURE__ */ u("div", {
|
|
2547
2244
|
class: "IncodeChooserContainer",
|
|
2548
|
-
children: /* @__PURE__ */ u(
|
|
2245
|
+
children: /* @__PURE__ */ u(P, { children: i.map((e) => /* @__PURE__ */ u(F, {
|
|
2549
2246
|
icon: e.icon,
|
|
2550
2247
|
title: r(e.title),
|
|
2551
2248
|
testId: e.testId,
|
|
@@ -2554,10 +2251,10 @@ var He = ({ manager: t, state: n }) => {
|
|
|
2554
2251
|
}, e.type)) })
|
|
2555
2252
|
})
|
|
2556
2253
|
});
|
|
2557
|
-
},
|
|
2254
|
+
}, je = ({ manager: t, direction: r }) => {
|
|
2558
2255
|
let [i, a] = l(null), [s, c] = l(!1), { t: d } = e();
|
|
2559
2256
|
n(() => {
|
|
2560
|
-
import("./flip-animation-
|
|
2257
|
+
import("./flip-animation-B1zV6oY9.js").then((e) => {
|
|
2561
2258
|
a(e.default);
|
|
2562
2259
|
});
|
|
2563
2260
|
}, []);
|
|
@@ -2586,4 +2283,4 @@ var He = ({ manager: t, state: n }) => {
|
|
|
2586
2283
|
}) : null;
|
|
2587
2284
|
};
|
|
2588
2285
|
//#endregion
|
|
2589
|
-
export {
|
|
2286
|
+
export { j as _, ue as a, B as c, L as d, I as f, M as g, N as h, Te as i, z as l, P as m, Ae as n, J as o, F as p, De as r, ie as s, je as t, R as u, A as v, te as y };
|